oro-sdk-apis 3.5.0 → 3.6.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.
@@ -663,18 +663,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
663
663
  function () {
664
664
  var _get = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practiceUuid) {
665
665
  var _this = this;
666
- var practiceInstance, newPracticeInstance, authTokenFunc;
666
+ var cacheKey, practiceInstance, newPracticeInstance, authTokenFunc;
667
667
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
668
668
  while (1) {
669
669
  switch (_context2.prev = _context2.next) {
670
670
  case 0:
671
- practiceInstance = this.practiceInstances.get(practiceUuid);
671
+ cacheKey = practiceUuid != null ? practiceUuid : 'none';
672
+ practiceInstance = this.practiceInstances.get(cacheKey);
672
673
  if (!practiceInstance) {
673
- _context2.next = 3;
674
+ _context2.next = 4;
674
675
  break;
675
676
  }
676
677
  return _context2.abrupt("return", practiceInstance);
677
- case 3:
678
+ case 4:
678
679
  newPracticeInstance = init(this.serviceCollReq, undefined, this.useLocalStorage); // Create one auth token callback per practice since the practice uuid needs to change
679
680
  authTokenFunc = /*#__PURE__*/function () {
680
681
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
@@ -704,14 +705,14 @@ var ApisPracticeManager = /*#__PURE__*/function () {
704
705
  return _ref.apply(this, arguments);
705
706
  };
706
707
  }(); // Initialize the M2M token
707
- _context2.next = 7;
708
+ _context2.next = 8;
708
709
  return authTokenFunc();
709
- case 7:
710
+ case 8:
710
711
  // Set the refresh tokens callback
711
712
  newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
712
- this.practiceInstances.set(practiceUuid, newPracticeInstance);
713
+ this.practiceInstances.set(cacheKey, newPracticeInstance);
713
714
  return _context2.abrupt("return", newPracticeInstance);
714
- case 10:
715
+ case 11:
715
716
  case "end":
716
717
  return _context2.stop();
717
718
  }
@@ -1080,6 +1081,12 @@ var DocumentType;
1080
1081
  DocumentType["ImageAlias"] = "ImageAlias";
1081
1082
  })(DocumentType || (DocumentType = {}));
1082
1083
 
1084
+ var InputApplyFunctions;
1085
+ (function (InputApplyFunctions) {
1086
+ InputApplyFunctions["MakeUpperCase"] = "MakeUpperCase";
1087
+ InputApplyFunctions["MakeLowerCase"] = "MakeLowerCase";
1088
+ InputApplyFunctions["RemoveAllSpaces"] = "RemoveAllSpaces";
1089
+ })(InputApplyFunctions || (InputApplyFunctions = {}));
1083
1090
  var MetadataCategory;
1084
1091
  (function (MetadataCategory) {
1085
1092
  MetadataCategory["ChildPersonal"] = "ChildPersonal";
@@ -2763,5 +2770,5 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
2763
2770
  };
2764
2771
 
2765
2772
  export default init;
2766
- export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, ConsultType, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, IndexKind, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentIntentRequestMetadataKind, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultDataMissing, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
2773
+ export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, ConsultType, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, IndexKind, InputApplyFunctions, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentIntentRequestMetadataKind, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultDataMissing, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
2767
2774
  //# sourceMappingURL=oro-sdk-apis.esm.js.map