-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
51 lines (42 loc) · 1.41 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
export const AGE_PREFERENCE = {
EIGHTEEN_PLUS: 'EIGHTEEN_PLUS',
FORTYFIVE_PLUS: 'FORTYFIVE_PLUS',
BOTH: 'BOTH'
}
export const optionsStatesSearch = {
isCaseSensitive: false,
includeScore: true,
shouldSort: true,
keys: [
"state_name"
]
};
export const optionsDistrictsSearch = {
isCaseSensitive: false,
includeScore: true,
shouldSort: true,
keys: [
"district_name"
]
};
export const CONVERSATION_STEPS = {
INPUT_STATE_NAME: 'INPUT_STATE_NAME',
INPUT_DISTRICT_NAME: 'INPUT_DISTRICT_NAME',
INPUT_PINCODE: 'INPUT_PINCODE',
INPUT_AGE: 'INPUT_AGE',
INPUT_ACQUIRED_SUCCESSFULLY: 'INPUT_ACQUIRED_SUCCESSFULLY',
NO_INPUT_PRESENT: 'NO_INPUT_PRESENT'
}
export const POLLER_FALLBACK_SLEEP_TIME = 30; //In seconds
export const USER_NOTIFICATION_TIME_DELAY = 30 * 60; //30 minutes
export const MAX_REQUESTS_LIMIT = 100;
export const MAX_REQUEST_LIMIT_EXHAUSTION_TIME = 5 * 60; //5 minutes
export const AGE_PREFERENCE_PRISMA_CONDITION = {
45: [AGE_PREFERENCE.FORTYFIVE_PLUS, AGE_PREFERENCE.BOTH],
18: [AGE_PREFERENCE.EIGHTEEN_PLUS, AGE_PREFERENCE.BOTH]
};
export const SUBSEQUENT_REQUEST_DELAY = 5; //in seconds
export const COWIN_AXIOS_HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/90.0.818.62'
};
export const COWIN_DATE_FORMAT = 'dd-MM-yyyy';