fix: update assetEditReady event on web

This commit is contained in:
bwees
2026-01-23 11:06:45 -06:00
parent 38bf9a7f9e
commit 5d25b60a0e
2 changed files with 12 additions and 1 deletions

View File

@@ -1912,6 +1912,16 @@ export type SyncAlbumV1 = {
export type SyncAssetDeleteV1 = {
assetId: string;
};
export type SyncAssetEditDeleteV1 = {
assetId: string;
};
export type SyncAssetEditV1 = {
action: AssetEditAction;
assetId: string;
id: string;
parameters: object;
sequence: number;
};
export type SyncAssetExifV1 = {
assetId: string;
city: string | null;

View File

@@ -12,6 +12,7 @@ import {
type MaintenanceStatusResponseDto,
type NotificationDto,
type ServerVersionResponseDto,
type SyncAssetEditV1,
type SyncAssetV1,
} from '@immich/sdk';
import { io, type Socket } from 'socket.io-client';
@@ -41,7 +42,7 @@ export interface Events {
AppRestartV1: (event: AppRestartEvent) => void;
MaintenanceStatusV1: (event: MaintenanceStatusResponseDto) => void;
AssetEditReadyV1: (data: { asset: SyncAssetV1; edits: object }) => void;
AssetEditReadyV1: (data: { asset: SyncAssetV1; edits: SyncAssetEditV1[] }) => void;
}
const websocket: Socket<Events> = io({