mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 02:37:05 +00:00 
			
		
		
		
	
		
			
	
	
		
			27 lines
		
	
	
		
			865 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			865 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|   | import { IBaseTrackingEvent } from '@datahub/shared/types/tracking/event-tracking'; | ||
|  | import { TrackingEventCategory } from '@datahub/shared/constants/tracking/event-tracking'; | ||
|  | /** | ||
|  |  * Enum of search action clicks meant to be used for search tracking event keys | ||
|  |  * @enum | ||
|  |  */ | ||
|  | enum searchActions { | ||
|  |   SearchResultClick = 'SearchResultClick', | ||
|  |   SearchResultSATClick = 'SearchResultSATClick', | ||
|  |   SearchResultFacetClick = 'SearchResultFacetClick' | ||
|  | } | ||
|  | 
 | ||
|  | export const searchTrackingEvent: Record<searchActions, IBaseTrackingEvent> = { | ||
|  |   SearchResultClick: { | ||
|  |     category: TrackingEventCategory.Search, | ||
|  |     action: 'SearchResultClickEvent' | ||
|  |   }, | ||
|  |   SearchResultSATClick: { | ||
|  |     category: TrackingEventCategory.Search, | ||
|  |     action: 'SearchResultSATClickEvent' | ||
|  |   }, | ||
|  |   SearchResultFacetClick: { | ||
|  |     category: TrackingEventCategory.Search, | ||
|  |     action: 'SearchResultFacetClickEvent' | ||
|  |   } | ||
|  | }; |