Files
Automata/packages/cli/src/commands/Interfaces.ts
Iván Ovejero d6b2ae0255 refactor: Stop using .d.ts files for type-collection files (no-changelog) (#6634)
refactor: Stop using `.d.ts` files for type-collection files
2023-07-10 19:35:34 +02:00

51 lines
1.0 KiB
TypeScript

import type { ExecutionStatus } from 'n8n-workflow';
export interface IResult {
totalWorkflows: number;
slackMessage: string;
summary: {
failedExecutions: number;
successfulExecutions: number;
warningExecutions: number;
errors: IExecutionError[];
warnings: IExecutionError[];
};
coveredNodes: {
[nodeType: string]: number;
};
executions: IExecutionResult[];
}
export interface IExecutionResult {
workflowId: string;
workflowName: string;
executionTime: number; // Given in seconds with decimals for milliseconds
finished: boolean;
executionStatus: ExecutionStatus;
error?: string;
changes?: object;
coveredNodes: {
[nodeType: string]: number;
};
}
interface IExecutionError {
workflowId: string;
error: string;
}
export interface IWorkflowExecutionProgress {
workflowId: string;
status: ExecutionStatus;
}
export interface INodeSpecialCases {
[nodeName: string]: INodeSpecialCase;
}
export interface INodeSpecialCase {
ignoredProperties?: string[];
capResults?: number;
keepOnlyProperties?: string[];
}