import { TaggingInfo } from '@empathyco/x-types' ; import { track } from './actions/track.action' ; import { TaggingXStoreModule } from './types' ; /**
 *  XStoreModule For the tagging module.
 *
 *  internal export const taggingXStoreModule = { state : ( ) => ( { config : { sessionTTLMs : 30 * 60 * 1000 , queryTaggingDebounceMs : 2000 } , consent : null , queryTaggingInfo : null } ) , getters : { } , mutations : { setSessionDuration ( state , sessionTTLMs ) { state . config . sessionTTLMs = sessionTTLMs ; } , setQueryTaggingDebounce ( state , queryTaggingDebounceMs ) { state . config . queryTaggingDebounceMs = queryTaggingDebounceMs ; } , setConsent ( state , consent ) { state . consent = consent ; } , setQueryTaggingInfo ( state , queryTaggingInfo ) { state . queryTaggingInfo = queryTaggingInfo ; } } , actions : { track } } ;