-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.ts
86 lines (83 loc) · 1.69 KB
/
constants.ts
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export const MAX_SESSION_DURATION = 1800000; // 30 minutes in ms
export const HEARTBEAT_INTERVAL = 30000; // 30 seconds in ms
export const AD_IN_VIEW_PERCENTAGE = 50;
export const CCPA_LOCATIONS = ["US", "PR", "VI", "UM", ""];
export const queueOptions = {
minRetryDelay: 30000,
maxRetryDelay: 120000,
maxItems: 5,
maxAttempts: 10,
backoffFactor: 2,
backoffJitter: 0,
};
// TODO: Add URLS here
export const URLS = {
cdnOrigin: "",
iFramePath: {
DEV: "",
TEST: "",
PROD: "",
INTEGRATION: "",
AUTOMATED_TEST: "",
},
thirdPartyCookie: "",
carouselScript: "",
carouselStyles: "",
locate: "",
featureFlag: {
DEV: "",
TEST: "",
PROD: "",
INTEGRATION: "",
AUTOMATED_TEST: "",
},
identity: {
DEV: "",
TEST: "",
PROD: "",
INTEGRATION: "",
AUTOMATED_TEST: "",
},
inbrain: {
DEV: "",
TEST: "",
PROD: "",
INTEGRATION: "",
AUTOMATED_TEST: "",
},
idresolve: {
DEV: "",
TEST: "",
PROD: "",
INTEGRATION: "",
AUTOMATED_TEST: "",
},
logs: {
DEV: "",
TEST: "",
PROD: "",
INTEGRATION: "",
AUTOMATED_TEST: "",
},
};
// Default flag values in case there's an issue with the FF client
// TODO: Set Default Flag Values
export const featureFlagDefaults = {
"identity-onstart": true,
"identity-oncomplete": true,
session: true,
privacy: true,
telemetry: true,
"consent-update": true,
"heartbeat-event": false,
"pubsub-event": false,
"outside-us-location-check": false,
"send-logs": true,
idresolve: false,
inbrain: false,
inBrainTemplateBeta: false,
inBrainRecommendationsBeta: false,
// for unit tests
"test-enabled": true,
"test-disabled": false,
};