oro-sdk-apis 6.0.0 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,6 +51,7 @@ export interface ConsultTransmission {
51
51
  keyWebhookSecret: string;
52
52
  }
53
53
  export declare enum ConsultType {
54
+ FollowUp = "FollowUp",
54
55
  Onboard = "Onboard",
55
56
  Refill = "Refill"
56
57
  }
@@ -766,6 +766,7 @@ var ApisPracticeManager = /*#__PURE__*/function () {
766
766
  TransmissionStatus["ReceiverIncompatible"] = "ReceiverIncompatible";
767
767
  })(exports.TransmissionStatus || (exports.TransmissionStatus = {}));
768
768
  (function (ConsultType) {
769
+ ConsultType["FollowUp"] = "FollowUp";
769
770
  ConsultType["Onboard"] = "Onboard";
770
771
  ConsultType["Refill"] = "Refill";
771
772
  })(exports.ConsultType || (exports.ConsultType = {}));
@@ -1845,6 +1846,31 @@ var GuardService = /*#__PURE__*/function () {
1845
1846
  }
1846
1847
  return identitySendConfirmEmail;
1847
1848
  }()
1849
+ /**
1850
+ * Notifies the guard and confirms the phishing attempt
1851
+ * @param attemptUuid the guard logged attempt id
1852
+ * @returns void
1853
+ */
1854
+ ;
1855
+ _proto.authConfirmPhishingAttempts =
1856
+ /*#__PURE__*/
1857
+ function () {
1858
+ var _authConfirmPhishingAttempts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(attemptUuid) {
1859
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
1860
+ while (1) switch (_context12.prev = _context12.next) {
1861
+ case 0:
1862
+ return _context12.abrupt("return", this.api.put(this.baseURL + "/v1/auth/attempts/" + attemptUuid, {}));
1863
+ case 1:
1864
+ case "end":
1865
+ return _context12.stop();
1866
+ }
1867
+ }, _callee12, this);
1868
+ }));
1869
+ function authConfirmPhishingAttempts(_x14) {
1870
+ return _authConfirmPhishingAttempts.apply(this, arguments);
1871
+ }
1872
+ return authConfirmPhishingAttempts;
1873
+ }()
1848
1874
  /**
1849
1875
  * Get an identity using a customer email (format: customer+[b64Hash]@orohealth.me)
1850
1876
  *
@@ -1855,18 +1881,18 @@ var GuardService = /*#__PURE__*/function () {
1855
1881
  _proto.identityGetByCustomerEmail =
1856
1882
  /*#__PURE__*/
1857
1883
  function () {
1858
- var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(email) {
1859
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
1860
- while (1) switch (_context12.prev = _context12.next) {
1884
+ var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(email) {
1885
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
1886
+ while (1) switch (_context13.prev = _context13.next) {
1861
1887
  case 0:
1862
- return _context12.abrupt("return", this.identityGetByHash(email.substring(email.indexOf('+') + 1, email.indexOf('@'))));
1888
+ return _context13.abrupt("return", this.identityGetByHash(email.substring(email.indexOf('+') + 1, email.indexOf('@'))));
1863
1889
  case 1:
1864
1890
  case "end":
1865
- return _context12.stop();
1891
+ return _context13.stop();
1866
1892
  }
1867
- }, _callee12, this);
1893
+ }, _callee13, this);
1868
1894
  }));
1869
- function identityGetByCustomerEmail(_x14) {
1895
+ function identityGetByCustomerEmail(_x15) {
1870
1896
  return _identityGetByCustomerEmail.apply(this, arguments);
1871
1897
  }
1872
1898
  return identityGetByCustomerEmail;
@@ -1881,18 +1907,18 @@ var GuardService = /*#__PURE__*/function () {
1881
1907
  _proto.identityGetByHash =
1882
1908
  /*#__PURE__*/
1883
1909
  function () {
1884
- var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(b64Hash) {
1885
- return _regeneratorRuntime().wrap(function _callee13$(_context13) {
1886
- while (1) switch (_context13.prev = _context13.next) {
1910
+ var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(b64Hash) {
1911
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
1912
+ while (1) switch (_context14.prev = _context14.next) {
1887
1913
  case 0:
1888
- return _context13.abrupt("return", this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_')));
1914
+ return _context14.abrupt("return", this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_')));
1889
1915
  case 1:
1890
1916
  case "end":
1891
- return _context13.stop();
1917
+ return _context14.stop();
1892
1918
  }
1893
- }, _callee13, this);
1919
+ }, _callee14, this);
1894
1920
  }));
1895
- function identityGetByHash(_x15) {
1921
+ function identityGetByHash(_x16) {
1896
1922
  return _identityGetByHash.apply(this, arguments);
1897
1923
  }
1898
1924
  return identityGetByHash;