oro-sdk-apis 5.15.3 → 5.15.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/models/workflow.ts
CHANGED
@@ -198,6 +198,16 @@ export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>, O = un
|
|
198
198
|
*/
|
199
199
|
options?: O
|
200
200
|
messages?: string
|
201
|
+
/**
|
202
|
+
* Overrides the read only ability of the question's answer
|
203
|
+
* populated by extended workflow feature
|
204
|
+
*/
|
205
|
+
readOnly?: boolean
|
206
|
+
/**
|
207
|
+
* Overrides the fillable default of the question's answer
|
208
|
+
* populated by extended workflow feature
|
209
|
+
*/
|
210
|
+
defaultEmpty?: boolean
|
201
211
|
}
|
202
212
|
|
203
213
|
export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends GenericQuestionData<T, A> {
|
@@ -209,25 +219,25 @@ export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>>
|
|
209
219
|
export declare type QuestionData =
|
210
220
|
| GenericQuestionData<'title' | 'paragraph' | 'checkbox', void>
|
211
221
|
| GenericQuestionData<
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
+
| 'text'
|
223
|
+
| 'text-area'
|
224
|
+
| 'date'
|
225
|
+
| 'number'
|
226
|
+
| 'images'
|
227
|
+
| 'body-parts'
|
228
|
+
| 'pharmacy-picker'
|
229
|
+
| 'online-pharmacy-picker'
|
230
|
+
| 'place-address'
|
231
|
+
>
|
222
232
|
| GenericQuestionData<'images-alias', IndexedData<ChoiceInputData>, ImagesAliasQuestionOptions>
|
223
233
|
| GenericQuestionData<
|
224
|
-
|
225
|
-
|
226
|
-
|
234
|
+
'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group',
|
235
|
+
IndexedData<ChoiceInputData>
|
236
|
+
>
|
227
237
|
| GroupedGenericQuestionData<
|
228
|
-
|
229
|
-
|
230
|
-
|
238
|
+
'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage' | 'hair-loss-other',
|
239
|
+
IndexedData<RadioInputData>
|
240
|
+
>
|
231
241
|
| GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>>
|
232
242
|
| GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
|
233
243
|
| GroupedGenericQuestionData<'tile-radio', IndexedData<TileRadioData>>
|
@@ -283,6 +293,31 @@ export interface WorkflowData {
|
|
283
293
|
* (optional) rules to hide certain payment plans depending on the workflow answers
|
284
294
|
*/
|
285
295
|
hidePlanRules?: HidePlanRule[]
|
296
|
+
|
297
|
+
/**
|
298
|
+
* (optional) extension of another workflow referenced by uuid
|
299
|
+
*/
|
300
|
+
extendingWorkflow?: string
|
301
|
+
|
302
|
+
/**
|
303
|
+
* (optional) rules for the extension of another workflow
|
304
|
+
*/
|
305
|
+
extendingRules?: IndexedData<WorkflowExtendingRules>
|
306
|
+
}
|
307
|
+
|
308
|
+
export interface WorkflowExtendingRules {
|
309
|
+
/**
|
310
|
+
* Whether the field becomes read only in the extended workflow
|
311
|
+
*/
|
312
|
+
readOnly?: boolean,
|
313
|
+
/**
|
314
|
+
* Whether the field becomes deselected/empty by default in the extended workflow
|
315
|
+
*/
|
316
|
+
defaultEmpty?: boolean,
|
317
|
+
/**
|
318
|
+
* Whether the field should be removed altogether in the extended workflow
|
319
|
+
*/
|
320
|
+
remove?: boolean,
|
286
321
|
}
|
287
322
|
|
288
323
|
export interface HidePlanRule {
|