-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.js
53 lines (45 loc) · 1.64 KB
/
constants.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = Object.freeze({
LABEL_API_ROOT: '/',
LABEL_API_ADMIN_VIEW:'/admin-view',
LABEL_API_EMP_VIEW:'/emp-view',
LABEL_API_SEARCH_EMP:'/search-emp',
LABEL_API_GET_MAP: '/get-map',
LABEL_API_CREATE_MAP: '/create-map',
LABEL_API_ADD_NEW:'/add-new-map',
LABEL_API_REMOVE_MAP:'/remove-map',
LABEL_API_SAVE_MAP:'/save-map',
LABEL_API_SAVE_SEAT:'/save-seat',
LABEL_API_GET_SEAT:'/get-seat',
LABEL_API_GET_MAPS:'/get-maps',
LABEL_API_RENAME_MAP:'/rename-map',
DEV_ENV:'DEV',
PROD_ENV:'PROD',
LOGIN_API_LABEL:'/login',
SIGNUP_API_LABEL:'/signup',
HOME_API_LABEL: '/home',
RECORD_API_LABEL: '/record',
ERROR_API_LABEL: '/error',
FORGOT_PASSWORD_API_LABEL:'/forgot',
SEND_MAIL_API_LABEL: '/sendMail',
RESET_API_LABEL:'/reset',
RESET_PASSWORD_API_LABEL:'/resetPassword',
//ERROR_MSGS
INVALID_PARAM_ERROR_MSG: 'One or more paramater was invalid',
SUCCESS_MSG: 'Success!',
FAILURE_MSG: 'Fail!',
//ERROR CODES
ITEM_ALREADY_PRSENT_ERRORCODE: 'DUPLICATE_ITEM_ERROR',
USER_NOT_FOUND_ERRORCODE: 'USERNAME_NOT_FOUND',
INVALID_PARAM_ERRORCODE: 'INVALID_PARAM',
DB_ERRORCODE: 'DB_ERROR',
CRYPTO_ERRORCODE: 'BCRYPT_ERROR',
NO_RESULT_FROM_DB_ERRORCODE: 'NO_RESULT_FROM_DB',
AUTHENTICATION_FAILURE_ERRORCODE: 'INVALID_PASSWORD',
TOKEN_AUTHENTICATION_FAILURE_ERRORCODE: 'INVALID_TOKEN',
INDEX_OUT_OF_BOUNDS_ERRORCODE: 'INDEX_OUT_OF_BOUNDS',
INVALID_PATH_ERRORCODE: 'INVALID_PATH',
PARAM_TO_BE_RETRIEVED_NOT_RECOGNIZED: "INVALID REQUEST PARAMETER",
//COLLECTION NAMES
COLLECTION_MAP :"map",
COLLECTION_EMP:"employee"
});