oro-sdk-apis 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1889,6 +1889,31 @@ var GuardService = /*#__PURE__*/function () {
1889
1889
  }
1890
1890
  return identitySendConfirmEmail;
1891
1891
  }()
1892
+ /**
1893
+ * Notifies the guard and confirms the phishing attempt
1894
+ * @param attemptUuid the guard logged attempt id
1895
+ * @returns void
1896
+ */
1897
+ ;
1898
+ _proto.authConfirmPhishingAttempts =
1899
+ /*#__PURE__*/
1900
+ function () {
1901
+ var _authConfirmPhishingAttempts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(attemptUuid) {
1902
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
1903
+ while (1) switch (_context12.prev = _context12.next) {
1904
+ case 0:
1905
+ return _context12.abrupt("return", this.api.put(this.baseURL + "/v1/auth/attempts/" + attemptUuid, {}));
1906
+ case 1:
1907
+ case "end":
1908
+ return _context12.stop();
1909
+ }
1910
+ }, _callee12, this);
1911
+ }));
1912
+ function authConfirmPhishingAttempts(_x14) {
1913
+ return _authConfirmPhishingAttempts.apply(this, arguments);
1914
+ }
1915
+ return authConfirmPhishingAttempts;
1916
+ }()
1892
1917
  /**
1893
1918
  * Get an identity using a customer email (format: customer+[b64Hash]@orohealth.me)
1894
1919
  *
@@ -1899,18 +1924,18 @@ var GuardService = /*#__PURE__*/function () {
1899
1924
  _proto.identityGetByCustomerEmail =
1900
1925
  /*#__PURE__*/
1901
1926
  function () {
1902
- var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(email) {
1903
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
1904
- while (1) switch (_context12.prev = _context12.next) {
1927
+ var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(email) {
1928
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
1929
+ while (1) switch (_context13.prev = _context13.next) {
1905
1930
  case 0:
1906
- return _context12.abrupt("return", this.identityGetByHash(email.substring(email.indexOf('+') + 1, email.indexOf('@'))));
1931
+ return _context13.abrupt("return", this.identityGetByHash(email.substring(email.indexOf('+') + 1, email.indexOf('@'))));
1907
1932
  case 1:
1908
1933
  case "end":
1909
- return _context12.stop();
1934
+ return _context13.stop();
1910
1935
  }
1911
- }, _callee12, this);
1936
+ }, _callee13, this);
1912
1937
  }));
1913
- function identityGetByCustomerEmail(_x14) {
1938
+ function identityGetByCustomerEmail(_x15) {
1914
1939
  return _identityGetByCustomerEmail.apply(this, arguments);
1915
1940
  }
1916
1941
  return identityGetByCustomerEmail;
@@ -1925,18 +1950,18 @@ var GuardService = /*#__PURE__*/function () {
1925
1950
  _proto.identityGetByHash =
1926
1951
  /*#__PURE__*/
1927
1952
  function () {
1928
- var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(b64Hash) {
1929
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
1930
- while (1) switch (_context13.prev = _context13.next) {
1953
+ var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(b64Hash) {
1954
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
1955
+ while (1) switch (_context14.prev = _context14.next) {
1931
1956
  case 0:
1932
- return _context13.abrupt("return", this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_')));
1957
+ return _context14.abrupt("return", this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_')));
1933
1958
  case 1:
1934
1959
  case "end":
1935
- return _context13.stop();
1960
+ return _context14.stop();
1936
1961
  }
1937
- }, _callee13, this);
1962
+ }, _callee14, this);
1938
1963
  }));
1939
- function identityGetByHash(_x15) {
1964
+ function identityGetByHash(_x16) {
1940
1965
  return _identityGetByHash.apply(this, arguments);
1941
1966
  }
1942
1967
  return identityGetByHash;