oro-sdk-apis 1.11.1 → 1.13.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.
@@ -2296,6 +2296,70 @@ var GuardService = /*#__PURE__*/function () {
2296
2296
  }
2297
2297
 
2298
2298
  return identitySendConfirmEmail;
2299
+ }()
2300
+ /**
2301
+ * Get an identity using a customer email (format: customer+[b64Hash]@orohealth.me)
2302
+ *
2303
+ * @param email the customer email
2304
+ * @returns IdentityResponse
2305
+ */
2306
+ ;
2307
+
2308
+ _proto.identityGetByCustomerEmail =
2309
+ /*#__PURE__*/
2310
+ function () {
2311
+ var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(email) {
2312
+ return runtime_1.wrap(function _callee11$(_context11) {
2313
+ while (1) {
2314
+ switch (_context11.prev = _context11.next) {
2315
+ case 0:
2316
+ return _context11.abrupt("return", this.identityGetByHash(email.substring(email.indexOf('+') + 1, email.indexOf('@'))));
2317
+
2318
+ case 1:
2319
+ case "end":
2320
+ return _context11.stop();
2321
+ }
2322
+ }
2323
+ }, _callee11, this);
2324
+ }));
2325
+
2326
+ function identityGetByCustomerEmail(_x13) {
2327
+ return _identityGetByCustomerEmail.apply(this, arguments);
2328
+ }
2329
+
2330
+ return identityGetByCustomerEmail;
2331
+ }()
2332
+ /**
2333
+ * Get an identity using a base64 hash
2334
+ *
2335
+ * @param b64Hash base64 hash of the identity
2336
+ * @returns IdentityResponse
2337
+ */
2338
+ ;
2339
+
2340
+ _proto.identityGetByHash =
2341
+ /*#__PURE__*/
2342
+ function () {
2343
+ var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(b64Hash) {
2344
+ return runtime_1.wrap(function _callee12$(_context12) {
2345
+ while (1) {
2346
+ switch (_context12.prev = _context12.next) {
2347
+ case 0:
2348
+ return _context12.abrupt("return", this.identityGet(b64Hash.replace('+', '-').replace('/', '_')));
2349
+
2350
+ case 1:
2351
+ case "end":
2352
+ return _context12.stop();
2353
+ }
2354
+ }
2355
+ }, _callee12, this);
2356
+ }));
2357
+
2358
+ function identityGetByHash(_x14) {
2359
+ return _identityGetByHash.apply(this, arguments);
2360
+ }
2361
+
2362
+ return identityGetByHash;
2299
2363
  }();
2300
2364
 
2301
2365
  return GuardService;