UNPKG

n8n

Version:

n8n Workflow Automation Tool

22 lines (21 loc) 1.51 kB
import type { IRunExecutionData, IPinData, IWorkflowBase, IRunData } from 'n8n-workflow'; import type { TestCaseExecution } from '../../databases/entities/test-case-execution.ee'; import type { MockedNodeItem } from '../../databases/entities/test-definition.ee'; import type { TestRunFinalResult } from '../../databases/repositories/test-run.repository.ee'; import type { TestCaseRunMetadata } from '../../evaluation.ee/test-runner/test-runner.service.ee'; export declare function createPinData(workflow: IWorkflowBase, mockedNodes: MockedNodeItem[], executionData: IRunExecutionData, pastWorkflowData?: IWorkflowBase): IPinData; export declare function getPastExecutionTriggerNode(executionData: IRunExecutionData): string | undefined; export declare function getTestRunFinalResult(testCaseExecutions: TestCaseExecution[]): TestRunFinalResult; export declare function formatTestCaseExecutionInputData(originalExecutionData: IRunData, _originalWorkflowData: IWorkflowBase, newExecutionData: IRunData, _newWorkflowData: IWorkflowBase, metadata: TestCaseRunMetadata): { json: { annotations: { vote: import("n8n-workflow").AnnotationVote | null | undefined; tags: Pick<import("../../databases/entities/annotation-tag-entity.ee").AnnotationTagEntity, "id" | "name">[] | undefined; highlightedData: { [k: string]: string; }; }; originalExecution: Record<string, any>; newExecution: Record<string, any>; }; };