mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 17:24:56 +03:00
14 lines
537 B
TypeScript
14 lines
537 B
TypeScript
import { MoveEntity } from 'src/entities/move.entity';
|
|
import { PathType } from 'src/enum';
|
|
|
|
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>;
|
|
}
|