oro-sdk-apis 1.50.0 → 1.53.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/practice.d.ts +24 -2
- package/dist/models/workflow.d.ts +7 -1
- package/dist/oro-sdk-apis.cjs.development.js +2 -0
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +2 -0
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/practice.ts +33 -1
- package/src/models/workflow.ts +9 -1
package/package.json
CHANGED
package/src/models/practice.ts
CHANGED
@@ -148,6 +148,8 @@ export enum PracticeConfigKind {
|
|
148
148
|
PractitionerConsultList = 'PractitionerConsultList',
|
149
149
|
PractitionerSearch = 'PractitionerSearch',
|
150
150
|
PracticeRegisterWalkthrough = 'PracticeRegisterWalkthrough',
|
151
|
+
PracticeExamsAndResults = 'PracticeExamsAndResults',
|
152
|
+
PracticeLayout = 'PracticeLayout',
|
151
153
|
}
|
152
154
|
|
153
155
|
/**
|
@@ -375,6 +377,32 @@ export type PracticeConfigPracticeRegisterWalkthrough = PracticeConfig<
|
|
375
377
|
}
|
376
378
|
>
|
377
379
|
|
380
|
+
/**
|
381
|
+
* This config is used for all configs related to the Exams and Results module
|
382
|
+
*/
|
383
|
+
export type PracticeConfigPracticeExamsAndResults = PracticeConfig<
|
384
|
+
PracticeConfigKind.PracticeExamsAndResults,
|
385
|
+
{
|
386
|
+
/**
|
387
|
+
* If true, then show the deprecated URL prescription pad
|
388
|
+
*/
|
389
|
+
showUrlPrescriptionPad?: boolean
|
390
|
+
}
|
391
|
+
>
|
392
|
+
|
393
|
+
/**
|
394
|
+
* This config is used for all configs related to the Layout of the app (Navbar, Footer, etc)
|
395
|
+
*/
|
396
|
+
export type PracticeConfigPracticeLayout = PracticeConfig<
|
397
|
+
PracticeConfigKind.PracticeLayout,
|
398
|
+
{
|
399
|
+
/**
|
400
|
+
* If true, then show the FAQ link in the Navbar
|
401
|
+
*/
|
402
|
+
showFaqLink?: boolean
|
403
|
+
}
|
404
|
+
>
|
405
|
+
|
378
406
|
export type PracticeConfigs =
|
379
407
|
| PracticeConfigPractitionerSearch
|
380
408
|
| PracticeConfigPractitionerConsultList
|
@@ -388,6 +416,8 @@ export type PracticeConfigs =
|
|
388
416
|
| PracticeConfigPracticeConfigExample // Here for integration tests only
|
389
417
|
| PracticeConfigPracticeConsultTabs
|
390
418
|
| PracticeConfigPatientConsultCard
|
419
|
+
| PracticeConfigPracticeExamsAndResults
|
420
|
+
| PracticeConfigPracticeLayout
|
391
421
|
|
392
422
|
export interface PracticeWorkflow {
|
393
423
|
id?: number ///optional for insertion
|
@@ -603,6 +633,8 @@ export interface HydratedPracticeConfigs {
|
|
603
633
|
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
|
604
634
|
[PracticeConfigKind.PractitionerSearch]?: PracticeConfigPractitionerSearch
|
605
635
|
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough
|
636
|
+
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults
|
637
|
+
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout
|
606
638
|
}
|
607
639
|
|
608
640
|
export interface Practice {
|
@@ -684,4 +716,4 @@ export interface PracticeSecret {
|
|
684
716
|
* It's decrypted on the fly when returned by the api.
|
685
717
|
*/
|
686
718
|
payload: string
|
687
|
-
}
|
719
|
+
}
|
package/src/models/workflow.ts
CHANGED
@@ -69,6 +69,12 @@ export interface LanguagePickerData extends ChoiceInputData {
|
|
69
69
|
locale: string
|
70
70
|
}
|
71
71
|
|
72
|
+
export interface TileRadioData extends ChoiceInputData {
|
73
|
+
fullText?: string
|
74
|
+
image?: string
|
75
|
+
description?: string
|
76
|
+
}
|
77
|
+
|
72
78
|
export interface EntryData {
|
73
79
|
id?: number
|
74
80
|
label?: string
|
@@ -181,6 +187,7 @@ export interface GenericQuestionData<T, A = IndexedData<ChoiceInputData>, O = un
|
|
181
187
|
* Options to forward to the workflow component
|
182
188
|
*/
|
183
189
|
options?: O
|
190
|
+
messages?: string
|
184
191
|
}
|
185
192
|
|
186
193
|
export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>> extends GenericQuestionData<T, A> {
|
@@ -208,11 +215,12 @@ export declare type QuestionData =
|
|
208
215
|
IndexedData<ChoiceInputData>
|
209
216
|
>
|
210
217
|
| GroupedGenericQuestionData<
|
211
|
-
'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage',
|
218
|
+
'radio' | 'hair-selector-women' | 'hair-selector-men' | 'hair-loss-stage' | 'hair-loss-other',
|
212
219
|
IndexedData<RadioInputData>
|
213
220
|
>
|
214
221
|
| GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>>
|
215
222
|
| GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
|
223
|
+
| GroupedGenericQuestionData<'tile-radio', IndexedData<TileRadioData>>
|
216
224
|
|
217
225
|
export interface FieldData {
|
218
226
|
type: 'field'
|