@frontegg/redux-store 5.72.1 → 5.74.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.
@@ -17,10 +17,6 @@ declare const reducers: {
17
17
  isLoading: boolean;
18
18
  keepSessionAlive?: boolean | undefined;
19
19
  user?: import("..").User | null | undefined;
20
- /**
21
- * if you see error in matcher that's mean the DispatchAction does not
22
- * contains the same functions in reducers and actions
23
- */
24
20
  isSSOAuth: boolean;
25
21
  ssoACS?: string | undefined;
26
22
  loginState: import("..").LoginState;
@@ -54,10 +50,6 @@ declare const reducers: {
54
50
  isLoading: boolean;
55
51
  keepSessionAlive?: boolean | undefined;
56
52
  user?: import("..").User | null | undefined;
57
- /**
58
- * if you see error in matcher that's mean the DispatchAction does not
59
- * contains the same functions in reducers and actions
60
- */
61
53
  isSSOAuth: boolean;
62
54
  ssoACS?: string | undefined;
63
55
  loginState: import("..").LoginState;
@@ -14,7 +14,10 @@ declare const reducers: {
14
14
  error?: any;
15
15
  isAuthenticated: boolean;
16
16
  isLoading: boolean;
17
- keepSessionAlive?: boolean | undefined;
17
+ keepSessionAlive?: boolean | undefined; /**
18
+ * if you see error in matcher that's mean the DispatchAction does not
19
+ * contains the same functions in reducers and actions
20
+ */
18
21
  user?: import("..").User | null | undefined;
19
22
  isSSOAuth: boolean;
20
23
  ssoACS?: string | undefined;
@@ -47,7 +50,10 @@ declare const reducers: {
47
50
  error?: any;
48
51
  isAuthenticated: boolean;
49
52
  isLoading: boolean;
50
- keepSessionAlive?: boolean | undefined;
53
+ keepSessionAlive?: boolean | undefined; /**
54
+ * if you see error in matcher that's mean the DispatchAction does not
55
+ * contains the same functions in reducers and actions
56
+ */
51
57
  user?: import("..").User | null | undefined;
52
58
  isSSOAuth: boolean;
53
59
  ssoACS?: string | undefined;
package/auth/index.js CHANGED
@@ -1034,7 +1034,36 @@ var AuthenticationTypes;
1034
1034
  (function (AuthenticationTypes) {
1035
1035
  AuthenticationTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
1036
1036
  AuthenticationTypes["PASSWORD"] = "PASSWORD";
1037
- })(AuthenticationTypes || (AuthenticationTypes = {}));
1037
+ })(AuthenticationTypes || (AuthenticationTypes = {}));
1038
+ var AdminPortalPagesForEvents;
1039
+ (function (AdminPortalPagesForEvents) {
1040
+ AdminPortalPagesForEvents["profile"] = "profile";
1041
+ AdminPortalPagesForEvents["privacy"] = "privacy";
1042
+ AdminPortalPagesForEvents["personalApiTokens"] = "personalApiTokens";
1043
+ AdminPortalPagesForEvents["account"] = "account";
1044
+ AdminPortalPagesForEvents["users"] = "users";
1045
+ AdminPortalPagesForEvents["security"] = "security";
1046
+ AdminPortalPagesForEvents["sso"] = "sso";
1047
+ AdminPortalPagesForEvents["audits"] = "audits";
1048
+ AdminPortalPagesForEvents["webhooks"] = "webhooks";
1049
+ AdminPortalPagesForEvents["apiTokens"] = "apiTokens";
1050
+ AdminPortalPagesForEvents["roles"] = "roles";
1051
+ AdminPortalPagesForEvents["subscriptions"] = "subscription";
1052
+ })(AdminPortalPagesForEvents || (AdminPortalPagesForEvents = {}));
1053
+ const AdminPortalPages = {
1054
+ profile: AdminPortalPagesForEvents.profile,
1055
+ privacy: AdminPortalPagesForEvents.privacy,
1056
+ personalApiTokens: AdminPortalPagesForEvents.personalApiTokens,
1057
+ account: AdminPortalPagesForEvents.account,
1058
+ users: AdminPortalPagesForEvents.users,
1059
+ security: AdminPortalPagesForEvents.security,
1060
+ sso: AdminPortalPagesForEvents.sso,
1061
+ audits: AdminPortalPagesForEvents.audits,
1062
+ webhooks: AdminPortalPagesForEvents.webhooks,
1063
+ apiTokens: AdminPortalPagesForEvents.apiTokens,
1064
+ roles: AdminPortalPagesForEvents.roles,
1065
+ subscriptions: AdminPortalPagesForEvents.subscriptions,
1066
+ };
1038
1067
 
1039
1068
  function* loadAllowSignUps() {
1040
1069
  yield put(actions.setSignUpState({ loading: true }));
@@ -4402,4 +4431,4 @@ var authStore = {
4402
4431
  actions,
4403
4432
  };
4404
4433
 
4405
- export { AcceptInvitationStep, ActivateAccountStep, ApiStateKeys, AuthenticationTypes, ForgotPasswordStep, LoginFlow, LoginStep, MFAStep, QuickLoginStrategy, ResetPhoneNumberStep, SSOStateKeys, SamlVendors, SignUpStage, TeamStateKeys, UserVeirifedOriginTypes, actions$g as acceptInvitationActions, reducers$f as acceptInvitationReducers, acceptInvitationState, actions$5 as accountSettingsActions, reducers$4 as accountSettingsReducers, accountSettingsState, actions$h as activateAccountActions, reducers$g as activateAccountReducers, activateState, actions$7 as apiTokensActions, reducers$6 as apiTokensReducers, apiTokensState, actions as authActions, initialState as authInitialState, mockSagas as authMockSagas, reducer as authReducers, sagas as authSagas, authStore as default, actions$f as forgotPasswordActions, reducers$e as forgotPasswordReducers, forgotPasswordState, actions$i as loginActions, reducers$h as loginReducers, loginState, actions$b as mfaActions, reducers$a as mfaReducers, mfaState, actions$c as profileActions, reducers$b as profileReducers, profileState, actions$e as resetPhoneNumberActions, reducers$d as resetPhoneNumberReducers, resetPhoneNumberState, actions$3 as rolesActions, reducers$2 as rolesReducers, rolesState, actions$6 as securityPolicyActions, reducers$5 as securityPolicyReducers, securityPolicyState, actions$2 as sessionsActions, actions$1 as sessionsPolicyActions, reducers as sessionsPolicyReducers, sessionsPolicyState, reducers$1 as sessionsReducers, sessionsState, actions$8 as signUpActions, reducers$7 as signUpReducers, signUpState, socialLoginState, actions$9 as socialLoginsActions, reducers$8 as socialLoginsReducer, actions$d as ssoActions, reducers$c as ssoReducers, ssoState, actions$a as teamActions, reducers$9 as teamReducers, teamState, actions$4 as tenantsActions, reducers$3 as tenantsReducers, tenantsState };
4434
+ export { AcceptInvitationStep, ActivateAccountStep, AdminPortalPages, AdminPortalPagesForEvents, ApiStateKeys, AuthenticationTypes, ForgotPasswordStep, LoginFlow, LoginStep, MFAStep, QuickLoginStrategy, ResetPhoneNumberStep, SSOStateKeys, SamlVendors, SignUpStage, TeamStateKeys, UserVeirifedOriginTypes, actions$g as acceptInvitationActions, reducers$f as acceptInvitationReducers, acceptInvitationState, actions$5 as accountSettingsActions, reducers$4 as accountSettingsReducers, accountSettingsState, actions$h as activateAccountActions, reducers$g as activateAccountReducers, activateState, actions$7 as apiTokensActions, reducers$6 as apiTokensReducers, apiTokensState, actions as authActions, initialState as authInitialState, mockSagas as authMockSagas, reducer as authReducers, sagas as authSagas, authStore as default, actions$f as forgotPasswordActions, reducers$e as forgotPasswordReducers, forgotPasswordState, actions$i as loginActions, reducers$h as loginReducers, loginState, actions$b as mfaActions, reducers$a as mfaReducers, mfaState, actions$c as profileActions, reducers$b as profileReducers, profileState, actions$e as resetPhoneNumberActions, reducers$d as resetPhoneNumberReducers, resetPhoneNumberState, actions$3 as rolesActions, reducers$2 as rolesReducers, rolesState, actions$6 as securityPolicyActions, reducers$5 as securityPolicyReducers, securityPolicyState, actions$2 as sessionsActions, actions$1 as sessionsPolicyActions, reducers as sessionsPolicyReducers, sessionsPolicyState, reducers$1 as sessionsReducers, sessionsState, actions$8 as signUpActions, reducers$7 as signUpReducers, signUpState, socialLoginState, actions$9 as socialLoginsActions, reducers$8 as socialLoginsReducer, actions$d as ssoActions, reducers$c as ssoReducers, ssoState, actions$a as teamActions, reducers$9 as teamReducers, teamState, actions$4 as tenantsActions, reducers$3 as tenantsReducers, tenantsState };
@@ -139,9 +139,27 @@ export declare enum AuthenticationTypes {
139
139
  SOCIAL_LOGIN = "SOCIAL_LOGIN",
140
140
  PASSWORD = "PASSWORD"
141
141
  }
142
+ export declare enum AdminPortalPagesForEvents {
143
+ profile = "profile",
144
+ privacy = "privacy",
145
+ personalApiTokens = "personalApiTokens",
146
+ account = "account",
147
+ users = "users",
148
+ security = "security",
149
+ sso = "sso",
150
+ audits = "audits",
151
+ webhooks = "webhooks",
152
+ apiTokens = "apiTokens",
153
+ roles = "roles",
154
+ subscriptions = "subscription"
155
+ }
156
+ export declare const AdminPortalPages: Record<string, AdminPortalPagesForEvents>;
142
157
  export interface CustomEventsOptions {
143
158
  userVerified?: (payload: IUserVerifiedPayload) => void;
144
159
  signUpComplete?: (payload: ISignUpCompletePayload) => void;
160
+ inviteMemberClicked?: (payload: IInviteMemberClickedPayload) => void;
161
+ inviteMemberSubmit?: (payload: IInviteMemberSubmitPayload) => void;
162
+ adminBoxMenuClicked?: (payload: IAdminBoxMenuClicked) => void;
145
163
  }
146
164
  export interface IUserVerifiedPayload {
147
165
  email: string;
@@ -152,6 +170,17 @@ export interface IUserVerifiedPayload {
152
170
  url?: URL;
153
171
  name?: string;
154
172
  }
173
+ export interface IInviteMemberClickedPayload {
174
+ email: string;
175
+ }
176
+ export interface IInviteMemberSubmitPayload {
177
+ email: string;
178
+ invitedUserFirstName: string;
179
+ invitedUserLastName: string;
180
+ invitedUserEmail: string;
181
+ invitedUserPhoneNumber?: string;
182
+ invitedUserRoles?: string[];
183
+ }
155
184
  export interface ISignUpCompletePayload {
156
185
  name?: string;
157
186
  companyName?: string;
@@ -163,4 +192,8 @@ export interface ISignUpCompletePayload {
163
192
  authenticationType: AuthenticationTypes;
164
193
  socialProvider?: SocialLoginProviders;
165
194
  }
195
+ export interface IAdminBoxMenuClicked {
196
+ email: string;
197
+ tab: AdminPortalPagesForEvents;
198
+ }
166
199
  export {};
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { AcceptInvitationStep, ActivateAccountStep, ApiStateKeys, AuthenticationTypes, ForgotPasswordStep, LoginFlow, LoginStep, MFAStep, QuickLoginStrategy, ResetPhoneNumberStep, SSOStateKeys, SamlVendors, SignUpStage, TeamStateKeys, UserVeirifedOriginTypes, acceptInvitationActions, acceptInvitationReducers, acceptInvitationState, accountSettingsActions, accountSettingsReducers, accountSettingsState, activateAccountActions, activateAccountReducers, activateState, apiTokensActions, apiTokensReducers, apiTokensState, default as auth, authActions, authInitialState, authMockSagas, authReducers, authSagas, forgotPasswordActions, forgotPasswordReducers, forgotPasswordState, loginActions, loginReducers, loginState, mfaActions, mfaReducers, mfaState, profileActions, profileReducers, profileState, resetPhoneNumberActions, resetPhoneNumberReducers, resetPhoneNumberState, rolesActions, rolesReducers, rolesState, securityPolicyActions, securityPolicyReducers, securityPolicyState, sessionsActions, sessionsPolicyActions, sessionsPolicyReducers, sessionsPolicyState, sessionsReducers, sessionsState, signUpActions, signUpReducers, signUpState, socialLoginState, socialLoginsActions, socialLoginsReducer, ssoActions, ssoReducers, ssoState, teamActions, teamReducers, teamState, tenantsActions, tenantsReducers, tenantsState } from './auth/index.js';
1
+ export { AcceptInvitationStep, ActivateAccountStep, AdminPortalPages, AdminPortalPagesForEvents, ApiStateKeys, AuthenticationTypes, ForgotPasswordStep, LoginFlow, LoginStep, MFAStep, QuickLoginStrategy, ResetPhoneNumberStep, SSOStateKeys, SamlVendors, SignUpStage, TeamStateKeys, UserVeirifedOriginTypes, acceptInvitationActions, acceptInvitationReducers, acceptInvitationState, accountSettingsActions, accountSettingsReducers, accountSettingsState, activateAccountActions, activateAccountReducers, activateState, apiTokensActions, apiTokensReducers, apiTokensState, default as auth, authActions, authInitialState, authMockSagas, authReducers, authSagas, forgotPasswordActions, forgotPasswordReducers, forgotPasswordState, loginActions, loginReducers, loginState, mfaActions, mfaReducers, mfaState, profileActions, profileReducers, profileState, resetPhoneNumberActions, resetPhoneNumberReducers, resetPhoneNumberState, rolesActions, rolesReducers, rolesState, securityPolicyActions, securityPolicyReducers, securityPolicyState, sessionsActions, sessionsPolicyActions, sessionsPolicyReducers, sessionsPolicyState, sessionsReducers, sessionsState, signUpActions, signUpReducers, signUpState, socialLoginState, socialLoginsActions, socialLoginsReducer, ssoActions, ssoReducers, ssoState, teamActions, teamReducers, teamState, tenantsActions, tenantsReducers, tenantsState } from './auth/index.js';
2
2
  export { auditLogsActions, auditLogsReducers, auditLogsState, default as audits, auditsActions, auditsInitialState, auditsMetadataActions, auditsMetadataReducers, auditsMetadataState, auditsMockSagas, auditsReducers, auditsSagas } from './audits/index.js';
3
3
  export { default as connectivity, connectivityActions, connectivityInitialState, connectivityReducers, connectivitySagas } from './connectivity/index.js';
4
4
  export { PaymentMethodType, PaymentProvider, SubscriptionCancellationPolicy, SubscriptionStatus, subscriptionActions, subscriptionInitialState, subscriptionReducers, subscriptionSagas, subscriptionSagasMock, default as subscriptions } from './subscriptions/index.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('../index-b3622c8e.js');
5
+ var auth_index = require('../index-d8f1a357.js');
6
6
  var constants = require('../constants-52e37c08.js');
7
7
  var restApi = require('@frontegg/rest-api');
8
8
  require('@reduxjs/toolkit');
@@ -30,6 +30,13 @@ Object.defineProperty(exports, 'ActivateAccountStep', {
30
30
  return auth_index.ActivateAccountStep;
31
31
  }
32
32
  });
33
+ exports.AdminPortalPages = auth_index.AdminPortalPages;
34
+ Object.defineProperty(exports, 'AdminPortalPagesForEvents', {
35
+ enumerable: true,
36
+ get: function () {
37
+ return auth_index.AdminPortalPagesForEvents;
38
+ }
39
+ });
33
40
  Object.defineProperty(exports, 'ApiStateKeys', {
34
41
  enumerable: true,
35
42
  get: function () {
@@ -953,7 +953,36 @@ exports.AuthenticationTypes = void 0;
953
953
  (function (AuthenticationTypes) {
954
954
  AuthenticationTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
955
955
  AuthenticationTypes["PASSWORD"] = "PASSWORD";
956
- })(exports.AuthenticationTypes || (exports.AuthenticationTypes = {}));
956
+ })(exports.AuthenticationTypes || (exports.AuthenticationTypes = {}));
957
+ exports.AdminPortalPagesForEvents = void 0;
958
+ (function (AdminPortalPagesForEvents) {
959
+ AdminPortalPagesForEvents["profile"] = "profile";
960
+ AdminPortalPagesForEvents["privacy"] = "privacy";
961
+ AdminPortalPagesForEvents["personalApiTokens"] = "personalApiTokens";
962
+ AdminPortalPagesForEvents["account"] = "account";
963
+ AdminPortalPagesForEvents["users"] = "users";
964
+ AdminPortalPagesForEvents["security"] = "security";
965
+ AdminPortalPagesForEvents["sso"] = "sso";
966
+ AdminPortalPagesForEvents["audits"] = "audits";
967
+ AdminPortalPagesForEvents["webhooks"] = "webhooks";
968
+ AdminPortalPagesForEvents["apiTokens"] = "apiTokens";
969
+ AdminPortalPagesForEvents["roles"] = "roles";
970
+ AdminPortalPagesForEvents["subscriptions"] = "subscription";
971
+ })(exports.AdminPortalPagesForEvents || (exports.AdminPortalPagesForEvents = {}));
972
+ const AdminPortalPages = {
973
+ profile: exports.AdminPortalPagesForEvents.profile,
974
+ privacy: exports.AdminPortalPagesForEvents.privacy,
975
+ personalApiTokens: exports.AdminPortalPagesForEvents.personalApiTokens,
976
+ account: exports.AdminPortalPagesForEvents.account,
977
+ users: exports.AdminPortalPagesForEvents.users,
978
+ security: exports.AdminPortalPagesForEvents.security,
979
+ sso: exports.AdminPortalPagesForEvents.sso,
980
+ audits: exports.AdminPortalPagesForEvents.audits,
981
+ webhooks: exports.AdminPortalPagesForEvents.webhooks,
982
+ apiTokens: exports.AdminPortalPagesForEvents.apiTokens,
983
+ roles: exports.AdminPortalPagesForEvents.roles,
984
+ subscriptions: exports.AdminPortalPagesForEvents.subscriptions,
985
+ };
957
986
 
958
987
  function* loadAllowSignUps() {
959
988
  yield effects.put(actions.setSignUpState({ loading: true }));
@@ -4401,6 +4430,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
4401
4430
  return holder.store;
4402
4431
  };
4403
4432
 
4433
+ exports.AdminPortalPages = AdminPortalPages;
4404
4434
  exports.acceptInvitationState = acceptInvitationState;
4405
4435
  exports.accountSettingsState = accountSettingsState;
4406
4436
  exports.actions = actions;
package/node/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('./index-b3622c8e.js');
5
+ var auth_index = require('./index-d8f1a357.js');
6
6
  var audits_index = require('./audits/index.js');
7
7
  var connectivity_index = require('./connectivity/index.js');
8
8
  var subscriptions_index = require('./subscriptions/index.js');
@@ -34,6 +34,13 @@ Object.defineProperty(exports, 'ActivateAccountStep', {
34
34
  return auth_index.ActivateAccountStep;
35
35
  }
36
36
  });
37
+ exports.AdminPortalPages = auth_index.AdminPortalPages;
38
+ Object.defineProperty(exports, 'AdminPortalPagesForEvents', {
39
+ enumerable: true,
40
+ get: function () {
41
+ return auth_index.AdminPortalPagesForEvents;
42
+ }
43
+ });
37
44
  Object.defineProperty(exports, 'ApiStateKeys', {
38
45
  enumerable: true,
39
46
  get: function () {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var auth_index = require('../index-b3622c8e.js');
5
+ var auth_index = require('../index-d8f1a357.js');
6
6
  var toolkit = require('@reduxjs/toolkit');
7
7
  var createSagaMiddleware = require('redux-saga');
8
8
  var effects = require('redux-saga/effects');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.72.1",
4
+ "version": "5.74.0",
5
5
  "author": "Frontegg LTD",
6
6
  "main": "./node/index.js",
7
7
  "module": "./index.js",