mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor(server): event names (#12084)
This commit is contained in:
parent
aac6a4b052
commit
0be3c4472f
16 changed files with 55 additions and 54 deletions
|
|
@ -6,19 +6,19 @@ export const IEventRepository = 'IEventRepository';
|
|||
|
||||
type EmitEventMap = {
|
||||
// app events
|
||||
onBootstrap: ['api' | 'microservices'];
|
||||
onShutdown: [];
|
||||
'app.bootstrap': ['api' | 'microservices'];
|
||||
'app.shutdown': [];
|
||||
|
||||
// config events
|
||||
onConfigUpdate: [{ newConfig: SystemConfig; oldConfig: SystemConfig }];
|
||||
onConfigValidate: [{ newConfig: SystemConfig; oldConfig: SystemConfig }];
|
||||
'config.update': [{ newConfig: SystemConfig; oldConfig: SystemConfig }];
|
||||
'config.validate': [{ newConfig: SystemConfig; oldConfig: SystemConfig }];
|
||||
|
||||
// album events
|
||||
onAlbumUpdate: [{ id: string; updatedBy: string }];
|
||||
onAlbumInvite: [{ id: string; userId: string }];
|
||||
'album.update': [{ id: string; updatedBy: string }];
|
||||
'album.invite': [{ id: string; userId: string }];
|
||||
|
||||
// user events
|
||||
onUserSignup: [{ notify: boolean; id: string; tempPassword?: string }];
|
||||
'user.signup': [{ notify: boolean; id: string; tempPassword?: string }];
|
||||
};
|
||||
|
||||
export type EmitEvent = keyof EmitEventMap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue