@medipass/web-sdk 11.53.1-feature-void-payment.0 → 11.53.1-feature-healthpoint-upload-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 (94) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/resources/abr.js +1 -1
  3. package/lib/resources/accounts.js +1 -1
  4. package/lib/resources/actions.js +1 -1
  5. package/lib/resources/api-keys.js +1 -1
  6. package/lib/resources/applications.js +1 -1
  7. package/lib/resources/attachments.d.ts +35 -1
  8. package/lib/resources/attachments.js +7 -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.d.ts +9 -0
  15. package/lib/resources/businesses.js +2 -1
  16. package/lib/resources/claim-items.js +1 -1
  17. package/lib/resources/devices.js +1 -1
  18. package/lib/resources/doc-accounts.js +1 -1
  19. package/lib/resources/documents.js +1 -1
  20. package/lib/resources/emails.js +1 -1
  21. package/lib/resources/filter-options.js +1 -1
  22. package/lib/resources/form-application-templates.js +1 -1
  23. package/lib/resources/form-applications.js +1 -1
  24. package/lib/resources/forms.js +1 -1
  25. package/lib/resources/funder-services.js +1 -1
  26. package/lib/resources/funder-settings.js +1 -1
  27. package/lib/resources/funder-values.js +1 -1
  28. package/lib/resources/funders.js +1 -1
  29. package/lib/resources/futures.js +1 -1
  30. package/lib/resources/health-fund-accounts.js +1 -1
  31. package/lib/resources/health-fund-settings.js +1 -1
  32. package/lib/resources/healthfunds.js +1 -1
  33. package/lib/resources/icditems.js +1 -1
  34. package/lib/resources/invoice-scans.js +1 -1
  35. package/lib/resources/jhcs.js +1 -1
  36. package/lib/resources/kyc.js +1 -1
  37. package/lib/resources/logs.js +1 -1
  38. package/lib/resources/members.js +1 -1
  39. package/lib/resources/message-mappings.js +1 -1
  40. package/lib/resources/minions.js +1 -1
  41. package/lib/resources/modalities.js +1 -1
  42. package/lib/resources/notes.js +1 -1
  43. package/lib/resources/onboarding-applications.js +1 -1
  44. package/lib/resources/onboarding-requests.js +1 -1
  45. package/lib/resources/ops.js +1 -1
  46. package/lib/resources/organisations.js +1 -1
  47. package/lib/resources/partners.js +1 -1
  48. package/lib/resources/patients.js +1 -1
  49. package/lib/resources/payments.js +1 -1
  50. package/lib/resources/pms.js +1 -1
  51. package/lib/resources/practice-profiles.js +1 -1
  52. package/lib/resources/practice-types.js +1 -1
  53. package/lib/resources/practices.js +1 -1
  54. package/lib/resources/products.js +1 -1
  55. package/lib/resources/professional-categories.js +1 -1
  56. package/lib/resources/provider-number-types.js +1 -1
  57. package/lib/resources/provider-registration-types.js +1 -1
  58. package/lib/resources/provider-requests.js +1 -1
  59. package/lib/resources/provider-types.js +1 -1
  60. package/lib/resources/ref-sources.js +1 -1
  61. package/lib/resources/risk.js +1 -1
  62. package/lib/resources/rnas.js +1 -1
  63. package/lib/resources/roles.js +1 -1
  64. package/lib/resources/self-checkout-sessions.js +1 -1
  65. package/lib/resources/services.js +1 -1
  66. package/lib/resources/settlements.js +1 -1
  67. package/lib/resources/sign-up.js +1 -1
  68. package/lib/resources/specialties.js +1 -1
  69. package/lib/resources/staff-profiles.js +1 -1
  70. package/lib/resources/staff.js +1 -1
  71. package/lib/resources/statistics.js +1 -1
  72. package/lib/resources/subscriptions.js +1 -1
  73. package/lib/resources/terminals.js +1 -1
  74. package/lib/resources/transaction-export.js +1 -1
  75. package/lib/resources/transactions.d.ts +0 -8
  76. package/lib/resources/transactions.js +1 -2
  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-8cf9d456.js → staff-6614398a.js} +270 -107
  86. package/lib/types/index.d.ts +3 -1
  87. package/lib/types/provider-set-item.d.ts +19 -0
  88. package/lib/types/virus-scan.d.ts +13 -0
  89. package/lib/types/virus-scan.js +2 -0
  90. package/lib/utils/application.js +1 -1
  91. package/lib/utils/professions.js +1 -1
  92. package/lib/utils/request.js +1 -1
  93. package/lib/utils/staff.js +1 -1
  94. package/package.json +4 -4
@@ -1798,6 +1798,15 @@ 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
+ };
1801
1810
  /**
1802
1811
  * Get url to upload a file associated to a claim
1803
1812
  * @param {String} businessId - Business ID
@@ -1879,14 +1888,88 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
1879
1888
  });
1880
1889
  };
1881
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
+
1882
1959
  var attachments = /*#__PURE__*/Object.freeze({
1883
1960
  __proto__: null,
1884
1961
  pathGetClaimAttachmentUrl: pathGetClaimAttachmentUrl,
1885
1962
  pathGetS3SignedUrl: pathGetS3SignedUrl,
1886
1963
  pathScanClaimFile: pathScanClaimFile,
1964
+ pathScanFile: pathScanFile,
1965
+ pathGetAttachmentUrl: pathGetAttachmentUrl,
1966
+ pathGetBusinessS3SignedUrl: pathGetBusinessS3SignedUrl,
1887
1967
  getClaimAttachmentUrl: getClaimAttachmentUrl,
1888
1968
  scanClaimFile: scanClaimFile,
1889
- getS3SignedUrl: getS3SignedUrl
1969
+ getS3SignedUrl: getS3SignedUrl,
1970
+ scanFile: scanFile,
1971
+ getAttachmentUrl: getAttachmentUrl,
1972
+ getBusinessS3SignedUrl: getBusinessS3SignedUrl
1890
1973
  });
1891
1974
 
1892
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; }
@@ -3730,6 +3813,10 @@ var pathGetBusinessBillingHistoryRecords = function pathGetBusinessBillingHistor
3730
3813
  var pathGetBusinessBillingHistoryRecord = function pathGetBusinessBillingHistoryRecord(businessId, billingHistoryId) {
3731
3814
  return "/businesses/" + businessId + "/billinghistories/" + billingHistoryId;
3732
3815
  };
3816
+
3817
+ var pathGetOrgByHealthFundExists = function pathGetOrgByHealthFundExists(businessId) {
3818
+ return "/businesses/" + businessId + "/orgexists";
3819
+ };
3733
3820
  /**
3734
3821
  * Create businesses
3735
3822
  * @param {Object} body - Request body
@@ -4303,6 +4390,27 @@ var suspendBusiness = function suspendBusiness(businessId, body, opts) {
4303
4390
  });
4304
4391
  };
4305
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
+
4306
4414
  var businesses = /*#__PURE__*/Object.freeze({
4307
4415
  __proto__: null,
4308
4416
  createBusiness: createBusiness,
@@ -4329,7 +4437,8 @@ var businesses = /*#__PURE__*/Object.freeze({
4329
4437
  createSupportNote: createSupportNote,
4330
4438
  getBsbDetails: getBsbDetails,
4331
4439
  sendBusinessEmail: sendBusinessEmail,
4332
- suspendBusiness: suspendBusiness
4440
+ suspendBusiness: suspendBusiness,
4441
+ getOrgByHealthFundExists: getOrgByHealthFundExists
4333
4442
  });
4334
4443
 
4335
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; }
@@ -17782,10 +17891,6 @@ var pathTransactionPaymentRefund = function pathTransactionPaymentRefund(transac
17782
17891
  return "/transactions/" + transactionId + "/payments/" + paymentId + "/refunds";
17783
17892
  };
17784
17893
 
17785
- var pathTransactionPaymentVoid = function pathTransactionPaymentVoid(transactionId, paymentId) {
17786
- return "/transactions/" + transactionId + "/payments/" + paymentId + "/voids";
17787
- };
17788
-
17789
17894
  var pathCreateEclipseInPatientInvoice = function pathCreateEclipseInPatientInvoice() {
17790
17895
  return "/transactions/invoices/eclipse/imcw";
17791
17896
  };
@@ -20172,15 +20277,13 @@ var refundPayment = /*#__PURE__*/function () {
20172
20277
  };
20173
20278
  }();
20174
20279
  /**
20175
- * Void transaction's payment
20176
- * @param {String} transactionId - TransactionId
20177
- * @param {String} paymentId - PaymentId
20280
+ * Create ECLIPSE invoice - In Patient
20178
20281
  * @param {Object} body - Request body
20179
20282
  * @param {Object} opts - Additional options
20180
20283
  */
20181
20284
 
20182
- var voidPayment = /*#__PURE__*/function () {
20183
- var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(transactionId, paymentId, body, opts) {
20285
+ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20286
+ var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(body, opts) {
20184
20287
  return _regeneratorRuntime.wrap(function _callee60$(_context60) {
20185
20288
  while (1) {
20186
20289
  switch (_context60.prev = _context60.next) {
@@ -20189,17 +20292,14 @@ var voidPayment = /*#__PURE__*/function () {
20189
20292
  opts = {};
20190
20293
  }
20191
20294
 
20192
- doesParamExist.default({
20193
- transactionId: transactionId
20194
- }, opts.hyperMediaEndpoint);
20195
20295
  return _context60.abrupt("return", request(_objectSpread$18({}, opts, {
20196
- path: pathTransactionPaymentVoid(transactionId, paymentId)
20296
+ path: pathCreateEclipseInPatientInvoice()
20197
20297
  }), {
20198
20298
  method: 'post',
20199
20299
  data: body
20200
20300
  }));
20201
20301
 
20202
- case 3:
20302
+ case 2:
20203
20303
  case "end":
20204
20304
  return _context60.stop();
20205
20305
  }
@@ -20207,17 +20307,17 @@ var voidPayment = /*#__PURE__*/function () {
20207
20307
  }, _callee60);
20208
20308
  }));
20209
20309
 
20210
- return function voidPayment(_x192, _x193, _x194, _x195) {
20310
+ return function createEclipseInPatientInvoice(_x192, _x193) {
20211
20311
  return _ref60.apply(this, arguments);
20212
20312
  };
20213
20313
  }();
20214
20314
  /**
20215
- * Create ECLIPSE invoice - In Patient
20315
+ * Create ECLIPSE invoice - Overseas
20216
20316
  * @param {Object} body - Request body
20217
20317
  * @param {Object} opts - Additional options
20218
20318
  */
20219
20319
 
20220
- var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20320
+ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20221
20321
  var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(body, opts) {
20222
20322
  return _regeneratorRuntime.wrap(function _callee61$(_context61) {
20223
20323
  while (1) {
@@ -20228,7 +20328,7 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20228
20328
  }
20229
20329
 
20230
20330
  return _context61.abrupt("return", request(_objectSpread$18({}, opts, {
20231
- path: pathCreateEclipseInPatientInvoice()
20331
+ path: pathCreateEclipseOverseasInvoice()
20232
20332
  }), {
20233
20333
  method: 'post',
20234
20334
  data: body
@@ -20242,17 +20342,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20242
20342
  }, _callee61);
20243
20343
  }));
20244
20344
 
20245
- return function createEclipseInPatientInvoice(_x196, _x197) {
20345
+ return function createEclipseOverseasInvoice(_x194, _x195) {
20246
20346
  return _ref61.apply(this, arguments);
20247
20347
  };
20248
20348
  }();
20249
20349
  /**
20250
- * Create ECLIPSE invoice - Overseas
20350
+ * Create ECLIPSE invoice - Online Eligibility Check
20251
20351
  * @param {Object} body - Request body
20252
20352
  * @param {Object} opts - Additional options
20253
20353
  */
20254
20354
 
20255
- var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20355
+ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20256
20356
  var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(body, opts) {
20257
20357
  return _regeneratorRuntime.wrap(function _callee62$(_context62) {
20258
20358
  while (1) {
@@ -20263,7 +20363,7 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20263
20363
  }
20264
20364
 
20265
20365
  return _context62.abrupt("return", request(_objectSpread$18({}, opts, {
20266
- path: pathCreateEclipseOverseasInvoice()
20366
+ path: pathCreateEclipseOnlineEligibilityCheckInvoice()
20267
20367
  }), {
20268
20368
  method: 'post',
20269
20369
  data: body
@@ -20277,18 +20377,19 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20277
20377
  }, _callee62);
20278
20378
  }));
20279
20379
 
20280
- return function createEclipseOverseasInvoice(_x198, _x199) {
20380
+ return function createEclipseOnlineEligibilityCheckInvoice(_x196, _x197) {
20281
20381
  return _ref62.apply(this, arguments);
20282
20382
  };
20283
20383
  }();
20284
20384
  /**
20285
- * Create ECLIPSE invoice - Online Eligibility Check
20286
- * @param {Object} body - Request body
20385
+ * Get business ECLIPSE transaction payment report
20386
+ * @param {String} businessId - Business ID
20387
+ * @param {String} transactionId - Transaction ID
20287
20388
  * @param {Object} opts - Additional options
20288
20389
  */
20289
20390
 
20290
- var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20291
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(body, opts) {
20391
+ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20392
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
20292
20393
  return _regeneratorRuntime.wrap(function _callee63$(_context63) {
20293
20394
  while (1) {
20294
20395
  switch (_context63.prev = _context63.next) {
@@ -20297,14 +20398,18 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20297
20398
  opts = {};
20298
20399
  }
20299
20400
 
20401
+ doesParamExist.default({
20402
+ businessId: businessId,
20403
+ transactionId: transactionId
20404
+ }, opts.hyperMediaEndpoint);
20300
20405
  return _context63.abrupt("return", request(_objectSpread$18({}, opts, {
20301
- path: pathCreateEclipseOnlineEligibilityCheckInvoice()
20406
+ path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
20302
20407
  }), {
20303
- method: 'post',
20304
- data: body
20408
+ method: 'get',
20409
+ params: query
20305
20410
  }));
20306
20411
 
20307
- case 2:
20412
+ case 3:
20308
20413
  case "end":
20309
20414
  return _context63.stop();
20310
20415
  }
@@ -20312,18 +20417,18 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20312
20417
  }, _callee63);
20313
20418
  }));
20314
20419
 
20315
- return function createEclipseOnlineEligibilityCheckInvoice(_x200, _x201) {
20420
+ return function getBusinessEclipseTransactionPaymentReport(_x198, _x199, _x200, _x201) {
20316
20421
  return _ref63.apply(this, arguments);
20317
20422
  };
20318
20423
  }();
20319
20424
  /**
20320
- * Get business ECLIPSE transaction payment report
20425
+ * Get business ECLIPSE transaction processing report
20321
20426
  * @param {String} businessId - Business ID
20322
20427
  * @param {String} transactionId - Transaction ID
20323
20428
  * @param {Object} opts - Additional options
20324
20429
  */
20325
20430
 
20326
- var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20431
+ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20327
20432
  var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(businessId, transactionId, query, opts) {
20328
20433
  return _regeneratorRuntime.wrap(function _callee64$(_context64) {
20329
20434
  while (1) {
@@ -20338,7 +20443,7 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20338
20443
  transactionId: transactionId
20339
20444
  }, opts.hyperMediaEndpoint);
20340
20445
  return _context64.abrupt("return", request(_objectSpread$18({}, opts, {
20341
- path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
20446
+ path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
20342
20447
  }), {
20343
20448
  method: 'get',
20344
20449
  params: query
@@ -20352,19 +20457,19 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20352
20457
  }, _callee64);
20353
20458
  }));
20354
20459
 
20355
- return function getBusinessEclipseTransactionPaymentReport(_x202, _x203, _x204, _x205) {
20460
+ return function getBusinessEclipseTransactionProcessingReport(_x202, _x203, _x204, _x205) {
20356
20461
  return _ref64.apply(this, arguments);
20357
20462
  };
20358
20463
  }();
20359
20464
  /**
20360
- * Get business ECLIPSE transaction processing report
20361
- * @param {String} businessId - Business ID
20362
- * @param {String} transactionId - Transaction ID
20465
+ * Reconciles a claim
20466
+ * @param {String} transactionId - TransactionId
20467
+ * @param {String} claimId - ClaimId
20363
20468
  * @param {Object} opts - Additional options
20364
20469
  */
20365
20470
 
20366
- var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20367
- var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(businessId, transactionId, query, opts) {
20471
+ var reconcileClaim = /*#__PURE__*/function () {
20472
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(transactionId, claimId, opts) {
20368
20473
  return _regeneratorRuntime.wrap(function _callee65$(_context65) {
20369
20474
  while (1) {
20370
20475
  switch (_context65.prev = _context65.next) {
@@ -20374,14 +20479,12 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20374
20479
  }
20375
20480
 
20376
20481
  doesParamExist.default({
20377
- businessId: businessId,
20378
20482
  transactionId: transactionId
20379
20483
  }, opts.hyperMediaEndpoint);
20380
20484
  return _context65.abrupt("return", request(_objectSpread$18({}, opts, {
20381
- path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
20485
+ path: pathReconcileClaim(transactionId, claimId)
20382
20486
  }), {
20383
- method: 'get',
20384
- params: query
20487
+ method: 'post'
20385
20488
  }));
20386
20489
 
20387
20490
  case 3:
@@ -20392,19 +20495,18 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20392
20495
  }, _callee65);
20393
20496
  }));
20394
20497
 
20395
- return function getBusinessEclipseTransactionProcessingReport(_x206, _x207, _x208, _x209) {
20498
+ return function reconcileClaim(_x206, _x207, _x208) {
20396
20499
  return _ref65.apply(this, arguments);
20397
20500
  };
20398
20501
  }();
20399
20502
  /**
20400
- * Reconciles a claim
20401
- * @param {String} transactionId - TransactionId
20402
- * @param {String} claimId - ClaimId
20503
+ * Save draft for ECLIPSE invoice - In Patient
20504
+ * @param {Object} body - Request body
20403
20505
  * @param {Object} opts - Additional options
20404
20506
  */
20405
20507
 
20406
- var reconcileClaim = /*#__PURE__*/function () {
20407
- var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(transactionId, claimId, opts) {
20508
+ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20509
+ var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(body, opts) {
20408
20510
  return _regeneratorRuntime.wrap(function _callee66$(_context66) {
20409
20511
  while (1) {
20410
20512
  switch (_context66.prev = _context66.next) {
@@ -20413,16 +20515,14 @@ var reconcileClaim = /*#__PURE__*/function () {
20413
20515
  opts = {};
20414
20516
  }
20415
20517
 
20416
- doesParamExist.default({
20417
- transactionId: transactionId
20418
- }, opts.hyperMediaEndpoint);
20419
20518
  return _context66.abrupt("return", request(_objectSpread$18({}, opts, {
20420
- path: pathReconcileClaim(transactionId, claimId)
20519
+ path: pathSaveDraftEclipseInPatientInvoice()
20421
20520
  }), {
20422
- method: 'post'
20521
+ method: 'post',
20522
+ data: body
20423
20523
  }));
20424
20524
 
20425
- case 3:
20525
+ case 2:
20426
20526
  case "end":
20427
20527
  return _context66.stop();
20428
20528
  }
@@ -20430,17 +20530,17 @@ var reconcileClaim = /*#__PURE__*/function () {
20430
20530
  }, _callee66);
20431
20531
  }));
20432
20532
 
20433
- return function reconcileClaim(_x210, _x211, _x212) {
20533
+ return function saveDraftEclipseInPatientInvoice(_x209, _x210) {
20434
20534
  return _ref66.apply(this, arguments);
20435
20535
  };
20436
20536
  }();
20437
20537
  /**
20438
- * Save draft for ECLIPSE invoice - In Patient
20538
+ * Save draft ECLIPSE invoice - Overseas
20439
20539
  * @param {Object} body - Request body
20440
20540
  * @param {Object} opts - Additional options
20441
20541
  */
20442
20542
 
20443
- var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20543
+ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20444
20544
  var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(body, opts) {
20445
20545
  return _regeneratorRuntime.wrap(function _callee67$(_context67) {
20446
20546
  while (1) {
@@ -20451,7 +20551,7 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20451
20551
  }
20452
20552
 
20453
20553
  return _context67.abrupt("return", request(_objectSpread$18({}, opts, {
20454
- path: pathSaveDraftEclipseInPatientInvoice()
20554
+ path: pathSaveDraftEclipseOverseasInvoice()
20455
20555
  }), {
20456
20556
  method: 'post',
20457
20557
  data: body
@@ -20465,17 +20565,17 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20465
20565
  }, _callee67);
20466
20566
  }));
20467
20567
 
20468
- return function saveDraftEclipseInPatientInvoice(_x213, _x214) {
20568
+ return function saveDraftEclipseOverseasInvoice(_x211, _x212) {
20469
20569
  return _ref67.apply(this, arguments);
20470
20570
  };
20471
20571
  }();
20472
20572
  /**
20473
- * Save draft ECLIPSE invoice - Overseas
20573
+ * Create PHI invoice
20474
20574
  * @param {Object} body - Request body
20475
20575
  * @param {Object} opts - Additional options
20476
20576
  */
20477
20577
 
20478
- var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20578
+ var createPhiInvoice = /*#__PURE__*/function () {
20479
20579
  var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(body, opts) {
20480
20580
  return _regeneratorRuntime.wrap(function _callee68$(_context68) {
20481
20581
  while (1) {
@@ -20486,7 +20586,7 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20486
20586
  }
20487
20587
 
20488
20588
  return _context68.abrupt("return", request(_objectSpread$18({}, opts, {
20489
- path: pathSaveDraftEclipseOverseasInvoice()
20589
+ path: pathPhiInvoice()
20490
20590
  }), {
20491
20591
  method: 'post',
20492
20592
  data: body
@@ -20500,45 +20600,10 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20500
20600
  }, _callee68);
20501
20601
  }));
20502
20602
 
20503
- return function saveDraftEclipseOverseasInvoice(_x215, _x216) {
20603
+ return function createPhiInvoice(_x213, _x214) {
20504
20604
  return _ref68.apply(this, arguments);
20505
20605
  };
20506
20606
  }();
20507
- /**
20508
- * Create PHI invoice
20509
- * @param {Object} body - Request body
20510
- * @param {Object} opts - Additional options
20511
- */
20512
-
20513
- var createPhiInvoice = /*#__PURE__*/function () {
20514
- var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(body, opts) {
20515
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
20516
- while (1) {
20517
- switch (_context69.prev = _context69.next) {
20518
- case 0:
20519
- if (opts === void 0) {
20520
- opts = {};
20521
- }
20522
-
20523
- return _context69.abrupt("return", request(_objectSpread$18({}, opts, {
20524
- path: pathPhiInvoice()
20525
- }), {
20526
- method: 'post',
20527
- data: body
20528
- }));
20529
-
20530
- case 2:
20531
- case "end":
20532
- return _context69.stop();
20533
- }
20534
- }
20535
- }, _callee69);
20536
- }));
20537
-
20538
- return function createPhiInvoice(_x217, _x218) {
20539
- return _ref69.apply(this, arguments);
20540
- };
20541
- }();
20542
20607
 
20543
20608
  var transactions = /*#__PURE__*/Object.freeze({
20544
20609
  __proto__: null,
@@ -20601,7 +20666,6 @@ var transactions = /*#__PURE__*/Object.freeze({
20601
20666
  terminalInput: terminalInput,
20602
20667
  terminalCancellation: terminalCancellation,
20603
20668
  refundPayment: refundPayment,
20604
- voidPayment: voidPayment,
20605
20669
  createEclipseInPatientInvoice: createEclipseInPatientInvoice,
20606
20670
  createEclipseOverseasInvoice: createEclipseOverseasInvoice,
20607
20671
  createEclipseOnlineEligibilityCheckInvoice: createEclipseOnlineEligibilityCheckInvoice,
@@ -21589,6 +21653,95 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
21589
21653
  return _ref8.apply(this, arguments);
21590
21654
  };
21591
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
+ }();
21592
21745
 
21593
21746
  var aws = /*#__PURE__*/Object.freeze({
21594
21747
  __proto__: null,
@@ -21599,7 +21752,8 @@ var aws = /*#__PURE__*/Object.freeze({
21599
21752
  uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
21600
21753
  uploadInvoiceScanToS3: uploadInvoiceScanToS3,
21601
21754
  uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
21602
- uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
21755
+ uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3,
21756
+ uploadAttachmentToS3: uploadAttachmentToS3
21603
21757
  });
21604
21758
 
21605
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; }
@@ -22412,7 +22566,9 @@ function _parseProviderSet() {
22412
22566
  practiceIds = providerSet.map(function (providerData) {
22413
22567
  return providerData.practiceId;
22414
22568
  });
22415
- uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
22569
+ uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
22570
+ return !!practiceId;
22571
+ });
22416
22572
  practices = [];
22417
22573
  _context.next = 5;
22418
22574
  return Promise.all(uniquePracticeIds.map(function (practiceId) {
@@ -22786,6 +22942,7 @@ exports.getAction = getAction;
22786
22942
  exports.getActions = getActions;
22787
22943
  exports.getApplication = getApplication;
22788
22944
  exports.getApplications = getApplications;
22945
+ exports.getAttachmentUrl = getAttachmentUrl;
22789
22946
  exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
22790
22947
  exports.getBsbDetails = getBsbDetails;
22791
22948
  exports.getBulkUpload = getBulkUpload;
@@ -22856,6 +23013,7 @@ exports.getBusinessProducts = getBusinessProducts;
22856
23013
  exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
22857
23014
  exports.getBusinessRNA = getBusinessRNA;
22858
23015
  exports.getBusinessRNAs = getBusinessRNAs;
23016
+ exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
22859
23017
  exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
22860
23018
  exports.getBusinessService = getBusinessService;
22861
23019
  exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
@@ -22948,6 +23106,7 @@ exports.getMySelfCheckoutSession = getMySelfCheckoutSession;
22948
23106
  exports.getMySelfCheckoutSessionTransaction = getMySelfCheckoutSessionTransaction;
22949
23107
  exports.getNonce = getNonce;
22950
23108
  exports.getOnboardingRequest = getOnboardingRequest;
23109
+ exports.getOrgByHealthFundExists = getOrgByHealthFundExists;
22951
23110
  exports.getOrganisationAccounts = getOrganisationAccounts;
22952
23111
  exports.getOrganisationBusinessProfiles = getOrganisationBusinessProfiles;
22953
23112
  exports.getOrganisationBusinesses = getOrganisationBusinesses;
@@ -23105,6 +23264,8 @@ exports.pathFunderValues = pathFunderValues;
23105
23264
  exports.pathFunderValuesById = pathFunderValuesById;
23106
23265
  exports.pathFuture = pathFuture;
23107
23266
  exports.pathGetAbr = pathGetAbr;
23267
+ exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
23268
+ exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
23108
23269
  exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
23109
23270
  exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
23110
23271
  exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
@@ -23171,6 +23332,7 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
23171
23332
  exports.pathResetTerminal = pathResetTerminal;
23172
23333
  exports.pathResumeComplexVerification = pathResumeComplexVerification;
23173
23334
  exports.pathScanClaimFile = pathScanClaimFile;
23335
+ exports.pathScanFile = pathScanFile;
23174
23336
  exports.pathSendReceipt = pathSendReceipt;
23175
23337
  exports.pathSendWorkerMessage = pathSendWorkerMessage;
23176
23338
  exports.pathSignUp = pathSignUp;
@@ -23244,6 +23406,7 @@ exports.saveDraft = saveDraft;
23244
23406
  exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
23245
23407
  exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
23246
23408
  exports.scanClaimFile = scanClaimFile;
23409
+ exports.scanFile = scanFile;
23247
23410
  exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
23248
23411
  exports.sdk = sdkClient;
23249
23412
  exports.sdkClient = sdkClient;
@@ -23336,6 +23499,7 @@ exports.updateService = updateService;
23336
23499
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23337
23500
  exports.updateTerminal = updateTerminal;
23338
23501
  exports.updateTransaction = updateTransaction;
23502
+ exports.uploadAttachmentToS3 = uploadAttachmentToS3;
23339
23503
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23340
23504
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23341
23505
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
@@ -23363,6 +23527,5 @@ exports.verifyPartnerAccount = verifyPartnerAccount;
23363
23527
  exports.verifyPracticeKyc = verifyPracticeKyc;
23364
23528
  exports.verifyStaffMember = verifyStaffMember;
23365
23529
  exports.versions = versions;
23366
- exports.voidPayment = voidPayment;
23367
23530
  exports.workers = workers;
23368
23531
  exports.workflowExceptions = workflowExceptions;