mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 17:14:05 -08:00
49c85a1df8
* Improve code health Fix TS typos in local variables Fix CSS typos in local styles Fix typos in comments Fix typos in strings * Fix order of n8n setup sections in CONTRIBUTING.md
67 lines
1.3 KiB
TypeScript
67 lines
1.3 KiB
TypeScript
interface IResult {
|
|
totalWorkflows: number;
|
|
summary: {
|
|
failedExecutions: number;
|
|
successfulExecutions: number;
|
|
warningExecutions: number;
|
|
errors: IExecutionError[];
|
|
warnings: IExecutionError[];
|
|
};
|
|
coveredNodes: {
|
|
[nodeType: string]: number;
|
|
};
|
|
executions: IExecutionResult[];
|
|
}
|
|
interface IExecutionResult {
|
|
workflowId: string | number;
|
|
workflowName: string;
|
|
executionTime: number; // Given in seconds with decimals for milliseconds
|
|
finished: boolean;
|
|
executionStatus: ExecutionStatus;
|
|
error?: string;
|
|
changes?: string;
|
|
coveredNodes: {
|
|
[nodeType: string]: number;
|
|
};
|
|
}
|
|
|
|
interface IExecutionError {
|
|
workflowId: string | number;
|
|
error: string;
|
|
}
|
|
|
|
interface IWorkflowExecutionProgress {
|
|
workflowId: string | number;
|
|
status: ExecutionStatus;
|
|
}
|
|
|
|
interface INodeSpecialCases {
|
|
[nodeName: string]: INodeSpecialCase;
|
|
}
|
|
|
|
interface INodeSpecialCase {
|
|
ignoredProperties?: string[];
|
|
capResults?: number;
|
|
keepOnlyProperties?: string[];
|
|
}
|
|
|
|
type ExecutionStatus = 'success' | 'error' | 'warning' | 'running';
|
|
|
|
declare module 'json-diff' {
|
|
interface IDiffOptions {
|
|
keysOnly?: boolean;
|
|
}
|
|
export function diff(obj1: unknown, obj2: unknown, diffOptions: IDiffOptions): string;
|
|
}
|
|
|
|
type SmtpConfig = {
|
|
host: string;
|
|
port: number;
|
|
secure: boolean;
|
|
auth: {
|
|
user: string;
|
|
pass: string;
|
|
};
|
|
sender: string;
|
|
};
|