oro-sdk-apis 1.52.0 → 1.54.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 +62 -2
- package/dist/oro-sdk-apis.cjs.development.js +5 -3
- 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 +5 -3
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +4 -4
- package/package.json +1 -1
- package/src/models/practice.ts +72 -0
- package/src/services/practice.ts +6 -5
@@ -132,7 +132,9 @@ export declare enum PracticeConfigKind {
|
|
132
132
|
PractitionerChatbox = "PractitionerChatbox",
|
133
133
|
PractitionerConsultList = "PractitionerConsultList",
|
134
134
|
PractitionerSearch = "PractitionerSearch",
|
135
|
-
PracticeRegisterWalkthrough = "PracticeRegisterWalkthrough"
|
135
|
+
PracticeRegisterWalkthrough = "PracticeRegisterWalkthrough",
|
136
|
+
PracticeExamsAndResults = "PracticeExamsAndResults",
|
137
|
+
PracticeLayout = "PracticeLayout"
|
136
138
|
}
|
137
139
|
/**
|
138
140
|
* Defines the close consultation types to hide in the close consultation modal of a practice
|
@@ -310,7 +312,25 @@ export declare type PracticeConfigPracticeRegisterWalkthrough = PracticeConfig<P
|
|
310
312
|
*/
|
311
313
|
workflowUuid?: string;
|
312
314
|
}>;
|
313
|
-
|
315
|
+
/**
|
316
|
+
* This config is used for all configs related to the Exams and Results module
|
317
|
+
*/
|
318
|
+
export declare type PracticeConfigPracticeExamsAndResults = PracticeConfig<PracticeConfigKind.PracticeExamsAndResults, {
|
319
|
+
/**
|
320
|
+
* If true, then show the deprecated URL prescription pad
|
321
|
+
*/
|
322
|
+
showUrlPrescriptionPad?: boolean;
|
323
|
+
}>;
|
324
|
+
/**
|
325
|
+
* This config is used for all configs related to the Layout of the app (Navbar, Footer, etc)
|
326
|
+
*/
|
327
|
+
export declare type PracticeConfigPracticeLayout = PracticeConfig<PracticeConfigKind.PracticeLayout, {
|
328
|
+
/**
|
329
|
+
* If true, then show the FAQ link in the Navbar
|
330
|
+
*/
|
331
|
+
showFaqLink?: boolean;
|
332
|
+
}>;
|
333
|
+
export declare type PracticeConfigs = PracticeConfigPractitionerSearch | PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticePrescriptionFields | PracticeConfigPracticeConfigExample | PracticeConfigPracticeConsultTabs | PracticeConfigPatientConsultCard | PracticeConfigPracticeExamsAndResults | PracticeConfigPracticeLayout;
|
314
334
|
export interface PracticeWorkflow {
|
315
335
|
id?: number;
|
316
336
|
uuidPractice: string;
|
@@ -415,10 +435,48 @@ export interface PracticePaymentIntent {
|
|
415
435
|
* It will be used to create the consult when stripe use our hook.
|
416
436
|
*/
|
417
437
|
export interface ConsultRequestMetadata {
|
438
|
+
/**
|
439
|
+
* Defines the kind of `PaymentIntentRequestMetadata` it is
|
440
|
+
*
|
441
|
+
* Note: it can be `undefined` to handle backward compatibility when this interface didn't had a `kind`
|
442
|
+
*/
|
443
|
+
kind: 'ConsultRequestMetadata' | undefined;
|
444
|
+
/**
|
445
|
+
* The specialty required by the consultation
|
446
|
+
*/
|
418
447
|
tagSpecialtyRequired: string;
|
448
|
+
/**
|
449
|
+
* The locality required for the consultation in iso. COUNTRY (ISO 3166) - PROVINCE - COUNTY - CITY
|
450
|
+
*/
|
419
451
|
isoLocalityRequired?: string;
|
452
|
+
/**
|
453
|
+
* The language required for the consultation. Should respect ISO 639-3 https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
|
454
|
+
*/
|
420
455
|
isoLanguageRequired: string;
|
421
456
|
}
|
457
|
+
/**
|
458
|
+
* This interface is used as metadata when creating Stripe Invoice.
|
459
|
+
* It will be used to refill a treatment plan of a consult.
|
460
|
+
*/
|
461
|
+
export interface RefillTreatmentRequestMetadata {
|
462
|
+
/**
|
463
|
+
* Defines the kind of `PaymentIntentRequestMetadata` it is
|
464
|
+
*/
|
465
|
+
kind: 'RefillTreatmentRequestMetadata';
|
466
|
+
/**
|
467
|
+
* The consult uuid to refill
|
468
|
+
*/
|
469
|
+
consultUuid: string;
|
470
|
+
/**
|
471
|
+
* The treatment plan uuid to refill
|
472
|
+
*/
|
473
|
+
uuidTreatmentPlan: string;
|
474
|
+
}
|
475
|
+
/**
|
476
|
+
* This interface is used as metadata when creating Stripe Invoice.
|
477
|
+
* It will be used when stripe uses our hook.
|
478
|
+
*/
|
479
|
+
export declare type PaymentIntentRequestMetadata = ConsultRequestMetadata | RefillTreatmentRequestMetadata;
|
422
480
|
export interface AssignmentRequest {
|
423
481
|
uuidAssignor: string;
|
424
482
|
uuidPractitioner?: string;
|
@@ -506,6 +564,8 @@ export interface HydratedPracticeConfigs {
|
|
506
564
|
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList;
|
507
565
|
[PracticeConfigKind.PractitionerSearch]?: PracticeConfigPractitionerSearch;
|
508
566
|
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough;
|
567
|
+
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults;
|
568
|
+
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout;
|
509
569
|
}
|
510
570
|
export interface Practice {
|
511
571
|
uuid: string;
|
@@ -1164,6 +1164,8 @@ var VaultDataMissing = /*#__PURE__*/function (_Error8) {
|
|
1164
1164
|
PracticeConfigKind["PractitionerConsultList"] = "PractitionerConsultList";
|
1165
1165
|
PracticeConfigKind["PractitionerSearch"] = "PractitionerSearch";
|
1166
1166
|
PracticeConfigKind["PracticeRegisterWalkthrough"] = "PracticeRegisterWalkthrough";
|
1167
|
+
PracticeConfigKind["PracticeExamsAndResults"] = "PracticeExamsAndResults";
|
1168
|
+
PracticeConfigKind["PracticeLayout"] = "PracticeLayout";
|
1167
1169
|
})(exports.PracticeConfigKind || (exports.PracticeConfigKind = {}));
|
1168
1170
|
|
1169
1171
|
(function (StripePriceType) {
|
@@ -2392,17 +2394,17 @@ var PracticeService = /*#__PURE__*/function () {
|
|
2392
2394
|
* @param isoLocality (optional) the desired locality
|
2393
2395
|
* @param url_subdomain (optional) the url of the sub domain (@bruno-morel need you to document that)
|
2394
2396
|
* @param promotionCode (optional) promotion code to apply
|
2395
|
-
* @param
|
2397
|
+
* @param requestMetadata (optional) the request metadata to use. If defined, when payment service call our hooks in practice, it will use it to do required action (create a consult, refill a consult, etc.).
|
2396
2398
|
* @returns
|
2397
2399
|
*/
|
2398
2400
|
;
|
2399
2401
|
|
2400
|
-
_proto.practiceCreatePaymentsIntent = function practiceCreatePaymentsIntent(practiceUuid, planId, userEmail, isoLocality, url_subdomain,
|
2402
|
+
_proto.practiceCreatePaymentsIntent = function practiceCreatePaymentsIntent(practiceUuid, planId, userEmail, isoLocality, url_subdomain, requestMetadata) {
|
2401
2403
|
return this.api.post(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/", {
|
2402
2404
|
idPlan: planId,
|
2403
2405
|
hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined,
|
2404
2406
|
isoLocality: isoLocality,
|
2405
|
-
|
2407
|
+
requestMetadata: requestMetadata
|
2406
2408
|
}, {
|
2407
2409
|
params: {
|
2408
2410
|
url_subdomain: url_subdomain
|