@medipass/web-sdk 11.38.1-feature-eclipse-reporting.0 → 11.38.1-feature-typescript-claudia.2
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 +96 -0
- package/babel.config.js +2 -1
- package/lib/index.d.ts +262 -0
- package/lib/index.js +83 -3
- package/lib/{regions-7b23080d.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-1ec3d500.js → staff-96febcd8.js} +345 -738
- 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-4b403caa.js +0 -1300
- 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,215 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Create account secret key
|
|
4
|
+
* @param {String} accountId - Account ID
|
|
5
|
+
* @param {Object} opts - Additional options
|
|
6
|
+
*/
|
|
7
|
+
export declare const createAccountSecretKey: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
8
|
+
/**
|
|
9
|
+
* Create organisation account
|
|
10
|
+
* @param {String} organisationId - Organisation ID
|
|
11
|
+
* @param {Object} body - Response body
|
|
12
|
+
* @param {Object} opts - Additional options
|
|
13
|
+
*/
|
|
14
|
+
export declare const createOrganisationAccount: (organisationId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete account secret key
|
|
17
|
+
* @param {String} accountId - Account ID
|
|
18
|
+
* @param {String} secretKey - Secret Key
|
|
19
|
+
* @param {Object} opts - Additional options
|
|
20
|
+
*/
|
|
21
|
+
export declare const deleteAccountSecretKey: (accountId: string, secretKey: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
22
|
+
/**
|
|
23
|
+
* Delete account
|
|
24
|
+
* @param {String} accountId - Account ID
|
|
25
|
+
* @param {Object} opts - Additional options
|
|
26
|
+
*/
|
|
27
|
+
export declare const deleteAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
28
|
+
/**
|
|
29
|
+
* Disable account
|
|
30
|
+
* @param {String} accountId - Account ID
|
|
31
|
+
* @param {Object} opts - Additional options
|
|
32
|
+
*/
|
|
33
|
+
export declare const disableAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
34
|
+
/**
|
|
35
|
+
* Enable account
|
|
36
|
+
* @param {String} accountId - Account ID
|
|
37
|
+
* @param {Object} opts - Additional options
|
|
38
|
+
*/
|
|
39
|
+
export declare const enableAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
40
|
+
/**
|
|
41
|
+
* Request reset for account # DEPRECATED
|
|
42
|
+
* @param {String} email - Account email address
|
|
43
|
+
* @param {String} accountType - Account type (business, consumer, healthfund)
|
|
44
|
+
* @param {Object} opts - Additional options
|
|
45
|
+
*/
|
|
46
|
+
export declare const requestAccountReset: (email: string, accountType: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
47
|
+
/**
|
|
48
|
+
* Request password reset for username-based Medipass accounts
|
|
49
|
+
* @param {Object} opts - Account ID or email
|
|
50
|
+
* @param {String} accountType - Account type (business, consumer, healthfund). Will fail for consumer account.
|
|
51
|
+
* @param {Object} opts - Additional options
|
|
52
|
+
*/
|
|
53
|
+
export declare const requestPasswordReset: ({ accountId, email }: {
|
|
54
|
+
accountId?: string | null | undefined;
|
|
55
|
+
email?: string | null | undefined;
|
|
56
|
+
}, accountType: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
57
|
+
/**
|
|
58
|
+
* Request mobile reset for mobile-based Medipass accounts
|
|
59
|
+
* @param {Object} opts - Account ID or mobile
|
|
60
|
+
* @param {String} accountType - Account type (business, consumer, healthfund). Will fail for non consumer accounts.
|
|
61
|
+
* @param {Object} opts - Additional options
|
|
62
|
+
*/
|
|
63
|
+
export declare const requestMobileReset: ({ accountId, email }: {
|
|
64
|
+
accountId?: string | null | undefined;
|
|
65
|
+
email?: string | null | undefined;
|
|
66
|
+
}, accountType: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
67
|
+
/**
|
|
68
|
+
* Reset an account # DEPRECATED
|
|
69
|
+
* @param {Object} body - Object body
|
|
70
|
+
* @param {Object} opts - Additional options
|
|
71
|
+
*/
|
|
72
|
+
export declare const resetAccount: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
73
|
+
/**
|
|
74
|
+
* Reset a password for username-based Medipass accounts
|
|
75
|
+
* @param {Object} body - Object body
|
|
76
|
+
* @param {Object} opts - Additional options
|
|
77
|
+
*/
|
|
78
|
+
export declare const resetPassword: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
79
|
+
/**
|
|
80
|
+
* Reset a mobile number for mobile-based Medipass accounts
|
|
81
|
+
* @param {Object} body - Object body
|
|
82
|
+
* @param {Object} opts - Additional options
|
|
83
|
+
*/
|
|
84
|
+
export declare const resetMobile: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
85
|
+
/**
|
|
86
|
+
* Verify an account
|
|
87
|
+
* @param {Object} body - Object body
|
|
88
|
+
* @param {Object} opts - Additional options
|
|
89
|
+
*/
|
|
90
|
+
export declare const verifyAccount: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
91
|
+
/**
|
|
92
|
+
* Get accounts
|
|
93
|
+
* @param {Object} query - Query parameters
|
|
94
|
+
* @param {Object} opts - Additional options
|
|
95
|
+
*/
|
|
96
|
+
export declare const getAccounts: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
97
|
+
/**
|
|
98
|
+
* Get health fund account
|
|
99
|
+
* @param {String} healthFundId - The health fund ID
|
|
100
|
+
* @param {String} accountId - The account ID
|
|
101
|
+
* @param {Object} opts - Additional options
|
|
102
|
+
*/
|
|
103
|
+
export declare const getHealthFundAccount: (healthFundId: string, accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
104
|
+
/**
|
|
105
|
+
* Get health fund accounts
|
|
106
|
+
* @param {String} healthFundId - The health fund ID
|
|
107
|
+
* @param {Object} query - Query parameters
|
|
108
|
+
* @param {Object} opts - Additional options
|
|
109
|
+
*/
|
|
110
|
+
export declare const getHealthFundAccounts: (healthFundId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
111
|
+
/**
|
|
112
|
+
* Get organisation accounts
|
|
113
|
+
* @param {String} organisationId - The organisation ID
|
|
114
|
+
* @param {Object} query - Query parameters
|
|
115
|
+
* @param {Object} opts - Additional options
|
|
116
|
+
*/
|
|
117
|
+
export declare const getOrganisationAccounts: (organisationId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
118
|
+
/**
|
|
119
|
+
* Get account
|
|
120
|
+
* @param {String} accountId - Account ID
|
|
121
|
+
* @param {Object} opts - Additional options
|
|
122
|
+
*/
|
|
123
|
+
export declare const getAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
124
|
+
/**
|
|
125
|
+
* Get business staff account
|
|
126
|
+
* @param {String} businessId - Business ID
|
|
127
|
+
* @param {String} staffId - Staff ID
|
|
128
|
+
* @param {Object} opts - Additional options
|
|
129
|
+
*/
|
|
130
|
+
export declare const getBusinessStaffAccount: (businessId: string, staffId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
131
|
+
/**
|
|
132
|
+
* Check if account exists
|
|
133
|
+
* @param {String} query - Query parameters
|
|
134
|
+
* @param {Object} opts - Additional options
|
|
135
|
+
*/
|
|
136
|
+
export declare const getAccountExists: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
137
|
+
/**
|
|
138
|
+
* Get account roles
|
|
139
|
+
* @param {String} accountId - Account ID
|
|
140
|
+
* @param {Object} opts - Additional options
|
|
141
|
+
*/
|
|
142
|
+
export declare const getAccountRoles: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
143
|
+
/**
|
|
144
|
+
* Get account secret keys
|
|
145
|
+
* @param {String} accountId - Account ID
|
|
146
|
+
* @param {Object} opts - Additional options
|
|
147
|
+
*/
|
|
148
|
+
export declare const getAccountSecretKeys: (accountId: string, opts?: MedipassRequestOpts) => Promise<Array<Record<string, any>>>;
|
|
149
|
+
/**
|
|
150
|
+
* Get account transactions
|
|
151
|
+
* @param {String} accountId - Account ID
|
|
152
|
+
* @param {Object} query - query parameters
|
|
153
|
+
* @param {Object} opts - Additional options
|
|
154
|
+
*/
|
|
155
|
+
export declare const getAccountTransactions: (accountId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
156
|
+
/**
|
|
157
|
+
* Invite health fund account
|
|
158
|
+
* @param {String} healthFundId - The health fund ID
|
|
159
|
+
* @param {Object} requestBody - Request body
|
|
160
|
+
* @param {Object} opts - Additional options
|
|
161
|
+
*/
|
|
162
|
+
export declare const inviteHealthFundAccount: (healthFundId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
163
|
+
/**
|
|
164
|
+
* Remove health fund from account
|
|
165
|
+
* @param {String} healthFundId - Health fund ID
|
|
166
|
+
* @param {String} accountId - Account ID
|
|
167
|
+
* @param {Object} opts - Additional options
|
|
168
|
+
*/
|
|
169
|
+
export declare const removeHealthFundFromAccount: (healthFundId: string, accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
170
|
+
/**
|
|
171
|
+
* Request to verify an account
|
|
172
|
+
* @param {String} accountId - Account ID
|
|
173
|
+
* @param {Object} opts - Additional options
|
|
174
|
+
*/
|
|
175
|
+
export declare const requestToVerifyAccount: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
176
|
+
/**
|
|
177
|
+
* Sign up for an account
|
|
178
|
+
* @param {String} email - Account email address
|
|
179
|
+
* @param {String} mobile - Mobile number
|
|
180
|
+
* @param {Object} body - Object body
|
|
181
|
+
* @param {Object} opts - Additional options
|
|
182
|
+
*/
|
|
183
|
+
export declare const signUp: (email: string, mobile: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
184
|
+
/**
|
|
185
|
+
* Accept an invite
|
|
186
|
+
* @param {Object} body - Object body
|
|
187
|
+
* @param {Object} opts - Additional options
|
|
188
|
+
*/
|
|
189
|
+
export declare const acceptInvite: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
190
|
+
/**
|
|
191
|
+
* Update account
|
|
192
|
+
* @param {String} accountId - Account ID
|
|
193
|
+
* @param {Object} body - Object body
|
|
194
|
+
* @param {Object} opts - Additional options
|
|
195
|
+
*/
|
|
196
|
+
export declare const updateAccount: (accountId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
197
|
+
/**
|
|
198
|
+
* Update account roles
|
|
199
|
+
* @param {String} accountId - Account ID
|
|
200
|
+
* @param {Object} opts - Additional options
|
|
201
|
+
*/
|
|
202
|
+
export declare const updateAccountRoles: (accountId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
203
|
+
/**
|
|
204
|
+
* Get account practices
|
|
205
|
+
* @param {String} accountId - Account ID
|
|
206
|
+
* @param {Object} query - query parameters
|
|
207
|
+
* @param {Object} opts - Additional options
|
|
208
|
+
*/
|
|
209
|
+
export declare const getAccountPractices: (accountId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
210
|
+
/**
|
|
211
|
+
* Change password
|
|
212
|
+
* @param {Object} body - Object body
|
|
213
|
+
* @param {Object} opts - Additional options
|
|
214
|
+
*/
|
|
215
|
+
export declare const changePassword: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
@@ -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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get actions
|
|
4
|
+
* @param {Object} query - Query parameters
|
|
5
|
+
* @param {Object} opts - Additional options
|
|
6
|
+
*/
|
|
7
|
+
export declare const getActions: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
8
|
+
/**
|
|
9
|
+
* Get action
|
|
10
|
+
* @param {String} actionId - Action ID
|
|
11
|
+
* @param {Object} opts - Additional options
|
|
12
|
+
*/
|
|
13
|
+
export declare const getAction: (actionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
package/lib/resources/actions.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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathApiKeysByBusinessId: (businessId: string) => string;
|
|
3
|
+
export declare const pathApiKeyByApiKeyId: (businessId: string, apiKeyId: string) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Create an Api Key
|
|
6
|
+
* @param {String} businessId - Business ID
|
|
7
|
+
* @param {Object} body - Request body
|
|
8
|
+
* @param {Object} opts - Additional options
|
|
9
|
+
*/
|
|
10
|
+
export declare const createApiKey: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
11
|
+
/**
|
|
12
|
+
* Get Api Keys for a business
|
|
13
|
+
* @param {String} businessId - Business ID
|
|
14
|
+
* @param {Object} query - query parameters
|
|
15
|
+
* @param {Object} opts - Additional options
|
|
16
|
+
*/
|
|
17
|
+
export declare const getBusinessApiKeys: (businessId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete Api Key by apiKeyId
|
|
20
|
+
* @param {String} businessId - Business ID
|
|
21
|
+
* @param {String} apiKeyId - Api Key ID
|
|
22
|
+
* @param {Object} opts - Additional options
|
|
23
|
+
*/
|
|
24
|
+
export declare const deleteApiKey: (businessId: string, apiKeyId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
@@ -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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get self application
|
|
4
|
+
* @param {Object} opts - Additional options
|
|
5
|
+
*/
|
|
6
|
+
export declare const getSelfApplication: (opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
7
|
+
/**
|
|
8
|
+
* Get applications
|
|
9
|
+
* @param {Object} query - Query parameters
|
|
10
|
+
* @param {Object} opts - Additional options
|
|
11
|
+
*/
|
|
12
|
+
export declare const getApplications: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
13
|
+
/**
|
|
14
|
+
* Get application
|
|
15
|
+
* @param {String} applicationId - Application ID
|
|
16
|
+
* @param {Object} opts - Additional options
|
|
17
|
+
*/
|
|
18
|
+
export declare const getApplication: (applicationId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
19
|
+
/**
|
|
20
|
+
* Update application
|
|
21
|
+
* @param {String} applicationId - Application ID
|
|
22
|
+
* @param {Object} body - Request body
|
|
23
|
+
* @param {Object} opts - Additional options
|
|
24
|
+
*/
|
|
25
|
+
export declare const updateApplication: (applicationId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
26
|
+
/**
|
|
27
|
+
* Create application
|
|
28
|
+
* @param {Object} body - Request body
|
|
29
|
+
* @param {Object} opts - Additional options
|
|
30
|
+
*/
|
|
31
|
+
export declare const createApplication: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
@@ -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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathGetClaimAttachmentUrl: (businessId: string, practiceId: string, staffId: string) => string;
|
|
3
|
+
export declare const pathGetS3SignedUrl: (businessId: string, practiceId: string, staffId: string, s3SignedUrlId: string) => string;
|
|
4
|
+
export declare const pathScanClaimFile: (businessId: string, practiceId: string, staffId: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Get url to upload a file associated to a claim
|
|
7
|
+
* @param {String} businessId - Business ID
|
|
8
|
+
* @param {String} practiceId - Practice ID
|
|
9
|
+
* @param {String} staffId - Staff ID
|
|
10
|
+
* @param {Object} body - Request body
|
|
11
|
+
* @param {Object} opts - Additional options
|
|
12
|
+
*/
|
|
13
|
+
export declare const getClaimAttachmentUrl: (businessId: string, practiceId: string, staffId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
14
|
+
/**
|
|
15
|
+
* Scan a file associated to a claim
|
|
16
|
+
* @param {String} businessId - Business ID
|
|
17
|
+
* @param {String} practiceId - Practice ID
|
|
18
|
+
* @param {String} staffId - Staff ID
|
|
19
|
+
* @param {Object} body - Request body
|
|
20
|
+
* @param {Object} opts - Additional options
|
|
21
|
+
*/
|
|
22
|
+
export declare const scanClaimFile: (businessId: string, practiceId: string, staffId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
23
|
+
/**
|
|
24
|
+
* Get s3 signed url
|
|
25
|
+
* @param {String} businessId - Business ID
|
|
26
|
+
* @param {String} practiceId - Practice ID
|
|
27
|
+
* @param {String} staffId - Staff ID
|
|
28
|
+
* @param {String} s3SignedUrlId - Internal s3 signed url ID
|
|
29
|
+
* @param {Object} body - Request body
|
|
30
|
+
* @param {Object} opts - Additional options
|
|
31
|
+
*/
|
|
32
|
+
export declare const getS3SignedUrl: (businessId: string, practiceId: string, staffId: string, s3SignedUrlId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
@@ -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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Log in a user
|
|
4
|
+
* @param {String} email - Email
|
|
5
|
+
* @param {String} password - Password
|
|
6
|
+
* @param {{ otkCode: ?String, accountType: String }} body - The request body
|
|
7
|
+
* @param {{ ver: ?String }} opts - Additional options
|
|
8
|
+
*/
|
|
9
|
+
export declare const login: (email?: string | null | undefined, password?: string | null | undefined, body?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
10
|
+
/**
|
|
11
|
+
* Login with token
|
|
12
|
+
* @param {String} accountId - Account ID
|
|
13
|
+
* @param {String} token - JWT
|
|
14
|
+
*/
|
|
15
|
+
export declare const loginWithToken: (token: string, accountId: string) => Promise<Record<string, any>>;
|
|
16
|
+
/**
|
|
17
|
+
* Impersonate a user
|
|
18
|
+
* @param {String} accountId - Account ID
|
|
19
|
+
* @param {Object} opts - Additional options
|
|
20
|
+
*/
|
|
21
|
+
export declare const impersonate: (accountId: string, opts?: MedipassRequestOpts) => Promise<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Log out a user
|
|
24
|
+
* @param {Object} opts - Additional options
|
|
25
|
+
*/
|
|
26
|
+
export declare const logout: (opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
27
|
+
/**
|
|
28
|
+
* Object OTK
|
|
29
|
+
* @param {String} email - Email address
|
|
30
|
+
* @param {String} accountId - Account ID
|
|
31
|
+
* @param {Object} opts - Additional options
|
|
32
|
+
*/
|
|
33
|
+
export declare const requestOtk: (email?: string | null | undefined, accountId?: string | null | undefined, requestBody?: Record<string, any> | null | undefined, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
34
|
+
/**
|
|
35
|
+
* Generate Authy
|
|
36
|
+
* @param {String} accountId - Account ID
|
|
37
|
+
* @param {Object} opts - Additional options
|
|
38
|
+
*/
|
|
39
|
+
export declare const generateAuthy: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
40
|
+
/**
|
|
41
|
+
* Remove Authy
|
|
42
|
+
* @param {String} accountId - Account ID
|
|
43
|
+
* @param {Object} opts - Additional options
|
|
44
|
+
*/
|
|
45
|
+
export declare const removeAuthy: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
46
|
+
/**
|
|
47
|
+
* Verify Authy
|
|
48
|
+
* @param {String} accountId - Account ID
|
|
49
|
+
* @param {String} token - Authy Token
|
|
50
|
+
* @param {Object} opts - Additional options
|
|
51
|
+
*/
|
|
52
|
+
export declare const verifyAuthy: (accountId: string, token: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a short lived token
|
|
55
|
+
* @param {String} apiKey - API Key
|
|
56
|
+
* @param {Object} body - Request body
|
|
57
|
+
* @param {Object} opts - Additional options
|
|
58
|
+
*/
|
|
59
|
+
export declare const createShortLivedToken: (apiKey: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<any>;
|
package/lib/resources/auth.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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathSubmitDraftInvoices: (businessId: string) => string;
|
|
3
|
+
export declare const pathGetDraftProgressStatus: (businessId: string, bulkSubmitId: string) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Bulk submission of one or more draft invoices.
|
|
6
|
+
* @param {String} businessId - Business ID
|
|
7
|
+
* @param {Object} body - Request body
|
|
8
|
+
* @param {Object} opts - Additional options
|
|
9
|
+
*/
|
|
10
|
+
export declare const submitDraftInvoices: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
11
|
+
/**
|
|
12
|
+
* Get draft invocies progress status
|
|
13
|
+
* @param {String} businessId - Business ID
|
|
14
|
+
* @param {String} bulkSubmitId - Bulk Submit ID
|
|
15
|
+
* @param {Object} opts - Additional options
|
|
16
|
+
*/
|
|
17
|
+
export declare const getDraftProgressStatus: (businessId: string, bulkSubmitId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
@@ -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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathBusinessBulkUploads: (businessId: string) => string;
|
|
3
|
+
export declare const pathBusinessBulkUpload: (businessId: string, bulkUploadId: string) => string;
|
|
4
|
+
export declare const pathBusinessBulkUploadUrl: (businessId: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Create a bulk upload from file
|
|
7
|
+
* @param {string} businessId - Business ID
|
|
8
|
+
* @param {Object} body - Request body
|
|
9
|
+
* @param {Object} opts - Additional options
|
|
10
|
+
*/
|
|
11
|
+
export declare const createBulkUpload: (businessId: string, body?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get a bulk upload
|
|
14
|
+
* @param {string} businessId - Business ID
|
|
15
|
+
* @param {string} bulkUploadId - Bulk upload ID
|
|
16
|
+
* @param {Object} body - Request body
|
|
17
|
+
* @param {Object} opts - Additional options
|
|
18
|
+
*/
|
|
19
|
+
export declare const getBulkUpload: (businessId: string, bulkUploadId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
20
|
+
/**
|
|
21
|
+
* Get a bulk upload url
|
|
22
|
+
* @param {string} businessId - Business ID
|
|
23
|
+
* @param {Object} query - Query params
|
|
24
|
+
* @param {Object} opts - Additional options
|
|
25
|
+
*/
|
|
26
|
+
export declare const getBulkUploadUrl: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
@@ -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-1ec3d500.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
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathLinkBusinessProfile: (businessProfileId: string) => string;
|
|
3
|
+
export declare const pathUnlinkBusinessProfile: (businessProfileId: string) => string;
|
|
4
|
+
export declare const pathOrganisationBusinessProfiles: (organisationId: string) => string;
|
|
5
|
+
declare type BusinessProfilesQuery = {
|
|
6
|
+
businessId?: string;
|
|
7
|
+
unlinkedOnly?: boolean;
|
|
8
|
+
from?: string;
|
|
9
|
+
to?: string;
|
|
10
|
+
sort?: string;
|
|
11
|
+
searchText?: string;
|
|
12
|
+
page?: number;
|
|
13
|
+
limit?: number;
|
|
14
|
+
};
|
|
15
|
+
export declare const getOrganisationBusinessProfiles: (organisationId: string, query?: BusinessProfilesQuery, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
16
|
+
export declare const linkBusinessProfile: (businessProfileId: string, businessId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
17
|
+
export declare const unlinkBusinessProfile: (businessProfileId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
18
|
+
export {};
|