@frontegg/redux-store 7.90.0 → 7.91.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.
@@ -0,0 +1,9 @@
1
+ import { FronteggState, WithCallback, RestApi, SharedActions } from '../../interfaces';
2
+ import { ApprovalFlowState, ISubmitApprovalAction, IGetApprovalExecutionData } from './interfaces';
3
+ declare const _default: (store: FronteggState, api: RestApi, sharedActions: SharedActions) => {
4
+ setApprovalFlowState: (state: Partial<ApprovalFlowState>) => void;
5
+ resetApprovalFlowState: () => void;
6
+ submitApprovalAction: (payload: WithCallback<ISubmitApprovalAction>) => Promise<void>;
7
+ getApprovalExecutionData: (payload: WithCallback<IGetApprovalExecutionData>) => Promise<void>;
8
+ };
9
+ export default _default;
@@ -0,0 +1,71 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ const _excluded = ["callback"],
3
+ _excluded2 = ["callback"];
4
+ import { initialState } from './state';
5
+ import { errorHandler, deepResetState } from '../../helpers';
6
+ import { ApprovalFlowStep } from './interfaces';
7
+ export default ((store, api, sharedActions) => {
8
+ const setApprovalFlowState = state => {
9
+ Object.assign(store.auth.approvalFlowState, state);
10
+ };
11
+ const resetApprovalFlowState = () => {
12
+ deepResetState(store, ['auth', 'approvalFlowState'], initialState);
13
+ };
14
+ const submitApprovalAction = async payload => {
15
+ const {
16
+ callback
17
+ } = payload,
18
+ params = _objectWithoutPropertiesLoose(payload, _excluded);
19
+ setApprovalFlowState({
20
+ submitting: true,
21
+ error: undefined
22
+ });
23
+ try {
24
+ await api.auth.submitApprovalAction(params);
25
+ setApprovalFlowState({
26
+ submitting: false,
27
+ step: ApprovalFlowStep.success,
28
+ error: undefined
29
+ });
30
+ callback == null ? void 0 : callback(true);
31
+ } catch (e) {
32
+ setApprovalFlowState({
33
+ submitting: false,
34
+ step: ApprovalFlowStep.failed,
35
+ error: errorHandler(e)
36
+ });
37
+ callback == null ? void 0 : callback(null, e);
38
+ }
39
+ };
40
+ const getApprovalExecutionData = async payload => {
41
+ const {
42
+ callback
43
+ } = payload,
44
+ params = _objectWithoutPropertiesLoose(payload, _excluded2);
45
+ setApprovalFlowState({
46
+ loadingExecutionData: true,
47
+ executionDataError: undefined
48
+ });
49
+ try {
50
+ const executionData = await api.auth.getApprovalExecutionData(params);
51
+ setApprovalFlowState({
52
+ loadingExecutionData: false,
53
+ executionData,
54
+ executionDataError: undefined
55
+ });
56
+ callback == null ? void 0 : callback(true);
57
+ } catch (e) {
58
+ setApprovalFlowState({
59
+ loadingExecutionData: false,
60
+ executionDataError: errorHandler(e)
61
+ });
62
+ callback == null ? void 0 : callback(null, e);
63
+ }
64
+ };
65
+ return {
66
+ setApprovalFlowState,
67
+ resetApprovalFlowState,
68
+ submitApprovalAction,
69
+ getApprovalExecutionData
70
+ };
71
+ });
@@ -0,0 +1,3 @@
1
+ import createApprovalFlowState from './state';
2
+ import buildApprovalFlowActions from './actions';
3
+ export { createApprovalFlowState, buildApprovalFlowActions };
@@ -0,0 +1,3 @@
1
+ import createApprovalFlowState from './state';
2
+ import buildApprovalFlowActions from './actions';
3
+ export { createApprovalFlowState, buildApprovalFlowActions };
@@ -0,0 +1,31 @@
1
+ export declare enum ApprovalFlowStep {
2
+ 'form' = "form",
3
+ 'success' = "success",
4
+ 'failed' = "failed"
5
+ }
6
+ export interface ApprovalExecutionData {
7
+ approvalFlowName: string;
8
+ approvalFlowDescription?: string;
9
+ requester: string;
10
+ approvalFlowRequestDate: Date;
11
+ }
12
+ export interface ApprovalFlowState {
13
+ loading: boolean;
14
+ submitting: boolean;
15
+ error?: any;
16
+ step: ApprovalFlowStep;
17
+ executionData?: ApprovalExecutionData;
18
+ loadingExecutionData: boolean;
19
+ executionDataError?: any;
20
+ }
21
+ export interface ISubmitApprovalAction {
22
+ approvalFlowExecutionId: string;
23
+ approverId: string;
24
+ approvalFlowStepId: string;
25
+ approved: boolean;
26
+ }
27
+ export interface IGetApprovalExecutionData {
28
+ approvalFlowExecutionId: string;
29
+ approverId: string;
30
+ approvalFlowStepId: string;
31
+ }
@@ -0,0 +1,6 @@
1
+ export let ApprovalFlowStep;
2
+ (function (ApprovalFlowStep) {
3
+ ApprovalFlowStep["form"] = "form";
4
+ ApprovalFlowStep["success"] = "success";
5
+ ApprovalFlowStep["failed"] = "failed";
6
+ })(ApprovalFlowStep || (ApprovalFlowStep = {}));
@@ -0,0 +1,4 @@
1
+ import { ApprovalFlowState } from './interfaces';
2
+ export declare const initialState: ApprovalFlowState;
3
+ declare const _default: (overrideState?: Partial<ApprovalFlowState>) => ApprovalFlowState;
4
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { ApprovalFlowStep } from './interfaces';
2
+ import { createProxy } from '../../toolkit/proxy';
3
+ export const initialState = {
4
+ loading: false,
5
+ submitting: false,
6
+ error: undefined,
7
+ step: ApprovalFlowStep.form,
8
+ executionData: undefined,
9
+ loadingExecutionData: false,
10
+ executionDataError: undefined
11
+ };
12
+ export default (overrideState => createProxy(initialState, overrideState));
@@ -38,5 +38,6 @@ export const defaultFronteggRoutes = {
38
38
  unlockAccountUrl: '/account/unlock',
39
39
  activateWithOTCUrl: '/account/activate/code',
40
40
  acceptInvitationWithOTCUrl: '/account/invitation/code',
41
+ approvalFlowUrl: '/account/approval-flow',
41
42
  mfaMobileAuthenticator: '/account/mfa-mobile-authenticator'
42
43
  };
package/auth/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { buildAcceptInvitationActions } from './AcceptInvitationState';
5
5
  import { buildAccountSettingsActions } from './AccountSettingsState';
6
6
  import { buildActivateAccountActions } from './ActivateAccountState';
7
7
  import { buildUnlockAccountActions } from './UnlockAccountState';
8
+ import { buildApprovalFlowActions } from './ApprovalFlowState';
8
9
  import { buildApiTokensActions } from './ApiTokensState';
9
10
  import { buildApplicationsActions } from './ApplicationsState';
10
11
  import { buildCustomLoginActions } from './CustomLoginState';
@@ -40,6 +41,7 @@ export * from './AcceptInvitationState/interfaces';
40
41
  export * from './AccountSettingsState/interfaces';
41
42
  export * from './ActivateAccountState/interfaces';
42
43
  export * from './UnlockAccountState/interfaces';
44
+ export * from './ApprovalFlowState/interfaces';
43
45
  export * from './ApiTokensState/interfaces';
44
46
  export * from './ApplicationsState/interfaces';
45
47
  export * from './CustomLoginState/interfaces';
@@ -79,6 +81,7 @@ export type AcceptInvitationActions = ReturnType<typeof buildAcceptInvitationAct
79
81
  export type AccountSettingsActions = ReturnType<typeof buildAccountSettingsActions>;
80
82
  export type ActivateAccountActions = ReturnType<typeof buildActivateAccountActions>;
81
83
  export type UnlockAccountActions = ReturnType<typeof buildUnlockAccountActions>;
84
+ export type ApprovalFlowActions = ReturnType<typeof buildApprovalFlowActions>;
82
85
  export type ApiTokensActions = ReturnType<typeof buildApiTokensActions>;
83
86
  export type ApplicationsActions = ReturnType<typeof buildApplicationsActions>;
84
87
  export type CustomLoginActions = ReturnType<typeof buildCustomLoginActions>;
@@ -116,6 +119,7 @@ export type AuthStateActions = {
116
119
  accountSettingsActions: AccountSettingsActions;
117
120
  activateAccountActions: ActivateAccountActions;
118
121
  unlockAccountActions: UnlockAccountActions;
122
+ approvalFlowActions: ApprovalFlowActions;
119
123
  apiTokensActions: ApiTokensActions;
120
124
  applicationsActions: ApplicationsActions;
121
125
  customLoginActions: CustomLoginActions;
@@ -156,4 +160,4 @@ export type AuthActions = {
156
160
  setErrorByRequestName: (payload: SingleErrorByRequestDataPayload) => void;
157
161
  resetAuthState: (state?: Partial<AuthState>) => void;
158
162
  setUser: (user: User | null) => void;
159
- } & AcceptInvitationActions & AccountSettingsActions & UnlockAccountActions & ActivateAccountActions & ApiTokensActions & ApplicationsActions & CustomLoginActions & EntitlementsActions & ForgotPasswordActions & PasswordRotationActions & GroupsActions & GroupsDialogsActions & ImpersonateActions & LoginActions & MfaActions & AllAccountsActions & AllAccountsDialogActions & PasskeysActions & ProfileActions & ProvisioningActions & ResetPhoneNumberActions & RolesActions & RestrictionsActions & SecurityCenterActions & SecurityPolicyActions & SessionsPolicyActions & SessionsActions & SignUpActions & SmsActions & SocialLoginActions & SSOActions & StepUpActions & TeamActions & TenantsActions & UsernamesActions & UsersEmailPolicyActions;
163
+ } & AcceptInvitationActions & AccountSettingsActions & UnlockAccountActions & ActivateAccountActions & ApprovalFlowActions & ApiTokensActions & ApplicationsActions & CustomLoginActions & EntitlementsActions & ForgotPasswordActions & PasswordRotationActions & GroupsActions & GroupsDialogsActions & ImpersonateActions & LoginActions & MfaActions & AllAccountsActions & AllAccountsDialogActions & PasskeysActions & ProfileActions & ProvisioningActions & ResetPhoneNumberActions & RolesActions & RestrictionsActions & SecurityCenterActions & SecurityPolicyActions & SessionsPolicyActions & SessionsActions & SignUpActions & SmsActions & SocialLoginActions & SSOActions & StepUpActions & TeamActions & TenantsActions & UsernamesActions & UsersEmailPolicyActions;
package/auth/index.js CHANGED
@@ -6,6 +6,7 @@ import { buildAcceptInvitationActions, createAcceptInvitationState } from './Acc
6
6
  import { buildAccountSettingsActions, createAccountSettingsState } from './AccountSettingsState';
7
7
  import { buildActivateAccountActions, createActivateAccountState } from './ActivateAccountState';
8
8
  import { buildUnlockAccountActions, createUnlockAccountState } from './UnlockAccountState';
9
+ import { buildApprovalFlowActions, createApprovalFlowState } from './ApprovalFlowState';
9
10
  import { buildApiTokensActions, createApiTokensState } from './ApiTokensState';
10
11
  import { buildApplicationsActions, createApplicationsState } from './ApplicationsState';
11
12
  import { buildCustomLoginActions, createCustomLoginState } from './CustomLoginState';
@@ -44,6 +45,7 @@ export * from './AcceptInvitationState/interfaces';
44
45
  export * from './AccountSettingsState/interfaces';
45
46
  export * from './ActivateAccountState/interfaces';
46
47
  export * from './UnlockAccountState/interfaces';
48
+ export * from './ApprovalFlowState/interfaces';
47
49
  export * from './ApiTokensState/interfaces';
48
50
  export * from './ApplicationsState/interfaces';
49
51
  export * from './CustomLoginState/interfaces';
@@ -102,6 +104,7 @@ export const createAuthState = _overrideState => {
102
104
  accountSettingsState: createAccountSettingsState(overrideState == null ? void 0 : overrideState.accountSettingsState),
103
105
  activateAccountState: createActivateAccountState(overrideState == null ? void 0 : overrideState.activateAccountState),
104
106
  unlockAccountState: createUnlockAccountState(overrideState == null ? void 0 : overrideState.unlockAccountState),
107
+ approvalFlowState: createApprovalFlowState(overrideState == null ? void 0 : overrideState.approvalFlowState),
105
108
  apiTokensState: createApiTokensState(overrideState == null ? void 0 : overrideState.apiTokensState),
106
109
  applicationsState: createApplicationsState(overrideState == null ? void 0 : overrideState.applicationsState),
107
110
  customLoginState: createCustomLoginState(overrideState == null ? void 0 : overrideState.customLoginState),
@@ -169,6 +172,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
169
172
  const accountSettingsActions = buildAccountSettingsActions(store, api, actions);
170
173
  const activateAccountActions = buildActivateAccountActions(store, api, actions);
171
174
  const unlockAccountActions = buildUnlockAccountActions(store, api, actions);
175
+ const approvalFlowActions = buildApprovalFlowActions(store, api, actions);
172
176
  const apiTokensActions = buildApiTokensActions(store, api, actions);
173
177
  const applicationsActions = buildApplicationsActions(store, api, actions);
174
178
  const customLoginActions = buildCustomLoginActions(store, api, actions);
@@ -206,6 +210,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
206
210
  accountSettingsActions,
207
211
  activateAccountActions,
208
212
  unlockAccountActions,
213
+ approvalFlowActions,
209
214
  apiTokensActions,
210
215
  applicationsActions,
211
216
  customLoginActions,
@@ -1,6 +1,7 @@
1
1
  import type { AcceptInvitationState } from './AcceptInvitationState/interfaces';
2
2
  import type { AccountSettingsState } from './AccountSettingsState/interfaces';
3
3
  import type { ActivateAccountState } from './ActivateAccountState/interfaces';
4
+ import type { ApprovalFlowState } from './ApprovalFlowState/interfaces';
4
5
  import type { ApiTokensState } from './ApiTokensState/interfaces';
5
6
  import type { CustomLoginState } from './CustomLoginState/interfaces';
6
7
  import type { ForgotPasswordState } from './ForgotPasswordState/interfaces';
@@ -80,6 +81,7 @@ export interface AuthState extends Routes, PluginOptions {
80
81
  accountSettingsState: AccountSettingsState;
81
82
  activateAccountState: ActivateAccountState;
82
83
  unlockAccountState: UnlockAccountState;
84
+ approvalFlowState: ApprovalFlowState;
83
85
  apiTokensState: ApiTokensState;
84
86
  customLoginState: CustomLoginState;
85
87
  forgotPasswordState: ForgotPasswordState;
@@ -247,6 +249,10 @@ export type AuthPageRoutes = {
247
249
  * unlock account url
248
250
  */
249
251
  unlockAccountUrl?: string;
252
+ /**
253
+ * submit approval flow decision url
254
+ */
255
+ approvalFlowUrl?: string;
250
256
  /**
251
257
  * Multi-Factor authenticator for mobile
252
258
  * Private router used for direct access to the two-factor authenticator for mobile
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.90.0
1
+ /** @license Frontegg v7.91.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.
@@ -0,0 +1,8 @@
1
+ import { FronteggState, RestApi, SharedActions } from '../../interfaces';
2
+ declare const _default: (store: FronteggState, api: RestApi, actions: SharedActions) => {
3
+ setApprovalFlowState: (state: Partial<import("../..").ApprovalFlowState>) => void;
4
+ resetApprovalFlowState: () => void;
5
+ submitApprovalAction: (payload: import("../../interfaces").WithCallback<import("../..").ISubmitApprovalAction>) => Promise<void>;
6
+ getApprovalExecutionData: (payload: import("../../interfaces").WithCallback<import("../..").IGetApprovalExecutionData>) => Promise<void>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { buildApprovalFlowActions } from '../../auth/ApprovalFlowState';
2
+ import { mockActionsExpect } from '../helpers';
3
+ export default ((store, api, actions) => {
4
+ const originalActions = buildApprovalFlowActions(store, api, actions);
5
+ const mockedActions = mockActionsExpect(originalActions, ['setApprovalFlowState', 'resetApprovalFlowState', 'getApprovalExecutionData']);
6
+ return mockedActions;
7
+ });
@@ -4,6 +4,7 @@ const _excluded = ["requestName"];
4
4
  import buildAcceptInvitationActions from './acceptInvitationActions.mocks';
5
5
  import buildAccountSettingsActions from './accountSettingsActions.mocks';
6
6
  import buildActivateAccountActions from './activateAccountActions.mocks';
7
+ import buildApprovalFlowActions from './approvalFlowActions.mocks';
7
8
  import buildAllAccountsActions from './allAccountsActions.mocks';
8
9
  /* contains reducers only no need to mock */
9
10
  import { buildAllAccountsDialogActions } from '../../auth/MSP';
@@ -45,6 +46,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
45
46
  const accountSettingsActions = buildAccountSettingsActions(store, api, actions);
46
47
  const unlockAccountActions = buildUnlockAccountActions(store, api, actions);
47
48
  const activateAccountActions = buildActivateAccountActions(store, api, actions);
49
+ const approvalFlowActions = buildApprovalFlowActions(store, api, actions);
48
50
  const allAccountsActions = buildAllAccountsActions(store, api, actions);
49
51
  const allAccountsDialogActions = buildAllAccountsDialogActions(store, api, actions);
50
52
  const apiTokensActions = buildApiTokensActions(store, api, actions);
@@ -82,6 +84,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
82
84
  accountSettingsActions,
83
85
  unlockAccountActions,
84
86
  activateAccountActions,
87
+ approvalFlowActions,
85
88
  allAccountsActions,
86
89
  allAccountsDialogActions,
87
90
  apiTokensActions,
@@ -151,7 +154,7 @@ export const buildAuthActions = (store, api, actions, snapshotAuthState) => {
151
154
  setErrorByRequestName,
152
155
  resetAuthState,
153
156
  setUser
154
- }, 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, usernamesActions, usersEmailsPolicyActions);
157
+ }, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, approvalFlowActions, 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, usernamesActions, usersEmailsPolicyActions);
155
158
  return {
156
159
  authActions,
157
160
  authStateActions
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
9
+ var _state = require("./state");
10
+ var _helpers = require("../../helpers");
11
+ var _interfaces = require("./interfaces");
12
+ const _excluded = ["callback"],
13
+ _excluded2 = ["callback"];
14
+ var _default = (store, api, sharedActions) => {
15
+ const setApprovalFlowState = state => {
16
+ Object.assign(store.auth.approvalFlowState, state);
17
+ };
18
+ const resetApprovalFlowState = () => {
19
+ (0, _helpers.deepResetState)(store, ['auth', 'approvalFlowState'], _state.initialState);
20
+ };
21
+ const submitApprovalAction = async payload => {
22
+ const {
23
+ callback
24
+ } = payload,
25
+ params = (0, _objectWithoutPropertiesLoose2.default)(payload, _excluded);
26
+ setApprovalFlowState({
27
+ submitting: true,
28
+ error: undefined
29
+ });
30
+ try {
31
+ await api.auth.submitApprovalAction(params);
32
+ setApprovalFlowState({
33
+ submitting: false,
34
+ step: _interfaces.ApprovalFlowStep.success,
35
+ error: undefined
36
+ });
37
+ callback == null ? void 0 : callback(true);
38
+ } catch (e) {
39
+ setApprovalFlowState({
40
+ submitting: false,
41
+ step: _interfaces.ApprovalFlowStep.failed,
42
+ error: (0, _helpers.errorHandler)(e)
43
+ });
44
+ callback == null ? void 0 : callback(null, e);
45
+ }
46
+ };
47
+ const getApprovalExecutionData = async payload => {
48
+ const {
49
+ callback
50
+ } = payload,
51
+ params = (0, _objectWithoutPropertiesLoose2.default)(payload, _excluded2);
52
+ setApprovalFlowState({
53
+ loadingExecutionData: true,
54
+ executionDataError: undefined
55
+ });
56
+ try {
57
+ const executionData = await api.auth.getApprovalExecutionData(params);
58
+ setApprovalFlowState({
59
+ loadingExecutionData: false,
60
+ executionData,
61
+ executionDataError: undefined
62
+ });
63
+ callback == null ? void 0 : callback(true);
64
+ } catch (e) {
65
+ setApprovalFlowState({
66
+ loadingExecutionData: false,
67
+ executionDataError: (0, _helpers.errorHandler)(e)
68
+ });
69
+ callback == null ? void 0 : callback(null, e);
70
+ }
71
+ };
72
+ return {
73
+ setApprovalFlowState,
74
+ resetApprovalFlowState,
75
+ submitApprovalAction,
76
+ getApprovalExecutionData
77
+ };
78
+ };
79
+ exports.default = _default;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "buildApprovalFlowActions", {
8
+ enumerable: true,
9
+ get: function () {
10
+ return _actions.default;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "createApprovalFlowState", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return _state.default;
17
+ }
18
+ });
19
+ var _state = _interopRequireDefault(require("./state"));
20
+ var _actions = _interopRequireDefault(require("./actions"));
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ApprovalFlowStep = void 0;
7
+ let ApprovalFlowStep;
8
+ exports.ApprovalFlowStep = ApprovalFlowStep;
9
+ (function (ApprovalFlowStep) {
10
+ ApprovalFlowStep["form"] = "form";
11
+ ApprovalFlowStep["success"] = "success";
12
+ ApprovalFlowStep["failed"] = "failed";
13
+ })(ApprovalFlowStep || (exports.ApprovalFlowStep = ApprovalFlowStep = {}));
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.initialState = exports.default = void 0;
7
+ var _interfaces = require("./interfaces");
8
+ var _proxy = require("../../toolkit/proxy");
9
+ const initialState = {
10
+ loading: false,
11
+ submitting: false,
12
+ error: undefined,
13
+ step: _interfaces.ApprovalFlowStep.form,
14
+ executionData: undefined,
15
+ loadingExecutionData: false,
16
+ executionDataError: undefined
17
+ };
18
+ exports.initialState = initialState;
19
+ var _default = overrideState => (0, _proxy.createProxy)(initialState, overrideState);
20
+ exports.default = _default;
@@ -46,6 +46,7 @@ const defaultFronteggRoutes = {
46
46
  unlockAccountUrl: '/account/unlock',
47
47
  activateWithOTCUrl: '/account/activate/code',
48
48
  acceptInvitationWithOTCUrl: '/account/invitation/code',
49
+ approvalFlowUrl: '/account/approval-flow',
49
50
  mfaMobileAuthenticator: '/account/mfa-mobile-authenticator'
50
51
  };
51
52
  exports.defaultFronteggRoutes = defaultFronteggRoutes;
@@ -15,6 +15,7 @@ var _AcceptInvitationState = require("./AcceptInvitationState");
15
15
  var _AccountSettingsState = require("./AccountSettingsState");
16
16
  var _ActivateAccountState = require("./ActivateAccountState");
17
17
  var _UnlockAccountState = require("./UnlockAccountState");
18
+ var _ApprovalFlowState = require("./ApprovalFlowState");
18
19
  var _ApiTokensState = require("./ApiTokensState");
19
20
  var _ApplicationsState = require("./ApplicationsState");
20
21
  var _CustomLoginState = require("./CustomLoginState");
@@ -97,7 +98,7 @@ Object.keys(_interfaces4).forEach(function (key) {
97
98
  }
98
99
  });
99
100
  });
100
- var _interfaces5 = require("./ApiTokensState/interfaces");
101
+ var _interfaces5 = require("./ApprovalFlowState/interfaces");
101
102
  Object.keys(_interfaces5).forEach(function (key) {
102
103
  if (key === "default" || key === "__esModule") return;
103
104
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -109,7 +110,7 @@ Object.keys(_interfaces5).forEach(function (key) {
109
110
  }
110
111
  });
111
112
  });
112
- var _interfaces6 = require("./ApplicationsState/interfaces");
113
+ var _interfaces6 = require("./ApiTokensState/interfaces");
113
114
  Object.keys(_interfaces6).forEach(function (key) {
114
115
  if (key === "default" || key === "__esModule") return;
115
116
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -121,7 +122,7 @@ Object.keys(_interfaces6).forEach(function (key) {
121
122
  }
122
123
  });
123
124
  });
124
- var _interfaces7 = require("./CustomLoginState/interfaces");
125
+ var _interfaces7 = require("./ApplicationsState/interfaces");
125
126
  Object.keys(_interfaces7).forEach(function (key) {
126
127
  if (key === "default" || key === "__esModule") return;
127
128
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -133,7 +134,7 @@ Object.keys(_interfaces7).forEach(function (key) {
133
134
  }
134
135
  });
135
136
  });
136
- var _interfaces8 = require("./Entitlements/interfaces");
137
+ var _interfaces8 = require("./CustomLoginState/interfaces");
137
138
  Object.keys(_interfaces8).forEach(function (key) {
138
139
  if (key === "default" || key === "__esModule") return;
139
140
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -145,31 +146,31 @@ Object.keys(_interfaces8).forEach(function (key) {
145
146
  }
146
147
  });
147
148
  });
148
- var _helpers2 = require("./Entitlements/helpers");
149
- Object.keys(_helpers2).forEach(function (key) {
149
+ var _interfaces9 = require("./Entitlements/interfaces");
150
+ Object.keys(_interfaces9).forEach(function (key) {
150
151
  if (key === "default" || key === "__esModule") return;
151
152
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
152
- if (key in exports && exports[key] === _helpers2[key]) return;
153
+ if (key in exports && exports[key] === _interfaces9[key]) return;
153
154
  Object.defineProperty(exports, key, {
154
155
  enumerable: true,
155
156
  get: function () {
156
- return _helpers2[key];
157
+ return _interfaces9[key];
157
158
  }
158
159
  });
159
160
  });
160
- var _interfaces9 = require("./ForgotPasswordState/interfaces");
161
- Object.keys(_interfaces9).forEach(function (key) {
161
+ var _helpers2 = require("./Entitlements/helpers");
162
+ Object.keys(_helpers2).forEach(function (key) {
162
163
  if (key === "default" || key === "__esModule") return;
163
164
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
164
- if (key in exports && exports[key] === _interfaces9[key]) return;
165
+ if (key in exports && exports[key] === _helpers2[key]) return;
165
166
  Object.defineProperty(exports, key, {
166
167
  enumerable: true,
167
168
  get: function () {
168
- return _interfaces9[key];
169
+ return _helpers2[key];
169
170
  }
170
171
  });
171
172
  });
172
- var _interfaces10 = require("./PasswordRotationState/interfaces");
173
+ var _interfaces10 = require("./ForgotPasswordState/interfaces");
173
174
  Object.keys(_interfaces10).forEach(function (key) {
174
175
  if (key === "default" || key === "__esModule") return;
175
176
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -181,7 +182,7 @@ Object.keys(_interfaces10).forEach(function (key) {
181
182
  }
182
183
  });
183
184
  });
184
- var _interfaces11 = require("./GroupsState/interfaces");
185
+ var _interfaces11 = require("./PasswordRotationState/interfaces");
185
186
  Object.keys(_interfaces11).forEach(function (key) {
186
187
  if (key === "default" || key === "__esModule") return;
187
188
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -193,7 +194,7 @@ Object.keys(_interfaces11).forEach(function (key) {
193
194
  }
194
195
  });
195
196
  });
196
- var _interfaces12 = require("./GroupsDialogsState/interfaces");
197
+ var _interfaces12 = require("./GroupsState/interfaces");
197
198
  Object.keys(_interfaces12).forEach(function (key) {
198
199
  if (key === "default" || key === "__esModule") return;
199
200
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -205,7 +206,7 @@ Object.keys(_interfaces12).forEach(function (key) {
205
206
  }
206
207
  });
207
208
  });
208
- var _interfaces13 = require("./ImpersonateState/interfaces");
209
+ var _interfaces13 = require("./GroupsDialogsState/interfaces");
209
210
  Object.keys(_interfaces13).forEach(function (key) {
210
211
  if (key === "default" || key === "__esModule") return;
211
212
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -217,7 +218,7 @@ Object.keys(_interfaces13).forEach(function (key) {
217
218
  }
218
219
  });
219
220
  });
220
- var _interfaces14 = require("./LoginState/interfaces");
221
+ var _interfaces14 = require("./ImpersonateState/interfaces");
221
222
  Object.keys(_interfaces14).forEach(function (key) {
222
223
  if (key === "default" || key === "__esModule") return;
223
224
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -229,7 +230,7 @@ Object.keys(_interfaces14).forEach(function (key) {
229
230
  }
230
231
  });
231
232
  });
232
- var _interfaces15 = require("./MfaState/interfaces");
233
+ var _interfaces15 = require("./LoginState/interfaces");
233
234
  Object.keys(_interfaces15).forEach(function (key) {
234
235
  if (key === "default" || key === "__esModule") return;
235
236
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -241,7 +242,7 @@ Object.keys(_interfaces15).forEach(function (key) {
241
242
  }
242
243
  });
243
244
  });
244
- var _interfaces16 = require("./MSP/interfaces");
245
+ var _interfaces16 = require("./MfaState/interfaces");
245
246
  Object.keys(_interfaces16).forEach(function (key) {
246
247
  if (key === "default" || key === "__esModule") return;
247
248
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -253,7 +254,7 @@ Object.keys(_interfaces16).forEach(function (key) {
253
254
  }
254
255
  });
255
256
  });
256
- var _interfaces17 = require("./PasskeysState/interfaces");
257
+ var _interfaces17 = require("./MSP/interfaces");
257
258
  Object.keys(_interfaces17).forEach(function (key) {
258
259
  if (key === "default" || key === "__esModule") return;
259
260
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -265,7 +266,7 @@ Object.keys(_interfaces17).forEach(function (key) {
265
266
  }
266
267
  });
267
268
  });
268
- var _interfaces18 = require("./ProfileState/interfaces");
269
+ var _interfaces18 = require("./PasskeysState/interfaces");
269
270
  Object.keys(_interfaces18).forEach(function (key) {
270
271
  if (key === "default" || key === "__esModule") return;
271
272
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -277,7 +278,7 @@ Object.keys(_interfaces18).forEach(function (key) {
277
278
  }
278
279
  });
279
280
  });
280
- var _interfaces19 = require("./ProvisioningState/interfaces");
281
+ var _interfaces19 = require("./ProfileState/interfaces");
281
282
  Object.keys(_interfaces19).forEach(function (key) {
282
283
  if (key === "default" || key === "__esModule") return;
283
284
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -289,7 +290,7 @@ Object.keys(_interfaces19).forEach(function (key) {
289
290
  }
290
291
  });
291
292
  });
292
- var _interfaces20 = require("./ResetPhoneNumberState/interfaces");
293
+ var _interfaces20 = require("./ProvisioningState/interfaces");
293
294
  Object.keys(_interfaces20).forEach(function (key) {
294
295
  if (key === "default" || key === "__esModule") return;
295
296
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -301,7 +302,7 @@ Object.keys(_interfaces20).forEach(function (key) {
301
302
  }
302
303
  });
303
304
  });
304
- var _interfaces21 = require("./RolesState/interfaces");
305
+ var _interfaces21 = require("./ResetPhoneNumberState/interfaces");
305
306
  Object.keys(_interfaces21).forEach(function (key) {
306
307
  if (key === "default" || key === "__esModule") return;
307
308
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -313,7 +314,7 @@ Object.keys(_interfaces21).forEach(function (key) {
313
314
  }
314
315
  });
315
316
  });
316
- var _interfaces22 = require("./Security/RestrictionsState/interfaces");
317
+ var _interfaces22 = require("./RolesState/interfaces");
317
318
  Object.keys(_interfaces22).forEach(function (key) {
318
319
  if (key === "default" || key === "__esModule") return;
319
320
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -325,7 +326,7 @@ Object.keys(_interfaces22).forEach(function (key) {
325
326
  }
326
327
  });
327
328
  });
328
- var _interfaces23 = require("./Security/SecurityCenterState/interfaces");
329
+ var _interfaces23 = require("./Security/RestrictionsState/interfaces");
329
330
  Object.keys(_interfaces23).forEach(function (key) {
330
331
  if (key === "default" || key === "__esModule") return;
331
332
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -337,7 +338,7 @@ Object.keys(_interfaces23).forEach(function (key) {
337
338
  }
338
339
  });
339
340
  });
340
- var _interfaces24 = require("./Security/SecurityPolicyState/interfaces");
341
+ var _interfaces24 = require("./Security/SecurityCenterState/interfaces");
341
342
  Object.keys(_interfaces24).forEach(function (key) {
342
343
  if (key === "default" || key === "__esModule") return;
343
344
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -349,7 +350,7 @@ Object.keys(_interfaces24).forEach(function (key) {
349
350
  }
350
351
  });
351
352
  });
352
- var _interfaces25 = require("./Security/SessionsPolicyState/interfaces");
353
+ var _interfaces25 = require("./Security/SecurityPolicyState/interfaces");
353
354
  Object.keys(_interfaces25).forEach(function (key) {
354
355
  if (key === "default" || key === "__esModule") return;
355
356
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -361,7 +362,7 @@ Object.keys(_interfaces25).forEach(function (key) {
361
362
  }
362
363
  });
363
364
  });
364
- var _interfaces26 = require("./SessionsState/interfaces");
365
+ var _interfaces26 = require("./Security/SessionsPolicyState/interfaces");
365
366
  Object.keys(_interfaces26).forEach(function (key) {
366
367
  if (key === "default" || key === "__esModule") return;
367
368
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -373,7 +374,7 @@ Object.keys(_interfaces26).forEach(function (key) {
373
374
  }
374
375
  });
375
376
  });
376
- var _interfaces27 = require("./SignUpState/interfaces");
377
+ var _interfaces27 = require("./SessionsState/interfaces");
377
378
  Object.keys(_interfaces27).forEach(function (key) {
378
379
  if (key === "default" || key === "__esModule") return;
379
380
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -385,7 +386,7 @@ Object.keys(_interfaces27).forEach(function (key) {
385
386
  }
386
387
  });
387
388
  });
388
- var _interfaces28 = require("./SmsState/interfaces");
389
+ var _interfaces28 = require("./SignUpState/interfaces");
389
390
  Object.keys(_interfaces28).forEach(function (key) {
390
391
  if (key === "default" || key === "__esModule") return;
391
392
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -397,7 +398,7 @@ Object.keys(_interfaces28).forEach(function (key) {
397
398
  }
398
399
  });
399
400
  });
400
- var _interfaces29 = require("./SocialLoginState/interfaces");
401
+ var _interfaces29 = require("./SmsState/interfaces");
401
402
  Object.keys(_interfaces29).forEach(function (key) {
402
403
  if (key === "default" || key === "__esModule") return;
403
404
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -409,7 +410,7 @@ Object.keys(_interfaces29).forEach(function (key) {
409
410
  }
410
411
  });
411
412
  });
412
- var _interfaces30 = require("./SSOState/interfaces");
413
+ var _interfaces30 = require("./SocialLoginState/interfaces");
413
414
  Object.keys(_interfaces30).forEach(function (key) {
414
415
  if (key === "default" || key === "__esModule") return;
415
416
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -421,7 +422,7 @@ Object.keys(_interfaces30).forEach(function (key) {
421
422
  }
422
423
  });
423
424
  });
424
- var _interfaces31 = require("./StepUpState/interfaces");
425
+ var _interfaces31 = require("./SSOState/interfaces");
425
426
  Object.keys(_interfaces31).forEach(function (key) {
426
427
  if (key === "default" || key === "__esModule") return;
427
428
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -433,7 +434,7 @@ Object.keys(_interfaces31).forEach(function (key) {
433
434
  }
434
435
  });
435
436
  });
436
- var _interfaces32 = require("./TeamState/interfaces");
437
+ var _interfaces32 = require("./StepUpState/interfaces");
437
438
  Object.keys(_interfaces32).forEach(function (key) {
438
439
  if (key === "default" || key === "__esModule") return;
439
440
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -445,7 +446,7 @@ Object.keys(_interfaces32).forEach(function (key) {
445
446
  }
446
447
  });
447
448
  });
448
- var _interfaces33 = require("./TenantsState/interfaces");
449
+ var _interfaces33 = require("./TeamState/interfaces");
449
450
  Object.keys(_interfaces33).forEach(function (key) {
450
451
  if (key === "default" || key === "__esModule") return;
451
452
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -457,7 +458,7 @@ Object.keys(_interfaces33).forEach(function (key) {
457
458
  }
458
459
  });
459
460
  });
460
- var _interfaces34 = require("./UsernamesState/interfaces");
461
+ var _interfaces34 = require("./TenantsState/interfaces");
461
462
  Object.keys(_interfaces34).forEach(function (key) {
462
463
  if (key === "default" || key === "__esModule") return;
463
464
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -469,7 +470,7 @@ Object.keys(_interfaces34).forEach(function (key) {
469
470
  }
470
471
  });
471
472
  });
472
- var _interfaces35 = require("./UsersEmailsPolicyState/interfaces");
473
+ var _interfaces35 = require("./UsernamesState/interfaces");
473
474
  Object.keys(_interfaces35).forEach(function (key) {
474
475
  if (key === "default" || key === "__esModule") return;
475
476
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -481,7 +482,7 @@ Object.keys(_interfaces35).forEach(function (key) {
481
482
  }
482
483
  });
483
484
  });
484
- var _interfaces36 = require("./interfaces");
485
+ var _interfaces36 = require("./UsersEmailsPolicyState/interfaces");
485
486
  Object.keys(_interfaces36).forEach(function (key) {
486
487
  if (key === "default" || key === "__esModule") return;
487
488
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -493,6 +494,18 @@ Object.keys(_interfaces36).forEach(function (key) {
493
494
  }
494
495
  });
495
496
  });
497
+ var _interfaces37 = require("./interfaces");
498
+ Object.keys(_interfaces37).forEach(function (key) {
499
+ if (key === "default" || key === "__esModule") return;
500
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
501
+ if (key in exports && exports[key] === _interfaces37[key]) return;
502
+ Object.defineProperty(exports, key, {
503
+ enumerable: true,
504
+ get: function () {
505
+ return _interfaces37[key];
506
+ }
507
+ });
508
+ });
496
509
  const _excluded = ["routes"],
497
510
  _excluded2 = ["requestName"];
498
511
  const createAuthState = _overrideState => {
@@ -520,6 +533,7 @@ const createAuthState = _overrideState => {
520
533
  accountSettingsState: (0, _AccountSettingsState.createAccountSettingsState)(overrideState == null ? void 0 : overrideState.accountSettingsState),
521
534
  activateAccountState: (0, _ActivateAccountState.createActivateAccountState)(overrideState == null ? void 0 : overrideState.activateAccountState),
522
535
  unlockAccountState: (0, _UnlockAccountState.createUnlockAccountState)(overrideState == null ? void 0 : overrideState.unlockAccountState),
536
+ approvalFlowState: (0, _ApprovalFlowState.createApprovalFlowState)(overrideState == null ? void 0 : overrideState.approvalFlowState),
523
537
  apiTokensState: (0, _ApiTokensState.createApiTokensState)(overrideState == null ? void 0 : overrideState.apiTokensState),
524
538
  applicationsState: (0, _ApplicationsState.createApplicationsState)(overrideState == null ? void 0 : overrideState.applicationsState),
525
539
  customLoginState: (0, _CustomLoginState.createCustomLoginState)(overrideState == null ? void 0 : overrideState.customLoginState),
@@ -588,6 +602,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
588
602
  const accountSettingsActions = (0, _AccountSettingsState.buildAccountSettingsActions)(store, api, actions);
589
603
  const activateAccountActions = (0, _ActivateAccountState.buildActivateAccountActions)(store, api, actions);
590
604
  const unlockAccountActions = (0, _UnlockAccountState.buildUnlockAccountActions)(store, api, actions);
605
+ const approvalFlowActions = (0, _ApprovalFlowState.buildApprovalFlowActions)(store, api, actions);
591
606
  const apiTokensActions = (0, _ApiTokensState.buildApiTokensActions)(store, api, actions);
592
607
  const applicationsActions = (0, _ApplicationsState.buildApplicationsActions)(store, api, actions);
593
608
  const customLoginActions = (0, _CustomLoginState.buildCustomLoginActions)(store, api, actions);
@@ -625,6 +640,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
625
640
  accountSettingsActions,
626
641
  activateAccountActions,
627
642
  unlockAccountActions,
643
+ approvalFlowActions,
628
644
  apiTokensActions,
629
645
  applicationsActions,
630
646
  customLoginActions,
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.90.0
1
+ /** @license Frontegg v7.91.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.
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _ApprovalFlowState = require("../../auth/ApprovalFlowState");
8
+ var _helpers = require("../helpers");
9
+ var _default = (store, api, actions) => {
10
+ const originalActions = (0, _ApprovalFlowState.buildApprovalFlowActions)(store, api, actions);
11
+ const mockedActions = (0, _helpers.mockActionsExpect)(originalActions, ['setApprovalFlowState', 'resetApprovalFlowState', 'getApprovalExecutionData']);
12
+ return mockedActions;
13
+ };
14
+ exports.default = _default;
@@ -10,6 +10,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
10
10
  var _acceptInvitationActions = _interopRequireDefault(require("./acceptInvitationActions.mocks"));
11
11
  var _accountSettingsActions = _interopRequireDefault(require("./accountSettingsActions.mocks"));
12
12
  var _activateAccountActions = _interopRequireDefault(require("./activateAccountActions.mocks"));
13
+ var _approvalFlowActions = _interopRequireDefault(require("./approvalFlowActions.mocks"));
13
14
  var _allAccountsActions = _interopRequireDefault(require("./allAccountsActions.mocks"));
14
15
  var _MSP = require("../../auth/MSP");
15
16
  var _apiTokensActions = _interopRequireDefault(require("./apiTokensActions.mocks"));
@@ -50,6 +51,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
50
51
  const accountSettingsActions = (0, _accountSettingsActions.default)(store, api, actions);
51
52
  const unlockAccountActions = (0, _unlockAccountActions.default)(store, api, actions);
52
53
  const activateAccountActions = (0, _activateAccountActions.default)(store, api, actions);
54
+ const approvalFlowActions = (0, _approvalFlowActions.default)(store, api, actions);
53
55
  const allAccountsActions = (0, _allAccountsActions.default)(store, api, actions);
54
56
  const allAccountsDialogActions = (0, _MSP.buildAllAccountsDialogActions)(store, api, actions);
55
57
  const apiTokensActions = (0, _apiTokensActions.default)(store, api, actions);
@@ -87,6 +89,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
87
89
  accountSettingsActions,
88
90
  unlockAccountActions,
89
91
  activateAccountActions,
92
+ approvalFlowActions,
90
93
  allAccountsActions,
91
94
  allAccountsDialogActions,
92
95
  apiTokensActions,
@@ -156,7 +159,7 @@ const buildAuthActions = (store, api, actions, snapshotAuthState) => {
156
159
  setErrorByRequestName,
157
160
  resetAuthState,
158
161
  setUser
159
- }, 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, usernamesActions, usersEmailsPolicyActions);
162
+ }, acceptInvitationActions, accountSettingsActions, activateAccountActions, unlockAccountActions, approvalFlowActions, 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, usernamesActions, usersEmailsPolicyActions);
160
163
  return {
161
164
  authActions,
162
165
  authStateActions
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "7.90.0",
3
+ "version": "7.91.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.90.0",
10
+ "@frontegg/rest-api": "7.91.0",
11
11
  "fast-deep-equal": "3.1.3",
12
12
  "get-value": "^3.0.1",
13
13
  "proxy-compare": "^3.0.0",