@n8n-plus/n8n-plus
Version:
n8n Workflow Automation Tool (plus edition)
49 lines (48 loc) • 1.26 kB
TypeScript
import type { ExecutionStatus, WorkflowExecuteMode, INode } from 'n8n-workflow';
import type { TracingContext } from './tracing-context';
type ProjectContext = {
id: string;
};
type WorkflowContext = {
id: string;
name: string;
versionId?: string;
nodeCount: number;
};
export type StartWorkflowParams = {
executionId: string;
tracingContext?: TracingContext;
linkTo?: TracingContext;
workflow: WorkflowContext;
project?: ProjectContext;
};
export type EndWorkflowParams = {
executionId: string;
status: ExecutionStatus;
mode: WorkflowExecuteMode;
error?: unknown;
isRetry: boolean;
retryOf?: string;
};
type NodeTracingParams = Pick<INode, 'id' | 'name' | 'type' | 'typeVersion'>;
export type StartNodeParams = {
executionId: string;
node: NodeTracingParams;
};
type EndNodeError = {
message: string;
constructor: {
name: string;
};
stack?: string;
};
export declare function isEndNodeError(error: unknown): error is EndNodeError;
export type EndNodeParams = {
executionId: string;
node: NodeTracingParams;
inputItemCount: number;
outputItemCount: number;
error?: EndNodeError;
customAttributes?: Record<string, string>;
};
export {};