mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 17:23:21 +03:00
10
server/src/interfaces/asset-stack.repository.ts
Normal file
10
server/src/interfaces/asset-stack.repository.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { AssetStackEntity } from 'src/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>;
|
||||
}
|
||||
Reference in New Issue
Block a user