@medipass/web-sdk 11.24.8-feature-bank-account-name-validation.1 → 11.26.1-chore-eslint-config.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/CHANGELOG.md +22 -0
- package/lib/_types/documents.js.flow +1 -1
- package/lib/_types/message-mappings.js.flow +1 -1
- package/lib/_types/products.js.flow +1 -1
- package/lib/_types/professional-categories.js.flow +1 -1
- package/lib/_types/specialties.js.flow +1 -1
- package/lib/_types/subscriptions.js.flow +1 -1
- package/lib/index.js +7 -7
- package/lib/index.js.flow +9 -9
- package/lib/{regions-ed54f163.js → regions-077cd6cc.js} +1 -1
- package/lib/resources/accounts.js +7 -7
- package/lib/resources/accounts.js.flow +2 -1
- package/lib/resources/actions.js +7 -7
- package/lib/resources/actions.js.flow +1 -1
- package/lib/resources/api-keys.js +7 -7
- package/lib/resources/api-keys.js.flow +1 -1
- package/lib/resources/applications.js +7 -7
- package/lib/resources/applications.js.flow +1 -1
- package/lib/resources/attachments.js +7 -7
- package/lib/resources/attachments.js.flow +1 -1
- package/lib/resources/auth.js +7 -7
- package/lib/resources/auth.js.flow +1 -1
- package/lib/resources/bulk-uploads.js +7 -7
- package/lib/resources/bulk-uploads.js.flow +1 -1
- package/lib/resources/business-profiles.js +7 -7
- package/lib/resources/business-profiles.js.flow +1 -1
- package/lib/resources/businesses.js +7 -7
- package/lib/resources/businesses.js.flow +1 -1
- package/lib/resources/claim-items.js +7 -7
- package/lib/resources/claim-items.js.flow +1 -1
- package/lib/resources/devices.js +7 -7
- package/lib/resources/devices.js.flow +3 -3
- package/lib/resources/doc-accounts.js +7 -7
- package/lib/resources/doc-accounts.js.flow +1 -1
- package/lib/resources/documents.js +7 -7
- package/lib/resources/documents.js.flow +6 -6
- package/lib/resources/emails.js +7 -7
- package/lib/resources/emails.js.flow +1 -1
- package/lib/resources/form-application-templates.js +7 -7
- package/lib/resources/form-application-templates.js.flow +1 -1
- package/lib/resources/form-applications.js +7 -7
- package/lib/resources/form-applications.js.flow +1 -1
- package/lib/resources/forms.js +7 -7
- package/lib/resources/forms.js.flow +2 -2
- package/lib/resources/funder-settings.js +7 -7
- package/lib/resources/funder-settings.js.flow +1 -1
- package/lib/resources/funders.js +7 -7
- package/lib/resources/funders.js.flow +1 -1
- package/lib/resources/futures.js +7 -7
- package/lib/resources/futures.js.flow +1 -1
- package/lib/resources/health-fund-accounts.js +7 -7
- package/lib/resources/health-fund-accounts.js.flow +1 -1
- package/lib/resources/health-fund-settings.js +7 -7
- package/lib/resources/health-fund-settings.js.flow +1 -1
- package/lib/resources/healthfunds.js +7 -7
- package/lib/resources/healthfunds.js.flow +1 -1
- package/lib/resources/icditems.js +7 -7
- package/lib/resources/invoice-scans.js +7 -7
- package/lib/resources/invoice-scans.js.flow +1 -1
- package/lib/resources/jhcs.js +7 -7
- package/lib/resources/jhcs.js.flow +1 -1
- package/lib/resources/kyc.js +7 -7
- package/lib/resources/kyc.js.flow +1 -1
- package/lib/resources/logs.js +7 -7
- package/lib/resources/logs.js.flow +1 -1
- package/lib/resources/members.js +7 -7
- package/lib/resources/members.js.flow +2 -2
- package/lib/resources/message-mappings.js +7 -7
- package/lib/resources/message-mappings.js.flow +2 -2
- package/lib/resources/minions.js +7 -7
- package/lib/resources/minions.js.flow +2 -2
- package/lib/resources/modalities.js +7 -7
- package/lib/resources/modalities.js.flow +1 -1
- package/lib/resources/notes.js +7 -7
- package/lib/resources/notes.js.flow +1 -1
- package/lib/resources/onboarding-applications.js +7 -7
- package/lib/resources/onboarding-applications.js.flow +1 -1
- package/lib/resources/onboarding-requests.js +7 -7
- package/lib/resources/onboarding-requests.js.flow +1 -1
- package/lib/resources/ops.js +7 -7
- package/lib/resources/ops.js.flow +2 -2
- package/lib/resources/organisations.js +7 -7
- package/lib/resources/organisations.js.flow +1 -1
- package/lib/resources/partners.js +7 -7
- package/lib/resources/partners.js.flow +2 -2
- package/lib/resources/patients.js +7 -7
- package/lib/resources/patients.js.flow +2 -2
- package/lib/resources/payments.js +7 -7
- package/lib/resources/payments.js.flow +6 -5
- package/lib/resources/pms.js +7 -7
- package/lib/resources/pms.js.flow +2 -2
- package/lib/resources/practice-profiles.js +7 -7
- package/lib/resources/practice-profiles.js.flow +1 -1
- package/lib/resources/practice-types.js +7 -7
- package/lib/resources/practice-types.js.flow +1 -1
- package/lib/resources/practices.js +7 -7
- package/lib/resources/practices.js.flow +2 -2
- package/lib/resources/products.js +7 -7
- package/lib/resources/products.js.flow +1 -1
- package/lib/resources/professional-categories.js +7 -7
- package/lib/resources/professional-categories.js.flow +5 -5
- package/lib/resources/provider-number-types.js +7 -7
- package/lib/resources/provider-number-types.js.flow +1 -1
- package/lib/resources/provider-registration-types.js +7 -7
- package/lib/resources/provider-registration-types.js.flow +1 -1
- package/lib/resources/provider-requests.js +7 -7
- package/lib/resources/provider-requests.js.flow +2 -2
- package/lib/resources/provider-types.js +7 -7
- package/lib/resources/provider-types.js.flow +1 -1
- package/lib/resources/ref-sources.js +7 -7
- package/lib/resources/ref-sources.js.flow +1 -1
- package/lib/resources/risk.js +7 -7
- package/lib/resources/risk.js.flow +2 -2
- package/lib/resources/rnas.js +7 -7
- package/lib/resources/rnas.js.flow +2 -2
- package/lib/resources/roles.js +7 -7
- package/lib/resources/roles.js.flow +1 -1
- package/lib/resources/self-checkout-sessions.js +7 -7
- package/lib/resources/self-checkout-sessions.js.flow +3 -2
- package/lib/resources/services.js +7 -7
- package/lib/resources/services.js.flow +2 -2
- package/lib/resources/settlements.js +7 -7
- package/lib/resources/settlements.js.flow +1 -1
- package/lib/resources/sign-up.js +7 -7
- package/lib/resources/sign-up.js.flow +1 -1
- package/lib/resources/specialties.js +7 -7
- package/lib/resources/specialties.js.flow +1 -1
- package/lib/resources/staff-profiles.js +7 -7
- package/lib/resources/staff-profiles.js.flow +1 -1
- package/lib/resources/staff.js +7 -7
- package/lib/resources/staff.js.flow +2 -2
- package/lib/resources/statistics.js +7 -7
- package/lib/resources/statistics.js.flow +2 -2
- package/lib/resources/subscriptions.js +7 -7
- package/lib/resources/subscriptions.js.flow +5 -5
- package/lib/resources/terminals.js +7 -7
- package/lib/resources/terminals.js.flow +1 -1
- package/lib/resources/transaction-export.js +7 -7
- package/lib/resources/transaction-export.js.flow +2 -2
- package/lib/resources/transactions.js +11 -7
- package/lib/resources/transactions.js.flow +66 -2
- package/lib/resources/triggers.js +7 -7
- package/lib/resources/triggers.js.flow +2 -2
- package/lib/resources/vendors.js +7 -7
- package/lib/resources/vendors.js.flow +1 -1
- package/lib/resources/verify.js +7 -7
- package/lib/resources/verify.js.flow +1 -1
- package/lib/resources/workers.js +7 -7
- package/lib/resources/workers.js.flow +1 -1
- package/lib/resources/workflow-exceptions.js +7 -7
- package/lib/resources/workflow-exceptions.js.flow +1 -1
- package/lib/services/aws.js +7 -7
- package/lib/services/aws.js.flow +4 -4
- package/lib/services/storage.js +2 -2
- package/lib/services/storage.js.flow +2 -1
- package/lib/services/version.js +7 -7
- package/lib/{staff-70f02503.js → staff-dbbdcfa2.js} +887 -718
- package/lib/{storage-16fd26f8.js → storage-7766668f.js} +1 -1
- package/lib/utils/application.js +7 -7
- package/lib/utils/does-param-exist.js.flow +2 -1
- package/lib/utils/professions.js +7 -7
- package/lib/utils/professions.js.flow +1 -1
- package/lib/utils/regions.js +3 -3
- package/lib/utils/regions.js.flow +1 -0
- package/lib/utils/request.js +7 -7
- package/lib/utils/request.js.flow +3 -2
- package/lib/utils/staff.js +7 -7
- package/package.json +3 -3
|
@@ -16,21 +16,21 @@ var paramError = require('./utils/param-error.js');
|
|
|
16
16
|
var doesParamExist = require('./utils/does-param-exist.js');
|
|
17
17
|
var sentry = require('@medipass/utils/sentry');
|
|
18
18
|
var getAxiosError = require('./utils/get-axios-error.js');
|
|
19
|
-
var storage = require('./storage-
|
|
20
|
-
var _omitBy = _interopDefault(require('lodash/omitBy'));
|
|
19
|
+
var storage = require('./storage-7766668f.js');
|
|
21
20
|
var _isEmpty = _interopDefault(require('lodash/isEmpty'));
|
|
21
|
+
var _omitBy = _interopDefault(require('lodash/omitBy'));
|
|
22
22
|
var platform = _interopDefault(require('platform'));
|
|
23
23
|
var constants = require('@medipass/utils/constants');
|
|
24
|
+
var braintreeApplePay = _interopDefault(require('braintree-web/apple-pay'));
|
|
24
25
|
var braintreeClient = _interopDefault(require('braintree-web/client'));
|
|
25
26
|
var braintreeGooglePayment = _interopDefault(require('braintree-web/google-payment'));
|
|
26
|
-
var braintreeApplePay = _interopDefault(require('braintree-web/apple-pay'));
|
|
27
27
|
var pify = _interopDefault(require('@medipass/pify'));
|
|
28
28
|
var env = _interopDefault(require('@medipass/utils/get-env'));
|
|
29
29
|
var funders$1 = require('@medipass/utils/funders');
|
|
30
30
|
var compareVersions = _interopDefault(require('compare-versions'));
|
|
31
31
|
var index = require('./utils/base-urls/index.js');
|
|
32
|
-
var regions = require('./regions-ed54f163.js');
|
|
33
32
|
var _flatten = _interopDefault(require('lodash/flatten'));
|
|
33
|
+
var regions = require('./regions-077cd6cc.js');
|
|
34
34
|
|
|
35
35
|
var staffUtils = /*#__PURE__*/Object.freeze({
|
|
36
36
|
__proto__: null,
|
|
@@ -2216,6 +2216,124 @@ var apiKeys = /*#__PURE__*/Object.freeze({
|
|
|
2216
2216
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2217
2217
|
|
|
2218
2218
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2219
|
+
var PATH__APPLICATIONS = '/applications';
|
|
2220
|
+
var PATH__SELF_APPLICATION = '/applications/me';
|
|
2221
|
+
|
|
2222
|
+
var pathApplication = function pathApplication(applicationId) {
|
|
2223
|
+
return "/applications/" + applicationId;
|
|
2224
|
+
};
|
|
2225
|
+
/**
|
|
2226
|
+
* Get self application
|
|
2227
|
+
* @param {Object} opts - Additional options
|
|
2228
|
+
*/
|
|
2229
|
+
|
|
2230
|
+
|
|
2231
|
+
var getSelfApplication = function getSelfApplication(opts) {
|
|
2232
|
+
if (opts === void 0) {
|
|
2233
|
+
opts = {};
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
return request(_objectSpread$4({}, opts, {
|
|
2237
|
+
path: PATH__SELF_APPLICATION
|
|
2238
|
+
}), {
|
|
2239
|
+
method: 'get'
|
|
2240
|
+
});
|
|
2241
|
+
};
|
|
2242
|
+
/**
|
|
2243
|
+
* Get applications
|
|
2244
|
+
* @param {Object} query - Query parameters
|
|
2245
|
+
* @param {Object} opts - Additional options
|
|
2246
|
+
*/
|
|
2247
|
+
|
|
2248
|
+
var getApplications = function getApplications(query, opts) {
|
|
2249
|
+
if (query === void 0) {
|
|
2250
|
+
query = {};
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
if (opts === void 0) {
|
|
2254
|
+
opts = {};
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
return request(_objectSpread$4({}, opts, {
|
|
2258
|
+
path: PATH__APPLICATIONS
|
|
2259
|
+
}), {
|
|
2260
|
+
method: 'get',
|
|
2261
|
+
params: query
|
|
2262
|
+
});
|
|
2263
|
+
};
|
|
2264
|
+
/**
|
|
2265
|
+
* Get application
|
|
2266
|
+
* @param {String} applicationId - Application ID
|
|
2267
|
+
* @param {Object} opts - Additional options
|
|
2268
|
+
*/
|
|
2269
|
+
|
|
2270
|
+
var getApplication = function getApplication(applicationId, opts) {
|
|
2271
|
+
if (opts === void 0) {
|
|
2272
|
+
opts = {};
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
doesParamExist.default({
|
|
2276
|
+
applicationId: applicationId
|
|
2277
|
+
}, opts.hyperMediaEndpoint);
|
|
2278
|
+
return request(_objectSpread$4({}, opts, {
|
|
2279
|
+
path: pathApplication(applicationId)
|
|
2280
|
+
}), {
|
|
2281
|
+
method: 'get'
|
|
2282
|
+
});
|
|
2283
|
+
};
|
|
2284
|
+
/**
|
|
2285
|
+
* Update application
|
|
2286
|
+
* @param {String} applicationId - Application ID
|
|
2287
|
+
* @param {Object} body - Request body
|
|
2288
|
+
* @param {Object} opts - Additional options
|
|
2289
|
+
*/
|
|
2290
|
+
|
|
2291
|
+
var updateApplication = function updateApplication(applicationId, body, opts) {
|
|
2292
|
+
if (opts === void 0) {
|
|
2293
|
+
opts = {};
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
doesParamExist.default({
|
|
2297
|
+
applicationId: applicationId
|
|
2298
|
+
}, opts.hyperMediaEndpoint);
|
|
2299
|
+
return request(_objectSpread$4({}, opts, {
|
|
2300
|
+
path: pathApplication(applicationId)
|
|
2301
|
+
}), {
|
|
2302
|
+
method: 'put',
|
|
2303
|
+
data: body
|
|
2304
|
+
});
|
|
2305
|
+
};
|
|
2306
|
+
/**
|
|
2307
|
+
* Create application
|
|
2308
|
+
* @param {Object} body - Request body
|
|
2309
|
+
* @param {Object} opts - Additional options
|
|
2310
|
+
*/
|
|
2311
|
+
|
|
2312
|
+
var createApplication = function createApplication(body, opts) {
|
|
2313
|
+
if (opts === void 0) {
|
|
2314
|
+
opts = {};
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
return request(_objectSpread$4({}, opts, {
|
|
2318
|
+
path: PATH__APPLICATIONS
|
|
2319
|
+
}), {
|
|
2320
|
+
method: 'post',
|
|
2321
|
+
data: body
|
|
2322
|
+
});
|
|
2323
|
+
};
|
|
2324
|
+
|
|
2325
|
+
var applications = /*#__PURE__*/Object.freeze({
|
|
2326
|
+
__proto__: null,
|
|
2327
|
+
getSelfApplication: getSelfApplication,
|
|
2328
|
+
getApplications: getApplications,
|
|
2329
|
+
getApplication: getApplication,
|
|
2330
|
+
updateApplication: updateApplication,
|
|
2331
|
+
createApplication: createApplication
|
|
2332
|
+
});
|
|
2333
|
+
|
|
2334
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2335
|
+
|
|
2336
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2219
2337
|
var pathGetClaimAttachmentUrl = function pathGetClaimAttachmentUrl(businessId, practiceId, staffId) {
|
|
2220
2338
|
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/attachments/uploadurl";
|
|
2221
2339
|
};
|
|
@@ -2244,7 +2362,7 @@ var getClaimAttachmentUrl = function getClaimAttachmentUrl(businessId, practiceI
|
|
|
2244
2362
|
practiceId: practiceId,
|
|
2245
2363
|
staffId: staffId
|
|
2246
2364
|
}, opts.hyperMediaEndpoint);
|
|
2247
|
-
return request(_objectSpread$
|
|
2365
|
+
return request(_objectSpread$5({}, opts, {
|
|
2248
2366
|
path: pathGetClaimAttachmentUrl(businessId, practiceId, staffId)
|
|
2249
2367
|
}), {
|
|
2250
2368
|
method: 'get',
|
|
@@ -2270,7 +2388,7 @@ var scanClaimFile = function scanClaimFile(businessId, practiceId, staffId, body
|
|
|
2270
2388
|
practiceId: practiceId,
|
|
2271
2389
|
staffId: staffId
|
|
2272
2390
|
}, opts.hyperMediaEndpoint);
|
|
2273
|
-
return request(_objectSpread$
|
|
2391
|
+
return request(_objectSpread$5({}, opts, {
|
|
2274
2392
|
path: pathScanClaimFile(businessId, practiceId, staffId)
|
|
2275
2393
|
}), {
|
|
2276
2394
|
method: 'post',
|
|
@@ -2298,7 +2416,7 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
|
|
|
2298
2416
|
staffId: staffId,
|
|
2299
2417
|
s3SignedUrlId: s3SignedUrlId
|
|
2300
2418
|
}, opts.hyperMediaEndpoint);
|
|
2301
|
-
return request(_objectSpread$
|
|
2419
|
+
return request(_objectSpread$5({}, opts, {
|
|
2302
2420
|
path: pathGetS3SignedUrl(businessId, practiceId, staffId, s3SignedUrlId)
|
|
2303
2421
|
}), {
|
|
2304
2422
|
method: 'get',
|
|
@@ -2316,9 +2434,9 @@ var attachments = /*#__PURE__*/Object.freeze({
|
|
|
2316
2434
|
getS3SignedUrl: getS3SignedUrl
|
|
2317
2435
|
});
|
|
2318
2436
|
|
|
2319
|
-
function ownKeys$
|
|
2437
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2320
2438
|
|
|
2321
|
-
function _objectSpread$
|
|
2439
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2322
2440
|
var PATH__MEMBERS = '/members';
|
|
2323
2441
|
var PATH__DISCOVER_MEMBERS = '/discovery/members';
|
|
2324
2442
|
|
|
@@ -2362,7 +2480,7 @@ var checkDupe = /*#__PURE__*/function () {
|
|
|
2362
2480
|
opts = {};
|
|
2363
2481
|
}
|
|
2364
2482
|
|
|
2365
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
2483
|
+
return _context.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2366
2484
|
path: PATH__MEMBERS + "/checkdupe"
|
|
2367
2485
|
}), {
|
|
2368
2486
|
method: 'post',
|
|
@@ -2398,7 +2516,7 @@ var createAccountMember = /*#__PURE__*/function () {
|
|
|
2398
2516
|
opts = {};
|
|
2399
2517
|
}
|
|
2400
2518
|
|
|
2401
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
2519
|
+
return _context2.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2402
2520
|
path: pathAccountMembers(accountId)
|
|
2403
2521
|
}), {
|
|
2404
2522
|
method: 'post',
|
|
@@ -2437,7 +2555,7 @@ var deleteMember = /*#__PURE__*/function () {
|
|
|
2437
2555
|
doesParamExist.default({
|
|
2438
2556
|
memberId: memberId
|
|
2439
2557
|
}, opts.hyperMediaEndpoint);
|
|
2440
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
2558
|
+
return _context3.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2441
2559
|
path: pathMember(memberId)
|
|
2442
2560
|
}), {
|
|
2443
2561
|
method: 'delete'
|
|
@@ -2471,7 +2589,7 @@ var discoverMember = /*#__PURE__*/function () {
|
|
|
2471
2589
|
opts = {};
|
|
2472
2590
|
}
|
|
2473
2591
|
|
|
2474
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
2592
|
+
return _context4.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2475
2593
|
path: PATH__DISCOVER_MEMBERS
|
|
2476
2594
|
}), {
|
|
2477
2595
|
method: 'get',
|
|
@@ -2510,7 +2628,7 @@ var inviteAnyone = /*#__PURE__*/function () {
|
|
|
2510
2628
|
doesParamExist.default({
|
|
2511
2629
|
businessId: businessId
|
|
2512
2630
|
}, opts.hyperMediaEndpoint);
|
|
2513
|
-
return _context5.abrupt("return", request(_objectSpread$
|
|
2631
|
+
return _context5.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2514
2632
|
path: pathBusinessMembers(businessId) + "/invites"
|
|
2515
2633
|
}), {
|
|
2516
2634
|
method: 'post',
|
|
@@ -2548,7 +2666,7 @@ var inviteMember = /*#__PURE__*/function () {
|
|
|
2548
2666
|
doesParamExist.default({
|
|
2549
2667
|
memberId: memberId
|
|
2550
2668
|
}, opts.hyperMediaEndpoint);
|
|
2551
|
-
return _context6.abrupt("return", request(_objectSpread$
|
|
2669
|
+
return _context6.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2552
2670
|
path: pathMember(memberId) + "/invites"
|
|
2553
2671
|
}), {
|
|
2554
2672
|
method: 'post'
|
|
@@ -2587,7 +2705,7 @@ var getAccountMembers = /*#__PURE__*/function () {
|
|
|
2587
2705
|
opts = {};
|
|
2588
2706
|
}
|
|
2589
2707
|
|
|
2590
|
-
return _context7.abrupt("return", request(_objectSpread$
|
|
2708
|
+
return _context7.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2591
2709
|
path: pathAccountMembers(accountId)
|
|
2592
2710
|
}), {
|
|
2593
2711
|
method: 'get',
|
|
@@ -2626,7 +2744,7 @@ var getMembersForHealthFund = /*#__PURE__*/function () {
|
|
|
2626
2744
|
opts = {};
|
|
2627
2745
|
}
|
|
2628
2746
|
|
|
2629
|
-
return _context8.abrupt("return", request(_objectSpread$
|
|
2747
|
+
return _context8.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2630
2748
|
path: pathMembersForHealthFund(healthFundId)
|
|
2631
2749
|
}), {
|
|
2632
2750
|
method: 'get',
|
|
@@ -2662,7 +2780,7 @@ var getHealthFundMemberByMemberId = /*#__PURE__*/function () {
|
|
|
2662
2780
|
opts = {};
|
|
2663
2781
|
}
|
|
2664
2782
|
|
|
2665
|
-
return _context9.abrupt("return", request(_objectSpread$
|
|
2783
|
+
return _context9.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2666
2784
|
path: pathHealthFundMemberByMemberId(healthFundId, memberId)
|
|
2667
2785
|
}), {
|
|
2668
2786
|
method: 'get'
|
|
@@ -2704,7 +2822,7 @@ var getBusinessMembers = /*#__PURE__*/function () {
|
|
|
2704
2822
|
doesParamExist.default({
|
|
2705
2823
|
businessId: businessId
|
|
2706
2824
|
}, opts.hyperMediaEndpoint);
|
|
2707
|
-
return _context10.abrupt("return", request(_objectSpread$
|
|
2825
|
+
return _context10.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2708
2826
|
path: pathBusinessMembers(businessId)
|
|
2709
2827
|
}), {
|
|
2710
2828
|
method: 'get',
|
|
@@ -2743,7 +2861,7 @@ var getBusinessMember = /*#__PURE__*/function () {
|
|
|
2743
2861
|
doesParamExist.default({
|
|
2744
2862
|
businessId: businessId
|
|
2745
2863
|
}, opts.hyperMediaEndpoint);
|
|
2746
|
-
return _context11.abrupt("return", request(_objectSpread$
|
|
2864
|
+
return _context11.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2747
2865
|
path: pathBusinessMember(businessId, memberId)
|
|
2748
2866
|
}), {
|
|
2749
2867
|
method: 'get'
|
|
@@ -2780,7 +2898,7 @@ var getMembers = /*#__PURE__*/function () {
|
|
|
2780
2898
|
opts = {};
|
|
2781
2899
|
}
|
|
2782
2900
|
|
|
2783
|
-
return _context12.abrupt("return", request(_objectSpread$
|
|
2901
|
+
return _context12.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
2784
2902
|
path: PATH__MEMBERS
|
|
2785
2903
|
}), {
|
|
2786
2904
|
method: 'get',
|
|
@@ -2820,7 +2938,7 @@ var getMember = /*#__PURE__*/function () {
|
|
|
2820
2938
|
memberId: memberId
|
|
2821
2939
|
}, opts.hyperMediaEndpoint);
|
|
2822
2940
|
_context13.next = 4;
|
|
2823
|
-
return request(_objectSpread$
|
|
2941
|
+
return request(_objectSpread$6({}, opts, {
|
|
2824
2942
|
path: pathMember(memberId)
|
|
2825
2943
|
}), {
|
|
2826
2944
|
method: 'get'
|
|
@@ -2869,7 +2987,7 @@ var updateMember = /*#__PURE__*/function () {
|
|
|
2869
2987
|
memberId: memberId
|
|
2870
2988
|
}, opts.hyperMediaEndpoint);
|
|
2871
2989
|
_context14.next = 4;
|
|
2872
|
-
return request(_objectSpread$
|
|
2990
|
+
return request(_objectSpread$6({}, opts, {
|
|
2873
2991
|
path: pathMember(memberId)
|
|
2874
2992
|
}), {
|
|
2875
2993
|
method: 'put',
|
|
@@ -2916,9 +3034,9 @@ var members = /*#__PURE__*/Object.freeze({
|
|
|
2916
3034
|
updateMember: updateMember
|
|
2917
3035
|
});
|
|
2918
3036
|
|
|
2919
|
-
function ownKeys$
|
|
3037
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2920
3038
|
|
|
2921
|
-
function _objectSpread$
|
|
3039
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2922
3040
|
var PATH__AUTH = '/auth';
|
|
2923
3041
|
var PATH__OTK = '/otk';
|
|
2924
3042
|
var PATH__AUTH_TOKEN = '/auth/token';
|
|
@@ -2960,7 +3078,7 @@ var setupAccountResources = /*#__PURE__*/function () {
|
|
|
2960
3078
|
case 6:
|
|
2961
3079
|
member = _context.sent;
|
|
2962
3080
|
sdk.setMember(member);
|
|
2963
|
-
return _context.abrupt("return", _objectSpread$
|
|
3081
|
+
return _context.abrupt("return", _objectSpread$7({}, account, {
|
|
2964
3082
|
_member: member
|
|
2965
3083
|
}));
|
|
2966
3084
|
|
|
@@ -3005,7 +3123,7 @@ var login = /*#__PURE__*/function () {
|
|
|
3005
3123
|
};
|
|
3006
3124
|
}
|
|
3007
3125
|
|
|
3008
|
-
data = _objectSpread$
|
|
3126
|
+
data = _objectSpread$7({
|
|
3009
3127
|
email: email
|
|
3010
3128
|
}, body);
|
|
3011
3129
|
|
|
@@ -3015,7 +3133,7 @@ var login = /*#__PURE__*/function () {
|
|
|
3015
3133
|
|
|
3016
3134
|
|
|
3017
3135
|
_context2.next = 6;
|
|
3018
|
-
return request(_objectSpread$
|
|
3136
|
+
return request(_objectSpread$7({}, opts, {
|
|
3019
3137
|
path: PATH__AUTH,
|
|
3020
3138
|
getFullResponse: true
|
|
3021
3139
|
}), {
|
|
@@ -3119,7 +3237,7 @@ var impersonate = /*#__PURE__*/function () {
|
|
|
3119
3237
|
doesParamExist.default({
|
|
3120
3238
|
accountId: accountId
|
|
3121
3239
|
}, opts.hyperMediaEndpoint);
|
|
3122
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
3240
|
+
return _context4.abrupt("return", request(_objectSpread$7({}, opts, {
|
|
3123
3241
|
getFullResponse: true,
|
|
3124
3242
|
path: pathImpersonateAccount(accountId)
|
|
3125
3243
|
}), {
|
|
@@ -3151,7 +3269,7 @@ var logout = /*#__PURE__*/function () {
|
|
|
3151
3269
|
switch (_context5.prev = _context5.next) {
|
|
3152
3270
|
case 0:
|
|
3153
3271
|
_context5.next = 2;
|
|
3154
|
-
return request(_objectSpread$
|
|
3272
|
+
return request(_objectSpread$7({}, opts, {
|
|
3155
3273
|
getFullResponse: true,
|
|
3156
3274
|
path: PATH__AUTH
|
|
3157
3275
|
}), {
|
|
@@ -3189,12 +3307,12 @@ var requestOtk = /*#__PURE__*/function () {
|
|
|
3189
3307
|
while (1) {
|
|
3190
3308
|
switch (_context6.prev = _context6.next) {
|
|
3191
3309
|
case 0:
|
|
3192
|
-
body = _omitBy(_objectSpread$
|
|
3310
|
+
body = _omitBy(_objectSpread$7({
|
|
3193
3311
|
email: email,
|
|
3194
3312
|
accountId: accountId
|
|
3195
3313
|
}, requestBody), _isEmpty);
|
|
3196
3314
|
_context6.next = 3;
|
|
3197
|
-
return request(_objectSpread$
|
|
3315
|
+
return request(_objectSpread$7({}, opts, {
|
|
3198
3316
|
getFullResponse: true,
|
|
3199
3317
|
path: PATH__OTK
|
|
3200
3318
|
}), {
|
|
@@ -3239,7 +3357,7 @@ var generateAuthy = /*#__PURE__*/function () {
|
|
|
3239
3357
|
accountId: accountId
|
|
3240
3358
|
}, opts.hyperMediaEndpoint);
|
|
3241
3359
|
_context7.next = 4;
|
|
3242
|
-
return request(_objectSpread$
|
|
3360
|
+
return request(_objectSpread$7({}, opts, {
|
|
3243
3361
|
path: pathAuthy(accountId),
|
|
3244
3362
|
getFullResponse: true
|
|
3245
3363
|
}), {
|
|
@@ -3283,7 +3401,7 @@ var removeAuthy = /*#__PURE__*/function () {
|
|
|
3283
3401
|
accountId: accountId
|
|
3284
3402
|
}, opts.hyperMediaEndpoint);
|
|
3285
3403
|
_context8.next = 4;
|
|
3286
|
-
return request(_objectSpread$
|
|
3404
|
+
return request(_objectSpread$7({}, opts, {
|
|
3287
3405
|
path: pathAuthy(accountId),
|
|
3288
3406
|
getFullResponse: true
|
|
3289
3407
|
}), {
|
|
@@ -3328,7 +3446,7 @@ var verifyAuthy = /*#__PURE__*/function () {
|
|
|
3328
3446
|
accountId: accountId
|
|
3329
3447
|
}, opts.hyperMediaEndpoint);
|
|
3330
3448
|
_context9.next = 4;
|
|
3331
|
-
return request(_objectSpread$
|
|
3449
|
+
return request(_objectSpread$7({}, opts, {
|
|
3332
3450
|
path: pathAuthyVerify(accountId),
|
|
3333
3451
|
getFullResponse: true
|
|
3334
3452
|
}), {
|
|
@@ -3377,7 +3495,7 @@ var createShortLivedToken = /*#__PURE__*/function () {
|
|
|
3377
3495
|
}, opts.hyperMediaEndpoint);
|
|
3378
3496
|
sdk.setToken("Bearer " + apiKey);
|
|
3379
3497
|
_context10.next = 5;
|
|
3380
|
-
return request(_objectSpread$
|
|
3498
|
+
return request(_objectSpread$7({}, opts, {
|
|
3381
3499
|
path: PATH__AUTH_TOKEN
|
|
3382
3500
|
}), {
|
|
3383
3501
|
method: 'post',
|
|
@@ -3414,239 +3532,121 @@ var auth = /*#__PURE__*/Object.freeze({
|
|
|
3414
3532
|
createShortLivedToken: createShortLivedToken
|
|
3415
3533
|
});
|
|
3416
3534
|
|
|
3417
|
-
function ownKeys$
|
|
3418
|
-
|
|
3419
|
-
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3420
|
-
var PATH__APPLICATIONS = '/applications';
|
|
3421
|
-
var PATH__SELF_APPLICATION = '/applications/me';
|
|
3535
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3422
3536
|
|
|
3423
|
-
var
|
|
3424
|
-
|
|
3537
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3538
|
+
var pathBusinessBulkUploads = function pathBusinessBulkUploads(businessId) {
|
|
3539
|
+
return "/businesses/" + businessId + "/bulkuploads";
|
|
3540
|
+
};
|
|
3541
|
+
var pathBusinessBulkUpload = function pathBusinessBulkUpload(businessId, bulkUploadId) {
|
|
3542
|
+
return "/businesses/" + businessId + "/bulkuploads/" + bulkUploadId;
|
|
3543
|
+
};
|
|
3544
|
+
var pathBusinessBulkUploadUrl = function pathBusinessBulkUploadUrl(businessId) {
|
|
3545
|
+
return "/businesses/" + businessId + "/bulkuploads/uploadurl";
|
|
3425
3546
|
};
|
|
3426
3547
|
/**
|
|
3427
|
-
*
|
|
3548
|
+
* Create a bulk upload from file
|
|
3549
|
+
* @param {string} businessId - Business ID
|
|
3550
|
+
* @param {Object} body - Request body
|
|
3428
3551
|
* @param {Object} opts - Additional options
|
|
3429
3552
|
*/
|
|
3430
3553
|
|
|
3431
|
-
|
|
3432
|
-
var getSelfApplication = function getSelfApplication(opts) {
|
|
3554
|
+
var createBulkUpload = function createBulkUpload(businessId, body, opts) {
|
|
3433
3555
|
if (opts === void 0) {
|
|
3434
3556
|
opts = {};
|
|
3435
3557
|
}
|
|
3436
3558
|
|
|
3437
|
-
|
|
3438
|
-
|
|
3559
|
+
doesParamExist.default({
|
|
3560
|
+
businessId: businessId
|
|
3561
|
+
});
|
|
3562
|
+
return request(_objectSpread$8({}, opts, {
|
|
3563
|
+
path: pathBusinessBulkUploads(businessId)
|
|
3439
3564
|
}), {
|
|
3440
|
-
method: '
|
|
3565
|
+
method: 'post',
|
|
3566
|
+
data: body
|
|
3441
3567
|
});
|
|
3442
3568
|
};
|
|
3443
3569
|
/**
|
|
3444
|
-
* Get
|
|
3445
|
-
* @param {
|
|
3570
|
+
* Get a bulk upload
|
|
3571
|
+
* @param {string} businessId - Business ID
|
|
3572
|
+
* @param {string} bulkUploadId - Bulk upload ID
|
|
3573
|
+
* @param {Object} body - Request body
|
|
3446
3574
|
* @param {Object} opts - Additional options
|
|
3447
3575
|
*/
|
|
3448
3576
|
|
|
3449
|
-
var
|
|
3450
|
-
if (query === void 0) {
|
|
3451
|
-
query = {};
|
|
3452
|
-
}
|
|
3453
|
-
|
|
3577
|
+
var getBulkUpload = function getBulkUpload(businessId, bulkUploadId, opts) {
|
|
3454
3578
|
if (opts === void 0) {
|
|
3455
3579
|
opts = {};
|
|
3456
3580
|
}
|
|
3457
3581
|
|
|
3458
|
-
|
|
3459
|
-
|
|
3582
|
+
doesParamExist.default({
|
|
3583
|
+
businessId: businessId,
|
|
3584
|
+
bulkUploadId: bulkUploadId
|
|
3585
|
+
});
|
|
3586
|
+
return request(_objectSpread$8({}, opts, {
|
|
3587
|
+
path: pathBusinessBulkUpload(businessId, bulkUploadId)
|
|
3460
3588
|
}), {
|
|
3461
|
-
method: 'get'
|
|
3462
|
-
params: query
|
|
3589
|
+
method: 'get'
|
|
3463
3590
|
});
|
|
3464
3591
|
};
|
|
3465
3592
|
/**
|
|
3466
|
-
* Get
|
|
3467
|
-
* @param {
|
|
3593
|
+
* Get a bulk upload url
|
|
3594
|
+
* @param {string} businessId - Business ID
|
|
3595
|
+
* @param {Object} query - Query params
|
|
3468
3596
|
* @param {Object} opts - Additional options
|
|
3469
3597
|
*/
|
|
3470
3598
|
|
|
3471
|
-
var
|
|
3599
|
+
var getBulkUploadUrl = function getBulkUploadUrl(businessId, query, opts) {
|
|
3472
3600
|
if (opts === void 0) {
|
|
3473
3601
|
opts = {};
|
|
3474
3602
|
}
|
|
3475
3603
|
|
|
3476
3604
|
doesParamExist.default({
|
|
3477
|
-
|
|
3478
|
-
}
|
|
3479
|
-
return request(_objectSpread$
|
|
3480
|
-
path:
|
|
3605
|
+
businessId: businessId
|
|
3606
|
+
});
|
|
3607
|
+
return request(_objectSpread$8({}, opts, {
|
|
3608
|
+
path: pathBusinessBulkUploadUrl(businessId)
|
|
3481
3609
|
}), {
|
|
3482
|
-
method: 'get'
|
|
3610
|
+
method: 'get',
|
|
3611
|
+
params: query
|
|
3483
3612
|
});
|
|
3484
3613
|
};
|
|
3485
|
-
/**
|
|
3486
|
-
* Update application
|
|
3487
|
-
* @param {String} applicationId - Application ID
|
|
3488
|
-
* @param {Object} body - Request body
|
|
3489
|
-
* @param {Object} opts - Additional options
|
|
3490
|
-
*/
|
|
3491
3614
|
|
|
3492
|
-
var
|
|
3615
|
+
var bulkUploads = /*#__PURE__*/Object.freeze({
|
|
3616
|
+
__proto__: null,
|
|
3617
|
+
pathBusinessBulkUploads: pathBusinessBulkUploads,
|
|
3618
|
+
pathBusinessBulkUpload: pathBusinessBulkUpload,
|
|
3619
|
+
pathBusinessBulkUploadUrl: pathBusinessBulkUploadUrl,
|
|
3620
|
+
createBulkUpload: createBulkUpload,
|
|
3621
|
+
getBulkUpload: getBulkUpload,
|
|
3622
|
+
getBulkUploadUrl: getBulkUploadUrl
|
|
3623
|
+
});
|
|
3624
|
+
|
|
3625
|
+
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3626
|
+
|
|
3627
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3628
|
+
var pathLinkBusinessProfile = function pathLinkBusinessProfile(businessProfileId) {
|
|
3629
|
+
return "/businessprofiles/" + businessProfileId + "/link";
|
|
3630
|
+
};
|
|
3631
|
+
var pathUnlinkBusinessProfile = function pathUnlinkBusinessProfile(businessProfileId) {
|
|
3632
|
+
return "/businessprofiles/" + businessProfileId + "/unlink";
|
|
3633
|
+
};
|
|
3634
|
+
var pathOrganisationBusinessProfiles = function pathOrganisationBusinessProfiles(organisationId) {
|
|
3635
|
+
return "/organisations/" + organisationId + "/businessprofiles";
|
|
3636
|
+
};
|
|
3637
|
+
var getOrganisationBusinessProfiles = function getOrganisationBusinessProfiles(organisationId, query, opts) {
|
|
3493
3638
|
if (opts === void 0) {
|
|
3494
3639
|
opts = {};
|
|
3495
3640
|
}
|
|
3496
3641
|
|
|
3497
3642
|
doesParamExist.default({
|
|
3498
|
-
|
|
3643
|
+
organisationId: organisationId
|
|
3499
3644
|
}, opts.hyperMediaEndpoint);
|
|
3500
|
-
return request(_objectSpread$
|
|
3501
|
-
path:
|
|
3645
|
+
return request(_objectSpread$9({}, opts, {
|
|
3646
|
+
path: pathOrganisationBusinessProfiles(organisationId)
|
|
3502
3647
|
}), {
|
|
3503
|
-
method: '
|
|
3504
|
-
|
|
3505
|
-
});
|
|
3506
|
-
};
|
|
3507
|
-
/**
|
|
3508
|
-
* Create application
|
|
3509
|
-
* @param {Object} body - Request body
|
|
3510
|
-
* @param {Object} opts - Additional options
|
|
3511
|
-
*/
|
|
3512
|
-
|
|
3513
|
-
var createApplication = function createApplication(body, opts) {
|
|
3514
|
-
if (opts === void 0) {
|
|
3515
|
-
opts = {};
|
|
3516
|
-
}
|
|
3517
|
-
|
|
3518
|
-
return request(_objectSpread$7({}, opts, {
|
|
3519
|
-
path: PATH__APPLICATIONS
|
|
3520
|
-
}), {
|
|
3521
|
-
method: 'post',
|
|
3522
|
-
data: body
|
|
3523
|
-
});
|
|
3524
|
-
};
|
|
3525
|
-
|
|
3526
|
-
var applications = /*#__PURE__*/Object.freeze({
|
|
3527
|
-
__proto__: null,
|
|
3528
|
-
getSelfApplication: getSelfApplication,
|
|
3529
|
-
getApplications: getApplications,
|
|
3530
|
-
getApplication: getApplication,
|
|
3531
|
-
updateApplication: updateApplication,
|
|
3532
|
-
createApplication: createApplication
|
|
3533
|
-
});
|
|
3534
|
-
|
|
3535
|
-
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3536
|
-
|
|
3537
|
-
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3538
|
-
var pathBusinessBulkUploads = function pathBusinessBulkUploads(businessId) {
|
|
3539
|
-
return "/businesses/" + businessId + "/bulkuploads";
|
|
3540
|
-
};
|
|
3541
|
-
var pathBusinessBulkUpload = function pathBusinessBulkUpload(businessId, bulkUploadId) {
|
|
3542
|
-
return "/businesses/" + businessId + "/bulkuploads/" + bulkUploadId;
|
|
3543
|
-
};
|
|
3544
|
-
var pathBusinessBulkUploadUrl = function pathBusinessBulkUploadUrl(businessId) {
|
|
3545
|
-
return "/businesses/" + businessId + "/bulkuploads/uploadurl";
|
|
3546
|
-
};
|
|
3547
|
-
/**
|
|
3548
|
-
* Create a bulk upload from file
|
|
3549
|
-
* @param {string} businessId - Business ID
|
|
3550
|
-
* @param {Object} body - Request body
|
|
3551
|
-
* @param {Object} opts - Additional options
|
|
3552
|
-
*/
|
|
3553
|
-
|
|
3554
|
-
var createBulkUpload = function createBulkUpload(businessId, body, opts) {
|
|
3555
|
-
if (opts === void 0) {
|
|
3556
|
-
opts = {};
|
|
3557
|
-
}
|
|
3558
|
-
|
|
3559
|
-
doesParamExist.default({
|
|
3560
|
-
businessId: businessId
|
|
3561
|
-
});
|
|
3562
|
-
return request(_objectSpread$8({}, opts, {
|
|
3563
|
-
path: pathBusinessBulkUploads(businessId)
|
|
3564
|
-
}), {
|
|
3565
|
-
method: 'post',
|
|
3566
|
-
data: body
|
|
3567
|
-
});
|
|
3568
|
-
};
|
|
3569
|
-
/**
|
|
3570
|
-
* Get a bulk upload
|
|
3571
|
-
* @param {string} businessId - Business ID
|
|
3572
|
-
* @param {string} bulkUploadId - Bulk upload ID
|
|
3573
|
-
* @param {Object} body - Request body
|
|
3574
|
-
* @param {Object} opts - Additional options
|
|
3575
|
-
*/
|
|
3576
|
-
|
|
3577
|
-
var getBulkUpload = function getBulkUpload(businessId, bulkUploadId, opts) {
|
|
3578
|
-
if (opts === void 0) {
|
|
3579
|
-
opts = {};
|
|
3580
|
-
}
|
|
3581
|
-
|
|
3582
|
-
doesParamExist.default({
|
|
3583
|
-
businessId: businessId,
|
|
3584
|
-
bulkUploadId: bulkUploadId
|
|
3585
|
-
});
|
|
3586
|
-
return request(_objectSpread$8({}, opts, {
|
|
3587
|
-
path: pathBusinessBulkUpload(businessId, bulkUploadId)
|
|
3588
|
-
}), {
|
|
3589
|
-
method: 'get'
|
|
3590
|
-
});
|
|
3591
|
-
};
|
|
3592
|
-
/**
|
|
3593
|
-
* Get a bulk upload url
|
|
3594
|
-
* @param {string} businessId - Business ID
|
|
3595
|
-
* @param {Object} query - Query params
|
|
3596
|
-
* @param {Object} opts - Additional options
|
|
3597
|
-
*/
|
|
3598
|
-
|
|
3599
|
-
var getBulkUploadUrl = function getBulkUploadUrl(businessId, query, opts) {
|
|
3600
|
-
if (opts === void 0) {
|
|
3601
|
-
opts = {};
|
|
3602
|
-
}
|
|
3603
|
-
|
|
3604
|
-
doesParamExist.default({
|
|
3605
|
-
businessId: businessId
|
|
3606
|
-
});
|
|
3607
|
-
return request(_objectSpread$8({}, opts, {
|
|
3608
|
-
path: pathBusinessBulkUploadUrl(businessId)
|
|
3609
|
-
}), {
|
|
3610
|
-
method: 'get',
|
|
3611
|
-
params: query
|
|
3612
|
-
});
|
|
3613
|
-
};
|
|
3614
|
-
|
|
3615
|
-
var bulkUploads = /*#__PURE__*/Object.freeze({
|
|
3616
|
-
__proto__: null,
|
|
3617
|
-
pathBusinessBulkUploads: pathBusinessBulkUploads,
|
|
3618
|
-
pathBusinessBulkUpload: pathBusinessBulkUpload,
|
|
3619
|
-
pathBusinessBulkUploadUrl: pathBusinessBulkUploadUrl,
|
|
3620
|
-
createBulkUpload: createBulkUpload,
|
|
3621
|
-
getBulkUpload: getBulkUpload,
|
|
3622
|
-
getBulkUploadUrl: getBulkUploadUrl
|
|
3623
|
-
});
|
|
3624
|
-
|
|
3625
|
-
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3626
|
-
|
|
3627
|
-
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3628
|
-
var pathLinkBusinessProfile = function pathLinkBusinessProfile(businessProfileId) {
|
|
3629
|
-
return "/businessprofiles/" + businessProfileId + "/link";
|
|
3630
|
-
};
|
|
3631
|
-
var pathUnlinkBusinessProfile = function pathUnlinkBusinessProfile(businessProfileId) {
|
|
3632
|
-
return "/businessprofiles/" + businessProfileId + "/unlink";
|
|
3633
|
-
};
|
|
3634
|
-
var pathOrganisationBusinessProfiles = function pathOrganisationBusinessProfiles(organisationId) {
|
|
3635
|
-
return "/organisations/" + organisationId + "/businessprofiles";
|
|
3636
|
-
};
|
|
3637
|
-
var getOrganisationBusinessProfiles = function getOrganisationBusinessProfiles(organisationId, query, opts) {
|
|
3638
|
-
if (opts === void 0) {
|
|
3639
|
-
opts = {};
|
|
3640
|
-
}
|
|
3641
|
-
|
|
3642
|
-
doesParamExist.default({
|
|
3643
|
-
organisationId: organisationId
|
|
3644
|
-
}, opts.hyperMediaEndpoint);
|
|
3645
|
-
return request(_objectSpread$9({}, opts, {
|
|
3646
|
-
path: pathOrganisationBusinessProfiles(organisationId)
|
|
3647
|
-
}), {
|
|
3648
|
-
method: 'get',
|
|
3649
|
-
params: query
|
|
3648
|
+
method: 'get',
|
|
3649
|
+
params: query
|
|
3650
3650
|
});
|
|
3651
3651
|
};
|
|
3652
3652
|
var linkBusinessProfile = function linkBusinessProfile(businessProfileId, businessId, opts) {
|
|
@@ -5687,44 +5687,6 @@ var forms = /*#__PURE__*/Object.freeze({
|
|
|
5687
5687
|
function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5688
5688
|
|
|
5689
5689
|
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5690
|
-
var PATH__FUNDERS = '/funders';
|
|
5691
|
-
var pathFunder = function pathFunder(funderId) {
|
|
5692
|
-
return "/funders/" + funderId;
|
|
5693
|
-
};
|
|
5694
|
-
var getFunders = function getFunders(opts) {
|
|
5695
|
-
if (opts === void 0) {
|
|
5696
|
-
opts = {};
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
return request(_objectSpread$j({}, opts, {
|
|
5700
|
-
path: PATH__FUNDERS
|
|
5701
|
-
}), {
|
|
5702
|
-
method: 'get'
|
|
5703
|
-
});
|
|
5704
|
-
};
|
|
5705
|
-
var getFunder = function getFunder(funderId, opts) {
|
|
5706
|
-
if (opts === void 0) {
|
|
5707
|
-
opts = {};
|
|
5708
|
-
}
|
|
5709
|
-
|
|
5710
|
-
return request(_objectSpread$j({}, opts, {
|
|
5711
|
-
path: pathFunder(funderId)
|
|
5712
|
-
}), {
|
|
5713
|
-
method: 'get'
|
|
5714
|
-
});
|
|
5715
|
-
};
|
|
5716
|
-
|
|
5717
|
-
var funders = /*#__PURE__*/Object.freeze({
|
|
5718
|
-
__proto__: null,
|
|
5719
|
-
PATH__FUNDERS: PATH__FUNDERS,
|
|
5720
|
-
pathFunder: pathFunder,
|
|
5721
|
-
getFunders: getFunders,
|
|
5722
|
-
getFunder: getFunder
|
|
5723
|
-
});
|
|
5724
|
-
|
|
5725
|
-
function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5726
|
-
|
|
5727
|
-
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5728
5690
|
var pathFunderSettings = function pathFunderSettings(businessId) {
|
|
5729
5691
|
return "/businesses/" + businessId + "/fundersettings";
|
|
5730
5692
|
};
|
|
@@ -5743,7 +5705,7 @@ var getBusinessFunderSettings = function getBusinessFunderSettings(businessId, q
|
|
|
5743
5705
|
doesParamExist.default({
|
|
5744
5706
|
businessId: businessId
|
|
5745
5707
|
}, opts.hyperMediaEndpoint);
|
|
5746
|
-
return request(_objectSpread$
|
|
5708
|
+
return request(_objectSpread$j({}, opts, {
|
|
5747
5709
|
path: pathFunderSettings(businessId)
|
|
5748
5710
|
}), {
|
|
5749
5711
|
method: 'get',
|
|
@@ -5759,7 +5721,7 @@ var getBusinesFunderSettingsById = function getBusinesFunderSettingsById(busines
|
|
|
5759
5721
|
businessId: businessId,
|
|
5760
5722
|
funderSettingsId: funderSettingsId
|
|
5761
5723
|
}, opts.hyperMediaEndpoint);
|
|
5762
|
-
return request(_objectSpread$
|
|
5724
|
+
return request(_objectSpread$j({}, opts, {
|
|
5763
5725
|
path: pathFunderSettingsById(businessId, funderSettingsId)
|
|
5764
5726
|
}), {
|
|
5765
5727
|
method: 'get'
|
|
@@ -5774,7 +5736,7 @@ var updateBusinesFunderSettings = function updateBusinesFunderSettings(businessI
|
|
|
5774
5736
|
businessId: businessId,
|
|
5775
5737
|
funderSettingsId: funderSettingsId
|
|
5776
5738
|
}, opts.hyperMediaEndpoint);
|
|
5777
|
-
return request(_objectSpread$
|
|
5739
|
+
return request(_objectSpread$j({}, opts, {
|
|
5778
5740
|
path: pathFunderSettingsById(businessId, funderSettingsId)
|
|
5779
5741
|
}), {
|
|
5780
5742
|
method: 'put',
|
|
@@ -5789,7 +5751,7 @@ var createBusinesFunderSettings = function createBusinesFunderSettings(businessI
|
|
|
5789
5751
|
doesParamExist.default({
|
|
5790
5752
|
businessId: businessId
|
|
5791
5753
|
}, opts.hyperMediaEndpoint);
|
|
5792
|
-
return request(_objectSpread$
|
|
5754
|
+
return request(_objectSpread$j({}, opts, {
|
|
5793
5755
|
path: pathFunderSettings(businessId)
|
|
5794
5756
|
}), {
|
|
5795
5757
|
method: 'post',
|
|
@@ -5805,7 +5767,7 @@ var deleteBusinesFunderSettings = function deleteBusinesFunderSettings(businessI
|
|
|
5805
5767
|
businessId: businessId,
|
|
5806
5768
|
funderSettingsId: funderSettingsId
|
|
5807
5769
|
}, opts.hyperMediaEndpoint);
|
|
5808
|
-
return request(_objectSpread$
|
|
5770
|
+
return request(_objectSpread$j({}, opts, {
|
|
5809
5771
|
path: pathFunderSettingsById(businessId, funderSettingsId)
|
|
5810
5772
|
}), {
|
|
5811
5773
|
method: 'delete'
|
|
@@ -5823,6 +5785,44 @@ var funderSettings = /*#__PURE__*/Object.freeze({
|
|
|
5823
5785
|
deleteBusinesFunderSettings: deleteBusinesFunderSettings
|
|
5824
5786
|
});
|
|
5825
5787
|
|
|
5788
|
+
function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5789
|
+
|
|
5790
|
+
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5791
|
+
var PATH__FUNDERS = '/funders';
|
|
5792
|
+
var pathFunder = function pathFunder(funderId) {
|
|
5793
|
+
return "/funders/" + funderId;
|
|
5794
|
+
};
|
|
5795
|
+
var getFunders = function getFunders(opts) {
|
|
5796
|
+
if (opts === void 0) {
|
|
5797
|
+
opts = {};
|
|
5798
|
+
}
|
|
5799
|
+
|
|
5800
|
+
return request(_objectSpread$k({}, opts, {
|
|
5801
|
+
path: PATH__FUNDERS
|
|
5802
|
+
}), {
|
|
5803
|
+
method: 'get'
|
|
5804
|
+
});
|
|
5805
|
+
};
|
|
5806
|
+
var getFunder = function getFunder(funderId, opts) {
|
|
5807
|
+
if (opts === void 0) {
|
|
5808
|
+
opts = {};
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5811
|
+
return request(_objectSpread$k({}, opts, {
|
|
5812
|
+
path: pathFunder(funderId)
|
|
5813
|
+
}), {
|
|
5814
|
+
method: 'get'
|
|
5815
|
+
});
|
|
5816
|
+
};
|
|
5817
|
+
|
|
5818
|
+
var funders = /*#__PURE__*/Object.freeze({
|
|
5819
|
+
__proto__: null,
|
|
5820
|
+
PATH__FUNDERS: PATH__FUNDERS,
|
|
5821
|
+
pathFunder: pathFunder,
|
|
5822
|
+
getFunders: getFunders,
|
|
5823
|
+
getFunder: getFunder
|
|
5824
|
+
});
|
|
5825
|
+
|
|
5826
5826
|
function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5827
5827
|
|
|
5828
5828
|
function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -11128,17 +11128,60 @@ var practiceProfiles = /*#__PURE__*/Object.freeze({
|
|
|
11128
11128
|
function ownKeys$H(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11129
11129
|
|
|
11130
11130
|
function _objectSpread$H(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$H(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$H(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11131
|
+
var PATH__PRACTICE_TYPES = '/practicetypes';
|
|
11132
|
+
/**
|
|
11133
|
+
* Get practice types
|
|
11134
|
+
* @param {Object} opts - Additional options
|
|
11135
|
+
*/
|
|
11131
11136
|
|
|
11132
|
-
var
|
|
11133
|
-
|
|
11134
|
-
|
|
11137
|
+
var getPracticeTypes = /*#__PURE__*/function () {
|
|
11138
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(opts) {
|
|
11139
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
11140
|
+
while (1) {
|
|
11141
|
+
switch (_context.prev = _context.next) {
|
|
11142
|
+
case 0:
|
|
11143
|
+
if (opts === void 0) {
|
|
11144
|
+
opts = {};
|
|
11145
|
+
}
|
|
11135
11146
|
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
}
|
|
11147
|
+
return _context.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11148
|
+
path: PATH__PRACTICE_TYPES
|
|
11149
|
+
}), {
|
|
11150
|
+
method: 'get'
|
|
11151
|
+
}));
|
|
11139
11152
|
|
|
11140
|
-
|
|
11141
|
-
|
|
11153
|
+
case 2:
|
|
11154
|
+
case "end":
|
|
11155
|
+
return _context.stop();
|
|
11156
|
+
}
|
|
11157
|
+
}
|
|
11158
|
+
}, _callee);
|
|
11159
|
+
}));
|
|
11160
|
+
|
|
11161
|
+
return function getPracticeTypes(_x) {
|
|
11162
|
+
return _ref.apply(this, arguments);
|
|
11163
|
+
};
|
|
11164
|
+
}();
|
|
11165
|
+
|
|
11166
|
+
var practiceTypes = /*#__PURE__*/Object.freeze({
|
|
11167
|
+
__proto__: null,
|
|
11168
|
+
getPracticeTypes: getPracticeTypes
|
|
11169
|
+
});
|
|
11170
|
+
|
|
11171
|
+
function ownKeys$I(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11172
|
+
|
|
11173
|
+
function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$I(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$I(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11174
|
+
|
|
11175
|
+
var pathBusinessFormPractices = function pathBusinessFormPractices(businessId, formId) {
|
|
11176
|
+
return "/businesses/" + businessId + "/forms/" + formId + "/practices";
|
|
11177
|
+
};
|
|
11178
|
+
|
|
11179
|
+
var pathBusinessPractices = function pathBusinessPractices(businessId) {
|
|
11180
|
+
return "/businesses/" + businessId + "/practices";
|
|
11181
|
+
};
|
|
11182
|
+
|
|
11183
|
+
var pathBusinessPractice = function pathBusinessPractice(businessId, practiceId) {
|
|
11184
|
+
return "/businesses/" + businessId + "/practices/" + practiceId;
|
|
11142
11185
|
};
|
|
11143
11186
|
|
|
11144
11187
|
var pathBusinessPracticeUploadUrl = function pathBusinessPracticeUploadUrl(businessId, practiceId) {
|
|
@@ -11189,7 +11232,7 @@ var createBusinessPractice = /*#__PURE__*/function () {
|
|
|
11189
11232
|
doesParamExist.default({
|
|
11190
11233
|
businessId: businessId
|
|
11191
11234
|
}, opts.hyperMediaEndpoint);
|
|
11192
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
11235
|
+
return _context.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11193
11236
|
path: pathBusinessPractices(businessId)
|
|
11194
11237
|
}), {
|
|
11195
11238
|
method: 'post',
|
|
@@ -11228,7 +11271,7 @@ var createOrganisationPractice = /*#__PURE__*/function () {
|
|
|
11228
11271
|
doesParamExist.default({
|
|
11229
11272
|
organisationId: organisationId
|
|
11230
11273
|
}, opts.hyperMediaEndpoint);
|
|
11231
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
11274
|
+
return _context2.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11232
11275
|
path: pathOrganisationPractices(organisationId)
|
|
11233
11276
|
}), {
|
|
11234
11277
|
method: 'post',
|
|
@@ -11268,7 +11311,7 @@ var deleteBusinessPractice = /*#__PURE__*/function () {
|
|
|
11268
11311
|
businessId: businessId,
|
|
11269
11312
|
practiceId: practiceId
|
|
11270
11313
|
}, opts.hyperMediaEndpoint);
|
|
11271
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
11314
|
+
return _context3.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11272
11315
|
path: pathBusinessPractice(businessId, practiceId)
|
|
11273
11316
|
}), {
|
|
11274
11317
|
method: 'delete'
|
|
@@ -11307,7 +11350,7 @@ var deleteOrganisationPractice = /*#__PURE__*/function () {
|
|
|
11307
11350
|
organisationId: organisationId,
|
|
11308
11351
|
practiceId: practiceId
|
|
11309
11352
|
}, opts.hyperMediaEndpoint);
|
|
11310
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
11353
|
+
return _context4.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11311
11354
|
path: pathOrganisationPractice(organisationId, practiceId)
|
|
11312
11355
|
}), {
|
|
11313
11356
|
method: 'delete'
|
|
@@ -11346,7 +11389,7 @@ var getBusinessPractice = /*#__PURE__*/function () {
|
|
|
11346
11389
|
businessId: businessId,
|
|
11347
11390
|
practiceId: practiceId
|
|
11348
11391
|
}, opts.hyperMediaEndpoint);
|
|
11349
|
-
return _context5.abrupt("return", request(_objectSpread$
|
|
11392
|
+
return _context5.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11350
11393
|
path: pathBusinessPractice(businessId, practiceId)
|
|
11351
11394
|
}), {
|
|
11352
11395
|
method: 'get'
|
|
@@ -11388,7 +11431,7 @@ var getBusinessPractices = /*#__PURE__*/function () {
|
|
|
11388
11431
|
doesParamExist.default({
|
|
11389
11432
|
businessId: businessId
|
|
11390
11433
|
}, opts.hyperMediaEndpoint);
|
|
11391
|
-
return _context6.abrupt("return", request(_objectSpread$
|
|
11434
|
+
return _context6.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11392
11435
|
path: pathBusinessPractices(businessId)
|
|
11393
11436
|
}), {
|
|
11394
11437
|
method: 'get',
|
|
@@ -11433,7 +11476,7 @@ var getBusinessFormPractices = /*#__PURE__*/function () {
|
|
|
11433
11476
|
businessId: businessId,
|
|
11434
11477
|
formId: formId
|
|
11435
11478
|
}, opts.hyperMediaEndpoint);
|
|
11436
|
-
return _context7.abrupt("return", request(_objectSpread$
|
|
11479
|
+
return _context7.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11437
11480
|
path: pathBusinessFormPractices(businessId, formId)
|
|
11438
11481
|
}), {
|
|
11439
11482
|
method: 'get',
|
|
@@ -11475,7 +11518,7 @@ var getBusinessPracticeUploadUrl = /*#__PURE__*/function () {
|
|
|
11475
11518
|
practiceId: practiceId,
|
|
11476
11519
|
query: query
|
|
11477
11520
|
}, opts.hyperMediaEndpoint);
|
|
11478
|
-
return _context8.abrupt("return", request(_objectSpread$
|
|
11521
|
+
return _context8.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11479
11522
|
path: pathBusinessPracticeUploadUrl(businessId, practiceId)
|
|
11480
11523
|
}), {
|
|
11481
11524
|
method: 'get',
|
|
@@ -11519,7 +11562,7 @@ var getBusinessStaffPractices = /*#__PURE__*/function () {
|
|
|
11519
11562
|
businessId: businessId,
|
|
11520
11563
|
staffId: staffId
|
|
11521
11564
|
}, opts.hyperMediaEndpoint);
|
|
11522
|
-
return _context9.abrupt("return", request(_objectSpread$
|
|
11565
|
+
return _context9.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11523
11566
|
path: pathBusinessStaffPractices(businessId, staffId)
|
|
11524
11567
|
}), {
|
|
11525
11568
|
method: 'get',
|
|
@@ -11562,7 +11605,7 @@ var getOrganisationPractices = /*#__PURE__*/function () {
|
|
|
11562
11605
|
doesParamExist.default({
|
|
11563
11606
|
organisationId: organisationId
|
|
11564
11607
|
}, opts.hyperMediaEndpoint);
|
|
11565
|
-
return _context10.abrupt("return", request(_objectSpread$
|
|
11608
|
+
return _context10.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11566
11609
|
path: pathOrganisationPractices(organisationId)
|
|
11567
11610
|
}), {
|
|
11568
11611
|
method: 'get',
|
|
@@ -11601,7 +11644,7 @@ var getPractice = /*#__PURE__*/function () {
|
|
|
11601
11644
|
doesParamExist.default({
|
|
11602
11645
|
practiceId: practiceId
|
|
11603
11646
|
}, opts.hyperMediaEndpoint);
|
|
11604
|
-
return _context11.abrupt("return", request(_objectSpread$
|
|
11647
|
+
return _context11.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11605
11648
|
path: pathPractice(practiceId)
|
|
11606
11649
|
}), {
|
|
11607
11650
|
method: 'get'
|
|
@@ -11630,7 +11673,7 @@ var requestClaimPractice = function requestClaimPractice(practiceId, opts) {
|
|
|
11630
11673
|
opts = {};
|
|
11631
11674
|
}
|
|
11632
11675
|
|
|
11633
|
-
return request(_objectSpread$
|
|
11676
|
+
return request(_objectSpread$I({}, opts, {
|
|
11634
11677
|
path: pathPractice(practiceId) + "/verify/request"
|
|
11635
11678
|
}), {
|
|
11636
11679
|
method: 'post'
|
|
@@ -11648,7 +11691,7 @@ var requestToAddProviderToPractice = function requestToAddProviderToPractice(pra
|
|
|
11648
11691
|
opts = {};
|
|
11649
11692
|
}
|
|
11650
11693
|
|
|
11651
|
-
return request(_objectSpread$
|
|
11694
|
+
return request(_objectSpread$I({}, opts, {
|
|
11652
11695
|
path: pathPractice(practiceId) + "/access/request"
|
|
11653
11696
|
}), {
|
|
11654
11697
|
method: 'post',
|
|
@@ -11672,7 +11715,7 @@ var searchOnboardingPractices = function searchOnboardingPractices(query, opts)
|
|
|
11672
11715
|
opts = {};
|
|
11673
11716
|
}
|
|
11674
11717
|
|
|
11675
|
-
return request(_objectSpread$
|
|
11718
|
+
return request(_objectSpread$I({}, opts, {
|
|
11676
11719
|
path: pathOnboardingPractices()
|
|
11677
11720
|
}), {
|
|
11678
11721
|
method: 'get',
|
|
@@ -11701,7 +11744,7 @@ var updateBusinessPractice = /*#__PURE__*/function () {
|
|
|
11701
11744
|
businessId: businessId,
|
|
11702
11745
|
practiceId: practiceId
|
|
11703
11746
|
}, opts.hyperMediaEndpoint);
|
|
11704
|
-
return _context12.abrupt("return", request(_objectSpread$
|
|
11747
|
+
return _context12.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11705
11748
|
path: pathBusinessPractice(businessId, practiceId)
|
|
11706
11749
|
}), {
|
|
11707
11750
|
method: 'put',
|
|
@@ -11742,7 +11785,7 @@ var updateOrganisationPractice = /*#__PURE__*/function () {
|
|
|
11742
11785
|
organisationId: organisationId,
|
|
11743
11786
|
practiceId: practiceId
|
|
11744
11787
|
}, opts.hyperMediaEndpoint);
|
|
11745
|
-
return _context13.abrupt("return", request(_objectSpread$
|
|
11788
|
+
return _context13.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11746
11789
|
path: pathOrganisationPractice(organisationId, practiceId)
|
|
11747
11790
|
}), {
|
|
11748
11791
|
method: 'put',
|
|
@@ -11774,11 +11817,11 @@ var verifyClaimPractice = function verifyClaimPractice(practiceId, otkCode, body
|
|
|
11774
11817
|
opts = {};
|
|
11775
11818
|
}
|
|
11776
11819
|
|
|
11777
|
-
return request(_objectSpread$
|
|
11820
|
+
return request(_objectSpread$I({}, opts, {
|
|
11778
11821
|
path: pathPractice(practiceId) + "/verify"
|
|
11779
11822
|
}), {
|
|
11780
11823
|
method: 'post',
|
|
11781
|
-
data: _objectSpread$
|
|
11824
|
+
data: _objectSpread$I({}, body, {
|
|
11782
11825
|
otkCode: otkCode
|
|
11783
11826
|
})
|
|
11784
11827
|
});
|
|
@@ -11803,7 +11846,7 @@ var clonePracticeIntoBusiness = /*#__PURE__*/function () {
|
|
|
11803
11846
|
doesParamExist.default({
|
|
11804
11847
|
practiceId: practiceId
|
|
11805
11848
|
}, opts.hyperMediaEndpoint);
|
|
11806
|
-
return _context14.abrupt("return", request(_objectSpread$
|
|
11849
|
+
return _context14.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11807
11850
|
path: pathPractice(practiceId) + "/clone"
|
|
11808
11851
|
}), {
|
|
11809
11852
|
method: 'post',
|
|
@@ -11848,7 +11891,7 @@ var getPracticesWithApprovedApplications = /*#__PURE__*/function () {
|
|
|
11848
11891
|
businessId: businessId,
|
|
11849
11892
|
formId: formId
|
|
11850
11893
|
}, opts.hyperMediaEndpoint);
|
|
11851
|
-
return _context15.abrupt("return", request(_objectSpread$
|
|
11894
|
+
return _context15.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11852
11895
|
path: pathGetPracticesWithApprovedApplications(businessId, formId)
|
|
11853
11896
|
}), {
|
|
11854
11897
|
method: 'get',
|
|
@@ -11891,49 +11934,6 @@ var practices = /*#__PURE__*/Object.freeze({
|
|
|
11891
11934
|
getPracticesWithApprovedApplications: getPracticesWithApprovedApplications
|
|
11892
11935
|
});
|
|
11893
11936
|
|
|
11894
|
-
function ownKeys$I(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11895
|
-
|
|
11896
|
-
function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$I(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$I(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11897
|
-
var PATH__PRACTICE_TYPES = '/practicetypes';
|
|
11898
|
-
/**
|
|
11899
|
-
* Get practice types
|
|
11900
|
-
* @param {Object} opts - Additional options
|
|
11901
|
-
*/
|
|
11902
|
-
|
|
11903
|
-
var getPracticeTypes = /*#__PURE__*/function () {
|
|
11904
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(opts) {
|
|
11905
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
11906
|
-
while (1) {
|
|
11907
|
-
switch (_context.prev = _context.next) {
|
|
11908
|
-
case 0:
|
|
11909
|
-
if (opts === void 0) {
|
|
11910
|
-
opts = {};
|
|
11911
|
-
}
|
|
11912
|
-
|
|
11913
|
-
return _context.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
11914
|
-
path: PATH__PRACTICE_TYPES
|
|
11915
|
-
}), {
|
|
11916
|
-
method: 'get'
|
|
11917
|
-
}));
|
|
11918
|
-
|
|
11919
|
-
case 2:
|
|
11920
|
-
case "end":
|
|
11921
|
-
return _context.stop();
|
|
11922
|
-
}
|
|
11923
|
-
}
|
|
11924
|
-
}, _callee);
|
|
11925
|
-
}));
|
|
11926
|
-
|
|
11927
|
-
return function getPracticeTypes(_x) {
|
|
11928
|
-
return _ref.apply(this, arguments);
|
|
11929
|
-
};
|
|
11930
|
-
}();
|
|
11931
|
-
|
|
11932
|
-
var practiceTypes = /*#__PURE__*/Object.freeze({
|
|
11933
|
-
__proto__: null,
|
|
11934
|
-
getPracticeTypes: getPracticeTypes
|
|
11935
|
-
});
|
|
11936
|
-
|
|
11937
11937
|
function ownKeys$J(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11938
11938
|
|
|
11939
11939
|
function _objectSpread$J(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$J(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$J(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -12099,40 +12099,37 @@ var professionalCategories = /*#__PURE__*/Object.freeze({
|
|
|
12099
12099
|
function ownKeys$L(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12100
12100
|
|
|
12101
12101
|
function _objectSpread$L(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$L(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$L(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
return "/businesses/" + businessId + "/providerrequests";
|
|
12102
|
+
var pathProviderNumberTypes = function pathProviderNumberTypes() {
|
|
12103
|
+
return "/providernumbertypes";
|
|
12105
12104
|
};
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/providerrequests";
|
|
12105
|
+
var pathProviderNumberType = function pathProviderNumberType(providerNumberTypeId) {
|
|
12106
|
+
return "/providernumbertypes/" + providerNumberTypeId;
|
|
12109
12107
|
};
|
|
12110
12108
|
/**
|
|
12111
|
-
*
|
|
12112
|
-
* @param {
|
|
12113
|
-
* @param {Object} body - Request body
|
|
12109
|
+
* Get provider number types
|
|
12110
|
+
* @param {Object} query - Query parameters
|
|
12114
12111
|
* @param {Object} opts - Additional options
|
|
12115
12112
|
*/
|
|
12116
12113
|
|
|
12117
|
-
|
|
12118
|
-
var
|
|
12119
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
|
|
12114
|
+
var getProviderNumberTypes = /*#__PURE__*/function () {
|
|
12115
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(query, opts) {
|
|
12120
12116
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12121
12117
|
while (1) {
|
|
12122
12118
|
switch (_context.prev = _context.next) {
|
|
12123
12119
|
case 0:
|
|
12120
|
+
if (query === void 0) {
|
|
12121
|
+
query = {};
|
|
12122
|
+
}
|
|
12123
|
+
|
|
12124
12124
|
if (opts === void 0) {
|
|
12125
12125
|
opts = {};
|
|
12126
12126
|
}
|
|
12127
12127
|
|
|
12128
|
-
doesParamExist.default({
|
|
12129
|
-
businessId: businessId
|
|
12130
|
-
}, opts.hyperMediaEndpoint);
|
|
12131
12128
|
return _context.abrupt("return", request(_objectSpread$L({}, opts, {
|
|
12132
|
-
path:
|
|
12129
|
+
path: pathProviderNumberTypes()
|
|
12133
12130
|
}), {
|
|
12134
|
-
method: '
|
|
12135
|
-
|
|
12131
|
+
method: 'get',
|
|
12132
|
+
params: query
|
|
12136
12133
|
}));
|
|
12137
12134
|
|
|
12138
12135
|
case 3:
|
|
@@ -12143,58 +12140,43 @@ var createProviderRequest = /*#__PURE__*/function () {
|
|
|
12143
12140
|
}, _callee);
|
|
12144
12141
|
}));
|
|
12145
12142
|
|
|
12146
|
-
return function
|
|
12143
|
+
return function getProviderNumberTypes(_x, _x2) {
|
|
12147
12144
|
return _ref.apply(this, arguments);
|
|
12148
12145
|
};
|
|
12149
12146
|
}();
|
|
12150
12147
|
/**
|
|
12151
|
-
*
|
|
12152
|
-
* @param {
|
|
12153
|
-
* @param {
|
|
12154
|
-
* @param {string} staffId - Staff ID
|
|
12155
|
-
* @param {string} providerNumber - ProviderNumber
|
|
12148
|
+
* Get provider number type
|
|
12149
|
+
* @param {String} providerNumberTypeId - Provider number type ID
|
|
12150
|
+
* @param {Object} query - Query parameters
|
|
12156
12151
|
* @param {Object} opts - Additional options
|
|
12157
12152
|
*/
|
|
12158
12153
|
|
|
12159
|
-
var
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
switch (_context2.prev = _context2.next) {
|
|
12164
|
-
case 0:
|
|
12165
|
-
if (opts === void 0) {
|
|
12166
|
-
opts = {};
|
|
12167
|
-
}
|
|
12168
|
-
|
|
12169
|
-
doesParamExist.default({
|
|
12170
|
-
businessId: businessId
|
|
12171
|
-
}, opts.hyperMediaEndpoint);
|
|
12172
|
-
return _context2.abrupt("return", request(_objectSpread$L({}, opts, {
|
|
12173
|
-
path: pathBusinessPracticeStaffMemberProviderRequest(businessId, practiceId, staffId)
|
|
12174
|
-
}), {
|
|
12175
|
-
method: 'post',
|
|
12176
|
-
data: {
|
|
12177
|
-
providerNumber: providerNumber
|
|
12178
|
-
}
|
|
12179
|
-
}));
|
|
12154
|
+
var getProviderNumberType = function getProviderNumberType(providerNumberTypeId, query, opts) {
|
|
12155
|
+
if (query === void 0) {
|
|
12156
|
+
query = {};
|
|
12157
|
+
}
|
|
12180
12158
|
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
}
|
|
12185
|
-
}
|
|
12186
|
-
}, _callee2);
|
|
12187
|
-
}));
|
|
12159
|
+
if (opts === void 0) {
|
|
12160
|
+
opts = {};
|
|
12161
|
+
}
|
|
12188
12162
|
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
};
|
|
12192
|
-
}
|
|
12163
|
+
doesParamExist.default({
|
|
12164
|
+
providerNumberTypeId: providerNumberTypeId
|
|
12165
|
+
}, opts.hyperMediaEndpoint);
|
|
12166
|
+
return request(_objectSpread$L({}, opts, {
|
|
12167
|
+
path: pathProviderNumberType(providerNumberTypeId)
|
|
12168
|
+
}), {
|
|
12169
|
+
method: 'get',
|
|
12170
|
+
params: query
|
|
12171
|
+
});
|
|
12172
|
+
};
|
|
12193
12173
|
|
|
12194
|
-
var
|
|
12174
|
+
var providerNumberTypes = /*#__PURE__*/Object.freeze({
|
|
12195
12175
|
__proto__: null,
|
|
12196
|
-
|
|
12197
|
-
|
|
12176
|
+
pathProviderNumberTypes: pathProviderNumberTypes,
|
|
12177
|
+
pathProviderNumberType: pathProviderNumberType,
|
|
12178
|
+
getProviderNumberTypes: getProviderNumberTypes,
|
|
12179
|
+
getProviderNumberType: getProviderNumberType
|
|
12198
12180
|
});
|
|
12199
12181
|
|
|
12200
12182
|
function ownKeys$M(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -12285,37 +12267,40 @@ var providerRegistrationTypes = /*#__PURE__*/Object.freeze({
|
|
|
12285
12267
|
function ownKeys$N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12286
12268
|
|
|
12287
12269
|
function _objectSpread$N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$N(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12288
|
-
|
|
12289
|
-
|
|
12270
|
+
|
|
12271
|
+
var pathBusinessProviderRequests = function pathBusinessProviderRequests(businessId) {
|
|
12272
|
+
return "/businesses/" + businessId + "/providerrequests";
|
|
12290
12273
|
};
|
|
12291
|
-
|
|
12292
|
-
|
|
12274
|
+
|
|
12275
|
+
var pathBusinessPracticeStaffMemberProviderRequest = function pathBusinessPracticeStaffMemberProviderRequest(businessId, practiceId, staffId) {
|
|
12276
|
+
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/providerrequests";
|
|
12293
12277
|
};
|
|
12294
12278
|
/**
|
|
12295
|
-
*
|
|
12296
|
-
* @param {
|
|
12279
|
+
* Create providerRequest
|
|
12280
|
+
* @param {string} businessId - Business ID
|
|
12281
|
+
* @param {Object} body - Request body
|
|
12297
12282
|
* @param {Object} opts - Additional options
|
|
12298
12283
|
*/
|
|
12299
12284
|
|
|
12300
|
-
|
|
12301
|
-
|
|
12285
|
+
|
|
12286
|
+
var createProviderRequest = /*#__PURE__*/function () {
|
|
12287
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
|
|
12302
12288
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12303
12289
|
while (1) {
|
|
12304
12290
|
switch (_context.prev = _context.next) {
|
|
12305
12291
|
case 0:
|
|
12306
|
-
if (query === void 0) {
|
|
12307
|
-
query = {};
|
|
12308
|
-
}
|
|
12309
|
-
|
|
12310
12292
|
if (opts === void 0) {
|
|
12311
12293
|
opts = {};
|
|
12312
12294
|
}
|
|
12313
12295
|
|
|
12296
|
+
doesParamExist.default({
|
|
12297
|
+
businessId: businessId
|
|
12298
|
+
}, opts.hyperMediaEndpoint);
|
|
12314
12299
|
return _context.abrupt("return", request(_objectSpread$N({}, opts, {
|
|
12315
|
-
path:
|
|
12300
|
+
path: pathBusinessProviderRequests(businessId)
|
|
12316
12301
|
}), {
|
|
12317
|
-
method: '
|
|
12318
|
-
|
|
12302
|
+
method: 'post',
|
|
12303
|
+
data: body
|
|
12319
12304
|
}));
|
|
12320
12305
|
|
|
12321
12306
|
case 3:
|
|
@@ -12326,43 +12311,58 @@ var getProviderNumberTypes = /*#__PURE__*/function () {
|
|
|
12326
12311
|
}, _callee);
|
|
12327
12312
|
}));
|
|
12328
12313
|
|
|
12329
|
-
return function
|
|
12314
|
+
return function createProviderRequest(_x, _x2, _x3) {
|
|
12330
12315
|
return _ref.apply(this, arguments);
|
|
12331
12316
|
};
|
|
12332
12317
|
}();
|
|
12333
12318
|
/**
|
|
12334
|
-
*
|
|
12335
|
-
* @param {
|
|
12336
|
-
* @param {
|
|
12319
|
+
* Request a staff member provider number to be enabled
|
|
12320
|
+
* @param {string} businessId - Business ID
|
|
12321
|
+
* @param {string} practiceId - Practice ID
|
|
12322
|
+
* @param {string} staffId - Staff ID
|
|
12323
|
+
* @param {string} providerNumber - ProviderNumber
|
|
12337
12324
|
* @param {Object} opts - Additional options
|
|
12338
12325
|
*/
|
|
12339
12326
|
|
|
12340
|
-
var
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12327
|
+
var requestBusinessPracticeStaffMemberProviderNumberToBeEnabled = /*#__PURE__*/function () {
|
|
12328
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(businessId, practiceId, staffId, providerNumber, opts) {
|
|
12329
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
12330
|
+
while (1) {
|
|
12331
|
+
switch (_context2.prev = _context2.next) {
|
|
12332
|
+
case 0:
|
|
12333
|
+
if (opts === void 0) {
|
|
12334
|
+
opts = {};
|
|
12335
|
+
}
|
|
12344
12336
|
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12337
|
+
doesParamExist.default({
|
|
12338
|
+
businessId: businessId
|
|
12339
|
+
}, opts.hyperMediaEndpoint);
|
|
12340
|
+
return _context2.abrupt("return", request(_objectSpread$N({}, opts, {
|
|
12341
|
+
path: pathBusinessPracticeStaffMemberProviderRequest(businessId, practiceId, staffId)
|
|
12342
|
+
}), {
|
|
12343
|
+
method: 'post',
|
|
12344
|
+
data: {
|
|
12345
|
+
providerNumber: providerNumber
|
|
12346
|
+
}
|
|
12347
|
+
}));
|
|
12348
12348
|
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
params: query
|
|
12357
|
-
});
|
|
12358
|
-
};
|
|
12349
|
+
case 3:
|
|
12350
|
+
case "end":
|
|
12351
|
+
return _context2.stop();
|
|
12352
|
+
}
|
|
12353
|
+
}
|
|
12354
|
+
}, _callee2);
|
|
12355
|
+
}));
|
|
12359
12356
|
|
|
12360
|
-
|
|
12357
|
+
return function requestBusinessPracticeStaffMemberProviderNumberToBeEnabled(_x4, _x5, _x6, _x7, _x8) {
|
|
12358
|
+
return _ref2.apply(this, arguments);
|
|
12359
|
+
};
|
|
12360
|
+
}();
|
|
12361
|
+
|
|
12362
|
+
var providerRequests = /*#__PURE__*/Object.freeze({
|
|
12361
12363
|
__proto__: null,
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
getProviderNumberTypes: getProviderNumberTypes,
|
|
12365
|
-
getProviderNumberType: getProviderNumberType
|
|
12364
|
+
createProviderRequest: createProviderRequest,
|
|
12365
|
+
requestBusinessPracticeStaffMemberProviderNumberToBeEnabled: requestBusinessPracticeStaffMemberProviderNumberToBeEnabled
|
|
12366
12366
|
});
|
|
12367
12367
|
|
|
12368
12368
|
function ownKeys$O(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -14475,106 +14475,16 @@ var getSpecialty = function getSpecialty(specialtyId, opts) {
|
|
|
14475
14475
|
var specialties = /*#__PURE__*/Object.freeze({
|
|
14476
14476
|
__proto__: null,
|
|
14477
14477
|
pathBusinessSpecialties: pathBusinessSpecialties,
|
|
14478
|
-
pathSpecialties: pathSpecialties,
|
|
14479
|
-
pathSpecialty: pathSpecialty,
|
|
14480
|
-
getSpecialties: getSpecialties,
|
|
14481
|
-
getBusinessSpecialties: getBusinessSpecialties,
|
|
14482
|
-
getSpecialty: getSpecialty
|
|
14483
|
-
});
|
|
14484
|
-
|
|
14485
|
-
function ownKeys$Y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14486
|
-
|
|
14487
|
-
function _objectSpread$Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$Y(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14488
|
-
var pathLinkStaffProfile = function pathLinkStaffProfile(staffProfileId) {
|
|
14489
|
-
return "/staffprofiles/" + staffProfileId + "/link";
|
|
14490
|
-
};
|
|
14491
|
-
var pathOrganisationStaffProfiles = function pathOrganisationStaffProfiles(organisationId) {
|
|
14492
|
-
return "/organisations/" + organisationId + "/staffprofiles";
|
|
14493
|
-
};
|
|
14494
|
-
var pathStaffProfile = function pathStaffProfile(staffProfileId) {
|
|
14495
|
-
return "/staffprofiles/" + staffProfileId;
|
|
14496
|
-
};
|
|
14497
|
-
var pathUnlinkStaffProfile = function pathUnlinkStaffProfile(staffProfileId) {
|
|
14498
|
-
return "/staffprofiles/" + staffProfileId + "/unlink";
|
|
14499
|
-
};
|
|
14500
|
-
var getOrganisationStaffProfiles = function getOrganisationStaffProfiles(organisationId, query, opts) {
|
|
14501
|
-
if (opts === void 0) {
|
|
14502
|
-
opts = {};
|
|
14503
|
-
}
|
|
14504
|
-
|
|
14505
|
-
doesParamExist.default({
|
|
14506
|
-
organisationId: organisationId
|
|
14507
|
-
}, opts.hyperMediaEndpoint);
|
|
14508
|
-
return request(_objectSpread$Y({}, opts, {
|
|
14509
|
-
path: pathOrganisationStaffProfiles(organisationId)
|
|
14510
|
-
}), {
|
|
14511
|
-
method: 'get',
|
|
14512
|
-
params: query
|
|
14513
|
-
});
|
|
14514
|
-
};
|
|
14515
|
-
var getStaffProfile = function getStaffProfile(staffProfileId, opts) {
|
|
14516
|
-
if (opts === void 0) {
|
|
14517
|
-
opts = {};
|
|
14518
|
-
}
|
|
14519
|
-
|
|
14520
|
-
doesParamExist.default({
|
|
14521
|
-
staffProfileId: staffProfileId
|
|
14522
|
-
}, opts.hyperMediaEndpoint);
|
|
14523
|
-
return request(_objectSpread$Y({}, opts, {
|
|
14524
|
-
path: pathStaffProfile(staffProfileId)
|
|
14525
|
-
}), {
|
|
14526
|
-
method: 'get'
|
|
14527
|
-
});
|
|
14528
|
-
};
|
|
14529
|
-
var linkStaffProfile = function linkStaffProfile(staffProfileId, staffId, opts) {
|
|
14530
|
-
if (opts === void 0) {
|
|
14531
|
-
opts = {};
|
|
14532
|
-
}
|
|
14533
|
-
|
|
14534
|
-
doesParamExist.default({
|
|
14535
|
-
staffProfileId: staffProfileId,
|
|
14536
|
-
staffId: staffId
|
|
14537
|
-
}, opts.hyperMediaEndpoint);
|
|
14538
|
-
var body = {
|
|
14539
|
-
staffId: staffId
|
|
14540
|
-
};
|
|
14541
|
-
return request(_objectSpread$Y({}, opts, {
|
|
14542
|
-
path: pathLinkStaffProfile(staffProfileId)
|
|
14543
|
-
}), {
|
|
14544
|
-
method: 'put',
|
|
14545
|
-
data: body
|
|
14546
|
-
});
|
|
14547
|
-
};
|
|
14548
|
-
var unlinkStaffProfile = function unlinkStaffProfile(staffProfileId, opts) {
|
|
14549
|
-
if (opts === void 0) {
|
|
14550
|
-
opts = {};
|
|
14551
|
-
}
|
|
14552
|
-
|
|
14553
|
-
doesParamExist.default({
|
|
14554
|
-
staffProfileId: staffProfileId
|
|
14555
|
-
}, opts.hyperMediaEndpoint);
|
|
14556
|
-
return request(_objectSpread$Y({}, opts, {
|
|
14557
|
-
path: pathUnlinkStaffProfile(staffProfileId)
|
|
14558
|
-
}), {
|
|
14559
|
-
method: 'put'
|
|
14560
|
-
});
|
|
14561
|
-
};
|
|
14562
|
-
|
|
14563
|
-
var staffProfiles = /*#__PURE__*/Object.freeze({
|
|
14564
|
-
__proto__: null,
|
|
14565
|
-
pathLinkStaffProfile: pathLinkStaffProfile,
|
|
14566
|
-
pathOrganisationStaffProfiles: pathOrganisationStaffProfiles,
|
|
14567
|
-
pathStaffProfile: pathStaffProfile,
|
|
14568
|
-
pathUnlinkStaffProfile: pathUnlinkStaffProfile,
|
|
14569
|
-
getOrganisationStaffProfiles: getOrganisationStaffProfiles,
|
|
14570
|
-
getStaffProfile: getStaffProfile,
|
|
14571
|
-
linkStaffProfile: linkStaffProfile,
|
|
14572
|
-
unlinkStaffProfile: unlinkStaffProfile
|
|
14478
|
+
pathSpecialties: pathSpecialties,
|
|
14479
|
+
pathSpecialty: pathSpecialty,
|
|
14480
|
+
getSpecialties: getSpecialties,
|
|
14481
|
+
getBusinessSpecialties: getBusinessSpecialties,
|
|
14482
|
+
getSpecialty: getSpecialty
|
|
14573
14483
|
});
|
|
14574
14484
|
|
|
14575
|
-
function ownKeys$
|
|
14485
|
+
function ownKeys$Y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14576
14486
|
|
|
14577
|
-
function _objectSpread$
|
|
14487
|
+
function _objectSpread$Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$Y(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14578
14488
|
|
|
14579
14489
|
var pathBusinessPracticeStaffMembers = function pathBusinessPracticeStaffMembers(businessId, practiceId) {
|
|
14580
14490
|
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff";
|
|
@@ -14640,7 +14550,7 @@ var createBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
14640
14550
|
doesParamExist.default({
|
|
14641
14551
|
businessId: businessId
|
|
14642
14552
|
}, opts.hyperMediaEndpoint);
|
|
14643
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
14553
|
+
return _context.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14644
14554
|
path: pathBusinessStaff(businessId)
|
|
14645
14555
|
}), {
|
|
14646
14556
|
method: 'post',
|
|
@@ -14679,7 +14589,7 @@ var createOrganisationStaffMember = /*#__PURE__*/function () {
|
|
|
14679
14589
|
doesParamExist.default({
|
|
14680
14590
|
organisationId: organisationId
|
|
14681
14591
|
}, opts.hyperMediaEndpoint);
|
|
14682
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
14592
|
+
return _context2.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14683
14593
|
path: pathOrganisationStaff(organisationId)
|
|
14684
14594
|
}), {
|
|
14685
14595
|
method: 'post',
|
|
@@ -14719,7 +14629,7 @@ var deleteBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
14719
14629
|
businessId: businessId,
|
|
14720
14630
|
staffId: staffId
|
|
14721
14631
|
}, opts.hyperMediaEndpoint);
|
|
14722
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
14632
|
+
return _context3.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14723
14633
|
path: pathBusinessStaffMember(businessId, staffId)
|
|
14724
14634
|
}), {
|
|
14725
14635
|
method: 'delete'
|
|
@@ -14758,7 +14668,7 @@ var deleteBusinessStaffMemberEmail = /*#__PURE__*/function () {
|
|
|
14758
14668
|
businessId: businessId,
|
|
14759
14669
|
staffId: staffId
|
|
14760
14670
|
}, opts.hyperMediaEndpoint);
|
|
14761
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
14671
|
+
return _context4.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14762
14672
|
path: pathBusinessStaffMember(businessId, staffId) + "/email"
|
|
14763
14673
|
}), {
|
|
14764
14674
|
method: 'delete'
|
|
@@ -14797,7 +14707,7 @@ var getBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
14797
14707
|
businessId: businessId,
|
|
14798
14708
|
staffId: staffId
|
|
14799
14709
|
}, opts.hyperMediaEndpoint);
|
|
14800
|
-
return _context5.abrupt("return", request(_objectSpread$
|
|
14710
|
+
return _context5.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14801
14711
|
path: pathBusinessStaffMember(businessId, staffId)
|
|
14802
14712
|
}), {
|
|
14803
14713
|
method: 'get'
|
|
@@ -14837,7 +14747,7 @@ var getBusinessStaffMemberRoles = /*#__PURE__*/function () {
|
|
|
14837
14747
|
businessId: businessId,
|
|
14838
14748
|
staffId: staffId
|
|
14839
14749
|
}, opts.hyperMediaEndpoint);
|
|
14840
|
-
return _context6.abrupt("return", request(_objectSpread$
|
|
14750
|
+
return _context6.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14841
14751
|
path: pathBusinessStaffMember(businessId, staffId) + "/roles"
|
|
14842
14752
|
}), {
|
|
14843
14753
|
method: 'get',
|
|
@@ -14881,7 +14791,7 @@ var getBusinessPracticeStaffMember = /*#__PURE__*/function () {
|
|
|
14881
14791
|
practiceId: practiceId,
|
|
14882
14792
|
staffId: staffId
|
|
14883
14793
|
}, opts.hyperMediaEndpoint);
|
|
14884
|
-
return _context7.abrupt("return", request(_objectSpread$
|
|
14794
|
+
return _context7.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14885
14795
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId)
|
|
14886
14796
|
}), {
|
|
14887
14797
|
method: 'get'
|
|
@@ -14927,7 +14837,7 @@ var getBusinessPracticeStaffMemberModalities = /*#__PURE__*/function () {
|
|
|
14927
14837
|
practiceId: practiceId,
|
|
14928
14838
|
staffId: staffId
|
|
14929
14839
|
}, opts.hyperMediaEndpoint);
|
|
14930
|
-
return _context8.abrupt("return", request(_objectSpread$
|
|
14840
|
+
return _context8.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14931
14841
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId) + "/modalities"
|
|
14932
14842
|
}), {
|
|
14933
14843
|
method: 'get',
|
|
@@ -14968,7 +14878,7 @@ var getBusinessPracticeStaffMembers = /*#__PURE__*/function () {
|
|
|
14968
14878
|
businessId: businessId,
|
|
14969
14879
|
practiceId: practiceId
|
|
14970
14880
|
}, opts.hyperMediaEndpoint);
|
|
14971
|
-
return _context9.abrupt("return", request(_objectSpread$
|
|
14881
|
+
return _context9.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
14972
14882
|
path: pathBusinessPracticeStaffMembers(businessId, practiceId)
|
|
14973
14883
|
}), {
|
|
14974
14884
|
method: 'get',
|
|
@@ -15011,7 +14921,7 @@ var getBusinessFormPracticeStaffMembers = /*#__PURE__*/function () {
|
|
|
15011
14921
|
formId: formId,
|
|
15012
14922
|
practiceId: practiceId
|
|
15013
14923
|
}, opts.hyperMediaEndpoint);
|
|
15014
|
-
return _context10.abrupt("return", request(_objectSpread$
|
|
14924
|
+
return _context10.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15015
14925
|
path: pathBusinessFormPracticeStaffMembers(businessId, formId, practiceId)
|
|
15016
14926
|
}), {
|
|
15017
14927
|
method: 'get',
|
|
@@ -15056,7 +14966,7 @@ var getBusinessServiceStaffMembers = /*#__PURE__*/function () {
|
|
|
15056
14966
|
businessId: businessId,
|
|
15057
14967
|
serviceId: serviceId
|
|
15058
14968
|
}, opts.hyperMediaEndpoint);
|
|
15059
|
-
return _context11.abrupt("return", request(_objectSpread$
|
|
14969
|
+
return _context11.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15060
14970
|
path: pathBusinessServiceStaffMembers(businessId, serviceId)
|
|
15061
14971
|
}), {
|
|
15062
14972
|
method: 'get',
|
|
@@ -15093,7 +15003,7 @@ var getBusinessStaffMembers = /*#__PURE__*/function () {
|
|
|
15093
15003
|
doesParamExist.default({
|
|
15094
15004
|
businessId: businessId
|
|
15095
15005
|
}, opts.hyperMediaEndpoint);
|
|
15096
|
-
return _context12.abrupt("return", request(_objectSpread$
|
|
15006
|
+
return _context12.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15097
15007
|
path: pathBusinessStaff(businessId)
|
|
15098
15008
|
}), {
|
|
15099
15009
|
method: 'get',
|
|
@@ -15135,7 +15045,7 @@ var getBusinessStaffUploadUrl = /*#__PURE__*/function () {
|
|
|
15135
15045
|
staffId: staffId,
|
|
15136
15046
|
contentType: contentType
|
|
15137
15047
|
}, opts.hyperMediaEndpoint);
|
|
15138
|
-
return _context13.abrupt("return", request(_objectSpread$
|
|
15048
|
+
return _context13.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15139
15049
|
path: pathBusinessStaffMember(businessId, staffId) + "/uploadurlv2"
|
|
15140
15050
|
}), {
|
|
15141
15051
|
method: 'get',
|
|
@@ -15179,7 +15089,7 @@ var getOrganisationStaffMembers = /*#__PURE__*/function () {
|
|
|
15179
15089
|
doesParamExist.default({
|
|
15180
15090
|
organisationId: organisationId
|
|
15181
15091
|
}, opts.hyperMediaEndpoint);
|
|
15182
|
-
return _context14.abrupt("return", request(_objectSpread$
|
|
15092
|
+
return _context14.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15183
15093
|
path: pathOrganisationStaff(organisationId)
|
|
15184
15094
|
}), {
|
|
15185
15095
|
method: 'get',
|
|
@@ -15217,7 +15127,7 @@ var getStaffMember = /*#__PURE__*/function () {
|
|
|
15217
15127
|
doesParamExist.default({
|
|
15218
15128
|
staffId: staffId
|
|
15219
15129
|
}, opts.hyperMediaEndpoint);
|
|
15220
|
-
return _context15.abrupt("return", request(_objectSpread$
|
|
15130
|
+
return _context15.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15221
15131
|
path: pathStaffMember(staffId)
|
|
15222
15132
|
}), {
|
|
15223
15133
|
method: 'get'
|
|
@@ -15259,7 +15169,7 @@ var grantBusinessPracticeStaffRole = /*#__PURE__*/function () {
|
|
|
15259
15169
|
practiceId: practiceId,
|
|
15260
15170
|
staffId: staffId
|
|
15261
15171
|
}, opts.hyperMediaEndpoint);
|
|
15262
|
-
return _context16.abrupt("return", request(_objectSpread$
|
|
15172
|
+
return _context16.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15263
15173
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId) + "/roles"
|
|
15264
15174
|
}), {
|
|
15265
15175
|
method: 'post',
|
|
@@ -15303,11 +15213,11 @@ var grantBusinessStaffRole = /*#__PURE__*/function () {
|
|
|
15303
15213
|
businessId: businessId,
|
|
15304
15214
|
staffId: staffId
|
|
15305
15215
|
}, opts.hyperMediaEndpoint);
|
|
15306
|
-
return _context17.abrupt("return", request(_objectSpread$
|
|
15216
|
+
return _context17.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15307
15217
|
path: pathBusinessStaffMember(businessId, staffId) + "/roles"
|
|
15308
15218
|
}), {
|
|
15309
15219
|
method: 'post',
|
|
15310
|
-
data: _objectSpread$
|
|
15220
|
+
data: _objectSpread$Y({
|
|
15311
15221
|
roleFullName: roleFullName
|
|
15312
15222
|
}, body)
|
|
15313
15223
|
}));
|
|
@@ -15344,7 +15254,7 @@ var inviteNewBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
15344
15254
|
doesParamExist.default({
|
|
15345
15255
|
businessId: businessId
|
|
15346
15256
|
}, opts.hyperMediaEndpoint);
|
|
15347
|
-
return _context18.abrupt("return", request(_objectSpread$
|
|
15257
|
+
return _context18.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15348
15258
|
path: pathBusinessStaff(businessId) + "/invites"
|
|
15349
15259
|
}), {
|
|
15350
15260
|
method: 'post',
|
|
@@ -15389,7 +15299,7 @@ var inviteBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
15389
15299
|
doesParamExist.default({
|
|
15390
15300
|
businessId: businessId
|
|
15391
15301
|
}, opts.hyperMediaEndpoint);
|
|
15392
|
-
return _context19.abrupt("return", request(_objectSpread$
|
|
15302
|
+
return _context19.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15393
15303
|
path: pathBusinessStaffMember(businessId, staffId) + "/invites"
|
|
15394
15304
|
}), {
|
|
15395
15305
|
method: 'post',
|
|
@@ -15432,7 +15342,7 @@ var revokeBusinessPracticeStaffRole = /*#__PURE__*/function () {
|
|
|
15432
15342
|
practiceId: practiceId,
|
|
15433
15343
|
staffId: staffId
|
|
15434
15344
|
}, opts.hyperMediaEndpoint);
|
|
15435
|
-
return _context20.abrupt("return", request(_objectSpread$
|
|
15345
|
+
return _context20.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15436
15346
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId) + "/roles"
|
|
15437
15347
|
}), {
|
|
15438
15348
|
method: 'delete',
|
|
@@ -15476,11 +15386,11 @@ var revokeBusinessStaffRole = /*#__PURE__*/function () {
|
|
|
15476
15386
|
businessId: businessId,
|
|
15477
15387
|
staffId: staffId
|
|
15478
15388
|
}, opts.hyperMediaEndpoint);
|
|
15479
|
-
return _context21.abrupt("return", request(_objectSpread$
|
|
15389
|
+
return _context21.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15480
15390
|
path: pathBusinessStaffMember(businessId, staffId) + "/roles"
|
|
15481
15391
|
}), {
|
|
15482
15392
|
method: 'delete',
|
|
15483
|
-
data: _objectSpread$
|
|
15393
|
+
data: _objectSpread$Y({
|
|
15484
15394
|
roleFullName: roleFullName
|
|
15485
15395
|
}, body)
|
|
15486
15396
|
}));
|
|
@@ -15519,7 +15429,7 @@ var updateBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
15519
15429
|
businessId: businessId,
|
|
15520
15430
|
staffId: staffId
|
|
15521
15431
|
}, opts.hyperMediaEndpoint);
|
|
15522
|
-
return _context22.abrupt("return", request(_objectSpread$
|
|
15432
|
+
return _context22.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15523
15433
|
path: pathBusinessStaffMember(businessId, staffId)
|
|
15524
15434
|
}), {
|
|
15525
15435
|
method: 'put',
|
|
@@ -15560,7 +15470,7 @@ var updateBusinessStaffMemberEmail = /*#__PURE__*/function () {
|
|
|
15560
15470
|
businessId: businessId,
|
|
15561
15471
|
staffId: staffId
|
|
15562
15472
|
}, opts.hyperMediaEndpoint);
|
|
15563
|
-
return _context23.abrupt("return", request(_objectSpread$
|
|
15473
|
+
return _context23.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15564
15474
|
path: pathBusinessStaffMember(businessId, staffId) + "/changeemail"
|
|
15565
15475
|
}), {
|
|
15566
15476
|
method: 'post',
|
|
@@ -15601,7 +15511,7 @@ var updateOrganisationStaffMember = /*#__PURE__*/function () {
|
|
|
15601
15511
|
organisationId: organisationId,
|
|
15602
15512
|
staffId: staffId
|
|
15603
15513
|
}, opts.hyperMediaEndpoint);
|
|
15604
|
-
return _context24.abrupt("return", request(_objectSpread$
|
|
15514
|
+
return _context24.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15605
15515
|
path: pathOrganisationStaffMember(organisationId, staffId)
|
|
15606
15516
|
}), {
|
|
15607
15517
|
method: 'put',
|
|
@@ -15640,7 +15550,7 @@ var verifyStaffMember = /*#__PURE__*/function () {
|
|
|
15640
15550
|
doesParamExist.default({
|
|
15641
15551
|
staffId: staffId
|
|
15642
15552
|
}, opts.hyperMediaEndpoint);
|
|
15643
|
-
return _context25.abrupt("return", request(_objectSpread$
|
|
15553
|
+
return _context25.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15644
15554
|
path: pathStaffMember(staffId) + "/verify"
|
|
15645
15555
|
}), {
|
|
15646
15556
|
method: 'post',
|
|
@@ -15679,7 +15589,7 @@ var cloneStaffMemberIntoBusiness = /*#__PURE__*/function () {
|
|
|
15679
15589
|
doesParamExist.default({
|
|
15680
15590
|
staffId: staffId
|
|
15681
15591
|
}, opts.hyperMediaEndpoint);
|
|
15682
|
-
return _context26.abrupt("return", request(_objectSpread$
|
|
15592
|
+
return _context26.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15683
15593
|
path: pathStaffMember(staffId) + "/clone"
|
|
15684
15594
|
}), {
|
|
15685
15595
|
method: 'post',
|
|
@@ -15713,7 +15623,7 @@ var checkStaffMemberEmailExists = function checkStaffMemberEmailExists(businessI
|
|
|
15713
15623
|
doesParamExist.default({
|
|
15714
15624
|
businessId: businessId
|
|
15715
15625
|
}, opts.hyperMediaEndpoint);
|
|
15716
|
-
return request(_objectSpread$
|
|
15626
|
+
return request(_objectSpread$Y({}, opts, {
|
|
15717
15627
|
path: pathBusinessStaff(businessId) + "/exists"
|
|
15718
15628
|
}), {
|
|
15719
15629
|
method: 'get',
|
|
@@ -15742,7 +15652,7 @@ var createStaffProviderSetItem = /*#__PURE__*/function () {
|
|
|
15742
15652
|
businessId: businessId,
|
|
15743
15653
|
staffId: staffId
|
|
15744
15654
|
}, opts.hyperMediaEndpoint);
|
|
15745
|
-
return _context27.abrupt("return", request(_objectSpread$
|
|
15655
|
+
return _context27.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15746
15656
|
path: "" + pathProviderSetItems(businessId, staffId)
|
|
15747
15657
|
}), {
|
|
15748
15658
|
method: 'post',
|
|
@@ -15785,7 +15695,7 @@ var updateStaffProviderSetItem = /*#__PURE__*/function () {
|
|
|
15785
15695
|
staffId: staffId,
|
|
15786
15696
|
providerSetItemId: providerSetItemId
|
|
15787
15697
|
}, opts.hyperMediaEndpoint);
|
|
15788
|
-
return _context28.abrupt("return", request(_objectSpread$
|
|
15698
|
+
return _context28.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15789
15699
|
path: pathProviderSetItem(businessId, staffId, providerSetItemId)
|
|
15790
15700
|
}), {
|
|
15791
15701
|
method: 'put',
|
|
@@ -15827,7 +15737,7 @@ var deleteStaffProviderSetItem = /*#__PURE__*/function () {
|
|
|
15827
15737
|
staffId: staffId,
|
|
15828
15738
|
providerSetItemId: providerSetItemId
|
|
15829
15739
|
}, opts.hyperMediaEndpoint);
|
|
15830
|
-
return _context29.abrupt("return", request(_objectSpread$
|
|
15740
|
+
return _context29.abrupt("return", request(_objectSpread$Y({}, opts, {
|
|
15831
15741
|
path: pathProviderSetItem(businessId, staffId, providerSetItemId)
|
|
15832
15742
|
}), {
|
|
15833
15743
|
method: 'delete'
|
|
@@ -15880,6 +15790,96 @@ var staff = /*#__PURE__*/Object.freeze({
|
|
|
15880
15790
|
deleteStaffProviderSetItem: deleteStaffProviderSetItem
|
|
15881
15791
|
});
|
|
15882
15792
|
|
|
15793
|
+
function ownKeys$Z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15794
|
+
|
|
15795
|
+
function _objectSpread$Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$Z(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15796
|
+
var pathLinkStaffProfile = function pathLinkStaffProfile(staffProfileId) {
|
|
15797
|
+
return "/staffprofiles/" + staffProfileId + "/link";
|
|
15798
|
+
};
|
|
15799
|
+
var pathOrganisationStaffProfiles = function pathOrganisationStaffProfiles(organisationId) {
|
|
15800
|
+
return "/organisations/" + organisationId + "/staffprofiles";
|
|
15801
|
+
};
|
|
15802
|
+
var pathStaffProfile = function pathStaffProfile(staffProfileId) {
|
|
15803
|
+
return "/staffprofiles/" + staffProfileId;
|
|
15804
|
+
};
|
|
15805
|
+
var pathUnlinkStaffProfile = function pathUnlinkStaffProfile(staffProfileId) {
|
|
15806
|
+
return "/staffprofiles/" + staffProfileId + "/unlink";
|
|
15807
|
+
};
|
|
15808
|
+
var getOrganisationStaffProfiles = function getOrganisationStaffProfiles(organisationId, query, opts) {
|
|
15809
|
+
if (opts === void 0) {
|
|
15810
|
+
opts = {};
|
|
15811
|
+
}
|
|
15812
|
+
|
|
15813
|
+
doesParamExist.default({
|
|
15814
|
+
organisationId: organisationId
|
|
15815
|
+
}, opts.hyperMediaEndpoint);
|
|
15816
|
+
return request(_objectSpread$Z({}, opts, {
|
|
15817
|
+
path: pathOrganisationStaffProfiles(organisationId)
|
|
15818
|
+
}), {
|
|
15819
|
+
method: 'get',
|
|
15820
|
+
params: query
|
|
15821
|
+
});
|
|
15822
|
+
};
|
|
15823
|
+
var getStaffProfile = function getStaffProfile(staffProfileId, opts) {
|
|
15824
|
+
if (opts === void 0) {
|
|
15825
|
+
opts = {};
|
|
15826
|
+
}
|
|
15827
|
+
|
|
15828
|
+
doesParamExist.default({
|
|
15829
|
+
staffProfileId: staffProfileId
|
|
15830
|
+
}, opts.hyperMediaEndpoint);
|
|
15831
|
+
return request(_objectSpread$Z({}, opts, {
|
|
15832
|
+
path: pathStaffProfile(staffProfileId)
|
|
15833
|
+
}), {
|
|
15834
|
+
method: 'get'
|
|
15835
|
+
});
|
|
15836
|
+
};
|
|
15837
|
+
var linkStaffProfile = function linkStaffProfile(staffProfileId, staffId, opts) {
|
|
15838
|
+
if (opts === void 0) {
|
|
15839
|
+
opts = {};
|
|
15840
|
+
}
|
|
15841
|
+
|
|
15842
|
+
doesParamExist.default({
|
|
15843
|
+
staffProfileId: staffProfileId,
|
|
15844
|
+
staffId: staffId
|
|
15845
|
+
}, opts.hyperMediaEndpoint);
|
|
15846
|
+
var body = {
|
|
15847
|
+
staffId: staffId
|
|
15848
|
+
};
|
|
15849
|
+
return request(_objectSpread$Z({}, opts, {
|
|
15850
|
+
path: pathLinkStaffProfile(staffProfileId)
|
|
15851
|
+
}), {
|
|
15852
|
+
method: 'put',
|
|
15853
|
+
data: body
|
|
15854
|
+
});
|
|
15855
|
+
};
|
|
15856
|
+
var unlinkStaffProfile = function unlinkStaffProfile(staffProfileId, opts) {
|
|
15857
|
+
if (opts === void 0) {
|
|
15858
|
+
opts = {};
|
|
15859
|
+
}
|
|
15860
|
+
|
|
15861
|
+
doesParamExist.default({
|
|
15862
|
+
staffProfileId: staffProfileId
|
|
15863
|
+
}, opts.hyperMediaEndpoint);
|
|
15864
|
+
return request(_objectSpread$Z({}, opts, {
|
|
15865
|
+
path: pathUnlinkStaffProfile(staffProfileId)
|
|
15866
|
+
}), {
|
|
15867
|
+
method: 'put'
|
|
15868
|
+
});
|
|
15869
|
+
};
|
|
15870
|
+
|
|
15871
|
+
var staffProfiles = /*#__PURE__*/Object.freeze({
|
|
15872
|
+
__proto__: null,
|
|
15873
|
+
pathLinkStaffProfile: pathLinkStaffProfile,
|
|
15874
|
+
pathOrganisationStaffProfiles: pathOrganisationStaffProfiles,
|
|
15875
|
+
pathStaffProfile: pathStaffProfile,
|
|
15876
|
+
pathUnlinkStaffProfile: pathUnlinkStaffProfile,
|
|
15877
|
+
getOrganisationStaffProfiles: getOrganisationStaffProfiles,
|
|
15878
|
+
getStaffProfile: getStaffProfile,
|
|
15879
|
+
linkStaffProfile: linkStaffProfile,
|
|
15880
|
+
unlinkStaffProfile: unlinkStaffProfile
|
|
15881
|
+
});
|
|
15882
|
+
|
|
15883
15883
|
function ownKeys$_(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15884
15884
|
|
|
15885
15885
|
function _objectSpread$_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$_(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -16969,6 +16969,14 @@ var pathTransactionTerminalCancel = function pathTransactionTerminalCancel(trans
|
|
|
16969
16969
|
var pathTransactionPaymentRefund = function pathTransactionPaymentRefund(transactionId, paymentId) {
|
|
16970
16970
|
return "/transactions/" + transactionId + "/payments/" + paymentId + "/refunds";
|
|
16971
16971
|
};
|
|
16972
|
+
|
|
16973
|
+
var pathCreateEclipseInvoice = function pathCreateEclipseInvoice(businessId) {
|
|
16974
|
+
return "/transactions/invoices/eclipse";
|
|
16975
|
+
};
|
|
16976
|
+
|
|
16977
|
+
var pathReconcileClaim = function pathReconcileClaim(transactionId, claimId) {
|
|
16978
|
+
return "/transactions/" + transactionId + "/claims/" + claimId + "/reconciles";
|
|
16979
|
+
};
|
|
16972
16980
|
/**
|
|
16973
16981
|
* Approve a transaction
|
|
16974
16982
|
* @param {String} transactionId - Transaction ID
|
|
@@ -19096,16 +19104,170 @@ var convertDraft = /*#__PURE__*/function () {
|
|
|
19096
19104
|
};
|
|
19097
19105
|
}();
|
|
19098
19106
|
/**
|
|
19099
|
-
* Archive an invoice
|
|
19100
|
-
* @param {String} transactionId - Transaction ID
|
|
19107
|
+
* Archive an invoice
|
|
19108
|
+
* @param {String} transactionId - Transaction ID
|
|
19109
|
+
* @param {Object} opts - Additional options
|
|
19110
|
+
*/
|
|
19111
|
+
|
|
19112
|
+
var archive = /*#__PURE__*/function () {
|
|
19113
|
+
var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(transactionId, opts) {
|
|
19114
|
+
return _regeneratorRuntime.wrap(function _callee54$(_context54) {
|
|
19115
|
+
while (1) {
|
|
19116
|
+
switch (_context54.prev = _context54.next) {
|
|
19117
|
+
case 0:
|
|
19118
|
+
if (opts === void 0) {
|
|
19119
|
+
opts = {};
|
|
19120
|
+
}
|
|
19121
|
+
|
|
19122
|
+
doesParamExist.default({
|
|
19123
|
+
transactionId: transactionId
|
|
19124
|
+
}, opts.hyperMediaEndpoint);
|
|
19125
|
+
return _context54.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19126
|
+
path: pathTransactionArchives(transactionId)
|
|
19127
|
+
}), {
|
|
19128
|
+
method: 'put'
|
|
19129
|
+
}));
|
|
19130
|
+
|
|
19131
|
+
case 3:
|
|
19132
|
+
case "end":
|
|
19133
|
+
return _context54.stop();
|
|
19134
|
+
}
|
|
19135
|
+
}
|
|
19136
|
+
}, _callee54);
|
|
19137
|
+
}));
|
|
19138
|
+
|
|
19139
|
+
return function archive(_x176, _x177) {
|
|
19140
|
+
return _ref54.apply(this, arguments);
|
|
19141
|
+
};
|
|
19142
|
+
}();
|
|
19143
|
+
/**
|
|
19144
|
+
* Unarchive an invoice
|
|
19145
|
+
* @param {String} transactionId - Transaction ID
|
|
19146
|
+
* @param {Object} opts - Additional options
|
|
19147
|
+
*/
|
|
19148
|
+
|
|
19149
|
+
var unarchive = /*#__PURE__*/function () {
|
|
19150
|
+
var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(transactionId, opts) {
|
|
19151
|
+
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
19152
|
+
while (1) {
|
|
19153
|
+
switch (_context55.prev = _context55.next) {
|
|
19154
|
+
case 0:
|
|
19155
|
+
if (opts === void 0) {
|
|
19156
|
+
opts = {};
|
|
19157
|
+
}
|
|
19158
|
+
|
|
19159
|
+
doesParamExist.default({
|
|
19160
|
+
transactionId: transactionId
|
|
19161
|
+
}, opts.hyperMediaEndpoint);
|
|
19162
|
+
return _context55.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19163
|
+
path: pathTransactionUnarchives(transactionId)
|
|
19164
|
+
}), {
|
|
19165
|
+
method: 'put'
|
|
19166
|
+
}));
|
|
19167
|
+
|
|
19168
|
+
case 3:
|
|
19169
|
+
case "end":
|
|
19170
|
+
return _context55.stop();
|
|
19171
|
+
}
|
|
19172
|
+
}
|
|
19173
|
+
}, _callee55);
|
|
19174
|
+
}));
|
|
19175
|
+
|
|
19176
|
+
return function unarchive(_x178, _x179) {
|
|
19177
|
+
return _ref55.apply(this, arguments);
|
|
19178
|
+
};
|
|
19179
|
+
}();
|
|
19180
|
+
/**
|
|
19181
|
+
* Send terminal input
|
|
19182
|
+
* @param {String} transactionId - Transaction ID
|
|
19183
|
+
* @param {Object} body - Request body
|
|
19184
|
+
* @param {Object} opts - Additional options
|
|
19185
|
+
*/
|
|
19186
|
+
|
|
19187
|
+
var terminalInput = /*#__PURE__*/function () {
|
|
19188
|
+
var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(transactionId, body, opts) {
|
|
19189
|
+
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
19190
|
+
while (1) {
|
|
19191
|
+
switch (_context56.prev = _context56.next) {
|
|
19192
|
+
case 0:
|
|
19193
|
+
if (opts === void 0) {
|
|
19194
|
+
opts = {};
|
|
19195
|
+
}
|
|
19196
|
+
|
|
19197
|
+
doesParamExist.default({
|
|
19198
|
+
transactionId: transactionId
|
|
19199
|
+
}, opts.hyperMediaEndpoint);
|
|
19200
|
+
return _context56.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19201
|
+
path: pathTransactionTerminalInput(transactionId)
|
|
19202
|
+
}), {
|
|
19203
|
+
method: 'post',
|
|
19204
|
+
data: body
|
|
19205
|
+
}));
|
|
19206
|
+
|
|
19207
|
+
case 3:
|
|
19208
|
+
case "end":
|
|
19209
|
+
return _context56.stop();
|
|
19210
|
+
}
|
|
19211
|
+
}
|
|
19212
|
+
}, _callee56);
|
|
19213
|
+
}));
|
|
19214
|
+
|
|
19215
|
+
return function terminalInput(_x180, _x181, _x182) {
|
|
19216
|
+
return _ref56.apply(this, arguments);
|
|
19217
|
+
};
|
|
19218
|
+
}();
|
|
19219
|
+
/**
|
|
19220
|
+
* Send terminal cancellation
|
|
19221
|
+
* @param {String} transactionId - Transaction ID
|
|
19222
|
+
* @param {Object} body - Request body
|
|
19223
|
+
* @param {Object} opts - Additional options
|
|
19224
|
+
*/
|
|
19225
|
+
|
|
19226
|
+
var terminalCancellation = /*#__PURE__*/function () {
|
|
19227
|
+
var _ref57 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(transactionId, body, opts) {
|
|
19228
|
+
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
19229
|
+
while (1) {
|
|
19230
|
+
switch (_context57.prev = _context57.next) {
|
|
19231
|
+
case 0:
|
|
19232
|
+
if (opts === void 0) {
|
|
19233
|
+
opts = {};
|
|
19234
|
+
}
|
|
19235
|
+
|
|
19236
|
+
doesParamExist.default({
|
|
19237
|
+
transactionId: transactionId
|
|
19238
|
+
}, opts.hyperMediaEndpoint);
|
|
19239
|
+
return _context57.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19240
|
+
path: pathTransactionTerminalCancel(transactionId)
|
|
19241
|
+
}), {
|
|
19242
|
+
method: 'post',
|
|
19243
|
+
data: body
|
|
19244
|
+
}));
|
|
19245
|
+
|
|
19246
|
+
case 3:
|
|
19247
|
+
case "end":
|
|
19248
|
+
return _context57.stop();
|
|
19249
|
+
}
|
|
19250
|
+
}
|
|
19251
|
+
}, _callee57);
|
|
19252
|
+
}));
|
|
19253
|
+
|
|
19254
|
+
return function terminalCancellation(_x183, _x184, _x185) {
|
|
19255
|
+
return _ref57.apply(this, arguments);
|
|
19256
|
+
};
|
|
19257
|
+
}();
|
|
19258
|
+
/**
|
|
19259
|
+
* Refund transaction's payment
|
|
19260
|
+
* @param {String} transactionId - TransactionId
|
|
19261
|
+
* @param {String} paymentId - PaymentId
|
|
19262
|
+
* @param {Object} body - Request body
|
|
19101
19263
|
* @param {Object} opts - Additional options
|
|
19102
19264
|
*/
|
|
19103
19265
|
|
|
19104
|
-
var
|
|
19105
|
-
var
|
|
19106
|
-
return _regeneratorRuntime.wrap(function
|
|
19266
|
+
var refundPayment = /*#__PURE__*/function () {
|
|
19267
|
+
var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(transactionId, paymentId, body, opts) {
|
|
19268
|
+
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
19107
19269
|
while (1) {
|
|
19108
|
-
switch (
|
|
19270
|
+
switch (_context58.prev = _context58.next) {
|
|
19109
19271
|
case 0:
|
|
19110
19272
|
if (opts === void 0) {
|
|
19111
19273
|
opts = {};
|
|
@@ -19114,152 +19276,152 @@ var archive = /*#__PURE__*/function () {
|
|
|
19114
19276
|
doesParamExist.default({
|
|
19115
19277
|
transactionId: transactionId
|
|
19116
19278
|
}, opts.hyperMediaEndpoint);
|
|
19117
|
-
return
|
|
19118
|
-
path:
|
|
19279
|
+
return _context58.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19280
|
+
path: pathTransactionPaymentRefund(transactionId, paymentId)
|
|
19119
19281
|
}), {
|
|
19120
|
-
method: '
|
|
19282
|
+
method: 'post',
|
|
19283
|
+
data: body
|
|
19121
19284
|
}));
|
|
19122
19285
|
|
|
19123
19286
|
case 3:
|
|
19124
19287
|
case "end":
|
|
19125
|
-
return
|
|
19288
|
+
return _context58.stop();
|
|
19126
19289
|
}
|
|
19127
19290
|
}
|
|
19128
|
-
},
|
|
19291
|
+
}, _callee58);
|
|
19129
19292
|
}));
|
|
19130
19293
|
|
|
19131
|
-
return function
|
|
19132
|
-
return
|
|
19294
|
+
return function refundPayment(_x186, _x187, _x188, _x189) {
|
|
19295
|
+
return _ref58.apply(this, arguments);
|
|
19133
19296
|
};
|
|
19134
19297
|
}();
|
|
19135
19298
|
/**
|
|
19136
|
-
*
|
|
19137
|
-
* @param {
|
|
19299
|
+
* Create ECLIPSE invoice
|
|
19300
|
+
* @param {Object} body - Request body
|
|
19138
19301
|
* @param {Object} opts - Additional options
|
|
19139
19302
|
*/
|
|
19140
19303
|
|
|
19141
|
-
var
|
|
19142
|
-
var
|
|
19143
|
-
return _regeneratorRuntime.wrap(function
|
|
19304
|
+
var createEclipseInvoice = /*#__PURE__*/function () {
|
|
19305
|
+
var _ref59 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(body, opts) {
|
|
19306
|
+
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
19144
19307
|
while (1) {
|
|
19145
|
-
switch (
|
|
19308
|
+
switch (_context59.prev = _context59.next) {
|
|
19146
19309
|
case 0:
|
|
19147
19310
|
if (opts === void 0) {
|
|
19148
19311
|
opts = {};
|
|
19149
19312
|
}
|
|
19150
19313
|
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
}, opts.hyperMediaEndpoint);
|
|
19154
|
-
return _context55.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19155
|
-
path: pathTransactionUnarchives(transactionId)
|
|
19314
|
+
return _context59.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19315
|
+
path: pathCreateEclipseInvoice()
|
|
19156
19316
|
}), {
|
|
19157
|
-
method: '
|
|
19317
|
+
method: 'post',
|
|
19318
|
+
data: body
|
|
19158
19319
|
}));
|
|
19159
19320
|
|
|
19160
|
-
case
|
|
19321
|
+
case 2:
|
|
19161
19322
|
case "end":
|
|
19162
|
-
return
|
|
19323
|
+
return _context59.stop();
|
|
19163
19324
|
}
|
|
19164
19325
|
}
|
|
19165
|
-
},
|
|
19326
|
+
}, _callee59);
|
|
19166
19327
|
}));
|
|
19167
19328
|
|
|
19168
|
-
return function
|
|
19169
|
-
return
|
|
19329
|
+
return function createEclipseInvoice(_x190, _x191) {
|
|
19330
|
+
return _ref59.apply(this, arguments);
|
|
19170
19331
|
};
|
|
19171
19332
|
}();
|
|
19172
19333
|
/**
|
|
19173
|
-
*
|
|
19334
|
+
* Get business ECLIPSE transaction payment report
|
|
19335
|
+
* @param {String} businessId - Business ID
|
|
19174
19336
|
* @param {String} transactionId - Transaction ID
|
|
19175
|
-
* @param {Object} body - Request body
|
|
19176
19337
|
* @param {Object} opts - Additional options
|
|
19177
19338
|
*/
|
|
19178
19339
|
|
|
19179
|
-
var
|
|
19180
|
-
var
|
|
19181
|
-
return _regeneratorRuntime.wrap(function
|
|
19340
|
+
var getBusinessEclipseTransactionPaymentReport = /*#__PURE__*/function () {
|
|
19341
|
+
var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(businessId, transactionId, query, opts) {
|
|
19342
|
+
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
19182
19343
|
while (1) {
|
|
19183
|
-
switch (
|
|
19344
|
+
switch (_context60.prev = _context60.next) {
|
|
19184
19345
|
case 0:
|
|
19185
19346
|
if (opts === void 0) {
|
|
19186
19347
|
opts = {};
|
|
19187
19348
|
}
|
|
19188
19349
|
|
|
19189
19350
|
doesParamExist.default({
|
|
19351
|
+
businessId: businessId,
|
|
19190
19352
|
transactionId: transactionId
|
|
19191
19353
|
}, opts.hyperMediaEndpoint);
|
|
19192
|
-
return
|
|
19193
|
-
path:
|
|
19354
|
+
return _context60.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19355
|
+
path: pathBusinessTransaction(businessId, transactionId) + "/paymentreport/eclipse"
|
|
19194
19356
|
}), {
|
|
19195
|
-
method: '
|
|
19196
|
-
|
|
19357
|
+
method: 'get',
|
|
19358
|
+
params: query
|
|
19197
19359
|
}));
|
|
19198
19360
|
|
|
19199
19361
|
case 3:
|
|
19200
19362
|
case "end":
|
|
19201
|
-
return
|
|
19363
|
+
return _context60.stop();
|
|
19202
19364
|
}
|
|
19203
19365
|
}
|
|
19204
|
-
},
|
|
19366
|
+
}, _callee60);
|
|
19205
19367
|
}));
|
|
19206
19368
|
|
|
19207
|
-
return function
|
|
19208
|
-
return
|
|
19369
|
+
return function getBusinessEclipseTransactionPaymentReport(_x192, _x193, _x194, _x195) {
|
|
19370
|
+
return _ref60.apply(this, arguments);
|
|
19209
19371
|
};
|
|
19210
19372
|
}();
|
|
19211
19373
|
/**
|
|
19212
|
-
*
|
|
19374
|
+
* Get business ECLIPSE transaction processing report
|
|
19375
|
+
* @param {String} businessId - Business ID
|
|
19213
19376
|
* @param {String} transactionId - Transaction ID
|
|
19214
|
-
* @param {Object} body - Request body
|
|
19215
19377
|
* @param {Object} opts - Additional options
|
|
19216
19378
|
*/
|
|
19217
19379
|
|
|
19218
|
-
var
|
|
19219
|
-
var
|
|
19220
|
-
return _regeneratorRuntime.wrap(function
|
|
19380
|
+
var getBusinessEclipseTransactionProcessingReport = /*#__PURE__*/function () {
|
|
19381
|
+
var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(businessId, transactionId, query, opts) {
|
|
19382
|
+
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
19221
19383
|
while (1) {
|
|
19222
|
-
switch (
|
|
19384
|
+
switch (_context61.prev = _context61.next) {
|
|
19223
19385
|
case 0:
|
|
19224
19386
|
if (opts === void 0) {
|
|
19225
19387
|
opts = {};
|
|
19226
19388
|
}
|
|
19227
19389
|
|
|
19228
19390
|
doesParamExist.default({
|
|
19391
|
+
businessId: businessId,
|
|
19229
19392
|
transactionId: transactionId
|
|
19230
19393
|
}, opts.hyperMediaEndpoint);
|
|
19231
|
-
return
|
|
19232
|
-
path:
|
|
19394
|
+
return _context61.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19395
|
+
path: pathBusinessTransaction(businessId, transactionId) + "/processingreport/eclipse"
|
|
19233
19396
|
}), {
|
|
19234
|
-
method: '
|
|
19235
|
-
|
|
19397
|
+
method: 'get',
|
|
19398
|
+
params: query
|
|
19236
19399
|
}));
|
|
19237
19400
|
|
|
19238
19401
|
case 3:
|
|
19239
19402
|
case "end":
|
|
19240
|
-
return
|
|
19403
|
+
return _context61.stop();
|
|
19241
19404
|
}
|
|
19242
19405
|
}
|
|
19243
|
-
},
|
|
19406
|
+
}, _callee61);
|
|
19244
19407
|
}));
|
|
19245
19408
|
|
|
19246
|
-
return function
|
|
19247
|
-
return
|
|
19409
|
+
return function getBusinessEclipseTransactionProcessingReport(_x196, _x197, _x198, _x199) {
|
|
19410
|
+
return _ref61.apply(this, arguments);
|
|
19248
19411
|
};
|
|
19249
19412
|
}();
|
|
19250
19413
|
/**
|
|
19251
|
-
*
|
|
19414
|
+
* Reconciles a claim
|
|
19252
19415
|
* @param {String} transactionId - TransactionId
|
|
19253
|
-
* @param {String}
|
|
19254
|
-
* @param {Object} body - Request body
|
|
19416
|
+
* @param {String} claimId - ClaimId
|
|
19255
19417
|
* @param {Object} opts - Additional options
|
|
19256
19418
|
*/
|
|
19257
19419
|
|
|
19258
|
-
var
|
|
19259
|
-
var
|
|
19260
|
-
return _regeneratorRuntime.wrap(function
|
|
19420
|
+
var reconcileClaim = /*#__PURE__*/function () {
|
|
19421
|
+
var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(transactionId, claimId, opts) {
|
|
19422
|
+
return _regeneratorRuntime.wrap(function _callee62$(_context62) {
|
|
19261
19423
|
while (1) {
|
|
19262
|
-
switch (
|
|
19424
|
+
switch (_context62.prev = _context62.next) {
|
|
19263
19425
|
case 0:
|
|
19264
19426
|
if (opts === void 0) {
|
|
19265
19427
|
opts = {};
|
|
@@ -19268,23 +19430,22 @@ var refundPayment = /*#__PURE__*/function () {
|
|
|
19268
19430
|
doesParamExist.default({
|
|
19269
19431
|
transactionId: transactionId
|
|
19270
19432
|
}, opts.hyperMediaEndpoint);
|
|
19271
|
-
return
|
|
19272
|
-
path:
|
|
19433
|
+
return _context62.abrupt("return", request(_objectSpread$12({}, opts, {
|
|
19434
|
+
path: pathReconcileClaim(transactionId, claimId)
|
|
19273
19435
|
}), {
|
|
19274
|
-
method: 'post'
|
|
19275
|
-
data: body
|
|
19436
|
+
method: 'post'
|
|
19276
19437
|
}));
|
|
19277
19438
|
|
|
19278
19439
|
case 3:
|
|
19279
19440
|
case "end":
|
|
19280
|
-
return
|
|
19441
|
+
return _context62.stop();
|
|
19281
19442
|
}
|
|
19282
19443
|
}
|
|
19283
|
-
},
|
|
19444
|
+
}, _callee62);
|
|
19284
19445
|
}));
|
|
19285
19446
|
|
|
19286
|
-
return function
|
|
19287
|
-
return
|
|
19447
|
+
return function reconcileClaim(_x200, _x201, _x202) {
|
|
19448
|
+
return _ref62.apply(this, arguments);
|
|
19288
19449
|
};
|
|
19289
19450
|
}();
|
|
19290
19451
|
|
|
@@ -19347,7 +19508,11 @@ var transactions = /*#__PURE__*/Object.freeze({
|
|
|
19347
19508
|
unarchive: unarchive,
|
|
19348
19509
|
terminalInput: terminalInput,
|
|
19349
19510
|
terminalCancellation: terminalCancellation,
|
|
19350
|
-
refundPayment: refundPayment
|
|
19511
|
+
refundPayment: refundPayment,
|
|
19512
|
+
createEclipseInvoice: createEclipseInvoice,
|
|
19513
|
+
getBusinessEclipseTransactionPaymentReport: getBusinessEclipseTransactionPaymentReport,
|
|
19514
|
+
getBusinessEclipseTransactionProcessingReport: getBusinessEclipseTransactionProcessingReport,
|
|
19515
|
+
reconcileClaim: reconcileClaim
|
|
19351
19516
|
});
|
|
19352
19517
|
|
|
19353
19518
|
function ownKeys$13(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -20523,6 +20688,82 @@ var versions = /*#__PURE__*/Object.freeze({
|
|
|
20523
20688
|
checkAppVersion: checkAppVersion
|
|
20524
20689
|
});
|
|
20525
20690
|
|
|
20691
|
+
var _getSelfApplicationCache;
|
|
20692
|
+
|
|
20693
|
+
var _getSelfApplicationCacheInProgress = false;
|
|
20694
|
+
var getSelfApplicationCached = /*#__PURE__*/function () {
|
|
20695
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
20696
|
+
var data;
|
|
20697
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
20698
|
+
while (1) {
|
|
20699
|
+
switch (_context.prev = _context.next) {
|
|
20700
|
+
case 0:
|
|
20701
|
+
if (!_getSelfApplicationCache) {
|
|
20702
|
+
_context.next = 2;
|
|
20703
|
+
break;
|
|
20704
|
+
}
|
|
20705
|
+
|
|
20706
|
+
return _context.abrupt("return", _getSelfApplicationCache);
|
|
20707
|
+
|
|
20708
|
+
case 2:
|
|
20709
|
+
if (_getSelfApplicationCacheInProgress) {
|
|
20710
|
+
_context.next = 13;
|
|
20711
|
+
break;
|
|
20712
|
+
}
|
|
20713
|
+
|
|
20714
|
+
_context.prev = 3;
|
|
20715
|
+
_getSelfApplicationCacheInProgress = true;
|
|
20716
|
+
_context.next = 7;
|
|
20717
|
+
return sdk.applications.getSelfApplication();
|
|
20718
|
+
|
|
20719
|
+
case 7:
|
|
20720
|
+
_getSelfApplicationCache = _context.sent;
|
|
20721
|
+
|
|
20722
|
+
case 8:
|
|
20723
|
+
_context.prev = 8;
|
|
20724
|
+
_getSelfApplicationCacheInProgress = false;
|
|
20725
|
+
return _context.finish(8);
|
|
20726
|
+
|
|
20727
|
+
case 11:
|
|
20728
|
+
_context.next = 18;
|
|
20729
|
+
break;
|
|
20730
|
+
|
|
20731
|
+
case 13:
|
|
20732
|
+
_context.next = 15;
|
|
20733
|
+
return new Promise(function (resolve) {
|
|
20734
|
+
return setTimeout(resolve, 100);
|
|
20735
|
+
});
|
|
20736
|
+
|
|
20737
|
+
case 15:
|
|
20738
|
+
data = _getSelfApplicationCache;
|
|
20739
|
+
|
|
20740
|
+
case 16:
|
|
20741
|
+
if (!data) {
|
|
20742
|
+
_context.next = 13;
|
|
20743
|
+
break;
|
|
20744
|
+
}
|
|
20745
|
+
|
|
20746
|
+
case 17:
|
|
20747
|
+
return _context.abrupt("return", data);
|
|
20748
|
+
|
|
20749
|
+
case 18:
|
|
20750
|
+
case "end":
|
|
20751
|
+
return _context.stop();
|
|
20752
|
+
}
|
|
20753
|
+
}
|
|
20754
|
+
}, _callee, null, [[3,, 8, 11]]);
|
|
20755
|
+
}));
|
|
20756
|
+
|
|
20757
|
+
return function getSelfApplicationCached() {
|
|
20758
|
+
return _ref.apply(this, arguments);
|
|
20759
|
+
};
|
|
20760
|
+
}();
|
|
20761
|
+
|
|
20762
|
+
var applicationUtils = /*#__PURE__*/Object.freeze({
|
|
20763
|
+
__proto__: null,
|
|
20764
|
+
getSelfApplicationCached: getSelfApplicationCached
|
|
20765
|
+
});
|
|
20766
|
+
|
|
20526
20767
|
function ownKeys$19(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20527
20768
|
|
|
20528
20769
|
function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$19(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$19(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -20610,82 +20851,6 @@ var professionsUtils = /*#__PURE__*/Object.freeze({
|
|
|
20610
20851
|
parseProfessions: parseProfessions
|
|
20611
20852
|
});
|
|
20612
20853
|
|
|
20613
|
-
var _getSelfApplicationCache;
|
|
20614
|
-
|
|
20615
|
-
var _getSelfApplicationCacheInProgress = false;
|
|
20616
|
-
var getSelfApplicationCached = /*#__PURE__*/function () {
|
|
20617
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
20618
|
-
var data;
|
|
20619
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
20620
|
-
while (1) {
|
|
20621
|
-
switch (_context.prev = _context.next) {
|
|
20622
|
-
case 0:
|
|
20623
|
-
if (!_getSelfApplicationCache) {
|
|
20624
|
-
_context.next = 2;
|
|
20625
|
-
break;
|
|
20626
|
-
}
|
|
20627
|
-
|
|
20628
|
-
return _context.abrupt("return", _getSelfApplicationCache);
|
|
20629
|
-
|
|
20630
|
-
case 2:
|
|
20631
|
-
if (_getSelfApplicationCacheInProgress) {
|
|
20632
|
-
_context.next = 13;
|
|
20633
|
-
break;
|
|
20634
|
-
}
|
|
20635
|
-
|
|
20636
|
-
_context.prev = 3;
|
|
20637
|
-
_getSelfApplicationCacheInProgress = true;
|
|
20638
|
-
_context.next = 7;
|
|
20639
|
-
return sdk.applications.getSelfApplication();
|
|
20640
|
-
|
|
20641
|
-
case 7:
|
|
20642
|
-
_getSelfApplicationCache = _context.sent;
|
|
20643
|
-
|
|
20644
|
-
case 8:
|
|
20645
|
-
_context.prev = 8;
|
|
20646
|
-
_getSelfApplicationCacheInProgress = false;
|
|
20647
|
-
return _context.finish(8);
|
|
20648
|
-
|
|
20649
|
-
case 11:
|
|
20650
|
-
_context.next = 18;
|
|
20651
|
-
break;
|
|
20652
|
-
|
|
20653
|
-
case 13:
|
|
20654
|
-
_context.next = 15;
|
|
20655
|
-
return new Promise(function (resolve) {
|
|
20656
|
-
return setTimeout(resolve, 100);
|
|
20657
|
-
});
|
|
20658
|
-
|
|
20659
|
-
case 15:
|
|
20660
|
-
data = _getSelfApplicationCache;
|
|
20661
|
-
|
|
20662
|
-
case 16:
|
|
20663
|
-
if (!data) {
|
|
20664
|
-
_context.next = 13;
|
|
20665
|
-
break;
|
|
20666
|
-
}
|
|
20667
|
-
|
|
20668
|
-
case 17:
|
|
20669
|
-
return _context.abrupt("return", data);
|
|
20670
|
-
|
|
20671
|
-
case 18:
|
|
20672
|
-
case "end":
|
|
20673
|
-
return _context.stop();
|
|
20674
|
-
}
|
|
20675
|
-
}
|
|
20676
|
-
}, _callee, null, [[3,, 8, 11]]);
|
|
20677
|
-
}));
|
|
20678
|
-
|
|
20679
|
-
return function getSelfApplicationCached() {
|
|
20680
|
-
return _ref.apply(this, arguments);
|
|
20681
|
-
};
|
|
20682
|
-
}();
|
|
20683
|
-
|
|
20684
|
-
var applicationUtils = /*#__PURE__*/Object.freeze({
|
|
20685
|
-
__proto__: null,
|
|
20686
|
-
getSelfApplicationCached: getSelfApplicationCached
|
|
20687
|
-
});
|
|
20688
|
-
|
|
20689
20854
|
function ownKeys$1a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20690
20855
|
|
|
20691
20856
|
function _objectSpread$1a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -21343,6 +21508,7 @@ exports.createBusinessSubscription = createBusinessSubscription;
|
|
|
21343
21508
|
exports.createBusinessTransactionQuote = createBusinessTransactionQuote;
|
|
21344
21509
|
exports.createConsumerAccount = createConsumerAccount;
|
|
21345
21510
|
exports.createDocAccount = createDocAccount;
|
|
21511
|
+
exports.createEclipseInvoice = createEclipseInvoice;
|
|
21346
21512
|
exports.createEmailPackage = createEmailPackage;
|
|
21347
21513
|
exports.createHealthFundDocumentNote = createHealthFundDocumentNote;
|
|
21348
21514
|
exports.createHealthFundForm = createHealthFundForm;
|
|
@@ -21442,6 +21608,8 @@ exports.getBusinessClaimItems = getBusinessClaimItems;
|
|
|
21442
21608
|
exports.getBusinessClientToken = getBusinessClientToken;
|
|
21443
21609
|
exports.getBusinessDocument = getBusinessDocument;
|
|
21444
21610
|
exports.getBusinessDocuments = getBusinessDocuments;
|
|
21611
|
+
exports.getBusinessEclipseTransactionPaymentReport = getBusinessEclipseTransactionPaymentReport;
|
|
21612
|
+
exports.getBusinessEclipseTransactionProcessingReport = getBusinessEclipseTransactionProcessingReport;
|
|
21445
21613
|
exports.getBusinessForm = getBusinessForm;
|
|
21446
21614
|
exports.getBusinessFormApplication = getBusinessFormApplication;
|
|
21447
21615
|
exports.getBusinessFormApplicationTemplate = getBusinessFormApplicationTemplate;
|
|
@@ -21792,6 +21960,7 @@ exports.pathUnlinkStaffProfile = pathUnlinkStaffProfile;
|
|
|
21792
21960
|
exports.pathUploadUrlByBusinessId = pathUploadUrlByBusinessId;
|
|
21793
21961
|
exports.pay = pay;
|
|
21794
21962
|
exports.publishHealthFundForm = publishHealthFundForm;
|
|
21963
|
+
exports.reconcileClaim = reconcileClaim;
|
|
21795
21964
|
exports.refund = refund;
|
|
21796
21965
|
exports.refundByBusiness = refundByBusiness;
|
|
21797
21966
|
exports.refundPayment = refundPayment;
|