@medipass/web-sdk 11.53.1-feature-add-new-mfa-endpoints.1 → 11.53.1-feature-healthpoint-upload-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 (93) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/resources/abr.js +1 -1
  3. package/lib/resources/accounts.d.ts +0 -35
  4. package/lib/resources/accounts.js +1 -4
  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.d.ts +35 -1
  9. package/lib/resources/attachments.js +7 -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.d.ts +9 -0
  16. package/lib/resources/businesses.js +2 -1
  17. package/lib/resources/claim-items.js +1 -1
  18. package/lib/resources/devices.js +1 -1
  19. package/lib/resources/doc-accounts.js +1 -1
  20. package/lib/resources/documents.js +1 -1
  21. package/lib/resources/emails.js +1 -1
  22. package/lib/resources/filter-options.js +1 -1
  23. package/lib/resources/form-application-templates.js +1 -1
  24. package/lib/resources/form-applications.js +1 -1
  25. package/lib/resources/forms.js +1 -1
  26. package/lib/resources/funder-services.js +1 -1
  27. package/lib/resources/funder-settings.js +1 -1
  28. package/lib/resources/funder-values.js +1 -1
  29. package/lib/resources/funders.js +1 -1
  30. package/lib/resources/futures.js +1 -1
  31. package/lib/resources/health-fund-accounts.js +1 -1
  32. package/lib/resources/health-fund-settings.js +1 -1
  33. package/lib/resources/healthfunds.js +1 -1
  34. package/lib/resources/icditems.js +1 -1
  35. package/lib/resources/invoice-scans.js +1 -1
  36. package/lib/resources/jhcs.js +1 -1
  37. package/lib/resources/kyc.js +1 -1
  38. package/lib/resources/logs.js +1 -1
  39. package/lib/resources/members.js +1 -1
  40. package/lib/resources/message-mappings.js +1 -1
  41. package/lib/resources/minions.js +1 -1
  42. package/lib/resources/modalities.js +1 -1
  43. package/lib/resources/notes.js +1 -1
  44. package/lib/resources/onboarding-applications.js +1 -1
  45. package/lib/resources/onboarding-requests.js +1 -1
  46. package/lib/resources/ops.js +1 -1
  47. package/lib/resources/organisations.js +1 -1
  48. package/lib/resources/partners.js +1 -1
  49. package/lib/resources/patients.js +1 -1
  50. package/lib/resources/payments.js +1 -1
  51. package/lib/resources/pms.js +1 -1
  52. package/lib/resources/practice-profiles.js +1 -1
  53. package/lib/resources/practice-types.js +1 -1
  54. package/lib/resources/practices.js +1 -1
  55. package/lib/resources/products.js +1 -1
  56. package/lib/resources/professional-categories.js +1 -1
  57. package/lib/resources/provider-number-types.js +1 -1
  58. package/lib/resources/provider-registration-types.js +1 -1
  59. package/lib/resources/provider-requests.js +1 -1
  60. package/lib/resources/provider-types.js +1 -1
  61. package/lib/resources/ref-sources.js +1 -1
  62. package/lib/resources/risk.js +1 -1
  63. package/lib/resources/rnas.js +1 -1
  64. package/lib/resources/roles.js +1 -1
  65. package/lib/resources/self-checkout-sessions.js +1 -1
  66. package/lib/resources/services.js +1 -1
  67. package/lib/resources/settlements.js +1 -1
  68. package/lib/resources/sign-up.js +1 -1
  69. package/lib/resources/specialties.js +1 -1
  70. package/lib/resources/staff-profiles.js +1 -1
  71. package/lib/resources/staff.js +1 -1
  72. package/lib/resources/statistics.js +1 -1
  73. package/lib/resources/subscriptions.js +1 -1
  74. package/lib/resources/terminals.js +1 -1
  75. package/lib/resources/transaction-export.js +1 -1
  76. package/lib/resources/transactions.js +1 -1
  77. package/lib/resources/triggers.js +1 -1
  78. package/lib/resources/vendors.js +1 -1
  79. package/lib/resources/verify.js +1 -1
  80. package/lib/resources/workers.js +1 -1
  81. package/lib/resources/workflow-exceptions.js +1 -1
  82. package/lib/services/aws.d.ts +10 -0
  83. package/lib/services/aws.js +2 -1
  84. package/lib/services/version.js +1 -1
  85. package/lib/{staff-fa00e5e0.js → staff-6614398a.js} +239 -153
  86. package/lib/types/index.d.ts +3 -1
  87. package/lib/types/virus-scan.d.ts +13 -0
  88. package/lib/types/virus-scan.js +2 -0
  89. package/lib/utils/application.js +1 -1
  90. package/lib/utils/professions.js +1 -1
  91. package/lib/utils/request.js +1 -1
  92. package/lib/utils/staff.js +1 -1
  93. package/package.json +4 -4
@@ -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';
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
159
159
 
160
160
  var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
161
161
  return "/accounts/" + accountId;
@@ -163,23 +163,28 @@ var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
163
163
 
164
164
  var pathAccountExists = function pathAccountExists() {
165
165
  return "/accounts/exists";
166
- };
166
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
167
+
167
168
 
168
169
  var pathAccountRolesByAccountId = function pathAccountRolesByAccountId(accountId) {
169
170
  return "/accounts/" + accountId + "/roles";
170
- };
171
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
172
+
171
173
 
172
174
  var pathAccountSecretKeysByAccountId = function pathAccountSecretKeysByAccountId(accountId) {
173
175
  return "/accounts/" + accountId + "/secretkeys";
174
- };
176
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
177
+
175
178
 
176
179
  var pathAccountSecretKey = function pathAccountSecretKey(accountId, secretKey) {
177
180
  return "/accounts/" + accountId + "/secretkeys/" + secretKey;
178
- };
181
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
182
+
179
183
 
180
184
  var pathAccountTransactions = function pathAccountTransactions(accountId) {
181
185
  return "/accounts/" + accountId + "/transactions";
182
- };
186
+ }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
187
+
183
188
 
184
189
  var pathBusinessStaffAccount = function pathBusinessStaffAccount(businessId, staffId) {
185
190
  return "/businesses/" + businessId + "/staff/" + staffId + "/account";
@@ -187,48 +192,43 @@ var pathBusinessStaffAccount = function pathBusinessStaffAccount(businessId, sta
187
192
 
188
193
  var pathChangePassword = function pathChangePassword() {
189
194
  return "/accounts/changepassword";
190
- };
195
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
196
+
191
197
 
192
198
  var pathEnableAccount = function pathEnableAccount(accountId) {
193
199
  return "/accounts/" + accountId + "/enable";
194
- };
200
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
201
+
195
202
 
196
203
  var pathDisableAccount = function pathDisableAccount(accountId) {
197
204
  return "/accounts/" + accountId + "/disable";
198
- };
205
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
206
+
199
207
 
200
208
  var pathRequestVerifyAccount = function pathRequestVerifyAccount(accountId) {
201
209
  return "/accounts/" + accountId + "/verify/request";
202
- };
210
+ }; // @ts-expect-error TS(7006): Parameter 'healthFundId' implicitly has an 'any' t... Remove this comment to see the full error message
211
+
203
212
 
204
213
  var pathHealthFundAccounts = function pathHealthFundAccounts(healthFundId) {
205
214
  return "/healthfunds/" + healthFundId + "/accounts";
206
- };
215
+ }; // @ts-expect-error TS(7006): Parameter 'healthFundId' implicitly has an 'any' t... Remove this comment to see the full error message
216
+
207
217
 
208
218
  var pathHealthFundAccount = function pathHealthFundAccount(healthFundId, accountId) {
209
219
  return "/healthfunds/" + healthFundId + "/accounts/" + accountId;
210
- };
220
+ }; // @ts-expect-error TS(7006): Parameter 'organisationId' implicitly has an 'any'... Remove this comment to see the full error message
221
+
211
222
 
212
223
  var pathOrganisationAccounts = function pathOrganisationAccounts(organisationId) {
213
224
  return "/organisations/" + organisationId + "/accounts";
214
- };
225
+ }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
226
+
215
227
 
216
228
  var pathAccountPractices = function pathAccountPractices(accountId) {
217
229
  return "/accounts/" + accountId + "/practices";
218
230
  };
219
231
 
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,123 +1524,6 @@ 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
- }();
1644
1527
 
1645
1528
  var accounts = /*#__PURE__*/Object.freeze({
1646
1529
  __proto__: null,
@@ -1675,10 +1558,7 @@ var accounts = /*#__PURE__*/Object.freeze({
1675
1558
  updateAccount: updateAccount,
1676
1559
  updateAccountRoles: updateAccountRoles,
1677
1560
  getAccountPractices: getAccountPractices,
1678
- changePassword: changePassword,
1679
- enableTwoFactorAuthentication: enableTwoFactorAuthentication,
1680
- disableTwoFactorAuthentication: disableTwoFactorAuthentication,
1681
- updateTwoFactorAuthentication: updateTwoFactorAuthentication
1561
+ changePassword: changePassword
1682
1562
  });
1683
1563
 
1684
1564
  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; }
@@ -1918,6 +1798,15 @@ var pathGetS3SignedUrl = function pathGetS3SignedUrl(businessId, practiceId, sta
1918
1798
  var pathScanClaimFile = function pathScanClaimFile(businessId, practiceId, staffId) {
1919
1799
  return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/attachments/virusscan";
1920
1800
  };
1801
+ var pathScanFile = function pathScanFile(businessId) {
1802
+ return "/businesses/" + businessId + "/attachments/virusscan";
1803
+ };
1804
+ var pathGetAttachmentUrl = function pathGetAttachmentUrl(businessId) {
1805
+ return "/businesses/" + businessId + "/attachments/uploadurl";
1806
+ };
1807
+ var pathGetBusinessS3SignedUrl = function pathGetBusinessS3SignedUrl(businessId, s3SignedUrlId) {
1808
+ return "/businesses/" + businessId + "/attachments/s3signedurls/" + s3SignedUrlId;
1809
+ };
1921
1810
  /**
1922
1811
  * Get url to upload a file associated to a claim
1923
1812
  * @param {String} businessId - Business ID
@@ -1999,14 +1888,88 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
1999
1888
  });
2000
1889
  };
2001
1890
 
1891
+ /**
1892
+ * Scan a file
1893
+ * @param {String} businessId - Business ID
1894
+ * @param {Object} body - Request body
1895
+ * @param {Object} opts - Additional options
1896
+ */
1897
+ var scanFile = function scanFile(businessId, body, opts) {
1898
+ if (opts === void 0) {
1899
+ opts = {};
1900
+ }
1901
+
1902
+ doesParamExist.default({
1903
+ businessId: businessId
1904
+ }, opts.hyperMediaEndpoint);
1905
+ return request(_objectSpread$5({}, opts, {
1906
+ path: pathScanFile(businessId)
1907
+ }), {
1908
+ method: 'post',
1909
+ data: body
1910
+ });
1911
+ };
1912
+
1913
+ /**
1914
+ * Get url to upload a file
1915
+ * @param {String} businessId - Business ID
1916
+ * @param {Object} query - Query
1917
+ * @param {Object} opts - Additional options
1918
+ */
1919
+ var getAttachmentUrl = function getAttachmentUrl(businessId, query, opts) {
1920
+ if (opts === void 0) {
1921
+ opts = {};
1922
+ }
1923
+
1924
+ doesParamExist.default({
1925
+ businessId: businessId
1926
+ }, opts.hyperMediaEndpoint);
1927
+ return request(_objectSpread$5({}, opts, {
1928
+ path: pathGetAttachmentUrl(businessId)
1929
+ }), {
1930
+ method: 'get',
1931
+ params: query
1932
+ });
1933
+ };
1934
+ /**
1935
+ * Get a business' s3 signed url
1936
+ * @param {String} businessId - Business ID
1937
+ * @param {String} s3SignedUrlId - Internal s3 signed url ID
1938
+ * @param {Object} query - Request query
1939
+ * @param {Object} opts - Additional options
1940
+ */
1941
+
1942
+ var getBusinessS3SignedUrl = function getBusinessS3SignedUrl(businessId, s3SignedUrlId, query, opts) {
1943
+ if (opts === void 0) {
1944
+ opts = {};
1945
+ }
1946
+
1947
+ doesParamExist.default({
1948
+ businessId: businessId,
1949
+ s3SignedUrlId: s3SignedUrlId
1950
+ }, opts.hyperMediaEndpoint);
1951
+ return request(_objectSpread$5({}, opts, {
1952
+ path: pathGetBusinessS3SignedUrl(businessId, s3SignedUrlId)
1953
+ }), {
1954
+ method: 'get',
1955
+ params: query
1956
+ });
1957
+ };
1958
+
2002
1959
  var attachments = /*#__PURE__*/Object.freeze({
2003
1960
  __proto__: null,
2004
1961
  pathGetClaimAttachmentUrl: pathGetClaimAttachmentUrl,
2005
1962
  pathGetS3SignedUrl: pathGetS3SignedUrl,
2006
1963
  pathScanClaimFile: pathScanClaimFile,
1964
+ pathScanFile: pathScanFile,
1965
+ pathGetAttachmentUrl: pathGetAttachmentUrl,
1966
+ pathGetBusinessS3SignedUrl: pathGetBusinessS3SignedUrl,
2007
1967
  getClaimAttachmentUrl: getClaimAttachmentUrl,
2008
1968
  scanClaimFile: scanClaimFile,
2009
- getS3SignedUrl: getS3SignedUrl
1969
+ getS3SignedUrl: getS3SignedUrl,
1970
+ scanFile: scanFile,
1971
+ getAttachmentUrl: getAttachmentUrl,
1972
+ getBusinessS3SignedUrl: getBusinessS3SignedUrl
2010
1973
  });
2011
1974
 
2012
1975
  function ownKeys$6(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; }
@@ -3850,6 +3813,10 @@ var pathGetBusinessBillingHistoryRecords = function pathGetBusinessBillingHistor
3850
3813
  var pathGetBusinessBillingHistoryRecord = function pathGetBusinessBillingHistoryRecord(businessId, billingHistoryId) {
3851
3814
  return "/businesses/" + businessId + "/billinghistories/" + billingHistoryId;
3852
3815
  };
3816
+
3817
+ var pathGetOrgByHealthFundExists = function pathGetOrgByHealthFundExists(businessId) {
3818
+ return "/businesses/" + businessId + "/orgexists";
3819
+ };
3853
3820
  /**
3854
3821
  * Create businesses
3855
3822
  * @param {Object} body - Request body
@@ -4423,6 +4390,27 @@ var suspendBusiness = function suspendBusiness(businessId, body, opts) {
4423
4390
  });
4424
4391
  };
4425
4392
 
4393
+ /**
4394
+ * Search if the business exists for a healthfund
4395
+ * @param {String} businessId - Business ID
4396
+ * @param {Object} opts - Additional options
4397
+ */
4398
+ var getOrgByHealthFundExists = function getOrgByHealthFundExists(businessId, query, opts) {
4399
+ if (opts === void 0) {
4400
+ opts = {};
4401
+ }
4402
+
4403
+ doesParamExist.default({
4404
+ businessId: businessId
4405
+ }, opts.hyperMediaEndpoint);
4406
+ return request(_objectSpread$e({}, opts, {
4407
+ path: pathGetOrgByHealthFundExists(businessId)
4408
+ }), {
4409
+ method: 'get',
4410
+ params: query
4411
+ });
4412
+ };
4413
+
4426
4414
  var businesses = /*#__PURE__*/Object.freeze({
4427
4415
  __proto__: null,
4428
4416
  createBusiness: createBusiness,
@@ -4449,7 +4437,8 @@ var businesses = /*#__PURE__*/Object.freeze({
4449
4437
  createSupportNote: createSupportNote,
4450
4438
  getBsbDetails: getBsbDetails,
4451
4439
  sendBusinessEmail: sendBusinessEmail,
4452
- suspendBusiness: suspendBusiness
4440
+ suspendBusiness: suspendBusiness,
4441
+ getOrgByHealthFundExists: getOrgByHealthFundExists
4453
4442
  });
4454
4443
 
4455
4444
  function ownKeys$f(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; }
@@ -21664,6 +21653,95 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
21664
21653
  return _ref8.apply(this, arguments);
21665
21654
  };
21666
21655
  }();
21656
+ /**
21657
+ * Upload attachment to S3
21658
+ * @param {String} businessId - Business ID
21659
+ * @param {String} healthFundId - Health fund ID
21660
+ * @param {File} file - File
21661
+ */
21662
+
21663
+ var uploadAttachmentToS3 = /*#__PURE__*/function () {
21664
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, healthFundId, file, opts) {
21665
+ var awsAxios, _yield$getAttachmentU, signedPost, s3Url, s3SignedUrlId, bodyFormData, key;
21666
+
21667
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
21668
+ while (1) {
21669
+ switch (_context9.prev = _context9.next) {
21670
+ case 0:
21671
+ awsAxios = axios.create();
21672
+
21673
+ if (businessId) {
21674
+ _context9.next = 3;
21675
+ break;
21676
+ }
21677
+
21678
+ throw new paramError.default('businessId');
21679
+
21680
+ case 3:
21681
+ if (healthFundId) {
21682
+ _context9.next = 5;
21683
+ break;
21684
+ }
21685
+
21686
+ throw new paramError.default('healthFundId');
21687
+
21688
+ case 5:
21689
+ if (file) {
21690
+ _context9.next = 7;
21691
+ break;
21692
+ }
21693
+
21694
+ throw new paramError.default('file');
21695
+
21696
+ case 7:
21697
+ _context9.prev = 7;
21698
+ _context9.next = 10;
21699
+ return getAttachmentUrl(businessId, {
21700
+ contentType: file.type,
21701
+ fileName: file.name,
21702
+ healthFundId: healthFundId,
21703
+ contentLength: file.size
21704
+ }, opts);
21705
+
21706
+ case 10:
21707
+ _yield$getAttachmentU = _context9.sent;
21708
+ signedPost = _yield$getAttachmentU.signedPost;
21709
+ s3Url = _yield$getAttachmentU.s3Url;
21710
+ s3SignedUrlId = _yield$getAttachmentU.s3SignedUrlId;
21711
+ // eslint-disable-next-line
21712
+ bodyFormData = new FormData();
21713
+
21714
+ for (key in signedPost.fields) {
21715
+ bodyFormData.append(key, signedPost.fields[key]);
21716
+ }
21717
+
21718
+ bodyFormData.append('file', file);
21719
+ _context9.next = 19;
21720
+ return awsAxios.post(signedPost.url, bodyFormData);
21721
+
21722
+ case 19:
21723
+ return _context9.abrupt("return", {
21724
+ s3Url: s3Url,
21725
+ s3SignedUrlId: s3SignedUrlId
21726
+ });
21727
+
21728
+ case 22:
21729
+ _context9.prev = 22;
21730
+ _context9.t0 = _context9["catch"](7);
21731
+ throw _context9.t0;
21732
+
21733
+ case 25:
21734
+ case "end":
21735
+ return _context9.stop();
21736
+ }
21737
+ }
21738
+ }, _callee9, null, [[7, 22]]);
21739
+ }));
21740
+
21741
+ return function uploadAttachmentToS3(_x30, _x31, _x32, _x33) {
21742
+ return _ref9.apply(this, arguments);
21743
+ };
21744
+ }();
21667
21745
 
21668
21746
  var aws = /*#__PURE__*/Object.freeze({
21669
21747
  __proto__: null,
@@ -21674,7 +21752,8 @@ var aws = /*#__PURE__*/Object.freeze({
21674
21752
  uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
21675
21753
  uploadInvoiceScanToS3: uploadInvoiceScanToS3,
21676
21754
  uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
21677
- uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
21755
+ uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3,
21756
+ uploadAttachmentToS3: uploadAttachmentToS3
21678
21757
  });
21679
21758
 
21680
21759
  function ownKeys$1e(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; }
@@ -22487,7 +22566,9 @@ function _parseProviderSet() {
22487
22566
  practiceIds = providerSet.map(function (providerData) {
22488
22567
  return providerData.practiceId;
22489
22568
  });
22490
- uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
22569
+ uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
22570
+ return !!practiceId;
22571
+ });
22491
22572
  practices = [];
22492
22573
  _context.next = 5;
22493
22574
  return Promise.all(uniquePracticeIds.map(function (practiceId) {
@@ -22823,7 +22904,6 @@ exports.deployService = deployService;
22823
22904
  exports.devices = devices;
22824
22905
  exports.disableAccount = disableAccount;
22825
22906
  exports.disableBusiness = disableBusiness;
22826
- exports.disableTwoFactorAuthentication = disableTwoFactorAuthentication;
22827
22907
  exports.discoverMember = discoverMember;
22828
22908
  exports.discoverMember$1 = discoverMember$1;
22829
22909
  exports.docAccounts = docAccounts;
@@ -22832,7 +22912,6 @@ exports.emailBusinessOnboardingQuestions = emailBusinessOnboardingQuestions;
22832
22912
  exports.emails = emails;
22833
22913
  exports.enableAccount = enableAccount;
22834
22914
  exports.enableBusiness = enableBusiness;
22835
- exports.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
22836
22915
  exports.fetchLatestAppVersion = fetchLatestAppVersion;
22837
22916
  exports.fetchMinimumAppVerson = fetchMinimumAppVerson;
22838
22917
  exports.filterOptions = filterOptions;
@@ -22863,6 +22942,7 @@ exports.getAction = getAction;
22863
22942
  exports.getActions = getActions;
22864
22943
  exports.getApplication = getApplication;
22865
22944
  exports.getApplications = getApplications;
22945
+ exports.getAttachmentUrl = getAttachmentUrl;
22866
22946
  exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
22867
22947
  exports.getBsbDetails = getBsbDetails;
22868
22948
  exports.getBulkUpload = getBulkUpload;
@@ -22933,6 +23013,7 @@ exports.getBusinessProducts = getBusinessProducts;
22933
23013
  exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
22934
23014
  exports.getBusinessRNA = getBusinessRNA;
22935
23015
  exports.getBusinessRNAs = getBusinessRNAs;
23016
+ exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
22936
23017
  exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
22937
23018
  exports.getBusinessService = getBusinessService;
22938
23019
  exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
@@ -23025,6 +23106,7 @@ exports.getMySelfCheckoutSession = getMySelfCheckoutSession;
23025
23106
  exports.getMySelfCheckoutSessionTransaction = getMySelfCheckoutSessionTransaction;
23026
23107
  exports.getNonce = getNonce;
23027
23108
  exports.getOnboardingRequest = getOnboardingRequest;
23109
+ exports.getOrgByHealthFundExists = getOrgByHealthFundExists;
23028
23110
  exports.getOrganisationAccounts = getOrganisationAccounts;
23029
23111
  exports.getOrganisationBusinessProfiles = getOrganisationBusinessProfiles;
23030
23112
  exports.getOrganisationBusinesses = getOrganisationBusinesses;
@@ -23182,6 +23264,8 @@ exports.pathFunderValues = pathFunderValues;
23182
23264
  exports.pathFunderValuesById = pathFunderValuesById;
23183
23265
  exports.pathFuture = pathFuture;
23184
23266
  exports.pathGetAbr = pathGetAbr;
23267
+ exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
23268
+ exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
23185
23269
  exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
23186
23270
  exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
23187
23271
  exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
@@ -23248,6 +23332,7 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
23248
23332
  exports.pathResetTerminal = pathResetTerminal;
23249
23333
  exports.pathResumeComplexVerification = pathResumeComplexVerification;
23250
23334
  exports.pathScanClaimFile = pathScanClaimFile;
23335
+ exports.pathScanFile = pathScanFile;
23251
23336
  exports.pathSendReceipt = pathSendReceipt;
23252
23337
  exports.pathSendWorkerMessage = pathSendWorkerMessage;
23253
23338
  exports.pathSignUp = pathSignUp;
@@ -23321,6 +23406,7 @@ exports.saveDraft = saveDraft;
23321
23406
  exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
23322
23407
  exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
23323
23408
  exports.scanClaimFile = scanClaimFile;
23409
+ exports.scanFile = scanFile;
23324
23410
  exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
23325
23411
  exports.sdk = sdkClient;
23326
23412
  exports.sdkClient = sdkClient;
@@ -23413,7 +23499,7 @@ exports.updateService = updateService;
23413
23499
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23414
23500
  exports.updateTerminal = updateTerminal;
23415
23501
  exports.updateTransaction = updateTransaction;
23416
- exports.updateTwoFactorAuthentication = updateTwoFactorAuthentication;
23502
+ exports.uploadAttachmentToS3 = uploadAttachmentToS3;
23417
23503
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23418
23504
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23419
23505
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
@@ -1,6 +1,7 @@
1
1
  import type { COUNTRY_CODES } from '../utils/regions';
2
2
  export * from './abr';
3
3
  export * from './blacklist-bank-account';
4
+ export * from './business';
4
5
  export * from './device';
5
6
  export * from './documents';
6
7
  export * from './filter-option';
@@ -16,9 +17,10 @@ export * from './provider-number-type';
16
17
  export * from './provider-registration-type';
17
18
  export * from './provider-registration';
18
19
  export * from './provider-set-item';
20
+ export * from './staff-member';
19
21
  export * from './specialty';
20
22
  export * from './subscriptions';
21
- export * from './business';
23
+ export * from './virus-scan';
22
24
  export declare type MedipassRequestOpts = {
23
25
  baseUrl?: string;
24
26
  hyperMediaEndpoint?: string | null | undefined;
@@ -0,0 +1,13 @@
1
+ export interface VirusScan {
2
+ _id: string;
3
+ accountId: string;
4
+ healthFundId: string;
5
+ businessId: string;
6
+ s3Bucket: string;
7
+ s3Key: string;
8
+ antiVirusStatus: string;
9
+ antiVirusTimestamp: string;
10
+ viruses: string[];
11
+ created: string;
12
+ modified: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-fa00e5e0.js');
17
+ var request = require('../staff-6614398a.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-fa00e5e0.js');
17
+ var request = require('../staff-6614398a.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-fa00e5e0.js');
17
+ var request = require('../staff-6614398a.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-fa00e5e0.js');
17
+ var request = require('../staff-6614398a.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');