-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.ts
37 lines (36 loc) · 1003 Bytes
/
enums.ts
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
35
36
37
/**
* Describes the different ranks/roles a user can have.
*
* This rank/role is bound to the account, but can be changed by an administrator
*
* Ranks/Roles:
* - user: any registered person
* - uploadrequested: a registered person that sent an application to gain upload permission
* - upload: a registered person with upload permission
* - admin: site administrators
*/
export enum UserRank {
user = 'user',
uploadrequested = 'uploadrequested',
uploader = 'uploader',
admin = 'admin',
}
/**
* Describes the different types of (document) collections that are used in
* the MongoDB database.
*
* Note: this does not include account related (document) collections.
*/
export enum Collection {
address = 'address',
annotation = 'annotation',
compilation = 'compilation',
contact = 'contact',
digitalentity = 'digitalentity',
entity = 'entity',
group = 'group',
institution = 'institution',
person = 'person',
physicalentity = 'physicalentity',
tag = 'tag',
}