declare namespace Events { /** * Triggered when the original query is updated. * Returns the original query. */ const ORIGINAL_QUERY_UPDATED = "original_query_updated"; /** * Triggered when the corrected query is updated. * Returns the corrected query. */ const CORRECTED_QUERY_UPDATED = "corrected_query_updated"; /** * Triggered when related queries are updated. * Returns the related queries. */ const RELATED_QUERIES_UPDATED = "related_queries_updated"; /** * Triggered when did you means are updated. * Returns the did you means. */ const DID_YOU_MEANS_UPDATED = "did_you_means_updated"; /** * Triggered when query rewrites are updated. * Returns the query rewrites. */ const QUERY_REWRITES_UPDATED = "query_rewrites_updated"; /** * Triggered when sorts are updated. * Returns the sorts object. */ const SORTS_UPDATED = "sorts_updated"; /** * Triggered when the sort items are updated. * Returns an array of sort items. */ const SORTS_ITEMS_UPDATED = "sorts_items_updated"; /** * Triggered when the sort labels are updated. * Returns an array of sort labels. */ const SORTS_LABELS_UPDATED = "sorts_labels_updated"; /** * Triggered when the selected sort is updated. * Returns the index of the selected sort. */ const SORTS_SELECTED_UPDATED = "sorts_selected_updated"; /** * Triggered when products are updated. * Returns the products. */ const PRODUCTS_UPDATED = "products_updated"; /** * Triggered when more products are added to the products array. * Returns the new products. */ const MORE_PRODUCTS_ADDED = "more_products_added"; /** * Triggered when collection object is updated. * Returns the collection object. */ const COLLECTION_UPDATED = "collection_updated"; /** * Triggered when selected collection is updated. * Returns the selected collection. */ const SELECTED_COLLECTION_UPDATED = "selected_collection_updated"; /** * Triggered when navigations are updated. * Returns the navigations object. */ const NAVIGATIONS_UPDATED = "navigations_updated"; /** * Triggered when selected refinements are updated. * Listened to in the format 'selected_refinements_updated:id', where id is the * refinement's id. * Returns the selected refinement. */ const SELECTED_REFINEMENTS_UPDATED = "selected_refinements_updated"; /** * Triggered when autocomplete query is updated. * Returns the autocomplete query. */ const AUTOCOMPLETE_QUERY_UPDATED = "autocomplete_query_updated"; /** * Triggered when autocomplete suggestions are updated. * Returns the autocomplete suggestions. */ const AUTOCOMPLETE_SUGGESTIONS_UPDATED = "autocomplete_suggestions_updated"; /** * Triggered when autocomplete product suggestions are updated. * Returns the autocomplete products. */ const AUTOCOMPLETE_PRODUCTS_UPDATED = "autocomplete_products_updated"; /** * Triggered when autocomplete template is updated. * Returns the autocomplete template. */ const AUTOCOMPLETE_TEMPLATE_UPDATED = "autocomplete_template_updated"; /** * Triggered when template is updated. * Returns the template. */ const TEMPLATE_UPDATED = "template_updated"; /** * Triggered when details page is updated. * Returns the details data. */ const DETAILS_UPDATED = "details_updated"; /** * Triggered when page object is updated. * Returns the page object. */ const PAGE_UPDATED = "page_updated"; /** * Triggered when page size is updated. * Returns the sizes object. */ const PAGE_SIZE_UPDATED = "page_size_updated"; /** * Triggered when current page is updated. * Returns the current page number. */ const CURRENT_PAGE_UPDATED = "current_page_updated"; /** * Triggered when infinite scroll is updated. * Returns the current infinite scroll object. */ const INFINITE_SCROLL_UPDATED = "infinite_scroll_updated"; /** * Triggered when record count is updated. * Returns the record count number. */ const RECORD_COUNT_UPDATED = "record_count_updated"; /** * Triggered when the recallId changes. Occurs when a new search with * different refinements selected or a new query is fired. * Returns the recallId. */ const RECALL_CHANGED = "recall_changed"; /** * Triggered when searchId changes. Occurs whenever a new search is fired. * Returns the searchId. */ const SEARCH_CHANGED = "search_changed"; /** * Triggered when detailsId changes. Occurs whenever a new details search is fired. * Returns the searchId. */ const DETAILS_CHANGED = "details_changed"; /** * Triggered when pastPurchaseId changes. Occurs whenever a new past purchase search is fired. * Returns the pastPurchaseId. */ const PAST_PURCHASE_CHANGED = "past_purchase_changed"; /** * Triggered when redirect occurs. * Returns the redirect. */ const REDIRECT = "redirect"; /** * Triggered when recommendations products are updated. * Returns the recommendations products object. */ const RECOMMENDATIONS_PRODUCTS_UPDATED = "recommendations_products_updated"; /** * Triggered when past purchases are updated * Returns the past purchases products array */ const PAST_PURCHASES_UPDATED = "past_purchases_updated"; /** * Triggered when the product ids of the past purchase products are updated * Returns the new array of past purchase skus */ const PAST_PURCHASE_SKUS_UPDATED = "past_purchase_skus_updated"; /** * Triggered when the current past purchase products to show in the sayt menu are updated * Returns the new product array */ const SAYT_PAST_PURCHASES_UPDATED = "sayt_past_purchases_updated"; /** * Triggered when the past purchase products are updated * Returns an array of the new past purchase products */ const PAST_PURCHASE_PRODUCTS_UPDATED = "past_purchase_products_updated"; /** * Triggered when the more past purchase products are added * Returns an array of the new past purchase products that were added */ const PAST_PURCHASE_MORE_PRODUCTS_ADDED = "past_purchase_more_products_added"; /** * Triggered when the past purchase navigations are updated * Returns the new navigations */ const PAST_PURCHASE_NAVIGATIONS_UPDATED = "past_purchase_navigations_updated"; /** * Triggered when the past purchase query is updated * Returns the new query */ const PAST_PURCHASE_QUERY_UPDATED = "past_purchase_query_updated"; /** * Triggered when the past purchase page object is updated * Returns the new page object */ const PAST_PURCHASE_PAGE_UPDATED = "past_purchase_page_updated"; /** * Triggered when the past purchase current page number is udpated * Returns the new page number */ const PAST_PURCHASE_CURRENT_PAGE_UPDATED = "past_purchase_current_page_updated"; /** * Triggered when the past purchse page size is updated * Returns the new page size */ const PAST_PURCHASE_PAGE_SIZE_UPDATED = "past_purchase_page_size_updated"; /** * Triggered when the past purchase sort object is updated * Returns the new sort object */ const PAST_PURCHASE_SORT_UPDATED = "past_purchase_sort_updated"; /** * Triggered when the past purchase sort items are updated. * Returns an array of past purchase sort items. */ const PAST_PURCHASE_SORT_ITEMS_UPDATED = "past_purchase_sort_items_updated"; /** * Triggered when the past purchase sort labels are updated. * Returns an array of past purchase sort labels. */ const PAST_PURCHASE_SORT_LABELS_UPDATED = "past_purchase_sort_labels_updated"; /** * Triggered when the past purchase sort selected is updated. * Returns the index of the selected past purchase sort. */ const PAST_PURCHASE_SORT_SELECTED_UPDATED = "past_purchase_sort_selected_updated"; /** * Triggered when the past purchase allRecordCount is updated * Returns the new record count */ const PAST_PURCHASE_RECORD_COUNT_UPDATED = "past_purchase_record_count_updated"; /** * Triggered when past purchase selected refinements are updated. * Listened to in the format 'selected_refinements_updated:id', where id is the * refinement's id. * Returns the selected refinement. */ const PAST_PURCHASE_SELECTED_REFINEMENTS_UPDATED = "past_purchase_selected_refinements_updated"; /** * Triggered when past purchase template is updated. * Returns the past purchase template */ const PAST_PURCHASE_TEMPLATE_UPDATED = "past_purchase_template_updated"; /** * Triggered when an action error occurs. * Returns the error. */ const ERROR_ACTION = "error:action"; /** * Triggered when a bridge error occurs. * Returns the error. */ const ERROR_BRIDGE = "error:bridge"; /** * Triggered when a fetch action error occurs. * Returns the error. */ const ERROR_FETCH_ACTION = "error:fetch_action"; /** * Triggered when the UI section of the store is updated. * Listened to in the format 'ui:updated:tagName:id', where tagName is the * name of the tag, and id is the tag's id. */ const UI_UPDATED = "ui:updated"; /** * Triggered when the app is started. * Returns true. */ const APP_STARTED = "app:started"; /** * Triggered when the app is killed. * Returns false. */ const APP_KILLED = "app:killed"; /** * Triggered when the location is updated. * Returns the location. */ const LOCATION_UPDATED = "location:updated"; /** * Triggered when a search beacon is sent. * Returns the search id from the search response. */ const BEACON_SEARCH = "beacon:search"; /** * Triggered when a view product beacon is sent. * Returns the product viewed. */ const BEACON_VIEW_PRODUCT = "beacon:view_product"; /** * Triggered when an add to cart beacon is sent. */ const BEACON_ADD_TO_CART = "beacon:add_to_cart"; /** * Triggered when a remove from cart beacon is sent. */ const BEACON_REMOVE_FROM_CART = "beacon:remove_from_cart"; /** * Triggered when a view cart beacon is sent. */ const BEACON_VIEW_CART = "beacon:view_cart"; /** * Triggered when an order beacon is sent. */ const BEACON_ORDER = "beacon:order"; /** * Triggered when more refinements beacon is sent */ const BEACON_MORE_REFINEMENTS = "beacon:more_refinements"; /** * INTERNAL EVENT: Triggered when an observer node has changed. */ const OBSERVER_NODE_CHANGED = "observer:node_changed"; /** * INTERNAL EVENT: Used by logging service to indicate tag lifecycle event has occurred. */ const TAG_LIFECYCLE = "tag:lifecycle"; /** * INTERNAL EVENT: Used by logging service to indicate tag aliasing event has occurred. */ const TAG_ALIASING = "tag:aliasing"; /** * Triggered when history is saved. * Returns the state. */ const HISTORY_SAVE = "history:save"; /** * Triggered when history is replaced. * Returns the state. */ const HISTORY_REPLACE = "history:replace"; /** * Triggered when the url is updated, the route is search, and a search request should be made. */ const SEARCH_URL_UPDATED = "search_url:updated"; /** * Triggered when the url is updated, the route is details, and a details request should be made. */ const DETAILS_URL_UPDATED = "details_url:updated"; /** * Triggered when the url is updated, the route is past purchases, and a past purchase request should be made. */ const PAST_PURCHASE_URL_UPDATED = "past_purchase_url:updated"; /** * Triggered when the url is updated, the route is custom, and a custom request should be made. */ const CUSTOM_URL_UPDATED = "custom_url:updated"; /** * Triggered when the url is updated. * Returns the url. */ const URL_UPDATED = "url:updated"; /** * Triggered when the route is updated. * Returns the route. */ const ROUTE_UPDATED = "route:updated"; /** * Triggered when biasing is rehydrated * returns true */ const PERSONALIZATION_BIASING_REHYDRATED = "personalization:biasing_rehydrated"; /** * Triggered when more refinements is fetching * returns true */ const FETCHING_MORE_REFINEMENTS = "fetching:more_refinements"; /** * Triggered when more products is fetching * returns true */ const FETCHING_MORE_PRODUCTS = "fetching:more_products"; /** * Triggered when search is fetching * returns true */ const FETCHING_SEARCH = "fetching:search"; /** * Triggered when autocomplete suggestions is fetching * returns true */ const FETCHING_AUTOCOMPLETE_SUGGESTIONS = "fetching:autocomplete_suggestions"; /** * Triggered when autocomplete products is fetching * returns true */ const FETCHING_AUTOCOMPLETE_PRODUCTS = "fetching:autocomplete_products"; /** * Triggered when more details is fetching * returns true */ const FETCHING_DETAILS = "fetching:details"; /** * Triggered when more refinements is done fetching * returns false */ const DONE_MORE_REFINEMENTS = "done:more_refinements"; /** * Triggered when more products is done fetching * returns false */ const DONE_MORE_PRODUCTS = "done:more_products"; /** * Triggered when search is done fetching * returns false */ const DONE_SEARCH = "done:search"; /** * Triggered when autocomplete suggestions is done fetching * returns false */ const DONE_AUTOCOMPLETE_SUGGESTIONS = "done:autocomplete_suggestions"; /** * Triggered when autocomplete products is done fetching * returns false */ const DONE_AUTOCOMPLETE_PRODUCTS = "done:autocomplete_products"; /** * Triggered when more details is done fetching * returns false */ const DONE_DETAILS = "done:details"; } export default Events;