@medipass/web-sdk 11.48.5-fix-utils-ts.6 → 11.48.6-chore-update-react-18.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 (97) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/index.js +2 -6
  3. package/lib/{regions-0da90c43.js → regions-c5eabe3a.js} +6 -6
  4. package/lib/resources/abr.js +2 -6
  5. package/lib/resources/accounts.js +2 -6
  6. package/lib/resources/actions.js +2 -6
  7. package/lib/resources/api-keys.js +2 -6
  8. package/lib/resources/applications.js +2 -6
  9. package/lib/resources/attachments.js +2 -6
  10. package/lib/resources/auth.js +2 -6
  11. package/lib/resources/blacklist.js +2 -6
  12. package/lib/resources/bulk-submits.js +2 -6
  13. package/lib/resources/bulk-uploads.js +2 -6
  14. package/lib/resources/business-profiles.js +2 -6
  15. package/lib/resources/businesses.js +2 -6
  16. package/lib/resources/claim-items.js +2 -6
  17. package/lib/resources/devices.js +2 -6
  18. package/lib/resources/doc-accounts.js +2 -6
  19. package/lib/resources/documents.js +2 -6
  20. package/lib/resources/emails.js +2 -6
  21. package/lib/resources/filter-options.js +2 -6
  22. package/lib/resources/form-application-templates.js +2 -6
  23. package/lib/resources/form-applications.js +2 -6
  24. package/lib/resources/forms.js +2 -6
  25. package/lib/resources/funder-services.js +2 -6
  26. package/lib/resources/funder-settings.js +2 -6
  27. package/lib/resources/funder-values.js +2 -6
  28. package/lib/resources/funders.js +2 -6
  29. package/lib/resources/futures.js +2 -6
  30. package/lib/resources/health-fund-accounts.js +2 -6
  31. package/lib/resources/health-fund-settings.js +2 -6
  32. package/lib/resources/healthfunds.js +2 -6
  33. package/lib/resources/icditems.js +2 -6
  34. package/lib/resources/invoice-scans.js +2 -6
  35. package/lib/resources/jhcs.js +2 -6
  36. package/lib/resources/kyc.js +2 -6
  37. package/lib/resources/logs.js +2 -6
  38. package/lib/resources/members.js +2 -6
  39. package/lib/resources/message-mappings.js +2 -6
  40. package/lib/resources/minions.js +2 -6
  41. package/lib/resources/modalities.js +2 -6
  42. package/lib/resources/notes.js +2 -6
  43. package/lib/resources/onboarding-applications.js +2 -6
  44. package/lib/resources/onboarding-requests.js +2 -6
  45. package/lib/resources/ops.js +2 -6
  46. package/lib/resources/organisations.js +2 -6
  47. package/lib/resources/partners.js +2 -6
  48. package/lib/resources/patients.js +2 -6
  49. package/lib/resources/payments.js +2 -6
  50. package/lib/resources/pms.js +2 -6
  51. package/lib/resources/practice-profiles.js +2 -6
  52. package/lib/resources/practice-types.js +2 -6
  53. package/lib/resources/practices.js +2 -6
  54. package/lib/resources/products.js +2 -6
  55. package/lib/resources/professional-categories.js +2 -6
  56. package/lib/resources/provider-number-types.js +2 -6
  57. package/lib/resources/provider-registration-types.js +2 -6
  58. package/lib/resources/provider-requests.js +2 -6
  59. package/lib/resources/provider-types.js +2 -6
  60. package/lib/resources/ref-sources.js +2 -6
  61. package/lib/resources/risk.js +2 -6
  62. package/lib/resources/rnas.js +2 -6
  63. package/lib/resources/roles.js +2 -6
  64. package/lib/resources/self-checkout-sessions.js +2 -6
  65. package/lib/resources/services.js +2 -6
  66. package/lib/resources/settlements.js +2 -6
  67. package/lib/resources/sign-up.js +2 -6
  68. package/lib/resources/specialties.js +2 -6
  69. package/lib/resources/staff-profiles.js +2 -6
  70. package/lib/resources/staff.js +2 -6
  71. package/lib/resources/statistics.js +2 -6
  72. package/lib/resources/subscriptions.js +2 -6
  73. package/lib/resources/terminals.js +2 -6
  74. package/lib/resources/transaction-export.js +2 -6
  75. package/lib/resources/transactions.js +2 -6
  76. package/lib/resources/triggers.js +2 -6
  77. package/lib/resources/vendors.js +2 -6
  78. package/lib/resources/verify.js +2 -6
  79. package/lib/resources/workers.js +2 -6
  80. package/lib/resources/workflow-exceptions.js +2 -6
  81. package/lib/services/aws.js +2 -6
  82. package/lib/services/storage.d.ts +2 -2
  83. package/lib/services/storage.js +40 -68
  84. package/lib/services/version.js +2 -6
  85. package/lib/staff-a4053d35.js +14548 -0
  86. package/lib/utils/application.js +2 -6
  87. package/lib/utils/base-urls/core.js +2 -2
  88. package/lib/utils/base-urls/risk.js +2 -2
  89. package/lib/utils/does-param-exist.js +2 -10
  90. package/lib/utils/get-axios-error.js +1 -2
  91. package/lib/utils/param-error.js +5 -17
  92. package/lib/utils/professions.js +2 -6
  93. package/lib/utils/regions.js +1 -1
  94. package/lib/utils/request.js +2 -6
  95. package/lib/utils/staff.js +2 -6
  96. package/package.json +3 -3
  97. package/lib/staff-0ceb94b9.js +0 -22832
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('@babel/runtime/helpers/defineProperty');
6
- require('@babel/runtime/regenerator');
7
- require('@babel/runtime/helpers/asyncToGenerator');
8
6
  require('lodash/merge');
9
7
  require('lodash/uniq');
10
8
  require('axios');
@@ -14,9 +12,7 @@ require('lodash/forOwn');
14
12
  require('lodash/get');
15
13
  require('@medipass/utils/sentry');
16
14
  require('./get-axios-error.js');
17
- var request = require('../staff-0ceb94b9.js');
18
- require('@babel/runtime/helpers/inheritsLoose');
19
- require('@babel/runtime/helpers/wrapNativeSuper');
15
+ var request = require('../staff-a4053d35.js');
20
16
  require('./param-error.js');
21
17
  require('./does-param-exist.js');
22
18
  require('lodash/omitBy');
@@ -42,7 +38,7 @@ require('./base-urls/risk.js');
42
38
  require('./base-urls/index.js');
43
39
  require('lodash/flatten');
44
40
  require('js-cookie');
45
- require('../regions-0da90c43.js');
41
+ require('../regions-c5eabe3a.js');
46
42
 
47
43
 
48
44
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var coreBaseUrls = {
6
6
  au: {
7
7
  // @ts-expect-error TS(2591): Cannot find name 'process'. Do you need to install... Remove this comment to see the full error message
8
- local: "http://localhost:" + (process.env.REACT_APP_LOCAL_PORT || 2673) + "/",
8
+ local: `http://localhost:${process.env.REACT_APP_LOCAL_PORT || 2673}/`,
9
9
  dev: 'https://dev-api-au.medipass.io/',
10
10
  'pre-prod': 'https://api-au-blue.medipass.io/',
11
11
  prod: 'https://api-au.medipass.io/',
@@ -14,7 +14,7 @@ var coreBaseUrls = {
14
14
  },
15
15
  uk: {
16
16
  // @ts-expect-error TS(2591): Cannot find name 'process'. Do you need to install... Remove this comment to see the full error message
17
- local: "http://localhost:" + (process.env.REACT_APP_LOCAL_PORT || 2673) + "/",
17
+ local: `http://localhost:${process.env.REACT_APP_LOCAL_PORT || 2673}/`,
18
18
  dev: 'https://api.dev.uk.medipass.io/',
19
19
  'pre-prod': 'https://api.blue.uk.medipass.io/',
20
20
  prod: 'https://api.uk.medipass.io/',
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var riskBaseUrls = {
6
6
  au: {
7
7
  // @ts-expect-error TS(2591): Cannot find name 'process'. Do you need to install... Remove this comment to see the full error message
8
- local: "http://localhost:" + (process.env.REACT_APP_LOCAL_PORT || 7475) + "/",
8
+ local: `http://localhost:${process.env.REACT_APP_LOCAL_PORT || 7475}/`,
9
9
  dev: 'https://dev-risk-au.medipass.io/',
10
10
  'pre-prod': 'https://risk-au-blue.medipass.io/',
11
11
  prod: 'https://risk-au.medipass.io/',
@@ -13,7 +13,7 @@ var riskBaseUrls = {
13
13
  },
14
14
  uk: {
15
15
  // @ts-expect-error TS(2591): Cannot find name 'process'. Do you need to install... Remove this comment to see the full error message
16
- local: "http://localhost:" + (process.env.REACT_APP_LOCAL_PORT || 7475) + "/",
16
+ local: `http://localhost:${process.env.REACT_APP_LOCAL_PORT || 7475}/`,
17
17
  dev: 'https://risk.dev.uk.medipass.io/',
18
18
  'pre-prod': 'https://risk.blue.uk.medipass.io/',
19
19
  prod: 'https://risk.uk.medipass.io/',
@@ -5,8 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  var _forOwn = _interopDefault(require('lodash/forOwn'));
8
- require('@babel/runtime/helpers/inheritsLoose');
9
- require('@babel/runtime/helpers/wrapNativeSuper');
10
8
  var paramError = require('./param-error.js');
11
9
 
12
10
  var doesParamExist = (function (params, hyperMediaEndpoint, opts) {
@@ -15,27 +13,21 @@ var doesParamExist = (function (params, hyperMediaEndpoint, opts) {
15
13
  atLeastOneExists: false
16
14
  };
17
15
  }
18
-
19
- var valueExists = false;
20
-
16
+ let valueExists = false;
21
17
  if (hyperMediaEndpoint) {
22
18
  return null;
23
19
  }
24
-
25
- _forOwn(params, function (val, key) {
20
+ _forOwn(params, (val, key) => {
26
21
  if (!val && !opts.atLeastOneExists) {
27
22
  throw new paramError.default(key);
28
23
  }
29
-
30
24
  if (val && opts.atLeastOneExists) {
31
25
  valueExists = true;
32
26
  }
33
27
  });
34
-
35
28
  if (!valueExists && opts.atLeastOneExists) {
36
29
  throw new paramError.default(Object.keys(params).join(' or '));
37
30
  }
38
-
39
31
  return null;
40
32
  });
41
33
 
@@ -2,11 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var getAxiosError = (function (error) {
5
+ var getAxiosError = (error => {
6
6
  if (error.response) {
7
7
  return error.response;
8
8
  }
9
-
10
9
  return {
11
10
  message: error.message
12
11
  };
@@ -2,23 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
- var _inheritsLoose = _interopDefault(require('@babel/runtime/helpers/inheritsLoose'));
8
- var _wrapNativeSuper = _interopDefault(require('@babel/runtime/helpers/wrapNativeSuper'));
9
-
10
- var ParamError = /*#__PURE__*/function (_Error) {
11
- _inheritsLoose(ParamError, _Error);
12
-
13
- function ParamError(message) {
14
- var _this;
15
-
16
- _this = _Error.call(this, "`" + message + "` not specified in parameters!") || this;
17
- _this.name = 'ParamError';
18
- return _this;
5
+ class ParamError extends Error {
6
+ constructor(message) {
7
+ super(`\`${message}\` not specified in parameters!`);
8
+ this.name = 'ParamError';
19
9
  }
20
-
21
- return ParamError;
22
- }( /*#__PURE__*/_wrapNativeSuper(Error));
10
+ }
23
11
 
24
12
  exports.default = ParamError;
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('@babel/runtime/helpers/defineProperty');
6
- require('@babel/runtime/regenerator');
7
- require('@babel/runtime/helpers/asyncToGenerator');
8
6
  require('lodash/merge');
9
7
  require('lodash/uniq');
10
8
  require('axios');
@@ -14,9 +12,7 @@ require('lodash/forOwn');
14
12
  require('lodash/get');
15
13
  require('@medipass/utils/sentry');
16
14
  require('./get-axios-error.js');
17
- var request = require('../staff-0ceb94b9.js');
18
- require('@babel/runtime/helpers/inheritsLoose');
19
- require('@babel/runtime/helpers/wrapNativeSuper');
15
+ var request = require('../staff-a4053d35.js');
20
16
  require('./param-error.js');
21
17
  require('./does-param-exist.js');
22
18
  require('lodash/omitBy');
@@ -42,7 +38,7 @@ require('./base-urls/risk.js');
42
38
  require('./base-urls/index.js');
43
39
  require('lodash/flatten');
44
40
  require('js-cookie');
45
- require('../regions-0da90c43.js');
41
+ require('../regions-c5eabe3a.js');
46
42
 
47
43
 
48
44
 
@@ -10,7 +10,7 @@ require('masked');
10
10
  require('@medipass/utils/sensitive-keys');
11
11
  require('../services/storage.js');
12
12
  require('js-cookie');
13
- var regions = require('../regions-0da90c43.js');
13
+ var regions = require('../regions-c5eabe3a.js');
14
14
 
15
15
 
16
16
 
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('@babel/runtime/helpers/defineProperty');
6
- require('@babel/runtime/regenerator');
7
- require('@babel/runtime/helpers/asyncToGenerator');
8
6
  require('lodash/merge');
9
7
  require('lodash/uniq');
10
8
  require('axios');
@@ -14,9 +12,7 @@ require('lodash/forOwn');
14
12
  require('lodash/get');
15
13
  require('@medipass/utils/sentry');
16
14
  require('./get-axios-error.js');
17
- var request = require('../staff-0ceb94b9.js');
18
- require('@babel/runtime/helpers/inheritsLoose');
19
- require('@babel/runtime/helpers/wrapNativeSuper');
15
+ var request = require('../staff-a4053d35.js');
20
16
  require('./param-error.js');
21
17
  require('./does-param-exist.js');
22
18
  require('lodash/omitBy');
@@ -42,7 +38,7 @@ require('./base-urls/risk.js');
42
38
  require('./base-urls/index.js');
43
39
  require('lodash/flatten');
44
40
  require('js-cookie');
45
- require('../regions-0da90c43.js');
41
+ require('../regions-c5eabe3a.js');
46
42
 
47
43
 
48
44
 
@@ -3,8 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('@babel/runtime/helpers/defineProperty');
6
- require('@babel/runtime/regenerator');
7
- require('@babel/runtime/helpers/asyncToGenerator');
8
6
  require('lodash/merge');
9
7
  require('lodash/uniq');
10
8
  require('axios');
@@ -14,9 +12,7 @@ require('lodash/forOwn');
14
12
  require('lodash/get');
15
13
  require('@medipass/utils/sentry');
16
14
  require('./get-axios-error.js');
17
- var request = require('../staff-0ceb94b9.js');
18
- require('@babel/runtime/helpers/inheritsLoose');
19
- require('@babel/runtime/helpers/wrapNativeSuper');
15
+ var request = require('../staff-a4053d35.js');
20
16
  require('./param-error.js');
21
17
  require('./does-param-exist.js');
22
18
  require('lodash/omitBy');
@@ -42,7 +38,7 @@ require('./base-urls/risk.js');
42
38
  require('./base-urls/index.js');
43
39
  require('lodash/flatten');
44
40
  require('js-cookie');
45
- require('../regions-0da90c43.js');
41
+ require('../regions-c5eabe3a.js');
46
42
 
47
43
 
48
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/web-sdk",
3
- "version": "11.48.5-fix-utils-ts.6",
3
+ "version": "11.48.6-chore-update-react-18.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/plugin-transform-runtime": "7.8.3",
48
- "@medipass/utils": "^11.73.2-fix-utils-ts.6",
48
+ "@medipass/utils": "^11.73.3-chore-update-react-18.0",
49
49
  "@types/jest": "28.1.6",
50
50
  "@types/mocha": "9.1.1",
51
51
  "@types/node": "18.7.1",
@@ -57,5 +57,5 @@
57
57
  "resolutions": {
58
58
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
59
59
  },
60
- "gitHead": "4629f6081c28ce96318b71bf7b4eae38872fd287"
60
+ "gitHead": "96282de8156eccff35ebe20525bf0f2201758221"
61
61
  }