@medipass/web-sdk 11.48.1-feature-healthpoint-upload-endpoints.0 → 11.48.1-feature-update-device-on-login.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/lib/index.js +1 -1
- package/lib/resources/abr.js +1 -1
- package/lib/resources/accounts.js +1 -1
- package/lib/resources/actions.js +1 -1
- package/lib/resources/api-keys.js +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.d.ts +1 -26
- package/lib/resources/attachments.js +1 -5
- package/lib/resources/auth.js +1 -1
- package/lib/resources/bulk-submits.js +1 -1
- package/lib/resources/bulk-uploads.js +1 -1
- package/lib/resources/business-profiles.js +1 -1
- package/lib/resources/businesses.js +1 -1
- package/lib/resources/claim-items.js +1 -1
- package/lib/resources/devices.d.ts +6 -0
- package/lib/resources/devices.js +2 -1
- package/lib/resources/doc-accounts.js +1 -1
- package/lib/resources/documents.js +1 -1
- package/lib/resources/emails.js +1 -1
- package/lib/resources/filter-options.js +1 -1
- package/lib/resources/form-application-templates.js +1 -1
- package/lib/resources/form-applications.js +1 -1
- package/lib/resources/forms.js +1 -1
- package/lib/resources/funder-services.js +1 -1
- package/lib/resources/funder-settings.js +1 -1
- package/lib/resources/funder-values.js +1 -1
- package/lib/resources/funders.js +1 -1
- package/lib/resources/futures.js +1 -1
- package/lib/resources/health-fund-accounts.js +1 -1
- package/lib/resources/health-fund-settings.js +1 -1
- package/lib/resources/healthfunds.js +1 -1
- package/lib/resources/icditems.js +1 -1
- package/lib/resources/invoice-scans.js +1 -1
- package/lib/resources/jhcs.js +1 -1
- package/lib/resources/kyc.js +1 -1
- package/lib/resources/logs.js +1 -1
- package/lib/resources/members.js +1 -1
- package/lib/resources/message-mappings.js +1 -1
- package/lib/resources/minions.js +1 -1
- package/lib/resources/modalities.js +1 -1
- package/lib/resources/notes.js +1 -1
- package/lib/resources/onboarding-applications.js +1 -1
- package/lib/resources/onboarding-requests.js +1 -1
- package/lib/resources/ops.js +1 -1
- package/lib/resources/organisations.js +1 -1
- package/lib/resources/partners.js +1 -1
- package/lib/resources/patients.js +1 -1
- package/lib/resources/payments.js +1 -1
- package/lib/resources/pms.js +1 -1
- package/lib/resources/practice-profiles.js +1 -1
- package/lib/resources/practice-types.js +1 -1
- package/lib/resources/practices.js +1 -1
- package/lib/resources/products.js +1 -1
- package/lib/resources/professional-categories.js +1 -1
- package/lib/resources/provider-number-types.js +1 -1
- package/lib/resources/provider-registration-types.js +1 -1
- package/lib/resources/provider-requests.js +1 -1
- package/lib/resources/provider-types.js +1 -1
- package/lib/resources/ref-sources.js +1 -1
- package/lib/resources/risk.js +1 -1
- package/lib/resources/rnas.js +1 -1
- package/lib/resources/roles.js +1 -1
- package/lib/resources/self-checkout-sessions.js +1 -1
- package/lib/resources/services.js +1 -1
- package/lib/resources/settlements.js +1 -1
- package/lib/resources/sign-up.js +1 -1
- package/lib/resources/specialties.js +1 -1
- package/lib/resources/staff-profiles.js +1 -1
- package/lib/resources/staff.js +1 -1
- package/lib/resources/statistics.js +1 -1
- package/lib/resources/subscriptions.js +1 -1
- package/lib/resources/terminals.js +1 -1
- package/lib/resources/transaction-export.js +1 -1
- package/lib/resources/transactions.js +1 -1
- package/lib/resources/triggers.js +1 -1
- package/lib/resources/vendors.js +1 -1
- package/lib/resources/verify.js +1 -1
- package/lib/resources/workers.js +1 -1
- package/lib/resources/workflow-exceptions.js +1 -1
- package/lib/services/aws.d.ts +0 -10
- package/lib/services/aws.js +1 -2
- package/lib/services/version.js +1 -1
- package/lib/{staff-acf904f7.js → staff-6179dfba.js} +262 -361
- package/lib/types/index.d.ts +1 -2
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.js +1 -1
- package/package.json +3 -3
- package/lib/types/virus-scan.d.ts +0 -13
- package/lib/types/virus-scan.js +0 -2
|
@@ -1784,12 +1784,6 @@ var pathGetS3SignedUrl = function pathGetS3SignedUrl(businessId, practiceId, sta
|
|
|
1784
1784
|
var pathScanClaimFile = function pathScanClaimFile(businessId, practiceId, staffId) {
|
|
1785
1785
|
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/attachments/virusscan";
|
|
1786
1786
|
};
|
|
1787
|
-
var pathScanFile = function pathScanFile(businessId) {
|
|
1788
|
-
return "/businesses/" + businessId + "/attachments/virusscan";
|
|
1789
|
-
};
|
|
1790
|
-
var pathGetAttachmentUrl = function pathGetAttachmentUrl(businessId) {
|
|
1791
|
-
return "/businesses/" + businessId + "/attachments/uploadurl";
|
|
1792
|
-
};
|
|
1793
1787
|
/**
|
|
1794
1788
|
* Get url to upload a file associated to a claim
|
|
1795
1789
|
* @param {String} businessId - Business ID
|
|
@@ -1871,62 +1865,14 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
|
|
|
1871
1865
|
});
|
|
1872
1866
|
};
|
|
1873
1867
|
|
|
1874
|
-
/**
|
|
1875
|
-
* Scan a file
|
|
1876
|
-
* @param {String} businessId - Business ID
|
|
1877
|
-
* @param {Object} body - Request body
|
|
1878
|
-
* @param {Object} opts - Additional options
|
|
1879
|
-
*/
|
|
1880
|
-
var scanFile = function scanFile(businessId, body, opts) {
|
|
1881
|
-
if (opts === void 0) {
|
|
1882
|
-
opts = {};
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
doesParamExist.default({
|
|
1886
|
-
businessId: businessId
|
|
1887
|
-
}, opts.hyperMediaEndpoint);
|
|
1888
|
-
return request(_objectSpread$5({}, opts, {
|
|
1889
|
-
path: pathScanFile(businessId)
|
|
1890
|
-
}), {
|
|
1891
|
-
method: 'post',
|
|
1892
|
-
data: body
|
|
1893
|
-
});
|
|
1894
|
-
};
|
|
1895
|
-
|
|
1896
|
-
/**
|
|
1897
|
-
* Get url to upload a file
|
|
1898
|
-
* @param {String} businessId - Business ID
|
|
1899
|
-
* @param {Object} query - Query
|
|
1900
|
-
* @param {Object} opts - Additional options
|
|
1901
|
-
*/
|
|
1902
|
-
var getAttachmentUrl = function getAttachmentUrl(businessId, query, opts) {
|
|
1903
|
-
if (opts === void 0) {
|
|
1904
|
-
opts = {};
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
doesParamExist.default({
|
|
1908
|
-
businessId: businessId
|
|
1909
|
-
}, opts.hyperMediaEndpoint);
|
|
1910
|
-
return request(_objectSpread$5({}, opts, {
|
|
1911
|
-
path: pathGetAttachmentUrl(businessId)
|
|
1912
|
-
}), {
|
|
1913
|
-
method: 'get',
|
|
1914
|
-
params: query
|
|
1915
|
-
});
|
|
1916
|
-
};
|
|
1917
|
-
|
|
1918
1868
|
var attachments = /*#__PURE__*/Object.freeze({
|
|
1919
1869
|
__proto__: null,
|
|
1920
1870
|
pathGetClaimAttachmentUrl: pathGetClaimAttachmentUrl,
|
|
1921
1871
|
pathGetS3SignedUrl: pathGetS3SignedUrl,
|
|
1922
1872
|
pathScanClaimFile: pathScanClaimFile,
|
|
1923
|
-
pathScanFile: pathScanFile,
|
|
1924
|
-
pathGetAttachmentUrl: pathGetAttachmentUrl,
|
|
1925
1873
|
getClaimAttachmentUrl: getClaimAttachmentUrl,
|
|
1926
1874
|
scanClaimFile: scanClaimFile,
|
|
1927
|
-
getS3SignedUrl: getS3SignedUrl
|
|
1928
|
-
scanFile: scanFile,
|
|
1929
|
-
getAttachmentUrl: getAttachmentUrl
|
|
1875
|
+
getS3SignedUrl: getS3SignedUrl
|
|
1930
1876
|
});
|
|
1931
1877
|
|
|
1932
1878
|
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; }
|
|
@@ -2532,6 +2478,186 @@ var members = /*#__PURE__*/Object.freeze({
|
|
|
2532
2478
|
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; }
|
|
2533
2479
|
|
|
2534
2480
|
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; }
|
|
2481
|
+
var PATH__DEVICES = '/devices';
|
|
2482
|
+
var isRegistering = false;
|
|
2483
|
+
|
|
2484
|
+
var pathDeviceByDeviceId = function pathDeviceByDeviceId(deviceId) {
|
|
2485
|
+
return "/devices/" + deviceId;
|
|
2486
|
+
};
|
|
2487
|
+
/**
|
|
2488
|
+
* Register a device
|
|
2489
|
+
* @param {Object} opts - Additional options
|
|
2490
|
+
* @returns {Object} The device data
|
|
2491
|
+
*/
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
var registerDevice = /*#__PURE__*/function () {
|
|
2495
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(opts) {
|
|
2496
|
+
var deviceData, data, _data;
|
|
2497
|
+
|
|
2498
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2499
|
+
while (1) {
|
|
2500
|
+
switch (_context.prev = _context.next) {
|
|
2501
|
+
case 0:
|
|
2502
|
+
if (isRegistering) {
|
|
2503
|
+
_context.next = 15;
|
|
2504
|
+
break;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
_context.prev = 1;
|
|
2508
|
+
isRegistering = true;
|
|
2509
|
+
deviceData = {
|
|
2510
|
+
deviceType: 'browser',
|
|
2511
|
+
os: {
|
|
2512
|
+
type: platform.os.family || 'Unknown',
|
|
2513
|
+
ver: platform.os.version || '0'
|
|
2514
|
+
},
|
|
2515
|
+
app: {
|
|
2516
|
+
appId: platform.ua || 'Unknown'
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
_context.next = 6;
|
|
2520
|
+
return request(_objectSpread$7({}, opts, {
|
|
2521
|
+
path: PATH__DEVICES
|
|
2522
|
+
}), {
|
|
2523
|
+
method: 'post',
|
|
2524
|
+
data: deviceData,
|
|
2525
|
+
skipDeviceCheck: true
|
|
2526
|
+
});
|
|
2527
|
+
|
|
2528
|
+
case 6:
|
|
2529
|
+
data = _context.sent;
|
|
2530
|
+
sdkClient.device = data;
|
|
2531
|
+
storage.default.set('device', data);
|
|
2532
|
+
return _context.abrupt("return", data);
|
|
2533
|
+
|
|
2534
|
+
case 10:
|
|
2535
|
+
_context.prev = 10;
|
|
2536
|
+
isRegistering = false;
|
|
2537
|
+
return _context.finish(10);
|
|
2538
|
+
|
|
2539
|
+
case 13:
|
|
2540
|
+
_context.next = 20;
|
|
2541
|
+
break;
|
|
2542
|
+
|
|
2543
|
+
case 15:
|
|
2544
|
+
_context.next = 17;
|
|
2545
|
+
return new Promise(function (resolve) {
|
|
2546
|
+
return setTimeout(resolve, 100);
|
|
2547
|
+
});
|
|
2548
|
+
|
|
2549
|
+
case 17:
|
|
2550
|
+
_data = sdkClient.device;
|
|
2551
|
+
|
|
2552
|
+
case 18:
|
|
2553
|
+
if (!_data) {
|
|
2554
|
+
_context.next = 15;
|
|
2555
|
+
break;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
case 19:
|
|
2559
|
+
return _context.abrupt("return", _data);
|
|
2560
|
+
|
|
2561
|
+
case 20:
|
|
2562
|
+
case "end":
|
|
2563
|
+
return _context.stop();
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
}, _callee, null, [[1,, 10, 13]]);
|
|
2567
|
+
}));
|
|
2568
|
+
|
|
2569
|
+
return function registerDevice(_x) {
|
|
2570
|
+
return _ref.apply(this, arguments);
|
|
2571
|
+
};
|
|
2572
|
+
}();
|
|
2573
|
+
/**
|
|
2574
|
+
* Check if the device exists, and set the device id request header.
|
|
2575
|
+
*/
|
|
2576
|
+
|
|
2577
|
+
var getDeviceId = /*#__PURE__*/function () {
|
|
2578
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
2579
|
+
var device, data;
|
|
2580
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
2581
|
+
while (1) {
|
|
2582
|
+
switch (_context2.prev = _context2.next) {
|
|
2583
|
+
case 0:
|
|
2584
|
+
device = sdkClient.device || storage.default.get('device');
|
|
2585
|
+
|
|
2586
|
+
if (!(!device || !device.deviceId)) {
|
|
2587
|
+
_context2.next = 6;
|
|
2588
|
+
break;
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
_context2.next = 4;
|
|
2592
|
+
return registerDevice();
|
|
2593
|
+
|
|
2594
|
+
case 4:
|
|
2595
|
+
data = _context2.sent;
|
|
2596
|
+
return _context2.abrupt("return", data.deviceId);
|
|
2597
|
+
|
|
2598
|
+
case 6:
|
|
2599
|
+
return _context2.abrupt("return", device.deviceId);
|
|
2600
|
+
|
|
2601
|
+
case 7:
|
|
2602
|
+
case "end":
|
|
2603
|
+
return _context2.stop();
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
}, _callee2);
|
|
2607
|
+
}));
|
|
2608
|
+
|
|
2609
|
+
return function getDeviceId() {
|
|
2610
|
+
return _ref2.apply(this, arguments);
|
|
2611
|
+
};
|
|
2612
|
+
}();
|
|
2613
|
+
/**
|
|
2614
|
+
* Update device
|
|
2615
|
+
* @param {String} deviceId - Device ID
|
|
2616
|
+
* @param {Object} opts - Additional options
|
|
2617
|
+
*/
|
|
2618
|
+
|
|
2619
|
+
var updateDevice = /*#__PURE__*/function () {
|
|
2620
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(deviceId, opts) {
|
|
2621
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
2622
|
+
while (1) {
|
|
2623
|
+
switch (_context3.prev = _context3.next) {
|
|
2624
|
+
case 0:
|
|
2625
|
+
if (opts === void 0) {
|
|
2626
|
+
opts = {};
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
doesParamExist.default({
|
|
2630
|
+
deviceId: deviceId
|
|
2631
|
+
}, opts.hyperMediaEndpoint);
|
|
2632
|
+
return _context3.abrupt("return", request(_objectSpread$7({}, opts, {
|
|
2633
|
+
path: pathDeviceByDeviceId(deviceId)
|
|
2634
|
+
}), {
|
|
2635
|
+
method: 'put'
|
|
2636
|
+
}));
|
|
2637
|
+
|
|
2638
|
+
case 3:
|
|
2639
|
+
case "end":
|
|
2640
|
+
return _context3.stop();
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
}, _callee3);
|
|
2644
|
+
}));
|
|
2645
|
+
|
|
2646
|
+
return function updateDevice(_x2, _x3) {
|
|
2647
|
+
return _ref3.apply(this, arguments);
|
|
2648
|
+
};
|
|
2649
|
+
}();
|
|
2650
|
+
|
|
2651
|
+
var devices = /*#__PURE__*/Object.freeze({
|
|
2652
|
+
__proto__: null,
|
|
2653
|
+
registerDevice: registerDevice,
|
|
2654
|
+
getDeviceId: getDeviceId,
|
|
2655
|
+
updateDevice: updateDevice
|
|
2656
|
+
});
|
|
2657
|
+
|
|
2658
|
+
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; }
|
|
2659
|
+
|
|
2660
|
+
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; }
|
|
2535
2661
|
var PATH__AUTH = '/auth';
|
|
2536
2662
|
var PATH__OTK = '/otk';
|
|
2537
2663
|
var PATH__AUTH_TOKEN = '/auth/token';
|
|
@@ -2549,6 +2675,7 @@ var pathAuthyVerify = function pathAuthyVerify(accountId) {
|
|
|
2549
2675
|
};
|
|
2550
2676
|
|
|
2551
2677
|
var HEADER__SUPER_ADMIN = 'x-super-admin';
|
|
2678
|
+
var HEADER__DEVICE_ID = 'x-deviceid';
|
|
2552
2679
|
|
|
2553
2680
|
var setupAccountResources = /*#__PURE__*/function () {
|
|
2554
2681
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(account) {
|
|
@@ -2573,7 +2700,7 @@ var setupAccountResources = /*#__PURE__*/function () {
|
|
|
2573
2700
|
case 6:
|
|
2574
2701
|
member = _context.sent;
|
|
2575
2702
|
sdkClient.setMember(member);
|
|
2576
|
-
return _context.abrupt("return", _objectSpread$
|
|
2703
|
+
return _context.abrupt("return", _objectSpread$8({}, account, {
|
|
2577
2704
|
_member: member
|
|
2578
2705
|
}));
|
|
2579
2706
|
|
|
@@ -2603,7 +2730,7 @@ var setupAccountResources = /*#__PURE__*/function () {
|
|
|
2603
2730
|
|
|
2604
2731
|
var login = /*#__PURE__*/function () {
|
|
2605
2732
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(email, password, body, opts) {
|
|
2606
|
-
var data, res, isSuperAdmin, account;
|
|
2733
|
+
var data, res, isSuperAdmin, deviceId, account;
|
|
2607
2734
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
2608
2735
|
while (1) {
|
|
2609
2736
|
switch (_context2.prev = _context2.next) {
|
|
@@ -2618,7 +2745,7 @@ var login = /*#__PURE__*/function () {
|
|
|
2618
2745
|
};
|
|
2619
2746
|
}
|
|
2620
2747
|
|
|
2621
|
-
data = _objectSpread$
|
|
2748
|
+
data = _objectSpread$8({
|
|
2622
2749
|
email: email
|
|
2623
2750
|
}, body);
|
|
2624
2751
|
|
|
@@ -2629,7 +2756,7 @@ var login = /*#__PURE__*/function () {
|
|
|
2629
2756
|
|
|
2630
2757
|
|
|
2631
2758
|
_context2.next = 6;
|
|
2632
|
-
return request(_objectSpread$
|
|
2759
|
+
return request(_objectSpread$8({}, opts, {
|
|
2633
2760
|
path: PATH__AUTH,
|
|
2634
2761
|
getFullResponse: true
|
|
2635
2762
|
}), {
|
|
@@ -2640,31 +2767,36 @@ var login = /*#__PURE__*/function () {
|
|
|
2640
2767
|
case 6:
|
|
2641
2768
|
res = _context2.sent;
|
|
2642
2769
|
isSuperAdmin = res.headers[HEADER__SUPER_ADMIN];
|
|
2770
|
+
deviceId = res.config.headers[HEADER__DEVICE_ID];
|
|
2771
|
+
_context2.next = 11;
|
|
2772
|
+
return updateDevice(deviceId);
|
|
2643
2773
|
|
|
2774
|
+
case 11:
|
|
2644
2775
|
if (!(opts.asSuperAdmin && !isSuperAdmin)) {
|
|
2645
|
-
_context2.next =
|
|
2776
|
+
_context2.next = 14;
|
|
2646
2777
|
break;
|
|
2647
2778
|
}
|
|
2648
2779
|
|
|
2649
|
-
sdkClient.clearTokens();
|
|
2780
|
+
sdkClient.clearTokens(); // eslint-disable-next-line no-throw-literal
|
|
2781
|
+
|
|
2650
2782
|
throw {
|
|
2651
2783
|
response: 'You need to be a super admin to log in!'
|
|
2652
2784
|
};
|
|
2653
2785
|
|
|
2654
|
-
case
|
|
2786
|
+
case 14:
|
|
2655
2787
|
if (isSuperAdmin) {
|
|
2656
2788
|
sdkClient.isSuperAdmin = isSuperAdmin;
|
|
2657
2789
|
storage.default.set('isSuperAdmin', isSuperAdmin);
|
|
2658
2790
|
}
|
|
2659
2791
|
|
|
2660
|
-
_context2.next =
|
|
2792
|
+
_context2.next = 17;
|
|
2661
2793
|
return setupAccountResources(res.data);
|
|
2662
2794
|
|
|
2663
|
-
case
|
|
2795
|
+
case 17:
|
|
2664
2796
|
account = _context2.sent;
|
|
2665
2797
|
return _context2.abrupt("return", account);
|
|
2666
2798
|
|
|
2667
|
-
case
|
|
2799
|
+
case 19:
|
|
2668
2800
|
case "end":
|
|
2669
2801
|
return _context2.stop();
|
|
2670
2802
|
}
|
|
@@ -2733,7 +2865,7 @@ var impersonate = /*#__PURE__*/function () {
|
|
|
2733
2865
|
doesParamExist.default({
|
|
2734
2866
|
accountId: accountId
|
|
2735
2867
|
}, opts.hyperMediaEndpoint);
|
|
2736
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
2868
|
+
return _context4.abrupt("return", request(_objectSpread$8({}, opts, {
|
|
2737
2869
|
getFullResponse: true,
|
|
2738
2870
|
path: pathImpersonateAccount(accountId)
|
|
2739
2871
|
}), {
|
|
@@ -2765,7 +2897,7 @@ var logout = /*#__PURE__*/function () {
|
|
|
2765
2897
|
switch (_context5.prev = _context5.next) {
|
|
2766
2898
|
case 0:
|
|
2767
2899
|
_context5.next = 2;
|
|
2768
|
-
return request(_objectSpread$
|
|
2900
|
+
return request(_objectSpread$8({}, opts, {
|
|
2769
2901
|
getFullResponse: true,
|
|
2770
2902
|
path: PATH__AUTH
|
|
2771
2903
|
}), {
|
|
@@ -2803,12 +2935,12 @@ var requestOtk = /*#__PURE__*/function () {
|
|
|
2803
2935
|
while (1) {
|
|
2804
2936
|
switch (_context6.prev = _context6.next) {
|
|
2805
2937
|
case 0:
|
|
2806
|
-
body = _omitBy(_objectSpread$
|
|
2938
|
+
body = _omitBy(_objectSpread$8({
|
|
2807
2939
|
email: email,
|
|
2808
2940
|
accountId: accountId
|
|
2809
2941
|
}, requestBody), _isEmpty);
|
|
2810
2942
|
_context6.next = 3;
|
|
2811
|
-
return request(_objectSpread$
|
|
2943
|
+
return request(_objectSpread$8({}, opts, {
|
|
2812
2944
|
getFullResponse: true,
|
|
2813
2945
|
path: PATH__OTK
|
|
2814
2946
|
}), {
|
|
@@ -2853,7 +2985,7 @@ var generateAuthy = /*#__PURE__*/function () {
|
|
|
2853
2985
|
accountId: accountId
|
|
2854
2986
|
}, opts.hyperMediaEndpoint);
|
|
2855
2987
|
_context7.next = 4;
|
|
2856
|
-
return request(_objectSpread$
|
|
2988
|
+
return request(_objectSpread$8({}, opts, {
|
|
2857
2989
|
path: pathAuthy(accountId),
|
|
2858
2990
|
getFullResponse: true
|
|
2859
2991
|
}), {
|
|
@@ -2897,7 +3029,7 @@ var removeAuthy = /*#__PURE__*/function () {
|
|
|
2897
3029
|
accountId: accountId
|
|
2898
3030
|
}, opts.hyperMediaEndpoint);
|
|
2899
3031
|
_context8.next = 4;
|
|
2900
|
-
return request(_objectSpread$
|
|
3032
|
+
return request(_objectSpread$8({}, opts, {
|
|
2901
3033
|
path: pathAuthy(accountId),
|
|
2902
3034
|
getFullResponse: true
|
|
2903
3035
|
}), {
|
|
@@ -2942,7 +3074,7 @@ var verifyAuthy = /*#__PURE__*/function () {
|
|
|
2942
3074
|
accountId: accountId
|
|
2943
3075
|
}, opts.hyperMediaEndpoint);
|
|
2944
3076
|
_context9.next = 4;
|
|
2945
|
-
return request(_objectSpread$
|
|
3077
|
+
return request(_objectSpread$8({}, opts, {
|
|
2946
3078
|
path: pathAuthyVerify(accountId),
|
|
2947
3079
|
getFullResponse: true
|
|
2948
3080
|
}), {
|
|
@@ -2991,7 +3123,7 @@ var createShortLivedToken = /*#__PURE__*/function () {
|
|
|
2991
3123
|
}, opts.hyperMediaEndpoint);
|
|
2992
3124
|
sdkClient.setToken("Bearer " + apiKey);
|
|
2993
3125
|
_context10.next = 5;
|
|
2994
|
-
return request(_objectSpread$
|
|
3126
|
+
return request(_objectSpread$8({}, opts, {
|
|
2995
3127
|
path: PATH__AUTH_TOKEN
|
|
2996
3128
|
}), {
|
|
2997
3129
|
method: 'post',
|
|
@@ -3028,9 +3160,9 @@ var auth = /*#__PURE__*/Object.freeze({
|
|
|
3028
3160
|
createShortLivedToken: createShortLivedToken
|
|
3029
3161
|
});
|
|
3030
3162
|
|
|
3031
|
-
function ownKeys$
|
|
3163
|
+
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; }
|
|
3032
3164
|
|
|
3033
|
-
function _objectSpread$
|
|
3165
|
+
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; }
|
|
3034
3166
|
var PATH__APPLICATIONS = '/applications';
|
|
3035
3167
|
var PATH__SELF_APPLICATION = '/applications/me';
|
|
3036
3168
|
|
|
@@ -3048,7 +3180,7 @@ var getSelfApplication = function getSelfApplication(opts) {
|
|
|
3048
3180
|
opts = {};
|
|
3049
3181
|
}
|
|
3050
3182
|
|
|
3051
|
-
return request(_objectSpread$
|
|
3183
|
+
return request(_objectSpread$9({}, opts, {
|
|
3052
3184
|
path: PATH__SELF_APPLICATION
|
|
3053
3185
|
}), {
|
|
3054
3186
|
method: 'get'
|
|
@@ -3069,7 +3201,7 @@ var getApplications = function getApplications(query, opts) {
|
|
|
3069
3201
|
opts = {};
|
|
3070
3202
|
}
|
|
3071
3203
|
|
|
3072
|
-
return request(_objectSpread$
|
|
3204
|
+
return request(_objectSpread$9({}, opts, {
|
|
3073
3205
|
path: PATH__APPLICATIONS
|
|
3074
3206
|
}), {
|
|
3075
3207
|
method: 'get',
|
|
@@ -3090,7 +3222,7 @@ var getApplication = function getApplication(applicationId, opts) {
|
|
|
3090
3222
|
doesParamExist.default({
|
|
3091
3223
|
applicationId: applicationId
|
|
3092
3224
|
}, opts.hyperMediaEndpoint);
|
|
3093
|
-
return request(_objectSpread$
|
|
3225
|
+
return request(_objectSpread$9({}, opts, {
|
|
3094
3226
|
path: pathApplication(applicationId)
|
|
3095
3227
|
}), {
|
|
3096
3228
|
method: 'get'
|
|
@@ -3111,7 +3243,7 @@ var updateApplication = function updateApplication(applicationId, body, opts) {
|
|
|
3111
3243
|
doesParamExist.default({
|
|
3112
3244
|
applicationId: applicationId
|
|
3113
3245
|
}, opts.hyperMediaEndpoint);
|
|
3114
|
-
return request(_objectSpread$
|
|
3246
|
+
return request(_objectSpread$9({}, opts, {
|
|
3115
3247
|
path: pathApplication(applicationId)
|
|
3116
3248
|
}), {
|
|
3117
3249
|
method: 'put',
|
|
@@ -3129,7 +3261,7 @@ var createApplication = function createApplication(body, opts) {
|
|
|
3129
3261
|
opts = {};
|
|
3130
3262
|
}
|
|
3131
3263
|
|
|
3132
|
-
return request(_objectSpread$
|
|
3264
|
+
return request(_objectSpread$9({}, opts, {
|
|
3133
3265
|
path: PATH__APPLICATIONS
|
|
3134
3266
|
}), {
|
|
3135
3267
|
method: 'post',
|
|
@@ -3146,9 +3278,9 @@ var applications = /*#__PURE__*/Object.freeze({
|
|
|
3146
3278
|
createApplication: createApplication
|
|
3147
3279
|
});
|
|
3148
3280
|
|
|
3149
|
-
function ownKeys$
|
|
3281
|
+
function ownKeys$a(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; }
|
|
3150
3282
|
|
|
3151
|
-
function _objectSpread$
|
|
3283
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3152
3284
|
var pathBusinessBulkUploads = function pathBusinessBulkUploads(businessId) {
|
|
3153
3285
|
return "/businesses/" + businessId + "/bulkuploads";
|
|
3154
3286
|
};
|
|
@@ -3173,7 +3305,7 @@ var createBulkUpload = function createBulkUpload(businessId, body, opts) {
|
|
|
3173
3305
|
doesParamExist.default({
|
|
3174
3306
|
businessId: businessId
|
|
3175
3307
|
});
|
|
3176
|
-
return request(_objectSpread$
|
|
3308
|
+
return request(_objectSpread$a({}, opts, {
|
|
3177
3309
|
path: pathBusinessBulkUploads(businessId)
|
|
3178
3310
|
}), {
|
|
3179
3311
|
method: 'post',
|
|
@@ -3197,7 +3329,7 @@ var getBulkUpload = function getBulkUpload(businessId, bulkUploadId, opts) {
|
|
|
3197
3329
|
businessId: businessId,
|
|
3198
3330
|
bulkUploadId: bulkUploadId
|
|
3199
3331
|
});
|
|
3200
|
-
return request(_objectSpread$
|
|
3332
|
+
return request(_objectSpread$a({}, opts, {
|
|
3201
3333
|
path: pathBusinessBulkUpload(businessId, bulkUploadId)
|
|
3202
3334
|
}), {
|
|
3203
3335
|
method: 'get'
|
|
@@ -3218,7 +3350,7 @@ var getBulkUploadUrl = function getBulkUploadUrl(businessId, query, opts) {
|
|
|
3218
3350
|
doesParamExist.default({
|
|
3219
3351
|
businessId: businessId
|
|
3220
3352
|
});
|
|
3221
|
-
return request(_objectSpread$
|
|
3353
|
+
return request(_objectSpread$a({}, opts, {
|
|
3222
3354
|
path: pathBusinessBulkUploadUrl(businessId)
|
|
3223
3355
|
}), {
|
|
3224
3356
|
method: 'get',
|
|
@@ -3236,9 +3368,9 @@ var bulkUploads = /*#__PURE__*/Object.freeze({
|
|
|
3236
3368
|
getBulkUploadUrl: getBulkUploadUrl
|
|
3237
3369
|
});
|
|
3238
3370
|
|
|
3239
|
-
function ownKeys$
|
|
3371
|
+
function ownKeys$b(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; }
|
|
3240
3372
|
|
|
3241
|
-
function _objectSpread$
|
|
3373
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3242
3374
|
var pathSubmitDraftInvoices = function pathSubmitDraftInvoices(businessId) {
|
|
3243
3375
|
return "/businesses/" + businessId + "/bulksubmits";
|
|
3244
3376
|
};
|
|
@@ -3265,7 +3397,7 @@ var submitDraftInvoices = /*#__PURE__*/function () {
|
|
|
3265
3397
|
doesParamExist.default({
|
|
3266
3398
|
businessId: businessId
|
|
3267
3399
|
}, opts.hyperMediaEndpoint);
|
|
3268
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
3400
|
+
return _context.abrupt("return", request(_objectSpread$b({}, opts, {
|
|
3269
3401
|
path: pathSubmitDraftInvoices(businessId)
|
|
3270
3402
|
}), {
|
|
3271
3403
|
method: 'post',
|
|
@@ -3305,7 +3437,7 @@ var getDraftProgressStatus = /*#__PURE__*/function () {
|
|
|
3305
3437
|
businessId: businessId,
|
|
3306
3438
|
bulkSubmitId: bulkSubmitId
|
|
3307
3439
|
}, opts.hyperMediaEndpoint);
|
|
3308
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
3440
|
+
return _context2.abrupt("return", request(_objectSpread$b({}, opts, {
|
|
3309
3441
|
path: pathGetDraftProgressStatus(businessId, bulkSubmitId)
|
|
3310
3442
|
}), {
|
|
3311
3443
|
method: 'get',
|
|
@@ -3333,9 +3465,9 @@ var bulkSubmits = /*#__PURE__*/Object.freeze({
|
|
|
3333
3465
|
getDraftProgressStatus: getDraftProgressStatus
|
|
3334
3466
|
});
|
|
3335
3467
|
|
|
3336
|
-
function ownKeys$
|
|
3468
|
+
function ownKeys$c(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; }
|
|
3337
3469
|
|
|
3338
|
-
function _objectSpread$
|
|
3470
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3339
3471
|
var pathLinkBusinessProfile = function pathLinkBusinessProfile(businessProfileId) {
|
|
3340
3472
|
return "/businessprofiles/" + businessProfileId + "/link";
|
|
3341
3473
|
};
|
|
@@ -3353,7 +3485,7 @@ var getOrganisationBusinessProfiles = function getOrganisationBusinessProfiles(o
|
|
|
3353
3485
|
doesParamExist.default({
|
|
3354
3486
|
organisationId: organisationId
|
|
3355
3487
|
}, opts.hyperMediaEndpoint);
|
|
3356
|
-
return request(_objectSpread$
|
|
3488
|
+
return request(_objectSpread$c({}, opts, {
|
|
3357
3489
|
path: pathOrganisationBusinessProfiles(organisationId)
|
|
3358
3490
|
}), {
|
|
3359
3491
|
method: 'get',
|
|
@@ -3372,7 +3504,7 @@ var linkBusinessProfile = function linkBusinessProfile(businessProfileId, busine
|
|
|
3372
3504
|
var body = {
|
|
3373
3505
|
businessId: businessId
|
|
3374
3506
|
};
|
|
3375
|
-
return request(_objectSpread$
|
|
3507
|
+
return request(_objectSpread$c({}, opts, {
|
|
3376
3508
|
path: pathLinkBusinessProfile(businessProfileId)
|
|
3377
3509
|
}), {
|
|
3378
3510
|
method: 'put',
|
|
@@ -3387,7 +3519,7 @@ var unlinkBusinessProfile = function unlinkBusinessProfile(businessProfileId, op
|
|
|
3387
3519
|
doesParamExist.default({
|
|
3388
3520
|
businessProfileId: businessProfileId
|
|
3389
3521
|
}, opts.hyperMediaEndpoint);
|
|
3390
|
-
return request(_objectSpread$
|
|
3522
|
+
return request(_objectSpread$c({}, opts, {
|
|
3391
3523
|
path: pathUnlinkBusinessProfile(businessProfileId)
|
|
3392
3524
|
}), {
|
|
3393
3525
|
method: 'put'
|
|
@@ -3404,9 +3536,9 @@ var businessProfiles = /*#__PURE__*/Object.freeze({
|
|
|
3404
3536
|
unlinkBusinessProfile: unlinkBusinessProfile
|
|
3405
3537
|
});
|
|
3406
3538
|
|
|
3407
|
-
function ownKeys$
|
|
3539
|
+
function ownKeys$d(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; }
|
|
3408
3540
|
|
|
3409
|
-
function _objectSpread$
|
|
3541
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3410
3542
|
var PATH__BUSINESSES = '/businesses';
|
|
3411
3543
|
var PATH__MY_BUSINESSES = '/businesses/me';
|
|
3412
3544
|
|
|
@@ -3486,7 +3618,7 @@ var createBusiness = function createBusiness(body, opts) {
|
|
|
3486
3618
|
opts = {};
|
|
3487
3619
|
}
|
|
3488
3620
|
|
|
3489
|
-
return request(_objectSpread$
|
|
3621
|
+
return request(_objectSpread$d({}, opts, {
|
|
3490
3622
|
path: PATH__BUSINESSES
|
|
3491
3623
|
}), {
|
|
3492
3624
|
method: 'post',
|
|
@@ -3508,7 +3640,7 @@ var createOrganisationBusiness = function createOrganisationBusiness(organisatio
|
|
|
3508
3640
|
doesParamExist.default({
|
|
3509
3641
|
organisationId: organisationId
|
|
3510
3642
|
}, opts.hyperMediaEndpoint);
|
|
3511
|
-
return request(_objectSpread$
|
|
3643
|
+
return request(_objectSpread$d({}, opts, {
|
|
3512
3644
|
path: pathOrganisationBusiness(organisationId)
|
|
3513
3645
|
}), {
|
|
3514
3646
|
method: 'post',
|
|
@@ -3529,7 +3661,7 @@ var deleteBusiness = function deleteBusiness(businessId, opts) {
|
|
|
3529
3661
|
doesParamExist.default({
|
|
3530
3662
|
businessId: businessId
|
|
3531
3663
|
}, opts.hyperMediaEndpoint);
|
|
3532
|
-
return request(_objectSpread$
|
|
3664
|
+
return request(_objectSpread$d({}, opts, {
|
|
3533
3665
|
path: pathBusiness(businessId)
|
|
3534
3666
|
}), {
|
|
3535
3667
|
method: 'delete'
|
|
@@ -3550,7 +3682,7 @@ var disableBusiness = function disableBusiness(businessId, body, opts) {
|
|
|
3550
3682
|
doesParamExist.default({
|
|
3551
3683
|
businessId: businessId
|
|
3552
3684
|
}, opts.hyperMediaEndpoint);
|
|
3553
|
-
return request(_objectSpread$
|
|
3685
|
+
return request(_objectSpread$d({}, opts, {
|
|
3554
3686
|
path: pathDisableBusiness(businessId)
|
|
3555
3687
|
}), {
|
|
3556
3688
|
method: 'post',
|
|
@@ -3572,7 +3704,7 @@ var emailBusinessOnboardingQuestions = function emailBusinessOnboardingQuestions
|
|
|
3572
3704
|
doesParamExist.default({
|
|
3573
3705
|
businessId: businessId
|
|
3574
3706
|
}, opts.hyperMediaEndpoint);
|
|
3575
|
-
return request(_objectSpread$
|
|
3707
|
+
return request(_objectSpread$d({}, opts, {
|
|
3576
3708
|
path: pathBusinessOnboardingQuestions(businessId)
|
|
3577
3709
|
}), {
|
|
3578
3710
|
method: 'post',
|
|
@@ -3594,7 +3726,7 @@ var enableBusiness = function enableBusiness(businessId, body, opts) {
|
|
|
3594
3726
|
doesParamExist.default({
|
|
3595
3727
|
businessId: businessId
|
|
3596
3728
|
}, opts.hyperMediaEndpoint);
|
|
3597
|
-
return request(_objectSpread$
|
|
3729
|
+
return request(_objectSpread$d({}, opts, {
|
|
3598
3730
|
path: pathEnableBusiness(businessId)
|
|
3599
3731
|
}), {
|
|
3600
3732
|
method: 'post',
|
|
@@ -3620,7 +3752,7 @@ var getBusiness = function getBusiness(businessId, query, opts) {
|
|
|
3620
3752
|
doesParamExist.default({
|
|
3621
3753
|
businessId: businessId
|
|
3622
3754
|
}, opts.hyperMediaEndpoint);
|
|
3623
|
-
return request(_objectSpread$
|
|
3755
|
+
return request(_objectSpread$d({}, opts, {
|
|
3624
3756
|
path: pathBusiness(businessId)
|
|
3625
3757
|
}), {
|
|
3626
3758
|
method: 'get',
|
|
@@ -3642,7 +3774,7 @@ var getBusinesses = function getBusinesses(query, opts) {
|
|
|
3642
3774
|
opts = {};
|
|
3643
3775
|
}
|
|
3644
3776
|
|
|
3645
|
-
return request(_objectSpread$
|
|
3777
|
+
return request(_objectSpread$d({}, opts, {
|
|
3646
3778
|
path: PATH__BUSINESSES
|
|
3647
3779
|
}), {
|
|
3648
3780
|
method: 'get',
|
|
@@ -3664,7 +3796,7 @@ var getMyBusinesses = function getMyBusinesses(query, opts) {
|
|
|
3664
3796
|
opts = {};
|
|
3665
3797
|
}
|
|
3666
3798
|
|
|
3667
|
-
return request(_objectSpread$
|
|
3799
|
+
return request(_objectSpread$d({}, opts, {
|
|
3668
3800
|
path: PATH__MY_BUSINESSES
|
|
3669
3801
|
}), {
|
|
3670
3802
|
method: 'get',
|
|
@@ -3686,7 +3818,7 @@ var getBusinessPDFs = function getBusinessPDFs(businessId, body, opts) {
|
|
|
3686
3818
|
doesParamExist.default({
|
|
3687
3819
|
businessId: businessId
|
|
3688
3820
|
}, opts.hyperMediaEndpoint);
|
|
3689
|
-
return request(_objectSpread$
|
|
3821
|
+
return request(_objectSpread$d({}, opts, {
|
|
3690
3822
|
path: pathBusiness(businessId) + "/pdfs"
|
|
3691
3823
|
}), {
|
|
3692
3824
|
method: 'post',
|
|
@@ -3713,7 +3845,7 @@ var getAccountsBusinesses = function getAccountsBusinesses(accountId, query, opt
|
|
|
3713
3845
|
doesParamExist.default({
|
|
3714
3846
|
accountId: accountId
|
|
3715
3847
|
}, opts.hyperMediaEndpoint);
|
|
3716
|
-
return request(_objectSpread$
|
|
3848
|
+
return request(_objectSpread$d({}, opts, {
|
|
3717
3849
|
path: pathAccountsBusinesses(accountId)
|
|
3718
3850
|
}), {
|
|
3719
3851
|
method: 'get',
|
|
@@ -3739,7 +3871,7 @@ var getOrganisationBusinesses = function getOrganisationBusinesses(organisationI
|
|
|
3739
3871
|
doesParamExist.default({
|
|
3740
3872
|
organisationId: organisationId
|
|
3741
3873
|
}, opts.hyperMediaEndpoint);
|
|
3742
|
-
return request(_objectSpread$
|
|
3874
|
+
return request(_objectSpread$d({}, opts, {
|
|
3743
3875
|
path: pathOrganisationBusiness(organisationId)
|
|
3744
3876
|
}), {
|
|
3745
3877
|
method: 'get',
|
|
@@ -3761,7 +3893,7 @@ var updateBusiness = function updateBusiness(businessId, body, opts) {
|
|
|
3761
3893
|
doesParamExist.default({
|
|
3762
3894
|
businessId: businessId
|
|
3763
3895
|
}, opts.hyperMediaEndpoint);
|
|
3764
|
-
return request(_objectSpread$
|
|
3896
|
+
return request(_objectSpread$d({}, opts, {
|
|
3765
3897
|
path: pathBusiness(businessId)
|
|
3766
3898
|
}), {
|
|
3767
3899
|
method: 'put',
|
|
@@ -3783,7 +3915,7 @@ var unsuspendBusiness = function unsuspendBusiness(businessId, body, opts) {
|
|
|
3783
3915
|
doesParamExist.default({
|
|
3784
3916
|
businessId: businessId
|
|
3785
3917
|
}, opts.hyperMediaEndpoint);
|
|
3786
|
-
return request(_objectSpread$
|
|
3918
|
+
return request(_objectSpread$d({}, opts, {
|
|
3787
3919
|
path: pathUnsuspendBusiness(businessId)
|
|
3788
3920
|
}), {
|
|
3789
3921
|
method: 'post',
|
|
@@ -3805,7 +3937,7 @@ var verifyMedicare = function verifyMedicare(businessId, body, opts) {
|
|
|
3805
3937
|
doesParamExist.default({
|
|
3806
3938
|
businessId: businessId
|
|
3807
3939
|
}, opts.hyperMediaEndpoint);
|
|
3808
|
-
return request(_objectSpread$
|
|
3940
|
+
return request(_objectSpread$d({}, opts, {
|
|
3809
3941
|
path: pathVerifyMedicare(businessId)
|
|
3810
3942
|
}), {
|
|
3811
3943
|
method: 'post',
|
|
@@ -3827,7 +3959,7 @@ var oldVerifyDVA = function oldVerifyDVA(businessId, body, opts) {
|
|
|
3827
3959
|
doesParamExist.default({
|
|
3828
3960
|
businessId: businessId
|
|
3829
3961
|
}, opts.hyperMediaEndpoint);
|
|
3830
|
-
return request(_objectSpread$
|
|
3962
|
+
return request(_objectSpread$d({}, opts, {
|
|
3831
3963
|
path: oldPathVerifyDVA(businessId)
|
|
3832
3964
|
}), {
|
|
3833
3965
|
method: 'post',
|
|
@@ -3849,7 +3981,7 @@ var verifyDVA = function verifyDVA(businessId, body, opts) {
|
|
|
3849
3981
|
doesParamExist.default({
|
|
3850
3982
|
businessId: businessId
|
|
3851
3983
|
}, opts.hyperMediaEndpoint);
|
|
3852
|
-
return request(_objectSpread$
|
|
3984
|
+
return request(_objectSpread$d({}, opts, {
|
|
3853
3985
|
path: pathVerifyDVA(businessId)
|
|
3854
3986
|
}), {
|
|
3855
3987
|
method: 'post',
|
|
@@ -3871,7 +4003,7 @@ var verifyIcare = function verifyIcare(businessId, body, opts) {
|
|
|
3871
4003
|
doesParamExist.default({
|
|
3872
4004
|
businessId: businessId
|
|
3873
4005
|
}, opts.hyperMediaEndpoint);
|
|
3874
|
-
return request(_objectSpread$
|
|
4006
|
+
return request(_objectSpread$d({}, opts, {
|
|
3875
4007
|
path: pathVerifyIcare(businessId)
|
|
3876
4008
|
}), {
|
|
3877
4009
|
method: 'post',
|
|
@@ -3897,7 +4029,7 @@ var verifyComcare = function verifyComcare(businessId, staffId, providerSetItemI
|
|
|
3897
4029
|
staffId: staffId,
|
|
3898
4030
|
providerSetItemId: providerSetItemId
|
|
3899
4031
|
}, opts.hyperMediaEndpoint);
|
|
3900
|
-
return request(_objectSpread$
|
|
4032
|
+
return request(_objectSpread$d({}, opts, {
|
|
3901
4033
|
path: pathVerifyComcare(businessId, staffId, providerSetItemId)
|
|
3902
4034
|
}), {
|
|
3903
4035
|
method: 'post',
|
|
@@ -3919,7 +4051,7 @@ var createSupportNote = function createSupportNote(businessId, body, opts) {
|
|
|
3919
4051
|
doesParamExist.default({
|
|
3920
4052
|
businessId: businessId
|
|
3921
4053
|
}, opts.hyperMediaEndpoint);
|
|
3922
|
-
return request(_objectSpread$
|
|
4054
|
+
return request(_objectSpread$d({}, opts, {
|
|
3923
4055
|
path: pathCreateSupportNote(businessId)
|
|
3924
4056
|
}), {
|
|
3925
4057
|
method: 'post',
|
|
@@ -3941,7 +4073,7 @@ var getBsbDetails = function getBsbDetails(businessId, query, opts) {
|
|
|
3941
4073
|
doesParamExist.default({
|
|
3942
4074
|
businessId: businessId
|
|
3943
4075
|
}, opts.hyperMediaEndpoint);
|
|
3944
|
-
return request(_objectSpread$
|
|
4076
|
+
return request(_objectSpread$d({}, opts, {
|
|
3945
4077
|
path: pathBsbDetails(businessId)
|
|
3946
4078
|
}), {
|
|
3947
4079
|
method: 'get',
|
|
@@ -3963,7 +4095,7 @@ var sendBusinessEmail = function sendBusinessEmail(businessId, body, opts) {
|
|
|
3963
4095
|
doesParamExist.default({
|
|
3964
4096
|
businessId: businessId
|
|
3965
4097
|
}, opts.hyperMediaEndpoint);
|
|
3966
|
-
return request(_objectSpread$
|
|
4098
|
+
return request(_objectSpread$d({}, opts, {
|
|
3967
4099
|
path: pathBusinessSendEmails(businessId)
|
|
3968
4100
|
}), {
|
|
3969
4101
|
method: 'post',
|
|
@@ -3985,7 +4117,7 @@ var suspendBusiness = function suspendBusiness(businessId, body, opts) {
|
|
|
3985
4117
|
doesParamExist.default({
|
|
3986
4118
|
businessId: businessId
|
|
3987
4119
|
}, opts.hyperMediaEndpoint);
|
|
3988
|
-
return request(_objectSpread$
|
|
4120
|
+
return request(_objectSpread$d({}, opts, {
|
|
3989
4121
|
path: pathSuspendBusiness(businessId)
|
|
3990
4122
|
}), {
|
|
3991
4123
|
method: 'post',
|
|
@@ -4020,9 +4152,9 @@ var businesses = /*#__PURE__*/Object.freeze({
|
|
|
4020
4152
|
suspendBusiness: suspendBusiness
|
|
4021
4153
|
});
|
|
4022
4154
|
|
|
4023
|
-
function ownKeys$
|
|
4155
|
+
function ownKeys$e(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; }
|
|
4024
4156
|
|
|
4025
|
-
function _objectSpread$
|
|
4157
|
+
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4026
4158
|
|
|
4027
4159
|
var pathBusinessClaimItems = function pathBusinessClaimItems(businessId) {
|
|
4028
4160
|
return "/businesses/" + businessId + "/claimitems";
|
|
@@ -4064,7 +4196,7 @@ var getBusinessClaimItems = /*#__PURE__*/function () {
|
|
|
4064
4196
|
doesParamExist.default({
|
|
4065
4197
|
businessId: businessId
|
|
4066
4198
|
}, opts.hyperMediaEndpoint);
|
|
4067
|
-
return _context.abrupt("return", request(_objectSpread$
|
|
4199
|
+
return _context.abrupt("return", request(_objectSpread$e({}, opts, {
|
|
4068
4200
|
path: pathBusinessClaimItems(businessId)
|
|
4069
4201
|
}), {
|
|
4070
4202
|
method: 'get',
|
|
@@ -4109,7 +4241,7 @@ var getBusinessClaimItem = /*#__PURE__*/function () {
|
|
|
4109
4241
|
businessId: businessId,
|
|
4110
4242
|
claimItemId: claimItemId
|
|
4111
4243
|
}, opts.hyperMediaEndpoint);
|
|
4112
|
-
return _context2.abrupt("return", request(_objectSpread$
|
|
4244
|
+
return _context2.abrupt("return", request(_objectSpread$e({}, opts, {
|
|
4113
4245
|
path: pathBusinessClaimItem(businessId, claimItemId)
|
|
4114
4246
|
}), {
|
|
4115
4247
|
method: 'get',
|
|
@@ -4152,7 +4284,7 @@ var getHealthFundClaimItems = /*#__PURE__*/function () {
|
|
|
4152
4284
|
doesParamExist.default({
|
|
4153
4285
|
healthFundId: healthFundId
|
|
4154
4286
|
}, opts.hyperMediaEndpoint);
|
|
4155
|
-
return _context3.abrupt("return", request(_objectSpread$
|
|
4287
|
+
return _context3.abrupt("return", request(_objectSpread$e({}, opts, {
|
|
4156
4288
|
path: pathHealthFundClaimItems(healthFundId)
|
|
4157
4289
|
}), {
|
|
4158
4290
|
method: 'get',
|
|
@@ -4197,7 +4329,7 @@ var getHealthFundClaimItem = /*#__PURE__*/function () {
|
|
|
4197
4329
|
healthFundId: healthFundId,
|
|
4198
4330
|
claimItemId: claimItemId
|
|
4199
4331
|
}, opts.hyperMediaEndpoint);
|
|
4200
|
-
return _context4.abrupt("return", request(_objectSpread$
|
|
4332
|
+
return _context4.abrupt("return", request(_objectSpread$e({}, opts, {
|
|
4201
4333
|
path: pathHealthFundClaimItem(healthFundId, claimItemId)
|
|
4202
4334
|
}), {
|
|
4203
4335
|
method: 'get',
|
|
@@ -4225,143 +4357,6 @@ var claimItems = /*#__PURE__*/Object.freeze({
|
|
|
4225
4357
|
getHealthFundClaimItem: getHealthFundClaimItem
|
|
4226
4358
|
});
|
|
4227
4359
|
|
|
4228
|
-
function ownKeys$e(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; }
|
|
4229
|
-
|
|
4230
|
-
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4231
|
-
var PATH__DEVICES = '/devices';
|
|
4232
|
-
var isRegistering = false;
|
|
4233
|
-
/**
|
|
4234
|
-
* Register a device
|
|
4235
|
-
* @param {Object} opts - Additional options
|
|
4236
|
-
* @returns {Object} The device data
|
|
4237
|
-
*/
|
|
4238
|
-
|
|
4239
|
-
var registerDevice = /*#__PURE__*/function () {
|
|
4240
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(opts) {
|
|
4241
|
-
var deviceData, data, _data;
|
|
4242
|
-
|
|
4243
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4244
|
-
while (1) {
|
|
4245
|
-
switch (_context.prev = _context.next) {
|
|
4246
|
-
case 0:
|
|
4247
|
-
if (isRegistering) {
|
|
4248
|
-
_context.next = 15;
|
|
4249
|
-
break;
|
|
4250
|
-
}
|
|
4251
|
-
|
|
4252
|
-
_context.prev = 1;
|
|
4253
|
-
isRegistering = true;
|
|
4254
|
-
deviceData = {
|
|
4255
|
-
deviceType: 'browser',
|
|
4256
|
-
os: {
|
|
4257
|
-
type: platform.os.family || 'Unknown',
|
|
4258
|
-
ver: platform.os.version || '0'
|
|
4259
|
-
},
|
|
4260
|
-
app: {
|
|
4261
|
-
appId: platform.ua || 'Unknown'
|
|
4262
|
-
}
|
|
4263
|
-
};
|
|
4264
|
-
_context.next = 6;
|
|
4265
|
-
return request(_objectSpread$e({}, opts, {
|
|
4266
|
-
path: PATH__DEVICES
|
|
4267
|
-
}), {
|
|
4268
|
-
method: 'post',
|
|
4269
|
-
data: deviceData,
|
|
4270
|
-
skipDeviceCheck: true
|
|
4271
|
-
});
|
|
4272
|
-
|
|
4273
|
-
case 6:
|
|
4274
|
-
data = _context.sent;
|
|
4275
|
-
sdkClient.device = data;
|
|
4276
|
-
storage.default.set('device', data);
|
|
4277
|
-
return _context.abrupt("return", data);
|
|
4278
|
-
|
|
4279
|
-
case 10:
|
|
4280
|
-
_context.prev = 10;
|
|
4281
|
-
isRegistering = false;
|
|
4282
|
-
return _context.finish(10);
|
|
4283
|
-
|
|
4284
|
-
case 13:
|
|
4285
|
-
_context.next = 20;
|
|
4286
|
-
break;
|
|
4287
|
-
|
|
4288
|
-
case 15:
|
|
4289
|
-
_context.next = 17;
|
|
4290
|
-
return new Promise(function (resolve) {
|
|
4291
|
-
return setTimeout(resolve, 100);
|
|
4292
|
-
});
|
|
4293
|
-
|
|
4294
|
-
case 17:
|
|
4295
|
-
_data = sdkClient.device;
|
|
4296
|
-
|
|
4297
|
-
case 18:
|
|
4298
|
-
if (!_data) {
|
|
4299
|
-
_context.next = 15;
|
|
4300
|
-
break;
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
case 19:
|
|
4304
|
-
return _context.abrupt("return", _data);
|
|
4305
|
-
|
|
4306
|
-
case 20:
|
|
4307
|
-
case "end":
|
|
4308
|
-
return _context.stop();
|
|
4309
|
-
}
|
|
4310
|
-
}
|
|
4311
|
-
}, _callee, null, [[1,, 10, 13]]);
|
|
4312
|
-
}));
|
|
4313
|
-
|
|
4314
|
-
return function registerDevice(_x) {
|
|
4315
|
-
return _ref.apply(this, arguments);
|
|
4316
|
-
};
|
|
4317
|
-
}();
|
|
4318
|
-
/**
|
|
4319
|
-
* Check if the device exists, and set the device id request header.
|
|
4320
|
-
*/
|
|
4321
|
-
|
|
4322
|
-
var getDeviceId = /*#__PURE__*/function () {
|
|
4323
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
4324
|
-
var device, data;
|
|
4325
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
4326
|
-
while (1) {
|
|
4327
|
-
switch (_context2.prev = _context2.next) {
|
|
4328
|
-
case 0:
|
|
4329
|
-
device = sdkClient.device || storage.default.get('device');
|
|
4330
|
-
|
|
4331
|
-
if (!(!device || !device.deviceId)) {
|
|
4332
|
-
_context2.next = 6;
|
|
4333
|
-
break;
|
|
4334
|
-
}
|
|
4335
|
-
|
|
4336
|
-
_context2.next = 4;
|
|
4337
|
-
return registerDevice();
|
|
4338
|
-
|
|
4339
|
-
case 4:
|
|
4340
|
-
data = _context2.sent;
|
|
4341
|
-
return _context2.abrupt("return", data.deviceId);
|
|
4342
|
-
|
|
4343
|
-
case 6:
|
|
4344
|
-
return _context2.abrupt("return", device.deviceId);
|
|
4345
|
-
|
|
4346
|
-
case 7:
|
|
4347
|
-
case "end":
|
|
4348
|
-
return _context2.stop();
|
|
4349
|
-
}
|
|
4350
|
-
}
|
|
4351
|
-
}, _callee2);
|
|
4352
|
-
}));
|
|
4353
|
-
|
|
4354
|
-
return function getDeviceId() {
|
|
4355
|
-
return _ref2.apply(this, arguments);
|
|
4356
|
-
};
|
|
4357
|
-
}();
|
|
4358
|
-
|
|
4359
|
-
var devices = /*#__PURE__*/Object.freeze({
|
|
4360
|
-
__proto__: null,
|
|
4361
|
-
registerDevice: registerDevice,
|
|
4362
|
-
getDeviceId: getDeviceId
|
|
4363
|
-
});
|
|
4364
|
-
|
|
4365
4360
|
function ownKeys$f(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; }
|
|
4366
4361
|
|
|
4367
4362
|
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -21059,95 +21054,6 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
|
|
|
21059
21054
|
return _ref8.apply(this, arguments);
|
|
21060
21055
|
};
|
|
21061
21056
|
}();
|
|
21062
|
-
/**
|
|
21063
|
-
* Upload attachment to S3
|
|
21064
|
-
* @param {String} businessId - Business ID
|
|
21065
|
-
* @param {String} healthFundId - Health fund ID
|
|
21066
|
-
* @param {File} file - File
|
|
21067
|
-
*/
|
|
21068
|
-
|
|
21069
|
-
var uploadAttachmentToS3 = /*#__PURE__*/function () {
|
|
21070
|
-
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, healthFundId, file, opts) {
|
|
21071
|
-
var awsAxios, _yield$getAttachmentU, signedPost, s3Url, s3SignedUrlId, bodyFormData, key;
|
|
21072
|
-
|
|
21073
|
-
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
21074
|
-
while (1) {
|
|
21075
|
-
switch (_context9.prev = _context9.next) {
|
|
21076
|
-
case 0:
|
|
21077
|
-
awsAxios = axios.create();
|
|
21078
|
-
|
|
21079
|
-
if (businessId) {
|
|
21080
|
-
_context9.next = 3;
|
|
21081
|
-
break;
|
|
21082
|
-
}
|
|
21083
|
-
|
|
21084
|
-
throw new paramError.default('businessId');
|
|
21085
|
-
|
|
21086
|
-
case 3:
|
|
21087
|
-
if (healthFundId) {
|
|
21088
|
-
_context9.next = 5;
|
|
21089
|
-
break;
|
|
21090
|
-
}
|
|
21091
|
-
|
|
21092
|
-
throw new paramError.default('healthFundId');
|
|
21093
|
-
|
|
21094
|
-
case 5:
|
|
21095
|
-
if (file) {
|
|
21096
|
-
_context9.next = 7;
|
|
21097
|
-
break;
|
|
21098
|
-
}
|
|
21099
|
-
|
|
21100
|
-
throw new paramError.default('file');
|
|
21101
|
-
|
|
21102
|
-
case 7:
|
|
21103
|
-
_context9.prev = 7;
|
|
21104
|
-
_context9.next = 10;
|
|
21105
|
-
return getAttachmentUrl(businessId, {
|
|
21106
|
-
contentType: file.type,
|
|
21107
|
-
fileName: file.name,
|
|
21108
|
-
healthFundId: healthFundId,
|
|
21109
|
-
contentLength: file.size
|
|
21110
|
-
}, opts);
|
|
21111
|
-
|
|
21112
|
-
case 10:
|
|
21113
|
-
_yield$getAttachmentU = _context9.sent;
|
|
21114
|
-
signedPost = _yield$getAttachmentU.signedPost;
|
|
21115
|
-
s3Url = _yield$getAttachmentU.s3Url;
|
|
21116
|
-
s3SignedUrlId = _yield$getAttachmentU.s3SignedUrlId;
|
|
21117
|
-
// eslint-disable-next-line
|
|
21118
|
-
bodyFormData = new FormData();
|
|
21119
|
-
|
|
21120
|
-
for (key in signedPost.fields) {
|
|
21121
|
-
bodyFormData.append(key, signedPost.fields[key]);
|
|
21122
|
-
}
|
|
21123
|
-
|
|
21124
|
-
bodyFormData.append('file', file);
|
|
21125
|
-
_context9.next = 19;
|
|
21126
|
-
return awsAxios.post(signedPost.url, bodyFormData);
|
|
21127
|
-
|
|
21128
|
-
case 19:
|
|
21129
|
-
return _context9.abrupt("return", {
|
|
21130
|
-
s3Url: s3Url,
|
|
21131
|
-
s3SignedUrlId: s3SignedUrlId
|
|
21132
|
-
});
|
|
21133
|
-
|
|
21134
|
-
case 22:
|
|
21135
|
-
_context9.prev = 22;
|
|
21136
|
-
_context9.t0 = _context9["catch"](7);
|
|
21137
|
-
throw _context9.t0;
|
|
21138
|
-
|
|
21139
|
-
case 25:
|
|
21140
|
-
case "end":
|
|
21141
|
-
return _context9.stop();
|
|
21142
|
-
}
|
|
21143
|
-
}
|
|
21144
|
-
}, _callee9, null, [[7, 22]]);
|
|
21145
|
-
}));
|
|
21146
|
-
|
|
21147
|
-
return function uploadAttachmentToS3(_x30, _x31, _x32, _x33) {
|
|
21148
|
-
return _ref9.apply(this, arguments);
|
|
21149
|
-
};
|
|
21150
|
-
}();
|
|
21151
21057
|
|
|
21152
21058
|
var aws = /*#__PURE__*/Object.freeze({
|
|
21153
21059
|
__proto__: null,
|
|
@@ -21158,8 +21064,7 @@ var aws = /*#__PURE__*/Object.freeze({
|
|
|
21158
21064
|
uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
|
|
21159
21065
|
uploadInvoiceScanToS3: uploadInvoiceScanToS3,
|
|
21160
21066
|
uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
|
|
21161
|
-
uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
|
|
21162
|
-
uploadAttachmentToS3: uploadAttachmentToS3
|
|
21067
|
+
uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
|
|
21163
21068
|
});
|
|
21164
21069
|
|
|
21165
21070
|
function ownKeys$1d(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; }
|
|
@@ -21532,7 +21437,7 @@ var DEFAULT_VERSION = 'v1';
|
|
|
21532
21437
|
var HEADER__APP_ID = 'x-appid';
|
|
21533
21438
|
var HEADER__APP_VERSION = 'x-appver';
|
|
21534
21439
|
var HEADER__API_VER = 'x-apiver';
|
|
21535
|
-
var HEADER__DEVICE_ID = 'x-deviceid';
|
|
21440
|
+
var HEADER__DEVICE_ID$1 = 'x-deviceid';
|
|
21536
21441
|
var HEADER__INTERCOM_HASH = 'x-intercom-hash';
|
|
21537
21442
|
var HEADER__SDK_VERSION = 'x-sdkver';
|
|
21538
21443
|
var HEADER__TOKEN = 'x-token';
|
|
@@ -21783,7 +21688,7 @@ var sdkClient = {
|
|
|
21783
21688
|
|
|
21784
21689
|
case 10:
|
|
21785
21690
|
deviceId = _context.sent;
|
|
21786
|
-
request.headers[HEADER__DEVICE_ID] = deviceId;
|
|
21691
|
+
request.headers[HEADER__DEVICE_ID$1] = deviceId;
|
|
21787
21692
|
|
|
21788
21693
|
case 12:
|
|
21789
21694
|
if (_this.requestInterceptorSuccess) {
|
|
@@ -22119,7 +22024,7 @@ exports.DEFAULT_VERSION = DEFAULT_VERSION;
|
|
|
22119
22024
|
exports.HEADER__API_VER = HEADER__API_VER;
|
|
22120
22025
|
exports.HEADER__APP_ID = HEADER__APP_ID;
|
|
22121
22026
|
exports.HEADER__APP_VERSION = HEADER__APP_VERSION;
|
|
22122
|
-
exports.HEADER__DEVICE_ID = HEADER__DEVICE_ID;
|
|
22027
|
+
exports.HEADER__DEVICE_ID = HEADER__DEVICE_ID$1;
|
|
22123
22028
|
exports.HEADER__INTERCOM_HASH = HEADER__INTERCOM_HASH;
|
|
22124
22029
|
exports.HEADER__SDK_VERSION = HEADER__SDK_VERSION;
|
|
22125
22030
|
exports.HEADER__TOKEN = HEADER__TOKEN;
|
|
@@ -22318,7 +22223,6 @@ exports.getAction = getAction;
|
|
|
22318
22223
|
exports.getActions = getActions;
|
|
22319
22224
|
exports.getApplication = getApplication;
|
|
22320
22225
|
exports.getApplications = getApplications;
|
|
22321
|
-
exports.getAttachmentUrl = getAttachmentUrl;
|
|
22322
22226
|
exports.getBsbDetails = getBsbDetails;
|
|
22323
22227
|
exports.getBulkUpload = getBulkUpload;
|
|
22324
22228
|
exports.getBulkUploadUrl = getBulkUploadUrl;
|
|
@@ -22632,7 +22536,6 @@ exports.pathFunderValues = pathFunderValues;
|
|
|
22632
22536
|
exports.pathFunderValuesById = pathFunderValuesById;
|
|
22633
22537
|
exports.pathFuture = pathFuture;
|
|
22634
22538
|
exports.pathGetAbr = pathGetAbr;
|
|
22635
|
-
exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
|
|
22636
22539
|
exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
|
|
22637
22540
|
exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
|
|
22638
22541
|
exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
|
|
@@ -22698,7 +22601,6 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
|
|
|
22698
22601
|
exports.pathResetTerminal = pathResetTerminal;
|
|
22699
22602
|
exports.pathResumeComplexVerification = pathResumeComplexVerification;
|
|
22700
22603
|
exports.pathScanClaimFile = pathScanClaimFile;
|
|
22701
|
-
exports.pathScanFile = pathScanFile;
|
|
22702
22604
|
exports.pathSendReceipt = pathSendReceipt;
|
|
22703
22605
|
exports.pathSendWorkerMessage = pathSendWorkerMessage;
|
|
22704
22606
|
exports.pathSignUp = pathSignUp;
|
|
@@ -22772,7 +22674,6 @@ exports.saveDraft = saveDraft;
|
|
|
22772
22674
|
exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
|
|
22773
22675
|
exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
|
|
22774
22676
|
exports.scanClaimFile = scanClaimFile;
|
|
22775
|
-
exports.scanFile = scanFile;
|
|
22776
22677
|
exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
|
|
22777
22678
|
exports.sdk = sdkClient;
|
|
22778
22679
|
exports.sdkClient = sdkClient;
|
|
@@ -22843,6 +22744,7 @@ exports.updateBusinessStaffMember = updateBusinessStaffMember;
|
|
|
22843
22744
|
exports.updateBusinessStaffMemberEmail = updateBusinessStaffMemberEmail;
|
|
22844
22745
|
exports.updateBusinessSubscription = updateBusinessSubscription;
|
|
22845
22746
|
exports.updateClaim = updateClaim;
|
|
22747
|
+
exports.updateDevice = updateDevice;
|
|
22846
22748
|
exports.updateDocAccount = updateDocAccount;
|
|
22847
22749
|
exports.updateEmailPackage = updateEmailPackage;
|
|
22848
22750
|
exports.updateHealthFund = updateHealthFund;
|
|
@@ -22864,7 +22766,6 @@ exports.updateService = updateService;
|
|
|
22864
22766
|
exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
|
|
22865
22767
|
exports.updateTerminal = updateTerminal;
|
|
22866
22768
|
exports.updateTransaction = updateTransaction;
|
|
22867
|
-
exports.uploadAttachmentToS3 = uploadAttachmentToS3;
|
|
22868
22769
|
exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
|
|
22869
22770
|
exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
|
|
22870
22771
|
exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
|