refactor(core): Decouple lifecycle events from internal hooks (no-changelog) (#10305)

This commit is contained in:
Iván Ovejero
2024-08-07 16:09:42 +02:00
committed by GitHub
parent b232831f18
commit 9b977e80f6
11 changed files with 129 additions and 119 deletions

View File

@@ -13,10 +13,35 @@ export type UserLike = {
};
export type RelayEventMap = {
// #region Server
// #region Lifecycle
'server-started': {};
'session-started': {
pushRef?: string;
};
'instance-stopped': {};
'instance-owner-setup': {
userId: string;
};
'first-production-workflow-succeeded': {
projectId: string;
workflowId: string;
userId: string;
};
'first-workflow-data-loaded': {
userId: string;
workflowId: string;
nodeType: string;
nodeId: string;
credentialType?: string;
credentialId?: string;
};
// #endregion
// #region Workflow