mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
19 lines
678 B
19 lines
678 B
import { ExampleItem, ExampleItemList } from '~/domain/models/example/example'
|
|
|
|
export type SearchOption = { [key: string]: string | (string | null)[] }
|
|
|
|
export interface ExampleRepository {
|
|
list(projectId: string, { limit, offset, q, isChecked }: SearchOption): Promise<ExampleItemList>
|
|
|
|
create(projectId: string, item: ExampleItem): Promise<ExampleItem>
|
|
|
|
update(projectId: string, item: ExampleItem): Promise<ExampleItem>
|
|
|
|
bulkDelete(projectId: string, ids: number[]): Promise<void>
|
|
|
|
deleteAll(projectId: string): Promise<void>
|
|
|
|
findById(projectId: string, exampleId: number): Promise<ExampleItem>
|
|
|
|
confirm(projectId: string, exampleId: number): Promise<void>
|
|
}
|