oro-sdk-apis 1.7.1 → 1.8.2

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.
@@ -1420,6 +1420,7 @@ var PracticeConfigKind;
1420
1420
  PracticeConfigKind["PracticeTheme"] = "PracticeTheme";
1421
1421
  PracticeConfigKind["PracticeLocaleSwitcher"] = "PracticeLocaleSwitcher";
1422
1422
  PracticeConfigKind["PracticeCookieBanner"] = "PracticeCookieBanner";
1423
+ PracticeConfigKind["PracticePharmacyPicker"] = "PracticePharmacyPicker";
1423
1424
  })(PracticeConfigKind || (PracticeConfigKind = {}));
1424
1425
 
1425
1426
  var StripePriceType;
@@ -1795,7 +1796,6 @@ var GuardService = /*#__PURE__*/function () {
1795
1796
  this.api = api;
1796
1797
  this.baseURL = baseURL;
1797
1798
  this.api.setAuthRefreshFn(this.authRefresh.bind(this));
1798
- this.identityCache = {};
1799
1799
  this.whoAmICache = {};
1800
1800
  }
1801
1801
  /**
@@ -2083,31 +2083,17 @@ var GuardService = /*#__PURE__*/function () {
2083
2083
  /*#__PURE__*/
2084
2084
  function () {
2085
2085
  var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(identityID) {
2086
- var _tokens$accessToken, _tokens$refreshToken;
2087
-
2088
- var tokens, cacheKey;
2089
2086
  return runtime_1.wrap(function _callee6$(_context6) {
2090
2087
  while (1) {
2091
2088
  switch (_context6.prev = _context6.next) {
2092
2089
  case 0:
2093
- tokens = this.api.getTokens();
2094
- cacheKey = ((_tokens$accessToken = tokens.accessToken) != null ? _tokens$accessToken : '') + ((_tokens$refreshToken = tokens.refreshToken) != null ? _tokens$refreshToken : '') + identityID;
2095
-
2096
- if (!(!tokens.accessToken || !this.identityCache[cacheKey])) {
2097
- _context6.next = 6;
2098
- break;
2099
- }
2100
-
2101
- _context6.next = 5;
2090
+ _context6.next = 2;
2102
2091
  return this.api.get(this.baseURL + "/v1/identities/" + identityID);
2103
2092
 
2104
- case 5:
2105
- this.identityCache[cacheKey] = _context6.sent;
2106
-
2107
- case 6:
2108
- return _context6.abrupt("return", this.identityCache[cacheKey]);
2093
+ case 2:
2094
+ return _context6.abrupt("return", _context6.sent);
2109
2095
 
2110
- case 7:
2096
+ case 3:
2111
2097
  case "end":
2112
2098
  return _context6.stop();
2113
2099
  }
@@ -2231,7 +2217,7 @@ var GuardService = /*#__PURE__*/function () {
2231
2217
  };
2232
2218
  return _context9.abrupt("return", this.api.post(this.baseURL + "/v1/identities/" + identityID + "/mfa", req, {
2233
2219
  headers: {
2234
- 'Accept': 'application/json'
2220
+ Accept: 'application/json'
2235
2221
  }
2236
2222
  }));
2237
2223