Search…
Consts Module
1
import consts from 'consts';
Copied!
A global variable containing various constants.
An org's object codes are incorporated in consts.objects so the id of custom objects is available in readable form (eg. consts.object.c_surveys == ObjectID("4b756e6746752050616e6461")). The same holds true for custom notification types and roles.JSON
1
{
2
"accessLevels": {
3
"connected": 2,
4
"delete": 7,
5
"public": 1,
6
"read": 4,
7
"script": 8,
8
"share": 5,
9
"update": 6
10
},
11
"accessPrincipals": {
12
"creator": 3,
13
"owner": 4,
14
"self": 2
15
},
16
"accessTargets": {
17
"account": 1,
18
"role": 3
19
},
20
"accessTypes": {
21
"access": 5,
22
"account": 1,
23
"owner": 4,
24
"role": 3,
25
"self": 2
26
},
27
"accountStates": {
28
"unverified": "unverified",
29
"verified": "verified"
30
},
31
"audits": {
32
"actions": {
33
"both": 3,
34
"none": 0,
35
"read": 2,
36
"write": 1
37
},
38
"actionsLookup": {
39
"0": "none",
40
"1": "write",
41
"2": "read",
42
"3": "both"
43
},
44
"operations": {
45
"access": 9,
46
"auth": 6,
47
"delete": 5,
48
"device": 8,
49
"pull": 4,
50
"push": 3,
51
"remove": 2,
52
"set": 1,
53
"transfer": 7
54
},
55
"sources": {
56
"request": 1,
57
"script": 2,
58
"system": 3
59
}
60
},
61
"connectionStates": {
62
"active": 1,
63
"pending": 0
64
},
65
"emptyId": "000000000000000000000000",
66
"http": {
67
"methods": {
68
"DELETE": 3,
69
"GET": 0,
70
"HEAD": 4,
71
"OPTIONS": 5,
72
"PATCH": 6,
73
"POST": 1,
74
"PUT": 2
75
},
76
"methodsLookup": {
77
"0": "GET",
78
"1": "POST",
79
"2": "PUT",
80
"3": "DELETE",
81
"4": "HEAD",
82
"5": "OPTIONS",
83
"6": "PATCH"
84
}
85
},
86
"logs": {
87
"levels": {
88
"debug": 3,
89
"error": 0,
90
"info": 2,
91
"trace": 4,
92
"warn": 1
93
},
94
"sources": {
95
"api": 1,
96
"audit": 4,
97
"deployment": 5,
98
"export": 6,
99
"logger": 0,
100
"notification": 7,
101
"policy": 8,
102
"request": 3,
103
"script": 2
104
}
105
},
106
"media": {
107
"states": {
108
"dead": 4,
109
"error": 3,
110
"pending": 0,
111
"processing": 1,
112
"ready": 2
113
}
114
},
115
"notifications": {
116
"endpoints": {
117
"email": "456e64706f696e7420456d6c",
118
"push": "456e64706f696e7420507368",
119
"sms": "456e64706f696e7420536d73"
120
},
121
"states": {
122
"disabled": 1,
123
"enabled": 0,
124
"user": 2
125
},
126
"types": {
127
"account-activation": "4e6620416363744163746976",
128
"account-activation-provider": "4e662041637441637450726f",
129
"account-auth-locked": "4e6620417574684c636b6564",
130
"account-provider-verification-processing": "4e662050726f765063736e67",
131
"account-provider-verification-verified": "4e662050726f76436d706c74",
132
"account-provisioned": "4e6620416363745072767364",
133
"account-welcome": "4e662041637457656c636f6d",
134
"account-welcome-activation": "4e662057656c636d41637476",
135
"account-welcome-activation-provider": "4e6620576d4163747650726f",
136
"account-welcome-provider": "4e662057656c636d50726f76",
137
"account-welcome-verification": "4e6620416363745665726966",
138
"account-welcome-verification-provider": "4e662041637456726650726f",
139
"admin-account-registration-notification": "4e662041646d696e52656764",
140
"admin-provider-verification-required-notification": "4e662041646d696e50726f56",
141
"connection-created": "4e6620436e6e637443727464",
142
"feed-comment-update": "4e66204665656473436d6e74",
143
"feed-post-update": "4e66204665656473506f7374",
144
"gcm-regid-reassigned": "4e662047636d52654173676e",
145
"invite-existing-user": "4e6620496e76457873746e67",
146
"invite-new-user": "4e6620496e764e6577557372",
147
"ios-token-reassigned": "4e6620496f7352654173676e",
148
"location-verification": "4e66204c6f6361746e566572",
149
"lost-password": "4e66204c6f73745073737764",
150
"mobile-change-notification": "4e66204368616e67654d6f62",
151
"org-invitation": "4e6620496e765072764f7267",
152
"password-change-notification": "4e66204368616e6765507373"
153
}
154
},
155
"objects": {
156
"accounts": "436f6e746578742041636374",
157
"comments": "4f626a65637420436f6d6e74",
158
"connections": "4f626a65637420436f6e6e20",
159
"exports": "436f6e746578742045787074",
160
"objects": "436f6e746578742043747820",
161
"orgs": "436f6e74657874204f726720",
162
"posts": "4f626a65637420506f737420",
163
"scripts": "436f6e746578742053637269",
164
"views": "436f6e746578742056696577"
165
},
166
"principals": {
167
"anonymous": "000000000000000000000001",
168
"public": "000000000000000000000003"
169
},
170
"roles": {
171
"Administrator": "000000000000000000000004",
172
"Developer": "000000000000000000000007",
173
"Provider": "000000000000000000000005",
174
"Support": "000000000000000000000006",
175
"admin": "000000000000000000000004",
176
"developer": "000000000000000000000007",
177
"provider": "000000000000000000000005",
178
"support": "000000000000000000000006"
179
},
180
"stats": {
181
"locations": {
182
"medable": 1,
183
"s3": 2
184
},
185
"sources": {
186
"accounts": 4,
187
"cacheStorage": 7,
188
"docStorage": 2,
189
"fileStorage": 1,
190
"logins": 3,
191
"notifications": 6,
192
"request": 0,
193
"scripts": 5
194
}
195
}
196
}
Copied!
Last modified 2mo ago
Copy link