@frontegg/redux-store 5.54.0 → 5.55.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/index.js +1 -14
- package/auth/dummy.d.ts +1 -0
- package/auth/index.js +36 -10
- package/node/audits/index.js +1 -14
- package/node/auth/index.js +1 -1
- package/node/{index-320f87c9.js → index-a156a30e.js} +36 -10
- package/node/index.js +1 -1
- package/node/toolkit/index.js +1 -1
- package/package.json +1 -1
package/audits/index.js
CHANGED
|
@@ -53,19 +53,6 @@ const { reducer, actions: sliceActions } = createSlice({
|
|
|
53
53
|
});
|
|
54
54
|
const actions = Object.assign(Object.assign(Object.assign({}, sliceActions), actions$2), actions$1);
|
|
55
55
|
|
|
56
|
-
const dummyUsersData = [
|
|
57
|
-
{ user: 'Dianne Deck', email: 'dianne@frontegg.com' },
|
|
58
|
-
{ user: 'Betty Martin', email: 'betty@frontegg.com' },
|
|
59
|
-
{ user: 'Joann Schmidt', email: 'joann@frontegg.com' },
|
|
60
|
-
{ user: 'Kristine Bodnar', email: 'kristine@frontegg.com' },
|
|
61
|
-
{ user: 'Harold Marcus', email: 'harold@frontegg.com' },
|
|
62
|
-
{ user: 'Alice Williams', email: 'allice@frontegg.com' },
|
|
63
|
-
{ user: 'Beatrice Wilkinson', email: 'beatrice@frontegg.com' },
|
|
64
|
-
];
|
|
65
|
-
const randomUser = () => {
|
|
66
|
-
const random = Math.floor(Math.random() * dummyUsersData.length);
|
|
67
|
-
return dummyUsersData[random];
|
|
68
|
-
};
|
|
69
56
|
const sortMethodBasedOnOrder = (sortBy, desc) => (a, b) => {
|
|
70
57
|
if (a[sortBy] > b[sortBy]) {
|
|
71
58
|
return desc ? -1 : 1;
|
|
@@ -131,7 +118,7 @@ const randomAction = () => {
|
|
|
131
118
|
};
|
|
132
119
|
const auditLogsDataDemo = {
|
|
133
120
|
total: 20,
|
|
134
|
-
data: Array.from(Array(
|
|
121
|
+
data: Array.from(Array(5).keys()).map((i) => (Object.assign(Object.assign({ ip: '198.143.51.1', user: 'Demo User Name', email: 'demo-user@frontegg.com' }, randomAction()), { json: { key1: 'value1', key2: 'value2', key3: 'value3', key4: 'value4' }, tenantId: 'my-tenant-id', vendorId: 'my-vendor-id', userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36', createdAt: `2022-04-07 10:${50 - i}:40.201` }))),
|
|
135
122
|
};
|
|
136
123
|
const auditLogsMetadataDemo = {
|
|
137
124
|
properties: [
|
package/auth/dummy.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const samlMetadataDemo: ISamlMetadata;
|
|
|
20
20
|
export declare const rolesDemo: ITeamUserRole[];
|
|
21
21
|
export declare const ssoStateDemo: SSOState;
|
|
22
22
|
export declare const permissionsDemo: ITeamUserPermission[];
|
|
23
|
+
export declare const userTeamDemo2: ITeamUser;
|
|
23
24
|
export declare const userTeamDemo: ITeamUser;
|
|
24
25
|
export declare const usersDemo: ITeamUser[];
|
|
25
26
|
export declare const tenantsDemo: ITenantsResponse[];
|
package/auth/index.js
CHANGED
|
@@ -599,7 +599,7 @@ const apiTokensDataDemo = {
|
|
|
599
599
|
clientId: 'CLIENT_ID_16806d3d-8fc3-4450-be97-abdaf66b723e',
|
|
600
600
|
secret: 'SECRET_16806d3d-8fc3-4450-be97-abdaf66b723e',
|
|
601
601
|
createdAt: 'createdAt',
|
|
602
|
-
description: '
|
|
602
|
+
description: 'Demo API Token (preview only)',
|
|
603
603
|
};
|
|
604
604
|
const apiTokensDataTenantDemo = Object.assign(Object.assign({}, apiTokensDataDemo), { roleIds: [], tenantId: 'my-tenant-id', createdByUserId: 'createdByUserId' });
|
|
605
605
|
const roleDemo = [
|
|
@@ -630,8 +630,8 @@ const rolePermissionDemo = [
|
|
|
630
630
|
];
|
|
631
631
|
const userProfileDemo = {
|
|
632
632
|
id: 'testId',
|
|
633
|
-
name: '
|
|
634
|
-
email: '
|
|
633
|
+
name: 'Demo User Name',
|
|
634
|
+
email: 'demo-user@frontegg.com',
|
|
635
635
|
mfaEnrolled: true,
|
|
636
636
|
profileImage: undefined,
|
|
637
637
|
profilePictureUrl: 'https://www.gravatar.com/avatar/42b2ad2bad6fc9b9db5086dfcf8072ac?d=https://ui-avatars.com/api/fe/128/random?t=1617261890875?t=1617261917434',
|
|
@@ -640,7 +640,14 @@ const userProfileDemo = {
|
|
|
640
640
|
tenantId: 'my-tenant-id',
|
|
641
641
|
tenantIds: ['my-tenant-id'],
|
|
642
642
|
activatedForTenant: true,
|
|
643
|
-
metadata: {
|
|
643
|
+
metadata: JSON.stringify({
|
|
644
|
+
phoneNumber: '+972-54123456',
|
|
645
|
+
jobTitle: 'Developer',
|
|
646
|
+
address: {
|
|
647
|
+
city: "Tel Aviv",
|
|
648
|
+
country: "Israel"
|
|
649
|
+
}
|
|
650
|
+
}),
|
|
644
651
|
roleIds: undefined,
|
|
645
652
|
verified: undefined,
|
|
646
653
|
};
|
|
@@ -757,10 +764,10 @@ const permissionsDemo = [
|
|
|
757
764
|
categoryId: 'categoryId',
|
|
758
765
|
},
|
|
759
766
|
];
|
|
760
|
-
const
|
|
761
|
-
id: '
|
|
762
|
-
email: '
|
|
763
|
-
name: '
|
|
767
|
+
const userTeamDemo2 = {
|
|
768
|
+
id: 'id2',
|
|
769
|
+
email: 'demo-user2@frontegg.com',
|
|
770
|
+
name: 'Demo User Name2',
|
|
764
771
|
phone: undefined,
|
|
765
772
|
profileImage: undefined,
|
|
766
773
|
profileImageUrl: undefined,
|
|
@@ -768,18 +775,37 @@ const userTeamDemo = {
|
|
|
768
775
|
vendorId: 'vendorId',
|
|
769
776
|
roleIds: [],
|
|
770
777
|
activatedForTenant: true,
|
|
778
|
+
verified: false,
|
|
771
779
|
createdAt: new Date().toISOString(),
|
|
772
780
|
customData: undefined,
|
|
773
781
|
lastLogin: undefined,
|
|
774
782
|
mfaEnabled: undefined,
|
|
775
783
|
roles: [],
|
|
784
|
+
}; // TODO add verified to ITeamUser
|
|
785
|
+
const userTeamDemo = {
|
|
786
|
+
id: 'id',
|
|
787
|
+
email: 'demo-user@frontegg.com',
|
|
788
|
+
name: 'Demo User Name',
|
|
789
|
+
phone: undefined,
|
|
790
|
+
profileImage: undefined,
|
|
791
|
+
profileImageUrl: undefined,
|
|
792
|
+
tenantId: 'tenantId',
|
|
793
|
+
vendorId: 'vendorId',
|
|
794
|
+
roleIds: [],
|
|
795
|
+
activatedForTenant: true,
|
|
796
|
+
createdAt: new Date(2022, 4, 1).toISOString(),
|
|
797
|
+
verified: true,
|
|
798
|
+
customData: undefined,
|
|
799
|
+
lastLogin: new Date(2022, 5, 25).toISOString(),
|
|
800
|
+
mfaEnabled: undefined,
|
|
801
|
+
roles: [],
|
|
776
802
|
};
|
|
777
|
-
const usersDemo = [userTeamDemo];
|
|
803
|
+
const usersDemo = [userTeamDemo, userTeamDemo2];
|
|
778
804
|
const tenantsDemo = [
|
|
779
805
|
{
|
|
780
806
|
id: 'my-tenant-id',
|
|
781
807
|
isReseller: false,
|
|
782
|
-
name: '
|
|
808
|
+
name: 'Frontegg demo',
|
|
783
809
|
deletedAt: null,
|
|
784
810
|
metadata: undefined,
|
|
785
811
|
tenantId: 'my-tenant-id',
|
package/node/audits/index.js
CHANGED
|
@@ -56,19 +56,6 @@ const { reducer, actions: sliceActions } = toolkit.createSlice({
|
|
|
56
56
|
});
|
|
57
57
|
const actions = Object.assign(Object.assign(Object.assign({}, sliceActions), actions$2), actions$1);
|
|
58
58
|
|
|
59
|
-
const dummyUsersData = [
|
|
60
|
-
{ user: 'Dianne Deck', email: 'dianne@frontegg.com' },
|
|
61
|
-
{ user: 'Betty Martin', email: 'betty@frontegg.com' },
|
|
62
|
-
{ user: 'Joann Schmidt', email: 'joann@frontegg.com' },
|
|
63
|
-
{ user: 'Kristine Bodnar', email: 'kristine@frontegg.com' },
|
|
64
|
-
{ user: 'Harold Marcus', email: 'harold@frontegg.com' },
|
|
65
|
-
{ user: 'Alice Williams', email: 'allice@frontegg.com' },
|
|
66
|
-
{ user: 'Beatrice Wilkinson', email: 'beatrice@frontegg.com' },
|
|
67
|
-
];
|
|
68
|
-
const randomUser = () => {
|
|
69
|
-
const random = Math.floor(Math.random() * dummyUsersData.length);
|
|
70
|
-
return dummyUsersData[random];
|
|
71
|
-
};
|
|
72
59
|
const sortMethodBasedOnOrder = (sortBy, desc) => (a, b) => {
|
|
73
60
|
if (a[sortBy] > b[sortBy]) {
|
|
74
61
|
return desc ? -1 : 1;
|
|
@@ -134,7 +121,7 @@ const randomAction = () => {
|
|
|
134
121
|
};
|
|
135
122
|
const auditLogsDataDemo = {
|
|
136
123
|
total: 20,
|
|
137
|
-
data: Array.from(Array(
|
|
124
|
+
data: Array.from(Array(5).keys()).map((i) => (Object.assign(Object.assign({ ip: '198.143.51.1', user: 'Demo User Name', email: 'demo-user@frontegg.com' }, randomAction()), { json: { key1: 'value1', key2: 'value2', key3: 'value3', key4: 'value4' }, tenantId: 'my-tenant-id', vendorId: 'my-vendor-id', userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36', createdAt: `2022-04-07 10:${50 - i}:40.201` }))),
|
|
138
125
|
};
|
|
139
126
|
const auditLogsMetadataDemo = {
|
|
140
127
|
properties: [
|
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-a156a30e.js');
|
|
6
6
|
var constants = require('../constants-52e37c08.js');
|
|
7
7
|
var restApi = require('@frontegg/rest-api');
|
|
8
8
|
require('@reduxjs/toolkit');
|
|
@@ -608,7 +608,7 @@ const apiTokensDataDemo = {
|
|
|
608
608
|
clientId: 'CLIENT_ID_16806d3d-8fc3-4450-be97-abdaf66b723e',
|
|
609
609
|
secret: 'SECRET_16806d3d-8fc3-4450-be97-abdaf66b723e',
|
|
610
610
|
createdAt: 'createdAt',
|
|
611
|
-
description: '
|
|
611
|
+
description: 'Demo API Token (preview only)',
|
|
612
612
|
};
|
|
613
613
|
const apiTokensDataTenantDemo = Object.assign(Object.assign({}, apiTokensDataDemo), { roleIds: [], tenantId: 'my-tenant-id', createdByUserId: 'createdByUserId' });
|
|
614
614
|
const roleDemo = [
|
|
@@ -639,8 +639,8 @@ const rolePermissionDemo = [
|
|
|
639
639
|
];
|
|
640
640
|
const userProfileDemo = {
|
|
641
641
|
id: 'testId',
|
|
642
|
-
name: '
|
|
643
|
-
email: '
|
|
642
|
+
name: 'Demo User Name',
|
|
643
|
+
email: 'demo-user@frontegg.com',
|
|
644
644
|
mfaEnrolled: true,
|
|
645
645
|
profileImage: undefined,
|
|
646
646
|
profilePictureUrl: 'https://www.gravatar.com/avatar/42b2ad2bad6fc9b9db5086dfcf8072ac?d=https://ui-avatars.com/api/fe/128/random?t=1617261890875?t=1617261917434',
|
|
@@ -649,7 +649,14 @@ const userProfileDemo = {
|
|
|
649
649
|
tenantId: 'my-tenant-id',
|
|
650
650
|
tenantIds: ['my-tenant-id'],
|
|
651
651
|
activatedForTenant: true,
|
|
652
|
-
metadata: {
|
|
652
|
+
metadata: JSON.stringify({
|
|
653
|
+
phoneNumber: '+972-54123456',
|
|
654
|
+
jobTitle: 'Developer',
|
|
655
|
+
address: {
|
|
656
|
+
city: "Tel Aviv",
|
|
657
|
+
country: "Israel"
|
|
658
|
+
}
|
|
659
|
+
}),
|
|
653
660
|
roleIds: undefined,
|
|
654
661
|
verified: undefined,
|
|
655
662
|
};
|
|
@@ -766,10 +773,10 @@ const permissionsDemo = [
|
|
|
766
773
|
categoryId: 'categoryId',
|
|
767
774
|
},
|
|
768
775
|
];
|
|
769
|
-
const
|
|
770
|
-
id: '
|
|
771
|
-
email: '
|
|
772
|
-
name: '
|
|
776
|
+
const userTeamDemo2 = {
|
|
777
|
+
id: 'id2',
|
|
778
|
+
email: 'demo-user2@frontegg.com',
|
|
779
|
+
name: 'Demo User Name2',
|
|
773
780
|
phone: undefined,
|
|
774
781
|
profileImage: undefined,
|
|
775
782
|
profileImageUrl: undefined,
|
|
@@ -777,18 +784,37 @@ const userTeamDemo = {
|
|
|
777
784
|
vendorId: 'vendorId',
|
|
778
785
|
roleIds: [],
|
|
779
786
|
activatedForTenant: true,
|
|
787
|
+
verified: false,
|
|
780
788
|
createdAt: new Date().toISOString(),
|
|
781
789
|
customData: undefined,
|
|
782
790
|
lastLogin: undefined,
|
|
783
791
|
mfaEnabled: undefined,
|
|
784
792
|
roles: [],
|
|
793
|
+
}; // TODO add verified to ITeamUser
|
|
794
|
+
const userTeamDemo = {
|
|
795
|
+
id: 'id',
|
|
796
|
+
email: 'demo-user@frontegg.com',
|
|
797
|
+
name: 'Demo User Name',
|
|
798
|
+
phone: undefined,
|
|
799
|
+
profileImage: undefined,
|
|
800
|
+
profileImageUrl: undefined,
|
|
801
|
+
tenantId: 'tenantId',
|
|
802
|
+
vendorId: 'vendorId',
|
|
803
|
+
roleIds: [],
|
|
804
|
+
activatedForTenant: true,
|
|
805
|
+
createdAt: new Date(2022, 4, 1).toISOString(),
|
|
806
|
+
verified: true,
|
|
807
|
+
customData: undefined,
|
|
808
|
+
lastLogin: new Date(2022, 5, 25).toISOString(),
|
|
809
|
+
mfaEnabled: undefined,
|
|
810
|
+
roles: [],
|
|
785
811
|
};
|
|
786
|
-
const usersDemo = [userTeamDemo];
|
|
812
|
+
const usersDemo = [userTeamDemo, userTeamDemo2];
|
|
787
813
|
const tenantsDemo = [
|
|
788
814
|
{
|
|
789
815
|
id: 'my-tenant-id',
|
|
790
816
|
isReseller: false,
|
|
791
|
-
name: '
|
|
817
|
+
name: 'Frontegg demo',
|
|
792
818
|
deletedAt: null,
|
|
793
819
|
metadata: undefined,
|
|
794
820
|
tenantId: 'my-tenant-id',
|
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-a156a30e.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-a156a30e.js');
|
|
6
6
|
var toolkit = require('@reduxjs/toolkit');
|
|
7
7
|
var createSagaMiddleware = require('redux-saga');
|
|
8
8
|
var effects = require('redux-saga/effects');
|