-
-
Notifications
You must be signed in to change notification settings - Fork 336
Expand file tree
/
Copy pathindex.js
More file actions
46 lines (39 loc) · 877 Bytes
/
index.js
File metadata and controls
46 lines (39 loc) · 877 Bytes
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
// Shared constants for CHT-Core
// This library provides a single source of truth for magic strings and constants used throughout the application
// Document IDs
const DOC_IDS = {
SERVICE_WORKER_META: 'service-worker-meta',
SETTINGS: 'settings',
RESOURCES: 'resources',
};
// Contact Types
const CONTACT_TYPES = {
HEALTH_CENTER: 'health_center',
};
// Document Types
const DOC_TYPES = {
TOKEN_LOGIN: 'token_login',
TRANSLATIONS: 'translations',
CONTACT: 'contact',
};
// HTTP Headers
const HTTP_HEADERS = {
REQUEST_ID: 'X-Request-Id',
};
// Sentinel Metadata
const SENTINEL_METADATA = {
TRANSITIONS_SEQ: '_local/transitions-seq',
BACKGROUND_SEQ: '_local/background-seq',
};
// User Roles
const USER_ROLES = {
ONLINE: 'mm-online',
};
module.exports = {
DOC_IDS,
DOC_TYPES,
HTTP_HEADERS,
SENTINEL_METADATA,
USER_ROLES,
CONTACT_TYPES,
};