UNPKG

n8n

Version:

n8n Workflow Automation Tool

10 lines (9 loc) 570 B
import type { TestCaseExecutionDto, TestRunSummaryDto } from '@n8n/api-types'; import type { TestCaseExecution, TestRun } from '@n8n/db'; type TestRunSummarySource = Pick<TestRun, 'id' | 'status' | 'runAt' | 'completedAt' | 'metrics' | 'errorCode' | 'errorDetails' | 'createdAt' | 'updatedAt'> & { finalResult: TestRun['finalResult']; testCaseCount: number; }; export declare function toTestRunSummaryDto(run: TestRunSummarySource): TestRunSummaryDto; export declare function toTestCaseExecutionDto(testCase: TestCaseExecution): TestCaseExecutionDto; export {};