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.
21 lines
755 B
21 lines
755 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>
|
|
|
|
approve(projectId: string, docId: number, approved: boolean): Promise<void>
|
|
|
|
confirm(projectId: string, exampleId: number): Promise<void>
|
|
}
|