@botonic/plugin-hubtype-analytics
Version:
Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord
24 lines • 1.04 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HtEventCaptureUserInput = void 0;
const types_1 = require("../types");
const ht_event_1 = require("./ht-event");
class HtEventCaptureUserInput extends ht_event_1.HtEvent {
constructor(event, requestData) {
super(event, requestData);
this.type = types_1.EventType.BotEvent;
this.action = types_1.EventAction.CaptureUserInput;
this.flow_id = event.flowId;
this.flow_name = event.flowName;
this.flow_node_id = event.flowNodeId;
this.flow_node_content_id = event.flowNodeContentId;
this.flow_thread_id = event.flowThreadId;
this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
this.field_name = event.fieldName;
this.user_input = event.userInput;
this.capture_success = event.captureSuccess;
this.message_id = event.messageId;
}
}
exports.HtEventCaptureUserInput = HtEventCaptureUserInput;
//# sourceMappingURL=ht-event-capture-user-input.js.map