mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
b6de910cbe
This change ensures that things like `encryptionKey` and `instanceId` are always available directly where they are needed, instead of passing them around throughout the code.
45 lines
905 B
TypeScript
45 lines
905 B
TypeScript
import type {
|
|
IPollResponse,
|
|
ITriggerResponse,
|
|
IWorkflowSettings as IWorkflowSettingsWorkflow,
|
|
ValidationResult,
|
|
} from 'n8n-workflow';
|
|
|
|
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 };
|