@botonic/plugin-hubtype-analytics 0.55.0 → 0.57.0-rslib-esm.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/event-models/ht-event-ai-agent-router.d.ts +2 -2
- package/lib/esm/event-models/ht-event-ai-agent-router.js +26 -12
- package/lib/esm/event-models/ht-event-ai-agent-router.js.map +1 -1
- package/lib/esm/event-models/ht-event-ai-agent.d.ts +2 -2
- package/lib/esm/event-models/ht-event-ai-agent.js +46 -35
- package/lib/esm/event-models/ht-event-ai-agent.js.map +1 -1
- package/lib/esm/event-models/ht-event-bot-action.d.ts +2 -2
- package/lib/esm/event-models/ht-event-bot-action.js +26 -11
- package/lib/esm/event-models/ht-event-bot-action.js.map +1 -1
- package/lib/esm/event-models/ht-event-capture-user-input.d.ts +2 -2
- package/lib/esm/event-models/ht-event-capture-user-input.js +26 -11
- package/lib/esm/event-models/ht-event-capture-user-input.js.map +1 -1
- package/lib/esm/event-models/ht-event-conditional-channel.d.ts +2 -2
- package/lib/esm/event-models/ht-event-conditional-channel.js +26 -11
- package/lib/esm/event-models/ht-event-conditional-channel.js.map +1 -1
- package/lib/esm/event-models/ht-event-conditional-country.d.ts +2 -2
- package/lib/esm/event-models/ht-event-conditional-country.js +26 -11
- package/lib/esm/event-models/ht-event-conditional-country.js.map +1 -1
- package/lib/esm/event-models/ht-event-conditional-custom.d.ts +2 -2
- package/lib/esm/event-models/ht-event-conditional-custom.js +26 -11
- package/lib/esm/event-models/ht-event-conditional-custom.js.map +1 -1
- package/lib/esm/event-models/ht-event-conditional-queue-status.d.ts +2 -2
- package/lib/esm/event-models/ht-event-conditional-queue-status.js +26 -11
- package/lib/esm/event-models/ht-event-conditional-queue-status.js.map +1 -1
- package/lib/esm/event-models/ht-event-custom.d.ts +2 -2
- package/lib/esm/event-models/ht-event-custom.js +26 -11
- package/lib/esm/event-models/ht-event-custom.js.map +1 -1
- package/lib/esm/event-models/ht-event-fallback.d.ts +2 -2
- package/lib/esm/event-models/ht-event-fallback.js +26 -11
- package/lib/esm/event-models/ht-event-fallback.js.map +1 -1
- package/lib/esm/event-models/ht-event-feedback.d.ts +2 -2
- package/lib/esm/event-models/ht-event-feedback.js +25 -10
- package/lib/esm/event-models/ht-event-feedback.js.map +1 -1
- package/lib/esm/event-models/ht-event-flow.d.ts +2 -2
- package/lib/esm/event-models/ht-event-flow.js +26 -11
- package/lib/esm/event-models/ht-event-flow.js.map +1 -1
- package/lib/esm/event-models/ht-event-handoff-option.d.ts +2 -2
- package/lib/esm/event-models/ht-event-handoff-option.js +25 -10
- package/lib/esm/event-models/ht-event-handoff-option.js.map +1 -1
- package/lib/esm/event-models/ht-event-handoff.d.ts +2 -2
- package/lib/esm/event-models/ht-event-handoff.js +25 -10
- package/lib/esm/event-models/ht-event-handoff.js.map +1 -1
- package/lib/esm/event-models/ht-event-intent-smart.d.ts +2 -2
- package/lib/esm/event-models/ht-event-intent-smart.js +26 -11
- package/lib/esm/event-models/ht-event-intent-smart.js.map +1 -1
- package/lib/esm/event-models/ht-event-keyword.d.ts +2 -2
- package/lib/esm/event-models/ht-event-keyword.js +26 -11
- package/lib/esm/event-models/ht-event-keyword.js.map +1 -1
- package/lib/esm/event-models/ht-event-redirect-flow.d.ts +2 -2
- package/lib/esm/event-models/ht-event-redirect-flow.js +26 -11
- package/lib/esm/event-models/ht-event-redirect-flow.js.map +1 -1
- package/lib/esm/event-models/ht-event-webview-action-triggered.d.ts +2 -2
- package/lib/esm/event-models/ht-event-webview-action-triggered.js +26 -11
- package/lib/esm/event-models/ht-event-webview-action-triggered.js.map +1 -1
- package/lib/esm/event-models/ht-event-webview-end.d.ts +2 -2
- package/lib/esm/event-models/ht-event-webview-end.js +25 -10
- package/lib/esm/event-models/ht-event-webview-end.js.map +1 -1
- package/lib/esm/event-models/ht-event-webview-step.d.ts +2 -2
- package/lib/esm/event-models/ht-event-webview-step.js +25 -10
- package/lib/esm/event-models/ht-event-webview-step.js.map +1 -1
- package/lib/esm/event-models/ht-event.d.ts +1 -1
- package/lib/esm/event-models/ht-event.js +30 -8
- package/lib/esm/event-models/ht-event.js.map +1 -1
- package/lib/esm/event-models/index.d.ts +20 -20
- package/lib/esm/event-models/index.js +62 -43
- package/lib/esm/event-models/index.js.map +1 -1
- package/lib/esm/index.d.ts +4 -5
- package/lib/esm/index.js +45 -22
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/package.json +3 -0
- package/lib/esm/types.d.ts +2 -2
- package/lib/esm/types.js +10 -9
- package/lib/esm/types.js.map +1 -1
- package/lib/esm/utils.d.ts +2 -2
- package/lib/esm/utils.js +59 -53
- package/lib/esm/utils.js.map +1 -1
- package/package.json +8 -7
- package/src/types.ts +40 -40
- package/lib/cjs/event-models/ht-event-ai-agent-router.d.ts +0 -21
- package/lib/cjs/event-models/ht-event-ai-agent-router.js +0 -31
- package/lib/cjs/event-models/ht-event-ai-agent-router.js.map +0 -1
- package/lib/cjs/event-models/ht-event-ai-agent.d.ts +0 -28
- package/lib/cjs/event-models/ht-event-ai-agent.js +0 -55
- package/lib/cjs/event-models/ht-event-ai-agent.js.map +0 -1
- package/lib/cjs/event-models/ht-event-bot-action.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-bot-action.js +0 -21
- package/lib/cjs/event-models/ht-event-bot-action.js.map +0 -1
- package/lib/cjs/event-models/ht-event-capture-user-input.d.ts +0 -15
- package/lib/cjs/event-models/ht-event-capture-user-input.js +0 -24
- package/lib/cjs/event-models/ht-event-capture-user-input.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-channel.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-conditional-channel.js +0 -21
- package/lib/cjs/event-models/ht-event-conditional-channel.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-country.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-conditional-country.js +0 -21
- package/lib/cjs/event-models/ht-event-conditional-country.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-custom.d.ts +0 -14
- package/lib/cjs/event-models/ht-event-conditional-custom.js +0 -23
- package/lib/cjs/event-models/ht-event-conditional-custom.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-queue-status.d.ts +0 -15
- package/lib/cjs/event-models/ht-event-conditional-queue-status.js +0 -24
- package/lib/cjs/event-models/ht-event-conditional-queue-status.js.map +0 -1
- package/lib/cjs/event-models/ht-event-custom.d.ts +0 -7
- package/lib/cjs/event-models/ht-event-custom.js +0 -16
- package/lib/cjs/event-models/ht-event-custom.js.map +0 -1
- package/lib/cjs/event-models/ht-event-fallback.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-fallback.js +0 -21
- package/lib/cjs/event-models/ht-event-fallback.js.map +0 -1
- package/lib/cjs/event-models/ht-event-feedback.d.ts +0 -13
- package/lib/cjs/event-models/ht-event-feedback.js +0 -21
- package/lib/cjs/event-models/ht-event-feedback.js.map +0 -1
- package/lib/cjs/event-models/ht-event-flow.d.ts +0 -11
- package/lib/cjs/event-models/ht-event-flow.js +0 -20
- package/lib/cjs/event-models/ht-event-flow.js.map +0 -1
- package/lib/cjs/event-models/ht-event-handoff-option.d.ts +0 -13
- package/lib/cjs/event-models/ht-event-handoff-option.js +0 -20
- package/lib/cjs/event-models/ht-event-handoff-option.js.map +0 -1
- package/lib/cjs/event-models/ht-event-handoff.d.ts +0 -17
- package/lib/cjs/event-models/ht-event-handoff.js +0 -25
- package/lib/cjs/event-models/ht-event-handoff.js.map +0 -1
- package/lib/cjs/event-models/ht-event-intent-smart.d.ts +0 -14
- package/lib/cjs/event-models/ht-event-intent-smart.js +0 -23
- package/lib/cjs/event-models/ht-event-intent-smart.js.map +0 -1
- package/lib/cjs/event-models/ht-event-keyword.d.ts +0 -14
- package/lib/cjs/event-models/ht-event-keyword.js +0 -23
- package/lib/cjs/event-models/ht-event-keyword.js.map +0 -1
- package/lib/cjs/event-models/ht-event-redirect-flow.d.ts +0 -14
- package/lib/cjs/event-models/ht-event-redirect-flow.js +0 -22
- package/lib/cjs/event-models/ht-event-redirect-flow.js.map +0 -1
- package/lib/cjs/event-models/ht-event-webview-action-triggered.d.ts +0 -14
- package/lib/cjs/event-models/ht-event-webview-action-triggered.js +0 -23
- package/lib/cjs/event-models/ht-event-webview-action-triggered.js.map +0 -1
- package/lib/cjs/event-models/ht-event-webview-end.d.ts +0 -13
- package/lib/cjs/event-models/ht-event-webview-end.js +0 -21
- package/lib/cjs/event-models/ht-event-webview-end.js.map +0 -1
- package/lib/cjs/event-models/ht-event-webview-step.d.ts +0 -11
- package/lib/cjs/event-models/ht-event-webview-step.js +0 -19
- package/lib/cjs/event-models/ht-event-webview-step.js.map +0 -1
- package/lib/cjs/event-models/ht-event.d.ts +0 -14
- package/lib/cjs/event-models/ht-event.js +0 -18
- package/lib/cjs/event-models/ht-event.js.map +0 -1
- package/lib/cjs/event-models/index.d.ts +0 -20
- package/lib/cjs/event-models/index.js +0 -44
- package/lib/cjs/event-models/index.js.map +0 -1
- package/lib/cjs/index.d.ts +0 -17
- package/lib/cjs/index.js +0 -70
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/types.d.ts +0 -14
- package/lib/cjs/types.js +0 -12
- package/lib/cjs/types.js.map +0 -1
- package/lib/cjs/utils.d.ts +0 -3
- package/lib/cjs/utils.js +0 -58
- package/lib/cjs/utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-conditional-queue-status.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-conditional-queue-status.js","sources":["../../../src/event-models/ht-event-conditional-queue-status.ts"],"sourcesContent":["import {\n EventAction,\n type EventConditionalQueueStatus,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventConditionalQueueStatus extends HtEvent {\n flow_thread_id: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n flow_node_is_meaningful: boolean\n queue_id: string\n queue_name: string\n is_queue_open: boolean\n is_available_agent: boolean\n\n constructor(event: EventConditionalQueueStatus, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.ConditionalQueueStatus\n this.flow_thread_id = event.flowThreadId\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n this.flow_node_is_meaningful = event.flowNodeIsMeaningful\n this.queue_id = event.queueId\n this.queue_name = event.queueName\n this.is_queue_open = event.isQueueOpen\n this.is_available_agent = event.isAvailableAgent\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventConditionalQueueStatus","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,6BAA6BA,SAASD,OAAOA;IAYxD,YAAYE,KAAkC,EAAEC,WAAwB,CAAE;QACxE,KAAK,CAACD,OAAOC,cAZf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA,4CACA,8CACA,iDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,kCAAkC;QAChD,IAAI,CAAC,cAAc,GAAGI,MAAM,YAAY;QACxC,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;QACnD,IAAI,CAAC,uBAAuB,GAAGA,MAAM,oBAAoB;QACzD,IAAI,CAAC,QAAQ,GAAGA,MAAM,OAAO;QAC7B,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;QACjC,IAAI,CAAC,aAAa,GAAGA,MAAM,WAAW;QACtC,IAAI,CAAC,kBAAkB,GAAGA,MAAM,gBAAgB;IAClD;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventCustom, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventCustom, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventCustom extends HtEvent {
|
|
4
4
|
custom_fields: Record<string, unknown>;
|
|
5
5
|
custom_sensitive_fields: Record<string, unknown>;
|
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { EventAction, EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventCustom extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "custom_fields", void 0), _define_property(this, "custom_sensitive_fields", void 0);
|
|
22
|
+
this.type = EventType.WebEvent;
|
|
23
|
+
this.action = EventAction.Custom;
|
|
11
24
|
this.custom_fields = event.customFields || {};
|
|
12
25
|
this.custom_sensitive_fields = event.customSensitiveFields || {};
|
|
13
26
|
}
|
|
14
27
|
}
|
|
15
|
-
|
|
28
|
+
|
|
29
|
+
export { HtEventCustom };
|
|
30
|
+
|
|
16
31
|
//# sourceMappingURL=ht-event-custom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-custom.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-custom.js","sources":["../../../src/event-models/ht-event-custom.ts"],"sourcesContent":["import {\n EventAction,\n type EventCustom,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventCustom extends HtEvent {\n custom_fields: Record<string, unknown>\n custom_sensitive_fields: Record<string, unknown>\n\n constructor(event: EventCustom, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.WebEvent\n this.action = EventAction.Custom\n this.custom_fields = event.customFields || {}\n this.custom_sensitive_fields = event.customSensitiveFields || {}\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventCustom","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,aAAaA,SAASD,OAAOA;IAIxC,YAAYE,KAAkB,EAAEC,WAAwB,CAAE;QACxD,KAAK,CAACD,OAAOC,cAJf,iDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,kBAAkB;QAChC,IAAI,CAAC,aAAa,GAAGI,MAAM,YAAY,IAAI,CAAC;QAC5C,IAAI,CAAC,uBAAuB,GAAGA,MAAM,qBAAqB,IAAI,CAAC;IACjE;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventFallback, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventFallback, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventFallback extends HtEvent {
|
|
4
4
|
flow_id: string;
|
|
5
5
|
flow_name: string;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { EventAction, EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventFallback extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0), _define_property(this, "fallback_out", void 0), _define_property(this, "fallback_message_id", void 0), _define_property(this, "user_input", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
23
|
+
this.action = EventAction.Fallback;
|
|
11
24
|
this.flow_id = event.flowId;
|
|
12
25
|
this.flow_name = event.flowName;
|
|
13
26
|
this.flow_node_id = event.flowNodeId;
|
|
@@ -17,5 +30,7 @@ class HtEventFallback extends ht_event_1.HtEvent {
|
|
|
17
30
|
this.fallback_message_id = event.fallbackMessageId;
|
|
18
31
|
}
|
|
19
32
|
}
|
|
20
|
-
|
|
33
|
+
|
|
34
|
+
export { HtEventFallback };
|
|
35
|
+
|
|
21
36
|
//# sourceMappingURL=ht-event-fallback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-fallback.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-fallback.js","sources":["../../../src/event-models/ht-event-fallback.ts"],"sourcesContent":["import {\n EventAction,\n type EventFallback,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventFallback extends HtEvent {\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n fallback_out: number\n fallback_message_id: string\n user_input: string\n\n constructor(event: EventFallback, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.Fallback\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n this.user_input = event.userInput\n this.fallback_out = event.fallbackOut\n this.fallback_message_id = event.fallbackMessageId\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventFallback","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,eAAeA,SAASD,OAAOA;IAS1C,YAAYE,KAAoB,EAAEC,WAAwB,CAAE;QAC1D,KAAK,CAACD,OAAOC,cATf,2CACA,6CACA,gDACA,wDACA,gDACA,uDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,oBAAoB;QAClC,IAAI,CAAC,OAAO,GAAGI,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;QACnD,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;QACjC,IAAI,CAAC,YAAY,GAAGA,MAAM,WAAW;QACrC,IAAI,CAAC,mBAAmB,GAAGA,MAAM,iBAAiB;IACpD;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventAction, type EventFeedback, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventAction, type EventFeedback, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventFeedback extends HtEvent {
|
|
4
4
|
action: EventAction.FeedbackCase | EventAction.FeedbackConversation | EventAction.FeedbackMessage | EventAction.FeedbackWebview;
|
|
5
5
|
feedback_target_id: string;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventFeedback extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "action", void 0), _define_property(this, "feedback_target_id", void 0), _define_property(this, "feedback_group_id", void 0), _define_property(this, "possible_options", void 0), _define_property(this, "possible_values", void 0), _define_property(this, "option", void 0), _define_property(this, "value", void 0), _define_property(this, "comment", void 0);
|
|
22
|
+
this.type = EventType.WebEvent;
|
|
10
23
|
this.action = event.action;
|
|
11
24
|
this.feedback_target_id = event.feedbackTargetId;
|
|
12
25
|
this.feedback_group_id = event.feedbackGroupId;
|
|
@@ -17,5 +30,7 @@ class HtEventFeedback extends ht_event_1.HtEvent {
|
|
|
17
30
|
this.comment = event.comment;
|
|
18
31
|
}
|
|
19
32
|
}
|
|
20
|
-
|
|
33
|
+
|
|
34
|
+
export { HtEventFeedback };
|
|
35
|
+
|
|
21
36
|
//# sourceMappingURL=ht-event-feedback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-feedback.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-feedback.js","sources":["../../../src/event-models/ht-event-feedback.ts"],"sourcesContent":["import {\n type EventAction,\n type EventFeedback,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventFeedback extends HtEvent {\n action:\n | EventAction.FeedbackCase\n | EventAction.FeedbackConversation\n | EventAction.FeedbackMessage\n | EventAction.FeedbackWebview\n feedback_target_id: string\n feedback_group_id: string\n possible_options: string[]\n possible_values?: number[]\n option: string\n value?: number\n comment?: string\n\n constructor(event: EventFeedback, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.WebEvent\n this.action = event.action\n this.feedback_target_id = event.feedbackTargetId\n this.feedback_group_id = event.feedbackGroupId\n this.possible_options = event.possibleOptions\n this.possible_values = event.possibleValues\n this.option = event.option\n this.value = event.value\n this.comment = event.comment\n }\n}\n"],"names":["EventType","HtEvent","HtEventFeedback","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAME,eAAeA,SAASD,OAAOA;IAc1C,YAAYE,KAAoB,EAAEC,WAAwB,CAAE;QAC1D,KAAK,CAACD,OAAOC,cAdf,0CAKA,sDACA,qDACA,oDACA,mDACA,0CACA,yCACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGG,MAAM,MAAM;QAC1B,IAAI,CAAC,kBAAkB,GAAGA,MAAM,gBAAgB;QAChD,IAAI,CAAC,iBAAiB,GAAGA,MAAM,eAAe;QAC9C,IAAI,CAAC,gBAAgB,GAAGA,MAAM,eAAe;QAC7C,IAAI,CAAC,eAAe,GAAGA,MAAM,cAAc;QAC3C,IAAI,CAAC,MAAM,GAAGA,MAAM,MAAM;QAC1B,IAAI,CAAC,KAAK,GAAGA,MAAM,KAAK;QACxB,IAAI,CAAC,OAAO,GAAGA,MAAM,OAAO;IAC9B;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventFlow, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventFlow, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventFlow extends HtEvent {
|
|
4
4
|
flow_thread_id: string;
|
|
5
5
|
flow_id: string;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { EventAction, EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventFlow extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "flow_thread_id", void 0), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0), _define_property(this, "flow_node_is_meaningful", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
23
|
+
this.action = EventAction.FlowNode;
|
|
11
24
|
this.flow_thread_id = event.flowThreadId; // This value is managed by the flow builder plugin, stored in the session and updated every time the content connected to the conversation start is displayed
|
|
12
25
|
this.flow_id = event.flowId;
|
|
13
26
|
this.flow_name = event.flowName;
|
|
@@ -16,5 +29,7 @@ class HtEventFlow extends ht_event_1.HtEvent {
|
|
|
16
29
|
this.flow_node_is_meaningful = event.flowNodeIsMeaningful || false;
|
|
17
30
|
}
|
|
18
31
|
}
|
|
19
|
-
|
|
32
|
+
|
|
33
|
+
export { HtEventFlow };
|
|
34
|
+
|
|
20
35
|
//# sourceMappingURL=ht-event-flow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-flow.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-flow.js","sources":["../../../src/event-models/ht-event-flow.ts"],"sourcesContent":["import {\n EventAction,\n type EventFlow,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventFlow extends HtEvent {\n flow_thread_id: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n flow_node_is_meaningful: boolean\n\n constructor(event: EventFlow, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.FlowNode\n this.flow_thread_id = event.flowThreadId // This value is managed by the flow builder plugin, stored in the session and updated every time the content connected to the conversation start is displayed\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n this.flow_node_is_meaningful = event.flowNodeIsMeaningful || false\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventFlow","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,WAAWA,SAASD,OAAOA;IAQtC,YAAYE,KAAgB,EAAEC,WAAwB,CAAE;QACtD,KAAK,CAACD,OAAOC,cARf,kDACA,2CACA,6CACA,gDACA,wDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,oBAAoB;QAClC,IAAI,CAAC,cAAc,GAAGI,MAAM,YAAY,EAAC,8JAA8J;QACvM,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;QACnD,IAAI,CAAC,uBAAuB,GAAGA,MAAM,oBAAoB,IAAI;IAC/D;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventAction, type EventHandoffOption, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventAction, type EventHandoffOption, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventHandoffOption extends HtEvent {
|
|
4
4
|
action: EventAction.HandoffOption;
|
|
5
5
|
flow_thread_id?: string;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventHandoffOption extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "action", void 0), _define_property(this, "flow_thread_id", void 0), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0), _define_property(this, "handoff_queue_id", void 0), _define_property(this, "handoff_queue_name", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
10
23
|
this.flow_thread_id = event.flowThreadId;
|
|
11
24
|
this.flow_id = event.flowId;
|
|
12
25
|
this.flow_name = event.flowName;
|
|
@@ -16,5 +29,7 @@ class HtEventHandoffOption extends ht_event_1.HtEvent {
|
|
|
16
29
|
this.handoff_queue_name = event.queueName;
|
|
17
30
|
}
|
|
18
31
|
}
|
|
19
|
-
|
|
32
|
+
|
|
33
|
+
export { HtEventHandoffOption };
|
|
34
|
+
|
|
20
35
|
//# sourceMappingURL=ht-event-handoff-option.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-handoff-option.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-handoff-option.js","sources":["../../../src/event-models/ht-event-handoff-option.ts"],"sourcesContent":["import {\n type EventAction,\n type EventHandoffOption,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventHandoffOption extends HtEvent {\n action: EventAction.HandoffOption\n flow_thread_id?: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n handoff_queue_id?: string\n handoff_queue_name?: string\n\n constructor(event: EventHandoffOption, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.flow_thread_id = event.flowThreadId\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n this.handoff_queue_id = event.queueId\n this.handoff_queue_name = event.queueName\n }\n}\n"],"names":["EventType","HtEvent","HtEventHandoffOption","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAME,oBAAoBA,SAASD,OAAOA;IAU/C,YAAYE,KAAyB,EAAEC,WAAwB,CAAE;QAC/D,KAAK,CAACD,OAAOC,cAVf,0CACA,kDACA,2CACA,6CACA,gDACA,wDACA,oDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,cAAc,GAAGG,MAAM,YAAY;QACxC,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;QACnD,IAAI,CAAC,gBAAgB,GAAGA,MAAM,OAAO;QACrC,IAAI,CAAC,kBAAkB,GAAGA,MAAM,SAAS;IAC3C;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventAction, type EventHandoff, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventAction, type EventHandoff, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventHandoff extends HtEvent {
|
|
4
4
|
action: EventAction.HandoffSuccess | EventAction.HandoffFail;
|
|
5
5
|
flow_thread_id?: string;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventHandoff extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "action", void 0), _define_property(this, "flow_thread_id", void 0), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0), _define_property(this, "handoff_queue_id", void 0), _define_property(this, "handoff_queue_name", void 0), _define_property(this, "handoff_case_id", void 0), _define_property(this, "handoff_is_queue_open", void 0), _define_property(this, "handoff_is_available_agent", void 0), _define_property(this, "handoff_is_threshold_reached", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
10
23
|
this.action = event.action;
|
|
11
24
|
this.flow_thread_id = event.flowThreadId;
|
|
12
25
|
this.flow_id = event.flowId;
|
|
@@ -21,5 +34,7 @@ class HtEventHandoff extends ht_event_1.HtEvent {
|
|
|
21
34
|
this.handoff_is_threshold_reached = event.isThresholdReached || false;
|
|
22
35
|
}
|
|
23
36
|
}
|
|
24
|
-
|
|
37
|
+
|
|
38
|
+
export { HtEventHandoff };
|
|
39
|
+
|
|
25
40
|
//# sourceMappingURL=ht-event-handoff.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-handoff.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-handoff.js","sources":["../../../src/event-models/ht-event-handoff.ts"],"sourcesContent":["import {\n type EventAction,\n type EventHandoff,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventHandoff extends HtEvent {\n action: EventAction.HandoffSuccess | EventAction.HandoffFail\n flow_thread_id?: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n handoff_queue_id: string\n handoff_queue_name: string\n handoff_case_id?: string\n handoff_is_queue_open: boolean\n handoff_is_available_agent: boolean\n handoff_is_threshold_reached: boolean\n\n constructor(event: EventHandoff, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = event.action\n this.flow_thread_id = event.flowThreadId\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n this.handoff_queue_id = event.queueId\n this.handoff_queue_name = event.queueName\n this.handoff_case_id = event.caseId\n this.handoff_is_queue_open = event.isQueueOpen || false\n this.handoff_is_available_agent = event.isAvailableAgent || false\n this.handoff_is_threshold_reached = event.isThresholdReached || false\n }\n}\n"],"names":["EventType","HtEvent","HtEventHandoff","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAME,cAAcA,SAASD,OAAOA;IAczC,YAAYE,KAAmB,EAAEC,WAAwB,CAAE;QACzD,KAAK,CAACD,OAAOC,cAdf,0CACA,kDACA,2CACA,6CACA,gDACA,wDACA,oDACA,sDACA,mDACA,yDACA,8DACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGG,MAAM,MAAM;QAC1B,IAAI,CAAC,cAAc,GAAGA,MAAM,YAAY;QACxC,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;QACnD,IAAI,CAAC,gBAAgB,GAAGA,MAAM,OAAO;QACrC,IAAI,CAAC,kBAAkB,GAAGA,MAAM,SAAS;QACzC,IAAI,CAAC,eAAe,GAAGA,MAAM,MAAM;QACnC,IAAI,CAAC,qBAAqB,GAAGA,MAAM,WAAW,IAAI;QAClD,IAAI,CAAC,0BAA0B,GAAGA,MAAM,gBAAgB,IAAI;QAC5D,IAAI,CAAC,4BAA4B,GAAGA,MAAM,kBAAkB,IAAI;IAClE;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventIntentSmart, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventIntentSmart, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventIntentSmart extends HtEvent {
|
|
4
4
|
nlu_intent_smart_title: string;
|
|
5
5
|
nlu_intent_smart_num_used: number;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { EventAction, EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventIntentSmart extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "nlu_intent_smart_title", void 0), _define_property(this, "nlu_intent_smart_num_used", void 0), _define_property(this, "nlu_intent_smart_message_id", void 0), _define_property(this, "user_input", void 0), _define_property(this, "flow_thread_id", void 0), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
23
|
+
this.action = EventAction.IntentSmart;
|
|
11
24
|
this.nlu_intent_smart_title = event.nluIntentSmartTitle;
|
|
12
25
|
this.nlu_intent_smart_num_used = event.nluIntentSmartNumUsed;
|
|
13
26
|
this.nlu_intent_smart_message_id = event.nluIntentSmartMessageId;
|
|
@@ -19,5 +32,7 @@ class HtEventIntentSmart extends ht_event_1.HtEvent {
|
|
|
19
32
|
this.flow_node_content_id = event.flowNodeContentId;
|
|
20
33
|
}
|
|
21
34
|
}
|
|
22
|
-
|
|
35
|
+
|
|
36
|
+
export { HtEventIntentSmart };
|
|
37
|
+
|
|
23
38
|
//# sourceMappingURL=ht-event-intent-smart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-intent-smart.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-intent-smart.js","sources":["../../../src/event-models/ht-event-intent-smart.ts"],"sourcesContent":["import {\n EventAction,\n type EventIntentSmart,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventIntentSmart extends HtEvent {\n nlu_intent_smart_title: string\n nlu_intent_smart_num_used: number\n nlu_intent_smart_message_id: string\n user_input: string\n flow_thread_id: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n\n constructor(event: EventIntentSmart, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.IntentSmart\n this.nlu_intent_smart_title = event.nluIntentSmartTitle\n this.nlu_intent_smart_num_used = event.nluIntentSmartNumUsed\n this.nlu_intent_smart_message_id = event.nluIntentSmartMessageId\n this.user_input = event.userInput\n this.flow_thread_id = event.flowThreadId\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventIntentSmart","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,kBAAkBA,SAASD,OAAOA;IAW7C,YAAYE,KAAuB,EAAEC,WAAwB,CAAE;QAC7D,KAAK,CAACD,OAAOC,cAXf,0DACA,6DACA,+DACA,8CACA,kDACA,2CACA,6CACA,gDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,uBAAuB;QACrC,IAAI,CAAC,sBAAsB,GAAGI,MAAM,mBAAmB;QACvD,IAAI,CAAC,yBAAyB,GAAGA,MAAM,qBAAqB;QAC5D,IAAI,CAAC,2BAA2B,GAAGA,MAAM,uBAAuB;QAChE,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;QACjC,IAAI,CAAC,cAAc,GAAGA,MAAM,YAAY;QACxC,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;IACrD;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EventKeyword, type RequestData } from '../types';
|
|
2
|
-
import { HtEvent } from './ht-event';
|
|
1
|
+
import { type EventKeyword, type RequestData } from '../types.js';
|
|
2
|
+
import { HtEvent } from './ht-event.js';
|
|
3
3
|
export declare class HtEventKeyword extends HtEvent {
|
|
4
4
|
nlu_keyword_name: string;
|
|
5
5
|
nlu_keyword_is_regex: boolean;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { EventAction, EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventKeyword extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "nlu_keyword_name", void 0), _define_property(this, "nlu_keyword_is_regex", void 0), _define_property(this, "nlu_keyword_message_id", void 0), _define_property(this, "user_input", void 0), _define_property(this, "flow_thread_id", void 0), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
23
|
+
this.action = EventAction.Keyword;
|
|
11
24
|
this.nlu_keyword_name = event.nluKeywordName;
|
|
12
25
|
this.nlu_keyword_is_regex = event.nluKeywordIsRegex || false;
|
|
13
26
|
this.nlu_keyword_message_id = event.nluKeywordMessageId;
|
|
@@ -19,5 +32,7 @@ class HtEventKeyword extends ht_event_1.HtEvent {
|
|
|
19
32
|
this.flow_node_content_id = event.flowNodeContentId;
|
|
20
33
|
}
|
|
21
34
|
}
|
|
22
|
-
|
|
35
|
+
|
|
36
|
+
export { HtEventKeyword };
|
|
37
|
+
|
|
23
38
|
//# sourceMappingURL=ht-event-keyword.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-keyword.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-keyword.js","sources":["../../../src/event-models/ht-event-keyword.ts"],"sourcesContent":["import {\n EventAction,\n type EventKeyword,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventKeyword extends HtEvent {\n nlu_keyword_name: string\n nlu_keyword_is_regex: boolean\n nlu_keyword_message_id: string\n user_input: string\n flow_thread_id: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n\n constructor(event: EventKeyword, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.Keyword\n this.nlu_keyword_name = event.nluKeywordName\n this.nlu_keyword_is_regex = event.nluKeywordIsRegex || false\n this.nlu_keyword_message_id = event.nluKeywordMessageId\n this.user_input = event.userInput\n this.flow_thread_id = event.flowThreadId\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventKeyword","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,cAAcA,SAASD,OAAOA;IAWzC,YAAYE,KAAmB,EAAEC,WAAwB,CAAE;QACzD,KAAK,CAACD,OAAOC,cAXf,oDACA,wDACA,0DACA,8CACA,kDACA,2CACA,6CACA,gDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,mBAAmB;QACjC,IAAI,CAAC,gBAAgB,GAAGI,MAAM,cAAc;QAC5C,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB,IAAI;QACvD,IAAI,CAAC,sBAAsB,GAAGA,MAAM,mBAAmB;QACvD,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;QACjC,IAAI,CAAC,cAAc,GAAGA,MAAM,YAAY;QACxC,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;IACrD;AACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventRedirectFlow } from '@botonic/core';
|
|
2
|
-
import { type RequestData } from '../types';
|
|
3
|
-
import { HtEvent } from './ht-event';
|
|
2
|
+
import { type RequestData } from '../types.js';
|
|
3
|
+
import { HtEvent } from './ht-event.js';
|
|
4
4
|
export declare class HtEventRedirectFlow extends HtEvent {
|
|
5
5
|
flow_thread_id: string;
|
|
6
6
|
flow_id: string;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { EventAction, EventType } from "../types.js";
|
|
2
|
+
import { HtEvent } from "./ht-event.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function _define_property(obj, key, value) {
|
|
7
|
+
if (key in obj) {
|
|
8
|
+
Object.defineProperty(obj, key, {
|
|
9
|
+
value: value,
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true
|
|
13
|
+
});
|
|
14
|
+
} else obj[key] = value;
|
|
15
|
+
return obj;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class HtEventRedirectFlow extends HtEvent {
|
|
20
|
+
constructor(event, requestData){
|
|
21
|
+
super(event, requestData), _define_property(this, "flow_thread_id", void 0), _define_property(this, "flow_id", void 0), _define_property(this, "flow_name", void 0), _define_property(this, "flow_node_id", void 0), _define_property(this, "flow_node_content_id", void 0), _define_property(this, "flow_node_is_meaningful", void 0), _define_property(this, "flow_target_id", void 0), _define_property(this, "flow_target_name", void 0);
|
|
22
|
+
this.type = EventType.BotEvent;
|
|
23
|
+
this.action = EventAction.RedirectFlow;
|
|
11
24
|
this.flow_thread_id = event.flowThreadId;
|
|
12
25
|
this.flow_id = event.flowId;
|
|
13
26
|
this.flow_name = event.flowName;
|
|
@@ -18,5 +31,7 @@ class HtEventRedirectFlow extends ht_event_1.HtEvent {
|
|
|
18
31
|
this.flow_target_name = event.flowTargetName;
|
|
19
32
|
}
|
|
20
33
|
}
|
|
21
|
-
|
|
34
|
+
|
|
35
|
+
export { HtEventRedirectFlow };
|
|
36
|
+
|
|
22
37
|
//# sourceMappingURL=ht-event-redirect-flow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ht-event-redirect-flow.js","
|
|
1
|
+
{"version":3,"file":"event-models/ht-event-redirect-flow.js","sources":["../../../src/event-models/ht-event-redirect-flow.ts"],"sourcesContent":["import type { EventRedirectFlow } from '@botonic/core'\n\nimport { EventAction, EventType, type RequestData } from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventRedirectFlow extends HtEvent {\n flow_thread_id: string\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n flow_node_is_meaningful: boolean\n flow_target_id: string\n flow_target_name: string\n\n constructor(event: EventRedirectFlow, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.RedirectFlow\n this.flow_thread_id = event.flowThreadId\n this.flow_id = event.flowId\n this.flow_name = event.flowName\n this.flow_node_id = event.flowNodeId\n this.flow_node_content_id = event.flowNodeContentId\n this.flow_node_is_meaningful = event.flowNodeIsMeaningful\n this.flow_target_id = event.flowTargetId\n this.flow_target_name = event.flowTargetName\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventRedirectFlow","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAEmE;AAC/B;AAE7B,MAAMG,mBAAmBA,SAASD,OAAOA;IAU9C,YAAYE,KAAwB,EAAEC,WAAwB,CAAE;QAC9D,KAAK,CAACD,OAAOC,cAVf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA,kDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,wBAAwB;QACtC,IAAI,CAAC,cAAc,GAAGI,MAAM,YAAY;QACxC,IAAI,CAAC,OAAO,GAAGA,MAAM,MAAM;QAC3B,IAAI,CAAC,SAAS,GAAGA,MAAM,QAAQ;QAC/B,IAAI,CAAC,YAAY,GAAGA,MAAM,UAAU;QACpC,IAAI,CAAC,oBAAoB,GAAGA,MAAM,iBAAiB;QACnD,IAAI,CAAC,uBAAuB,GAAGA,MAAM,oBAAoB;QACzD,IAAI,CAAC,cAAc,GAAGA,MAAM,YAAY;QACxC,IAAI,CAAC,gBAAgB,GAAGA,MAAM,cAAc;IAC9C;AACF"}
|