backendless 6.3.9 → 6.3.10

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/backendless.d.ts CHANGED
@@ -297,7 +297,7 @@ declare module Backendless {
297
297
 
298
298
  function findByRole<T = Backendless.User>(roleName: string, loadRoles?: boolean, query?: Backendless.DataQueryBuilder | DataQueryI): Promise<T[]>;
299
299
 
300
- function getUserRoles(): Promise<string[]>;
300
+ function getUserRoles(userId?: string): Promise<string[]>;
301
301
 
302
302
  function describeUserClass(): Promise<Object[]>;
303
303
 
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 6.3.9
3
+ * Backendless SDK for JavaScript. Version: 6.3.10
4
4
  *
5
5
  * Copyright 2012-2022 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -22259,8 +22259,8 @@ var Urls = /*#__PURE__*/function () {
22259
22259
  }
22260
22260
  }, {
22261
22261
  key: "userRoles",
22262
- value: function userRoles() {
22263
- return "".concat(this.users(), "/userroles");
22262
+ value: function userRoles(userId) {
22263
+ return "".concat(this.users(), "/userroles").concat(userId ? "/".concat(userId) : '');
22264
22264
  }
22265
22265
  }, {
22266
22266
  key: "usersRole",
@@ -23159,12 +23159,12 @@ var Users = /*#__PURE__*/function () {
23159
23159
  }, {
23160
23160
  key: "getUserRoles",
23161
23161
  value: function () {
23162
- var _getUserRoles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee20() {
23162
+ var _getUserRoles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee20(userId) {
23163
23163
  return _regenerator["default"].wrap(function _callee20$(_context20) {
23164
23164
  while (1) {
23165
23165
  switch (_context20.prev = _context20.next) {
23166
23166
  case 0:
23167
- return _context20.abrupt("return", this.roles.getUserRoles());
23167
+ return _context20.abrupt("return", this.roles.getUserRoles(userId));
23168
23168
 
23169
23169
  case 1:
23170
23170
  case "end":
@@ -23174,7 +23174,7 @@ var Users = /*#__PURE__*/function () {
23174
23174
  }, _callee20, this);
23175
23175
  }));
23176
23176
 
23177
- function getUserRoles() {
23177
+ function getUserRoles(_x42) {
23178
23178
  return _getUserRoles.apply(this, arguments);
23179
23179
  }
23180
23180
 
@@ -23198,7 +23198,7 @@ var Users = /*#__PURE__*/function () {
23198
23198
  }, _callee21, this);
23199
23199
  }));
23200
23200
 
23201
- function assignRole(_x42, _x43) {
23201
+ function assignRole(_x43, _x44) {
23202
23202
  return _assignRole.apply(this, arguments);
23203
23203
  }
23204
23204
 
@@ -23222,7 +23222,7 @@ var Users = /*#__PURE__*/function () {
23222
23222
  }, _callee22, this);
23223
23223
  }));
23224
23224
 
23225
- function unassignRole(_x44, _x45) {
23225
+ function unassignRole(_x45, _x46) {
23226
23226
  return _unassignRole.apply(this, arguments);
23227
23227
  }
23228
23228
 
@@ -23272,7 +23272,7 @@ var Users = /*#__PURE__*/function () {
23272
23272
  }, _callee24, this);
23273
23273
  }));
23274
23274
 
23275
- function enableUser(_x46) {
23275
+ function enableUser(_x47) {
23276
23276
  return _enableUser.apply(this, arguments);
23277
23277
  }
23278
23278
 
@@ -23296,7 +23296,7 @@ var Users = /*#__PURE__*/function () {
23296
23296
  }, _callee25, this);
23297
23297
  }));
23298
23298
 
23299
- function disableUser(_x47) {
23299
+ function disableUser(_x48) {
23300
23300
  return _disableUser.apply(this, arguments);
23301
23301
  }
23302
23302
 
@@ -23341,7 +23341,7 @@ var Users = /*#__PURE__*/function () {
23341
23341
  }, _callee26, this);
23342
23342
  }));
23343
23343
 
23344
- function updateUserStatus(_x48, _x49) {
23344
+ function updateUserStatus(_x49, _x50) {
23345
23345
  return _updateUserStatus.apply(this, arguments);
23346
23346
  }
23347
23347
 
@@ -23531,13 +23531,13 @@ var UsersRoles = /*#__PURE__*/function () {
23531
23531
  }, {
23532
23532
  key: "getUserRoles",
23533
23533
  value: function () {
23534
- var _getUserRoles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
23534
+ var _getUserRoles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(userId) {
23535
23535
  return _regenerator["default"].wrap(function _callee2$(_context2) {
23536
23536
  while (1) {
23537
23537
  switch (_context2.prev = _context2.next) {
23538
23538
  case 0:
23539
23539
  return _context2.abrupt("return", this.app.request.get({
23540
- url: this.app.urls.userRoles()
23540
+ url: this.app.urls.userRoles(userId)
23541
23541
  }));
23542
23542
 
23543
23543
  case 1:
@@ -23548,7 +23548,7 @@ var UsersRoles = /*#__PURE__*/function () {
23548
23548
  }, _callee2, this);
23549
23549
  }));
23550
23550
 
23551
- function getUserRoles() {
23551
+ function getUserRoles(_x4) {
23552
23552
  return _getUserRoles.apply(this, arguments);
23553
23553
  }
23554
23554
 
@@ -23572,7 +23572,7 @@ var UsersRoles = /*#__PURE__*/function () {
23572
23572
  }, _callee3, this);
23573
23573
  }));
23574
23574
 
23575
- function assignRole(_x4, _x5) {
23575
+ function assignRole(_x5, _x6) {
23576
23576
  return _assignRole.apply(this, arguments);
23577
23577
  }
23578
23578
 
@@ -23596,7 +23596,7 @@ var UsersRoles = /*#__PURE__*/function () {
23596
23596
  }, _callee4, this);
23597
23597
  }));
23598
23598
 
23599
- function unassignRole(_x6, _x7) {
23599
+ function unassignRole(_x7, _x8) {
23600
23600
  return _unassignRole.apply(this, arguments);
23601
23601
  }
23602
23602
 
@@ -23642,7 +23642,7 @@ var UsersRoles = /*#__PURE__*/function () {
23642
23642
  }, _callee5, this);
23643
23643
  }));
23644
23644
 
23645
- function changeRole(_x8, _x9, _x10) {
23645
+ function changeRole(_x9, _x10, _x11) {
23646
23646
  return _changeRole.apply(this, arguments);
23647
23647
  }
23648
23648