@medipass/web-sdk 11.49.4-feature-healthpoint-upload-endpoints.8 → 11.49.4-feature-tailwind-migration-heading-component.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.
- package/CHANGELOG.md +54 -0
- package/lib/index.js +1 -1
- package/lib/resources/abr.js +1 -1
- package/lib/resources/accounts.js +1 -1
- package/lib/resources/actions.js +1 -1
- package/lib/resources/api-keys.js +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.d.ts +1 -35
- package/lib/resources/attachments.js +1 -7
- package/lib/resources/auth.js +1 -1
- package/lib/resources/blacklist.js +1 -1
- package/lib/resources/bulk-submits.js +1 -1
- package/lib/resources/bulk-uploads.js +1 -1
- package/lib/resources/business-profiles.js +1 -1
- package/lib/resources/businesses.d.ts +15 -0
- package/lib/resources/businesses.js +3 -1
- package/lib/resources/claim-items.js +1 -1
- package/lib/resources/devices.js +1 -1
- package/lib/resources/doc-accounts.js +1 -1
- package/lib/resources/documents.js +1 -1
- package/lib/resources/emails.js +1 -1
- package/lib/resources/filter-options.js +1 -1
- package/lib/resources/form-application-templates.js +1 -1
- package/lib/resources/form-applications.js +1 -1
- package/lib/resources/forms.js +1 -1
- package/lib/resources/funder-services.js +1 -1
- package/lib/resources/funder-settings.js +1 -1
- package/lib/resources/funder-values.js +1 -1
- package/lib/resources/funders.js +1 -1
- package/lib/resources/futures.js +1 -1
- package/lib/resources/health-fund-accounts.js +1 -1
- package/lib/resources/health-fund-settings.js +1 -1
- package/lib/resources/healthfunds.js +1 -1
- package/lib/resources/icditems.js +1 -1
- package/lib/resources/invoice-scans.js +1 -1
- package/lib/resources/jhcs.js +1 -1
- package/lib/resources/kyc.js +1 -1
- package/lib/resources/logs.js +1 -1
- package/lib/resources/members.js +1 -1
- package/lib/resources/message-mappings.js +1 -1
- package/lib/resources/minions.js +1 -1
- package/lib/resources/modalities.js +1 -1
- package/lib/resources/notes.js +1 -1
- package/lib/resources/onboarding-applications.js +1 -1
- package/lib/resources/onboarding-requests.js +1 -1
- package/lib/resources/ops.js +1 -1
- package/lib/resources/organisations.js +1 -1
- package/lib/resources/partners.js +1 -1
- package/lib/resources/patients.js +1 -1
- package/lib/resources/payments.js +1 -1
- package/lib/resources/pms.js +1 -1
- package/lib/resources/practice-profiles.js +1 -1
- package/lib/resources/practice-types.js +1 -1
- package/lib/resources/practices.js +1 -1
- package/lib/resources/products.js +1 -1
- package/lib/resources/professional-categories.d.ts +4 -4
- package/lib/resources/professional-categories.js +1 -1
- package/lib/resources/provider-number-types.js +1 -1
- package/lib/resources/provider-registration-types.js +1 -1
- package/lib/resources/provider-requests.js +1 -1
- package/lib/resources/provider-types.js +1 -1
- package/lib/resources/ref-sources.js +1 -1
- package/lib/resources/risk.js +1 -1
- package/lib/resources/rnas.js +1 -1
- package/lib/resources/roles.js +1 -1
- package/lib/resources/self-checkout-sessions.js +1 -1
- package/lib/resources/services.js +1 -1
- package/lib/resources/settlements.js +1 -1
- package/lib/resources/sign-up.js +1 -1
- package/lib/resources/specialties.d.ts +4 -4
- package/lib/resources/specialties.js +1 -1
- package/lib/resources/staff-profiles.js +1 -1
- package/lib/resources/staff.js +1 -1
- package/lib/resources/statistics.js +1 -1
- package/lib/resources/subscriptions.js +1 -1
- package/lib/resources/terminals.js +1 -1
- package/lib/resources/transaction-export.js +1 -1
- package/lib/resources/transactions.js +1 -1
- package/lib/resources/triggers.js +1 -1
- package/lib/resources/vendors.js +1 -1
- package/lib/resources/verify.js +1 -1
- package/lib/resources/workers.js +1 -1
- package/lib/resources/workflow-exceptions.js +1 -1
- package/lib/services/aws.d.ts +0 -10
- package/lib/services/aws.js +1 -2
- package/lib/services/version.js +1 -1
- package/lib/{staff-5e39f044.js → staff-75ea1b6f.js} +108 -236
- package/lib/types/funder.d.ts +1 -1
- package/lib/types/index.d.ts +3 -7
- package/lib/types/professional-category.d.ts +10 -0
- package/lib/types/provider-registration.d.ts +6 -12
- package/lib/types/provider-set-item.d.ts +8 -19
- package/lib/types/specialty.d.ts +11 -0
- package/lib/types/staff-member.d.ts +1 -1
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.d.ts +4 -4
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.d.ts +5 -7
- package/lib/utils/staff.js +1 -1
- package/package.json +3 -3
- package/lib/types/professional-categories.d.ts +0 -21
- package/lib/types/professional-categories.js +0 -2
- package/lib/types/specialties.d.ts +0 -23
- package/lib/types/specialties.js +0 -2
- package/lib/types/virus-scan.d.ts +0 -13
- 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';
|
|
3659
|
+
var PATH__MY_BUSINESSES = '/businesses/me';
|
|
3743
3660
|
|
|
3744
3661
|
var pathBusiness = function pathBusiness(businessId) {
|
|
3745
3662
|
return "/businesses/" + businessId;
|
|
3746
|
-
};
|
|
3747
|
-
|
|
3663
|
+
};
|
|
3748
3664
|
|
|
3749
3665
|
var pathAccountsBusinesses = function pathAccountsBusinesses(accountId) {
|
|
3750
3666
|
return "/accounts/" + accountId + "/businesses";
|
|
3751
|
-
};
|
|
3752
|
-
|
|
3667
|
+
};
|
|
3753
3668
|
|
|
3754
3669
|
var pathBusinessOnboardingQuestions = function pathBusinessOnboardingQuestions(businessId) {
|
|
3755
3670
|
return "/businesses/" + businessId + "/onboarding/emailquestions";
|
|
3756
|
-
};
|
|
3757
|
-
|
|
3671
|
+
};
|
|
3758
3672
|
|
|
3759
3673
|
var pathBusinessSendEmails = function pathBusinessSendEmails(businessId) {
|
|
3760
3674
|
return "/businesses/" + businessId + "/sendemail";
|
|
3761
|
-
};
|
|
3762
|
-
|
|
3675
|
+
};
|
|
3763
3676
|
|
|
3764
3677
|
var pathOrganisationBusiness = function pathOrganisationBusiness(organisationId) {
|
|
3765
3678
|
return "/organisations/" + organisationId + "/businesses";
|
|
3766
|
-
};
|
|
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
|
-
};
|
|
3778
|
-
|
|
3688
|
+
};
|
|
3779
3689
|
|
|
3780
3690
|
var pathVerifyDVA = function pathVerifyDVA(businessId) {
|
|
3781
3691
|
return "/businesses/" + businessId + "/dva/verify";
|
|
3782
|
-
};
|
|
3783
|
-
|
|
3692
|
+
};
|
|
3784
3693
|
|
|
3785
3694
|
var pathVerifyIcare = function pathVerifyIcare(businessId) {
|
|
3786
3695
|
return "/businesses/" + businessId + "/icare/verify";
|
|
3787
|
-
};
|
|
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
|
-
};
|
|
3793
|
-
|
|
3700
|
+
};
|
|
3794
3701
|
|
|
3795
3702
|
var pathCreateSupportNote = function pathCreateSupportNote(businessId) {
|
|
3796
3703
|
return "/businesses/" + businessId + "/supportnotes";
|
|
3797
|
-
};
|
|
3798
|
-
|
|
3704
|
+
};
|
|
3799
3705
|
|
|
3800
3706
|
var pathBsbDetails = function pathBsbDetails(businessId) {
|
|
3801
3707
|
return "/businesses/" + businessId + "/bsbs";
|
|
3802
|
-
};
|
|
3803
|
-
|
|
3708
|
+
};
|
|
3804
3709
|
|
|
3805
3710
|
var pathDisableBusiness = function pathDisableBusiness(businessId) {
|
|
3806
3711
|
return "/businesses/" + businessId + "/disable";
|
|
3807
|
-
};
|
|
3808
|
-
|
|
3712
|
+
};
|
|
3809
3713
|
|
|
3810
3714
|
var pathEnableBusiness = function pathEnableBusiness(businessId) {
|
|
3811
3715
|
return "/businesses/" + businessId + "/reenable";
|
|
3812
|
-
};
|
|
3813
|
-
|
|
3716
|
+
};
|
|
3814
3717
|
|
|
3815
3718
|
var pathSuspendBusiness = function pathSuspendBusiness(businessId) {
|
|
3816
3719
|
return "/businesses/" + businessId + "/suspend";
|
|
3817
|
-
};
|
|
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; }
|
|
@@ -21799,7 +21675,7 @@ function parseProfessions(_x, _x2) {
|
|
|
21799
21675
|
}
|
|
21800
21676
|
|
|
21801
21677
|
function _parseProfessions() {
|
|
21802
|
-
_parseProfessions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(
|
|
21678
|
+
_parseProfessions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(professions, _temp) {
|
|
21803
21679
|
var _professionalCategori, _specialtiesResponse$, _providerTypesRespons;
|
|
21804
21680
|
|
|
21805
21681
|
var _ref, providerRegistrationTypes, professionalCategoryIds, uniqueProfessionalCategoryIds, professionalCategoryIdsString, specialtyIdSets, specialtyIds, uniqueSpecialtyIds, specialtyIdsString, _yield$Promise$all, professionalCategoriesResponse, specialtiesResponse, providerTypesResponse, professionalCategoriesMap, specialtiesMap, providerRegistrationTypesMap, newProfessions;
|
|
@@ -21811,12 +21687,12 @@ function _parseProfessions() {
|
|
|
21811
21687
|
_ref = _temp === void 0 ? {
|
|
21812
21688
|
providerRegistrationTypes: undefined
|
|
21813
21689
|
} : _temp, providerRegistrationTypes = _ref.providerRegistrationTypes;
|
|
21814
|
-
professionalCategoryIds =
|
|
21690
|
+
professionalCategoryIds = professions.map(function (registration) {
|
|
21815
21691
|
return registration.professionalCategoryId;
|
|
21816
21692
|
});
|
|
21817
21693
|
uniqueProfessionalCategoryIds = _uniq(professionalCategoryIds).filter(Boolean);
|
|
21818
21694
|
professionalCategoryIdsString = uniqueProfessionalCategoryIds.join(',');
|
|
21819
|
-
specialtyIdSets =
|
|
21695
|
+
specialtyIdSets = professions.map(function (registration) {
|
|
21820
21696
|
return registration.specialtyIds;
|
|
21821
21697
|
});
|
|
21822
21698
|
specialtyIds = _flatten(specialtyIdSets);
|
|
@@ -21853,15 +21729,19 @@ function _parseProfessions() {
|
|
|
21853
21729
|
|
|
21854
21730
|
return _objectSpread$1f({}, currentProviderType, (_objectSpread4 = {}, _objectSpread4[providerType._id] = providerType, _objectSpread4));
|
|
21855
21731
|
}, {});
|
|
21856
|
-
newProfessions =
|
|
21857
|
-
var _registration$special;
|
|
21858
|
-
|
|
21732
|
+
newProfessions = professions.map(function (registration) {
|
|
21859
21733
|
var professionalCategory = professionalCategoriesMap == null ? void 0 : professionalCategoriesMap[registration.professionalCategoryId];
|
|
21860
|
-
var specialties = registration
|
|
21734
|
+
var specialties = registration.specialtyIds.map(function (specialtyId) {
|
|
21861
21735
|
return specialtiesMap == null ? void 0 : specialtiesMap[specialtyId];
|
|
21862
|
-
})
|
|
21736
|
+
}).filter(function (specialty) {
|
|
21737
|
+
return !!specialty;
|
|
21738
|
+
});
|
|
21739
|
+
var providerRegistrationType;
|
|
21740
|
+
|
|
21741
|
+
if ('providerRegistrationTypeId' in registration) {
|
|
21742
|
+
providerRegistrationType = registration != null && registration.providerRegistrationTypeId ? providerRegistrationTypesMap == null ? void 0 : providerRegistrationTypesMap[registration == null ? void 0 : registration.providerRegistrationTypeId] : undefined;
|
|
21743
|
+
}
|
|
21863
21744
|
|
|
21864
|
-
var providerRegistrationType = providerRegistrationTypesMap[registration == null ? void 0 : registration.providerRegistrationTypeId];
|
|
21865
21745
|
return {
|
|
21866
21746
|
professionalCategory: professionalCategory,
|
|
21867
21747
|
specialties: specialties,
|
|
@@ -22331,9 +22211,8 @@ function _parseProviderSet() {
|
|
|
22331
22211
|
while (1) {
|
|
22332
22212
|
switch (_context.prev = _context.next) {
|
|
22333
22213
|
case 0:
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
return providerData == null ? void 0 : providerData.practiceId;
|
|
22214
|
+
practiceIds = providerSet.map(function (providerData) {
|
|
22215
|
+
return providerData.practiceId;
|
|
22337
22216
|
});
|
|
22338
22217
|
uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
|
|
22339
22218
|
practices = [];
|
|
@@ -22378,11 +22257,12 @@ function _parseProviderSet() {
|
|
|
22378
22257
|
return _context2.abrupt("return", _providerNumberTypes);
|
|
22379
22258
|
|
|
22380
22259
|
case 2:
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22260
|
+
providerNumberTypeIds = providerSet.map(function (providerData) {
|
|
22261
|
+
return providerData.providerNumberTypeId;
|
|
22262
|
+
});
|
|
22263
|
+
uniqueProviderNumberTypeIds = _uniq(providerNumberTypeIds).filter(Boolean).filter(function (providerNumberTypeId) {
|
|
22264
|
+
return !!providerNumberTypeId;
|
|
22384
22265
|
});
|
|
22385
|
-
uniqueProviderNumberTypeIds = _uniq(providerNumberTypeIds).filter(Boolean);
|
|
22386
22266
|
_context2.next = 6;
|
|
22387
22267
|
return Promise.all(uniqueProviderNumberTypeIds.map(function (providerNumberTypeId) {
|
|
22388
22268
|
return sdkClient.providerNumberTypes.getProviderNumberType(providerNumberTypeId);
|
|
@@ -22432,15 +22312,12 @@ function _parseProviderSet() {
|
|
|
22432
22312
|
|
|
22433
22313
|
return _objectSpread$1h({}, currentProviderNumberTypes, (_objectSpread4 = {}, _objectSpread4[providerNumberType._id] = providerNumberType, _objectSpread4));
|
|
22434
22314
|
}, {});
|
|
22435
|
-
newProviderSet = providerSet
|
|
22436
|
-
return _objectSpread$1h({}, providerData, {}, providerRegistrations
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
// @ts-expect-error
|
|
22440
|
-
funder: fundersMap[providerData == null ? void 0 : providerData.funderId]
|
|
22315
|
+
newProviderSet = providerSet.map(function (providerData, i) {
|
|
22316
|
+
return _objectSpread$1h({}, providerData, {}, providerRegistrations[i], {
|
|
22317
|
+
practice: practicesMap[providerData.practiceId],
|
|
22318
|
+
funder: fundersMap[providerData.funderId]
|
|
22441
22319
|
}, parseProviderNumberType && {
|
|
22442
|
-
|
|
22443
|
-
providerNumberType: providerNumberTypesMap == null ? void 0 : providerNumberTypesMap[providerData == null ? void 0 : providerData.providerNumberTypeId]
|
|
22320
|
+
providerNumberType: providerData != null && providerData.providerNumberTypeId ? providerNumberTypesMap == null ? void 0 : providerNumberTypesMap[providerData == null ? void 0 : providerData.providerNumberTypeId] : undefined
|
|
22444
22321
|
});
|
|
22445
22322
|
});
|
|
22446
22323
|
return _context3.abrupt("return", newProviderSet);
|
|
@@ -22711,7 +22588,6 @@ exports.getAction = getAction;
|
|
|
22711
22588
|
exports.getActions = getActions;
|
|
22712
22589
|
exports.getApplication = getApplication;
|
|
22713
22590
|
exports.getApplications = getApplications;
|
|
22714
|
-
exports.getAttachmentUrl = getAttachmentUrl;
|
|
22715
22591
|
exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
|
|
22716
22592
|
exports.getBsbDetails = getBsbDetails;
|
|
22717
22593
|
exports.getBulkUpload = getBulkUpload;
|
|
@@ -22719,6 +22595,8 @@ exports.getBulkUploadUrl = getBulkUploadUrl;
|
|
|
22719
22595
|
exports.getBusinesFunderSettingsById = getBusinesFunderSettingsById;
|
|
22720
22596
|
exports.getBusiness = getBusiness;
|
|
22721
22597
|
exports.getBusinessApiKeys = getBusinessApiKeys;
|
|
22598
|
+
exports.getBusinessBillingHistoryRecord = getBusinessBillingHistoryRecord;
|
|
22599
|
+
exports.getBusinessBillingHistoryRecords = getBusinessBillingHistoryRecords;
|
|
22722
22600
|
exports.getBusinessCbo = getBusinessCbo;
|
|
22723
22601
|
exports.getBusinessClaimItem = getBusinessClaimItem;
|
|
22724
22602
|
exports.getBusinessClaimItems = getBusinessClaimItems;
|
|
@@ -22780,7 +22658,6 @@ exports.getBusinessProducts = getBusinessProducts;
|
|
|
22780
22658
|
exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
|
|
22781
22659
|
exports.getBusinessRNA = getBusinessRNA;
|
|
22782
22660
|
exports.getBusinessRNAs = getBusinessRNAs;
|
|
22783
|
-
exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
|
|
22784
22661
|
exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
|
|
22785
22662
|
exports.getBusinessService = getBusinessService;
|
|
22786
22663
|
exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
|
|
@@ -23030,8 +22907,6 @@ exports.pathFunderValues = pathFunderValues;
|
|
|
23030
22907
|
exports.pathFunderValuesById = pathFunderValuesById;
|
|
23031
22908
|
exports.pathFuture = pathFuture;
|
|
23032
22909
|
exports.pathGetAbr = pathGetAbr;
|
|
23033
|
-
exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
|
|
23034
|
-
exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
|
|
23035
22910
|
exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
|
|
23036
22911
|
exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
|
|
23037
22912
|
exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
|
|
@@ -23098,7 +22973,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
|
|
|
23098
22973
|
exports.pathResetTerminal = pathResetTerminal;
|
|
23099
22974
|
exports.pathResumeComplexVerification = pathResumeComplexVerification;
|
|
23100
22975
|
exports.pathScanClaimFile = pathScanClaimFile;
|
|
23101
|
-
exports.pathScanFile = pathScanFile;
|
|
23102
22976
|
exports.pathSendReceipt = pathSendReceipt;
|
|
23103
22977
|
exports.pathSendWorkerMessage = pathSendWorkerMessage;
|
|
23104
22978
|
exports.pathSignUp = pathSignUp;
|
|
@@ -23172,7 +23046,6 @@ exports.saveDraft = saveDraft;
|
|
|
23172
23046
|
exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
|
|
23173
23047
|
exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
|
|
23174
23048
|
exports.scanClaimFile = scanClaimFile;
|
|
23175
|
-
exports.scanFile = scanFile;
|
|
23176
23049
|
exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
|
|
23177
23050
|
exports.sdk = sdkClient;
|
|
23178
23051
|
exports.sdkClient = sdkClient;
|
|
@@ -23265,7 +23138,6 @@ exports.updateService = updateService;
|
|
|
23265
23138
|
exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
|
|
23266
23139
|
exports.updateTerminal = updateTerminal;
|
|
23267
23140
|
exports.updateTransaction = updateTransaction;
|
|
23268
|
-
exports.uploadAttachmentToS3 = uploadAttachmentToS3;
|
|
23269
23141
|
exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
|
|
23270
23142
|
exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
|
|
23271
23143
|
exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
|
package/lib/types/funder.d.ts
CHANGED
package/lib/types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -12,17 +11,14 @@ export * from './message-mappings';
|
|
|
12
11
|
export * from './notes';
|
|
13
12
|
export * from './practice';
|
|
14
13
|
export * from './products';
|
|
14
|
+
export * from './professional-category';
|
|
15
15
|
export * from './provider-number-type';
|
|
16
|
-
export * from './provider-registration';
|
|
17
16
|
export * from './provider-registration-type';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './professional-categories';
|
|
17
|
+
export * from './provider-registration';
|
|
20
18
|
export * from './provider-set-item';
|
|
21
|
-
export * from './specialties';
|
|
22
19
|
export * from './specialty';
|
|
23
|
-
export * from './staff-member';
|
|
24
20
|
export * from './subscriptions';
|
|
25
|
-
export * from './
|
|
21
|
+
export * from './business';
|
|
26
22
|
export declare type MedipassRequestOpts = {
|
|
27
23
|
baseUrl?: string;
|
|
28
24
|
hyperMediaEndpoint?: string | null | undefined;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
import type { PaginatedQuery } from './index';
|
|
1
2
|
export interface ProfessionalCategory {
|
|
2
3
|
code: string;
|
|
3
4
|
displayName: string;
|
|
4
5
|
fullName: string;
|
|
5
6
|
_id: string;
|
|
7
|
+
description: string;
|
|
8
|
+
created: string;
|
|
9
|
+
modified: string;
|
|
6
10
|
}
|
|
11
|
+
/** START: Requests */
|
|
12
|
+
export declare type GetProfessionalCategoriesQuery = PaginatedQuery & {
|
|
13
|
+
searchText?: string;
|
|
14
|
+
professionalCategoryIds?: string;
|
|
15
|
+
};
|
|
16
|
+
/** END: Requests */
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import type { ProviderNumberType,
|
|
1
|
+
import type { ProviderNumberType, ProfessionalCategory, Specialty, ProviderRegistrationType } from 'types';
|
|
2
2
|
export interface ProviderRegistration {
|
|
3
3
|
specialtyIds: string[];
|
|
4
4
|
providerRegistrationTypeId: string;
|
|
5
5
|
professionalCategoryId: string;
|
|
6
6
|
providerNumber: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare type ParsedProviderRegistration = ProviderRegistration & {
|
|
9
9
|
providerNumberType?: ProviderNumberType | undefined;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
providerRegistrationType?: ProviderRegistrationType | undefined;
|
|
15
|
-
specialtyIds: string[];
|
|
16
|
-
providerRegistrationTypeId: string;
|
|
17
|
-
professionalCategoryId: string;
|
|
18
|
-
providerNumber: string;
|
|
19
|
-
}
|
|
10
|
+
professionalCategory: ProfessionalCategory | undefined;
|
|
11
|
+
specialties: Specialty[];
|
|
12
|
+
providerRegistrationType: ProviderRegistrationType | undefined;
|
|
13
|
+
};
|
|
@@ -1,23 +1,4 @@
|
|
|
1
1
|
import type { ProviderNumberType, Practice, ProfessionalCategory, Specialty, Funder, ProviderRegistrationType } from 'types';
|
|
2
|
-
export interface ParsedProviderSetItem {
|
|
3
|
-
providerNumberType?: ProviderNumberType | undefined;
|
|
4
|
-
practice: Practice;
|
|
5
|
-
funder: Funder;
|
|
6
|
-
professionalCategory?: ProfessionalCategory | undefined;
|
|
7
|
-
specialties?: (Specialty | undefined)[] | undefined;
|
|
8
|
-
providerRegistrationType?: ProviderRegistrationType | undefined;
|
|
9
|
-
created: string;
|
|
10
|
-
funderId: string;
|
|
11
|
-
healthFundOverrides: string[];
|
|
12
|
-
practiceId: string;
|
|
13
|
-
professionalCategoryId: string;
|
|
14
|
-
providerNumber: string;
|
|
15
|
-
providerNumberTypeId?: string | undefined;
|
|
16
|
-
specialtyIds: string[];
|
|
17
|
-
status: string;
|
|
18
|
-
statusHistory: string[];
|
|
19
|
-
_id: string;
|
|
20
|
-
}
|
|
21
2
|
export interface ProviderSetItem {
|
|
22
3
|
created: string;
|
|
23
4
|
funderId: string;
|
|
@@ -49,3 +30,11 @@ export interface HicapsProviderSetAttributes {
|
|
|
49
30
|
lnglat?: string[];
|
|
50
31
|
gmapsPlaceId?: string;
|
|
51
32
|
}
|
|
33
|
+
export declare type ParsedProviderSetItem = ProviderSetItem & {
|
|
34
|
+
providerNumberType?: ProviderNumberType | undefined;
|
|
35
|
+
funder: Funder;
|
|
36
|
+
practice: Practice;
|
|
37
|
+
professionalCategory: ProfessionalCategory | undefined;
|
|
38
|
+
specialties: Specialty[];
|
|
39
|
+
providerRegistrationType: ProviderRegistrationType | undefined;
|
|
40
|
+
};
|