immich/server/src/interfaces/trash.interface.ts
2025-01-10 18:48:21 -05:00

8 lines
286 B
TypeScript

export const ITrashRepository = 'ITrashRepository';
export interface ITrashRepository {
empty(userId: string): Promise<number>;
restore(userId: string): Promise<number>;
restoreAll(assetIds: string[]): Promise<number>;
getDeletedIds(): AsyncIterableIterator<{ id: string }>;
}