blob: 287f194680091832b1c5d1d4e0da935f1aa97717 [file] [log] [blame]
Adrià Vilanova Martínez5dd7a6f2023-03-04 18:32:27 +01001export const kUserRoleEnum = {
2 ROLE_USER: 0,
3 ROLE_PRODUCT_EXPERT_LEVEL_1: 1,
4 ROLE_PRODUCT_EXPERT_LEVEL_2: 2,
5 ROLE_PRODUCT_EXPERT_LEVEL_3: 3,
6 ROLE_PRODUCT_EXPERT_LEVEL_4: 4,
7 ROLE_PRODUCT_EXPERT_LEVEL_5: 5,
8 ROLE_COMMUNITY_MANAGER: 10,
9 ROLE_COMMUNITY_SPECIALIST: 20,
10 ROLE_GOOGLE_EMPLOYEE: 100,
11 ROLE_ALUMNUS: 30,
12};
13export default kUserRoleEnum;
14
15export let kUserRoleRank = {};
16kUserRoleRank[kUserRoleEnum.ROLE_USER] = 0;
17kUserRoleRank[kUserRoleEnum.ROLE_ALUMNUS] = 1;
18kUserRoleRank[kUserRoleEnum.ROLE_PRODUCT_EXPERT_LEVEL_1] = 2;
19kUserRoleRank[kUserRoleEnum.ROLE_PRODUCT_EXPERT_LEVEL_2] = 3;
20kUserRoleRank[kUserRoleEnum.ROLE_PRODUCT_EXPERT_LEVEL_3] = 4;
21kUserRoleRank[kUserRoleEnum.ROLE_PRODUCT_EXPERT_LEVEL_4] = 5;
22kUserRoleRank[kUserRoleEnum.ROLE_PRODUCT_EXPERT_LEVEL_5] = 6;
23kUserRoleRank[kUserRoleEnum.ROLE_COMMUNITY_SPECIALIST] = 7;
24kUserRoleRank[kUserRoleEnum.ROLE_COMMUNITY_MANAGER] = 8;
25kUserRoleRank[kUserRoleEnum.ROLE_GOOGLE_EMPLOYEE] = 9;