@botonic/plugin-hubtype-analytics 0.54.0-alpha.0 → 0.55.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 (34) hide show
  1. package/lib/cjs/event-models/index.d.ts +0 -2
  2. package/lib/cjs/event-models/index.js +1 -5
  3. package/lib/cjs/event-models/index.js.map +1 -1
  4. package/lib/cjs/types.d.ts +3 -3
  5. package/lib/cjs/types.js +1 -2
  6. package/lib/cjs/types.js.map +1 -1
  7. package/lib/cjs/utils.js +0 -4
  8. package/lib/cjs/utils.js.map +1 -1
  9. package/lib/esm/event-models/index.d.ts +0 -2
  10. package/lib/esm/event-models/index.js +1 -5
  11. package/lib/esm/event-models/index.js.map +1 -1
  12. package/lib/esm/types.d.ts +3 -3
  13. package/lib/esm/types.js +1 -2
  14. package/lib/esm/types.js.map +1 -1
  15. package/lib/esm/utils.js +0 -4
  16. package/lib/esm/utils.js.map +1 -1
  17. package/package.json +2 -2
  18. package/src/event-models/index.ts +0 -2
  19. package/src/types.ts +0 -8
  20. package/src/utils.ts +0 -8
  21. package/lib/cjs/event-models/ht-event-feedback-knowledgebase.d.ts +0 -15
  22. package/lib/cjs/event-models/ht-event-feedback-knowledgebase.js +0 -23
  23. package/lib/cjs/event-models/ht-event-feedback-knowledgebase.js.map +0 -1
  24. package/lib/cjs/event-models/ht-event-knowledge-base.d.ts +0 -16
  25. package/lib/cjs/event-models/ht-event-knowledge-base.js +0 -25
  26. package/lib/cjs/event-models/ht-event-knowledge-base.js.map +0 -1
  27. package/lib/esm/event-models/ht-event-feedback-knowledgebase.d.ts +0 -15
  28. package/lib/esm/event-models/ht-event-feedback-knowledgebase.js +0 -23
  29. package/lib/esm/event-models/ht-event-feedback-knowledgebase.js.map +0 -1
  30. package/lib/esm/event-models/ht-event-knowledge-base.d.ts +0 -16
  31. package/lib/esm/event-models/ht-event-knowledge-base.js +0 -25
  32. package/lib/esm/event-models/ht-event-knowledge-base.js.map +0 -1
  33. package/src/event-models/ht-event-feedback-knowledgebase.ts +0 -35
  34. package/src/event-models/ht-event-knowledge-base.ts +0 -38
@@ -9,13 +9,11 @@ export { HtEventConditionalQueueStatus } from './ht-event-conditional-queue-stat
9
9
  export { HtEventCustom } from './ht-event-custom';
10
10
  export { HtEventFallback } from './ht-event-fallback';
11
11
  export { HtEventFeedback } from './ht-event-feedback';
12
- export { HtEventFeedbackKnowledgebase } from './ht-event-feedback-knowledgebase';
13
12
  export { HtEventFlow } from './ht-event-flow';
14
13
  export { HtEventHandoff } from './ht-event-handoff';
15
14
  export { HtEventHandoffOption } from './ht-event-handoff-option';
16
15
  export { HtEventIntentSmart } from './ht-event-intent-smart';
17
16
  export { HtEventKeyword } from './ht-event-keyword';
18
- export { HtEventKnowledgeBase } from './ht-event-knowledge-base';
19
17
  export { HtEventRedirectFlow } from './ht-event-redirect-flow';
20
18
  export { HtEventWebviewActionTriggered } from './ht-event-webview-action-triggered';
21
19
  export { HtEventWebviewEnd } from './ht-event-webview-end';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventWebviewStep = exports.HtEventWebviewEnd = exports.HtEventWebviewActionTriggered = exports.HtEventRedirectFlow = exports.HtEventKnowledgeBase = exports.HtEventKeyword = exports.HtEventIntentSmart = exports.HtEventHandoffOption = exports.HtEventHandoff = exports.HtEventFlow = exports.HtEventFeedbackKnowledgebase = exports.HtEventFeedback = exports.HtEventFallback = exports.HtEventCustom = exports.HtEventConditionalQueueStatus = exports.HtEventConditionalCustom = exports.HtEventConditionalCountry = exports.HtEventConditionalChannel = exports.HtEventBotAction = exports.HtEventAiAgentRouter = exports.HtEventAiAgent = exports.HtEvent = void 0;
3
+ exports.HtEventWebviewStep = exports.HtEventWebviewEnd = exports.HtEventWebviewActionTriggered = exports.HtEventRedirectFlow = exports.HtEventKeyword = exports.HtEventIntentSmart = exports.HtEventHandoffOption = exports.HtEventHandoff = exports.HtEventFlow = exports.HtEventFeedback = exports.HtEventFallback = exports.HtEventCustom = exports.HtEventConditionalQueueStatus = exports.HtEventConditionalCustom = exports.HtEventConditionalCountry = exports.HtEventConditionalChannel = exports.HtEventBotAction = exports.HtEventAiAgentRouter = exports.HtEventAiAgent = exports.HtEvent = void 0;
4
4
  var ht_event_1 = require("./ht-event");
5
5
  Object.defineProperty(exports, "HtEvent", { enumerable: true, get: function () { return ht_event_1.HtEvent; } });
6
6
  var ht_event_ai_agent_1 = require("./ht-event-ai-agent");
@@ -23,8 +23,6 @@ var ht_event_fallback_1 = require("./ht-event-fallback");
23
23
  Object.defineProperty(exports, "HtEventFallback", { enumerable: true, get: function () { return ht_event_fallback_1.HtEventFallback; } });
24
24
  var ht_event_feedback_1 = require("./ht-event-feedback");
25
25
  Object.defineProperty(exports, "HtEventFeedback", { enumerable: true, get: function () { return ht_event_feedback_1.HtEventFeedback; } });
26
- var ht_event_feedback_knowledgebase_1 = require("./ht-event-feedback-knowledgebase");
27
- Object.defineProperty(exports, "HtEventFeedbackKnowledgebase", { enumerable: true, get: function () { return ht_event_feedback_knowledgebase_1.HtEventFeedbackKnowledgebase; } });
28
26
  var ht_event_flow_1 = require("./ht-event-flow");
29
27
  Object.defineProperty(exports, "HtEventFlow", { enumerable: true, get: function () { return ht_event_flow_1.HtEventFlow; } });
30
28
  var ht_event_handoff_1 = require("./ht-event-handoff");
@@ -35,8 +33,6 @@ var ht_event_intent_smart_1 = require("./ht-event-intent-smart");
35
33
  Object.defineProperty(exports, "HtEventIntentSmart", { enumerable: true, get: function () { return ht_event_intent_smart_1.HtEventIntentSmart; } });
36
34
  var ht_event_keyword_1 = require("./ht-event-keyword");
37
35
  Object.defineProperty(exports, "HtEventKeyword", { enumerable: true, get: function () { return ht_event_keyword_1.HtEventKeyword; } });
38
- var ht_event_knowledge_base_1 = require("./ht-event-knowledge-base");
39
- Object.defineProperty(exports, "HtEventKnowledgeBase", { enumerable: true, get: function () { return ht_event_knowledge_base_1.HtEventKnowledgeBase; } });
40
36
  var ht_event_redirect_flow_1 = require("./ht-event-redirect-flow");
41
37
  Object.defineProperty(exports, "HtEventRedirectFlow", { enumerable: true, get: function () { return ht_event_redirect_flow_1.HtEventRedirectFlow; } });
42
38
  var ht_event_webview_action_triggered_1 = require("./ht-event-webview-action-triggered");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/event-models/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAA3B,mGAAA,OAAO,OAAA;AAChB,yDAAoD;AAA3C,mHAAA,cAAc,OAAA;AACvB,uEAAiE;AAAxD,gIAAA,oBAAoB,OAAA;AAC7B,6DAAwD;AAA/C,uHAAA,gBAAgB,OAAA;AACzB,+EAA0E;AAAjE,yIAAA,yBAAyB,OAAA;AAClC,+EAA0E;AAAjE,yIAAA,yBAAyB,OAAA;AAClC,6EAAwE;AAA/D,uIAAA,wBAAwB,OAAA;AACjC,yFAAmF;AAA1E,kJAAA,6BAA6B,OAAA;AACtC,qDAAiD;AAAxC,gHAAA,aAAa,OAAA;AACtB,yDAAqD;AAA5C,oHAAA,eAAe,OAAA;AACxB,yDAAqD;AAA5C,oHAAA,eAAe,OAAA;AACxB,qFAAgF;AAAvE,+IAAA,4BAA4B,OAAA;AACrC,iDAA6C;AAApC,4GAAA,WAAW,OAAA;AACpB,uDAAmD;AAA1C,kHAAA,cAAc,OAAA;AACvB,qEAAgE;AAAvD,+HAAA,oBAAoB,OAAA;AAC7B,iEAA4D;AAAnD,2HAAA,kBAAkB,OAAA;AAC3B,uDAAmD;AAA1C,kHAAA,cAAc,OAAA;AACvB,qEAAgE;AAAvD,+HAAA,oBAAoB,OAAA;AAC7B,mEAA8D;AAArD,6HAAA,mBAAmB,OAAA;AAC5B,yFAAmF;AAA1E,kJAAA,6BAA6B,OAAA;AACtC,+DAA0D;AAAjD,yHAAA,iBAAiB,OAAA;AAC1B,iEAA4D;AAAnD,2HAAA,kBAAkB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/event-models/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAA3B,mGAAA,OAAO,OAAA;AAChB,yDAAoD;AAA3C,mHAAA,cAAc,OAAA;AACvB,uEAAiE;AAAxD,gIAAA,oBAAoB,OAAA;AAC7B,6DAAwD;AAA/C,uHAAA,gBAAgB,OAAA;AACzB,+EAA0E;AAAjE,yIAAA,yBAAyB,OAAA;AAClC,+EAA0E;AAAjE,yIAAA,yBAAyB,OAAA;AAClC,6EAAwE;AAA/D,uIAAA,wBAAwB,OAAA;AACjC,yFAAmF;AAA1E,kJAAA,6BAA6B,OAAA;AACtC,qDAAiD;AAAxC,gHAAA,aAAa,OAAA;AACtB,yDAAqD;AAA5C,oHAAA,eAAe,OAAA;AACxB,yDAAqD;AAA5C,oHAAA,eAAe,OAAA;AACxB,iDAA6C;AAApC,4GAAA,WAAW,OAAA;AACpB,uDAAmD;AAA1C,kHAAA,cAAc,OAAA;AACvB,qEAAgE;AAAvD,+HAAA,oBAAoB,OAAA;AAC7B,iEAA4D;AAAnD,2HAAA,kBAAkB,OAAA;AAC3B,uDAAmD;AAA1C,kHAAA,cAAc,OAAA;AACvB,mEAA8D;AAArD,6HAAA,mBAAmB,OAAA;AAC5B,yFAAmF;AAA1E,kJAAA,6BAA6B,OAAA;AACtC,+DAA0D;AAAjD,yHAAA,iBAAiB,OAAA;AAC1B,iEAA4D;AAAnD,2HAAA,kBAAkB,OAAA"}
@@ -1,9 +1,9 @@
1
- import { AvailableSpecialist, EventAction, EventAiAgent, type EventAiAgentRouter, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFeedbackKnowledgebase, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, EventKnowledgeBase, type EventRedirectFlow, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, KnowledgebaseFailReason, ToolExecution, WebviewEndFailType } from '@botonic/core';
1
+ import { AvailableSpecialist, EventAction, EventAiAgent, type EventAiAgentRouter, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, type EventRedirectFlow, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, ToolExecution, WebviewEndFailType } from '@botonic/core';
2
2
  export declare enum EventType {
3
3
  BotEvent = "botevent",
4
4
  WebEvent = "webevent"
5
5
  }
6
- export type HtEventProps = EventFeedback | EventFeedbackKnowledgebase | EventFlow | EventBotAction | EventConditionalChannel | EventConditionalCountry | EventConditionalCustom | EventConditionalQueueStatus | EventHandoff | EventHandoffOption | EventKeyword | EventIntentSmart | EventKnowledgeBase | EventWebviewActionTriggered | EventFallback | EventWebviewStep | EventWebviewEnd | EventCustom | EventAiAgent | EventAiAgentRouter | EventRedirectFlow | EventCaptureUserInput;
6
+ export type HtEventProps = EventFeedback | EventFlow | EventBotAction | EventConditionalChannel | EventConditionalCountry | EventConditionalCustom | EventConditionalQueueStatus | EventHandoff | EventHandoffOption | EventKeyword | EventIntentSmart | EventWebviewActionTriggered | EventFallback | EventWebviewStep | EventWebviewEnd | EventCustom | EventAiAgent | EventAiAgentRouter | EventRedirectFlow | EventCaptureUserInput;
7
7
  export interface RequestData {
8
8
  userId?: string;
9
9
  botInteractionId: string;
@@ -11,4 +11,4 @@ export interface RequestData {
11
11
  userCountry: string;
12
12
  systemLocale: string;
13
13
  }
14
- export { EventAction, EventAiAgent, type EventAiAgentRouter, AvailableSpecialist, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFeedbackKnowledgebase, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, EventKnowledgeBase, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, KnowledgebaseFailReason, ToolExecution, WebviewEndFailType, };
14
+ export { EventAction, EventAiAgent, type EventAiAgentRouter, AvailableSpecialist, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, ToolExecution, WebviewEndFailType, };
package/lib/cjs/types.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebviewEndFailType = exports.KnowledgebaseFailReason = exports.EventAction = exports.EventType = void 0;
3
+ exports.WebviewEndFailType = exports.EventAction = exports.EventType = void 0;
4
4
  const core_1 = require("@botonic/core");
5
5
  Object.defineProperty(exports, "EventAction", { enumerable: true, get: function () { return core_1.EventAction; } });
6
- Object.defineProperty(exports, "KnowledgebaseFailReason", { enumerable: true, get: function () { return core_1.KnowledgebaseFailReason; } });
7
6
  Object.defineProperty(exports, "WebviewEndFailType", { enumerable: true, get: function () { return core_1.WebviewEndFailType; } });
8
7
  var EventType;
9
8
  (function (EventType) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAAA,wCA4BsB;AAwCpB,4FAlEA,kBAAW,OAkEA;AAuBX,wGAlEA,8BAAuB,OAkEA;AAEvB,mGAlEA,yBAAkB,OAkEA;AA/DpB,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAAA,wCAyBsB;AAsCpB,4FA7DA,kBAAW,OA6DA;AAsBX,mGA7DA,yBAAkB,OA6DA;AA1DpB,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
package/lib/cjs/utils.js CHANGED
@@ -12,8 +12,6 @@ function createHtEvent(requestData, htEventProps) {
12
12
  case types_1.EventAction.FeedbackMessage:
13
13
  case types_1.EventAction.FeedbackWebview:
14
14
  return new event_models_1.HtEventFeedback(htEventProps, requestData);
15
- case types_1.EventAction.FeedbackKnowledgebase:
16
- return new event_models_1.HtEventFeedbackKnowledgebase(htEventProps, requestData);
17
15
  case types_1.EventAction.FlowNode:
18
16
  return new event_models_1.HtEventFlow(htEventProps, requestData);
19
17
  case types_1.EventAction.HandoffOption:
@@ -25,8 +23,6 @@ function createHtEvent(requestData, htEventProps) {
25
23
  return new event_models_1.HtEventKeyword(htEventProps, requestData);
26
24
  case types_1.EventAction.IntentSmart:
27
25
  return new event_models_1.HtEventIntentSmart(htEventProps, requestData);
28
- case types_1.EventAction.Knowledgebase:
29
- return new event_models_1.HtEventKnowledgeBase(htEventProps, requestData);
30
26
  case types_1.EventAction.Fallback:
31
27
  return new event_models_1.HtEventFallback(htEventProps, requestData);
32
28
  case types_1.EventAction.WebviewStep:
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;AA4BA,sCA8EC;AA1GD,+BAA+B;AAC/B,iDAuBuB;AACvB,4FAAoF;AACpF,mCAA0E;AAE1E,SAAgB,aAAa,CAC3B,WAAwB,EACxB,YAA0B;IAE1B,QAAQ,YAAY,CAAC,MAAM,EAAE,CAAC;QAC5B,KAAK,mBAAW,CAAC,YAAY,CAAC;QAC9B,KAAK,mBAAW,CAAC,oBAAoB,CAAC;QACtC,KAAK,mBAAW,CAAC,eAAe,CAAC;QACjC,KAAK,mBAAW,CAAC,eAAe;YAC9B,OAAO,IAAI,8BAAe,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEvD,KAAK,mBAAW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AO,IAAI,wCAAyB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEjE,KAAK,mBAAW,CAAC,sBAAsB;YACrC,OAAO,IAAI,4CAA6B,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAErE,KAAK,mBAAW,CAAC,iBAAiB;YAChC,OAAO,IAAI,uCAAwB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEhE,KAAK,mBAAW,CAAC,kBAAkB;YACjC,OAAO,IAAI,wCAAyB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEjE,KAAK,mBAAW,CAAC,SAAS;YACxB,OAAO,IAAI,+BAAgB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAExD,KAAK,mBAAW,CAAC,sBAAsB;YACrC,OAAO,IAAI,4CAA6B,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAErE,KAAK,mBAAW,CAAC,YAAY;YAC3B,OAAO,IAAI,kCAAmB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAE3D,KAAK,mBAAW,CAAC,gBAAgB;YAC/B,OAAO,IAAI,qDAAuB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAE/D;YACE,OAAO,IAAI,sBAAO,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;IACjD,CAAC;AACH,CAAC"}
@@ -9,13 +9,11 @@ export { HtEventConditionalQueueStatus } from './ht-event-conditional-queue-stat
9
9
  export { HtEventCustom } from './ht-event-custom';
10
10
  export { HtEventFallback } from './ht-event-fallback';
11
11
  export { HtEventFeedback } from './ht-event-feedback';
12
- export { HtEventFeedbackKnowledgebase } from './ht-event-feedback-knowledgebase';
13
12
  export { HtEventFlow } from './ht-event-flow';
14
13
  export { HtEventHandoff } from './ht-event-handoff';
15
14
  export { HtEventHandoffOption } from './ht-event-handoff-option';
16
15
  export { HtEventIntentSmart } from './ht-event-intent-smart';
17
16
  export { HtEventKeyword } from './ht-event-keyword';
18
- export { HtEventKnowledgeBase } from './ht-event-knowledge-base';
19
17
  export { HtEventRedirectFlow } from './ht-event-redirect-flow';
20
18
  export { HtEventWebviewActionTriggered } from './ht-event-webview-action-triggered';
21
19
  export { HtEventWebviewEnd } from './ht-event-webview-end';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventWebviewStep = exports.HtEventWebviewEnd = exports.HtEventWebviewActionTriggered = exports.HtEventRedirectFlow = exports.HtEventKnowledgeBase = exports.HtEventKeyword = exports.HtEventIntentSmart = exports.HtEventHandoffOption = exports.HtEventHandoff = exports.HtEventFlow = exports.HtEventFeedbackKnowledgebase = exports.HtEventFeedback = exports.HtEventFallback = exports.HtEventCustom = exports.HtEventConditionalQueueStatus = exports.HtEventConditionalCustom = exports.HtEventConditionalCountry = exports.HtEventConditionalChannel = exports.HtEventBotAction = exports.HtEventAiAgentRouter = exports.HtEventAiAgent = exports.HtEvent = void 0;
3
+ exports.HtEventWebviewStep = exports.HtEventWebviewEnd = exports.HtEventWebviewActionTriggered = exports.HtEventRedirectFlow = exports.HtEventKeyword = exports.HtEventIntentSmart = exports.HtEventHandoffOption = exports.HtEventHandoff = exports.HtEventFlow = exports.HtEventFeedback = exports.HtEventFallback = exports.HtEventCustom = exports.HtEventConditionalQueueStatus = exports.HtEventConditionalCustom = exports.HtEventConditionalCountry = exports.HtEventConditionalChannel = exports.HtEventBotAction = exports.HtEventAiAgentRouter = exports.HtEventAiAgent = exports.HtEvent = void 0;
4
4
  var ht_event_1 = require("./ht-event");
5
5
  Object.defineProperty(exports, "HtEvent", { enumerable: true, get: function () { return ht_event_1.HtEvent; } });
6
6
  var ht_event_ai_agent_1 = require("./ht-event-ai-agent");
@@ -23,8 +23,6 @@ var ht_event_fallback_1 = require("./ht-event-fallback");
23
23
  Object.defineProperty(exports, "HtEventFallback", { enumerable: true, get: function () { return ht_event_fallback_1.HtEventFallback; } });
24
24
  var ht_event_feedback_1 = require("./ht-event-feedback");
25
25
  Object.defineProperty(exports, "HtEventFeedback", { enumerable: true, get: function () { return ht_event_feedback_1.HtEventFeedback; } });
26
- var ht_event_feedback_knowledgebase_1 = require("./ht-event-feedback-knowledgebase");
27
- Object.defineProperty(exports, "HtEventFeedbackKnowledgebase", { enumerable: true, get: function () { return ht_event_feedback_knowledgebase_1.HtEventFeedbackKnowledgebase; } });
28
26
  var ht_event_flow_1 = require("./ht-event-flow");
29
27
  Object.defineProperty(exports, "HtEventFlow", { enumerable: true, get: function () { return ht_event_flow_1.HtEventFlow; } });
30
28
  var ht_event_handoff_1 = require("./ht-event-handoff");
@@ -35,8 +33,6 @@ var ht_event_intent_smart_1 = require("./ht-event-intent-smart");
35
33
  Object.defineProperty(exports, "HtEventIntentSmart", { enumerable: true, get: function () { return ht_event_intent_smart_1.HtEventIntentSmart; } });
36
34
  var ht_event_keyword_1 = require("./ht-event-keyword");
37
35
  Object.defineProperty(exports, "HtEventKeyword", { enumerable: true, get: function () { return ht_event_keyword_1.HtEventKeyword; } });
38
- var ht_event_knowledge_base_1 = require("./ht-event-knowledge-base");
39
- Object.defineProperty(exports, "HtEventKnowledgeBase", { enumerable: true, get: function () { return ht_event_knowledge_base_1.HtEventKnowledgeBase; } });
40
36
  var ht_event_redirect_flow_1 = require("./ht-event-redirect-flow");
41
37
  Object.defineProperty(exports, "HtEventRedirectFlow", { enumerable: true, get: function () { return ht_event_redirect_flow_1.HtEventRedirectFlow; } });
42
38
  var ht_event_webview_action_triggered_1 = require("./ht-event-webview-action-triggered");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/event-models/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAA3B,mGAAA,OAAO,OAAA;AAChB,yDAAoD;AAA3C,mHAAA,cAAc,OAAA;AACvB,uEAAiE;AAAxD,gIAAA,oBAAoB,OAAA;AAC7B,6DAAwD;AAA/C,uHAAA,gBAAgB,OAAA;AACzB,+EAA0E;AAAjE,yIAAA,yBAAyB,OAAA;AA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qD;AAA5C,oHAAA,eAAe,OAAA;AACxB,iDAA6C;AAApC,4GAAA,WAAW,OAAA;AACpB,uDAAmD;AAA1C,kHAAA,cAAc,OAAA;AACvB,qEAAgE;AAAvD,+HAAA,oBAAoB,OAAA;AAC7B,iEAA4D;AAAnD,2HAAA,kBAAkB,OAAA;AAC3B,uDAAmD;AAA1C,kHAAA,cAAc,OAAA;AACvB,mEAA8D;AAArD,6HAAA,mBAAmB,OAAA;AAC5B,yFAAmF;AAA1E,kJAAA,6BAA6B,OAAA;AACtC,+DAA0D;AAAjD,yHAAA,iBAAiB,OAAA;AAC1B,iEAA4D;AAAnD,2HAAA,kBAAkB,OAAA"}
@@ -1,9 +1,9 @@
1
- import { AvailableSpecialist, EventAction, EventAiAgent, type EventAiAgentRouter, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFeedbackKnowledgebase, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, EventKnowledgeBase, type EventRedirectFlow, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, KnowledgebaseFailReason, ToolExecution, WebviewEndFailType } from '@botonic/core';
1
+ import { AvailableSpecialist, EventAction, EventAiAgent, type EventAiAgentRouter, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, type EventRedirectFlow, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, ToolExecution, WebviewEndFailType } from '@botonic/core';
2
2
  export declare enum EventType {
3
3
  BotEvent = "botevent",
4
4
  WebEvent = "webevent"
5
5
  }
6
- export type HtEventProps = EventFeedback | EventFeedbackKnowledgebase | EventFlow | EventBotAction | EventConditionalChannel | EventConditionalCountry | EventConditionalCustom | EventConditionalQueueStatus | EventHandoff | EventHandoffOption | EventKeyword | EventIntentSmart | EventKnowledgeBase | EventWebviewActionTriggered | EventFallback | EventWebviewStep | EventWebviewEnd | EventCustom | EventAiAgent | EventAiAgentRouter | EventRedirectFlow | EventCaptureUserInput;
6
+ export type HtEventProps = EventFeedback | EventFlow | EventBotAction | EventConditionalChannel | EventConditionalCountry | EventConditionalCustom | EventConditionalQueueStatus | EventHandoff | EventHandoffOption | EventKeyword | EventIntentSmart | EventWebviewActionTriggered | EventFallback | EventWebviewStep | EventWebviewEnd | EventCustom | EventAiAgent | EventAiAgentRouter | EventRedirectFlow | EventCaptureUserInput;
7
7
  export interface RequestData {
8
8
  userId?: string;
9
9
  botInteractionId: string;
@@ -11,4 +11,4 @@ export interface RequestData {
11
11
  userCountry: string;
12
12
  systemLocale: string;
13
13
  }
14
- export { EventAction, EventAiAgent, type EventAiAgentRouter, AvailableSpecialist, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFeedbackKnowledgebase, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, EventKnowledgeBase, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, KnowledgebaseFailReason, ToolExecution, WebviewEndFailType, };
14
+ export { EventAction, EventAiAgent, type EventAiAgentRouter, AvailableSpecialist, EventBotAction, EventCaptureUserInput, EventConditionalChannel, EventConditionalCountry, EventConditionalCustom, EventConditionalQueueStatus, EventCustom, EventFallback, EventFeedback, EventFlow, EventHandoff, EventHandoffOption, EventIntentSmart, EventKeyword, EventWebviewActionTriggered, EventWebviewEnd, EventWebviewStep, ToolExecution, WebviewEndFailType, };
package/lib/esm/types.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebviewEndFailType = exports.KnowledgebaseFailReason = exports.EventAction = exports.EventType = void 0;
3
+ exports.WebviewEndFailType = exports.EventAction = exports.EventType = void 0;
4
4
  const core_1 = require("@botonic/core");
5
5
  Object.defineProperty(exports, "EventAction", { enumerable: true, get: function () { return core_1.EventAction; } });
6
- Object.defineProperty(exports, "KnowledgebaseFailReason", { enumerable: true, get: function () { return core_1.KnowledgebaseFailReason; } });
7
6
  Object.defineProperty(exports, "WebviewEndFailType", { enumerable: true, get: function () { return core_1.WebviewEndFailType; } });
8
7
  var EventType;
9
8
  (function (EventType) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAAA,wCA4BsB;AAwCpB,4FAlEA,kBAAW,OAkEA;AAuBX,wGAlEA,8BAAuB,OAkEA;AAEvB,mGAlEA,yBAAkB,OAkEA;AA/DpB,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAAA,wCAyBsB;AAsCpB,4FA7DA,kBAAW,OA6DA;AAsBX,mGA7DA,yBAAkB,OA6DA;AA1DpB,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB"}
package/lib/esm/utils.js CHANGED
@@ -12,8 +12,6 @@ function createHtEvent(requestData, htEventProps) {
12
12
  case types_1.EventAction.FeedbackMessage:
13
13
  case types_1.EventAction.FeedbackWebview:
14
14
  return new event_models_1.HtEventFeedback(htEventProps, requestData);
15
- case types_1.EventAction.FeedbackKnowledgebase:
16
- return new event_models_1.HtEventFeedbackKnowledgebase(htEventProps, requestData);
17
15
  case types_1.EventAction.FlowNode:
18
16
  return new event_models_1.HtEventFlow(htEventProps, requestData);
19
17
  case types_1.EventAction.HandoffOption:
@@ -25,8 +23,6 @@ function createHtEvent(requestData, htEventProps) {
25
23
  return new event_models_1.HtEventKeyword(htEventProps, requestData);
26
24
  case types_1.EventAction.IntentSmart:
27
25
  return new event_models_1.HtEventIntentSmart(htEventProps, requestData);
28
- case types_1.EventAction.Knowledgebase:
29
- return new event_models_1.HtEventKnowledgeBase(htEventProps, requestData);
30
26
  case types_1.EventAction.Fallback:
31
27
  return new event_models_1.HtEventFallback(htEventProps, requestData);
32
28
  case types_1.EventAction.WebviewStep:
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;AA4BA,sCA8EC;AA1GD,+BAA+B;AAC/B,iDAuBuB;AACvB,4FAAoF;AACpF,mCAA0E;AAE1E,SAAgB,aAAa,CAC3B,WAAwB,EACxB,YAA0B;IAE1B,QAAQ,YAAY,CAAC,MAAM,EAAE,CAAC;QAC5B,KAAK,mBAAW,CAAC,YAAY,CAAC;QAC9B,KAAK,mBAAW,CAAC,oBAAoB,CAAC;QACtC,KAAK,mBAAW,CAAC,eAAe,CAAC;QACjC,KAAK,mBAAW,CAAC,eAAe;YAC9B,OAAO,IAAI,8BAAe,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEvD,KAAK,mBAAW,CAAC,qBAAqB;YACpC,OAAO,IAAI,2CAA4B,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEpE,KAAK,mBAAW,CAAC,QAAQ;YACvB,OAAO,IAAI,0BAAW,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEnD,KAAK,mBAAW,CAAC,aAAa;YAC5B,OAAO,IAAI,mCAAoB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAE5D,KAAK,mBAAW,CAAC,cAAc,CAAC;QAChC,KAAK,mBAAW,CAAC,WAAW;YAC1B,OAAO,IAAI,6BAAc,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAEtD,KAAK,mBAAW,CAAC,OAAO;YACtB,OAAO,IAAI,6BAAc,CAAC,YAAY,EAAE,WAAW,CAAC,CAA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CAA6B,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAErE,KAAK,mBAAW,CAAC,YAAY;YAC3B,OAAO,IAAI,kCAAmB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAE3D,KAAK,mBAAW,CAAC,gBAAgB;YAC/B,OAAO,IAAI,qDAAuB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;QAE/D;YACE,OAAO,IAAI,sBAAO,CAAC,YAAY,EAAE,WAAW,CAAC,CAAA;IACjD,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/plugin-hubtype-analytics",
3
- "version": "0.54.0-alpha.0",
3
+ "version": "0.55.0",
4
4
  "description": "Plugin for tracking in the Hubtype backend to see the results in the Hubtype Dashbord",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.26.0",
18
- "@botonic/core": "^0.54.0-alpha.0",
18
+ "@botonic/core": "^0.55.0",
19
19
  "axios": "^1.18.1"
20
20
  },
21
21
  "devDependencies": {
@@ -9,13 +9,11 @@ export { HtEventConditionalQueueStatus } from './ht-event-conditional-queue-stat
9
9
  export { HtEventCustom } from './ht-event-custom'
10
10
  export { HtEventFallback } from './ht-event-fallback'
11
11
  export { HtEventFeedback } from './ht-event-feedback'
12
- export { HtEventFeedbackKnowledgebase } from './ht-event-feedback-knowledgebase'
13
12
  export { HtEventFlow } from './ht-event-flow'
14
13
  export { HtEventHandoff } from './ht-event-handoff'
15
14
  export { HtEventHandoffOption } from './ht-event-handoff-option'
16
15
  export { HtEventIntentSmart } from './ht-event-intent-smart'
17
16
  export { HtEventKeyword } from './ht-event-keyword'
18
- export { HtEventKnowledgeBase } from './ht-event-knowledge-base'
19
17
  export { HtEventRedirectFlow } from './ht-event-redirect-flow'
20
18
  export { HtEventWebviewActionTriggered } from './ht-event-webview-action-triggered'
21
19
  export { HtEventWebviewEnd } from './ht-event-webview-end'
package/src/types.ts CHANGED
@@ -12,18 +12,15 @@ import {
12
12
  EventCustom,
13
13
  EventFallback,
14
14
  EventFeedback,
15
- EventFeedbackKnowledgebase,
16
15
  EventFlow,
17
16
  EventHandoff,
18
17
  EventHandoffOption,
19
18
  EventIntentSmart,
20
19
  EventKeyword,
21
- EventKnowledgeBase,
22
20
  type EventRedirectFlow,
23
21
  EventWebviewActionTriggered,
24
22
  EventWebviewEnd,
25
23
  EventWebviewStep,
26
- KnowledgebaseFailReason,
27
24
  ToolExecution,
28
25
  WebviewEndFailType,
29
26
  } from '@botonic/core'
@@ -35,7 +32,6 @@ export enum EventType {
35
32
 
36
33
  export type HtEventProps =
37
34
  | EventFeedback
38
- | EventFeedbackKnowledgebase
39
35
  | EventFlow
40
36
  | EventBotAction
41
37
  | EventConditionalChannel
@@ -46,7 +42,6 @@ export type HtEventProps =
46
42
  | EventHandoffOption
47
43
  | EventKeyword
48
44
  | EventIntentSmart
49
- | EventKnowledgeBase
50
45
  | EventWebviewActionTriggered
51
46
  | EventFallback
52
47
  | EventWebviewStep
@@ -79,17 +74,14 @@ export {
79
74
  EventCustom,
80
75
  EventFallback,
81
76
  EventFeedback,
82
- EventFeedbackKnowledgebase,
83
77
  EventFlow,
84
78
  EventHandoff,
85
79
  EventHandoffOption,
86
80
  EventIntentSmart,
87
81
  EventKeyword,
88
- EventKnowledgeBase,
89
82
  EventWebviewActionTriggered,
90
83
  EventWebviewEnd,
91
84
  EventWebviewStep,
92
- KnowledgebaseFailReason,
93
85
  ToolExecution,
94
86
  WebviewEndFailType,
95
87
  }
package/src/utils.ts CHANGED
@@ -11,13 +11,11 @@ import {
11
11
  HtEventCustom,
12
12
  HtEventFallback,
13
13
  HtEventFeedback,
14
- HtEventFeedbackKnowledgebase,
15
14
  HtEventFlow,
16
15
  HtEventHandoff,
17
16
  HtEventHandoffOption,
18
17
  HtEventIntentSmart,
19
18
  HtEventKeyword,
20
- HtEventKnowledgeBase,
21
19
  HtEventRedirectFlow,
22
20
  HtEventWebviewActionTriggered,
23
21
  HtEventWebviewEnd,
@@ -37,9 +35,6 @@ export function createHtEvent(
37
35
  case EventAction.FeedbackWebview:
38
36
  return new HtEventFeedback(htEventProps, requestData)
39
37
 
40
- case EventAction.FeedbackKnowledgebase:
41
- return new HtEventFeedbackKnowledgebase(htEventProps, requestData)
42
-
43
38
  case EventAction.FlowNode:
44
39
  return new HtEventFlow(htEventProps, requestData)
45
40
 
@@ -56,9 +51,6 @@ export function createHtEvent(
56
51
  case EventAction.IntentSmart:
57
52
  return new HtEventIntentSmart(htEventProps, requestData)
58
53
 
59
- case EventAction.Knowledgebase:
60
- return new HtEventKnowledgeBase(htEventProps, requestData)
61
-
62
54
  case EventAction.Fallback:
63
55
  return new HtEventFallback(htEventProps, requestData)
64
56
 
@@ -1,15 +0,0 @@
1
- import { type EventAction, type EventFeedbackKnowledgebase, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
3
- export declare class HtEventFeedbackKnowledgebase extends HtEvent {
4
- action: EventAction.FeedbackKnowledgebase;
5
- knowledge_base_inference_id: string;
6
- feedback_target_bot_interaction_id: string;
7
- feedback_target_id: string;
8
- feedback_group_id: string;
9
- possible_options: string[];
10
- possible_values?: number[];
11
- option: string;
12
- value?: number;
13
- comment?: string;
14
- constructor(event: EventFeedbackKnowledgebase, requestData: RequestData);
15
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventFeedbackKnowledgebase = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventFeedbackKnowledgebase extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.WebEvent;
10
- this.action = event.action;
11
- this.knowledge_base_inference_id = event.knowledgebaseInferenceId;
12
- this.feedback_target_bot_interaction_id = event.feedbackBotInteractionId;
13
- this.feedback_target_id = event.feedbackTargetId;
14
- this.feedback_group_id = event.feedbackGroupId;
15
- this.possible_options = event.possibleOptions;
16
- this.possible_values = event.possibleValues;
17
- this.option = event.option;
18
- this.value = event.value;
19
- this.comment = event.comment;
20
- }
21
- }
22
- exports.HtEventFeedbackKnowledgebase = HtEventFeedbackKnowledgebase;
23
- //# sourceMappingURL=ht-event-feedback-knowledgebase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ht-event-feedback-knowledgebase.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-feedback-knowledgebase.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,4BAA6B,SAAQ,kBAAO;IAYvD,YAAY,KAAiC,EAAE,WAAwB;QACrE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,2BAA2B,GAAG,KAAK,CAAC,wBAAwB,CAAA;QACjE,IAAI,CAAC,kCAAkC,GAAG,KAAK,CAAC,wBAAwB,CAAA;QACxE,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,gBAAgB,CAAA;QAChD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAA;QAC9C,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,eAAe,CAAA;QAC7C,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AA1BD,oEA0BC"}
@@ -1,16 +0,0 @@
1
- import { type EventKnowledgeBase, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
3
- export declare class HtEventKnowledgeBase extends HtEvent {
4
- knowledgebase_inference_id: string;
5
- knowledgebase_fail_reason?: string;
6
- knowledgebase_sources_ids: string[];
7
- knowledgebase_chunks_ids: string[];
8
- knowledgebase_message_id: string;
9
- user_input: string;
10
- flow_thread_id: string;
11
- flow_id: string;
12
- flow_name: string;
13
- flow_node_id: string;
14
- flow_node_content_id: string;
15
- constructor(event: EventKnowledgeBase, requestData: RequestData);
16
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventKnowledgeBase = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventKnowledgeBase 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.Knowledgebase;
11
- this.knowledgebase_inference_id = event.knowledgebaseInferenceId;
12
- this.knowledgebase_fail_reason = event.knowledgebaseFailReason;
13
- this.knowledgebase_sources_ids = event.knowledgebaseSourcesIds;
14
- this.knowledgebase_chunks_ids = event.knowledgebaseChunksIds;
15
- this.knowledgebase_message_id = event.knowledgebaseMessageId;
16
- this.user_input = event.userInput;
17
- this.flow_thread_id = event.flowThreadId;
18
- this.flow_id = event.flowId;
19
- this.flow_name = event.flowName;
20
- this.flow_node_id = event.flowNodeId;
21
- this.flow_node_content_id = event.flowNodeContentId;
22
- }
23
- }
24
- exports.HtEventKnowledgeBase = HtEventKnowledgeBase;
25
- //# sourceMappingURL=ht-event-knowledge-base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ht-event-knowledge-base.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-knowledge-base.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,oBAAqB,SAAQ,kBAAO;IAa/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,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAAA;QAChE,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC,uBAAuB,CAAA;QAC9D,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC,uBAAuB,CAAA;QAC9D,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC,sBAAsB,CAAA;QAC5D,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC,sBAAsB,CAAA;QAC5D,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,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;IACrD,CAAC;CACF;AA7BD,oDA6BC"}
@@ -1,15 +0,0 @@
1
- import { type EventAction, type EventFeedbackKnowledgebase, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
3
- export declare class HtEventFeedbackKnowledgebase extends HtEvent {
4
- action: EventAction.FeedbackKnowledgebase;
5
- knowledge_base_inference_id: string;
6
- feedback_target_bot_interaction_id: string;
7
- feedback_target_id: string;
8
- feedback_group_id: string;
9
- possible_options: string[];
10
- possible_values?: number[];
11
- option: string;
12
- value?: number;
13
- comment?: string;
14
- constructor(event: EventFeedbackKnowledgebase, requestData: RequestData);
15
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventFeedbackKnowledgebase = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventFeedbackKnowledgebase extends ht_event_1.HtEvent {
7
- constructor(event, requestData) {
8
- super(event, requestData);
9
- this.type = types_1.EventType.WebEvent;
10
- this.action = event.action;
11
- this.knowledge_base_inference_id = event.knowledgebaseInferenceId;
12
- this.feedback_target_bot_interaction_id = event.feedbackBotInteractionId;
13
- this.feedback_target_id = event.feedbackTargetId;
14
- this.feedback_group_id = event.feedbackGroupId;
15
- this.possible_options = event.possibleOptions;
16
- this.possible_values = event.possibleValues;
17
- this.option = event.option;
18
- this.value = event.value;
19
- this.comment = event.comment;
20
- }
21
- }
22
- exports.HtEventFeedbackKnowledgebase = HtEventFeedbackKnowledgebase;
23
- //# sourceMappingURL=ht-event-feedback-knowledgebase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ht-event-feedback-knowledgebase.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-feedback-knowledgebase.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,4BAA6B,SAAQ,kBAAO;IAYvD,YAAY,KAAiC,EAAE,WAAwB;QACrE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,2BAA2B,GAAG,KAAK,CAAC,wBAAwB,CAAA;QACjE,IAAI,CAAC,kCAAkC,GAAG,KAAK,CAAC,wBAAwB,CAAA;QACxE,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,gBAAgB,CAAA;QAChD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,eAAe,CAAA;QAC9C,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,eAAe,CAAA;QAC7C,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,cAAc,CAAA;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;QAC1B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;IAC9B,CAAC;CACF;AA1BD,oEA0BC"}
@@ -1,16 +0,0 @@
1
- import { type EventKnowledgeBase, type RequestData } from '../types';
2
- import { HtEvent } from './ht-event';
3
- export declare class HtEventKnowledgeBase extends HtEvent {
4
- knowledgebase_inference_id: string;
5
- knowledgebase_fail_reason?: string;
6
- knowledgebase_sources_ids: string[];
7
- knowledgebase_chunks_ids: string[];
8
- knowledgebase_message_id: string;
9
- user_input: string;
10
- flow_thread_id: string;
11
- flow_id: string;
12
- flow_name: string;
13
- flow_node_id: string;
14
- flow_node_content_id: string;
15
- constructor(event: EventKnowledgeBase, requestData: RequestData);
16
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HtEventKnowledgeBase = void 0;
4
- const types_1 = require("../types");
5
- const ht_event_1 = require("./ht-event");
6
- class HtEventKnowledgeBase 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.Knowledgebase;
11
- this.knowledgebase_inference_id = event.knowledgebaseInferenceId;
12
- this.knowledgebase_fail_reason = event.knowledgebaseFailReason;
13
- this.knowledgebase_sources_ids = event.knowledgebaseSourcesIds;
14
- this.knowledgebase_chunks_ids = event.knowledgebaseChunksIds;
15
- this.knowledgebase_message_id = event.knowledgebaseMessageId;
16
- this.user_input = event.userInput;
17
- this.flow_thread_id = event.flowThreadId;
18
- this.flow_id = event.flowId;
19
- this.flow_name = event.flowName;
20
- this.flow_node_id = event.flowNodeId;
21
- this.flow_node_content_id = event.flowNodeContentId;
22
- }
23
- }
24
- exports.HtEventKnowledgeBase = HtEventKnowledgeBase;
25
- //# sourceMappingURL=ht-event-knowledge-base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ht-event-knowledge-base.js","sourceRoot":"","sources":["../../../src/event-models/ht-event-knowledge-base.ts"],"names":[],"mappings":";;;AAAA,oCAKiB;AACjB,yCAAoC;AAEpC,MAAa,oBAAqB,SAAQ,kBAAO;IAa/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,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAAA;QAChE,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC,uBAAuB,CAAA;QAC9D,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC,uBAAuB,CAAA;QAC9D,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC,sBAAsB,CAAA;QAC5D,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC,sBAAsB,CAAA;QAC5D,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,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;IACrD,CAAC;CACF;AA7BD,oDA6BC"}
@@ -1,35 +0,0 @@
1
- import {
2
- type EventAction,
3
- type EventFeedbackKnowledgebase,
4
- EventType,
5
- type RequestData,
6
- } from '../types'
7
- import { HtEvent } from './ht-event'
8
-
9
- export class HtEventFeedbackKnowledgebase extends HtEvent {
10
- action: EventAction.FeedbackKnowledgebase
11
- knowledge_base_inference_id: string
12
- feedback_target_bot_interaction_id: string
13
- feedback_target_id: string
14
- feedback_group_id: string
15
- possible_options: string[]
16
- possible_values?: number[]
17
- option: string
18
- value?: number
19
- comment?: string
20
-
21
- constructor(event: EventFeedbackKnowledgebase, requestData: RequestData) {
22
- super(event, requestData)
23
- this.type = EventType.WebEvent
24
- this.action = event.action
25
- this.knowledge_base_inference_id = event.knowledgebaseInferenceId
26
- this.feedback_target_bot_interaction_id = event.feedbackBotInteractionId
27
- this.feedback_target_id = event.feedbackTargetId
28
- this.feedback_group_id = event.feedbackGroupId
29
- this.possible_options = event.possibleOptions
30
- this.possible_values = event.possibleValues
31
- this.option = event.option
32
- this.value = event.value
33
- this.comment = event.comment
34
- }
35
- }
@@ -1,38 +0,0 @@
1
- import {
2
- EventAction,
3
- type EventKnowledgeBase,
4
- EventType,
5
- type RequestData,
6
- } from '../types'
7
- import { HtEvent } from './ht-event'
8
-
9
- export class HtEventKnowledgeBase extends HtEvent {
10
- knowledgebase_inference_id: string
11
- knowledgebase_fail_reason?: string
12
- knowledgebase_sources_ids: string[]
13
- knowledgebase_chunks_ids: string[]
14
- knowledgebase_message_id: string
15
- user_input: string
16
- flow_thread_id: string
17
- flow_id: string
18
- flow_name: string
19
- flow_node_id: string
20
- flow_node_content_id: string
21
-
22
- constructor(event: EventKnowledgeBase, requestData: RequestData) {
23
- super(event, requestData)
24
- this.type = EventType.BotEvent
25
- this.action = EventAction.Knowledgebase
26
- this.knowledgebase_inference_id = event.knowledgebaseInferenceId
27
- this.knowledgebase_fail_reason = event.knowledgebaseFailReason
28
- this.knowledgebase_sources_ids = event.knowledgebaseSourcesIds
29
- this.knowledgebase_chunks_ids = event.knowledgebaseChunksIds
30
- this.knowledgebase_message_id = event.knowledgebaseMessageId
31
- this.user_input = event.userInput
32
- this.flow_thread_id = event.flowThreadId
33
- this.flow_id = event.flowId
34
- this.flow_name = event.flowName
35
- this.flow_node_id = event.flowNodeId
36
- this.flow_node_content_id = event.flowNodeContentId
37
- }
38
- }