forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroles.js
More file actions
34 lines (33 loc) · 1.05 KB
/
Copy pathroles.js
File metadata and controls
34 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { GraphQLEnumType } from 'graphql'
export const RoleEnums = new GraphQLEnumType({
name: 'RoleEnums',
values: {
PENDING: {
value: 'pending',
description: 'A user who has requested an invite to an organization.',
},
USER: {
value: 'user',
description: 'A user who has been given access to view an organization.',
},
ADMIN: {
value: 'admin',
description:
'A user who has the same access as a user write account, but can define new user read/write accounts.',
},
OWNER: {
value: 'owner',
description:
'A user who has the same access as an admin, but can define new admins, and delete the organization.',
},
SUPER_ADMIN: {
value: 'super_admin',
description: 'A user who has the same access as an admin, but can define new admins.',
},
SERVICE: {
value: 'service',
description: 'An internal service used by Tracker to make changes to organizational data.',
},
},
description: 'An enum used to assign, and test users roles.',
})