@frontegg/redux-store 5.63.0 → 5.64.2
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/auth/TeamState/index.d.ts +2 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +29 -9
- package/auth/reducer.d.ts +1 -0
- package/node/auth/index.js +1 -1
- package/node/{index-26ab729b.js → index-deb612e3.js} +29 -9
- package/node/index.js +1 -1
- package/node/toolkit/index.js +1 -1
- package/package.json +2 -2
|
@@ -115,6 +115,7 @@ declare const actions: {
|
|
|
115
115
|
lockUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IDeleteUser, boolean>], WithCallback<IDeleteUser, boolean>, string, never, never>;
|
|
116
116
|
resendActivationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResendActivationLink, boolean>], WithCallback<IResendActivationLink, boolean>, string, never, never>;
|
|
117
117
|
resendInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResendInvitationLink, boolean>], WithCallback<IResendInvitationLink, boolean>, string, never, never>;
|
|
118
|
+
resendInvitationLinkToAllSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<IResendInvitationLink, boolean>], WithCallback<IResendInvitationLink, boolean>, string, never, never>;
|
|
118
119
|
getInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
119
120
|
createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ICreateOrUpdateInviteUserLink, string>], WithCallback<ICreateOrUpdateInviteUserLink, string>, string, never, never>;
|
|
120
121
|
updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[WithCallback<ICreateOrUpdateInviteUserLink, boolean>], WithCallback<ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
|
|
@@ -153,6 +154,7 @@ declare type DispatchedActions = {
|
|
|
153
154
|
lockUser: (payload: WithCallback<IDeleteUser>) => void;
|
|
154
155
|
resendActivationLink: (payload: WithCallback<IResendActivationLink>) => void;
|
|
155
156
|
resendInvitationLink: (payload: WithCallback<IResendInvitationLink>) => void;
|
|
157
|
+
resendInvitationLinkToAllSubTenants: (payload: WithCallback<IResendInvitationLink>) => void;
|
|
156
158
|
getInvitationLink: () => void;
|
|
157
159
|
createInvitationLink: (payload: WithCallback<ICreateOrUpdateInviteUserLink, string>) => void;
|
|
158
160
|
updateInvitationLink: (payload: WithCallback<ICreateOrUpdateInviteUserLink>) => void;
|
package/auth/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ declare const _default: {
|
|
|
124
124
|
lockUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IDeleteUser, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IDeleteUser, boolean>, string, never, never>;
|
|
125
125
|
resendActivationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendActivationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendActivationLink, boolean>, string, never, never>;
|
|
126
126
|
resendInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>, string, never, never>;
|
|
127
|
+
resendInvitationLinkToAllSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>, string, never, never>;
|
|
127
128
|
getInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
128
129
|
createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>, string, never, never>;
|
|
129
130
|
updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
|
package/auth/index.js
CHANGED
|
@@ -398,6 +398,7 @@ const actions$8 = {
|
|
|
398
398
|
lockUser: createAction(`${authStoreName}/lockUser`, (payload) => ({ payload })),
|
|
399
399
|
resendActivationLink: createAction(`${authStoreName}/resendActivationLink`, (payload) => ({ payload })),
|
|
400
400
|
resendInvitationLink: createAction(`${authStoreName}/resendInvitationLink`, (payload) => ({ payload })),
|
|
401
|
+
resendInvitationLinkToAllSubTenants: createAction(`${authStoreName}/resendInvitationLinkToAllSubTenants`, (payload) => ({ payload })),
|
|
401
402
|
getInvitationLink: createAction(`${authStoreName}/getInvitationLink`),
|
|
402
403
|
createInvitationLink: createAction(`${authStoreName}/createInvitationLink`, (payload) => ({ payload })),
|
|
403
404
|
updateInvitationLink: createAction(`${authStoreName}/updateInvitationLink`, (payload) => ({ payload })),
|
|
@@ -759,9 +760,9 @@ const userProfileDemo = {
|
|
|
759
760
|
phoneNumber: '+972-54123456',
|
|
760
761
|
jobTitle: 'Developer',
|
|
761
762
|
address: {
|
|
762
|
-
city:
|
|
763
|
-
country:
|
|
764
|
-
}
|
|
763
|
+
city: 'Tel Aviv',
|
|
764
|
+
country: 'Israel',
|
|
765
|
+
},
|
|
765
766
|
}),
|
|
766
767
|
roleIds: undefined,
|
|
767
768
|
verified: undefined,
|
|
@@ -918,7 +919,6 @@ const userTeamDemo = {
|
|
|
918
919
|
const userSubTenantDemo = {
|
|
919
920
|
metadata: '',
|
|
920
921
|
mfaEnrolled: false,
|
|
921
|
-
permissions: [],
|
|
922
922
|
provider: '',
|
|
923
923
|
sub: '',
|
|
924
924
|
tenantIds: [],
|
|
@@ -928,10 +928,7 @@ const userSubTenantDemo = {
|
|
|
928
928
|
email: 'email',
|
|
929
929
|
name: 'name',
|
|
930
930
|
tenantId: 'tenantId',
|
|
931
|
-
activatedForTenant: true,
|
|
932
931
|
createdAt: new Date(),
|
|
933
|
-
lastLogin: new Date(),
|
|
934
|
-
roles: [],
|
|
935
932
|
};
|
|
936
933
|
const usersDemo = [userTeamDemo, userTeamDemo2];
|
|
937
934
|
const allUsersDemo = [userSubTenantDemo];
|
|
@@ -3147,8 +3144,9 @@ function* setUserRolesForSubTenants({ payload, }) {
|
|
|
3147
3144
|
try {
|
|
3148
3145
|
yield call(api.subTenants.setUserRolesForSubTenants, userId, body);
|
|
3149
3146
|
const updatedUser = teamState.allUsers.find((user) => user.id === userId);
|
|
3147
|
+
let newTenants = [];
|
|
3150
3148
|
if (updatedUser) {
|
|
3151
|
-
|
|
3149
|
+
newTenants = updatedUser.tenants.map((tenant) => {
|
|
3152
3150
|
var _a;
|
|
3153
3151
|
return (Object.assign(Object.assign({}, tenant), { roles: ((_a = body.subTenantsRoles
|
|
3154
3152
|
.find((roleUpdate) => roleUpdate.tenantId === tenant.tenantId)) === null || _a === void 0 ? void 0 : _a.roleIds.map((roleId) => {
|
|
@@ -3160,7 +3158,7 @@ function* setUserRolesForSubTenants({ payload, }) {
|
|
|
3160
3158
|
yield put(actions.setTeamState({
|
|
3161
3159
|
allUsers: [
|
|
3162
3160
|
...teamState.allUsers.filter((user) => user.id !== userId),
|
|
3163
|
-
...(updatedUser ? [updatedUser] : []),
|
|
3161
|
+
...(updatedUser ? [Object.assign(Object.assign({}, updatedUser), { tenants: newTenants })] : []),
|
|
3164
3162
|
],
|
|
3165
3163
|
addUserDialogState: { open: false, loading: false },
|
|
3166
3164
|
}));
|
|
@@ -3218,6 +3216,19 @@ function* resendInvitationLink({ payload }) {
|
|
|
3218
3216
|
}
|
|
3219
3217
|
yield put(actions.setTeamLoader({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3220
3218
|
}
|
|
3219
|
+
function* resendInvitationLinkToAllSubTenants({ payload, }) {
|
|
3220
|
+
const { callback } = payload, body = __rest(payload, ["callback"]);
|
|
3221
|
+
yield put(actions.setTeamLoader({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: body.email }));
|
|
3222
|
+
try {
|
|
3223
|
+
yield call(api.teams.resendInvitationLinkToAllTenants, body);
|
|
3224
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
3225
|
+
}
|
|
3226
|
+
catch (e) {
|
|
3227
|
+
yield put(actions.setTeamError({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: e.message }));
|
|
3228
|
+
callback === null || callback === void 0 ? void 0 : callback(null, e.message);
|
|
3229
|
+
}
|
|
3230
|
+
yield put(actions.setTeamLoader({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3231
|
+
}
|
|
3221
3232
|
function* getInvitationLinkConfig() {
|
|
3222
3233
|
yield put(actions.setTeamError({ key: TeamStateKeys.CONFIG_TOKEN_LINK, value: false }));
|
|
3223
3234
|
try {
|
|
@@ -3325,6 +3336,7 @@ function* teamSagas() {
|
|
|
3325
3336
|
yield takeEvery(actions.deleteUserFromSubTenants, deleteUserFromSubTenants);
|
|
3326
3337
|
yield takeEvery(actions.resendActivationLink, resendActivationLink);
|
|
3327
3338
|
yield takeEvery(actions.resendInvitationLink, resendInvitationLink);
|
|
3339
|
+
yield takeEvery(actions.resendInvitationLinkToAllSubTenants, resendInvitationLinkToAllSubTenants);
|
|
3328
3340
|
yield takeEvery(actions.getInvitationLink, getInvitationLink);
|
|
3329
3341
|
yield takeEvery(actions.createInvitationLink, createInvitationLink);
|
|
3330
3342
|
yield takeEvery(actions.updateInvitationLink, updateInvitationLink);
|
|
@@ -3488,6 +3500,13 @@ function* resendInvitationLinkMock({ payload }) {
|
|
|
3488
3500
|
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
3489
3501
|
yield put(actions.setTeamLoader({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3490
3502
|
}
|
|
3503
|
+
function* resendInvitationLinkToAllSubTenantsMock({ payload, }) {
|
|
3504
|
+
const { callback } = payload, body = __rest(payload, ["callback"]);
|
|
3505
|
+
yield put(actions.setTeamLoader({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: body.email }));
|
|
3506
|
+
yield delay();
|
|
3507
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
3508
|
+
yield put(actions.setTeamLoader({ key: TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3509
|
+
}
|
|
3491
3510
|
function* teamSagasMock() {
|
|
3492
3511
|
yield takeLatest(actions.loadUsers, loadUsersMock);
|
|
3493
3512
|
yield takeLatest(actions.loadAllSubTenantsUsers, loadAllSubTenantsUsersMock);
|
|
@@ -3499,6 +3518,7 @@ function* teamSagasMock() {
|
|
|
3499
3518
|
yield takeEvery(actions.deleteUserFromSubTenants, deleteUserFromSubTenantsMock);
|
|
3500
3519
|
yield takeEvery(actions.resendActivationLink, resendActivationLinkMock);
|
|
3501
3520
|
yield takeEvery(actions.resendInvitationLink, resendInvitationLinkMock);
|
|
3521
|
+
yield takeEvery(actions.resendInvitationLinkToAllSubTenants, resendInvitationLinkToAllSubTenantsMock);
|
|
3502
3522
|
yield takeEvery(actions.openAddUserDialog, openAddUserDialog);
|
|
3503
3523
|
yield takeEvery(actions.closeAddUserDialog, closeAddUserDialog);
|
|
3504
3524
|
yield takeEvery(actions.openDeleteUserDialog, openDeleteUserDialog);
|
package/auth/reducer.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ declare const actions: {
|
|
|
97
97
|
lockUser: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IDeleteUser, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IDeleteUser, boolean>, string, never, never>;
|
|
98
98
|
resendActivationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendActivationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendActivationLink, boolean>, string, never, never>;
|
|
99
99
|
resendInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>, string, never, never>;
|
|
100
|
+
resendInvitationLinkToAllSubTenants: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").IResendInvitationLink, boolean>, string, never, never>;
|
|
100
101
|
getInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
101
102
|
createInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, string>, string, never, never>;
|
|
102
103
|
updateInvitationLink: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>], import("../interfaces").WithCallback<import("@frontegg/rest-api").ICreateOrUpdateInviteUserLink, boolean>, string, never, never>;
|
package/node/auth/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('../index-
|
|
5
|
+
var auth_index = require('../index-deb612e3.js');
|
|
6
6
|
var constants = require('../constants-52e37c08.js');
|
|
7
7
|
var restApi = require('@frontegg/rest-api');
|
|
8
8
|
require('@reduxjs/toolkit');
|
|
@@ -317,6 +317,7 @@ const actions$8 = {
|
|
|
317
317
|
lockUser: toolkit.createAction(`${constants.authStoreName}/lockUser`, (payload) => ({ payload })),
|
|
318
318
|
resendActivationLink: toolkit.createAction(`${constants.authStoreName}/resendActivationLink`, (payload) => ({ payload })),
|
|
319
319
|
resendInvitationLink: toolkit.createAction(`${constants.authStoreName}/resendInvitationLink`, (payload) => ({ payload })),
|
|
320
|
+
resendInvitationLinkToAllSubTenants: toolkit.createAction(`${constants.authStoreName}/resendInvitationLinkToAllSubTenants`, (payload) => ({ payload })),
|
|
320
321
|
getInvitationLink: toolkit.createAction(`${constants.authStoreName}/getInvitationLink`),
|
|
321
322
|
createInvitationLink: toolkit.createAction(`${constants.authStoreName}/createInvitationLink`, (payload) => ({ payload })),
|
|
322
323
|
updateInvitationLink: toolkit.createAction(`${constants.authStoreName}/updateInvitationLink`, (payload) => ({ payload })),
|
|
@@ -678,9 +679,9 @@ const userProfileDemo = {
|
|
|
678
679
|
phoneNumber: '+972-54123456',
|
|
679
680
|
jobTitle: 'Developer',
|
|
680
681
|
address: {
|
|
681
|
-
city:
|
|
682
|
-
country:
|
|
683
|
-
}
|
|
682
|
+
city: 'Tel Aviv',
|
|
683
|
+
country: 'Israel',
|
|
684
|
+
},
|
|
684
685
|
}),
|
|
685
686
|
roleIds: undefined,
|
|
686
687
|
verified: undefined,
|
|
@@ -837,7 +838,6 @@ const userTeamDemo = {
|
|
|
837
838
|
const userSubTenantDemo = {
|
|
838
839
|
metadata: '',
|
|
839
840
|
mfaEnrolled: false,
|
|
840
|
-
permissions: [],
|
|
841
841
|
provider: '',
|
|
842
842
|
sub: '',
|
|
843
843
|
tenantIds: [],
|
|
@@ -847,10 +847,7 @@ const userSubTenantDemo = {
|
|
|
847
847
|
email: 'email',
|
|
848
848
|
name: 'name',
|
|
849
849
|
tenantId: 'tenantId',
|
|
850
|
-
activatedForTenant: true,
|
|
851
850
|
createdAt: new Date(),
|
|
852
|
-
lastLogin: new Date(),
|
|
853
|
-
roles: [],
|
|
854
851
|
};
|
|
855
852
|
const usersDemo = [userTeamDemo, userTeamDemo2];
|
|
856
853
|
const allUsersDemo = [userSubTenantDemo];
|
|
@@ -3066,8 +3063,9 @@ function* setUserRolesForSubTenants({ payload, }) {
|
|
|
3066
3063
|
try {
|
|
3067
3064
|
yield effects.call(restApi.api.subTenants.setUserRolesForSubTenants, userId, body);
|
|
3068
3065
|
const updatedUser = teamState.allUsers.find((user) => user.id === userId);
|
|
3066
|
+
let newTenants = [];
|
|
3069
3067
|
if (updatedUser) {
|
|
3070
|
-
|
|
3068
|
+
newTenants = updatedUser.tenants.map((tenant) => {
|
|
3071
3069
|
var _a;
|
|
3072
3070
|
return (Object.assign(Object.assign({}, tenant), { roles: ((_a = body.subTenantsRoles
|
|
3073
3071
|
.find((roleUpdate) => roleUpdate.tenantId === tenant.tenantId)) === null || _a === void 0 ? void 0 : _a.roleIds.map((roleId) => {
|
|
@@ -3079,7 +3077,7 @@ function* setUserRolesForSubTenants({ payload, }) {
|
|
|
3079
3077
|
yield effects.put(actions.setTeamState({
|
|
3080
3078
|
allUsers: [
|
|
3081
3079
|
...teamState.allUsers.filter((user) => user.id !== userId),
|
|
3082
|
-
...(updatedUser ? [updatedUser] : []),
|
|
3080
|
+
...(updatedUser ? [Object.assign(Object.assign({}, updatedUser), { tenants: newTenants })] : []),
|
|
3083
3081
|
],
|
|
3084
3082
|
addUserDialogState: { open: false, loading: false },
|
|
3085
3083
|
}));
|
|
@@ -3137,6 +3135,19 @@ function* resendInvitationLink({ payload }) {
|
|
|
3137
3135
|
}
|
|
3138
3136
|
yield effects.put(actions.setTeamLoader({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3139
3137
|
}
|
|
3138
|
+
function* resendInvitationLinkToAllSubTenants({ payload, }) {
|
|
3139
|
+
const { callback } = payload, body = tslib.__rest(payload, ["callback"]);
|
|
3140
|
+
yield effects.put(actions.setTeamLoader({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: body.email }));
|
|
3141
|
+
try {
|
|
3142
|
+
yield effects.call(restApi.api.teams.resendInvitationLinkToAllTenants, body);
|
|
3143
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
3144
|
+
}
|
|
3145
|
+
catch (e) {
|
|
3146
|
+
yield effects.put(actions.setTeamError({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: e.message }));
|
|
3147
|
+
callback === null || callback === void 0 ? void 0 : callback(null, e.message);
|
|
3148
|
+
}
|
|
3149
|
+
yield effects.put(actions.setTeamLoader({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3150
|
+
}
|
|
3140
3151
|
function* getInvitationLinkConfig() {
|
|
3141
3152
|
yield effects.put(actions.setTeamError({ key: exports.TeamStateKeys.CONFIG_TOKEN_LINK, value: false }));
|
|
3142
3153
|
try {
|
|
@@ -3244,6 +3255,7 @@ function* teamSagas() {
|
|
|
3244
3255
|
yield effects.takeEvery(actions.deleteUserFromSubTenants, deleteUserFromSubTenants);
|
|
3245
3256
|
yield effects.takeEvery(actions.resendActivationLink, resendActivationLink);
|
|
3246
3257
|
yield effects.takeEvery(actions.resendInvitationLink, resendInvitationLink);
|
|
3258
|
+
yield effects.takeEvery(actions.resendInvitationLinkToAllSubTenants, resendInvitationLinkToAllSubTenants);
|
|
3247
3259
|
yield effects.takeEvery(actions.getInvitationLink, getInvitationLink);
|
|
3248
3260
|
yield effects.takeEvery(actions.createInvitationLink, createInvitationLink);
|
|
3249
3261
|
yield effects.takeEvery(actions.updateInvitationLink, updateInvitationLink);
|
|
@@ -3407,6 +3419,13 @@ function* resendInvitationLinkMock({ payload }) {
|
|
|
3407
3419
|
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
3408
3420
|
yield effects.put(actions.setTeamLoader({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3409
3421
|
}
|
|
3422
|
+
function* resendInvitationLinkToAllSubTenantsMock({ payload, }) {
|
|
3423
|
+
const { callback } = payload, body = tslib.__rest(payload, ["callback"]);
|
|
3424
|
+
yield effects.put(actions.setTeamLoader({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: body.email }));
|
|
3425
|
+
yield vendor_index.delay();
|
|
3426
|
+
callback === null || callback === void 0 ? void 0 : callback(true);
|
|
3427
|
+
yield effects.put(actions.setTeamLoader({ key: exports.TeamStateKeys.RESEND_INVITATION_LINK, value: false }));
|
|
3428
|
+
}
|
|
3410
3429
|
function* teamSagasMock() {
|
|
3411
3430
|
yield effects.takeLatest(actions.loadUsers, loadUsersMock);
|
|
3412
3431
|
yield effects.takeLatest(actions.loadAllSubTenantsUsers, loadAllSubTenantsUsersMock);
|
|
@@ -3418,6 +3437,7 @@ function* teamSagasMock() {
|
|
|
3418
3437
|
yield effects.takeEvery(actions.deleteUserFromSubTenants, deleteUserFromSubTenantsMock);
|
|
3419
3438
|
yield effects.takeEvery(actions.resendActivationLink, resendActivationLinkMock);
|
|
3420
3439
|
yield effects.takeEvery(actions.resendInvitationLink, resendInvitationLinkMock);
|
|
3440
|
+
yield effects.takeEvery(actions.resendInvitationLinkToAllSubTenants, resendInvitationLinkToAllSubTenantsMock);
|
|
3421
3441
|
yield effects.takeEvery(actions.openAddUserDialog, openAddUserDialog);
|
|
3422
3442
|
yield effects.takeEvery(actions.closeAddUserDialog, closeAddUserDialog);
|
|
3423
3443
|
yield effects.takeEvery(actions.openDeleteUserDialog, openDeleteUserDialog);
|
package/node/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('./index-
|
|
5
|
+
var auth_index = require('./index-deb612e3.js');
|
|
6
6
|
var audits_index = require('./audits/index.js');
|
|
7
7
|
var connectivity_index = require('./connectivity/index.js');
|
|
8
8
|
var subscriptions_index = require('./subscriptions/index.js');
|
package/node/toolkit/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var auth_index = require('../index-
|
|
5
|
+
var auth_index = require('../index-deb612e3.js');
|
|
6
6
|
var toolkit = require('@reduxjs/toolkit');
|
|
7
7
|
var createSagaMiddleware = require('redux-saga');
|
|
8
8
|
var effects = require('redux-saga/effects');
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
3
|
"libName": "FronteggReduxStore",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.64.2",
|
|
5
5
|
"author": "Frontegg LTD",
|
|
6
6
|
"main": "./node/index.js",
|
|
7
7
|
"module": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@frontegg/rest-api": "2.10.
|
|
10
|
+
"@frontegg/rest-api": "^2.10.87",
|
|
11
11
|
"@reduxjs/toolkit": "^1.5.0",
|
|
12
12
|
"redux-saga": "^1.1.0",
|
|
13
13
|
"tslib": "^2.3.1",
|