@medipass/web-sdk 11.26.1 → 11.27.1-fix-eclipse-endpoints.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/index.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.js +1 -1
  8. package/lib/resources/auth.js +1 -1
  9. package/lib/resources/bulk-uploads.js +1 -1
  10. package/lib/resources/business-profiles.js +1 -1
  11. package/lib/resources/businesses.js +1 -1
  12. package/lib/resources/claim-items.js +1 -1
  13. package/lib/resources/devices.js +1 -1
  14. package/lib/resources/doc-accounts.js +1 -1
  15. package/lib/resources/documents.js +1 -1
  16. package/lib/resources/emails.js +1 -1
  17. package/lib/resources/form-application-templates.js +1 -1
  18. package/lib/resources/form-applications.js +1 -1
  19. package/lib/resources/forms.js +1 -1
  20. package/lib/resources/funder-settings.js +1 -1
  21. package/lib/resources/funders.js +1 -1
  22. package/lib/resources/futures.js +1 -1
  23. package/lib/resources/health-fund-accounts.js +1 -1
  24. package/lib/resources/health-fund-settings.js +1 -1
  25. package/lib/resources/healthfunds.js +4 -1
  26. package/lib/resources/healthfunds.js.flow +35 -0
  27. package/lib/resources/icditems.js +1 -1
  28. package/lib/resources/invoice-scans.js +1 -1
  29. package/lib/resources/jhcs.js +1 -1
  30. package/lib/resources/kyc.js +1 -1
  31. package/lib/resources/logs.js +1 -1
  32. package/lib/resources/members.js +1 -1
  33. package/lib/resources/message-mappings.js +1 -1
  34. package/lib/resources/minions.js +1 -1
  35. package/lib/resources/modalities.js +1 -1
  36. package/lib/resources/notes.js +1 -1
  37. package/lib/resources/onboarding-applications.js +1 -1
  38. package/lib/resources/onboarding-requests.js +1 -1
  39. package/lib/resources/ops.js +1 -1
  40. package/lib/resources/organisations.js +1 -1
  41. package/lib/resources/partners.js +1 -1
  42. package/lib/resources/patients.js +1 -1
  43. package/lib/resources/payments.js +1 -1
  44. package/lib/resources/pms.js +1 -1
  45. package/lib/resources/practice-profiles.js +1 -1
  46. package/lib/resources/practice-types.js +1 -1
  47. package/lib/resources/practices.js +1 -1
  48. package/lib/resources/products.js +1 -1
  49. package/lib/resources/professional-categories.js +1 -1
  50. package/lib/resources/provider-number-types.js +1 -1
  51. package/lib/resources/provider-registration-types.js +1 -1
  52. package/lib/resources/provider-requests.js +1 -1
  53. package/lib/resources/provider-types.js +1 -1
  54. package/lib/resources/ref-sources.js +1 -1
  55. package/lib/resources/risk.js +1 -1
  56. package/lib/resources/rnas.js +1 -1
  57. package/lib/resources/roles.js +1 -1
  58. package/lib/resources/self-checkout-sessions.js +1 -1
  59. package/lib/resources/services.js +1 -1
  60. package/lib/resources/settlements.js +1 -1
  61. package/lib/resources/sign-up.js +1 -1
  62. package/lib/resources/specialties.js +1 -1
  63. package/lib/resources/staff-profiles.js +1 -1
  64. package/lib/resources/staff.js +1 -1
  65. package/lib/resources/statistics.js +1 -1
  66. package/lib/resources/subscriptions.js +1 -1
  67. package/lib/resources/terminals.js +1 -1
  68. package/lib/resources/transaction-export.js +1 -1
  69. package/lib/resources/transactions.js +4 -2
  70. package/lib/resources/transactions.js.flow +28 -4
  71. package/lib/resources/triggers.js +1 -1
  72. package/lib/resources/vendors.js +1 -1
  73. package/lib/resources/verify.js +1 -1
  74. package/lib/resources/workers.js +1 -1
  75. package/lib/resources/workflow-exceptions.js +1 -1
  76. package/lib/services/aws.js +1 -1
  77. package/lib/services/version.js +1 -1
  78. package/lib/{staff-4bd0a21c.js → staff-ad88104f.js} +262 -62
  79. package/lib/utils/application.js +1 -1
  80. package/lib/utils/professions.js +1 -1
  81. package/lib/utils/request.js +1 -1
  82. package/lib/utils/staff.js +1 -1
  83. package/package.json +3 -3
@@ -7001,6 +7001,42 @@ var getOrganisationHealthFunds = /*#__PURE__*/function () {
7001
7001
  return _ref4.apply(this, arguments);
7002
7002
  };
7003
7003
  }();
7004
+ /**
7005
+ * Create health fund
7006
+ *
7007
+ * @param {Object} body - Health fund details
7008
+ * @param {Object} opts - Additional options
7009
+ */
7010
+
7011
+ var createHealthFund = /*#__PURE__*/function () {
7012
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(body, opts) {
7013
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
7014
+ while (1) {
7015
+ switch (_context5.prev = _context5.next) {
7016
+ case 0:
7017
+ if (opts === void 0) {
7018
+ opts = {};
7019
+ }
7020
+
7021
+ return _context5.abrupt("return", request(_objectSpread$o({}, opts, {
7022
+ path: PATH__HEALTH_FUNDS
7023
+ }), {
7024
+ method: 'post',
7025
+ data: body
7026
+ }));
7027
+
7028
+ case 2:
7029
+ case "end":
7030
+ return _context5.stop();
7031
+ }
7032
+ }
7033
+ }, _callee5);
7034
+ }));
7035
+
7036
+ return function createHealthFund(_x10, _x11) {
7037
+ return _ref5.apply(this, arguments);
7038
+ };
7039
+ }();
7004
7040
  /**
7005
7041
  * Get health fund
7006
7042
  * @param {String} healthFundId - Health fund ID
@@ -7008,10 +7044,10 @@ var getOrganisationHealthFunds = /*#__PURE__*/function () {
7008
7044
  */
7009
7045
 
7010
7046
  var getHealthFund = /*#__PURE__*/function () {
7011
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(healthFundId, opts) {
7012
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
7047
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(healthFundId, opts) {
7048
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
7013
7049
  while (1) {
7014
- switch (_context5.prev = _context5.next) {
7050
+ switch (_context6.prev = _context6.next) {
7015
7051
  case 0:
7016
7052
  if (opts === void 0) {
7017
7053
  opts = {};
@@ -7020,7 +7056,7 @@ var getHealthFund = /*#__PURE__*/function () {
7020
7056
  doesParamExist.default({
7021
7057
  healthFundId: healthFundId
7022
7058
  }, opts.hyperMediaEndpoint);
7023
- return _context5.abrupt("return", request(_objectSpread$o({}, opts, {
7059
+ return _context6.abrupt("return", request(_objectSpread$o({}, opts, {
7024
7060
  path: pathHealthFund(healthFundId)
7025
7061
  }), {
7026
7062
  method: 'get'
@@ -7028,14 +7064,90 @@ var getHealthFund = /*#__PURE__*/function () {
7028
7064
 
7029
7065
  case 3:
7030
7066
  case "end":
7031
- return _context5.stop();
7067
+ return _context6.stop();
7032
7068
  }
7033
7069
  }
7034
- }, _callee5);
7070
+ }, _callee6);
7035
7071
  }));
7036
7072
 
7037
- return function getHealthFund(_x10, _x11) {
7038
- return _ref5.apply(this, arguments);
7073
+ return function getHealthFund(_x12, _x13) {
7074
+ return _ref6.apply(this, arguments);
7075
+ };
7076
+ }();
7077
+ /**
7078
+ * Update health fund
7079
+ * @param {Object} healthFundId - Health fund ID
7080
+ * @param {Object} body - Health fund details
7081
+ * @param {Object} opts - Additional options
7082
+ */
7083
+
7084
+ var updateHealthFund = /*#__PURE__*/function () {
7085
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(healthFundId, body, opts) {
7086
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
7087
+ while (1) {
7088
+ switch (_context7.prev = _context7.next) {
7089
+ case 0:
7090
+ if (opts === void 0) {
7091
+ opts = {};
7092
+ }
7093
+
7094
+ doesParamExist.default({
7095
+ healthFundId: healthFundId
7096
+ }, opts.hyperMediaEndpoint);
7097
+ return _context7.abrupt("return", request(_objectSpread$o({}, opts, {
7098
+ path: pathHealthFund(healthFundId)
7099
+ }), {
7100
+ method: 'put',
7101
+ data: body
7102
+ }));
7103
+
7104
+ case 3:
7105
+ case "end":
7106
+ return _context7.stop();
7107
+ }
7108
+ }
7109
+ }, _callee7);
7110
+ }));
7111
+
7112
+ return function updateHealthFund(_x14, _x15, _x16) {
7113
+ return _ref7.apply(this, arguments);
7114
+ };
7115
+ }();
7116
+ /**
7117
+ * Delete health fund
7118
+ * @param {Object} healthFundId - Health fund ID
7119
+ * @param {Object} opts - Additional options
7120
+ */
7121
+
7122
+ var deleteHealthFund = /*#__PURE__*/function () {
7123
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(healthFundId, opts) {
7124
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
7125
+ while (1) {
7126
+ switch (_context8.prev = _context8.next) {
7127
+ case 0:
7128
+ if (opts === void 0) {
7129
+ opts = {};
7130
+ }
7131
+
7132
+ doesParamExist.default({
7133
+ healthFundId: healthFundId
7134
+ }, opts.hyperMediaEndpoint);
7135
+ return _context8.abrupt("return", request(_objectSpread$o({}, opts, {
7136
+ path: pathHealthFund(healthFundId)
7137
+ }), {
7138
+ method: 'delete'
7139
+ }));
7140
+
7141
+ case 3:
7142
+ case "end":
7143
+ return _context8.stop();
7144
+ }
7145
+ }
7146
+ }, _callee8);
7147
+ }));
7148
+
7149
+ return function deleteHealthFund(_x17, _x18) {
7150
+ return _ref8.apply(this, arguments);
7039
7151
  };
7040
7152
  }();
7041
7153
  /**
@@ -7044,52 +7156,52 @@ var getHealthFund = /*#__PURE__*/function () {
7044
7156
  */
7045
7157
 
7046
7158
  var getMedicareHealthFund = /*#__PURE__*/function () {
7047
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(opts) {
7159
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(opts) {
7048
7160
  var funders, medicareFunder, healthFunds;
7049
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
7161
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
7050
7162
  while (1) {
7051
- switch (_context6.prev = _context6.next) {
7163
+ switch (_context9.prev = _context9.next) {
7052
7164
  case 0:
7053
7165
  if (opts === void 0) {
7054
7166
  opts = {};
7055
7167
  }
7056
7168
 
7057
- _context6.next = 3;
7169
+ _context9.next = 3;
7058
7170
  return sdk.funders.getFunders(opts);
7059
7171
 
7060
7172
  case 3:
7061
- funders = _context6.sent;
7173
+ funders = _context9.sent;
7062
7174
  medicareFunder = funders.find(function (funder) {
7063
7175
  return funder.code === constants.FUNDERS.MEDICARE;
7064
7176
  });
7065
7177
 
7066
7178
  if (medicareFunder) {
7067
- _context6.next = 7;
7179
+ _context9.next = 7;
7068
7180
  break;
7069
7181
  }
7070
7182
 
7071
- return _context6.abrupt("return", null);
7183
+ return _context9.abrupt("return", null);
7072
7184
 
7073
7185
  case 7:
7074
- _context6.next = 9;
7186
+ _context9.next = 9;
7075
7187
  return getHealthFunds({
7076
7188
  funderId: medicareFunder._id
7077
7189
  }, opts);
7078
7190
 
7079
7191
  case 9:
7080
- healthFunds = _context6.sent;
7081
- return _context6.abrupt("return", healthFunds[0]);
7192
+ healthFunds = _context9.sent;
7193
+ return _context9.abrupt("return", healthFunds[0]);
7082
7194
 
7083
7195
  case 11:
7084
7196
  case "end":
7085
- return _context6.stop();
7197
+ return _context9.stop();
7086
7198
  }
7087
7199
  }
7088
- }, _callee6);
7200
+ }, _callee9);
7089
7201
  }));
7090
7202
 
7091
- return function getMedicareHealthFund(_x12) {
7092
- return _ref6.apply(this, arguments);
7203
+ return function getMedicareHealthFund(_x19) {
7204
+ return _ref9.apply(this, arguments);
7093
7205
  };
7094
7206
  }();
7095
7207
  /**
@@ -7100,10 +7212,10 @@ var getMedicareHealthFund = /*#__PURE__*/function () {
7100
7212
  */
7101
7213
 
7102
7214
  var verifyMember = /*#__PURE__*/function () {
7103
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(healthFundId, body, opts) {
7104
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
7215
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(healthFundId, body, opts) {
7216
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
7105
7217
  while (1) {
7106
- switch (_context7.prev = _context7.next) {
7218
+ switch (_context10.prev = _context10.next) {
7107
7219
  case 0:
7108
7220
  if (opts === void 0) {
7109
7221
  opts = {};
@@ -7113,7 +7225,7 @@ var verifyMember = /*#__PURE__*/function () {
7113
7225
  healthFundId: healthFundId,
7114
7226
  body: body
7115
7227
  }, opts.hyperMediaEndpoint);
7116
- return _context7.abrupt("return", request(_objectSpread$o({}, opts, {
7228
+ return _context10.abrupt("return", request(_objectSpread$o({}, opts, {
7117
7229
  path: "" + pathHealthFundVerifyMember(healthFundId)
7118
7230
  }), {
7119
7231
  method: 'post',
@@ -7123,14 +7235,14 @@ var verifyMember = /*#__PURE__*/function () {
7123
7235
 
7124
7236
  case 3:
7125
7237
  case "end":
7126
- return _context7.stop();
7238
+ return _context10.stop();
7127
7239
  }
7128
7240
  }
7129
- }, _callee7);
7241
+ }, _callee10);
7130
7242
  }));
7131
7243
 
7132
- return function verifyMember(_x13, _x14, _x15) {
7133
- return _ref7.apply(this, arguments);
7244
+ return function verifyMember(_x20, _x21, _x22) {
7245
+ return _ref10.apply(this, arguments);
7134
7246
  };
7135
7247
  }();
7136
7248
 
@@ -7140,7 +7252,10 @@ var healthfunds = /*#__PURE__*/Object.freeze({
7140
7252
  getBusinessHealthFunds: getBusinessHealthFunds,
7141
7253
  getHealthFunds: getHealthFunds,
7142
7254
  getOrganisationHealthFunds: getOrganisationHealthFunds,
7255
+ createHealthFund: createHealthFund,
7143
7256
  getHealthFund: getHealthFund,
7257
+ updateHealthFund: updateHealthFund,
7258
+ deleteHealthFund: deleteHealthFund,
7144
7259
  getMedicareHealthFund: getMedicareHealthFund,
7145
7260
  verifyMember: verifyMember
7146
7261
  });
@@ -16970,8 +17085,16 @@ var pathTransactionPaymentRefund = function pathTransactionPaymentRefund(transac
16970
17085
  return "/transactions/" + transactionId + "/payments/" + paymentId + "/refunds";
16971
17086
  };
16972
17087
 
16973
- var pathCreateEclipseInvoice = function pathCreateEclipseInvoice(businessId) {
16974
- return "/transactions/invoices/eclipse";
17088
+ var pathCreateEclipseInPatientInvoice = function pathCreateEclipseInPatientInvoice() {
17089
+ return "/transactions/invoices/eclipse/imcw";
17090
+ };
17091
+
17092
+ var pathCreateEclipseOverseasInvoice = function pathCreateEclipseOverseasInvoice() {
17093
+ return "/transactions/invoices/eclipse/ovsw";
17094
+ };
17095
+
17096
+ var pathCreateEclipseOnlineEligibilityCheckInvoice = function pathCreateEclipseOnlineEligibilityCheckInvoice() {
17097
+ return "/transactions/invoices/eclipse/oecw";
16975
17098
  };
16976
17099
 
16977
17100
  var pathReconcileClaim = function pathReconcileClaim(transactionId, claimId) {
@@ -19296,12 +19419,12 @@ var refundPayment = /*#__PURE__*/function () {
19296
19419
  };
19297
19420
  }();
19298
19421
  /**
19299
- * Create ECLIPSE invoice
19422
+ * Create ECLIPSE invoice - In Patient
19300
19423
  * @param {Object} body - Request body
19301
19424
  * @param {Object} opts - Additional options
19302
19425
  */
19303
19426
 
19304
- var createEclipseInvoice = /*#__PURE__*/function () {
19427
+ var createEclipseInPatientInvoice = /*#__PURE__*/function () {
19305
19428
  var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(body, opts) {
19306
19429
  return _regeneratorRuntime.wrap(function _callee59$(_context59) {
19307
19430
  while (1) {
@@ -19312,7 +19435,7 @@ var createEclipseInvoice = /*#__PURE__*/function () {
19312
19435
  }
19313
19436
 
19314
19437
  return _context59.abrupt("return", request(_objectSpread$12({}, opts, {
19315
- path: pathCreateEclipseInvoice()
19438
+ path: pathCreateEclipseInPatientInvoice()
19316
19439
  }), {
19317
19440
  method: 'post',
19318
19441
  data: body
@@ -19326,10 +19449,80 @@ var createEclipseInvoice = /*#__PURE__*/function () {
19326
19449
  }, _callee59);
19327
19450
  }));
19328
19451
 
19329
- return function createEclipseInvoice(_x190, _x191) {
19452
+ return function createEclipseInPatientInvoice(_x190, _x191) {
19330
19453
  return _ref59.apply(this, arguments);
19331
19454
  };
19332
19455
  }();
19456
+ /**
19457
+ * Create ECLIPSE invoice - Overseas
19458
+ * @param {Object} body - Request body
19459
+ * @param {Object} opts - Additional options
19460
+ */
19461
+
19462
+ var createEclipseOverseasInvoice = /*#__PURE__*/function () {
19463
+ var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(body, opts) {
19464
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
19465
+ while (1) {
19466
+ switch (_context60.prev = _context60.next) {
19467
+ case 0:
19468
+ if (opts === void 0) {
19469
+ opts = {};
19470
+ }
19471
+
19472
+ return _context60.abrupt("return", request(_objectSpread$12({}, opts, {
19473
+ path: pathCreateEclipseOverseasInvoice()
19474
+ }), {
19475
+ method: 'post',
19476
+ data: body
19477
+ }));
19478
+
19479
+ case 2:
19480
+ case "end":
19481
+ return _context60.stop();
19482
+ }
19483
+ }
19484
+ }, _callee60);
19485
+ }));
19486
+
19487
+ return function createEclipseOverseasInvoice(_x192, _x193) {
19488
+ return _ref60.apply(this, arguments);
19489
+ };
19490
+ }();
19491
+ /**
19492
+ * Create ECLIPSE invoice - Online Eligibility Check
19493
+ * @param {Object} body - Request body
19494
+ * @param {Object} opts - Additional options
19495
+ */
19496
+
19497
+ var createEclipseOnlineEligibilityCheckInvoice = /*#__PURE__*/function () {
19498
+ var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(body, opts) {
19499
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
19500
+ while (1) {
19501
+ switch (_context61.prev = _context61.next) {
19502
+ case 0:
19503
+ if (opts === void 0) {
19504
+ opts = {};
19505
+ }
19506
+
19507
+ return _context61.abrupt("return", request(_objectSpread$12({}, opts, {
19508
+ path: pathCreateEclipseOnlineEligibilityCheckInvoice()
19509
+ }), {
19510
+ method: 'post',
19511
+ data: body
19512
+ }));
19513
+
19514
+ case 2:
19515
+ case "end":
19516
+ return _context61.stop();
19517
+ }
19518
+ }
19519
+ }, _callee61);
19520
+ }));
19521
+
19522
+ return function createEclipseOnlineEligibilityCheckInvoice(_x194, _x195) {
19523
+ return _ref61.apply(this, arguments);
19524
+ };
19525
+ }();
19333
19526
  /**
19334
19527
  * Get business ECLIPSE transaction payment report
19335
19528
  * @param {String} businessId - Business ID
@@ -19338,10 +19531,10 @@ var createEclipseInvoice = /*#__PURE__*/function () {
19338
19531
  */
19339
19532
 
19340
19533
  var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19341
- var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(businessId, transactionId, query, opts) {
19342
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
19534
+ var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(businessId, transactionId, query, opts) {
19535
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
19343
19536
  while (1) {
19344
- switch (_context60.prev = _context60.next) {
19537
+ switch (_context62.prev = _context62.next) {
19345
19538
  case 0:
19346
19539
  if (opts === void 0) {
19347
19540
  opts = {};
@@ -19351,7 +19544,7 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19351
19544
  businessId: businessId,
19352
19545
  transactionId: transactionId
19353
19546
  }, opts.hyperMediaEndpoint);
19354
- return _context60.abrupt("return", request(_objectSpread$12({}, opts, {
19547
+ return _context62.abrupt("return", request(_objectSpread$12({}, opts, {
19355
19548
  path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
19356
19549
  }), {
19357
19550
  method: 'get',
@@ -19360,14 +19553,14 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19360
19553
 
19361
19554
  case 3:
19362
19555
  case "end":
19363
- return _context60.stop();
19556
+ return _context62.stop();
19364
19557
  }
19365
19558
  }
19366
- }, _callee60);
19559
+ }, _callee62);
19367
19560
  }));
19368
19561
 
19369
- return function getBusinessEclipseTransactionPaymentReport(_x192, _x193, _x194, _x195) {
19370
- return _ref60.apply(this, arguments);
19562
+ return function getBusinessEclipseTransactionPaymentReport(_x196, _x197, _x198, _x199) {
19563
+ return _ref62.apply(this, arguments);
19371
19564
  };
19372
19565
  }();
19373
19566
  /**
@@ -19378,10 +19571,10 @@ var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
19378
19571
  */
19379
19572
 
19380
19573
  var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19381
- var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(businessId, transactionId, query, opts) {
19382
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
19574
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(businessId, transactionId, query, opts) {
19575
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
19383
19576
  while (1) {
19384
- switch (_context61.prev = _context61.next) {
19577
+ switch (_context63.prev = _context63.next) {
19385
19578
  case 0:
19386
19579
  if (opts === void 0) {
19387
19580
  opts = {};
@@ -19391,7 +19584,7 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19391
19584
  businessId: businessId,
19392
19585
  transactionId: transactionId
19393
19586
  }, opts.hyperMediaEndpoint);
19394
- return _context61.abrupt("return", request(_objectSpread$12({}, opts, {
19587
+ return _context63.abrupt("return", request(_objectSpread$12({}, opts, {
19395
19588
  path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
19396
19589
  }), {
19397
19590
  method: 'get',
@@ -19400,14 +19593,14 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19400
19593
 
19401
19594
  case 3:
19402
19595
  case "end":
19403
- return _context61.stop();
19596
+ return _context63.stop();
19404
19597
  }
19405
19598
  }
19406
- }, _callee61);
19599
+ }, _callee63);
19407
19600
  }));
19408
19601
 
19409
- return function getBusinessEclipseTransactionProcessingReport(_x196, _x197, _x198, _x199) {
19410
- return _ref61.apply(this, arguments);
19602
+ return function getBusinessEclipseTransactionProcessingReport(_x200, _x201, _x202, _x203) {
19603
+ return _ref63.apply(this, arguments);
19411
19604
  };
19412
19605
  }();
19413
19606
  /**
@@ -19418,10 +19611,10 @@ var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
19418
19611
  */
19419
19612
 
19420
19613
  var reconcileClaim = /*#__PURE__*/function () {
19421
- var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(transactionId, claimId, opts) {
19422
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
19614
+ var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(transactionId, claimId, opts) {
19615
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
19423
19616
  while (1) {
19424
- switch (_context62.prev = _context62.next) {
19617
+ switch (_context64.prev = _context64.next) {
19425
19618
  case 0:
19426
19619
  if (opts === void 0) {
19427
19620
  opts = {};
@@ -19430,7 +19623,7 @@ var reconcileClaim = /*#__PURE__*/function () {
19430
19623
  doesParamExist.default({
19431
19624
  transactionId: transactionId
19432
19625
  }, opts.hyperMediaEndpoint);
19433
- return _context62.abrupt("return", request(_objectSpread$12({}, opts, {
19626
+ return _context64.abrupt("return", request(_objectSpread$12({}, opts, {
19434
19627
  path: pathReconcileClaim(transactionId, claimId)
19435
19628
  }), {
19436
19629
  method: 'post'
@@ -19438,14 +19631,14 @@ var reconcileClaim = /*#__PURE__*/function () {
19438
19631
 
19439
19632
  case 3:
19440
19633
  case "end":
19441
- return _context62.stop();
19634
+ return _context64.stop();
19442
19635
  }
19443
19636
  }
19444
- }, _callee62);
19637
+ }, _callee64);
19445
19638
  }));
19446
19639
 
19447
- return function reconcileClaim(_x200, _x201, _x202) {
19448
- return _ref62.apply(this, arguments);
19640
+ return function reconcileClaim(_x204, _x205, _x206) {
19641
+ return _ref64.apply(this, arguments);
19449
19642
  };
19450
19643
  }();
19451
19644
 
@@ -19509,7 +19702,9 @@ var transactions = /*#__PURE__*/Object.freeze({
19509
19702
  terminalInput: terminalInput,
19510
19703
  terminalCancellation: terminalCancellation,
19511
19704
  refundPayment: refundPayment,
19512
- createEclipseInvoice: createEclipseInvoice,
19705
+ createEclipseInPatientInvoice: createEclipseInPatientInvoice,
19706
+ createEclipseOverseasInvoice: createEclipseOverseasInvoice,
19707
+ createEclipseOnlineEligibilityCheckInvoice: createEclipseOnlineEligibilityCheckInvoice,
19513
19708
  getBusinessEclipseTransactionPaymentReport: getBusinessEclipseTransactionPaymentReport,
19514
19709
  getBusinessEclipseTransactionProcessingReport: getBusinessEclipseTransactionProcessingReport,
19515
19710
  reconcileClaim: reconcileClaim
@@ -21508,8 +21703,11 @@ exports.createBusinessSubscription = createBusinessSubscription;
21508
21703
  exports.createBusinessTransactionQuote = createBusinessTransactionQuote;
21509
21704
  exports.createConsumerAccount = createConsumerAccount;
21510
21705
  exports.createDocAccount = createDocAccount;
21511
- exports.createEclipseInvoice = createEclipseInvoice;
21706
+ exports.createEclipseInPatientInvoice = createEclipseInPatientInvoice;
21707
+ exports.createEclipseOnlineEligibilityCheckInvoice = createEclipseOnlineEligibilityCheckInvoice;
21708
+ exports.createEclipseOverseasInvoice = createEclipseOverseasInvoice;
21512
21709
  exports.createEmailPackage = createEmailPackage;
21710
+ exports.createHealthFund = createHealthFund;
21513
21711
  exports.createHealthFundDocumentNote = createHealthFundDocumentNote;
21514
21712
  exports.createHealthFundForm = createHealthFundForm;
21515
21713
  exports.createHealthFundRNA = createHealthFundRNA;
@@ -21554,6 +21752,7 @@ exports.deleteBusinessService = deleteBusinessService;
21554
21752
  exports.deleteBusinessStaffMember = deleteBusinessStaffMember;
21555
21753
  exports.deleteBusinessStaffMemberEmail = deleteBusinessStaffMemberEmail;
21556
21754
  exports.deleteDocAccount = deleteDocAccount;
21755
+ exports.deleteHealthFund = deleteHealthFund;
21557
21756
  exports.deleteHealthFundDocumentTag = deleteHealthFundDocumentTag;
21558
21757
  exports.deleteHealthFundForm = deleteHealthFundForm;
21559
21758
  exports.deleteHealthFundNote = deleteHealthFundNote;
@@ -22045,6 +22244,7 @@ exports.updateBusinessSubscription = updateBusinessSubscription;
22045
22244
  exports.updateClaim = updateClaim;
22046
22245
  exports.updateDocAccount = updateDocAccount;
22047
22246
  exports.updateEmailPackage = updateEmailPackage;
22247
+ exports.updateHealthFund = updateHealthFund;
22048
22248
  exports.updateHealthFundForm = updateHealthFundForm;
22049
22249
  exports.updateHealthFundNote = updateHealthFundNote;
22050
22250
  exports.updateHealthFundSetting = updateHealthFundSetting;
@@ -19,7 +19,7 @@ require('./does-param-exist.js');
19
19
  require('@medipass/utils/sentry');
20
20
  require('./get-axios-error.js');
21
21
  require('../storage-4b403caa.js');
22
- var request = require('../staff-4bd0a21c.js');
22
+ var request = require('../staff-ad88104f.js');
23
23
  require('lodash/omitBy');
24
24
  require('lodash/isEmpty');
25
25
  require('store/src/store-engine');
@@ -19,7 +19,7 @@ require('./does-param-exist.js');
19
19
  require('@medipass/utils/sentry');
20
20
  require('./get-axios-error.js');
21
21
  require('../storage-4b403caa.js');
22
- var request = require('../staff-4bd0a21c.js');
22
+ var request = require('../staff-ad88104f.js');
23
23
  require('lodash/omitBy');
24
24
  require('lodash/isEmpty');
25
25
  require('store/src/store-engine');
@@ -19,7 +19,7 @@ require('./does-param-exist.js');
19
19
  require('@medipass/utils/sentry');
20
20
  require('./get-axios-error.js');
21
21
  require('../storage-4b403caa.js');
22
- var request = require('../staff-4bd0a21c.js');
22
+ var request = require('../staff-ad88104f.js');
23
23
  require('lodash/omitBy');
24
24
  require('lodash/isEmpty');
25
25
  require('store/src/store-engine');
@@ -19,7 +19,7 @@ require('./does-param-exist.js');
19
19
  require('@medipass/utils/sentry');
20
20
  require('./get-axios-error.js');
21
21
  require('../storage-4b403caa.js');
22
- var request = require('../staff-4bd0a21c.js');
22
+ var request = require('../staff-ad88104f.js');
23
23
  require('lodash/omitBy');
24
24
  require('lodash/isEmpty');
25
25
  require('store/src/store-engine');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.26.1",
3
+ "version": "11.27.1-fix-eclipse-endpoints.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -43,11 +43,11 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/plugin-transform-runtime": "7.8.3",
46
- "@medipass/utils": "^11.61.0",
46
+ "@medipass/utils": "^11.61.1-fix-eclipse-endpoints.0",
47
47
  "axios-mock-adapter": "1.19.0",
48
48
  "flow-copy-source": "2.0.2",
49
49
  "query-string": "7.0.0",
50
50
  "rimraf": "^2.6.2"
51
51
  },
52
- "gitHead": "26152611e06943bb76a35c4a29cd8d21dda19607"
52
+ "gitHead": "be4b52135e04cc519cb2148672563f831456ec73"
53
53
  }