oro-sdk-apis 1.8.1 → 1.8.4

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.
@@ -315,6 +315,7 @@ export interface HydratedPracticeConfigs {
315
315
  [PracticeConfigKind.PracticeTheme]?: PracticeConfigPracticeTheme;
316
316
  [PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
317
317
  [PracticeConfigKind.PracticeCookieBanner]?: PracticeConfigPracticeCookieBanner;
318
+ [PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
318
319
  }
319
320
  export interface Practice {
320
321
  uuid: string;
@@ -2030,6 +2030,7 @@ var GuardService = /*#__PURE__*/function () {
2030
2030
  * without authentication
2031
2031
  *
2032
2032
  * @param identityID Unique id of the identity to retrieve
2033
+ * @param skipCache (default: false) will skip identity cache (not even update it)
2033
2034
  * @returns IdentityResponse
2034
2035
  */
2035
2036
  ;
@@ -2037,32 +2038,46 @@ var GuardService = /*#__PURE__*/function () {
2037
2038
  _proto.identityGet =
2038
2039
  /*#__PURE__*/
2039
2040
  function () {
2040
- var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(identityID) {
2041
+ var _identityGet = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(identityID, skipCache) {
2041
2042
  var _tokens$accessToken, _tokens$refreshToken;
2042
2043
 
2043
- var tokens, cacheKey;
2044
+ var tokens, cacheKey, identity;
2044
2045
  return runtime_1.wrap(function _callee6$(_context6) {
2045
2046
  while (1) {
2046
2047
  switch (_context6.prev = _context6.next) {
2047
2048
  case 0:
2049
+ if (skipCache === void 0) {
2050
+ skipCache = false;
2051
+ }
2052
+
2048
2053
  tokens = this.api.getTokens();
2049
2054
  cacheKey = ((_tokens$accessToken = tokens.accessToken) != null ? _tokens$accessToken : '') + ((_tokens$refreshToken = tokens.refreshToken) != null ? _tokens$refreshToken : '') + identityID;
2050
2055
 
2051
- if (!(!tokens.accessToken || !this.identityCache[cacheKey])) {
2052
- _context6.next = 6;
2056
+ if (!(skipCache || !tokens.accessToken || !this.identityCache[cacheKey])) {
2057
+ _context6.next = 10;
2053
2058
  break;
2054
2059
  }
2055
2060
 
2056
- _context6.next = 5;
2061
+ _context6.next = 6;
2057
2062
  return this.api.get(this.baseURL + "/v1/identities/" + identityID);
2058
2063
 
2059
- case 5:
2060
- this.identityCache[cacheKey] = _context6.sent;
2061
-
2062
2064
  case 6:
2065
+ identity = _context6.sent;
2066
+
2067
+ if (!skipCache) {
2068
+ _context6.next = 9;
2069
+ break;
2070
+ }
2071
+
2072
+ return _context6.abrupt("return", identity);
2073
+
2074
+ case 9:
2075
+ this.identityCache[cacheKey] = identity;
2076
+
2077
+ case 10:
2063
2078
  return _context6.abrupt("return", this.identityCache[cacheKey]);
2064
2079
 
2065
- case 7:
2080
+ case 11:
2066
2081
  case "end":
2067
2082
  return _context6.stop();
2068
2083
  }
@@ -2070,7 +2085,7 @@ var GuardService = /*#__PURE__*/function () {
2070
2085
  }, _callee6, this);
2071
2086
  }));
2072
2087
 
2073
- function identityGet(_x5) {
2088
+ function identityGet(_x5, _x6) {
2074
2089
  return _identityGet.apply(this, arguments);
2075
2090
  }
2076
2091
 
@@ -2123,7 +2138,7 @@ var GuardService = /*#__PURE__*/function () {
2123
2138
  }, _callee7, this);
2124
2139
  }));
2125
2140
 
2126
- function whoAmI(_x6) {
2141
+ function whoAmI(_x7) {
2127
2142
  return _whoAmI.apply(this, arguments);
2128
2143
  }
2129
2144
 
@@ -2156,7 +2171,7 @@ var GuardService = /*#__PURE__*/function () {
2156
2171
  }, _callee8, this);
2157
2172
  }));
2158
2173
 
2159
- function identityUpdate(_x7, _x8) {
2174
+ function identityUpdate(_x8, _x9) {
2160
2175
  return _identityUpdate.apply(this, arguments);
2161
2176
  }
2162
2177
 
@@ -2186,7 +2201,7 @@ var GuardService = /*#__PURE__*/function () {
2186
2201
  };
2187
2202
  return _context9.abrupt("return", this.api.post(this.baseURL + "/v1/identities/" + identityID + "/mfa", req, {
2188
2203
  headers: {
2189
- 'Accept': 'application/json'
2204
+ Accept: 'application/json'
2190
2205
  }
2191
2206
  }));
2192
2207
 
@@ -2198,7 +2213,7 @@ var GuardService = /*#__PURE__*/function () {
2198
2213
  }, _callee9, this);
2199
2214
  }));
2200
2215
 
2201
- function identityMFAQRCode(_x9, _x10) {
2216
+ function identityMFAQRCode(_x10, _x11) {
2202
2217
  return _identityMFAQRCode.apply(this, arguments);
2203
2218
  }
2204
2219
 
@@ -2230,7 +2245,7 @@ var GuardService = /*#__PURE__*/function () {
2230
2245
  }, _callee10, this);
2231
2246
  }));
2232
2247
 
2233
- function identitySendConfirmEmail(_x11) {
2248
+ function identitySendConfirmEmail(_x12) {
2234
2249
  return _identitySendConfirmEmail.apply(this, arguments);
2235
2250
  }
2236
2251