mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
47 lines
994 B
TypeScript
47 lines
994 B
TypeScript
import type {
|
|
IPollResponse,
|
|
ITriggerResponse,
|
|
IWorkflowSettings as IWorkflowSettingsWorkflow,
|
|
ValidationResult,
|
|
} from 'n8n-workflow';
|
|
|
|
export type Class<T = object, A extends unknown[] = unknown[]> = new (...args: A) => T;
|
|
|
|
export interface IProcessMessage {
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
data?: any;
|
|
type: string;
|
|
}
|
|
|
|
export interface IResponseError extends Error {
|
|
statusCode?: number;
|
|
}
|
|
|
|
export interface IWorkflowSettings extends IWorkflowSettingsWorkflow {
|
|
errorWorkflow?: string;
|
|
timezone?: string;
|
|
saveManualRuns?: boolean;
|
|
}
|
|
|
|
export interface IWorkflowData {
|
|
pollResponses?: IPollResponse[];
|
|
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 = Partial<ValidationResult> & { fieldName?: string };
|