mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
39 lines
805 B
TypeScript
39 lines
805 B
TypeScript
import type {
|
|
ITriggerResponse,
|
|
IWorkflowSettings as IWorkflowSettingsWorkflow,
|
|
ValidationResult,
|
|
} from 'n8n-workflow';
|
|
|
|
export type Class<T = object, A extends unknown[] = unknown[]> = new (...args: A) => T;
|
|
|
|
export interface IResponseError extends Error {
|
|
statusCode?: number;
|
|
}
|
|
|
|
export interface IWorkflowSettings extends IWorkflowSettingsWorkflow {
|
|
errorWorkflow?: string;
|
|
timezone?: string;
|
|
saveManualRuns?: boolean;
|
|
}
|
|
|
|
export interface IWorkflowData {
|
|
triggerResponses?: ITriggerResponse[];
|
|
}
|
|
|
|
export namespace n8n {
|
|
export interface PackageJson {
|
|
name: string;
|
|
version: string;
|
|
n8n?: {
|
|
credentials?: string[];
|
|
nodes?: string[];
|
|
};
|
|
author?: {
|
|
name?: string;
|
|
email?: string;
|
|
};
|
|
}
|
|
}
|
|
|
|
export type ExtendedValidationResult = ValidationResult & { fieldName?: string };
|