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/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 ORO Health Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -103,7 +103,10 @@ export interface TreatmentAndDrugPrescription {
|
|
103
103
|
notes?: string;
|
104
104
|
status: PlanStatus;
|
105
105
|
uuidTreatmentPlan: string;
|
106
|
-
|
106
|
+
/**
|
107
|
+
* this field is used to store the datetime when the patient accepted or refused the prescription
|
108
|
+
*/
|
109
|
+
decidedAt?: string;
|
107
110
|
createdAt: string;
|
108
111
|
}
|
109
112
|
export interface TreatmentPlans {
|
@@ -134,7 +134,8 @@ export declare enum PracticeConfigKind {
|
|
134
134
|
PractitionerSearch = "PractitionerSearch",
|
135
135
|
PracticeRegisterWalkthrough = "PracticeRegisterWalkthrough",
|
136
136
|
PracticeExamsAndResults = "PracticeExamsAndResults",
|
137
|
-
PracticeLayout = "PracticeLayout"
|
137
|
+
PracticeLayout = "PracticeLayout",
|
138
|
+
PracticeAddressField = "PracticeAddressField"
|
138
139
|
}
|
139
140
|
/**
|
140
141
|
* Defines the close consultation types to hide in the close consultation modal of a practice
|
@@ -330,7 +331,16 @@ export declare type PracticeConfigPracticeLayout = PracticeConfig<PracticeConfig
|
|
330
331
|
*/
|
331
332
|
showFaqLink?: boolean;
|
332
333
|
}>;
|
333
|
-
|
334
|
+
/**
|
335
|
+
* This config is used for all configs related to the Google Places address field
|
336
|
+
*/
|
337
|
+
export declare type PracticeConfigPracticeAddressField = PracticeConfig<PracticeConfigKind.PracticeAddressField, {
|
338
|
+
/**
|
339
|
+
* If true, then show the long version of the address, otherwise, show the short version
|
340
|
+
*/
|
341
|
+
longAddress?: boolean;
|
342
|
+
}>;
|
343
|
+
export declare type PracticeConfigs = PracticeConfigPractitionerSearch | PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticePrescriptionFields | PracticeConfigPracticeConfigExample | PracticeConfigPracticeConsultTabs | PracticeConfigPatientConsultCard | PracticeConfigPracticeExamsAndResults | PracticeConfigPracticeLayout | PracticeConfigPracticeAddressField;
|
334
344
|
export interface PracticeWorkflow {
|
335
345
|
id?: number;
|
336
346
|
uuidPractice: string;
|
@@ -430,6 +440,13 @@ export interface PracticePaymentIntent {
|
|
430
440
|
dateCreatedAt?: Date;
|
431
441
|
dateUpdateAt?: Date;
|
432
442
|
}
|
443
|
+
/**
|
444
|
+
* All the PaymentIntentRequestMetadata Kind available
|
445
|
+
*/
|
446
|
+
export declare enum PaymentIntentRequestMetadataKind {
|
447
|
+
ConsultRequestMetadata = "ConsultRequestMetadata",
|
448
|
+
RefillTreatmentRequestMetadata = "RefillTreatmentRequestMetadata"
|
449
|
+
}
|
433
450
|
/**
|
434
451
|
* This interface is used as metadata when creating Stripe Invoice.
|
435
452
|
* It will be used to create the consult when stripe use our hook.
|
@@ -440,7 +457,7 @@ export interface ConsultRequestMetadata {
|
|
440
457
|
*
|
441
458
|
* Note: it can be `undefined` to handle backward compatibility when this interface didn't had a `kind`
|
442
459
|
*/
|
443
|
-
kind:
|
460
|
+
kind: PaymentIntentRequestMetadataKind.ConsultRequestMetadata | undefined;
|
444
461
|
/**
|
445
462
|
* The specialty required by the consultation
|
446
463
|
*/
|
@@ -462,7 +479,7 @@ export interface RefillTreatmentRequestMetadata {
|
|
462
479
|
/**
|
463
480
|
* Defines the kind of `PaymentIntentRequestMetadata` it is
|
464
481
|
*/
|
465
|
-
kind:
|
482
|
+
kind: PaymentIntentRequestMetadataKind.RefillTreatmentRequestMetadata;
|
466
483
|
/**
|
467
484
|
* The consult uuid to refill
|
468
485
|
*/
|
@@ -562,6 +579,7 @@ export interface HydratedPracticeConfigs {
|
|
562
579
|
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough;
|
563
580
|
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults;
|
564
581
|
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout;
|
582
|
+
[PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField;
|
565
583
|
}
|
566
584
|
export interface Practice {
|
567
585
|
uuid: string;
|