@medipass/web-sdk 11.53.1-feature-healthpoint-upload-endpoints.1 → 11.54.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 (95) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/index.js +1 -1
  3. package/lib/resources/abr.js +1 -1
  4. package/lib/resources/accounts.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.d.ts +8 -0
  77. package/lib/resources/transactions.js +2 -1
  78. package/lib/resources/triggers.js +1 -1
  79. package/lib/resources/vendors.js +1 -1
  80. package/lib/resources/verify.js +1 -1
  81. package/lib/resources/workers.js +1 -1
  82. package/lib/resources/workflow-exceptions.js +1 -1
  83. package/lib/services/aws.d.ts +0 -10
  84. package/lib/services/aws.js +1 -2
  85. package/lib/services/version.js +1 -1
  86. package/lib/{staff-6614398a.js → staff-8cf9d456.js} +107 -270
  87. package/lib/types/index.d.ts +1 -3
  88. package/lib/types/provider-set-item.d.ts +0 -19
  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
  94. package/lib/types/virus-scan.d.ts +0 -13
  95. 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; }
@@ -17891,6 +17782,10 @@ var pathTransactionPaymentRefund = function pathTransactionPaymentRefund(transac
17891
17782
  return "/transactions/" + transactionId + "/payments/" + paymentId + "/refunds";
17892
17783
  };
17893
17784
 
17785
+ var pathTransactionPaymentVoid = function pathTransactionPaymentVoid(transactionId, paymentId) {
17786
+ return "/transactions/" + transactionId + "/payments/" + paymentId + "/voids";
17787
+ };
17788
+
17894
17789
  var pathCreateEclipseInPatientInvoice = function pathCreateEclipseInPatientInvoice() {
17895
17790
  return "/transactions/invoices/eclipse/imcw";
17896
17791
  };
@@ -20277,13 +20172,15 @@ var refundPayment = /*#__PURE__*/function () {
20277
20172
  };
20278
20173
  }();
20279
20174
  /**
20280
- * Create ECLIPSE invoice - In Patient
20175
+ * Void transaction's payment
20176
+ * @param {String} transactionId - TransactionId
20177
+ * @param {String} paymentId - PaymentId
20281
20178
  * @param {Object} body - Request body
20282
20179
  * @param {Object} opts - Additional options
20283
20180
  */
20284
20181
 
20285
- var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20286
- var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(body, opts) {
20182
+ var voidPayment = /*#__PURE__*/function () {
20183
+ var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(transactionId, paymentId, body, opts) {
20287
20184
  return _regeneratorRuntime.wrap(function _callee60$(_context60) {
20288
20185
  while (1) {
20289
20186
  switch (_context60.prev = _context60.next) {
@@ -20292,14 +20189,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20292
20189
  opts = {};
20293
20190
  }
20294
20191
 
20192
+ doesParamExist.default({
20193
+ transactionId: transactionId
20194
+ }, opts.hyperMediaEndpoint);
20295
20195
  return _context60.abrupt("return", request(_objectSpread$18({}, opts, {
20296
- path: pathCreateEclipseInPatientInvoice()
20196
+ path: pathTransactionPaymentVoid(transactionId, paymentId)
20297
20197
  }), {
20298
20198
  method: 'post',
20299
20199
  data: body
20300
20200
  }));
20301
20201
 
20302
- case 2:
20202
+ case 3:
20303
20203
  case "end":
20304
20204
  return _context60.stop();
20305
20205
  }
@@ -20307,17 +20207,17 @@ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20307
20207
  }, _callee60);
20308
20208
  }));
20309
20209
 
20310
- return function createEclipseInPatientInvoice(_x192, _x193) {
20210
+ return function voidPayment(_x192, _x193, _x194, _x195) {
20311
20211
  return _ref60.apply(this, arguments);
20312
20212
  };
20313
20213
  }();
20314
20214
  /**
20315
- * Create ECLIPSE invoice - Overseas
20215
+ * Create ECLIPSE invoice - In Patient
20316
20216
  * @param {Object} body - Request body
20317
20217
  * @param {Object} opts - Additional options
20318
20218
  */
20319
20219
 
20320
- var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20220
+ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
20321
20221
  var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(body, opts) {
20322
20222
  return _regeneratorRuntime.wrap(function _callee61$(_context61) {
20323
20223
  while (1) {
@@ -20328,7 +20228,7 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20328
20228
  }
20329
20229
 
20330
20230
  return _context61.abrupt("return", request(_objectSpread$18({}, opts, {
20331
- path: pathCreateEclipseOverseasInvoice()
20231
+ path: pathCreateEclipseInPatientInvoice()
20332
20232
  }), {
20333
20233
  method: 'post',
20334
20234
  data: body
@@ -20342,17 +20242,17 @@ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20342
20242
  }, _callee61);
20343
20243
  }));
20344
20244
 
20345
- return function createEclipseOverseasInvoice(_x194, _x195) {
20245
+ return function createEclipseInPatientInvoice(_x196, _x197) {
20346
20246
  return _ref61.apply(this, arguments);
20347
20247
  };
20348
20248
  }();
20349
20249
  /**
20350
- * Create ECLIPSE invoice - Online Eligibility Check
20250
+ * Create ECLIPSE invoice - Overseas
20351
20251
  * @param {Object} body - Request body
20352
20252
  * @param {Object} opts - Additional options
20353
20253
  */
20354
20254
 
20355
- var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20255
+ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
20356
20256
  var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(body, opts) {
20357
20257
  return _regeneratorRuntime.wrap(function _callee62$(_context62) {
20358
20258
  while (1) {
@@ -20363,7 +20263,7 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20363
20263
  }
20364
20264
 
20365
20265
  return _context62.abrupt("return", request(_objectSpread$18({}, opts, {
20366
- path: pathCreateEclipseOnlineEligibilityCheckInvoice()
20266
+ path: pathCreateEclipseOverseasInvoice()
20367
20267
  }), {
20368
20268
  method: 'post',
20369
20269
  data: body
@@ -20377,19 +20277,18 @@ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20377
20277
  }, _callee62);
20378
20278
  }));
20379
20279
 
20380
- return function createEclipseOnlineEligibilityCheckInvoice(_x196, _x197) {
20280
+ return function createEclipseOverseasInvoice(_x198, _x199) {
20381
20281
  return _ref62.apply(this, arguments);
20382
20282
  };
20383
20283
  }();
20384
20284
  /**
20385
- * Get business ECLIPSE transaction payment report
20386
- * @param {String} businessId - Business ID
20387
- * @param {String} transactionId - Transaction ID
20285
+ * Create ECLIPSE invoice - Online Eligibility Check
20286
+ * @param {Object} body - Request body
20388
20287
  * @param {Object} opts - Additional options
20389
20288
  */
20390
20289
 
20391
- var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20392
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
20290
+ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
20291
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(body, opts) {
20393
20292
  return _regeneratorRuntime.wrap(function _callee63$(_context63) {
20394
20293
  while (1) {
20395
20294
  switch (_context63.prev = _context63.next) {
@@ -20398,18 +20297,14 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20398
20297
  opts = {};
20399
20298
  }
20400
20299
 
20401
- doesParamExist.default({
20402
- businessId: businessId,
20403
- transactionId: transactionId
20404
- }, opts.hyperMediaEndpoint);
20405
20300
  return _context63.abrupt("return", request(_objectSpread$18({}, opts, {
20406
- path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
20301
+ path: pathCreateEclipseOnlineEligibilityCheckInvoice()
20407
20302
  }), {
20408
- method: 'get',
20409
- params: query
20303
+ method: 'post',
20304
+ data: body
20410
20305
  }));
20411
20306
 
20412
- case 3:
20307
+ case 2:
20413
20308
  case "end":
20414
20309
  return _context63.stop();
20415
20310
  }
@@ -20417,18 +20312,18 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20417
20312
  }, _callee63);
20418
20313
  }));
20419
20314
 
20420
- return function getBusinessEclipseTransactionPaymentReport(_x198, _x199, _x200, _x201) {
20315
+ return function createEclipseOnlineEligibilityCheckInvoice(_x200, _x201) {
20421
20316
  return _ref63.apply(this, arguments);
20422
20317
  };
20423
20318
  }();
20424
20319
  /**
20425
- * Get business ECLIPSE transaction processing report
20320
+ * Get business ECLIPSE transaction payment report
20426
20321
  * @param {String} businessId - Business ID
20427
20322
  * @param {String} transactionId - Transaction ID
20428
20323
  * @param {Object} opts - Additional options
20429
20324
  */
20430
20325
 
20431
- var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20326
+ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
20432
20327
  var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(businessId, transactionId, query, opts) {
20433
20328
  return _regeneratorRuntime.wrap(function _callee64$(_context64) {
20434
20329
  while (1) {
@@ -20443,7 +20338,7 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20443
20338
  transactionId: transactionId
20444
20339
  }, opts.hyperMediaEndpoint);
20445
20340
  return _context64.abrupt("return", request(_objectSpread$18({}, opts, {
20446
- path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
20341
+ path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
20447
20342
  }), {
20448
20343
  method: 'get',
20449
20344
  params: query
@@ -20457,19 +20352,19 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20457
20352
  }, _callee64);
20458
20353
  }));
20459
20354
 
20460
- return function getBusinessEclipseTransactionProcessingReport(_x202, _x203, _x204, _x205) {
20355
+ return function getBusinessEclipseTransactionPaymentReport(_x202, _x203, _x204, _x205) {
20461
20356
  return _ref64.apply(this, arguments);
20462
20357
  };
20463
20358
  }();
20464
20359
  /**
20465
- * Reconciles a claim
20466
- * @param {String} transactionId - TransactionId
20467
- * @param {String} claimId - ClaimId
20360
+ * Get business ECLIPSE transaction processing report
20361
+ * @param {String} businessId - Business ID
20362
+ * @param {String} transactionId - Transaction ID
20468
20363
  * @param {Object} opts - Additional options
20469
20364
  */
20470
20365
 
20471
- var reconcileClaim = /*#__PURE__*/function () {
20472
- var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(transactionId, claimId, opts) {
20366
+ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
20367
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(businessId, transactionId, query, opts) {
20473
20368
  return _regeneratorRuntime.wrap(function _callee65$(_context65) {
20474
20369
  while (1) {
20475
20370
  switch (_context65.prev = _context65.next) {
@@ -20479,12 +20374,14 @@ var reconcileClaim = /*#__PURE__*/function () {
20479
20374
  }
20480
20375
 
20481
20376
  doesParamExist.default({
20377
+ businessId: businessId,
20482
20378
  transactionId: transactionId
20483
20379
  }, opts.hyperMediaEndpoint);
20484
20380
  return _context65.abrupt("return", request(_objectSpread$18({}, opts, {
20485
- path: pathReconcileClaim(transactionId, claimId)
20381
+ path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
20486
20382
  }), {
20487
- method: 'post'
20383
+ method: 'get',
20384
+ params: query
20488
20385
  }));
20489
20386
 
20490
20387
  case 3:
@@ -20495,18 +20392,19 @@ var reconcileClaim = /*#__PURE__*/function () {
20495
20392
  }, _callee65);
20496
20393
  }));
20497
20394
 
20498
- return function reconcileClaim(_x206, _x207, _x208) {
20395
+ return function getBusinessEclipseTransactionProcessingReport(_x206, _x207, _x208, _x209) {
20499
20396
  return _ref65.apply(this, arguments);
20500
20397
  };
20501
20398
  }();
20502
20399
  /**
20503
- * Save draft for ECLIPSE invoice - In Patient
20504
- * @param {Object} body - Request body
20400
+ * Reconciles a claim
20401
+ * @param {String} transactionId - TransactionId
20402
+ * @param {String} claimId - ClaimId
20505
20403
  * @param {Object} opts - Additional options
20506
20404
  */
20507
20405
 
20508
- var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20509
- var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(body, opts) {
20406
+ var reconcileClaim = /*#__PURE__*/function () {
20407
+ var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(transactionId, claimId, opts) {
20510
20408
  return _regeneratorRuntime.wrap(function _callee66$(_context66) {
20511
20409
  while (1) {
20512
20410
  switch (_context66.prev = _context66.next) {
@@ -20515,14 +20413,16 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20515
20413
  opts = {};
20516
20414
  }
20517
20415
 
20416
+ doesParamExist.default({
20417
+ transactionId: transactionId
20418
+ }, opts.hyperMediaEndpoint);
20518
20419
  return _context66.abrupt("return", request(_objectSpread$18({}, opts, {
20519
- path: pathSaveDraftEclipseInPatientInvoice()
20420
+ path: pathReconcileClaim(transactionId, claimId)
20520
20421
  }), {
20521
- method: 'post',
20522
- data: body
20422
+ method: 'post'
20523
20423
  }));
20524
20424
 
20525
- case 2:
20425
+ case 3:
20526
20426
  case "end":
20527
20427
  return _context66.stop();
20528
20428
  }
@@ -20530,17 +20430,17 @@ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20530
20430
  }, _callee66);
20531
20431
  }));
20532
20432
 
20533
- return function saveDraftEclipseInPatientInvoice(_x209, _x210) {
20433
+ return function reconcileClaim(_x210, _x211, _x212) {
20534
20434
  return _ref66.apply(this, arguments);
20535
20435
  };
20536
20436
  }();
20537
20437
  /**
20538
- * Save draft ECLIPSE invoice - Overseas
20438
+ * Save draft for ECLIPSE invoice - In Patient
20539
20439
  * @param {Object} body - Request body
20540
20440
  * @param {Object} opts - Additional options
20541
20441
  */
20542
20442
 
20543
- var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20443
+ var saveDraftEclipseInPatientInvoice = /*#__PURE__*/function () {
20544
20444
  var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(body, opts) {
20545
20445
  return _regeneratorRuntime.wrap(function _callee67$(_context67) {
20546
20446
  while (1) {
@@ -20551,7 +20451,7 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20551
20451
  }
20552
20452
 
20553
20453
  return _context67.abrupt("return", request(_objectSpread$18({}, opts, {
20554
- path: pathSaveDraftEclipseOverseasInvoice()
20454
+ path: pathSaveDraftEclipseInPatientInvoice()
20555
20455
  }), {
20556
20456
  method: 'post',
20557
20457
  data: body
@@ -20565,17 +20465,17 @@ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20565
20465
  }, _callee67);
20566
20466
  }));
20567
20467
 
20568
- return function saveDraftEclipseOverseasInvoice(_x211, _x212) {
20468
+ return function saveDraftEclipseInPatientInvoice(_x213, _x214) {
20569
20469
  return _ref67.apply(this, arguments);
20570
20470
  };
20571
20471
  }();
20572
20472
  /**
20573
- * Create PHI invoice
20473
+ * Save draft ECLIPSE invoice - Overseas
20574
20474
  * @param {Object} body - Request body
20575
20475
  * @param {Object} opts - Additional options
20576
20476
  */
20577
20477
 
20578
- var createPhiInvoice = /*#__PURE__*/function () {
20478
+ var saveDraftEclipseOverseasInvoice = /*#__PURE__*/function () {
20579
20479
  var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(body, opts) {
20580
20480
  return _regeneratorRuntime.wrap(function _callee68$(_context68) {
20581
20481
  while (1) {
@@ -20586,7 +20486,7 @@ var createPhiInvoice = /*#__PURE__*/function () {
20586
20486
  }
20587
20487
 
20588
20488
  return _context68.abrupt("return", request(_objectSpread$18({}, opts, {
20589
- path: pathPhiInvoice()
20489
+ path: pathSaveDraftEclipseOverseasInvoice()
20590
20490
  }), {
20591
20491
  method: 'post',
20592
20492
  data: body
@@ -20600,10 +20500,45 @@ var createPhiInvoice = /*#__PURE__*/function () {
20600
20500
  }, _callee68);
20601
20501
  }));
20602
20502
 
20603
- return function createPhiInvoice(_x213, _x214) {
20503
+ return function saveDraftEclipseOverseasInvoice(_x215, _x216) {
20604
20504
  return _ref68.apply(this, arguments);
20605
20505
  };
20606
20506
  }();
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
+ }();
20607
20542
 
20608
20543
  var transactions = /*#__PURE__*/Object.freeze({
20609
20544
  __proto__: null,
@@ -20666,6 +20601,7 @@ var transactions = /*#__PURE__*/Object.freeze({
20666
20601
  terminalInput: terminalInput,
20667
20602
  terminalCancellation: terminalCancellation,
20668
20603
  refundPayment: refundPayment,
20604
+ voidPayment: voidPayment,
20669
20605
  createEclipseInPatientInvoice: createEclipseInPatientInvoice,
20670
20606
  createEclipseOverseasInvoice: createEclipseOverseasInvoice,
20671
20607
  createEclipseOnlineEligibilityCheckInvoice: createEclipseOnlineEligibilityCheckInvoice,
@@ -21653,95 +21589,6 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
21653
21589
  return _ref8.apply(this, arguments);
21654
21590
  };
21655
21591
  }();
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
- }();
21745
21592
 
21746
21593
  var aws = /*#__PURE__*/Object.freeze({
21747
21594
  __proto__: null,
@@ -21752,8 +21599,7 @@ var aws = /*#__PURE__*/Object.freeze({
21752
21599
  uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
21753
21600
  uploadInvoiceScanToS3: uploadInvoiceScanToS3,
21754
21601
  uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
21755
- uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3,
21756
- uploadAttachmentToS3: uploadAttachmentToS3
21602
+ uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
21757
21603
  });
21758
21604
 
21759
21605
  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; }
@@ -22566,9 +22412,7 @@ function _parseProviderSet() {
22566
22412
  practiceIds = providerSet.map(function (providerData) {
22567
22413
  return providerData.practiceId;
22568
22414
  });
22569
- uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
22570
- return !!practiceId;
22571
- });
22415
+ uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
22572
22416
  practices = [];
22573
22417
  _context.next = 5;
22574
22418
  return Promise.all(uniquePracticeIds.map(function (practiceId) {
@@ -22942,7 +22786,6 @@ exports.getAction = getAction;
22942
22786
  exports.getActions = getActions;
22943
22787
  exports.getApplication = getApplication;
22944
22788
  exports.getApplications = getApplications;
22945
- exports.getAttachmentUrl = getAttachmentUrl;
22946
22789
  exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
22947
22790
  exports.getBsbDetails = getBsbDetails;
22948
22791
  exports.getBulkUpload = getBulkUpload;
@@ -23013,7 +22856,6 @@ exports.getBusinessProducts = getBusinessProducts;
23013
22856
  exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
23014
22857
  exports.getBusinessRNA = getBusinessRNA;
23015
22858
  exports.getBusinessRNAs = getBusinessRNAs;
23016
- exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
23017
22859
  exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
23018
22860
  exports.getBusinessService = getBusinessService;
23019
22861
  exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
@@ -23106,7 +22948,6 @@ exports.getMySelfCheckoutSession = getMySelfCheckoutSession;
23106
22948
  exports.getMySelfCheckoutSessionTransaction = getMySelfCheckoutSessionTransaction;
23107
22949
  exports.getNonce = getNonce;
23108
22950
  exports.getOnboardingRequest = getOnboardingRequest;
23109
- exports.getOrgByHealthFundExists = getOrgByHealthFundExists;
23110
22951
  exports.getOrganisationAccounts = getOrganisationAccounts;
23111
22952
  exports.getOrganisationBusinessProfiles = getOrganisationBusinessProfiles;
23112
22953
  exports.getOrganisationBusinesses = getOrganisationBusinesses;
@@ -23264,8 +23105,6 @@ exports.pathFunderValues = pathFunderValues;
23264
23105
  exports.pathFunderValuesById = pathFunderValuesById;
23265
23106
  exports.pathFuture = pathFuture;
23266
23107
  exports.pathGetAbr = pathGetAbr;
23267
- exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
23268
- exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
23269
23108
  exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
23270
23109
  exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
23271
23110
  exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
@@ -23332,7 +23171,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
23332
23171
  exports.pathResetTerminal = pathResetTerminal;
23333
23172
  exports.pathResumeComplexVerification = pathResumeComplexVerification;
23334
23173
  exports.pathScanClaimFile = pathScanClaimFile;
23335
- exports.pathScanFile = pathScanFile;
23336
23174
  exports.pathSendReceipt = pathSendReceipt;
23337
23175
  exports.pathSendWorkerMessage = pathSendWorkerMessage;
23338
23176
  exports.pathSignUp = pathSignUp;
@@ -23406,7 +23244,6 @@ exports.saveDraft = saveDraft;
23406
23244
  exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
23407
23245
  exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
23408
23246
  exports.scanClaimFile = scanClaimFile;
23409
- exports.scanFile = scanFile;
23410
23247
  exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
23411
23248
  exports.sdk = sdkClient;
23412
23249
  exports.sdkClient = sdkClient;
@@ -23499,7 +23336,6 @@ exports.updateService = updateService;
23499
23336
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23500
23337
  exports.updateTerminal = updateTerminal;
23501
23338
  exports.updateTransaction = updateTransaction;
23502
- exports.uploadAttachmentToS3 = uploadAttachmentToS3;
23503
23339
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23504
23340
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23505
23341
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
@@ -23527,5 +23363,6 @@ exports.verifyPartnerAccount = verifyPartnerAccount;
23527
23363
  exports.verifyPracticeKyc = verifyPracticeKyc;
23528
23364
  exports.verifyStaffMember = verifyStaffMember;
23529
23365
  exports.versions = versions;
23366
+ exports.voidPayment = voidPayment;
23530
23367
  exports.workers = workers;
23531
23368
  exports.workflowExceptions = workflowExceptions;