import { Insertable, Updateable } from 'kysely'; import { MoveHistory } from 'src/db'; import { MoveEntity } from 'src/entities/move.entity'; import { PathType } from 'src/enum'; export const IMoveRepository = 'IMoveRepository'; export type MoveCreate = Pick & Partial; export interface IMoveRepository { create(entity: Insertable): Promise; getByEntity(entityId: string, pathType: PathType): Promise; update(id: string, entity: Updateable): Promise; delete(id: string): Promise; }