@medipass/web-sdk 11.51.1-feature-healthpoint-upload-endpoints.0 → 11.51.1-feature-add-billing-history-table-functions.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 (92) 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 +1 -35
  8. package/lib/resources/attachments.js +1 -7
  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 +15 -0
  15. package/lib/resources/businesses.js +3 -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.js +1 -1
  76. package/lib/resources/triggers.js +1 -1
  77. package/lib/resources/vendors.js +1 -1
  78. package/lib/resources/verify.js +1 -1
  79. package/lib/resources/workers.js +1 -1
  80. package/lib/resources/workflow-exceptions.js +1 -1
  81. package/lib/services/aws.d.ts +0 -10
  82. package/lib/services/aws.js +1 -2
  83. package/lib/services/version.js +1 -1
  84. package/lib/{staff-6bb8e3fc.js → staff-75ea1b6f.js} +84 -215
  85. package/lib/types/index.d.ts +1 -3
  86. package/lib/utils/application.js +1 -1
  87. package/lib/utils/professions.js +1 -1
  88. package/lib/utils/request.js +1 -1
  89. package/lib/utils/staff.js +1 -1
  90. package/package.json +6 -5
  91. package/lib/types/virus-scan.d.ts +0 -13
  92. 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; }
@@ -3739,87 +3656,80 @@ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if
3739
3656
 
3740
3657
  function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3741
3658
  var PATH__BUSINESSES = '/businesses';
3742
- var PATH__MY_BUSINESSES = '/businesses/me'; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3659
+ var PATH__MY_BUSINESSES = '/businesses/me';
3743
3660
 
3744
3661
  var pathBusiness = function pathBusiness(businessId) {
3745
3662
  return "/businesses/" + businessId;
3746
- }; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
3747
-
3663
+ };
3748
3664
 
3749
3665
  var pathAccountsBusinesses = function pathAccountsBusinesses(accountId) {
3750
3666
  return "/accounts/" + accountId + "/businesses";
3751
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3752
-
3667
+ };
3753
3668
 
3754
3669
  var pathBusinessOnboardingQuestions = function pathBusinessOnboardingQuestions(businessId) {
3755
3670
  return "/businesses/" + businessId + "/onboarding/emailquestions";
3756
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3757
-
3671
+ };
3758
3672
 
3759
3673
  var pathBusinessSendEmails = function pathBusinessSendEmails(businessId) {
3760
3674
  return "/businesses/" + businessId + "/sendemail";
3761
- }; // @ts-expect-error TS(7006): Parameter 'organisationId' implicitly has an 'any'... Remove this comment to see the full error message
3762
-
3675
+ };
3763
3676
 
3764
3677
  var pathOrganisationBusiness = function pathOrganisationBusiness(organisationId) {
3765
3678
  return "/organisations/" + organisationId + "/businesses";
3766
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3767
-
3679
+ };
3768
3680
 
3769
3681
  var pathVerifyMedicare = function pathVerifyMedicare(businessId) {
3770
3682
  return "/businesses/" + businessId + "/medicare/verify";
3771
3683
  }; // This can be removed once we migrate to the new medicare service
3772
- // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3773
3684
 
3774
3685
 
3775
3686
  var oldPathVerifyDVA = function oldPathVerifyDVA(businessId) {
3776
3687
  return "/businesses/" + businessId + "/dva/pvv/verify";
3777
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3778
-
3688
+ };
3779
3689
 
3780
3690
  var pathVerifyDVA = function pathVerifyDVA(businessId) {
3781
3691
  return "/businesses/" + businessId + "/dva/verify";
3782
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3783
-
3692
+ };
3784
3693
 
3785
3694
  var pathVerifyIcare = function pathVerifyIcare(businessId) {
3786
3695
  return "/businesses/" + businessId + "/icare/verify";
3787
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3788
-
3696
+ };
3789
3697
 
3790
3698
  var pathVerifyComcare = function pathVerifyComcare(businessId, staffId, providerSetItemId) {
3791
3699
  return "/businesses/" + businessId + "/staff/" + staffId + "/providersetitems/" + providerSetItemId + "/comcare/verify";
3792
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3793
-
3700
+ };
3794
3701
 
3795
3702
  var pathCreateSupportNote = function pathCreateSupportNote(businessId) {
3796
3703
  return "/businesses/" + businessId + "/supportnotes";
3797
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3798
-
3704
+ };
3799
3705
 
3800
3706
  var pathBsbDetails = function pathBsbDetails(businessId) {
3801
3707
  return "/businesses/" + businessId + "/bsbs";
3802
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3803
-
3708
+ };
3804
3709
 
3805
3710
  var pathDisableBusiness = function pathDisableBusiness(businessId) {
3806
3711
  return "/businesses/" + businessId + "/disable";
3807
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3808
-
3712
+ };
3809
3713
 
3810
3714
  var pathEnableBusiness = function pathEnableBusiness(businessId) {
3811
3715
  return "/businesses/" + businessId + "/reenable";
3812
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3813
-
3716
+ };
3814
3717
 
3815
3718
  var pathSuspendBusiness = function pathSuspendBusiness(businessId) {
3816
3719
  return "/businesses/" + businessId + "/suspend";
3817
- }; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
3818
-
3720
+ };
3819
3721
 
3820
3722
  var pathUnsuspendBusiness = function pathUnsuspendBusiness(businessId) {
3821
3723
  return "/businesses/" + businessId + "/unsuspend";
3822
3724
  };
3725
+
3726
+ var pathGetBusinessBillingHistoryRecords = function pathGetBusinessBillingHistoryRecords(businessId) {
3727
+ return "/businesses/" + businessId + "/billinghistories";
3728
+ };
3729
+
3730
+ var pathGetBusinessBillingHistoryRecord = function pathGetBusinessBillingHistoryRecord(businessId, billingHistoryId) {
3731
+ return "/businesses/" + businessId + "/billinghistories/" + billingHistoryId;
3732
+ };
3823
3733
  /**
3824
3734
  * Create businesses
3825
3735
  * @param {Object} body - Request body
@@ -3973,6 +3883,60 @@ var getBusiness = function getBusiness(businessId, query, opts) {
3973
3883
  params: query
3974
3884
  });
3975
3885
  };
3886
+ /**
3887
+ * Get business billing history
3888
+ * @param {String} businessId - Business ID
3889
+ * @param {Object} query - Query parameters
3890
+ * @param {Object} opts - Additional options
3891
+ */
3892
+
3893
+ var getBusinessBillingHistoryRecords = function getBusinessBillingHistoryRecords(businessId, query, opts) {
3894
+ if (query === void 0) {
3895
+ query = {};
3896
+ }
3897
+
3898
+ if (opts === void 0) {
3899
+ opts = {};
3900
+ }
3901
+
3902
+ doesParamExist.default({
3903
+ businessId: businessId
3904
+ }, opts.hyperMediaEndpoint);
3905
+ return request(_objectSpread$e({}, opts, {
3906
+ path: pathGetBusinessBillingHistoryRecords(businessId)
3907
+ }), {
3908
+ method: 'get',
3909
+ params: query
3910
+ });
3911
+ };
3912
+ /**
3913
+ * Get a single business billing record
3914
+ * @param {String} businessId - Business ID
3915
+ * @param {String} billingHistoryId - Billing ID
3916
+ * @param {Object} query - Query parameters
3917
+ * @param {Object} opts - Additional options
3918
+ */
3919
+
3920
+ var getBusinessBillingHistoryRecord = function getBusinessBillingHistoryRecord(businessId, billingHistoryId, query, opts) {
3921
+ if (query === void 0) {
3922
+ query = {};
3923
+ }
3924
+
3925
+ if (opts === void 0) {
3926
+ opts = {};
3927
+ }
3928
+
3929
+ doesParamExist.default({
3930
+ businessId: businessId,
3931
+ billingHistoryId: billingHistoryId
3932
+ }, opts.hyperMediaEndpoint);
3933
+ return request(_objectSpread$e({}, opts, {
3934
+ path: pathGetBusinessBillingHistoryRecord(businessId, billingHistoryId)
3935
+ }), {
3936
+ method: 'get',
3937
+ params: query
3938
+ });
3939
+ };
3976
3940
  /**
3977
3941
  * Get businesses
3978
3942
  * @param {Object} query - Query parameters
@@ -4348,6 +4312,8 @@ var businesses = /*#__PURE__*/Object.freeze({
4348
4312
  emailBusinessOnboardingQuestions: emailBusinessOnboardingQuestions,
4349
4313
  enableBusiness: enableBusiness,
4350
4314
  getBusiness: getBusiness,
4315
+ getBusinessBillingHistoryRecords: getBusinessBillingHistoryRecords,
4316
+ getBusinessBillingHistoryRecord: getBusinessBillingHistoryRecord,
4351
4317
  getBusinesses: getBusinesses,
4352
4318
  getMyBusinesses: getMyBusinesses,
4353
4319
  getBusinessPDFs: getBusinessPDFs,
@@ -21425,95 +21391,6 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
21425
21391
  return _ref8.apply(this, arguments);
21426
21392
  };
21427
21393
  }();
21428
- /**
21429
- * Upload attachment to S3
21430
- * @param {String} businessId - Business ID
21431
- * @param {String} healthFundId - Health fund ID
21432
- * @param {File} file - File
21433
- */
21434
-
21435
- var uploadAttachmentToS3 = /*#__PURE__*/function () {
21436
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, healthFundId, file, opts) {
21437
- var awsAxios, _yield$getAttachmentU, signedPost, s3Url, s3SignedUrlId, bodyFormData, key;
21438
-
21439
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
21440
- while (1) {
21441
- switch (_context9.prev = _context9.next) {
21442
- case 0:
21443
- awsAxios = axios.create();
21444
-
21445
- if (businessId) {
21446
- _context9.next = 3;
21447
- break;
21448
- }
21449
-
21450
- throw new paramError.default('businessId');
21451
-
21452
- case 3:
21453
- if (healthFundId) {
21454
- _context9.next = 5;
21455
- break;
21456
- }
21457
-
21458
- throw new paramError.default('healthFundId');
21459
-
21460
- case 5:
21461
- if (file) {
21462
- _context9.next = 7;
21463
- break;
21464
- }
21465
-
21466
- throw new paramError.default('file');
21467
-
21468
- case 7:
21469
- _context9.prev = 7;
21470
- _context9.next = 10;
21471
- return getAttachmentUrl(businessId, {
21472
- contentType: file.type,
21473
- fileName: file.name,
21474
- healthFundId: healthFundId,
21475
- contentLength: file.size
21476
- }, opts);
21477
-
21478
- case 10:
21479
- _yield$getAttachmentU = _context9.sent;
21480
- signedPost = _yield$getAttachmentU.signedPost;
21481
- s3Url = _yield$getAttachmentU.s3Url;
21482
- s3SignedUrlId = _yield$getAttachmentU.s3SignedUrlId;
21483
- // eslint-disable-next-line
21484
- bodyFormData = new FormData();
21485
-
21486
- for (key in signedPost.fields) {
21487
- bodyFormData.append(key, signedPost.fields[key]);
21488
- }
21489
-
21490
- bodyFormData.append('file', file);
21491
- _context9.next = 19;
21492
- return awsAxios.post(signedPost.url, bodyFormData);
21493
-
21494
- case 19:
21495
- return _context9.abrupt("return", {
21496
- s3Url: s3Url,
21497
- s3SignedUrlId: s3SignedUrlId
21498
- });
21499
-
21500
- case 22:
21501
- _context9.prev = 22;
21502
- _context9.t0 = _context9["catch"](7);
21503
- throw _context9.t0;
21504
-
21505
- case 25:
21506
- case "end":
21507
- return _context9.stop();
21508
- }
21509
- }
21510
- }, _callee9, null, [[7, 22]]);
21511
- }));
21512
-
21513
- return function uploadAttachmentToS3(_x30, _x31, _x32, _x33) {
21514
- return _ref9.apply(this, arguments);
21515
- };
21516
- }();
21517
21394
 
21518
21395
  var aws = /*#__PURE__*/Object.freeze({
21519
21396
  __proto__: null,
@@ -21524,8 +21401,7 @@ var aws = /*#__PURE__*/Object.freeze({
21524
21401
  uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
21525
21402
  uploadInvoiceScanToS3: uploadInvoiceScanToS3,
21526
21403
  uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
21527
- uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3,
21528
- uploadAttachmentToS3: uploadAttachmentToS3
21404
+ uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
21529
21405
  });
21530
21406
 
21531
21407
  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; }
@@ -22338,9 +22214,7 @@ function _parseProviderSet() {
22338
22214
  practiceIds = providerSet.map(function (providerData) {
22339
22215
  return providerData.practiceId;
22340
22216
  });
22341
- uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
22342
- return !!practiceId;
22343
- });
22217
+ uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
22344
22218
  practices = [];
22345
22219
  _context.next = 5;
22346
22220
  return Promise.all(uniquePracticeIds.map(function (practiceId) {
@@ -22714,7 +22588,6 @@ exports.getAction = getAction;
22714
22588
  exports.getActions = getActions;
22715
22589
  exports.getApplication = getApplication;
22716
22590
  exports.getApplications = getApplications;
22717
- exports.getAttachmentUrl = getAttachmentUrl;
22718
22591
  exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
22719
22592
  exports.getBsbDetails = getBsbDetails;
22720
22593
  exports.getBulkUpload = getBulkUpload;
@@ -22722,6 +22595,8 @@ exports.getBulkUploadUrl = getBulkUploadUrl;
22722
22595
  exports.getBusinesFunderSettingsById = getBusinesFunderSettingsById;
22723
22596
  exports.getBusiness = getBusiness;
22724
22597
  exports.getBusinessApiKeys = getBusinessApiKeys;
22598
+ exports.getBusinessBillingHistoryRecord = getBusinessBillingHistoryRecord;
22599
+ exports.getBusinessBillingHistoryRecords = getBusinessBillingHistoryRecords;
22725
22600
  exports.getBusinessCbo = getBusinessCbo;
22726
22601
  exports.getBusinessClaimItem = getBusinessClaimItem;
22727
22602
  exports.getBusinessClaimItems = getBusinessClaimItems;
@@ -22783,7 +22658,6 @@ exports.getBusinessProducts = getBusinessProducts;
22783
22658
  exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
22784
22659
  exports.getBusinessRNA = getBusinessRNA;
22785
22660
  exports.getBusinessRNAs = getBusinessRNAs;
22786
- exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
22787
22661
  exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
22788
22662
  exports.getBusinessService = getBusinessService;
22789
22663
  exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
@@ -23033,8 +22907,6 @@ exports.pathFunderValues = pathFunderValues;
23033
22907
  exports.pathFunderValuesById = pathFunderValuesById;
23034
22908
  exports.pathFuture = pathFuture;
23035
22909
  exports.pathGetAbr = pathGetAbr;
23036
- exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
23037
- exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
23038
22910
  exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
23039
22911
  exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
23040
22912
  exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
@@ -23101,7 +22973,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
23101
22973
  exports.pathResetTerminal = pathResetTerminal;
23102
22974
  exports.pathResumeComplexVerification = pathResumeComplexVerification;
23103
22975
  exports.pathScanClaimFile = pathScanClaimFile;
23104
- exports.pathScanFile = pathScanFile;
23105
22976
  exports.pathSendReceipt = pathSendReceipt;
23106
22977
  exports.pathSendWorkerMessage = pathSendWorkerMessage;
23107
22978
  exports.pathSignUp = pathSignUp;
@@ -23175,7 +23046,6 @@ exports.saveDraft = saveDraft;
23175
23046
  exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
23176
23047
  exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
23177
23048
  exports.scanClaimFile = scanClaimFile;
23178
- exports.scanFile = scanFile;
23179
23049
  exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
23180
23050
  exports.sdk = sdkClient;
23181
23051
  exports.sdkClient = sdkClient;
@@ -23268,7 +23138,6 @@ exports.updateService = updateService;
23268
23138
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23269
23139
  exports.updateTerminal = updateTerminal;
23270
23140
  exports.updateTransaction = updateTransaction;
23271
- exports.uploadAttachmentToS3 = uploadAttachmentToS3;
23272
23141
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23273
23142
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23274
23143
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
@@ -1,7 +1,6 @@
1
1
  import type { COUNTRY_CODES } from '../utils/regions';
2
2
  export * from './abr';
3
3
  export * from './blacklist-bank-account';
4
- export * from './business';
5
4
  export * from './device';
6
5
  export * from './documents';
7
6
  export * from './filter-option';
@@ -17,10 +16,9 @@ export * from './provider-number-type';
17
16
  export * from './provider-registration-type';
18
17
  export * from './provider-registration';
19
18
  export * from './provider-set-item';
20
- export * from './staff-member';
21
19
  export * from './specialty';
22
20
  export * from './subscriptions';
23
- export * from './virus-scan';
21
+ export * from './business';
24
22
  export declare type MedipassRequestOpts = {
25
23
  baseUrl?: string;
26
24
  hyperMediaEndpoint?: string | null | undefined;
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-6bb8e3fc.js');
17
+ var request = require('../staff-75ea1b6f.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-6bb8e3fc.js');
17
+ var request = require('../staff-75ea1b6f.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-6bb8e3fc.js');
17
+ var request = require('../staff-75ea1b6f.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
@@ -14,7 +14,7 @@ require('lodash/forOwn');
14
14
  require('lodash/get');
15
15
  require('@medipass/utils/sentry');
16
16
  require('./get-axios-error.js');
17
- var request = require('../staff-6bb8e3fc.js');
17
+ var request = require('../staff-75ea1b6f.js');
18
18
  require('@babel/runtime/helpers/inheritsLoose');
19
19
  require('@babel/runtime/helpers/wrapNativeSuper');
20
20
  require('./param-error.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.51.1-feature-healthpoint-upload-endpoints.0",
3
+ "version": "11.51.1-feature-add-billing-history-table-functions.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,10 +45,11 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/plugin-transform-runtime": "7.8.3",
48
- "@medipass/utils": "^11.75.1-feature-healthpoint-upload-endpoints.0",
49
- "@types/jest": "29.2.6",
48
+ "@medipass/utils": "^11.75.0",
49
+ "@types/jest": "28.1.6",
50
+ "@types/mocha": "9.1.1",
50
51
  "@types/node": "18.7.1",
51
- "axios-mock-adapter": "1.21.2",
52
+ "axios-mock-adapter": "1.19.0",
52
53
  "query-string": "7.0.0",
53
54
  "rimraf": "^2.6.2",
54
55
  "typescript": "4.7.4"
@@ -56,5 +57,5 @@
56
57
  "resolutions": {
57
58
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
58
59
  },
59
- "gitHead": "05847c07fd21c669bffd29da902dc626755ed780"
60
+ "gitHead": "4dae8b835465c5ac2a58642c1e70ef9206e1aae5"
60
61
  }
@@ -1,13 +0,0 @@
1
- export interface VirusScan {
2
- _id: string;
3
- accountId: string;
4
- healthFundId: string;
5
- businessId: string;
6
- s3Bucket: string;
7
- s3Key: string;
8
- antiVirusStatus: string;
9
- antiVirusTimestamp: string;
10
- viruses: string[];
11
- created: string;
12
- modified: string;
13
- }
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-