mirror of
https://github.com/immich-app/immich.git
synced 2025-12-01 03:39:43 +09:00
refactor(server): event names (#12084)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user