n8n
Version:
n8n Workflow Automation Tool
33 lines (32 loc) • 1.07 kB
TypeScript
import { z } from 'zod';
import { BaseCommand } from '../base-command';
declare const flagsSchema: z.ZodObject<{
input: z.ZodOptional<z.ZodString>;
separate: z.ZodDefault<z.ZodBoolean>;
userId: z.ZodOptional<z.ZodString>;
projectId: z.ZodOptional<z.ZodString>;
activeState: z.ZodDefault<z.ZodEnum<["false", "fromJson"]>>;
}, "strip", z.ZodTypeAny, {
separate: boolean;
activeState: "false" | "fromJson";
projectId?: string | undefined;
input?: string | undefined;
userId?: string | undefined;
}, {
projectId?: string | undefined;
input?: string | undefined;
userId?: string | undefined;
separate?: boolean | undefined;
activeState?: "false" | "fromJson" | undefined;
}>;
export declare class ImportWorkflowsCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
run(): Promise<void>;
private checkRelations;
catch(error: Error): Promise<void>;
private reportSuccess;
private getWorkflowOwner;
private workflowExists;
private readWorkflows;
private getProject;
}
export {};