mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
chore(server): rename domain repositories -> interfaces (#8147)
rename domain repositories
This commit is contained in:
12
server/src/interfaces/move.interface.ts
Normal file
12
server/src/interfaces/move.interface.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user