oro-sdk-apis 1.54.1 → 1.55.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/diagnosis.d.ts +4 -1
- package/dist/models/practice.d.ts +22 -4
- package/dist/oro-sdk-apis.cjs.development.js +822 -399
- 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 +829 -400
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +5 -2
- package/src/models/practice.ts +26 -2
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
@@ -119,7 +119,10 @@ export interface TreatmentAndDrugPrescription {
|
|
119
119
|
notes?: string
|
120
120
|
status: PlanStatus
|
121
121
|
uuidTreatmentPlan: string
|
122
|
-
|
122
|
+
/**
|
123
|
+
* this field is used to store the datetime when the patient accepted or refused the prescription
|
124
|
+
*/
|
125
|
+
decidedAt?: string
|
123
126
|
createdAt: string
|
124
127
|
}
|
125
128
|
export interface TreatmentPlans {
|
@@ -163,4 +166,4 @@ export interface TreatmentPlansResponseEntry {
|
|
163
166
|
treatmentPlan: TreatmentPlan
|
164
167
|
}
|
165
168
|
|
166
|
-
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
169
|
+
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
package/src/models/practice.ts
CHANGED
@@ -150,6 +150,7 @@ export enum PracticeConfigKind {
|
|
150
150
|
PracticeRegisterWalkthrough = 'PracticeRegisterWalkthrough',
|
151
151
|
PracticeExamsAndResults = 'PracticeExamsAndResults',
|
152
152
|
PracticeLayout = 'PracticeLayout',
|
153
|
+
PracticeAddressField = 'PracticeAddressField',
|
153
154
|
}
|
154
155
|
|
155
156
|
/**
|
@@ -403,6 +404,19 @@ export type PracticeConfigPracticeLayout = PracticeConfig<
|
|
403
404
|
}
|
404
405
|
>
|
405
406
|
|
407
|
+
/**
|
408
|
+
* This config is used for all configs related to the Google Places address field
|
409
|
+
*/
|
410
|
+
export type PracticeConfigPracticeAddressField = PracticeConfig<
|
411
|
+
PracticeConfigKind.PracticeAddressField,
|
412
|
+
{
|
413
|
+
/**
|
414
|
+
* If true, then show the long version of the address, otherwise, show the short version
|
415
|
+
*/
|
416
|
+
longAddress?: boolean
|
417
|
+
}
|
418
|
+
>
|
419
|
+
|
406
420
|
export type PracticeConfigs =
|
407
421
|
| PracticeConfigPractitionerSearch
|
408
422
|
| PracticeConfigPractitionerConsultList
|
@@ -418,6 +432,7 @@ export type PracticeConfigs =
|
|
418
432
|
| PracticeConfigPatientConsultCard
|
419
433
|
| PracticeConfigPracticeExamsAndResults
|
420
434
|
| PracticeConfigPracticeLayout
|
435
|
+
| PracticeConfigPracticeAddressField
|
421
436
|
|
422
437
|
export interface PracticeWorkflow {
|
423
438
|
id?: number ///optional for insertion
|
@@ -529,6 +544,14 @@ export interface PracticePaymentIntent {
|
|
529
544
|
dateUpdateAt?: Date
|
530
545
|
}
|
531
546
|
|
547
|
+
/**
|
548
|
+
* All the PaymentIntentRequestMetadata Kind available
|
549
|
+
*/
|
550
|
+
export enum PaymentIntentRequestMetadataKind {
|
551
|
+
ConsultRequestMetadata = 'ConsultRequestMetadata',
|
552
|
+
RefillTreatmentRequestMetadata = 'RefillTreatmentRequestMetadata',
|
553
|
+
}
|
554
|
+
|
532
555
|
/**
|
533
556
|
* This interface is used as metadata when creating Stripe Invoice.
|
534
557
|
* It will be used to create the consult when stripe use our hook.
|
@@ -539,7 +562,7 @@ export interface ConsultRequestMetadata {
|
|
539
562
|
*
|
540
563
|
* Note: it can be `undefined` to handle backward compatibility when this interface didn't had a `kind`
|
541
564
|
*/
|
542
|
-
kind:
|
565
|
+
kind: PaymentIntentRequestMetadataKind.ConsultRequestMetadata | undefined
|
543
566
|
/**
|
544
567
|
* The specialty required by the consultation
|
545
568
|
*/
|
@@ -562,7 +585,7 @@ export interface RefillTreatmentRequestMetadata {
|
|
562
585
|
/**
|
563
586
|
* Defines the kind of `PaymentIntentRequestMetadata` it is
|
564
587
|
*/
|
565
|
-
kind:
|
588
|
+
kind: PaymentIntentRequestMetadataKind.RefillTreatmentRequestMetadata
|
566
589
|
/**
|
567
590
|
* The consult uuid to refill
|
568
591
|
*/
|
@@ -671,6 +694,7 @@ export interface HydratedPracticeConfigs {
|
|
671
694
|
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough
|
672
695
|
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults
|
673
696
|
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout
|
697
|
+
[PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField
|
674
698
|
}
|
675
699
|
|
676
700
|
export interface Practice {
|