11/**
2- * Copyright 2024, Optimizely
2+ * Copyright 2024-2025 , Optimizely
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1414 * limitations under the License.
1515 */
1616export 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.' ;
1817export 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' ;
2118export const EXPERIMENT_KEY_NOT_IN_DATAFILE = 'Experiment key %s is not in datafile.' ;
2219export 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)' ;
2520export const INVALID_ATTRIBUTES = 'Provided attributes are in an invalid format.' ;
2621export const INVALID_BUCKETING_ID = 'Unable to generate hash for bucketing ID %s: %s' ;
2722export 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.';
3833export const INVALID_LOGGER = 'Provided "logger" is in an invalid format.' ;
3934export const INVALID_USER_ID = 'Provided user ID is in an invalid format.' ;
4035export 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.' ;
4236export const MISSING_INTEGRATION_KEY =
4337 'Integration key missing from datafile. All integrations should include a key.' ;
4438export const NO_DATAFILE_SPECIFIED = 'No datafile specified. Cannot start optimizely.' ;
4539export const NO_JSON_PROVIDED = 'No JSON object to validate against schema.' ;
4640export const NO_EVENT_PROCESSOR = 'No event processor is provided' ;
4741export 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 .' ;
4943export const ODP_EVENT_FAILED = 'ODP event send failed.' ;
5044export const ODP_EVENT_MANAGER_IS_NOT_RUNNING = 'ODP event manager is not running.' ;
5145export 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' ;
8048export const UNDEFINED_ATTRIBUTE = 'Provided attribute: %s has an undefined value.' ;
8149export const UNRECOGNIZED_ATTRIBUTE =
8250 'Unrecognized attribute %s provided. Pruning before sending event to Optimizely.' ;
@@ -86,17 +54,15 @@ export const USER_NOT_IN_FORCED_VARIATION =
8654export const USER_PROFILE_LOOKUP_ERROR = 'Error while looking up user profile for user ID "%s": %s.' ;
8755export const USER_PROFILE_SAVE_ERROR = 'Error while saving user profile for user ID "%s": %s.' ;
8856export 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.' ;
9259export const INVALID_INPUT_FORMAT = 'Provided %s is in an invalid format.' ;
9360export const INVALID_DATAFILE_VERSION =
9461 'This version of the JavaScript SDK does not support the given datafile version: %s' ;
9562export 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.' ;
9763export const ERROR_FETCHING_DATAFILE = 'Error fetching datafile: %s' ;
9864export 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.' ;
10066export const EVENT_ACTION_INVALID = 'Event action invalid.' ;
10167export const FAILED_TO_SEND_ODP_EVENTS = 'failed to send odp events' ;
10268export 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';
135101export const FAILED_TO_DISPATCH_EVENTS = 'Failed to dispatch events'
136102export const FAILED_TO_DISPATCH_EVENTS_WITH_ARG = 'Failed to dispatch events: %s' ;
137103export 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).' ;
141104export const ODP_MANAGER_STOPPED_BEFORE_RUNNING = 'odp manager stopped before running' ;
142105export 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' ;
144106export const DATAFILE_MANAGER_FAILED_TO_START = 'Datafile manager failed to start' ;
145107export 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' ;
146109
147110export const messages : string [ ] = [ ] ;
0 commit comments