Consts Module
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.JSON
{
"accessLevels": {
"connected": 2,
"delete": 7,
"public": 1,
"read": 4,
"script": 8,
"share": 5,
"update": 6
},
"accessPrincipals": {
"creator": 3,
"owner": 4,
"self": 2
},
"accessTargets": {
"account": 1,
"role": 3
},
"accessTypes": {
"access": 5,
"account": 1,
"owner": 4,
"role": 3,
"self": 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,
"auth": 6,
"delete": 5,
"device": 8,
"pull": 4,
"push": 3,
"remove": 2,
"set": 1,
"transfer": 7
},
"sources": {
"request": 1,
"script": 2,
"system": 3
}
},
"connectionStates": {
"active": 1,
"pending": 0
},
"emptyId": "000000000000000000000000",
"http": {
"methods": {
"DELETE": 3,
"GET": 0,
"HEAD": 4,
"OPTIONS": 5,
"PATCH": 6,
"POST": 1,
"PUT": 2
},
"methodsLookup": {
"0": "GET",
"1": "POST",
"2": "PUT",
"3": "DELETE",
"4": "HEAD",
"5": "OPTIONS",
"6": "PATCH"
}
},
"logs": {
"levels": {
"debug": 3,
"error": 0,
"info": 2,
"trace": 4,
"warn": 1
},
"sources": {
"api": 1,
"audit": 4,
"deployment": 5,
"export": 6,
"logger": 0,
"notification": 7,
"policy": 8,
"request": 3,
"script": 2
}
},
"media": {
"states": {
"dead": 4,
"error": 3,
"pending": 0,
"processing": 1,
"ready": 2
}
},
"notifications": {
"endpoints": {
"email": "456e64706f696e7420456d6c",
"push": "456e64706f696e7420507368",
"sms": "456e64706f696e7420536d73"
},
"states": {
"disabled": 1,
"enabled": 0,
"user": 2
},
"types": {
"account-activation": "4e6620416363744163746976",
"account-activation-provider": "4e662041637441637450726f",
"account-auth-locked": "4e6620417574684c636b6564",
"account-provider-verification-processing": "4e662050726f765063736e67",
"account-provider-verification-verified": "4e662050726f76436d706c74",
"account-provisioned": "4e6620416363745072767364",
"account-welcome": "4e662041637457656c636f6d",
"account-welcome-activation": "4e662057656c636d41637476",
"account-welcome-activation-provider": "4e6620576d4163747650726f",
"account-welcome-provider": "4e662057656c636d50726f76",
"account-welcome-verification": "4e6620416363745665726966",
"account-welcome-verification-provider": "4e662041637456726650726f",
"admin-account-registration-notification": "4e662041646d696e52656764",
"admin-provider-verification-required-notification": "4e662041646d696e50726f56",
"connection-created": "4e6620436e6e637443727464",
"feed-comment-update": "4e66204665656473436d6e74",
"feed-post-update": "4e66204665656473506f7374",
"gcm-regid-reassigned": "4e662047636d52654173676e",
"invite-existing-user": "4e6620496e76457873746e67",
"invite-new-user": "4e6620496e764e6577557372",
"ios-token-reassigned": "4e6620496f7352654173676e",
"location-verification": "4e66204c6f6361746e566572",
"lost-password": "4e66204c6f73745073737764",
"mobile-change-notification": "4e66204368616e67654d6f62",
"org-invitation": "4e6620496e765072764f7267",
"password-change-notification": "4e66204368616e6765507373"
}
},
"objects": {
"accounts": "436f6e746578742041636374",
"comments": "4f626a65637420436f6d6e74",
"connections": "4f626a65637420436f6e6e20",
"exports": "436f6e746578742045787074",
"objects": "436f6e746578742043747820",
"orgs": "436f6e74657874204f726720",
"posts": "4f626a65637420506f737420",
"scripts": "436f6e746578742053637269",
"views": "436f6e746578742056696577"
},
"principals": {
"anonymous": "000000000000000000000001",
"public": "000000000000000000000003"
},
"roles": {
"Administrator": "000000000000000000000004",
"Developer": "000000000000000000000007",
"Provider": "000000000000000000000005",
"Support": "000000000000000000000006",
"admin": "000000000000000000000004",
"developer": "000000000000000000000007",
"provider": "000000000000000000000005",
"support": "000000000000000000000006"
},
"stats": {
"locations": {
"medable": 1,
"s3": 2
},
"sources": {
"accounts": 4,
"cacheStorage": 7,
"docStorage": 2,
"fileStorage": 1,
"logins": 3,
"notifications": 6,
"request": 0,
"scripts": 5
}
}
}
Last updated