Introduce FE external hooks (#1332)

*  Introduce FE external hooks

*  update hooks

*  add data from frontend settings to hooks

* re-organize and update

* cleanup

* 👌

*  cleanup workflowSave mixin, add events

* avoid alert on new workflow save as

*  update workflow active events

* rename externalhooks method

*  Rename frontend hooks

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Ahsan Virani
2021-01-19 23:48:30 +01:00
committed by GitHub
parent fd1f60bbbe
commit 4d446229c3
12 changed files with 85 additions and 113 deletions

View File

@@ -117,6 +117,10 @@ export interface INodeTypesMaxCount {
};
}
export interface IExternalHooks {
run(eventName: string, metadata?: IDataObject): Promise<void>;
}
export interface IRestApi {
getActiveWorkflows(): Promise<string[]>;
getActivationError(id: string): Promise<IActivationError | undefined >;
@@ -406,6 +410,9 @@ export interface IN8nUISettings {
};
urlBaseWebhook: string;
versionCli: string;
n8nMetadata?: {
[key: string]: string | number | undefined;
};
}
export interface IWorkflowSettings extends IWorkflowSettingsWorkflow {