mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(core): Stronger typing for workflow settings (no-changelog) (#5754)
This commit is contained in:
committed by
GitHub
parent
d33a1ac1e9
commit
c9d9069c0e
@@ -1709,8 +1709,21 @@ export interface IWorkflowHooksOptionalParameters {
|
||||
sessionId?: string;
|
||||
}
|
||||
|
||||
export namespace WorkflowSettings {
|
||||
export type CallerPolicy = 'any' | 'none' | 'workflowsFromAList' | 'workflowsFromSameOwner';
|
||||
export type SaveDataExecution = 'DEFAULT' | 'all' | 'none';
|
||||
}
|
||||
|
||||
export interface IWorkflowSettings {
|
||||
[key: string]: IDataObject | string | number | boolean | undefined;
|
||||
timezone?: 'DEFAULT' | string;
|
||||
errorWorkflow?: string;
|
||||
callerIds?: string;
|
||||
callerPolicy?: WorkflowSettings.CallerPolicy;
|
||||
saveDataErrorExecution?: WorkflowSettings.SaveDataExecution;
|
||||
saveDataSuccessExecution?: WorkflowSettings.SaveDataExecution;
|
||||
saveManualExecutions?: 'DEFAULT' | boolean;
|
||||
saveExecutionProgress?: 'DEFAULT' | boolean;
|
||||
executionTimeout?: number;
|
||||
}
|
||||
|
||||
export type LogTypes = 'debug' | 'verbose' | 'info' | 'warn' | 'error';
|
||||
|
||||
Reference in New Issue
Block a user