You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
492 B

import { ProjectReadItem, ProjectWriteItem, ProjectItemList } from '~/domain/models/project/project'
export type SearchOption = {[key: string]: string | (string | null)[]}
export interface ProjectRepository {
list({ limit, offset, q }: SearchOption): Promise<ProjectItemList>
findById(id: string): Promise<ProjectReadItem>
create(item: ProjectWriteItem): Promise<ProjectReadItem>
update(item: ProjectWriteItem): Promise<void>
bulkDelete(projectIds: number[]): Promise<void>
}