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
477 B

2 years ago
  1. import { LabelItem } from '~/domain/models/label/label'
  2. export interface LabelRepository {
  3. list(projectId: string): Promise<LabelItem[]>
  4. findById(projectId: string, labelId: number): Promise<LabelItem>
  5. create(projectId: string, item: LabelItem): Promise<LabelItem>
  6. update(projectId: string, item: LabelItem): Promise<LabelItem>
  7. bulkDelete(projectId: string, labelIds: number[]): Promise<void>
  8. uploadFile(projectId: string, payload: FormData): Promise<void>
  9. }