@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
package/node/auth/reducer.js
CHANGED
|
@@ -1,64 +1,36 @@
|
|
|
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.reducer = exports.actions = void 0;
|
|
9
|
-
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
9
|
var _toolkit = require("@reduxjs/toolkit");
|
|
13
|
-
|
|
14
10
|
var _utils = require("./utils");
|
|
15
|
-
|
|
16
11
|
var _initialState = require("./initialState");
|
|
17
|
-
|
|
18
12
|
var _constants = require("../constants");
|
|
19
|
-
|
|
20
13
|
var _LoginState = require("./LoginState");
|
|
21
|
-
|
|
22
14
|
var _ActivateState = require("./ActivateState");
|
|
23
|
-
|
|
24
15
|
var _AcceptInvitationState = require("./AcceptInvitationState");
|
|
25
|
-
|
|
26
16
|
var _ForgotPasswordState = require("./ForgotPasswordState");
|
|
27
|
-
|
|
28
17
|
var _SSOState = require("./SSOState");
|
|
29
|
-
|
|
30
18
|
var _MfaState = require("./MfaState");
|
|
31
|
-
|
|
32
19
|
var _ProfileState = require("./ProfileState");
|
|
33
|
-
|
|
34
20
|
var _TeamState = require("./TeamState");
|
|
35
|
-
|
|
36
21
|
var _SocialLogins = require("./SocialLogins");
|
|
37
|
-
|
|
38
22
|
var _SignUp = require("./SignUp");
|
|
39
|
-
|
|
40
23
|
var _ApiTokensState = require("./ApiTokensState");
|
|
41
|
-
|
|
42
24
|
var _SecurityPolicyState = require("./SecurityPolicyState");
|
|
43
|
-
|
|
44
25
|
var _AccountSettingsState = require("./AccountSettingsState");
|
|
45
|
-
|
|
46
26
|
var _TenantsState = require("./TenantsState");
|
|
47
|
-
|
|
48
27
|
var _RolesState = require("./RolesState");
|
|
49
|
-
|
|
50
28
|
var _ResetPhoneNumberState = require("./ResetPhoneNumberState");
|
|
51
|
-
|
|
52
29
|
var _SessionsState = require("./SessionsState");
|
|
53
|
-
|
|
54
30
|
var _SessionsPolicyState = require("./SessionsPolicyState");
|
|
55
|
-
|
|
56
31
|
var _RestrictionsState = require("./RestrictionsState");
|
|
57
|
-
|
|
58
32
|
var _Provisioning = require("./Provisioning");
|
|
59
|
-
|
|
60
33
|
var _ImpersonationState = require("./ImpersonationState");
|
|
61
|
-
|
|
62
34
|
const {
|
|
63
35
|
reducer,
|
|
64
36
|
actions: sliceActions
|
package/node/auth/saga.js
CHANGED
|
@@ -5,59 +5,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockSagas = mockSagas;
|
|
7
7
|
exports.sagas = sagas;
|
|
8
|
-
|
|
9
8
|
var _saga = require("./SSOState/saga");
|
|
10
|
-
|
|
11
9
|
var _saga2 = require("./SSOState/saga.v2");
|
|
12
|
-
|
|
13
10
|
var _saga3 = require("./ProfileState/saga");
|
|
14
|
-
|
|
15
11
|
var _saga4 = require("./MfaState/saga");
|
|
16
|
-
|
|
17
12
|
var _saga5 = require("./ForgotPasswordState/saga");
|
|
18
|
-
|
|
19
13
|
var _saga6 = require("./ActivateState/saga");
|
|
20
|
-
|
|
21
14
|
var _saga7 = require("./AcceptInvitationState/saga");
|
|
22
|
-
|
|
23
15
|
var _saga8 = require("./LoginState/saga");
|
|
24
|
-
|
|
25
16
|
var _saga9 = require("./TeamState/saga");
|
|
26
|
-
|
|
27
17
|
var _saga10 = require("./SocialLogins/saga");
|
|
28
|
-
|
|
29
18
|
var _saga11 = require("./SignUp/saga");
|
|
30
|
-
|
|
31
19
|
var _effects = require("redux-saga/effects");
|
|
32
|
-
|
|
33
20
|
var _saga12 = require("./ApiTokensState/saga");
|
|
34
|
-
|
|
35
21
|
var _saga13 = require("./SecurityPolicyState/saga");
|
|
36
|
-
|
|
37
22
|
var _saga14 = require("./AccountSettingsState/saga");
|
|
38
|
-
|
|
39
23
|
var _saga15 = require("./TenantsState/saga");
|
|
40
|
-
|
|
41
24
|
var _saga16 = require("./RolesState/saga");
|
|
42
|
-
|
|
43
25
|
var _saga17 = require("./ResetPhoneNumberState/saga");
|
|
44
|
-
|
|
45
26
|
var _saga18 = require("./SessionsState/saga");
|
|
46
|
-
|
|
47
27
|
var _saga19 = require("./SessionsPolicyState/saga");
|
|
48
|
-
|
|
49
28
|
var _saga20 = require("./RestrictionsState/saga");
|
|
50
|
-
|
|
51
29
|
var _saga21 = require("./Provisioning/saga");
|
|
52
|
-
|
|
53
30
|
var _saga22 = require("./ImpersonationState/saga");
|
|
54
|
-
|
|
55
31
|
function* sagas() {
|
|
56
32
|
yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagas), (0, _effects.call)(_saga6.activateSagas), (0, _effects.call)(_saga7.acceptInvitationSagas), (0, _effects.call)(_saga5.forgotPasswordSagas), (0, _effects.call)(_saga17.resetPhoneNumberSagas), (0, _effects.call)(_saga.ssoSagas), (0, _effects.call)(_saga2.ssoSagas), (0, _effects.call)(_saga3.profileSagas), (0, _effects.call)(_saga4.mfaSagas), (0, _effects.call)(_saga9.teamSagas), (0, _effects.call)(_saga10.socialLoginsSaga), (0, _effects.call)(_saga11.signUpSaga), (0, _effects.call)(_saga12.apiTokensSaga), (0, _effects.call)(_saga13.securityPolicySagas), (0, _effects.call)(_saga14.accountSettingsSaga), (0, _effects.call)(_saga15.tenantsSagas), (0, _effects.call)(_saga16.rolesSagas), (0, _effects.call)(_saga18.sessionsSaga), (0, _effects.call)(_saga19.sessionsPolicySaga), (0, _effects.call)(_saga20.restrictionsSagas), (0, _effects.call)(_saga21.provisionSagas), (0, _effects.call)(_saga22.impersonateSagas)]);
|
|
57
33
|
}
|
|
58
|
-
|
|
59
34
|
function* mockSagas() {
|
|
60
|
-
yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagasMock),
|
|
35
|
+
yield (0, _effects.all)([(0, _effects.call)(_saga8.loginSagasMock),
|
|
36
|
+
// call(activateSagas),
|
|
61
37
|
// call(acceptInvitationSagas),
|
|
62
38
|
// call(forgotPasswordSagas),
|
|
63
39
|
// call(socialLoginsSaga),
|
package/node/auth/utils.js
CHANGED
|
@@ -1,28 +1,21 @@
|
|
|
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.typeReducerNestedKey = exports.typeReducerForKey = exports.typeReducer = exports.resetStateByKey = exports.publicKeyCredentialToJSON = exports.loadersReducerForKey = exports.errorsReducerForKey = exports.delay = exports.base64urlEncode = exports.base64urlDecode = void 0;
|
|
9
|
-
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
9
|
const resetStateByKey = (key, initialState) => state => (0, _extends2.default)({}, state, {
|
|
13
10
|
[key]: initialState[key]
|
|
14
11
|
});
|
|
15
|
-
|
|
16
12
|
exports.resetStateByKey = resetStateByKey;
|
|
17
|
-
|
|
18
13
|
const typeReducer = key => (state, {
|
|
19
14
|
payload
|
|
20
15
|
}) => (0, _extends2.default)({}, state, {
|
|
21
16
|
[key]: payload
|
|
22
17
|
});
|
|
23
|
-
|
|
24
18
|
exports.typeReducer = typeReducer;
|
|
25
|
-
|
|
26
19
|
const typeReducerForKey = key => ({
|
|
27
20
|
prepare: payload => ({
|
|
28
21
|
payload
|
|
@@ -35,9 +28,7 @@ const typeReducerForKey = key => ({
|
|
|
35
28
|
});
|
|
36
29
|
}
|
|
37
30
|
});
|
|
38
|
-
|
|
39
31
|
exports.typeReducerForKey = typeReducerForKey;
|
|
40
|
-
|
|
41
32
|
const typeReducerNestedKey = (key, nestedKey) => ({
|
|
42
33
|
prepare: payload => ({
|
|
43
34
|
payload
|
|
@@ -46,7 +37,6 @@ const typeReducerNestedKey = (key, nestedKey) => ({
|
|
|
46
37
|
payload
|
|
47
38
|
}) => {
|
|
48
39
|
var _state$key;
|
|
49
|
-
|
|
50
40
|
return (0, _extends2.default)({}, state, {
|
|
51
41
|
[key]: (0, _extends2.default)({}, state[key], {
|
|
52
42
|
[nestedKey]: (0, _extends2.default)({}, state == null ? void 0 : (_state$key = state[key]) == null ? void 0 : _state$key[nestedKey], payload)
|
|
@@ -54,9 +44,7 @@ const typeReducerNestedKey = (key, nestedKey) => ({
|
|
|
54
44
|
});
|
|
55
45
|
}
|
|
56
46
|
});
|
|
57
|
-
|
|
58
47
|
exports.typeReducerNestedKey = typeReducerNestedKey;
|
|
59
|
-
|
|
60
48
|
const loadersReducerForKey = key => ({
|
|
61
49
|
prepare: payload => ({
|
|
62
50
|
payload
|
|
@@ -65,7 +53,6 @@ const loadersReducerForKey = key => ({
|
|
|
65
53
|
payload
|
|
66
54
|
}) => {
|
|
67
55
|
var _payload$value;
|
|
68
|
-
|
|
69
56
|
return (0, _extends2.default)({}, state, {
|
|
70
57
|
[key]: (0, _extends2.default)({}, state[key], {
|
|
71
58
|
loaders: (0, _extends2.default)({}, state[key].loaders, {
|
|
@@ -75,9 +62,7 @@ const loadersReducerForKey = key => ({
|
|
|
75
62
|
});
|
|
76
63
|
}
|
|
77
64
|
});
|
|
78
|
-
|
|
79
65
|
exports.loadersReducerForKey = loadersReducerForKey;
|
|
80
|
-
|
|
81
66
|
const errorsReducerForKey = key => ({
|
|
82
67
|
prepare: payload => ({
|
|
83
68
|
payload
|
|
@@ -86,7 +71,6 @@ const errorsReducerForKey = key => ({
|
|
|
86
71
|
payload
|
|
87
72
|
}) => {
|
|
88
73
|
var _payload$value2;
|
|
89
|
-
|
|
90
74
|
return (0, _extends2.default)({}, state, {
|
|
91
75
|
[key]: (0, _extends2.default)({}, state[key], {
|
|
92
76
|
errors: (0, _extends2.default)({}, state[key].errors, {
|
|
@@ -96,55 +80,45 @@ const errorsReducerForKey = key => ({
|
|
|
96
80
|
});
|
|
97
81
|
}
|
|
98
82
|
});
|
|
99
|
-
|
|
100
83
|
exports.errorsReducerForKey = errorsReducerForKey;
|
|
101
|
-
|
|
102
84
|
const delay = (delayTime = 500) => new Promise(resolve => setTimeout(resolve, delayTime));
|
|
103
|
-
|
|
104
85
|
exports.delay = delay;
|
|
105
86
|
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
|
|
106
87
|
const lookup = new Uint8Array(256);
|
|
107
|
-
|
|
108
88
|
for (let i = 0; i < chars.length; i++) {
|
|
109
89
|
lookup[chars.charCodeAt(i)] = i;
|
|
110
|
-
}
|
|
111
|
-
|
|
90
|
+
}
|
|
112
91
|
|
|
92
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
113
93
|
const base64urlEncode = arraybuffer => {
|
|
114
94
|
const bytes = new Uint8Array(arraybuffer);
|
|
115
95
|
const len = bytes.length;
|
|
116
96
|
let i;
|
|
117
97
|
let base64url = '';
|
|
118
|
-
|
|
119
98
|
for (i = 0; i < len; i += 3) {
|
|
120
99
|
base64url += chars[bytes[i] >> 2];
|
|
121
100
|
base64url += chars[(bytes[i] & 3) << 4 | bytes[i + 1] >> 4];
|
|
122
101
|
base64url += chars[(bytes[i + 1] & 15) << 2 | bytes[i + 2] >> 6];
|
|
123
102
|
base64url += chars[bytes[i + 2] & 63];
|
|
124
103
|
}
|
|
125
|
-
|
|
126
104
|
if (len % 3 === 2) {
|
|
127
105
|
base64url = base64url.substring(0, base64url.length - 1);
|
|
128
106
|
} else if (len % 3 === 1) {
|
|
129
107
|
base64url = base64url.substring(0, base64url.length - 2);
|
|
130
108
|
}
|
|
131
|
-
|
|
132
109
|
return base64url;
|
|
133
110
|
};
|
|
134
|
-
|
|
135
111
|
exports.base64urlEncode = base64urlEncode;
|
|
136
|
-
|
|
137
112
|
const base64urlDecode = base64string => {
|
|
138
113
|
const bufferLength = base64string.length * 0.75;
|
|
139
114
|
const len = base64string.length;
|
|
140
115
|
let i,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
116
|
+
p = 0,
|
|
117
|
+
encoded1,
|
|
118
|
+
encoded2,
|
|
119
|
+
encoded3,
|
|
120
|
+
encoded4;
|
|
146
121
|
const bytes = new Uint8Array(bufferLength);
|
|
147
|
-
|
|
148
122
|
for (i = 0; i < len; i += 4) {
|
|
149
123
|
encoded1 = lookup[base64string.charCodeAt(i)];
|
|
150
124
|
encoded2 = lookup[base64string.charCodeAt(i + 1)];
|
|
@@ -154,35 +128,26 @@ const base64urlDecode = base64string => {
|
|
|
154
128
|
bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;
|
|
155
129
|
bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;
|
|
156
130
|
}
|
|
157
|
-
|
|
158
131
|
return bytes.buffer;
|
|
159
132
|
};
|
|
160
|
-
|
|
161
133
|
exports.base64urlDecode = base64urlDecode;
|
|
162
|
-
|
|
163
134
|
const publicKeyCredentialToJSON = pubKeyCred => {
|
|
164
135
|
if (pubKeyCred instanceof Array) {
|
|
165
136
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
166
137
|
const arr = [];
|
|
167
|
-
|
|
168
138
|
for (const i of pubKeyCred) {
|
|
169
139
|
arr.push(publicKeyCredentialToJSON(i));
|
|
170
140
|
}
|
|
171
|
-
|
|
172
141
|
return arr;
|
|
173
142
|
} else if (pubKeyCred instanceof ArrayBuffer) {
|
|
174
143
|
return base64urlEncode(pubKeyCred);
|
|
175
144
|
} else if (pubKeyCred instanceof Object) {
|
|
176
145
|
const obj = {};
|
|
177
|
-
|
|
178
146
|
for (const key in pubKeyCred) {
|
|
179
147
|
obj[key] = publicKeyCredentialToJSON(pubKeyCred[key]);
|
|
180
148
|
}
|
|
181
|
-
|
|
182
149
|
return obj;
|
|
183
150
|
}
|
|
184
|
-
|
|
185
151
|
return pubKeyCred;
|
|
186
152
|
};
|
|
187
|
-
|
|
188
153
|
exports.publicKeyCredentialToJSON = publicKeyCredentialToJSON;
|
|
@@ -1,18 +1,13 @@
|
|
|
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.connectivityReducers = exports.connectivityActions = void 0;
|
|
9
|
-
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
9
|
var _toolkit = require("@reduxjs/toolkit");
|
|
13
|
-
|
|
14
10
|
var _constants = require("../../constants");
|
|
15
|
-
|
|
16
11
|
const initialState = {
|
|
17
12
|
isLoading: false,
|
|
18
13
|
isSaving: false,
|
|
@@ -37,7 +32,6 @@ const reducers = {
|
|
|
37
32
|
}),
|
|
38
33
|
cleanWebhookTestMessage: state => {
|
|
39
34
|
var _state$testResult;
|
|
40
|
-
|
|
41
35
|
return (0, _extends2.default)({}, state, {
|
|
42
36
|
testResult: {
|
|
43
37
|
status: (_state$testResult = state.testResult) == null ? void 0 : _state$testResult.status,
|
|
@@ -106,9 +100,9 @@ const actions = {
|
|
|
106
100
|
}
|
|
107
101
|
}))
|
|
108
102
|
};
|
|
103
|
+
|
|
109
104
|
/**
|
|
110
105
|
* To be used for actions types after dispatch, and should contains
|
|
111
106
|
* the reducers and actions as standalone function
|
|
112
107
|
*/
|
|
113
|
-
|
|
114
108
|
exports.connectivityActions = actions;
|
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.type2ApiPost = exports.type2ApiGet = exports.defaultRootPath = exports.channels2Platform = exports.channels = void 0;
|
|
7
|
-
|
|
8
7
|
var _restApi = require("@frontegg/rest-api");
|
|
9
|
-
|
|
10
8
|
/* eslint-disable */
|
|
9
|
+
|
|
11
10
|
const type2ApiGet = {
|
|
12
11
|
slack: _restApi.api.connectivity.getSlackConfiguration,
|
|
13
12
|
email: _restApi.api.connectivity.getEmailConfiguration,
|
|
@@ -34,7 +33,6 @@ const channels2Platform = {
|
|
|
34
33
|
events: data => (data == null ? void 0 : data.length) || 0,
|
|
35
34
|
isActive: data => {
|
|
36
35
|
var _some;
|
|
37
|
-
|
|
38
36
|
return (_some = data == null ? void 0 : data.some(({
|
|
39
37
|
enabled
|
|
40
38
|
}) => enabled)) != null ? _some : false;
|
|
@@ -46,7 +44,6 @@ const channels2Platform = {
|
|
|
46
44
|
events: data => (data == null ? void 0 : data.length) || 0,
|
|
47
45
|
isActive: data => {
|
|
48
46
|
var _some2;
|
|
49
|
-
|
|
50
47
|
return (_some2 = data == null ? void 0 : data.some(({
|
|
51
48
|
enabled
|
|
52
49
|
}) => enabled)) != null ? _some2 : false;
|
|
@@ -57,12 +54,10 @@ const channels2Platform = {
|
|
|
57
54
|
title: 'connectivity.slack',
|
|
58
55
|
events: data => {
|
|
59
56
|
var _slackSubscriptions;
|
|
60
|
-
|
|
61
57
|
return (data == null ? void 0 : (_slackSubscriptions = data.slackSubscriptions) == null ? void 0 : _slackSubscriptions.length) || 0;
|
|
62
58
|
},
|
|
63
59
|
isActive: data => {
|
|
64
60
|
var _slackSubscriptions$s;
|
|
65
|
-
|
|
66
61
|
return (_slackSubscriptions$s = !!(data != null && data.slackSubscriptions.some(({
|
|
67
62
|
isActive
|
|
68
63
|
}) => isActive))) != null ? _slackSubscriptions$s : false;
|
|
@@ -74,7 +69,6 @@ const channels2Platform = {
|
|
|
74
69
|
events: data => (data == null ? void 0 : data.length) || 0,
|
|
75
70
|
isActive: data => {
|
|
76
71
|
var _some3;
|
|
77
|
-
|
|
78
72
|
return (_some3 = data == null ? void 0 : data.some(({
|
|
79
73
|
isActive
|
|
80
74
|
}) => isActive)) != null ? _some3 : false;
|
|
@@ -41,15 +41,10 @@ Object.defineProperty(exports, "connectivityStoreName", {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
exports.default = void 0;
|
|
44
|
-
|
|
45
44
|
var _reducer = require("./reducer");
|
|
46
|
-
|
|
47
45
|
var _saga = require("./saga");
|
|
48
|
-
|
|
49
46
|
var _constants = require("../constants");
|
|
50
|
-
|
|
51
47
|
var _interfaces = require("./interfaces");
|
|
52
|
-
|
|
53
48
|
Object.keys(_interfaces).forEach(function (key) {
|
|
54
49
|
if (key === "default" || key === "__esModule") return;
|
|
55
50
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -1,20 +1,14 @@
|
|
|
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.reducer = exports.initialState = exports.actions = void 0;
|
|
9
|
-
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
9
|
var _constants = require("../constants");
|
|
13
|
-
|
|
14
10
|
var _toolkit = require("@reduxjs/toolkit");
|
|
15
|
-
|
|
16
11
|
var _ConnectivityState = require("./ConnectivityState");
|
|
17
|
-
|
|
18
12
|
const initialState = {
|
|
19
13
|
isLoading: false,
|
|
20
14
|
isSaving: false,
|