@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
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
+
/** START: Query */
|
|
3
|
+
export declare type BusinessDocumentsQuery = PaginatedQuery & {
|
|
4
|
+
isPublished?: boolean;
|
|
5
|
+
practiceId?: string;
|
|
6
|
+
sort?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type HealthFundDocumentsQuery = PaginatedQuery & {
|
|
9
|
+
excludeDocumentIds?: string;
|
|
10
|
+
};
|
|
11
|
+
/** END: Query */
|
|
12
|
+
/** START: Requests */
|
|
13
|
+
export declare type DeclineHealthFundDocumentBody = {
|
|
14
|
+
formApplicationDeclineReasonId: string;
|
|
15
|
+
note?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare type CeaseHealthFundDocumentBody = {
|
|
18
|
+
formApplicationCeaseReasonId: string;
|
|
19
|
+
note?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type ParkHealthFundDocumentBody = {
|
|
22
|
+
workflowExceptionId: string;
|
|
23
|
+
note?: string;
|
|
24
|
+
};
|
|
25
|
+
/** END: Requests */
|
|
26
|
+
/** START: Responses */
|
|
27
|
+
export declare type BusinessDocumentResponse = {
|
|
28
|
+
_id: string;
|
|
29
|
+
organisationId: string;
|
|
30
|
+
healthFund: {
|
|
31
|
+
_id: string;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
documentType: string;
|
|
35
|
+
documentId: string;
|
|
36
|
+
fullName: string;
|
|
37
|
+
displayName: string;
|
|
38
|
+
description: string;
|
|
39
|
+
visibilityRules: {
|
|
40
|
+
businessRules: {
|
|
41
|
+
modalityIds: Array<string>;
|
|
42
|
+
states: Array<string>;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
status: string;
|
|
46
|
+
isPublished?: boolean;
|
|
47
|
+
created: string;
|
|
48
|
+
modified: string;
|
|
49
|
+
};
|
|
50
|
+
export declare type BusinessDocumentsResponse = {
|
|
51
|
+
meta: PaginationMeta;
|
|
52
|
+
items: Array<BusinessDocumentResponse>;
|
|
53
|
+
};
|
|
54
|
+
export declare type HealthFundDocumentResponse = {
|
|
55
|
+
_id: string;
|
|
56
|
+
businessId: string;
|
|
57
|
+
organisationId: string;
|
|
58
|
+
healthFund: {
|
|
59
|
+
_id: string;
|
|
60
|
+
displayName: string;
|
|
61
|
+
};
|
|
62
|
+
funderId: string;
|
|
63
|
+
createdByStaffName: string;
|
|
64
|
+
documentNumber: string;
|
|
65
|
+
documentType: string;
|
|
66
|
+
documentId: string;
|
|
67
|
+
fullName: string;
|
|
68
|
+
displayName: string;
|
|
69
|
+
description: string;
|
|
70
|
+
visibilityRules: {
|
|
71
|
+
businessRules: {
|
|
72
|
+
modalityIds: Array<string>;
|
|
73
|
+
states: Array<string>;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
practice: {
|
|
77
|
+
_id: string;
|
|
78
|
+
displayName: string;
|
|
79
|
+
abn?: string;
|
|
80
|
+
address?: string;
|
|
81
|
+
city?: string;
|
|
82
|
+
state?: string;
|
|
83
|
+
country?: string;
|
|
84
|
+
};
|
|
85
|
+
workflowState: string;
|
|
86
|
+
assignedToAccountId: string;
|
|
87
|
+
assignedToUsername: string;
|
|
88
|
+
approvedByAccountId: string;
|
|
89
|
+
approvedByUsername: string;
|
|
90
|
+
approvedDate: string;
|
|
91
|
+
createdByAccountId: string;
|
|
92
|
+
createdByAccountUsername: string;
|
|
93
|
+
declinedDate: string;
|
|
94
|
+
status: string;
|
|
95
|
+
tags: Array<{
|
|
96
|
+
_id: string;
|
|
97
|
+
workflowException: {
|
|
98
|
+
_id: string;
|
|
99
|
+
code: string;
|
|
100
|
+
displayName: string;
|
|
101
|
+
description: string;
|
|
102
|
+
};
|
|
103
|
+
assignedByAccountId: string;
|
|
104
|
+
assignedByUsername: string;
|
|
105
|
+
notes: string;
|
|
106
|
+
}>;
|
|
107
|
+
isPublished?: boolean;
|
|
108
|
+
created: string;
|
|
109
|
+
modified: string;
|
|
110
|
+
};
|
|
111
|
+
export declare type HealthFundDocumentsResponse = {
|
|
112
|
+
meta: PaginationMeta;
|
|
113
|
+
items: Array<HealthFundDocumentResponse>;
|
|
114
|
+
};
|
|
115
|
+
/** END: Responses */
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { PaginatedQuery } from './index';
|
|
2
|
+
export declare type ApplyForBusinessFormRequestBody = {
|
|
3
|
+
practiceIds: Array<string | null | undefined>;
|
|
4
|
+
subsections?: Array<{
|
|
5
|
+
_id: string;
|
|
6
|
+
value: string;
|
|
7
|
+
} | null | undefined>;
|
|
8
|
+
files?: Array<Record<string, any>>;
|
|
9
|
+
};
|
|
10
|
+
export declare 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<{
|
|
25
|
+
displayName: string;
|
|
26
|
+
url: string;
|
|
27
|
+
}>;
|
|
28
|
+
files?: Array<{
|
|
29
|
+
displayName: string;
|
|
30
|
+
url: string;
|
|
31
|
+
contentType: string;
|
|
32
|
+
}>;
|
|
33
|
+
}>;
|
|
34
|
+
scannedApplication: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare type GetHealthFundFormsQuery = PaginatedQuery & {
|
|
37
|
+
hasApplicationTemplate?: Boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare type GetHealthFundFormUploadUrlQuery = {
|
|
40
|
+
contentType: string;
|
|
41
|
+
fileName: string;
|
|
42
|
+
};
|
|
43
|
+
export declare type UpdateHealthFundFormRequestBody = {
|
|
44
|
+
fullName?: string;
|
|
45
|
+
displayName?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
logoUrl?: string | null | undefined;
|
|
48
|
+
visibilityRules?: {
|
|
49
|
+
businessRules?: {
|
|
50
|
+
modalityIds?: Array<string>;
|
|
51
|
+
states?: Array<string>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
sections?: Array<{
|
|
55
|
+
heading?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
links?: Array<{
|
|
58
|
+
displayName: string;
|
|
59
|
+
url: string;
|
|
60
|
+
}>;
|
|
61
|
+
files?: Array<{
|
|
62
|
+
displayName: string;
|
|
63
|
+
url: string;
|
|
64
|
+
contentType: string;
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export * from './documents';
|
|
2
|
+
export * from './forms';
|
|
3
|
+
export * from './message-mappings';
|
|
4
|
+
export * from './notes';
|
|
5
|
+
export * from './products';
|
|
6
|
+
export * from './professional-categories';
|
|
7
|
+
export * from './specialties';
|
|
8
|
+
export * from './subscriptions';
|
|
9
|
+
export declare type MedipassRequestOpts = {
|
|
10
|
+
baseUrl?: string;
|
|
11
|
+
hyperMediaEndpoint?: string | null | undefined;
|
|
12
|
+
path?: string;
|
|
13
|
+
requestConfig?: Record<string, any>;
|
|
14
|
+
apiName?: string;
|
|
15
|
+
asSuperAdmin?: boolean;
|
|
16
|
+
getFullError?: boolean;
|
|
17
|
+
getFullResponse?: boolean;
|
|
18
|
+
tokenType?: string;
|
|
19
|
+
ver?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type PaginationMeta = {
|
|
22
|
+
count: number;
|
|
23
|
+
totalCount: number;
|
|
24
|
+
pageCount: number;
|
|
25
|
+
self?: string | null | undefined;
|
|
26
|
+
next?: string | null | undefined;
|
|
27
|
+
previous?: string | null | undefined;
|
|
28
|
+
first?: string | null | undefined;
|
|
29
|
+
last?: string | null | undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare type PaginatedQuery = {
|
|
32
|
+
limit?: number;
|
|
33
|
+
page?: number;
|
|
34
|
+
};
|
|
35
|
+
export declare type SetupOpts = {
|
|
36
|
+
baseUrls?: Record<string, any>;
|
|
37
|
+
defaultVersion?: string;
|
|
38
|
+
appId?: string;
|
|
39
|
+
apiVer?: string;
|
|
40
|
+
apiVersions?: Record<string, any>;
|
|
41
|
+
env?: string;
|
|
42
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
+
/** START: Query */
|
|
3
|
+
export declare type GetBusinessMessageMappingsQuery = PaginatedQuery & {
|
|
4
|
+
type?: string;
|
|
5
|
+
};
|
|
6
|
+
/** END: Query */
|
|
7
|
+
/** START: Responses */
|
|
8
|
+
export declare type GetBusinessMessageMappingsResponse = {
|
|
9
|
+
meta: PaginationMeta;
|
|
10
|
+
items: Array<{
|
|
11
|
+
_id: string;
|
|
12
|
+
refId: string;
|
|
13
|
+
refMessage: string;
|
|
14
|
+
created: string;
|
|
15
|
+
modified: string;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
/** END: Responses */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
+
/** START: Requests */
|
|
3
|
+
export declare type GetBusinessProductsQuery = PaginatedQuery;
|
|
4
|
+
/** START: Requests */
|
|
5
|
+
/** START: Responses */
|
|
6
|
+
export declare type ProductResponse = {
|
|
7
|
+
_id: string;
|
|
8
|
+
organisationId: string;
|
|
9
|
+
fullName: string;
|
|
10
|
+
displayName: string;
|
|
11
|
+
description: string;
|
|
12
|
+
defaultBilling: {
|
|
13
|
+
currencyCode: string;
|
|
14
|
+
frequency: string;
|
|
15
|
+
amountFee: number;
|
|
16
|
+
amountFeeString: string;
|
|
17
|
+
amountCharged: number;
|
|
18
|
+
amountChargedString: string;
|
|
19
|
+
strategy: string;
|
|
20
|
+
};
|
|
21
|
+
features: Array<{
|
|
22
|
+
fullName: string;
|
|
23
|
+
displayName: string;
|
|
24
|
+
description: string;
|
|
25
|
+
}>;
|
|
26
|
+
phasedOut: string;
|
|
27
|
+
created: string;
|
|
28
|
+
modified: string;
|
|
29
|
+
};
|
|
30
|
+
export declare type ProductsResponse = {
|
|
31
|
+
meta: PaginationMeta;
|
|
32
|
+
items: Array<ProductResponse>;
|
|
33
|
+
};
|
|
34
|
+
/** END: Responses */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
+
/** START: Requests */
|
|
3
|
+
export declare type GetProfessionalCategoriesQuery = PaginatedQuery & {
|
|
4
|
+
searchText?: string;
|
|
5
|
+
};
|
|
6
|
+
/** START: Requests */
|
|
7
|
+
/** START: Responses */
|
|
8
|
+
export declare type ProfessionalCategoryResponse = {
|
|
9
|
+
_id: string;
|
|
10
|
+
fullName: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
description: string;
|
|
13
|
+
created: string;
|
|
14
|
+
modified: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type ProfessionalCategoriesResponse = {
|
|
17
|
+
meta: PaginationMeta;
|
|
18
|
+
items: Array<ProfessionalCategoryResponse>;
|
|
19
|
+
};
|
|
20
|
+
/** END: Responses */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
+
/** START: Requests */
|
|
3
|
+
export declare type GetSpecialtiesQuery = PaginatedQuery & {
|
|
4
|
+
professionalCategoryId?: string;
|
|
5
|
+
searchText?: string;
|
|
6
|
+
};
|
|
7
|
+
/** START: Requests */
|
|
8
|
+
/** START: Responses */
|
|
9
|
+
export declare type SpecialtyResponse = {
|
|
10
|
+
_id: string;
|
|
11
|
+
professionalCategoryId: string;
|
|
12
|
+
fullName: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
description: string;
|
|
15
|
+
created: string;
|
|
16
|
+
modified: string;
|
|
17
|
+
};
|
|
18
|
+
export declare type SpecialtiesResponse = {
|
|
19
|
+
meta: PaginationMeta;
|
|
20
|
+
items: Array<SpecialtyResponse>;
|
|
21
|
+
};
|
|
22
|
+
/** END: Responses */
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { PaginationMeta, PaginatedQuery } from './index';
|
|
2
|
+
/** START: Requests */
|
|
3
|
+
export declare type CreateBusinessSubscriptionBody = {
|
|
4
|
+
productId: string;
|
|
5
|
+
paymentMethodId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type UpdateBusinessSubscriptionBody = {
|
|
8
|
+
paymentMethodId?: string;
|
|
9
|
+
promotionCode?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type GetBusinessSubscriptionsQuery = PaginatedQuery;
|
|
12
|
+
/** START: Requests */
|
|
13
|
+
/** START: Responses */
|
|
14
|
+
export declare type SubscriptionResponse = {
|
|
15
|
+
_id: string;
|
|
16
|
+
organisationId: string;
|
|
17
|
+
businessId: string;
|
|
18
|
+
product: {
|
|
19
|
+
_id: string;
|
|
20
|
+
fullName: string;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
paymentMethod: {
|
|
24
|
+
_id: string;
|
|
25
|
+
methodType: string;
|
|
26
|
+
source: string;
|
|
27
|
+
cardType: string;
|
|
28
|
+
lastFour: string;
|
|
29
|
+
};
|
|
30
|
+
startDate: string;
|
|
31
|
+
endDate: string;
|
|
32
|
+
nextBillingDate: string;
|
|
33
|
+
status: string;
|
|
34
|
+
billing: {
|
|
35
|
+
currencyCode: string;
|
|
36
|
+
frequency: string;
|
|
37
|
+
amountFee: number;
|
|
38
|
+
amountFeeString: string;
|
|
39
|
+
amountCharged: number;
|
|
40
|
+
amountChargedString: string;
|
|
41
|
+
amountDiscount: number;
|
|
42
|
+
amountDiscountString: string;
|
|
43
|
+
strategy: string;
|
|
44
|
+
};
|
|
45
|
+
created: string;
|
|
46
|
+
modified: string;
|
|
47
|
+
};
|
|
48
|
+
export declare type SubscriptionsResponse = {
|
|
49
|
+
meta: PaginationMeta;
|
|
50
|
+
items: Array<SubscriptionResponse>;
|
|
51
|
+
};
|
|
52
|
+
/** END: Responses */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getSelfApplicationCached: () => Promise<any>;
|
package/lib/utils/application.js
CHANGED
|
@@ -18,8 +18,7 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-df3df93e.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('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
au: {
|
|
3
|
+
local: string;
|
|
4
|
+
dev: string;
|
|
5
|
+
'pre-prod': string;
|
|
6
|
+
prod: string;
|
|
7
|
+
staging: string;
|
|
8
|
+
perf: string;
|
|
9
|
+
};
|
|
10
|
+
uk: {
|
|
11
|
+
local: string;
|
|
12
|
+
dev: string;
|
|
13
|
+
'pre-prod': string;
|
|
14
|
+
prod: string;
|
|
15
|
+
staging: string;
|
|
16
|
+
perf: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
core: {
|
|
3
|
+
au: {
|
|
4
|
+
local: string;
|
|
5
|
+
dev: string;
|
|
6
|
+
'pre-prod': string;
|
|
7
|
+
prod: string;
|
|
8
|
+
staging: string;
|
|
9
|
+
perf: string;
|
|
10
|
+
};
|
|
11
|
+
uk: {
|
|
12
|
+
local: string;
|
|
13
|
+
dev: string;
|
|
14
|
+
'pre-prod': string;
|
|
15
|
+
prod: string;
|
|
16
|
+
staging: string;
|
|
17
|
+
perf: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
risk: {
|
|
21
|
+
au: {
|
|
22
|
+
local: string;
|
|
23
|
+
dev: string;
|
|
24
|
+
'pre-prod': string;
|
|
25
|
+
prod: string;
|
|
26
|
+
staging: string;
|
|
27
|
+
};
|
|
28
|
+
uk: {
|
|
29
|
+
local: string;
|
|
30
|
+
dev: string;
|
|
31
|
+
'pre-prod': string;
|
|
32
|
+
prod: string;
|
|
33
|
+
staging: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
au: {
|
|
3
|
+
local: string;
|
|
4
|
+
dev: string;
|
|
5
|
+
'pre-prod': string;
|
|
6
|
+
prod: string;
|
|
7
|
+
staging: string;
|
|
8
|
+
};
|
|
9
|
+
uk: {
|
|
10
|
+
local: string;
|
|
11
|
+
dev: string;
|
|
12
|
+
'pre-prod': string;
|
|
13
|
+
prod: string;
|
|
14
|
+
staging: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
package/lib/utils/professions.js
CHANGED
|
@@ -18,8 +18,7 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-df3df93e.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('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getUserRegion(): any;
|
package/lib/utils/regions.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
require('../storage-16fd26f8.js');
|
|
7
6
|
require('store/src/store-engine');
|
|
8
7
|
require('store/storages/localStorage');
|
|
9
8
|
require('store/storages/sessionStorage');
|
|
10
9
|
require('masked');
|
|
11
10
|
require('@medipass/utils/sensitive-keys');
|
|
11
|
+
require('../services/storage.js');
|
|
12
12
|
require('js-cookie');
|
|
13
|
-
var regions = require('../regions-
|
|
13
|
+
var regions = require('../regions-a0a28864.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
package/lib/utils/request.js
CHANGED
|
@@ -18,8 +18,7 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-df3df93e.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('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function parseProviderSet(providerSet: any, { businessId, funders, providerRegistrationTypes, providerNumberTypes: _providerNumberTypes, parseProviderNumberType }?: {
|
|
2
|
+
businessId: any;
|
|
3
|
+
funders: any;
|
|
4
|
+
providerRegistrationTypes: any;
|
|
5
|
+
providerNumberTypes: any;
|
|
6
|
+
parseProviderNumberType?: boolean;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export declare function parseProviderRegistrations(providerRegistrations: any, opts?: {}): Promise<any>;
|
package/lib/utils/staff.js
CHANGED
|
@@ -18,8 +18,7 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-df3df93e.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('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|