oro-sdk-apis 6.0.0 → 6.0.1
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.
- package/dist/oro-sdk-apis.cjs.development.js +39 -14
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +39 -14
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/guard.d.ts +6 -0
- package/package.json +1 -1
- package/src/services/guard.ts +9 -0
@@ -1845,6 +1845,31 @@ var GuardService = /*#__PURE__*/function () {
|
|
1845
1845
|
}
|
1846
1846
|
return identitySendConfirmEmail;
|
1847
1847
|
}()
|
1848
|
+
/**
|
1849
|
+
* Notifies the guard and confirms the phishing attempt
|
1850
|
+
* @param attemptUuid the guard logged attempt id
|
1851
|
+
* @returns void
|
1852
|
+
*/
|
1853
|
+
;
|
1854
|
+
_proto.authConfirmPhishingAttempts =
|
1855
|
+
/*#__PURE__*/
|
1856
|
+
function () {
|
1857
|
+
var _authConfirmPhishingAttempts = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(attemptUuid) {
|
1858
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
1859
|
+
while (1) switch (_context12.prev = _context12.next) {
|
1860
|
+
case 0:
|
1861
|
+
return _context12.abrupt("return", this.api.put(this.baseURL + "/v1/auth/attempts/" + attemptUuid, {}));
|
1862
|
+
case 1:
|
1863
|
+
case "end":
|
1864
|
+
return _context12.stop();
|
1865
|
+
}
|
1866
|
+
}, _callee12, this);
|
1867
|
+
}));
|
1868
|
+
function authConfirmPhishingAttempts(_x14) {
|
1869
|
+
return _authConfirmPhishingAttempts.apply(this, arguments);
|
1870
|
+
}
|
1871
|
+
return authConfirmPhishingAttempts;
|
1872
|
+
}()
|
1848
1873
|
/**
|
1849
1874
|
* Get an identity using a customer email (format: customer+[b64Hash]@orohealth.me)
|
1850
1875
|
*
|
@@ -1855,18 +1880,18 @@ var GuardService = /*#__PURE__*/function () {
|
|
1855
1880
|
_proto.identityGetByCustomerEmail =
|
1856
1881
|
/*#__PURE__*/
|
1857
1882
|
function () {
|
1858
|
-
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
1859
|
-
return _regeneratorRuntime().wrap(function
|
1860
|
-
while (1) switch (
|
1883
|
+
var _identityGetByCustomerEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(email) {
|
1884
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
1885
|
+
while (1) switch (_context13.prev = _context13.next) {
|
1861
1886
|
case 0:
|
1862
|
-
return
|
1887
|
+
return _context13.abrupt("return", this.identityGetByHash(email.substring(email.indexOf('+') + 1, email.indexOf('@'))));
|
1863
1888
|
case 1:
|
1864
1889
|
case "end":
|
1865
|
-
return
|
1890
|
+
return _context13.stop();
|
1866
1891
|
}
|
1867
|
-
},
|
1892
|
+
}, _callee13, this);
|
1868
1893
|
}));
|
1869
|
-
function identityGetByCustomerEmail(
|
1894
|
+
function identityGetByCustomerEmail(_x15) {
|
1870
1895
|
return _identityGetByCustomerEmail.apply(this, arguments);
|
1871
1896
|
}
|
1872
1897
|
return identityGetByCustomerEmail;
|
@@ -1881,18 +1906,18 @@ var GuardService = /*#__PURE__*/function () {
|
|
1881
1906
|
_proto.identityGetByHash =
|
1882
1907
|
/*#__PURE__*/
|
1883
1908
|
function () {
|
1884
|
-
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
1885
|
-
return _regeneratorRuntime().wrap(function
|
1886
|
-
while (1) switch (
|
1909
|
+
var _identityGetByHash = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(b64Hash) {
|
1910
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
1911
|
+
while (1) switch (_context14.prev = _context14.next) {
|
1887
1912
|
case 0:
|
1888
|
-
return
|
1913
|
+
return _context14.abrupt("return", this.identityGet(b64Hash.replace(/\+/g, '-').replace(/\//g, '_')));
|
1889
1914
|
case 1:
|
1890
1915
|
case "end":
|
1891
|
-
return
|
1916
|
+
return _context14.stop();
|
1892
1917
|
}
|
1893
|
-
},
|
1918
|
+
}, _callee14, this);
|
1894
1919
|
}));
|
1895
|
-
function identityGetByHash(
|
1920
|
+
function identityGetByHash(_x16) {
|
1896
1921
|
return _identityGetByHash.apply(this, arguments);
|
1897
1922
|
}
|
1898
1923
|
return identityGetByHash;
|