oro-sdk-apis 1.41.0 → 1.44.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/dist/models/practice.d.ts +12 -1
- 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 +1 -1
- package/src/models/practice.ts +17 -2
- 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
@@ -145,6 +145,7 @@ export enum PracticeConfigKind {
|
|
145
145
|
PractitionerChatbox = 'PractitionerChatbox',
|
146
146
|
PractitionerConsultList = 'PractitionerConsultList',
|
147
147
|
PractitionerSearch = 'PractitionerSearch',
|
148
|
+
PracticeRegisterWalkthrough = 'PracticeRegisterWalkthrough',
|
148
149
|
}
|
149
150
|
|
150
151
|
/**
|
@@ -335,11 +336,24 @@ export type PracticeConfigPracticePrescriptionFields = PracticeConfig<
|
|
335
336
|
export type PracticeConfigPractitionerSearch = PracticeConfig<
|
336
337
|
PracticeConfigKind.PractitionerSearch,
|
337
338
|
{
|
338
|
-
disableIndexing?: boolean
|
339
|
+
disableIndexing?: boolean
|
339
340
|
disableSearch?: boolean
|
340
341
|
}
|
341
342
|
>
|
342
343
|
|
344
|
+
/**
|
345
|
+
* This config is used to configure the register walkthrough
|
346
|
+
*/
|
347
|
+
export type PracticeConfigPracticeRegisterWalkthrough = PracticeConfig<
|
348
|
+
PracticeConfigKind.PracticeRegisterWalkthrough,
|
349
|
+
{
|
350
|
+
/**
|
351
|
+
* The workflow uuid containing the walkthrough to display. If not defined, the walkthrough slides screen is skipped.
|
352
|
+
*/
|
353
|
+
workflowUuid?: string
|
354
|
+
}
|
355
|
+
>
|
356
|
+
|
343
357
|
export type PracticeConfigs =
|
344
358
|
| PracticeConfigPractitionerSearch
|
345
359
|
| PracticeConfigPractitionerConsultList
|
@@ -563,6 +577,7 @@ export interface HydratedPracticeConfigs {
|
|
563
577
|
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
|
564
578
|
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
|
565
579
|
[PracticeConfigKind.PractitionerSearch]?: PracticeConfigPractitionerSearch
|
580
|
+
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPractitionerSearch
|
566
581
|
}
|
567
582
|
|
568
583
|
export interface Practice {
|
@@ -642,4 +657,4 @@ export interface PracticeSecret {
|
|
642
657
|
* It's decrypted on the fly when returned by the api.
|
643
658
|
*/
|
644
659
|
payload: string
|
645
|
-
}
|
660
|
+
}
|
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.
|