mirror of
https://github.com/immich-app/immich.git
synced 2025-01-09 21:36:46 +01:00
11 lines
454 B
TypeScript
11 lines
454 B
TypeScript
|
import { AssetStackEntity } from '@app/infra/entities/asset-stack.entity';
|
||
|
|
||
|
export const IAssetStackRepository = 'IAssetStackRepository';
|
||
|
|
||
|
export interface IAssetStackRepository {
|
||
|
create(assetStack: Partial<AssetStackEntity>): Promise<AssetStackEntity>;
|
||
|
update(asset: Pick<AssetStackEntity, 'id'> & Partial<AssetStackEntity>): Promise<AssetStackEntity>;
|
||
|
delete(id: string): Promise<void>;
|
||
|
getById(id: string): Promise<AssetStackEntity | null>;
|
||
|
}
|