@medipass/web-sdk 11.49.4-feature-strict-mode.0 → 11.49.4-feature-tailwind-migration-heading-component.2
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 +62 -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.js +1 -1
- 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.js +1 -1
- package/lib/services/version.js +1 -1
- package/lib/{staff-e842c318.js → staff-75ea1b6f.js} +120 -79
- package/lib/types/funder.d.ts +10 -0
- package/lib/types/{professional-categories.js → funder.js} +0 -0
- package/lib/types/index.d.ts +9 -3
- package/lib/types/practice.d.ts +96 -0
- package/lib/types/{specialties.js → practice.js} +0 -0
- package/lib/types/professional-category.d.ts +16 -0
- package/lib/types/professional-category.js +2 -0
- package/lib/types/provider-number-type.d.ts +11 -0
- package/lib/types/provider-number-type.js +2 -0
- package/lib/types/provider-registration-type.d.ts +9 -0
- package/lib/types/provider-registration-type.js +2 -0
- package/lib/types/provider-registration.d.ts +13 -0
- package/lib/types/provider-registration.js +2 -0
- package/lib/types/provider-set-item.d.ts +40 -0
- package/lib/types/provider-set-item.js +2 -0
- package/lib/types/{specialties.d.ts → specialty.d.ts} +13 -17
- package/lib/types/specialty.js +2 -0
- package/lib/types/staff-member.d.ts +50 -0
- package/lib/types/staff-member.js +2 -0
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.d.ts +9 -3
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.d.ts +10 -8
- package/lib/utils/staff.js +1 -1
- package/package.json +4 -4
- package/lib/types/professional-categories.d.ts +0 -20
|
@@ -3656,87 +3656,80 @@ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
3656
3656
|
|
|
3657
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; }
|
|
3658
3658
|
var PATH__BUSINESSES = '/businesses';
|
|
3659
|
-
var PATH__MY_BUSINESSES = '/businesses/me';
|
|
3659
|
+
var PATH__MY_BUSINESSES = '/businesses/me';
|
|
3660
3660
|
|
|
3661
3661
|
var pathBusiness = function pathBusiness(businessId) {
|
|
3662
3662
|
return "/businesses/" + businessId;
|
|
3663
|
-
};
|
|
3664
|
-
|
|
3663
|
+
};
|
|
3665
3664
|
|
|
3666
3665
|
var pathAccountsBusinesses = function pathAccountsBusinesses(accountId) {
|
|
3667
3666
|
return "/accounts/" + accountId + "/businesses";
|
|
3668
|
-
};
|
|
3669
|
-
|
|
3667
|
+
};
|
|
3670
3668
|
|
|
3671
3669
|
var pathBusinessOnboardingQuestions = function pathBusinessOnboardingQuestions(businessId) {
|
|
3672
3670
|
return "/businesses/" + businessId + "/onboarding/emailquestions";
|
|
3673
|
-
};
|
|
3674
|
-
|
|
3671
|
+
};
|
|
3675
3672
|
|
|
3676
3673
|
var pathBusinessSendEmails = function pathBusinessSendEmails(businessId) {
|
|
3677
3674
|
return "/businesses/" + businessId + "/sendemail";
|
|
3678
|
-
};
|
|
3679
|
-
|
|
3675
|
+
};
|
|
3680
3676
|
|
|
3681
3677
|
var pathOrganisationBusiness = function pathOrganisationBusiness(organisationId) {
|
|
3682
3678
|
return "/organisations/" + organisationId + "/businesses";
|
|
3683
|
-
};
|
|
3684
|
-
|
|
3679
|
+
};
|
|
3685
3680
|
|
|
3686
3681
|
var pathVerifyMedicare = function pathVerifyMedicare(businessId) {
|
|
3687
3682
|
return "/businesses/" + businessId + "/medicare/verify";
|
|
3688
3683
|
}; // This can be removed once we migrate to the new medicare service
|
|
3689
|
-
// @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
|
|
3690
3684
|
|
|
3691
3685
|
|
|
3692
3686
|
var oldPathVerifyDVA = function oldPathVerifyDVA(businessId) {
|
|
3693
3687
|
return "/businesses/" + businessId + "/dva/pvv/verify";
|
|
3694
|
-
};
|
|
3695
|
-
|
|
3688
|
+
};
|
|
3696
3689
|
|
|
3697
3690
|
var pathVerifyDVA = function pathVerifyDVA(businessId) {
|
|
3698
3691
|
return "/businesses/" + businessId + "/dva/verify";
|
|
3699
|
-
};
|
|
3700
|
-
|
|
3692
|
+
};
|
|
3701
3693
|
|
|
3702
3694
|
var pathVerifyIcare = function pathVerifyIcare(businessId) {
|
|
3703
3695
|
return "/businesses/" + businessId + "/icare/verify";
|
|
3704
|
-
};
|
|
3705
|
-
|
|
3696
|
+
};
|
|
3706
3697
|
|
|
3707
3698
|
var pathVerifyComcare = function pathVerifyComcare(businessId, staffId, providerSetItemId) {
|
|
3708
3699
|
return "/businesses/" + businessId + "/staff/" + staffId + "/providersetitems/" + providerSetItemId + "/comcare/verify";
|
|
3709
|
-
};
|
|
3710
|
-
|
|
3700
|
+
};
|
|
3711
3701
|
|
|
3712
3702
|
var pathCreateSupportNote = function pathCreateSupportNote(businessId) {
|
|
3713
3703
|
return "/businesses/" + businessId + "/supportnotes";
|
|
3714
|
-
};
|
|
3715
|
-
|
|
3704
|
+
};
|
|
3716
3705
|
|
|
3717
3706
|
var pathBsbDetails = function pathBsbDetails(businessId) {
|
|
3718
3707
|
return "/businesses/" + businessId + "/bsbs";
|
|
3719
|
-
};
|
|
3720
|
-
|
|
3708
|
+
};
|
|
3721
3709
|
|
|
3722
3710
|
var pathDisableBusiness = function pathDisableBusiness(businessId) {
|
|
3723
3711
|
return "/businesses/" + businessId + "/disable";
|
|
3724
|
-
};
|
|
3725
|
-
|
|
3712
|
+
};
|
|
3726
3713
|
|
|
3727
3714
|
var pathEnableBusiness = function pathEnableBusiness(businessId) {
|
|
3728
3715
|
return "/businesses/" + businessId + "/reenable";
|
|
3729
|
-
};
|
|
3730
|
-
|
|
3716
|
+
};
|
|
3731
3717
|
|
|
3732
3718
|
var pathSuspendBusiness = function pathSuspendBusiness(businessId) {
|
|
3733
3719
|
return "/businesses/" + businessId + "/suspend";
|
|
3734
|
-
};
|
|
3735
|
-
|
|
3720
|
+
};
|
|
3736
3721
|
|
|
3737
3722
|
var pathUnsuspendBusiness = function pathUnsuspendBusiness(businessId) {
|
|
3738
3723
|
return "/businesses/" + businessId + "/unsuspend";
|
|
3739
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
|
+
};
|
|
3740
3733
|
/**
|
|
3741
3734
|
* Create businesses
|
|
3742
3735
|
* @param {Object} body - Request body
|
|
@@ -3890,6 +3883,60 @@ var getBusiness = function getBusiness(businessId, query, opts) {
|
|
|
3890
3883
|
params: query
|
|
3891
3884
|
});
|
|
3892
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
|
+
};
|
|
3893
3940
|
/**
|
|
3894
3941
|
* Get businesses
|
|
3895
3942
|
* @param {Object} query - Query parameters
|
|
@@ -4265,6 +4312,8 @@ var businesses = /*#__PURE__*/Object.freeze({
|
|
|
4265
4312
|
emailBusinessOnboardingQuestions: emailBusinessOnboardingQuestions,
|
|
4266
4313
|
enableBusiness: enableBusiness,
|
|
4267
4314
|
getBusiness: getBusiness,
|
|
4315
|
+
getBusinessBillingHistoryRecords: getBusinessBillingHistoryRecords,
|
|
4316
|
+
getBusinessBillingHistoryRecord: getBusinessBillingHistoryRecord,
|
|
4268
4317
|
getBusinesses: getBusinesses,
|
|
4269
4318
|
getMyBusinesses: getMyBusinesses,
|
|
4270
4319
|
getBusinessPDFs: getBusinessPDFs,
|
|
@@ -21621,27 +21670,28 @@ var applicationUtils = /*#__PURE__*/Object.freeze({
|
|
|
21621
21670
|
function ownKeys$1f(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; }
|
|
21622
21671
|
|
|
21623
21672
|
function _objectSpread$1f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21624
|
-
|
|
21625
21673
|
function parseProfessions(_x, _x2) {
|
|
21626
21674
|
return _parseProfessions.apply(this, arguments);
|
|
21627
21675
|
}
|
|
21628
21676
|
|
|
21629
21677
|
function _parseProfessions() {
|
|
21630
21678
|
_parseProfessions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(professions, _temp) {
|
|
21679
|
+
var _professionalCategori, _specialtiesResponse$, _providerTypesRespons;
|
|
21680
|
+
|
|
21631
21681
|
var _ref, providerRegistrationTypes, professionalCategoryIds, uniqueProfessionalCategoryIds, professionalCategoryIdsString, specialtyIdSets, specialtyIds, uniqueSpecialtyIds, specialtyIdsString, _yield$Promise$all, professionalCategoriesResponse, specialtiesResponse, providerTypesResponse, professionalCategoriesMap, specialtiesMap, providerRegistrationTypesMap, newProfessions;
|
|
21632
21682
|
|
|
21633
21683
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
21634
21684
|
while (1) {
|
|
21635
21685
|
switch (_context.prev = _context.next) {
|
|
21636
21686
|
case 0:
|
|
21637
|
-
_ref = _temp === void 0 ? {
|
|
21638
|
-
|
|
21687
|
+
_ref = _temp === void 0 ? {
|
|
21688
|
+
providerRegistrationTypes: undefined
|
|
21689
|
+
} : _temp, providerRegistrationTypes = _ref.providerRegistrationTypes;
|
|
21639
21690
|
professionalCategoryIds = professions.map(function (registration) {
|
|
21640
21691
|
return registration.professionalCategoryId;
|
|
21641
21692
|
});
|
|
21642
21693
|
uniqueProfessionalCategoryIds = _uniq(professionalCategoryIds).filter(Boolean);
|
|
21643
|
-
professionalCategoryIdsString = uniqueProfessionalCategoryIds.join(',');
|
|
21644
|
-
|
|
21694
|
+
professionalCategoryIdsString = uniqueProfessionalCategoryIds.join(',');
|
|
21645
21695
|
specialtyIdSets = professions.map(function (registration) {
|
|
21646
21696
|
return registration.specialtyIds;
|
|
21647
21697
|
});
|
|
@@ -21650,11 +21700,9 @@ function _parseProfessions() {
|
|
|
21650
21700
|
specialtyIdsString = uniqueSpecialtyIds.join(',');
|
|
21651
21701
|
_context.next = 10;
|
|
21652
21702
|
return Promise.all([professionalCategoryIdsString ? sdkClient.professionalCategories.getProfessionalCategories({
|
|
21653
|
-
// @ts-expect-error TS(2345): Argument of type '{ professionalCategoryIds: strin... Remove this comment to see the full error message
|
|
21654
21703
|
professionalCategoryIds: professionalCategoryIdsString,
|
|
21655
21704
|
limit: 99
|
|
21656
21705
|
}) : undefined, specialtyIdsString ? sdkClient.specialties.getSpecialties({
|
|
21657
|
-
// @ts-expect-error TS(2345): Argument of type '{ specialtyIds: string; limit: n... Remove this comment to see the full error message
|
|
21658
21706
|
specialtyIds: specialtyIdsString,
|
|
21659
21707
|
limit: 99
|
|
21660
21708
|
}) : undefined, providerRegistrationTypes ? providerRegistrationTypes : sdkClient.providerRegistrationTypes.getProviderRegistrationTypes({
|
|
@@ -21666,34 +21714,34 @@ function _parseProfessions() {
|
|
|
21666
21714
|
professionalCategoriesResponse = _yield$Promise$all[0];
|
|
21667
21715
|
specialtiesResponse = _yield$Promise$all[1];
|
|
21668
21716
|
providerTypesResponse = _yield$Promise$all[2];
|
|
21669
|
-
|
|
21670
|
-
professionalCategoriesMap = _get(professionalCategoriesResponse, 'items', []).reduce( // @ts-expect-error TS(7006): Parameter 'currentProfessionalCategories' implicit... Remove this comment to see the full error message
|
|
21671
|
-
function (currentProfessionalCategories, professionalCategory) {
|
|
21717
|
+
professionalCategoriesMap = professionalCategoriesResponse == null ? void 0 : (_professionalCategori = professionalCategoriesResponse.items) == null ? void 0 : _professionalCategori.reduce(function (currentProfessionalCategories, professionalCategory) {
|
|
21672
21718
|
var _objectSpread2;
|
|
21673
21719
|
|
|
21674
21720
|
return _objectSpread$1f({}, currentProfessionalCategories, (_objectSpread2 = {}, _objectSpread2[professionalCategory._id] = professionalCategory, _objectSpread2));
|
|
21675
|
-
}, {});
|
|
21676
|
-
|
|
21677
|
-
specialtiesMap = _get(specialtiesResponse, 'items', []).reduce( // @ts-expect-error TS(7006): Parameter 'currentSpecialties' implicitly has an '... Remove this comment to see the full error message
|
|
21678
|
-
function (currentSpecialties, professionalCategory) {
|
|
21721
|
+
}, {});
|
|
21722
|
+
specialtiesMap = specialtiesResponse == null ? void 0 : (_specialtiesResponse$ = specialtiesResponse.items) == null ? void 0 : _specialtiesResponse$.reduce(function (currentSpecialties, specialty) {
|
|
21679
21723
|
var _objectSpread3;
|
|
21680
21724
|
|
|
21681
|
-
return _objectSpread$1f({}, currentSpecialties, (_objectSpread3 = {}, _objectSpread3[
|
|
21725
|
+
return _objectSpread$1f({}, currentSpecialties, (_objectSpread3 = {}, _objectSpread3[specialty._id] = specialty, _objectSpread3));
|
|
21682
21726
|
}, {});
|
|
21683
|
-
providerRegistrationTypesMap =
|
|
21684
|
-
function (currentProviderType, providerType) {
|
|
21727
|
+
providerRegistrationTypesMap = providerTypesResponse == null ? void 0 : (_providerTypesRespons = providerTypesResponse.items) == null ? void 0 : _providerTypesRespons.reduce(function (currentProviderType, providerType) {
|
|
21685
21728
|
var _objectSpread4;
|
|
21686
21729
|
|
|
21687
21730
|
return _objectSpread$1f({}, currentProviderType, (_objectSpread4 = {}, _objectSpread4[providerType._id] = providerType, _objectSpread4));
|
|
21688
|
-
}, {});
|
|
21689
|
-
|
|
21731
|
+
}, {});
|
|
21690
21732
|
newProfessions = professions.map(function (registration) {
|
|
21691
|
-
var professionalCategory = professionalCategoriesMap
|
|
21692
|
-
|
|
21733
|
+
var professionalCategory = professionalCategoriesMap == null ? void 0 : professionalCategoriesMap[registration.professionalCategoryId];
|
|
21693
21734
|
var specialties = registration.specialtyIds.map(function (specialtyId) {
|
|
21694
|
-
return specialtiesMap[specialtyId];
|
|
21735
|
+
return specialtiesMap == null ? void 0 : specialtiesMap[specialtyId];
|
|
21736
|
+
}).filter(function (specialty) {
|
|
21737
|
+
return !!specialty;
|
|
21695
21738
|
});
|
|
21696
|
-
var providerRegistrationType
|
|
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
|
+
}
|
|
21744
|
+
|
|
21697
21745
|
return {
|
|
21698
21746
|
professionalCategory: professionalCategory,
|
|
21699
21747
|
specialties: specialties,
|
|
@@ -22144,18 +22192,17 @@ function ownKeys$1h(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
22144
22192
|
function _objectSpread$1h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1h(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22145
22193
|
function parseProviderSet(_x, _x2) {
|
|
22146
22194
|
return _parseProviderSet.apply(this, arguments);
|
|
22147
|
-
}
|
|
22195
|
+
}
|
|
22148
22196
|
|
|
22149
22197
|
function _parseProviderSet() {
|
|
22150
|
-
_parseProviderSet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(
|
|
22151
|
-
|
|
22152
|
-
var _ref, businessId, funders, providerRegistrationTypes, _providerNumberTypes, _ref$parseProviderNum, parseProviderNumberType, fetchPractices, fetchProviderNumberTypes, _yield$Promise$all, fundersResponse, practicesResponse, providerRegistrations, providerNumberTypesResponse, fundersMap, practicesMap, providerNumberTypesMap, newProviderSet;
|
|
22198
|
+
_parseProviderSet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(providerSet, _ref) {
|
|
22199
|
+
var businessId, funders, providerRegistrationTypes, _providerNumberTypes, _ref$parseProviderNum, parseProviderNumberType, fetchPractices, fetchProviderNumberTypes, _yield$Promise$all, fundersResponse, practicesResponse, providerRegistrations, providerNumberTypesResponse, fundersMap, practicesMap, providerNumberTypesMap, newProviderSet;
|
|
22153
22200
|
|
|
22154
22201
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
22155
22202
|
while (1) {
|
|
22156
22203
|
switch (_context3.prev = _context3.next) {
|
|
22157
22204
|
case 0:
|
|
22158
|
-
|
|
22205
|
+
businessId = _ref.businessId, funders = _ref.funders, providerRegistrationTypes = _ref.providerRegistrationTypes, _providerNumberTypes = _ref.providerNumberTypes, _ref$parseProviderNum = _ref.parseProviderNumberType, parseProviderNumberType = _ref$parseProviderNum === void 0 ? false : _ref$parseProviderNum;
|
|
22159
22206
|
|
|
22160
22207
|
fetchPractices = /*#__PURE__*/function () {
|
|
22161
22208
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
@@ -22164,7 +22211,6 @@ function _parseProviderSet() {
|
|
|
22164
22211
|
while (1) {
|
|
22165
22212
|
switch (_context.prev = _context.next) {
|
|
22166
22213
|
case 0:
|
|
22167
|
-
// @ts-expect-error TS(7006): Parameter 'providerData' implicitly has an 'any' t... Remove this comment to see the full error message
|
|
22168
22214
|
practiceIds = providerSet.map(function (providerData) {
|
|
22169
22215
|
return providerData.practiceId;
|
|
22170
22216
|
});
|
|
@@ -22172,13 +22218,11 @@ function _parseProviderSet() {
|
|
|
22172
22218
|
practices = [];
|
|
22173
22219
|
_context.next = 5;
|
|
22174
22220
|
return Promise.all(uniquePracticeIds.map(function (practiceId) {
|
|
22175
|
-
return (
|
|
22176
|
-
|
|
22177
|
-
|
|
22178
|
-
|
|
22179
|
-
|
|
22180
|
-
})
|
|
22181
|
-
);
|
|
22221
|
+
return sdkClient.practices.getBusinessPractice(businessId, practiceId).catch(function () {
|
|
22222
|
+
return {
|
|
22223
|
+
_id: practiceId
|
|
22224
|
+
};
|
|
22225
|
+
});
|
|
22182
22226
|
}));
|
|
22183
22227
|
|
|
22184
22228
|
case 5:
|
|
@@ -22213,16 +22257,15 @@ function _parseProviderSet() {
|
|
|
22213
22257
|
return _context2.abrupt("return", _providerNumberTypes);
|
|
22214
22258
|
|
|
22215
22259
|
case 2:
|
|
22216
|
-
// @ts-expect-error TS(7006): Parameter 'providerData' implicitly has an 'any' t... Remove this comment to see the full error message
|
|
22217
22260
|
providerNumberTypeIds = providerSet.map(function (providerData) {
|
|
22218
22261
|
return providerData.providerNumberTypeId;
|
|
22219
22262
|
});
|
|
22220
|
-
uniqueProviderNumberTypeIds = _uniq(providerNumberTypeIds).filter(Boolean)
|
|
22263
|
+
uniqueProviderNumberTypeIds = _uniq(providerNumberTypeIds).filter(Boolean).filter(function (providerNumberTypeId) {
|
|
22264
|
+
return !!providerNumberTypeId;
|
|
22265
|
+
});
|
|
22221
22266
|
_context2.next = 6;
|
|
22222
22267
|
return Promise.all(uniqueProviderNumberTypeIds.map(function (providerNumberTypeId) {
|
|
22223
|
-
return (
|
|
22224
|
-
sdkClient.providerNumberTypes.getProviderNumberType(providerNumberTypeId)
|
|
22225
|
-
);
|
|
22268
|
+
return sdkClient.providerNumberTypes.getProviderNumberType(providerNumberTypeId);
|
|
22226
22269
|
}));
|
|
22227
22270
|
|
|
22228
22271
|
case 6:
|
|
@@ -22254,8 +22297,7 @@ function _parseProviderSet() {
|
|
|
22254
22297
|
practicesResponse = _yield$Promise$all[1];
|
|
22255
22298
|
providerRegistrations = _yield$Promise$all[2];
|
|
22256
22299
|
providerNumberTypesResponse = _yield$Promise$all[3];
|
|
22257
|
-
fundersMap = fundersResponse.reduce(
|
|
22258
|
-
function (currentFunders, funder) {
|
|
22300
|
+
fundersMap = fundersResponse.reduce(function (currentFunders, funder) {
|
|
22259
22301
|
var _objectSpread2;
|
|
22260
22302
|
|
|
22261
22303
|
return _objectSpread$1h({}, currentFunders, (_objectSpread2 = {}, _objectSpread2[funder._id] = funder, _objectSpread2));
|
|
@@ -22265,20 +22307,17 @@ function _parseProviderSet() {
|
|
|
22265
22307
|
|
|
22266
22308
|
return _objectSpread$1h({}, currentPractices, (_objectSpread3 = {}, _objectSpread3[practice._id] = practice, _objectSpread3));
|
|
22267
22309
|
}, {});
|
|
22268
|
-
providerNumberTypesMap = providerNumberTypesResponse == null ? void 0 : providerNumberTypesResponse.reduce(
|
|
22269
|
-
function (currentProviderNumberTypes, providerNumberType) {
|
|
22310
|
+
providerNumberTypesMap = providerNumberTypesResponse == null ? void 0 : providerNumberTypesResponse.reduce(function (currentProviderNumberTypes, providerNumberType) {
|
|
22270
22311
|
var _objectSpread4;
|
|
22271
22312
|
|
|
22272
22313
|
return _objectSpread$1h({}, currentProviderNumberTypes, (_objectSpread4 = {}, _objectSpread4[providerNumberType._id] = providerNumberType, _objectSpread4));
|
|
22273
|
-
}, {});
|
|
22274
|
-
|
|
22314
|
+
}, {});
|
|
22275
22315
|
newProviderSet = providerSet.map(function (providerData, i) {
|
|
22276
22316
|
return _objectSpread$1h({}, providerData, {}, providerRegistrations[i], {
|
|
22277
|
-
// @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
|
|
22278
22317
|
practice: practicesMap[providerData.practiceId],
|
|
22279
22318
|
funder: fundersMap[providerData.funderId]
|
|
22280
22319
|
}, parseProviderNumberType && {
|
|
22281
|
-
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
|
|
22282
22321
|
});
|
|
22283
22322
|
});
|
|
22284
22323
|
return _context3.abrupt("return", newProviderSet);
|
|
@@ -22556,6 +22595,8 @@ exports.getBulkUploadUrl = getBulkUploadUrl;
|
|
|
22556
22595
|
exports.getBusinesFunderSettingsById = getBusinesFunderSettingsById;
|
|
22557
22596
|
exports.getBusiness = getBusiness;
|
|
22558
22597
|
exports.getBusinessApiKeys = getBusinessApiKeys;
|
|
22598
|
+
exports.getBusinessBillingHistoryRecord = getBusinessBillingHistoryRecord;
|
|
22599
|
+
exports.getBusinessBillingHistoryRecords = getBusinessBillingHistoryRecords;
|
|
22559
22600
|
exports.getBusinessCbo = getBusinessCbo;
|
|
22560
22601
|
exports.getBusinessClaimItem = getBusinessClaimItem;
|
|
22561
22602
|
exports.getBusinessClaimItems = getBusinessClaimItems;
|
|
File without changes
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import type { COUNTRY_CODES } from '../utils/regions';
|
|
2
2
|
export * from './abr';
|
|
3
|
-
export * from './device';
|
|
4
3
|
export * from './blacklist-bank-account';
|
|
4
|
+
export * from './device';
|
|
5
5
|
export * from './documents';
|
|
6
6
|
export * from './filter-option';
|
|
7
7
|
export * from './forms';
|
|
8
|
+
export * from './funder';
|
|
8
9
|
export * from './funder-value';
|
|
9
10
|
export * from './message-mappings';
|
|
10
11
|
export * from './notes';
|
|
12
|
+
export * from './practice';
|
|
11
13
|
export * from './products';
|
|
12
|
-
export * from './professional-
|
|
13
|
-
export * from './
|
|
14
|
+
export * from './professional-category';
|
|
15
|
+
export * from './provider-number-type';
|
|
16
|
+
export * from './provider-registration-type';
|
|
17
|
+
export * from './provider-registration';
|
|
18
|
+
export * from './provider-set-item';
|
|
19
|
+
export * from './specialty';
|
|
14
20
|
export * from './subscriptions';
|
|
15
21
|
export * from './business';
|
|
16
22
|
export declare type MedipassRequestOpts = {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export interface Practice {
|
|
2
|
+
settings: PracticeSettings;
|
|
3
|
+
billingAddress: PracticeBillingAddress;
|
|
4
|
+
settlement: {
|
|
5
|
+
bankAccount: PracticeBankAccount;
|
|
6
|
+
};
|
|
7
|
+
staffIds: string[];
|
|
8
|
+
practiceTypeIds: string[];
|
|
9
|
+
status: string;
|
|
10
|
+
showAddress: boolean;
|
|
11
|
+
tz: string;
|
|
12
|
+
billingNotificationEmails: string[];
|
|
13
|
+
isSignedUp: boolean;
|
|
14
|
+
isInstantQuotesEnabled: boolean;
|
|
15
|
+
_id: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
mobile: string;
|
|
19
|
+
email: string;
|
|
20
|
+
lnglat: [number, number];
|
|
21
|
+
gmapsPlaceId: string;
|
|
22
|
+
address: string;
|
|
23
|
+
countryCode: string;
|
|
24
|
+
country: string;
|
|
25
|
+
state: string;
|
|
26
|
+
city: string;
|
|
27
|
+
postcode: string;
|
|
28
|
+
createdByProvider: string;
|
|
29
|
+
subpremise: string | null;
|
|
30
|
+
streetNumber: string;
|
|
31
|
+
route: string;
|
|
32
|
+
organisationId: string;
|
|
33
|
+
replyToEmail: string;
|
|
34
|
+
businessId: string;
|
|
35
|
+
defaultBenefitPayees: string[];
|
|
36
|
+
created: string;
|
|
37
|
+
modified: string;
|
|
38
|
+
locationId: string;
|
|
39
|
+
_links: PracticeLinks;
|
|
40
|
+
}
|
|
41
|
+
export declare type ShortPracticeResponse = {
|
|
42
|
+
tz: string;
|
|
43
|
+
_id: string;
|
|
44
|
+
fullName: string;
|
|
45
|
+
displayName: string;
|
|
46
|
+
mobile: string;
|
|
47
|
+
email: string;
|
|
48
|
+
lnglat: [number, number];
|
|
49
|
+
gmapsPlaceId: string;
|
|
50
|
+
address: string;
|
|
51
|
+
countryCode: string;
|
|
52
|
+
country: string;
|
|
53
|
+
state: string;
|
|
54
|
+
city: string;
|
|
55
|
+
postcode: string;
|
|
56
|
+
subpremise: string | null;
|
|
57
|
+
streetNumber: string;
|
|
58
|
+
route: string;
|
|
59
|
+
mobileE164: string;
|
|
60
|
+
};
|
|
61
|
+
declare type PracticeSettings = {
|
|
62
|
+
appointments: Record<string, any>;
|
|
63
|
+
directory: PracticeSettingsDirectory;
|
|
64
|
+
quotes: PracticeSettingsQuotes;
|
|
65
|
+
};
|
|
66
|
+
declare type PracticeSettingsDirectory = {
|
|
67
|
+
searchEnabled: boolean;
|
|
68
|
+
};
|
|
69
|
+
declare type PracticeSettingsQuotes = {
|
|
70
|
+
memberRequestQuotesEnabled: boolean;
|
|
71
|
+
};
|
|
72
|
+
declare type PracticeBillingAddress = {
|
|
73
|
+
address: string;
|
|
74
|
+
addressLine2?: string;
|
|
75
|
+
city: string;
|
|
76
|
+
postcode: string;
|
|
77
|
+
state: string;
|
|
78
|
+
};
|
|
79
|
+
declare type PracticeBankAccount = {
|
|
80
|
+
accountName: string;
|
|
81
|
+
accountNumber: string;
|
|
82
|
+
bankName: string;
|
|
83
|
+
bsb: string;
|
|
84
|
+
};
|
|
85
|
+
declare type PracticeLinks = {
|
|
86
|
+
self: Links;
|
|
87
|
+
services: Links;
|
|
88
|
+
staff: Links;
|
|
89
|
+
tranasctions: Links;
|
|
90
|
+
};
|
|
91
|
+
declare type Links = {
|
|
92
|
+
read?: string;
|
|
93
|
+
update?: string;
|
|
94
|
+
delete?: string;
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PaginatedQuery } from './index';
|
|
2
|
+
export interface ProfessionalCategory {
|
|
3
|
+
code: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
fullName: string;
|
|
6
|
+
_id: string;
|
|
7
|
+
description: string;
|
|
8
|
+
created: string;
|
|
9
|
+
modified: string;
|
|
10
|
+
}
|
|
11
|
+
/** START: Requests */
|
|
12
|
+
export declare type GetProfessionalCategoriesQuery = PaginatedQuery & {
|
|
13
|
+
searchText?: string;
|
|
14
|
+
professionalCategoryIds?: string;
|
|
15
|
+
};
|
|
16
|
+
/** END: Requests */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { STAFF_TYPES } from '@medipass/utils/constants';
|
|
2
|
+
export interface ProviderNumberType {
|
|
3
|
+
code: string;
|
|
4
|
+
created: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
fullName: string;
|
|
7
|
+
funderIds: string[];
|
|
8
|
+
modified: string;
|
|
9
|
+
staffType: typeof STAFF_TYPES[keyof typeof STAFF_TYPES];
|
|
10
|
+
_id: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ProviderNumberType, ProfessionalCategory, Specialty, ProviderRegistrationType } from 'types';
|
|
2
|
+
export interface ProviderRegistration {
|
|
3
|
+
specialtyIds: string[];
|
|
4
|
+
providerRegistrationTypeId: string;
|
|
5
|
+
professionalCategoryId: string;
|
|
6
|
+
providerNumber: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type ParsedProviderRegistration = ProviderRegistration & {
|
|
9
|
+
providerNumberType?: ProviderNumberType | undefined;
|
|
10
|
+
professionalCategory: ProfessionalCategory | undefined;
|
|
11
|
+
specialties: Specialty[];
|
|
12
|
+
providerRegistrationType: ProviderRegistrationType | undefined;
|
|
13
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ProviderNumberType, Practice, ProfessionalCategory, Specialty, Funder, ProviderRegistrationType } from 'types';
|
|
2
|
+
export interface ProviderSetItem {
|
|
3
|
+
created: string;
|
|
4
|
+
funderId: string;
|
|
5
|
+
healthFundOverrides: string[];
|
|
6
|
+
practiceId: string;
|
|
7
|
+
professionalCategoryId: string;
|
|
8
|
+
providerNumber: string;
|
|
9
|
+
providerNumberTypeId?: string;
|
|
10
|
+
specialtyIds: string[];
|
|
11
|
+
status: string;
|
|
12
|
+
statusHistory: string[];
|
|
13
|
+
_id: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ProviderSetItemRequestBody {
|
|
16
|
+
funderId: string;
|
|
17
|
+
practiceId: string;
|
|
18
|
+
professionalCategoryId: string;
|
|
19
|
+
providerNumber: string;
|
|
20
|
+
specialtyIds: string[];
|
|
21
|
+
hicaps?: HicapsProviderSetAttributes;
|
|
22
|
+
}
|
|
23
|
+
export interface HicapsProviderSetAttributes {
|
|
24
|
+
address?: string;
|
|
25
|
+
addressPrefix?: string;
|
|
26
|
+
city?: string;
|
|
27
|
+
country?: string;
|
|
28
|
+
postcode?: string;
|
|
29
|
+
state?: string;
|
|
30
|
+
lnglat?: string[];
|
|
31
|
+
gmapsPlaceId?: string;
|
|
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
|
+
};
|