refactor: Move CLI commands types to own dir (no-changelog) (#6658)
refactor: Move CLI commands types to own dir
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
@@ -24,7 +24,7 @@ import type {
|
||||
INodeSpecialCases,
|
||||
IResult,
|
||||
IWorkflowExecutionProgress,
|
||||
} from './Interfaces';
|
||||
} from '../types/commands.types';
|
||||
|
||||
const re = /\d+/;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user