mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
b588a87d4a
rename domain repositories
12 lines
510 B
TypeScript
12 lines
510 B
TypeScript
import { MoveEntity, PathType } from 'src/entities/move.entity';
|
|
|
|
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>;
|
|
}
|