@medipass/web-sdk 11.38.0 → 11.38.1-feature-typescript-claudia.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +95 -0
- package/babel.config.js +2 -1
- package/lib/index.d.ts +262 -0
- package/lib/index.js +83 -3
- package/lib/{regions-ed54f163.js → regions-a0a28864.js} +2 -2
- package/lib/resources/accounts.d.ts +215 -0
- package/lib/resources/accounts.js +3 -3
- package/lib/resources/actions.d.ts +13 -0
- package/lib/resources/actions.js +3 -3
- package/lib/resources/api-keys.d.ts +24 -0
- package/lib/resources/api-keys.js +3 -3
- package/lib/resources/applications.d.ts +31 -0
- package/lib/resources/applications.js +3 -3
- package/lib/resources/attachments.d.ts +32 -0
- package/lib/resources/attachments.js +3 -3
- package/lib/resources/auth.d.ts +59 -0
- package/lib/resources/auth.js +3 -3
- package/lib/resources/bulk-submits.d.ts +17 -0
- package/lib/resources/bulk-submits.js +3 -3
- package/lib/resources/bulk-uploads.d.ts +26 -0
- package/lib/resources/bulk-uploads.js +3 -3
- package/lib/resources/business-profiles.d.ts +18 -0
- package/lib/resources/business-profiles.js +3 -3
- package/lib/resources/businesses.d.ts +132 -0
- package/lib/resources/businesses.js +3 -3
- package/lib/resources/claim-items.d.ts +31 -0
- package/lib/resources/claim-items.js +3 -3
- package/lib/resources/devices.d.ts +11 -0
- package/lib/resources/devices.js +3 -3
- package/lib/resources/doc-accounts.d.ts +32 -0
- package/lib/resources/doc-accounts.js +3 -3
- package/lib/resources/documents.d.ts +90 -0
- package/lib/resources/documents.js +3 -3
- package/lib/resources/emails.d.ts +14 -0
- package/lib/resources/emails.js +3 -3
- package/lib/resources/form-application-templates.d.ts +20 -0
- package/lib/resources/form-application-templates.js +3 -3
- package/lib/resources/form-applications.d.ts +27 -0
- package/lib/resources/form-applications.js +3 -3
- package/lib/resources/forms.d.ts +100 -0
- package/lib/resources/forms.js +3 -3
- package/lib/resources/funder-services.d.ts +8 -0
- package/lib/resources/funder-services.js +3 -3
- package/lib/resources/funder-settings.d.ts +8 -0
- package/lib/resources/funder-settings.js +3 -3
- package/lib/resources/funders.d.ts +5 -0
- package/lib/resources/funders.js +3 -3
- package/lib/resources/futures.d.ts +85 -0
- package/lib/resources/futures.js +3 -3
- package/lib/resources/health-fund-accounts.d.ts +78 -0
- package/lib/resources/health-fund-accounts.js +3 -3
- package/lib/resources/health-fund-settings.d.ts +39 -0
- package/lib/resources/health-fund-settings.js +3 -3
- package/lib/resources/healthfunds.d.ts +64 -0
- package/lib/resources/healthfunds.js +3 -3
- package/lib/resources/icditems.d.ts +14 -0
- package/lib/resources/icditems.js +3 -3
- package/lib/resources/invoice-scans.d.ts +26 -0
- package/lib/resources/invoice-scans.js +3 -3
- package/lib/resources/jhcs.d.ts +7 -0
- package/lib/resources/jhcs.js +3 -3
- package/lib/resources/kyc.d.ts +109 -0
- package/lib/resources/kyc.js +3 -3
- package/lib/resources/logs.d.ts +16 -0
- package/lib/resources/logs.js +3 -3
- package/lib/resources/members.d.ts +92 -0
- package/lib/resources/members.js +3 -3
- package/lib/resources/message-mappings.d.ts +9 -0
- package/lib/resources/message-mappings.js +3 -3
- package/lib/resources/minions.d.ts +40 -0
- package/lib/resources/minions.js +3 -3
- package/lib/resources/modalities.d.ts +19 -0
- package/lib/resources/modalities.js +3 -3
- package/lib/resources/notes.d.ts +17 -0
- package/lib/resources/notes.js +3 -3
- package/lib/resources/onboarding-applications.d.ts +52 -0
- package/lib/resources/onboarding-applications.js +3 -3
- package/lib/resources/onboarding-requests.d.ts +39 -0
- package/lib/resources/onboarding-requests.js +3 -3
- package/lib/resources/ops.d.ts +60 -0
- package/lib/resources/ops.js +3 -3
- package/lib/resources/organisations.d.ts +7 -0
- package/lib/resources/organisations.js +3 -3
- package/lib/resources/partners.d.ts +50 -0
- package/lib/resources/partners.js +3 -3
- package/lib/resources/patients.d.ts +44 -0
- package/lib/resources/patients.js +3 -3
- package/lib/resources/payments.d.ts +155 -0
- package/lib/resources/payments.js +3 -3
- package/lib/resources/pms.d.ts +43 -0
- package/lib/resources/pms.js +3 -3
- package/lib/resources/practice-profiles.d.ts +20 -0
- package/lib/resources/practice-profiles.js +3 -3
- package/lib/resources/practice-types.d.ts +6 -0
- package/lib/resources/practice-types.js +3 -3
- package/lib/resources/practices.d.ts +137 -0
- package/lib/resources/practices.js +3 -3
- package/lib/resources/products.d.ts +23 -0
- package/lib/resources/products.js +3 -3
- package/lib/resources/professional-categories.d.ts +23 -0
- package/lib/resources/professional-categories.js +3 -3
- package/lib/resources/provider-number-types.d.ts +16 -0
- package/lib/resources/provider-number-types.js +3 -3
- package/lib/resources/provider-registration-types.d.ts +15 -0
- package/lib/resources/provider-registration-types.js +3 -3
- package/lib/resources/provider-requests.d.ts +17 -0
- package/lib/resources/provider-requests.js +3 -3
- package/lib/resources/provider-types.d.ts +6 -0
- package/lib/resources/provider-types.js +3 -3
- package/lib/resources/ref-sources.d.ts +6 -0
- package/lib/resources/ref-sources.js +3 -3
- package/lib/resources/risk.d.ts +13 -0
- package/lib/resources/risk.js +3 -3
- package/lib/resources/rnas.d.ts +43 -0
- package/lib/resources/rnas.js +3 -3
- package/lib/resources/roles.d.ts +7 -0
- package/lib/resources/roles.js +3 -3
- package/lib/resources/self-checkout-sessions.d.ts +134 -0
- package/lib/resources/self-checkout-sessions.js +3 -3
- package/lib/resources/services.d.ts +88 -0
- package/lib/resources/services.js +3 -3
- package/lib/resources/settlements.d.ts +37 -0
- package/lib/resources/settlements.js +3 -3
- package/lib/resources/sign-up.d.ts +5 -0
- package/lib/resources/sign-up.js +3 -3
- package/lib/resources/specialties.d.ts +23 -0
- package/lib/resources/specialties.js +3 -3
- package/lib/resources/staff-profiles.d.ts +20 -0
- package/lib/resources/staff-profiles.js +3 -3
- package/lib/resources/staff.d.ts +242 -0
- package/lib/resources/staff.js +3 -3
- package/lib/resources/statistics.d.ts +56 -0
- package/lib/resources/statistics.js +3 -3
- package/lib/resources/subscriptions.d.ts +32 -0
- package/lib/resources/subscriptions.js +3 -3
- package/lib/resources/terminals.d.ts +71 -0
- package/lib/resources/terminals.js +3 -3
- package/lib/resources/transaction-export.d.ts +18 -0
- package/lib/resources/transaction-export.js +3 -3
- package/lib/resources/transactions.d.ts +466 -0
- package/lib/resources/transactions.js +3 -3
- package/lib/resources/triggers.d.ts +20 -0
- package/lib/resources/triggers.js +3 -3
- package/lib/resources/vendors.d.ts +9 -0
- package/lib/resources/vendors.js +3 -3
- package/lib/resources/verify.d.ts +9 -0
- package/lib/resources/verify.js +3 -3
- package/lib/resources/workers.d.ts +3 -0
- package/lib/resources/workers.js +3 -3
- package/lib/resources/workflow-exceptions.d.ts +5 -0
- package/lib/resources/workflow-exceptions.js +3 -3
- package/lib/services/aws.d.ts +54 -0
- package/lib/services/aws.js +3 -3
- package/lib/services/storage.d.ts +28 -0
- package/lib/services/storage.js +126 -18
- package/lib/services/version.d.ts +21 -0
- package/lib/services/version.js +3 -3
- package/lib/{staff-f19eb168.js → staff-96febcd8.js} +188 -581
- package/lib/types/documents.d.ts +115 -0
- package/lib/types/documents.js +2 -0
- package/lib/types/forms.d.ts +67 -0
- package/lib/types/forms.js +2 -0
- package/lib/types/index.d.ts +42 -0
- package/lib/types/index.js +2 -0
- package/lib/types/message-mappings.d.ts +18 -0
- package/lib/types/message-mappings.js +2 -0
- package/lib/types/notes.d.ts +5 -0
- package/lib/types/notes.js +2 -0
- package/lib/types/products.d.ts +34 -0
- package/lib/types/products.js +2 -0
- package/lib/types/professional-categories.d.ts +20 -0
- package/lib/types/professional-categories.js +2 -0
- package/lib/types/specialties.d.ts +22 -0
- package/lib/types/specialties.js +2 -0
- package/lib/types/subscriptions.d.ts +52 -0
- package/lib/types/subscriptions.js +2 -0
- package/lib/utils/application.d.ts +1 -0
- package/lib/utils/application.js +3 -3
- package/lib/utils/base-urls/core.d.ts +19 -0
- package/lib/utils/base-urls/index.d.ts +37 -0
- package/lib/utils/base-urls/risk.d.ts +17 -0
- package/lib/utils/does-param-exist.d.ts +2 -0
- package/lib/utils/get-axios-error.d.ts +2 -0
- package/lib/utils/param-error.d.ts +3 -0
- package/lib/utils/professions.d.ts +3 -0
- package/lib/utils/professions.js +3 -3
- package/lib/utils/regions.d.ts +1 -0
- package/lib/utils/regions.js +2 -2
- package/lib/utils/request.d.ts +3 -0
- package/lib/utils/request.js +3 -3
- package/lib/utils/staff.d.ts +8 -0
- package/lib/utils/staff.js +3 -3
- package/package.json +19 -9
- package/tsconfig.json +33 -0
- package/types/globals.d.ts +7 -0
- package/types/index.d.ts +1 -0
- package/.eslintrc +0 -3
- package/lib/_types/documents.js.flow +0 -118
- package/lib/_types/forms.js.flow +0 -57
- package/lib/_types/index.js.flow +0 -47
- package/lib/_types/message-mappings.js.flow +0 -22
- package/lib/_types/notes.js.flow +0 -7
- package/lib/_types/products.js.flow +0 -40
- package/lib/_types/professional-categories.js.flow +0 -25
- package/lib/_types/specialties.js.flow +0 -27
- package/lib/_types/subscriptions.js.flow +0 -58
- package/lib/index.js.flow +0 -438
- package/lib/resources/accounts.js.flow +0 -445
- package/lib/resources/actions.js.flow +0 -25
- package/lib/resources/api-keys.js.flow +0 -54
- package/lib/resources/applications.js.flow +0 -60
- package/lib/resources/attachments.js.flow +0 -75
- package/lib/resources/auth.js.flow +0 -185
- package/lib/resources/bulk-submits.js.flow +0 -43
- package/lib/resources/bulk-uploads.js.flow +0 -56
- package/lib/resources/business-profiles.js.flow +0 -45
- package/lib/resources/businesses.js.flow +0 -267
- package/lib/resources/claim-items.js.flow +0 -76
- package/lib/resources/devices.js.flow +0 -64
- package/lib/resources/doc-accounts.js.flow +0 -61
- package/lib/resources/documents.js.flow +0 -216
- package/lib/resources/emails.js.flow +0 -96
- package/lib/resources/form-application-templates.js.flow +0 -52
- package/lib/resources/form-applications.js.flow +0 -62
- package/lib/resources/forms.js.flow +0 -222
- package/lib/resources/funder-services.js.flow +0 -17
- package/lib/resources/funder-settings.js.flow +0 -58
- package/lib/resources/funders.js.flow +0 -15
- package/lib/resources/futures.js.flow +0 -154
- package/lib/resources/health-fund-accounts.js.flow +0 -198
- package/lib/resources/health-fund-settings.js.flow +0 -104
- package/lib/resources/healthfunds.js.flow +0 -139
- package/lib/resources/icditems.js.flow +0 -36
- package/lib/resources/invoice-scans.js.flow +0 -56
- package/lib/resources/jhcs.js.flow +0 -20
- package/lib/resources/kyc.js.flow +0 -216
- package/lib/resources/logs.js.flow +0 -32
- package/lib/resources/members.js.flow +0 -196
- package/lib/resources/message-mappings.js.flow +0 -25
- package/lib/resources/minions.js.flow +0 -96
- package/lib/resources/modalities.js.flow +0 -46
- package/lib/resources/notes.js.flow +0 -112
- package/lib/resources/onboarding-applications.js.flow +0 -142
- package/lib/resources/onboarding-requests.js.flow +0 -97
- package/lib/resources/ops.js.flow +0 -116
- package/lib/resources/organisations.js.flow +0 -15
- package/lib/resources/partners.js.flow +0 -118
- package/lib/resources/patients.js.flow +0 -102
- package/lib/resources/payments.js.flow +0 -523
- package/lib/resources/pms.js.flow +0 -102
- package/lib/resources/practice-profiles.js.flow +0 -51
- package/lib/resources/practice-types.js.flow +0 -14
- package/lib/resources/practices.js.flow +0 -314
- package/lib/resources/products.js.flow +0 -48
- package/lib/resources/professional-categories.js.flow +0 -56
- package/lib/resources/provider-number-types.js.flow +0 -32
- package/lib/resources/provider-registration-types.js.flow +0 -32
- package/lib/resources/provider-requests.js.flow +0 -46
- package/lib/resources/provider-types.js.flow +0 -14
- package/lib/resources/ref-sources.js.flow +0 -16
- package/lib/resources/risk.js.flow +0 -29
- package/lib/resources/rnas.js.flow +0 -108
- package/lib/resources/roles.js.flow +0 -12
- package/lib/resources/self-checkout-sessions.js.flow +0 -382
- package/lib/resources/services.js.flow +0 -219
- package/lib/resources/settlements.js.flow +0 -97
- package/lib/resources/sign-up.js.flow +0 -15
- package/lib/resources/specialties.js.flow +0 -46
- package/lib/resources/staff-profiles.js.flow +0 -51
- package/lib/resources/staff.js.flow +0 -583
- package/lib/resources/statistics.js.flow +0 -147
- package/lib/resources/subscriptions.js.flow +0 -81
- package/lib/resources/terminals.js.flow +0 -161
- package/lib/resources/transaction-export.js.flow +0 -48
- package/lib/resources/transactions.js.flow +0 -1097
- package/lib/resources/triggers.js.flow +0 -36
- package/lib/resources/vendors.js.flow +0 -28
- package/lib/resources/verify.js.flow +0 -14
- package/lib/resources/workers.js.flow +0 -10
- package/lib/resources/workflow-exceptions.js.flow +0 -17
- package/lib/services/__mocks__/storage.js.flow +0 -30
- package/lib/services/aws.js.flow +0 -339
- package/lib/services/storage.js.flow +0 -92
- package/lib/services/version.js.flow +0 -73
- package/lib/storage-16fd26f8.js +0 -1268
- package/lib/utils/application.js.flow +0 -23
- package/lib/utils/base-urls/core.js.flow +0 -18
- package/lib/utils/base-urls/index.js.flow +0 -7
- package/lib/utils/base-urls/risk.js.flow +0 -16
- package/lib/utils/does-param-exist.js.flow +0 -23
- package/lib/utils/get-axios-error.js.flow +0 -8
- package/lib/utils/param-error.js.flow +0 -8
- package/lib/utils/professions.js.flow +0 -66
- package/lib/utils/regions.js.flow +0 -21
- package/lib/utils/request.js.flow +0 -36
- package/lib/utils/staff.js.flow +0 -81
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Approve a transaction
|
|
4
|
+
* @param {String} transactionId - Transaction ID
|
|
5
|
+
* @param {Object} body - Request body
|
|
6
|
+
* @param {Object} opts - Additional options
|
|
7
|
+
*/
|
|
8
|
+
export declare const approveTransaction: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
9
|
+
/**
|
|
10
|
+
* Assign health fund transactions
|
|
11
|
+
* @param {String} healthFundId - Health fund ID
|
|
12
|
+
* @param {Object} opts - Additional options
|
|
13
|
+
*/
|
|
14
|
+
export declare const assignHealthFundTransactions: (healthFundId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* Assign health fund transaction to self
|
|
17
|
+
* @param {String} healthFundId - Health fund ID
|
|
18
|
+
* @param {String} transactionId - Transaction ID
|
|
19
|
+
* @param {Object} opts - Additional options
|
|
20
|
+
*/
|
|
21
|
+
export declare const assignHealthFundTransactionToSelf: (healthFundId: string, transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
22
|
+
/**
|
|
23
|
+
* Assign transaction to self
|
|
24
|
+
* @param {String} transactionId - Transaction ID
|
|
25
|
+
* @param {Object} opts - Additional options
|
|
26
|
+
*/
|
|
27
|
+
export declare const assignTransactionToSelf: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
28
|
+
/**
|
|
29
|
+
* Cancel a transaction
|
|
30
|
+
* @param {String} transactionId - Transaction ID
|
|
31
|
+
* @param {Object} opts - Additional options
|
|
32
|
+
*/
|
|
33
|
+
export declare const cancelTransaction: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
34
|
+
/**
|
|
35
|
+
* Cancel a business transaction
|
|
36
|
+
* @param {String} businessId - Business ID
|
|
37
|
+
* @param {String} transactionId - Transaction ID
|
|
38
|
+
* @param {Object} opts - Additional options
|
|
39
|
+
*/
|
|
40
|
+
export declare const cancelBusinessTransaction: (businessId: string, transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
41
|
+
/**
|
|
42
|
+
* Create an invoice for a business
|
|
43
|
+
* @param {String} businessId - Business ID
|
|
44
|
+
* @param {String} practiceId - Practice ID
|
|
45
|
+
* @param {String} staffId - Staff ID
|
|
46
|
+
* @param {Object} body - Request body
|
|
47
|
+
* @param {Object} opts - Additional options
|
|
48
|
+
*/
|
|
49
|
+
export declare const createBusinessPracticeStaffMemberInvoice: (businessId: string, practiceId: string, staffId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
50
|
+
/**
|
|
51
|
+
* Create an invoice for a business
|
|
52
|
+
* @param {String} businessId - Business ID
|
|
53
|
+
* @param {String} practiceId - Practice ID
|
|
54
|
+
* @param {Object} body - Request body
|
|
55
|
+
* @param {Object} opts - Additional options
|
|
56
|
+
*/
|
|
57
|
+
export declare const createBusinessPracticeInvoice: (businessId: string, practiceId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
58
|
+
/**
|
|
59
|
+
* Create a quote for a business
|
|
60
|
+
* @param {String} businessId - Business ID
|
|
61
|
+
* @param {Object} body - Request body
|
|
62
|
+
* @param {Object} opts - Additional options
|
|
63
|
+
*/
|
|
64
|
+
export declare const createBusinessTransactionQuote: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
65
|
+
/**
|
|
66
|
+
* Create a quote for a staff
|
|
67
|
+
* @param {String} businessId - Business ID
|
|
68
|
+
* @param {String} practiceId - Practice ID
|
|
69
|
+
* @param {String} staffId - Staff ID
|
|
70
|
+
* @param {Object} body - Request body
|
|
71
|
+
* @param {Object} opts - Additional options
|
|
72
|
+
*/
|
|
73
|
+
export declare const createBusinessPracticeStaffMemberQuote: (businessId: string, practiceId: string, staffId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a payment for a transaction
|
|
76
|
+
* @param {String} transactionId - TransactionId
|
|
77
|
+
* @param {String} source - Payment source (e.g. 'mastercard')
|
|
78
|
+
* @param {String} nonce - Nonce (or client token)
|
|
79
|
+
* @param {Object} body - Request body
|
|
80
|
+
* @param {Object} opts - Additional options
|
|
81
|
+
*/
|
|
82
|
+
export declare const createPayment: (transactionId: string, source?: string, nonce?: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a payment request for a transaction
|
|
85
|
+
* @param {String} transactionId - TransactionId
|
|
86
|
+
* @param {Object} body - Request body
|
|
87
|
+
* @param {Object} opts - Additional options
|
|
88
|
+
*/
|
|
89
|
+
export declare const createPaymentRequest: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
90
|
+
/**
|
|
91
|
+
* Complete a quote
|
|
92
|
+
* @param {String} transactionId - Transaction ID
|
|
93
|
+
* @param {Object} memberId - Member ID
|
|
94
|
+
* @param {Object} opts - Additional options
|
|
95
|
+
*/
|
|
96
|
+
export declare const completeQuote: (transactionId: string, memberId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
97
|
+
/**
|
|
98
|
+
* Delete a transaction tag
|
|
99
|
+
* @param {String} transactionId - Transaction ID
|
|
100
|
+
* @param {String} tagId - Tag ID
|
|
101
|
+
* @param {Object} opts - Additional options
|
|
102
|
+
*/
|
|
103
|
+
export declare const deleteTransactionTag: (transactionId: string, tagId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
104
|
+
/**
|
|
105
|
+
* Delete a transaction
|
|
106
|
+
* @param {String} transactionId - Transaction ID
|
|
107
|
+
* @param {Object} opts - Additional options
|
|
108
|
+
*/
|
|
109
|
+
export declare const deleteTransaction: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
110
|
+
/**
|
|
111
|
+
* Get business transactions
|
|
112
|
+
* @param {String} businessId - Business ID
|
|
113
|
+
* @param {Object} query - query parameters
|
|
114
|
+
* @param {Object} opts - Additional options
|
|
115
|
+
*/
|
|
116
|
+
export declare const getBusinessTransactions: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
117
|
+
/**
|
|
118
|
+
* Get business transaction
|
|
119
|
+
* @param {String} businessId - Business ID
|
|
120
|
+
* @param {String} transactionId - Transaction ID
|
|
121
|
+
* @param {Object} opts - Additional options
|
|
122
|
+
*/
|
|
123
|
+
export declare const getBusinessTransaction: (businessId: string, transactionId: string, query?: {
|
|
124
|
+
includeDeleted: boolean;
|
|
125
|
+
} | null | undefined, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
126
|
+
/**
|
|
127
|
+
* Get business transaction by invoice reference
|
|
128
|
+
* @param {String} businessId - Business ID
|
|
129
|
+
* @param {String} invoiceReference - Invoice reference
|
|
130
|
+
* @param {Object} opts - Additional options
|
|
131
|
+
*/
|
|
132
|
+
export declare const getBusinessTransactionByInvoiceReference: (businessId: string, invoiceReference: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
133
|
+
/**
|
|
134
|
+
* Get business transaction payment report
|
|
135
|
+
* @param {String} businessId - Business ID
|
|
136
|
+
* @param {String} transactionId - Transaction ID
|
|
137
|
+
* @param {Object} opts - Additional options
|
|
138
|
+
*/
|
|
139
|
+
export declare const getBusinessTransactionPaymentReport: (businessId: string, transactionId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
140
|
+
/**
|
|
141
|
+
* Get business transaction processing report
|
|
142
|
+
* @param {String} businessId - Business ID
|
|
143
|
+
* @param {String} transactionId - Transaction ID
|
|
144
|
+
* @param {Object} opts - Additional options
|
|
145
|
+
*/
|
|
146
|
+
export declare const getBusinessTransactionProcessingReport: (businessId: string, transactionId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
147
|
+
/**
|
|
148
|
+
* Get business practice transactions
|
|
149
|
+
* @param {String} businessId - Business ID
|
|
150
|
+
* @param {String} practiceId - Practice ID
|
|
151
|
+
* @param {Object} query - query parameters
|
|
152
|
+
* @param {Object} opts - Additional options
|
|
153
|
+
*/
|
|
154
|
+
export declare const getBusinessPracticeTransactions: (businessId: string, practiceId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
155
|
+
/**
|
|
156
|
+
* Get business staff transactions
|
|
157
|
+
* @param {String} businessId - Business ID
|
|
158
|
+
* @param {String} practiceId - Practice ID
|
|
159
|
+
* @param {String} staffId - Staff ID
|
|
160
|
+
* @param {Object} query - query parameters
|
|
161
|
+
* @param {Object} opts - Additional options
|
|
162
|
+
*/
|
|
163
|
+
export declare const getBusinessPracticeStaffTransactions: (businessId: string, practiceId: string, staffId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
164
|
+
/**
|
|
165
|
+
* Get transactions by health fund
|
|
166
|
+
* @param {String} healthFundId - Health fund ID
|
|
167
|
+
* @param {Object} query - query parameters
|
|
168
|
+
* @param {Object} opts - Additional options
|
|
169
|
+
*/
|
|
170
|
+
export declare const getTransactionsForHealthFund: (healthFundId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
171
|
+
/**
|
|
172
|
+
* Get transaction by transaction ID and health fund ID
|
|
173
|
+
* @param {String} healthFundId - Health fund ID
|
|
174
|
+
* @param {String} transactionId - Transaction ID
|
|
175
|
+
* @param {Object} opts - Additional options
|
|
176
|
+
*/
|
|
177
|
+
export declare const getHealthFundTransaction: (healthFundId: string, transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
178
|
+
/**
|
|
179
|
+
* Get transactions by member
|
|
180
|
+
* @param {String} memberId - Health fund ID
|
|
181
|
+
* @param {Object} query - query parameters
|
|
182
|
+
* @param {Object} opts - Additional options
|
|
183
|
+
*/
|
|
184
|
+
export declare const getTransactionsByMember: (memberId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
185
|
+
/**
|
|
186
|
+
* Get health fund member transactions
|
|
187
|
+
* @param {String} healthFundId - Health fund ID
|
|
188
|
+
* @param {String} memberId - Member ID
|
|
189
|
+
* @param {Object} query - query parameters
|
|
190
|
+
* @param {Object} opts - Additional options
|
|
191
|
+
*/
|
|
192
|
+
export declare const getHealthFundMemberTransactions: (healthFundId: string, memberId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
193
|
+
/**
|
|
194
|
+
* Get transaction by transaction ID.
|
|
195
|
+
* @param {String} transactionId - Transaction ID
|
|
196
|
+
* @param {Object} opts - Additional options
|
|
197
|
+
*/
|
|
198
|
+
export declare const getTransactionByTransactionId: (transactionId: string, query?: {
|
|
199
|
+
includeDeleted: boolean;
|
|
200
|
+
} | null | undefined, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
201
|
+
/**
|
|
202
|
+
* Get transaction PDF
|
|
203
|
+
* @param {String} transactionId - Transaction ID
|
|
204
|
+
* @param {Object} body - Request body
|
|
205
|
+
* @param {Object} opts - Additional options
|
|
206
|
+
*/
|
|
207
|
+
export declare const getTransactionPDF: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
208
|
+
/**
|
|
209
|
+
* Get transaction claim PDF
|
|
210
|
+
* @param {String} transactionId - Transaction ID
|
|
211
|
+
* @param {String} claimId - Claim ID
|
|
212
|
+
* @param {Object} body - Request body
|
|
213
|
+
* @param {Object} opts - Additional options
|
|
214
|
+
*/
|
|
215
|
+
export declare const getTransactionClaimPDF: (transactionId: string, claimId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
216
|
+
/**
|
|
217
|
+
* TODO: Use this endpoint for all funder claims, once the funder is supported in the API,
|
|
218
|
+
* replacing the legacy `getTransactionClaimPDF`.
|
|
219
|
+
*
|
|
220
|
+
* Get Eclipse transaction claim PDF
|
|
221
|
+
* @param {Object} body - Request body including `transactionId` and `claimId`
|
|
222
|
+
* @param {Object} opts - Additional options
|
|
223
|
+
*/
|
|
224
|
+
export declare const getTransactionClaimPdfV2: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
225
|
+
/**
|
|
226
|
+
* Reply to a quote
|
|
227
|
+
* @param {String} transactionId - TransactionId
|
|
228
|
+
* @param {Object} body - Request body
|
|
229
|
+
* @param {Object} opts - Additional options
|
|
230
|
+
*/
|
|
231
|
+
export declare const replyToQuote: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
232
|
+
/**
|
|
233
|
+
* Send receipt
|
|
234
|
+
* @param {String} transactionId - TransactionId
|
|
235
|
+
* @param {Object} body - Request body
|
|
236
|
+
* @param {Object} opts - Additional options
|
|
237
|
+
*/
|
|
238
|
+
export declare const sendReceipt: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
239
|
+
/**
|
|
240
|
+
* Submit an invoice
|
|
241
|
+
* @param {String} transactionId - TransactionId
|
|
242
|
+
* @param {Object} body - Request body
|
|
243
|
+
* @param {Object} opts - Additional options
|
|
244
|
+
*/
|
|
245
|
+
export declare const submitInvoice: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
246
|
+
/**
|
|
247
|
+
* Update transaction
|
|
248
|
+
* @param {String} transactionId - TransactionId
|
|
249
|
+
* @param {Object} body - Request body
|
|
250
|
+
* @param {Object} opts - Additional options
|
|
251
|
+
*/
|
|
252
|
+
export declare const updateTransaction: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
253
|
+
/**
|
|
254
|
+
* Validate a transaction
|
|
255
|
+
* @param {String} transactionId - TransactionId
|
|
256
|
+
* @param {Object} opts - Additional options
|
|
257
|
+
*/
|
|
258
|
+
export declare const validateTransaction: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
259
|
+
/**
|
|
260
|
+
* Submits a Bridge's claim response to transaction
|
|
261
|
+
* @param {String} transactionId - TransactionId
|
|
262
|
+
* @param {Object} body - Request body
|
|
263
|
+
* @param {Object} opts - Additional options
|
|
264
|
+
*/
|
|
265
|
+
export declare const submitTransactionBridgeClaim: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
266
|
+
/**
|
|
267
|
+
* Submits a Bridge's payment response to transaction
|
|
268
|
+
* @param {String} transactionId - TransactionId
|
|
269
|
+
* @param {Object} body - Request body
|
|
270
|
+
* @param {Object} opts - Additional options
|
|
271
|
+
*/
|
|
272
|
+
export declare const submitTransactionBridgePayment: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
273
|
+
/**
|
|
274
|
+
* Trigger's a bridge request for a transaction
|
|
275
|
+
* @param {String} transactionId - TransactionId
|
|
276
|
+
* @param {Object} body - Request body
|
|
277
|
+
* @param {Object} opts - Additional options
|
|
278
|
+
*/
|
|
279
|
+
export declare const triggerBridge: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
280
|
+
/**
|
|
281
|
+
* Create invoice
|
|
282
|
+
* @param {String} businessId - BusinessId
|
|
283
|
+
* @param {Object} body - Request body
|
|
284
|
+
* @param {Object} opts - Additional options
|
|
285
|
+
*/
|
|
286
|
+
export declare const createInvoice: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
287
|
+
/**
|
|
288
|
+
* Create or send a claim
|
|
289
|
+
* @param {String} transactionId - TransactionId
|
|
290
|
+
* @param {Object} body - Request body
|
|
291
|
+
* @param {Object} opts - Additional options
|
|
292
|
+
*/
|
|
293
|
+
export declare const createSendClaim: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
294
|
+
/**
|
|
295
|
+
* Update a claim
|
|
296
|
+
* @param {String} transactionId - TransactionId
|
|
297
|
+
* @param {String} claimId - ClaimId
|
|
298
|
+
* @param {Object} body - Request body
|
|
299
|
+
* @param {Object} opts - Additional options
|
|
300
|
+
*/
|
|
301
|
+
export declare const updateClaim: (transactionId: string, claimId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
302
|
+
/**
|
|
303
|
+
* Complete a transaction
|
|
304
|
+
* @param {String} transactionId - TransactionId
|
|
305
|
+
* @param {Object} opts - Additional options
|
|
306
|
+
*/
|
|
307
|
+
export declare const completeTransaction: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
308
|
+
/**
|
|
309
|
+
* Approves a claim
|
|
310
|
+
* @param {String} transactionId - TransactionId
|
|
311
|
+
* @param {String} claimId - ClaimId
|
|
312
|
+
* @param {Object} body - Request body
|
|
313
|
+
* @param {Object} opts - Additional options
|
|
314
|
+
*/
|
|
315
|
+
export declare const approveClaim: (transactionId: string, claimId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
316
|
+
/**
|
|
317
|
+
* Cancels a claim
|
|
318
|
+
* @param {String} transactionId - Transaction ID
|
|
319
|
+
* @param {String} claimId - Claim ID
|
|
320
|
+
* @param {Object} opts - Additional options
|
|
321
|
+
*/
|
|
322
|
+
export declare const cancelClaim: (transactionId: string, claimId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
323
|
+
/**
|
|
324
|
+
* Submit a claim
|
|
325
|
+
* @param {String} transactionId - TransactionId
|
|
326
|
+
* @param {String} claimId - ClaimId
|
|
327
|
+
* @param {Object} body - Request body
|
|
328
|
+
* @param {Object} opts - Additional options
|
|
329
|
+
*/
|
|
330
|
+
export declare const submitClaim: (transactionId: string, claimId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
331
|
+
/**
|
|
332
|
+
* Save claim details
|
|
333
|
+
* @param {String} transactionId - Transaction ID
|
|
334
|
+
* @param {String} claimId - Claim ID
|
|
335
|
+
* @param {Object} opts - Additional options
|
|
336
|
+
*/
|
|
337
|
+
export declare const saveClaimDetails: (transactionId: string, claimId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
338
|
+
/**
|
|
339
|
+
* Create payment
|
|
340
|
+
* @param {String} transactionId - Transaction ID
|
|
341
|
+
* @param {Object} body - Request body
|
|
342
|
+
* @param {Object} opts - Additional options
|
|
343
|
+
*/
|
|
344
|
+
export declare const pay: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
345
|
+
/**
|
|
346
|
+
* Send a processing request
|
|
347
|
+
* @param {String} transactionId - TransactionId
|
|
348
|
+
* @param {Object} body - Request body
|
|
349
|
+
* @param {Object} opts - Additional options
|
|
350
|
+
*/
|
|
351
|
+
export declare const sendProcessingRequest: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
352
|
+
/**
|
|
353
|
+
* Cancel invoice
|
|
354
|
+
* @param {String} transactionId - TransactionId
|
|
355
|
+
* @param {Object} body - Request body
|
|
356
|
+
* @param {Object} opts - Additional options
|
|
357
|
+
*/
|
|
358
|
+
export declare const cancelInvoice: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
359
|
+
/**
|
|
360
|
+
* Get payment link
|
|
361
|
+
* @param {String} transactionId - TransactionId
|
|
362
|
+
* @param {Object} opts - Additional options
|
|
363
|
+
*/
|
|
364
|
+
export declare const getPaymentLink: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
365
|
+
/**
|
|
366
|
+
* Refund transaction
|
|
367
|
+
* @param {String} businessId - BusinessId
|
|
368
|
+
* @param {String} transactionId - TransactionId
|
|
369
|
+
* @param {Object} body - Request body
|
|
370
|
+
* @param {Object} opts - Additional options
|
|
371
|
+
*/
|
|
372
|
+
export declare const refundByBusiness: (businessId: string, transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
373
|
+
/**
|
|
374
|
+
* Refund transaction
|
|
375
|
+
* @param {String} transactionId - TransactionId
|
|
376
|
+
* @param {Object} body - Request body
|
|
377
|
+
* @param {Object} opts - Additional options
|
|
378
|
+
*/
|
|
379
|
+
export declare const refund: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
380
|
+
/**
|
|
381
|
+
* Save invoice as draft
|
|
382
|
+
* @param {String} businessId - BusinessId
|
|
383
|
+
* @param {Object} body - Request body
|
|
384
|
+
* @param {Object} opts - Additional options
|
|
385
|
+
*/
|
|
386
|
+
export declare const saveDraft: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
387
|
+
/**
|
|
388
|
+
* Convert draft to an invoice
|
|
389
|
+
* @param {String} transactionId - Transaction ID
|
|
390
|
+
* @param {Object} body - Request body
|
|
391
|
+
* @param {Object} opts - Additional options
|
|
392
|
+
*/
|
|
393
|
+
export declare const convertDraft: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
394
|
+
/**
|
|
395
|
+
* Archive an invoice
|
|
396
|
+
* @param {String} transactionId - Transaction ID
|
|
397
|
+
* @param {Object} opts - Additional options
|
|
398
|
+
*/
|
|
399
|
+
export declare const archive: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
400
|
+
/**
|
|
401
|
+
* Unarchive an invoice
|
|
402
|
+
* @param {String} transactionId - Transaction ID
|
|
403
|
+
* @param {Object} opts - Additional options
|
|
404
|
+
*/
|
|
405
|
+
export declare const unarchive: (transactionId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
406
|
+
/**
|
|
407
|
+
* Send terminal input
|
|
408
|
+
* @param {String} transactionId - Transaction ID
|
|
409
|
+
* @param {Object} body - Request body
|
|
410
|
+
* @param {Object} opts - Additional options
|
|
411
|
+
*/
|
|
412
|
+
export declare const terminalInput: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
413
|
+
/**
|
|
414
|
+
* Send terminal cancellation
|
|
415
|
+
* @param {String} transactionId - Transaction ID
|
|
416
|
+
* @param {Object} body - Request body
|
|
417
|
+
* @param {Object} opts - Additional options
|
|
418
|
+
*/
|
|
419
|
+
export declare const terminalCancellation: (transactionId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
420
|
+
/**
|
|
421
|
+
* Refund transaction's payment
|
|
422
|
+
* @param {String} transactionId - TransactionId
|
|
423
|
+
* @param {String} paymentId - PaymentId
|
|
424
|
+
* @param {Object} body - Request body
|
|
425
|
+
* @param {Object} opts - Additional options
|
|
426
|
+
*/
|
|
427
|
+
export declare const refundPayment: (transactionId: string, paymentId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
428
|
+
/**
|
|
429
|
+
* Create ECLIPSE invoice - In Patient
|
|
430
|
+
* @param {Object} body - Request body
|
|
431
|
+
* @param {Object} opts - Additional options
|
|
432
|
+
*/
|
|
433
|
+
export declare const createEclipseInPatientInvoice: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
434
|
+
/**
|
|
435
|
+
* Create ECLIPSE invoice - Overseas
|
|
436
|
+
* @param {Object} body - Request body
|
|
437
|
+
* @param {Object} opts - Additional options
|
|
438
|
+
*/
|
|
439
|
+
export declare const createEclipseOverseasInvoice: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
440
|
+
/**
|
|
441
|
+
* Create ECLIPSE invoice - Online Eligibility Check
|
|
442
|
+
* @param {Object} body - Request body
|
|
443
|
+
* @param {Object} opts - Additional options
|
|
444
|
+
*/
|
|
445
|
+
export declare const createEclipseOnlineEligibilityCheckInvoice: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
446
|
+
/**
|
|
447
|
+
* Get business ECLIPSE transaction payment report
|
|
448
|
+
* @param {String} businessId - Business ID
|
|
449
|
+
* @param {String} transactionId - Transaction ID
|
|
450
|
+
* @param {Object} opts - Additional options
|
|
451
|
+
*/
|
|
452
|
+
export declare const getBusinessEclipseTransactionPaymentReport: (businessId: string, transactionId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
453
|
+
/**
|
|
454
|
+
* Get business ECLIPSE transaction processing report
|
|
455
|
+
* @param {String} businessId - Business ID
|
|
456
|
+
* @param {String} transactionId - Transaction ID
|
|
457
|
+
* @param {Object} opts - Additional options
|
|
458
|
+
*/
|
|
459
|
+
export declare const getBusinessEclipseTransactionProcessingReport: (businessId: string, transactionId: string, query: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
460
|
+
/**
|
|
461
|
+
* Reconciles a claim
|
|
462
|
+
* @param {String} transactionId - TransactionId
|
|
463
|
+
* @param {String} claimId - ClaimId
|
|
464
|
+
* @param {Object} opts - Additional options
|
|
465
|
+
*/
|
|
466
|
+
export declare const reconcileClaim: (transactionId: string, claimId: 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-f19eb168.js');
|
|
21
|
+
var request = require('../staff-96febcd8.js');
|
|
23
22
|
require('lodash/omitBy');
|
|
24
23
|
require('lodash/isEmpty');
|
|
25
24
|
require('store/src/store-engine');
|
|
@@ -27,6 +26,7 @@ require('store/storages/localStorage');
|
|
|
27
26
|
require('store/storages/sessionStorage');
|
|
28
27
|
require('masked');
|
|
29
28
|
require('@medipass/utils/sensitive-keys');
|
|
29
|
+
require('../services/storage.js');
|
|
30
30
|
require('platform');
|
|
31
31
|
require('@medipass/utils/constants');
|
|
32
32
|
require('braintree-web/client');
|
|
@@ -40,7 +40,7 @@ require('../utils/base-urls/core.js');
|
|
|
40
40
|
require('../utils/base-urls/risk.js');
|
|
41
41
|
require('../utils/base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
import '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Get trigger
|
|
5
|
+
* @param {String} triggerId - Trigger ID
|
|
6
|
+
* @param {Object} opts - Additional options
|
|
7
|
+
*/
|
|
8
|
+
export declare const getTrigger: (triggerId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
9
|
+
/**
|
|
10
|
+
* Get triggers
|
|
11
|
+
* @param {Object} query - Query parameters
|
|
12
|
+
* @param {Object} opts - Additional options
|
|
13
|
+
*/
|
|
14
|
+
export declare const getTriggers: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
15
|
+
/**
|
|
16
|
+
* Get trigger categories
|
|
17
|
+
* @param {Object} query - Query parameters
|
|
18
|
+
* @param {Object} opts - Additional options
|
|
19
|
+
*/
|
|
20
|
+
export declare const getTriggerCategories: (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-f19eb168.js');
|
|
21
|
+
var request = require('../staff-96febcd8.js');
|
|
23
22
|
require('lodash/omitBy');
|
|
24
23
|
require('lodash/isEmpty');
|
|
25
24
|
require('store/src/store-engine');
|
|
@@ -27,6 +26,7 @@ require('store/storages/localStorage');
|
|
|
27
26
|
require('store/storages/sessionStorage');
|
|
28
27
|
require('masked');
|
|
29
28
|
require('@medipass/utils/sensitive-keys');
|
|
29
|
+
require('../services/storage.js');
|
|
30
30
|
require('platform');
|
|
31
31
|
require('@medipass/utils/constants');
|
|
32
32
|
require('braintree-web/client');
|
|
@@ -40,7 +40,7 @@ require('../utils/base-urls/core.js');
|
|
|
40
40
|
require('../utils/base-urls/risk.js');
|
|
41
41
|
require('../utils/base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MedipassRequestOpts, PaginatedQuery } from '../types';
|
|
2
|
+
export declare const pathHealthFundVendors: (healthFundId: string) => string;
|
|
3
|
+
export declare const pathHealthFundVendor: (healthFundId: string, vendorId: string) => string;
|
|
4
|
+
export declare const getHealthFundVendor: (healthFundId: string, vendorId: string, query?: {
|
|
5
|
+
includeDeleted: boolean;
|
|
6
|
+
} | null | undefined, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
7
|
+
export declare const getHealthFundVendors: (healthFundId: string, query?: (PaginatedQuery & {
|
|
8
|
+
searchText?: string;
|
|
9
|
+
}) | null | undefined, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
package/lib/resources/vendors.js
CHANGED
|
@@ -18,8 +18,7 @@ require('../utils/param-error.js');
|
|
|
18
18
|
require('../utils/does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('../utils/get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-f19eb168.js');
|
|
21
|
+
var request = require('../staff-96febcd8.js');
|
|
23
22
|
require('lodash/omitBy');
|
|
24
23
|
require('lodash/isEmpty');
|
|
25
24
|
require('store/src/store-engine');
|
|
@@ -27,6 +26,7 @@ require('store/storages/localStorage');
|
|
|
27
26
|
require('store/storages/sessionStorage');
|
|
28
27
|
require('masked');
|
|
29
28
|
require('@medipass/utils/sensitive-keys');
|
|
29
|
+
require('../services/storage.js');
|
|
30
30
|
require('platform');
|
|
31
31
|
require('@medipass/utils/constants');
|
|
32
32
|
require('braintree-web/client');
|
|
@@ -40,7 +40,7 @@ require('../utils/base-urls/core.js');
|
|
|
40
40
|
require('../utils/base-urls/risk.js');
|
|
41
41
|
require('../utils/base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
import '../types';
|
|
3
|
+
export declare const PATH__MEDICARE_VERIFY = "/medicare/verify";
|
|
4
|
+
/**
|
|
5
|
+
* Verify medicare details
|
|
6
|
+
* @param {Object} body - Request body
|
|
7
|
+
* @param {Object} opts - Additional options
|
|
8
|
+
*/
|
|
9
|
+
export declare const verifyMedicare: (body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
package/lib/resources/verify.js
CHANGED
|
@@ -18,8 +18,7 @@ require('../utils/param-error.js');
|
|
|
18
18
|
require('../utils/does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('../utils/get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-f19eb168.js');
|
|
21
|
+
var request = require('../staff-96febcd8.js');
|
|
23
22
|
require('lodash/omitBy');
|
|
24
23
|
require('lodash/isEmpty');
|
|
25
24
|
require('store/src/store-engine');
|
|
@@ -27,6 +26,7 @@ require('store/storages/localStorage');
|
|
|
27
26
|
require('store/storages/sessionStorage');
|
|
28
27
|
require('masked');
|
|
29
28
|
require('@medipass/utils/sensitive-keys');
|
|
29
|
+
require('../services/storage.js');
|
|
30
30
|
require('platform');
|
|
31
31
|
require('@medipass/utils/constants');
|
|
32
32
|
require('braintree-web/client');
|
|
@@ -40,7 +40,7 @@ require('../utils/base-urls/core.js');
|
|
|
40
40
|
require('../utils/base-urls/risk.js');
|
|
41
41
|
require('../utils/base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
package/lib/resources/workers.js
CHANGED
|
@@ -18,8 +18,7 @@ require('../utils/param-error.js');
|
|
|
18
18
|
require('../utils/does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('../utils/get-axios-error.js');
|
|
21
|
-
require('../
|
|
22
|
-
var request = require('../staff-f19eb168.js');
|
|
21
|
+
var request = require('../staff-96febcd8.js');
|
|
23
22
|
require('lodash/omitBy');
|
|
24
23
|
require('lodash/isEmpty');
|
|
25
24
|
require('store/src/store-engine');
|
|
@@ -27,6 +26,7 @@ require('store/storages/localStorage');
|
|
|
27
26
|
require('store/storages/sessionStorage');
|
|
28
27
|
require('masked');
|
|
29
28
|
require('@medipass/utils/sensitive-keys');
|
|
29
|
+
require('../services/storage.js');
|
|
30
30
|
require('platform');
|
|
31
31
|
require('@medipass/utils/constants');
|
|
32
32
|
require('braintree-web/client');
|
|
@@ -40,7 +40,7 @@ require('../utils/base-urls/core.js');
|
|
|
40
40
|
require('../utils/base-urls/risk.js');
|
|
41
41
|
require('../utils/base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-a0a28864.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MedipassRequestOpts, PaginatedQuery } from '../types';
|
|
2
|
+
export declare const pathHealthFundWorkflowExceptions: (healthFundId: string) => string;
|
|
3
|
+
export declare const getHealthFundWorkflowExceptions: (healthFundId: string, query?: (PaginatedQuery & {
|
|
4
|
+
searchText?: string;
|
|
5
|
+
}) | null | undefined, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|