@medipass/web-sdk 11.38.0 → 11.38.1-feature-typescript-claudia.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/.eslintrc.cjs +95 -0
- package/babel.config.js +2 -1
- package/lib/index.d.ts +262 -0
- package/lib/index.js +83 -3
- package/lib/{regions-ed54f163.js → regions-a0a28864.js} +2 -2
- package/lib/resources/accounts.d.ts +215 -0
- package/lib/resources/accounts.js +3 -3
- package/lib/resources/actions.d.ts +13 -0
- package/lib/resources/actions.js +3 -3
- package/lib/resources/api-keys.d.ts +24 -0
- package/lib/resources/api-keys.js +3 -3
- package/lib/resources/applications.d.ts +31 -0
- package/lib/resources/applications.js +3 -3
- package/lib/resources/attachments.d.ts +32 -0
- package/lib/resources/attachments.js +3 -3
- package/lib/resources/auth.d.ts +59 -0
- package/lib/resources/auth.js +3 -3
- package/lib/resources/bulk-submits.d.ts +17 -0
- package/lib/resources/bulk-submits.js +3 -3
- package/lib/resources/bulk-uploads.d.ts +26 -0
- package/lib/resources/bulk-uploads.js +3 -3
- package/lib/resources/business-profiles.d.ts +18 -0
- package/lib/resources/business-profiles.js +3 -3
- package/lib/resources/businesses.d.ts +132 -0
- package/lib/resources/businesses.js +3 -3
- package/lib/resources/claim-items.d.ts +31 -0
- package/lib/resources/claim-items.js +3 -3
- package/lib/resources/devices.d.ts +11 -0
- package/lib/resources/devices.js +3 -3
- package/lib/resources/doc-accounts.d.ts +32 -0
- package/lib/resources/doc-accounts.js +3 -3
- package/lib/resources/documents.d.ts +90 -0
- package/lib/resources/documents.js +3 -3
- package/lib/resources/emails.d.ts +14 -0
- package/lib/resources/emails.js +3 -3
- package/lib/resources/form-application-templates.d.ts +20 -0
- package/lib/resources/form-application-templates.js +3 -3
- package/lib/resources/form-applications.d.ts +27 -0
- package/lib/resources/form-applications.js +3 -3
- package/lib/resources/forms.d.ts +100 -0
- package/lib/resources/forms.js +3 -3
- package/lib/resources/funder-services.d.ts +8 -0
- package/lib/resources/funder-services.js +3 -3
- package/lib/resources/funder-settings.d.ts +8 -0
- package/lib/resources/funder-settings.js +3 -3
- package/lib/resources/funders.d.ts +5 -0
- package/lib/resources/funders.js +3 -3
- package/lib/resources/futures.d.ts +85 -0
- package/lib/resources/futures.js +3 -3
- package/lib/resources/health-fund-accounts.d.ts +78 -0
- package/lib/resources/health-fund-accounts.js +3 -3
- package/lib/resources/health-fund-settings.d.ts +39 -0
- package/lib/resources/health-fund-settings.js +3 -3
- package/lib/resources/healthfunds.d.ts +64 -0
- package/lib/resources/healthfunds.js +3 -3
- package/lib/resources/icditems.d.ts +14 -0
- package/lib/resources/icditems.js +3 -3
- package/lib/resources/invoice-scans.d.ts +26 -0
- package/lib/resources/invoice-scans.js +3 -3
- package/lib/resources/jhcs.d.ts +7 -0
- package/lib/resources/jhcs.js +3 -3
- package/lib/resources/kyc.d.ts +109 -0
- package/lib/resources/kyc.js +3 -3
- package/lib/resources/logs.d.ts +16 -0
- package/lib/resources/logs.js +3 -3
- package/lib/resources/members.d.ts +92 -0
- package/lib/resources/members.js +3 -3
- package/lib/resources/message-mappings.d.ts +9 -0
- package/lib/resources/message-mappings.js +3 -3
- package/lib/resources/minions.d.ts +40 -0
- package/lib/resources/minions.js +3 -3
- package/lib/resources/modalities.d.ts +19 -0
- package/lib/resources/modalities.js +3 -3
- package/lib/resources/notes.d.ts +17 -0
- package/lib/resources/notes.js +3 -3
- package/lib/resources/onboarding-applications.d.ts +52 -0
- package/lib/resources/onboarding-applications.js +3 -3
- package/lib/resources/onboarding-requests.d.ts +39 -0
- package/lib/resources/onboarding-requests.js +3 -3
- package/lib/resources/ops.d.ts +60 -0
- package/lib/resources/ops.js +3 -3
- package/lib/resources/organisations.d.ts +7 -0
- package/lib/resources/organisations.js +3 -3
- package/lib/resources/partners.d.ts +50 -0
- package/lib/resources/partners.js +3 -3
- package/lib/resources/patients.d.ts +44 -0
- package/lib/resources/patients.js +3 -3
- package/lib/resources/payments.d.ts +155 -0
- package/lib/resources/payments.js +3 -3
- package/lib/resources/pms.d.ts +43 -0
- package/lib/resources/pms.js +3 -3
- package/lib/resources/practice-profiles.d.ts +20 -0
- package/lib/resources/practice-profiles.js +3 -3
- package/lib/resources/practice-types.d.ts +6 -0
- package/lib/resources/practice-types.js +3 -3
- package/lib/resources/practices.d.ts +137 -0
- package/lib/resources/practices.js +3 -3
- package/lib/resources/products.d.ts +23 -0
- package/lib/resources/products.js +3 -3
- package/lib/resources/professional-categories.d.ts +23 -0
- package/lib/resources/professional-categories.js +3 -3
- package/lib/resources/provider-number-types.d.ts +16 -0
- package/lib/resources/provider-number-types.js +3 -3
- package/lib/resources/provider-registration-types.d.ts +15 -0
- package/lib/resources/provider-registration-types.js +3 -3
- package/lib/resources/provider-requests.d.ts +17 -0
- package/lib/resources/provider-requests.js +3 -3
- package/lib/resources/provider-types.d.ts +6 -0
- package/lib/resources/provider-types.js +3 -3
- package/lib/resources/ref-sources.d.ts +6 -0
- package/lib/resources/ref-sources.js +3 -3
- package/lib/resources/risk.d.ts +13 -0
- package/lib/resources/risk.js +3 -3
- package/lib/resources/rnas.d.ts +43 -0
- package/lib/resources/rnas.js +3 -3
- package/lib/resources/roles.d.ts +7 -0
- package/lib/resources/roles.js +3 -3
- package/lib/resources/self-checkout-sessions.d.ts +134 -0
- package/lib/resources/self-checkout-sessions.js +3 -3
- package/lib/resources/services.d.ts +88 -0
- package/lib/resources/services.js +3 -3
- package/lib/resources/settlements.d.ts +37 -0
- package/lib/resources/settlements.js +3 -3
- package/lib/resources/sign-up.d.ts +5 -0
- package/lib/resources/sign-up.js +3 -3
- package/lib/resources/specialties.d.ts +23 -0
- package/lib/resources/specialties.js +3 -3
- package/lib/resources/staff-profiles.d.ts +20 -0
- package/lib/resources/staff-profiles.js +3 -3
- package/lib/resources/staff.d.ts +242 -0
- package/lib/resources/staff.js +3 -3
- package/lib/resources/statistics.d.ts +56 -0
- package/lib/resources/statistics.js +3 -3
- package/lib/resources/subscriptions.d.ts +32 -0
- package/lib/resources/subscriptions.js +3 -3
- package/lib/resources/terminals.d.ts +71 -0
- package/lib/resources/terminals.js +3 -3
- package/lib/resources/transaction-export.d.ts +18 -0
- package/lib/resources/transaction-export.js +3 -3
- package/lib/resources/transactions.d.ts +466 -0
- package/lib/resources/transactions.js +3 -3
- package/lib/resources/triggers.d.ts +20 -0
- package/lib/resources/triggers.js +3 -3
- package/lib/resources/vendors.d.ts +9 -0
- package/lib/resources/vendors.js +3 -3
- package/lib/resources/verify.d.ts +9 -0
- package/lib/resources/verify.js +3 -3
- package/lib/resources/workers.d.ts +3 -0
- package/lib/resources/workers.js +3 -3
- package/lib/resources/workflow-exceptions.d.ts +5 -0
- package/lib/resources/workflow-exceptions.js +3 -3
- package/lib/services/aws.d.ts +54 -0
- package/lib/services/aws.js +3 -3
- package/lib/services/storage.d.ts +28 -0
- package/lib/services/storage.js +126 -18
- package/lib/services/version.d.ts +21 -0
- package/lib/services/version.js +3 -3
- package/lib/{staff-f19eb168.js → staff-96febcd8.js} +188 -581
- package/lib/types/documents.d.ts +115 -0
- package/lib/types/documents.js +2 -0
- package/lib/types/forms.d.ts +67 -0
- package/lib/types/forms.js +2 -0
- package/lib/types/index.d.ts +42 -0
- package/lib/types/index.js +2 -0
- package/lib/types/message-mappings.d.ts +18 -0
- package/lib/types/message-mappings.js +2 -0
- package/lib/types/notes.d.ts +5 -0
- package/lib/types/notes.js +2 -0
- package/lib/types/products.d.ts +34 -0
- package/lib/types/products.js +2 -0
- package/lib/types/professional-categories.d.ts +20 -0
- package/lib/types/professional-categories.js +2 -0
- package/lib/types/specialties.d.ts +22 -0
- package/lib/types/specialties.js +2 -0
- package/lib/types/subscriptions.d.ts +52 -0
- package/lib/types/subscriptions.js +2 -0
- package/lib/utils/application.d.ts +1 -0
- package/lib/utils/application.js +3 -3
- package/lib/utils/base-urls/core.d.ts +19 -0
- package/lib/utils/base-urls/index.d.ts +37 -0
- package/lib/utils/base-urls/risk.d.ts +17 -0
- package/lib/utils/does-param-exist.d.ts +2 -0
- package/lib/utils/get-axios-error.d.ts +2 -0
- package/lib/utils/param-error.d.ts +3 -0
- package/lib/utils/professions.d.ts +3 -0
- package/lib/utils/professions.js +3 -3
- package/lib/utils/regions.d.ts +1 -0
- package/lib/utils/regions.js +2 -2
- package/lib/utils/request.d.ts +3 -0
- package/lib/utils/request.js +3 -3
- package/lib/utils/staff.d.ts +8 -0
- package/lib/utils/staff.js +3 -3
- package/package.json +19 -9
- package/tsconfig.json +33 -0
- package/types/globals.d.ts +7 -0
- package/types/index.d.ts +1 -0
- package/.eslintrc +0 -3
- package/lib/_types/documents.js.flow +0 -118
- package/lib/_types/forms.js.flow +0 -57
- package/lib/_types/index.js.flow +0 -47
- package/lib/_types/message-mappings.js.flow +0 -22
- package/lib/_types/notes.js.flow +0 -7
- package/lib/_types/products.js.flow +0 -40
- package/lib/_types/professional-categories.js.flow +0 -25
- package/lib/_types/specialties.js.flow +0 -27
- package/lib/_types/subscriptions.js.flow +0 -58
- package/lib/index.js.flow +0 -438
- package/lib/resources/accounts.js.flow +0 -445
- package/lib/resources/actions.js.flow +0 -25
- package/lib/resources/api-keys.js.flow +0 -54
- package/lib/resources/applications.js.flow +0 -60
- package/lib/resources/attachments.js.flow +0 -75
- package/lib/resources/auth.js.flow +0 -185
- package/lib/resources/bulk-submits.js.flow +0 -43
- package/lib/resources/bulk-uploads.js.flow +0 -56
- package/lib/resources/business-profiles.js.flow +0 -45
- package/lib/resources/businesses.js.flow +0 -267
- package/lib/resources/claim-items.js.flow +0 -76
- package/lib/resources/devices.js.flow +0 -64
- package/lib/resources/doc-accounts.js.flow +0 -61
- package/lib/resources/documents.js.flow +0 -216
- package/lib/resources/emails.js.flow +0 -96
- package/lib/resources/form-application-templates.js.flow +0 -52
- package/lib/resources/form-applications.js.flow +0 -62
- package/lib/resources/forms.js.flow +0 -222
- package/lib/resources/funder-services.js.flow +0 -17
- package/lib/resources/funder-settings.js.flow +0 -58
- package/lib/resources/funders.js.flow +0 -15
- package/lib/resources/futures.js.flow +0 -154
- package/lib/resources/health-fund-accounts.js.flow +0 -198
- package/lib/resources/health-fund-settings.js.flow +0 -104
- package/lib/resources/healthfunds.js.flow +0 -139
- package/lib/resources/icditems.js.flow +0 -36
- package/lib/resources/invoice-scans.js.flow +0 -56
- package/lib/resources/jhcs.js.flow +0 -20
- package/lib/resources/kyc.js.flow +0 -216
- package/lib/resources/logs.js.flow +0 -32
- package/lib/resources/members.js.flow +0 -196
- package/lib/resources/message-mappings.js.flow +0 -25
- package/lib/resources/minions.js.flow +0 -96
- package/lib/resources/modalities.js.flow +0 -46
- package/lib/resources/notes.js.flow +0 -112
- package/lib/resources/onboarding-applications.js.flow +0 -142
- package/lib/resources/onboarding-requests.js.flow +0 -97
- package/lib/resources/ops.js.flow +0 -116
- package/lib/resources/organisations.js.flow +0 -15
- package/lib/resources/partners.js.flow +0 -118
- package/lib/resources/patients.js.flow +0 -102
- package/lib/resources/payments.js.flow +0 -523
- package/lib/resources/pms.js.flow +0 -102
- package/lib/resources/practice-profiles.js.flow +0 -51
- package/lib/resources/practice-types.js.flow +0 -14
- package/lib/resources/practices.js.flow +0 -314
- package/lib/resources/products.js.flow +0 -48
- package/lib/resources/professional-categories.js.flow +0 -56
- package/lib/resources/provider-number-types.js.flow +0 -32
- package/lib/resources/provider-registration-types.js.flow +0 -32
- package/lib/resources/provider-requests.js.flow +0 -46
- package/lib/resources/provider-types.js.flow +0 -14
- package/lib/resources/ref-sources.js.flow +0 -16
- package/lib/resources/risk.js.flow +0 -29
- package/lib/resources/rnas.js.flow +0 -108
- package/lib/resources/roles.js.flow +0 -12
- package/lib/resources/self-checkout-sessions.js.flow +0 -382
- package/lib/resources/services.js.flow +0 -219
- package/lib/resources/settlements.js.flow +0 -97
- package/lib/resources/sign-up.js.flow +0 -15
- package/lib/resources/specialties.js.flow +0 -46
- package/lib/resources/staff-profiles.js.flow +0 -51
- package/lib/resources/staff.js.flow +0 -583
- package/lib/resources/statistics.js.flow +0 -147
- package/lib/resources/subscriptions.js.flow +0 -81
- package/lib/resources/terminals.js.flow +0 -161
- package/lib/resources/transaction-export.js.flow +0 -48
- package/lib/resources/transactions.js.flow +0 -1097
- package/lib/resources/triggers.js.flow +0 -36
- package/lib/resources/vendors.js.flow +0 -28
- package/lib/resources/verify.js.flow +0 -14
- package/lib/resources/workers.js.flow +0 -10
- package/lib/resources/workflow-exceptions.js.flow +0 -17
- package/lib/services/__mocks__/storage.js.flow +0 -30
- package/lib/services/aws.js.flow +0 -339
- package/lib/services/storage.js.flow +0 -92
- package/lib/services/version.js.flow +0 -73
- package/lib/storage-16fd26f8.js +0 -1268
- package/lib/utils/application.js.flow +0 -23
- package/lib/utils/base-urls/core.js.flow +0 -18
- package/lib/utils/base-urls/index.js.flow +0 -7
- package/lib/utils/base-urls/risk.js.flow +0 -16
- package/lib/utils/does-param-exist.js.flow +0 -23
- package/lib/utils/get-axios-error.js.flow +0 -8
- package/lib/utils/param-error.js.flow +0 -8
- package/lib/utils/professions.js.flow +0 -66
- package/lib/utils/regions.js.flow +0 -21
- package/lib/utils/request.js.flow +0 -36
- package/lib/utils/staff.js.flow +0 -81
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
extends: ['plugin:@typescript-eslint/eslint-recommended', 'prettier', 'react-app'],
|
|
3
|
+
plugins: ['@typescript-eslint', 'prettier'],
|
|
4
|
+
parser: '@typescript-eslint/parser',
|
|
5
|
+
parserOptions: {
|
|
6
|
+
ecmaFeatures: {
|
|
7
|
+
jsx: true
|
|
8
|
+
},
|
|
9
|
+
ecmaVersion: 'latest',
|
|
10
|
+
requireConfigFile: false,
|
|
11
|
+
sourceType: 'module'
|
|
12
|
+
},
|
|
13
|
+
rules: {
|
|
14
|
+
'prettier/prettier': [
|
|
15
|
+
'error',
|
|
16
|
+
{
|
|
17
|
+
bracketSpacing: true,
|
|
18
|
+
bracketSameLine: false,
|
|
19
|
+
printWidth: 120,
|
|
20
|
+
singleQuote: true,
|
|
21
|
+
trailingComma: 'none',
|
|
22
|
+
arrowParens: 'avoid'
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
'react/default-props-match-prop-types': [
|
|
26
|
+
1,
|
|
27
|
+
{
|
|
28
|
+
allowRequiredDefaults: true
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
'react/no-array-index-key': 'warn',
|
|
32
|
+
'react/no-children-prop': 'error',
|
|
33
|
+
'react/no-danger': 'error',
|
|
34
|
+
'react/no-danger-with-children': 'error',
|
|
35
|
+
'react/no-deprecated': 'error',
|
|
36
|
+
'react/no-did-update-set-state': 'error',
|
|
37
|
+
'react/no-direct-mutation-state': 'error',
|
|
38
|
+
'react/no-find-dom-node': 'error',
|
|
39
|
+
'react/no-is-mounted': 'error',
|
|
40
|
+
'react/no-redundant-should-component-update': 'error',
|
|
41
|
+
'react/no-render-return-value': 'error',
|
|
42
|
+
'react/no-string-refs': 'error',
|
|
43
|
+
'react/no-unescaped-entities': 'error',
|
|
44
|
+
'react/no-unknown-property': 'error',
|
|
45
|
+
'react/no-unused-prop-types': 'error',
|
|
46
|
+
'react/no-will-update-set-state': 'error',
|
|
47
|
+
'react/prop-types': 'error',
|
|
48
|
+
'react/react-in-jsx-scope': 'error',
|
|
49
|
+
'react/require-default-props': 'error',
|
|
50
|
+
'react/self-closing-comp': 'error',
|
|
51
|
+
'react/style-prop-object': 'error',
|
|
52
|
+
'react/void-dom-elements-no-children': 'error',
|
|
53
|
+
'react/jsx-boolean-value': 'error',
|
|
54
|
+
'react/jsx-closing-bracket-location': ['error', 'tag-aligned'],
|
|
55
|
+
'react/jsx-closing-tag-location': 'error',
|
|
56
|
+
'react/jsx-curly-spacing': ['error', 'never'],
|
|
57
|
+
'react/jsx-equals-spacing': ['error', 'never'],
|
|
58
|
+
'react/jsx-first-prop-new-line': ['error', 'multiline'],
|
|
59
|
+
'react/jsx-key': 'error',
|
|
60
|
+
'react/jsx-max-props-per-line': [
|
|
61
|
+
'error',
|
|
62
|
+
{
|
|
63
|
+
maximum: 1,
|
|
64
|
+
when: 'multiline'
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
'react/jsx-no-comment-textnodes': 'error',
|
|
68
|
+
'react/jsx-no-duplicate-props': [
|
|
69
|
+
'error',
|
|
70
|
+
{
|
|
71
|
+
ignoreCase: true
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
'react/jsx-no-target-blank': 'error',
|
|
75
|
+
'react/jsx-no-undef': 'error',
|
|
76
|
+
'react/jsx-sort-props': [
|
|
77
|
+
'error',
|
|
78
|
+
{
|
|
79
|
+
callbacksLast: false,
|
|
80
|
+
shorthandFirst: false,
|
|
81
|
+
noSortAlphabetically: true,
|
|
82
|
+
reservedFirst: true
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
'react/jsx-uses-react': 'error',
|
|
86
|
+
'react/jsx-uses-vars': 'error',
|
|
87
|
+
'react/jsx-wrap-multilines': 'error',
|
|
88
|
+
'react-hooks/rules-of-hooks': 'error',
|
|
89
|
+
'react-hooks/exhaustive-deps': 'warn',
|
|
90
|
+
'react/jsx-handler-names': 'off',
|
|
91
|
+
'react/jsx-pascal-case': 'off',
|
|
92
|
+
'jsx-a11y/href-no-hash': 0,
|
|
93
|
+
'jsx-a11y/anchor-is-valid': 0
|
|
94
|
+
}
|
|
95
|
+
};
|
package/babel.config.js
CHANGED
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import type { SetupOpts } from './types';
|
|
2
|
+
import * as accounts from './resources/accounts';
|
|
3
|
+
import * as actions from './resources/actions';
|
|
4
|
+
import * as apiKeys from './resources/api-keys';
|
|
5
|
+
import * as attachments from './resources/attachments';
|
|
6
|
+
import * as auth from './resources/auth';
|
|
7
|
+
import * as applications from './resources/applications';
|
|
8
|
+
import * as bulkUploads from './resources/bulk-uploads';
|
|
9
|
+
import * as bulkSubmits from './resources/bulk-submits';
|
|
10
|
+
import * as businessProfiles from './resources/business-profiles';
|
|
11
|
+
import * as businesses from './resources/businesses';
|
|
12
|
+
import * as claimItems from './resources/claim-items';
|
|
13
|
+
import * as devices from './resources/devices';
|
|
14
|
+
import * as docAccounts from './resources/doc-accounts';
|
|
15
|
+
import * as documents from './resources/documents';
|
|
16
|
+
import * as emails from './resources/emails';
|
|
17
|
+
import * as formApplicationTemplates from './resources/form-application-templates';
|
|
18
|
+
import * as formApplications from './resources/form-applications';
|
|
19
|
+
import * as forms from './resources/forms';
|
|
20
|
+
import * as funders from './resources/funders';
|
|
21
|
+
import * as funderServices from './resources/funder-services';
|
|
22
|
+
import * as funderSettings from './resources/funder-settings';
|
|
23
|
+
import * as futures from './resources/futures';
|
|
24
|
+
import * as healthFundAccounts from './resources/health-fund-accounts';
|
|
25
|
+
import * as healthFundSettings from './resources/health-fund-settings';
|
|
26
|
+
import * as healthfunds from './resources/healthfunds';
|
|
27
|
+
import * as icdItems from './resources/icditems';
|
|
28
|
+
import * as invoiceScans from './resources/invoice-scans';
|
|
29
|
+
import * as jhcs from './resources/jhcs';
|
|
30
|
+
import * as kyc from './resources/kyc';
|
|
31
|
+
import * as logs from './resources/logs';
|
|
32
|
+
import * as members from './resources/members';
|
|
33
|
+
import * as messageMappings from './resources/message-mappings';
|
|
34
|
+
import * as minions from './resources/minions';
|
|
35
|
+
import * as modalities from './resources/modalities';
|
|
36
|
+
import * as notes from './resources/notes';
|
|
37
|
+
import * as onboardingApplications from './resources/onboarding-applications';
|
|
38
|
+
import * as onboardingRequests from './resources/onboarding-requests';
|
|
39
|
+
import * as ops from './resources/ops';
|
|
40
|
+
import * as organisations from './resources/organisations';
|
|
41
|
+
import * as partners from './resources/partners';
|
|
42
|
+
import * as patients from './resources/patients';
|
|
43
|
+
import * as payments from './resources/payments';
|
|
44
|
+
import * as pms from './resources/pms';
|
|
45
|
+
import * as practiceProfiles from './resources/practice-profiles';
|
|
46
|
+
import * as practices from './resources/practices';
|
|
47
|
+
import * as practiceTypes from './resources/practice-types';
|
|
48
|
+
import * as products from './resources/products';
|
|
49
|
+
import * as professionalCategories from './resources/professional-categories';
|
|
50
|
+
import * as providerRequests from './resources/provider-requests';
|
|
51
|
+
import * as providerRegistrationTypes from './resources/provider-registration-types';
|
|
52
|
+
import * as providerNumberTypes from './resources/provider-number-types';
|
|
53
|
+
import * as providerTypes from './resources/provider-types';
|
|
54
|
+
import * as refSources from './resources/ref-sources';
|
|
55
|
+
import * as risk from './resources/risk';
|
|
56
|
+
import * as rnas from './resources/rnas';
|
|
57
|
+
import * as roles from './resources/roles';
|
|
58
|
+
import * as selfCheckoutSessions from './resources/self-checkout-sessions';
|
|
59
|
+
import * as services from './resources/services';
|
|
60
|
+
import * as settlements from './resources/settlements';
|
|
61
|
+
import * as signUp from './resources/sign-up';
|
|
62
|
+
import * as specialties from './resources/specialties';
|
|
63
|
+
import * as staffProfiles from './resources/staff-profiles';
|
|
64
|
+
import * as staff from './resources/staff';
|
|
65
|
+
import * as statistics from './resources/statistics';
|
|
66
|
+
import * as subscriptions from './resources/subscriptions';
|
|
67
|
+
import * as terminals from './resources/terminals';
|
|
68
|
+
import * as transactionExport from './resources/transaction-export';
|
|
69
|
+
import * as transactions from './resources/transactions';
|
|
70
|
+
import * as triggers from './resources/triggers';
|
|
71
|
+
import * as vendors from './resources/vendors';
|
|
72
|
+
import * as verify from './resources/verify';
|
|
73
|
+
import * as workers from './resources/workers';
|
|
74
|
+
import * as workflowExceptions from './resources/workflow-exceptions';
|
|
75
|
+
import * as aws from './services/aws';
|
|
76
|
+
import * as versions from './services/version';
|
|
77
|
+
import * as regions from './utils/regions';
|
|
78
|
+
import * as professionsUtils from './utils/professions';
|
|
79
|
+
import * as staffUtils from './utils/staff';
|
|
80
|
+
import * as applicationUtils from './utils/application';
|
|
81
|
+
export declare const APP_ID = "web-application";
|
|
82
|
+
export declare const API_VER = "0.82.0";
|
|
83
|
+
export declare const API_VERSIONS: {
|
|
84
|
+
core: string;
|
|
85
|
+
risk: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const CONTENT_TYPE = "application/json";
|
|
88
|
+
export declare const DEFAULT_ENV = "prod";
|
|
89
|
+
export declare const DEFAULT_REGION = "au";
|
|
90
|
+
export declare const DEFAULT_VERSION = "v1";
|
|
91
|
+
export declare const HEADER__APP_ID = "x-appid";
|
|
92
|
+
export declare const HEADER__APP_VERSION = "x-appver";
|
|
93
|
+
export declare const HEADER__API_VER = "x-apiver";
|
|
94
|
+
export declare const HEADER__DEVICE_ID = "x-deviceid";
|
|
95
|
+
export declare const HEADER__INTERCOM_HASH = "x-intercom-hash";
|
|
96
|
+
export declare const HEADER__SDK_VERSION = "x-sdkver";
|
|
97
|
+
export declare const HEADER__TOKEN = "x-token";
|
|
98
|
+
export declare const _isTokenExpired: (token: string) => boolean;
|
|
99
|
+
declare const sdkClient: {
|
|
100
|
+
account: any;
|
|
101
|
+
accountId: any;
|
|
102
|
+
apiVersions: {
|
|
103
|
+
core: string;
|
|
104
|
+
risk: string;
|
|
105
|
+
};
|
|
106
|
+
appId: string;
|
|
107
|
+
appVersion: any;
|
|
108
|
+
apiVer: string;
|
|
109
|
+
axios: import("axios").AxiosInstance;
|
|
110
|
+
baseUrls: any;
|
|
111
|
+
defaultVersion: string;
|
|
112
|
+
device: any;
|
|
113
|
+
env: string;
|
|
114
|
+
hasInit: boolean;
|
|
115
|
+
intercomHash: any;
|
|
116
|
+
isSuperAdmin: any;
|
|
117
|
+
isAnalyticsInitialised: boolean;
|
|
118
|
+
member: any;
|
|
119
|
+
region: any;
|
|
120
|
+
requestInterceptor: any;
|
|
121
|
+
requestInterceptorSuccess: any;
|
|
122
|
+
sdkVersion: any;
|
|
123
|
+
tokens: any;
|
|
124
|
+
accounts: typeof accounts;
|
|
125
|
+
actions: typeof actions;
|
|
126
|
+
apiKeys: typeof apiKeys;
|
|
127
|
+
attachments: typeof attachments;
|
|
128
|
+
auth: typeof auth;
|
|
129
|
+
applications: typeof applications;
|
|
130
|
+
bulkUploads: typeof bulkUploads;
|
|
131
|
+
bulkSubmits: typeof bulkSubmits;
|
|
132
|
+
businessProfiles: typeof businessProfiles;
|
|
133
|
+
businesses: typeof businesses;
|
|
134
|
+
claimItems: typeof claimItems;
|
|
135
|
+
devices: typeof devices;
|
|
136
|
+
docAccounts: typeof docAccounts;
|
|
137
|
+
documents: typeof documents;
|
|
138
|
+
emails: typeof emails;
|
|
139
|
+
formApplicationTemplates: typeof formApplicationTemplates;
|
|
140
|
+
formApplications: typeof formApplications;
|
|
141
|
+
forms: typeof forms;
|
|
142
|
+
funders: typeof funders;
|
|
143
|
+
funderServices: typeof funderServices;
|
|
144
|
+
funderSettings: typeof funderSettings;
|
|
145
|
+
futures: typeof futures;
|
|
146
|
+
healthFundAccounts: typeof healthFundAccounts;
|
|
147
|
+
healthFundSettings: typeof healthFundSettings;
|
|
148
|
+
healthfunds: typeof healthfunds;
|
|
149
|
+
icdItems: typeof icdItems;
|
|
150
|
+
invoiceScans: typeof invoiceScans;
|
|
151
|
+
jhcs: typeof jhcs;
|
|
152
|
+
kyc: typeof kyc;
|
|
153
|
+
logs: typeof logs;
|
|
154
|
+
members: typeof members;
|
|
155
|
+
messageMappings: typeof messageMappings;
|
|
156
|
+
minions: typeof minions;
|
|
157
|
+
modalities: typeof modalities;
|
|
158
|
+
notes: typeof notes;
|
|
159
|
+
onboardingApplications: typeof onboardingApplications;
|
|
160
|
+
onboardingRequests: typeof onboardingRequests;
|
|
161
|
+
ops: typeof ops;
|
|
162
|
+
organisations: typeof organisations;
|
|
163
|
+
partners: typeof partners;
|
|
164
|
+
patients: typeof patients;
|
|
165
|
+
payments: typeof payments;
|
|
166
|
+
pms: typeof pms;
|
|
167
|
+
practiceProfiles: typeof practiceProfiles;
|
|
168
|
+
practices: typeof practices;
|
|
169
|
+
practiceTypes: typeof practiceTypes;
|
|
170
|
+
products: typeof products;
|
|
171
|
+
professionalCategories: typeof professionalCategories;
|
|
172
|
+
providerRequests: typeof providerRequests;
|
|
173
|
+
providerRegistrationTypes: typeof providerRegistrationTypes;
|
|
174
|
+
providerNumberTypes: typeof providerNumberTypes;
|
|
175
|
+
providerTypes: typeof providerTypes;
|
|
176
|
+
refSources: typeof refSources;
|
|
177
|
+
risk: typeof risk;
|
|
178
|
+
rnas: typeof rnas;
|
|
179
|
+
roles: typeof roles;
|
|
180
|
+
selfCheckoutSessions: typeof selfCheckoutSessions;
|
|
181
|
+
settlements: typeof settlements;
|
|
182
|
+
services: typeof services;
|
|
183
|
+
signUp: typeof signUp;
|
|
184
|
+
specialties: typeof specialties;
|
|
185
|
+
staffProfiles: typeof staffProfiles;
|
|
186
|
+
staff: typeof staff;
|
|
187
|
+
statistics: typeof statistics;
|
|
188
|
+
subscriptions: typeof subscriptions;
|
|
189
|
+
terminals: typeof terminals;
|
|
190
|
+
transactionExport: typeof transactionExport;
|
|
191
|
+
transactions: typeof transactions;
|
|
192
|
+
triggers: typeof triggers;
|
|
193
|
+
vendors: typeof vendors;
|
|
194
|
+
verify: typeof verify;
|
|
195
|
+
workflowExceptions: typeof workflowExceptions;
|
|
196
|
+
workers: typeof workers;
|
|
197
|
+
aws: typeof aws;
|
|
198
|
+
versions: typeof versions;
|
|
199
|
+
regions: typeof regions;
|
|
200
|
+
professionsUtils: typeof professionsUtils;
|
|
201
|
+
staffUtils: typeof staffUtils;
|
|
202
|
+
applicationUtils: typeof applicationUtils;
|
|
203
|
+
storage: {
|
|
204
|
+
clearAll: (opts?: import("./services/storage").CommonOpts) => void;
|
|
205
|
+
remove: (key: string, opts?: import("./services/storage").CommonOpts) => void;
|
|
206
|
+
get: (key: string, opts?: import("./services/storage").CommonOpts) => any;
|
|
207
|
+
set: (key: string, val: any, opts?: import("./services/storage").SetOpts) => void;
|
|
208
|
+
onboardingStatus: {
|
|
209
|
+
get: () => any;
|
|
210
|
+
set: (value: any, opts?: import("./services/storage").SetOpts) => void;
|
|
211
|
+
remove: () => void;
|
|
212
|
+
};
|
|
213
|
+
previousCreatePHITransactionFormValues: {
|
|
214
|
+
get: () => any;
|
|
215
|
+
set: (value: any, opts?: import("./services/storage").SetOpts) => void;
|
|
216
|
+
remove: () => void;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Setup the Medipass SDK
|
|
221
|
+
* @param {String} env - The environment that the SDK will point to
|
|
222
|
+
* @param {?Object} opts - Additional setup options
|
|
223
|
+
*/
|
|
224
|
+
setup(env?: string, opts?: SetupOpts): void;
|
|
225
|
+
setConfig(opts: SetupOpts): void;
|
|
226
|
+
setSDKAppVersion(version: string): void;
|
|
227
|
+
/**
|
|
228
|
+
* Check if the token is valid and the client is logged in
|
|
229
|
+
* @return {Boolean} hasValidSession
|
|
230
|
+
*/
|
|
231
|
+
hasValidSession(tokenType?: string): boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Check if the token has expired
|
|
234
|
+
* @return {Boolean} hasSessionExpired
|
|
235
|
+
*/
|
|
236
|
+
hasSessionExpired(tokenType?: string): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Set the HTTP request interceptor - will intercept every HTTP request that the Medipass SDK uses.
|
|
239
|
+
* @param {Object} headers - Headers to be included in every request
|
|
240
|
+
*/
|
|
241
|
+
setRequestInterceptor(headers: Record<string, any>): void;
|
|
242
|
+
/**
|
|
243
|
+
* Set the HTTP response interceptor - will intercept every HTTP response that the Medipass SDK uses.
|
|
244
|
+
*/
|
|
245
|
+
setResponseInterceptor(): void;
|
|
246
|
+
clearTokens(): void;
|
|
247
|
+
isImpersonating(): boolean;
|
|
248
|
+
getTokenExpiry(tokenType?: string): any;
|
|
249
|
+
setToken(token: string, tokenType?: string): void;
|
|
250
|
+
setAccount(account: Record<string, any>): void;
|
|
251
|
+
setMember(member: Record<string, any>): void;
|
|
252
|
+
setRegion(region: string): void;
|
|
253
|
+
/**
|
|
254
|
+
* Kill the SDK - stop interceptors, clear class properties, clear local storage
|
|
255
|
+
*/
|
|
256
|
+
stop(): void;
|
|
257
|
+
removeStorage(): void;
|
|
258
|
+
setIsAnalyticsInitialised(isInitialised: boolean): void;
|
|
259
|
+
};
|
|
260
|
+
export default sdkClient;
|
|
261
|
+
export * from './types';
|
|
262
|
+
export { sdkClient, accounts, actions, apiKeys, attachments, auth, applications, bulkUploads, bulkSubmits, businessProfiles, businesses, claimItems, devices, docAccounts, documents, emails, formApplicationTemplates, formApplications, forms, funders, funderServices, funderSettings, futures, healthFundAccounts, healthFundSettings, healthfunds, icdItems, invoiceScans, jhcs, kyc, logs, members, messageMappings, minions, modalities, notes, onboardingApplications, onboardingRequests, ops, organisations, partners, patients, payments, pms, practiceProfiles, practices, practiceTypes, products, professionalCategories, providerRequests, providerRegistrationTypes, providerNumberTypes, providerTypes, refSources, risk, rnas, roles, selfCheckoutSessions, services, settlements, signUp, specialties, staffProfiles, staff, statistics, subscriptions, terminals, transactionExport, transactions, triggers, vendors, verify, workers, workflowExceptions, aws, versions, regions, professionsUtils, staffUtils, applicationUtils };
|
package/lib/index.js
CHANGED
|
@@ -18,8 +18,7 @@ require('./utils/param-error.js');
|
|
|
18
18
|
require('./utils/does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./utils/get-axios-error.js');
|
|
21
|
-
require('./
|
|
22
|
-
var request = require('./staff-f19eb168.js');
|
|
21
|
+
var request = require('./staff-96febcd8.js');
|
|
23
22
|
require('lodash/omitBy');
|
|
24
23
|
require('lodash/isEmpty');
|
|
25
24
|
require('store/src/store-engine');
|
|
@@ -27,6 +26,7 @@ require('store/storages/localStorage');
|
|
|
27
26
|
require('store/storages/sessionStorage');
|
|
28
27
|
require('masked');
|
|
29
28
|
require('@medipass/utils/sensitive-keys');
|
|
29
|
+
require('./services/storage.js');
|
|
30
30
|
require('platform');
|
|
31
31
|
require('@medipass/utils/constants');
|
|
32
32
|
require('braintree-web/client');
|
|
@@ -40,7 +40,7 @@ require('./utils/base-urls/core.js');
|
|
|
40
40
|
require('./utils/base-urls/risk.js');
|
|
41
41
|
require('./utils/base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('./regions-
|
|
43
|
+
var regions = require('./regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -60,4 +60,84 @@ exports.HEADER__INTERCOM_HASH = request.HEADER__INTERCOM_HASH;
|
|
|
60
60
|
exports.HEADER__SDK_VERSION = request.HEADER__SDK_VERSION;
|
|
61
61
|
exports.HEADER__TOKEN = request.HEADER__TOKEN;
|
|
62
62
|
exports._isTokenExpired = request._isTokenExpired;
|
|
63
|
+
exports.accounts = request.accounts;
|
|
64
|
+
exports.actions = request.actions;
|
|
65
|
+
exports.apiKeys = request.apiKeys;
|
|
66
|
+
exports.applicationUtils = request.applicationUtils;
|
|
67
|
+
exports.applications = request.applications;
|
|
68
|
+
exports.attachments = request.attachments;
|
|
69
|
+
exports.auth = request.auth;
|
|
70
|
+
exports.aws = request.aws;
|
|
71
|
+
exports.bulkSubmits = request.bulkSubmits;
|
|
72
|
+
exports.bulkUploads = request.bulkUploads;
|
|
73
|
+
exports.businessProfiles = request.businessProfiles;
|
|
74
|
+
exports.businesses = request.businesses;
|
|
75
|
+
exports.claimItems = request.claimItems;
|
|
63
76
|
exports.default = request.sdk;
|
|
77
|
+
exports.devices = request.devices;
|
|
78
|
+
exports.docAccounts = request.docAccounts;
|
|
79
|
+
exports.documents = request.documents;
|
|
80
|
+
exports.emails = request.emails;
|
|
81
|
+
exports.formApplicationTemplates = request.formApplicationTemplates;
|
|
82
|
+
exports.formApplications = request.formApplications;
|
|
83
|
+
exports.forms = request.forms;
|
|
84
|
+
exports.funderServices = request.funderServices;
|
|
85
|
+
exports.funderSettings = request.funderSettings;
|
|
86
|
+
exports.funders = request.funders;
|
|
87
|
+
exports.futures = request.futures;
|
|
88
|
+
exports.healthFundAccounts = request.healthFundAccounts;
|
|
89
|
+
exports.healthFundSettings = request.healthFundSettings;
|
|
90
|
+
exports.healthfunds = request.healthfunds;
|
|
91
|
+
exports.icdItems = request.icdItems;
|
|
92
|
+
exports.invoiceScans = request.invoiceScans;
|
|
93
|
+
exports.jhcs = request.jhcs;
|
|
94
|
+
exports.kyc = request.kyc;
|
|
95
|
+
exports.logs = request.logs;
|
|
96
|
+
exports.members = request.members;
|
|
97
|
+
exports.messageMappings = request.messageMappings;
|
|
98
|
+
exports.minions = request.minions;
|
|
99
|
+
exports.modalities = request.modalities;
|
|
100
|
+
exports.notes = request.notes;
|
|
101
|
+
exports.onboardingApplications = request.onboardingApplications;
|
|
102
|
+
exports.onboardingRequests = request.onboardingRequests;
|
|
103
|
+
exports.ops = request.ops;
|
|
104
|
+
exports.organisations = request.organisations;
|
|
105
|
+
exports.partners = request.partners;
|
|
106
|
+
exports.patients = request.patients;
|
|
107
|
+
exports.payments = request.payments;
|
|
108
|
+
exports.pms = request.pms;
|
|
109
|
+
exports.practiceProfiles = request.practiceProfiles;
|
|
110
|
+
exports.practiceTypes = request.practiceTypes;
|
|
111
|
+
exports.practices = request.practices;
|
|
112
|
+
exports.products = request.products;
|
|
113
|
+
exports.professionalCategories = request.professionalCategories;
|
|
114
|
+
exports.professionsUtils = request.professionsUtils;
|
|
115
|
+
exports.providerNumberTypes = request.providerNumberTypes;
|
|
116
|
+
exports.providerRegistrationTypes = request.providerRegistrationTypes;
|
|
117
|
+
exports.providerRequests = request.providerRequests;
|
|
118
|
+
exports.providerTypes = request.providerTypes;
|
|
119
|
+
exports.refSources = request.refSources;
|
|
120
|
+
exports.risk = request.risk;
|
|
121
|
+
exports.rnas = request.rnas;
|
|
122
|
+
exports.roles = request.roles;
|
|
123
|
+
exports.sdkClient = request.sdkClient;
|
|
124
|
+
exports.selfCheckoutSessions = request.selfCheckoutSessions;
|
|
125
|
+
exports.services = request.services;
|
|
126
|
+
exports.settlements = request.settlements;
|
|
127
|
+
exports.signUp = request.signUp$1;
|
|
128
|
+
exports.specialties = request.specialties;
|
|
129
|
+
exports.staff = request.staff;
|
|
130
|
+
exports.staffProfiles = request.staffProfiles;
|
|
131
|
+
exports.staffUtils = request.staffUtils;
|
|
132
|
+
exports.statistics = request.statistics;
|
|
133
|
+
exports.subscriptions = request.subscriptions;
|
|
134
|
+
exports.terminals = request.terminals;
|
|
135
|
+
exports.transactionExport = request.transactionExport;
|
|
136
|
+
exports.transactions = request.transactions;
|
|
137
|
+
exports.triggers = request.triggers;
|
|
138
|
+
exports.vendors = request.vendors;
|
|
139
|
+
exports.verify = request.verify;
|
|
140
|
+
exports.versions = request.versions;
|
|
141
|
+
exports.workers = request.workers;
|
|
142
|
+
exports.workflowExceptions = request.workflowExceptions;
|
|
143
|
+
exports.regions = regions.regions;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
4
|
|
|
5
|
-
var storage = require('./storage
|
|
5
|
+
var storage = require('./services/storage.js');
|
|
6
6
|
var cookies = _interopDefault(require('js-cookie'));
|
|
7
7
|
|
|
8
8
|
var COUNTRY_CODES = {
|
|
@@ -12,7 +12,7 @@ var COUNTRY_CODES = {
|
|
|
12
12
|
var DEFAULT_COUNTRY = COUNTRY_CODES.au;
|
|
13
13
|
function getUserRegion() {
|
|
14
14
|
var countryCookie = (cookies.get('medipassCountry') || '').toLowerCase();
|
|
15
|
-
var countryCode = storage.
|
|
15
|
+
var countryCode = storage.default.get('region') || COUNTRY_CODES[countryCookie];
|
|
16
16
|
Object.values(COUNTRY_CODES).forEach(function (code) {
|
|
17
17
|
if (typeof window !== 'undefined' && new RegExp(code + "$").test(window.location.pathname)) {
|
|
18
18
|
countryCode = code;
|