@frontegg/js 7.107.0-alpha.1 → 7.107.0-alpha.2

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.107.0-alpha.1
1
+ /** @license Frontegg v7.107.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.107.0-alpha.1
1
+ /** @license Frontegg v7.107.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '7.107.0-alpha.1'
8
+ cdnVersion: '7.107.0-alpha.2'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "7.107.0-alpha.1",
3
+ "version": "7.107.0-alpha.2",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/types": "7.107.0-alpha.1"
9
+ "@frontegg/types": "7.107.0-alpha.2"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1924,7 +1924,7 @@ __webpack_require__.r(__webpack_exports__);
1924
1924
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1925
1925
  /* harmony export */ });
1926
1926
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1927
- cdnVersion: '7.107.0-alpha.1'
1927
+ cdnVersion: '7.107.0-alpha.2'
1928
1928
  });
1929
1929
 
1930
1930
  /***/ }),
@@ -5270,16 +5270,19 @@ const _excluded = ["roleIds", "userIds"];
5270
5270
  value: true
5271
5271
  });
5272
5272
  try {
5273
+ var _payload$filter;
5274
+ const filterParam = (_payload$filter = payload.filter) != null && _payload$filter.length ? payload.filterType === 'name' ? {
5275
+ _namePrefix: payload.filter
5276
+ } : {
5277
+ _email: payload.filter
5278
+ } : {};
5273
5279
  const {
5274
5280
  items: teamUsers
5275
- } = await api.users.getUsersV2({
5276
- _filter: payload.filter,
5281
+ } = await api.users.getUsersV3((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, filterParam, {
5277
5282
  _offset: payload.pageOffset,
5278
5283
  _limit: payload.pageSize,
5279
5284
  _includeSubTenants: false
5280
- });
5281
-
5282
- // @ts-ignore // TODO: fix type in rest-api / group state or add mapper
5285
+ }));
5283
5286
  setGroupsState({
5284
5287
  teamUsers
5285
5288
  });
@@ -5329,8 +5332,6 @@ __webpack_require__.r(__webpack_exports__);
5329
5332
  /* harmony export */ GroupRelations: () => (/* binding */ GroupRelations),
5330
5333
  /* harmony export */ GroupsStateKeys: () => (/* binding */ GroupsStateKeys)
5331
5334
  /* harmony export */ });
5332
- // TODO: import from after adding teams State
5333
-
5334
5335
  let GroupsStateKeys;
5335
5336
  (function (GroupsStateKeys) {
5336
5337
  GroupsStateKeys["CREATE_GROUP"] = "CREATE_GROUP";
@@ -20241,7 +20242,7 @@ __webpack_require__.r(__webpack_exports__);
20241
20242
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
20242
20243
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
20243
20244
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
20244
- /** @license Frontegg v7.107.0-alpha.1
20245
+ /** @license Frontegg v7.107.0-alpha.2
20245
20246
  *
20246
20247
  * This source code is licensed under the MIT license found in the
20247
20248
  * LICENSE file in the root directory of this source tree.
@@ -30762,7 +30763,7 @@ __webpack_require__.r(__webpack_exports__);
30762
30763
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
30763
30764
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
30764
30765
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
30765
- /** @license Frontegg v7.107.0-alpha.1
30766
+ /** @license Frontegg v7.107.0-alpha.2
30766
30767
  *
30767
30768
  * This source code is licensed under the MIT license found in the
30768
30769
  * LICENSE file in the root directory of this source tree.
@@ -33559,7 +33560,7 @@ __webpack_require__.r(__webpack_exports__);
33559
33560
  /* harmony export */ });
33560
33561
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
33561
33562
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
33562
- /** @license Frontegg v7.107.0-alpha.1
33563
+ /** @license Frontegg v7.107.0-alpha.2
33563
33564
  *
33564
33565
  * This source code is licensed under the MIT license found in the
33565
33566
  * LICENSE file in the root directory of this source tree.