@medipass/web-sdk 11.50.1-feature-healthpoint-upload-endpoints.1 → 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.
Files changed (104) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/resources/abr.js +1 -1
  3. package/lib/resources/accounts.js +1 -1
  4. package/lib/resources/actions.js +1 -1
  5. package/lib/resources/api-keys.js +1 -1
  6. package/lib/resources/applications.js +1 -1
  7. package/lib/resources/attachments.d.ts +1 -35
  8. package/lib/resources/attachments.js +1 -7
  9. package/lib/resources/auth.js +1 -1
  10. package/lib/resources/blacklist.js +1 -1
  11. package/lib/resources/bulk-submits.js +1 -1
  12. package/lib/resources/bulk-uploads.js +1 -1
  13. package/lib/resources/business-profiles.js +1 -1
  14. package/lib/resources/businesses.js +1 -1
  15. package/lib/resources/claim-items.js +1 -1
  16. package/lib/resources/devices.js +1 -1
  17. package/lib/resources/doc-accounts.js +1 -1
  18. package/lib/resources/documents.js +1 -1
  19. package/lib/resources/emails.js +1 -1
  20. package/lib/resources/filter-options.js +1 -1
  21. package/lib/resources/form-application-templates.js +1 -1
  22. package/lib/resources/form-applications.js +1 -1
  23. package/lib/resources/forms.js +1 -1
  24. package/lib/resources/funder-services.js +1 -1
  25. package/lib/resources/funder-settings.js +1 -1
  26. package/lib/resources/funder-values.js +1 -1
  27. package/lib/resources/funders.js +1 -1
  28. package/lib/resources/futures.js +1 -1
  29. package/lib/resources/health-fund-accounts.js +1 -1
  30. package/lib/resources/health-fund-settings.js +1 -1
  31. package/lib/resources/healthfunds.js +1 -1
  32. package/lib/resources/icditems.js +1 -1
  33. package/lib/resources/invoice-scans.js +1 -1
  34. package/lib/resources/jhcs.js +1 -1
  35. package/lib/resources/kyc.js +1 -1
  36. package/lib/resources/logs.js +1 -1
  37. package/lib/resources/members.js +1 -1
  38. package/lib/resources/message-mappings.js +1 -1
  39. package/lib/resources/minions.js +1 -1
  40. package/lib/resources/modalities.js +1 -1
  41. package/lib/resources/notes.js +1 -1
  42. package/lib/resources/onboarding-applications.js +1 -1
  43. package/lib/resources/onboarding-requests.js +1 -1
  44. package/lib/resources/ops.js +1 -1
  45. package/lib/resources/organisations.js +1 -1
  46. package/lib/resources/partners.js +1 -1
  47. package/lib/resources/patients.js +1 -1
  48. package/lib/resources/payments.js +1 -1
  49. package/lib/resources/pms.js +1 -1
  50. package/lib/resources/practice-profiles.js +1 -1
  51. package/lib/resources/practice-types.js +1 -1
  52. package/lib/resources/practices.js +1 -1
  53. package/lib/resources/products.js +1 -1
  54. package/lib/resources/professional-categories.d.ts +2 -2
  55. package/lib/resources/professional-categories.js +1 -1
  56. package/lib/resources/provider-number-types.js +1 -1
  57. package/lib/resources/provider-registration-types.js +1 -1
  58. package/lib/resources/provider-requests.js +1 -1
  59. package/lib/resources/provider-types.js +1 -1
  60. package/lib/resources/ref-sources.js +1 -1
  61. package/lib/resources/risk.js +1 -1
  62. package/lib/resources/rnas.js +1 -1
  63. package/lib/resources/roles.js +1 -1
  64. package/lib/resources/self-checkout-sessions.js +1 -1
  65. package/lib/resources/services.js +1 -1
  66. package/lib/resources/settlements.js +1 -1
  67. package/lib/resources/sign-up.js +1 -1
  68. package/lib/resources/specialties.d.ts +2 -2
  69. package/lib/resources/specialties.js +1 -1
  70. package/lib/resources/staff-profiles.js +1 -1
  71. package/lib/resources/staff.js +1 -1
  72. package/lib/resources/statistics.js +1 -1
  73. package/lib/resources/subscriptions.js +1 -1
  74. package/lib/resources/terminals.js +1 -1
  75. package/lib/resources/transaction-export.js +1 -1
  76. package/lib/resources/transactions.js +1 -1
  77. package/lib/resources/triggers.js +1 -1
  78. package/lib/resources/vendors.js +1 -1
  79. package/lib/resources/verify.js +1 -1
  80. package/lib/resources/workers.js +1 -1
  81. package/lib/resources/workflow-exceptions.js +1 -1
  82. package/lib/services/aws.d.ts +0 -10
  83. package/lib/services/aws.js +1 -2
  84. package/lib/services/version.js +1 -1
  85. package/lib/{staff-fcff4468.js → staff-e0d846c9.js} +22 -219
  86. package/lib/types/funder.d.ts +1 -1
  87. package/lib/types/index.d.ts +3 -7
  88. package/lib/types/professional-category.d.ts +16 -0
  89. package/lib/types/provider-registration.d.ts +4 -10
  90. package/lib/types/provider-set-item.d.ts +8 -19
  91. package/lib/types/specialties.d.ts +1 -1
  92. package/lib/types/specialty.d.ts +17 -0
  93. package/lib/types/staff-member.d.ts +1 -1
  94. package/lib/utils/application.js +1 -1
  95. package/lib/utils/professions.d.ts +3 -3
  96. package/lib/utils/professions.js +1 -1
  97. package/lib/utils/request.js +1 -1
  98. package/lib/utils/staff.d.ts +5 -122
  99. package/lib/utils/staff.js +1 -1
  100. package/package.json +6 -5
  101. package/lib/types/professional-categories.d.ts +0 -21
  102. package/lib/types/professional-categories.js +0 -2
  103. package/lib/types/virus-scan.d.ts +0 -13
  104. 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(registration, _temp) {
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 = registration == null ? void 0 : registration.map(function (registration) {
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 = registration.map(function (registration) {
21646
+ specialtyIdSets = professions.map(function (registration) {
21820
21647
  return registration.specialtyIds;
21821
21648
  });
21822
21649
  specialtyIds = _flatten(specialtyIdSets);
@@ -21853,17 +21680,17 @@ function _parseProfessions() {
21853
21680
 
21854
21681
  return _objectSpread$1f({}, currentProviderType, (_objectSpread4 = {}, _objectSpread4[providerType._id] = providerType, _objectSpread4));
21855
21682
  }, {});
21856
- newProfessions = registration == null ? void 0 : registration.map(function (registration) {
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 == null ? void 0 : (_registration$special = registration.specialtyIds) == null ? void 0 : _registration$special.map(function (specialtyId) {
21685
+ var specialties = registration.specialtyIds.map(function (specialtyId) {
21861
21686
  return specialtiesMap == null ? void 0 : specialtiesMap[specialtyId];
21687
+ }).filter(function (specialty) {
21688
+ return !!specialty;
21862
21689
  });
21863
21690
  var providerRegistrationType;
21864
21691
 
21865
21692
  if ('providerRegistrationTypeId' in registration) {
21866
- 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;
21867
21694
  }
21868
21695
 
21869
21696
  return {
@@ -22335,16 +22162,10 @@ function _parseProviderSet() {
22335
22162
  while (1) {
22336
22163
  switch (_context.prev = _context.next) {
22337
22164
  case 0:
22338
- practiceIds = providerSet == null ? void 0 : providerSet.map(function (providerData) {
22339
- if ('practiceId' in providerData) {
22340
- return providerData == null ? void 0 : providerData.practiceId;
22341
- }
22342
-
22343
- return undefined;
22344
- });
22345
- uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
22346
- return !!practiceId;
22165
+ practiceIds = providerSet.map(function (providerData) {
22166
+ return providerData.practiceId;
22347
22167
  });
22168
+ uniquePracticeIds = _uniq(practiceIds).filter(Boolean);
22348
22169
  practices = [];
22349
22170
  _context.next = 5;
22350
22171
  return Promise.all(uniquePracticeIds.map(function (practiceId) {
@@ -22387,12 +22208,8 @@ function _parseProviderSet() {
22387
22208
  return _context2.abrupt("return", _providerNumberTypes);
22388
22209
 
22389
22210
  case 2:
22390
- providerNumberTypeIds = providerSet == null ? void 0 : providerSet.map(function (providerData) {
22391
- if ('providerNumberTypeId' in providerData) {
22392
- return providerData == null ? void 0 : providerData.providerNumberTypeId;
22393
- }
22394
-
22395
- return undefined;
22211
+ providerNumberTypeIds = providerSet.map(function (providerData) {
22212
+ return providerData.providerNumberTypeId;
22396
22213
  });
22397
22214
  uniqueProviderNumberTypeIds = _uniq(providerNumberTypeIds).filter(Boolean).filter(function (providerNumberTypeId) {
22398
22215
  return !!providerNumberTypeId;
@@ -22446,20 +22263,13 @@ function _parseProviderSet() {
22446
22263
 
22447
22264
  return _objectSpread$1h({}, currentProviderNumberTypes, (_objectSpread4 = {}, _objectSpread4[providerNumberType._id] = providerNumberType, _objectSpread4));
22448
22265
  }, {});
22449
- newProviderSet = providerSet == null ? void 0 : providerSet.map(function (providerData, i) {
22450
- return _objectSpread$1h({}, providerData, {}, providerRegistrations == null ? void 0 : providerRegistrations[i], {}, 'practiceId' in providerData ? {
22451
- practice: practicesMap[providerData == null ? void 0 : providerData.practiceId]
22452
- } : {
22453
- practice: undefined
22454
- }, {}, 'funderId' in providerData ? {
22455
- funder: fundersMap[providerData == null ? void 0 : providerData.funderId]
22456
- } : {
22457
- funder: undefined
22458
- }, {}, parseProviderNumberType && _objectSpread$1h({}, 'providerNumberTypeId' in providerData ? {
22459
- providerNumberType: providerData != null && providerData.providerNumberTypeId ? providerNumberTypesMap[providerData == null ? void 0 : providerData.providerNumberTypeId] : undefined
22460
- } : {
22461
- providerNumberType: undefined
22462
- }));
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
+ });
22463
22273
  });
22464
22274
  return _context3.abrupt("return", newProviderSet);
22465
22275
 
@@ -22729,7 +22539,6 @@ exports.getAction = getAction;
22729
22539
  exports.getActions = getActions;
22730
22540
  exports.getApplication = getApplication;
22731
22541
  exports.getApplications = getApplications;
22732
- exports.getAttachmentUrl = getAttachmentUrl;
22733
22542
  exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
22734
22543
  exports.getBsbDetails = getBsbDetails;
22735
22544
  exports.getBulkUpload = getBulkUpload;
@@ -22798,7 +22607,6 @@ exports.getBusinessProducts = getBusinessProducts;
22798
22607
  exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
22799
22608
  exports.getBusinessRNA = getBusinessRNA;
22800
22609
  exports.getBusinessRNAs = getBusinessRNAs;
22801
- exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
22802
22610
  exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
22803
22611
  exports.getBusinessService = getBusinessService;
22804
22612
  exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
@@ -23048,8 +22856,6 @@ exports.pathFunderValues = pathFunderValues;
23048
22856
  exports.pathFunderValuesById = pathFunderValuesById;
23049
22857
  exports.pathFuture = pathFuture;
23050
22858
  exports.pathGetAbr = pathGetAbr;
23051
- exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
23052
- exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
23053
22859
  exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
23054
22860
  exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
23055
22861
  exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
@@ -23116,7 +22922,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
23116
22922
  exports.pathResetTerminal = pathResetTerminal;
23117
22923
  exports.pathResumeComplexVerification = pathResumeComplexVerification;
23118
22924
  exports.pathScanClaimFile = pathScanClaimFile;
23119
- exports.pathScanFile = pathScanFile;
23120
22925
  exports.pathSendReceipt = pathSendReceipt;
23121
22926
  exports.pathSendWorkerMessage = pathSendWorkerMessage;
23122
22927
  exports.pathSignUp = pathSignUp;
@@ -23190,7 +22995,6 @@ exports.saveDraft = saveDraft;
23190
22995
  exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
23191
22996
  exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
23192
22997
  exports.scanClaimFile = scanClaimFile;
23193
- exports.scanFile = scanFile;
23194
22998
  exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
23195
22999
  exports.sdk = sdkClient;
23196
23000
  exports.sdkClient = sdkClient;
@@ -23283,7 +23087,6 @@ exports.updateService = updateService;
23283
23087
  exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
23284
23088
  exports.updateTerminal = updateTerminal;
23285
23089
  exports.updateTransaction = updateTransaction;
23286
- exports.uploadAttachmentToS3 = uploadAttachmentToS3;
23287
23090
  exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
23288
23091
  exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
23289
23092
  exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
@@ -4,7 +4,7 @@ export declare type Funder = {
4
4
  displayName: string;
5
5
  fullName: string;
6
6
  modified: string;
7
- whitelistedProfessionalCategoryIds: Array<string>;
7
+ whitelistedProfessionalCategoryIds: string[];
8
8
  providerSetFunderIdOverride?: string;
9
9
  _id: string;
10
10
  };
@@ -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 './professional-category';
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 './virus-scan';
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 */
@@ -5,15 +5,9 @@ export interface ProviderRegistration {
5
5
  professionalCategoryId: string;
6
6
  providerNumber: string;
7
7
  }
8
- export interface ParsedProviderRegistration {
8
+ export declare type ParsedProviderRegistration = ProviderRegistration & {
9
9
  providerNumberType?: ProviderNumberType | undefined;
10
- funder: undefined;
11
- practice: undefined;
12
10
  professionalCategory: ProfessionalCategory | undefined;
13
- specialties: (Specialty | undefined)[];
14
- providerRegistrationType: ProviderRegistrationType;
15
- specialtyIds: string[];
16
- providerRegistrationTypeId: string;
17
- professionalCategoryId: string;
18
- providerNumber: string;
19
- }
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
- funder: Funder | undefined;
5
- practice?: Practice;
6
- professionalCategory: ProfessionalCategory | undefined;
7
- specialties: (Specialty | undefined)[];
8
- providerRegistrationType: ProviderRegistrationType;
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
+ };
@@ -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 */
@@ -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?: ProviderSetItem[];
21
+ providerSet: ProviderSetItem[];
22
22
  providerRegistrations: ProviderRegistration[];
23
23
  refId: string;
24
24
  refSource: string;
@@ -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-fcff4468.js');
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, Specialty, ProfessionalCategory, ProviderSetItem, ProviderRegistration } from 'types';
1
+ import type { ProviderSetItem, PaginatedResponse, ProviderRegistrationType, ProfessionalCategory, Specialty, ProviderRegistration } from '../index';
2
2
  export declare type ParseProfessionsResponse = {
3
3
  professionalCategory: ProfessionalCategory | undefined;
4
- specialties: (Specialty | undefined)[];
4
+ specialties: Specialty[];
5
5
  providerRegistrationType: ProviderRegistrationType | undefined;
6
6
  }[];
7
- export declare function parseProfessions(registration: (ProviderSetItem | ProviderRegistration)[], { providerRegistrationTypes }?: {
7
+ export declare function parseProfessions(professions: (ProviderSetItem | ProviderRegistration)[], { providerRegistrationTypes }?: {
8
8
  providerRegistrationTypes?: PaginatedResponse<ProviderRegistrationType>;
9
9
  }): Promise<ParseProfessionsResponse>;
@@ -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-fcff4468.js');
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');
@@ -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-fcff4468.js');
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');