oro-sdk-apis 1.40.0 → 1.43.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/practice.d.ts +8 -2
- package/dist/models/workflow.d.ts +2 -1
- package/dist/oro-sdk-apis.cjs.development.js +413 -819
- 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 +413 -819
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +7 -1
- package/package.json +2 -2
- package/src/models/practice.ts +11 -0
- package/src/models/workflow.ts +7 -2
- package/src/services/practice.ts +11 -4
- package/LICENSE +0 -21
@@ -47,7 +47,13 @@ export declare class PracticeService {
|
|
47
47
|
practiceConfigUpdate(config: PracticeConfigs): Promise<PracticeConfigs>;
|
48
48
|
practiceGetAccounts(practiceUuid: Uuid): Promise<PracticeAccount[]>;
|
49
49
|
practiceGetAccount(practiceUuid: Uuid, accountUuid: Uuid): Promise<PracticeAccount>;
|
50
|
-
|
50
|
+
/**
|
51
|
+
* Get the PracticeWorkflows of a specific practice
|
52
|
+
* @param practiceUuid the uuid of the practice
|
53
|
+
* @param kind (optional) the kind of WorkflowType to filter in
|
54
|
+
* @returns a list of PracticeWorkflow
|
55
|
+
*/
|
56
|
+
practiceGetWorkflows(practiceUuid: Uuid, kind?: WorkflowType): Promise<PracticeWorkflow[]>;
|
51
57
|
practiceGetWorkflow(practiceUuid: Uuid, workflowType: WorkflowType): Promise<PracticeWorkflowWithTagSpecialty>;
|
52
58
|
practiceGetPlans(practiceUuid: Uuid, planType?: PlanType): Promise<PracticePlan[]>;
|
53
59
|
practiceGetPlan(practiceUuid: Uuid, planId: number): Promise<PracticePlan>;
|
package/package.json
CHANGED
package/src/models/practice.ts
CHANGED
@@ -144,6 +144,7 @@ export enum PracticeConfigKind {
|
|
144
144
|
PracticePrescriptionFields = 'PracticePrescriptionFields',
|
145
145
|
PractitionerChatbox = 'PractitionerChatbox',
|
146
146
|
PractitionerConsultList = 'PractitionerConsultList',
|
147
|
+
PractitionerSearch = 'PractitionerSearch',
|
147
148
|
}
|
148
149
|
|
149
150
|
/**
|
@@ -331,7 +332,16 @@ export type PracticeConfigPracticePrescriptionFields = PracticeConfig<
|
|
331
332
|
}
|
332
333
|
>
|
333
334
|
|
335
|
+
export type PracticeConfigPractitionerSearch = PracticeConfig<
|
336
|
+
PracticeConfigKind.PractitionerSearch,
|
337
|
+
{
|
338
|
+
disableIndexing?: boolean,
|
339
|
+
disableSearch?: boolean
|
340
|
+
}
|
341
|
+
>
|
342
|
+
|
334
343
|
export type PracticeConfigs =
|
344
|
+
| PracticeConfigPractitionerSearch
|
335
345
|
| PracticeConfigPractitionerConsultList
|
336
346
|
| PracticeConfigPractitionerChatbox
|
337
347
|
| PracticeConfigPracticeLocaleSwitcher
|
@@ -552,6 +562,7 @@ export interface HydratedPracticeConfigs {
|
|
552
562
|
[PracticeConfigKind.PracticePrescriptionFields]?: PracticeConfigPracticePrescriptionFields
|
553
563
|
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
|
554
564
|
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
|
565
|
+
[PracticeConfigKind.PractitionerSearch]?: PracticeConfigPractitionerSearch
|
555
566
|
}
|
556
567
|
|
557
568
|
export interface Practice {
|
package/src/models/workflow.ts
CHANGED
@@ -87,6 +87,7 @@ export interface EntryData {
|
|
87
87
|
stateTriggers?: StateTrigger[]
|
88
88
|
// represents the modal that it will be rendered as
|
89
89
|
componentKind?: string
|
90
|
+
message?: string
|
90
91
|
}
|
91
92
|
|
92
93
|
export interface SlideData {
|
@@ -166,8 +167,12 @@ export declare type QuestionData =
|
|
166
167
|
| 'place-address'
|
167
168
|
>
|
168
169
|
| GenericQuestionData<'images-alias', IndexedData<ChoiceInputData>, ImagesAliasQuestionOptions>
|
169
|
-
| GenericQuestionData<'checkbox-group' | 'select' | 'multiple' | 'text-select-group', IndexedData<ChoiceInputData>>
|
170
|
-
| GroupedGenericQuestionData<'radio'
|
170
|
+
| GenericQuestionData<'checkbox-group' | 'hair-loss-frontal' | 'select' | 'multiple' | 'text-select-group', IndexedData<ChoiceInputData>>
|
171
|
+
| GroupedGenericQuestionData<'radio'
|
172
|
+
| 'hair-selector-women'
|
173
|
+
| 'hair-selector-men'
|
174
|
+
| 'hair-loss-stage',
|
175
|
+
IndexedData<RadioInputData>>
|
171
176
|
| GroupedGenericQuestionData<'radio-card' | 'profile-selector', IndexedData<RadioCardInputData>>
|
172
177
|
| GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>
|
173
178
|
|
package/src/services/practice.ts
CHANGED
@@ -111,11 +111,18 @@ export class PracticeService {
|
|
111
111
|
return this.api.get<PracticeAccount>(`${this.baseURL}/v1/practices/${practiceUuid}/accounts/${accountUuid}`)
|
112
112
|
}
|
113
113
|
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
/**
|
115
|
+
* Get the PracticeWorkflows of a specific practice
|
116
|
+
* @param practiceUuid the uuid of the practice
|
117
|
+
* @param kind (optional) the kind of WorkflowType to filter in
|
118
|
+
* @returns a list of PracticeWorkflow
|
119
|
+
*/
|
120
|
+
public practiceGetWorkflows(practiceUuid: Uuid, kind?: WorkflowType): Promise<PracticeWorkflow[]> {
|
121
|
+
return this.api.get<PracticeWorkflow[]>(`${this.baseURL}/v1/practices/${practiceUuid}/workflows`, {
|
122
|
+
params: { kind },
|
123
|
+
})
|
117
124
|
}
|
118
|
-
|
125
|
+
|
119
126
|
public practiceGetWorkflow(
|
120
127
|
practiceUuid: Uuid,
|
121
128
|
workflowType: WorkflowType
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
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.
|