@medipass/web-sdk 11.26.1-chore-eslint-config.0 → 11.27.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-077cd6cc.js → regions-ed54f163.js} +1 -1
- package/lib/resources/accounts.js +7 -7
- package/lib/resources/accounts.js.flow +1 -2
- 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 +10 -7
- package/lib/resources/healthfunds.js.flow +36 -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 +5 -6
- 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 +2 -3
- 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 +7 -7
- package/lib/resources/transactions.js.flow +2 -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 +1 -2
- package/lib/services/version.js +7 -7
- package/lib/{staff-dbbdcfa2.js → staff-a42b6df2.js} +788 -670
- package/lib/{storage-7766668f.js → storage-16fd26f8.js} +1 -1
- package/lib/utils/application.js +7 -7
- package/lib/utils/does-param-exist.js.flow +1 -2
- 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 +0 -1
- package/lib/utils/request.js +7 -7
- package/lib/utils/request.js.flow +2 -3
- 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 _isEmpty = _interopDefault(require('lodash/isEmpty'));
|
|
19
|
+
var storage = require('./storage-16fd26f8.js');
|
|
21
20
|
var _omitBy = _interopDefault(require('lodash/omitBy'));
|
|
21
|
+
var _isEmpty = _interopDefault(require('lodash/isEmpty'));
|
|
22
22
|
var platform = _interopDefault(require('platform'));
|
|
23
23
|
var constants = require('@medipass/utils/constants');
|
|
24
|
-
var braintreeApplePay = _interopDefault(require('braintree-web/apple-pay'));
|
|
25
24
|
var braintreeClient = _interopDefault(require('braintree-web/client'));
|
|
26
25
|
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');
|
|
32
33
|
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,124 +2216,6 @@ 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; }
|
|
2337
2219
|
var pathGetClaimAttachmentUrl = function pathGetClaimAttachmentUrl(businessId, practiceId, staffId) {
|
|
2338
2220
|
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/attachments/uploadurl";
|
|
2339
2221
|
};
|
|
@@ -2362,7 +2244,7 @@ var getClaimAttachmentUrl = function getClaimAttachmentUrl(businessId, practiceI
|
|
|
2362
2244
|
practiceId: practiceId,
|
|
2363
2245
|
staffId: staffId
|
|
2364
2246
|
}, opts.hyperMediaEndpoint);
|
|
2365
|
-
return request(_objectSpread$
|
|
2247
|
+
return request(_objectSpread$4({}, opts, {
|
|
2366
2248
|
path: pathGetClaimAttachmentUrl(businessId, practiceId, staffId)
|
|
2367
2249
|
}), {
|
|
2368
2250
|
method: 'get',
|
|
@@ -2388,7 +2270,7 @@ var scanClaimFile = function scanClaimFile(businessId, practiceId, staffId, body
|
|
|
2388
2270
|
practiceId: practiceId,
|
|
2389
2271
|
staffId: staffId
|
|
2390
2272
|
}, opts.hyperMediaEndpoint);
|
|
2391
|
-
return request(_objectSpread$
|
|
2273
|
+
return request(_objectSpread$4({}, opts, {
|
|
2392
2274
|
path: pathScanClaimFile(businessId, practiceId, staffId)
|
|
2393
2275
|
}), {
|
|
2394
2276
|
method: 'post',
|
|
@@ -2416,7 +2298,7 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
|
|
|
2416
2298
|
staffId: staffId,
|
|
2417
2299
|
s3SignedUrlId: s3SignedUrlId
|
|
2418
2300
|
}, opts.hyperMediaEndpoint);
|
|
2419
|
-
return request(_objectSpread$
|
|
2301
|
+
return request(_objectSpread$4({}, opts, {
|
|
2420
2302
|
path: pathGetS3SignedUrl(businessId, practiceId, staffId, s3SignedUrlId)
|
|
2421
2303
|
}), {
|
|
2422
2304
|
method: 'get',
|
|
@@ -2434,9 +2316,9 @@ var attachments = /*#__PURE__*/Object.freeze({
|
|
|
2434
2316
|
getS3SignedUrl: getS3SignedUrl
|
|
2435
2317
|
});
|
|
2436
2318
|
|
|
2437
|
-
function ownKeys$
|
|
2319
|
+
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; }
|
|
2438
2320
|
|
|
2439
|
-
function _objectSpread$
|
|
2321
|
+
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; }
|
|
2440
2322
|
var PATH__MEMBERS = '/members';
|
|
2441
2323
|
var PATH__DISCOVER_MEMBERS = '/discovery/members';
|
|
2442
2324
|
|
|
@@ -2480,7 +2362,7 @@ var checkDupe = /*#__PURE__*/function () {
|
|
|
2480
2362
|
opts = {};
|
|
2481
2363
|
}
|
|
2482
2364
|
|
|
2483
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
2365
|
+
return _context.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2484
2366
|
path: PATH__MEMBERS + "/checkdupe"
|
|
2485
2367
|
}), {
|
|
2486
2368
|
method: 'post',
|
|
@@ -2516,7 +2398,7 @@ var createAccountMember = /*#__PURE__*/function () {
|
|
|
2516
2398
|
opts = {};
|
|
2517
2399
|
}
|
|
2518
2400
|
|
|
2519
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
2401
|
+
return _context2.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2520
2402
|
path: pathAccountMembers(accountId)
|
|
2521
2403
|
}), {
|
|
2522
2404
|
method: 'post',
|
|
@@ -2555,7 +2437,7 @@ var deleteMember = /*#__PURE__*/function () {
|
|
|
2555
2437
|
doesParamExist.default({
|
|
2556
2438
|
memberId: memberId
|
|
2557
2439
|
}, opts.hyperMediaEndpoint);
|
|
2558
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
2440
|
+
return _context3.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2559
2441
|
path: pathMember(memberId)
|
|
2560
2442
|
}), {
|
|
2561
2443
|
method: 'delete'
|
|
@@ -2589,7 +2471,7 @@ var discoverMember = /*#__PURE__*/function () {
|
|
|
2589
2471
|
opts = {};
|
|
2590
2472
|
}
|
|
2591
2473
|
|
|
2592
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
2474
|
+
return _context4.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2593
2475
|
path: PATH__DISCOVER_MEMBERS
|
|
2594
2476
|
}), {
|
|
2595
2477
|
method: 'get',
|
|
@@ -2628,7 +2510,7 @@ var inviteAnyone = /*#__PURE__*/function () {
|
|
|
2628
2510
|
doesParamExist.default({
|
|
2629
2511
|
businessId: businessId
|
|
2630
2512
|
}, opts.hyperMediaEndpoint);
|
|
2631
|
-
return _context5.abrupt("return", request(_objectSpread$
|
|
2513
|
+
return _context5.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2632
2514
|
path: pathBusinessMembers(businessId) + "/invites"
|
|
2633
2515
|
}), {
|
|
2634
2516
|
method: 'post',
|
|
@@ -2666,7 +2548,7 @@ var inviteMember = /*#__PURE__*/function () {
|
|
|
2666
2548
|
doesParamExist.default({
|
|
2667
2549
|
memberId: memberId
|
|
2668
2550
|
}, opts.hyperMediaEndpoint);
|
|
2669
|
-
return _context6.abrupt("return", request(_objectSpread$
|
|
2551
|
+
return _context6.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2670
2552
|
path: pathMember(memberId) + "/invites"
|
|
2671
2553
|
}), {
|
|
2672
2554
|
method: 'post'
|
|
@@ -2705,7 +2587,7 @@ var getAccountMembers = /*#__PURE__*/function () {
|
|
|
2705
2587
|
opts = {};
|
|
2706
2588
|
}
|
|
2707
2589
|
|
|
2708
|
-
return _context7.abrupt("return", request(_objectSpread$
|
|
2590
|
+
return _context7.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2709
2591
|
path: pathAccountMembers(accountId)
|
|
2710
2592
|
}), {
|
|
2711
2593
|
method: 'get',
|
|
@@ -2744,7 +2626,7 @@ var getMembersForHealthFund = /*#__PURE__*/function () {
|
|
|
2744
2626
|
opts = {};
|
|
2745
2627
|
}
|
|
2746
2628
|
|
|
2747
|
-
return _context8.abrupt("return", request(_objectSpread$
|
|
2629
|
+
return _context8.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2748
2630
|
path: pathMembersForHealthFund(healthFundId)
|
|
2749
2631
|
}), {
|
|
2750
2632
|
method: 'get',
|
|
@@ -2780,7 +2662,7 @@ var getHealthFundMemberByMemberId = /*#__PURE__*/function () {
|
|
|
2780
2662
|
opts = {};
|
|
2781
2663
|
}
|
|
2782
2664
|
|
|
2783
|
-
return _context9.abrupt("return", request(_objectSpread$
|
|
2665
|
+
return _context9.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2784
2666
|
path: pathHealthFundMemberByMemberId(healthFundId, memberId)
|
|
2785
2667
|
}), {
|
|
2786
2668
|
method: 'get'
|
|
@@ -2822,7 +2704,7 @@ var getBusinessMembers = /*#__PURE__*/function () {
|
|
|
2822
2704
|
doesParamExist.default({
|
|
2823
2705
|
businessId: businessId
|
|
2824
2706
|
}, opts.hyperMediaEndpoint);
|
|
2825
|
-
return _context10.abrupt("return", request(_objectSpread$
|
|
2707
|
+
return _context10.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2826
2708
|
path: pathBusinessMembers(businessId)
|
|
2827
2709
|
}), {
|
|
2828
2710
|
method: 'get',
|
|
@@ -2861,7 +2743,7 @@ var getBusinessMember = /*#__PURE__*/function () {
|
|
|
2861
2743
|
doesParamExist.default({
|
|
2862
2744
|
businessId: businessId
|
|
2863
2745
|
}, opts.hyperMediaEndpoint);
|
|
2864
|
-
return _context11.abrupt("return", request(_objectSpread$
|
|
2746
|
+
return _context11.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2865
2747
|
path: pathBusinessMember(businessId, memberId)
|
|
2866
2748
|
}), {
|
|
2867
2749
|
method: 'get'
|
|
@@ -2898,7 +2780,7 @@ var getMembers = /*#__PURE__*/function () {
|
|
|
2898
2780
|
opts = {};
|
|
2899
2781
|
}
|
|
2900
2782
|
|
|
2901
|
-
return _context12.abrupt("return", request(_objectSpread$
|
|
2783
|
+
return _context12.abrupt("return", request(_objectSpread$5({}, opts, {
|
|
2902
2784
|
path: PATH__MEMBERS
|
|
2903
2785
|
}), {
|
|
2904
2786
|
method: 'get',
|
|
@@ -2938,7 +2820,7 @@ var getMember = /*#__PURE__*/function () {
|
|
|
2938
2820
|
memberId: memberId
|
|
2939
2821
|
}, opts.hyperMediaEndpoint);
|
|
2940
2822
|
_context13.next = 4;
|
|
2941
|
-
return request(_objectSpread$
|
|
2823
|
+
return request(_objectSpread$5({}, opts, {
|
|
2942
2824
|
path: pathMember(memberId)
|
|
2943
2825
|
}), {
|
|
2944
2826
|
method: 'get'
|
|
@@ -2987,7 +2869,7 @@ var updateMember = /*#__PURE__*/function () {
|
|
|
2987
2869
|
memberId: memberId
|
|
2988
2870
|
}, opts.hyperMediaEndpoint);
|
|
2989
2871
|
_context14.next = 4;
|
|
2990
|
-
return request(_objectSpread$
|
|
2872
|
+
return request(_objectSpread$5({}, opts, {
|
|
2991
2873
|
path: pathMember(memberId)
|
|
2992
2874
|
}), {
|
|
2993
2875
|
method: 'put',
|
|
@@ -3034,9 +2916,9 @@ var members = /*#__PURE__*/Object.freeze({
|
|
|
3034
2916
|
updateMember: updateMember
|
|
3035
2917
|
});
|
|
3036
2918
|
|
|
3037
|
-
function ownKeys$
|
|
2919
|
+
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; }
|
|
3038
2920
|
|
|
3039
|
-
function _objectSpread$
|
|
2921
|
+
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; }
|
|
3040
2922
|
var PATH__AUTH = '/auth';
|
|
3041
2923
|
var PATH__OTK = '/otk';
|
|
3042
2924
|
var PATH__AUTH_TOKEN = '/auth/token';
|
|
@@ -3078,7 +2960,7 @@ var setupAccountResources = /*#__PURE__*/function () {
|
|
|
3078
2960
|
case 6:
|
|
3079
2961
|
member = _context.sent;
|
|
3080
2962
|
sdk.setMember(member);
|
|
3081
|
-
return _context.abrupt("return", _objectSpread$
|
|
2963
|
+
return _context.abrupt("return", _objectSpread$6({}, account, {
|
|
3082
2964
|
_member: member
|
|
3083
2965
|
}));
|
|
3084
2966
|
|
|
@@ -3123,7 +3005,7 @@ var login = /*#__PURE__*/function () {
|
|
|
3123
3005
|
};
|
|
3124
3006
|
}
|
|
3125
3007
|
|
|
3126
|
-
data = _objectSpread$
|
|
3008
|
+
data = _objectSpread$6({
|
|
3127
3009
|
email: email
|
|
3128
3010
|
}, body);
|
|
3129
3011
|
|
|
@@ -3133,7 +3015,7 @@ var login = /*#__PURE__*/function () {
|
|
|
3133
3015
|
|
|
3134
3016
|
|
|
3135
3017
|
_context2.next = 6;
|
|
3136
|
-
return request(_objectSpread$
|
|
3018
|
+
return request(_objectSpread$6({}, opts, {
|
|
3137
3019
|
path: PATH__AUTH,
|
|
3138
3020
|
getFullResponse: true
|
|
3139
3021
|
}), {
|
|
@@ -3237,7 +3119,7 @@ var impersonate = /*#__PURE__*/function () {
|
|
|
3237
3119
|
doesParamExist.default({
|
|
3238
3120
|
accountId: accountId
|
|
3239
3121
|
}, opts.hyperMediaEndpoint);
|
|
3240
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
3122
|
+
return _context4.abrupt("return", request(_objectSpread$6({}, opts, {
|
|
3241
3123
|
getFullResponse: true,
|
|
3242
3124
|
path: pathImpersonateAccount(accountId)
|
|
3243
3125
|
}), {
|
|
@@ -3269,7 +3151,7 @@ var logout = /*#__PURE__*/function () {
|
|
|
3269
3151
|
switch (_context5.prev = _context5.next) {
|
|
3270
3152
|
case 0:
|
|
3271
3153
|
_context5.next = 2;
|
|
3272
|
-
return request(_objectSpread$
|
|
3154
|
+
return request(_objectSpread$6({}, opts, {
|
|
3273
3155
|
getFullResponse: true,
|
|
3274
3156
|
path: PATH__AUTH
|
|
3275
3157
|
}), {
|
|
@@ -3307,12 +3189,12 @@ var requestOtk = /*#__PURE__*/function () {
|
|
|
3307
3189
|
while (1) {
|
|
3308
3190
|
switch (_context6.prev = _context6.next) {
|
|
3309
3191
|
case 0:
|
|
3310
|
-
body = _omitBy(_objectSpread$
|
|
3192
|
+
body = _omitBy(_objectSpread$6({
|
|
3311
3193
|
email: email,
|
|
3312
3194
|
accountId: accountId
|
|
3313
3195
|
}, requestBody), _isEmpty);
|
|
3314
3196
|
_context6.next = 3;
|
|
3315
|
-
return request(_objectSpread$
|
|
3197
|
+
return request(_objectSpread$6({}, opts, {
|
|
3316
3198
|
getFullResponse: true,
|
|
3317
3199
|
path: PATH__OTK
|
|
3318
3200
|
}), {
|
|
@@ -3357,7 +3239,7 @@ var generateAuthy = /*#__PURE__*/function () {
|
|
|
3357
3239
|
accountId: accountId
|
|
3358
3240
|
}, opts.hyperMediaEndpoint);
|
|
3359
3241
|
_context7.next = 4;
|
|
3360
|
-
return request(_objectSpread$
|
|
3242
|
+
return request(_objectSpread$6({}, opts, {
|
|
3361
3243
|
path: pathAuthy(accountId),
|
|
3362
3244
|
getFullResponse: true
|
|
3363
3245
|
}), {
|
|
@@ -3401,7 +3283,7 @@ var removeAuthy = /*#__PURE__*/function () {
|
|
|
3401
3283
|
accountId: accountId
|
|
3402
3284
|
}, opts.hyperMediaEndpoint);
|
|
3403
3285
|
_context8.next = 4;
|
|
3404
|
-
return request(_objectSpread$
|
|
3286
|
+
return request(_objectSpread$6({}, opts, {
|
|
3405
3287
|
path: pathAuthy(accountId),
|
|
3406
3288
|
getFullResponse: true
|
|
3407
3289
|
}), {
|
|
@@ -3446,7 +3328,7 @@ var verifyAuthy = /*#__PURE__*/function () {
|
|
|
3446
3328
|
accountId: accountId
|
|
3447
3329
|
}, opts.hyperMediaEndpoint);
|
|
3448
3330
|
_context9.next = 4;
|
|
3449
|
-
return request(_objectSpread$
|
|
3331
|
+
return request(_objectSpread$6({}, opts, {
|
|
3450
3332
|
path: pathAuthyVerify(accountId),
|
|
3451
3333
|
getFullResponse: true
|
|
3452
3334
|
}), {
|
|
@@ -3495,7 +3377,7 @@ var createShortLivedToken = /*#__PURE__*/function () {
|
|
|
3495
3377
|
}, opts.hyperMediaEndpoint);
|
|
3496
3378
|
sdk.setToken("Bearer " + apiKey);
|
|
3497
3379
|
_context10.next = 5;
|
|
3498
|
-
return request(_objectSpread$
|
|
3380
|
+
return request(_objectSpread$6({}, opts, {
|
|
3499
3381
|
path: PATH__AUTH_TOKEN
|
|
3500
3382
|
}), {
|
|
3501
3383
|
method: 'post',
|
|
@@ -3532,124 +3414,242 @@ var auth = /*#__PURE__*/Object.freeze({
|
|
|
3532
3414
|
createShortLivedToken: createShortLivedToken
|
|
3533
3415
|
});
|
|
3534
3416
|
|
|
3535
|
-
function ownKeys$
|
|
3417
|
+
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; }
|
|
3536
3418
|
|
|
3537
|
-
function _objectSpread$
|
|
3538
|
-
var
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
var
|
|
3542
|
-
return "/
|
|
3543
|
-
};
|
|
3544
|
-
var pathBusinessBulkUploadUrl = function pathBusinessBulkUploadUrl(businessId) {
|
|
3545
|
-
return "/businesses/" + businessId + "/bulkuploads/uploadurl";
|
|
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';
|
|
3422
|
+
|
|
3423
|
+
var pathApplication = function pathApplication(applicationId) {
|
|
3424
|
+
return "/applications/" + applicationId;
|
|
3546
3425
|
};
|
|
3547
3426
|
/**
|
|
3548
|
-
*
|
|
3549
|
-
* @param {string} businessId - Business ID
|
|
3550
|
-
* @param {Object} body - Request body
|
|
3427
|
+
* Get self application
|
|
3551
3428
|
* @param {Object} opts - Additional options
|
|
3552
3429
|
*/
|
|
3553
3430
|
|
|
3554
|
-
|
|
3431
|
+
|
|
3432
|
+
var getSelfApplication = function getSelfApplication(opts) {
|
|
3555
3433
|
if (opts === void 0) {
|
|
3556
3434
|
opts = {};
|
|
3557
3435
|
}
|
|
3558
3436
|
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
});
|
|
3562
|
-
return request(_objectSpread$8({}, opts, {
|
|
3563
|
-
path: pathBusinessBulkUploads(businessId)
|
|
3437
|
+
return request(_objectSpread$7({}, opts, {
|
|
3438
|
+
path: PATH__SELF_APPLICATION
|
|
3564
3439
|
}), {
|
|
3565
|
-
method: '
|
|
3566
|
-
data: body
|
|
3440
|
+
method: 'get'
|
|
3567
3441
|
});
|
|
3568
3442
|
};
|
|
3569
3443
|
/**
|
|
3570
|
-
* Get
|
|
3571
|
-
* @param {
|
|
3572
|
-
* @param {string} bulkUploadId - Bulk upload ID
|
|
3573
|
-
* @param {Object} body - Request body
|
|
3444
|
+
* Get applications
|
|
3445
|
+
* @param {Object} query - Query parameters
|
|
3574
3446
|
* @param {Object} opts - Additional options
|
|
3575
3447
|
*/
|
|
3576
3448
|
|
|
3577
|
-
var
|
|
3449
|
+
var getApplications = function getApplications(query, opts) {
|
|
3450
|
+
if (query === void 0) {
|
|
3451
|
+
query = {};
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3578
3454
|
if (opts === void 0) {
|
|
3579
3455
|
opts = {};
|
|
3580
3456
|
}
|
|
3581
3457
|
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
bulkUploadId: bulkUploadId
|
|
3585
|
-
});
|
|
3586
|
-
return request(_objectSpread$8({}, opts, {
|
|
3587
|
-
path: pathBusinessBulkUpload(businessId, bulkUploadId)
|
|
3458
|
+
return request(_objectSpread$7({}, opts, {
|
|
3459
|
+
path: PATH__APPLICATIONS
|
|
3588
3460
|
}), {
|
|
3589
|
-
method: 'get'
|
|
3461
|
+
method: 'get',
|
|
3462
|
+
params: query
|
|
3590
3463
|
});
|
|
3591
3464
|
};
|
|
3592
3465
|
/**
|
|
3593
|
-
* Get
|
|
3594
|
-
* @param {
|
|
3595
|
-
* @param {Object} query - Query params
|
|
3466
|
+
* Get application
|
|
3467
|
+
* @param {String} applicationId - Application ID
|
|
3596
3468
|
* @param {Object} opts - Additional options
|
|
3597
3469
|
*/
|
|
3598
3470
|
|
|
3599
|
-
var
|
|
3471
|
+
var getApplication = function getApplication(applicationId, opts) {
|
|
3600
3472
|
if (opts === void 0) {
|
|
3601
3473
|
opts = {};
|
|
3602
3474
|
}
|
|
3603
3475
|
|
|
3604
3476
|
doesParamExist.default({
|
|
3605
|
-
|
|
3606
|
-
});
|
|
3607
|
-
return request(_objectSpread$
|
|
3608
|
-
path:
|
|
3477
|
+
applicationId: applicationId
|
|
3478
|
+
}, opts.hyperMediaEndpoint);
|
|
3479
|
+
return request(_objectSpread$7({}, opts, {
|
|
3480
|
+
path: pathApplication(applicationId)
|
|
3609
3481
|
}), {
|
|
3610
|
-
method: 'get'
|
|
3611
|
-
params: query
|
|
3482
|
+
method: 'get'
|
|
3612
3483
|
});
|
|
3613
3484
|
};
|
|
3485
|
+
/**
|
|
3486
|
+
* Update application
|
|
3487
|
+
* @param {String} applicationId - Application ID
|
|
3488
|
+
* @param {Object} body - Request body
|
|
3489
|
+
* @param {Object} opts - Additional options
|
|
3490
|
+
*/
|
|
3614
3491
|
|
|
3615
|
-
var
|
|
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) {
|
|
3492
|
+
var updateApplication = function updateApplication(applicationId, body, opts) {
|
|
3638
3493
|
if (opts === void 0) {
|
|
3639
3494
|
opts = {};
|
|
3640
3495
|
}
|
|
3641
3496
|
|
|
3642
3497
|
doesParamExist.default({
|
|
3643
|
-
|
|
3498
|
+
applicationId: applicationId
|
|
3644
3499
|
}, opts.hyperMediaEndpoint);
|
|
3645
|
-
return request(_objectSpread$
|
|
3646
|
-
path:
|
|
3500
|
+
return request(_objectSpread$7({}, opts, {
|
|
3501
|
+
path: pathApplication(applicationId)
|
|
3647
3502
|
}), {
|
|
3648
|
-
method: '
|
|
3649
|
-
|
|
3503
|
+
method: 'put',
|
|
3504
|
+
data: body
|
|
3650
3505
|
});
|
|
3651
3506
|
};
|
|
3652
|
-
|
|
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
|
|
3650
|
+
});
|
|
3651
|
+
};
|
|
3652
|
+
var linkBusinessProfile = function linkBusinessProfile(businessProfileId, businessId, opts) {
|
|
3653
3653
|
if (opts === void 0) {
|
|
3654
3654
|
opts = {};
|
|
3655
3655
|
}
|
|
@@ -5687,6 +5687,44 @@ 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; }
|
|
5690
5728
|
var pathFunderSettings = function pathFunderSettings(businessId) {
|
|
5691
5729
|
return "/businesses/" + businessId + "/fundersettings";
|
|
5692
5730
|
};
|
|
@@ -5705,7 +5743,7 @@ var getBusinessFunderSettings = function getBusinessFunderSettings(businessId, q
|
|
|
5705
5743
|
doesParamExist.default({
|
|
5706
5744
|
businessId: businessId
|
|
5707
5745
|
}, opts.hyperMediaEndpoint);
|
|
5708
|
-
return request(_objectSpread$
|
|
5746
|
+
return request(_objectSpread$k({}, opts, {
|
|
5709
5747
|
path: pathFunderSettings(businessId)
|
|
5710
5748
|
}), {
|
|
5711
5749
|
method: 'get',
|
|
@@ -5721,7 +5759,7 @@ var getBusinesFunderSettingsById = function getBusinesFunderSettingsById(busines
|
|
|
5721
5759
|
businessId: businessId,
|
|
5722
5760
|
funderSettingsId: funderSettingsId
|
|
5723
5761
|
}, opts.hyperMediaEndpoint);
|
|
5724
|
-
return request(_objectSpread$
|
|
5762
|
+
return request(_objectSpread$k({}, opts, {
|
|
5725
5763
|
path: pathFunderSettingsById(businessId, funderSettingsId)
|
|
5726
5764
|
}), {
|
|
5727
5765
|
method: 'get'
|
|
@@ -5736,7 +5774,7 @@ var updateBusinesFunderSettings = function updateBusinesFunderSettings(businessI
|
|
|
5736
5774
|
businessId: businessId,
|
|
5737
5775
|
funderSettingsId: funderSettingsId
|
|
5738
5776
|
}, opts.hyperMediaEndpoint);
|
|
5739
|
-
return request(_objectSpread$
|
|
5777
|
+
return request(_objectSpread$k({}, opts, {
|
|
5740
5778
|
path: pathFunderSettingsById(businessId, funderSettingsId)
|
|
5741
5779
|
}), {
|
|
5742
5780
|
method: 'put',
|
|
@@ -5751,7 +5789,7 @@ var createBusinesFunderSettings = function createBusinesFunderSettings(businessI
|
|
|
5751
5789
|
doesParamExist.default({
|
|
5752
5790
|
businessId: businessId
|
|
5753
5791
|
}, opts.hyperMediaEndpoint);
|
|
5754
|
-
return request(_objectSpread$
|
|
5792
|
+
return request(_objectSpread$k({}, opts, {
|
|
5755
5793
|
path: pathFunderSettings(businessId)
|
|
5756
5794
|
}), {
|
|
5757
5795
|
method: 'post',
|
|
@@ -5767,7 +5805,7 @@ var deleteBusinesFunderSettings = function deleteBusinesFunderSettings(businessI
|
|
|
5767
5805
|
businessId: businessId,
|
|
5768
5806
|
funderSettingsId: funderSettingsId
|
|
5769
5807
|
}, opts.hyperMediaEndpoint);
|
|
5770
|
-
return request(_objectSpread$
|
|
5808
|
+
return request(_objectSpread$k({}, opts, {
|
|
5771
5809
|
path: pathFunderSettingsById(businessId, funderSettingsId)
|
|
5772
5810
|
}), {
|
|
5773
5811
|
method: 'delete'
|
|
@@ -5785,44 +5823,6 @@ var funderSettings = /*#__PURE__*/Object.freeze({
|
|
|
5785
5823
|
deleteBusinesFunderSettings: deleteBusinesFunderSettings
|
|
5786
5824
|
});
|
|
5787
5825
|
|
|
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; }
|
|
@@ -7002,13 +7002,14 @@ var getOrganisationHealthFunds = /*#__PURE__*/function () {
|
|
|
7002
7002
|
};
|
|
7003
7003
|
}();
|
|
7004
7004
|
/**
|
|
7005
|
-
*
|
|
7006
|
-
*
|
|
7005
|
+
* Create health fund
|
|
7006
|
+
*
|
|
7007
|
+
* @param {Object} body - Health fund details
|
|
7007
7008
|
* @param {Object} opts - Additional options
|
|
7008
7009
|
*/
|
|
7009
7010
|
|
|
7010
|
-
var
|
|
7011
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(
|
|
7011
|
+
var createHealthFund = /*#__PURE__*/function () {
|
|
7012
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(body, opts) {
|
|
7012
7013
|
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
7013
7014
|
while (1) {
|
|
7014
7015
|
switch (_context5.prev = _context5.next) {
|
|
@@ -7017,16 +7018,14 @@ var getHealthFund = /*#__PURE__*/function () {
|
|
|
7017
7018
|
opts = {};
|
|
7018
7019
|
}
|
|
7019
7020
|
|
|
7020
|
-
doesParamExist.default({
|
|
7021
|
-
healthFundId: healthFundId
|
|
7022
|
-
}, opts.hyperMediaEndpoint);
|
|
7023
7021
|
return _context5.abrupt("return", request(_objectSpread$o({}, opts, {
|
|
7024
|
-
path:
|
|
7022
|
+
path: PATH__HEALTH_FUNDS
|
|
7025
7023
|
}), {
|
|
7026
|
-
method: '
|
|
7024
|
+
method: 'post',
|
|
7025
|
+
data: body
|
|
7027
7026
|
}));
|
|
7028
7027
|
|
|
7029
|
-
case
|
|
7028
|
+
case 2:
|
|
7030
7029
|
case "end":
|
|
7031
7030
|
return _context5.stop();
|
|
7032
7031
|
}
|
|
@@ -7034,18 +7033,18 @@ var getHealthFund = /*#__PURE__*/function () {
|
|
|
7034
7033
|
}, _callee5);
|
|
7035
7034
|
}));
|
|
7036
7035
|
|
|
7037
|
-
return function
|
|
7036
|
+
return function createHealthFund(_x10, _x11) {
|
|
7038
7037
|
return _ref5.apply(this, arguments);
|
|
7039
7038
|
};
|
|
7040
7039
|
}();
|
|
7041
7040
|
/**
|
|
7042
|
-
* Get
|
|
7041
|
+
* Get health fund
|
|
7042
|
+
* @param {String} healthFundId - Health fund ID
|
|
7043
7043
|
* @param {Object} opts - Additional options
|
|
7044
7044
|
*/
|
|
7045
7045
|
|
|
7046
|
-
var
|
|
7047
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(opts) {
|
|
7048
|
-
var funders, medicareFunder, healthFunds;
|
|
7046
|
+
var getHealthFund = /*#__PURE__*/function () {
|
|
7047
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(healthFundId, opts) {
|
|
7049
7048
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
7050
7049
|
while (1) {
|
|
7051
7050
|
switch (_context6.prev = _context6.next) {
|
|
@@ -7054,42 +7053,155 @@ var getMedicareHealthFund = /*#__PURE__*/function () {
|
|
|
7054
7053
|
opts = {};
|
|
7055
7054
|
}
|
|
7056
7055
|
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7056
|
+
doesParamExist.default({
|
|
7057
|
+
healthFundId: healthFundId
|
|
7058
|
+
}, opts.hyperMediaEndpoint);
|
|
7059
|
+
return _context6.abrupt("return", request(_objectSpread$o({}, opts, {
|
|
7060
|
+
path: pathHealthFund(healthFundId)
|
|
7061
|
+
}), {
|
|
7062
|
+
method: 'get'
|
|
7063
|
+
}));
|
|
7064
|
+
|
|
7065
|
+
case 3:
|
|
7066
|
+
case "end":
|
|
7067
|
+
return _context6.stop();
|
|
7068
|
+
}
|
|
7069
|
+
}
|
|
7070
|
+
}, _callee6);
|
|
7071
|
+
}));
|
|
7072
|
+
|
|
7073
|
+
return function getHealthFund(_x12, _x13) {
|
|
7074
|
+
return _ref6.apply(this, arguments);
|
|
7075
|
+
};
|
|
7076
|
+
}();
|
|
7077
|
+
/**
|
|
7078
|
+
* Update health fund
|
|
7079
|
+
* @param {Object} healthFundId - Health fund ID
|
|
7080
|
+
* @param {Object} body - Health fund details
|
|
7081
|
+
* @param {Object} opts - Additional options
|
|
7082
|
+
*/
|
|
7083
|
+
|
|
7084
|
+
var updateHealthFund = /*#__PURE__*/function () {
|
|
7085
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(healthFundId, body, opts) {
|
|
7086
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
7087
|
+
while (1) {
|
|
7088
|
+
switch (_context7.prev = _context7.next) {
|
|
7089
|
+
case 0:
|
|
7090
|
+
if (opts === void 0) {
|
|
7091
|
+
opts = {};
|
|
7092
|
+
}
|
|
7093
|
+
|
|
7094
|
+
doesParamExist.default({
|
|
7095
|
+
healthFundId: healthFundId
|
|
7096
|
+
}, opts.hyperMediaEndpoint);
|
|
7097
|
+
return _context7.abrupt("return", request(_objectSpread$o({}, opts, {
|
|
7098
|
+
path: pathHealthFund(healthFundId)
|
|
7099
|
+
}), {
|
|
7100
|
+
method: 'put',
|
|
7101
|
+
data: body
|
|
7102
|
+
}));
|
|
7103
|
+
|
|
7104
|
+
case 3:
|
|
7105
|
+
case "end":
|
|
7106
|
+
return _context7.stop();
|
|
7107
|
+
}
|
|
7108
|
+
}
|
|
7109
|
+
}, _callee7);
|
|
7110
|
+
}));
|
|
7111
|
+
|
|
7112
|
+
return function updateHealthFund(_x14, _x15, _x16) {
|
|
7113
|
+
return _ref7.apply(this, arguments);
|
|
7114
|
+
};
|
|
7115
|
+
}();
|
|
7116
|
+
/**
|
|
7117
|
+
* Delete health fund
|
|
7118
|
+
* @param {Object} healthFundId - Health fund ID
|
|
7119
|
+
* @param {Object} opts - Additional options
|
|
7120
|
+
*/
|
|
7121
|
+
|
|
7122
|
+
var deleteHealthFund = /*#__PURE__*/function () {
|
|
7123
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(healthFundId, opts) {
|
|
7124
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
7125
|
+
while (1) {
|
|
7126
|
+
switch (_context8.prev = _context8.next) {
|
|
7127
|
+
case 0:
|
|
7128
|
+
if (opts === void 0) {
|
|
7129
|
+
opts = {};
|
|
7130
|
+
}
|
|
7131
|
+
|
|
7132
|
+
doesParamExist.default({
|
|
7133
|
+
healthFundId: healthFundId
|
|
7134
|
+
}, opts.hyperMediaEndpoint);
|
|
7135
|
+
return _context8.abrupt("return", request(_objectSpread$o({}, opts, {
|
|
7136
|
+
path: pathHealthFund(healthFundId)
|
|
7137
|
+
}), {
|
|
7138
|
+
method: 'delete'
|
|
7139
|
+
}));
|
|
7140
|
+
|
|
7141
|
+
case 3:
|
|
7142
|
+
case "end":
|
|
7143
|
+
return _context8.stop();
|
|
7144
|
+
}
|
|
7145
|
+
}
|
|
7146
|
+
}, _callee8);
|
|
7147
|
+
}));
|
|
7148
|
+
|
|
7149
|
+
return function deleteHealthFund(_x17, _x18) {
|
|
7150
|
+
return _ref8.apply(this, arguments);
|
|
7151
|
+
};
|
|
7152
|
+
}();
|
|
7153
|
+
/**
|
|
7154
|
+
* Get Medicare health fund
|
|
7155
|
+
* @param {Object} opts - Additional options
|
|
7156
|
+
*/
|
|
7157
|
+
|
|
7158
|
+
var getMedicareHealthFund = /*#__PURE__*/function () {
|
|
7159
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(opts) {
|
|
7160
|
+
var funders, medicareFunder, healthFunds;
|
|
7161
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
7162
|
+
while (1) {
|
|
7163
|
+
switch (_context9.prev = _context9.next) {
|
|
7164
|
+
case 0:
|
|
7165
|
+
if (opts === void 0) {
|
|
7166
|
+
opts = {};
|
|
7167
|
+
}
|
|
7168
|
+
|
|
7169
|
+
_context9.next = 3;
|
|
7170
|
+
return sdk.funders.getFunders(opts);
|
|
7171
|
+
|
|
7172
|
+
case 3:
|
|
7173
|
+
funders = _context9.sent;
|
|
7174
|
+
medicareFunder = funders.find(function (funder) {
|
|
7063
7175
|
return funder.code === constants.FUNDERS.MEDICARE;
|
|
7064
7176
|
});
|
|
7065
7177
|
|
|
7066
7178
|
if (medicareFunder) {
|
|
7067
|
-
|
|
7179
|
+
_context9.next = 7;
|
|
7068
7180
|
break;
|
|
7069
7181
|
}
|
|
7070
7182
|
|
|
7071
|
-
return
|
|
7183
|
+
return _context9.abrupt("return", null);
|
|
7072
7184
|
|
|
7073
7185
|
case 7:
|
|
7074
|
-
|
|
7186
|
+
_context9.next = 9;
|
|
7075
7187
|
return getHealthFunds({
|
|
7076
7188
|
funderId: medicareFunder._id
|
|
7077
7189
|
}, opts);
|
|
7078
7190
|
|
|
7079
7191
|
case 9:
|
|
7080
|
-
healthFunds =
|
|
7081
|
-
return
|
|
7192
|
+
healthFunds = _context9.sent;
|
|
7193
|
+
return _context9.abrupt("return", healthFunds[0]);
|
|
7082
7194
|
|
|
7083
7195
|
case 11:
|
|
7084
7196
|
case "end":
|
|
7085
|
-
return
|
|
7197
|
+
return _context9.stop();
|
|
7086
7198
|
}
|
|
7087
7199
|
}
|
|
7088
|
-
},
|
|
7200
|
+
}, _callee9);
|
|
7089
7201
|
}));
|
|
7090
7202
|
|
|
7091
|
-
return function getMedicareHealthFund(
|
|
7092
|
-
return
|
|
7203
|
+
return function getMedicareHealthFund(_x19) {
|
|
7204
|
+
return _ref9.apply(this, arguments);
|
|
7093
7205
|
};
|
|
7094
7206
|
}();
|
|
7095
7207
|
/**
|
|
@@ -7100,10 +7212,10 @@ var getMedicareHealthFund = /*#__PURE__*/function () {
|
|
|
7100
7212
|
*/
|
|
7101
7213
|
|
|
7102
7214
|
var verifyMember = /*#__PURE__*/function () {
|
|
7103
|
-
var
|
|
7104
|
-
return _regeneratorRuntime.wrap(function
|
|
7215
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(healthFundId, body, opts) {
|
|
7216
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
7105
7217
|
while (1) {
|
|
7106
|
-
switch (
|
|
7218
|
+
switch (_context10.prev = _context10.next) {
|
|
7107
7219
|
case 0:
|
|
7108
7220
|
if (opts === void 0) {
|
|
7109
7221
|
opts = {};
|
|
@@ -7113,7 +7225,7 @@ var verifyMember = /*#__PURE__*/function () {
|
|
|
7113
7225
|
healthFundId: healthFundId,
|
|
7114
7226
|
body: body
|
|
7115
7227
|
}, opts.hyperMediaEndpoint);
|
|
7116
|
-
return
|
|
7228
|
+
return _context10.abrupt("return", request(_objectSpread$o({}, opts, {
|
|
7117
7229
|
path: "" + pathHealthFundVerifyMember(healthFundId)
|
|
7118
7230
|
}), {
|
|
7119
7231
|
method: 'post',
|
|
@@ -7123,14 +7235,14 @@ var verifyMember = /*#__PURE__*/function () {
|
|
|
7123
7235
|
|
|
7124
7236
|
case 3:
|
|
7125
7237
|
case "end":
|
|
7126
|
-
return
|
|
7238
|
+
return _context10.stop();
|
|
7127
7239
|
}
|
|
7128
7240
|
}
|
|
7129
|
-
},
|
|
7241
|
+
}, _callee10);
|
|
7130
7242
|
}));
|
|
7131
7243
|
|
|
7132
|
-
return function verifyMember(
|
|
7133
|
-
return
|
|
7244
|
+
return function verifyMember(_x20, _x21, _x22) {
|
|
7245
|
+
return _ref10.apply(this, arguments);
|
|
7134
7246
|
};
|
|
7135
7247
|
}();
|
|
7136
7248
|
|
|
@@ -7140,7 +7252,10 @@ var healthfunds = /*#__PURE__*/Object.freeze({
|
|
|
7140
7252
|
getBusinessHealthFunds: getBusinessHealthFunds,
|
|
7141
7253
|
getHealthFunds: getHealthFunds,
|
|
7142
7254
|
getOrganisationHealthFunds: getOrganisationHealthFunds,
|
|
7255
|
+
createHealthFund: createHealthFund,
|
|
7143
7256
|
getHealthFund: getHealthFund,
|
|
7257
|
+
updateHealthFund: updateHealthFund,
|
|
7258
|
+
deleteHealthFund: deleteHealthFund,
|
|
7144
7259
|
getMedicareHealthFund: getMedicareHealthFund,
|
|
7145
7260
|
verifyMember: verifyMember
|
|
7146
7261
|
});
|
|
@@ -11128,49 +11243,6 @@ var practiceProfiles = /*#__PURE__*/Object.freeze({
|
|
|
11128
11243
|
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
11244
|
|
|
11130
11245
|
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
|
-
*/
|
|
11136
|
-
|
|
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
|
-
}
|
|
11146
|
-
|
|
11147
|
-
return _context.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11148
|
-
path: PATH__PRACTICE_TYPES
|
|
11149
|
-
}), {
|
|
11150
|
-
method: 'get'
|
|
11151
|
-
}));
|
|
11152
|
-
|
|
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
11246
|
|
|
11175
11247
|
var pathBusinessFormPractices = function pathBusinessFormPractices(businessId, formId) {
|
|
11176
11248
|
return "/businesses/" + businessId + "/forms/" + formId + "/practices";
|
|
@@ -11232,7 +11304,7 @@ var createBusinessPractice = /*#__PURE__*/function () {
|
|
|
11232
11304
|
doesParamExist.default({
|
|
11233
11305
|
businessId: businessId
|
|
11234
11306
|
}, opts.hyperMediaEndpoint);
|
|
11235
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
11307
|
+
return _context.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11236
11308
|
path: pathBusinessPractices(businessId)
|
|
11237
11309
|
}), {
|
|
11238
11310
|
method: 'post',
|
|
@@ -11271,7 +11343,7 @@ var createOrganisationPractice = /*#__PURE__*/function () {
|
|
|
11271
11343
|
doesParamExist.default({
|
|
11272
11344
|
organisationId: organisationId
|
|
11273
11345
|
}, opts.hyperMediaEndpoint);
|
|
11274
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
11346
|
+
return _context2.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11275
11347
|
path: pathOrganisationPractices(organisationId)
|
|
11276
11348
|
}), {
|
|
11277
11349
|
method: 'post',
|
|
@@ -11311,7 +11383,7 @@ var deleteBusinessPractice = /*#__PURE__*/function () {
|
|
|
11311
11383
|
businessId: businessId,
|
|
11312
11384
|
practiceId: practiceId
|
|
11313
11385
|
}, opts.hyperMediaEndpoint);
|
|
11314
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
11386
|
+
return _context3.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11315
11387
|
path: pathBusinessPractice(businessId, practiceId)
|
|
11316
11388
|
}), {
|
|
11317
11389
|
method: 'delete'
|
|
@@ -11350,7 +11422,7 @@ var deleteOrganisationPractice = /*#__PURE__*/function () {
|
|
|
11350
11422
|
organisationId: organisationId,
|
|
11351
11423
|
practiceId: practiceId
|
|
11352
11424
|
}, opts.hyperMediaEndpoint);
|
|
11353
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
11425
|
+
return _context4.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11354
11426
|
path: pathOrganisationPractice(organisationId, practiceId)
|
|
11355
11427
|
}), {
|
|
11356
11428
|
method: 'delete'
|
|
@@ -11389,7 +11461,7 @@ var getBusinessPractice = /*#__PURE__*/function () {
|
|
|
11389
11461
|
businessId: businessId,
|
|
11390
11462
|
practiceId: practiceId
|
|
11391
11463
|
}, opts.hyperMediaEndpoint);
|
|
11392
|
-
return _context5.abrupt("return", request(_objectSpread$
|
|
11464
|
+
return _context5.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11393
11465
|
path: pathBusinessPractice(businessId, practiceId)
|
|
11394
11466
|
}), {
|
|
11395
11467
|
method: 'get'
|
|
@@ -11431,7 +11503,7 @@ var getBusinessPractices = /*#__PURE__*/function () {
|
|
|
11431
11503
|
doesParamExist.default({
|
|
11432
11504
|
businessId: businessId
|
|
11433
11505
|
}, opts.hyperMediaEndpoint);
|
|
11434
|
-
return _context6.abrupt("return", request(_objectSpread$
|
|
11506
|
+
return _context6.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11435
11507
|
path: pathBusinessPractices(businessId)
|
|
11436
11508
|
}), {
|
|
11437
11509
|
method: 'get',
|
|
@@ -11476,7 +11548,7 @@ var getBusinessFormPractices = /*#__PURE__*/function () {
|
|
|
11476
11548
|
businessId: businessId,
|
|
11477
11549
|
formId: formId
|
|
11478
11550
|
}, opts.hyperMediaEndpoint);
|
|
11479
|
-
return _context7.abrupt("return", request(_objectSpread$
|
|
11551
|
+
return _context7.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11480
11552
|
path: pathBusinessFormPractices(businessId, formId)
|
|
11481
11553
|
}), {
|
|
11482
11554
|
method: 'get',
|
|
@@ -11518,7 +11590,7 @@ var getBusinessPracticeUploadUrl = /*#__PURE__*/function () {
|
|
|
11518
11590
|
practiceId: practiceId,
|
|
11519
11591
|
query: query
|
|
11520
11592
|
}, opts.hyperMediaEndpoint);
|
|
11521
|
-
return _context8.abrupt("return", request(_objectSpread$
|
|
11593
|
+
return _context8.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11522
11594
|
path: pathBusinessPracticeUploadUrl(businessId, practiceId)
|
|
11523
11595
|
}), {
|
|
11524
11596
|
method: 'get',
|
|
@@ -11562,7 +11634,7 @@ var getBusinessStaffPractices = /*#__PURE__*/function () {
|
|
|
11562
11634
|
businessId: businessId,
|
|
11563
11635
|
staffId: staffId
|
|
11564
11636
|
}, opts.hyperMediaEndpoint);
|
|
11565
|
-
return _context9.abrupt("return", request(_objectSpread$
|
|
11637
|
+
return _context9.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11566
11638
|
path: pathBusinessStaffPractices(businessId, staffId)
|
|
11567
11639
|
}), {
|
|
11568
11640
|
method: 'get',
|
|
@@ -11605,7 +11677,7 @@ var getOrganisationPractices = /*#__PURE__*/function () {
|
|
|
11605
11677
|
doesParamExist.default({
|
|
11606
11678
|
organisationId: organisationId
|
|
11607
11679
|
}, opts.hyperMediaEndpoint);
|
|
11608
|
-
return _context10.abrupt("return", request(_objectSpread$
|
|
11680
|
+
return _context10.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11609
11681
|
path: pathOrganisationPractices(organisationId)
|
|
11610
11682
|
}), {
|
|
11611
11683
|
method: 'get',
|
|
@@ -11644,7 +11716,7 @@ var getPractice = /*#__PURE__*/function () {
|
|
|
11644
11716
|
doesParamExist.default({
|
|
11645
11717
|
practiceId: practiceId
|
|
11646
11718
|
}, opts.hyperMediaEndpoint);
|
|
11647
|
-
return _context11.abrupt("return", request(_objectSpread$
|
|
11719
|
+
return _context11.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11648
11720
|
path: pathPractice(practiceId)
|
|
11649
11721
|
}), {
|
|
11650
11722
|
method: 'get'
|
|
@@ -11673,7 +11745,7 @@ var requestClaimPractice = function requestClaimPractice(practiceId, opts) {
|
|
|
11673
11745
|
opts = {};
|
|
11674
11746
|
}
|
|
11675
11747
|
|
|
11676
|
-
return request(_objectSpread$
|
|
11748
|
+
return request(_objectSpread$H({}, opts, {
|
|
11677
11749
|
path: pathPractice(practiceId) + "/verify/request"
|
|
11678
11750
|
}), {
|
|
11679
11751
|
method: 'post'
|
|
@@ -11691,7 +11763,7 @@ var requestToAddProviderToPractice = function requestToAddProviderToPractice(pra
|
|
|
11691
11763
|
opts = {};
|
|
11692
11764
|
}
|
|
11693
11765
|
|
|
11694
|
-
return request(_objectSpread$
|
|
11766
|
+
return request(_objectSpread$H({}, opts, {
|
|
11695
11767
|
path: pathPractice(practiceId) + "/access/request"
|
|
11696
11768
|
}), {
|
|
11697
11769
|
method: 'post',
|
|
@@ -11715,7 +11787,7 @@ var searchOnboardingPractices = function searchOnboardingPractices(query, opts)
|
|
|
11715
11787
|
opts = {};
|
|
11716
11788
|
}
|
|
11717
11789
|
|
|
11718
|
-
return request(_objectSpread$
|
|
11790
|
+
return request(_objectSpread$H({}, opts, {
|
|
11719
11791
|
path: pathOnboardingPractices()
|
|
11720
11792
|
}), {
|
|
11721
11793
|
method: 'get',
|
|
@@ -11744,7 +11816,7 @@ var updateBusinessPractice = /*#__PURE__*/function () {
|
|
|
11744
11816
|
businessId: businessId,
|
|
11745
11817
|
practiceId: practiceId
|
|
11746
11818
|
}, opts.hyperMediaEndpoint);
|
|
11747
|
-
return _context12.abrupt("return", request(_objectSpread$
|
|
11819
|
+
return _context12.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11748
11820
|
path: pathBusinessPractice(businessId, practiceId)
|
|
11749
11821
|
}), {
|
|
11750
11822
|
method: 'put',
|
|
@@ -11785,7 +11857,7 @@ var updateOrganisationPractice = /*#__PURE__*/function () {
|
|
|
11785
11857
|
organisationId: organisationId,
|
|
11786
11858
|
practiceId: practiceId
|
|
11787
11859
|
}, opts.hyperMediaEndpoint);
|
|
11788
|
-
return _context13.abrupt("return", request(_objectSpread$
|
|
11860
|
+
return _context13.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11789
11861
|
path: pathOrganisationPractice(organisationId, practiceId)
|
|
11790
11862
|
}), {
|
|
11791
11863
|
method: 'put',
|
|
@@ -11817,11 +11889,11 @@ var verifyClaimPractice = function verifyClaimPractice(practiceId, otkCode, body
|
|
|
11817
11889
|
opts = {};
|
|
11818
11890
|
}
|
|
11819
11891
|
|
|
11820
|
-
return request(_objectSpread$
|
|
11892
|
+
return request(_objectSpread$H({}, opts, {
|
|
11821
11893
|
path: pathPractice(practiceId) + "/verify"
|
|
11822
11894
|
}), {
|
|
11823
11895
|
method: 'post',
|
|
11824
|
-
data: _objectSpread$
|
|
11896
|
+
data: _objectSpread$H({}, body, {
|
|
11825
11897
|
otkCode: otkCode
|
|
11826
11898
|
})
|
|
11827
11899
|
});
|
|
@@ -11846,7 +11918,7 @@ var clonePracticeIntoBusiness = /*#__PURE__*/function () {
|
|
|
11846
11918
|
doesParamExist.default({
|
|
11847
11919
|
practiceId: practiceId
|
|
11848
11920
|
}, opts.hyperMediaEndpoint);
|
|
11849
|
-
return _context14.abrupt("return", request(_objectSpread$
|
|
11921
|
+
return _context14.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11850
11922
|
path: pathPractice(practiceId) + "/clone"
|
|
11851
11923
|
}), {
|
|
11852
11924
|
method: 'post',
|
|
@@ -11891,7 +11963,7 @@ var getPracticesWithApprovedApplications = /*#__PURE__*/function () {
|
|
|
11891
11963
|
businessId: businessId,
|
|
11892
11964
|
formId: formId
|
|
11893
11965
|
}, opts.hyperMediaEndpoint);
|
|
11894
|
-
return _context15.abrupt("return", request(_objectSpread$
|
|
11966
|
+
return _context15.abrupt("return", request(_objectSpread$H({}, opts, {
|
|
11895
11967
|
path: pathGetPracticesWithApprovedApplications(businessId, formId)
|
|
11896
11968
|
}), {
|
|
11897
11969
|
method: 'get',
|
|
@@ -11934,6 +12006,49 @@ var practices = /*#__PURE__*/Object.freeze({
|
|
|
11934
12006
|
getPracticesWithApprovedApplications: getPracticesWithApprovedApplications
|
|
11935
12007
|
});
|
|
11936
12008
|
|
|
12009
|
+
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; }
|
|
12010
|
+
|
|
12011
|
+
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; }
|
|
12012
|
+
var PATH__PRACTICE_TYPES = '/practicetypes';
|
|
12013
|
+
/**
|
|
12014
|
+
* Get practice types
|
|
12015
|
+
* @param {Object} opts - Additional options
|
|
12016
|
+
*/
|
|
12017
|
+
|
|
12018
|
+
var getPracticeTypes = /*#__PURE__*/function () {
|
|
12019
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(opts) {
|
|
12020
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12021
|
+
while (1) {
|
|
12022
|
+
switch (_context.prev = _context.next) {
|
|
12023
|
+
case 0:
|
|
12024
|
+
if (opts === void 0) {
|
|
12025
|
+
opts = {};
|
|
12026
|
+
}
|
|
12027
|
+
|
|
12028
|
+
return _context.abrupt("return", request(_objectSpread$I({}, opts, {
|
|
12029
|
+
path: PATH__PRACTICE_TYPES
|
|
12030
|
+
}), {
|
|
12031
|
+
method: 'get'
|
|
12032
|
+
}));
|
|
12033
|
+
|
|
12034
|
+
case 2:
|
|
12035
|
+
case "end":
|
|
12036
|
+
return _context.stop();
|
|
12037
|
+
}
|
|
12038
|
+
}
|
|
12039
|
+
}, _callee);
|
|
12040
|
+
}));
|
|
12041
|
+
|
|
12042
|
+
return function getPracticeTypes(_x) {
|
|
12043
|
+
return _ref.apply(this, arguments);
|
|
12044
|
+
};
|
|
12045
|
+
}();
|
|
12046
|
+
|
|
12047
|
+
var practiceTypes = /*#__PURE__*/Object.freeze({
|
|
12048
|
+
__proto__: null,
|
|
12049
|
+
getPracticeTypes: getPracticeTypes
|
|
12050
|
+
});
|
|
12051
|
+
|
|
11937
12052
|
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
12053
|
|
|
11939
12054
|
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,37 +12214,40 @@ var professionalCategories = /*#__PURE__*/Object.freeze({
|
|
|
12099
12214
|
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
12215
|
|
|
12101
12216
|
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
|
-
|
|
12217
|
+
|
|
12218
|
+
var pathBusinessProviderRequests = function pathBusinessProviderRequests(businessId) {
|
|
12219
|
+
return "/businesses/" + businessId + "/providerrequests";
|
|
12104
12220
|
};
|
|
12105
|
-
|
|
12106
|
-
|
|
12221
|
+
|
|
12222
|
+
var pathBusinessPracticeStaffMemberProviderRequest = function pathBusinessPracticeStaffMemberProviderRequest(businessId, practiceId, staffId) {
|
|
12223
|
+
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/providerrequests";
|
|
12107
12224
|
};
|
|
12108
12225
|
/**
|
|
12109
|
-
*
|
|
12110
|
-
* @param {
|
|
12226
|
+
* Create providerRequest
|
|
12227
|
+
* @param {string} businessId - Business ID
|
|
12228
|
+
* @param {Object} body - Request body
|
|
12111
12229
|
* @param {Object} opts - Additional options
|
|
12112
12230
|
*/
|
|
12113
12231
|
|
|
12114
|
-
|
|
12115
|
-
|
|
12232
|
+
|
|
12233
|
+
var createProviderRequest = /*#__PURE__*/function () {
|
|
12234
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
|
|
12116
12235
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12117
12236
|
while (1) {
|
|
12118
12237
|
switch (_context.prev = _context.next) {
|
|
12119
12238
|
case 0:
|
|
12120
|
-
if (query === void 0) {
|
|
12121
|
-
query = {};
|
|
12122
|
-
}
|
|
12123
|
-
|
|
12124
12239
|
if (opts === void 0) {
|
|
12125
12240
|
opts = {};
|
|
12126
12241
|
}
|
|
12127
12242
|
|
|
12243
|
+
doesParamExist.default({
|
|
12244
|
+
businessId: businessId
|
|
12245
|
+
}, opts.hyperMediaEndpoint);
|
|
12128
12246
|
return _context.abrupt("return", request(_objectSpread$L({}, opts, {
|
|
12129
|
-
path:
|
|
12247
|
+
path: pathBusinessProviderRequests(businessId)
|
|
12130
12248
|
}), {
|
|
12131
|
-
method: '
|
|
12132
|
-
|
|
12249
|
+
method: 'post',
|
|
12250
|
+
data: body
|
|
12133
12251
|
}));
|
|
12134
12252
|
|
|
12135
12253
|
case 3:
|
|
@@ -12140,43 +12258,58 @@ var getProviderNumberTypes = /*#__PURE__*/function () {
|
|
|
12140
12258
|
}, _callee);
|
|
12141
12259
|
}));
|
|
12142
12260
|
|
|
12143
|
-
return function
|
|
12261
|
+
return function createProviderRequest(_x, _x2, _x3) {
|
|
12144
12262
|
return _ref.apply(this, arguments);
|
|
12145
12263
|
};
|
|
12146
12264
|
}();
|
|
12147
12265
|
/**
|
|
12148
|
-
*
|
|
12149
|
-
* @param {
|
|
12150
|
-
* @param {
|
|
12266
|
+
* Request a staff member provider number to be enabled
|
|
12267
|
+
* @param {string} businessId - Business ID
|
|
12268
|
+
* @param {string} practiceId - Practice ID
|
|
12269
|
+
* @param {string} staffId - Staff ID
|
|
12270
|
+
* @param {string} providerNumber - ProviderNumber
|
|
12151
12271
|
* @param {Object} opts - Additional options
|
|
12152
12272
|
*/
|
|
12153
12273
|
|
|
12154
|
-
var
|
|
12155
|
-
|
|
12156
|
-
|
|
12157
|
-
|
|
12274
|
+
var requestBusinessPracticeStaffMemberProviderNumberToBeEnabled = /*#__PURE__*/function () {
|
|
12275
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(businessId, practiceId, staffId, providerNumber, opts) {
|
|
12276
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
12277
|
+
while (1) {
|
|
12278
|
+
switch (_context2.prev = _context2.next) {
|
|
12279
|
+
case 0:
|
|
12280
|
+
if (opts === void 0) {
|
|
12281
|
+
opts = {};
|
|
12282
|
+
}
|
|
12158
12283
|
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12284
|
+
doesParamExist.default({
|
|
12285
|
+
businessId: businessId
|
|
12286
|
+
}, opts.hyperMediaEndpoint);
|
|
12287
|
+
return _context2.abrupt("return", request(_objectSpread$L({}, opts, {
|
|
12288
|
+
path: pathBusinessPracticeStaffMemberProviderRequest(businessId, practiceId, staffId)
|
|
12289
|
+
}), {
|
|
12290
|
+
method: 'post',
|
|
12291
|
+
data: {
|
|
12292
|
+
providerNumber: providerNumber
|
|
12293
|
+
}
|
|
12294
|
+
}));
|
|
12162
12295
|
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
params: query
|
|
12171
|
-
});
|
|
12172
|
-
};
|
|
12296
|
+
case 3:
|
|
12297
|
+
case "end":
|
|
12298
|
+
return _context2.stop();
|
|
12299
|
+
}
|
|
12300
|
+
}
|
|
12301
|
+
}, _callee2);
|
|
12302
|
+
}));
|
|
12173
12303
|
|
|
12174
|
-
|
|
12304
|
+
return function requestBusinessPracticeStaffMemberProviderNumberToBeEnabled(_x4, _x5, _x6, _x7, _x8) {
|
|
12305
|
+
return _ref2.apply(this, arguments);
|
|
12306
|
+
};
|
|
12307
|
+
}();
|
|
12308
|
+
|
|
12309
|
+
var providerRequests = /*#__PURE__*/Object.freeze({
|
|
12175
12310
|
__proto__: null,
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
getProviderNumberTypes: getProviderNumberTypes,
|
|
12179
|
-
getProviderNumberType: getProviderNumberType
|
|
12311
|
+
createProviderRequest: createProviderRequest,
|
|
12312
|
+
requestBusinessPracticeStaffMemberProviderNumberToBeEnabled: requestBusinessPracticeStaffMemberProviderNumberToBeEnabled
|
|
12180
12313
|
});
|
|
12181
12314
|
|
|
12182
12315
|
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; }
|
|
@@ -12267,40 +12400,37 @@ var providerRegistrationTypes = /*#__PURE__*/Object.freeze({
|
|
|
12267
12400
|
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; }
|
|
12268
12401
|
|
|
12269
12402
|
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; }
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
return "/businesses/" + businessId + "/providerrequests";
|
|
12403
|
+
var pathProviderNumberTypes = function pathProviderNumberTypes() {
|
|
12404
|
+
return "/providernumbertypes";
|
|
12273
12405
|
};
|
|
12274
|
-
|
|
12275
|
-
|
|
12276
|
-
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/providerrequests";
|
|
12406
|
+
var pathProviderNumberType = function pathProviderNumberType(providerNumberTypeId) {
|
|
12407
|
+
return "/providernumbertypes/" + providerNumberTypeId;
|
|
12277
12408
|
};
|
|
12278
12409
|
/**
|
|
12279
|
-
*
|
|
12280
|
-
* @param {
|
|
12281
|
-
* @param {Object} body - Request body
|
|
12410
|
+
* Get provider number types
|
|
12411
|
+
* @param {Object} query - Query parameters
|
|
12282
12412
|
* @param {Object} opts - Additional options
|
|
12283
12413
|
*/
|
|
12284
12414
|
|
|
12285
|
-
|
|
12286
|
-
var
|
|
12287
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(businessId, body, opts) {
|
|
12415
|
+
var getProviderNumberTypes = /*#__PURE__*/function () {
|
|
12416
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(query, opts) {
|
|
12288
12417
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
12289
12418
|
while (1) {
|
|
12290
12419
|
switch (_context.prev = _context.next) {
|
|
12291
12420
|
case 0:
|
|
12421
|
+
if (query === void 0) {
|
|
12422
|
+
query = {};
|
|
12423
|
+
}
|
|
12424
|
+
|
|
12292
12425
|
if (opts === void 0) {
|
|
12293
12426
|
opts = {};
|
|
12294
12427
|
}
|
|
12295
12428
|
|
|
12296
|
-
doesParamExist.default({
|
|
12297
|
-
businessId: businessId
|
|
12298
|
-
}, opts.hyperMediaEndpoint);
|
|
12299
12429
|
return _context.abrupt("return", request(_objectSpread$N({}, opts, {
|
|
12300
|
-
path:
|
|
12430
|
+
path: pathProviderNumberTypes()
|
|
12301
12431
|
}), {
|
|
12302
|
-
method: '
|
|
12303
|
-
|
|
12432
|
+
method: 'get',
|
|
12433
|
+
params: query
|
|
12304
12434
|
}));
|
|
12305
12435
|
|
|
12306
12436
|
case 3:
|
|
@@ -12311,58 +12441,43 @@ var createProviderRequest = /*#__PURE__*/function () {
|
|
|
12311
12441
|
}, _callee);
|
|
12312
12442
|
}));
|
|
12313
12443
|
|
|
12314
|
-
return function
|
|
12444
|
+
return function getProviderNumberTypes(_x, _x2) {
|
|
12315
12445
|
return _ref.apply(this, arguments);
|
|
12316
12446
|
};
|
|
12317
12447
|
}();
|
|
12318
12448
|
/**
|
|
12319
|
-
*
|
|
12320
|
-
* @param {
|
|
12321
|
-
* @param {
|
|
12322
|
-
* @param {string} staffId - Staff ID
|
|
12323
|
-
* @param {string} providerNumber - ProviderNumber
|
|
12449
|
+
* Get provider number type
|
|
12450
|
+
* @param {String} providerNumberTypeId - Provider number type ID
|
|
12451
|
+
* @param {Object} query - Query parameters
|
|
12324
12452
|
* @param {Object} opts - Additional options
|
|
12325
12453
|
*/
|
|
12326
12454
|
|
|
12327
|
-
var
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
switch (_context2.prev = _context2.next) {
|
|
12332
|
-
case 0:
|
|
12333
|
-
if (opts === void 0) {
|
|
12334
|
-
opts = {};
|
|
12335
|
-
}
|
|
12336
|
-
|
|
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
|
-
}));
|
|
12455
|
+
var getProviderNumberType = function getProviderNumberType(providerNumberTypeId, query, opts) {
|
|
12456
|
+
if (query === void 0) {
|
|
12457
|
+
query = {};
|
|
12458
|
+
}
|
|
12348
12459
|
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
}
|
|
12353
|
-
}
|
|
12354
|
-
}, _callee2);
|
|
12355
|
-
}));
|
|
12460
|
+
if (opts === void 0) {
|
|
12461
|
+
opts = {};
|
|
12462
|
+
}
|
|
12356
12463
|
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
};
|
|
12360
|
-
}
|
|
12464
|
+
doesParamExist.default({
|
|
12465
|
+
providerNumberTypeId: providerNumberTypeId
|
|
12466
|
+
}, opts.hyperMediaEndpoint);
|
|
12467
|
+
return request(_objectSpread$N({}, opts, {
|
|
12468
|
+
path: pathProviderNumberType(providerNumberTypeId)
|
|
12469
|
+
}), {
|
|
12470
|
+
method: 'get',
|
|
12471
|
+
params: query
|
|
12472
|
+
});
|
|
12473
|
+
};
|
|
12361
12474
|
|
|
12362
|
-
var
|
|
12475
|
+
var providerNumberTypes = /*#__PURE__*/Object.freeze({
|
|
12363
12476
|
__proto__: null,
|
|
12364
|
-
|
|
12365
|
-
|
|
12477
|
+
pathProviderNumberTypes: pathProviderNumberTypes,
|
|
12478
|
+
pathProviderNumberType: pathProviderNumberType,
|
|
12479
|
+
getProviderNumberTypes: getProviderNumberTypes,
|
|
12480
|
+
getProviderNumberType: getProviderNumberType
|
|
12366
12481
|
});
|
|
12367
12482
|
|
|
12368
12483
|
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; }
|
|
@@ -14482,9 +14597,99 @@ var specialties = /*#__PURE__*/Object.freeze({
|
|
|
14482
14597
|
getSpecialty: getSpecialty
|
|
14483
14598
|
});
|
|
14484
14599
|
|
|
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; }
|
|
14600
|
+
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; }
|
|
14601
|
+
|
|
14602
|
+
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; }
|
|
14603
|
+
var pathLinkStaffProfile = function pathLinkStaffProfile(staffProfileId) {
|
|
14604
|
+
return "/staffprofiles/" + staffProfileId + "/link";
|
|
14605
|
+
};
|
|
14606
|
+
var pathOrganisationStaffProfiles = function pathOrganisationStaffProfiles(organisationId) {
|
|
14607
|
+
return "/organisations/" + organisationId + "/staffprofiles";
|
|
14608
|
+
};
|
|
14609
|
+
var pathStaffProfile = function pathStaffProfile(staffProfileId) {
|
|
14610
|
+
return "/staffprofiles/" + staffProfileId;
|
|
14611
|
+
};
|
|
14612
|
+
var pathUnlinkStaffProfile = function pathUnlinkStaffProfile(staffProfileId) {
|
|
14613
|
+
return "/staffprofiles/" + staffProfileId + "/unlink";
|
|
14614
|
+
};
|
|
14615
|
+
var getOrganisationStaffProfiles = function getOrganisationStaffProfiles(organisationId, query, opts) {
|
|
14616
|
+
if (opts === void 0) {
|
|
14617
|
+
opts = {};
|
|
14618
|
+
}
|
|
14619
|
+
|
|
14620
|
+
doesParamExist.default({
|
|
14621
|
+
organisationId: organisationId
|
|
14622
|
+
}, opts.hyperMediaEndpoint);
|
|
14623
|
+
return request(_objectSpread$Y({}, opts, {
|
|
14624
|
+
path: pathOrganisationStaffProfiles(organisationId)
|
|
14625
|
+
}), {
|
|
14626
|
+
method: 'get',
|
|
14627
|
+
params: query
|
|
14628
|
+
});
|
|
14629
|
+
};
|
|
14630
|
+
var getStaffProfile = function getStaffProfile(staffProfileId, opts) {
|
|
14631
|
+
if (opts === void 0) {
|
|
14632
|
+
opts = {};
|
|
14633
|
+
}
|
|
14634
|
+
|
|
14635
|
+
doesParamExist.default({
|
|
14636
|
+
staffProfileId: staffProfileId
|
|
14637
|
+
}, opts.hyperMediaEndpoint);
|
|
14638
|
+
return request(_objectSpread$Y({}, opts, {
|
|
14639
|
+
path: pathStaffProfile(staffProfileId)
|
|
14640
|
+
}), {
|
|
14641
|
+
method: 'get'
|
|
14642
|
+
});
|
|
14643
|
+
};
|
|
14644
|
+
var linkStaffProfile = function linkStaffProfile(staffProfileId, staffId, opts) {
|
|
14645
|
+
if (opts === void 0) {
|
|
14646
|
+
opts = {};
|
|
14647
|
+
}
|
|
14648
|
+
|
|
14649
|
+
doesParamExist.default({
|
|
14650
|
+
staffProfileId: staffProfileId,
|
|
14651
|
+
staffId: staffId
|
|
14652
|
+
}, opts.hyperMediaEndpoint);
|
|
14653
|
+
var body = {
|
|
14654
|
+
staffId: staffId
|
|
14655
|
+
};
|
|
14656
|
+
return request(_objectSpread$Y({}, opts, {
|
|
14657
|
+
path: pathLinkStaffProfile(staffProfileId)
|
|
14658
|
+
}), {
|
|
14659
|
+
method: 'put',
|
|
14660
|
+
data: body
|
|
14661
|
+
});
|
|
14662
|
+
};
|
|
14663
|
+
var unlinkStaffProfile = function unlinkStaffProfile(staffProfileId, opts) {
|
|
14664
|
+
if (opts === void 0) {
|
|
14665
|
+
opts = {};
|
|
14666
|
+
}
|
|
14667
|
+
|
|
14668
|
+
doesParamExist.default({
|
|
14669
|
+
staffProfileId: staffProfileId
|
|
14670
|
+
}, opts.hyperMediaEndpoint);
|
|
14671
|
+
return request(_objectSpread$Y({}, opts, {
|
|
14672
|
+
path: pathUnlinkStaffProfile(staffProfileId)
|
|
14673
|
+
}), {
|
|
14674
|
+
method: 'put'
|
|
14675
|
+
});
|
|
14676
|
+
};
|
|
14677
|
+
|
|
14678
|
+
var staffProfiles = /*#__PURE__*/Object.freeze({
|
|
14679
|
+
__proto__: null,
|
|
14680
|
+
pathLinkStaffProfile: pathLinkStaffProfile,
|
|
14681
|
+
pathOrganisationStaffProfiles: pathOrganisationStaffProfiles,
|
|
14682
|
+
pathStaffProfile: pathStaffProfile,
|
|
14683
|
+
pathUnlinkStaffProfile: pathUnlinkStaffProfile,
|
|
14684
|
+
getOrganisationStaffProfiles: getOrganisationStaffProfiles,
|
|
14685
|
+
getStaffProfile: getStaffProfile,
|
|
14686
|
+
linkStaffProfile: linkStaffProfile,
|
|
14687
|
+
unlinkStaffProfile: unlinkStaffProfile
|
|
14688
|
+
});
|
|
14689
|
+
|
|
14690
|
+
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; }
|
|
14486
14691
|
|
|
14487
|
-
function _objectSpread$
|
|
14692
|
+
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; }
|
|
14488
14693
|
|
|
14489
14694
|
var pathBusinessPracticeStaffMembers = function pathBusinessPracticeStaffMembers(businessId, practiceId) {
|
|
14490
14695
|
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff";
|
|
@@ -14550,7 +14755,7 @@ var createBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
14550
14755
|
doesParamExist.default({
|
|
14551
14756
|
businessId: businessId
|
|
14552
14757
|
}, opts.hyperMediaEndpoint);
|
|
14553
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
14758
|
+
return _context.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14554
14759
|
path: pathBusinessStaff(businessId)
|
|
14555
14760
|
}), {
|
|
14556
14761
|
method: 'post',
|
|
@@ -14589,7 +14794,7 @@ var createOrganisationStaffMember = /*#__PURE__*/function () {
|
|
|
14589
14794
|
doesParamExist.default({
|
|
14590
14795
|
organisationId: organisationId
|
|
14591
14796
|
}, opts.hyperMediaEndpoint);
|
|
14592
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
14797
|
+
return _context2.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14593
14798
|
path: pathOrganisationStaff(organisationId)
|
|
14594
14799
|
}), {
|
|
14595
14800
|
method: 'post',
|
|
@@ -14629,7 +14834,7 @@ var deleteBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
14629
14834
|
businessId: businessId,
|
|
14630
14835
|
staffId: staffId
|
|
14631
14836
|
}, opts.hyperMediaEndpoint);
|
|
14632
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
14837
|
+
return _context3.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14633
14838
|
path: pathBusinessStaffMember(businessId, staffId)
|
|
14634
14839
|
}), {
|
|
14635
14840
|
method: 'delete'
|
|
@@ -14668,7 +14873,7 @@ var deleteBusinessStaffMemberEmail = /*#__PURE__*/function () {
|
|
|
14668
14873
|
businessId: businessId,
|
|
14669
14874
|
staffId: staffId
|
|
14670
14875
|
}, opts.hyperMediaEndpoint);
|
|
14671
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
14876
|
+
return _context4.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14672
14877
|
path: pathBusinessStaffMember(businessId, staffId) + "/email"
|
|
14673
14878
|
}), {
|
|
14674
14879
|
method: 'delete'
|
|
@@ -14707,7 +14912,7 @@ var getBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
14707
14912
|
businessId: businessId,
|
|
14708
14913
|
staffId: staffId
|
|
14709
14914
|
}, opts.hyperMediaEndpoint);
|
|
14710
|
-
return _context5.abrupt("return", request(_objectSpread$
|
|
14915
|
+
return _context5.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14711
14916
|
path: pathBusinessStaffMember(businessId, staffId)
|
|
14712
14917
|
}), {
|
|
14713
14918
|
method: 'get'
|
|
@@ -14747,7 +14952,7 @@ var getBusinessStaffMemberRoles = /*#__PURE__*/function () {
|
|
|
14747
14952
|
businessId: businessId,
|
|
14748
14953
|
staffId: staffId
|
|
14749
14954
|
}, opts.hyperMediaEndpoint);
|
|
14750
|
-
return _context6.abrupt("return", request(_objectSpread$
|
|
14955
|
+
return _context6.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14751
14956
|
path: pathBusinessStaffMember(businessId, staffId) + "/roles"
|
|
14752
14957
|
}), {
|
|
14753
14958
|
method: 'get',
|
|
@@ -14791,7 +14996,7 @@ var getBusinessPracticeStaffMember = /*#__PURE__*/function () {
|
|
|
14791
14996
|
practiceId: practiceId,
|
|
14792
14997
|
staffId: staffId
|
|
14793
14998
|
}, opts.hyperMediaEndpoint);
|
|
14794
|
-
return _context7.abrupt("return", request(_objectSpread$
|
|
14999
|
+
return _context7.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14795
15000
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId)
|
|
14796
15001
|
}), {
|
|
14797
15002
|
method: 'get'
|
|
@@ -14837,7 +15042,7 @@ var getBusinessPracticeStaffMemberModalities = /*#__PURE__*/function () {
|
|
|
14837
15042
|
practiceId: practiceId,
|
|
14838
15043
|
staffId: staffId
|
|
14839
15044
|
}, opts.hyperMediaEndpoint);
|
|
14840
|
-
return _context8.abrupt("return", request(_objectSpread$
|
|
15045
|
+
return _context8.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14841
15046
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId) + "/modalities"
|
|
14842
15047
|
}), {
|
|
14843
15048
|
method: 'get',
|
|
@@ -14878,7 +15083,7 @@ var getBusinessPracticeStaffMembers = /*#__PURE__*/function () {
|
|
|
14878
15083
|
businessId: businessId,
|
|
14879
15084
|
practiceId: practiceId
|
|
14880
15085
|
}, opts.hyperMediaEndpoint);
|
|
14881
|
-
return _context9.abrupt("return", request(_objectSpread$
|
|
15086
|
+
return _context9.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14882
15087
|
path: pathBusinessPracticeStaffMembers(businessId, practiceId)
|
|
14883
15088
|
}), {
|
|
14884
15089
|
method: 'get',
|
|
@@ -14921,7 +15126,7 @@ var getBusinessFormPracticeStaffMembers = /*#__PURE__*/function () {
|
|
|
14921
15126
|
formId: formId,
|
|
14922
15127
|
practiceId: practiceId
|
|
14923
15128
|
}, opts.hyperMediaEndpoint);
|
|
14924
|
-
return _context10.abrupt("return", request(_objectSpread$
|
|
15129
|
+
return _context10.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14925
15130
|
path: pathBusinessFormPracticeStaffMembers(businessId, formId, practiceId)
|
|
14926
15131
|
}), {
|
|
14927
15132
|
method: 'get',
|
|
@@ -14966,7 +15171,7 @@ var getBusinessServiceStaffMembers = /*#__PURE__*/function () {
|
|
|
14966
15171
|
businessId: businessId,
|
|
14967
15172
|
serviceId: serviceId
|
|
14968
15173
|
}, opts.hyperMediaEndpoint);
|
|
14969
|
-
return _context11.abrupt("return", request(_objectSpread$
|
|
15174
|
+
return _context11.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
14970
15175
|
path: pathBusinessServiceStaffMembers(businessId, serviceId)
|
|
14971
15176
|
}), {
|
|
14972
15177
|
method: 'get',
|
|
@@ -15003,7 +15208,7 @@ var getBusinessStaffMembers = /*#__PURE__*/function () {
|
|
|
15003
15208
|
doesParamExist.default({
|
|
15004
15209
|
businessId: businessId
|
|
15005
15210
|
}, opts.hyperMediaEndpoint);
|
|
15006
|
-
return _context12.abrupt("return", request(_objectSpread$
|
|
15211
|
+
return _context12.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15007
15212
|
path: pathBusinessStaff(businessId)
|
|
15008
15213
|
}), {
|
|
15009
15214
|
method: 'get',
|
|
@@ -15045,7 +15250,7 @@ var getBusinessStaffUploadUrl = /*#__PURE__*/function () {
|
|
|
15045
15250
|
staffId: staffId,
|
|
15046
15251
|
contentType: contentType
|
|
15047
15252
|
}, opts.hyperMediaEndpoint);
|
|
15048
|
-
return _context13.abrupt("return", request(_objectSpread$
|
|
15253
|
+
return _context13.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15049
15254
|
path: pathBusinessStaffMember(businessId, staffId) + "/uploadurlv2"
|
|
15050
15255
|
}), {
|
|
15051
15256
|
method: 'get',
|
|
@@ -15089,7 +15294,7 @@ var getOrganisationStaffMembers = /*#__PURE__*/function () {
|
|
|
15089
15294
|
doesParamExist.default({
|
|
15090
15295
|
organisationId: organisationId
|
|
15091
15296
|
}, opts.hyperMediaEndpoint);
|
|
15092
|
-
return _context14.abrupt("return", request(_objectSpread$
|
|
15297
|
+
return _context14.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15093
15298
|
path: pathOrganisationStaff(organisationId)
|
|
15094
15299
|
}), {
|
|
15095
15300
|
method: 'get',
|
|
@@ -15127,7 +15332,7 @@ var getStaffMember = /*#__PURE__*/function () {
|
|
|
15127
15332
|
doesParamExist.default({
|
|
15128
15333
|
staffId: staffId
|
|
15129
15334
|
}, opts.hyperMediaEndpoint);
|
|
15130
|
-
return _context15.abrupt("return", request(_objectSpread$
|
|
15335
|
+
return _context15.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15131
15336
|
path: pathStaffMember(staffId)
|
|
15132
15337
|
}), {
|
|
15133
15338
|
method: 'get'
|
|
@@ -15169,7 +15374,7 @@ var grantBusinessPracticeStaffRole = /*#__PURE__*/function () {
|
|
|
15169
15374
|
practiceId: practiceId,
|
|
15170
15375
|
staffId: staffId
|
|
15171
15376
|
}, opts.hyperMediaEndpoint);
|
|
15172
|
-
return _context16.abrupt("return", request(_objectSpread$
|
|
15377
|
+
return _context16.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15173
15378
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId) + "/roles"
|
|
15174
15379
|
}), {
|
|
15175
15380
|
method: 'post',
|
|
@@ -15213,11 +15418,11 @@ var grantBusinessStaffRole = /*#__PURE__*/function () {
|
|
|
15213
15418
|
businessId: businessId,
|
|
15214
15419
|
staffId: staffId
|
|
15215
15420
|
}, opts.hyperMediaEndpoint);
|
|
15216
|
-
return _context17.abrupt("return", request(_objectSpread$
|
|
15421
|
+
return _context17.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15217
15422
|
path: pathBusinessStaffMember(businessId, staffId) + "/roles"
|
|
15218
15423
|
}), {
|
|
15219
15424
|
method: 'post',
|
|
15220
|
-
data: _objectSpread$
|
|
15425
|
+
data: _objectSpread$Z({
|
|
15221
15426
|
roleFullName: roleFullName
|
|
15222
15427
|
}, body)
|
|
15223
15428
|
}));
|
|
@@ -15254,7 +15459,7 @@ var inviteNewBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
15254
15459
|
doesParamExist.default({
|
|
15255
15460
|
businessId: businessId
|
|
15256
15461
|
}, opts.hyperMediaEndpoint);
|
|
15257
|
-
return _context18.abrupt("return", request(_objectSpread$
|
|
15462
|
+
return _context18.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15258
15463
|
path: pathBusinessStaff(businessId) + "/invites"
|
|
15259
15464
|
}), {
|
|
15260
15465
|
method: 'post',
|
|
@@ -15299,7 +15504,7 @@ var inviteBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
15299
15504
|
doesParamExist.default({
|
|
15300
15505
|
businessId: businessId
|
|
15301
15506
|
}, opts.hyperMediaEndpoint);
|
|
15302
|
-
return _context19.abrupt("return", request(_objectSpread$
|
|
15507
|
+
return _context19.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15303
15508
|
path: pathBusinessStaffMember(businessId, staffId) + "/invites"
|
|
15304
15509
|
}), {
|
|
15305
15510
|
method: 'post',
|
|
@@ -15342,7 +15547,7 @@ var revokeBusinessPracticeStaffRole = /*#__PURE__*/function () {
|
|
|
15342
15547
|
practiceId: practiceId,
|
|
15343
15548
|
staffId: staffId
|
|
15344
15549
|
}, opts.hyperMediaEndpoint);
|
|
15345
|
-
return _context20.abrupt("return", request(_objectSpread$
|
|
15550
|
+
return _context20.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15346
15551
|
path: pathBusinessPracticeStaffMember(businessId, practiceId, staffId) + "/roles"
|
|
15347
15552
|
}), {
|
|
15348
15553
|
method: 'delete',
|
|
@@ -15386,11 +15591,11 @@ var revokeBusinessStaffRole = /*#__PURE__*/function () {
|
|
|
15386
15591
|
businessId: businessId,
|
|
15387
15592
|
staffId: staffId
|
|
15388
15593
|
}, opts.hyperMediaEndpoint);
|
|
15389
|
-
return _context21.abrupt("return", request(_objectSpread$
|
|
15594
|
+
return _context21.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15390
15595
|
path: pathBusinessStaffMember(businessId, staffId) + "/roles"
|
|
15391
15596
|
}), {
|
|
15392
15597
|
method: 'delete',
|
|
15393
|
-
data: _objectSpread$
|
|
15598
|
+
data: _objectSpread$Z({
|
|
15394
15599
|
roleFullName: roleFullName
|
|
15395
15600
|
}, body)
|
|
15396
15601
|
}));
|
|
@@ -15429,7 +15634,7 @@ var updateBusinessStaffMember = /*#__PURE__*/function () {
|
|
|
15429
15634
|
businessId: businessId,
|
|
15430
15635
|
staffId: staffId
|
|
15431
15636
|
}, opts.hyperMediaEndpoint);
|
|
15432
|
-
return _context22.abrupt("return", request(_objectSpread$
|
|
15637
|
+
return _context22.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15433
15638
|
path: pathBusinessStaffMember(businessId, staffId)
|
|
15434
15639
|
}), {
|
|
15435
15640
|
method: 'put',
|
|
@@ -15470,7 +15675,7 @@ var updateBusinessStaffMemberEmail = /*#__PURE__*/function () {
|
|
|
15470
15675
|
businessId: businessId,
|
|
15471
15676
|
staffId: staffId
|
|
15472
15677
|
}, opts.hyperMediaEndpoint);
|
|
15473
|
-
return _context23.abrupt("return", request(_objectSpread$
|
|
15678
|
+
return _context23.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15474
15679
|
path: pathBusinessStaffMember(businessId, staffId) + "/changeemail"
|
|
15475
15680
|
}), {
|
|
15476
15681
|
method: 'post',
|
|
@@ -15511,7 +15716,7 @@ var updateOrganisationStaffMember = /*#__PURE__*/function () {
|
|
|
15511
15716
|
organisationId: organisationId,
|
|
15512
15717
|
staffId: staffId
|
|
15513
15718
|
}, opts.hyperMediaEndpoint);
|
|
15514
|
-
return _context24.abrupt("return", request(_objectSpread$
|
|
15719
|
+
return _context24.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15515
15720
|
path: pathOrganisationStaffMember(organisationId, staffId)
|
|
15516
15721
|
}), {
|
|
15517
15722
|
method: 'put',
|
|
@@ -15550,7 +15755,7 @@ var verifyStaffMember = /*#__PURE__*/function () {
|
|
|
15550
15755
|
doesParamExist.default({
|
|
15551
15756
|
staffId: staffId
|
|
15552
15757
|
}, opts.hyperMediaEndpoint);
|
|
15553
|
-
return _context25.abrupt("return", request(_objectSpread$
|
|
15758
|
+
return _context25.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15554
15759
|
path: pathStaffMember(staffId) + "/verify"
|
|
15555
15760
|
}), {
|
|
15556
15761
|
method: 'post',
|
|
@@ -15589,7 +15794,7 @@ var cloneStaffMemberIntoBusiness = /*#__PURE__*/function () {
|
|
|
15589
15794
|
doesParamExist.default({
|
|
15590
15795
|
staffId: staffId
|
|
15591
15796
|
}, opts.hyperMediaEndpoint);
|
|
15592
|
-
return _context26.abrupt("return", request(_objectSpread$
|
|
15797
|
+
return _context26.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15593
15798
|
path: pathStaffMember(staffId) + "/clone"
|
|
15594
15799
|
}), {
|
|
15595
15800
|
method: 'post',
|
|
@@ -15623,7 +15828,7 @@ var checkStaffMemberEmailExists = function checkStaffMemberEmailExists(businessI
|
|
|
15623
15828
|
doesParamExist.default({
|
|
15624
15829
|
businessId: businessId
|
|
15625
15830
|
}, opts.hyperMediaEndpoint);
|
|
15626
|
-
return request(_objectSpread$
|
|
15831
|
+
return request(_objectSpread$Z({}, opts, {
|
|
15627
15832
|
path: pathBusinessStaff(businessId) + "/exists"
|
|
15628
15833
|
}), {
|
|
15629
15834
|
method: 'get',
|
|
@@ -15652,7 +15857,7 @@ var createStaffProviderSetItem = /*#__PURE__*/function () {
|
|
|
15652
15857
|
businessId: businessId,
|
|
15653
15858
|
staffId: staffId
|
|
15654
15859
|
}, opts.hyperMediaEndpoint);
|
|
15655
|
-
return _context27.abrupt("return", request(_objectSpread$
|
|
15860
|
+
return _context27.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15656
15861
|
path: "" + pathProviderSetItems(businessId, staffId)
|
|
15657
15862
|
}), {
|
|
15658
15863
|
method: 'post',
|
|
@@ -15695,7 +15900,7 @@ var updateStaffProviderSetItem = /*#__PURE__*/function () {
|
|
|
15695
15900
|
staffId: staffId,
|
|
15696
15901
|
providerSetItemId: providerSetItemId
|
|
15697
15902
|
}, opts.hyperMediaEndpoint);
|
|
15698
|
-
return _context28.abrupt("return", request(_objectSpread$
|
|
15903
|
+
return _context28.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15699
15904
|
path: pathProviderSetItem(businessId, staffId, providerSetItemId)
|
|
15700
15905
|
}), {
|
|
15701
15906
|
method: 'put',
|
|
@@ -15737,7 +15942,7 @@ var deleteStaffProviderSetItem = /*#__PURE__*/function () {
|
|
|
15737
15942
|
staffId: staffId,
|
|
15738
15943
|
providerSetItemId: providerSetItemId
|
|
15739
15944
|
}, opts.hyperMediaEndpoint);
|
|
15740
|
-
return _context29.abrupt("return", request(_objectSpread$
|
|
15945
|
+
return _context29.abrupt("return", request(_objectSpread$Z({}, opts, {
|
|
15741
15946
|
path: pathProviderSetItem(businessId, staffId, providerSetItemId)
|
|
15742
15947
|
}), {
|
|
15743
15948
|
method: 'delete'
|
|
@@ -15790,96 +15995,6 @@ var staff = /*#__PURE__*/Object.freeze({
|
|
|
15790
15995
|
deleteStaffProviderSetItem: deleteStaffProviderSetItem
|
|
15791
15996
|
});
|
|
15792
15997
|
|
|
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
15998
|
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
15999
|
|
|
15885
16000
|
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; }
|
|
@@ -20688,82 +20803,6 @@ var versions = /*#__PURE__*/Object.freeze({
|
|
|
20688
20803
|
checkAppVersion: checkAppVersion
|
|
20689
20804
|
});
|
|
20690
20805
|
|
|
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
|
-
|
|
20767
20806
|
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; }
|
|
20768
20807
|
|
|
20769
20808
|
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; }
|
|
@@ -20851,6 +20890,82 @@ var professionsUtils = /*#__PURE__*/Object.freeze({
|
|
|
20851
20890
|
parseProfessions: parseProfessions
|
|
20852
20891
|
});
|
|
20853
20892
|
|
|
20893
|
+
var _getSelfApplicationCache;
|
|
20894
|
+
|
|
20895
|
+
var _getSelfApplicationCacheInProgress = false;
|
|
20896
|
+
var getSelfApplicationCached = /*#__PURE__*/function () {
|
|
20897
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
20898
|
+
var data;
|
|
20899
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
20900
|
+
while (1) {
|
|
20901
|
+
switch (_context.prev = _context.next) {
|
|
20902
|
+
case 0:
|
|
20903
|
+
if (!_getSelfApplicationCache) {
|
|
20904
|
+
_context.next = 2;
|
|
20905
|
+
break;
|
|
20906
|
+
}
|
|
20907
|
+
|
|
20908
|
+
return _context.abrupt("return", _getSelfApplicationCache);
|
|
20909
|
+
|
|
20910
|
+
case 2:
|
|
20911
|
+
if (_getSelfApplicationCacheInProgress) {
|
|
20912
|
+
_context.next = 13;
|
|
20913
|
+
break;
|
|
20914
|
+
}
|
|
20915
|
+
|
|
20916
|
+
_context.prev = 3;
|
|
20917
|
+
_getSelfApplicationCacheInProgress = true;
|
|
20918
|
+
_context.next = 7;
|
|
20919
|
+
return sdk.applications.getSelfApplication();
|
|
20920
|
+
|
|
20921
|
+
case 7:
|
|
20922
|
+
_getSelfApplicationCache = _context.sent;
|
|
20923
|
+
|
|
20924
|
+
case 8:
|
|
20925
|
+
_context.prev = 8;
|
|
20926
|
+
_getSelfApplicationCacheInProgress = false;
|
|
20927
|
+
return _context.finish(8);
|
|
20928
|
+
|
|
20929
|
+
case 11:
|
|
20930
|
+
_context.next = 18;
|
|
20931
|
+
break;
|
|
20932
|
+
|
|
20933
|
+
case 13:
|
|
20934
|
+
_context.next = 15;
|
|
20935
|
+
return new Promise(function (resolve) {
|
|
20936
|
+
return setTimeout(resolve, 100);
|
|
20937
|
+
});
|
|
20938
|
+
|
|
20939
|
+
case 15:
|
|
20940
|
+
data = _getSelfApplicationCache;
|
|
20941
|
+
|
|
20942
|
+
case 16:
|
|
20943
|
+
if (!data) {
|
|
20944
|
+
_context.next = 13;
|
|
20945
|
+
break;
|
|
20946
|
+
}
|
|
20947
|
+
|
|
20948
|
+
case 17:
|
|
20949
|
+
return _context.abrupt("return", data);
|
|
20950
|
+
|
|
20951
|
+
case 18:
|
|
20952
|
+
case "end":
|
|
20953
|
+
return _context.stop();
|
|
20954
|
+
}
|
|
20955
|
+
}
|
|
20956
|
+
}, _callee, null, [[3,, 8, 11]]);
|
|
20957
|
+
}));
|
|
20958
|
+
|
|
20959
|
+
return function getSelfApplicationCached() {
|
|
20960
|
+
return _ref.apply(this, arguments);
|
|
20961
|
+
};
|
|
20962
|
+
}();
|
|
20963
|
+
|
|
20964
|
+
var applicationUtils = /*#__PURE__*/Object.freeze({
|
|
20965
|
+
__proto__: null,
|
|
20966
|
+
getSelfApplicationCached: getSelfApplicationCached
|
|
20967
|
+
});
|
|
20968
|
+
|
|
20854
20969
|
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; }
|
|
20855
20970
|
|
|
20856
20971
|
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; }
|
|
@@ -21510,6 +21625,7 @@ exports.createConsumerAccount = createConsumerAccount;
|
|
|
21510
21625
|
exports.createDocAccount = createDocAccount;
|
|
21511
21626
|
exports.createEclipseInvoice = createEclipseInvoice;
|
|
21512
21627
|
exports.createEmailPackage = createEmailPackage;
|
|
21628
|
+
exports.createHealthFund = createHealthFund;
|
|
21513
21629
|
exports.createHealthFundDocumentNote = createHealthFundDocumentNote;
|
|
21514
21630
|
exports.createHealthFundForm = createHealthFundForm;
|
|
21515
21631
|
exports.createHealthFundRNA = createHealthFundRNA;
|
|
@@ -21554,6 +21670,7 @@ exports.deleteBusinessService = deleteBusinessService;
|
|
|
21554
21670
|
exports.deleteBusinessStaffMember = deleteBusinessStaffMember;
|
|
21555
21671
|
exports.deleteBusinessStaffMemberEmail = deleteBusinessStaffMemberEmail;
|
|
21556
21672
|
exports.deleteDocAccount = deleteDocAccount;
|
|
21673
|
+
exports.deleteHealthFund = deleteHealthFund;
|
|
21557
21674
|
exports.deleteHealthFundDocumentTag = deleteHealthFundDocumentTag;
|
|
21558
21675
|
exports.deleteHealthFundForm = deleteHealthFundForm;
|
|
21559
21676
|
exports.deleteHealthFundNote = deleteHealthFundNote;
|
|
@@ -22045,6 +22162,7 @@ exports.updateBusinessSubscription = updateBusinessSubscription;
|
|
|
22045
22162
|
exports.updateClaim = updateClaim;
|
|
22046
22163
|
exports.updateDocAccount = updateDocAccount;
|
|
22047
22164
|
exports.updateEmailPackage = updateEmailPackage;
|
|
22165
|
+
exports.updateHealthFund = updateHealthFund;
|
|
22048
22166
|
exports.updateHealthFundForm = updateHealthFundForm;
|
|
22049
22167
|
exports.updateHealthFundNote = updateHealthFundNote;
|
|
22050
22168
|
exports.updateHealthFundSetting = updateHealthFundSetting;
|