@medipass/web-sdk 11.52.3-feature-installment-plans-sdk.1 → 11.52.3-feature-add-new-mfa-endpoints.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.
Files changed (87) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/resources/abr.js +1 -1
  3. package/lib/resources/accounts.d.ts +35 -0
  4. package/lib/resources/accounts.js +4 -1
  5. package/lib/resources/actions.js +1 -1
  6. package/lib/resources/api-keys.js +1 -1
  7. package/lib/resources/applications.js +1 -1
  8. package/lib/resources/attachments.js +1 -1
  9. package/lib/resources/auth.js +1 -1
  10. package/lib/resources/blacklist.js +1 -1
  11. package/lib/resources/bulk-submits.js +1 -1
  12. package/lib/resources/bulk-uploads.js +1 -1
  13. package/lib/resources/business-profiles.js +1 -1
  14. package/lib/resources/businesses.js +1 -1
  15. package/lib/resources/claim-items.js +1 -1
  16. package/lib/resources/devices.js +1 -1
  17. package/lib/resources/doc-accounts.js +1 -1
  18. package/lib/resources/documents.js +1 -1
  19. package/lib/resources/emails.js +1 -1
  20. package/lib/resources/filter-options.js +1 -1
  21. package/lib/resources/form-application-templates.js +1 -1
  22. package/lib/resources/form-applications.js +1 -1
  23. package/lib/resources/forms.js +1 -1
  24. package/lib/resources/funder-services.js +1 -1
  25. package/lib/resources/funder-settings.js +1 -1
  26. package/lib/resources/funder-values.js +1 -1
  27. package/lib/resources/funders.js +1 -1
  28. package/lib/resources/futures.js +1 -1
  29. package/lib/resources/health-fund-accounts.js +1 -1
  30. package/lib/resources/health-fund-settings.js +1 -1
  31. package/lib/resources/healthfunds.js +1 -1
  32. package/lib/resources/icditems.js +1 -1
  33. package/lib/resources/invoice-scans.js +1 -1
  34. package/lib/resources/jhcs.js +1 -1
  35. package/lib/resources/kyc.js +1 -1
  36. package/lib/resources/logs.js +1 -1
  37. package/lib/resources/members.js +1 -1
  38. package/lib/resources/message-mappings.js +1 -1
  39. package/lib/resources/minions.js +1 -1
  40. package/lib/resources/modalities.js +1 -1
  41. package/lib/resources/notes.js +1 -1
  42. package/lib/resources/onboarding-applications.js +1 -1
  43. package/lib/resources/onboarding-requests.js +1 -1
  44. package/lib/resources/ops.js +1 -1
  45. package/lib/resources/organisations.js +1 -1
  46. package/lib/resources/partners.js +1 -1
  47. package/lib/resources/patients.js +1 -1
  48. package/lib/resources/payments.js +1 -1
  49. package/lib/resources/pms.js +1 -1
  50. package/lib/resources/practice-profiles.js +1 -1
  51. package/lib/resources/practice-types.js +1 -1
  52. package/lib/resources/practices.js +1 -1
  53. package/lib/resources/products.js +1 -1
  54. package/lib/resources/professional-categories.js +1 -1
  55. package/lib/resources/provider-number-types.js +1 -1
  56. package/lib/resources/provider-registration-types.js +1 -1
  57. package/lib/resources/provider-requests.js +1 -1
  58. package/lib/resources/provider-types.js +1 -1
  59. package/lib/resources/ref-sources.js +1 -1
  60. package/lib/resources/risk.js +1 -1
  61. package/lib/resources/rnas.js +1 -1
  62. package/lib/resources/roles.js +1 -1
  63. package/lib/resources/self-checkout-sessions.js +1 -1
  64. package/lib/resources/services.js +1 -1
  65. package/lib/resources/settlements.js +1 -1
  66. package/lib/resources/sign-up.js +1 -1
  67. package/lib/resources/specialties.js +1 -1
  68. package/lib/resources/staff-profiles.js +1 -1
  69. package/lib/resources/staff.js +1 -1
  70. package/lib/resources/statistics.js +1 -1
  71. package/lib/resources/subscriptions.js +1 -1
  72. package/lib/resources/terminals.js +1 -1
  73. package/lib/resources/transaction-export.js +1 -1
  74. package/lib/resources/transactions.js +1 -1
  75. package/lib/resources/triggers.js +1 -1
  76. package/lib/resources/vendors.js +1 -1
  77. package/lib/resources/verify.js +1 -1
  78. package/lib/resources/workers.js +1 -1
  79. package/lib/resources/workflow-exceptions.js +1 -1
  80. package/lib/services/aws.js +1 -1
  81. package/lib/services/version.js +1 -1
  82. package/lib/{staff-c7aa7e0e.js → staff-126cd1b7.js} +281 -311
  83. package/lib/utils/application.js +1 -1
  84. package/lib/utils/professions.js +1 -1
  85. package/lib/utils/request.js +1 -1
  86. package/lib/utils/staff.js +1 -1
  87. 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,75 +6241,41 @@ var createBusinessHold = function createBusinessHold(businessId, body, opts) {
6121
6241
  * @param {Object} opts - Additional options
6122
6242
  */
6123
6243
 
6124
- var createBusinessInstalmentPlan = /*#__PURE__*/function () {
6125
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
6126
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6127
- while (1) {
6128
- switch (_context.prev = _context.next) {
6129
- case 0:
6130
- if (opts === void 0) {
6131
- opts = {};
6132
- }
6133
-
6134
- doesParamExist.default({
6135
- businessId: businessId
6136
- }, opts.hyperMediaEndpoint);
6137
- return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6138
- path: pathBusinessInstalmentPlans(businessId)
6139
- }), {
6140
- method: 'post',
6141
- data: body
6142
- }));
6143
-
6144
- case 3:
6145
- case "end":
6146
- return _context.stop();
6147
- }
6148
- }
6149
- }, _callee);
6150
- }));
6244
+ var createBusinessInstalmentPlan = function createBusinessInstalmentPlan(businessId, body, opts) {
6245
+ if (opts === void 0) {
6246
+ opts = {};
6247
+ }
6151
6248
 
6152
- return function createBusinessInstalmentPlan(_x, _x2, _x3) {
6153
- return _ref.apply(this, arguments);
6154
- };
6155
- }();
6249
+ doesParamExist.default({
6250
+ businessId: businessId
6251
+ }, opts.hyperMediaEndpoint);
6252
+ return request(_objectSpread$r({}, opts, {
6253
+ path: pathBusinessInstalmentPlans(businessId)
6254
+ }), {
6255
+ method: 'post',
6256
+ data: body
6257
+ });
6258
+ };
6156
6259
  /**
6157
6260
  * Cancel a future
6158
6261
  * @param {String} futureId - Future ID
6159
6262
  * @param {Object} opts - Additional options
6160
6263
  */
6161
6264
 
6162
- var cancel = /*#__PURE__*/function () {
6163
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(futureId, opts) {
6164
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
6165
- while (1) {
6166
- switch (_context2.prev = _context2.next) {
6167
- case 0:
6168
- if (opts === void 0) {
6169
- opts = {};
6170
- }
6171
-
6172
- doesParamExist.default({
6173
- futureId: futureId
6174
- }, opts.hyperMediaEndpoint);
6175
- return _context2.abrupt("return", request(_objectSpread$r({}, opts, {
6176
- path: pathCancels(futureId)
6177
- }), {
6178
- method: 'post'
6179
- }));
6180
-
6181
- case 3:
6182
- case "end":
6183
- return _context2.stop();
6184
- }
6185
- }
6186
- }, _callee2);
6187
- }));
6265
+ var cancel = function cancel(futureId, opts) {
6266
+ if (opts === void 0) {
6267
+ opts = {};
6268
+ }
6188
6269
 
6189
- return function cancel(_x4, _x5) {
6190
- return _ref2.apply(this, arguments);
6191
- };
6192
- }();
6270
+ doesParamExist.default({
6271
+ futureId: futureId
6272
+ }, opts.hyperMediaEndpoint);
6273
+ return request(_objectSpread$r({}, opts, {
6274
+ path: pathCancels(futureId)
6275
+ }), {
6276
+ method: 'post'
6277
+ });
6278
+ };
6193
6279
  /**
6194
6280
  * Get business futures
6195
6281
  * @param {String} businessId - Business ID
@@ -6197,38 +6283,21 @@ var cancel = /*#__PURE__*/function () {
6197
6283
  * @param {Object} opts - Additional options
6198
6284
  */
6199
6285
 
6200
- var getBusinessFutures = /*#__PURE__*/function () {
6201
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(businessId, query, opts) {
6202
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
6203
- while (1) {
6204
- switch (_context3.prev = _context3.next) {
6205
- case 0:
6206
- if (opts === void 0) {
6207
- opts = {};
6208
- }
6209
-
6210
- doesParamExist.default({
6211
- businessId: businessId
6212
- }, opts.hyperMediaEndpoint);
6213
- return _context3.abrupt("return", request(_objectSpread$r({}, opts, {
6214
- path: pathBusinessFutures(businessId)
6215
- }), {
6216
- method: 'get',
6217
- params: query
6218
- }));
6219
-
6220
- case 3:
6221
- case "end":
6222
- return _context3.stop();
6223
- }
6224
- }
6225
- }, _callee3);
6226
- }));
6286
+ var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6287
+ if (opts === void 0) {
6288
+ opts = {};
6289
+ }
6227
6290
 
6228
- return function getBusinessFutures(_x6, _x7, _x8) {
6229
- return _ref3.apply(this, arguments);
6230
- };
6231
- }();
6291
+ doesParamExist.default({
6292
+ businessId: businessId
6293
+ }, opts.hyperMediaEndpoint);
6294
+ return request(_objectSpread$r({}, opts, {
6295
+ path: pathBusinessFutures(businessId)
6296
+ }), {
6297
+ method: 'get',
6298
+ params: query
6299
+ });
6300
+ };
6232
6301
  /**
6233
6302
  * Get business future
6234
6303
  * @param {String} businessId - Business ID
@@ -6236,75 +6305,41 @@ var getBusinessFutures = /*#__PURE__*/function () {
6236
6305
  * @param {Object} opts - Additional options
6237
6306
  */
6238
6307
 
6239
- var getBusinessFuture = /*#__PURE__*/function () {
6240
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(businessId, futureId, opts) {
6241
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
6242
- while (1) {
6243
- switch (_context4.prev = _context4.next) {
6244
- case 0:
6245
- if (opts === void 0) {
6246
- opts = {};
6247
- }
6248
-
6249
- doesParamExist.default({
6250
- businessId: businessId,
6251
- futureId: futureId
6252
- }, opts.hyperMediaEndpoint);
6253
- return _context4.abrupt("return", request(_objectSpread$r({}, opts, {
6254
- path: pathBusinessFuture(businessId, futureId)
6255
- }), {
6256
- method: 'get'
6257
- }));
6258
-
6259
- case 3:
6260
- case "end":
6261
- return _context4.stop();
6262
- }
6263
- }
6264
- }, _callee4);
6265
- }));
6308
+ var getBusinessFuture = function getBusinessFuture(businessId, futureId, opts) {
6309
+ if (opts === void 0) {
6310
+ opts = {};
6311
+ }
6266
6312
 
6267
- return function getBusinessFuture(_x9, _x10, _x11) {
6268
- return _ref4.apply(this, arguments);
6269
- };
6270
- }();
6313
+ doesParamExist.default({
6314
+ businessId: businessId,
6315
+ futureId: futureId
6316
+ }, opts.hyperMediaEndpoint);
6317
+ return request(_objectSpread$r({}, opts, {
6318
+ path: pathBusinessFuture(businessId, futureId)
6319
+ }), {
6320
+ method: 'get'
6321
+ });
6322
+ };
6271
6323
  /**
6272
6324
  * Get a future
6273
6325
  * @param {String} futureId - Future ID
6274
6326
  * @param {Object} opts - Additional options
6275
6327
  */
6276
6328
 
6277
- var getFuture = /*#__PURE__*/function () {
6278
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(futureId, opts) {
6279
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
6280
- while (1) {
6281
- switch (_context5.prev = _context5.next) {
6282
- case 0:
6283
- if (opts === void 0) {
6284
- opts = {};
6285
- }
6286
-
6287
- doesParamExist.default({
6288
- futureId: futureId
6289
- }, opts.hyperMediaEndpoint);
6290
- return _context5.abrupt("return", request(_objectSpread$r({}, opts, {
6291
- path: pathFuture(futureId)
6292
- }), {
6293
- method: 'get'
6294
- }));
6295
-
6296
- case 3:
6297
- case "end":
6298
- return _context5.stop();
6299
- }
6300
- }
6301
- }, _callee5);
6302
- }));
6329
+ var getFuture = function getFuture(futureId, opts) {
6330
+ if (opts === void 0) {
6331
+ opts = {};
6332
+ }
6303
6333
 
6304
- return function getFuture(_x12, _x13) {
6305
- return _ref5.apply(this, arguments);
6306
- };
6307
- }();
6334
+ doesParamExist.default({
6335
+ futureId: futureId
6336
+ }, opts.hyperMediaEndpoint);
6337
+ return request(_objectSpread$r({}, opts, {
6338
+ path: pathFuture(futureId)
6339
+ }), {
6340
+ method: 'get'
6341
+ });
6342
+ };
6308
6343
  /**
6309
6344
  * Get payment link
6310
6345
  * @param {String} futureId - Future ID
@@ -6312,10 +6347,10 @@ var getFuture = /*#__PURE__*/function () {
6312
6347
  */
6313
6348
 
6314
6349
  var getPaymentLink = /*#__PURE__*/function () {
6315
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(futureId, opts) {
6316
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
6350
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(futureId, opts) {
6351
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
6317
6352
  while (1) {
6318
- switch (_context6.prev = _context6.next) {
6353
+ switch (_context.prev = _context.next) {
6319
6354
  case 0:
6320
6355
  if (opts === void 0) {
6321
6356
  opts = {};
@@ -6324,7 +6359,7 @@ var getPaymentLink = /*#__PURE__*/function () {
6324
6359
  doesParamExist.default({
6325
6360
  futureId: futureId
6326
6361
  }, opts.hyperMediaEndpoint);
6327
- return _context6.abrupt("return", request(_objectSpread$r({}, opts, {
6362
+ return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6328
6363
  path: pathPaymentLink(futureId)
6329
6364
  }), {
6330
6365
  method: 'get'
@@ -6332,14 +6367,14 @@ var getPaymentLink = /*#__PURE__*/function () {
6332
6367
 
6333
6368
  case 3:
6334
6369
  case "end":
6335
- return _context6.stop();
6370
+ return _context.stop();
6336
6371
  }
6337
6372
  }
6338
- }, _callee6);
6373
+ }, _callee);
6339
6374
  }));
6340
6375
 
6341
- return function getPaymentLink(_x14, _x15) {
6342
- return _ref6.apply(this, arguments);
6376
+ return function getPaymentLink(_x, _x2) {
6377
+ return _ref.apply(this, arguments);
6343
6378
  };
6344
6379
  }();
6345
6380
  /**
@@ -6349,38 +6384,21 @@ var getPaymentLink = /*#__PURE__*/function () {
6349
6384
  * @param {Object} opts - Additional options
6350
6385
  */
6351
6386
 
6352
- var sendProcessingRequest = /*#__PURE__*/function () {
6353
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(futureId, body, opts) {
6354
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
6355
- while (1) {
6356
- switch (_context7.prev = _context7.next) {
6357
- case 0:
6358
- if (opts === void 0) {
6359
- opts = {};
6360
- }
6361
-
6362
- doesParamExist.default({
6363
- futureId: futureId
6364
- }, opts.hyperMediaEndpoint);
6365
- return _context7.abrupt("return", request(_objectSpread$r({}, opts, {
6366
- path: pathProcessingRequests(futureId)
6367
- }), {
6368
- method: 'post',
6369
- data: body
6370
- }));
6371
-
6372
- case 3:
6373
- case "end":
6374
- return _context7.stop();
6375
- }
6376
- }
6377
- }, _callee7);
6378
- }));
6387
+ var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts) {
6388
+ if (opts === void 0) {
6389
+ opts = {};
6390
+ }
6379
6391
 
6380
- return function sendProcessingRequest(_x16, _x17, _x18) {
6381
- return _ref7.apply(this, arguments);
6382
- };
6383
- }();
6392
+ doesParamExist.default({
6393
+ futureId: futureId
6394
+ }, opts.hyperMediaEndpoint);
6395
+ return request(_objectSpread$r({}, opts, {
6396
+ path: pathProcessingRequests(futureId)
6397
+ }), {
6398
+ method: 'post',
6399
+ data: body
6400
+ });
6401
+ };
6384
6402
  /**
6385
6403
  * Submit a future
6386
6404
  * @param {String} futureId - Future ID
@@ -6388,38 +6406,21 @@ var sendProcessingRequest = /*#__PURE__*/function () {
6388
6406
  * @param {Object} opts - Additional options
6389
6407
  */
6390
6408
 
6391
- var submit = /*#__PURE__*/function () {
6392
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(futureId, body, opts) {
6393
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
6394
- while (1) {
6395
- switch (_context8.prev = _context8.next) {
6396
- case 0:
6397
- if (opts === void 0) {
6398
- opts = {};
6399
- }
6400
-
6401
- doesParamExist.default({
6402
- futureId: futureId
6403
- }, opts.hyperMediaEndpoint);
6404
- return _context8.abrupt("return", request(_objectSpread$r({}, opts, {
6405
- path: pathSubmits(futureId)
6406
- }), {
6407
- method: 'post',
6408
- data: body
6409
- }));
6410
-
6411
- case 3:
6412
- case "end":
6413
- return _context8.stop();
6414
- }
6415
- }
6416
- }, _callee8);
6417
- }));
6409
+ var submit = function submit(futureId, body, opts) {
6410
+ if (opts === void 0) {
6411
+ opts = {};
6412
+ }
6418
6413
 
6419
- return function submit(_x19, _x20, _x21) {
6420
- return _ref8.apply(this, arguments);
6421
- };
6422
- }();
6414
+ doesParamExist.default({
6415
+ futureId: futureId
6416
+ }, opts.hyperMediaEndpoint);
6417
+ return request(_objectSpread$r({}, opts, {
6418
+ path: pathSubmits(futureId)
6419
+ }), {
6420
+ method: 'post',
6421
+ data: body
6422
+ });
6423
+ };
6423
6424
  /**
6424
6425
  * Update a future
6425
6426
  * @param {String} futureId - Future ID
@@ -6427,38 +6428,21 @@ var submit = /*#__PURE__*/function () {
6427
6428
  * @param {Object} opts - Additional options
6428
6429
  */
6429
6430
 
6430
- var update = /*#__PURE__*/function () {
6431
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(futureId, body, opts) {
6432
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
6433
- while (1) {
6434
- switch (_context9.prev = _context9.next) {
6435
- case 0:
6436
- if (opts === void 0) {
6437
- opts = {};
6438
- }
6439
-
6440
- doesParamExist.default({
6441
- futureId: futureId
6442
- }, opts.hyperMediaEndpoint);
6443
- return _context9.abrupt("return", request(_objectSpread$r({}, opts, {
6444
- path: pathFuture(futureId)
6445
- }), {
6446
- method: 'put',
6447
- data: body
6448
- }));
6449
-
6450
- case 3:
6451
- case "end":
6452
- return _context9.stop();
6453
- }
6454
- }
6455
- }, _callee9);
6456
- }));
6431
+ var update = function update(futureId, body, opts) {
6432
+ if (opts === void 0) {
6433
+ opts = {};
6434
+ }
6457
6435
 
6458
- return function update(_x22, _x23, _x24) {
6459
- return _ref9.apply(this, arguments);
6460
- };
6461
- }();
6436
+ doesParamExist.default({
6437
+ futureId: futureId
6438
+ }, opts.hyperMediaEndpoint);
6439
+ return request(_objectSpread$r({}, opts, {
6440
+ path: pathFuture(futureId)
6441
+ }), {
6442
+ method: 'put',
6443
+ data: body
6444
+ });
6445
+ };
6462
6446
  /**
6463
6447
  * Send a payment receipt for a future
6464
6448
  * @param {String} futureId - Future ID
@@ -6466,38 +6450,21 @@ var update = /*#__PURE__*/function () {
6466
6450
  * @param {Object} opts - Additional options
6467
6451
  */
6468
6452
 
6469
- var sendReceipt = /*#__PURE__*/function () {
6470
- var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(futureId, body, opts) {
6471
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
6472
- while (1) {
6473
- switch (_context10.prev = _context10.next) {
6474
- case 0:
6475
- if (opts === void 0) {
6476
- opts = {};
6477
- }
6478
-
6479
- doesParamExist.default({
6480
- futureId: futureId
6481
- }, opts.hyperMediaEndpoint);
6482
- return _context10.abrupt("return", request(_objectSpread$r({}, opts, {
6483
- path: pathSendReceipt(futureId)
6484
- }), {
6485
- method: 'post',
6486
- data: body
6487
- }));
6488
-
6489
- case 3:
6490
- case "end":
6491
- return _context10.stop();
6492
- }
6493
- }
6494
- }, _callee10);
6495
- }));
6453
+ var sendReceipt = function sendReceipt(futureId, body, opts) {
6454
+ if (opts === void 0) {
6455
+ opts = {};
6456
+ }
6496
6457
 
6497
- return function sendReceipt(_x25, _x26, _x27) {
6498
- return _ref10.apply(this, arguments);
6499
- };
6500
- }();
6458
+ doesParamExist.default({
6459
+ futureId: futureId
6460
+ }, opts.hyperMediaEndpoint);
6461
+ return request(_objectSpread$r({}, opts, {
6462
+ path: pathSendReceipt(futureId)
6463
+ }), {
6464
+ method: 'post',
6465
+ data: body
6466
+ });
6467
+ };
6501
6468
 
6502
6469
  var futures = /*#__PURE__*/Object.freeze({
6503
6470
  __proto__: null,
@@ -22703,6 +22670,7 @@ exports.deployService = deployService;
22703
22670
  exports.devices = devices;
22704
22671
  exports.disableAccount = disableAccount;
22705
22672
  exports.disableBusiness = disableBusiness;
22673
+ exports.disableTwoFactorAuthentication = disableTwoFactorAuthentication;
22706
22674
  exports.discoverMember = discoverMember;
22707
22675
  exports.discoverMember$1 = discoverMember$1;
22708
22676
  exports.docAccounts = docAccounts;
@@ -22711,6 +22679,7 @@ exports.emailBusinessOnboardingQuestions = emailBusinessOnboardingQuestions;
22711
22679
  exports.emails = emails;
22712
22680
  exports.enableAccount = enableAccount;
22713
22681
  exports.enableBusiness = enableBusiness;
22682
+ exports.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
22714
22683
  exports.fetchLatestAppVersion = fetchLatestAppVersion;
22715
22684
  exports.fetchMinimumAppVerson = fetchMinimumAppVerson;
22716
22685
  exports.filterOptions = filterOptions;
@@ -23291,6 +23260,7 @@ exports.updateService = updateService;
23291
23260
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23292
23261
  exports.updateTerminal = updateTerminal;
23293
23262
  exports.updateTransaction = updateTransaction;
23263
+ exports.updateTwoFactorAuthentication = updateTwoFactorAuthentication;
23294
23264
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23295
23265
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23296
23266
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;