mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
11 lines
409 B
TypeScript
11 lines
409 B
TypeScript
|
|
import { AssetEntity, AssetType } from '@app/infra/db/entities';
|
||
|
|
|
||
|
|
export const IAssetRepository = 'IAssetRepository';
|
||
|
|
|
||
|
|
export interface IAssetRepository {
|
||
|
|
deleteAll(ownerId: string): Promise<void>;
|
||
|
|
getAll(): Promise<AssetEntity[]>;
|
||
|
|
save(asset: Partial<AssetEntity>): Promise<AssetEntity>;
|
||
|
|
findLivePhotoMatch(livePhotoCID: string, type: AssetType, otherAssetId: string): Promise<AssetEntity | null>;
|
||
|
|
}
|