refactor: Move CLI commands types to own dir (no-changelog) (#6658)

refactor: Move CLI commands types to own dir
This commit is contained in:
Iván Ovejero
2023-07-13 10:10:08 +02:00
committed by GitHub
parent c35f2b97b3
commit 3e07ffa73e
2 changed files with 1 additions and 1 deletions

View File

@@ -1,50 +0,0 @@
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[];
}

View File

@@ -24,7 +24,7 @@ import type {
INodeSpecialCases,
IResult,
IWorkflowExecutionProgress,
} from './Interfaces';
} from '../types/commands.types';
const re = /\d+/;