UNPKG

@n8n-plus/n8n-plus

Version:

n8n Workflow Automation Tool (plus edition)

17 lines (16 loc) 1.75 kB
import type { WorkflowEntity, WorkflowHistory, ExecutionRepository } from '@n8n/db'; import type { IDataObject, INodeTypes, IRun, ITaskData, IWorkflowBase, IWorkflowSettings, RelatedExecution } from 'n8n-workflow'; export declare function validatePinDataSize(workflow: IWorkflowBase): void; export declare function getLastExecutedNodeRuns(inputData: IRun): ITaskData[]; export declare function getLastExecutedNodeData(inputData: IRun): ITaskData | undefined; export declare function addNodeIds(workflow: IWorkflowBase): void; export declare function resolveNodeWebhookIds(workflow: IWorkflowBase, nodeTypes: INodeTypes): void; export declare function validateWorkflowNodeGroups(workflow: Pick<IWorkflowBase, 'nodes' | 'nodeGroups'>): void; export declare function validateWorkflowStructure(workflow: Pick<IWorkflowBase, 'nodes' | 'connections'>): void; export declare function removeDefaultValues(settings: IWorkflowSettings, defaultExecutionTimeout: number): IWorkflowSettings; export declare function replaceInvalidCredentials<T extends IWorkflowBase>(workflow: T, projectId: string): Promise<T>; export declare function getVariables(workflowId?: string, projectId?: string): Promise<IDataObject>; export declare function shouldRestartParentExecution(parentExecution: RelatedExecution | undefined): parentExecution is RelatedExecution; export declare function updateParentExecutionWithChildResults(executionRepository: ExecutionRepository, parentExecutionId: string, subworkflowResults: IRun): Promise<void>; export declare function getActiveVersionUpdateValue(dbWorkflow: WorkflowEntity, updatedVersion: WorkflowHistory, updatedActive?: boolean): WorkflowHistory | null; export declare function preserveInputOverride(runDataArray: ITaskData[]): void;