oro-sdk-apis 1.8.0 → 1.8.1
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/guard.d.ts +2 -2
- package/dist/models/practice.d.ts +16 -2
- package/dist/models/workflow.d.ts +10 -0
- 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/guard.ts +2 -3
- package/src/models/practice.ts +13 -0
- package/src/models/workflow.ts +11 -0
package/package.json
CHANGED
package/src/models/guard.ts
CHANGED
|
@@ -68,12 +68,11 @@ export interface IdentityResponse {
|
|
|
68
68
|
publicKey: Base64String
|
|
69
69
|
recoveryLogin?: Uuid
|
|
70
70
|
recoveryPassword: Base64String
|
|
71
|
-
recoveryMasterKey
|
|
72
|
-
recoverySecurityQuestions
|
|
71
|
+
recoveryMasterKey?: Base64String
|
|
72
|
+
recoverySecurityQuestions?: SecretShard[]
|
|
73
73
|
legal?: LegalData
|
|
74
74
|
createdAt?: string
|
|
75
75
|
updatedAt?: string
|
|
76
|
-
//TODO: remove me when https://github.com/OROHealth/oro-guard/pull/72 is merged
|
|
77
76
|
refreshToken?: string
|
|
78
77
|
}
|
|
79
78
|
|
package/src/models/practice.ts
CHANGED
|
@@ -119,6 +119,7 @@ export enum PracticeConfigKind {
|
|
|
119
119
|
PracticeTheme = 'PracticeTheme',
|
|
120
120
|
PracticeLocaleSwitcher = 'PracticeLocaleSwitcher',
|
|
121
121
|
PracticeCookieBanner = 'PracticeCookieBanner',
|
|
122
|
+
PracticePharmacyPicker = 'PracticePharmacyPicker',
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
export interface PracticeConfig<K, T> {
|
|
@@ -151,6 +152,17 @@ export type PracticeConfigPractitionerChatbox = PracticeConfig<
|
|
|
151
152
|
}
|
|
152
153
|
>
|
|
153
154
|
|
|
155
|
+
export type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<
|
|
156
|
+
PracticeConfigKind.PracticePharmacyPicker,
|
|
157
|
+
{
|
|
158
|
+
onlinePharmacy?: {
|
|
159
|
+
name: string,
|
|
160
|
+
id: string,
|
|
161
|
+
phones: { countryCode: string, number: string, extension: string | null, type: string, isTollFree: boolean }[]
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
|
|
154
166
|
export type PracticeConfigPracticeCookieBanner = PracticeConfig<
|
|
155
167
|
PracticeConfigKind.PracticeCookieBanner,
|
|
156
168
|
{
|
|
@@ -168,6 +180,7 @@ export type PracticeConfigs =
|
|
|
168
180
|
| PracticeConfigPractitionerChatbox
|
|
169
181
|
| PracticeConfigPracticeLocaleSwitcher
|
|
170
182
|
| PracticeConfigPracticeCookieBanner
|
|
183
|
+
| PracticeConfigPracticeOnlinePharmacy
|
|
171
184
|
| PracticeConfigPracticeTheme // Here for demonstration only
|
|
172
185
|
|
|
173
186
|
export interface PracticeWorkflow {
|
package/src/models/workflow.ts
CHANGED
|
@@ -38,6 +38,16 @@ export interface EntryData {
|
|
|
38
38
|
triggers?: string[]
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
export interface SlideData {
|
|
42
|
+
header: string
|
|
43
|
+
body: string
|
|
44
|
+
image?: {
|
|
45
|
+
src: string
|
|
46
|
+
alt: string
|
|
47
|
+
}
|
|
48
|
+
icon?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
41
51
|
export enum MetadataCategory { //these are generic metadata categories
|
|
42
52
|
ChildPersonal = 'ChildPersonal',
|
|
43
53
|
Consultation = 'Consultation',
|
|
@@ -111,6 +121,7 @@ export interface WorkflowData {
|
|
|
111
121
|
summaryImageFieldName?: string // this field is used to show the consult summary image
|
|
112
122
|
summarySymptomsFieldName?: string // this field is used to show the consult summary symptoms
|
|
113
123
|
selectedAnswers?: SelectedAnswersData
|
|
124
|
+
walkthroughSlides?: SlideData[]
|
|
114
125
|
}
|
|
115
126
|
|
|
116
127
|
/**
|