Tweaks to diagnostic events (#2544)

* Tweaks to events

* more tweaks and fixes
This commit is contained in:
Ahsan Virani
2021-12-10 15:29:05 +01:00
committed by GitHub
parent 75c7b5ed97
commit 2125f25791
14 changed files with 142 additions and 50 deletions

View File

@@ -314,7 +314,10 @@ export interface IDiagnosticInfo {
export interface IInternalHooksClass {
onN8nStop(): Promise<void>;
onServerStarted(diagnosticInfo: IDiagnosticInfo): Promise<unknown[]>;
onServerStarted(
diagnosticInfo: IDiagnosticInfo,
firstWorkflowCreatedAt?: Date,
): Promise<unknown[]>;
onPersonalizationSurveySubmitted(answers: IPersonalizationSurveyAnswers): Promise<void>;
onWorkflowCreated(workflow: IWorkflowBase): Promise<void>;
onWorkflowDeleted(workflowId: string): Promise<void>;