1
1
/**
2
- * Copyright 2024, Optimizely
2
+ * Copyright 2024-2025 , Optimizely
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
export const NOTIFICATION_LISTENER_EXCEPTION = 'Notification listener for (%s) threw exception: %s' ;
17
- export const BROWSER_ODP_MANAGER_INITIALIZATION_FAILED = '%s: Error initializing Browser ODP Manager.' ;
18
17
export const CONDITION_EVALUATOR_ERROR = 'Error evaluating audience condition of type %s: %s' ;
19
- export const DATAFILE_AND_SDK_KEY_MISSING =
20
- '%s: You must provide at least one of sdkKey or datafile. Cannot start Optimizely' ;
21
18
export const EXPERIMENT_KEY_NOT_IN_DATAFILE = 'Experiment key %s is not in datafile.' ;
22
19
export const FEATURE_NOT_IN_DATAFILE = 'Feature key %s is not in datafile.' ;
23
- export const FETCH_SEGMENTS_FAILED_NETWORK_ERROR = '%s: Audience segments fetch failed. (network error)' ;
24
- export const FETCH_SEGMENTS_FAILED_DECODE_ERROR = '%s: Audience segments fetch failed. (decode error)' ;
25
20
export const INVALID_ATTRIBUTES = 'Provided attributes are in an invalid format.' ;
26
21
export const INVALID_BUCKETING_ID = 'Unable to generate hash for bucketing ID %s: %s' ;
27
22
export const INVALID_DATAFILE = 'Datafile is invalid - property %s: %s' ;
@@ -38,45 +33,18 @@ export const INVALID_GROUP_ID = 'Group ID %s is not in datafile.';
38
33
export const INVALID_LOGGER = 'Provided "logger" is in an invalid format.' ;
39
34
export const INVALID_USER_ID = 'Provided user ID is in an invalid format.' ;
40
35
export const INVALID_USER_PROFILE_SERVICE = 'Provided user profile service instance is in an invalid format: %s.' ;
41
- export const LOCAL_STORAGE_DOES_NOT_EXIST = 'Error accessing window localStorage.' ;
42
36
export const MISSING_INTEGRATION_KEY =
43
37
'Integration key missing from datafile. All integrations should include a key.' ;
44
38
export const NO_DATAFILE_SPECIFIED = 'No datafile specified. Cannot start optimizely.' ;
45
39
export const NO_JSON_PROVIDED = 'No JSON object to validate against schema.' ;
46
40
export const NO_EVENT_PROCESSOR = 'No event processor is provided' ;
47
41
export const NO_VARIATION_FOR_EXPERIMENT_KEY = 'No variation key %s defined in datafile for experiment %s.' ;
48
- export const ODP_CONFIG_NOT_AVAILABLE = '%s: ODP is not integrated to the project .' ;
42
+ export const ODP_CONFIG_NOT_AVAILABLE = 'ODP config is not available .' ;
49
43
export const ODP_EVENT_FAILED = 'ODP event send failed.' ;
50
44
export const ODP_EVENT_MANAGER_IS_NOT_RUNNING = 'ODP event manager is not running.' ;
51
45
export const ODP_EVENTS_SHOULD_HAVE_ATLEAST_ONE_KEY_VALUE = 'ODP events should have at least one key-value pair in identifiers.' ;
52
- export const ODP_FETCH_QUALIFIED_SEGMENTS_SEGMENTS_MANAGER_MISSING =
53
- '%s: ODP unable to fetch qualified segments (Segments Manager not initialized).' ;
54
- export const ODP_IDENTIFY_FAILED_EVENT_MANAGER_MISSING =
55
- '%s: ODP identify event %s is not dispatched (Event Manager not instantiated).' ;
56
- export const ODP_INITIALIZATION_FAILED = '%s: ODP failed to initialize.' ;
57
- export const ODP_INVALID_DATA = '%s: ODP data is not valid' ;
58
- export const ODP_EVENT_FAILED_ODP_MANAGER_MISSING = '%s: ODP Event failed to send. (ODP Manager not initialized).' ;
59
- export const ODP_FETCH_QUALIFIED_SEGMENTS_FAILED_ODP_MANAGER_MISSING =
60
- '%s: ODP failed to Fetch Qualified Segments. (ODP Manager not initialized).' ;
61
- export const ODP_IDENTIFY_USER_FAILED_ODP_MANAGER_MISSING =
62
- '%s: ODP failed to Identify User. (ODP Manager not initialized).' ;
63
- export const ODP_IDENTIFY_USER_FAILED_USER_CONTEXT_INITIALIZATION =
64
- '%s: ODP failed to Identify User. (Failed during User Context Initialization).' ;
65
- export const ODP_MANAGER_UPDATE_SETTINGS_FAILED_EVENT_MANAGER_MISSING =
66
- '%s: ODP Manager failed to update OdpConfig settings for internal event manager. (Event Manager not initialized).' ;
67
- export const ODP_MANAGER_UPDATE_SETTINGS_FAILED_SEGMENTS_MANAGER_MISSING =
68
- '%s: ODP Manager failed to update OdpConfig settings for internal segments manager. (Segments Manager not initialized).' ;
69
- export const ODP_NOT_ENABLED = 'ODP is not enabled' ;
70
- export const ODP_NOT_INTEGRATED = '%s: ODP is not integrated' ;
71
- export const ODP_SEND_EVENT_FAILED_EVENT_MANAGER_MISSING =
72
- '%s: ODP send event %s was not dispatched (Event Manager not instantiated).' ;
73
- export const ODP_SEND_EVENT_FAILED_UID_MISSING =
74
- '%s: ODP send event %s was not dispatched (No valid user identifier provided).' ;
75
- export const ODP_SEND_EVENT_FAILED_VUID_MISSING = '%s: ODP send event %s was not dispatched (Unable to fetch VUID).' ;
76
- export const ODP_VUID_INITIALIZATION_FAILED = '%s: ODP VUID initialization failed.' ;
77
- export const ODP_VUID_REGISTRATION_FAILED = '%s: ODP VUID failed to be registered.' ;
78
- export const ODP_VUID_REGISTRATION_FAILED_EVENT_MANAGER_MISSING =
79
- '%s: ODP register vuid failed. (Event Manager not instantiated).' ;
46
+ export const ODP_EVENT_FAILED_ODP_MANAGER_MISSING = 'ODP Event failed to send. (ODP Manager not available).' ;
47
+ export const ODP_NOT_INTEGRATED = 'ODP is not integrated' ;
80
48
export const UNDEFINED_ATTRIBUTE = 'Provided attribute: %s has an undefined value.' ;
81
49
export const UNRECOGNIZED_ATTRIBUTE =
82
50
'Unrecognized attribute %s provided. Pruning before sending event to Optimizely.' ;
@@ -86,17 +54,15 @@ export const USER_NOT_IN_FORCED_VARIATION =
86
54
export const USER_PROFILE_LOOKUP_ERROR = 'Error while looking up user profile for user ID "%s": %s.' ;
87
55
export const USER_PROFILE_SAVE_ERROR = 'Error while saving user profile for user ID "%s": %s.' ;
88
56
export const VARIABLE_KEY_NOT_IN_DATAFILE =
89
- '%s: Variable with key "%s" associated with feature with key "%s" is not in datafile.' ;
90
- export const VARIATION_ID_NOT_IN_DATAFILE = '%s: No variation ID %s defined in datafile for experiment %s.' ;
91
- export const VARIATION_ID_NOT_IN_DATAFILE_NO_EXPERIMENT = 'Variation ID %s is not in the datafile.' ;
57
+ 'Variable with key "%s" associated with feature with key "%s" is not in datafile.' ;
58
+ export const VARIATION_ID_NOT_IN_DATAFILE = 'Variation ID %s is not in the datafile.' ;
92
59
export const INVALID_INPUT_FORMAT = 'Provided %s is in an invalid format.' ;
93
60
export const INVALID_DATAFILE_VERSION =
94
61
'This version of the JavaScript SDK does not support the given datafile version: %s' ;
95
62
export const INVALID_VARIATION_KEY = 'Provided variation key is in an invalid format.' ;
96
- export const UNABLE_TO_GET_VUID = 'Unable to get VUID - ODP Manager is not instantiated yet.' ;
97
63
export const ERROR_FETCHING_DATAFILE = 'Error fetching datafile: %s' ;
98
64
export const DATAFILE_FETCH_REQUEST_FAILED = 'Datafile fetch request failed with status: %s' ;
99
- export const EVENT_DATA_FOUND_TO_BE_INVALID = 'Event data found to be invalid.' ;
65
+ export const EVENT_DATA_INVALID = 'Event data invalid.' ;
100
66
export const EVENT_ACTION_INVALID = 'Event action invalid.' ;
101
67
export const FAILED_TO_SEND_ODP_EVENTS = 'failed to send odp events' ;
102
68
export const UNABLE_TO_GET_VUID_VUID_MANAGER_NOT_AVAILABLE = 'Unable to get VUID - VuidManager is not available'
@@ -135,13 +101,10 @@ export const SEND_BEACON_FAILED = 'sendBeacon failed';
135
101
export const FAILED_TO_DISPATCH_EVENTS = 'Failed to dispatch events'
136
102
export const FAILED_TO_DISPATCH_EVENTS_WITH_ARG = 'Failed to dispatch events: %s' ;
137
103
export const EVENT_PROCESSOR_STOPPED = 'Event processor stopped before it could be started' ;
138
- export const CANNOT_START_WITHOUT_ODP_CONFIG = 'cannot start without ODP config' ;
139
- export const START_CALLED_WHEN_ODP_IS_NOT_INTEGRATED = 'start() called when ODP is not integrated' ;
140
- export const ODP_ACTION_IS_NOT_VALID = 'ODP action is not valid (cannot be empty).' ;
141
104
export const ODP_MANAGER_STOPPED_BEFORE_RUNNING = 'odp manager stopped before running' ;
142
105
export const ODP_EVENT_MANAGER_STOPPED = "ODP event manager stopped before it could start" ;
143
- export const ONREADY_TIMEOUT_EXPIRED = 'onReady timeout expired after %s ms' ;
144
106
export const DATAFILE_MANAGER_FAILED_TO_START = 'Datafile manager failed to start' ;
145
107
export const UNABLE_TO_ATTACH_UNLOAD = 'unable to bind optimizely.close() to page unload event: "%s"' ;
108
+ export const UNABLE_TO_PARSE_AND_SKIPPED_HEADER = 'Unable to parse & skipped header item' ;
146
109
147
110
export const messages : string [ ] = [ ] ;
0 commit comments