oro-sdk-apis 1.54.2 → 1.56.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 +13 -2
- package/dist/models/workflow.d.ts +24 -0
- package/dist/oro-sdk-apis.cjs.development.js +817 -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 +817 -399
- 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 +16 -0
- package/src/models/workflow.ts +26 -0
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;
|
@@ -569,6 +579,7 @@ export interface HydratedPracticeConfigs {
|
|
569
579
|
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough;
|
570
580
|
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults;
|
571
581
|
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout;
|
582
|
+
[PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField;
|
572
583
|
}
|
573
584
|
export interface Practice {
|
574
585
|
uuid: string;
|
@@ -220,6 +220,30 @@ export interface WorkflowData {
|
|
220
220
|
* (optional) the description of the service this workflow provides
|
221
221
|
*/
|
222
222
|
serviceDescription?: string;
|
223
|
+
/**
|
224
|
+
* (optional) rules to hide certain payment plans depending on the workflow answers
|
225
|
+
*/
|
226
|
+
hidePlanRules?: HidePlanRule[];
|
227
|
+
}
|
228
|
+
export interface HidePlanRule {
|
229
|
+
/**
|
230
|
+
* the stripe plan id from the practice service
|
231
|
+
*/
|
232
|
+
idPlan: string;
|
233
|
+
/**
|
234
|
+
* Questions to apply yup rules on in, if rules are met then hide the plan
|
235
|
+
*/
|
236
|
+
rules: QuestionHidePlanRule | QuestionHidePlanRule[] | QuestionHidePlanRule[][];
|
237
|
+
}
|
238
|
+
export interface QuestionHidePlanRule {
|
239
|
+
/**
|
240
|
+
* the id of the question to check the rule on
|
241
|
+
*/
|
242
|
+
questionId: string;
|
243
|
+
/**
|
244
|
+
* a collection of yup validated rules (same exact syntax we used for the workflow formValidation field, please reuse same functions)
|
245
|
+
*/
|
246
|
+
yupRuleValueToHide: any;
|
223
247
|
}
|
224
248
|
/**
|
225
249
|
* This interface describes an upload of an image (could be a picture, a pdf, a text file, etc.)
|