mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-01-04 08:15:48 +00:00
18 lines
582 B
TypeScript
18 lines
582 B
TypeScript
export const ICommunicationRepository = 'ICommunicationRepository';
|
|
|
|
export enum CommunicationEvent {
|
|
UPLOAD_SUCCESS = 'on_upload_success',
|
|
ASSET_DELETE = 'on_asset_delete',
|
|
ASSET_TRASH = 'on_asset_trash',
|
|
ASSET_UPDATE = 'on_asset_update',
|
|
ASSET_RESTORE = 'on_asset_restore',
|
|
PERSON_THUMBNAIL = 'on_person_thumbnail',
|
|
SERVER_VERSION = 'on_server_version',
|
|
CONFIG_UPDATE = 'on_config_update',
|
|
}
|
|
|
|
export interface ICommunicationRepository {
|
|
send(event: CommunicationEvent, userId: string, data: any): void;
|
|
broadcast(event: CommunicationEvent, data: any): void;
|
|
}
|