@medipass/web-sdk 11.38.1-feature-eclipse-reporting.0 → 11.38.1-feature-typescript-claudia.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +95 -0
- package/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/.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
|
@@ -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,39 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathOnboardingRequest: (onboardingRequestId: string) => string;
|
|
3
|
+
export declare const pathBusinessOnboardingRequests: (businessId: string) => string;
|
|
4
|
+
export declare const pathOnboardingRequestSubmit: (onboardingRequestId: string) => string;
|
|
5
|
+
export declare const pathOnboardingRequestOnboardingStep: (onboardingRequestId: string, onboardingStepId: string) => string;
|
|
6
|
+
/**
|
|
7
|
+
* Get a onboarding request by Id
|
|
8
|
+
* @param {String} onboardingRequestId - Onboarding Request Id
|
|
9
|
+
* @param {Object} opts - Additional options
|
|
10
|
+
*/
|
|
11
|
+
export declare const getOnboardingRequest: (onboardingRequestId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get a list of business' onboarding requests
|
|
14
|
+
* @param {String} businessId - Business ID
|
|
15
|
+
* @param {Object} query - Query parameters
|
|
16
|
+
* @param {Object} opts - Additional options
|
|
17
|
+
*/
|
|
18
|
+
export declare const getBusinessOnboardingRequests: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
19
|
+
/**
|
|
20
|
+
* Create onboarding request
|
|
21
|
+
* @param {String} businessId - Business ID
|
|
22
|
+
*/
|
|
23
|
+
export declare const createBusinessOnboardingRequest: (businessId: string, body?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
24
|
+
/**
|
|
25
|
+
* Submit onboarding request
|
|
26
|
+
* @param {String} onboardingRequestId - Onboarding Request Id
|
|
27
|
+
*/
|
|
28
|
+
export declare const submitOnboardingRequest: (onboardingRequestId: string, body?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
29
|
+
/**
|
|
30
|
+
* Update onboarding request step
|
|
31
|
+
* @param {String} onboardingRequestId - Onboarding Request Id
|
|
32
|
+
* @param {String} onboardingStepId - Onboarding Step Id
|
|
33
|
+
*/
|
|
34
|
+
export declare const updateOnboardingRequestStep: (onboardingRequestId: string, onboardingStepId: string, body?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
35
|
+
/**
|
|
36
|
+
* Delete onboarding request
|
|
37
|
+
* @param {String} onboardingRequestId - Onboarding Request Id
|
|
38
|
+
*/
|
|
39
|
+
export declare const deleteOnboardingRequest: (onboardingRequestId: string, 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,60 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Create ops service
|
|
4
|
+
* @param {String} fullName - Service full name
|
|
5
|
+
* @param {String} displayName - Service display name
|
|
6
|
+
* @param {String} type - Service type
|
|
7
|
+
* @param {Object} body - Request body
|
|
8
|
+
* @param {Object} opts - Additional options
|
|
9
|
+
*/
|
|
10
|
+
export declare const createService: (fullName: string, displayName: string, type: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
11
|
+
/**
|
|
12
|
+
* Delete an ops services
|
|
13
|
+
* @param {String} serviceId - Service ID
|
|
14
|
+
* @param {Object} opts - Additional options
|
|
15
|
+
*/
|
|
16
|
+
export declare const deleteService: (serviceId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
17
|
+
/**
|
|
18
|
+
* Deploy an ops service
|
|
19
|
+
* @param {String} serviceId - Service ID
|
|
20
|
+
* @param {Object} opts - Additional options
|
|
21
|
+
*/
|
|
22
|
+
export declare const deployService: (serviceId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
23
|
+
/**
|
|
24
|
+
* Get ops deployments
|
|
25
|
+
* @param {Object} query - Query parameters
|
|
26
|
+
* @param {Object} opts - Additional options
|
|
27
|
+
*/
|
|
28
|
+
export declare const getDeployments: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
29
|
+
/**
|
|
30
|
+
* Get ops deployments
|
|
31
|
+
* @param {String} deploymentId - Deployment ID
|
|
32
|
+
* @param {Object} opts - Additional options
|
|
33
|
+
*/
|
|
34
|
+
export declare const getDeployment: (deploymentId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
35
|
+
/**
|
|
36
|
+
* Get ops services
|
|
37
|
+
* @param {Object} query - Query parameters
|
|
38
|
+
* @param {Object} opts - Additional options
|
|
39
|
+
*/
|
|
40
|
+
export declare const getServices: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get an ops service
|
|
43
|
+
* @param {String} serviceId - Service ID
|
|
44
|
+
* @param {Object} opts - Additional options
|
|
45
|
+
*/
|
|
46
|
+
export declare const getService: (serviceId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
47
|
+
/**
|
|
48
|
+
* Update an ops service
|
|
49
|
+
* @param {String} serviceId - Service ID
|
|
50
|
+
* @param {Object} body - Request body
|
|
51
|
+
* @param {Object} opts - Additional options
|
|
52
|
+
*/
|
|
53
|
+
export declare const updateService: (serviceId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
54
|
+
/**
|
|
55
|
+
* Decrypt Service
|
|
56
|
+
* @param {String} serviceId - Service ID
|
|
57
|
+
* @param {Object} body - Request body
|
|
58
|
+
* @param {Object} opts - Additional options
|
|
59
|
+
*/
|
|
60
|
+
export declare const decrypt: (serviceId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
package/lib/resources/ops.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,7 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get organisations
|
|
4
|
+
* @param {Object} query - Query parameters
|
|
5
|
+
* @param {Object} opts - Additional options
|
|
6
|
+
*/
|
|
7
|
+
export declare const getOrganisations: (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,50 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get partners
|
|
4
|
+
* @param {Object} query - Query parameters
|
|
5
|
+
* @param {Object} opts - Additional options
|
|
6
|
+
*/
|
|
7
|
+
export declare const getPartners: (query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
8
|
+
/**
|
|
9
|
+
* Get partner
|
|
10
|
+
* @param {String} partnerId - Partner ID
|
|
11
|
+
* @param {Object} opts - Additional options
|
|
12
|
+
*/
|
|
13
|
+
export declare const getPartner: (partnerId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
14
|
+
/**
|
|
15
|
+
* Update partner
|
|
16
|
+
* @param {String} partnerId - Partner ID
|
|
17
|
+
* @param {Object} body - Request body
|
|
18
|
+
* @param {Object} opts - Additional options
|
|
19
|
+
*/
|
|
20
|
+
export declare const updatePartner: (partnerId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
21
|
+
/**
|
|
22
|
+
* Update partner practice
|
|
23
|
+
* @param {String} partnerId - Partner ID
|
|
24
|
+
* @param {String} fullNameId - Practice full name
|
|
25
|
+
* @param {Object} body - Request body
|
|
26
|
+
* @param {Object} opts - Additional options
|
|
27
|
+
*/
|
|
28
|
+
export declare const updatePartnerPractice: (partnerId: string, fullNameId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
29
|
+
/**
|
|
30
|
+
* Update partner practice provider data
|
|
31
|
+
* @param {String} partnerId - Partner ID
|
|
32
|
+
* @param {String} practiceId - Practice ID
|
|
33
|
+
* @param {String} providerNumberId - Provider number
|
|
34
|
+
* @param {Object} body - Request body
|
|
35
|
+
* @param {Object} opts - Additional options
|
|
36
|
+
*/
|
|
37
|
+
export declare const updatePartnerPracticeProviderData: (partnerId: string, practiceId: string, providerNumberId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
38
|
+
/**
|
|
39
|
+
* Verify partner account
|
|
40
|
+
* @param {String} accountId - AccountId ID
|
|
41
|
+
* @param {Boolean} forceVerification - Force verification
|
|
42
|
+
* @param {Object} opts - Additional options
|
|
43
|
+
*/
|
|
44
|
+
export declare const verifyPartnerAccount: (accountId: string, forceVerification?: boolean, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
45
|
+
/**
|
|
46
|
+
* Notify partner account
|
|
47
|
+
* @param {String} accountId - AccountId ID
|
|
48
|
+
* @param {Object} opts - Additional options
|
|
49
|
+
*/
|
|
50
|
+
export declare const notifyPartnerAccount: (accountId: 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,44 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Create a business patient
|
|
4
|
+
* @param {String} businessId - Business ID
|
|
5
|
+
* @param {Object} body - Query parameters
|
|
6
|
+
* @param {Object} opts - Additional options
|
|
7
|
+
*/
|
|
8
|
+
export declare const createBusinessPatient: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
9
|
+
/**
|
|
10
|
+
* Get business patients
|
|
11
|
+
* @param {String} businessId - Business ID
|
|
12
|
+
* @param {Object} query - Query parameters
|
|
13
|
+
* @param {Object} opts - Additional options
|
|
14
|
+
*/
|
|
15
|
+
export declare const getBusinessPatients: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a business patient
|
|
18
|
+
* @param {String} businessId - Business ID
|
|
19
|
+
* @param {String} patientId - Patient ID
|
|
20
|
+
* @param {Object} opts - Additional options
|
|
21
|
+
*/
|
|
22
|
+
export declare const getBusinessPatient: (businessId: string, patientId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
23
|
+
/**
|
|
24
|
+
* Get a business patient by ref id
|
|
25
|
+
* @param {String} businessId - Business ID
|
|
26
|
+
* @param {String} refId - Ref ID
|
|
27
|
+
* @param {Object} opts - Additional options
|
|
28
|
+
*/
|
|
29
|
+
export declare const getBusinessPatientByRefId: (businessId: string, refId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
30
|
+
/**
|
|
31
|
+
* Update a business patient
|
|
32
|
+
* @param {String} businessId - Business ID
|
|
33
|
+
* @param {String} patientId - Patient ID
|
|
34
|
+
* @param {Object} body - Query parameters
|
|
35
|
+
* @param {Object} opts - Additional options
|
|
36
|
+
*/
|
|
37
|
+
export declare const updateBusinessPatient: (businessId: string, patientId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
38
|
+
/**
|
|
39
|
+
* Delete a business patient
|
|
40
|
+
* @param {String} businessId - Business ID
|
|
41
|
+
* @param {String} patientId - Patient ID
|
|
42
|
+
* @param {Object} opts - Additional options
|
|
43
|
+
*/
|
|
44
|
+
export declare const deleteBusinessPatient: (businessId: string, patientId: 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,155 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Create an account's payment method
|
|
4
|
+
* @param {String} accountId - Account ID
|
|
5
|
+
* @param {Object} opts - Additional options
|
|
6
|
+
* @returns {Object} The device data
|
|
7
|
+
*/
|
|
8
|
+
export declare const createAccountPaymentMethod: (accountId: string, nonce: string, source: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
9
|
+
/**
|
|
10
|
+
* Get a business' payment methods
|
|
11
|
+
* @param {String} businessId - Business ID
|
|
12
|
+
* @param {Object} opts - Additional options
|
|
13
|
+
* @returns {Object} The device data
|
|
14
|
+
*/
|
|
15
|
+
export declare const createBusinessPaymentMethod: (businessId: string, nonce: string, source: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
16
|
+
/**
|
|
17
|
+
* Create a business patient payment method
|
|
18
|
+
* @param {String} accountId - Account ID
|
|
19
|
+
* @param {String} patientId - Patient ID
|
|
20
|
+
* @param {Object} opts - Additional options
|
|
21
|
+
* @returns {Object} The device data
|
|
22
|
+
*/
|
|
23
|
+
export declare const createBusinessPatientPaymentMethod: (businessId: string, patientId: string, nonce: string, source: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete an account's payment method
|
|
26
|
+
* @param {String} accountId - Account ID
|
|
27
|
+
* @param {String} paymentMethodId - Account ID
|
|
28
|
+
* @param {Object} opts - Additional options
|
|
29
|
+
* @returns {Object} The device data
|
|
30
|
+
*/
|
|
31
|
+
export declare const deleteAccountPaymentMethod: (accountId: string, paymentMethodId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
32
|
+
/**
|
|
33
|
+
* Delete a business' payment method
|
|
34
|
+
* @param {String} businessId - Business ID
|
|
35
|
+
* @param {String} paymentMethodId - Payment Method ID
|
|
36
|
+
* @param {Object} opts - Additional options
|
|
37
|
+
* @returns {Object} The device data
|
|
38
|
+
*/
|
|
39
|
+
export declare const deleteBusinessPaymentMethod: (businessId: string, paymentMethodId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete a business patient payment method
|
|
42
|
+
* @param {String} businessId - Business ID
|
|
43
|
+
* @param {String} patientId - Patient ID
|
|
44
|
+
* @param {String} paymentMethodId - Payment Method ID
|
|
45
|
+
* @param {Object} opts - Additional options
|
|
46
|
+
* @returns {Object} The device data
|
|
47
|
+
*/
|
|
48
|
+
export declare const deleteBusinessPatientPaymentMethod: (businessId: string, patientId: string, paymentMethodId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
49
|
+
/**
|
|
50
|
+
* Get an account's payment methods
|
|
51
|
+
* @param {String} accountId - Account ID
|
|
52
|
+
* @param {Object} opts - Additional options
|
|
53
|
+
* @returns {Object} The device data
|
|
54
|
+
*/
|
|
55
|
+
export declare const getAccountPaymentMethods: (accountId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
56
|
+
/**
|
|
57
|
+
* Get a business' payment methods
|
|
58
|
+
* @param {String} businessId - Business ID
|
|
59
|
+
* @param {Object} opts - Additional options
|
|
60
|
+
* @returns {Object} The device data
|
|
61
|
+
*/
|
|
62
|
+
export declare const getBusinessPaymentMethods: (businessId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
63
|
+
/**
|
|
64
|
+
* Get a business patient payment methods
|
|
65
|
+
* @param {String} businessId - Business ID
|
|
66
|
+
* @param {Object} opts - Additional options
|
|
67
|
+
* @returns {Object} The payment methods data
|
|
68
|
+
*/
|
|
69
|
+
export declare const getBusinessPatientPaymentMethods: (businessId: string, patientId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
70
|
+
/**
|
|
71
|
+
* Get a business patient payment methods by ref id
|
|
72
|
+
* @param {String} businessId - Business ID
|
|
73
|
+
* @param {String} refId - Patient ref ID
|
|
74
|
+
* @param {Object} opts - Additional options
|
|
75
|
+
* @returns {Object} The payment methods data
|
|
76
|
+
*/
|
|
77
|
+
export declare const getBusinessPatientPaymentMethodsByRefId: (businessId: string, refId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
78
|
+
/**
|
|
79
|
+
* Get an account's payment method
|
|
80
|
+
* @param {String} accountId - Account ID
|
|
81
|
+
* @param {String} paymentMethodId - Account ID
|
|
82
|
+
* @param {Object} opts - Additional options
|
|
83
|
+
* @returns {Object} The device data
|
|
84
|
+
*/
|
|
85
|
+
export declare const getAccountPaymentMethod: (accountId: string, paymentMethodId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
86
|
+
/**
|
|
87
|
+
* Get a business payment method
|
|
88
|
+
* @param {String} businessId - Business ID
|
|
89
|
+
* @param {String} paymentMethodId - Payment Method ID
|
|
90
|
+
* @param {Object} opts - Additional options
|
|
91
|
+
* @returns {Object} The device data
|
|
92
|
+
*/
|
|
93
|
+
export declare const getBusinessPaymentMethod: (businessId: string, paymentMethodId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
94
|
+
/**
|
|
95
|
+
* Get a business patient payment method
|
|
96
|
+
* @param {String} businessId - Business ID
|
|
97
|
+
* @param {String} patientID - Patient ID
|
|
98
|
+
* @param {String} paymentMethodId - Payment Method ID
|
|
99
|
+
* @param {Object} opts - Additional options
|
|
100
|
+
* @returns {Object} The device data
|
|
101
|
+
*/
|
|
102
|
+
export declare const getBusinessPatientPaymentMethod: (businessId: string, patientId: string, paymentMethodId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
103
|
+
/**
|
|
104
|
+
* Get business client token
|
|
105
|
+
* @param {String} businessId - Business ID
|
|
106
|
+
* @param {String} source - Source of payment
|
|
107
|
+
* @param {Object} opts - Additional options
|
|
108
|
+
* @returns {Object} The device data
|
|
109
|
+
*/
|
|
110
|
+
export declare const getBusinessClientToken: (businessId: string, source: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
111
|
+
/**
|
|
112
|
+
* Get business sales client token
|
|
113
|
+
* @param {String} businessId - Business ID
|
|
114
|
+
* @param {Object} opts - Additional options
|
|
115
|
+
* @returns {Object} The device data
|
|
116
|
+
*/
|
|
117
|
+
export declare const getBusinessSalesClientToken: (businessId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
118
|
+
/**
|
|
119
|
+
* Get client token
|
|
120
|
+
* @param {String} source - Source of payment
|
|
121
|
+
* @param {Object} opts - Additional options
|
|
122
|
+
* @returns {Object} The device data
|
|
123
|
+
*/
|
|
124
|
+
export declare const getClientToken: (source: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
125
|
+
/**
|
|
126
|
+
* Update an account's payment method
|
|
127
|
+
* @param {String} accountId - Account ID
|
|
128
|
+
* @param {String} paymentMethodId - Account ID
|
|
129
|
+
* @param {Object} opts - Additional options
|
|
130
|
+
* @returns {Object} The device data
|
|
131
|
+
*/
|
|
132
|
+
export declare const updateAccountPaymentMethod: (accountId: string, paymentMethodId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
133
|
+
/**
|
|
134
|
+
* Update a business' payment method
|
|
135
|
+
* @param {String} businessId - Business ID
|
|
136
|
+
* @param {String} paymentMethodId - Account ID
|
|
137
|
+
* @param {Object} opts - Additional options
|
|
138
|
+
* @returns {Object} The device data
|
|
139
|
+
*/
|
|
140
|
+
export declare const updateBusinessPaymentMethod: (businessId: string, paymentMethodId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
141
|
+
/**
|
|
142
|
+
* Update a business patient payment method
|
|
143
|
+
* @param {String} businessId - Business ID
|
|
144
|
+
* @param {String} paymentMethodId - Account ID
|
|
145
|
+
* @param {Object} opts - Additional options
|
|
146
|
+
* @returns {Object} The device data
|
|
147
|
+
*/
|
|
148
|
+
export declare const updateBusinessPatientPaymentMethod: (businessId: string, patientId: string, paymentMethodId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
149
|
+
export declare const getPaymentGatewayError: (sessionResponse: Record<string, any>) => any;
|
|
150
|
+
/**
|
|
151
|
+
* Get a business nonce
|
|
152
|
+
* @param {Object} body - Request body
|
|
153
|
+
* @param {Object} opts - Additional options
|
|
154
|
+
*/
|
|
155
|
+
export declare const getNonce: ({ amount, businessId, cardNumber: _cardNumber, expiry, cvc, paymentProvider, isSales, isSelfCheckoutSession, source }: 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,43 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Get business PMS practices
|
|
4
|
+
* @param {String} businessId - Business ID
|
|
5
|
+
* @param {String} query - Query parameters
|
|
6
|
+
* @param {Object} opts - Additional options
|
|
7
|
+
*/
|
|
8
|
+
export declare const getBusinessPMSPractices: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
9
|
+
/**
|
|
10
|
+
* Get business PMS services
|
|
11
|
+
* @param {String} businessId - Business ID
|
|
12
|
+
* @param {String} query - Query parameters
|
|
13
|
+
* @param {Object} opts - Additional options
|
|
14
|
+
*/
|
|
15
|
+
export declare const getBusinessPMSServices: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get business PMS staff
|
|
18
|
+
* @param {String} businessId - Business ID
|
|
19
|
+
* @param {String} query - Query parameters
|
|
20
|
+
* @param {Object} opts - Additional options
|
|
21
|
+
*/
|
|
22
|
+
export declare const getBusinessPMSStaffMembers: (businessId: string, query?: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
23
|
+
/**
|
|
24
|
+
* Import business PMS practice
|
|
25
|
+
* @param {String} businessId - Business ID
|
|
26
|
+
* @param {String} body - Request body
|
|
27
|
+
* @param {Object} opts - Additional options
|
|
28
|
+
*/
|
|
29
|
+
export declare const importBusinessPMSPractice: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
30
|
+
/**
|
|
31
|
+
* Import business PMS service
|
|
32
|
+
* @param {String} businessId - Business ID
|
|
33
|
+
* @param {String} body - Request body
|
|
34
|
+
* @param {Object} opts - Additional options
|
|
35
|
+
*/
|
|
36
|
+
export declare const importBusinessPMSService: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
37
|
+
/**
|
|
38
|
+
* Import business PMS staff member
|
|
39
|
+
* @param {String} businessId - Business ID
|
|
40
|
+
* @param {String} body - Request body
|
|
41
|
+
* @param {Object} opts - Additional options
|
|
42
|
+
*/
|
|
43
|
+
export declare const importBusinessPMSStaffMember: (businessId: string, body: Record<string, any>, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
package/lib/resources/pms.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,20 @@
|
|
|
1
|
+
import type { MedipassRequestOpts } from '../types';
|
|
2
|
+
export declare const pathLinkPracticeProfile: (practiceProfileId: string) => string;
|
|
3
|
+
export declare const pathOrganisationPracticeProfiles: (organisationId: string) => string;
|
|
4
|
+
export declare const pathPracticeProfile: (practiceProfileId: string) => string;
|
|
5
|
+
export declare const pathUnlinkPracticeProfile: (practiceProfileId: string) => string;
|
|
6
|
+
declare type PracticeProfilesQuery = {
|
|
7
|
+
practiceId?: string;
|
|
8
|
+
unlinkedOnly?: boolean;
|
|
9
|
+
from?: string;
|
|
10
|
+
to?: string;
|
|
11
|
+
sort?: string;
|
|
12
|
+
searchText?: string;
|
|
13
|
+
page?: number;
|
|
14
|
+
limit?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const getOrganisationPracticeProfiles: (organisationId: string, query?: PracticeProfilesQuery, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
17
|
+
export declare const getPracticeProfile: (practiceProfileId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
18
|
+
export declare const linkPracticeProfile: (practiceProfileId: string, practiceId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
19
|
+
export declare const unlinkPracticeProfile: (practiceProfileId: string, opts?: MedipassRequestOpts) => Promise<Record<string, any>>;
|
|
20
|
+
export {};
|