mirror of
https://github.com/immich-app/immich.git
synced 2025-01-22 11:42:46 +01:00
b588a87d4a
rename domain repositories
10 lines
447 B
TypeScript
10 lines
447 B
TypeScript
import { AssetStackEntity } from 'src/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>;
|
|
}
|