oro-sdk-apis 1.54.3 → 1.57.0-dev1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,7 @@ export interface TreatmentRequest {
27
27
  name: string;
28
28
  description: string;
29
29
  urlMultimedia?: string;
30
+ refillable: boolean;
30
31
  type?: TreatmentType;
31
32
  }
32
33
  export interface Treatment extends TreatmentRequest {
@@ -134,7 +134,8 @@ export declare enum PracticeConfigKind {
134
134
  PractitionerSearch = "PractitionerSearch",
135
135
  PracticeRegisterWalkthrough = "PracticeRegisterWalkthrough",
136
136
  PracticeExamsAndResults = "PracticeExamsAndResults",
137
- PracticeLayout = "PracticeLayout"
137
+ PracticeLayout = "PracticeLayout",
138
+ PracticeAddressField = "PracticeAddressField"
138
139
  }
139
140
  /**
140
141
  * Defines the close consultation types to hide in the close consultation modal of a practice
@@ -330,7 +331,16 @@ export declare type PracticeConfigPracticeLayout = PracticeConfig<PracticeConfig
330
331
  */
331
332
  showFaqLink?: boolean;
332
333
  }>;
333
- export declare type PracticeConfigs = PracticeConfigPractitionerSearch | PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticePrescriptionFields | PracticeConfigPracticeConfigExample | PracticeConfigPracticeConsultTabs | PracticeConfigPatientConsultCard | PracticeConfigPracticeExamsAndResults | PracticeConfigPracticeLayout;
334
+ /**
335
+ * This config is used for all configs related to the Google Places address field
336
+ */
337
+ export declare type PracticeConfigPracticeAddressField = PracticeConfig<PracticeConfigKind.PracticeAddressField, {
338
+ /**
339
+ * If true, then show the long version of the address, otherwise, show the short version
340
+ */
341
+ longAddress?: boolean;
342
+ }>;
343
+ export declare type PracticeConfigs = PracticeConfigPractitionerSearch | PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticePrescriptionFields | PracticeConfigPracticeConfigExample | PracticeConfigPracticeConsultTabs | PracticeConfigPatientConsultCard | PracticeConfigPracticeExamsAndResults | PracticeConfigPracticeLayout | PracticeConfigPracticeAddressField;
334
344
  export interface PracticeWorkflow {
335
345
  id?: number;
336
346
  uuidPractice: string;
@@ -569,6 +579,7 @@ export interface HydratedPracticeConfigs {
569
579
  [PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough;
570
580
  [PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults;
571
581
  [PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout;
582
+ [PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField;
572
583
  }
573
584
  export interface Practice {
574
585
  uuid: string;
@@ -220,6 +220,30 @@ export interface WorkflowData {
220
220
  * (optional) the description of the service this workflow provides
221
221
  */
222
222
  serviceDescription?: string;
223
+ /**
224
+ * (optional) rules to hide certain payment plans depending on the workflow answers
225
+ */
226
+ hidePlanRules?: HidePlanRule[];
227
+ }
228
+ export interface HidePlanRule {
229
+ /**
230
+ * the stripe plan id from the practice service
231
+ */
232
+ idPlan: string;
233
+ /**
234
+ * Questions to apply yup rules on in, if rules are met then hide the plan
235
+ */
236
+ rules: QuestionHidePlanRule | QuestionHidePlanRule[] | QuestionHidePlanRule[][];
237
+ }
238
+ export interface QuestionHidePlanRule {
239
+ /**
240
+ * the id of the question to check the rule on
241
+ */
242
+ questionId: string;
243
+ /**
244
+ * a collection of yup validated rules (same exact syntax we used for the workflow formValidation field, please reuse same functions)
245
+ */
246
+ yupRuleValueToHide: any;
223
247
  }
224
248
  /**
225
249
  * This interface describes an upload of an image (could be a picture, a pdf, a text file, etc.)
@@ -1166,6 +1166,7 @@ var VaultDataMissing = /*#__PURE__*/function (_Error8) {
1166
1166
  PracticeConfigKind["PracticeRegisterWalkthrough"] = "PracticeRegisterWalkthrough";
1167
1167
  PracticeConfigKind["PracticeExamsAndResults"] = "PracticeExamsAndResults";
1168
1168
  PracticeConfigKind["PracticeLayout"] = "PracticeLayout";
1169
+ PracticeConfigKind["PracticeAddressField"] = "PracticeAddressField";
1169
1170
  })(exports.PracticeConfigKind || (exports.PracticeConfigKind = {}));
1170
1171
 
1171
1172
  (function (StripePriceType) {