mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
16 lines
552 B
TypeScript
16 lines
552 B
TypeScript
import { AssetEntity, AssetType } from '@app/infra/db/entities';
|
|
|
|
export interface AssetSearchOptions {
|
|
isVisible?: boolean;
|
|
}
|
|
|
|
export const IAssetRepository = 'IAssetRepository';
|
|
|
|
export interface IAssetRepository {
|
|
getByIds(ids: string[]): Promise<AssetEntity[]>;
|
|
deleteAll(ownerId: string): Promise<void>;
|
|
getAll(options?: AssetSearchOptions): Promise<AssetEntity[]>;
|
|
save(asset: Partial<AssetEntity>): Promise<AssetEntity>;
|
|
findLivePhotoMatch(livePhotoCID: string, otherAssetId: string, type: AssetType): Promise<AssetEntity | null>;
|
|
}
|