@frontegg/js 6.105.0-alpha.2 → 6.105.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.105.0-alpha.2
1
+ /** @license Frontegg v6.105.0
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 v6.105.0-alpha.2
1
+ /** @license Frontegg v6.105.0
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.
@@ -10,6 +10,6 @@ var mockFlagsList = {
10
10
  'new-mfa-pages': 'on',
11
11
  'show-passkeys-new': 'on',
12
12
  'groups-admin-box-new': 'on',
13
- 'msp-all-accounts': 'on'
13
+ 'msp-all-accounts-new': 'on'
14
14
  };
15
15
  exports.mockFlagsList = mockFlagsList;
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: '6.105.0-alpha.2'
8
+ cdnVersion: '6.105.0'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.105.0-alpha.2",
3
+ "version": "6.105.0",
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": "6.105.0-alpha.2"
9
+ "@frontegg/types": "6.105.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1223,7 +1223,7 @@ var mockFlagsList = {
1223
1223
  'new-mfa-pages': 'on',
1224
1224
  'show-passkeys-new': 'on',
1225
1225
  'groups-admin-box-new': 'on',
1226
- 'msp-all-accounts': 'on'
1226
+ 'msp-all-accounts-new': 'on'
1227
1227
  };
1228
1228
 
1229
1229
  /***/ }),
@@ -1240,7 +1240,7 @@ __webpack_require__.r(__webpack_exports__);
1240
1240
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1241
1241
  /* harmony export */ });
1242
1242
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1243
- cdnVersion: '6.105.0-alpha.2'
1243
+ cdnVersion: '6.105.0'
1244
1244
  });
1245
1245
 
1246
1246
  /***/ }),
@@ -7909,7 +7909,12 @@ function* createSubAccount({
7909
7909
  const updatedSingleAccountViewAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_8__.appendChildrenToNode)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
7910
7910
  name: '',
7911
7911
  tenantId: ''
7912
- }, selectedAccount == null ? void 0 : selectedAccount.accounts), parentTenantId != null ? parentTenantId : '', [createdSubTenant]);
7912
+ }, selectedAccount == null ? void 0 : selectedAccount.accounts), parentTenantId != null ? parentTenantId : '', [{
7913
+ name: createdSubTenant.name,
7914
+ tenantId: createdSubTenant.tenantId,
7915
+ numberOfUsers: 0,
7916
+ createdAt: new Date()
7917
+ }]);
7913
7918
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setSelectedAccountState({
7914
7919
  accounts: updatedSingleAccountViewAccounts
7915
7920
  }));
@@ -7922,7 +7927,12 @@ function* createSubAccount({
7922
7927
  tenantId,
7923
7928
  parentTenantId
7924
7929
  });
7925
- const updatedAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_8__.appendChildrenToNode)(accounts, parentTenantId != null ? parentTenantId : '', [createdSubTenant]);
7930
+ const updatedAccounts = (0,_utils_appendChildrenToNode__WEBPACK_IMPORTED_MODULE_8__.appendChildrenToNode)(accounts, parentTenantId != null ? parentTenantId : '', [{
7931
+ name: createdSubTenant.name,
7932
+ tenantId: createdSubTenant.tenantId,
7933
+ numberOfUsers: 0,
7934
+ createdAt: new Date()
7935
+ }]);
7926
7936
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsState({
7927
7937
  accounts: updatedAccounts
7928
7938
  }));
@@ -8018,7 +8028,8 @@ function* updateSubAccountSettings({
8018
8028
  const isSelectedAccountChange = !!jwt;
8019
8029
  if (isSelectedAccountChange) {
8020
8030
  const {
8021
- selectedAccount
8031
+ selectedAccount,
8032
+ accounts
8022
8033
  } = yield selectAllAccountsState();
8023
8034
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.subTenants.updateSubTenant, {
8024
8035
  tenantId
@@ -8032,6 +8043,10 @@ function* updateSubAccountSettings({
8032
8043
  name,
8033
8044
  accounts: udpatedAccs
8034
8045
  }));
8046
+ const udpatedAccsForAllAccountsPage = (0,_utils_updateNodeName__WEBPACK_IMPORTED_MODULE_10__.updateNodeName)(accounts, tenantId, name);
8047
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsState({
8048
+ accounts: udpatedAccsForAllAccountsPage
8049
+ }));
8035
8050
  } else {
8036
8051
  const {
8037
8052
  accounts
@@ -8117,12 +8132,19 @@ function* setUserRolesForSubAccount({
8117
8132
  jwt,
8118
8133
  callback
8119
8134
  } = payload;
8135
+ const {
8136
+ selectedAccount
8137
+ } = yield selectAllAccountsState();
8120
8138
  try {
8121
8139
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.subTenants.setUserRolesForSubTenants, userId, {
8122
8140
  subTenantsRoles
8123
8141
  }, {
8124
8142
  jwt
8125
8143
  });
8144
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getAccountUsers({
8145
+ jwt,
8146
+ _tenantId: selectedAccount.tenantId
8147
+ }));
8126
8148
  callback == null ? void 0 : callback(true);
8127
8149
  } catch (e) {
8128
8150
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
@@ -21294,7 +21316,7 @@ __webpack_require__.r(__webpack_exports__);
21294
21316
  /* harmony export */ });
21295
21317
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
21296
21318
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
21297
- /** @license Frontegg v6.105.0-alpha.2
21319
+ /** @license Frontegg v6.105.0
21298
21320
  *
21299
21321
  * This source code is licensed under the MIT license found in the
21300
21322
  * LICENSE file in the root directory of this source tree.
@@ -23502,7 +23524,7 @@ __webpack_require__.r(__webpack_exports__);
23502
23524
  /* harmony import */ var _directory_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./directory/interfaces */ "../../node_modules/@frontegg/rest-api/directory/interfaces.js");
23503
23525
  /* harmony import */ var _groups_enums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./groups/enums */ "../../node_modules/@frontegg/rest-api/groups/enums.js");
23504
23526
  /* harmony import */ var _users_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./users/interfaces */ "../../node_modules/@frontegg/rest-api/users/interfaces.js");
23505
- /** @license Frontegg v3.0.117
23527
+ /** @license Frontegg v3.0.118
23506
23528
  *
23507
23529
  * This source code is licensed under the MIT license found in the
23508
23530
  * LICENSE file in the root directory of this source tree.
@@ -24721,6 +24743,7 @@ __webpack_require__.r(__webpack_exports__);
24721
24743
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
24722
24744
  /* harmony export */ "getHierarchyMetadata": () => (/* binding */ getHierarchyMetadata),
24723
24745
  /* harmony export */ "getParentTenants": () => (/* binding */ getParentTenants),
24746
+ /* harmony export */ "getParentTenantsById": () => (/* binding */ getParentTenantsById),
24724
24747
  /* harmony export */ "getSubTenants": () => (/* binding */ getSubTenants),
24725
24748
  /* harmony export */ "getSubTenantsAsTree": () => (/* binding */ getSubTenantsAsTree),
24726
24749
  /* harmony export */ "getTenants": () => (/* binding */ getTenants),
@@ -24755,6 +24778,11 @@ async function getParentTenants(options) {
24755
24778
  headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromOptions)(options)
24756
24779
  });
24757
24780
  }
24781
+ async function getParentTenantsById(tenantId, options) {
24782
+ return (0,_fetch__WEBPACK_IMPORTED_MODULE_1__.Get)(`${_constants__WEBPACK_IMPORTED_MODULE_2__.urls.tenants.hierarchy.parents.v1}/${tenantId}`, undefined, {
24783
+ headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromOptions)(options)
24784
+ });
24785
+ }
24758
24786
  async function getTenantsUsersCount(body, options) {
24759
24787
  return (0,_fetch__WEBPACK_IMPORTED_MODULE_1__.Post)(`${_constants__WEBPACK_IMPORTED_MODULE_2__.urls.identity.tenants.users.v1}/count`, body, {
24760
24788
  headers: (0,_fetch__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromOptions)(options)