@@ -18,33 +18,33 @@ export const BROWSER_ODP_MANAGER_INITIALIZATION_FAILED = '%s: Error initializing
18
18
export const CONDITION_EVALUATOR_ERROR = 'Error evaluating audience condition of type %s: %s' ;
19
19
export const DATAFILE_AND_SDK_KEY_MISSING =
20
20
'%s: You must provide at least one of sdkKey or datafile. Cannot start Optimizely' ;
21
- export const EXPERIMENT_KEY_NOT_IN_DATAFILE = '%s: Experiment key %s is not in datafile.' ;
21
+ export const EXPERIMENT_KEY_NOT_IN_DATAFILE = 'Experiment key %s is not in datafile.' ;
22
22
export const FEATURE_NOT_IN_DATAFILE = 'Feature key %s is not in datafile.' ;
23
23
export const FETCH_SEGMENTS_FAILED_NETWORK_ERROR = '%s: Audience segments fetch failed. (network error)' ;
24
24
export const FETCH_SEGMENTS_FAILED_DECODE_ERROR = '%s: Audience segments fetch failed. (decode error)' ;
25
25
export const IMPROPERLY_FORMATTED_EXPERIMENT = 'Experiment key %s is improperly formatted.' ;
26
- export const INVALID_ATTRIBUTES = '%s: Provided attributes are in an invalid format.' ;
27
- export const INVALID_BUCKETING_ID = '%s: Unable to generate hash for bucketing ID %s: %s' ;
28
- export const INVALID_DATAFILE = '%s: Datafile is invalid - property %s: %s' ;
29
- export const INVALID_DATAFILE_MALFORMED = '%s: Datafile is invalid because it is malformed.' ;
30
- export const INVALID_CONFIG = '%s: Provided Optimizely config is in an invalid format.' ;
31
- export const INVALID_JSON = '%s: JSON object is not valid.' ;
32
- export const INVALID_ERROR_HANDLER = '%s: Provided "errorHandler" is in an invalid format.' ;
33
- export const INVALID_EVENT_DISPATCHER = '%s: Provided "eventDispatcher" is in an invalid format.' ;
34
- export const INVALID_EVENT_TAGS = '%s: Provided event tags are in an invalid format.' ;
26
+ export const INVALID_ATTRIBUTES = 'Provided attributes are in an invalid format.' ;
27
+ export const INVALID_BUCKETING_ID = 'Unable to generate hash for bucketing ID %s: %s' ;
28
+ export const INVALID_DATAFILE = 'Datafile is invalid - property %s: %s' ;
29
+ export const INVALID_DATAFILE_MALFORMED = 'Datafile is invalid because it is malformed.' ;
30
+ export const INVALID_CONFIG = 'Provided Optimizely config is in an invalid format.' ;
31
+ export const INVALID_JSON = 'JSON object is not valid.' ;
32
+ export const INVALID_ERROR_HANDLER = 'Provided "errorHandler" is in an invalid format.' ;
33
+ export const INVALID_EVENT_DISPATCHER = 'Provided "eventDispatcher" is in an invalid format.' ;
34
+ export const INVALID_EVENT_TAGS = 'Provided event tags are in an invalid format.' ;
35
35
export const INVALID_EXPERIMENT_KEY =
36
36
'Experiment key %s is not in datafile. It is either invalid, paused, or archived.' ;
37
37
export const INVALID_EXPERIMENT_ID = 'Experiment ID %s is not in datafile.' ;
38
- export const INVALID_GROUP_ID = '%s: Group ID %s is not in datafile.' ;
39
- export const INVALID_LOGGER = '%s: Provided "logger" is in an invalid format.' ;
38
+ export const INVALID_GROUP_ID = 'Group ID %s is not in datafile.' ;
39
+ export const INVALID_LOGGER = 'Provided "logger" is in an invalid format.' ;
40
40
export const INVALID_ROLLOUT_ID = 'Invalid rollout ID %s attached to feature %s' ;
41
- export const INVALID_USER_ID = '%s: Provided user ID is in an invalid format.' ;
42
- export const INVALID_USER_PROFILE_SERVICE = '%s: Provided user profile service instance is in an invalid format: %s.' ;
41
+ export const INVALID_USER_ID = 'Provided user ID is in an invalid format.' ;
42
+ export const INVALID_USER_PROFILE_SERVICE = 'Provided user profile service instance is in an invalid format: %s.' ;
43
43
export const LOCAL_STORAGE_DOES_NOT_EXIST = 'Error accessing window localStorage.' ;
44
44
export const MISSING_INTEGRATION_KEY =
45
- '%s: Integration key missing from datafile. All integrations should include a key.' ;
46
- export const NO_DATAFILE_SPECIFIED = '%s: No datafile specified. Cannot start optimizely.' ;
47
- export const NO_JSON_PROVIDED = '%s: No JSON object to validate against schema.' ;
45
+ 'Integration key missing from datafile. All integrations should include a key.' ;
46
+ export const NO_DATAFILE_SPECIFIED = 'No datafile specified. Cannot start optimizely.' ;
47
+ export const NO_JSON_PROVIDED = 'No JSON object to validate against schema.' ;
48
48
export const NO_EVENT_PROCESSOR = 'No event processor is provided' ;
49
49
export const NO_VARIATION_FOR_EXPERIMENT_KEY = 'No variation key %s defined in datafile for experiment %s.' ;
50
50
export const ODP_CONFIG_NOT_AVAILABLE = '%s: ODP is not integrated to the project.' ;
@@ -79,21 +79,21 @@ export const ODP_VUID_INITIALIZATION_FAILED = '%s: ODP VUID initialization faile
79
79
export const ODP_VUID_REGISTRATION_FAILED = '%s: ODP VUID failed to be registered.' ;
80
80
export const ODP_VUID_REGISTRATION_FAILED_EVENT_MANAGER_MISSING =
81
81
'%s: ODP register vuid failed. (Event Manager not instantiated).' ;
82
- export const UNDEFINED_ATTRIBUTE = '%s: Provided attribute: %s has an undefined value.' ;
82
+ export const UNDEFINED_ATTRIBUTE = 'Provided attribute: %s has an undefined value.' ;
83
83
export const UNRECOGNIZED_ATTRIBUTE =
84
84
'Unrecognized attribute %s provided. Pruning before sending event to Optimizely.' ;
85
85
export const UNABLE_TO_CAST_VALUE = 'Unable to cast value %s to type %s, returning null.' ;
86
86
export const USER_NOT_IN_FORCED_VARIATION =
87
- '%s: User %s is not in the forced variation map. Cannot remove their forced variation.' ;
87
+ 'User %s is not in the forced variation map. Cannot remove their forced variation.' ;
88
88
export const USER_PROFILE_LOOKUP_ERROR = 'Error while looking up user profile for user ID "%s": %s.' ;
89
89
export const USER_PROFILE_SAVE_ERROR = 'Error while saving user profile for user ID "%s": %s.' ;
90
90
export const VARIABLE_KEY_NOT_IN_DATAFILE =
91
91
'%s: Variable with key "%s" associated with feature with key "%s" is not in datafile.' ;
92
92
export const VARIATION_ID_NOT_IN_DATAFILE = '%s: No variation ID %s defined in datafile for experiment %s.' ;
93
93
export const VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT = 'Variation ID %s is not in the datafile.' ;
94
- export const INVALID_INPUT_FORMAT = '%s: Provided %s is in an invalid format.' ;
94
+ export const INVALID_INPUT_FORMAT = 'Provided %s is in an invalid format.' ;
95
95
export const INVALID_DATAFILE_VERSION =
96
- '%s: This version of the JavaScript SDK does not support the given datafile version: %s' ;
96
+ 'This version of the JavaScript SDK does not support the given datafile version: %s' ;
97
97
export const INVALID_VARIATION_KEY = 'Provided variation key is in an invalid format.' ;
98
98
export const UNABLE_TO_GET_VUID = 'Unable to get VUID - ODP Manager is not instantiated yet.' ;
99
99
export const ERROR_FETCHING_DATAFILE = 'Error fetching datafile: %s' ;
@@ -126,5 +126,25 @@ export const REQUEST_TIMEOUT = 'Request timeout';
126
126
export const REQUEST_ERROR = 'Request error' ;
127
127
export const NO_STATUS_CODE_IN_RESPONSE = 'No status code in response' ;
128
128
export const UNSUPPORTED_PROTOCOL = 'Unsupported protocol: %s' ;
129
+ export const ONREADY_TIMEOUT = 'onReady timeout expired after %s ms' ;
130
+ export const INSTANCE_CLOSED = 'Instance closed' ;
131
+ export const DATAFILE_MANAGER_STOPPED = 'Datafile manager stopped before it could be started' ;
132
+ export const FAILED_TO_FETCH_DATAFILE = 'Failed to fetch datafile' ;
133
+ export const NO_SDKKEY_OR_DATAFILE = 'At least one of sdkKey or datafile must be provided' ;
134
+ export const RETRY_CANCELLED = 'Retry cancelled' ;
135
+ export const SERVICE_STOPPED_BEFORE_IT_WAS_STARTED = 'Service stopped before it was started' ;
136
+ export const ONLY_POST_REQUESTS_ARE_SUPPORTED = 'Only POST requests are supported' ;
137
+ export const SEND_BEACON_FAILED = 'sendBeacon failed' ;
138
+ export const FAILED_TO_DISPATCH_EVENTS = 'Failed to dispatch events'
139
+ export const FAILED_TO_DISPATCH_EVENTS_WITH_ARG = 'Failed to dispatch events: %s' ;
140
+ export const EVENT_PROCESSOR_STOPPED = 'Event processor stopped before it could be started' ;
141
+ export const CANNOT_START_WITHOUT_ODP_CONFIG = 'cannot start without ODP config' ;
142
+ export const START_CALLED_WHEN_ODP_IS_NOT_INTEGRATED = 'start() called when ODP is not integrated' ;
143
+ export const ODP_ACTION_IS_NOT_VALID = 'ODP action is not valid (cannot be empty).' ;
144
+ export const ODP_MANAGER_STOPPED_BEFORE_RUNNING = 'odp manager stopped before running' ;
145
+ export const ODP_EVENT_MANAGER_STOPPED = "ODP event manager stopped before it could start" ;
146
+ export const ONREADY_TIMEOUT_EXPIRED = 'onReady timeout expired after %s ms' ;
147
+ export const DATAFILE_MANAGER_FAILED_TO_START = 'Datafile manager failed to start' ;
148
+
129
149
130
150
export const messages : string [ ] = [ ] ;
0 commit comments