oro-sdk-apis 1.28.0 → 1.30.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.
@@ -107,60 +107,166 @@ export interface PracticeAccount {
107
107
  emailBillingContact: string;
108
108
  urlSubdomain?: string;
109
109
  }
110
+ /**
111
+ * Defines all the practice config kind.
112
+ *
113
+ * Please respect the following when defining a new practice config:
114
+ * - be really specific on its role
115
+ * - all configs needs to have default values in app
116
+ * - the default behavior should always to be display the feature.
117
+ * In other words, practice configs should either be used to hide a functionnality or overwrite a default behavior.
118
+ * To be extra explicit, if you want to show a functionnality only in one practice, you will have to add a practice configs in all other practice to hide it (yes it is cumbersome).
119
+ *
120
+ */
110
121
  export declare enum PracticeConfigKind {
111
- PractitionerConsultList = "PractitionerConsultList",
112
- PractitionerChatbox = "PractitionerChatbox",
122
+ PracticeCloseConsultationTypes = "PracticeCloseConsultationTypes",
113
123
  PracticeConfigExample = "PracticeConfigExample",
114
- PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
115
124
  PracticeCookieBanner = "PracticeCookieBanner",
116
- PracticePharmacyPicker = "PracticePharmacyPicker",
117
125
  PracticeCssVariables = "PracticeCssVariables",
118
- PracticeFontsLinks = "PracticeFontsLinks"
126
+ PracticeFontsLinks = "PracticeFontsLinks",
127
+ PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
128
+ PracticePharmacyPicker = "PracticePharmacyPicker",
129
+ PractitionerChatbox = "PractitionerChatbox",
130
+ PractitionerConsultList = "PractitionerConsultList"
119
131
  }
132
+ /**
133
+ * Defines the close consultation types to hide in the close consultation modal of a practice
134
+ */
135
+ export declare type PracticeConfigPracticeCloseConsultationTypes = PracticeConfig<PracticeConfigKind.PracticeCloseConsultationTypes, {
136
+ /**
137
+ * Should hide item with value "Completed"
138
+ */
139
+ hideCompleted?: boolean;
140
+ /**
141
+ * Should hide item with value "Requires-in-person"
142
+ */
143
+ hideRequiresInPerson?: boolean;
144
+ /**
145
+ * Should hide item with value "Other"
146
+ */
147
+ hideOther?: boolean;
148
+ /**
149
+ * Should hide item with value "Not-a-disease"
150
+ */
151
+ hideNotADisease?: boolean;
152
+ /**
153
+ * Should hide item with value "Appropriate-for-virtual"
154
+ */
155
+ hideNotAppropriateForVirtual?: boolean;
156
+ }>;
157
+ /**
158
+ * Generic interface of a practice config
159
+ *
160
+ * Practice configs needs to have a JSDoc for **all** interface and fields.
161
+ *
162
+ */
120
163
  export interface PracticeConfig<K, T> {
164
+ /**
165
+ * The uuid of the practice to apply the config
166
+ */
121
167
  uuidPractice: string;
122
- kind: K;
168
+ /**
169
+ * The kind of the practice config. Used as a discriminator to help auto-completion.
170
+ */
171
+ kind: PracticeConfigKind;
172
+ /**
173
+ * The actual interface of the config
174
+ */
123
175
  config: T;
124
176
  }
125
- export declare type PracticeConfigPractitionerConsultList = PracticeConfig<PracticeConfigKind.PractitionerConsultList, {
126
- hideLocality?: boolean;
127
- hideFax?: boolean;
128
- hideExpiresAt?: boolean;
129
- showExpirationInDays?: boolean;
177
+ /**
178
+ * This type is for test (do not remove without updating the integration tests)
179
+ */
180
+ export declare type PracticeConfigPracticeConfigExample = PracticeConfig<PracticeConfigKind.PracticeConfigExample, {
181
+ primaryColor?: string;
182
+ }>;
183
+ /**
184
+ * Defines the practice cookie banner
185
+ */
186
+ export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<PracticeConfigKind.PracticeCookieBanner, {
187
+ showCookieBanner?: boolean;
188
+ policyLink?: string;
189
+ useOfCookieLink?: string;
130
190
  }>;
191
+ /**
192
+ * This interface describes all practice css variables
193
+ * The keys should reflect the exact css name
194
+ */
195
+ export declare type PracticeConfigPracticeCssVariables = PracticeConfig<PracticeConfigKind.PracticeCssVariables, Record<string, string>>;
196
+ /**
197
+ * Defines the font of the practice css url
198
+ */
199
+ export declare type PracticeConfigPracticeFontsLinks = PracticeConfig<PracticeConfigKind.PracticeFontsLinks, {
200
+ /**
201
+ * sans serif font family
202
+ */
203
+ sansSerif?: string;
204
+ /**
205
+ * serif font family
206
+ */
207
+ serif?: string;
208
+ }>;
209
+ /**
210
+ * Defines the locale switcher config
211
+ */
131
212
  export declare type PracticeConfigPracticeLocaleSwitcher = PracticeConfig<PracticeConfigKind.PracticeLocaleSwitcher, {
213
+ /**
214
+ * Should hide the locale switcher
215
+ */
132
216
  hideLocaleSwitcher?: boolean;
133
217
  }>;
218
+ /**
219
+ * Defines the online pharmacy address of the practice
220
+ */
221
+ export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<PracticeConfigKind.PracticePharmacyPicker, {
222
+ /**
223
+ * The address of the online pharmacy
224
+ */
225
+ onlinePharmacy?: PlaceData;
226
+ }>;
227
+ /**
228
+ * Defines the consultation chatbox configs
229
+ */
134
230
  export declare type PracticeConfigPractitionerChatbox = PracticeConfig<PracticeConfigKind.PractitionerChatbox, {
231
+ /**
232
+ * If defined will replace the automatic chatbox comment notifiying the patient a new treatment plan has been added. Indexed by locale.
233
+ */
135
234
  planAddedMessage?: {
136
235
  [languageISO639_3: string]: string;
137
236
  };
237
+ /**
238
+ * If defined will replace the automatic chatbox comment notifiying the patient a new treatment plan has been updated. Indexed by locale.
239
+ */
138
240
  planUpdatedMessage?: {
139
241
  [languageISO639_3: string]: string;
140
242
  };
243
+ /**
244
+ * If defined will replace the automatic chatbox comment notifiying the patient a new exam has been dispatched. Indexed by locale.
245
+ */
141
246
  examsUpdatedMessage?: {
142
247
  [languageISO639_3: string]: string;
143
248
  };
144
249
  }>;
145
- export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<PracticeConfigKind.PracticePharmacyPicker, {
146
- onlinePharmacy?: PlaceData;
147
- }>;
148
- export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<PracticeConfigKind.PracticeCookieBanner, {
149
- showCookieBanner?: boolean;
150
- policyLink?: string;
151
- useOfCookieLink?: string;
152
- }>;
153
- export declare type PracticeConfigPracticeConfigExample = PracticeConfig<PracticeConfigKind.PracticeConfigExample, {
154
- primaryColor?: string;
155
- }>;
156
250
  /**
157
- * This interface describes all practice css variables
158
- * The keys should reflect the exact css name
251
+ * This config is used to configure the layout of the consult list for practitioners
159
252
  */
160
- export declare type PracticeConfigPracticeCssVariables = PracticeConfig<PracticeConfigKind.PracticeCssVariables, Record<string, string>>;
161
- export declare type PracticeConfigPracticeFontsLinks = PracticeConfig<PracticeConfigKind.PracticeFontsLinks, {
162
- sansSerif?: string;
163
- serif?: string;
253
+ export declare type PracticeConfigPractitionerConsultList = PracticeConfig<PracticeConfigKind.PractitionerConsultList, {
254
+ /**
255
+ * Hides the locality column
256
+ */
257
+ hideLocality?: boolean;
258
+ /**
259
+ * Hides the plan name column
260
+ */
261
+ hidePlan?: boolean;
262
+ /**
263
+ * Hides the fax column
264
+ */
265
+ hideFax?: boolean;
266
+ /**
267
+ * Hides the expires at column
268
+ */
269
+ hideExpiresAt?: boolean;
164
270
  }>;
165
271
  export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticeConfigExample;
166
272
  export interface PracticeWorkflow {
@@ -341,14 +447,15 @@ export interface Practitioner {
341
447
  txtAddressTransmission?: string;
342
448
  }
343
449
  export interface HydratedPracticeConfigs {
344
- [PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList;
345
- [PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox;
450
+ [PracticeConfigKind.PracticeCloseConsultationTypes]?: PracticeConfigPracticeCloseConsultationTypes;
346
451
  [PracticeConfigKind.PracticeConfigExample]?: PracticeConfigPracticeConfigExample;
347
- [PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
348
452
  [PracticeConfigKind.PracticeCookieBanner]?: PracticeConfigPracticeCookieBanner;
349
- [PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
350
453
  [PracticeConfigKind.PracticeCssVariables]?: PracticeConfigPracticeCssVariables;
351
454
  [PracticeConfigKind.PracticeFontsLinks]?: PracticeConfigPracticeFontsLinks;
455
+ [PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
456
+ [PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
457
+ [PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox;
458
+ [PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList;
352
459
  }
353
460
  export interface Practice {
354
461
  uuid: string;