ciyidogan commited on
Commit
cd1ce09
·
verified ·
1 Parent(s): bfc6522

Update flare-ui/src/app/services/api.service.ts

Browse files
flare-ui/src/app/services/api.service.ts CHANGED
@@ -33,16 +33,26 @@ export interface API {
33
  last_update_user?: string;
34
  }
35
 
 
 
 
 
 
 
 
 
 
 
36
  export interface ResponseMapping {
37
  variable_name: string;
38
  type: 'str' | 'int' | 'float' | 'bool' | 'date';
39
  json_path: string;
40
- caption: string;
41
  }
42
 
43
  export interface IntentParameter {
44
  name: string;
45
- caption: string;
46
  type: 'str' | 'int' | 'float' | 'bool' | 'date';
47
  required: boolean;
48
  variable_name: string;
@@ -57,7 +67,7 @@ export interface Intent {
57
  caption: string;
58
  locale: string;
59
  detection_prompt: string;
60
- examples: string[];
61
  parameters: IntentParameter[];
62
  action: string;
63
  fallback_timeout_prompt?: string;
 
33
  last_update_user?: string;
34
  }
35
 
36
+ export interface LocalizedCaption {
37
+ locale_code: string;
38
+ caption: string;
39
+ }
40
+
41
+ export interface LocalizedExample {
42
+ locale_code: string;
43
+ example: string;
44
+ }
45
+
46
  export interface ResponseMapping {
47
  variable_name: string;
48
  type: 'str' | 'int' | 'float' | 'bool' | 'date';
49
  json_path: string;
50
+ caption: LocalizedCaption[];
51
  }
52
 
53
  export interface IntentParameter {
54
  name: string;
55
+ caption: LocalizedCaption[];
56
  type: 'str' | 'int' | 'float' | 'bool' | 'date';
57
  required: boolean;
58
  variable_name: string;
 
67
  caption: string;
68
  locale: string;
69
  detection_prompt: string;
70
+ examples: LocalizedExample[];
71
  parameters: IntentParameter[];
72
  action: string;
73
  fallback_timeout_prompt?: string;