oro-sdk-apis 1.47.0 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.47.0",
2
+ "version": "1.50.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -54,4 +54,4 @@
54
54
  "buffer": "^6.0.3",
55
55
  "hash.js": "^1.1.7"
56
56
  }
57
- }
57
+ }
@@ -214,7 +214,6 @@ export type PracticeConfigPracticeConsultTabs = PracticeConfig<
214
214
  { hideDxTx?: boolean }
215
215
  >
216
216
 
217
-
218
217
  /**
219
218
  * This type is for test (do not remove without updating the integration tests)
220
219
  */
@@ -609,6 +608,7 @@ export interface HydratedPracticeConfigs {
609
608
  export interface Practice {
610
609
  uuid: string
611
610
  name: string
611
+ shortName: string
612
612
  countryOperating: string
613
613
  urlPractice: string
614
614
  urlLinkedPage?: string
@@ -632,6 +632,7 @@ export interface Practice {
632
632
  txtRegistrationID?: string
633
633
  txtLegalInfos?: string
634
634
  txtDefaultTransmissionDriver?: string
635
+ txtDefaultTransmissionAddress?: string
635
636
  accounts?: PracticeAccount[]
636
637
  configs?: HydratedPracticeConfigs
637
638
  }
@@ -683,4 +684,4 @@ export interface PracticeSecret {
683
684
  * It's decrypted on the fly when returned by the api.
684
685
  */
685
686
  payload: string
686
- }
687
+ }
@@ -78,9 +78,45 @@ export interface EntryData {
78
78
  summaryHidden?: boolean
79
79
  className?: string
80
80
  /**
81
- * This field represents a list of `selectedAnswers` that must be set for this entry to be displayed.
81
+ * This field represents a list of `selectedAnswers` that must be set for this entry to be displayed using the followng logical combination of rules:
82
+ *
83
+ * #### Single string
84
+ *
85
+ * ```
86
+ * // Required: rule1
87
+ * rules: rule1
88
+ * ```
89
+ *
90
+ * #### Array of strings (AND is applied between statements):
91
+ *
92
+ * ```
93
+ * // Required: rule1 AND rule2
94
+ * rules: [ rule1, rule2 ]
95
+ * ```
96
+ *
97
+ * #### Array of arrays of strings (OR is applied between inner arrays. AND is applied between inner arrays statements)
98
+ *
99
+ * ```
100
+ * // Required: rule1 OR rule2
101
+ * rules: [
102
+ * [ rule1 ],
103
+ * [ rule2 ]
104
+ * ]
105
+ *
106
+ * // Required: rule1 OR (rule2 AND rule3)
107
+ * rules: [
108
+ * [ rule1 ],
109
+ * [ rule2, rule3 ]
110
+ * ]
111
+ *
112
+ * // THIS IS FORBIDDEN
113
+ * rules: [
114
+ * rule1, // <-- THIS IS FORBIDDEN. Instead use [ rule1 ]
115
+ * [ rule2, rule3 ]
116
+ * ]
117
+ * ```
82
118
  */
83
- triggers?: string[]
119
+ triggers?: string[][] | string[] | string
84
120
  /**
85
121
  * This field represents a list of `StateTrigger` that must be fulfilled for this entry to be displayed.
86
122
  */
@@ -130,7 +166,7 @@ export interface ImagesAliasQuestionOptions {
130
166
  /**
131
167
  * Should display photo guide instructions or not
132
168
  */
133
- photoGuide?: boolean
169
+ photoGuide?: boolean
134
170
  }
135
171
 
136
172
  export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>, O = undefined> extends EntryData {
@@ -167,12 +203,14 @@ export declare type QuestionData =
167
203
  | 'place-address'
168
204
  >
169
205
  | GenericQuestionData<'images-alias', IndexedData<ChoiceInputData>, ImagesAliasQuestionOptions>
170
- | GenericQuestionData<'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group', IndexedData<ChoiceInputData>>
171
- | GroupedGenericQuestionData<'radio'
172
- | 'hair-selector-women'
173
- | 'hair-selector-men'
174
- | 'hair-loss-stage',
175
- IndexedData<RadioInputData>>
206
+ | GenericQuestionData<
207
+ 'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group',
208
+ IndexedData<ChoiceInputData>
209
+ >
210
+ | GroupedGenericQuestionData<
211
+ 'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage',
212
+ IndexedData<RadioInputData>
213
+ >
176
214
  | GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>>
177
215
  | GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
178
216
 
@@ -258,4 +296,4 @@ export interface PopulatedWorkflowData {
258
296
  workflowCreatedAt: string // The workflow version
259
297
  locale?: string
260
298
  fields: Record<string, PopulatedWorkflowField> // key corresponds to the QuestionData key in the workflow
261
- }
299
+ }