@medipass/web-sdk 12.0.2 → 12.0.3-chore-add-accounts-me-endpoint.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.d.ts +5 -0
- package/lib/resources/accounts.js +2 -1
- package/lib/resources/actions.js +1 -1
- package/lib/resources/api-keys.js +1 -1
- package/lib/resources/applePay.js +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.js +1 -1
- package/lib/resources/auth.js +1 -1
- package/lib/resources/blacklist.js +1 -1
- package/lib/resources/bulk-submits.js +1 -1
- package/lib/resources/bulk-uploads.js +1 -1
- package/lib/resources/business-email-log.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.js +1 -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/icare.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/qbe.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/s3-files.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/transaction-reports.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.js +1 -1
- package/lib/services/version.js +1 -1
- package/lib/{staff-e8763757.js → staff-93fd9bda.js} +159 -120
- 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 +2 -2
|
@@ -267,6 +267,10 @@ var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
|
|
|
267
267
|
return "/accounts/" + accountId;
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
+
var pathGetCurrentAccount = function pathGetCurrentAccount() {
|
|
271
|
+
return '/accounts/me';
|
|
272
|
+
};
|
|
273
|
+
|
|
270
274
|
var pathAccountExists = function pathAccountExists() {
|
|
271
275
|
return "/accounts/exists";
|
|
272
276
|
};
|
|
@@ -1197,13 +1201,12 @@ var getAccountExists = /*#__PURE__*/function () {
|
|
|
1197
1201
|
};
|
|
1198
1202
|
}();
|
|
1199
1203
|
/**
|
|
1200
|
-
*
|
|
1201
|
-
* @param {String} accountId - Account ID
|
|
1204
|
+
* Returns the current account
|
|
1202
1205
|
* @param {Object} opts - Additional options
|
|
1203
1206
|
*/
|
|
1204
1207
|
|
|
1205
|
-
var
|
|
1206
|
-
var _ref24 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(
|
|
1208
|
+
var getCurrentAccount = /*#__PURE__*/function () {
|
|
1209
|
+
var _ref24 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee22(opts) {
|
|
1207
1210
|
return _regeneratorRuntime__default["default"].wrap(function _callee22$(_context22) {
|
|
1208
1211
|
while (1) {
|
|
1209
1212
|
switch (_context22.prev = _context22.next) {
|
|
@@ -1212,16 +1215,13 @@ var getAccountRoles = /*#__PURE__*/function () {
|
|
|
1212
1215
|
opts = {};
|
|
1213
1216
|
}
|
|
1214
1217
|
|
|
1215
|
-
utils_doesParamExist["default"]({
|
|
1216
|
-
accountId: accountId
|
|
1217
|
-
}, opts.hyperMediaEndpoint);
|
|
1218
1218
|
return _context22.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1219
|
-
path:
|
|
1219
|
+
path: pathGetCurrentAccount()
|
|
1220
1220
|
}), {
|
|
1221
1221
|
method: 'get'
|
|
1222
1222
|
}));
|
|
1223
1223
|
|
|
1224
|
-
case
|
|
1224
|
+
case 2:
|
|
1225
1225
|
case "end":
|
|
1226
1226
|
return _context22.stop();
|
|
1227
1227
|
}
|
|
@@ -1229,17 +1229,17 @@ var getAccountRoles = /*#__PURE__*/function () {
|
|
|
1229
1229
|
}, _callee22);
|
|
1230
1230
|
}));
|
|
1231
1231
|
|
|
1232
|
-
return function
|
|
1232
|
+
return function getCurrentAccount(_x53) {
|
|
1233
1233
|
return _ref24.apply(this, arguments);
|
|
1234
1234
|
};
|
|
1235
1235
|
}();
|
|
1236
1236
|
/**
|
|
1237
|
-
* Get account
|
|
1237
|
+
* Get account roles
|
|
1238
1238
|
* @param {String} accountId - Account ID
|
|
1239
1239
|
* @param {Object} opts - Additional options
|
|
1240
1240
|
*/
|
|
1241
1241
|
|
|
1242
|
-
var
|
|
1242
|
+
var getAccountRoles = /*#__PURE__*/function () {
|
|
1243
1243
|
var _ref25 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee23(accountId, opts) {
|
|
1244
1244
|
return _regeneratorRuntime__default["default"].wrap(function _callee23$(_context23) {
|
|
1245
1245
|
while (1) {
|
|
@@ -1253,7 +1253,7 @@ var getAccountSecretKeys = /*#__PURE__*/function () {
|
|
|
1253
1253
|
accountId: accountId
|
|
1254
1254
|
}, opts.hyperMediaEndpoint);
|
|
1255
1255
|
return _context23.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1256
|
-
path:
|
|
1256
|
+
path: pathAccountRolesByAccountId(accountId)
|
|
1257
1257
|
}), {
|
|
1258
1258
|
method: 'get'
|
|
1259
1259
|
}));
|
|
@@ -1266,10 +1266,47 @@ var getAccountSecretKeys = /*#__PURE__*/function () {
|
|
|
1266
1266
|
}, _callee23);
|
|
1267
1267
|
}));
|
|
1268
1268
|
|
|
1269
|
-
return function
|
|
1269
|
+
return function getAccountRoles(_x54, _x55) {
|
|
1270
1270
|
return _ref25.apply(this, arguments);
|
|
1271
1271
|
};
|
|
1272
1272
|
}();
|
|
1273
|
+
/**
|
|
1274
|
+
* Get account secret keys
|
|
1275
|
+
* @param {String} accountId - Account ID
|
|
1276
|
+
* @param {Object} opts - Additional options
|
|
1277
|
+
*/
|
|
1278
|
+
|
|
1279
|
+
var getAccountSecretKeys = /*#__PURE__*/function () {
|
|
1280
|
+
var _ref26 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee24(accountId, opts) {
|
|
1281
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee24$(_context24) {
|
|
1282
|
+
while (1) {
|
|
1283
|
+
switch (_context24.prev = _context24.next) {
|
|
1284
|
+
case 0:
|
|
1285
|
+
if (opts === void 0) {
|
|
1286
|
+
opts = {};
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
utils_doesParamExist["default"]({
|
|
1290
|
+
accountId: accountId
|
|
1291
|
+
}, opts.hyperMediaEndpoint);
|
|
1292
|
+
return _context24.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1293
|
+
path: pathAccountSecretKeysByAccountId(accountId)
|
|
1294
|
+
}), {
|
|
1295
|
+
method: 'get'
|
|
1296
|
+
}));
|
|
1297
|
+
|
|
1298
|
+
case 3:
|
|
1299
|
+
case "end":
|
|
1300
|
+
return _context24.stop();
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}, _callee24);
|
|
1304
|
+
}));
|
|
1305
|
+
|
|
1306
|
+
return function getAccountSecretKeys(_x56, _x57) {
|
|
1307
|
+
return _ref26.apply(this, arguments);
|
|
1308
|
+
};
|
|
1309
|
+
}();
|
|
1273
1310
|
/**
|
|
1274
1311
|
* Get account transactions
|
|
1275
1312
|
* @param {String} accountId - Account ID
|
|
@@ -1278,10 +1315,10 @@ var getAccountSecretKeys = /*#__PURE__*/function () {
|
|
|
1278
1315
|
*/
|
|
1279
1316
|
|
|
1280
1317
|
var getAccountTransactions = /*#__PURE__*/function () {
|
|
1281
|
-
var
|
|
1282
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1318
|
+
var _ref27 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee25(accountId, query, opts) {
|
|
1319
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee25$(_context25) {
|
|
1283
1320
|
while (1) {
|
|
1284
|
-
switch (
|
|
1321
|
+
switch (_context25.prev = _context25.next) {
|
|
1285
1322
|
case 0:
|
|
1286
1323
|
if (query === void 0) {
|
|
1287
1324
|
query = {};
|
|
@@ -1294,7 +1331,7 @@ var getAccountTransactions = /*#__PURE__*/function () {
|
|
|
1294
1331
|
utils_doesParamExist["default"]({
|
|
1295
1332
|
accountId: accountId
|
|
1296
1333
|
}, opts.hyperMediaEndpoint);
|
|
1297
|
-
return
|
|
1334
|
+
return _context25.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1298
1335
|
path: pathAccountTransactions(accountId)
|
|
1299
1336
|
}), {
|
|
1300
1337
|
method: 'get',
|
|
@@ -1303,14 +1340,14 @@ var getAccountTransactions = /*#__PURE__*/function () {
|
|
|
1303
1340
|
|
|
1304
1341
|
case 4:
|
|
1305
1342
|
case "end":
|
|
1306
|
-
return
|
|
1343
|
+
return _context25.stop();
|
|
1307
1344
|
}
|
|
1308
1345
|
}
|
|
1309
|
-
},
|
|
1346
|
+
}, _callee25);
|
|
1310
1347
|
}));
|
|
1311
1348
|
|
|
1312
|
-
return function getAccountTransactions(
|
|
1313
|
-
return
|
|
1349
|
+
return function getAccountTransactions(_x58, _x59, _x60) {
|
|
1350
|
+
return _ref27.apply(this, arguments);
|
|
1314
1351
|
};
|
|
1315
1352
|
}();
|
|
1316
1353
|
/**
|
|
@@ -1321,10 +1358,10 @@ var getAccountTransactions = /*#__PURE__*/function () {
|
|
|
1321
1358
|
*/
|
|
1322
1359
|
|
|
1323
1360
|
var inviteHealthFundAccount = /*#__PURE__*/function () {
|
|
1324
|
-
var
|
|
1325
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1361
|
+
var _ref28 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee26(healthFundId, body, opts) {
|
|
1362
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context26) {
|
|
1326
1363
|
while (1) {
|
|
1327
|
-
switch (
|
|
1364
|
+
switch (_context26.prev = _context26.next) {
|
|
1328
1365
|
case 0:
|
|
1329
1366
|
if (opts === void 0) {
|
|
1330
1367
|
opts = {};
|
|
@@ -1333,7 +1370,7 @@ var inviteHealthFundAccount = /*#__PURE__*/function () {
|
|
|
1333
1370
|
utils_doesParamExist["default"]({
|
|
1334
1371
|
healthFundId: healthFundId
|
|
1335
1372
|
}, opts.hyperMediaEndpoint);
|
|
1336
|
-
return
|
|
1373
|
+
return _context26.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1337
1374
|
path: pathHealthFundAccounts(healthFundId) + "/invites"
|
|
1338
1375
|
}), {
|
|
1339
1376
|
method: 'post',
|
|
@@ -1342,14 +1379,14 @@ var inviteHealthFundAccount = /*#__PURE__*/function () {
|
|
|
1342
1379
|
|
|
1343
1380
|
case 3:
|
|
1344
1381
|
case "end":
|
|
1345
|
-
return
|
|
1382
|
+
return _context26.stop();
|
|
1346
1383
|
}
|
|
1347
1384
|
}
|
|
1348
|
-
},
|
|
1385
|
+
}, _callee26);
|
|
1349
1386
|
}));
|
|
1350
1387
|
|
|
1351
|
-
return function inviteHealthFundAccount(
|
|
1352
|
-
return
|
|
1388
|
+
return function inviteHealthFundAccount(_x61, _x62, _x63) {
|
|
1389
|
+
return _ref28.apply(this, arguments);
|
|
1353
1390
|
};
|
|
1354
1391
|
}();
|
|
1355
1392
|
/**
|
|
@@ -1360,10 +1397,10 @@ var inviteHealthFundAccount = /*#__PURE__*/function () {
|
|
|
1360
1397
|
*/
|
|
1361
1398
|
|
|
1362
1399
|
var removeHealthFundFromAccount = /*#__PURE__*/function () {
|
|
1363
|
-
var
|
|
1364
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1400
|
+
var _ref29 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(healthFundId, accountId, opts) {
|
|
1401
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
|
|
1365
1402
|
while (1) {
|
|
1366
|
-
switch (
|
|
1403
|
+
switch (_context27.prev = _context27.next) {
|
|
1367
1404
|
case 0:
|
|
1368
1405
|
if (opts === void 0) {
|
|
1369
1406
|
opts = {};
|
|
@@ -1373,7 +1410,7 @@ var removeHealthFundFromAccount = /*#__PURE__*/function () {
|
|
|
1373
1410
|
accountId: accountId,
|
|
1374
1411
|
healthFundId: healthFundId
|
|
1375
1412
|
}, opts.hyperMediaEndpoint);
|
|
1376
|
-
return
|
|
1413
|
+
return _context27.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1377
1414
|
path: pathHealthFundAccount(healthFundId, accountId)
|
|
1378
1415
|
}), {
|
|
1379
1416
|
method: 'delete'
|
|
@@ -1381,14 +1418,14 @@ var removeHealthFundFromAccount = /*#__PURE__*/function () {
|
|
|
1381
1418
|
|
|
1382
1419
|
case 3:
|
|
1383
1420
|
case "end":
|
|
1384
|
-
return
|
|
1421
|
+
return _context27.stop();
|
|
1385
1422
|
}
|
|
1386
1423
|
}
|
|
1387
|
-
},
|
|
1424
|
+
}, _callee27);
|
|
1388
1425
|
}));
|
|
1389
1426
|
|
|
1390
|
-
return function removeHealthFundFromAccount(
|
|
1391
|
-
return
|
|
1427
|
+
return function removeHealthFundFromAccount(_x64, _x65, _x66) {
|
|
1428
|
+
return _ref29.apply(this, arguments);
|
|
1392
1429
|
};
|
|
1393
1430
|
}();
|
|
1394
1431
|
/**
|
|
@@ -1398,10 +1435,10 @@ var removeHealthFundFromAccount = /*#__PURE__*/function () {
|
|
|
1398
1435
|
*/
|
|
1399
1436
|
|
|
1400
1437
|
var requestToVerifyAccount = /*#__PURE__*/function () {
|
|
1401
|
-
var
|
|
1402
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1438
|
+
var _ref30 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(accountId, opts) {
|
|
1439
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context28) {
|
|
1403
1440
|
while (1) {
|
|
1404
|
-
switch (
|
|
1441
|
+
switch (_context28.prev = _context28.next) {
|
|
1405
1442
|
case 0:
|
|
1406
1443
|
if (opts === void 0) {
|
|
1407
1444
|
opts = {};
|
|
@@ -1410,7 +1447,7 @@ var requestToVerifyAccount = /*#__PURE__*/function () {
|
|
|
1410
1447
|
utils_doesParamExist["default"]({
|
|
1411
1448
|
accountId: accountId
|
|
1412
1449
|
}, opts.hyperMediaEndpoint);
|
|
1413
|
-
return
|
|
1450
|
+
return _context28.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1414
1451
|
path: pathRequestVerifyAccount(accountId)
|
|
1415
1452
|
}), {
|
|
1416
1453
|
method: 'post'
|
|
@@ -1418,14 +1455,14 @@ var requestToVerifyAccount = /*#__PURE__*/function () {
|
|
|
1418
1455
|
|
|
1419
1456
|
case 3:
|
|
1420
1457
|
case "end":
|
|
1421
|
-
return
|
|
1458
|
+
return _context28.stop();
|
|
1422
1459
|
}
|
|
1423
1460
|
}
|
|
1424
|
-
},
|
|
1461
|
+
}, _callee28);
|
|
1425
1462
|
}));
|
|
1426
1463
|
|
|
1427
|
-
return function requestToVerifyAccount(
|
|
1428
|
-
return
|
|
1464
|
+
return function requestToVerifyAccount(_x67, _x68) {
|
|
1465
|
+
return _ref30.apply(this, arguments);
|
|
1429
1466
|
};
|
|
1430
1467
|
}();
|
|
1431
1468
|
/**
|
|
@@ -1437,10 +1474,10 @@ var requestToVerifyAccount = /*#__PURE__*/function () {
|
|
|
1437
1474
|
*/
|
|
1438
1475
|
|
|
1439
1476
|
var signUp$1 = /*#__PURE__*/function () {
|
|
1440
|
-
var
|
|
1441
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1477
|
+
var _ref31 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(email, mobile, body, opts) {
|
|
1478
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee29$(_context29) {
|
|
1442
1479
|
while (1) {
|
|
1443
|
-
switch (
|
|
1480
|
+
switch (_context29.prev = _context29.next) {
|
|
1444
1481
|
case 0:
|
|
1445
1482
|
if (opts === void 0) {
|
|
1446
1483
|
opts = {};
|
|
@@ -1450,7 +1487,7 @@ var signUp$1 = /*#__PURE__*/function () {
|
|
|
1450
1487
|
email: email,
|
|
1451
1488
|
mobile: mobile
|
|
1452
1489
|
}, opts.hyperMediaEndpoint);
|
|
1453
|
-
return
|
|
1490
|
+
return _context29.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1454
1491
|
path: PATH__SIGN_UP
|
|
1455
1492
|
}), {
|
|
1456
1493
|
method: 'post',
|
|
@@ -1462,14 +1499,14 @@ var signUp$1 = /*#__PURE__*/function () {
|
|
|
1462
1499
|
|
|
1463
1500
|
case 3:
|
|
1464
1501
|
case "end":
|
|
1465
|
-
return
|
|
1502
|
+
return _context29.stop();
|
|
1466
1503
|
}
|
|
1467
1504
|
}
|
|
1468
|
-
},
|
|
1505
|
+
}, _callee29);
|
|
1469
1506
|
}));
|
|
1470
1507
|
|
|
1471
|
-
return function signUp(
|
|
1472
|
-
return
|
|
1508
|
+
return function signUp(_x69, _x70, _x71, _x72) {
|
|
1509
|
+
return _ref31.apply(this, arguments);
|
|
1473
1510
|
};
|
|
1474
1511
|
}();
|
|
1475
1512
|
/**
|
|
@@ -1479,16 +1516,16 @@ var signUp$1 = /*#__PURE__*/function () {
|
|
|
1479
1516
|
*/
|
|
1480
1517
|
|
|
1481
1518
|
var acceptInvite = /*#__PURE__*/function () {
|
|
1482
|
-
var
|
|
1483
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1519
|
+
var _ref32 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(body, opts) {
|
|
1520
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
|
|
1484
1521
|
while (1) {
|
|
1485
|
-
switch (
|
|
1522
|
+
switch (_context30.prev = _context30.next) {
|
|
1486
1523
|
case 0:
|
|
1487
1524
|
if (opts === void 0) {
|
|
1488
1525
|
opts = {};
|
|
1489
1526
|
}
|
|
1490
1527
|
|
|
1491
|
-
return
|
|
1528
|
+
return _context30.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1492
1529
|
path: PATH__ACCEPT_ACCOUNT_INVITE
|
|
1493
1530
|
}), {
|
|
1494
1531
|
method: 'post',
|
|
@@ -1497,14 +1534,14 @@ var acceptInvite = /*#__PURE__*/function () {
|
|
|
1497
1534
|
|
|
1498
1535
|
case 2:
|
|
1499
1536
|
case "end":
|
|
1500
|
-
return
|
|
1537
|
+
return _context30.stop();
|
|
1501
1538
|
}
|
|
1502
1539
|
}
|
|
1503
|
-
},
|
|
1540
|
+
}, _callee30);
|
|
1504
1541
|
}));
|
|
1505
1542
|
|
|
1506
|
-
return function acceptInvite(
|
|
1507
|
-
return
|
|
1543
|
+
return function acceptInvite(_x73, _x74) {
|
|
1544
|
+
return _ref32.apply(this, arguments);
|
|
1508
1545
|
};
|
|
1509
1546
|
}();
|
|
1510
1547
|
/**
|
|
@@ -1515,11 +1552,11 @@ var acceptInvite = /*#__PURE__*/function () {
|
|
|
1515
1552
|
*/
|
|
1516
1553
|
|
|
1517
1554
|
var updateAccount = /*#__PURE__*/function () {
|
|
1518
|
-
var
|
|
1555
|
+
var _ref33 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee31(accountId, body, opts) {
|
|
1519
1556
|
var account;
|
|
1520
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1557
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee31$(_context31) {
|
|
1521
1558
|
while (1) {
|
|
1522
|
-
switch (
|
|
1559
|
+
switch (_context31.prev = _context31.next) {
|
|
1523
1560
|
case 0:
|
|
1524
1561
|
if (opts === void 0) {
|
|
1525
1562
|
opts = {};
|
|
@@ -1528,7 +1565,7 @@ var updateAccount = /*#__PURE__*/function () {
|
|
|
1528
1565
|
utils_doesParamExist["default"]({
|
|
1529
1566
|
accountId: accountId
|
|
1530
1567
|
}, opts.hyperMediaEndpoint);
|
|
1531
|
-
|
|
1568
|
+
_context31.next = 4;
|
|
1532
1569
|
return request(_objectSpread$1k({}, opts, {
|
|
1533
1570
|
path: pathAccountsByAccountId(accountId)
|
|
1534
1571
|
}), {
|
|
@@ -1537,24 +1574,24 @@ var updateAccount = /*#__PURE__*/function () {
|
|
|
1537
1574
|
});
|
|
1538
1575
|
|
|
1539
1576
|
case 4:
|
|
1540
|
-
account =
|
|
1577
|
+
account = _context31.sent;
|
|
1541
1578
|
|
|
1542
1579
|
if (accountId === _get__default["default"](sdkClient, 'account._id')) {
|
|
1543
1580
|
sdkClient.setAccount(account);
|
|
1544
1581
|
}
|
|
1545
1582
|
|
|
1546
|
-
return
|
|
1583
|
+
return _context31.abrupt("return", account);
|
|
1547
1584
|
|
|
1548
1585
|
case 7:
|
|
1549
1586
|
case "end":
|
|
1550
|
-
return
|
|
1587
|
+
return _context31.stop();
|
|
1551
1588
|
}
|
|
1552
1589
|
}
|
|
1553
|
-
},
|
|
1590
|
+
}, _callee31);
|
|
1554
1591
|
}));
|
|
1555
1592
|
|
|
1556
|
-
return function updateAccount(
|
|
1557
|
-
return
|
|
1593
|
+
return function updateAccount(_x75, _x76, _x77) {
|
|
1594
|
+
return _ref33.apply(this, arguments);
|
|
1558
1595
|
};
|
|
1559
1596
|
}();
|
|
1560
1597
|
/**
|
|
@@ -1564,10 +1601,10 @@ var updateAccount = /*#__PURE__*/function () {
|
|
|
1564
1601
|
*/
|
|
1565
1602
|
|
|
1566
1603
|
var updateAccountRoles = /*#__PURE__*/function () {
|
|
1567
|
-
var
|
|
1568
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1604
|
+
var _ref34 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee32(accountId, body, opts) {
|
|
1605
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee32$(_context32) {
|
|
1569
1606
|
while (1) {
|
|
1570
|
-
switch (
|
|
1607
|
+
switch (_context32.prev = _context32.next) {
|
|
1571
1608
|
case 0:
|
|
1572
1609
|
if (opts === void 0) {
|
|
1573
1610
|
opts = {};
|
|
@@ -1576,7 +1613,7 @@ var updateAccountRoles = /*#__PURE__*/function () {
|
|
|
1576
1613
|
utils_doesParamExist["default"]({
|
|
1577
1614
|
accountId: accountId
|
|
1578
1615
|
}, opts.hyperMediaEndpoint);
|
|
1579
|
-
return
|
|
1616
|
+
return _context32.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1580
1617
|
path: pathAccountRolesByAccountId(accountId)
|
|
1581
1618
|
}), {
|
|
1582
1619
|
method: 'put',
|
|
@@ -1585,14 +1622,14 @@ var updateAccountRoles = /*#__PURE__*/function () {
|
|
|
1585
1622
|
|
|
1586
1623
|
case 3:
|
|
1587
1624
|
case "end":
|
|
1588
|
-
return
|
|
1625
|
+
return _context32.stop();
|
|
1589
1626
|
}
|
|
1590
1627
|
}
|
|
1591
|
-
},
|
|
1628
|
+
}, _callee32);
|
|
1592
1629
|
}));
|
|
1593
1630
|
|
|
1594
|
-
return function updateAccountRoles(
|
|
1595
|
-
return
|
|
1631
|
+
return function updateAccountRoles(_x78, _x79, _x80) {
|
|
1632
|
+
return _ref34.apply(this, arguments);
|
|
1596
1633
|
};
|
|
1597
1634
|
}();
|
|
1598
1635
|
/**
|
|
@@ -1603,10 +1640,10 @@ var updateAccountRoles = /*#__PURE__*/function () {
|
|
|
1603
1640
|
*/
|
|
1604
1641
|
|
|
1605
1642
|
var getAccountPractices = /*#__PURE__*/function () {
|
|
1606
|
-
var
|
|
1607
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1643
|
+
var _ref35 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee33(accountId, query, opts) {
|
|
1644
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee33$(_context33) {
|
|
1608
1645
|
while (1) {
|
|
1609
|
-
switch (
|
|
1646
|
+
switch (_context33.prev = _context33.next) {
|
|
1610
1647
|
case 0:
|
|
1611
1648
|
if (query === void 0) {
|
|
1612
1649
|
query = {};
|
|
@@ -1619,7 +1656,7 @@ var getAccountPractices = /*#__PURE__*/function () {
|
|
|
1619
1656
|
utils_doesParamExist["default"]({
|
|
1620
1657
|
accountId: accountId
|
|
1621
1658
|
}, opts.hyperMediaEndpoint);
|
|
1622
|
-
return
|
|
1659
|
+
return _context33.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1623
1660
|
path: pathAccountPractices(accountId)
|
|
1624
1661
|
}), {
|
|
1625
1662
|
method: 'get',
|
|
@@ -1628,14 +1665,14 @@ var getAccountPractices = /*#__PURE__*/function () {
|
|
|
1628
1665
|
|
|
1629
1666
|
case 4:
|
|
1630
1667
|
case "end":
|
|
1631
|
-
return
|
|
1668
|
+
return _context33.stop();
|
|
1632
1669
|
}
|
|
1633
1670
|
}
|
|
1634
|
-
},
|
|
1671
|
+
}, _callee33);
|
|
1635
1672
|
}));
|
|
1636
1673
|
|
|
1637
|
-
return function getAccountPractices(
|
|
1638
|
-
return
|
|
1674
|
+
return function getAccountPractices(_x81, _x82, _x83) {
|
|
1675
|
+
return _ref35.apply(this, arguments);
|
|
1639
1676
|
};
|
|
1640
1677
|
}();
|
|
1641
1678
|
/**
|
|
@@ -1645,16 +1682,16 @@ var getAccountPractices = /*#__PURE__*/function () {
|
|
|
1645
1682
|
*/
|
|
1646
1683
|
|
|
1647
1684
|
var changePassword = /*#__PURE__*/function () {
|
|
1648
|
-
var
|
|
1649
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1685
|
+
var _ref36 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee34(body, opts) {
|
|
1686
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee34$(_context34) {
|
|
1650
1687
|
while (1) {
|
|
1651
|
-
switch (
|
|
1688
|
+
switch (_context34.prev = _context34.next) {
|
|
1652
1689
|
case 0:
|
|
1653
1690
|
if (opts === void 0) {
|
|
1654
1691
|
opts = {};
|
|
1655
1692
|
}
|
|
1656
1693
|
|
|
1657
|
-
return
|
|
1694
|
+
return _context34.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1658
1695
|
path: pathChangePassword()
|
|
1659
1696
|
}), {
|
|
1660
1697
|
method: 'post',
|
|
@@ -1663,14 +1700,14 @@ var changePassword = /*#__PURE__*/function () {
|
|
|
1663
1700
|
|
|
1664
1701
|
case 2:
|
|
1665
1702
|
case "end":
|
|
1666
|
-
return
|
|
1703
|
+
return _context34.stop();
|
|
1667
1704
|
}
|
|
1668
1705
|
}
|
|
1669
|
-
},
|
|
1706
|
+
}, _callee34);
|
|
1670
1707
|
}));
|
|
1671
1708
|
|
|
1672
|
-
return function changePassword(
|
|
1673
|
-
return
|
|
1709
|
+
return function changePassword(_x84, _x85) {
|
|
1710
|
+
return _ref36.apply(this, arguments);
|
|
1674
1711
|
};
|
|
1675
1712
|
}();
|
|
1676
1713
|
/**
|
|
@@ -1681,10 +1718,10 @@ var changePassword = /*#__PURE__*/function () {
|
|
|
1681
1718
|
*/
|
|
1682
1719
|
|
|
1683
1720
|
var enableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
1684
|
-
var
|
|
1685
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1721
|
+
var _ref37 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(accountId, body, opts) {
|
|
1722
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
|
|
1686
1723
|
while (1) {
|
|
1687
|
-
switch (
|
|
1724
|
+
switch (_context35.prev = _context35.next) {
|
|
1688
1725
|
case 0:
|
|
1689
1726
|
if (opts === void 0) {
|
|
1690
1727
|
opts = {};
|
|
@@ -1693,7 +1730,7 @@ var enableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1693
1730
|
utils_doesParamExist["default"]({
|
|
1694
1731
|
accountId: accountId
|
|
1695
1732
|
}, opts.hyperMediaEndpoint);
|
|
1696
|
-
return
|
|
1733
|
+
return _context35.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1697
1734
|
path: pathEnableTwoFactorAuthentication(accountId)
|
|
1698
1735
|
}), {
|
|
1699
1736
|
method: 'post',
|
|
@@ -1702,14 +1739,14 @@ var enableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1702
1739
|
|
|
1703
1740
|
case 3:
|
|
1704
1741
|
case "end":
|
|
1705
|
-
return
|
|
1742
|
+
return _context35.stop();
|
|
1706
1743
|
}
|
|
1707
1744
|
}
|
|
1708
|
-
},
|
|
1745
|
+
}, _callee35);
|
|
1709
1746
|
}));
|
|
1710
1747
|
|
|
1711
|
-
return function enableTwoFactorAuthentication(
|
|
1712
|
-
return
|
|
1748
|
+
return function enableTwoFactorAuthentication(_x86, _x87, _x88) {
|
|
1749
|
+
return _ref37.apply(this, arguments);
|
|
1713
1750
|
};
|
|
1714
1751
|
}();
|
|
1715
1752
|
/**
|
|
@@ -1720,10 +1757,10 @@ var enableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1720
1757
|
*/
|
|
1721
1758
|
|
|
1722
1759
|
var disableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
1723
|
-
var
|
|
1724
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1760
|
+
var _ref38 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee36(accountId, body, opts) {
|
|
1761
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee36$(_context36) {
|
|
1725
1762
|
while (1) {
|
|
1726
|
-
switch (
|
|
1763
|
+
switch (_context36.prev = _context36.next) {
|
|
1727
1764
|
case 0:
|
|
1728
1765
|
if (opts === void 0) {
|
|
1729
1766
|
opts = {};
|
|
@@ -1732,7 +1769,7 @@ var disableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1732
1769
|
utils_doesParamExist["default"]({
|
|
1733
1770
|
accountId: accountId
|
|
1734
1771
|
}, opts.hyperMediaEndpoint);
|
|
1735
|
-
return
|
|
1772
|
+
return _context36.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1736
1773
|
path: pathDisableTwoFactorAuthentication(accountId)
|
|
1737
1774
|
}), {
|
|
1738
1775
|
method: 'delete',
|
|
@@ -1741,14 +1778,14 @@ var disableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1741
1778
|
|
|
1742
1779
|
case 3:
|
|
1743
1780
|
case "end":
|
|
1744
|
-
return
|
|
1781
|
+
return _context36.stop();
|
|
1745
1782
|
}
|
|
1746
1783
|
}
|
|
1747
|
-
},
|
|
1784
|
+
}, _callee36);
|
|
1748
1785
|
}));
|
|
1749
1786
|
|
|
1750
|
-
return function disableTwoFactorAuthentication(
|
|
1751
|
-
return
|
|
1787
|
+
return function disableTwoFactorAuthentication(_x89, _x90, _x91) {
|
|
1788
|
+
return _ref38.apply(this, arguments);
|
|
1752
1789
|
};
|
|
1753
1790
|
}();
|
|
1754
1791
|
/**
|
|
@@ -1759,10 +1796,10 @@ var disableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1759
1796
|
*/
|
|
1760
1797
|
|
|
1761
1798
|
var updateTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
1762
|
-
var
|
|
1763
|
-
return _regeneratorRuntime__default["default"].wrap(function
|
|
1799
|
+
var _ref39 = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee37(accountId, body, opts) {
|
|
1800
|
+
return _regeneratorRuntime__default["default"].wrap(function _callee37$(_context37) {
|
|
1764
1801
|
while (1) {
|
|
1765
|
-
switch (
|
|
1802
|
+
switch (_context37.prev = _context37.next) {
|
|
1766
1803
|
case 0:
|
|
1767
1804
|
if (opts === void 0) {
|
|
1768
1805
|
opts = {};
|
|
@@ -1771,7 +1808,7 @@ var updateTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1771
1808
|
utils_doesParamExist["default"]({
|
|
1772
1809
|
accountId: accountId
|
|
1773
1810
|
}, opts.hyperMediaEndpoint);
|
|
1774
|
-
return
|
|
1811
|
+
return _context37.abrupt("return", request(_objectSpread$1k({}, opts, {
|
|
1775
1812
|
path: pathUpdateTwoFactorAuthentication(accountId)
|
|
1776
1813
|
}), {
|
|
1777
1814
|
method: 'put',
|
|
@@ -1780,14 +1817,14 @@ var updateTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
|
1780
1817
|
|
|
1781
1818
|
case 3:
|
|
1782
1819
|
case "end":
|
|
1783
|
-
return
|
|
1820
|
+
return _context37.stop();
|
|
1784
1821
|
}
|
|
1785
1822
|
}
|
|
1786
|
-
},
|
|
1823
|
+
}, _callee37);
|
|
1787
1824
|
}));
|
|
1788
1825
|
|
|
1789
|
-
return function updateTwoFactorAuthentication(
|
|
1790
|
-
return
|
|
1826
|
+
return function updateTwoFactorAuthentication(_x92, _x93, _x94) {
|
|
1827
|
+
return _ref39.apply(this, arguments);
|
|
1791
1828
|
};
|
|
1792
1829
|
}();
|
|
1793
1830
|
|
|
@@ -1814,6 +1851,7 @@ var accounts = /*#__PURE__*/Object.freeze({
|
|
|
1814
1851
|
getAccount: getAccount,
|
|
1815
1852
|
getBusinessStaffAccount: getBusinessStaffAccount,
|
|
1816
1853
|
getAccountExists: getAccountExists,
|
|
1854
|
+
getCurrentAccount: getCurrentAccount,
|
|
1817
1855
|
getAccountRoles: getAccountRoles,
|
|
1818
1856
|
getAccountSecretKeys: getAccountSecretKeys,
|
|
1819
1857
|
getAccountTransactions: getAccountTransactions,
|
|
@@ -24062,6 +24100,7 @@ exports.getBusinesses = getBusinesses;
|
|
|
24062
24100
|
exports.getClaimAttachmentUrl = getClaimAttachmentUrl;
|
|
24063
24101
|
exports.getClientToken = getClientToken$1;
|
|
24064
24102
|
exports.getClientToken$1 = getClientToken;
|
|
24103
|
+
exports.getCurrentAccount = getCurrentAccount;
|
|
24065
24104
|
exports.getCurrentAppVersion = getCurrentAppVersion;
|
|
24066
24105
|
exports.getDeployment = getDeployment;
|
|
24067
24106
|
exports.getDeployments = getDeployments;
|