@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.
Files changed (153) hide show
  1. package/lib/esm/event-models/ht-event-ai-agent-router.d.ts +2 -2
  2. package/lib/esm/event-models/ht-event-ai-agent-router.js +26 -12
  3. package/lib/esm/event-models/ht-event-ai-agent-router.js.map +1 -1
  4. package/lib/esm/event-models/ht-event-ai-agent.d.ts +2 -2
  5. package/lib/esm/event-models/ht-event-ai-agent.js +46 -35
  6. package/lib/esm/event-models/ht-event-ai-agent.js.map +1 -1
  7. package/lib/esm/event-models/ht-event-bot-action.d.ts +2 -2
  8. package/lib/esm/event-models/ht-event-bot-action.js +26 -11
  9. package/lib/esm/event-models/ht-event-bot-action.js.map +1 -1
  10. package/lib/esm/event-models/ht-event-capture-user-input.d.ts +2 -2
  11. package/lib/esm/event-models/ht-event-capture-user-input.js +26 -11
  12. package/lib/esm/event-models/ht-event-capture-user-input.js.map +1 -1
  13. package/lib/esm/event-models/ht-event-conditional-channel.d.ts +2 -2
  14. package/lib/esm/event-models/ht-event-conditional-channel.js +26 -11
  15. package/lib/esm/event-models/ht-event-conditional-channel.js.map +1 -1
  16. package/lib/esm/event-models/ht-event-conditional-country.d.ts +2 -2
  17. package/lib/esm/event-models/ht-event-conditional-country.js +26 -11
  18. package/lib/esm/event-models/ht-event-conditional-country.js.map +1 -1
  19. package/lib/esm/event-models/ht-event-conditional-custom.d.ts +2 -2
  20. package/lib/esm/event-models/ht-event-conditional-custom.js +26 -11
  21. package/lib/esm/event-models/ht-event-conditional-custom.js.map +1 -1
  22. package/lib/esm/event-models/ht-event-conditional-queue-status.d.ts +2 -2
  23. package/lib/esm/event-models/ht-event-conditional-queue-status.js +26 -11
  24. package/lib/esm/event-models/ht-event-conditional-queue-status.js.map +1 -1
  25. package/lib/esm/event-models/ht-event-custom.d.ts +2 -2
  26. package/lib/esm/event-models/ht-event-custom.js +26 -11
  27. package/lib/esm/event-models/ht-event-custom.js.map +1 -1
  28. package/lib/esm/event-models/ht-event-fallback.d.ts +2 -2
  29. package/lib/esm/event-models/ht-event-fallback.js +26 -11
  30. package/lib/esm/event-models/ht-event-fallback.js.map +1 -1
  31. package/lib/esm/event-models/ht-event-feedback.d.ts +2 -2
  32. package/lib/esm/event-models/ht-event-feedback.js +25 -10
  33. package/lib/esm/event-models/ht-event-feedback.js.map +1 -1
  34. package/lib/esm/event-models/ht-event-flow.d.ts +2 -2
  35. package/lib/esm/event-models/ht-event-flow.js +26 -11
  36. package/lib/esm/event-models/ht-event-flow.js.map +1 -1
  37. package/lib/esm/event-models/ht-event-handoff-option.d.ts +2 -2
  38. package/lib/esm/event-models/ht-event-handoff-option.js +25 -10
  39. package/lib/esm/event-models/ht-event-handoff-option.js.map +1 -1
  40. package/lib/esm/event-models/ht-event-handoff.d.ts +2 -2
  41. package/lib/esm/event-models/ht-event-handoff.js +25 -10
  42. package/lib/esm/event-models/ht-event-handoff.js.map +1 -1
  43. package/lib/esm/event-models/ht-event-intent-smart.d.ts +2 -2
  44. package/lib/esm/event-models/ht-event-intent-smart.js +26 -11
  45. package/lib/esm/event-models/ht-event-intent-smart.js.map +1 -1
  46. package/lib/esm/event-models/ht-event-keyword.d.ts +2 -2
  47. package/lib/esm/event-models/ht-event-keyword.js +26 -11
  48. package/lib/esm/event-models/ht-event-keyword.js.map +1 -1
  49. package/lib/esm/event-models/ht-event-redirect-flow.d.ts +2 -2
  50. package/lib/esm/event-models/ht-event-redirect-flow.js +26 -11
  51. package/lib/esm/event-models/ht-event-redirect-flow.js.map +1 -1
  52. package/lib/esm/event-models/ht-event-webview-action-triggered.d.ts +2 -2
  53. package/lib/esm/event-models/ht-event-webview-action-triggered.js +26 -11
  54. package/lib/esm/event-models/ht-event-webview-action-triggered.js.map +1 -1
  55. package/lib/esm/event-models/ht-event-webview-end.d.ts +2 -2
  56. package/lib/esm/event-models/ht-event-webview-end.js +25 -10
  57. package/lib/esm/event-models/ht-event-webview-end.js.map +1 -1
  58. package/lib/esm/event-models/ht-event-webview-step.d.ts +2 -2
  59. package/lib/esm/event-models/ht-event-webview-step.js +25 -10
  60. package/lib/esm/event-models/ht-event-webview-step.js.map +1 -1
  61. package/lib/esm/event-models/ht-event.d.ts +1 -1
  62. package/lib/esm/event-models/ht-event.js +30 -8
  63. package/lib/esm/event-models/ht-event.js.map +1 -1
  64. package/lib/esm/event-models/index.d.ts +20 -20
  65. package/lib/esm/event-models/index.js +62 -43
  66. package/lib/esm/event-models/index.js.map +1 -1
  67. package/lib/esm/index.d.ts +4 -5
  68. package/lib/esm/index.js +45 -22
  69. package/lib/esm/index.js.map +1 -1
  70. package/lib/esm/package.json +3 -0
  71. package/lib/esm/types.d.ts +2 -2
  72. package/lib/esm/types.js +10 -9
  73. package/lib/esm/types.js.map +1 -1
  74. package/lib/esm/utils.d.ts +2 -2
  75. package/lib/esm/utils.js +59 -53
  76. package/lib/esm/utils.js.map +1 -1
  77. package/package.json +8 -7
  78. package/src/types.ts +40 -40
  79. package/lib/cjs/event-models/ht-event-ai-agent-router.d.ts +0 -21
  80. package/lib/cjs/event-models/ht-event-ai-agent-router.js +0 -31
  81. package/lib/cjs/event-models/ht-event-ai-agent-router.js.map +0 -1
  82. package/lib/cjs/event-models/ht-event-ai-agent.d.ts +0 -28
  83. package/lib/cjs/event-models/ht-event-ai-agent.js +0 -55
  84. package/lib/cjs/event-models/ht-event-ai-agent.js.map +0 -1
  85. package/lib/cjs/event-models/ht-event-bot-action.d.ts +0 -12
  86. package/lib/cjs/event-models/ht-event-bot-action.js +0 -21
  87. package/lib/cjs/event-models/ht-event-bot-action.js.map +0 -1
  88. package/lib/cjs/event-models/ht-event-capture-user-input.d.ts +0 -15
  89. package/lib/cjs/event-models/ht-event-capture-user-input.js +0 -24
  90. package/lib/cjs/event-models/ht-event-capture-user-input.js.map +0 -1
  91. package/lib/cjs/event-models/ht-event-conditional-channel.d.ts +0 -12
  92. package/lib/cjs/event-models/ht-event-conditional-channel.js +0 -21
  93. package/lib/cjs/event-models/ht-event-conditional-channel.js.map +0 -1
  94. package/lib/cjs/event-models/ht-event-conditional-country.d.ts +0 -12
  95. package/lib/cjs/event-models/ht-event-conditional-country.js +0 -21
  96. package/lib/cjs/event-models/ht-event-conditional-country.js.map +0 -1
  97. package/lib/cjs/event-models/ht-event-conditional-custom.d.ts +0 -14
  98. package/lib/cjs/event-models/ht-event-conditional-custom.js +0 -23
  99. package/lib/cjs/event-models/ht-event-conditional-custom.js.map +0 -1
  100. package/lib/cjs/event-models/ht-event-conditional-queue-status.d.ts +0 -15
  101. package/lib/cjs/event-models/ht-event-conditional-queue-status.js +0 -24
  102. package/lib/cjs/event-models/ht-event-conditional-queue-status.js.map +0 -1
  103. package/lib/cjs/event-models/ht-event-custom.d.ts +0 -7
  104. package/lib/cjs/event-models/ht-event-custom.js +0 -16
  105. package/lib/cjs/event-models/ht-event-custom.js.map +0 -1
  106. package/lib/cjs/event-models/ht-event-fallback.d.ts +0 -12
  107. package/lib/cjs/event-models/ht-event-fallback.js +0 -21
  108. package/lib/cjs/event-models/ht-event-fallback.js.map +0 -1
  109. package/lib/cjs/event-models/ht-event-feedback.d.ts +0 -13
  110. package/lib/cjs/event-models/ht-event-feedback.js +0 -21
  111. package/lib/cjs/event-models/ht-event-feedback.js.map +0 -1
  112. package/lib/cjs/event-models/ht-event-flow.d.ts +0 -11
  113. package/lib/cjs/event-models/ht-event-flow.js +0 -20
  114. package/lib/cjs/event-models/ht-event-flow.js.map +0 -1
  115. package/lib/cjs/event-models/ht-event-handoff-option.d.ts +0 -13
  116. package/lib/cjs/event-models/ht-event-handoff-option.js +0 -20
  117. package/lib/cjs/event-models/ht-event-handoff-option.js.map +0 -1
  118. package/lib/cjs/event-models/ht-event-handoff.d.ts +0 -17
  119. package/lib/cjs/event-models/ht-event-handoff.js +0 -25
  120. package/lib/cjs/event-models/ht-event-handoff.js.map +0 -1
  121. package/lib/cjs/event-models/ht-event-intent-smart.d.ts +0 -14
  122. package/lib/cjs/event-models/ht-event-intent-smart.js +0 -23
  123. package/lib/cjs/event-models/ht-event-intent-smart.js.map +0 -1
  124. package/lib/cjs/event-models/ht-event-keyword.d.ts +0 -14
  125. package/lib/cjs/event-models/ht-event-keyword.js +0 -23
  126. package/lib/cjs/event-models/ht-event-keyword.js.map +0 -1
  127. package/lib/cjs/event-models/ht-event-redirect-flow.d.ts +0 -14
  128. package/lib/cjs/event-models/ht-event-redirect-flow.js +0 -22
  129. package/lib/cjs/event-models/ht-event-redirect-flow.js.map +0 -1
  130. package/lib/cjs/event-models/ht-event-webview-action-triggered.d.ts +0 -14
  131. package/lib/cjs/event-models/ht-event-webview-action-triggered.js +0 -23
  132. package/lib/cjs/event-models/ht-event-webview-action-triggered.js.map +0 -1
  133. package/lib/cjs/event-models/ht-event-webview-end.d.ts +0 -13
  134. package/lib/cjs/event-models/ht-event-webview-end.js +0 -21
  135. package/lib/cjs/event-models/ht-event-webview-end.js.map +0 -1
  136. package/lib/cjs/event-models/ht-event-webview-step.d.ts +0 -11
  137. package/lib/cjs/event-models/ht-event-webview-step.js +0 -19
  138. package/lib/cjs/event-models/ht-event-webview-step.js.map +0 -1
  139. package/lib/cjs/event-models/ht-event.d.ts +0 -14
  140. package/lib/cjs/event-models/ht-event.js +0 -18
  141. package/lib/cjs/event-models/ht-event.js.map +0 -1
  142. package/lib/cjs/event-models/index.d.ts +0 -20
  143. package/lib/cjs/event-models/index.js +0 -44
  144. package/lib/cjs/event-models/index.js.map +0 -1
  145. package/lib/cjs/index.d.ts +0 -17
  146. package/lib/cjs/index.js +0 -70
  147. package/lib/cjs/index.js.map +0 -1
  148. package/lib/cjs/types.d.ts +0 -14
  149. package/lib/cjs/types.js +0 -12
  150. package/lib/cjs/types.js.map +0 -1
  151. package/lib/cjs/utils.d.ts +0 -3
  152. package/lib/cjs/utils.js +0 -58
  153. package/lib/cjs/utils.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { type AvailableSpecialist, type EventAiAgentRouter, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type AvailableSpecialist, type EventAiAgentRouter, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventAiAgentRouter extends HtEvent {
4
4
  flow_thread_id: string;
5
5
  flow_id: string;
@@ -1,14 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventAiAgentRouter = void 0;
4
- /* eslint-disable @typescript-eslint/naming-convention */
5
- const types_1 = require("../types");
6
- const ht_event_1 = require("./ht-event");
7
- class HtEventAiAgentRouter extends ht_event_1.HtEvent {
8
- constructor(event, requestData) {
9
- super(event, requestData);
10
- this.type = types_1.EventType.BotEvent;
11
- this.action = types_1.EventAction.AiAgentRouter;
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
+ /* eslint-disable @typescript-eslint/naming-convention */
18
+
19
+ class HtEventAiAgentRouter 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, "memory_length", void 0), _define_property(this, "input_message_id", void 0), _define_property(this, "input_guardrails_triggered", void 0), _define_property(this, "output_guardrails_triggered", void 0), _define_property(this, "exit", void 0), _define_property(this, "error", void 0), _define_property(this, "starting_agent_name", void 0), _define_property(this, "last_agent_name", void 0), _define_property(this, "available_specialists", void 0), _define_property(this, "is_transferred_to_specialist", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.AiAgentRouter;
12
24
  this.flow_thread_id = event.flowThreadId;
13
25
  this.flow_id = event.flowId;
14
26
  this.flow_name = event.flowName;
@@ -27,5 +39,7 @@ class HtEventAiAgentRouter extends ht_event_1.HtEvent {
27
39
  this.is_transferred_to_specialist = event.isTransferredToSpecialist;
28
40
  }
29
41
  }
30
- exports.HtEventAiAgentRouter = HtEventAiAgentRouter;
42
+
43
+ export { HtEventAiAgentRouter };
44
+
31
45
  //# sourceMappingURL=ht-event-ai-agent-router.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-ai-agent-router.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-ai-agent-router.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,oCAMiB;AACjB,yCAAoC;AAEpC,MAAa,oBAAqB,SAAQ,kBAAO;IAkB/C,YAAY,KAAyB,EAAE,WAAwB;QAC7D,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,aAAa,CAAA;QACvC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAA;QAC5C,IAAI,CAAC,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAAA;QAChE,IAAI,CAAC,2BAA2B,GAAG,KAAK,CAAC,yBAAyB,CAAA;QAClE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QACxB,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QAClD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,aAAa,CAAA;QAC1C,IAAI,CAAC,qBAAqB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACvD,IAAI,CAAC,4BAA4B,GAAG,KAAK,CAAC,yBAAyB,CAAA;IACrE,CAAC;CACF;AAvCD,oDAuCC"}
1
+ {"version":3,"file":"event-models/ht-event-ai-agent-router.js","sources":["../../../src/event-models/ht-event-ai-agent-router.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport {\n type AvailableSpecialist,\n EventAction,\n type EventAiAgentRouter,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventAiAgentRouter 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 memory_length: number\n input_message_id: string\n input_guardrails_triggered: string[]\n output_guardrails_triggered: string[]\n exit: boolean\n error: boolean\n starting_agent_name: string\n last_agent_name: string\n available_specialists: AvailableSpecialist[]\n is_transferred_to_specialist: boolean\n\n constructor(event: EventAiAgentRouter, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.AiAgentRouter\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.memory_length = event.memoryLength\n this.input_message_id = event.inputMessageId\n this.input_guardrails_triggered = event.inputGuardrailsTriggered\n this.output_guardrails_triggered = event.outputGuardrailsTriggered\n this.exit = event.exit\n this.error = event.error\n this.starting_agent_name = event.startingAgentName\n this.last_agent_name = event.lastAgentName\n this.available_specialists = event.availableSpecialists\n this.is_transferred_to_specialist = event.isTransferredToSpecialist\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventAiAgentRouter","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAuD,GAOtC;AACmB;AAE7B,MAAMG,oBAAoBA,SAASD,OAAOA;IAkB/C,YAAYE,KAAyB,EAAEC,WAAwB,CAAE;QAC/D,KAAK,CAACD,OAAOC,cAlBf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA,iDACA,oDACA,8DACA,+DACA,wCACA,yCACA,uDACA,mDACA,yDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,yBAAyB;QACvC,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,aAAa,GAAGA,MAAM,YAAY;QACvC,IAAI,CAAC,gBAAgB,GAAGA,MAAM,cAAc;QAC5C,IAAI,CAAC,0BAA0B,GAAGA,MAAM,wBAAwB;QAChE,IAAI,CAAC,2BAA2B,GAAGA,MAAM,yBAAyB;QAClE,IAAI,CAAC,IAAI,GAAGA,MAAM,IAAI;QACtB,IAAI,CAAC,KAAK,GAAGA,MAAM,KAAK;QACxB,IAAI,CAAC,mBAAmB,GAAGA,MAAM,iBAAiB;QAClD,IAAI,CAAC,eAAe,GAAGA,MAAM,aAAa;QAC1C,IAAI,CAAC,qBAAqB,GAAGA,MAAM,oBAAoB;QACvD,IAAI,CAAC,4BAA4B,GAAGA,MAAM,yBAAyB;IACrE;AACF"}
@@ -1,5 +1,5 @@
1
- import { type EventAiAgent, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventAiAgent, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  interface ToolExecutionEventArgs {
4
4
  tool_name: string;
5
5
  tool_arguments: Record<string, unknown>;
@@ -1,55 +1,66 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventAiAgent = void 0;
4
- /* eslint-disable @typescript-eslint/naming-convention */
5
- const types_1 = require("../types");
6
- const ht_event_1 = require("./ht-event");
7
- class HtEventAiAgent extends ht_event_1.HtEvent {
8
- constructor(event, requestData) {
9
- super(event, requestData);
10
- this.type = types_1.EventType.BotEvent;
11
- this.action = types_1.EventAction.AiAgent;
12
- this.flow_thread_id = event.flowThreadId;
13
- this.flow_id = event.flowId;
14
- this.flow_name = event.flowName;
15
- this.flow_node_id = event.flowNodeId;
16
- this.flow_node_content_id = event.flowNodeContentId;
17
- this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
18
- this.tools_executed = event.toolsExecuted.map(tool => this.getToolExecutionInfo(tool));
19
- this.memory_length = event.memoryLength;
20
- this.input_message_id = event.inputMessageId;
21
- this.input_guardrails_triggered = event.inputGuardrailsTriggered;
22
- this.output_guardrails_triggered = event.outputGuardrailsTriggered;
23
- this.exit = event.exit;
24
- this.error = event.error;
25
- }
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
+ /* eslint-disable @typescript-eslint/naming-convention */
18
+
19
+ class HtEventAiAgent extends HtEvent {
26
20
  truncateToolResults(toolResults) {
27
- const MAX_TOOL_RESULTS_LENGTH_IN_KB = 16 * 1024; // 16384 characters
21
+ const MAX_TOOL_RESULTS_LENGTH_IN_KB = 16 * 1024 // 16384 characters
22
+ ;
28
23
  if (!toolResults) {
29
24
  return undefined;
30
25
  }
31
- return toolResults.length > MAX_TOOL_RESULTS_LENGTH_IN_KB
32
- ? `${toolResults.slice(0, MAX_TOOL_RESULTS_LENGTH_IN_KB - 3)}...`
33
- : toolResults;
26
+ return toolResults.length > MAX_TOOL_RESULTS_LENGTH_IN_KB ? `${toolResults.slice(0, MAX_TOOL_RESULTS_LENGTH_IN_KB - 3)}...` : toolResults;
34
27
  }
35
28
  getToolExecutionInfo(toolExecution) {
36
29
  const knowledgeBaseArgs = {};
37
30
  if (toolExecution.knowledgebaseSourcesIds) {
38
- knowledgeBaseArgs.knowledgebase_sources_ids =
39
- toolExecution.knowledgebaseSourcesIds;
31
+ knowledgeBaseArgs.knowledgebase_sources_ids = toolExecution.knowledgebaseSourcesIds;
40
32
  }
41
33
  if (toolExecution.knowledgebaseChunksIds) {
42
- knowledgeBaseArgs.knowledgebase_chunks_ids =
43
- toolExecution.knowledgebaseChunksIds;
34
+ knowledgeBaseArgs.knowledgebase_chunks_ids = toolExecution.knowledgebaseChunksIds;
44
35
  }
45
36
  const truncatedToolResults = this.truncateToolResults(toolExecution.toolResults ?? '');
46
37
  return {
47
38
  tool_name: toolExecution.toolName,
48
39
  tool_arguments: toolExecution.toolArguments,
49
40
  tool_results: truncatedToolResults,
50
- ...knowledgeBaseArgs,
41
+ ...knowledgeBaseArgs
51
42
  };
52
43
  }
44
+ constructor(event, requestData){
45
+ 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, "tools_executed", void 0), _define_property(this, "memory_length", void 0), _define_property(this, "input_message_id", void 0), _define_property(this, "input_guardrails_triggered", void 0), _define_property(this, "output_guardrails_triggered", void 0), _define_property(this, "exit", void 0), _define_property(this, "error", void 0);
46
+ this.type = EventType.BotEvent;
47
+ this.action = EventAction.AiAgent;
48
+ this.flow_thread_id = event.flowThreadId;
49
+ this.flow_id = event.flowId;
50
+ this.flow_name = event.flowName;
51
+ this.flow_node_id = event.flowNodeId;
52
+ this.flow_node_content_id = event.flowNodeContentId;
53
+ this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
54
+ this.tools_executed = event.toolsExecuted.map((tool)=>this.getToolExecutionInfo(tool));
55
+ this.memory_length = event.memoryLength;
56
+ this.input_message_id = event.inputMessageId;
57
+ this.input_guardrails_triggered = event.inputGuardrailsTriggered;
58
+ this.output_guardrails_triggered = event.outputGuardrailsTriggered;
59
+ this.exit = event.exit;
60
+ this.error = event.error;
61
+ }
53
62
  }
54
- exports.HtEventAiAgent = HtEventAiAgent;
63
+
64
+ export { HtEventAiAgent };
65
+
55
66
  //# sourceMappingURL=ht-event-ai-agent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-ai-agent.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-ai-agent.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,oCAMiB;AACjB,yCAAoC;AAUpC,MAAa,cAAe,SAAQ,kBAAO;IAezC,YAAY,KAAmB,EAAE,WAAwB;QACvD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,OAAO,CAAA;QACjC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CACnD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAChC,CAAA;QACD,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,YAAY,CAAA;QACvC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAA;QAC5C,IAAI,CAAC,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAAA;QAChE,IAAI,CAAC,2BAA2B,GAAG,KAAK,CAAC,yBAAyB,CAAA;QAClE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;IAC1B,CAAC;IAEO,mBAAmB,CAAC,WAAoB;QAC9C,MAAM,6BAA6B,GAAG,EAAE,GAAG,IAAI,CAAA,CAAC,mBAAmB;QACnE,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,WAAW,CAAC,MAAM,GAAG,6BAA6B;YACvD,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,6BAA6B,GAAG,CAAC,CAAC,KAAK;YACjE,CAAC,CAAC,WAAW,CAAA;IACjB,CAAC;IAEO,oBAAoB,CAC1B,aAA4B;QAE5B,MAAM,iBAAiB,GAGnB,EAAE,CAAA;QAEN,IAAI,aAAa,CAAC,uBAAuB,EAAE,CAAC;YAC1C,iBAAiB,CAAC,yBAAyB;gBACzC,aAAa,CAAC,uBAAuB,CAAA;QACzC,CAAC;QAED,IAAI,aAAa,CAAC,sBAAsB,EAAE,CAAC;YACzC,iBAAiB,CAAC,wBAAwB;gBACxC,aAAa,CAAC,sBAAsB,CAAA;QACxC,CAAC;QAED,MAAM,oBAAoB,GAAG,IAAI,CAAC,mBAAmB,CACnD,aAAa,CAAC,WAAW,IAAI,EAAE,CAChC,CAAA;QAED,OAAO;YACL,SAAS,EAAE,aAAa,CAAC,QAAQ;YACjC,cAAc,EAAE,aAAa,CAAC,aAAa;YAC3C,YAAY,EAAE,oBAAoB;YAClC,GAAG,iBAAiB;SACrB,CAAA;IACH,CAAC;CACF;AA3ED,wCA2EC"}
1
+ {"version":3,"file":"event-models/ht-event-ai-agent.js","sources":["../../../src/event-models/ht-event-ai-agent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport {\n EventAction,\n type EventAiAgent,\n EventType,\n type RequestData,\n type ToolExecution,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\ninterface ToolExecutionEventArgs {\n tool_name: string\n tool_arguments: Record<string, unknown>\n tool_results?: string\n knowledgebase_sources_ids?: string[]\n knowledgebase_chunks_ids?: string[]\n}\n\nexport class HtEventAiAgent 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 tools_executed: ToolExecutionEventArgs[]\n memory_length: number\n input_message_id: string\n input_guardrails_triggered: string[]\n output_guardrails_triggered: string[]\n exit: boolean\n error: boolean\n\n constructor(event: EventAiAgent, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.AiAgent\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.tools_executed = event.toolsExecuted.map(tool =>\n this.getToolExecutionInfo(tool)\n )\n this.memory_length = event.memoryLength\n this.input_message_id = event.inputMessageId\n this.input_guardrails_triggered = event.inputGuardrailsTriggered\n this.output_guardrails_triggered = event.outputGuardrailsTriggered\n this.exit = event.exit\n this.error = event.error\n }\n\n private truncateToolResults(toolResults?: string): string | undefined {\n const MAX_TOOL_RESULTS_LENGTH_IN_KB = 16 * 1024 // 16384 characters\n if (!toolResults) {\n return undefined\n }\n return toolResults.length > MAX_TOOL_RESULTS_LENGTH_IN_KB\n ? `${toolResults.slice(0, MAX_TOOL_RESULTS_LENGTH_IN_KB - 3)}...`\n : toolResults\n }\n\n private getToolExecutionInfo(\n toolExecution: ToolExecution\n ): ToolExecutionEventArgs {\n const knowledgeBaseArgs: {\n knowledgebase_sources_ids?: string[]\n knowledgebase_chunks_ids?: string[]\n } = {}\n\n if (toolExecution.knowledgebaseSourcesIds) {\n knowledgeBaseArgs.knowledgebase_sources_ids =\n toolExecution.knowledgebaseSourcesIds\n }\n\n if (toolExecution.knowledgebaseChunksIds) {\n knowledgeBaseArgs.knowledgebase_chunks_ids =\n toolExecution.knowledgebaseChunksIds\n }\n\n const truncatedToolResults = this.truncateToolResults(\n toolExecution.toolResults ?? ''\n )\n\n return {\n tool_name: toolExecution.toolName,\n tool_arguments: toolExecution.toolArguments,\n tool_results: truncatedToolResults,\n ...knowledgeBaseArgs,\n }\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventAiAgent","toolResults","MAX_TOOL_RESULTS_LENGTH_IN_KB","undefined","toolExecution","knowledgeBaseArgs","truncatedToolResults","event","requestData","tool"],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAuD,GAOtC;AACmB;AAU7B,MAAMG,cAAcA,SAASD,OAAOA;IAoCjC,oBAAoBE,WAAoB,EAAsB;QACpE,MAAMC,gCAAgC,KAAK,KAAK,mBAAmB;;QACnE,IAAI,CAACD,aAAa;YAChB,OAAOE;QACT;QACA,OAAOF,YAAY,MAAM,GAAGC,gCACxB,GAAGD,YAAY,KAAK,CAAC,GAAGC,gCAAgC,GAAG,GAAG,CAAC,GAC/DD;IACN;IAEQ,qBACNG,aAA4B,EACJ;QACxB,MAAMC,oBAGF,CAAC;QAEL,IAAID,cAAc,uBAAuB,EAAE;YACzCC,kBAAkB,yBAAyB,GACzCD,cAAc,uBAAuB;QACzC;QAEA,IAAIA,cAAc,sBAAsB,EAAE;YACxCC,kBAAkB,wBAAwB,GACxCD,cAAc,sBAAsB;QACxC;QAEA,MAAME,uBAAuB,IAAI,CAAC,mBAAmB,CACnDF,cAAc,WAAW,IAAI;QAG/B,OAAO;YACL,WAAWA,cAAc,QAAQ;YACjC,gBAAgBA,cAAc,aAAa;YAC3C,cAAcE;YACd,GAAGD,iBAAiB;QACtB;IACF;IA3DA,YAAYE,KAAmB,EAAEC,WAAwB,CAAE;QACzD,KAAK,CAACD,OAAOC,cAff,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA,kDACA,iDACA,oDACA,8DACA,+DACA,wCACA;QAIE,IAAI,CAAC,IAAI,GAAGV,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,mBAAmB;QACjC,IAAI,CAAC,cAAc,GAAGU,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,aAAa,CAAC,GAAG,CAACE,CAAAA,OAC5C,IAAI,CAAC,oBAAoB,CAACA;QAE5B,IAAI,CAAC,aAAa,GAAGF,MAAM,YAAY;QACvC,IAAI,CAAC,gBAAgB,GAAGA,MAAM,cAAc;QAC5C,IAAI,CAAC,0BAA0B,GAAGA,MAAM,wBAAwB;QAChE,IAAI,CAAC,2BAA2B,GAAGA,MAAM,yBAAyB;QAClE,IAAI,CAAC,IAAI,GAAGA,MAAM,IAAI;QACtB,IAAI,CAAC,KAAK,GAAGA,MAAM,KAAK;IAC1B;AAyCF"}
@@ -1,5 +1,5 @@
1
- import { type EventBotAction, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventBotAction, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventBotAction extends HtEvent {
4
4
  flow_thread_id: string;
5
5
  flow_id: string;
@@ -1,13 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventBotAction = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventBotAction extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.BotEvent;
10
- this.action = types_1.EventAction.BotAction;
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 HtEventBotAction 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, "payload", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.BotAction;
11
24
  this.flow_thread_id = event.flowThreadId;
12
25
  this.flow_id = event.flowId;
13
26
  this.flow_name = event.flowName;
@@ -17,5 +30,7 @@ class HtEventBotAction extends ht_event_1.HtEvent {
17
30
  this.payload = event.payload;
18
31
  }
19
32
  }
20
- exports.HtEventBotAction = HtEventBotAction;
33
+
34
+ export { HtEventBotAction };
35
+
21
36
  //# sourceMappingURL=ht-event-bot-action.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-bot-action.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-bot-action.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,gBAAiB,SAAQ,kBAAO;IAS3C,YAAY,KAAqB,EAAE,WAAwB;QACzD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,SAAS,CAAA;QACnC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AArBD,4CAqBC"}
1
+ {"version":3,"file":"event-models/ht-event-bot-action.js","sources":["../../../src/event-models/ht-event-bot-action.ts"],"sourcesContent":["import {\n EventAction,\n type EventBotAction,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventBotAction 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 payload: string\n\n constructor(event: EventBotAction, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.BotAction\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.payload = event.payload\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventBotAction","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,gBAAgBA,SAASD,OAAOA;IAS3C,YAAYE,KAAqB,EAAEC,WAAwB,CAAE;QAC3D,KAAK,CAACD,OAAOC,cATf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,qBAAqB;QACnC,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,OAAO,GAAGA,MAAM,OAAO;IAC9B;AACF"}
@@ -1,5 +1,5 @@
1
- import { type EventCaptureUserInput, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventCaptureUserInput, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventCaptureUserInput extends HtEvent {
4
4
  flow_id: string;
5
5
  flow_name: string;
@@ -1,13 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventCaptureUserInput = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventCaptureUserInput extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.BotEvent;
10
- this.action = types_1.EventAction.CaptureUserInput;
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 HtEventCaptureUserInput 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, "flow_thread_id", void 0), _define_property(this, "flow_node_is_meaningful", void 0), _define_property(this, "field_name", void 0), _define_property(this, "user_input", void 0), _define_property(this, "capture_success", void 0), _define_property(this, "message_id", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.CaptureUserInput;
11
24
  this.flow_id = event.flowId;
12
25
  this.flow_name = event.flowName;
13
26
  this.flow_node_id = event.flowNodeId;
@@ -20,5 +33,7 @@ class HtEventCaptureUserInput extends ht_event_1.HtEvent {
20
33
  this.message_id = event.messageId;
21
34
  }
22
35
  }
23
- exports.HtEventCaptureUserInput = HtEventCaptureUserInput;
36
+
37
+ export { HtEventCaptureUserInput };
38
+
24
39
  //# sourceMappingURL=ht-event-capture-user-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-capture-user-input.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-capture-user-input.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,uBAAwB,SAAQ,kBAAO;IAYlD,YAAY,KAA4B,EAAE,WAAwB;QAChE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,gBAAgB,CAAA;QAC1C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAA;QACjC,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,CAAA;IACnC,CAAC;CACF;AA3BD,0DA2BC"}
1
+ {"version":3,"file":"event-models/ht-event-capture-user-input.js","sources":["../../../src/event-models/ht-event-capture-user-input.ts"],"sourcesContent":["import {\n EventAction,\n type EventCaptureUserInput,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventCaptureUserInput extends HtEvent {\n flow_id: string\n flow_name: string\n flow_node_id: string\n flow_node_content_id: string\n flow_thread_id: string\n flow_node_is_meaningful: boolean\n field_name: string\n user_input: string\n capture_success: boolean\n message_id: string\n\n constructor(event: EventCaptureUserInput, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.CaptureUserInput\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_thread_id = event.flowThreadId\n this.flow_node_is_meaningful = event.flowNodeIsMeaningful\n this.field_name = event.fieldName\n this.user_input = event.userInput\n this.capture_success = event.captureSuccess\n this.message_id = event.messageId\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventCaptureUserInput","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,uBAAuBA,SAASD,OAAOA;IAYlD,YAAYE,KAA4B,EAAEC,WAAwB,CAAE;QAClE,KAAK,CAACD,OAAOC,cAZf,2CACA,6CACA,gDACA,wDACA,kDACA,2DACA,8CACA,8CACA,mDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,4BAA4B;QAC1C,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,cAAc,GAAGA,MAAM,YAAY;QACxC,IAAI,CAAC,uBAAuB,GAAGA,MAAM,oBAAoB;QACzD,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;QACjC,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;QACjC,IAAI,CAAC,eAAe,GAAGA,MAAM,cAAc;QAC3C,IAAI,CAAC,UAAU,GAAGA,MAAM,SAAS;IACnC;AACF"}
@@ -1,5 +1,5 @@
1
- import { type EventConditionalChannel, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventConditionalChannel, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventConditionalChannel extends HtEvent {
4
4
  flow_thread_id: string;
5
5
  flow_id: string;
@@ -1,13 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventConditionalChannel = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventConditionalChannel extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.BotEvent;
10
- this.action = types_1.EventAction.ConditionalChannel;
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 HtEventConditionalChannel 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, "channel", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.ConditionalChannel;
11
24
  this.flow_thread_id = event.flowThreadId;
12
25
  this.flow_id = event.flowId;
13
26
  this.flow_name = event.flowName;
@@ -17,5 +30,7 @@ class HtEventConditionalChannel extends ht_event_1.HtEvent {
17
30
  this.channel = event.channel;
18
31
  }
19
32
  }
20
- exports.HtEventConditionalChannel = HtEventConditionalChannel;
33
+
34
+ export { HtEventConditionalChannel };
35
+
21
36
  //# sourceMappingURL=ht-event-conditional-channel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-conditional-channel.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-conditional-channel.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,yBAA0B,SAAQ,kBAAO;IASpD,YAAY,KAA8B,EAAE,WAAwB;QAClE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,kBAAkB,CAAA;QAC5C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AArBD,8DAqBC"}
1
+ {"version":3,"file":"event-models/ht-event-conditional-channel.js","sources":["../../../src/event-models/ht-event-conditional-channel.ts"],"sourcesContent":["import {\n EventAction,\n type EventConditionalChannel,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventConditionalChannel 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 channel: string\n\n constructor(event: EventConditionalChannel, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.ConditionalChannel\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.channel = event.channel\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventConditionalChannel","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,yBAAyBA,SAASD,OAAOA;IASpD,YAAYE,KAA8B,EAAEC,WAAwB,CAAE;QACpE,KAAK,CAACD,OAAOC,cATf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,8BAA8B;QAC5C,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,OAAO,GAAGA,MAAM,OAAO;IAC9B;AACF"}
@@ -1,5 +1,5 @@
1
- import { type EventConditionalCountry, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventConditionalCountry, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventConditionalCountry extends HtEvent {
4
4
  flow_thread_id: string;
5
5
  flow_id: string;
@@ -1,13 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventConditionalCountry = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventConditionalCountry extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.BotEvent;
10
- this.action = types_1.EventAction.ConditionalCountry;
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 HtEventConditionalCountry 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, "country", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.ConditionalCountry;
11
24
  this.flow_thread_id = event.flowThreadId;
12
25
  this.flow_id = event.flowId;
13
26
  this.flow_name = event.flowName;
@@ -17,5 +30,7 @@ class HtEventConditionalCountry extends ht_event_1.HtEvent {
17
30
  this.country = event.country;
18
31
  }
19
32
  }
20
- exports.HtEventConditionalCountry = HtEventConditionalCountry;
33
+
34
+ export { HtEventConditionalCountry };
35
+
21
36
  //# sourceMappingURL=ht-event-conditional-country.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-conditional-country.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-conditional-country.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,yBAA0B,SAAQ,kBAAO;IASpD,YAAY,KAA8B,EAAE,WAAwB;QAClE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,kBAAkB,CAAA;QAC5C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AArBD,8DAqBC"}
1
+ {"version":3,"file":"event-models/ht-event-conditional-country.js","sources":["../../../src/event-models/ht-event-conditional-country.ts"],"sourcesContent":["import {\n EventAction,\n type EventConditionalCountry,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventConditionalCountry 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 country: string\n\n constructor(event: EventConditionalCountry, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.ConditionalCountry\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.country = event.country\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventConditionalCountry","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,yBAAyBA,SAASD,OAAOA;IASpD,YAAYE,KAA8B,EAAEC,WAAwB,CAAE;QACpE,KAAK,CAACD,OAAOC,cATf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,8BAA8B;QAC5C,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,OAAO,GAAGA,MAAM,OAAO;IAC9B;AACF"}
@@ -1,5 +1,5 @@
1
- import { type EventConditionalCustom, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventConditionalCustom, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventConditionalCustom extends HtEvent {
4
4
  flow_thread_id: string;
5
5
  flow_id: string;
@@ -1,13 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventConditionalCustom = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventConditionalCustom extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.BotEvent;
10
- this.action = types_1.EventAction.ConditionalCustom;
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 HtEventConditionalCustom 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, "conditional_variable", void 0), _define_property(this, "variable_format", void 0), _define_property(this, "operator", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.ConditionalCustom;
11
24
  this.flow_thread_id = event.flowThreadId;
12
25
  this.flow_id = event.flowId;
13
26
  this.flow_name = event.flowName;
@@ -19,5 +32,7 @@ class HtEventConditionalCustom extends ht_event_1.HtEvent {
19
32
  this.operator = event.operator;
20
33
  }
21
34
  }
22
- exports.HtEventConditionalCustom = HtEventConditionalCustom;
35
+
36
+ export { HtEventConditionalCustom };
37
+
23
38
  //# sourceMappingURL=ht-event-conditional-custom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ht-event-conditional-custom.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-conditional-custom.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,wBAAyB,SAAQ,kBAAO;IAWnD,YAAY,KAA6B,EAAE,WAAwB;QACjE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,mBAAW,CAAC,iBAAiB,CAAA;QAC3C,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,YAAY,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAA;QAC3B,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAA;QAC/B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAA;QACnD,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,mBAAmB,CAAA;QACrD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC,oBAAoB,CAAA;QACzD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;IAChC,CAAC;CACF;AAzBD,4DAyBC"}
1
+ {"version":3,"file":"event-models/ht-event-conditional-custom.js","sources":["../../../src/event-models/ht-event-conditional-custom.ts"],"sourcesContent":["import {\n EventAction,\n type EventConditionalCustom,\n EventType,\n type RequestData,\n} from '../types'\nimport { HtEvent } from './ht-event'\n\nexport class HtEventConditionalCustom 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 conditional_variable: string\n variable_format: string\n operator: string\n\n constructor(event: EventConditionalCustom, requestData: RequestData) {\n super(event, requestData)\n this.type = EventType.BotEvent\n this.action = EventAction.ConditionalCustom\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.conditional_variable = event.conditionalVariable\n this.flow_node_is_meaningful = event.flowNodeIsMeaningful\n this.variable_format = event.variableFormat\n this.operator = event.operator\n }\n}\n"],"names":["EventAction","EventType","HtEvent","HtEventConditionalCustom","event","requestData"],"mappings":";;;;;;;;;;;;;;;;AAKiB;AACmB;AAE7B,MAAMG,wBAAwBA,SAASD,OAAOA;IAWnD,YAAYE,KAA6B,EAAEC,WAAwB,CAAE;QACnE,KAAK,CAACD,OAAOC,cAXf,kDACA,2CACA,6CACA,gDACA,wDACA,2DACA,wDACA,mDACA;QAIE,IAAI,CAAC,IAAI,GAAGJ,kBAAkB;QAC9B,IAAI,CAAC,MAAM,GAAGD,6BAA6B;QAC3C,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,oBAAoB,GAAGA,MAAM,mBAAmB;QACrD,IAAI,CAAC,uBAAuB,GAAGA,MAAM,oBAAoB;QACzD,IAAI,CAAC,eAAe,GAAGA,MAAM,cAAc;QAC3C,IAAI,CAAC,QAAQ,GAAGA,MAAM,QAAQ;IAChC;AACF"}
@@ -1,5 +1,5 @@
1
- import { type EventConditionalQueueStatus, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
1
+ import { type EventConditionalQueueStatus, type RequestData } from '../types.js';
2
+ import { HtEvent } from './ht-event.js';
3
3
  export declare class HtEventConditionalQueueStatus extends HtEvent {
4
4
  flow_thread_id: string;
5
5
  flow_id: string;
@@ -1,13 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventConditionalQueueStatus = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventConditionalQueueStatus extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.BotEvent;
10
- this.action = types_1.EventAction.ConditionalQueueStatus;
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 HtEventConditionalQueueStatus 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, "queue_id", void 0), _define_property(this, "queue_name", void 0), _define_property(this, "is_queue_open", void 0), _define_property(this, "is_available_agent", void 0);
22
+ this.type = EventType.BotEvent;
23
+ this.action = EventAction.ConditionalQueueStatus;
11
24
  this.flow_thread_id = event.flowThreadId;
12
25
  this.flow_id = event.flowId;
13
26
  this.flow_name = event.flowName;
@@ -20,5 +33,7 @@ class HtEventConditionalQueueStatus extends ht_event_1.HtEvent {
20
33
  this.is_available_agent = event.isAvailableAgent;
21
34
  }
22
35
  }
23
- exports.HtEventConditionalQueueStatus = HtEventConditionalQueueStatus;
36
+
37
+ export { HtEventConditionalQueueStatus };
38
+
24
39
  //# sourceMappingURL=ht-event-conditional-queue-status.js.map