@medipass/web-sdk 11.52.3 → 11.53.1-feature-add-new-mfa-endpoints.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/index.js +1 -1
  3. package/lib/resources/abr.js +1 -1
  4. package/lib/resources/accounts.d.ts +35 -0
  5. package/lib/resources/accounts.js +4 -1
  6. package/lib/resources/actions.js +1 -1
  7. package/lib/resources/api-keys.js +1 -1
  8. package/lib/resources/applications.js +1 -1
  9. package/lib/resources/attachments.js +1 -1
  10. package/lib/resources/auth.js +1 -1
  11. package/lib/resources/blacklist.js +1 -1
  12. package/lib/resources/bulk-submits.js +1 -1
  13. package/lib/resources/bulk-uploads.js +1 -1
  14. package/lib/resources/business-profiles.js +1 -1
  15. package/lib/resources/businesses.js +1 -1
  16. package/lib/resources/claim-items.js +1 -1
  17. package/lib/resources/devices.js +1 -1
  18. package/lib/resources/doc-accounts.js +1 -1
  19. package/lib/resources/documents.js +1 -1
  20. package/lib/resources/emails.js +1 -1
  21. package/lib/resources/filter-options.js +1 -1
  22. package/lib/resources/form-application-templates.js +1 -1
  23. package/lib/resources/form-applications.js +1 -1
  24. package/lib/resources/forms.js +1 -1
  25. package/lib/resources/funder-services.js +1 -1
  26. package/lib/resources/funder-settings.js +1 -1
  27. package/lib/resources/funder-values.js +1 -1
  28. package/lib/resources/funders.js +1 -1
  29. package/lib/resources/futures.js +1 -1
  30. package/lib/resources/health-fund-accounts.js +1 -1
  31. package/lib/resources/health-fund-settings.js +1 -1
  32. package/lib/resources/healthfunds.js +1 -1
  33. package/lib/resources/icditems.js +1 -1
  34. package/lib/resources/invoice-scans.js +1 -1
  35. package/lib/resources/jhcs.js +1 -1
  36. package/lib/resources/kyc.js +1 -1
  37. package/lib/resources/logs.js +1 -1
  38. package/lib/resources/members.js +1 -1
  39. package/lib/resources/message-mappings.js +1 -1
  40. package/lib/resources/minions.js +1 -1
  41. package/lib/resources/modalities.js +1 -1
  42. package/lib/resources/notes.js +1 -1
  43. package/lib/resources/onboarding-applications.js +1 -1
  44. package/lib/resources/onboarding-requests.js +1 -1
  45. package/lib/resources/ops.js +1 -1
  46. package/lib/resources/organisations.js +1 -1
  47. package/lib/resources/partners.js +1 -1
  48. package/lib/resources/patients.js +1 -1
  49. package/lib/resources/payments.js +1 -1
  50. package/lib/resources/pms.js +1 -1
  51. package/lib/resources/practice-profiles.js +1 -1
  52. package/lib/resources/practice-types.js +1 -1
  53. package/lib/resources/practices.js +1 -1
  54. package/lib/resources/products.js +1 -1
  55. package/lib/resources/professional-categories.js +1 -1
  56. package/lib/resources/provider-number-types.js +1 -1
  57. package/lib/resources/provider-registration-types.js +1 -1
  58. package/lib/resources/provider-requests.js +1 -1
  59. package/lib/resources/provider-types.js +1 -1
  60. package/lib/resources/ref-sources.js +1 -1
  61. package/lib/resources/risk.js +1 -1
  62. package/lib/resources/rnas.js +1 -1
  63. package/lib/resources/roles.js +1 -1
  64. package/lib/resources/self-checkout-sessions.js +1 -1
  65. package/lib/resources/services.js +1 -1
  66. package/lib/resources/settlements.js +1 -1
  67. package/lib/resources/sign-up.js +1 -1
  68. package/lib/resources/specialties.js +1 -1
  69. package/lib/resources/staff-profiles.js +1 -1
  70. package/lib/resources/staff.js +1 -1
  71. package/lib/resources/statistics.js +1 -1
  72. package/lib/resources/subscriptions.js +1 -1
  73. package/lib/resources/terminals.js +1 -1
  74. package/lib/resources/transaction-export.js +1 -1
  75. package/lib/resources/transactions.js +1 -1
  76. package/lib/resources/triggers.js +1 -1
  77. package/lib/resources/vendors.js +1 -1
  78. package/lib/resources/verify.js +1 -1
  79. package/lib/resources/workers.js +1 -1
  80. package/lib/resources/workflow-exceptions.js +1 -1
  81. package/lib/services/aws.js +1 -1
  82. package/lib/services/version.js +1 -1
  83. package/lib/{staff-75ea1b6f.js → staff-fa00e5e0.js} +434 -158
  84. package/lib/utils/application.js +1 -1
  85. package/lib/utils/professions.js +1 -1
  86. package/lib/utils/request.js +1 -1
  87. package/lib/utils/staff.js +1 -1
  88. package/package.json +3 -3
@@ -155,7 +155,7 @@ var abr = /*#__PURE__*/Object.freeze({
155
155
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
156
156
 
157
157
  function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
158
- var PATH__ACCOUNTS = '/accounts'; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
158
+ var PATH__ACCOUNTS = '/accounts';
159
159
 
160
160
  var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
161
161
  return "/accounts/" + accountId;
@@ -163,28 +163,23 @@ var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
163
163
 
164
164
  var pathAccountExists = function pathAccountExists() {
165
165
  return "/accounts/exists";
166
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
167
-
166
+ };
168
167
 
169
168
  var pathAccountRolesByAccountId = function pathAccountRolesByAccountId(accountId) {
170
169
  return "/accounts/" + accountId + "/roles";
171
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
172
-
170
+ };
173
171
 
174
172
  var pathAccountSecretKeysByAccountId = function pathAccountSecretKeysByAccountId(accountId) {
175
173
  return "/accounts/" + accountId + "/secretkeys";
176
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
177
-
174
+ };
178
175
 
179
176
  var pathAccountSecretKey = function pathAccountSecretKey(accountId, secretKey) {
180
177
  return "/accounts/" + accountId + "/secretkeys/" + secretKey;
181
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
182
-
178
+ };
183
179
 
184
180
  var pathAccountTransactions = function pathAccountTransactions(accountId) {
185
181
  return "/accounts/" + accountId + "/transactions";
186
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
187
-
182
+ };
188
183
 
189
184
  var pathBusinessStaffAccount = function pathBusinessStaffAccount(businessId, staffId) {
190
185
  return "/businesses/" + businessId + "/staff/" + staffId + "/account";
@@ -192,43 +187,48 @@ var pathBusinessStaffAccount = function pathBusinessStaffAccount(businessId, sta
192
187
 
193
188
  var pathChangePassword = function pathChangePassword() {
194
189
  return "/accounts/changepassword";
195
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
196
-
190
+ };
197
191
 
198
192
  var pathEnableAccount = function pathEnableAccount(accountId) {
199
193
  return "/accounts/" + accountId + "/enable";
200
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
201
-
194
+ };
202
195
 
203
196
  var pathDisableAccount = function pathDisableAccount(accountId) {
204
197
  return "/accounts/" + accountId + "/disable";
205
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
206
-
198
+ };
207
199
 
208
200
  var pathRequestVerifyAccount = function pathRequestVerifyAccount(accountId) {
209
201
  return "/accounts/" + accountId + "/verify/request";
210
- }; // @ts-expect-error TS(7006): Parameter 'healthFundId' implicitly has an 'any' t... Remove this comment to see the full error message
211
-
202
+ };
212
203
 
213
204
  var pathHealthFundAccounts = function pathHealthFundAccounts(healthFundId) {
214
205
  return "/healthfunds/" + healthFundId + "/accounts";
215
- }; // @ts-expect-error TS(7006): Parameter 'healthFundId' implicitly has an 'any' t... Remove this comment to see the full error message
216
-
206
+ };
217
207
 
218
208
  var pathHealthFundAccount = function pathHealthFundAccount(healthFundId, accountId) {
219
209
  return "/healthfunds/" + healthFundId + "/accounts/" + accountId;
220
- }; // @ts-expect-error TS(7006): Parameter 'organisationId' implicitly has an 'any'... Remove this comment to see the full error message
221
-
210
+ };
222
211
 
223
212
  var pathOrganisationAccounts = function pathOrganisationAccounts(organisationId) {
224
213
  return "/organisations/" + organisationId + "/accounts";
225
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
226
-
214
+ };
227
215
 
228
216
  var pathAccountPractices = function pathAccountPractices(accountId) {
229
217
  return "/accounts/" + accountId + "/practices";
230
218
  };
231
219
 
220
+ var pathEnableTwoFactorAuthentication = function pathEnableTwoFactorAuthentication(accountId) {
221
+ return "/accounts/" + accountId + "/mfa/sms";
222
+ };
223
+
224
+ var pathDisableTwoFactorAuthentication = function pathDisableTwoFactorAuthentication(accountId) {
225
+ return "/accounts/" + accountId + "/mfa/sms";
226
+ };
227
+
228
+ var pathUpdateTwoFactorAuthentication = function pathUpdateTwoFactorAuthentication(accountId) {
229
+ return "/accounts/" + accountId + "/mfa/sms";
230
+ };
231
+
232
232
  var PATH__ACCEPT_ACCOUNT_INVITE = '/accounts/invites/accept';
233
233
  var PATH__REQUEST_ACCOUNT_RESET = '/accounts/reset/request';
234
234
  var PATH__REQUEST_PASSWORD_RESET = '/accounts/reset/password/request';
@@ -1524,6 +1524,123 @@ var changePassword = /*#__PURE__*/function () {
1524
1524
  return _ref34.apply(this, arguments);
1525
1525
  };
1526
1526
  }();
1527
+ /**
1528
+ * Enable SMS MFA
1529
+ * @param {String} accountId - Account ID
1530
+ * @param {Object} body - Object body
1531
+ * @param {Object} opts - Additional options
1532
+ */
1533
+
1534
+ var enableTwoFactorAuthentication = /*#__PURE__*/function () {
1535
+ var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(accountId, body, opts) {
1536
+ return _regeneratorRuntime.wrap(function _callee33$(_context33) {
1537
+ while (1) {
1538
+ switch (_context33.prev = _context33.next) {
1539
+ case 0:
1540
+ if (opts === void 0) {
1541
+ opts = {};
1542
+ }
1543
+
1544
+ doesParamExist.default({
1545
+ accountId: accountId
1546
+ }, opts.hyperMediaEndpoint);
1547
+ return _context33.abrupt("return", request(_objectSpread$2({}, opts, {
1548
+ path: pathEnableTwoFactorAuthentication(accountId)
1549
+ }), {
1550
+ method: 'post',
1551
+ data: body
1552
+ }));
1553
+
1554
+ case 3:
1555
+ case "end":
1556
+ return _context33.stop();
1557
+ }
1558
+ }
1559
+ }, _callee33);
1560
+ }));
1561
+
1562
+ return function enableTwoFactorAuthentication(_x82, _x83, _x84) {
1563
+ return _ref35.apply(this, arguments);
1564
+ };
1565
+ }();
1566
+ /**
1567
+ * Disable SMS MFA
1568
+ * @param {String} accountId - Account ID
1569
+ * @param {Object} body - Object body
1570
+ * @param {Object} opts - Additional options
1571
+ */
1572
+
1573
+ var disableTwoFactorAuthentication = /*#__PURE__*/function () {
1574
+ var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(accountId, body, opts) {
1575
+ return _regeneratorRuntime.wrap(function _callee34$(_context34) {
1576
+ while (1) {
1577
+ switch (_context34.prev = _context34.next) {
1578
+ case 0:
1579
+ if (opts === void 0) {
1580
+ opts = {};
1581
+ }
1582
+
1583
+ doesParamExist.default({
1584
+ accountId: accountId
1585
+ }, opts.hyperMediaEndpoint);
1586
+ return _context34.abrupt("return", request(_objectSpread$2({}, opts, {
1587
+ path: pathDisableTwoFactorAuthentication(accountId)
1588
+ }), {
1589
+ method: 'delete',
1590
+ data: body
1591
+ }));
1592
+
1593
+ case 3:
1594
+ case "end":
1595
+ return _context34.stop();
1596
+ }
1597
+ }
1598
+ }, _callee34);
1599
+ }));
1600
+
1601
+ return function disableTwoFactorAuthentication(_x85, _x86, _x87) {
1602
+ return _ref36.apply(this, arguments);
1603
+ };
1604
+ }();
1605
+ /**
1606
+ * Update SMS MFA
1607
+ * @param {String} accountId - Account ID
1608
+ * @param {Object} body - Object body
1609
+ * @param {Object} opts - Additional options
1610
+ */
1611
+
1612
+ var updateTwoFactorAuthentication = /*#__PURE__*/function () {
1613
+ var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(accountId, body, opts) {
1614
+ return _regeneratorRuntime.wrap(function _callee35$(_context35) {
1615
+ while (1) {
1616
+ switch (_context35.prev = _context35.next) {
1617
+ case 0:
1618
+ if (opts === void 0) {
1619
+ opts = {};
1620
+ }
1621
+
1622
+ doesParamExist.default({
1623
+ accountId: accountId
1624
+ }, opts.hyperMediaEndpoint);
1625
+ return _context35.abrupt("return", request(_objectSpread$2({}, opts, {
1626
+ path: pathUpdateTwoFactorAuthentication(accountId)
1627
+ }), {
1628
+ method: 'put',
1629
+ data: body
1630
+ }));
1631
+
1632
+ case 3:
1633
+ case "end":
1634
+ return _context35.stop();
1635
+ }
1636
+ }
1637
+ }, _callee35);
1638
+ }));
1639
+
1640
+ return function updateTwoFactorAuthentication(_x88, _x89, _x90) {
1641
+ return _ref37.apply(this, arguments);
1642
+ };
1643
+ }();
1527
1644
 
1528
1645
  var accounts = /*#__PURE__*/Object.freeze({
1529
1646
  __proto__: null,
@@ -1558,7 +1675,10 @@ var accounts = /*#__PURE__*/Object.freeze({
1558
1675
  updateAccount: updateAccount,
1559
1676
  updateAccountRoles: updateAccountRoles,
1560
1677
  getAccountPractices: getAccountPractices,
1561
- changePassword: changePassword
1678
+ changePassword: changePassword,
1679
+ enableTwoFactorAuthentication: enableTwoFactorAuthentication,
1680
+ disableTwoFactorAuthentication: disableTwoFactorAuthentication,
1681
+ updateTwoFactorAuthentication: updateTwoFactorAuthentication
1562
1682
  });
1563
1683
 
1564
1684
  function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -6121,41 +6241,75 @@ var createBusinessHold = function createBusinessHold(businessId, body, opts) {
6121
6241
  * @param {Object} opts - Additional options
6122
6242
  */
6123
6243
 
6124
- var createBusinessInstalmentPlan = function createBusinessInstalmentPlan(businessId, body, opts) {
6125
- if (opts === void 0) {
6126
- opts = {};
6127
- }
6244
+ var createBusinessInstalmentPlan = /*#__PURE__*/function () {
6245
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
6246
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
6247
+ while (1) {
6248
+ switch (_context.prev = _context.next) {
6249
+ case 0:
6250
+ if (opts === void 0) {
6251
+ opts = {};
6252
+ }
6128
6253
 
6129
- doesParamExist.default({
6130
- businessId: businessId
6131
- }, opts.hyperMediaEndpoint);
6132
- return request(_objectSpread$r({}, opts, {
6133
- path: pathBusinessInstalmentPlans(businessId)
6134
- }), {
6135
- method: 'post',
6136
- data: body
6137
- });
6138
- };
6254
+ doesParamExist.default({
6255
+ businessId: businessId
6256
+ }, opts.hyperMediaEndpoint);
6257
+ return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6258
+ path: pathBusinessInstalmentPlans(businessId)
6259
+ }), {
6260
+ method: 'post',
6261
+ data: body
6262
+ }));
6263
+
6264
+ case 3:
6265
+ case "end":
6266
+ return _context.stop();
6267
+ }
6268
+ }
6269
+ }, _callee);
6270
+ }));
6271
+
6272
+ return function createBusinessInstalmentPlan(_x, _x2, _x3) {
6273
+ return _ref.apply(this, arguments);
6274
+ };
6275
+ }();
6139
6276
  /**
6140
6277
  * Cancel a future
6141
6278
  * @param {String} futureId - Future ID
6142
6279
  * @param {Object} opts - Additional options
6143
6280
  */
6144
6281
 
6145
- var cancel = function cancel(futureId, opts) {
6146
- if (opts === void 0) {
6147
- opts = {};
6148
- }
6282
+ var cancel = /*#__PURE__*/function () {
6283
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(futureId, opts) {
6284
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
6285
+ while (1) {
6286
+ switch (_context2.prev = _context2.next) {
6287
+ case 0:
6288
+ if (opts === void 0) {
6289
+ opts = {};
6290
+ }
6149
6291
 
6150
- doesParamExist.default({
6151
- futureId: futureId
6152
- }, opts.hyperMediaEndpoint);
6153
- return request(_objectSpread$r({}, opts, {
6154
- path: pathCancels(futureId)
6155
- }), {
6156
- method: 'post'
6157
- });
6158
- };
6292
+ doesParamExist.default({
6293
+ futureId: futureId
6294
+ }, opts.hyperMediaEndpoint);
6295
+ return _context2.abrupt("return", request(_objectSpread$r({}, opts, {
6296
+ path: pathCancels(futureId)
6297
+ }), {
6298
+ method: 'post'
6299
+ }));
6300
+
6301
+ case 3:
6302
+ case "end":
6303
+ return _context2.stop();
6304
+ }
6305
+ }
6306
+ }, _callee2);
6307
+ }));
6308
+
6309
+ return function cancel(_x4, _x5) {
6310
+ return _ref2.apply(this, arguments);
6311
+ };
6312
+ }();
6159
6313
  /**
6160
6314
  * Get business futures
6161
6315
  * @param {String} businessId - Business ID
@@ -6163,21 +6317,38 @@ var cancel = function cancel(futureId, opts) {
6163
6317
  * @param {Object} opts - Additional options
6164
6318
  */
6165
6319
 
6166
- var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6167
- if (opts === void 0) {
6168
- opts = {};
6169
- }
6320
+ var getBusinessFutures = /*#__PURE__*/function () {
6321
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(businessId, query, opts) {
6322
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
6323
+ while (1) {
6324
+ switch (_context3.prev = _context3.next) {
6325
+ case 0:
6326
+ if (opts === void 0) {
6327
+ opts = {};
6328
+ }
6170
6329
 
6171
- doesParamExist.default({
6172
- businessId: businessId
6173
- }, opts.hyperMediaEndpoint);
6174
- return request(_objectSpread$r({}, opts, {
6175
- path: pathBusinessFutures(businessId)
6176
- }), {
6177
- method: 'get',
6178
- params: query
6179
- });
6180
- };
6330
+ doesParamExist.default({
6331
+ businessId: businessId
6332
+ }, opts.hyperMediaEndpoint);
6333
+ return _context3.abrupt("return", request(_objectSpread$r({}, opts, {
6334
+ path: pathBusinessFutures(businessId)
6335
+ }), {
6336
+ method: 'get',
6337
+ params: query
6338
+ }));
6339
+
6340
+ case 3:
6341
+ case "end":
6342
+ return _context3.stop();
6343
+ }
6344
+ }
6345
+ }, _callee3);
6346
+ }));
6347
+
6348
+ return function getBusinessFutures(_x6, _x7, _x8) {
6349
+ return _ref3.apply(this, arguments);
6350
+ };
6351
+ }();
6181
6352
  /**
6182
6353
  * Get business future
6183
6354
  * @param {String} businessId - Business ID
@@ -6185,41 +6356,75 @@ var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6185
6356
  * @param {Object} opts - Additional options
6186
6357
  */
6187
6358
 
6188
- var getBusinessFuture = function getBusinessFuture(businessId, futureId, opts) {
6189
- if (opts === void 0) {
6190
- opts = {};
6191
- }
6359
+ var getBusinessFuture = /*#__PURE__*/function () {
6360
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(businessId, futureId, opts) {
6361
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
6362
+ while (1) {
6363
+ switch (_context4.prev = _context4.next) {
6364
+ case 0:
6365
+ if (opts === void 0) {
6366
+ opts = {};
6367
+ }
6192
6368
 
6193
- doesParamExist.default({
6194
- businessId: businessId,
6195
- futureId: futureId
6196
- }, opts.hyperMediaEndpoint);
6197
- return request(_objectSpread$r({}, opts, {
6198
- path: pathBusinessFuture(businessId, futureId)
6199
- }), {
6200
- method: 'get'
6201
- });
6202
- };
6369
+ doesParamExist.default({
6370
+ businessId: businessId,
6371
+ futureId: futureId
6372
+ }, opts.hyperMediaEndpoint);
6373
+ return _context4.abrupt("return", request(_objectSpread$r({}, opts, {
6374
+ path: pathBusinessFuture(businessId, futureId)
6375
+ }), {
6376
+ method: 'get'
6377
+ }));
6378
+
6379
+ case 3:
6380
+ case "end":
6381
+ return _context4.stop();
6382
+ }
6383
+ }
6384
+ }, _callee4);
6385
+ }));
6386
+
6387
+ return function getBusinessFuture(_x9, _x10, _x11) {
6388
+ return _ref4.apply(this, arguments);
6389
+ };
6390
+ }();
6203
6391
  /**
6204
6392
  * Get a future
6205
6393
  * @param {String} futureId - Future ID
6206
6394
  * @param {Object} opts - Additional options
6207
6395
  */
6208
6396
 
6209
- var getFuture = function getFuture(futureId, opts) {
6210
- if (opts === void 0) {
6211
- opts = {};
6212
- }
6397
+ var getFuture = /*#__PURE__*/function () {
6398
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(futureId, opts) {
6399
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
6400
+ while (1) {
6401
+ switch (_context5.prev = _context5.next) {
6402
+ case 0:
6403
+ if (opts === void 0) {
6404
+ opts = {};
6405
+ }
6213
6406
 
6214
- doesParamExist.default({
6215
- futureId: futureId
6216
- }, opts.hyperMediaEndpoint);
6217
- return request(_objectSpread$r({}, opts, {
6218
- path: pathFuture(futureId)
6219
- }), {
6220
- method: 'get'
6221
- });
6222
- };
6407
+ doesParamExist.default({
6408
+ futureId: futureId
6409
+ }, opts.hyperMediaEndpoint);
6410
+ return _context5.abrupt("return", request(_objectSpread$r({}, opts, {
6411
+ path: pathFuture(futureId)
6412
+ }), {
6413
+ method: 'get'
6414
+ }));
6415
+
6416
+ case 3:
6417
+ case "end":
6418
+ return _context5.stop();
6419
+ }
6420
+ }
6421
+ }, _callee5);
6422
+ }));
6423
+
6424
+ return function getFuture(_x12, _x13) {
6425
+ return _ref5.apply(this, arguments);
6426
+ };
6427
+ }();
6223
6428
  /**
6224
6429
  * Get payment link
6225
6430
  * @param {String} futureId - Future ID
@@ -6227,10 +6432,10 @@ var getFuture = function getFuture(futureId, opts) {
6227
6432
  */
6228
6433
 
6229
6434
  var getPaymentLink = /*#__PURE__*/function () {
6230
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(futureId, opts) {
6231
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6435
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(futureId, opts) {
6436
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
6232
6437
  while (1) {
6233
- switch (_context.prev = _context.next) {
6438
+ switch (_context6.prev = _context6.next) {
6234
6439
  case 0:
6235
6440
  if (opts === void 0) {
6236
6441
  opts = {};
@@ -6239,7 +6444,7 @@ var getPaymentLink = /*#__PURE__*/function () {
6239
6444
  doesParamExist.default({
6240
6445
  futureId: futureId
6241
6446
  }, opts.hyperMediaEndpoint);
6242
- return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6447
+ return _context6.abrupt("return", request(_objectSpread$r({}, opts, {
6243
6448
  path: pathPaymentLink(futureId)
6244
6449
  }), {
6245
6450
  method: 'get'
@@ -6247,14 +6452,14 @@ var getPaymentLink = /*#__PURE__*/function () {
6247
6452
 
6248
6453
  case 3:
6249
6454
  case "end":
6250
- return _context.stop();
6455
+ return _context6.stop();
6251
6456
  }
6252
6457
  }
6253
- }, _callee);
6458
+ }, _callee6);
6254
6459
  }));
6255
6460
 
6256
- return function getPaymentLink(_x, _x2) {
6257
- return _ref.apply(this, arguments);
6461
+ return function getPaymentLink(_x14, _x15) {
6462
+ return _ref6.apply(this, arguments);
6258
6463
  };
6259
6464
  }();
6260
6465
  /**
@@ -6264,21 +6469,38 @@ var getPaymentLink = /*#__PURE__*/function () {
6264
6469
  * @param {Object} opts - Additional options
6265
6470
  */
6266
6471
 
6267
- var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts) {
6268
- if (opts === void 0) {
6269
- opts = {};
6270
- }
6472
+ var sendProcessingRequest = /*#__PURE__*/function () {
6473
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(futureId, body, opts) {
6474
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
6475
+ while (1) {
6476
+ switch (_context7.prev = _context7.next) {
6477
+ case 0:
6478
+ if (opts === void 0) {
6479
+ opts = {};
6480
+ }
6271
6481
 
6272
- doesParamExist.default({
6273
- futureId: futureId
6274
- }, opts.hyperMediaEndpoint);
6275
- return request(_objectSpread$r({}, opts, {
6276
- path: pathProcessingRequests(futureId)
6277
- }), {
6278
- method: 'post',
6279
- data: body
6280
- });
6281
- };
6482
+ doesParamExist.default({
6483
+ futureId: futureId
6484
+ }, opts.hyperMediaEndpoint);
6485
+ return _context7.abrupt("return", request(_objectSpread$r({}, opts, {
6486
+ path: pathProcessingRequests(futureId)
6487
+ }), {
6488
+ method: 'post',
6489
+ data: body
6490
+ }));
6491
+
6492
+ case 3:
6493
+ case "end":
6494
+ return _context7.stop();
6495
+ }
6496
+ }
6497
+ }, _callee7);
6498
+ }));
6499
+
6500
+ return function sendProcessingRequest(_x16, _x17, _x18) {
6501
+ return _ref7.apply(this, arguments);
6502
+ };
6503
+ }();
6282
6504
  /**
6283
6505
  * Submit a future
6284
6506
  * @param {String} futureId - Future ID
@@ -6286,21 +6508,38 @@ var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts)
6286
6508
  * @param {Object} opts - Additional options
6287
6509
  */
6288
6510
 
6289
- var submit = function submit(futureId, body, opts) {
6290
- if (opts === void 0) {
6291
- opts = {};
6292
- }
6511
+ var submit = /*#__PURE__*/function () {
6512
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(futureId, body, opts) {
6513
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
6514
+ while (1) {
6515
+ switch (_context8.prev = _context8.next) {
6516
+ case 0:
6517
+ if (opts === void 0) {
6518
+ opts = {};
6519
+ }
6293
6520
 
6294
- doesParamExist.default({
6295
- futureId: futureId
6296
- }, opts.hyperMediaEndpoint);
6297
- return request(_objectSpread$r({}, opts, {
6298
- path: pathSubmits(futureId)
6299
- }), {
6300
- method: 'post',
6301
- data: body
6302
- });
6303
- };
6521
+ doesParamExist.default({
6522
+ futureId: futureId
6523
+ }, opts.hyperMediaEndpoint);
6524
+ return _context8.abrupt("return", request(_objectSpread$r({}, opts, {
6525
+ path: pathSubmits(futureId)
6526
+ }), {
6527
+ method: 'post',
6528
+ data: body
6529
+ }));
6530
+
6531
+ case 3:
6532
+ case "end":
6533
+ return _context8.stop();
6534
+ }
6535
+ }
6536
+ }, _callee8);
6537
+ }));
6538
+
6539
+ return function submit(_x19, _x20, _x21) {
6540
+ return _ref8.apply(this, arguments);
6541
+ };
6542
+ }();
6304
6543
  /**
6305
6544
  * Update a future
6306
6545
  * @param {String} futureId - Future ID
@@ -6308,21 +6547,38 @@ var submit = function submit(futureId, body, opts) {
6308
6547
  * @param {Object} opts - Additional options
6309
6548
  */
6310
6549
 
6311
- var update = function update(futureId, body, opts) {
6312
- if (opts === void 0) {
6313
- opts = {};
6314
- }
6550
+ var update = /*#__PURE__*/function () {
6551
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(futureId, body, opts) {
6552
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
6553
+ while (1) {
6554
+ switch (_context9.prev = _context9.next) {
6555
+ case 0:
6556
+ if (opts === void 0) {
6557
+ opts = {};
6558
+ }
6315
6559
 
6316
- doesParamExist.default({
6317
- futureId: futureId
6318
- }, opts.hyperMediaEndpoint);
6319
- return request(_objectSpread$r({}, opts, {
6320
- path: pathFuture(futureId)
6321
- }), {
6322
- method: 'put',
6323
- data: body
6324
- });
6325
- };
6560
+ doesParamExist.default({
6561
+ futureId: futureId
6562
+ }, opts.hyperMediaEndpoint);
6563
+ return _context9.abrupt("return", request(_objectSpread$r({}, opts, {
6564
+ path: pathFuture(futureId)
6565
+ }), {
6566
+ method: 'put',
6567
+ data: body
6568
+ }));
6569
+
6570
+ case 3:
6571
+ case "end":
6572
+ return _context9.stop();
6573
+ }
6574
+ }
6575
+ }, _callee9);
6576
+ }));
6577
+
6578
+ return function update(_x22, _x23, _x24) {
6579
+ return _ref9.apply(this, arguments);
6580
+ };
6581
+ }();
6326
6582
  /**
6327
6583
  * Send a payment receipt for a future
6328
6584
  * @param {String} futureId - Future ID
@@ -6330,21 +6586,38 @@ var update = function update(futureId, body, opts) {
6330
6586
  * @param {Object} opts - Additional options
6331
6587
  */
6332
6588
 
6333
- var sendReceipt = function sendReceipt(futureId, body, opts) {
6334
- if (opts === void 0) {
6335
- opts = {};
6336
- }
6589
+ var sendReceipt = /*#__PURE__*/function () {
6590
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(futureId, body, opts) {
6591
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
6592
+ while (1) {
6593
+ switch (_context10.prev = _context10.next) {
6594
+ case 0:
6595
+ if (opts === void 0) {
6596
+ opts = {};
6597
+ }
6337
6598
 
6338
- doesParamExist.default({
6339
- futureId: futureId
6340
- }, opts.hyperMediaEndpoint);
6341
- return request(_objectSpread$r({}, opts, {
6342
- path: pathSendReceipt(futureId)
6343
- }), {
6344
- method: 'post',
6345
- data: body
6346
- });
6347
- };
6599
+ doesParamExist.default({
6600
+ futureId: futureId
6601
+ }, opts.hyperMediaEndpoint);
6602
+ return _context10.abrupt("return", request(_objectSpread$r({}, opts, {
6603
+ path: pathSendReceipt(futureId)
6604
+ }), {
6605
+ method: 'post',
6606
+ data: body
6607
+ }));
6608
+
6609
+ case 3:
6610
+ case "end":
6611
+ return _context10.stop();
6612
+ }
6613
+ }
6614
+ }, _callee10);
6615
+ }));
6616
+
6617
+ return function sendReceipt(_x25, _x26, _x27) {
6618
+ return _ref10.apply(this, arguments);
6619
+ };
6620
+ }();
6348
6621
 
6349
6622
  var futures = /*#__PURE__*/Object.freeze({
6350
6623
  __proto__: null,
@@ -22550,6 +22823,7 @@ exports.deployService = deployService;
22550
22823
  exports.devices = devices;
22551
22824
  exports.disableAccount = disableAccount;
22552
22825
  exports.disableBusiness = disableBusiness;
22826
+ exports.disableTwoFactorAuthentication = disableTwoFactorAuthentication;
22553
22827
  exports.discoverMember = discoverMember;
22554
22828
  exports.discoverMember$1 = discoverMember$1;
22555
22829
  exports.docAccounts = docAccounts;
@@ -22558,6 +22832,7 @@ exports.emailBusinessOnboardingQuestions = emailBusinessOnboardingQuestions;
22558
22832
  exports.emails = emails;
22559
22833
  exports.enableAccount = enableAccount;
22560
22834
  exports.enableBusiness = enableBusiness;
22835
+ exports.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
22561
22836
  exports.fetchLatestAppVersion = fetchLatestAppVersion;
22562
22837
  exports.fetchMinimumAppVerson = fetchMinimumAppVerson;
22563
22838
  exports.filterOptions = filterOptions;
@@ -23138,6 +23413,7 @@ exports.updateService = updateService;
23138
23413
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23139
23414
  exports.updateTerminal = updateTerminal;
23140
23415
  exports.updateTransaction = updateTransaction;
23416
+ exports.updateTwoFactorAuthentication = updateTwoFactorAuthentication;
23141
23417
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23142
23418
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23143
23419
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;