UNPKG

n8n

Version:

n8n Workflow Automation Tool

10 lines (9 loc) 1.02 kB
import type { WorkflowEntity, WorkflowHistory, ExecutionRepository } from '@n8n/db'; import type { IDataObject, IRun, ITaskData, IWorkflowBase, RelatedExecution } from 'n8n-workflow'; export declare function getDataLastExecutedNodeData(inputData: IRun): ITaskData | undefined; export declare function addNodeIds(workflow: IWorkflowBase): void; export declare function replaceInvalidCredentials<T extends IWorkflowBase>(workflow: T): 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;