@frontegg/redux-store 6.180.0-alpha.0 → 6.180.0-alpha.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.
@@ -7,7 +7,7 @@ const _excluded = ["callback"],
7
7
  import { all, call, put, takeEvery, takeLeading, select } from 'redux-saga/effects';
8
8
  import { api } from '@frontegg/rest-api';
9
9
  import { actions } from '../reducer';
10
- import { rolesAdminViewerDemo } from '../dummy';
10
+ import { permissionCategoriesMock, permissionsMock, rolesAdminViewerDemo } from '../dummy';
11
11
  import { errorHandler } from '../../utils';
12
12
  import { RolesStateKeys } from './types';
13
13
  function* loadRolesAndPermissions({
@@ -229,7 +229,10 @@ function* loadRolesAndPermissionsMock({
229
229
  }));
230
230
  try {
231
231
  yield put(actions.setRolesState({
232
- roles: rolesAdminViewerDemo
232
+ roles: rolesAdminViewerDemo,
233
+ permissionCategories: permissionCategoriesMock,
234
+ permissions: permissionsMock,
235
+ selectedRole: rolesAdminViewerDemo[2]
233
236
  }));
234
237
  } catch (e) {
235
238
  yield put(actions.setRolesStateError({
package/auth/dummy.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IRole, ISamlConfiguration, ISamlMetadata, ISecurityPolicy, ISecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyPasswordHistory, ITeamUser, ITeamUserPermission, ITeamUserRole, ITenantsResponse, IVendorConfig, ISubTenantUser, ISessionConfigurations, IpRestriction, IPRestrictionsConfig, ISessionResponse, IUserProfile, GetRecommendationsResponse, GetInsightsResponse } from '@frontegg/rest-api';
1
+ import { IRole, ISamlConfiguration, ISamlMetadata, ISecurityPolicy, ISecurityPolicyLockout, ISecurityPolicyMfa, ISecurityPolicyPasswordHistory, ITeamUser, ITeamUserPermission, ITeamUserRole, ITenantsResponse, IVendorConfig, ISubTenantUser, ISessionConfigurations, IpRestriction, IPRestrictionsConfig, ISessionResponse, IUserProfile, GetRecommendationsResponse, GetInsightsResponse, IRolePermissionCategory, IRolePermission } from '@frontegg/rest-api';
2
2
  import { IApiTokensData, ITenantApiTokensData } from './ApiTokensState/interfaces';
3
3
  import { IGroup } from '../auth/GroupsState/interfaces';
4
4
  import { User } from './interfaces';
@@ -43,3 +43,5 @@ export declare const securityCenterInsightsMock: GetInsightsResponse;
43
43
  export declare const securityCenterBreachedPasswordUsersMock: ISecurityCenterTable;
44
44
  export declare const securityCenterInactivityPasswordUsersMock: ISecurityCenterTable;
45
45
  export declare const securityCenterUnenrolledMfaUsersMock: ISecurityCenterTable;
46
+ export declare const permissionsMock: IRolePermission[];
47
+ export declare const permissionCategoriesMock: IRolePermissionCategory[];
package/auth/dummy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { AuthStrategyEnum, RestrictionType, GroupManagedByEnum, InsightCode, RecommendationSeverity, RecommendationCode, SecurityCategory } from '@frontegg/rest-api';
2
+ import { AuthStrategyEnum, RestrictionType, GroupManagedByEnum, InsightCode, RecommendationSeverity, RecommendationCode, SecurityCategory, PermissionAssignmentTypeEnum } from '@frontegg/rest-api';
3
3
  import { MachineToMachineAuthStrategy } from './ApiTokensState/interfaces';
4
4
  export const apiTokensDataDemo = {
5
5
  clientId: 'CLIENT_ID_16806d3d-8fc3-4450-be97-abdaf66b723e',
@@ -20,8 +20,7 @@ export const rolesAdminViewerDemo = [{
20
20
  isDefault: false,
21
21
  createdAt: new Date(),
22
22
  updatedAt: new Date(),
23
- permissions: ['5b7dafe6-12a1-402b-9082-8eb2777cfcd8', 'da1d1990-c99c-4086-b845-2d465de3227b'],
24
- tenantId: 'tenantId',
23
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03'],
25
24
  vendorId: 'vendorId'
26
25
  }, {
27
26
  id: 'b43b2c4b-e056-4eec-8c55-d200a475bbc0',
@@ -31,7 +30,17 @@ export const rolesAdminViewerDemo = [{
31
30
  isDefault: true,
32
31
  createdAt: new Date(),
33
32
  updatedAt: new Date(),
34
- permissions: ['502b112e-50fd-4e8d-875e-3abda628d94a', 'da015508-7cb1-4dcd-9436-d0518a2ecd21'],
33
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03', '16647407-ed6f-4ca6-83a0-86225d921959', 'f403c6b9-1abe-4ec7-9971-aa032255fc25', 'a43e059d-d731-44b1-94bb-fb6b16c62210'],
34
+ vendorId: 'vendorId'
35
+ }, {
36
+ id: '1234',
37
+ key: 'Support',
38
+ name: 'Support',
39
+ description: null,
40
+ isDefault: true,
41
+ createdAt: new Date(),
42
+ updatedAt: new Date(),
43
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03', 'f26b00f8-ffe0-4739-b15c-7db15c27ea26', 'a9c803b0-ebfa-49b9-9607-f0d3a390ee61'],
35
44
  tenantId: 'tenantId',
36
45
  vendorId: 'vendorId'
37
46
  }];
@@ -41,14 +50,14 @@ export const roleDemo = [{
41
50
  isDefault: false,
42
51
  name: 'Admin',
43
52
  description: null,
44
- permissions: ['adminPermissionId'],
53
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03'],
45
54
  tenantId: 'tenantId',
46
55
  vendorId: 'vendorId',
47
56
  createdAt: new Date(),
48
57
  updatedAt: new Date()
49
58
  }];
50
59
  export const rolePermissionDemo = [{
51
- id: 'adminPermissionId',
60
+ id: '8d71b676-754c-4600-afe7-ca5add1e6809',
52
61
  key: 'fe.*',
53
62
  name: 'General Admin',
54
63
  description: 'description',
@@ -587,4 +596,370 @@ export const securityCenterUnenrolledMfaUsersMock = {
587
596
  totalUsersItems: 1,
588
597
  totalUsersPages: 1,
589
598
  usersPageOffset: 0
590
- };
599
+ };
600
+ export const permissionsMock = [{
601
+ id: '8d71b676-754c-4600-afe7-ca5add1e6809',
602
+ key: 'fe.secure.*',
603
+ name: 'Secure write',
604
+ description: 'all secure access permissions',
605
+ categoryId: '77154759-0a04-4669-b6b4-0858d3c1190e',
606
+ fePermission: true,
607
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
608
+ createdAt: new Date(),
609
+ updatedAt: new Date()
610
+ }, {
611
+ id: '85e1fd7b-2bb7-498f-8521-5f8e5774c01e',
612
+ key: 'fe.account-hierarchy.write.subAccountAccess',
613
+ name: 'Give access to sub accounts',
614
+ description: 'Give a user access to sub account',
615
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
616
+ createdAt: new Date(),
617
+ updatedAt: new Date(),
618
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
619
+ fePermission: true
620
+ }, {
621
+ id: 'a1807695-54a2-4f95-95de-a9b246488aae',
622
+ key: 'fe.account-hierarchy.read.subAccount',
623
+ name: 'Read sub accounts',
624
+ description: 'Read sub accounts',
625
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
626
+ createdAt: new Date(),
627
+ updatedAt: new Date(),
628
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
629
+ fePermission: true
630
+ }, {
631
+ id: '04dbcc11-61db-40a9-9577-9b73e50d1d03',
632
+ key: 'fe.secure.read.*',
633
+ name: 'Secure read',
634
+ description: 'all secure access read permissions',
635
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
636
+ createdAt: new Date(),
637
+ updatedAt: new Date(),
638
+ categoryId: '77154759-0a04-4669-b6b4-0858d3c1190e',
639
+ fePermission: true
640
+ }, {
641
+ id: 'a1807695-54a2-4f95-95de-a9b246488aae',
642
+ key: 'fe.account-hierarchy.read.subAccount',
643
+ name: 'Read sub accounts',
644
+ description: 'Read sub accounts',
645
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
646
+ createdAt: new Date(),
647
+ updatedAt: new Date(),
648
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
649
+ fePermission: true
650
+ }, {
651
+ id: '85e1fd7b-2bb7-498f-8521-5f8e5774c01e',
652
+ key: 'fe.account-hierarchy.write.subAccountAccess',
653
+ name: 'Give access to sub accounts',
654
+ description: 'Give a user access to sub account',
655
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
656
+ createdAt: new Date(),
657
+ updatedAt: new Date(),
658
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
659
+ fePermission: true
660
+ }, {
661
+ id: 'a9c803b0-ebfa-49b9-9607-f0d3a390ee61',
662
+ key: 'fe.account-settings.delete.account',
663
+ name: 'Delete Account',
664
+ description: 'Delete my account',
665
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
666
+ createdAt: new Date(),
667
+ updatedAt: new Date(),
668
+ categoryId: '42aaebe1-893d-4da5-99d7-375a4537b7a4',
669
+ fePermission: true
670
+ }, {
671
+ id: 'f26b00f8-ffe0-4739-b15c-7db15c27ea26',
672
+ key: 'fe.account-settings.write.custom-login-box',
673
+ name: 'Edit custom login settings',
674
+ description: "Write account's custom login box styling",
675
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
676
+ createdAt: new Date(),
677
+ updatedAt: new Date(),
678
+ categoryId: '42aaebe1-893d-4da5-99d7-375a4537b7a4',
679
+ fePermission: true
680
+ }, {
681
+ id: 'a43e059d-d731-44b1-94bb-fb6b16c62210',
682
+ key: 'fe.connectivity.delete.*',
683
+ name: 'Connectivity delete',
684
+ description: 'all connectivity delete permissions',
685
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
686
+ createdAt: new Date(),
687
+ updatedAt: new Date(),
688
+ categoryId: 'd18fccaa-e09a-4e6e-b902-cc9c615ff12d',
689
+ fePermission: true
690
+ }, {
691
+ id: 'f403c6b9-1abe-4ec7-9971-aa032255fc25',
692
+ key: 'fe.connectivity.delete.slackAppRegistration',
693
+ name: 'Delete slack application registration',
694
+ description: 'allow user to delete slack app registration',
695
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
696
+ createdAt: new Date(),
697
+ updatedAt: new Date(),
698
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
699
+ fePermission: true
700
+ }, {
701
+ id: 'e8c0e727-f562-449a-82c5-f7691defde02',
702
+ key: 'fe.connectivity.read.*',
703
+ name: 'Connectivity read',
704
+ description: 'all connectivity read permissions',
705
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
706
+ createdAt: new Date(),
707
+ updatedAt: new Date(),
708
+ categoryId: 'd18fccaa-e09a-4e6e-b902-cc9c615ff12d',
709
+ fePermission: true
710
+ }, {
711
+ id: '2a5dcd6d-57a3-45c4-815f-c265609cc1f7',
712
+ key: 'fe.connectivity.read.emailConfig',
713
+ name: 'Read email configuration',
714
+ description: 'read email integration configuration',
715
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
716
+ createdAt: new Date(),
717
+ updatedAt: new Date(),
718
+ categoryId: '2d7b4be7-8269-4ff4-81d6-0c92e95790d5',
719
+ fePermission: true
720
+ }, {
721
+ id: '4fee0eb0-5b17-450b-bea4-b9b908230bda',
722
+ key: 'fe.connectivity.read.eventCategories',
723
+ name: 'Read events categories',
724
+ description: 'view connectivity events categories',
725
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
726
+ createdAt: new Date(),
727
+ updatedAt: new Date(),
728
+ categoryId: '31c7a260-55d6-43d5-a872-4f9e22982ff5',
729
+ fePermission: true
730
+ }, {
731
+ id: '750a96a5-8abf-4340-b91a-723c7bb8bcfd',
732
+ key: 'fe.connectivity.read.events',
733
+ name: 'Read events',
734
+ description: 'view connectivity events',
735
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
736
+ createdAt: new Date(),
737
+ updatedAt: new Date(),
738
+ categoryId: '31c7a260-55d6-43d5-a872-4f9e22982ff5',
739
+ fePermission: true
740
+ }, {
741
+ id: 'ef2a5f1a-74c5-431f-b1a6-d4fb5026e374',
742
+ key: 'fe.connectivity.read.slackApp',
743
+ name: 'Read slack application',
744
+ description: 'get slack application configuration in order to register',
745
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
746
+ createdAt: new Date(),
747
+ updatedAt: new Date(),
748
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
749
+ fePermission: true
750
+ }, {
751
+ id: '9fc1fa37-a8b9-4931-b2b5-5de55df25289',
752
+ key: 'fe.connectivity.read.slackChannels',
753
+ name: 'Read slack channels',
754
+ description: 'view registered slack workspace channels',
755
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
756
+ createdAt: new Date(),
757
+ updatedAt: new Date(),
758
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
759
+ fePermission: true
760
+ }, {
761
+ id: '87c3df9d-0ab2-4e97-bfc8-777a68ba2543',
762
+ key: 'fe.connectivity.read.slackSubscriptions',
763
+ name: 'Read slack subscriptions',
764
+ description: 'view slack events subscriptions',
765
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
766
+ createdAt: new Date(),
767
+ updatedAt: new Date(),
768
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
769
+ fePermission: true
770
+ }, {
771
+ id: '7826470b-151f-4bab-b2c0-785e09878616',
772
+ key: 'fe.connectivity.read.slackUsers',
773
+ name: 'Read slack users',
774
+ description: 'view registered slack workspace users',
775
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
776
+ createdAt: new Date(),
777
+ updatedAt: new Date(),
778
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
779
+ fePermission: true
780
+ }, {
781
+ id: 'ee779734-a7e3-47b3-ace9-944f9bee8ad8',
782
+ key: 'fe.connectivity.read.smsConfig',
783
+ name: 'Read SMS configuration',
784
+ description: 'read SMS integration configuration',
785
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
786
+ createdAt: new Date(),
787
+ updatedAt: new Date(),
788
+ categoryId: '5743fccc-b4ea-4907-bdca-7446ea088974',
789
+ fePermission: true
790
+ }, {
791
+ id: '54583a96-c731-4a84-9abc-1b8b827f06ae',
792
+ key: 'fe.connectivity.read.userBellNotifications',
793
+ name: 'Read bell notifications',
794
+ description: 'view user bell notifications',
795
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
796
+ createdAt: new Date(),
797
+ updatedAt: new Date(),
798
+ categoryId: '18d2584b-7f03-4038-ab93-bc2b0f4511be',
799
+ fePermission: true
800
+ }, {
801
+ id: '2dfde8ef-7df2-4426-bb8d-33615e399a4d',
802
+ key: 'fe.connectivity.read.webhookLogs',
803
+ name: 'Read webhooks logs',
804
+ description: 'view webhooks logs',
805
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
806
+ createdAt: new Date(),
807
+ updatedAt: new Date(),
808
+ categoryId: 'e74e5390-396b-429c-9544-62417912d018',
809
+ fePermission: true
810
+ }, {
811
+ id: '16647407-ed6f-4ca6-83a0-86225d921959',
812
+ key: 'fe.connectivity.read.webhooks',
813
+ name: 'Read webhooks',
814
+ description: 'view webhooks configuration',
815
+ assignmentType: PermissionAssignmentTypeEnum.ASSIGNABLE,
816
+ createdAt: new Date(),
817
+ updatedAt: new Date(),
818
+ categoryId: 'e74e5390-396b-429c-9544-62417912d018',
819
+ fePermission: true
820
+ }];
821
+ export const permissionCategoriesMock = [{
822
+ id: 'd9b4dbd0-476c-4708-b079-d9e6e4758971',
823
+ name: 'test',
824
+ description: '',
825
+ createdAt: new Date(),
826
+ updatedAt: new Date(),
827
+ permissionIds: [],
828
+ feCategory: false
829
+ }, {
830
+ id: '2b3f1746-1135-4b8d-aff3-5697cffc4482',
831
+ name: 'SAML',
832
+ description: 'Secure access SAML',
833
+ createdAt: new Date(),
834
+ updatedAt: new Date(),
835
+ permissionIds: ['8ea45a49-c403-4551-9da9-77f5da44f130', '8d94c261-1f7d-46bd-88a8-511e9f39273b', '7391ac41-b076-4386-8a14-7c2d798d3335', '6d8f5a1f-b3cd-421a-ba85-7784bdd97dc2', '3c989065-35e1-4198-8c9c-c94084222794'],
836
+ feCategory: true
837
+ }, {
838
+ id: '2c2281da-cf81-4943-9605-42969677e9fe',
839
+ name: 'Security Policies',
840
+ description: 'Secure access security policies',
841
+ createdAt: new Date(),
842
+ updatedAt: new Date(),
843
+ permissionIds: ['e5642338-b265-4ce5-94e4-8c21490033ad', 'daddb9e9-a836-4901-b175-2d1182dab6f5', 'bd4242ce-e84f-4387-9c41-c90e7d1fc6fa', 'ba33b4c1-47f0-4aa2-9e3a-fcf96229d355', 'ade4558f-5438-4383-b42b-728e8a745cc8', 'ad064258-2178-48f8-845c-ac1ce0217be8', 'acefb7fd-11c7-4a43-9544-b4fb461db94c', '909b6a0a-4efc-4464-90ac-b8b9a8f22fc2', '8a03c1e7-3991-4cca-8726-88c339766144', '860eb891-b9eb-44ba-94c1-51cfc2be9dd9', '719e09ae-5513-4cc3-bce1-97503a0a7658', '6fcd99e7-2206-4c45-86aa-411a87b7fcac', '235592cc-47c7-49cc-82e4-129f5333cc45', '2214404d-3140-44bf-9c9d-438fa56b5a50'],
844
+ feCategory: true
845
+ }, {
846
+ id: '2d7b4be7-8269-4ff4-81d6-0c92e95790d5',
847
+ name: 'Email integration',
848
+ description: 'Connectivity email integration',
849
+ createdAt: new Date(),
850
+ updatedAt: new Date(),
851
+ permissionIds: ['9a0bb3db-8bdb-4278-8f18-9c484bcd2f8c', '440f5616-ad85-43d1-b25d-1fd7930c6d26', '2a5dcd6d-57a3-45c4-815f-c265609cc1f7'],
852
+ feCategory: true
853
+ }, {
854
+ id: '31c7a260-55d6-43d5-a872-4f9e22982ff5',
855
+ name: 'Events',
856
+ description: 'Connectivity Events',
857
+ createdAt: new Date(),
858
+ updatedAt: new Date(),
859
+ permissionIds: ['85c90d0f-3bb0-40c0-914a-640c7ca9eea5', '750a96a5-8abf-4340-b91a-723c7bb8bcfd', '4fee0eb0-5b17-450b-bea4-b9b908230bda'],
860
+ feCategory: true
861
+ }, {
862
+ id: '42aaebe1-893d-4da5-99d7-375a4537b7a4',
863
+ name: 'Account settings',
864
+ description: 'Account profile settings',
865
+ createdAt: new Date(),
866
+ updatedAt: new Date(),
867
+ permissionIds: ['f26b00f8-ffe0-4739-b15c-7db15c27ea26', 'eb11313d-c7bb-43c0-a85d-c79bedab46b1', 'a9c803b0-ebfa-49b9-9607-f0d3a390ee61', '634d3fab-b470-4a92-a25b-245459ddd6db'],
868
+ feCategory: true
869
+ }, {
870
+ id: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
871
+ name: 'Slack integration',
872
+ description: 'Connectivity Slack integration',
873
+ createdAt: new Date(),
874
+ updatedAt: new Date(),
875
+ permissionIds: ['f403c6b9-1abe-4ec7-9971-aa032255fc25', 'ef2a5f1a-74c5-431f-b1a6-d4fb5026e374', 'e3231a61-e425-4ac1-aa87-654ab995af5c', '9fc1fa37-a8b9-4931-b2b5-5de55df25289', '87c3df9d-0ab2-4e97-bfc8-777a68ba2543', '7993a558-0af5-4d77-b9fc-8e8114f0ce0b', '7826470b-151f-4bab-b2c0-785e09878616', '5b0323d1-a0a0-4d4f-9bb8-b1634d9afa94', '4245736e-13b0-48fd-9a08-bc93809dcdaf', '2fccccb1-36f5-4c5c-8d93-73ab15d0b2d9'],
876
+ feCategory: true
877
+ }, {
878
+ id: '6b925df5-8b09-470a-9fcc-dae0beae1af4',
879
+ name: 'Audits',
880
+ description: 'Audit Logs',
881
+ createdAt: new Date(),
882
+ updatedAt: new Date(),
883
+ permissionIds: ['97085bb5-bec7-49eb-9744-4d35bbb83ad3'],
884
+ feCategory: true
885
+ }, {
886
+ id: '77154759-0a04-4669-b6b4-0858d3c1190e',
887
+ name: 'Secure access',
888
+ description: 'Secure access general',
889
+ createdAt: new Date(),
890
+ updatedAt: new Date(),
891
+ permissionIds: ['925e0c16-aead-41e6-b62f-8ddb2ea4ed06', '8d71b676-754c-4600-afe7-ca5add1e6809', '1c81d4ca-47a2-4564-b9d9-9d346b8cdbe7', '04dbcc11-61db-40a9-9577-9b73e50d1d03'],
892
+ feCategory: true
893
+ }, {
894
+ id: '916d6db5-489e-4109-95cf-57dee7802c57',
895
+ name: 'Webpush integration',
896
+ description: 'Webpush notifications integration',
897
+ createdAt: new Date(),
898
+ updatedAt: new Date(),
899
+ permissionIds: ['e5a7bbd3-f76b-4559-979d-885c5c75f72f', 'cb47ea6f-0a59-4694-97d0-9c32f6732e85'],
900
+ feCategory: true
901
+ }, {
902
+ id: '9707ef7f-afd3-4d1f-962e-68c0d876db53',
903
+ name: 'Subscriptions',
904
+ description: 'Subscriptions access general',
905
+ createdAt: new Date(),
906
+ updatedAt: new Date(),
907
+ permissionIds: ['ce03de78-a7f4-4498-acce-df4aae30ed0d', 'ae81dd56-2f94-4da8-9c16-b6c781b0dcb7', '72e55675-ea98-4f1a-85f0-09319cdcbcbf'],
908
+ feCategory: true
909
+ }, {
910
+ id: 'a71e2e14-0cdb-42df-b297-d00af2d4e62e',
911
+ name: 'Users management',
912
+ description: 'Secure access users management',
913
+ createdAt: new Date(),
914
+ updatedAt: new Date(),
915
+ permissionIds: ['e7263c99-874f-4e17-8d63-25ae3d9f5739', 'db957d5f-4048-4011-bcb4-5d21af0560e4', 'c52b0a96-dcff-4fba-aa8e-ce3a7336bde2', 'bc754ce1-ebbe-446a-bb84-4f287be0651c', '998756c3-773a-4771-b7a5-510e795fb5f4', '88565631-dc77-472c-b1d9-18674483c24b', '6b84ddeb-a242-48c5-bf2a-62105315518a', '61874f64-2204-4eec-8f02-0d38bd5a66b8', '4c47caae-d384-48bb-99bc-554aafa2888f', '43695880-d40e-412d-b342-434d58c5c8ca', '4003ac5b-326c-4dc2-afb1-8900e16ee443', '007c612d-5184-4f04-846e-d49c6591de0c'],
916
+ feCategory: true
917
+ }, {
918
+ id: 'c058e114-917c-4ad1-940e-11e9cc40b638',
919
+ name: 'Roles and permissions',
920
+ description: 'Secure access roles and permissions',
921
+ createdAt: new Date(),
922
+ updatedAt: new Date(),
923
+ permissionIds: ['c89960c8-6d67-44fa-a3aa-1a6826f45b0d', '93be3a9a-98a2-48b8-a146-a223e457c904', '80e49f9a-7628-4efc-913b-5f80ca92f106', '7f2576d6-cbbb-4c7b-bb70-d75a88d9ce47', '6a337814-34e5-4c24-a56f-d462c1db218b'],
924
+ feCategory: true
925
+ }, {
926
+ id: 'c38e9f59-ff65-4f9f-a31d-0bbfc44df347',
927
+ name: 'Groups',
928
+ description: 'Secure access groups',
929
+ createdAt: new Date(),
930
+ updatedAt: new Date(),
931
+ permissionIds: ['e1907e68-877d-4f2d-a266-d54e143c3c0c', '7a17405a-6c4b-4053-9843-f9d5e3af9e00', '5ee7bb2d-aad4-497f-94d2-9e255c470882', '4c406972-c815-46a9-8f47-9708adc334b8', '399bff45-aa24-49ae-9357-5f05a5eef3a5', '0037b3ad-5f77-4157-aa33-33c92b5fe057'],
932
+ feCategory: true
933
+ }, {
934
+ id: 'd18fccaa-e09a-4e6e-b902-cc9c615ff12d',
935
+ name: 'Connectivity',
936
+ description: 'Connectivity general',
937
+ createdAt: new Date(),
938
+ updatedAt: new Date(),
939
+ permissionIds: ['e8c0e727-f562-449a-82c5-f7691defde02', 'c88bf74a-66a4-48c2-bc1b-2e2aa057858d', 'a43e059d-d731-44b1-94bb-fb6b16c62210', '3f118e4c-badd-45d1-8056-3f3428be92ca'],
940
+ feCategory: true
941
+ }, {
942
+ id: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
943
+ name: 'Account Hierarchy',
944
+ description: 'Account hierarchy',
945
+ createdAt: new Date(),
946
+ updatedAt: new Date(),
947
+ permissionIds: ['b6e66e0f-c6d2-4113-865a-57d08b1dec45', 'a1807695-54a2-4f95-95de-a9b246488aae', '85e1fd7b-2bb7-498f-8521-5f8e5774c01e', '60cfedb4-64ca-40d1-8b3a-4288bcde1209'],
948
+ feCategory: true
949
+ }, {
950
+ id: 'e74e5390-396b-429c-9544-62417912d018',
951
+ name: 'Webhooks integration',
952
+ description: 'Connectivity webhooks integration',
953
+ createdAt: new Date(),
954
+ updatedAt: new Date(),
955
+ permissionIds: ['996e42ed-b1d8-4e36-aa76-58091c56bdf7', '8e7014d4-13fa-439a-a313-a2b9141f8b47', '2dfde8ef-7df2-4426-bb8d-33615e399a4d', '16647407-ed6f-4ca6-83a0-86225d921959'],
956
+ feCategory: true
957
+ }, {
958
+ id: 'e8af2833-1bbf-4ccf-8658-f6e0c60621b9',
959
+ name: 'API tokens',
960
+ description: 'Secure access API tokens',
961
+ createdAt: new Date(),
962
+ updatedAt: new Date(),
963
+ permissionIds: ['f03dc571-0769-4bcf-9c51-776b81582a14', 'c395932b-c732-41ad-bec6-ced7602bf79e', '94351961-e9c8-4c63-8818-ae8481ceab22', '5a744287-d01e-4a7a-8a37-2ce212ce5ff5', '0cf97f9f-84dc-4dfc-bf41-2ad4b6c072e9', '0c8cdac0-b364-4ab6-9737-7aa43f944013'],
964
+ feCategory: true
965
+ }];
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.180.0-alpha.0
1
+ /** @license Frontegg v6.180.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -237,7 +237,10 @@ function* loadRolesAndPermissionsMock({
237
237
  }));
238
238
  try {
239
239
  yield (0, _effects.put)(_reducer.actions.setRolesState({
240
- roles: _dummy.rolesAdminViewerDemo
240
+ roles: _dummy.rolesAdminViewerDemo,
241
+ permissionCategories: _dummy.permissionCategoriesMock,
242
+ permissions: _dummy.permissionsMock,
243
+ selectedRole: _dummy.rolesAdminViewerDemo[2]
241
244
  }));
242
245
  } catch (e) {
243
246
  yield (0, _effects.put)(_reducer.actions.setRolesStateError({
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.usersDemoV3 = exports.usersDemo = exports.userTeamDemoV3 = exports.userTeamDemo2V3 = exports.userTeamDemo2 = exports.userTeamDemo = exports.userSubTenantDemo = exports.userProfileDemo = exports.userDemo = exports.tenantsDemo = exports.ssoStateDemo = exports.sessionsMock = exports.sessionsConfigDummies = exports.securityCenterUnenrolledMfaUsersMock = exports.securityCenterRecommendationsMock = exports.securityCenterInsightsMock = exports.securityCenterInactivityPasswordUsersMock = exports.securityCenterBreachedPasswordUsersMock = exports.samlMetadataDemo = exports.samlConfigurationDemo = exports.rolesDemo = exports.rolesAdminViewerDemo = exports.rolePermissionDemo = exports.roleDemo = exports.publicSecurityPolicy = exports.profileStateDemo = exports.policyPasswordHistoryDemo = exports.policyMfaDemo = exports.policyLockoutDemo = exports.policyDemo = exports.permissionsDemo = exports.dummyIps = exports.dummyIpConfig = exports.apiTokensDataTenantDemo = exports.apiTokensDataDemo = exports.allUsersDemo = exports.allGroupsDummy = void 0;
7
+ exports.usersDemoV3 = exports.usersDemo = exports.userTeamDemoV3 = exports.userTeamDemo2V3 = exports.userTeamDemo2 = exports.userTeamDemo = exports.userSubTenantDemo = exports.userProfileDemo = exports.userDemo = exports.tenantsDemo = exports.ssoStateDemo = exports.sessionsMock = exports.sessionsConfigDummies = exports.securityCenterUnenrolledMfaUsersMock = exports.securityCenterRecommendationsMock = exports.securityCenterInsightsMock = exports.securityCenterInactivityPasswordUsersMock = exports.securityCenterBreachedPasswordUsersMock = exports.samlMetadataDemo = exports.samlConfigurationDemo = exports.rolesDemo = exports.rolesAdminViewerDemo = exports.rolePermissionDemo = exports.roleDemo = exports.publicSecurityPolicy = exports.profileStateDemo = exports.policyPasswordHistoryDemo = exports.policyMfaDemo = exports.policyLockoutDemo = exports.policyDemo = exports.permissionsMock = exports.permissionsDemo = exports.permissionCategoriesMock = exports.dummyIps = exports.dummyIpConfig = exports.apiTokensDataTenantDemo = exports.apiTokensDataDemo = exports.allUsersDemo = exports.allGroupsDummy = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _restApi = require("@frontegg/rest-api");
10
10
  var _interfaces = require("./ApiTokensState/interfaces");
@@ -29,8 +29,7 @@ const rolesAdminViewerDemo = [{
29
29
  isDefault: false,
30
30
  createdAt: new Date(),
31
31
  updatedAt: new Date(),
32
- permissions: ['5b7dafe6-12a1-402b-9082-8eb2777cfcd8', 'da1d1990-c99c-4086-b845-2d465de3227b'],
33
- tenantId: 'tenantId',
32
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03'],
34
33
  vendorId: 'vendorId'
35
34
  }, {
36
35
  id: 'b43b2c4b-e056-4eec-8c55-d200a475bbc0',
@@ -40,7 +39,17 @@ const rolesAdminViewerDemo = [{
40
39
  isDefault: true,
41
40
  createdAt: new Date(),
42
41
  updatedAt: new Date(),
43
- permissions: ['502b112e-50fd-4e8d-875e-3abda628d94a', 'da015508-7cb1-4dcd-9436-d0518a2ecd21'],
42
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03', '16647407-ed6f-4ca6-83a0-86225d921959', 'f403c6b9-1abe-4ec7-9971-aa032255fc25', 'a43e059d-d731-44b1-94bb-fb6b16c62210'],
43
+ vendorId: 'vendorId'
44
+ }, {
45
+ id: '1234',
46
+ key: 'Support',
47
+ name: 'Support',
48
+ description: null,
49
+ isDefault: true,
50
+ createdAt: new Date(),
51
+ updatedAt: new Date(),
52
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03', 'f26b00f8-ffe0-4739-b15c-7db15c27ea26', 'a9c803b0-ebfa-49b9-9607-f0d3a390ee61'],
44
53
  tenantId: 'tenantId',
45
54
  vendorId: 'vendorId'
46
55
  }];
@@ -51,7 +60,7 @@ const roleDemo = [{
51
60
  isDefault: false,
52
61
  name: 'Admin',
53
62
  description: null,
54
- permissions: ['adminPermissionId'],
63
+ permissions: ['8d71b676-754c-4600-afe7-ca5add1e6809', '04dbcc11-61db-40a9-9577-9b73e50d1d03'],
55
64
  tenantId: 'tenantId',
56
65
  vendorId: 'vendorId',
57
66
  createdAt: new Date(),
@@ -59,7 +68,7 @@ const roleDemo = [{
59
68
  }];
60
69
  exports.roleDemo = roleDemo;
61
70
  const rolePermissionDemo = [{
62
- id: 'adminPermissionId',
71
+ id: '8d71b676-754c-4600-afe7-ca5add1e6809',
63
72
  key: 'fe.*',
64
73
  name: 'General Admin',
65
74
  description: 'description',
@@ -630,4 +639,372 @@ const securityCenterUnenrolledMfaUsersMock = {
630
639
  totalUsersPages: 1,
631
640
  usersPageOffset: 0
632
641
  };
633
- exports.securityCenterUnenrolledMfaUsersMock = securityCenterUnenrolledMfaUsersMock;
642
+ exports.securityCenterUnenrolledMfaUsersMock = securityCenterUnenrolledMfaUsersMock;
643
+ const permissionsMock = [{
644
+ id: '8d71b676-754c-4600-afe7-ca5add1e6809',
645
+ key: 'fe.secure.*',
646
+ name: 'Secure write',
647
+ description: 'all secure access permissions',
648
+ categoryId: '77154759-0a04-4669-b6b4-0858d3c1190e',
649
+ fePermission: true,
650
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
651
+ createdAt: new Date(),
652
+ updatedAt: new Date()
653
+ }, {
654
+ id: '85e1fd7b-2bb7-498f-8521-5f8e5774c01e',
655
+ key: 'fe.account-hierarchy.write.subAccountAccess',
656
+ name: 'Give access to sub accounts',
657
+ description: 'Give a user access to sub account',
658
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
659
+ createdAt: new Date(),
660
+ updatedAt: new Date(),
661
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
662
+ fePermission: true
663
+ }, {
664
+ id: 'a1807695-54a2-4f95-95de-a9b246488aae',
665
+ key: 'fe.account-hierarchy.read.subAccount',
666
+ name: 'Read sub accounts',
667
+ description: 'Read sub accounts',
668
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
669
+ createdAt: new Date(),
670
+ updatedAt: new Date(),
671
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
672
+ fePermission: true
673
+ }, {
674
+ id: '04dbcc11-61db-40a9-9577-9b73e50d1d03',
675
+ key: 'fe.secure.read.*',
676
+ name: 'Secure read',
677
+ description: 'all secure access read permissions',
678
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
679
+ createdAt: new Date(),
680
+ updatedAt: new Date(),
681
+ categoryId: '77154759-0a04-4669-b6b4-0858d3c1190e',
682
+ fePermission: true
683
+ }, {
684
+ id: 'a1807695-54a2-4f95-95de-a9b246488aae',
685
+ key: 'fe.account-hierarchy.read.subAccount',
686
+ name: 'Read sub accounts',
687
+ description: 'Read sub accounts',
688
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
689
+ createdAt: new Date(),
690
+ updatedAt: new Date(),
691
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
692
+ fePermission: true
693
+ }, {
694
+ id: '85e1fd7b-2bb7-498f-8521-5f8e5774c01e',
695
+ key: 'fe.account-hierarchy.write.subAccountAccess',
696
+ name: 'Give access to sub accounts',
697
+ description: 'Give a user access to sub account',
698
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
699
+ createdAt: new Date(),
700
+ updatedAt: new Date(),
701
+ categoryId: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
702
+ fePermission: true
703
+ }, {
704
+ id: 'a9c803b0-ebfa-49b9-9607-f0d3a390ee61',
705
+ key: 'fe.account-settings.delete.account',
706
+ name: 'Delete Account',
707
+ description: 'Delete my account',
708
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
709
+ createdAt: new Date(),
710
+ updatedAt: new Date(),
711
+ categoryId: '42aaebe1-893d-4da5-99d7-375a4537b7a4',
712
+ fePermission: true
713
+ }, {
714
+ id: 'f26b00f8-ffe0-4739-b15c-7db15c27ea26',
715
+ key: 'fe.account-settings.write.custom-login-box',
716
+ name: 'Edit custom login settings',
717
+ description: "Write account's custom login box styling",
718
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
719
+ createdAt: new Date(),
720
+ updatedAt: new Date(),
721
+ categoryId: '42aaebe1-893d-4da5-99d7-375a4537b7a4',
722
+ fePermission: true
723
+ }, {
724
+ id: 'a43e059d-d731-44b1-94bb-fb6b16c62210',
725
+ key: 'fe.connectivity.delete.*',
726
+ name: 'Connectivity delete',
727
+ description: 'all connectivity delete permissions',
728
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
729
+ createdAt: new Date(),
730
+ updatedAt: new Date(),
731
+ categoryId: 'd18fccaa-e09a-4e6e-b902-cc9c615ff12d',
732
+ fePermission: true
733
+ }, {
734
+ id: 'f403c6b9-1abe-4ec7-9971-aa032255fc25',
735
+ key: 'fe.connectivity.delete.slackAppRegistration',
736
+ name: 'Delete slack application registration',
737
+ description: 'allow user to delete slack app registration',
738
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
739
+ createdAt: new Date(),
740
+ updatedAt: new Date(),
741
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
742
+ fePermission: true
743
+ }, {
744
+ id: 'e8c0e727-f562-449a-82c5-f7691defde02',
745
+ key: 'fe.connectivity.read.*',
746
+ name: 'Connectivity read',
747
+ description: 'all connectivity read permissions',
748
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
749
+ createdAt: new Date(),
750
+ updatedAt: new Date(),
751
+ categoryId: 'd18fccaa-e09a-4e6e-b902-cc9c615ff12d',
752
+ fePermission: true
753
+ }, {
754
+ id: '2a5dcd6d-57a3-45c4-815f-c265609cc1f7',
755
+ key: 'fe.connectivity.read.emailConfig',
756
+ name: 'Read email configuration',
757
+ description: 'read email integration configuration',
758
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
759
+ createdAt: new Date(),
760
+ updatedAt: new Date(),
761
+ categoryId: '2d7b4be7-8269-4ff4-81d6-0c92e95790d5',
762
+ fePermission: true
763
+ }, {
764
+ id: '4fee0eb0-5b17-450b-bea4-b9b908230bda',
765
+ key: 'fe.connectivity.read.eventCategories',
766
+ name: 'Read events categories',
767
+ description: 'view connectivity events categories',
768
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
769
+ createdAt: new Date(),
770
+ updatedAt: new Date(),
771
+ categoryId: '31c7a260-55d6-43d5-a872-4f9e22982ff5',
772
+ fePermission: true
773
+ }, {
774
+ id: '750a96a5-8abf-4340-b91a-723c7bb8bcfd',
775
+ key: 'fe.connectivity.read.events',
776
+ name: 'Read events',
777
+ description: 'view connectivity events',
778
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
779
+ createdAt: new Date(),
780
+ updatedAt: new Date(),
781
+ categoryId: '31c7a260-55d6-43d5-a872-4f9e22982ff5',
782
+ fePermission: true
783
+ }, {
784
+ id: 'ef2a5f1a-74c5-431f-b1a6-d4fb5026e374',
785
+ key: 'fe.connectivity.read.slackApp',
786
+ name: 'Read slack application',
787
+ description: 'get slack application configuration in order to register',
788
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
789
+ createdAt: new Date(),
790
+ updatedAt: new Date(),
791
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
792
+ fePermission: true
793
+ }, {
794
+ id: '9fc1fa37-a8b9-4931-b2b5-5de55df25289',
795
+ key: 'fe.connectivity.read.slackChannels',
796
+ name: 'Read slack channels',
797
+ description: 'view registered slack workspace channels',
798
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
799
+ createdAt: new Date(),
800
+ updatedAt: new Date(),
801
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
802
+ fePermission: true
803
+ }, {
804
+ id: '87c3df9d-0ab2-4e97-bfc8-777a68ba2543',
805
+ key: 'fe.connectivity.read.slackSubscriptions',
806
+ name: 'Read slack subscriptions',
807
+ description: 'view slack events subscriptions',
808
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
809
+ createdAt: new Date(),
810
+ updatedAt: new Date(),
811
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
812
+ fePermission: true
813
+ }, {
814
+ id: '7826470b-151f-4bab-b2c0-785e09878616',
815
+ key: 'fe.connectivity.read.slackUsers',
816
+ name: 'Read slack users',
817
+ description: 'view registered slack workspace users',
818
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
819
+ createdAt: new Date(),
820
+ updatedAt: new Date(),
821
+ categoryId: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
822
+ fePermission: true
823
+ }, {
824
+ id: 'ee779734-a7e3-47b3-ace9-944f9bee8ad8',
825
+ key: 'fe.connectivity.read.smsConfig',
826
+ name: 'Read SMS configuration',
827
+ description: 'read SMS integration configuration',
828
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
829
+ createdAt: new Date(),
830
+ updatedAt: new Date(),
831
+ categoryId: '5743fccc-b4ea-4907-bdca-7446ea088974',
832
+ fePermission: true
833
+ }, {
834
+ id: '54583a96-c731-4a84-9abc-1b8b827f06ae',
835
+ key: 'fe.connectivity.read.userBellNotifications',
836
+ name: 'Read bell notifications',
837
+ description: 'view user bell notifications',
838
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
839
+ createdAt: new Date(),
840
+ updatedAt: new Date(),
841
+ categoryId: '18d2584b-7f03-4038-ab93-bc2b0f4511be',
842
+ fePermission: true
843
+ }, {
844
+ id: '2dfde8ef-7df2-4426-bb8d-33615e399a4d',
845
+ key: 'fe.connectivity.read.webhookLogs',
846
+ name: 'Read webhooks logs',
847
+ description: 'view webhooks logs',
848
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
849
+ createdAt: new Date(),
850
+ updatedAt: new Date(),
851
+ categoryId: 'e74e5390-396b-429c-9544-62417912d018',
852
+ fePermission: true
853
+ }, {
854
+ id: '16647407-ed6f-4ca6-83a0-86225d921959',
855
+ key: 'fe.connectivity.read.webhooks',
856
+ name: 'Read webhooks',
857
+ description: 'view webhooks configuration',
858
+ assignmentType: _restApi.PermissionAssignmentTypeEnum.ASSIGNABLE,
859
+ createdAt: new Date(),
860
+ updatedAt: new Date(),
861
+ categoryId: 'e74e5390-396b-429c-9544-62417912d018',
862
+ fePermission: true
863
+ }];
864
+ exports.permissionsMock = permissionsMock;
865
+ const permissionCategoriesMock = [{
866
+ id: 'd9b4dbd0-476c-4708-b079-d9e6e4758971',
867
+ name: 'test',
868
+ description: '',
869
+ createdAt: new Date(),
870
+ updatedAt: new Date(),
871
+ permissionIds: [],
872
+ feCategory: false
873
+ }, {
874
+ id: '2b3f1746-1135-4b8d-aff3-5697cffc4482',
875
+ name: 'SAML',
876
+ description: 'Secure access SAML',
877
+ createdAt: new Date(),
878
+ updatedAt: new Date(),
879
+ permissionIds: ['8ea45a49-c403-4551-9da9-77f5da44f130', '8d94c261-1f7d-46bd-88a8-511e9f39273b', '7391ac41-b076-4386-8a14-7c2d798d3335', '6d8f5a1f-b3cd-421a-ba85-7784bdd97dc2', '3c989065-35e1-4198-8c9c-c94084222794'],
880
+ feCategory: true
881
+ }, {
882
+ id: '2c2281da-cf81-4943-9605-42969677e9fe',
883
+ name: 'Security Policies',
884
+ description: 'Secure access security policies',
885
+ createdAt: new Date(),
886
+ updatedAt: new Date(),
887
+ permissionIds: ['e5642338-b265-4ce5-94e4-8c21490033ad', 'daddb9e9-a836-4901-b175-2d1182dab6f5', 'bd4242ce-e84f-4387-9c41-c90e7d1fc6fa', 'ba33b4c1-47f0-4aa2-9e3a-fcf96229d355', 'ade4558f-5438-4383-b42b-728e8a745cc8', 'ad064258-2178-48f8-845c-ac1ce0217be8', 'acefb7fd-11c7-4a43-9544-b4fb461db94c', '909b6a0a-4efc-4464-90ac-b8b9a8f22fc2', '8a03c1e7-3991-4cca-8726-88c339766144', '860eb891-b9eb-44ba-94c1-51cfc2be9dd9', '719e09ae-5513-4cc3-bce1-97503a0a7658', '6fcd99e7-2206-4c45-86aa-411a87b7fcac', '235592cc-47c7-49cc-82e4-129f5333cc45', '2214404d-3140-44bf-9c9d-438fa56b5a50'],
888
+ feCategory: true
889
+ }, {
890
+ id: '2d7b4be7-8269-4ff4-81d6-0c92e95790d5',
891
+ name: 'Email integration',
892
+ description: 'Connectivity email integration',
893
+ createdAt: new Date(),
894
+ updatedAt: new Date(),
895
+ permissionIds: ['9a0bb3db-8bdb-4278-8f18-9c484bcd2f8c', '440f5616-ad85-43d1-b25d-1fd7930c6d26', '2a5dcd6d-57a3-45c4-815f-c265609cc1f7'],
896
+ feCategory: true
897
+ }, {
898
+ id: '31c7a260-55d6-43d5-a872-4f9e22982ff5',
899
+ name: 'Events',
900
+ description: 'Connectivity Events',
901
+ createdAt: new Date(),
902
+ updatedAt: new Date(),
903
+ permissionIds: ['85c90d0f-3bb0-40c0-914a-640c7ca9eea5', '750a96a5-8abf-4340-b91a-723c7bb8bcfd', '4fee0eb0-5b17-450b-bea4-b9b908230bda'],
904
+ feCategory: true
905
+ }, {
906
+ id: '42aaebe1-893d-4da5-99d7-375a4537b7a4',
907
+ name: 'Account settings',
908
+ description: 'Account profile settings',
909
+ createdAt: new Date(),
910
+ updatedAt: new Date(),
911
+ permissionIds: ['f26b00f8-ffe0-4739-b15c-7db15c27ea26', 'eb11313d-c7bb-43c0-a85d-c79bedab46b1', 'a9c803b0-ebfa-49b9-9607-f0d3a390ee61', '634d3fab-b470-4a92-a25b-245459ddd6db'],
912
+ feCategory: true
913
+ }, {
914
+ id: '62fc3fe0-f06b-4a0f-854c-cdf51353b616',
915
+ name: 'Slack integration',
916
+ description: 'Connectivity Slack integration',
917
+ createdAt: new Date(),
918
+ updatedAt: new Date(),
919
+ permissionIds: ['f403c6b9-1abe-4ec7-9971-aa032255fc25', 'ef2a5f1a-74c5-431f-b1a6-d4fb5026e374', 'e3231a61-e425-4ac1-aa87-654ab995af5c', '9fc1fa37-a8b9-4931-b2b5-5de55df25289', '87c3df9d-0ab2-4e97-bfc8-777a68ba2543', '7993a558-0af5-4d77-b9fc-8e8114f0ce0b', '7826470b-151f-4bab-b2c0-785e09878616', '5b0323d1-a0a0-4d4f-9bb8-b1634d9afa94', '4245736e-13b0-48fd-9a08-bc93809dcdaf', '2fccccb1-36f5-4c5c-8d93-73ab15d0b2d9'],
920
+ feCategory: true
921
+ }, {
922
+ id: '6b925df5-8b09-470a-9fcc-dae0beae1af4',
923
+ name: 'Audits',
924
+ description: 'Audit Logs',
925
+ createdAt: new Date(),
926
+ updatedAt: new Date(),
927
+ permissionIds: ['97085bb5-bec7-49eb-9744-4d35bbb83ad3'],
928
+ feCategory: true
929
+ }, {
930
+ id: '77154759-0a04-4669-b6b4-0858d3c1190e',
931
+ name: 'Secure access',
932
+ description: 'Secure access general',
933
+ createdAt: new Date(),
934
+ updatedAt: new Date(),
935
+ permissionIds: ['925e0c16-aead-41e6-b62f-8ddb2ea4ed06', '8d71b676-754c-4600-afe7-ca5add1e6809', '1c81d4ca-47a2-4564-b9d9-9d346b8cdbe7', '04dbcc11-61db-40a9-9577-9b73e50d1d03'],
936
+ feCategory: true
937
+ }, {
938
+ id: '916d6db5-489e-4109-95cf-57dee7802c57',
939
+ name: 'Webpush integration',
940
+ description: 'Webpush notifications integration',
941
+ createdAt: new Date(),
942
+ updatedAt: new Date(),
943
+ permissionIds: ['e5a7bbd3-f76b-4559-979d-885c5c75f72f', 'cb47ea6f-0a59-4694-97d0-9c32f6732e85'],
944
+ feCategory: true
945
+ }, {
946
+ id: '9707ef7f-afd3-4d1f-962e-68c0d876db53',
947
+ name: 'Subscriptions',
948
+ description: 'Subscriptions access general',
949
+ createdAt: new Date(),
950
+ updatedAt: new Date(),
951
+ permissionIds: ['ce03de78-a7f4-4498-acce-df4aae30ed0d', 'ae81dd56-2f94-4da8-9c16-b6c781b0dcb7', '72e55675-ea98-4f1a-85f0-09319cdcbcbf'],
952
+ feCategory: true
953
+ }, {
954
+ id: 'a71e2e14-0cdb-42df-b297-d00af2d4e62e',
955
+ name: 'Users management',
956
+ description: 'Secure access users management',
957
+ createdAt: new Date(),
958
+ updatedAt: new Date(),
959
+ permissionIds: ['e7263c99-874f-4e17-8d63-25ae3d9f5739', 'db957d5f-4048-4011-bcb4-5d21af0560e4', 'c52b0a96-dcff-4fba-aa8e-ce3a7336bde2', 'bc754ce1-ebbe-446a-bb84-4f287be0651c', '998756c3-773a-4771-b7a5-510e795fb5f4', '88565631-dc77-472c-b1d9-18674483c24b', '6b84ddeb-a242-48c5-bf2a-62105315518a', '61874f64-2204-4eec-8f02-0d38bd5a66b8', '4c47caae-d384-48bb-99bc-554aafa2888f', '43695880-d40e-412d-b342-434d58c5c8ca', '4003ac5b-326c-4dc2-afb1-8900e16ee443', '007c612d-5184-4f04-846e-d49c6591de0c'],
960
+ feCategory: true
961
+ }, {
962
+ id: 'c058e114-917c-4ad1-940e-11e9cc40b638',
963
+ name: 'Roles and permissions',
964
+ description: 'Secure access roles and permissions',
965
+ createdAt: new Date(),
966
+ updatedAt: new Date(),
967
+ permissionIds: ['c89960c8-6d67-44fa-a3aa-1a6826f45b0d', '93be3a9a-98a2-48b8-a146-a223e457c904', '80e49f9a-7628-4efc-913b-5f80ca92f106', '7f2576d6-cbbb-4c7b-bb70-d75a88d9ce47', '6a337814-34e5-4c24-a56f-d462c1db218b'],
968
+ feCategory: true
969
+ }, {
970
+ id: 'c38e9f59-ff65-4f9f-a31d-0bbfc44df347',
971
+ name: 'Groups',
972
+ description: 'Secure access groups',
973
+ createdAt: new Date(),
974
+ updatedAt: new Date(),
975
+ permissionIds: ['e1907e68-877d-4f2d-a266-d54e143c3c0c', '7a17405a-6c4b-4053-9843-f9d5e3af9e00', '5ee7bb2d-aad4-497f-94d2-9e255c470882', '4c406972-c815-46a9-8f47-9708adc334b8', '399bff45-aa24-49ae-9357-5f05a5eef3a5', '0037b3ad-5f77-4157-aa33-33c92b5fe057'],
976
+ feCategory: true
977
+ }, {
978
+ id: 'd18fccaa-e09a-4e6e-b902-cc9c615ff12d',
979
+ name: 'Connectivity',
980
+ description: 'Connectivity general',
981
+ createdAt: new Date(),
982
+ updatedAt: new Date(),
983
+ permissionIds: ['e8c0e727-f562-449a-82c5-f7691defde02', 'c88bf74a-66a4-48c2-bc1b-2e2aa057858d', 'a43e059d-d731-44b1-94bb-fb6b16c62210', '3f118e4c-badd-45d1-8056-3f3428be92ca'],
984
+ feCategory: true
985
+ }, {
986
+ id: 'd24db1e3-002b-421d-951d-09a967dd7cd5',
987
+ name: 'Account Hierarchy',
988
+ description: 'Account hierarchy',
989
+ createdAt: new Date(),
990
+ updatedAt: new Date(),
991
+ permissionIds: ['b6e66e0f-c6d2-4113-865a-57d08b1dec45', 'a1807695-54a2-4f95-95de-a9b246488aae', '85e1fd7b-2bb7-498f-8521-5f8e5774c01e', '60cfedb4-64ca-40d1-8b3a-4288bcde1209'],
992
+ feCategory: true
993
+ }, {
994
+ id: 'e74e5390-396b-429c-9544-62417912d018',
995
+ name: 'Webhooks integration',
996
+ description: 'Connectivity webhooks integration',
997
+ createdAt: new Date(),
998
+ updatedAt: new Date(),
999
+ permissionIds: ['996e42ed-b1d8-4e36-aa76-58091c56bdf7', '8e7014d4-13fa-439a-a313-a2b9141f8b47', '2dfde8ef-7df2-4426-bb8d-33615e399a4d', '16647407-ed6f-4ca6-83a0-86225d921959'],
1000
+ feCategory: true
1001
+ }, {
1002
+ id: 'e8af2833-1bbf-4ccf-8658-f6e0c60621b9',
1003
+ name: 'API tokens',
1004
+ description: 'Secure access API tokens',
1005
+ createdAt: new Date(),
1006
+ updatedAt: new Date(),
1007
+ permissionIds: ['f03dc571-0769-4bcf-9c51-776b81582a14', 'c395932b-c732-41ad-bec6-ced7602bf79e', '94351961-e9c8-4c63-8818-ae8481ceab22', '5a744287-d01e-4a7a-8a37-2ce212ce5ff5', '0cf97f9f-84dc-4dfc-bf41-2ad4b6c072e9', '0c8cdac0-b364-4ab6-9737-7aa43f944013'],
1008
+ feCategory: true
1009
+ }];
1010
+ exports.permissionCategoriesMock = permissionCategoriesMock;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.180.0-alpha.0
1
+ /** @license Frontegg v6.180.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.180.0-alpha.0",
3
+ "version": "6.180.0-alpha.2",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",