@medipass/web-sdk 11.48.6-chore-update-react-18.0 → 11.48.6-chore-fix-warning-messages.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +6 -2
- package/lib/{regions-c5eabe3a.js → regions-0da90c43.js} +6 -6
- package/lib/resources/abr.js +6 -2
- package/lib/resources/accounts.js +6 -2
- package/lib/resources/actions.js +6 -2
- package/lib/resources/api-keys.js +6 -2
- package/lib/resources/applications.js +6 -2
- package/lib/resources/attachments.js +6 -2
- package/lib/resources/auth.js +6 -2
- package/lib/resources/blacklist.js +6 -2
- package/lib/resources/bulk-submits.js +6 -2
- package/lib/resources/bulk-uploads.js +6 -2
- package/lib/resources/business-profiles.js +6 -2
- package/lib/resources/businesses.js +6 -2
- package/lib/resources/claim-items.js +6 -2
- package/lib/resources/devices.js +6 -2
- package/lib/resources/doc-accounts.js +6 -2
- package/lib/resources/documents.js +6 -2
- package/lib/resources/emails.js +6 -2
- package/lib/resources/filter-options.js +6 -2
- package/lib/resources/form-application-templates.js +6 -2
- package/lib/resources/form-applications.js +6 -2
- package/lib/resources/forms.js +6 -2
- package/lib/resources/funder-services.js +6 -2
- package/lib/resources/funder-settings.js +6 -2
- package/lib/resources/funder-values.js +6 -2
- package/lib/resources/funders.js +6 -2
- package/lib/resources/futures.js +6 -2
- package/lib/resources/health-fund-accounts.js +6 -2
- package/lib/resources/health-fund-settings.js +6 -2
- package/lib/resources/healthfunds.js +6 -2
- package/lib/resources/icditems.js +6 -2
- package/lib/resources/invoice-scans.js +6 -2
- package/lib/resources/jhcs.js +6 -2
- package/lib/resources/kyc.js +6 -2
- package/lib/resources/logs.js +6 -2
- package/lib/resources/members.js +6 -2
- package/lib/resources/message-mappings.js +6 -2
- package/lib/resources/minions.js +6 -2
- package/lib/resources/modalities.js +6 -2
- package/lib/resources/notes.js +6 -2
- package/lib/resources/onboarding-applications.js +6 -2
- package/lib/resources/onboarding-requests.js +6 -2
- package/lib/resources/ops.js +6 -2
- package/lib/resources/organisations.js +6 -2
- package/lib/resources/partners.js +6 -2
- package/lib/resources/patients.js +6 -2
- package/lib/resources/payments.js +6 -2
- package/lib/resources/pms.js +6 -2
- package/lib/resources/practice-profiles.js +6 -2
- package/lib/resources/practice-types.js +6 -2
- package/lib/resources/practices.js +6 -2
- package/lib/resources/products.js +6 -2
- package/lib/resources/professional-categories.js +6 -2
- package/lib/resources/provider-number-types.js +6 -2
- package/lib/resources/provider-registration-types.js +6 -2
- package/lib/resources/provider-requests.js +6 -2
- package/lib/resources/provider-types.js +6 -2
- package/lib/resources/ref-sources.js +6 -2
- package/lib/resources/risk.js +6 -2
- package/lib/resources/rnas.js +6 -2
- package/lib/resources/roles.js +6 -2
- package/lib/resources/self-checkout-sessions.js +6 -2
- package/lib/resources/services.js +6 -2
- package/lib/resources/settlements.js +6 -2
- package/lib/resources/sign-up.js +6 -2
- package/lib/resources/specialties.js +6 -2
- package/lib/resources/staff-profiles.js +6 -2
- package/lib/resources/staff.js +6 -2
- package/lib/resources/statistics.js +6 -2
- package/lib/resources/subscriptions.js +6 -2
- package/lib/resources/terminals.js +6 -2
- package/lib/resources/transaction-export.js +6 -2
- package/lib/resources/transactions.js +6 -2
- package/lib/resources/triggers.js +6 -2
- package/lib/resources/vendors.js +6 -2
- package/lib/resources/verify.js +6 -2
- package/lib/resources/workers.js +6 -2
- package/lib/resources/workflow-exceptions.js +6 -2
- package/lib/services/aws.js +6 -2
- package/lib/services/storage.js +68 -40
- package/lib/services/version.js +6 -2
- package/lib/staff-8589e2a9.js +22833 -0
- package/lib/utils/application.js +6 -2
- package/lib/utils/base-urls/core.d.ts +2 -2
- package/lib/utils/base-urls/core.js +4 -4
- package/lib/utils/base-urls/index.d.ts +2 -2
- package/lib/utils/base-urls/index.js +2 -2
- package/lib/utils/base-urls/risk.d.ts +2 -2
- package/lib/utils/base-urls/risk.js +4 -4
- package/lib/utils/does-param-exist.d.ts +2 -2
- package/lib/utils/does-param-exist.js +12 -4
- package/lib/utils/get-axios-error.d.ts +2 -2
- package/lib/utils/get-axios-error.js +3 -2
- package/lib/utils/param-error.js +17 -5
- package/lib/utils/professions.js +6 -2
- package/lib/utils/regions.js +1 -1
- package/lib/utils/request.js +6 -2
- package/lib/utils/staff.js +6 -2
- package/package.json +3 -3
- package/lib/staff-a4053d35.js +0 -14548
package/lib/utils/application.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
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');
|
|
6
8
|
require('lodash/merge');
|
|
7
9
|
require('lodash/uniq');
|
|
8
10
|
require('axios');
|
|
@@ -12,7 +14,9 @@ require('lodash/forOwn');
|
|
|
12
14
|
require('lodash/get');
|
|
13
15
|
require('@medipass/utils/sentry');
|
|
14
16
|
require('./get-axios-error.js');
|
|
15
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-8589e2a9.js');
|
|
18
|
+
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
|
+
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
16
20
|
require('./param-error.js');
|
|
17
21
|
require('./does-param-exist.js');
|
|
18
22
|
require('lodash/omitBy');
|
|
@@ -38,7 +42,7 @@ require('./base-urls/risk.js');
|
|
|
38
42
|
require('./base-urls/index.js');
|
|
39
43
|
require('lodash/flatten');
|
|
40
44
|
require('js-cookie');
|
|
41
|
-
require('../regions-
|
|
45
|
+
require('../regions-0da90c43.js');
|
|
42
46
|
|
|
43
47
|
|
|
44
48
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var core = {
|
|
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:
|
|
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:
|
|
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/',
|
|
@@ -23,4 +23,4 @@ var coreBaseUrls = {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
exports.default =
|
|
26
|
+
exports.default = core;
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var core = require('./core.js');
|
|
6
6
|
var risk = require('./risk.js');
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var urls = {
|
|
9
9
|
core: core.default,
|
|
10
10
|
risk: risk.default
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
exports.default =
|
|
13
|
+
exports.default = urls;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var risk = {
|
|
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:
|
|
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:
|
|
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/',
|
|
@@ -21,4 +21,4 @@ var riskBaseUrls = {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
exports.default =
|
|
24
|
+
exports.default = risk;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const doesParamExist: (params: Record<string, any>, hyperMediaEndpoint?: string | null | undefined, opts?: Record<string, any>) => any;
|
|
2
|
+
export default doesParamExist;
|
|
@@ -5,30 +5,38 @@ 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');
|
|
8
10
|
var paramError = require('./param-error.js');
|
|
9
11
|
|
|
10
|
-
var doesParamExist =
|
|
12
|
+
var doesParamExist = function doesParamExist(params, hyperMediaEndpoint, opts) {
|
|
11
13
|
if (opts === void 0) {
|
|
12
14
|
opts = {
|
|
13
15
|
atLeastOneExists: false
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
var valueExists = false;
|
|
20
|
+
|
|
17
21
|
if (hyperMediaEndpoint) {
|
|
18
22
|
return null;
|
|
19
23
|
}
|
|
20
|
-
|
|
24
|
+
|
|
25
|
+
_forOwn(params, function (val, key) {
|
|
21
26
|
if (!val && !opts.atLeastOneExists) {
|
|
22
27
|
throw new paramError.default(key);
|
|
23
28
|
}
|
|
29
|
+
|
|
24
30
|
if (val && opts.atLeastOneExists) {
|
|
25
31
|
valueExists = true;
|
|
26
32
|
}
|
|
27
33
|
});
|
|
34
|
+
|
|
28
35
|
if (!valueExists && opts.atLeastOneExists) {
|
|
29
36
|
throw new paramError.default(Object.keys(params).join(' or '));
|
|
30
37
|
}
|
|
38
|
+
|
|
31
39
|
return null;
|
|
32
|
-
}
|
|
40
|
+
};
|
|
33
41
|
|
|
34
42
|
exports.default = doesParamExist;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const getAxiosError: (error: Record<string, any>) => any;
|
|
2
|
+
export default getAxiosError;
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var getAxiosError = (error
|
|
5
|
+
var getAxiosError = function getAxiosError(error) {
|
|
6
6
|
if (error.response) {
|
|
7
7
|
return error.response;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
return {
|
|
10
11
|
message: error.message
|
|
11
12
|
};
|
|
12
|
-
}
|
|
13
|
+
};
|
|
13
14
|
|
|
14
15
|
exports.default = getAxiosError;
|
package/lib/utils/param-error.js
CHANGED
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
19
|
}
|
|
10
|
-
|
|
20
|
+
|
|
21
|
+
return ParamError;
|
|
22
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
11
23
|
|
|
12
24
|
exports.default = ParamError;
|
package/lib/utils/professions.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
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');
|
|
6
8
|
require('lodash/merge');
|
|
7
9
|
require('lodash/uniq');
|
|
8
10
|
require('axios');
|
|
@@ -12,7 +14,9 @@ require('lodash/forOwn');
|
|
|
12
14
|
require('lodash/get');
|
|
13
15
|
require('@medipass/utils/sentry');
|
|
14
16
|
require('./get-axios-error.js');
|
|
15
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-8589e2a9.js');
|
|
18
|
+
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
|
+
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
16
20
|
require('./param-error.js');
|
|
17
21
|
require('./does-param-exist.js');
|
|
18
22
|
require('lodash/omitBy');
|
|
@@ -38,7 +42,7 @@ require('./base-urls/risk.js');
|
|
|
38
42
|
require('./base-urls/index.js');
|
|
39
43
|
require('lodash/flatten');
|
|
40
44
|
require('js-cookie');
|
|
41
|
-
require('../regions-
|
|
45
|
+
require('../regions-0da90c43.js');
|
|
42
46
|
|
|
43
47
|
|
|
44
48
|
|
package/lib/utils/regions.js
CHANGED
package/lib/utils/request.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
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');
|
|
6
8
|
require('lodash/merge');
|
|
7
9
|
require('lodash/uniq');
|
|
8
10
|
require('axios');
|
|
@@ -12,7 +14,9 @@ require('lodash/forOwn');
|
|
|
12
14
|
require('lodash/get');
|
|
13
15
|
require('@medipass/utils/sentry');
|
|
14
16
|
require('./get-axios-error.js');
|
|
15
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-8589e2a9.js');
|
|
18
|
+
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
|
+
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
16
20
|
require('./param-error.js');
|
|
17
21
|
require('./does-param-exist.js');
|
|
18
22
|
require('lodash/omitBy');
|
|
@@ -38,7 +42,7 @@ require('./base-urls/risk.js');
|
|
|
38
42
|
require('./base-urls/index.js');
|
|
39
43
|
require('lodash/flatten');
|
|
40
44
|
require('js-cookie');
|
|
41
|
-
require('../regions-
|
|
45
|
+
require('../regions-0da90c43.js');
|
|
42
46
|
|
|
43
47
|
|
|
44
48
|
|
package/lib/utils/staff.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
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');
|
|
6
8
|
require('lodash/merge');
|
|
7
9
|
require('lodash/uniq');
|
|
8
10
|
require('axios');
|
|
@@ -12,7 +14,9 @@ require('lodash/forOwn');
|
|
|
12
14
|
require('lodash/get');
|
|
13
15
|
require('@medipass/utils/sentry');
|
|
14
16
|
require('./get-axios-error.js');
|
|
15
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-8589e2a9.js');
|
|
18
|
+
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
|
+
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
16
20
|
require('./param-error.js');
|
|
17
21
|
require('./does-param-exist.js');
|
|
18
22
|
require('lodash/omitBy');
|
|
@@ -38,7 +42,7 @@ require('./base-urls/risk.js');
|
|
|
38
42
|
require('./base-urls/index.js');
|
|
39
43
|
require('lodash/flatten');
|
|
40
44
|
require('js-cookie');
|
|
41
|
-
require('../regions-
|
|
45
|
+
require('../regions-0da90c43.js');
|
|
42
46
|
|
|
43
47
|
|
|
44
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.48.6-chore-
|
|
3
|
+
"version": "11.48.6-chore-fix-warning-messages.1",
|
|
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.3-chore-
|
|
48
|
+
"@medipass/utils": "^11.73.3-chore-fix-warning-messages.1",
|
|
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": "
|
|
60
|
+
"gitHead": "9aef1ef82cd81841b8b07be90f1621b428727f66"
|
|
61
61
|
}
|