@medipass/web-sdk 11.52.3-feature-healthpoint-upload-endpoints.0 → 11.53.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/CHANGELOG.md +19 -0
  2. package/lib/index.js +1 -1
  3. package/lib/resources/abr.js +1 -1
  4. package/lib/resources/accounts.js +1 -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.d.ts +1 -35
  9. package/lib/resources/attachments.js +1 -7
  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 +0 -9
  16. package/lib/resources/businesses.js +1 -2
  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 +0 -10
  83. package/lib/services/aws.js +1 -2
  84. package/lib/services/version.js +1 -1
  85. package/lib/{staff-edec8e01.js → staff-c7aa7e0e.js} +289 -345
  86. package/lib/types/index.d.ts +1 -3
  87. package/lib/utils/application.js +1 -1
  88. package/lib/utils/professions.js +1 -1
  89. package/lib/utils/request.js +1 -1
  90. package/lib/utils/staff.js +1 -1
  91. package/package.json +4 -4
  92. package/lib/types/virus-scan.d.ts +0 -13
  93. package/lib/types/virus-scan.js +0 -2
@@ -1798,15 +1798,6 @@ var pathGetS3SignedUrl = function pathGetS3SignedUrl(businessId, practiceId, sta
1798
1798
  var pathScanClaimFile = function pathScanClaimFile(businessId, practiceId, staffId) {
1799
1799
  return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/attachments/virusscan";
1800
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
- };
1810
1801
  /**
1811
1802
  * Get url to upload a file associated to a claim
1812
1803
  * @param {String} businessId - Business ID
@@ -1888,88 +1879,14 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
1888
1879
  });
1889
1880
  };
1890
1881
 
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
-
1959
1882
  var attachments = /*#__PURE__*/Object.freeze({
1960
1883
  __proto__: null,
1961
1884
  pathGetClaimAttachmentUrl: pathGetClaimAttachmentUrl,
1962
1885
  pathGetS3SignedUrl: pathGetS3SignedUrl,
1963
1886
  pathScanClaimFile: pathScanClaimFile,
1964
- pathScanFile: pathScanFile,
1965
- pathGetAttachmentUrl: pathGetAttachmentUrl,
1966
- pathGetBusinessS3SignedUrl: pathGetBusinessS3SignedUrl,
1967
1887
  getClaimAttachmentUrl: getClaimAttachmentUrl,
1968
1888
  scanClaimFile: scanClaimFile,
1969
- getS3SignedUrl: getS3SignedUrl,
1970
- scanFile: scanFile,
1971
- getAttachmentUrl: getAttachmentUrl,
1972
- getBusinessS3SignedUrl: getBusinessS3SignedUrl
1889
+ getS3SignedUrl: getS3SignedUrl
1973
1890
  });
1974
1891
 
1975
1892
  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; }
@@ -3813,10 +3730,6 @@ var pathGetBusinessBillingHistoryRecords = function pathGetBusinessBillingHistor
3813
3730
  var pathGetBusinessBillingHistoryRecord = function pathGetBusinessBillingHistoryRecord(businessId, billingHistoryId) {
3814
3731
  return "/businesses/" + businessId + "/billinghistories/" + billingHistoryId;
3815
3732
  };
3816
-
3817
- var pathGetOrgByHealthFundExists = function pathGetOrgByHealthFundExists(businessId) {
3818
- return "/businesses/" + businessId + "/orgexists";
3819
- };
3820
3733
  /**
3821
3734
  * Create businesses
3822
3735
  * @param {Object} body - Request body
@@ -4390,27 +4303,6 @@ var suspendBusiness = function suspendBusiness(businessId, body, opts) {
4390
4303
  });
4391
4304
  };
4392
4305
 
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
-
4414
4306
  var businesses = /*#__PURE__*/Object.freeze({
4415
4307
  __proto__: null,
4416
4308
  createBusiness: createBusiness,
@@ -4437,8 +4329,7 @@ var businesses = /*#__PURE__*/Object.freeze({
4437
4329
  createSupportNote: createSupportNote,
4438
4330
  getBsbDetails: getBsbDetails,
4439
4331
  sendBusinessEmail: sendBusinessEmail,
4440
- suspendBusiness: suspendBusiness,
4441
- getOrgByHealthFundExists: getOrgByHealthFundExists
4332
+ suspendBusiness: suspendBusiness
4442
4333
  });
4443
4334
 
4444
4335
  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; }
@@ -6230,41 +6121,75 @@ var createBusinessHold = function createBusinessHold(businessId, body, opts) {
6230
6121
  * @param {Object} opts - Additional options
6231
6122
  */
6232
6123
 
6233
- var createBusinessInstalmentPlan = function createBusinessInstalmentPlan(businessId, body, opts) {
6234
- if (opts === void 0) {
6235
- opts = {};
6236
- }
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
+ }
6237
6133
 
6238
- doesParamExist.default({
6239
- businessId: businessId
6240
- }, opts.hyperMediaEndpoint);
6241
- return request(_objectSpread$r({}, opts, {
6242
- path: pathBusinessInstalmentPlans(businessId)
6243
- }), {
6244
- method: 'post',
6245
- data: body
6246
- });
6247
- };
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
+ }));
6151
+
6152
+ return function createBusinessInstalmentPlan(_x, _x2, _x3) {
6153
+ return _ref.apply(this, arguments);
6154
+ };
6155
+ }();
6248
6156
  /**
6249
6157
  * Cancel a future
6250
6158
  * @param {String} futureId - Future ID
6251
6159
  * @param {Object} opts - Additional options
6252
6160
  */
6253
6161
 
6254
- var cancel = function cancel(futureId, opts) {
6255
- if (opts === void 0) {
6256
- opts = {};
6257
- }
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
+ }
6258
6171
 
6259
- doesParamExist.default({
6260
- futureId: futureId
6261
- }, opts.hyperMediaEndpoint);
6262
- return request(_objectSpread$r({}, opts, {
6263
- path: pathCancels(futureId)
6264
- }), {
6265
- method: 'post'
6266
- });
6267
- };
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
+ }));
6188
+
6189
+ return function cancel(_x4, _x5) {
6190
+ return _ref2.apply(this, arguments);
6191
+ };
6192
+ }();
6268
6193
  /**
6269
6194
  * Get business futures
6270
6195
  * @param {String} businessId - Business ID
@@ -6272,21 +6197,38 @@ var cancel = function cancel(futureId, opts) {
6272
6197
  * @param {Object} opts - Additional options
6273
6198
  */
6274
6199
 
6275
- var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6276
- if (opts === void 0) {
6277
- opts = {};
6278
- }
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
+ }
6279
6209
 
6280
- doesParamExist.default({
6281
- businessId: businessId
6282
- }, opts.hyperMediaEndpoint);
6283
- return request(_objectSpread$r({}, opts, {
6284
- path: pathBusinessFutures(businessId)
6285
- }), {
6286
- method: 'get',
6287
- params: query
6288
- });
6289
- };
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
+ }));
6227
+
6228
+ return function getBusinessFutures(_x6, _x7, _x8) {
6229
+ return _ref3.apply(this, arguments);
6230
+ };
6231
+ }();
6290
6232
  /**
6291
6233
  * Get business future
6292
6234
  * @param {String} businessId - Business ID
@@ -6294,41 +6236,75 @@ var getBusinessFutures = function getBusinessFutures(businessId, query, opts) {
6294
6236
  * @param {Object} opts - Additional options
6295
6237
  */
6296
6238
 
6297
- var getBusinessFuture = function getBusinessFuture(businessId, futureId, opts) {
6298
- if (opts === void 0) {
6299
- opts = {};
6300
- }
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
+ }
6301
6248
 
6302
- doesParamExist.default({
6303
- businessId: businessId,
6304
- futureId: futureId
6305
- }, opts.hyperMediaEndpoint);
6306
- return request(_objectSpread$r({}, opts, {
6307
- path: pathBusinessFuture(businessId, futureId)
6308
- }), {
6309
- method: 'get'
6310
- });
6311
- };
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
+ }));
6266
+
6267
+ return function getBusinessFuture(_x9, _x10, _x11) {
6268
+ return _ref4.apply(this, arguments);
6269
+ };
6270
+ }();
6312
6271
  /**
6313
6272
  * Get a future
6314
6273
  * @param {String} futureId - Future ID
6315
6274
  * @param {Object} opts - Additional options
6316
6275
  */
6317
6276
 
6318
- var getFuture = function getFuture(futureId, opts) {
6319
- if (opts === void 0) {
6320
- opts = {};
6321
- }
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
+ }
6322
6286
 
6323
- doesParamExist.default({
6324
- futureId: futureId
6325
- }, opts.hyperMediaEndpoint);
6326
- return request(_objectSpread$r({}, opts, {
6327
- path: pathFuture(futureId)
6328
- }), {
6329
- method: 'get'
6330
- });
6331
- };
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
+ }));
6303
+
6304
+ return function getFuture(_x12, _x13) {
6305
+ return _ref5.apply(this, arguments);
6306
+ };
6307
+ }();
6332
6308
  /**
6333
6309
  * Get payment link
6334
6310
  * @param {String} futureId - Future ID
@@ -6336,10 +6312,10 @@ var getFuture = function getFuture(futureId, opts) {
6336
6312
  */
6337
6313
 
6338
6314
  var getPaymentLink = /*#__PURE__*/function () {
6339
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(futureId, opts) {
6340
- return _regeneratorRuntime.wrap(function _callee$(_context) {
6315
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(futureId, opts) {
6316
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
6341
6317
  while (1) {
6342
- switch (_context.prev = _context.next) {
6318
+ switch (_context6.prev = _context6.next) {
6343
6319
  case 0:
6344
6320
  if (opts === void 0) {
6345
6321
  opts = {};
@@ -6348,7 +6324,7 @@ var getPaymentLink = /*#__PURE__*/function () {
6348
6324
  doesParamExist.default({
6349
6325
  futureId: futureId
6350
6326
  }, opts.hyperMediaEndpoint);
6351
- return _context.abrupt("return", request(_objectSpread$r({}, opts, {
6327
+ return _context6.abrupt("return", request(_objectSpread$r({}, opts, {
6352
6328
  path: pathPaymentLink(futureId)
6353
6329
  }), {
6354
6330
  method: 'get'
@@ -6356,14 +6332,14 @@ var getPaymentLink = /*#__PURE__*/function () {
6356
6332
 
6357
6333
  case 3:
6358
6334
  case "end":
6359
- return _context.stop();
6335
+ return _context6.stop();
6360
6336
  }
6361
6337
  }
6362
- }, _callee);
6338
+ }, _callee6);
6363
6339
  }));
6364
6340
 
6365
- return function getPaymentLink(_x, _x2) {
6366
- return _ref.apply(this, arguments);
6341
+ return function getPaymentLink(_x14, _x15) {
6342
+ return _ref6.apply(this, arguments);
6367
6343
  };
6368
6344
  }();
6369
6345
  /**
@@ -6373,21 +6349,38 @@ var getPaymentLink = /*#__PURE__*/function () {
6373
6349
  * @param {Object} opts - Additional options
6374
6350
  */
6375
6351
 
6376
- var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts) {
6377
- if (opts === void 0) {
6378
- opts = {};
6379
- }
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
+ }
6380
6361
 
6381
- doesParamExist.default({
6382
- futureId: futureId
6383
- }, opts.hyperMediaEndpoint);
6384
- return request(_objectSpread$r({}, opts, {
6385
- path: pathProcessingRequests(futureId)
6386
- }), {
6387
- method: 'post',
6388
- data: body
6389
- });
6390
- };
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
+ }));
6379
+
6380
+ return function sendProcessingRequest(_x16, _x17, _x18) {
6381
+ return _ref7.apply(this, arguments);
6382
+ };
6383
+ }();
6391
6384
  /**
6392
6385
  * Submit a future
6393
6386
  * @param {String} futureId - Future ID
@@ -6395,21 +6388,38 @@ var sendProcessingRequest = function sendProcessingRequest(futureId, body, opts)
6395
6388
  * @param {Object} opts - Additional options
6396
6389
  */
6397
6390
 
6398
- var submit = function submit(futureId, body, opts) {
6399
- if (opts === void 0) {
6400
- opts = {};
6401
- }
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
+ }
6402
6400
 
6403
- doesParamExist.default({
6404
- futureId: futureId
6405
- }, opts.hyperMediaEndpoint);
6406
- return request(_objectSpread$r({}, opts, {
6407
- path: pathSubmits(futureId)
6408
- }), {
6409
- method: 'post',
6410
- data: body
6411
- });
6412
- };
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
+ }));
6418
+
6419
+ return function submit(_x19, _x20, _x21) {
6420
+ return _ref8.apply(this, arguments);
6421
+ };
6422
+ }();
6413
6423
  /**
6414
6424
  * Update a future
6415
6425
  * @param {String} futureId - Future ID
@@ -6417,21 +6427,38 @@ var submit = function submit(futureId, body, opts) {
6417
6427
  * @param {Object} opts - Additional options
6418
6428
  */
6419
6429
 
6420
- var update = function update(futureId, body, opts) {
6421
- if (opts === void 0) {
6422
- opts = {};
6423
- }
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
+ }
6424
6439
 
6425
- doesParamExist.default({
6426
- futureId: futureId
6427
- }, opts.hyperMediaEndpoint);
6428
- return request(_objectSpread$r({}, opts, {
6429
- path: pathFuture(futureId)
6430
- }), {
6431
- method: 'put',
6432
- data: body
6433
- });
6434
- };
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
+ }));
6457
+
6458
+ return function update(_x22, _x23, _x24) {
6459
+ return _ref9.apply(this, arguments);
6460
+ };
6461
+ }();
6435
6462
  /**
6436
6463
  * Send a payment receipt for a future
6437
6464
  * @param {String} futureId - Future ID
@@ -6439,21 +6466,38 @@ var update = function update(futureId, body, opts) {
6439
6466
  * @param {Object} opts - Additional options
6440
6467
  */
6441
6468
 
6442
- var sendReceipt = function sendReceipt(futureId, body, opts) {
6443
- if (opts === void 0) {
6444
- opts = {};
6445
- }
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
+ }
6446
6478
 
6447
- doesParamExist.default({
6448
- futureId: futureId
6449
- }, opts.hyperMediaEndpoint);
6450
- return request(_objectSpread$r({}, opts, {
6451
- path: pathSendReceipt(futureId)
6452
- }), {
6453
- method: 'post',
6454
- data: body
6455
- });
6456
- };
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
+ }));
6496
+
6497
+ return function sendReceipt(_x25, _x26, _x27) {
6498
+ return _ref10.apply(this, arguments);
6499
+ };
6500
+ }();
6457
6501
 
6458
6502
  var futures = /*#__PURE__*/Object.freeze({
6459
6503
  __proto__: null,
@@ -21500,95 +21544,6 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
21500
21544
  return _ref8.apply(this, arguments);
21501
21545
  };
21502
21546
  }();
21503
- /**
21504
- * Upload attachment to S3
21505
- * @param {String} businessId - Business ID
21506
- * @param {String} healthFundId - Health fund ID
21507
- * @param {File} file - File
21508
- */
21509
-
21510
- var uploadAttachmentToS3 = /*#__PURE__*/function () {
21511
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, healthFundId, file, opts) {
21512
- var awsAxios, _yield$getAttachmentU, signedPost, s3Url, s3SignedUrlId, bodyFormData, key;
21513
-
21514
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
21515
- while (1) {
21516
- switch (_context9.prev = _context9.next) {
21517
- case 0:
21518
- awsAxios = axios.create();
21519
-
21520
- if (businessId) {
21521
- _context9.next = 3;
21522
- break;
21523
- }
21524
-
21525
- throw new paramError.default('businessId');
21526
-
21527
- case 3:
21528
- if (healthFundId) {
21529
- _context9.next = 5;
21530
- break;
21531
- }
21532
-
21533
- throw new paramError.default('healthFundId');
21534
-
21535
- case 5:
21536
- if (file) {
21537
- _context9.next = 7;
21538
- break;
21539
- }
21540
-
21541
- throw new paramError.default('file');
21542
-
21543
- case 7:
21544
- _context9.prev = 7;
21545
- _context9.next = 10;
21546
- return getAttachmentUrl(businessId, {
21547
- contentType: file.type,
21548
- fileName: file.name,
21549
- healthFundId: healthFundId,
21550
- contentLength: file.size
21551
- }, opts);
21552
-
21553
- case 10:
21554
- _yield$getAttachmentU = _context9.sent;
21555
- signedPost = _yield$getAttachmentU.signedPost;
21556
- s3Url = _yield$getAttachmentU.s3Url;
21557
- s3SignedUrlId = _yield$getAttachmentU.s3SignedUrlId;
21558
- // eslint-disable-next-line
21559
- bodyFormData = new FormData();
21560
-
21561
- for (key in signedPost.fields) {
21562
- bodyFormData.append(key, signedPost.fields[key]);
21563
- }
21564
-
21565
- bodyFormData.append('file', file);
21566
- _context9.next = 19;
21567
- return awsAxios.post(signedPost.url, bodyFormData);
21568
-
21569
- case 19:
21570
- return _context9.abrupt("return", {
21571
- s3Url: s3Url,
21572
- s3SignedUrlId: s3SignedUrlId
21573
- });
21574
-
21575
- case 22:
21576
- _context9.prev = 22;
21577
- _context9.t0 = _context9["catch"](7);
21578
- throw _context9.t0;
21579
-
21580
- case 25:
21581
- case "end":
21582
- return _context9.stop();
21583
- }
21584
- }
21585
- }, _callee9, null, [[7, 22]]);
21586
- }));
21587
-
21588
- return function uploadAttachmentToS3(_x30, _x31, _x32, _x33) {
21589
- return _ref9.apply(this, arguments);
21590
- };
21591
- }();
21592
21547
 
21593
21548
  var aws = /*#__PURE__*/Object.freeze({
21594
21549
  __proto__: null,
@@ -21599,8 +21554,7 @@ var aws = /*#__PURE__*/Object.freeze({
21599
21554
  uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
21600
21555
  uploadInvoiceScanToS3: uploadInvoiceScanToS3,
21601
21556
  uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
21602
- uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3,
21603
- uploadAttachmentToS3: uploadAttachmentToS3
21557
+ uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
21604
21558
  });
21605
21559
 
21606
21560
  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; }
@@ -22413,9 +22367,7 @@ function _parseProviderSet() {
22413
22367
  practiceIds = providerSet.map(function (providerData) {
22414
22368
  return providerData.practiceId;
22415
22369
  });
22416
- uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
22417
- return !!practiceId;
22418
- });
22370
+ uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
22419
22371
  practices = [];
22420
22372
  _context.next = 5;
22421
22373
  return Promise.all(uniquePracticeIds.map(function (practiceId) {
@@ -22789,7 +22741,6 @@ exports.getAction = getAction;
22789
22741
  exports.getActions = getActions;
22790
22742
  exports.getApplication = getApplication;
22791
22743
  exports.getApplications = getApplications;
22792
- exports.getAttachmentUrl = getAttachmentUrl;
22793
22744
  exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
22794
22745
  exports.getBsbDetails = getBsbDetails;
22795
22746
  exports.getBulkUpload = getBulkUpload;
@@ -22860,7 +22811,6 @@ exports.getBusinessProducts = getBusinessProducts;
22860
22811
  exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
22861
22812
  exports.getBusinessRNA = getBusinessRNA;
22862
22813
  exports.getBusinessRNAs = getBusinessRNAs;
22863
- exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
22864
22814
  exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
22865
22815
  exports.getBusinessService = getBusinessService;
22866
22816
  exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
@@ -22953,7 +22903,6 @@ exports.getMySelfCheckoutSession = getMySelfCheckoutSession;
22953
22903
  exports.getMySelfCheckoutSessionTransaction = getMySelfCheckoutSessionTransaction;
22954
22904
  exports.getNonce = getNonce;
22955
22905
  exports.getOnboardingRequest = getOnboardingRequest;
22956
- exports.getOrgByHealthFundExists = getOrgByHealthFundExists;
22957
22906
  exports.getOrganisationAccounts = getOrganisationAccounts;
22958
22907
  exports.getOrganisationBusinessProfiles = getOrganisationBusinessProfiles;
22959
22908
  exports.getOrganisationBusinesses = getOrganisationBusinesses;
@@ -23111,8 +23060,6 @@ exports.pathFunderValues = pathFunderValues;
23111
23060
  exports.pathFunderValuesById = pathFunderValuesById;
23112
23061
  exports.pathFuture = pathFuture;
23113
23062
  exports.pathGetAbr = pathGetAbr;
23114
- exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
23115
- exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
23116
23063
  exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
23117
23064
  exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
23118
23065
  exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
@@ -23179,7 +23126,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
23179
23126
  exports.pathResetTerminal = pathResetTerminal;
23180
23127
  exports.pathResumeComplexVerification = pathResumeComplexVerification;
23181
23128
  exports.pathScanClaimFile = pathScanClaimFile;
23182
- exports.pathScanFile = pathScanFile;
23183
23129
  exports.pathSendReceipt = pathSendReceipt;
23184
23130
  exports.pathSendWorkerMessage = pathSendWorkerMessage;
23185
23131
  exports.pathSignUp = pathSignUp;
@@ -23253,7 +23199,6 @@ exports.saveDraft = saveDraft;
23253
23199
  exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
23254
23200
  exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
23255
23201
  exports.scanClaimFile = scanClaimFile;
23256
- exports.scanFile = scanFile;
23257
23202
  exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
23258
23203
  exports.sdk = sdkClient;
23259
23204
  exports.sdkClient = sdkClient;
@@ -23346,7 +23291,6 @@ exports.updateService = updateService;
23346
23291
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23347
23292
  exports.updateTerminal = updateTerminal;
23348
23293
  exports.updateTransaction = updateTransaction;
23349
- exports.uploadAttachmentToS3 = uploadAttachmentToS3;
23350
23294
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23351
23295
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23352
23296
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;