@medipass/web-sdk 11.50.1-feature-healthpoint-upload-endpoints.2 → 11.50.1-feature-parse-provider-ts-support.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.js +1 -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 +2 -2
- 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 +2 -2
- 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-2fb26995.js → staff-e0d846c9.js} +20 -219
- package/lib/types/funder.d.ts +1 -1
- package/lib/types/index.d.ts +3 -7
- package/lib/types/professional-category.d.ts +16 -0
- package/lib/types/provider-set-item.d.ts +2 -2
- package/lib/types/specialties.d.ts +1 -1
- package/lib/types/specialty.d.ts +17 -0
- package/lib/types/staff-member.d.ts +1 -1
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.d.ts +2 -2
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.d.ts +5 -6
- package/lib/utils/staff.js +1 -1
- package/package.json +6 -5
- package/lib/types/professional-categories.d.ts +0 -21
- package/lib/types/professional-categories.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; }
|
|
@@ -21425,95 +21342,6 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
|
|
|
21425
21342
|
return _ref8.apply(this, arguments);
|
|
21426
21343
|
};
|
|
21427
21344
|
}();
|
|
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
21345
|
|
|
21518
21346
|
var aws = /*#__PURE__*/Object.freeze({
|
|
21519
21347
|
__proto__: null,
|
|
@@ -21524,8 +21352,7 @@ var aws = /*#__PURE__*/Object.freeze({
|
|
|
21524
21352
|
uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
|
|
21525
21353
|
uploadInvoiceScanToS3: uploadInvoiceScanToS3,
|
|
21526
21354
|
uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
|
|
21527
|
-
uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
|
|
21528
|
-
uploadAttachmentToS3: uploadAttachmentToS3
|
|
21355
|
+
uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
|
|
21529
21356
|
});
|
|
21530
21357
|
|
|
21531
21358
|
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 +21626,7 @@ function parseProfessions(_x, _x2) {
|
|
|
21799
21626
|
}
|
|
21800
21627
|
|
|
21801
21628
|
function _parseProfessions() {
|
|
21802
|
-
_parseProfessions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(
|
|
21629
|
+
_parseProfessions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(professions, _temp) {
|
|
21803
21630
|
var _professionalCategori, _specialtiesResponse$, _providerTypesRespons;
|
|
21804
21631
|
|
|
21805
21632
|
var _ref, providerRegistrationTypes, professionalCategoryIds, uniqueProfessionalCategoryIds, professionalCategoryIdsString, specialtyIdSets, specialtyIds, uniqueSpecialtyIds, specialtyIdsString, _yield$Promise$all, professionalCategoriesResponse, specialtiesResponse, providerTypesResponse, professionalCategoriesMap, specialtiesMap, providerRegistrationTypesMap, newProfessions;
|
|
@@ -21811,12 +21638,12 @@ function _parseProfessions() {
|
|
|
21811
21638
|
_ref = _temp === void 0 ? {
|
|
21812
21639
|
providerRegistrationTypes: undefined
|
|
21813
21640
|
} : _temp, providerRegistrationTypes = _ref.providerRegistrationTypes;
|
|
21814
|
-
professionalCategoryIds =
|
|
21641
|
+
professionalCategoryIds = professions.map(function (registration) {
|
|
21815
21642
|
return registration.professionalCategoryId;
|
|
21816
21643
|
});
|
|
21817
21644
|
uniqueProfessionalCategoryIds = _uniq(professionalCategoryIds).filter(Boolean);
|
|
21818
21645
|
professionalCategoryIdsString = uniqueProfessionalCategoryIds.join(',');
|
|
21819
|
-
specialtyIdSets =
|
|
21646
|
+
specialtyIdSets = professions.map(function (registration) {
|
|
21820
21647
|
return registration.specialtyIds;
|
|
21821
21648
|
});
|
|
21822
21649
|
specialtyIds = _flatten(specialtyIdSets);
|
|
@@ -21853,11 +21680,9 @@ function _parseProfessions() {
|
|
|
21853
21680
|
|
|
21854
21681
|
return _objectSpread$1f({}, currentProviderType, (_objectSpread4 = {}, _objectSpread4[providerType._id] = providerType, _objectSpread4));
|
|
21855
21682
|
}, {});
|
|
21856
|
-
newProfessions =
|
|
21857
|
-
var _registration$special;
|
|
21858
|
-
|
|
21683
|
+
newProfessions = professions.map(function (registration) {
|
|
21859
21684
|
var professionalCategory = professionalCategoriesMap == null ? void 0 : professionalCategoriesMap[registration.professionalCategoryId];
|
|
21860
|
-
var specialties = registration
|
|
21685
|
+
var specialties = registration.specialtyIds.map(function (specialtyId) {
|
|
21861
21686
|
return specialtiesMap == null ? void 0 : specialtiesMap[specialtyId];
|
|
21862
21687
|
}).filter(function (specialty) {
|
|
21863
21688
|
return !!specialty;
|
|
@@ -21865,7 +21690,7 @@ function _parseProfessions() {
|
|
|
21865
21690
|
var providerRegistrationType;
|
|
21866
21691
|
|
|
21867
21692
|
if ('providerRegistrationTypeId' in registration) {
|
|
21868
|
-
providerRegistrationType = providerRegistrationTypesMap[registration == null ? void 0 : registration.providerRegistrationTypeId];
|
|
21693
|
+
providerRegistrationType = registration != null && registration.providerRegistrationTypeId ? providerRegistrationTypesMap == null ? void 0 : providerRegistrationTypesMap[registration == null ? void 0 : registration.providerRegistrationTypeId] : undefined;
|
|
21869
21694
|
}
|
|
21870
21695
|
|
|
21871
21696
|
return {
|
|
@@ -22337,16 +22162,10 @@ function _parseProviderSet() {
|
|
|
22337
22162
|
while (1) {
|
|
22338
22163
|
switch (_context.prev = _context.next) {
|
|
22339
22164
|
case 0:
|
|
22340
|
-
practiceIds = providerSet
|
|
22341
|
-
|
|
22342
|
-
return providerData == null ? void 0 : providerData.practiceId;
|
|
22343
|
-
}
|
|
22344
|
-
|
|
22345
|
-
return undefined;
|
|
22346
|
-
});
|
|
22347
|
-
uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
|
|
22348
|
-
return !!practiceId;
|
|
22165
|
+
practiceIds = providerSet.map(function (providerData) {
|
|
22166
|
+
return providerData.practiceId;
|
|
22349
22167
|
});
|
|
22168
|
+
uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
|
|
22350
22169
|
practices = [];
|
|
22351
22170
|
_context.next = 5;
|
|
22352
22171
|
return Promise.all(uniquePracticeIds.map(function (practiceId) {
|
|
@@ -22389,12 +22208,8 @@ function _parseProviderSet() {
|
|
|
22389
22208
|
return _context2.abrupt("return", _providerNumberTypes);
|
|
22390
22209
|
|
|
22391
22210
|
case 2:
|
|
22392
|
-
providerNumberTypeIds = providerSet
|
|
22393
|
-
|
|
22394
|
-
return providerData == null ? void 0 : providerData.providerNumberTypeId;
|
|
22395
|
-
}
|
|
22396
|
-
|
|
22397
|
-
return undefined;
|
|
22211
|
+
providerNumberTypeIds = providerSet.map(function (providerData) {
|
|
22212
|
+
return providerData.providerNumberTypeId;
|
|
22398
22213
|
});
|
|
22399
22214
|
uniqueProviderNumberTypeIds = _uniq(providerNumberTypeIds).filter(Boolean).filter(function (providerNumberTypeId) {
|
|
22400
22215
|
return !!providerNumberTypeId;
|
|
@@ -22448,20 +22263,13 @@ function _parseProviderSet() {
|
|
|
22448
22263
|
|
|
22449
22264
|
return _objectSpread$1h({}, currentProviderNumberTypes, (_objectSpread4 = {}, _objectSpread4[providerNumberType._id] = providerNumberType, _objectSpread4));
|
|
22450
22265
|
}, {});
|
|
22451
|
-
newProviderSet = providerSet
|
|
22452
|
-
return _objectSpread$1h({}, providerData, {}, providerRegistrations
|
|
22453
|
-
practice: practicesMap[providerData
|
|
22454
|
-
|
|
22455
|
-
|
|
22456
|
-
|
|
22457
|
-
|
|
22458
|
-
} : {
|
|
22459
|
-
funder: undefined
|
|
22460
|
-
}, {}, parseProviderNumberType && _objectSpread$1h({}, 'providerNumberTypeId' in providerData ? {
|
|
22461
|
-
providerNumberType: providerData != null && providerData.providerNumberTypeId ? providerNumberTypesMap[providerData == null ? void 0 : providerData.providerNumberTypeId] : undefined
|
|
22462
|
-
} : {
|
|
22463
|
-
providerNumberType: undefined
|
|
22464
|
-
}));
|
|
22266
|
+
newProviderSet = providerSet.map(function (providerData, i) {
|
|
22267
|
+
return _objectSpread$1h({}, providerData, {}, providerRegistrations[i], {
|
|
22268
|
+
practice: practicesMap[providerData.practiceId],
|
|
22269
|
+
funder: fundersMap[providerData.funderId]
|
|
22270
|
+
}, parseProviderNumberType && {
|
|
22271
|
+
providerNumberType: providerData != null && providerData.providerNumberTypeId ? providerNumberTypesMap == null ? void 0 : providerNumberTypesMap[providerData == null ? void 0 : providerData.providerNumberTypeId] : undefined
|
|
22272
|
+
});
|
|
22465
22273
|
});
|
|
22466
22274
|
return _context3.abrupt("return", newProviderSet);
|
|
22467
22275
|
|
|
@@ -22731,7 +22539,6 @@ exports.getAction = getAction;
|
|
|
22731
22539
|
exports.getActions = getActions;
|
|
22732
22540
|
exports.getApplication = getApplication;
|
|
22733
22541
|
exports.getApplications = getApplications;
|
|
22734
|
-
exports.getAttachmentUrl = getAttachmentUrl;
|
|
22735
22542
|
exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
|
|
22736
22543
|
exports.getBsbDetails = getBsbDetails;
|
|
22737
22544
|
exports.getBulkUpload = getBulkUpload;
|
|
@@ -22800,7 +22607,6 @@ exports.getBusinessProducts = getBusinessProducts;
|
|
|
22800
22607
|
exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
|
|
22801
22608
|
exports.getBusinessRNA = getBusinessRNA;
|
|
22802
22609
|
exports.getBusinessRNAs = getBusinessRNAs;
|
|
22803
|
-
exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
|
|
22804
22610
|
exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
|
|
22805
22611
|
exports.getBusinessService = getBusinessService;
|
|
22806
22612
|
exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
|
|
@@ -23050,8 +22856,6 @@ exports.pathFunderValues = pathFunderValues;
|
|
|
23050
22856
|
exports.pathFunderValuesById = pathFunderValuesById;
|
|
23051
22857
|
exports.pathFuture = pathFuture;
|
|
23052
22858
|
exports.pathGetAbr = pathGetAbr;
|
|
23053
|
-
exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
|
|
23054
|
-
exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
|
|
23055
22859
|
exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
|
|
23056
22860
|
exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
|
|
23057
22861
|
exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
|
|
@@ -23118,7 +22922,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
|
|
|
23118
22922
|
exports.pathResetTerminal = pathResetTerminal;
|
|
23119
22923
|
exports.pathResumeComplexVerification = pathResumeComplexVerification;
|
|
23120
22924
|
exports.pathScanClaimFile = pathScanClaimFile;
|
|
23121
|
-
exports.pathScanFile = pathScanFile;
|
|
23122
22925
|
exports.pathSendReceipt = pathSendReceipt;
|
|
23123
22926
|
exports.pathSendWorkerMessage = pathSendWorkerMessage;
|
|
23124
22927
|
exports.pathSignUp = pathSignUp;
|
|
@@ -23192,7 +22995,6 @@ exports.saveDraft = saveDraft;
|
|
|
23192
22995
|
exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
|
|
23193
22996
|
exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
|
|
23194
22997
|
exports.scanClaimFile = scanClaimFile;
|
|
23195
|
-
exports.scanFile = scanFile;
|
|
23196
22998
|
exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
|
|
23197
22999
|
exports.sdk = sdkClient;
|
|
23198
23000
|
exports.sdkClient = sdkClient;
|
|
@@ -23285,7 +23087,6 @@ exports.updateService = updateService;
|
|
|
23285
23087
|
exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
|
|
23286
23088
|
exports.updateTerminal = updateTerminal;
|
|
23287
23089
|
exports.updateTransaction = updateTransaction;
|
|
23288
|
-
exports.uploadAttachmentToS3 = uploadAttachmentToS3;
|
|
23289
23090
|
exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
|
|
23290
23091
|
exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
|
|
23291
23092
|
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,22 @@
|
|
|
1
|
+
import type { PaginationMeta, 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 */
|
|
17
|
+
/** START: Responses */
|
|
18
|
+
export declare type ProfessionalCategoriesResponse = {
|
|
19
|
+
meta: PaginationMeta;
|
|
20
|
+
items: Array<ProfessionalCategory>;
|
|
21
|
+
};
|
|
22
|
+
/** END: Responses */
|
|
@@ -32,8 +32,8 @@ export interface HicapsProviderSetAttributes {
|
|
|
32
32
|
}
|
|
33
33
|
export declare type ParsedProviderSetItem = ProviderSetItem & {
|
|
34
34
|
providerNumberType?: ProviderNumberType | undefined;
|
|
35
|
-
funder
|
|
36
|
-
practice
|
|
35
|
+
funder: Funder;
|
|
36
|
+
practice: Practice;
|
|
37
37
|
professionalCategory: ProfessionalCategory | undefined;
|
|
38
38
|
specialties: Specialty[];
|
|
39
39
|
providerRegistrationType: ProviderRegistrationType | undefined;
|
|
@@ -2,8 +2,8 @@ import type { PaginationMeta, PaginatedQuery } from './index';
|
|
|
2
2
|
/** START: Requests */
|
|
3
3
|
export declare type GetSpecialtiesQuery = PaginatedQuery & {
|
|
4
4
|
professionalCategoryId?: string;
|
|
5
|
-
specialtyIds?: string;
|
|
6
5
|
searchText?: string;
|
|
6
|
+
specialtyIds?: string;
|
|
7
7
|
};
|
|
8
8
|
/** START: Requests */
|
|
9
9
|
/** START: Responses */
|
package/lib/types/specialty.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
1
2
|
export interface Specialty {
|
|
2
3
|
code: string;
|
|
3
4
|
displayName: string;
|
|
4
5
|
fullName: string;
|
|
5
6
|
professionalCategoryId: string;
|
|
6
7
|
_id: string;
|
|
8
|
+
description: string;
|
|
9
|
+
created: string;
|
|
10
|
+
modified: string;
|
|
7
11
|
}
|
|
12
|
+
/** START: Requests */
|
|
13
|
+
export declare type GetSpecialtiesQuery = PaginatedQuery & {
|
|
14
|
+
professionalCategoryId?: string;
|
|
15
|
+
searchText?: string;
|
|
16
|
+
specialtyIds?: string;
|
|
17
|
+
};
|
|
18
|
+
/** END: Requests */
|
|
19
|
+
/** START: Responses */
|
|
20
|
+
export declare type SpecialtiesResponse = {
|
|
21
|
+
meta: PaginationMeta;
|
|
22
|
+
items: Array<Specialty>;
|
|
23
|
+
};
|
|
24
|
+
/** END: Responses */
|
|
@@ -18,7 +18,7 @@ export declare type StaffMember = {
|
|
|
18
18
|
created: string;
|
|
19
19
|
organisationId: string;
|
|
20
20
|
businessId: string;
|
|
21
|
-
providerSet
|
|
21
|
+
providerSet: ProviderSetItem[];
|
|
22
22
|
providerRegistrations: ProviderRegistration[];
|
|
23
23
|
refId: string;
|
|
24
24
|
refSource: string;
|
package/lib/utils/application.js
CHANGED
|
@@ -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-
|
|
17
|
+
var request = require('../staff-e0d846c9.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { PaginatedResponse, ProviderRegistrationType,
|
|
1
|
+
import type { ProviderSetItem, PaginatedResponse, ProviderRegistrationType, ProfessionalCategory, Specialty, ProviderRegistration } from '../index';
|
|
2
2
|
export declare type ParseProfessionsResponse = {
|
|
3
3
|
professionalCategory: ProfessionalCategory | undefined;
|
|
4
4
|
specialties: Specialty[];
|
|
5
5
|
providerRegistrationType: ProviderRegistrationType | undefined;
|
|
6
6
|
}[];
|
|
7
|
-
export declare function parseProfessions(
|
|
7
|
+
export declare function parseProfessions(professions: (ProviderSetItem | ProviderRegistration)[], { providerRegistrationTypes }?: {
|
|
8
8
|
providerRegistrationTypes?: PaginatedResponse<ProviderRegistrationType>;
|
|
9
9
|
}): Promise<ParseProfessionsResponse>;
|
package/lib/utils/professions.js
CHANGED
|
@@ -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-
|
|
17
|
+
var request = require('../staff-e0d846c9.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
package/lib/utils/request.js
CHANGED
|
@@ -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-
|
|
17
|
+
var request = require('../staff-e0d846c9.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
package/lib/utils/staff.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import type { Funder, PaginatedResponse, ParsedProviderSetItem, ProviderNumberType, ProviderRegistration, ProviderRegistrationType, ProviderSetItem } from '../index';
|
|
1
2
|
import * as professionsUtils from './professions';
|
|
2
|
-
|
|
3
|
-
export declare function parseProviderSet(providerSet: (ProviderSetItem | ProviderRegistration)[], { businessId, funders, providerRegistrationTypes, providerNumberTypes: _providerNumberTypes, parseProviderNumberType }: {
|
|
3
|
+
export declare function parseProviderSet(providerSet: ProviderSetItem[], { businessId, funders, providerRegistrationTypes, providerNumberTypes: _providerNumberTypes, parseProviderNumberType }: {
|
|
4
4
|
businessId: string;
|
|
5
5
|
funders?: Funder[];
|
|
6
|
-
providerRegistrationTypes
|
|
6
|
+
providerRegistrationTypes?: PaginatedResponse<ProviderRegistrationType>;
|
|
7
7
|
providerNumberTypes?: ProviderNumberType[];
|
|
8
8
|
parseProviderNumberType?: boolean;
|
|
9
|
-
}): Promise<
|
|
10
|
-
export declare
|
|
11
|
-
export declare function parseProviderRegistrations(providerRegistrations: StaffMember['providerRegistrations'], opts?: {}): Promise<ParseProviderRegistrationResponse>;
|
|
9
|
+
}): Promise<ParsedProviderSetItem[]>;
|
|
10
|
+
export declare function parseProviderRegistrations(providerRegistrations: ProviderRegistration[], opts?: {}): Promise<ProviderRegistration[] & professionsUtils.ParseProfessionsResponse>;
|
package/lib/utils/staff.js
CHANGED
|
@@ -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-
|
|
17
|
+
var request = require('../staff-e0d846c9.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.50.1-feature-
|
|
3
|
+
"version": "11.50.1-feature-parse-provider-ts-support.0",
|
|
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.
|
|
49
|
-
"@types/jest": "
|
|
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.
|
|
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": "
|
|
60
|
+
"gitHead": "e1f29008d70f421b655c3c799f4304730a9f1baf"
|
|
60
61
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
-
/** START: Requests */
|
|
3
|
-
export declare type GetProfessionalCategoriesQuery = PaginatedQuery & {
|
|
4
|
-
searchText?: string;
|
|
5
|
-
professionalCategoryIds?: string;
|
|
6
|
-
};
|
|
7
|
-
/** START: Requests */
|
|
8
|
-
/** START: Responses */
|
|
9
|
-
export declare type ProfessionalCategoryResponse = {
|
|
10
|
-
_id: string;
|
|
11
|
-
fullName: string;
|
|
12
|
-
displayName: string;
|
|
13
|
-
description: string;
|
|
14
|
-
created: string;
|
|
15
|
-
modified: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type ProfessionalCategoriesResponse = {
|
|
18
|
-
meta: PaginationMeta;
|
|
19
|
-
items: Array<ProfessionalCategoryResponse>;
|
|
20
|
-
};
|
|
21
|
-
/** END: Responses */
|
|
@@ -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
|
-
}
|
package/lib/types/virus-scan.js
DELETED