mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
import { BreakingChangeDetector } from './breaking-change-detector';
|
|
import { NodeVersionService } from './node-version-service';
|
|
export interface MigrationResult {
|
|
success: boolean;
|
|
nodeId: string;
|
|
nodeName: string;
|
|
fromVersion: string;
|
|
toVersion: string;
|
|
appliedMigrations: AppliedMigration[];
|
|
remainingIssues: string[];
|
|
confidence: 'HIGH' | 'MEDIUM' | 'LOW';
|
|
updatedNode: any;
|
|
}
|
|
export interface AppliedMigration {
|
|
propertyName: string;
|
|
action: string;
|
|
oldValue?: any;
|
|
newValue?: any;
|
|
description: string;
|
|
}
|
|
export declare class NodeMigrationService {
|
|
private versionService;
|
|
private breakingChangeDetector;
|
|
constructor(versionService: NodeVersionService, breakingChangeDetector: BreakingChangeDetector);
|
|
migrateNode(node: any, fromVersion: string, toVersion: string): Promise<MigrationResult>;
|
|
private applyMigration;
|
|
private addProperty;
|
|
private removeProperty;
|
|
private renameProperty;
|
|
private setDefault;
|
|
private resolveDefaultValue;
|
|
private parseVersion;
|
|
validateMigratedNode(node: any, nodeType: string): Promise<{
|
|
valid: boolean;
|
|
errors: string[];
|
|
warnings: string[];
|
|
}>;
|
|
migrateWorkflowNodes(workflow: any, targetVersions: Record<string, string>): Promise<{
|
|
success: boolean;
|
|
results: MigrationResult[];
|
|
overallConfidence: 'HIGH' | 'MEDIUM' | 'LOW';
|
|
}>;
|
|
}
|
|
//# sourceMappingURL=node-migration-service.d.ts.map
|