@frontegg/redux-store 7.58.0 → 7.60.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.
Files changed (42) hide show
  1. package/auth/LoginState/actions/handleVerifyMFAResponse.actions.d.ts +2 -2
  2. package/auth/LoginState/actions/handleVerifyMFAResponse.actions.js +29 -12
  3. package/auth/LoginState/actions/index.d.ts +2 -2
  4. package/auth/LoginState/actions/index.js +61 -44
  5. package/auth/LoginState/actions/mfaWithAuthenticator.actions.js +26 -8
  6. package/auth/LoginState/helpers.d.ts +4 -2
  7. package/auth/LoginState/helpers.js +3 -0
  8. package/auth/LoginState/interfaces.d.ts +6 -0
  9. package/auth/LoginState/interfaces.js +2 -0
  10. package/auth/PasswordRotationState/actions.d.ts +6 -0
  11. package/auth/PasswordRotationState/actions.js +13 -0
  12. package/auth/PasswordRotationState/index.d.ts +3 -0
  13. package/auth/PasswordRotationState/index.js +3 -0
  14. package/auth/PasswordRotationState/interfaces.d.ts +7 -0
  15. package/auth/PasswordRotationState/interfaces.js +5 -0
  16. package/auth/PasswordRotationState/state.d.ts +4 -0
  17. package/auth/PasswordRotationState/state.js +6 -0
  18. package/auth/helpers.d.ts +2 -1
  19. package/auth/helpers.js +14 -5
  20. package/auth/index.d.ts +5 -1
  21. package/auth/index.js +5 -0
  22. package/auth/interfaces.d.ts +7 -0
  23. package/index.js +1 -1
  24. package/mocks/auth-mocks/index.js +4 -1
  25. package/mocks/auth-mocks/loginActions.mocks.d.ts +1 -1
  26. package/mocks/auth-mocks/passwordRotationActions.mocks.d.ts +6 -0
  27. package/mocks/auth-mocks/passwordRotationActions.mocks.js +9 -0
  28. package/node/auth/LoginState/actions/handleVerifyMFAResponse.actions.js +29 -12
  29. package/node/auth/LoginState/actions/index.js +59 -42
  30. package/node/auth/LoginState/actions/mfaWithAuthenticator.actions.js +26 -8
  31. package/node/auth/LoginState/helpers.js +6 -2
  32. package/node/auth/LoginState/interfaces.js +2 -0
  33. package/node/auth/PasswordRotationState/actions.js +20 -0
  34. package/node/auth/PasswordRotationState/index.js +20 -0
  35. package/node/auth/PasswordRotationState/interfaces.js +12 -0
  36. package/node/auth/PasswordRotationState/state.js +14 -0
  37. package/node/auth/helpers.js +19 -8
  38. package/node/auth/index.js +40 -24
  39. package/node/index.js +1 -1
  40. package/node/mocks/auth-mocks/index.js +4 -1
  41. package/node/mocks/auth-mocks/passwordRotationActions.mocks.js +16 -0
  42. package/package.json +2 -2
@@ -19,6 +19,7 @@ var _ApiTokensState = require("./ApiTokensState");
19
19
  var _ApplicationsState = require("./ApplicationsState");
20
20
  var _CustomLoginState = require("./CustomLoginState");
21
21
  var _ForgotPasswordState = require("./ForgotPasswordState");
22
+ var _PasswordRotationState = require("./PasswordRotationState");
22
23
  var _GroupsState = require("./GroupsState");
23
24
  var _GroupsDialogsState = require("./GroupsDialogsState");
24
25
  var _ImpersonateState = require("./ImpersonateState");
@@ -166,7 +167,7 @@ Object.keys(_interfaces9).forEach(function (key) {
166
167
  }
167
168
  });
168
169
  });
169
- var _interfaces10 = require("./GroupsState/interfaces");
170
+ var _interfaces10 = require("./PasswordRotationState/interfaces");
170
171
  Object.keys(_interfaces10).forEach(function (key) {
171
172
  if (key === "default" || key === "__esModule") return;
172
173
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -178,7 +179,7 @@ Object.keys(_interfaces10).forEach(function (key) {
178
179
  }
179
180
  });
180
181
  });
181
- var _interfaces11 = require("./GroupsDialogsState/interfaces");
182
+ var _interfaces11 = require("./GroupsState/interfaces");
182
183
  Object.keys(_interfaces11).forEach(function (key) {
183
184
  if (key === "default" || key === "__esModule") return;
184
185
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -190,7 +191,7 @@ Object.keys(_interfaces11).forEach(function (key) {
190
191
  }
191
192
  });
192
193
  });
193
- var _interfaces12 = require("./ImpersonateState/interfaces");
194
+ var _interfaces12 = require("./GroupsDialogsState/interfaces");
194
195
  Object.keys(_interfaces12).forEach(function (key) {
195
196
  if (key === "default" || key === "__esModule") return;
196
197
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -202,7 +203,7 @@ Object.keys(_interfaces12).forEach(function (key) {
202
203
  }
203
204
  });
204
205
  });
205
- var _interfaces13 = require("./LoginState/interfaces");
206
+ var _interfaces13 = require("./ImpersonateState/interfaces");
206
207
  Object.keys(_interfaces13).forEach(function (key) {
207
208
  if (key === "default" || key === "__esModule") return;
208
209
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -214,7 +215,7 @@ Object.keys(_interfaces13).forEach(function (key) {
214
215
  }
215
216
  });
216
217
  });
217
- var _interfaces14 = require("./MfaState/interfaces");
218
+ var _interfaces14 = require("./LoginState/interfaces");
218
219
  Object.keys(_interfaces14).forEach(function (key) {
219
220
  if (key === "default" || key === "__esModule") return;
220
221
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -226,7 +227,7 @@ Object.keys(_interfaces14).forEach(function (key) {
226
227
  }
227
228
  });
228
229
  });
229
- var _interfaces15 = require("./MSP/interfaces");
230
+ var _interfaces15 = require("./MfaState/interfaces");
230
231
  Object.keys(_interfaces15).forEach(function (key) {
231
232
  if (key === "default" || key === "__esModule") return;
232
233
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -238,7 +239,7 @@ Object.keys(_interfaces15).forEach(function (key) {
238
239
  }
239
240
  });
240
241
  });
241
- var _interfaces16 = require("./PasskeysState/interfaces");
242
+ var _interfaces16 = require("./MSP/interfaces");
242
243
  Object.keys(_interfaces16).forEach(function (key) {
243
244
  if (key === "default" || key === "__esModule") return;
244
245
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -250,7 +251,7 @@ Object.keys(_interfaces16).forEach(function (key) {
250
251
  }
251
252
  });
252
253
  });
253
- var _interfaces17 = require("./ProfileState/interfaces");
254
+ var _interfaces17 = require("./PasskeysState/interfaces");
254
255
  Object.keys(_interfaces17).forEach(function (key) {
255
256
  if (key === "default" || key === "__esModule") return;
256
257
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -262,7 +263,7 @@ Object.keys(_interfaces17).forEach(function (key) {
262
263
  }
263
264
  });
264
265
  });
265
- var _interfaces18 = require("./ProvisioningState/interfaces");
266
+ var _interfaces18 = require("./ProfileState/interfaces");
266
267
  Object.keys(_interfaces18).forEach(function (key) {
267
268
  if (key === "default" || key === "__esModule") return;
268
269
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -274,7 +275,7 @@ Object.keys(_interfaces18).forEach(function (key) {
274
275
  }
275
276
  });
276
277
  });
277
- var _interfaces19 = require("./ResetPhoneNumberState/interfaces");
278
+ var _interfaces19 = require("./ProvisioningState/interfaces");
278
279
  Object.keys(_interfaces19).forEach(function (key) {
279
280
  if (key === "default" || key === "__esModule") return;
280
281
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -286,7 +287,7 @@ Object.keys(_interfaces19).forEach(function (key) {
286
287
  }
287
288
  });
288
289
  });
289
- var _interfaces20 = require("./RolesState/interfaces");
290
+ var _interfaces20 = require("./ResetPhoneNumberState/interfaces");
290
291
  Object.keys(_interfaces20).forEach(function (key) {
291
292
  if (key === "default" || key === "__esModule") return;
292
293
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -298,7 +299,7 @@ Object.keys(_interfaces20).forEach(function (key) {
298
299
  }
299
300
  });
300
301
  });
301
- var _interfaces21 = require("./Security/RestrictionsState/interfaces");
302
+ var _interfaces21 = require("./RolesState/interfaces");
302
303
  Object.keys(_interfaces21).forEach(function (key) {
303
304
  if (key === "default" || key === "__esModule") return;
304
305
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -310,7 +311,7 @@ Object.keys(_interfaces21).forEach(function (key) {
310
311
  }
311
312
  });
312
313
  });
313
- var _interfaces22 = require("./Security/SecurityCenterState/interfaces");
314
+ var _interfaces22 = require("./Security/RestrictionsState/interfaces");
314
315
  Object.keys(_interfaces22).forEach(function (key) {
315
316
  if (key === "default" || key === "__esModule") return;
316
317
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -322,7 +323,7 @@ Object.keys(_interfaces22).forEach(function (key) {
322
323
  }
323
324
  });
324
325
  });
325
- var _interfaces23 = require("./Security/SecurityPolicyState/interfaces");
326
+ var _interfaces23 = require("./Security/SecurityCenterState/interfaces");
326
327
  Object.keys(_interfaces23).forEach(function (key) {
327
328
  if (key === "default" || key === "__esModule") return;
328
329
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -334,7 +335,7 @@ Object.keys(_interfaces23).forEach(function (key) {
334
335
  }
335
336
  });
336
337
  });
337
- var _interfaces24 = require("./Security/SessionsPolicyState/interfaces");
338
+ var _interfaces24 = require("./Security/SecurityPolicyState/interfaces");
338
339
  Object.keys(_interfaces24).forEach(function (key) {
339
340
  if (key === "default" || key === "__esModule") return;
340
341
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -346,7 +347,7 @@ Object.keys(_interfaces24).forEach(function (key) {
346
347
  }
347
348
  });
348
349
  });
349
- var _interfaces25 = require("./SessionsState/interfaces");
350
+ var _interfaces25 = require("./Security/SessionsPolicyState/interfaces");
350
351
  Object.keys(_interfaces25).forEach(function (key) {
351
352
  if (key === "default" || key === "__esModule") return;
352
353
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -358,7 +359,7 @@ Object.keys(_interfaces25).forEach(function (key) {
358
359
  }
359
360
  });
360
361
  });
361
- var _interfaces26 = require("./SignUpState/interfaces");
362
+ var _interfaces26 = require("./SessionsState/interfaces");
362
363
  Object.keys(_interfaces26).forEach(function (key) {
363
364
  if (key === "default" || key === "__esModule") return;
364
365
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -370,7 +371,7 @@ Object.keys(_interfaces26).forEach(function (key) {
370
371
  }
371
372
  });
372
373
  });
373
- var _interfaces27 = require("./SmsState/interfaces");
374
+ var _interfaces27 = require("./SignUpState/interfaces");
374
375
  Object.keys(_interfaces27).forEach(function (key) {
375
376
  if (key === "default" || key === "__esModule") return;
376
377
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -382,7 +383,7 @@ Object.keys(_interfaces27).forEach(function (key) {
382
383
  }
383
384
  });
384
385
  });
385
- var _interfaces28 = require("./SocialLoginState/interfaces");
386
+ var _interfaces28 = require("./SmsState/interfaces");
386
387
  Object.keys(_interfaces28).forEach(function (key) {
387
388
  if (key === "default" || key === "__esModule") return;
388
389
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -394,7 +395,7 @@ Object.keys(_interfaces28).forEach(function (key) {
394
395
  }
395
396
  });
396
397
  });
397
- var _interfaces29 = require("./SSOState/interfaces");
398
+ var _interfaces29 = require("./SocialLoginState/interfaces");
398
399
  Object.keys(_interfaces29).forEach(function (key) {
399
400
  if (key === "default" || key === "__esModule") return;
400
401
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -406,7 +407,7 @@ Object.keys(_interfaces29).forEach(function (key) {
406
407
  }
407
408
  });
408
409
  });
409
- var _interfaces30 = require("./StepUpState/interfaces");
410
+ var _interfaces30 = require("./SSOState/interfaces");
410
411
  Object.keys(_interfaces30).forEach(function (key) {
411
412
  if (key === "default" || key === "__esModule") return;
412
413
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -418,7 +419,7 @@ Object.keys(_interfaces30).forEach(function (key) {
418
419
  }
419
420
  });
420
421
  });
421
- var _interfaces31 = require("./TeamState/interfaces");
422
+ var _interfaces31 = require("./StepUpState/interfaces");
422
423
  Object.keys(_interfaces31).forEach(function (key) {
423
424
  if (key === "default" || key === "__esModule") return;
424
425
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -430,7 +431,7 @@ Object.keys(_interfaces31).forEach(function (key) {
430
431
  }
431
432
  });
432
433
  });
433
- var _interfaces32 = require("./TenantsState/interfaces");
434
+ var _interfaces32 = require("./TeamState/interfaces");
434
435
  Object.keys(_interfaces32).forEach(function (key) {
435
436
  if (key === "default" || key === "__esModule") return;
436
437
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -442,7 +443,7 @@ Object.keys(_interfaces32).forEach(function (key) {
442
443
  }
443
444
  });
444
445
  });
445
- var _interfaces33 = require("./interfaces");
446
+ var _interfaces33 = require("./TenantsState/interfaces");
446
447
  Object.keys(_interfaces33).forEach(function (key) {
447
448
  if (key === "default" || key === "__esModule") return;
448
449
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -454,6 +455,18 @@ Object.keys(_interfaces33).forEach(function (key) {
454
455
  }
455
456
  });
456
457
  });
458
+ var _interfaces34 = require("./interfaces");
459
+ Object.keys(_interfaces34).forEach(function (key) {
460
+ if (key === "default" || key === "__esModule") return;
461
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
462
+ if (key in exports && exports[key] === _interfaces34[key]) return;
463
+ Object.defineProperty(exports, key, {
464
+ enumerable: true,
465
+ get: function () {
466
+ return _interfaces34[key];
467
+ }
468
+ });
469
+ });
457
470
  const _excluded = ["routes"],
458
471
  _excluded2 = ["requestName"];
459
472
  const createAuthState = _overrideState => {
@@ -485,6 +498,7 @@ const createAuthState = _overrideState => {
485
498
  applicationsState: (0, _ApplicationsState.createApplicationsState)(overrideState == null ? void 0 : overrideState.applicationsState),
486
499
  customLoginState: (0, _CustomLoginState.createCustomLoginState)(overrideState == null ? void 0 : overrideState.customLoginState),
487
500
  forgotPasswordState: (0, _ForgotPasswordState.createForgotPasswordState)(overrideState == null ? void 0 : overrideState.forgotPasswordState),
501
+ passwordRotationState: (0, _PasswordRotationState.createPasswordRotationState)(overrideState == null ? void 0 : overrideState.passwordRotationState),
488
502
  groupsState: (0, _GroupsState.createGroupsState)(overrideState == null ? void 0 : overrideState.groupsState),
489
503
  groupsDialogsState: (0, _GroupsDialogsState.createGroupsDialogsState)(overrideState == null ? void 0 : overrideState.groupsDialogsState),
490
504
  impersonateState: (0, _ImpersonateState.createImpersonateState)(overrideState == null ? void 0 : overrideState.impersonateState),
@@ -551,6 +565,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
551
565
  const customLoginActions = (0, _CustomLoginState.buildCustomLoginActions)(store, api, actions);
552
566
  const entitlementsActions = (0, _Entitlements.buildEntitlementsActions)(store, api, actions);
553
567
  const forgotPasswordActions = (0, _ForgotPasswordState.buildForgotPasswordActions)(store, api, actions);
568
+ const passwordRotationActions = (0, _PasswordRotationState.buildPasswordRotationActions)(store, api, actions);
554
569
  const groupsActions = (0, _GroupsState.buildGroupsActions)(store, api, actions);
555
570
  const groupsDialogsActions = (0, _GroupsDialogsState.buildGroupsDialogsActions)(store, api, actions);
556
571
  const impersonateActions = (0, _ImpersonateState.buildImpersonateActions)(store, api, actions);
@@ -585,6 +600,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
585
600
  customLoginActions,
586
601
  entitlementsActions,
587
602
  forgotPasswordActions,
603
+ passwordRotationActions,
588
604
  groupsActions,
589
605
  groupsDialogsActions,
590
606
  impersonateActions,
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.58.0
1
+ /** @license Frontegg v7.60.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.
@@ -17,6 +17,7 @@ var _applicationsActions = _interopRequireDefault(require("./applicationsActions
17
17
  var _customLoginActions = _interopRequireDefault(require("./customLoginActions.mocks"));
18
18
  var _entitlementsActions = _interopRequireDefault(require("./entitlementsActions.mocks"));
19
19
  var _forgotPasswordActions = _interopRequireDefault(require("./forgotPasswordActions.mocks"));
20
+ var _passwordRotationActions = _interopRequireDefault(require("./passwordRotationActions.mocks"));
20
21
  var _groupsActions = _interopRequireDefault(require("./groupsActions.mocks"));
21
22
  var _GroupsDialogsState = require("../../auth/GroupsDialogsState");
22
23
  var _impersonateActions = _interopRequireDefault(require("./impersonateActions.mocks"));
@@ -54,6 +55,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
54
55
  const customLoginActions = (0, _customLoginActions.default)(store, api, actions);
55
56
  const entitlementsActions = (0, _entitlementsActions.default)(store, api, actions);
56
57
  const forgotPasswordActions = (0, _forgotPasswordActions.default)(store, api, actions);
58
+ const passwordRotationActions = (0, _passwordRotationActions.default)(store, api, actions);
57
59
  const groupsActions = (0, _groupsActions.default)(store, api, actions);
58
60
  const groupsDialogsActions = (0, _GroupsDialogsState.buildGroupsDialogsActions)(store, api, actions);
59
61
  const impersonateActions = (0, _impersonateActions.default)(store, api, actions);
@@ -88,6 +90,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
88
90
  customLoginActions,
89
91
  entitlementsActions,
90
92
  forgotPasswordActions,
93
+ passwordRotationActions,
91
94
  groupsActions,
92
95
  groupsDialogsActions,
93
96
  impersonateActions,
@@ -147,7 +150,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
147
150
  setErrorByRequestName,
148
151
  resetAuthState,
149
152
  setUser
150
- }, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions);
153
+ }, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, allAccountsActions, allAccountsDialogActions, apiTokensActions, applicationsActions, customLoginActions, entitlementsActions, forgotPasswordActions, passwordRotationActions, groupsActions, groupsDialogsActions, impersonateActions, loginActions, mfaActions, passkeysActions, profileActions, provisioningActions, resetPhoneNumberActions, restrictionsActions, rolesActions, securityCenterActions, securityPolicyActions, sessionsActions, sessionsPolicyActions, signUpActions, smsActions, socialLoginActions, ssoActions, stepUpActions, teamActions, tenantsActions);
151
154
  return {
152
155
  authActions,
153
156
  authStateActions
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _PasswordRotationState = require("../../auth/PasswordRotationState");
8
+ var _toolkit = require("../../toolkit");
9
+ var _helpers = require("../helpers");
10
+ var _default = (store, api, actions) => {
11
+ const originalActions = (0, _PasswordRotationState.buildPasswordRotationActions)(store, api, actions);
12
+ const mockedActions = (0, _helpers.mockActionsExpect)(originalActions, ['setStep']);
13
+ mockedActions.setStep(_toolkit.PasswordRotationStep.success);
14
+ return mockedActions;
15
+ };
16
+ exports.default = _default;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.58.0",
3
+ "version": "7.60.0-alpha.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.58.0",
10
+ "@frontegg/rest-api": "7.60.0-alpha.0",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",