refactor(editor): Migrate versions api to @n8n/rest-client-api (no-changelog) (#16147)

This commit is contained in:
Alex Grozav
2025-06-10 09:47:51 +02:00
committed by GitHub
parent 5deab75c7d
commit 07ed01d9fc
11 changed files with 65 additions and 62 deletions

View File

@@ -1,8 +1,9 @@
<script setup lang="ts">
import type { IVersionNode, SimplifiedNodeType } from '@/Interface';
import type { SimplifiedNodeType } from '@/Interface';
import { getNodeIconSource, type NodeIconSource } from '@/utils/nodeIcon';
import { N8nNodeIcon } from '@n8n/design-system';
import { computed } from 'vue';
import type { VersionNode } from '@n8n/rest-api-client/api/versions';
type Props = {
size?: number;
@@ -15,7 +16,7 @@ type Props = {
// NodeIcon needs iconSource OR nodeType, would be better with an intersection type
// but it breaks Vue template type checking
iconSource?: NodeIconSource;
nodeType?: SimplifiedNodeType | IVersionNode | null;
nodeType?: SimplifiedNodeType | VersionNode | null;
};
const props = withDefaults(defineProps<Props>(), {