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.

22 lines
735 B

2 years ago
3 years ago
  1. import { ConfigItem, ConfigItemList } from '~/domain/models/autoLabeling/config'
  2. export interface ConfigTestResponse {
  3. valid: boolean
  4. labels: object[]
  5. }
  6. export interface ConfigRepository {
  7. list(projectId: string): Promise<ConfigItemList>
  8. create(projectId: string, item: ConfigItem): Promise<ConfigItem>
  9. delete(projectId: string, itemId: number): Promise<void>
  10. update(projectId: string, item: ConfigItem): Promise<ConfigItem>
  11. testParameters(projectId: string, item: ConfigItem, text: string): Promise<ConfigTestResponse>
  12. testTemplate(projectId: string, response: any, item: ConfigItem): Promise<ConfigTestResponse>
  13. testMapping(projectId: string, item: ConfigItem, response: any): Promise<ConfigTestResponse>
  14. }