mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-01-06 01:05:49 +00:00
13 lines
505 B
TypeScript
13 lines
505 B
TypeScript
import { MoveEntity, PathType } from '@app/infra/entities';
|
|
|
|
export const IMoveRepository = 'IMoveRepository';
|
|
|
|
export type MoveCreate = Pick<MoveEntity, 'oldPath' | 'newPath' | 'entityId' | 'pathType'> & Partial<MoveEntity>;
|
|
|
|
export interface IMoveRepository {
|
|
create(entity: MoveCreate): Promise<MoveEntity>;
|
|
getByEntity(entityId: string, pathType: PathType): Promise<MoveEntity | null>;
|
|
update(entity: Partial<MoveEntity>): Promise<MoveEntity>;
|
|
delete(move: MoveEntity): Promise<MoveEntity>;
|
|
}
|