UNPKG

@botonic/plugin-hubtype-analytics

Version:

Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord

17 lines 708 B
import { EventAction, EventType } from '../types'; import { HtEvent } from './ht-event'; export class HtEventKeyword extends HtEvent { constructor(event, requestData) { super(event, requestData); this.type = EventType.BotEvent; this.action = EventAction.Keyword; this.nlu_keyword_name = event.nluKeywordName; this.nlu_keyword_is_regex = event.nluKeywordIsRegex || false; this.nlu_keyword_message_id = event.nluKeywordMessageId; this.user_input = event.userInput; this.flow_thread_id = event.flowThreadId; this.flow_id = event.flowId; this.flow_node_id = event.flowNodeId; } } //# sourceMappingURL=ht-event-keyword.js.map