oro-sdk-apis 4.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/models/practice.d.ts +18 -2
- package/dist/oro-sdk-apis.cjs.development.js +1320 -441
- 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 +1344 -430
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/practice.ts +22 -0
package/package.json
CHANGED
package/src/models/practice.ts
CHANGED
@@ -152,6 +152,7 @@ export enum PracticeConfigKind {
|
|
152
152
|
PracticeLayout = 'PracticeLayout',
|
153
153
|
PracticeAddressField = 'PracticeAddressField',
|
154
154
|
PracticeDiagnosisAndTreatment = 'PracticeDiagnosisAndTreatment',
|
155
|
+
PracticeInfoLetterDiscount = 'PracticeInfoLetterDiscount',
|
155
156
|
}
|
156
157
|
|
157
158
|
/**
|
@@ -439,6 +440,25 @@ export type PracticeConfigPracticeDiagnosisAndTreatment = PracticeConfig<
|
|
439
440
|
}
|
440
441
|
>
|
441
442
|
|
443
|
+
/**
|
444
|
+
* This config is used to set a discount code in case the info letter is accepted by the patient
|
445
|
+
*/
|
446
|
+
export type PracticeConfigPracticeInfoLetterDiscount = PracticeConfig<
|
447
|
+
PracticeConfigKind.PracticeInfoLetterDiscount,
|
448
|
+
{
|
449
|
+
/**
|
450
|
+
* The discount code to be applied when the info letter is accepted
|
451
|
+
*/
|
452
|
+
discountCode?: string
|
453
|
+
|
454
|
+
/**
|
455
|
+
* Show the info letter subscription without a Discount code before the patient confirms his email,
|
456
|
+
* if he confirms his email but still didn't check the subscription, then display a discount code for subscribing
|
457
|
+
*/
|
458
|
+
promptInfoLetterBeforeEmailConfirmed?: boolean
|
459
|
+
}
|
460
|
+
>
|
461
|
+
|
442
462
|
export type PracticeConfigs =
|
443
463
|
| PracticeConfigPractitionerSearch
|
444
464
|
| PracticeConfigPractitionerConsultList
|
@@ -456,6 +476,7 @@ export type PracticeConfigs =
|
|
456
476
|
| PracticeConfigPracticeLayout
|
457
477
|
| PracticeConfigPracticeAddressField
|
458
478
|
| PracticeConfigPracticeDiagnosisAndTreatment
|
479
|
+
| PracticeConfigPracticeInfoLetterDiscount
|
459
480
|
|
460
481
|
export interface PracticeWorkflow {
|
461
482
|
id?: number ///optional for insertion
|
@@ -719,6 +740,7 @@ export interface HydratedPracticeConfigs {
|
|
719
740
|
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout
|
720
741
|
[PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField
|
721
742
|
[PracticeConfigKind.PracticeDiagnosisAndTreatment]?: PracticeConfigPracticeDiagnosisAndTreatment
|
743
|
+
[PracticeConfigKind.PracticeInfoLetterDiscount]?: PracticeConfigPracticeInfoLetterDiscount
|
722
744
|
}
|
723
745
|
|
724
746
|
export interface Practice {
|