oro-sdk-apis 1.6.1 → 1.7.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 +16 -2
- package/dist/models/workflow.d.ts +0 -10
- package/dist/oro-sdk-apis.cjs.development.js +1 -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 +1 -0
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/practice.ts +13 -0
- package/src/models/workflow.ts +0 -11
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.
|
|
@@ -104,7 +104,8 @@ export declare enum PracticeConfigKind {
|
|
|
104
104
|
PractitionerChatbox = "PractitionerChatbox",
|
|
105
105
|
PracticeTheme = "PracticeTheme",
|
|
106
106
|
PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
|
|
107
|
-
PracticeCookieBanner = "PracticeCookieBanner"
|
|
107
|
+
PracticeCookieBanner = "PracticeCookieBanner",
|
|
108
|
+
PracticePharmacyPicker = "PracticePharmacyPicker"
|
|
108
109
|
}
|
|
109
110
|
export interface PracticeConfig<K, T> {
|
|
110
111
|
uuidPractice: string;
|
|
@@ -127,6 +128,19 @@ export declare type PracticeConfigPractitionerChatbox = PracticeConfig<PracticeC
|
|
|
127
128
|
[languageISO639_3: string]: string;
|
|
128
129
|
};
|
|
129
130
|
}>;
|
|
131
|
+
export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<PracticeConfigKind.PracticePharmacyPicker, {
|
|
132
|
+
onlinePharmacy?: {
|
|
133
|
+
name: string;
|
|
134
|
+
id: string;
|
|
135
|
+
phones: {
|
|
136
|
+
countryCode: string;
|
|
137
|
+
number: string;
|
|
138
|
+
extension: string | null;
|
|
139
|
+
type: string;
|
|
140
|
+
isTollFree: boolean;
|
|
141
|
+
}[];
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
130
144
|
export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<PracticeConfigKind.PracticeCookieBanner, {
|
|
131
145
|
showCookieBanner?: boolean;
|
|
132
146
|
policyLink?: string;
|
|
@@ -135,7 +149,7 @@ export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<Practice
|
|
|
135
149
|
export declare type PracticeConfigPracticeTheme = PracticeConfig<PracticeConfigKind.PracticeTheme, {
|
|
136
150
|
primaryColor?: string;
|
|
137
151
|
}>;
|
|
138
|
-
export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeTheme;
|
|
152
|
+
export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeTheme;
|
|
139
153
|
export interface PracticeWorkflow {
|
|
140
154
|
id?: number;
|
|
141
155
|
uuidPractice: string;
|
|
@@ -30,15 +30,6 @@ export interface EntryData {
|
|
|
30
30
|
className?: string;
|
|
31
31
|
triggers?: string[];
|
|
32
32
|
}
|
|
33
|
-
export interface SlideData {
|
|
34
|
-
header: string;
|
|
35
|
-
body: string;
|
|
36
|
-
image?: {
|
|
37
|
-
src: string;
|
|
38
|
-
alt: string;
|
|
39
|
-
};
|
|
40
|
-
icon?: string;
|
|
41
|
-
}
|
|
42
33
|
export declare enum MetadataCategory {
|
|
43
34
|
ChildPersonal = "ChildPersonal",
|
|
44
35
|
Consultation = "Consultation",
|
|
@@ -97,7 +88,6 @@ export interface WorkflowData {
|
|
|
97
88
|
summaryImageFieldName?: string;
|
|
98
89
|
summarySymptomsFieldName?: string;
|
|
99
90
|
selectedAnswers?: SelectedAnswersData;
|
|
100
|
-
walkthroughSlides?: SlideData[];
|
|
101
91
|
}
|
|
102
92
|
/**
|
|
103
93
|
* This interface describes a workflow prepared and ready to be sent to vault
|
|
@@ -1382,6 +1382,7 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
|
|
|
1382
1382
|
PracticeConfigKind["PracticeTheme"] = "PracticeTheme";
|
|
1383
1383
|
PracticeConfigKind["PracticeLocaleSwitcher"] = "PracticeLocaleSwitcher";
|
|
1384
1384
|
PracticeConfigKind["PracticeCookieBanner"] = "PracticeCookieBanner";
|
|
1385
|
+
PracticeConfigKind["PracticePharmacyPicker"] = "PracticePharmacyPicker";
|
|
1385
1386
|
})(exports.PracticeConfigKind || (exports.PracticeConfigKind = {}));
|
|
1386
1387
|
|
|
1387
1388
|
(function (StripePriceType) {
|