@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
31 lines (28 loc) • 833 B
text/typescript
import {
EventAction,
EventHandoffOption,
EventType,
RequestData,
} from '../types'
import { HtEvent } from './ht-event'
export class HtEventHandoffOption extends HtEvent {
action: EventAction.HandoffOption
flow_thread_id?: string
flow_id: string
flow_name: string
flow_node_id: string
flow_node_content_id: string
handoff_queue_id?: string
handoff_queue_name?: string
constructor(event: EventHandoffOption, requestData: RequestData) {
super(event, requestData)
this.type = EventType.BotEvent
this.flow_thread_id = event.flowThreadId
this.flow_id = event.flowId
this.flow_name = event.flowName
this.flow_node_id = event.flowNodeId
this.flow_node_content_id = event.flowNodeContentId
this.handoff_queue_id = event.queueId
this.handoff_queue_name = event.queueName
}
}