@frontegg/redux-store 6.191.0 → 6.192.0-alpha.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.
@@ -16,7 +16,7 @@ export declare function loadMultipleUsersApplications({ userIds }: {
16
16
  }): Generator<import("redux-saga/effects").PutEffect<{
17
17
  payload: Partial<ApplicationsState>;
18
18
  type: string;
19
- }> | import("redux-saga/effects").CallEffect<IApplicationsResponse[]> | import("redux-saga/effects").CallEffect<IUsersApplicationsIdsResponse[]>, {} | undefined, IUsersApplicationsIdsResponse[] & IApplicationsResponse[]>;
19
+ }> | import("redux-saga/effects").CallEffect<IApplicationsResponse[]> | import("redux-saga/effects").CallEffect<IUsersApplicationsIdsResponse[]>, Record<string, IApplicationsResponse[]> | undefined, IUsersApplicationsIdsResponse[] & IApplicationsResponse[]>;
20
20
  export declare function assignUserToApps({ payload }: PayloadAction<WithCallback<UserAppsAssignmentPayload>>): Generator<import("redux-saga/effects").SelectEffect | import("redux-saga/effects").CallEffect<void> | import("redux-saga/effects").PutEffect<{
21
21
  payload: Partial<import("../TeamState/interfaces").TeamState>;
22
22
  type: string;
@@ -44,5 +44,5 @@ export declare function assignNewUserToApps({ appIds, user }: {
44
44
  export declare function mapUsersWithApplicationData({ shouldLoadApps, users, }: {
45
45
  shouldLoadApps?: boolean;
46
46
  users: ITeamUser[];
47
- }): Generator<import("redux-saga/effects").CallEffect<{} | undefined>, ITeamUser[], boolean[] & Record<string, IApplicationsResponse[]>>;
47
+ }): Generator<import("redux-saga/effects").CallEffect<boolean[]> | import("redux-saga/effects").CallEffect<Record<string, IApplicationsResponse[]> | undefined>, ITeamUser[], boolean[] & Record<string, IApplicationsResponse[]>>;
48
48
  export declare function applicationsSaga(): Generator<import("redux-saga/effects").ForkEffect<never>, void, unknown>;
@@ -82,9 +82,9 @@ export function* loadMultipleUsersApplications({
82
82
  appIds
83
83
  });
84
84
  return userIds.reduce((acc, userId) => {
85
- var _usersAppIds$find, _userAppIds$map;
85
+ var _usersAppIds$find, _userAppIds$map$filte, _userAppIds$map;
86
86
  const userAppIds = (_usersAppIds$find = usersAppIds.find(app => app.userId == userId)) == null ? void 0 : _usersAppIds$find.appIds;
87
- acc[userId] = [...accountApplications.filter(app => app.accessType === ApplicationAccessType.FREE_ACCESS), ...((_userAppIds$map = userAppIds == null ? void 0 : userAppIds.map(appId => accountApplications.find(app => appId === app.id))) != null ? _userAppIds$map : [])];
87
+ acc[userId] = [...accountApplications.filter(app => app.accessType === ApplicationAccessType.FREE_ACCESS), ...((_userAppIds$map$filte = userAppIds == null ? void 0 : (_userAppIds$map = userAppIds.map(appId => accountApplications.find(app => appId === app.id))) == null ? void 0 : _userAppIds$map.filter(app => !!app)) != null ? _userAppIds$map$filte : [])];
88
88
  return acc;
89
89
  }, {});
90
90
  } catch (e) {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.191.0
1
+ /** @license Frontegg v6.192.0-alpha.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.
@@ -96,9 +96,9 @@ function* loadMultipleUsersApplications({
96
96
  appIds
97
97
  });
98
98
  return userIds.reduce((acc, userId) => {
99
- var _usersAppIds$find, _userAppIds$map;
99
+ var _usersAppIds$find, _userAppIds$map$filte, _userAppIds$map;
100
100
  const userAppIds = (_usersAppIds$find = usersAppIds.find(app => app.userId == userId)) == null ? void 0 : _usersAppIds$find.appIds;
101
- acc[userId] = [...accountApplications.filter(app => app.accessType === _restApi.ApplicationAccessType.FREE_ACCESS), ...((_userAppIds$map = userAppIds == null ? void 0 : userAppIds.map(appId => accountApplications.find(app => appId === app.id))) != null ? _userAppIds$map : [])];
101
+ acc[userId] = [...accountApplications.filter(app => app.accessType === _restApi.ApplicationAccessType.FREE_ACCESS), ...((_userAppIds$map$filte = userAppIds == null ? void 0 : (_userAppIds$map = userAppIds.map(appId => accountApplications.find(app => appId === app.id))) == null ? void 0 : _userAppIds$map.filter(app => !!app)) != null ? _userAppIds$map$filte : [])];
102
102
  return acc;
103
103
  }, {});
104
104
  } catch (e) {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.191.0
1
+ /** @license Frontegg v6.192.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.191.0",
3
+ "version": "6.192.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",