UNPKG

@botonic/plugin-hubtype-analytics

Version:

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

18 lines 688 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HtEvent = void 0; /* eslint-disable @typescript-eslint/naming-convention */ const core_1 = require("@botonic/core"); class HtEvent { constructor(event, requestData) { this.chat_id = requestData.userId; this.format_version = core_1.EVENT_FORMAT_VERSION; this.action = event.action; this.bot_interaction_id = requestData.botInteractionId; this.user_locale = requestData.userLocale; this.user_country = requestData.userCountry; this.system_locale = requestData.systemLocale; } } exports.HtEvent = HtEvent; //# sourceMappingURL=ht-event.js.map