UNPKG

n8n

Version:

n8n Workflow Automation Tool

22 lines (21 loc) 1.87 kB
import type { PushType } from '@n8n/api-types'; import type { IDataObject, IExecuteWorkflowInfo, INodeExecutionData, INodeParameters, IWorkflowBase, IWorkflowExecuteAdditionalData, IWorkflowSettings, ExecutionStatus, ExecuteWorkflowOptions, IWorkflowExecutionDataProcess, ExecuteWorkflowData, ExecuteAgentData, RelatedExecution } from 'n8n-workflow'; export declare function getRunData(workflowData: IWorkflowBase, inputData?: INodeExecutionData[], parentExecution?: RelatedExecution): IWorkflowExecutionDataProcess; export declare function getDraftWorkflowData(workflowInfo: IExecuteWorkflowInfo, parentWorkflowId: string, parentWorkflowSettings?: IWorkflowSettings): Promise<IWorkflowBase>; export declare function getPublishedWorkflowData(workflowInfo: IExecuteWorkflowInfo, parentWorkflowId: string, parentWorkflowSettings?: IWorkflowSettings): Promise<IWorkflowBase>; export declare function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additionalData: IWorkflowExecuteAdditionalData, options: ExecuteWorkflowOptions): Promise<ExecuteWorkflowData>; export declare function executeAgent(agentId: string, message: string, executionId: string, threadId: string, additionalData: IWorkflowExecuteAdditionalData): Promise<ExecuteAgentData>; export declare function setExecutionStatus(this: { executionId?: string; }, status: ExecutionStatus): void; export declare function sendDataToUI(this: { pushRef?: string; }, type: PushType, data: IDataObject | IDataObject[]): void; export declare function getBase({ userId, workflowId, projectId, currentNodeParameters, executionTimeoutTimestamp, workflowSettings, }?: { userId?: string; workflowId?: string; projectId?: string; currentNodeParameters?: INodeParameters; executionTimeoutTimestamp?: number; workflowSettings?: IWorkflowSettings; }): Promise<IWorkflowExecuteAdditionalData>;