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.

24 lines
816 B

3 years ago
3 years ago
3 years ago
  1. import { ConfigItem, ConfigItemList } from '@/models/config/config-item-list'
  2. export interface ConfigTestResponse {
  3. valid: boolean,
  4. labels: object[]
  5. }
  6. export interface ConfigItemListRepository {
  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. testConfig(projectId: string, item: ConfigItem, text: string): Promise<ConfigTestResponse>
  12. testParameters(item: ConfigItem, text: string): Promise<ConfigTestResponse>
  13. testTemplate(projectId: string, response: any, item: ConfigItem): Promise<ConfigTestResponse>
  14. testMapping(projectId: string, item: ConfigItem, response: any): Promise<ConfigTestResponse>
  15. }