@frontegg/redux-store 6.69.0 → 6.70.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 (254) hide show
  1. package/audits/AuditLogsState/index.js +1 -1
  2. package/audits/AuditLogsState/saga.js +1 -18
  3. package/audits/AuditsMetadataState/index.js +1 -1
  4. package/audits/AuditsMetadataState/saga.js +1 -5
  5. package/audits/backward-compatibility/saga.js +0 -18
  6. package/audits/dummy.js +0 -16
  7. package/audits/index.js +4 -2
  8. package/audits/reducer.js +0 -2
  9. package/auth/AcceptInvitationState/index.d.ts +2 -0
  10. package/auth/AcceptInvitationState/index.js +1 -1
  11. package/auth/AcceptInvitationState/interfaces.js +0 -1
  12. package/auth/AcceptInvitationState/saga.js +0 -3
  13. package/auth/AccountSettingsState/index.d.ts +2 -0
  14. package/auth/AccountSettingsState/index.js +1 -1
  15. package/auth/AccountSettingsState/interfaces.d.ts +2 -0
  16. package/auth/AccountSettingsState/saga.js +1 -11
  17. package/auth/ActivateState/index.d.ts +3 -0
  18. package/auth/ActivateState/index.js +1 -1
  19. package/auth/ActivateState/interfaces.js +0 -1
  20. package/auth/ActivateState/saga.js +14 -34
  21. package/auth/ApiTokensState/index.d.ts +2 -0
  22. package/auth/ApiTokensState/index.js +1 -1
  23. package/auth/ApiTokensState/interfaces.d.ts +1 -0
  24. package/auth/ApiTokensState/interfaces.js +0 -1
  25. package/auth/ApiTokensState/saga.js +1 -44
  26. package/auth/ForgotPasswordState/index.d.ts +2 -0
  27. package/auth/ForgotPasswordState/index.js +1 -1
  28. package/auth/ForgotPasswordState/interfaces.js +0 -1
  29. package/auth/ForgotPasswordState/saga.js +5 -12
  30. package/auth/ImpersonationState/index.d.ts +2 -0
  31. package/auth/ImpersonationState/index.js +1 -1
  32. package/auth/ImpersonationState/interfaces.js +0 -1
  33. package/auth/ImpersonationState/saga.js +5 -9
  34. package/auth/LoginState/index.d.ts +2 -0
  35. package/auth/LoginState/index.js +1 -1
  36. package/auth/LoginState/interfaces.js +0 -6
  37. package/auth/LoginState/saga.d.ts +2 -38
  38. package/auth/LoginState/saga.js +132 -292
  39. package/auth/MfaState/index.d.ts +4 -2
  40. package/auth/MfaState/index.js +1 -1
  41. package/auth/MfaState/interfaces.d.ts +2 -2
  42. package/auth/MfaState/interfaces.js +0 -1
  43. package/auth/MfaState/saga.js +64 -143
  44. package/auth/ProfileState/index.d.ts +2 -0
  45. package/auth/ProfileState/index.js +1 -1
  46. package/auth/ProfileState/saga.js +22 -50
  47. package/auth/Provisioning/index.d.ts +2 -0
  48. package/auth/Provisioning/index.js +1 -1
  49. package/auth/Provisioning/saga.js +11 -23
  50. package/auth/ResetPhoneNumberState/index.d.ts +2 -0
  51. package/auth/ResetPhoneNumberState/index.js +1 -1
  52. package/auth/ResetPhoneNumberState/interfaces.js +0 -1
  53. package/auth/ResetPhoneNumberState/saga.js +17 -26
  54. package/auth/RestrictionsState/index.d.ts +3 -0
  55. package/auth/RestrictionsState/index.js +1 -1
  56. package/auth/RestrictionsState/saga.js +52 -105
  57. package/auth/RolesState/index.d.ts +2 -0
  58. package/auth/RolesState/index.js +1 -1
  59. package/auth/RolesState/saga.js +30 -51
  60. package/auth/SSOState/index.d.ts +2 -0
  61. package/auth/SSOState/index.js +1 -1
  62. package/auth/SSOState/interfaces.js +0 -3
  63. package/auth/SSOState/saga.js +10 -58
  64. package/auth/SSOState/saga.v2.js +13 -49
  65. package/auth/SecurityPolicyState/index.d.ts +13 -0
  66. package/auth/SecurityPolicyState/index.js +1 -1
  67. package/auth/SecurityPolicyState/saga.js +36 -90
  68. package/auth/SessionsPolicyState/index.d.ts +2 -0
  69. package/auth/SessionsPolicyState/index.js +1 -1
  70. package/auth/SessionsPolicyState/saga.js +7 -19
  71. package/auth/SessionsState/index.d.ts +2 -0
  72. package/auth/SessionsState/index.js +1 -1
  73. package/auth/SessionsState/saga.js +1 -15
  74. package/auth/SignUp/index.d.ts +2 -0
  75. package/auth/SignUp/index.js +1 -1
  76. package/auth/SignUp/interfaces.js +0 -1
  77. package/auth/SignUp/saga.js +6 -15
  78. package/auth/SocialLogins/index.d.ts +2 -0
  79. package/auth/SocialLogins/index.js +1 -1
  80. package/auth/SocialLogins/saga.js +10 -20
  81. package/auth/TeamState/index.d.ts +2 -0
  82. package/auth/TeamState/index.js +1 -1
  83. package/auth/TeamState/interfaces.js +0 -1
  84. package/auth/TeamState/saga.js +85 -205
  85. package/auth/TenantsState/index.d.ts +2 -0
  86. package/auth/TenantsState/index.js +1 -1
  87. package/auth/TenantsState/saga.js +1 -17
  88. package/auth/index.d.ts +2 -2
  89. package/auth/index.js +4 -3
  90. package/auth/interfaces.d.ts +2 -1
  91. package/auth/interfaces.js +0 -6
  92. package/auth/reducer.d.ts +2 -2
  93. package/auth/reducer.js +0 -2
  94. package/auth/saga.js +2 -1
  95. package/auth/utils.d.ts +4 -0
  96. package/auth/utils.js +7 -21
  97. package/connectivity/ConnectivityState/index.d.ts +9 -0
  98. package/connectivity/ConnectivityState/index.js +1 -1
  99. package/connectivity/consts.js +0 -5
  100. package/connectivity/index.js +4 -2
  101. package/connectivity/interfaces.d.ts +1 -0
  102. package/connectivity/reducer.js +0 -2
  103. package/connectivity/saga.js +48 -85
  104. package/helpers.js +4 -7
  105. package/index.js +1 -1
  106. package/node/audits/AuditLogsState/index.js +1 -8
  107. package/node/audits/AuditLogsState/saga.js +1 -26
  108. package/node/audits/AuditsMetadataState/index.js +1 -8
  109. package/node/audits/AuditsMetadataState/saga.js +1 -10
  110. package/node/audits/backward-compatibility/index.js +0 -8
  111. package/node/audits/backward-compatibility/reducer.js +0 -5
  112. package/node/audits/backward-compatibility/saga.js +0 -23
  113. package/node/audits/dummy.js +0 -19
  114. package/node/audits/index.js +0 -14
  115. package/node/audits/initialState.js +0 -3
  116. package/node/audits/reducer.js +0 -8
  117. package/node/audits/saga.js +0 -5
  118. package/node/audits/utils.js +0 -4
  119. package/node/auth/AcceptInvitationState/index.js +1 -7
  120. package/node/auth/AcceptInvitationState/interfaces.js +0 -1
  121. package/node/auth/AcceptInvitationState/saga.js +0 -7
  122. package/node/auth/AccountSettingsState/index.js +1 -6
  123. package/node/auth/AccountSettingsState/saga.js +1 -16
  124. package/node/auth/ActivateState/index.js +1 -7
  125. package/node/auth/ActivateState/interfaces.js +0 -1
  126. package/node/auth/ActivateState/saga.js +14 -41
  127. package/node/auth/ApiTokensState/index.js +1 -6
  128. package/node/auth/ApiTokensState/interfaces.js +0 -1
  129. package/node/auth/ApiTokensState/saga.js +1 -51
  130. package/node/auth/ForgotPasswordState/index.js +1 -7
  131. package/node/auth/ForgotPasswordState/interfaces.js +0 -1
  132. package/node/auth/ForgotPasswordState/saga.js +5 -19
  133. package/node/auth/ImpersonationState/index.js +1 -7
  134. package/node/auth/ImpersonationState/interfaces.js +0 -1
  135. package/node/auth/ImpersonationState/saga.js +5 -15
  136. package/node/auth/LoginState/index.js +1 -7
  137. package/node/auth/LoginState/interfaces.js +0 -7
  138. package/node/auth/LoginState/saga.js +132 -322
  139. package/node/auth/MfaState/index.js +1 -7
  140. package/node/auth/MfaState/interfaces.js +0 -1
  141. package/node/auth/MfaState/saga.js +64 -137
  142. package/node/auth/ProfileState/index.js +1 -6
  143. package/node/auth/ProfileState/saga.js +22 -58
  144. package/node/auth/Provisioning/index.js +1 -6
  145. package/node/auth/Provisioning/saga.js +11 -28
  146. package/node/auth/ResetPhoneNumberState/index.js +1 -7
  147. package/node/auth/ResetPhoneNumberState/interfaces.js +0 -1
  148. package/node/auth/ResetPhoneNumberState/saga.js +17 -32
  149. package/node/auth/RestrictionsState/index.js +1 -7
  150. package/node/auth/RestrictionsState/saga.js +52 -109
  151. package/node/auth/RolesState/index.js +1 -6
  152. package/node/auth/RolesState/saga.js +30 -54
  153. package/node/auth/SSOState/index.js +1 -6
  154. package/node/auth/SSOState/interfaces.js +0 -3
  155. package/node/auth/SSOState/saga.js +10 -63
  156. package/node/auth/SSOState/saga.v2.js +13 -53
  157. package/node/auth/SecurityPolicyState/index.js +1 -6
  158. package/node/auth/SecurityPolicyState/saga.js +36 -89
  159. package/node/auth/SessionsPolicyState/index.js +1 -6
  160. package/node/auth/SessionsPolicyState/saga.js +7 -24
  161. package/node/auth/SessionsState/index.js +1 -6
  162. package/node/auth/SessionsState/saga.js +1 -22
  163. package/node/auth/SignUp/index.js +1 -7
  164. package/node/auth/SignUp/interfaces.js +0 -1
  165. package/node/auth/SignUp/saga.js +6 -30
  166. package/node/auth/SocialLogins/index.js +1 -6
  167. package/node/auth/SocialLogins/saga.js +10 -33
  168. package/node/auth/TeamState/index.js +1 -6
  169. package/node/auth/TeamState/interfaces.js +0 -1
  170. package/node/auth/TeamState/saga.js +86 -190
  171. package/node/auth/TenantsState/index.js +1 -6
  172. package/node/auth/TenantsState/saga.js +1 -24
  173. package/node/auth/dummy.js +0 -5
  174. package/node/auth/index.js +0 -90
  175. package/node/auth/initialState.js +0 -23
  176. package/node/auth/interfaces.js +0 -6
  177. package/node/auth/reducer.js +0 -28
  178. package/node/auth/saga.js +2 -26
  179. package/node/auth/utils.js +7 -42
  180. package/node/connectivity/ConnectivityState/index.js +1 -7
  181. package/node/connectivity/consts.js +1 -7
  182. package/node/connectivity/index.js +0 -5
  183. package/node/connectivity/reducer.js +0 -6
  184. package/node/connectivity/saga.js +47 -91
  185. package/node/helpers.js +2 -14
  186. package/node/index.js +1 -17
  187. package/node/subscriptions/Billing/Information/index.js +0 -7
  188. package/node/subscriptions/Billing/Information/saga.js +1 -25
  189. package/node/subscriptions/Billing/Invoices/index.js +0 -6
  190. package/node/subscriptions/Billing/Invoices/saga.js +1 -13
  191. package/node/subscriptions/Billing/PaymentMethod/index.js +2 -8
  192. package/node/subscriptions/Billing/PaymentMethod/interfaces.js +0 -1
  193. package/node/subscriptions/Billing/PaymentMethod/saga.js +1 -17
  194. package/node/subscriptions/Billing/Subscription/index.js +0 -6
  195. package/node/subscriptions/Billing/Subscription/saga.js +3 -23
  196. package/node/subscriptions/Billing/index.js +0 -6
  197. package/node/subscriptions/Billing/interfaces.js +0 -8
  198. package/node/subscriptions/Billing/saga.js +0 -7
  199. package/node/subscriptions/Checkout/index.js +0 -6
  200. package/node/subscriptions/Checkout/saga.js +2 -22
  201. package/node/subscriptions/Config/index.js +0 -6
  202. package/node/subscriptions/Config/saga.js +1 -12
  203. package/node/subscriptions/Plans/index.js +0 -6
  204. package/node/subscriptions/Plans/saga.js +1 -13
  205. package/node/subscriptions/Stripe/index.js +0 -6
  206. package/node/subscriptions/Stripe/saga.js +0 -8
  207. package/node/subscriptions/VendorPublicConfig/index.js +0 -6
  208. package/node/subscriptions/VendorPublicConfig/saga.js +1 -9
  209. package/node/subscriptions/dummy.js +2 -4
  210. package/node/subscriptions/general.interfaces.js +0 -5
  211. package/node/subscriptions/index.js +0 -5
  212. package/node/subscriptions/interfaces.js +0 -14
  213. package/node/subscriptions/mapper.js +0 -11
  214. package/node/subscriptions/reducer.js +0 -9
  215. package/node/subscriptions/saga.js +0 -9
  216. package/node/subscriptions/utils.js +0 -6
  217. package/node/toolkit/index.js +0 -31
  218. package/node/toolkit/redux-saga.js +0 -3
  219. package/node/toolkit/redux.js +0 -1
  220. package/node/vendor/VendorState/index.js +1 -7
  221. package/node/vendor/index.js +0 -5
  222. package/node/vendor/reducer.js +0 -6
  223. package/node/vendor/saga.js +1 -9
  224. package/package.json +1 -1
  225. package/subscriptions/Billing/Information/index.js +0 -4
  226. package/subscriptions/Billing/Information/saga.js +1 -12
  227. package/subscriptions/Billing/Invoices/index.js +0 -4
  228. package/subscriptions/Billing/Invoices/saga.js +1 -5
  229. package/subscriptions/Billing/PaymentMethod/index.js +2 -6
  230. package/subscriptions/Billing/PaymentMethod/interfaces.js +1 -1
  231. package/subscriptions/Billing/PaymentMethod/saga.js +1 -9
  232. package/subscriptions/Billing/Subscription/index.js +0 -4
  233. package/subscriptions/Billing/Subscription/saga.js +3 -17
  234. package/subscriptions/Billing/interfaces.js +1 -0
  235. package/subscriptions/Checkout/index.js +0 -4
  236. package/subscriptions/Checkout/saga.js +2 -12
  237. package/subscriptions/Config/index.js +0 -4
  238. package/subscriptions/Config/saga.js +1 -7
  239. package/subscriptions/Plans/index.js +0 -2
  240. package/subscriptions/Plans/saga.js +1 -6
  241. package/subscriptions/Stripe/index.js +0 -4
  242. package/subscriptions/Stripe/saga.js +0 -4
  243. package/subscriptions/VendorPublicConfig/index.js +0 -2
  244. package/subscriptions/VendorPublicConfig/saga.js +1 -4
  245. package/subscriptions/dummy.js +3 -2
  246. package/subscriptions/general.interfaces.js +0 -5
  247. package/subscriptions/index.js +3 -1
  248. package/subscriptions/mapper.js +0 -5
  249. package/toolkit/index.d.ts +1 -1
  250. package/toolkit/index.js +0 -9
  251. package/vendor/VendorState/index.js +1 -0
  252. package/vendor/index.js +4 -2
  253. package/vendor/reducer.js +0 -2
  254. package/vendor/saga.js +1 -2
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.tenantsState = exports.tenantsReducers = exports.tenantsActions = void 0;
7
-
8
7
  var _toolkit = require("@reduxjs/toolkit");
9
-
10
8
  var _utils = require("../utils");
11
-
12
9
  var _constants = require("../../constants");
13
-
14
10
  const tenantsState = {
15
11
  tenants: [],
16
12
  subTenants: [],
@@ -39,14 +35,13 @@ const actions = {
39
35
  payload
40
36
  }))
41
37
  };
38
+
42
39
  /**
43
40
  * To be used for actions types after dispatch, and should contains
44
41
  * the reducers and actions as standalone function
45
42
  */
46
-
47
43
  exports.tenantsActions = actions;
48
44
  // noinspection JSUnusedLocalSymbols
49
-
50
45
  /**
51
46
  * if you see error in matcher that's mean the DispatchAction does not
52
47
  * contains the same functions in reducers and actions
@@ -5,19 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tenantsSagas = tenantsSagas;
7
7
  exports.tenantsSagasMock = tenantsSagasMock;
8
-
9
8
  var _effects = require("redux-saga/effects");
10
-
11
9
  var _restApi = require("@frontegg/rest-api");
12
-
13
10
  var _reducer = require("../reducer");
14
-
15
11
  var _utils = require("../utils");
16
-
17
12
  var _dummy = require("../dummy");
18
-
19
13
  var _saga = require("../LoginState/saga");
20
-
21
14
  function* switchTenant({
22
15
  payload: {
23
16
  tenantId,
@@ -27,14 +20,12 @@ function* switchTenant({
27
20
  yield (0, _effects.put)(_reducer.actions.setState({
28
21
  isLoading: true
29
22
  }));
30
-
31
23
  try {
32
24
  yield (0, _effects.call)(_restApi.api.tenants.switchTenant, {
33
25
  tenantId
34
26
  });
35
27
  yield (0, _effects.call)(_saga.refreshToken);
36
28
  const callbackConsumed = callback == null ? void 0 : callback(true);
37
-
38
29
  if (!callbackConsumed) {
39
30
  yield (0, _effects.put)(_reducer.actions.setState({
40
31
  isLoading: false
@@ -47,17 +38,14 @@ function* switchTenant({
47
38
  callback == null ? void 0 : callback(false, e);
48
39
  }
49
40
  }
50
-
51
41
  function* loadTenants({
52
42
  payload
53
43
  }) {
54
44
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
55
45
  loading: true
56
46
  }));
57
-
58
47
  try {
59
48
  var _payload$callback;
60
-
61
49
  const tenants = yield (0, _effects.call)(_restApi.api.tenants.getTenants);
62
50
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
63
51
  tenants,
@@ -66,24 +54,20 @@ function* loadTenants({
66
54
  payload == null ? void 0 : (_payload$callback = payload.callback) == null ? void 0 : _payload$callback.call(payload, []);
67
55
  } catch (e) {
68
56
  var _payload$callback2;
69
-
70
57
  payload == null ? void 0 : (_payload$callback2 = payload.callback) == null ? void 0 : _payload$callback2.call(payload, [], e);
71
58
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
72
59
  loading: false
73
60
  }));
74
61
  }
75
62
  }
76
-
77
63
  function* loadSubTenants({
78
64
  payload
79
65
  }) {
80
66
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
81
67
  loading: true
82
68
  }));
83
-
84
69
  try {
85
70
  var _payload$callback3;
86
-
87
71
  const subTenants = yield (0, _effects.call)(_restApi.api.tenants.getSubTenants);
88
72
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
89
73
  subTenants,
@@ -92,24 +76,20 @@ function* loadSubTenants({
92
76
  payload == null ? void 0 : (_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload, true);
93
77
  } catch (e) {
94
78
  var _payload$callback4;
95
-
96
79
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
97
80
  loading: false
98
81
  }));
99
82
  payload == null ? void 0 : (_payload$callback4 = payload.callback) == null ? void 0 : _payload$callback4.call(payload, null, e);
100
83
  }
101
84
  }
102
-
103
85
  function* loadSubTenantsTree({
104
86
  payload
105
87
  }) {
106
88
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
107
89
  loading: true
108
90
  }));
109
-
110
91
  try {
111
92
  var _payload$callback5;
112
-
113
93
  const tenantTree = yield (0, _effects.call)(_restApi.api.tenants.getSubTenantsAsTree);
114
94
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
115
95
  tenantTree,
@@ -118,25 +98,23 @@ function* loadSubTenantsTree({
118
98
  payload == null ? void 0 : (_payload$callback5 = payload.callback) == null ? void 0 : _payload$callback5.call(payload, true);
119
99
  } catch (e) {
120
100
  var _payload$callback6;
121
-
122
101
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
123
102
  loading: false
124
103
  }));
125
104
  payload == null ? void 0 : (_payload$callback6 = payload.callback) == null ? void 0 : _payload$callback6.call(payload, null, e);
126
105
  }
127
106
  }
128
-
129
107
  function* tenantsSagas() {
130
108
  yield (0, _effects.takeEvery)(_reducer.actions.loadTenants, loadTenants);
131
109
  yield (0, _effects.takeEvery)(_reducer.actions.loadSubTenants, loadSubTenants);
132
110
  yield (0, _effects.takeEvery)(_reducer.actions.switchTenant, switchTenant);
133
111
  yield (0, _effects.takeEvery)(_reducer.actions.loadSubTenantsTree, loadSubTenantsTree);
134
112
  }
113
+
135
114
  /*********************************
136
115
  * Preview Sagas
137
116
  *********************************/
138
117
 
139
-
140
118
  function* loadTenantsMock() {
141
119
  yield (0, _effects.put)(_reducer.actions.setTenantsState({
142
120
  loading: true
@@ -147,7 +125,6 @@ function* loadTenantsMock() {
147
125
  loading: false
148
126
  }));
149
127
  }
150
-
151
128
  function* tenantsSagasMock() {
152
129
  yield (0, _effects.takeEvery)(_reducer.actions.loadTenants, loadTenantsMock);
153
130
  }
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.usersDemo = exports.userTeamDemo2 = exports.userTeamDemo = exports.userSubTenantDemo = exports.userProfileDemo = exports.userDemo = exports.tenantsDemo = exports.ssoStateDemo = exports.sessionsMock = exports.sessionsConfigDummies = exports.samlMetadataDemo = exports.samlConfigurationDemo = exports.rolesDemo = exports.rolesAdminViewerDemo = exports.rolePermissionDemo = exports.roleDemo = exports.publicSecurityPolicy = exports.profileStateDemo = exports.policyPasswordHistoryDemo = exports.policyMfaDemo = exports.policyLockoutDemo = exports.policyDemo = exports.permissionsDemo = exports.dummyIps = exports.dummyIpConfig = exports.apiTokensDataTenantDemo = exports.apiTokensDataDemo = exports.allUsersDemo = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _restApi = require("@frontegg/rest-api");
13
-
14
10
  const apiTokensDataDemo = {
15
11
  clientId: 'CLIENT_ID_16806d3d-8fc3-4450-be97-abdaf66b723e',
16
12
  secret: 'SECRET_16806d3d-8fc3-4450-be97-abdaf66b723e',
@@ -245,7 +241,6 @@ const userTeamDemo2 = {
245
241
  mfaEnabled: undefined,
246
242
  roles: [rolesAdminViewerDemo[0]]
247
243
  }; // TODO add verified to ITeamUser
248
-
249
244
  exports.userTeamDemo2 = userTeamDemo2;
250
245
  const userTeamDemo = {
251
246
  id: 'id',
@@ -48,17 +48,11 @@ Object.defineProperty(exports, "authStoreName", {
48
48
  }
49
49
  });
50
50
  exports.default = void 0;
51
-
52
51
  var _reducer = require("./reducer");
53
-
54
52
  var _saga = require("./saga");
55
-
56
53
  var _constants = require("../constants");
57
-
58
54
  var _initialState = require("./initialState");
59
-
60
55
  var _interfaces = require("./interfaces");
61
-
62
56
  Object.keys(_interfaces).forEach(function (key) {
63
57
  if (key === "default" || key === "__esModule") return;
64
58
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -70,9 +64,7 @@ Object.keys(_interfaces).forEach(function (key) {
70
64
  }
71
65
  });
72
66
  });
73
-
74
67
  var _interfaces2 = require("./LoginState/interfaces");
75
-
76
68
  Object.keys(_interfaces2).forEach(function (key) {
77
69
  if (key === "default" || key === "__esModule") return;
78
70
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -84,9 +76,7 @@ Object.keys(_interfaces2).forEach(function (key) {
84
76
  }
85
77
  });
86
78
  });
87
-
88
79
  var _LoginState = require("./LoginState");
89
-
90
80
  Object.keys(_LoginState).forEach(function (key) {
91
81
  if (key === "default" || key === "__esModule") return;
92
82
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -98,9 +88,7 @@ Object.keys(_LoginState).forEach(function (key) {
98
88
  }
99
89
  });
100
90
  });
101
-
102
91
  var _interfaces3 = require("./ActivateState/interfaces");
103
-
104
92
  Object.keys(_interfaces3).forEach(function (key) {
105
93
  if (key === "default" || key === "__esModule") return;
106
94
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -112,9 +100,7 @@ Object.keys(_interfaces3).forEach(function (key) {
112
100
  }
113
101
  });
114
102
  });
115
-
116
103
  var _ActivateState = require("./ActivateState");
117
-
118
104
  Object.keys(_ActivateState).forEach(function (key) {
119
105
  if (key === "default" || key === "__esModule") return;
120
106
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -126,9 +112,7 @@ Object.keys(_ActivateState).forEach(function (key) {
126
112
  }
127
113
  });
128
114
  });
129
-
130
115
  var _interfaces4 = require("./ImpersonationState/interfaces");
131
-
132
116
  Object.keys(_interfaces4).forEach(function (key) {
133
117
  if (key === "default" || key === "__esModule") return;
134
118
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -140,9 +124,7 @@ Object.keys(_interfaces4).forEach(function (key) {
140
124
  }
141
125
  });
142
126
  });
143
-
144
127
  var _ImpersonationState = require("./ImpersonationState");
145
-
146
128
  Object.keys(_ImpersonationState).forEach(function (key) {
147
129
  if (key === "default" || key === "__esModule") return;
148
130
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -154,9 +136,7 @@ Object.keys(_ImpersonationState).forEach(function (key) {
154
136
  }
155
137
  });
156
138
  });
157
-
158
139
  var _interfaces5 = require("./AcceptInvitationState/interfaces");
159
-
160
140
  Object.keys(_interfaces5).forEach(function (key) {
161
141
  if (key === "default" || key === "__esModule") return;
162
142
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -168,9 +148,7 @@ Object.keys(_interfaces5).forEach(function (key) {
168
148
  }
169
149
  });
170
150
  });
171
-
172
151
  var _AcceptInvitationState = require("./AcceptInvitationState");
173
-
174
152
  Object.keys(_AcceptInvitationState).forEach(function (key) {
175
153
  if (key === "default" || key === "__esModule") return;
176
154
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -182,9 +160,7 @@ Object.keys(_AcceptInvitationState).forEach(function (key) {
182
160
  }
183
161
  });
184
162
  });
185
-
186
163
  var _interfaces6 = require("./ForgotPasswordState/interfaces");
187
-
188
164
  Object.keys(_interfaces6).forEach(function (key) {
189
165
  if (key === "default" || key === "__esModule") return;
190
166
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -196,9 +172,7 @@ Object.keys(_interfaces6).forEach(function (key) {
196
172
  }
197
173
  });
198
174
  });
199
-
200
175
  var _ForgotPasswordState = require("./ForgotPasswordState");
201
-
202
176
  Object.keys(_ForgotPasswordState).forEach(function (key) {
203
177
  if (key === "default" || key === "__esModule") return;
204
178
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -210,9 +184,7 @@ Object.keys(_ForgotPasswordState).forEach(function (key) {
210
184
  }
211
185
  });
212
186
  });
213
-
214
187
  var _interfaces7 = require("./ResetPhoneNumberState/interfaces");
215
-
216
188
  Object.keys(_interfaces7).forEach(function (key) {
217
189
  if (key === "default" || key === "__esModule") return;
218
190
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -224,9 +196,7 @@ Object.keys(_interfaces7).forEach(function (key) {
224
196
  }
225
197
  });
226
198
  });
227
-
228
199
  var _ResetPhoneNumberState = require("./ResetPhoneNumberState");
229
-
230
200
  Object.keys(_ResetPhoneNumberState).forEach(function (key) {
231
201
  if (key === "default" || key === "__esModule") return;
232
202
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -238,9 +208,7 @@ Object.keys(_ResetPhoneNumberState).forEach(function (key) {
238
208
  }
239
209
  });
240
210
  });
241
-
242
211
  var _interfaces8 = require("./SSOState/interfaces");
243
-
244
212
  Object.keys(_interfaces8).forEach(function (key) {
245
213
  if (key === "default" || key === "__esModule") return;
246
214
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -252,9 +220,7 @@ Object.keys(_interfaces8).forEach(function (key) {
252
220
  }
253
221
  });
254
222
  });
255
-
256
223
  var _SSOState = require("./SSOState");
257
-
258
224
  Object.keys(_SSOState).forEach(function (key) {
259
225
  if (key === "default" || key === "__esModule") return;
260
226
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -266,9 +232,7 @@ Object.keys(_SSOState).forEach(function (key) {
266
232
  }
267
233
  });
268
234
  });
269
-
270
235
  var _interfaces9 = require("./MfaState/interfaces");
271
-
272
236
  Object.keys(_interfaces9).forEach(function (key) {
273
237
  if (key === "default" || key === "__esModule") return;
274
238
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -280,9 +244,7 @@ Object.keys(_interfaces9).forEach(function (key) {
280
244
  }
281
245
  });
282
246
  });
283
-
284
247
  var _MfaState = require("./MfaState");
285
-
286
248
  Object.keys(_MfaState).forEach(function (key) {
287
249
  if (key === "default" || key === "__esModule") return;
288
250
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -294,9 +256,7 @@ Object.keys(_MfaState).forEach(function (key) {
294
256
  }
295
257
  });
296
258
  });
297
-
298
259
  var _interfaces10 = require("./ProfileState/interfaces");
299
-
300
260
  Object.keys(_interfaces10).forEach(function (key) {
301
261
  if (key === "default" || key === "__esModule") return;
302
262
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -308,9 +268,7 @@ Object.keys(_interfaces10).forEach(function (key) {
308
268
  }
309
269
  });
310
270
  });
311
-
312
271
  var _ProfileState = require("./ProfileState");
313
-
314
272
  Object.keys(_ProfileState).forEach(function (key) {
315
273
  if (key === "default" || key === "__esModule") return;
316
274
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -322,9 +280,7 @@ Object.keys(_ProfileState).forEach(function (key) {
322
280
  }
323
281
  });
324
282
  });
325
-
326
283
  var _interfaces11 = require("./TeamState/interfaces");
327
-
328
284
  Object.keys(_interfaces11).forEach(function (key) {
329
285
  if (key === "default" || key === "__esModule") return;
330
286
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -336,9 +292,7 @@ Object.keys(_interfaces11).forEach(function (key) {
336
292
  }
337
293
  });
338
294
  });
339
-
340
295
  var _TeamState = require("./TeamState");
341
-
342
296
  Object.keys(_TeamState).forEach(function (key) {
343
297
  if (key === "default" || key === "__esModule") return;
344
298
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -350,9 +304,7 @@ Object.keys(_TeamState).forEach(function (key) {
350
304
  }
351
305
  });
352
306
  });
353
-
354
307
  var _interfaces12 = require("./SocialLogins/interfaces");
355
-
356
308
  Object.keys(_interfaces12).forEach(function (key) {
357
309
  if (key === "default" || key === "__esModule") return;
358
310
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -364,9 +316,7 @@ Object.keys(_interfaces12).forEach(function (key) {
364
316
  }
365
317
  });
366
318
  });
367
-
368
319
  var _SocialLogins = require("./SocialLogins");
369
-
370
320
  Object.keys(_SocialLogins).forEach(function (key) {
371
321
  if (key === "default" || key === "__esModule") return;
372
322
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -378,9 +328,7 @@ Object.keys(_SocialLogins).forEach(function (key) {
378
328
  }
379
329
  });
380
330
  });
381
-
382
331
  var _interfaces13 = require("./SignUp/interfaces");
383
-
384
332
  Object.keys(_interfaces13).forEach(function (key) {
385
333
  if (key === "default" || key === "__esModule") return;
386
334
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -392,9 +340,7 @@ Object.keys(_interfaces13).forEach(function (key) {
392
340
  }
393
341
  });
394
342
  });
395
-
396
343
  var _SignUp = require("./SignUp");
397
-
398
344
  Object.keys(_SignUp).forEach(function (key) {
399
345
  if (key === "default" || key === "__esModule") return;
400
346
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -406,9 +352,7 @@ Object.keys(_SignUp).forEach(function (key) {
406
352
  }
407
353
  });
408
354
  });
409
-
410
355
  var _interfaces14 = require("./ApiTokensState/interfaces");
411
-
412
356
  Object.keys(_interfaces14).forEach(function (key) {
413
357
  if (key === "default" || key === "__esModule") return;
414
358
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -420,9 +364,7 @@ Object.keys(_interfaces14).forEach(function (key) {
420
364
  }
421
365
  });
422
366
  });
423
-
424
367
  var _ApiTokensState = require("./ApiTokensState");
425
-
426
368
  Object.keys(_ApiTokensState).forEach(function (key) {
427
369
  if (key === "default" || key === "__esModule") return;
428
370
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -434,9 +376,7 @@ Object.keys(_ApiTokensState).forEach(function (key) {
434
376
  }
435
377
  });
436
378
  });
437
-
438
379
  var _interfaces15 = require("./SecurityPolicyState/interfaces");
439
-
440
380
  Object.keys(_interfaces15).forEach(function (key) {
441
381
  if (key === "default" || key === "__esModule") return;
442
382
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -448,9 +388,7 @@ Object.keys(_interfaces15).forEach(function (key) {
448
388
  }
449
389
  });
450
390
  });
451
-
452
391
  var _SecurityPolicyState = require("./SecurityPolicyState");
453
-
454
392
  Object.keys(_SecurityPolicyState).forEach(function (key) {
455
393
  if (key === "default" || key === "__esModule") return;
456
394
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -462,9 +400,7 @@ Object.keys(_SecurityPolicyState).forEach(function (key) {
462
400
  }
463
401
  });
464
402
  });
465
-
466
403
  var _interfaces16 = require("./AccountSettingsState/interfaces");
467
-
468
404
  Object.keys(_interfaces16).forEach(function (key) {
469
405
  if (key === "default" || key === "__esModule") return;
470
406
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -476,9 +412,7 @@ Object.keys(_interfaces16).forEach(function (key) {
476
412
  }
477
413
  });
478
414
  });
479
-
480
415
  var _AccountSettingsState = require("./AccountSettingsState");
481
-
482
416
  Object.keys(_AccountSettingsState).forEach(function (key) {
483
417
  if (key === "default" || key === "__esModule") return;
484
418
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -490,9 +424,7 @@ Object.keys(_AccountSettingsState).forEach(function (key) {
490
424
  }
491
425
  });
492
426
  });
493
-
494
427
  var _interfaces17 = require("./TenantsState/interfaces");
495
-
496
428
  Object.keys(_interfaces17).forEach(function (key) {
497
429
  if (key === "default" || key === "__esModule") return;
498
430
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -504,9 +436,7 @@ Object.keys(_interfaces17).forEach(function (key) {
504
436
  }
505
437
  });
506
438
  });
507
-
508
439
  var _TenantsState = require("./TenantsState");
509
-
510
440
  Object.keys(_TenantsState).forEach(function (key) {
511
441
  if (key === "default" || key === "__esModule") return;
512
442
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -518,9 +448,7 @@ Object.keys(_TenantsState).forEach(function (key) {
518
448
  }
519
449
  });
520
450
  });
521
-
522
451
  var _interfaces18 = require("./RolesState/interfaces");
523
-
524
452
  Object.keys(_interfaces18).forEach(function (key) {
525
453
  if (key === "default" || key === "__esModule") return;
526
454
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -532,9 +460,7 @@ Object.keys(_interfaces18).forEach(function (key) {
532
460
  }
533
461
  });
534
462
  });
535
-
536
463
  var _RolesState = require("./RolesState");
537
-
538
464
  Object.keys(_RolesState).forEach(function (key) {
539
465
  if (key === "default" || key === "__esModule") return;
540
466
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -546,9 +472,7 @@ Object.keys(_RolesState).forEach(function (key) {
546
472
  }
547
473
  });
548
474
  });
549
-
550
475
  var _SessionsState = require("./SessionsState");
551
-
552
476
  Object.keys(_SessionsState).forEach(function (key) {
553
477
  if (key === "default" || key === "__esModule") return;
554
478
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -560,9 +484,7 @@ Object.keys(_SessionsState).forEach(function (key) {
560
484
  }
561
485
  });
562
486
  });
563
-
564
487
  var _interfaces19 = require("./SessionsState/interfaces");
565
-
566
488
  Object.keys(_interfaces19).forEach(function (key) {
567
489
  if (key === "default" || key === "__esModule") return;
568
490
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -574,9 +496,7 @@ Object.keys(_interfaces19).forEach(function (key) {
574
496
  }
575
497
  });
576
498
  });
577
-
578
499
  var _SessionsPolicyState = require("./SessionsPolicyState");
579
-
580
500
  Object.keys(_SessionsPolicyState).forEach(function (key) {
581
501
  if (key === "default" || key === "__esModule") return;
582
502
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -588,9 +508,7 @@ Object.keys(_SessionsPolicyState).forEach(function (key) {
588
508
  }
589
509
  });
590
510
  });
591
-
592
511
  var _interfaces20 = require("./SessionsPolicyState/interfaces");
593
-
594
512
  Object.keys(_interfaces20).forEach(function (key) {
595
513
  if (key === "default" || key === "__esModule") return;
596
514
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -602,9 +520,7 @@ Object.keys(_interfaces20).forEach(function (key) {
602
520
  }
603
521
  });
604
522
  });
605
-
606
523
  var _RestrictionsState = require("./RestrictionsState");
607
-
608
524
  Object.keys(_RestrictionsState).forEach(function (key) {
609
525
  if (key === "default" || key === "__esModule") return;
610
526
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -616,9 +532,7 @@ Object.keys(_RestrictionsState).forEach(function (key) {
616
532
  }
617
533
  });
618
534
  });
619
-
620
535
  var _interfaces21 = require("./RestrictionsState/interfaces");
621
-
622
536
  Object.keys(_interfaces21).forEach(function (key) {
623
537
  if (key === "default" || key === "__esModule") return;
624
538
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -630,9 +544,7 @@ Object.keys(_interfaces21).forEach(function (key) {
630
544
  }
631
545
  });
632
546
  });
633
-
634
547
  var _Provisioning = require("./Provisioning");
635
-
636
548
  Object.keys(_Provisioning).forEach(function (key) {
637
549
  if (key === "default" || key === "__esModule") return;
638
550
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -644,9 +556,7 @@ Object.keys(_Provisioning).forEach(function (key) {
644
556
  }
645
557
  });
646
558
  });
647
-
648
559
  var _interfaces22 = require("./Provisioning/interfaces");
649
-
650
560
  Object.keys(_interfaces22).forEach(function (key) {
651
561
  if (key === "default" || key === "__esModule") return;
652
562
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -1,54 +1,31 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.reinitializeState = exports.initialState = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _LoginState = require("./LoginState");
13
-
14
10
  var _ActivateState = require("./ActivateState");
15
-
16
11
  var _AcceptInvitationState = require("./AcceptInvitationState");
17
-
18
12
  var _ForgotPasswordState = require("./ForgotPasswordState");
19
-
20
13
  var _ResetPhoneNumberState = require("./ResetPhoneNumberState");
21
-
22
14
  var _SSOState = require("./SSOState");
23
-
24
15
  var _ProfileState = require("./ProfileState");
25
-
26
16
  var _MfaState = require("./MfaState");
27
-
28
17
  var _TeamState = require("./TeamState");
29
-
30
18
  var _SocialLogins = require("./SocialLogins");
31
-
32
19
  var _SignUp = require("./SignUp");
33
-
34
20
  var _ApiTokensState = require("./ApiTokensState");
35
-
36
21
  var _SecurityPolicyState = require("./SecurityPolicyState");
37
-
38
22
  var _AccountSettingsState = require("./AccountSettingsState");
39
-
40
23
  var _TenantsState = require("./TenantsState");
41
-
42
24
  var _RolesState = require("./RolesState");
43
-
44
25
  var _SessionsState = require("./SessionsState");
45
-
46
26
  var _SessionsPolicyState = require("./SessionsPolicyState");
47
-
48
27
  var _RestrictionsState = require("./RestrictionsState");
49
-
50
28
  var _Provisioning = require("./Provisioning");
51
-
52
29
  const reinitializeState = {
53
30
  isAuthenticated: false,
54
31
  isLoading: true,
@@ -6,24 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.UserVeirifedOriginTypes = exports.AuthenticationTypes = exports.AdminPortalPagesForEvents = exports.AdminPortalPages = void 0;
7
7
  let UserVeirifedOriginTypes;
8
8
  exports.UserVeirifedOriginTypes = UserVeirifedOriginTypes;
9
-
10
9
  (function (UserVeirifedOriginTypes) {
11
10
  UserVeirifedOriginTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
12
11
  UserVeirifedOriginTypes["PASSWORDLESS"] = "PASSWORDLESS";
13
12
  UserVeirifedOriginTypes["ACTIVATION_LINK"] = "ACTIVATION_LINK";
14
13
  })(UserVeirifedOriginTypes || (exports.UserVeirifedOriginTypes = UserVeirifedOriginTypes = {}));
15
-
16
14
  let AuthenticationTypes;
17
15
  exports.AuthenticationTypes = AuthenticationTypes;
18
-
19
16
  (function (AuthenticationTypes) {
20
17
  AuthenticationTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
21
18
  AuthenticationTypes["PASSWORD"] = "PASSWORD";
22
19
  })(AuthenticationTypes || (exports.AuthenticationTypes = AuthenticationTypes = {}));
23
-
24
20
  let AdminPortalPagesForEvents;
25
21
  exports.AdminPortalPagesForEvents = AdminPortalPagesForEvents;
26
-
27
22
  (function (AdminPortalPagesForEvents) {
28
23
  AdminPortalPagesForEvents["profile"] = "profile";
29
24
  AdminPortalPagesForEvents["privacy"] = "privacy";
@@ -38,7 +33,6 @@ exports.AdminPortalPagesForEvents = AdminPortalPagesForEvents;
38
33
  AdminPortalPagesForEvents["roles"] = "roles";
39
34
  AdminPortalPagesForEvents["subscriptions"] = "subscription";
40
35
  })(AdminPortalPagesForEvents || (exports.AdminPortalPagesForEvents = AdminPortalPagesForEvents = {}));
41
-
42
36
  const AdminPortalPages = {
43
37
  profile: AdminPortalPagesForEvents.profile,
44
38
  privacy: AdminPortalPagesForEvents.privacy,