upload, parse and store door lock entries
This commit is contained in:
24
constants/constants.js
Normal file
24
constants/constants.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const USER_ENTRY_EVENT = 'User Entry';
|
||||
const ENABLE_PASSAGE_MODE = 'Enable Passage Mode by Group 2';
|
||||
const DISABLE_PASSAGE_MODE = 'Disable Passage Mode by Group 2';
|
||||
|
||||
const USER_LOCKED_DOOR = 'locked';
|
||||
const USER_UNLOCKED_DOOR = 'unlocked';
|
||||
|
||||
const VALID_CSV_HEADERS = ['Date', 'Time', 'User No', 'Name', 'Event'];
|
||||
|
||||
const csvParserErrors = {
|
||||
UNKNOWN_COLUMN: 'Unknown column',
|
||||
INVALID_ENTRY_EXPECTED_USER: 'Invalid entry type. Expected user entry type',
|
||||
INVALID_ENTRY_EXPECTED_PASSAGE_MODE: 'Invalid entry type. Expected enable/disable passage mode',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
VALID_CSV_HEADERS,
|
||||
USER_ENTRY_EVENT,
|
||||
ENABLE_PASSAGE_MODE,
|
||||
DISABLE_PASSAGE_MODE,
|
||||
USER_LOCKED_DOOR,
|
||||
USER_UNLOCKED_DOOR,
|
||||
csvParserErrors,
|
||||
};
|
||||
Reference in New Issue
Block a user