@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.
- package/audits/AuditLogsState/index.js +1 -1
- package/audits/AuditLogsState/saga.js +1 -18
- package/audits/AuditsMetadataState/index.js +1 -1
- package/audits/AuditsMetadataState/saga.js +1 -5
- package/audits/backward-compatibility/saga.js +0 -18
- package/audits/dummy.js +0 -16
- package/audits/index.js +4 -2
- package/audits/reducer.js +0 -2
- package/auth/AcceptInvitationState/index.d.ts +2 -0
- package/auth/AcceptInvitationState/index.js +1 -1
- package/auth/AcceptInvitationState/interfaces.js +0 -1
- package/auth/AcceptInvitationState/saga.js +0 -3
- package/auth/AccountSettingsState/index.d.ts +2 -0
- package/auth/AccountSettingsState/index.js +1 -1
- package/auth/AccountSettingsState/interfaces.d.ts +2 -0
- package/auth/AccountSettingsState/saga.js +1 -11
- package/auth/ActivateState/index.d.ts +3 -0
- package/auth/ActivateState/index.js +1 -1
- package/auth/ActivateState/interfaces.js +0 -1
- package/auth/ActivateState/saga.js +14 -34
- package/auth/ApiTokensState/index.d.ts +2 -0
- package/auth/ApiTokensState/index.js +1 -1
- package/auth/ApiTokensState/interfaces.d.ts +1 -0
- package/auth/ApiTokensState/interfaces.js +0 -1
- package/auth/ApiTokensState/saga.js +1 -44
- package/auth/ForgotPasswordState/index.d.ts +2 -0
- package/auth/ForgotPasswordState/index.js +1 -1
- package/auth/ForgotPasswordState/interfaces.js +0 -1
- package/auth/ForgotPasswordState/saga.js +5 -12
- package/auth/ImpersonationState/index.d.ts +2 -0
- package/auth/ImpersonationState/index.js +1 -1
- package/auth/ImpersonationState/interfaces.js +0 -1
- package/auth/ImpersonationState/saga.js +5 -9
- package/auth/LoginState/index.d.ts +2 -0
- package/auth/LoginState/index.js +1 -1
- package/auth/LoginState/interfaces.js +0 -6
- package/auth/LoginState/saga.d.ts +2 -38
- package/auth/LoginState/saga.js +132 -292
- package/auth/MfaState/index.d.ts +4 -2
- package/auth/MfaState/index.js +1 -1
- package/auth/MfaState/interfaces.d.ts +2 -2
- package/auth/MfaState/interfaces.js +0 -1
- package/auth/MfaState/saga.js +64 -143
- package/auth/ProfileState/index.d.ts +2 -0
- package/auth/ProfileState/index.js +1 -1
- package/auth/ProfileState/saga.js +22 -50
- package/auth/Provisioning/index.d.ts +2 -0
- package/auth/Provisioning/index.js +1 -1
- package/auth/Provisioning/saga.js +11 -23
- package/auth/ResetPhoneNumberState/index.d.ts +2 -0
- package/auth/ResetPhoneNumberState/index.js +1 -1
- package/auth/ResetPhoneNumberState/interfaces.js +0 -1
- package/auth/ResetPhoneNumberState/saga.js +17 -26
- package/auth/RestrictionsState/index.d.ts +3 -0
- package/auth/RestrictionsState/index.js +1 -1
- package/auth/RestrictionsState/saga.js +52 -105
- package/auth/RolesState/index.d.ts +2 -0
- package/auth/RolesState/index.js +1 -1
- package/auth/RolesState/saga.js +30 -51
- package/auth/SSOState/index.d.ts +2 -0
- package/auth/SSOState/index.js +1 -1
- package/auth/SSOState/interfaces.js +0 -3
- package/auth/SSOState/saga.js +10 -58
- package/auth/SSOState/saga.v2.js +13 -49
- package/auth/SecurityPolicyState/index.d.ts +13 -0
- package/auth/SecurityPolicyState/index.js +1 -1
- package/auth/SecurityPolicyState/saga.js +36 -90
- package/auth/SessionsPolicyState/index.d.ts +2 -0
- package/auth/SessionsPolicyState/index.js +1 -1
- package/auth/SessionsPolicyState/saga.js +7 -19
- package/auth/SessionsState/index.d.ts +2 -0
- package/auth/SessionsState/index.js +1 -1
- package/auth/SessionsState/saga.js +1 -15
- package/auth/SignUp/index.d.ts +2 -0
- package/auth/SignUp/index.js +1 -1
- package/auth/SignUp/interfaces.js +0 -1
- package/auth/SignUp/saga.js +6 -15
- package/auth/SocialLogins/index.d.ts +2 -0
- package/auth/SocialLogins/index.js +1 -1
- package/auth/SocialLogins/saga.js +10 -20
- package/auth/TeamState/index.d.ts +2 -0
- package/auth/TeamState/index.js +1 -1
- package/auth/TeamState/interfaces.js +0 -1
- package/auth/TeamState/saga.js +85 -205
- package/auth/TenantsState/index.d.ts +2 -0
- package/auth/TenantsState/index.js +1 -1
- package/auth/TenantsState/saga.js +1 -17
- package/auth/index.d.ts +2 -2
- package/auth/index.js +4 -3
- package/auth/interfaces.d.ts +2 -1
- package/auth/interfaces.js +0 -6
- package/auth/reducer.d.ts +2 -2
- package/auth/reducer.js +0 -2
- package/auth/saga.js +2 -1
- package/auth/utils.d.ts +4 -0
- package/auth/utils.js +7 -21
- package/connectivity/ConnectivityState/index.d.ts +9 -0
- package/connectivity/ConnectivityState/index.js +1 -1
- package/connectivity/consts.js +0 -5
- package/connectivity/index.js +4 -2
- package/connectivity/interfaces.d.ts +1 -0
- package/connectivity/reducer.js +0 -2
- package/connectivity/saga.js +48 -85
- package/helpers.js +4 -7
- package/index.js +1 -1
- package/node/audits/AuditLogsState/index.js +1 -8
- package/node/audits/AuditLogsState/saga.js +1 -26
- package/node/audits/AuditsMetadataState/index.js +1 -8
- package/node/audits/AuditsMetadataState/saga.js +1 -10
- package/node/audits/backward-compatibility/index.js +0 -8
- package/node/audits/backward-compatibility/reducer.js +0 -5
- package/node/audits/backward-compatibility/saga.js +0 -23
- package/node/audits/dummy.js +0 -19
- package/node/audits/index.js +0 -14
- package/node/audits/initialState.js +0 -3
- package/node/audits/reducer.js +0 -8
- package/node/audits/saga.js +0 -5
- package/node/audits/utils.js +0 -4
- package/node/auth/AcceptInvitationState/index.js +1 -7
- package/node/auth/AcceptInvitationState/interfaces.js +0 -1
- package/node/auth/AcceptInvitationState/saga.js +0 -7
- package/node/auth/AccountSettingsState/index.js +1 -6
- package/node/auth/AccountSettingsState/saga.js +1 -16
- package/node/auth/ActivateState/index.js +1 -7
- package/node/auth/ActivateState/interfaces.js +0 -1
- package/node/auth/ActivateState/saga.js +14 -41
- package/node/auth/ApiTokensState/index.js +1 -6
- package/node/auth/ApiTokensState/interfaces.js +0 -1
- package/node/auth/ApiTokensState/saga.js +1 -51
- package/node/auth/ForgotPasswordState/index.js +1 -7
- package/node/auth/ForgotPasswordState/interfaces.js +0 -1
- package/node/auth/ForgotPasswordState/saga.js +5 -19
- package/node/auth/ImpersonationState/index.js +1 -7
- package/node/auth/ImpersonationState/interfaces.js +0 -1
- package/node/auth/ImpersonationState/saga.js +5 -15
- package/node/auth/LoginState/index.js +1 -7
- package/node/auth/LoginState/interfaces.js +0 -7
- package/node/auth/LoginState/saga.js +132 -322
- package/node/auth/MfaState/index.js +1 -7
- package/node/auth/MfaState/interfaces.js +0 -1
- package/node/auth/MfaState/saga.js +64 -137
- package/node/auth/ProfileState/index.js +1 -6
- package/node/auth/ProfileState/saga.js +22 -58
- package/node/auth/Provisioning/index.js +1 -6
- package/node/auth/Provisioning/saga.js +11 -28
- package/node/auth/ResetPhoneNumberState/index.js +1 -7
- package/node/auth/ResetPhoneNumberState/interfaces.js +0 -1
- package/node/auth/ResetPhoneNumberState/saga.js +17 -32
- package/node/auth/RestrictionsState/index.js +1 -7
- package/node/auth/RestrictionsState/saga.js +52 -109
- package/node/auth/RolesState/index.js +1 -6
- package/node/auth/RolesState/saga.js +30 -54
- package/node/auth/SSOState/index.js +1 -6
- package/node/auth/SSOState/interfaces.js +0 -3
- package/node/auth/SSOState/saga.js +10 -63
- package/node/auth/SSOState/saga.v2.js +13 -53
- package/node/auth/SecurityPolicyState/index.js +1 -6
- package/node/auth/SecurityPolicyState/saga.js +36 -89
- package/node/auth/SessionsPolicyState/index.js +1 -6
- package/node/auth/SessionsPolicyState/saga.js +7 -24
- package/node/auth/SessionsState/index.js +1 -6
- package/node/auth/SessionsState/saga.js +1 -22
- package/node/auth/SignUp/index.js +1 -7
- package/node/auth/SignUp/interfaces.js +0 -1
- package/node/auth/SignUp/saga.js +6 -30
- package/node/auth/SocialLogins/index.js +1 -6
- package/node/auth/SocialLogins/saga.js +10 -33
- package/node/auth/TeamState/index.js +1 -6
- package/node/auth/TeamState/interfaces.js +0 -1
- package/node/auth/TeamState/saga.js +86 -190
- package/node/auth/TenantsState/index.js +1 -6
- package/node/auth/TenantsState/saga.js +1 -24
- package/node/auth/dummy.js +0 -5
- package/node/auth/index.js +0 -90
- package/node/auth/initialState.js +0 -23
- package/node/auth/interfaces.js +0 -6
- package/node/auth/reducer.js +0 -28
- package/node/auth/saga.js +2 -26
- package/node/auth/utils.js +7 -42
- package/node/connectivity/ConnectivityState/index.js +1 -7
- package/node/connectivity/consts.js +1 -7
- package/node/connectivity/index.js +0 -5
- package/node/connectivity/reducer.js +0 -6
- package/node/connectivity/saga.js +47 -91
- package/node/helpers.js +2 -14
- package/node/index.js +1 -17
- package/node/subscriptions/Billing/Information/index.js +0 -7
- package/node/subscriptions/Billing/Information/saga.js +1 -25
- package/node/subscriptions/Billing/Invoices/index.js +0 -6
- package/node/subscriptions/Billing/Invoices/saga.js +1 -13
- package/node/subscriptions/Billing/PaymentMethod/index.js +2 -8
- package/node/subscriptions/Billing/PaymentMethod/interfaces.js +0 -1
- package/node/subscriptions/Billing/PaymentMethod/saga.js +1 -17
- package/node/subscriptions/Billing/Subscription/index.js +0 -6
- package/node/subscriptions/Billing/Subscription/saga.js +3 -23
- package/node/subscriptions/Billing/index.js +0 -6
- package/node/subscriptions/Billing/interfaces.js +0 -8
- package/node/subscriptions/Billing/saga.js +0 -7
- package/node/subscriptions/Checkout/index.js +0 -6
- package/node/subscriptions/Checkout/saga.js +2 -22
- package/node/subscriptions/Config/index.js +0 -6
- package/node/subscriptions/Config/saga.js +1 -12
- package/node/subscriptions/Plans/index.js +0 -6
- package/node/subscriptions/Plans/saga.js +1 -13
- package/node/subscriptions/Stripe/index.js +0 -6
- package/node/subscriptions/Stripe/saga.js +0 -8
- package/node/subscriptions/VendorPublicConfig/index.js +0 -6
- package/node/subscriptions/VendorPublicConfig/saga.js +1 -9
- package/node/subscriptions/dummy.js +2 -4
- package/node/subscriptions/general.interfaces.js +0 -5
- package/node/subscriptions/index.js +0 -5
- package/node/subscriptions/interfaces.js +0 -14
- package/node/subscriptions/mapper.js +0 -11
- package/node/subscriptions/reducer.js +0 -9
- package/node/subscriptions/saga.js +0 -9
- package/node/subscriptions/utils.js +0 -6
- package/node/toolkit/index.js +0 -31
- package/node/toolkit/redux-saga.js +0 -3
- package/node/toolkit/redux.js +0 -1
- package/node/vendor/VendorState/index.js +1 -7
- package/node/vendor/index.js +0 -5
- package/node/vendor/reducer.js +0 -6
- package/node/vendor/saga.js +1 -9
- package/package.json +1 -1
- package/subscriptions/Billing/Information/index.js +0 -4
- package/subscriptions/Billing/Information/saga.js +1 -12
- package/subscriptions/Billing/Invoices/index.js +0 -4
- package/subscriptions/Billing/Invoices/saga.js +1 -5
- package/subscriptions/Billing/PaymentMethod/index.js +2 -6
- package/subscriptions/Billing/PaymentMethod/interfaces.js +1 -1
- package/subscriptions/Billing/PaymentMethod/saga.js +1 -9
- package/subscriptions/Billing/Subscription/index.js +0 -4
- package/subscriptions/Billing/Subscription/saga.js +3 -17
- package/subscriptions/Billing/interfaces.js +1 -0
- package/subscriptions/Checkout/index.js +0 -4
- package/subscriptions/Checkout/saga.js +2 -12
- package/subscriptions/Config/index.js +0 -4
- package/subscriptions/Config/saga.js +1 -7
- package/subscriptions/Plans/index.js +0 -2
- package/subscriptions/Plans/saga.js +1 -6
- package/subscriptions/Stripe/index.js +0 -4
- package/subscriptions/Stripe/saga.js +0 -4
- package/subscriptions/VendorPublicConfig/index.js +0 -2
- package/subscriptions/VendorPublicConfig/saga.js +1 -4
- package/subscriptions/dummy.js +3 -2
- package/subscriptions/general.interfaces.js +0 -5
- package/subscriptions/index.js +3 -1
- package/subscriptions/mapper.js +0 -5
- package/toolkit/index.d.ts +1 -1
- package/toolkit/index.js +0 -9
- package/vendor/VendorState/index.js +1 -0
- package/vendor/index.js +4 -2
- package/vendor/reducer.js +0 -2
- package/vendor/saga.js +1 -2
|
@@ -20,6 +20,7 @@ declare const reducers: {
|
|
|
20
20
|
user?: import("..").User | null | undefined;
|
|
21
21
|
isSSOAuth: boolean;
|
|
22
22
|
ssoACS?: string | undefined;
|
|
23
|
+
includeQueryParam?: boolean | undefined;
|
|
23
24
|
loginState: import("..").LoginState;
|
|
24
25
|
activateState: import("..").ActivateAccountState;
|
|
25
26
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
@@ -58,6 +59,7 @@ declare const reducers: {
|
|
|
58
59
|
user?: import("..").User | null | undefined;
|
|
59
60
|
isSSOAuth: boolean;
|
|
60
61
|
ssoACS?: string | undefined;
|
|
62
|
+
includeQueryParam?: boolean | undefined;
|
|
61
63
|
loginState: import("..").LoginState;
|
|
62
64
|
activateState: import("..").ActivateAccountState;
|
|
63
65
|
acceptInvitationState: import("..").AcceptInvitationState;
|
|
@@ -27,13 +27,13 @@ const actions = {
|
|
|
27
27
|
payload
|
|
28
28
|
}))
|
|
29
29
|
};
|
|
30
|
+
|
|
30
31
|
/**
|
|
31
32
|
* To be used for actions types after dispatch, and should contains
|
|
32
33
|
* the reducers and actions as standalone function
|
|
33
34
|
*/
|
|
34
35
|
|
|
35
36
|
// noinspection JSUnusedLocalSymbols
|
|
36
|
-
|
|
37
37
|
/**
|
|
38
38
|
* if you see error in matcher that's mean the DispatchAction does not
|
|
39
39
|
* contains the same functions in reducers and actions
|
|
@@ -4,7 +4,6 @@ import { actions } from '../reducer';
|
|
|
4
4
|
import { delay } from '../utils';
|
|
5
5
|
import { tenantsDemo } from '../dummy';
|
|
6
6
|
import { refreshToken } from '../LoginState/saga';
|
|
7
|
-
|
|
8
7
|
function* switchTenant({
|
|
9
8
|
payload: {
|
|
10
9
|
tenantId,
|
|
@@ -14,14 +13,12 @@ function* switchTenant({
|
|
|
14
13
|
yield put(actions.setState({
|
|
15
14
|
isLoading: true
|
|
16
15
|
}));
|
|
17
|
-
|
|
18
16
|
try {
|
|
19
17
|
yield call(api.tenants.switchTenant, {
|
|
20
18
|
tenantId
|
|
21
19
|
});
|
|
22
20
|
yield call(refreshToken);
|
|
23
21
|
const callbackConsumed = callback == null ? void 0 : callback(true);
|
|
24
|
-
|
|
25
22
|
if (!callbackConsumed) {
|
|
26
23
|
yield put(actions.setState({
|
|
27
24
|
isLoading: false
|
|
@@ -34,17 +31,14 @@ function* switchTenant({
|
|
|
34
31
|
callback == null ? void 0 : callback(false, e);
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
|
-
|
|
38
34
|
function* loadTenants({
|
|
39
35
|
payload
|
|
40
36
|
}) {
|
|
41
37
|
yield put(actions.setTenantsState({
|
|
42
38
|
loading: true
|
|
43
39
|
}));
|
|
44
|
-
|
|
45
40
|
try {
|
|
46
41
|
var _payload$callback;
|
|
47
|
-
|
|
48
42
|
const tenants = yield call(api.tenants.getTenants);
|
|
49
43
|
yield put(actions.setTenantsState({
|
|
50
44
|
tenants,
|
|
@@ -53,24 +47,20 @@ function* loadTenants({
|
|
|
53
47
|
payload == null ? void 0 : (_payload$callback = payload.callback) == null ? void 0 : _payload$callback.call(payload, []);
|
|
54
48
|
} catch (e) {
|
|
55
49
|
var _payload$callback2;
|
|
56
|
-
|
|
57
50
|
payload == null ? void 0 : (_payload$callback2 = payload.callback) == null ? void 0 : _payload$callback2.call(payload, [], e);
|
|
58
51
|
yield put(actions.setTenantsState({
|
|
59
52
|
loading: false
|
|
60
53
|
}));
|
|
61
54
|
}
|
|
62
55
|
}
|
|
63
|
-
|
|
64
56
|
function* loadSubTenants({
|
|
65
57
|
payload
|
|
66
58
|
}) {
|
|
67
59
|
yield put(actions.setTenantsState({
|
|
68
60
|
loading: true
|
|
69
61
|
}));
|
|
70
|
-
|
|
71
62
|
try {
|
|
72
63
|
var _payload$callback3;
|
|
73
|
-
|
|
74
64
|
const subTenants = yield call(api.tenants.getSubTenants);
|
|
75
65
|
yield put(actions.setTenantsState({
|
|
76
66
|
subTenants,
|
|
@@ -79,24 +69,20 @@ function* loadSubTenants({
|
|
|
79
69
|
payload == null ? void 0 : (_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload, true);
|
|
80
70
|
} catch (e) {
|
|
81
71
|
var _payload$callback4;
|
|
82
|
-
|
|
83
72
|
yield put(actions.setTenantsState({
|
|
84
73
|
loading: false
|
|
85
74
|
}));
|
|
86
75
|
payload == null ? void 0 : (_payload$callback4 = payload.callback) == null ? void 0 : _payload$callback4.call(payload, null, e);
|
|
87
76
|
}
|
|
88
77
|
}
|
|
89
|
-
|
|
90
78
|
function* loadSubTenantsTree({
|
|
91
79
|
payload
|
|
92
80
|
}) {
|
|
93
81
|
yield put(actions.setTenantsState({
|
|
94
82
|
loading: true
|
|
95
83
|
}));
|
|
96
|
-
|
|
97
84
|
try {
|
|
98
85
|
var _payload$callback5;
|
|
99
|
-
|
|
100
86
|
const tenantTree = yield call(api.tenants.getSubTenantsAsTree);
|
|
101
87
|
yield put(actions.setTenantsState({
|
|
102
88
|
tenantTree,
|
|
@@ -105,20 +91,19 @@ function* loadSubTenantsTree({
|
|
|
105
91
|
payload == null ? void 0 : (_payload$callback5 = payload.callback) == null ? void 0 : _payload$callback5.call(payload, true);
|
|
106
92
|
} catch (e) {
|
|
107
93
|
var _payload$callback6;
|
|
108
|
-
|
|
109
94
|
yield put(actions.setTenantsState({
|
|
110
95
|
loading: false
|
|
111
96
|
}));
|
|
112
97
|
payload == null ? void 0 : (_payload$callback6 = payload.callback) == null ? void 0 : _payload$callback6.call(payload, null, e);
|
|
113
98
|
}
|
|
114
99
|
}
|
|
115
|
-
|
|
116
100
|
export function* tenantsSagas() {
|
|
117
101
|
yield takeEvery(actions.loadTenants, loadTenants);
|
|
118
102
|
yield takeEvery(actions.loadSubTenants, loadSubTenants);
|
|
119
103
|
yield takeEvery(actions.switchTenant, switchTenant);
|
|
120
104
|
yield takeEvery(actions.loadSubTenantsTree, loadSubTenantsTree);
|
|
121
105
|
}
|
|
106
|
+
|
|
122
107
|
/*********************************
|
|
123
108
|
* Preview Sagas
|
|
124
109
|
*********************************/
|
|
@@ -133,7 +118,6 @@ function* loadTenantsMock() {
|
|
|
133
118
|
loading: false
|
|
134
119
|
}));
|
|
135
120
|
}
|
|
136
|
-
|
|
137
121
|
export function* tenantsSagasMock() {
|
|
138
122
|
yield takeEvery(actions.loadTenants, loadTenantsMock);
|
|
139
123
|
}
|
package/auth/index.d.ts
CHANGED
|
@@ -221,8 +221,8 @@ declare const _default: {
|
|
|
221
221
|
deviceId: string;
|
|
222
222
|
}, boolean>, string, never, never>;
|
|
223
223
|
disableMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import("./LoginState/interfaces").WithDeviceId<import("@frontegg/rest-api").IDisableMFASMS>, boolean>], import("..").WithCallback<import("./LoginState/interfaces").WithDeviceId<import("@frontegg/rest-api").IDisableMFASMS>, boolean>, string, never, never>;
|
|
224
|
-
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "
|
|
225
|
-
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "
|
|
224
|
+
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>, string, never, never>;
|
|
225
|
+
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>, string, never, never>;
|
|
226
226
|
preEnrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
227
227
|
callback?: ((data: import("./LoginState/interfaces").IPreEnrollMFAWebAuthNForLoginResponse | null, error?: string | undefined) => void) | undefined;
|
|
228
228
|
}], {
|
package/auth/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { reducer, actions } from './reducer';
|
|
2
2
|
import { mockSagas, sagas } from './saga';
|
|
3
3
|
import { authStoreName as storeName } from '../constants';
|
|
4
|
-
import { initialState } from './initialState';
|
|
4
|
+
import { initialState } from './initialState';
|
|
5
5
|
|
|
6
|
+
// export types
|
|
6
7
|
export * from './interfaces';
|
|
7
8
|
export * from './LoginState/interfaces';
|
|
8
9
|
export * from './LoginState';
|
|
@@ -46,8 +47,8 @@ export * from './RestrictionsState';
|
|
|
46
47
|
export * from './RestrictionsState/interfaces';
|
|
47
48
|
export * from './Provisioning';
|
|
48
49
|
export * from './Provisioning/interfaces';
|
|
49
|
-
export { sagas as authSagas, mockSagas as authMockSagas, reducer as authReducers, actions as authActions, initialState as authInitialState, storeName as authStoreName };
|
|
50
|
-
|
|
50
|
+
export { sagas as authSagas, mockSagas as authMockSagas, reducer as authReducers, actions as authActions, initialState as authInitialState, storeName as authStoreName };
|
|
51
|
+
// export store
|
|
51
52
|
export default {
|
|
52
53
|
sagas,
|
|
53
54
|
mockSagas,
|
package/auth/interfaces.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface AuthState extends Routes, PluginOptions {
|
|
|
44
44
|
user?: User | null;
|
|
45
45
|
isSSOAuth: boolean;
|
|
46
46
|
ssoACS?: string;
|
|
47
|
+
includeQueryParam?: boolean;
|
|
47
48
|
loginState: LoginState;
|
|
48
49
|
activateState: ActivateAccountState;
|
|
49
50
|
acceptInvitationState: AcceptInvitationState;
|
|
@@ -71,7 +72,7 @@ export interface AuthState extends Routes, PluginOptions {
|
|
|
71
72
|
export declare type AuthPageRoutes = {
|
|
72
73
|
/**
|
|
73
74
|
* the page whither need to redirect in the case when a user is authenticated
|
|
74
|
-
* @default: url before redirect to
|
|
75
|
+
* @default: url before redirect to log in or '/'
|
|
75
76
|
*/
|
|
76
77
|
authenticatedUrl: string;
|
|
77
78
|
/**
|
package/auth/interfaces.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
export let UserVeirifedOriginTypes;
|
|
2
|
-
|
|
3
2
|
(function (UserVeirifedOriginTypes) {
|
|
4
3
|
UserVeirifedOriginTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
|
|
5
4
|
UserVeirifedOriginTypes["PASSWORDLESS"] = "PASSWORDLESS";
|
|
6
5
|
UserVeirifedOriginTypes["ACTIVATION_LINK"] = "ACTIVATION_LINK";
|
|
7
6
|
})(UserVeirifedOriginTypes || (UserVeirifedOriginTypes = {}));
|
|
8
|
-
|
|
9
7
|
export let AuthenticationTypes;
|
|
10
|
-
|
|
11
8
|
(function (AuthenticationTypes) {
|
|
12
9
|
AuthenticationTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
|
|
13
10
|
AuthenticationTypes["PASSWORD"] = "PASSWORD";
|
|
14
11
|
})(AuthenticationTypes || (AuthenticationTypes = {}));
|
|
15
|
-
|
|
16
12
|
export let AdminPortalPagesForEvents;
|
|
17
|
-
|
|
18
13
|
(function (AdminPortalPagesForEvents) {
|
|
19
14
|
AdminPortalPagesForEvents["profile"] = "profile";
|
|
20
15
|
AdminPortalPagesForEvents["privacy"] = "privacy";
|
|
@@ -29,7 +24,6 @@ export let AdminPortalPagesForEvents;
|
|
|
29
24
|
AdminPortalPagesForEvents["roles"] = "roles";
|
|
30
25
|
AdminPortalPagesForEvents["subscriptions"] = "subscription";
|
|
31
26
|
})(AdminPortalPagesForEvents || (AdminPortalPagesForEvents = {}));
|
|
32
|
-
|
|
33
27
|
export const AdminPortalPages = {
|
|
34
28
|
profile: AdminPortalPagesForEvents.profile,
|
|
35
29
|
privacy: AdminPortalPagesForEvents.privacy,
|
package/auth/reducer.d.ts
CHANGED
|
@@ -188,8 +188,8 @@ declare const actions: {
|
|
|
188
188
|
deviceId: string;
|
|
189
189
|
}, boolean>, string, never, never>;
|
|
190
190
|
disableMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<import(".").WithDeviceId<import("@frontegg/rest-api").IDisableMFASMS>, boolean>], import("..").WithCallback<import(".").WithDeviceId<import("@frontegg/rest-api").IDisableMFASMS>, boolean>, string, never, never>;
|
|
191
|
-
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "
|
|
192
|
-
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "
|
|
191
|
+
preEnrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IPreEnrollMFASMS, "phoneNumber">, boolean>, string, never, never>;
|
|
192
|
+
enrollMfaSms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>], import("..").WithCallback<Pick<import("@frontegg/rest-api").IEnrollMFASMS, "otcToken" | "code">, string | undefined>, string, never, never>;
|
|
193
193
|
preEnrollMfaWebAuthn: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[{
|
|
194
194
|
callback?: ((data: import(".").IPreEnrollMFAWebAuthNForLoginResponse | null, error?: string | undefined) => void) | undefined;
|
|
195
195
|
}], {
|
package/auth/reducer.js
CHANGED
|
@@ -38,7 +38,5 @@ const {
|
|
|
38
38
|
setUser: typeReducer('user')
|
|
39
39
|
}, loginReducers, socialLoginsReducer, activateAccountReducers, impersonateReducers, acceptInvitationReducers, forgotPasswordReducers, resetPhoneNumberReducers, signUpReducers, profileReducers, ssoReducers, mfaReducers, teamReducers, apiTokensReducers, securityPolicyReducers, accountSettingsReducers, tenantsReducers, rolesReducers, sessionsReducers, sessionsPolicyReducers, restrictionsReducers, provisioningReducers)
|
|
40
40
|
});
|
|
41
|
-
|
|
42
41
|
const actions = _extends({}, sliceActions, loginActions, socialLoginsActions, activateAccountActions, acceptInvitationActions, forgotPasswordActions, resetPhoneNumberActions, signUpActions, profileActions, ssoActions, mfaActions, teamActions, apiTokensActions, securityPolicyActions, accountSettingsActions, tenantsActions, rolesActions, sessionsActions, sessionsPolicyActions, restrictionsActions, provisioningActions, impersonateActions);
|
|
43
|
-
|
|
44
42
|
export { reducer, actions };
|
package/auth/saga.js
CHANGED
|
@@ -25,7 +25,8 @@ export function* sagas() {
|
|
|
25
25
|
yield all([call(loginSagas), call(activateSagas), call(acceptInvitationSagas), call(forgotPasswordSagas), call(resetPhoneNumberSagas), call(ssoSagas), call(ssoSagasV2), call(profileSagas), call(mfaSagas), call(teamSagas), call(socialLoginsSaga), call(signUpSaga), call(apiTokensSaga), call(securityPolicySagas), call(accountSettingsSaga), call(tenantsSagas), call(rolesSagas), call(sessionsSaga), call(sessionsPolicySaga), call(restrictionsSagas), call(provisionSagas), call(impersonateSagas)]);
|
|
26
26
|
}
|
|
27
27
|
export function* mockSagas() {
|
|
28
|
-
yield all([call(loginSagasMock),
|
|
28
|
+
yield all([call(loginSagasMock),
|
|
29
|
+
// call(activateSagas),
|
|
29
30
|
// call(acceptInvitationSagas),
|
|
30
31
|
// call(forgotPasswordSagas),
|
|
31
32
|
// call(socialLoginsSaga),
|
package/auth/utils.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const resetStateByKey: <T>(key: keyof AuthState, initialState: Pa
|
|
|
10
10
|
user?: import("./interfaces").User | null | undefined;
|
|
11
11
|
isSSOAuth: boolean;
|
|
12
12
|
ssoACS?: string | undefined;
|
|
13
|
+
includeQueryParam?: boolean | undefined;
|
|
13
14
|
loginState: import(".").LoginState;
|
|
14
15
|
activateState: import(".").ActivateAccountState;
|
|
15
16
|
acceptInvitationState: import(".").AcceptInvitationState;
|
|
@@ -50,6 +51,7 @@ export declare const typeReducer: <T>(key: keyof AuthState) => (state: AuthState
|
|
|
50
51
|
user?: import("./interfaces").User | null | undefined;
|
|
51
52
|
isSSOAuth: boolean;
|
|
52
53
|
ssoACS?: string | undefined;
|
|
54
|
+
includeQueryParam?: boolean | undefined;
|
|
53
55
|
loginState: import(".").LoginState;
|
|
54
56
|
activateState: import(".").ActivateAccountState;
|
|
55
57
|
acceptInvitationState: import(".").AcceptInvitationState;
|
|
@@ -94,6 +96,7 @@ export declare const typeReducerForKey: <T>(key: keyof AuthState) => {
|
|
|
94
96
|
user?: import("./interfaces").User | null | undefined;
|
|
95
97
|
isSSOAuth: boolean;
|
|
96
98
|
ssoACS?: string | undefined;
|
|
99
|
+
includeQueryParam?: boolean | undefined;
|
|
97
100
|
loginState: import(".").LoginState;
|
|
98
101
|
activateState: import(".").ActivateAccountState;
|
|
99
102
|
acceptInvitationState: import(".").AcceptInvitationState;
|
|
@@ -139,6 +142,7 @@ export declare const typeReducerNestedKey: <T, K>(key: keyof AuthState, nestedKe
|
|
|
139
142
|
user?: import("./interfaces").User | null | undefined;
|
|
140
143
|
isSSOAuth: boolean;
|
|
141
144
|
ssoACS?: string | undefined;
|
|
145
|
+
includeQueryParam?: boolean | undefined;
|
|
142
146
|
loginState: import(".").LoginState;
|
|
143
147
|
activateState: import(".").ActivateAccountState;
|
|
144
148
|
acceptInvitationState: import(".").AcceptInvitationState;
|
package/auth/utils.js
CHANGED
|
@@ -27,7 +27,6 @@ export const typeReducerNestedKey = (key, nestedKey) => ({
|
|
|
27
27
|
payload
|
|
28
28
|
}) => {
|
|
29
29
|
var _state$key;
|
|
30
|
-
|
|
31
30
|
return _extends({}, state, {
|
|
32
31
|
[key]: _extends({}, state[key], {
|
|
33
32
|
[nestedKey]: _extends({}, state == null ? void 0 : (_state$key = state[key]) == null ? void 0 : _state$key[nestedKey], payload)
|
|
@@ -43,7 +42,6 @@ export const loadersReducerForKey = key => ({
|
|
|
43
42
|
payload
|
|
44
43
|
}) => {
|
|
45
44
|
var _payload$value;
|
|
46
|
-
|
|
47
45
|
return _extends({}, state, {
|
|
48
46
|
[key]: _extends({}, state[key], {
|
|
49
47
|
loaders: _extends({}, state[key].loaders, {
|
|
@@ -61,7 +59,6 @@ export const errorsReducerForKey = key => ({
|
|
|
61
59
|
payload
|
|
62
60
|
}) => {
|
|
63
61
|
var _payload$value2;
|
|
64
|
-
|
|
65
62
|
return _extends({}, state, {
|
|
66
63
|
[key]: _extends({}, state[key], {
|
|
67
64
|
errors: _extends({}, state[key].errors, {
|
|
@@ -74,44 +71,39 @@ export const errorsReducerForKey = key => ({
|
|
|
74
71
|
export const delay = (delayTime = 500) => new Promise(resolve => setTimeout(resolve, delayTime));
|
|
75
72
|
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
|
|
76
73
|
const lookup = new Uint8Array(256);
|
|
77
|
-
|
|
78
74
|
for (let i = 0; i < chars.length; i++) {
|
|
79
75
|
lookup[chars.charCodeAt(i)] = i;
|
|
80
|
-
}
|
|
81
|
-
|
|
76
|
+
}
|
|
82
77
|
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
83
79
|
export const base64urlEncode = arraybuffer => {
|
|
84
80
|
const bytes = new Uint8Array(arraybuffer);
|
|
85
81
|
const len = bytes.length;
|
|
86
82
|
let i;
|
|
87
83
|
let base64url = '';
|
|
88
|
-
|
|
89
84
|
for (i = 0; i < len; i += 3) {
|
|
90
85
|
base64url += chars[bytes[i] >> 2];
|
|
91
86
|
base64url += chars[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4];
|
|
92
87
|
base64url += chars[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6];
|
|
93
88
|
base64url += chars[bytes[i + 2] & 63];
|
|
94
89
|
}
|
|
95
|
-
|
|
96
90
|
if (len % 3 === 2) {
|
|
97
91
|
base64url = base64url.substring(0, base64url.length - 1);
|
|
98
92
|
} else if (len % 3 === 1) {
|
|
99
93
|
base64url = base64url.substring(0, base64url.length - 2);
|
|
100
94
|
}
|
|
101
|
-
|
|
102
95
|
return base64url;
|
|
103
96
|
};
|
|
104
97
|
export const base64urlDecode = base64string => {
|
|
105
98
|
const bufferLength = base64string.length * 0.75;
|
|
106
99
|
const len = base64string.length;
|
|
107
100
|
let i,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
101
|
+
p = 0,
|
|
102
|
+
encoded1,
|
|
103
|
+
encoded2,
|
|
104
|
+
encoded3,
|
|
105
|
+
encoded4;
|
|
113
106
|
const bytes = new Uint8Array(bufferLength);
|
|
114
|
-
|
|
115
107
|
for (i = 0; i < len; i += 4) {
|
|
116
108
|
encoded1 = lookup[base64string.charCodeAt(i)];
|
|
117
109
|
encoded2 = lookup[base64string.charCodeAt(i + 1)];
|
|
@@ -121,30 +113,24 @@ export const base64urlDecode = base64string => {
|
|
|
121
113
|
bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;
|
|
122
114
|
bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
123
115
|
}
|
|
124
|
-
|
|
125
116
|
return bytes.buffer;
|
|
126
117
|
};
|
|
127
118
|
export const publicKeyCredentialToJSON = pubKeyCred => {
|
|
128
119
|
if (pubKeyCred instanceof Array) {
|
|
129
120
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
130
121
|
const arr = [];
|
|
131
|
-
|
|
132
122
|
for (const i of pubKeyCred) {
|
|
133
123
|
arr.push(publicKeyCredentialToJSON(i));
|
|
134
124
|
}
|
|
135
|
-
|
|
136
125
|
return arr;
|
|
137
126
|
} else if (pubKeyCred instanceof ArrayBuffer) {
|
|
138
127
|
return base64urlEncode(pubKeyCred);
|
|
139
128
|
} else if (pubKeyCred instanceof Object) {
|
|
140
129
|
const obj = {};
|
|
141
|
-
|
|
142
130
|
for (const key in pubKeyCred) {
|
|
143
131
|
obj[key] = publicKeyCredentialToJSON(pubKeyCred[key]);
|
|
144
132
|
}
|
|
145
|
-
|
|
146
133
|
return obj;
|
|
147
134
|
}
|
|
148
|
-
|
|
149
135
|
return pubKeyCred;
|
|
150
136
|
};
|
|
@@ -26,6 +26,7 @@ declare const reducers: {
|
|
|
26
26
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
27
27
|
retryResult?: IWebhookRetryResult | undefined;
|
|
28
28
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
29
|
+
totalPages?: number | undefined;
|
|
29
30
|
};
|
|
30
31
|
setConnectivityState: (state: IConnectivityState, { payload }: PayloadAction<Partial<IConnectivityState>>) => {
|
|
31
32
|
isLoading: boolean;
|
|
@@ -50,6 +51,7 @@ declare const reducers: {
|
|
|
50
51
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
51
52
|
retryResult?: IWebhookRetryResult | undefined;
|
|
52
53
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
54
|
+
totalPages?: number | undefined;
|
|
53
55
|
};
|
|
54
56
|
cleanWebhookTestData: (state: IConnectivityState) => {
|
|
55
57
|
testResult: undefined;
|
|
@@ -74,6 +76,7 @@ declare const reducers: {
|
|
|
74
76
|
};
|
|
75
77
|
retryResult?: IWebhookRetryResult | undefined;
|
|
76
78
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
79
|
+
totalPages?: number | undefined;
|
|
77
80
|
};
|
|
78
81
|
cleanWebhookLogsData: (state: IConnectivityState) => {
|
|
79
82
|
webhookLogs: undefined;
|
|
@@ -98,6 +101,7 @@ declare const reducers: {
|
|
|
98
101
|
};
|
|
99
102
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
100
103
|
retryResult?: IWebhookRetryResult | undefined;
|
|
104
|
+
totalPages?: number | undefined;
|
|
101
105
|
};
|
|
102
106
|
cleanWebhookTestMessage: (state: IConnectivityState) => {
|
|
103
107
|
testResult: {
|
|
@@ -125,6 +129,7 @@ declare const reducers: {
|
|
|
125
129
|
};
|
|
126
130
|
retryResult?: IWebhookRetryResult | undefined;
|
|
127
131
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
132
|
+
totalPages?: number | undefined;
|
|
128
133
|
};
|
|
129
134
|
cleanError: (state: IConnectivityState) => {
|
|
130
135
|
error: undefined;
|
|
@@ -149,6 +154,7 @@ declare const reducers: {
|
|
|
149
154
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
150
155
|
retryResult?: IWebhookRetryResult | undefined;
|
|
151
156
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
157
|
+
totalPages?: number | undefined;
|
|
152
158
|
};
|
|
153
159
|
cleanSlackData: (state: IConnectivityState) => {
|
|
154
160
|
slackChannels: {
|
|
@@ -169,6 +175,7 @@ declare const reducers: {
|
|
|
169
175
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
170
176
|
retryResult?: IWebhookRetryResult | undefined;
|
|
171
177
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
178
|
+
totalPages?: number | undefined;
|
|
172
179
|
};
|
|
173
180
|
postWebhookRetryAction: {
|
|
174
181
|
prepare: (logId: string) => {
|
|
@@ -205,6 +212,7 @@ declare const reducers: {
|
|
|
205
212
|
};
|
|
206
213
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
207
214
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
215
|
+
totalPages?: number | undefined;
|
|
208
216
|
};
|
|
209
217
|
};
|
|
210
218
|
postWebhookRetryResult: {
|
|
@@ -239,6 +247,7 @@ declare const reducers: {
|
|
|
239
247
|
};
|
|
240
248
|
testResult?: import("../interfaces").IWebhookTestResult | undefined;
|
|
241
249
|
webhookLogs?: import("../interfaces").IWebhookLogs | undefined;
|
|
250
|
+
totalPages?: number | undefined;
|
|
242
251
|
};
|
|
243
252
|
};
|
|
244
253
|
};
|
|
@@ -25,7 +25,6 @@ const reducers = {
|
|
|
25
25
|
}),
|
|
26
26
|
cleanWebhookTestMessage: state => {
|
|
27
27
|
var _state$testResult;
|
|
28
|
-
|
|
29
28
|
return _extends({}, state, {
|
|
30
29
|
testResult: {
|
|
31
30
|
status: (_state$testResult = state.testResult) == null ? void 0 : _state$testResult.status,
|
|
@@ -93,6 +92,7 @@ const actions = {
|
|
|
93
92
|
}
|
|
94
93
|
}))
|
|
95
94
|
};
|
|
95
|
+
|
|
96
96
|
/**
|
|
97
97
|
* To be used for actions types after dispatch, and should contains
|
|
98
98
|
* the reducers and actions as standalone function
|
package/connectivity/consts.js
CHANGED
|
@@ -22,7 +22,6 @@ export const channels2Platform = {
|
|
|
22
22
|
events: data => (data == null ? void 0 : data.length) || 0,
|
|
23
23
|
isActive: data => {
|
|
24
24
|
var _some;
|
|
25
|
-
|
|
26
25
|
return (_some = data == null ? void 0 : data.some(({
|
|
27
26
|
enabled
|
|
28
27
|
}) => enabled)) != null ? _some : false;
|
|
@@ -34,7 +33,6 @@ export const channels2Platform = {
|
|
|
34
33
|
events: data => (data == null ? void 0 : data.length) || 0,
|
|
35
34
|
isActive: data => {
|
|
36
35
|
var _some2;
|
|
37
|
-
|
|
38
36
|
return (_some2 = data == null ? void 0 : data.some(({
|
|
39
37
|
enabled
|
|
40
38
|
}) => enabled)) != null ? _some2 : false;
|
|
@@ -45,12 +43,10 @@ export const channels2Platform = {
|
|
|
45
43
|
title: 'connectivity.slack',
|
|
46
44
|
events: data => {
|
|
47
45
|
var _slackSubscriptions;
|
|
48
|
-
|
|
49
46
|
return (data == null ? void 0 : (_slackSubscriptions = data.slackSubscriptions) == null ? void 0 : _slackSubscriptions.length) || 0;
|
|
50
47
|
},
|
|
51
48
|
isActive: data => {
|
|
52
49
|
var _slackSubscriptions$s;
|
|
53
|
-
|
|
54
50
|
return (_slackSubscriptions$s = !!(data != null && data.slackSubscriptions.some(({
|
|
55
51
|
isActive
|
|
56
52
|
}) => isActive))) != null ? _slackSubscriptions$s : false;
|
|
@@ -62,7 +58,6 @@ export const channels2Platform = {
|
|
|
62
58
|
events: data => (data == null ? void 0 : data.length) || 0,
|
|
63
59
|
isActive: data => {
|
|
64
60
|
var _some3;
|
|
65
|
-
|
|
66
61
|
return (_some3 = data == null ? void 0 : data.some(({
|
|
67
62
|
isActive
|
|
68
63
|
}) => isActive)) != null ? _some3 : false;
|
package/connectivity/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { reducer, actions, initialState } from './reducer';
|
|
2
2
|
import { sagas } from './saga';
|
|
3
|
-
import { connectivityStoreName as storeName } from '../constants';
|
|
3
|
+
import { connectivityStoreName as storeName } from '../constants';
|
|
4
4
|
|
|
5
|
+
// export types
|
|
5
6
|
export * from './interfaces';
|
|
6
|
-
export { sagas as connectivitySagas, reducer as connectivityReducers, actions as connectivityActions, initialState as connectivityInitialState, storeName as connectivityStoreName };
|
|
7
|
+
export { sagas as connectivitySagas, reducer as connectivityReducers, actions as connectivityActions, initialState as connectivityInitialState, storeName as connectivityStoreName };
|
|
7
8
|
|
|
9
|
+
// export store
|
|
8
10
|
export default {
|
|
9
11
|
sagas,
|
|
10
12
|
storeName,
|