oro-sdk-apis 1.40.0 → 1.43.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.
@@ -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
- practiceGetWorkflows(practiceUuid: Uuid): Promise<PracticeWorkflow[]>;
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.40.0",
2
+ "version": "1.43.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -54,4 +54,4 @@
54
54
  "buffer": "^6.0.3",
55
55
  "hash.js": "^1.1.7"
56
56
  }
57
- }
57
+ }
@@ -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 {
@@ -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', IndexedData<RadioInputData>>
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
 
@@ -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
- /// Workflows
115
- public practiceGetWorkflows(practiceUuid: Uuid): Promise<PracticeWorkflow[]> {
116
- return this.api.get<PracticeWorkflow[]>(`${this.baseURL}/v1/practices/${practiceUuid}/workflows`)
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.