@medipass/web-sdk 11.37.8 → 11.38.1-feature-typescript-claudia.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +95 -0
- package/CHANGELOG.md +11 -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 +4 -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-df3df93e.js → staff-96febcd8.js} +217 -582
- 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/.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 -79
- 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/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.38.1-feature-typescript-claudia.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"build": "BABEL_RUNTIME=true node ../../scripts/build.js
|
|
8
|
+
"build": "BABEL_RUNTIME=true node ../../scripts/build.js",
|
|
8
9
|
"clean": "node ../../scripts/clean.js",
|
|
9
10
|
"develop": "BABEL_RUNTIME=true node ../../scripts/build.js --watch",
|
|
10
|
-
"lint": "eslint
|
|
11
|
-
"lint:fix": "eslint
|
|
11
|
+
"lint": "eslint \"**/*.{ts,tsx}\"",
|
|
12
|
+
"lint:fix": "eslint \"**/*.{ts,tsx}\" --fix",
|
|
12
13
|
"prepare": "yarn build",
|
|
13
14
|
"postpublish": "yarn clean",
|
|
14
15
|
"start": "serve -s docs --auth",
|
|
15
16
|
"test": "yarn lint && rm -rf ./node_modules/jest-cli/.haste_cache && jest",
|
|
16
17
|
"test-ci": "yarn lint && rm -rf ./node_modules/jest-cli/.haste_cache && jest --silent",
|
|
17
|
-
"test:watch": "yarn test -- --watch"
|
|
18
|
+
"test:watch": "yarn test -- --watch",
|
|
19
|
+
"check-types": "tsc --noEmit --project tsconfig.json"
|
|
18
20
|
},
|
|
19
21
|
"repository": {
|
|
20
22
|
"type": "git",
|
|
@@ -43,11 +45,19 @@
|
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
47
|
"@babel/plugin-transform-runtime": "7.8.3",
|
|
46
|
-
"@medipass/utils": "^11.66.
|
|
48
|
+
"@medipass/utils": "^11.66.7-feature-typescript-claudia.0",
|
|
49
|
+
"@types/jest": "28.1.6",
|
|
50
|
+
"@types/mocha": "9.1.1",
|
|
51
|
+
"@types/node": "18.7.1",
|
|
47
52
|
"axios-mock-adapter": "1.19.0",
|
|
48
|
-
"flow-copy-source": "2.0.2",
|
|
49
53
|
"query-string": "7.0.0",
|
|
50
|
-
"rimraf": "^2.6.2"
|
|
54
|
+
"rimraf": "^2.6.2",
|
|
55
|
+
"ts-migrate": "^0.1.31",
|
|
56
|
+
"ts-migrate-plugins": "^0.1.31",
|
|
57
|
+
"typescript": "4.7.4"
|
|
51
58
|
},
|
|
52
|
-
"
|
|
59
|
+
"resolutions": {
|
|
60
|
+
"react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
|
|
61
|
+
},
|
|
62
|
+
"gitHead": "789e320bece0383354e4dc2cbdf1082702192ba9"
|
|
53
63
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2019",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Node",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ESNext",
|
|
8
|
+
"ESNext.AsyncIterable",
|
|
9
|
+
"DOM"
|
|
10
|
+
],
|
|
11
|
+
"allowJs": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"experimentalDecorators": true,
|
|
16
|
+
"strict": false,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"jsx": "react",
|
|
20
|
+
"rootDir": "src",
|
|
21
|
+
"baseUrl": "src",
|
|
22
|
+
"outDir": "lib",
|
|
23
|
+
"typeRoots" : ["node_modules/@types", "types"],
|
|
24
|
+
"forceConsistentCasingInFileNames": true,
|
|
25
|
+
"declaration": true
|
|
26
|
+
},
|
|
27
|
+
"include": ["src", "types"],
|
|
28
|
+
"exclude": [
|
|
29
|
+
"node_modules",
|
|
30
|
+
"src/**/__mocks__",
|
|
31
|
+
"src/**/__tests__"
|
|
32
|
+
]
|
|
33
|
+
}
|
package/.eslintrc
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
/** START: Query */
|
|
5
|
-
export type BusinessDocumentsQuery = {
|
|
6
|
-
...PaginatedQuery,
|
|
7
|
-
isPublished?: boolean,
|
|
8
|
-
practiceId?: string,
|
|
9
|
-
sort?: string
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type HealthFundDocumentsQuery = {
|
|
13
|
-
...PaginatedQuery,
|
|
14
|
-
excludeDocumentIds?: string
|
|
15
|
-
};
|
|
16
|
-
/** END: Query */
|
|
17
|
-
|
|
18
|
-
/** START: Requests */
|
|
19
|
-
export type DeclineHealthFundDocumentBody = {
|
|
20
|
-
formApplicationDeclineReasonId: string,
|
|
21
|
-
note?: string
|
|
22
|
-
};
|
|
23
|
-
export type CeaseHealthFundDocumentBody = {
|
|
24
|
-
formApplicationCeaseReasonId: string,
|
|
25
|
-
note?: string
|
|
26
|
-
};
|
|
27
|
-
export type ParkHealthFundDocumentBody = {
|
|
28
|
-
workflowExceptionId: string,
|
|
29
|
-
note?: string
|
|
30
|
-
};
|
|
31
|
-
/** END: Requests */
|
|
32
|
-
|
|
33
|
-
/** START: Responses */
|
|
34
|
-
export type BusinessDocumentResponse = {
|
|
35
|
-
_id: string,
|
|
36
|
-
organisationId: string,
|
|
37
|
-
healthFund: {
|
|
38
|
-
_id: string,
|
|
39
|
-
displayName: string
|
|
40
|
-
},
|
|
41
|
-
documentType: string,
|
|
42
|
-
documentId: string,
|
|
43
|
-
fullName: string,
|
|
44
|
-
displayName: string,
|
|
45
|
-
description: string,
|
|
46
|
-
visibilityRules: {
|
|
47
|
-
businessRules: {
|
|
48
|
-
modalityIds: Array<string>,
|
|
49
|
-
states: Array<string>
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
status: string,
|
|
53
|
-
isPublished?: boolean,
|
|
54
|
-
created: string,
|
|
55
|
-
modified: string
|
|
56
|
-
};
|
|
57
|
-
export type BusinessDocumentsResponse = {
|
|
58
|
-
meta: PaginationMeta,
|
|
59
|
-
items: Array<BusinessDocumentResponse>
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export type HealthFundDocumentResponse = {
|
|
63
|
-
_id: string,
|
|
64
|
-
businessId: string,
|
|
65
|
-
organisationId: string,
|
|
66
|
-
healthFund: {
|
|
67
|
-
_id: string,
|
|
68
|
-
displayName: string
|
|
69
|
-
},
|
|
70
|
-
funderId: string,
|
|
71
|
-
createdByStaffName: string,
|
|
72
|
-
documentNumber: string,
|
|
73
|
-
documentType: string,
|
|
74
|
-
documentId: string,
|
|
75
|
-
fullName: string,
|
|
76
|
-
displayName: string,
|
|
77
|
-
description: string,
|
|
78
|
-
visibilityRules: {
|
|
79
|
-
businessRules: {
|
|
80
|
-
modalityIds: Array<string>,
|
|
81
|
-
states: Array<string>
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
practice: {
|
|
85
|
-
_id: string,
|
|
86
|
-
displayName: string,
|
|
87
|
-
abn?: string,
|
|
88
|
-
address?: string,
|
|
89
|
-
city?: string,
|
|
90
|
-
state?: string,
|
|
91
|
-
country?: string
|
|
92
|
-
},
|
|
93
|
-
workflowState: string,
|
|
94
|
-
assignedToAccountId: string,
|
|
95
|
-
assignedToUsername: string,
|
|
96
|
-
approvedByAccountId: string,
|
|
97
|
-
approvedByUsername: string,
|
|
98
|
-
approvedDate: string,
|
|
99
|
-
createdByAccountId: string,
|
|
100
|
-
createdByAccountUsername: string,
|
|
101
|
-
declinedDate: string,
|
|
102
|
-
status: string,
|
|
103
|
-
tags: Array<{
|
|
104
|
-
_id: string,
|
|
105
|
-
workflowException: { _id: string, code: string, displayName: string, description: string },
|
|
106
|
-
assignedByAccountId: string,
|
|
107
|
-
assignedByUsername: string,
|
|
108
|
-
notes: string
|
|
109
|
-
}>,
|
|
110
|
-
isPublished?: boolean,
|
|
111
|
-
created: string,
|
|
112
|
-
modified: string
|
|
113
|
-
};
|
|
114
|
-
export type HealthFundDocumentsResponse = {
|
|
115
|
-
meta: PaginationMeta,
|
|
116
|
-
items: Array<HealthFundDocumentResponse>
|
|
117
|
-
};
|
|
118
|
-
/** END: Responses */
|
package/lib/_types/forms.js.flow
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
export type ApplyForBusinessFormRequestBody = {
|
|
5
|
-
practiceIds: Array<?string>,
|
|
6
|
-
subsections?: Array<?{ _id: string, value: string }>,
|
|
7
|
-
files?: Array<Object>
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type CreateHealthFundFormRequestBody = {
|
|
11
|
-
fullName: string,
|
|
12
|
-
displayName: string,
|
|
13
|
-
description?: string,
|
|
14
|
-
logoUrl?: string,
|
|
15
|
-
visibilityRules: Array<{
|
|
16
|
-
businessRules: {
|
|
17
|
-
modalityIds: Array<string>,
|
|
18
|
-
states: Array<string>
|
|
19
|
-
}
|
|
20
|
-
}>,
|
|
21
|
-
sections: Array<{
|
|
22
|
-
heading: string,
|
|
23
|
-
description?: string,
|
|
24
|
-
links?: Array<{ displayName: string, url: string }>,
|
|
25
|
-
files?: Array<{ displayName: string, url: string, contentType: string }>
|
|
26
|
-
}>,
|
|
27
|
-
scannedApplication: boolean
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type GetHealthFundFormsQuery = {
|
|
31
|
-
...PaginatedQuery,
|
|
32
|
-
hasApplicationTemplate?: Boolean
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type GetHealthFundFormUploadUrlQuery = {
|
|
36
|
-
contentType: string,
|
|
37
|
-
fileName: string
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type UpdateHealthFundFormRequestBody = {
|
|
41
|
-
fullName?: string,
|
|
42
|
-
displayName?: string,
|
|
43
|
-
description?: string,
|
|
44
|
-
logoUrl?: ?string,
|
|
45
|
-
visibilityRules?: {
|
|
46
|
-
businessRules?: {
|
|
47
|
-
modalityIds?: Array<string>,
|
|
48
|
-
states?: Array<string>
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
sections?: Array<{
|
|
52
|
-
heading?: string,
|
|
53
|
-
description?: string,
|
|
54
|
-
links?: Array<{ displayName: string, url: string }>,
|
|
55
|
-
files?: Array<{ displayName: string, url: string, contentType: string }>
|
|
56
|
-
}>
|
|
57
|
-
};
|
package/lib/_types/index.js.flow
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
export * from './documents';
|
|
3
|
-
export * from './forms';
|
|
4
|
-
export * from './message-mappings';
|
|
5
|
-
export * from './notes';
|
|
6
|
-
export * from './products';
|
|
7
|
-
export * from './professional-categories';
|
|
8
|
-
export * from './specialties';
|
|
9
|
-
export * from './subscriptions';
|
|
10
|
-
|
|
11
|
-
export type MedipassRequestOpts = {
|
|
12
|
-
baseUrl?: string,
|
|
13
|
-
hyperMediaEndpoint?: ?string,
|
|
14
|
-
path?: string,
|
|
15
|
-
requestConfig?: Object,
|
|
16
|
-
apiName?: string,
|
|
17
|
-
asSuperAdmin?: boolean,
|
|
18
|
-
getFullError?: boolean,
|
|
19
|
-
getFullResponse?: boolean,
|
|
20
|
-
tokenType?: string,
|
|
21
|
-
ver?: string
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export type PaginationMeta = {
|
|
25
|
-
count: number,
|
|
26
|
-
totalCount: number,
|
|
27
|
-
pageCount: number,
|
|
28
|
-
self?: ?string,
|
|
29
|
-
previous?: ?string,
|
|
30
|
-
next?: ?string,
|
|
31
|
-
previous?: ?string,
|
|
32
|
-
first?: ?string,
|
|
33
|
-
last?: ?string
|
|
34
|
-
};
|
|
35
|
-
export type PaginatedQuery = {
|
|
36
|
-
limit?: number,
|
|
37
|
-
page?: number
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export type SetupOpts = {
|
|
41
|
-
baseUrls?: Object,
|
|
42
|
-
defaultVersion?: string,
|
|
43
|
-
appId?: string,
|
|
44
|
-
apiVer?: string,
|
|
45
|
-
apiVersions?: Object,
|
|
46
|
-
env?: string
|
|
47
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
/** START: Query */
|
|
5
|
-
export type GetBusinessMessageMappingsQuery = {
|
|
6
|
-
...PaginatedQuery,
|
|
7
|
-
type?: string
|
|
8
|
-
};
|
|
9
|
-
/** END: Query */
|
|
10
|
-
|
|
11
|
-
/** START: Responses */
|
|
12
|
-
export type GetBusinessMessageMappingsResponse = {
|
|
13
|
-
meta: PaginationMeta,
|
|
14
|
-
items: Array<{
|
|
15
|
-
_id: string,
|
|
16
|
-
refId: string,
|
|
17
|
-
refMessage: string,
|
|
18
|
-
created: string,
|
|
19
|
-
modified: string
|
|
20
|
-
}>
|
|
21
|
-
};
|
|
22
|
-
/** END: Responses */
|
package/lib/_types/notes.js.flow
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
/** START: Requests */
|
|
5
|
-
export type GetBusinessProductsQuery = {
|
|
6
|
-
...PaginatedQuery
|
|
7
|
-
};
|
|
8
|
-
/** START: Requests */
|
|
9
|
-
|
|
10
|
-
/** START: Responses */
|
|
11
|
-
export type ProductResponse = {
|
|
12
|
-
_id: string,
|
|
13
|
-
organisationId: string,
|
|
14
|
-
fullName: string,
|
|
15
|
-
displayName: string,
|
|
16
|
-
description: string,
|
|
17
|
-
defaultBilling: {
|
|
18
|
-
currencyCode: string,
|
|
19
|
-
frequency: string,
|
|
20
|
-
amountFee: number,
|
|
21
|
-
amountFeeString: string,
|
|
22
|
-
amountCharged: number,
|
|
23
|
-
amountChargedString: string,
|
|
24
|
-
strategy: string
|
|
25
|
-
},
|
|
26
|
-
features: Array<{
|
|
27
|
-
fullName: string,
|
|
28
|
-
displayName: string,
|
|
29
|
-
description: string
|
|
30
|
-
}>,
|
|
31
|
-
phasedOut: string,
|
|
32
|
-
created: string,
|
|
33
|
-
modified: string
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export type ProductsResponse = {
|
|
37
|
-
meta: PaginationMeta,
|
|
38
|
-
items: Array<ProductResponse>
|
|
39
|
-
};
|
|
40
|
-
/** END: Responses */
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
/** START: Requests */
|
|
5
|
-
export type GetProfessionalCategoriesQuery = {
|
|
6
|
-
...PaginatedQuery,
|
|
7
|
-
searchText?: string
|
|
8
|
-
};
|
|
9
|
-
/** START: Requests */
|
|
10
|
-
|
|
11
|
-
/** START: Responses */
|
|
12
|
-
export type ProfessionalCategoryResponse = {
|
|
13
|
-
_id: string,
|
|
14
|
-
fullName: string,
|
|
15
|
-
displayName: string,
|
|
16
|
-
description: string,
|
|
17
|
-
created: string,
|
|
18
|
-
modified: string
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type ProfessionalCategoriesResponse = {
|
|
22
|
-
meta: PaginationMeta,
|
|
23
|
-
items: Array<ProfessionalCategoryResponse>
|
|
24
|
-
};
|
|
25
|
-
/** END: Responses */
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
/** START: Requests */
|
|
5
|
-
export type GetSpecialtiesQuery = {
|
|
6
|
-
...PaginatedQuery,
|
|
7
|
-
professionalCategoryId?: string,
|
|
8
|
-
searchText?: string
|
|
9
|
-
};
|
|
10
|
-
/** START: Requests */
|
|
11
|
-
|
|
12
|
-
/** START: Responses */
|
|
13
|
-
export type SpecialtyResponse = {
|
|
14
|
-
_id: string,
|
|
15
|
-
professionalCategoryId: string,
|
|
16
|
-
fullName: string,
|
|
17
|
-
displayName: string,
|
|
18
|
-
description: string,
|
|
19
|
-
created: string,
|
|
20
|
-
modified: string
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export type SpecialtiesResponse = {
|
|
24
|
-
meta: PaginationMeta,
|
|
25
|
-
items: Array<SpecialtyResponse>
|
|
26
|
-
};
|
|
27
|
-
/** END: Responses */
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
3
|
-
|
|
4
|
-
/** START: Requests */
|
|
5
|
-
export type CreateBusinessSubscriptionBody = {
|
|
6
|
-
productId: string,
|
|
7
|
-
paymentMethodId: string
|
|
8
|
-
};
|
|
9
|
-
export type UpdateBusinessSubscriptionBody = {
|
|
10
|
-
paymentMethodId?: string,
|
|
11
|
-
promotionCode?: string
|
|
12
|
-
};
|
|
13
|
-
export type GetBusinessSubscriptionsQuery = {
|
|
14
|
-
...PaginatedQuery
|
|
15
|
-
};
|
|
16
|
-
/** START: Requests */
|
|
17
|
-
|
|
18
|
-
/** START: Responses */
|
|
19
|
-
export type SubscriptionResponse = {
|
|
20
|
-
_id: string,
|
|
21
|
-
organisationId: string,
|
|
22
|
-
businessId: string,
|
|
23
|
-
product: {
|
|
24
|
-
_id: string,
|
|
25
|
-
fullName: string,
|
|
26
|
-
displayName: string
|
|
27
|
-
},
|
|
28
|
-
paymentMethod: {
|
|
29
|
-
_id: string,
|
|
30
|
-
methodType: string,
|
|
31
|
-
source: string,
|
|
32
|
-
cardType: string,
|
|
33
|
-
lastFour: string
|
|
34
|
-
},
|
|
35
|
-
startDate: string,
|
|
36
|
-
endDate: string,
|
|
37
|
-
nextBillingDate: string,
|
|
38
|
-
status: string,
|
|
39
|
-
billing: {
|
|
40
|
-
currencyCode: string,
|
|
41
|
-
frequency: string,
|
|
42
|
-
amountFee: number,
|
|
43
|
-
amountFeeString: string,
|
|
44
|
-
amountCharged: number,
|
|
45
|
-
amountChargedString: string,
|
|
46
|
-
amountDiscount: number,
|
|
47
|
-
amountDiscountString: string,
|
|
48
|
-
strategy: string
|
|
49
|
-
},
|
|
50
|
-
created: string,
|
|
51
|
-
modified: string
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export type SubscriptionsResponse = {
|
|
55
|
-
meta: PaginationMeta,
|
|
56
|
-
items: Array<SubscriptionResponse>
|
|
57
|
-
};
|
|
58
|
-
/** END: Responses */
|