import consts from 'consts';
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.
{
"accessLevels": {
"connected": 2,
"delete": 7,
"public": 1,
"read": 4,
"share": 5,
"update": 6
},
"accessPrincipals": {
"creator": 3,
"owner": 4,
"self": 2,
"teamMember": 1
},
"accessTypes": {
"account": 1,
"self": 2,
"role": 3,
"owner": 4,
"access": 5
},
"accessTargets": {
"account": 1,
"role": 3,
"team": 2
},
"accountStates": {
"unverified": "unverified",
"verified": "verified"
},
"audits": {
"actions": {
"both": 3,
"none": 0,
"read": 2,
"write": 1
},
"actionsLookup": {
"0": "none",
"1": "write",
"2": "read",
"3": "both"
},
"operations": {
"access": 9,
"archive": 7,
"auth": 6,
"delete": 5,
"device": 8,
"pull": 4,
"push": 3,
"remove": 2,
"set": 1
},
"sources": {
"request": 1,
"script": 2,
"system": 3
}
},
"connectionStates": {
"active": 1,
"pending": 0
},
"http": {
"methods": {
"GET": 0,
"POST": 1,
"PUT": 2,
"DELETE": 3,
"HEAD": 4,
"OPTIONS": 5,
"PATCH": 6
}
},
"logs": {
"levels": {
"debug": 3,
"error": 0,
"info": 2,
"trace": 4,
"warn": 1
},
"sources": {
"api": 1,
"audit": 4,
"logger": 0,
"request": 3,
"script": 2
}
},
"stats": {
"sources": {
"request": 0,
"fileStorage": 1,
"docStorage": 2,
"logins": 3,
"accounts": 4,
"scripts": 5,
"notifications": 6
},
"locations": {
"medable": 1,
"s3": 2
}
},
"media": {
"states": {
"dead": 4,
"error": 3,
"pending": 0,
"processing": 1,
"ready": 2
}
},
"objects": {
"accounts": "436f6e746578742041636374",
"scripts": "436f6e746578742053637269",
"views": "436f6e746578742056696577",
},
"principals": {
"anonymous": "000000000000000000000001",
"public": "000000000000000000000003"
},
"roles": {
"admin": "000000000000000000000004",
"developer": "000000000000000000000007",
"provider": "000000000000000000000005",
"support": "000000000000000000000006"
}
}