@frontegg/redux-store 7.48.0 → 7.49.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.
@@ -13,5 +13,6 @@ declare const _default: (store: FronteggState, api: RestApi, sharedActions: Shar
13
13
  loadBreachedPasswordUsers: (payload: ISearchUserQueryParamsV3) => Promise<void>;
14
14
  loadUnenrolledMfaUsers: (payload: ISearchUserQueryParamsV3) => Promise<void>;
15
15
  loadInactiveUsers: (payload: ISearchUserQueryParamsV3) => Promise<void>;
16
+ markSecurityCenterStateAsChanged: (changed?: boolean) => void;
16
17
  };
17
18
  export default _default;
@@ -292,6 +292,11 @@ export default ((store, api, sharedActions) => {
292
292
  tableState: inactiveUsersTable
293
293
  }, payload));
294
294
  };
295
+ const markSecurityCenterStateAsChanged = (changed = true) => {
296
+ setSecurityCenterState({
297
+ hasSecurityChanges: changed
298
+ });
299
+ };
295
300
  return {
296
301
  setSecurityCenterState,
297
302
  resetSecurityCenterState,
@@ -303,6 +308,7 @@ export default ((store, api, sharedActions) => {
303
308
  sendBulkResetBreachedPasswordEmails,
304
309
  loadBreachedPasswordUsers,
305
310
  loadUnenrolledMfaUsers,
306
- loadInactiveUsers
311
+ loadInactiveUsers,
312
+ markSecurityCenterStateAsChanged
307
313
  };
308
314
  });
@@ -8,6 +8,7 @@ export interface SecurityCenterState {
8
8
  recommendations?: Recommendation[];
9
9
  insights?: Insight[];
10
10
  score: number;
11
+ hasSecurityChanges: boolean;
11
12
  breachedPasswordUsersTable: ISecurityCenterTable;
12
13
  unenrolledMfaUsersTable: ISecurityCenterTable;
13
14
  inactiveUsersTable: ISecurityCenterTable;
@@ -4,6 +4,7 @@ export const initialState = {
4
4
  errors: {},
5
5
  recommendations: undefined,
6
6
  insights: undefined,
7
+ hasSecurityChanges: false,
7
8
  score: 0,
8
9
  breachedPasswordUsersTable: {
9
10
  users: [],
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.48.0
1
+ /** @license Frontegg v7.49.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.
@@ -12,5 +12,6 @@ declare const _default: (store: FronteggState, api: RestApi, actions: SharedActi
12
12
  loadBreachedPasswordUsers: (payload: import("@frontegg/rest-api").ISearchUserQueryParamsV3) => Promise<void>;
13
13
  loadUnenrolledMfaUsers: (payload: import("@frontegg/rest-api").ISearchUserQueryParamsV3) => Promise<void>;
14
14
  loadInactiveUsers: (payload: import("@frontegg/rest-api").ISearchUserQueryParamsV3) => Promise<void>;
15
+ markSecurityCenterStateAsChanged: (changed?: boolean) => void;
15
16
  };
16
17
  export default _default;
@@ -299,6 +299,11 @@ var _default = (store, api, sharedActions) => {
299
299
  tableState: inactiveUsersTable
300
300
  }, payload));
301
301
  };
302
+ const markSecurityCenterStateAsChanged = (changed = true) => {
303
+ setSecurityCenterState({
304
+ hasSecurityChanges: changed
305
+ });
306
+ };
302
307
  return {
303
308
  setSecurityCenterState,
304
309
  resetSecurityCenterState,
@@ -310,7 +315,8 @@ var _default = (store, api, sharedActions) => {
310
315
  sendBulkResetBreachedPasswordEmails,
311
316
  loadBreachedPasswordUsers,
312
317
  loadUnenrolledMfaUsers,
313
- loadInactiveUsers
318
+ loadInactiveUsers,
319
+ markSecurityCenterStateAsChanged
314
320
  };
315
321
  };
316
322
  exports.default = _default;
@@ -10,6 +10,7 @@ const initialState = {
10
10
  errors: {},
11
11
  recommendations: undefined,
12
12
  insights: undefined,
13
+ hasSecurityChanges: false,
13
14
  score: 0,
14
15
  breachedPasswordUsersTable: {
15
16
  users: [],
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.48.0
1
+ /** @license Frontegg v7.49.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,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.48.0",
3
+ "version": "7.49.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
9
  "@frontegg/entitlements-javascript-commons": "1.1.2",
10
- "@frontegg/rest-api": "7.48.0",
10
+ "@frontegg/rest-api": "7.49.0",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",