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

@@ -45,6 +45,7 @@ import type {
ITaskData,
ISourceData,
} from 'n8n-workflow';
import type { Version, VersionNode } from '@n8n/rest-api-client/api/versions';
import type {
AI_NODE_CREATOR_VIEW,
@@ -900,33 +901,7 @@ export interface ITagRow {
canDelete?: boolean;
}
export interface IVersion {
name: string;
nodes: IVersionNode[];
createdAt: string;
description: string;
documentationUrl: string;
hasBreakingChange: boolean;
hasSecurityFix: boolean;
hasSecurityIssue: boolean;
securityIssueFixVersion: string;
}
export interface IVersionNode {
name: string;
displayName: string;
icon: string;
iconUrl?: string;
defaults: INodeParameters;
iconData: {
type: string;
icon?: string;
fileBuffer?: string;
};
typeVersion?: number;
}
export interface ITemplatesNode extends IVersionNode {
export interface ITemplatesNode extends VersionNode {
id: number;
categories?: ITemplatesCategory[];
}
@@ -1164,8 +1139,8 @@ export interface ITemplateState {
export interface IVersionsState {
versionNotificationSettings: IVersionNotificationSettings;
nextVersions: IVersion[];
currentVersion: IVersion | undefined;
nextVersions: Version[];
currentVersion: Version | undefined;
}
export interface IWorkflowsMap {