mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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.
18 lines
545 B
18 lines
545 B
import { ConfigItem, ConfigItemList } from '@/models/config/config-item-list'
|
|
|
|
export interface ConfigTestResponse {
|
|
valid: boolean,
|
|
labels?: object[]
|
|
}
|
|
|
|
export interface ConfigItemListRepository {
|
|
list(projectId: string): Promise<ConfigItemList>
|
|
|
|
create(projectId: string, item: ConfigItem): Promise<ConfigItem>
|
|
|
|
delete(projectId: string, itemId: number): Promise<void>
|
|
|
|
update(projectId: string, item: ConfigItem): Promise<ConfigItem>
|
|
|
|
testConfig(projectId: string, item: ConfigItem, text: string): Promise<ConfigTestResponse>
|
|
}
|