refactor(server): remove has asset (#10891)

This commit is contained in:
Jason Rasmussen 2024-07-05 15:10:11 -04:00 committed by GitHub
parent cf88f4b6f8
commit 53d4a5268b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 5 additions and 63 deletions

View file

@ -14,21 +14,10 @@ export interface AlbumInfoOptions {
withAssets: boolean;
}
export interface AlbumAsset {
albumId: string;
assetId: string;
}
export interface AlbumAssets {
albumId: string;
assetIds: string[];
}
export interface IAlbumRepository extends IBulkAsset {
getById(id: string, options: AlbumInfoOptions): Promise<AlbumEntity | null>;
getByIds(ids: string[]): Promise<AlbumEntity[]>;
getByAssetId(ownerId: string, assetId: string): Promise<AlbumEntity[]>;
hasAsset(asset: AlbumAsset): Promise<boolean>;
removeAsset(assetId: string): Promise<void>;
getMetadataForIds(ids: string[]): Promise<AlbumAssetCount[]>;
getInvalidThumbnail(): Promise<string[]>;