@botonic/plugin-hubtype-analytics 0.46.0-alpha.2 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +205 -0
- package/README.md +6 -134
- package/package.json +18 -39
- package/src/index.d.ts +1 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-ai-agent.d.ts +3 -5
- package/src/lib/event-models/bot/ht-event-ai-agent.js +35 -0
- package/src/lib/event-models/bot/ht-event-ai-agent.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-bot-action.d.ts +2 -2
- package/src/lib/event-models/bot/ht-event-bot-action.js +17 -0
- package/src/lib/event-models/bot/ht-event-bot-action.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-capture-user-input.d.ts +2 -2
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-capture-user-input.js +5 -9
- package/src/lib/event-models/bot/ht-event-capture-user-input.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-conditional-channel.d.ts +2 -2
- package/src/lib/event-models/bot/ht-event-conditional-channel.js +17 -0
- package/src/lib/event-models/bot/ht-event-conditional-channel.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-conditional-country.d.ts +2 -2
- package/src/lib/event-models/bot/ht-event-conditional-country.js +17 -0
- package/src/lib/event-models/bot/ht-event-conditional-country.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-conditional-custom.d.ts +2 -2
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-conditional-custom.js +6 -10
- package/src/lib/event-models/bot/ht-event-conditional-custom.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-conditional-queue-status.d.ts +2 -2
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-conditional-queue-status.js +5 -9
- package/src/lib/event-models/bot/ht-event-conditional-queue-status.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-fallback.d.ts +3 -2
- package/src/lib/event-models/bot/ht-event-fallback.js +17 -0
- package/src/lib/event-models/bot/ht-event-fallback.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-flow.d.ts +3 -2
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-flow.js +5 -9
- package/src/lib/event-models/bot/ht-event-flow.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-handoff-option.d.ts +2 -2
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-handoff-option.js +5 -8
- package/src/lib/event-models/bot/ht-event-handoff-option.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-handoff.d.ts +2 -2
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-handoff.js +4 -8
- package/src/lib/event-models/bot/ht-event-handoff.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-intent-smart.d.ts +3 -2
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-intent-smart.js +5 -9
- package/src/lib/event-models/bot/ht-event-intent-smart.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-keyword.d.ts +3 -2
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-keyword.js +5 -9
- package/src/lib/event-models/bot/ht-event-keyword.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/bot}/ht-event-knowledge-base.d.ts +3 -2
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-knowledge-base.js +5 -9
- package/src/lib/event-models/bot/ht-event-knowledge-base.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-redirect-flow.d.ts +2 -3
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-redirect-flow.js +5 -9
- package/src/lib/event-models/bot/ht-event-redirect-flow.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/bot}/ht-event-webview-action-triggered.d.ts +2 -2
- package/src/lib/event-models/bot/ht-event-webview-action-triggered.js +18 -0
- package/src/lib/event-models/bot/ht-event-webview-action-triggered.js.map +1 -0
- package/{lib/cjs → src/lib}/event-models/ht-event.d.ts +2 -2
- package/{lib/esm → src/lib}/event-models/ht-event.js +3 -7
- package/src/lib/event-models/ht-event.js.map +1 -0
- package/src/lib/event-models/index.d.ts +21 -0
- package/src/lib/event-models/index.js +22 -0
- package/src/lib/event-models/index.js.map +1 -0
- package/src/lib/event-models/test-helpers.d.ts +11 -0
- package/src/lib/event-models/test-helpers.js +50 -0
- package/src/lib/event-models/test-helpers.js.map +1 -0
- package/src/lib/event-models/types.d.ts +12 -0
- package/src/lib/event-models/types.js +7 -0
- package/src/lib/event-models/types.js.map +1 -0
- package/src/lib/event-models/web/ht-event-custom.d.ts +8 -0
- package/src/lib/event-models/web/ht-event-custom.js +12 -0
- package/src/lib/event-models/web/ht-event-custom.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/web}/ht-event-feedback-knowledgebase.d.ts +2 -2
- package/{lib/cjs/event-models → src/lib/event-models/web}/ht-event-feedback-knowledgebase.js +4 -8
- package/src/lib/event-models/web/ht-event-feedback-knowledgebase.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/web}/ht-event-feedback.d.ts +2 -2
- package/{lib/esm/event-models → src/lib/event-models/web}/ht-event-feedback.js +4 -8
- package/src/lib/event-models/web/ht-event-feedback.js.map +1 -0
- package/{lib/esm/event-models → src/lib/event-models/web}/ht-event-webview-end.d.ts +2 -2
- package/{lib/esm/event-models → src/lib/event-models/web}/ht-event-webview-end.js +4 -8
- package/src/lib/event-models/web/ht-event-webview-end.js.map +1 -0
- package/{lib/cjs/event-models → src/lib/event-models/web}/ht-event-webview-step.d.ts +2 -2
- package/src/lib/event-models/web/ht-event-webview-step.js +15 -0
- package/src/lib/event-models/web/ht-event-webview-step.js.map +1 -0
- package/src/lib/index.d.ts +17 -0
- package/src/lib/index.js +107 -0
- package/src/lib/index.js.map +1 -0
- package/{lib/cjs → src/lib}/utils.d.ts +1 -1
- package/src/lib/utils.js +56 -0
- package/src/lib/utils.js.map +1 -0
- package/lib/cjs/event-models/ht-event-ai-agent.js +0 -55
- package/lib/cjs/event-models/ht-event-ai-agent.js.map +0 -1
- package/lib/cjs/event-models/ht-event-bot-action.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-bot-action.js +0 -21
- package/lib/cjs/event-models/ht-event-bot-action.js.map +0 -1
- package/lib/cjs/event-models/ht-event-capture-user-input.d.ts +0 -15
- package/lib/cjs/event-models/ht-event-capture-user-input.js +0 -24
- package/lib/cjs/event-models/ht-event-capture-user-input.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-channel.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-conditional-channel.js +0 -21
- package/lib/cjs/event-models/ht-event-conditional-channel.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-country.js +0 -21
- package/lib/cjs/event-models/ht-event-conditional-country.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-custom.d.ts +0 -13
- package/lib/cjs/event-models/ht-event-conditional-custom.js.map +0 -1
- package/lib/cjs/event-models/ht-event-conditional-queue-status.js +0 -24
- package/lib/cjs/event-models/ht-event-conditional-queue-status.js.map +0 -1
- package/lib/cjs/event-models/ht-event-custom.d.ts +0 -7
- package/lib/cjs/event-models/ht-event-custom.js +0 -16
- package/lib/cjs/event-models/ht-event-custom.js.map +0 -1
- package/lib/cjs/event-models/ht-event-fallback.d.ts +0 -12
- package/lib/cjs/event-models/ht-event-fallback.js +0 -21
- package/lib/cjs/event-models/ht-event-fallback.js.map +0 -1
- package/lib/cjs/event-models/ht-event-feedback-knowledgebase.js.map +0 -1
- package/lib/cjs/event-models/ht-event-feedback.js +0 -21
- package/lib/cjs/event-models/ht-event-feedback.js.map +0 -1
- package/lib/cjs/event-models/ht-event-flow.js.map +0 -1
- package/lib/cjs/event-models/ht-event-handoff-option.js.map +0 -1
- package/lib/cjs/event-models/ht-event-handoff.js.map +0 -1
- package/lib/cjs/event-models/ht-event-intent-smart.js.map +0 -1
- package/lib/cjs/event-models/ht-event-keyword.js +0 -23
- package/lib/cjs/event-models/ht-event-keyword.js.map +0 -1
- package/lib/cjs/event-models/ht-event-knowledge-base.d.ts +0 -16
- package/lib/cjs/event-models/ht-event-knowledge-base.js.map +0 -1
- package/lib/cjs/event-models/ht-event-redirect-flow.js.map +0 -1
- package/lib/cjs/event-models/ht-event-webview-action-triggered.js +0 -22
- package/lib/cjs/event-models/ht-event-webview-action-triggered.js.map +0 -1
- package/lib/cjs/event-models/ht-event-webview-end.d.ts +0 -13
- package/lib/cjs/event-models/ht-event-webview-end.js +0 -21
- package/lib/cjs/event-models/ht-event-webview-end.js.map +0 -1
- package/lib/cjs/event-models/ht-event-webview-step.js +0 -19
- package/lib/cjs/event-models/ht-event-webview-step.js.map +0 -1
- package/lib/cjs/event-models/ht-event.js +0 -18
- package/lib/cjs/event-models/ht-event.js.map +0 -1
- package/lib/cjs/event-models/index.d.ts +0 -21
- package/lib/cjs/event-models/index.js +0 -46
- package/lib/cjs/event-models/index.js.map +0 -1
- package/lib/cjs/index.d.ts +0 -17
- package/lib/cjs/index.js +0 -70
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/types.d.ts +0 -14
- package/lib/cjs/types.js +0 -13
- package/lib/cjs/types.js.map +0 -1
- package/lib/cjs/utils.js +0 -60
- package/lib/cjs/utils.js.map +0 -1
- package/lib/esm/event-models/ht-event-ai-agent.d.ts +0 -28
- package/lib/esm/event-models/ht-event-ai-agent.js +0 -55
- package/lib/esm/event-models/ht-event-ai-agent.js.map +0 -1
- package/lib/esm/event-models/ht-event-bot-action.js +0 -21
- package/lib/esm/event-models/ht-event-bot-action.js.map +0 -1
- package/lib/esm/event-models/ht-event-capture-user-input.js.map +0 -1
- package/lib/esm/event-models/ht-event-conditional-channel.js +0 -21
- package/lib/esm/event-models/ht-event-conditional-channel.js.map +0 -1
- package/lib/esm/event-models/ht-event-conditional-country.d.ts +0 -12
- package/lib/esm/event-models/ht-event-conditional-country.js +0 -21
- package/lib/esm/event-models/ht-event-conditional-country.js.map +0 -1
- package/lib/esm/event-models/ht-event-conditional-custom.js +0 -22
- package/lib/esm/event-models/ht-event-conditional-custom.js.map +0 -1
- package/lib/esm/event-models/ht-event-conditional-queue-status.d.ts +0 -15
- package/lib/esm/event-models/ht-event-conditional-queue-status.js.map +0 -1
- package/lib/esm/event-models/ht-event-custom.d.ts +0 -7
- package/lib/esm/event-models/ht-event-custom.js +0 -16
- package/lib/esm/event-models/ht-event-custom.js.map +0 -1
- package/lib/esm/event-models/ht-event-fallback.js +0 -21
- package/lib/esm/event-models/ht-event-fallback.js.map +0 -1
- package/lib/esm/event-models/ht-event-feedback-knowledgebase.d.ts +0 -15
- package/lib/esm/event-models/ht-event-feedback-knowledgebase.js +0 -23
- package/lib/esm/event-models/ht-event-feedback-knowledgebase.js.map +0 -1
- package/lib/esm/event-models/ht-event-feedback.d.ts +0 -13
- package/lib/esm/event-models/ht-event-feedback.js.map +0 -1
- package/lib/esm/event-models/ht-event-flow.d.ts +0 -11
- package/lib/esm/event-models/ht-event-flow.js +0 -20
- package/lib/esm/event-models/ht-event-flow.js.map +0 -1
- package/lib/esm/event-models/ht-event-handoff-option.d.ts +0 -13
- package/lib/esm/event-models/ht-event-handoff-option.js +0 -20
- package/lib/esm/event-models/ht-event-handoff-option.js.map +0 -1
- package/lib/esm/event-models/ht-event-handoff.d.ts +0 -17
- package/lib/esm/event-models/ht-event-handoff.js +0 -25
- package/lib/esm/event-models/ht-event-handoff.js.map +0 -1
- package/lib/esm/event-models/ht-event-intent-smart.d.ts +0 -14
- package/lib/esm/event-models/ht-event-intent-smart.js +0 -23
- package/lib/esm/event-models/ht-event-intent-smart.js.map +0 -1
- package/lib/esm/event-models/ht-event-keyword.d.ts +0 -14
- package/lib/esm/event-models/ht-event-keyword.js.map +0 -1
- package/lib/esm/event-models/ht-event-knowledge-base.js +0 -25
- package/lib/esm/event-models/ht-event-knowledge-base.js.map +0 -1
- package/lib/esm/event-models/ht-event-redirect-flow.d.ts +0 -14
- package/lib/esm/event-models/ht-event-redirect-flow.js +0 -22
- package/lib/esm/event-models/ht-event-redirect-flow.js.map +0 -1
- package/lib/esm/event-models/ht-event-webview-action-triggered.d.ts +0 -13
- package/lib/esm/event-models/ht-event-webview-action-triggered.js +0 -22
- package/lib/esm/event-models/ht-event-webview-action-triggered.js.map +0 -1
- package/lib/esm/event-models/ht-event-webview-end.js.map +0 -1
- package/lib/esm/event-models/ht-event-webview-step.d.ts +0 -11
- package/lib/esm/event-models/ht-event-webview-step.js +0 -19
- package/lib/esm/event-models/ht-event-webview-step.js.map +0 -1
- package/lib/esm/event-models/ht-event.d.ts +0 -14
- package/lib/esm/event-models/ht-event.js.map +0 -1
- package/lib/esm/event-models/index.d.ts +0 -21
- package/lib/esm/event-models/index.js +0 -46
- package/lib/esm/event-models/index.js.map +0 -1
- package/lib/esm/index.d.ts +0 -18
- package/lib/esm/index.js +0 -70
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/types.d.ts +0 -14
- package/lib/esm/types.js +0 -13
- package/lib/esm/types.js.map +0 -1
- package/lib/esm/utils.d.ts +0 -3
- package/lib/esm/utils.js +0 -60
- package/lib/esm/utils.js.map +0 -1
- package/src/event-models/ht-event-ai-agent.ts +0 -94
- package/src/event-models/ht-event-bot-action.ts +0 -30
- package/src/event-models/ht-event-capture-user-input.ts +0 -36
- package/src/event-models/ht-event-conditional-channel.ts +0 -30
- package/src/event-models/ht-event-conditional-country.ts +0 -30
- package/src/event-models/ht-event-conditional-custom.ts +0 -32
- package/src/event-models/ht-event-conditional-queue-status.ts +0 -36
- package/src/event-models/ht-event-custom.ts +0 -20
- package/src/event-models/ht-event-fallback.ts +0 -30
- package/src/event-models/ht-event-feedback-knowledgebase.ts +0 -35
- package/src/event-models/ht-event-feedback.ts +0 -35
- package/src/event-models/ht-event-flow.ts +0 -28
- package/src/event-models/ht-event-handoff-option.ts +0 -30
- package/src/event-models/ht-event-handoff.ts +0 -39
- package/src/event-models/ht-event-intent-smart.ts +0 -34
- package/src/event-models/ht-event-keyword.ts +0 -34
- package/src/event-models/ht-event-knowledge-base.ts +0 -38
- package/src/event-models/ht-event-redirect-flow.ts +0 -29
- package/src/event-models/ht-event-webview-action-triggered.ts +0 -32
- package/src/event-models/ht-event-webview-end.ts +0 -31
- package/src/event-models/ht-event-webview-step.ts +0 -27
- package/src/event-models/ht-event.ts +0 -31
- package/src/event-models/index.ts +0 -21
- package/src/index.ts +0 -82
- package/src/types.ts +0 -90
- package/src/utils.ts +0 -103
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
## 2.23.0 (2026-03-23)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 2.22.1 (2026-03-19)
|
|
6
|
+
|
|
7
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
8
|
+
|
|
9
|
+
## 2.22.0 (2026-03-16)
|
|
10
|
+
|
|
11
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
12
|
+
|
|
13
|
+
## 2.21.0 (2026-03-16)
|
|
14
|
+
|
|
15
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
16
|
+
|
|
17
|
+
## 2.20.0 (2026-03-13)
|
|
18
|
+
|
|
19
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
20
|
+
|
|
21
|
+
## 2.19.0 (2026-03-12)
|
|
22
|
+
|
|
23
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
24
|
+
|
|
25
|
+
## 2.18.0 (2026-03-04)
|
|
26
|
+
|
|
27
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
28
|
+
|
|
29
|
+
## 2.17.0 (2026-03-02)
|
|
30
|
+
|
|
31
|
+
### 🚀 Features
|
|
32
|
+
|
|
33
|
+
- botonic working with v2 input format ([#660](https://github.com/metis-ai/hubtype-product/pull/660))
|
|
34
|
+
|
|
35
|
+
### ❤️ Thank You
|
|
36
|
+
|
|
37
|
+
- Marc Rabat @vanbasten17
|
|
38
|
+
|
|
39
|
+
## 2.16.0 (2026-02-23)
|
|
40
|
+
|
|
41
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
42
|
+
|
|
43
|
+
## 2.15.0 (2026-02-13)
|
|
44
|
+
|
|
45
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
46
|
+
|
|
47
|
+
## 2.14.0 (2026-02-05)
|
|
48
|
+
|
|
49
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
50
|
+
|
|
51
|
+
## 2.13.4 (2026-02-02)
|
|
52
|
+
|
|
53
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
54
|
+
|
|
55
|
+
## 2.13.3 (2026-01-30)
|
|
56
|
+
|
|
57
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
58
|
+
|
|
59
|
+
## 2.13.2 (2026-01-30)
|
|
60
|
+
|
|
61
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
62
|
+
|
|
63
|
+
## 2.13.1 (2026-01-30)
|
|
64
|
+
|
|
65
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
66
|
+
|
|
67
|
+
## 2.13.0 (2026-01-29)
|
|
68
|
+
|
|
69
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
70
|
+
|
|
71
|
+
## 2.12.0 (2026-01-28)
|
|
72
|
+
|
|
73
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
74
|
+
|
|
75
|
+
## 2.11.5 (2026-01-28)
|
|
76
|
+
|
|
77
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
78
|
+
|
|
79
|
+
## 2.11.4 (2026-01-28)
|
|
80
|
+
|
|
81
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
82
|
+
|
|
83
|
+
## 2.11.3 (2026-01-28)
|
|
84
|
+
|
|
85
|
+
### 🩹 Fixes
|
|
86
|
+
|
|
87
|
+
- update entrypoints to use .js and .d.ts extensions for module and types ([#552](https://github.com/metis-ai/hubtype-product/pull/552))
|
|
88
|
+
|
|
89
|
+
### ❤️ Thank You
|
|
90
|
+
|
|
91
|
+
- David Hidalgo @Davidhidalgo
|
|
92
|
+
|
|
93
|
+
## 2.11.2 (2026-01-21)
|
|
94
|
+
|
|
95
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
96
|
+
|
|
97
|
+
## 2.11.1 (2026-01-21)
|
|
98
|
+
|
|
99
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
100
|
+
|
|
101
|
+
## 2.11.0 (2026-01-21)
|
|
102
|
+
|
|
103
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
104
|
+
|
|
105
|
+
## 2.10.1 (2026-01-19)
|
|
106
|
+
|
|
107
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
108
|
+
|
|
109
|
+
## 2.10.0 (2026-01-18)
|
|
110
|
+
|
|
111
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
112
|
+
|
|
113
|
+
## 2.9.1 (2026-01-17)
|
|
114
|
+
|
|
115
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
116
|
+
|
|
117
|
+
## 2.9.0 (2026-01-17)
|
|
118
|
+
|
|
119
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
120
|
+
|
|
121
|
+
## 2.8.1 (2026-01-16)
|
|
122
|
+
|
|
123
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
124
|
+
|
|
125
|
+
## 2.8.0 (2026-01-16)
|
|
126
|
+
|
|
127
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
128
|
+
|
|
129
|
+
## 2.7.1 (2026-01-16)
|
|
130
|
+
|
|
131
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
132
|
+
|
|
133
|
+
## 2.7.0 (2026-01-15)
|
|
134
|
+
|
|
135
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
136
|
+
|
|
137
|
+
## 2.6.0 (2025-12-09)
|
|
138
|
+
|
|
139
|
+
### 🚀 Features
|
|
140
|
+
|
|
141
|
+
- plugin-flow-builder enable SmartIntents and add tests ([#469](https://github.com/metis-ai/hubtype-product/pull/469))
|
|
142
|
+
|
|
143
|
+
### ❤️ Thank You
|
|
144
|
+
|
|
145
|
+
- Oriol Raventós @Iru89
|
|
146
|
+
|
|
147
|
+
## 2.5.0 (2025-12-09)
|
|
148
|
+
|
|
149
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
150
|
+
|
|
151
|
+
## 2.4.1 (2025-12-08)
|
|
152
|
+
|
|
153
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
154
|
+
|
|
155
|
+
## 2.4.0 (2025-12-05)
|
|
156
|
+
|
|
157
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
158
|
+
|
|
159
|
+
## 2.3.3 (2025-12-04)
|
|
160
|
+
|
|
161
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
162
|
+
|
|
163
|
+
## 2.3.2 (2025-12-04)
|
|
164
|
+
|
|
165
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
166
|
+
|
|
167
|
+
## 2.3.1 (2025-12-04)
|
|
168
|
+
|
|
169
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
170
|
+
|
|
171
|
+
## 2.3.0 (2025-12-04)
|
|
172
|
+
|
|
173
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
174
|
+
|
|
175
|
+
## 2.2.1 (2025-12-04)
|
|
176
|
+
|
|
177
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
|
178
|
+
|
|
179
|
+
## 2.2.0 (2025-12-04)
|
|
180
|
+
|
|
181
|
+
### 🚀 Features
|
|
182
|
+
|
|
183
|
+
- add support for all whatsapp outputs in domain, factories and whatsapp flow content fields ([#434](https://github.com/metis-ai/hubtype-product/pull/434))
|
|
184
|
+
- fine tuning botonic release #BLT-2010 ([#428](https://github.com/metis-ai/hubtype-product/pull/428))
|
|
185
|
+
|
|
186
|
+
### ❤️ Thank You
|
|
187
|
+
|
|
188
|
+
- David Hidalgo @Davidhidalgo
|
|
189
|
+
- Marc Rabat @vanbasten17
|
|
190
|
+
|
|
191
|
+
## 2.1.0 (2025-12-02)
|
|
192
|
+
|
|
193
|
+
### 🚀 Features
|
|
194
|
+
|
|
195
|
+
- add support for all whatsapp outputs in domain, factories and whatsapp flow content fields ([#434](https://github.com/metis-ai/hubtype-product/pull/434))
|
|
196
|
+
- fine tuning botonic release #BLT-2010 ([#428](https://github.com/metis-ai/hubtype-product/pull/428))
|
|
197
|
+
|
|
198
|
+
### ❤️ Thank You
|
|
199
|
+
|
|
200
|
+
- David Hidalgo @Davidhidalgo
|
|
201
|
+
- Marc Rabat @vanbasten17
|
|
202
|
+
|
|
203
|
+
## 2.0.1-alpha.0 (2025-11-27)
|
|
204
|
+
|
|
205
|
+
This was a version bump only for @botonic/plugin-hubtype-analytics to align it with other projects, there were no code changes.
|
package/README.md
CHANGED
|
@@ -1,139 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# plugin-hubtype-analytics
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Building
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Run `nx build plugin-hubtype-analytics` to build the library.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Running unit tests
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
npm i @botonic/plugin-hubtype-analytics
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
2. Add it to the `src/plugins.js` file defining the projectId of the Project you want to use:
|
|
16
|
-
|
|
17
|
-
You can define two optional functions to obtain the language and the country.
|
|
18
|
-
By default if you do not define these functions it will use the language defined in request.session.user.extra_data.language and country defined in request.session.user.extra_data.country
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
export const plugins = [
|
|
22
|
-
{
|
|
23
|
-
id: 'hubtype-analytics',
|
|
24
|
-
resolve: require('@botonic/plugin-hubtype-analytics'),
|
|
25
|
-
options: {
|
|
26
|
-
getLaguange: (request: BotRequest) =>
|
|
27
|
-
request.session.user.extra_data.lang,
|
|
28
|
-
getCountry: (request: BotRequest) =>
|
|
29
|
-
request.session.user.extra_data.store,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
]
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Plugin Options
|
|
36
|
-
|
|
37
|
-
- **`getLaguange`**: getLaguange(request) function to define the language when it is not in request.session.user.extra_data.language
|
|
38
|
-
- **`getCountry`**: getCountry(request) function to define the country when it is not in request.session.user.extra_data.country
|
|
39
|
-
|
|
40
|
-
## Use
|
|
41
|
-
|
|
42
|
-
All events can be used in bot actions.
|
|
43
|
-
The following events can also be used from the frontend (webchat and webviews): EventFeedback, EventWebview, EventCustom
|
|
44
|
-
|
|
45
|
-
- To track the content displayed in a bot that is made with Flow Builder you can import the `trackFlowContent` function of the `@botonic/plugin-flow-builder`.
|
|
46
|
-
|
|
47
|
-
e.g. WelcomeAction that display start contents
|
|
48
|
-
|
|
49
|
-
```typescript
|
|
50
|
-
import { trackFlowContent } from '@botonic/plugin-flow-builder'
|
|
51
|
-
|
|
52
|
-
export class WelcomeAction extends FlowBuilderMultichannelAction {
|
|
53
|
-
static contextType = RequestContext
|
|
54
|
-
static async botonicInit(
|
|
55
|
-
request: BotRequest
|
|
56
|
-
): Promise<FlowBuilderActionProps> {
|
|
57
|
-
const flowBuilder = request.plugins.flowBuilder
|
|
58
|
-
const contents = await flowBuilder.getStartContents('es-ES')
|
|
59
|
-
trackFlowContent(request, contents)
|
|
60
|
-
return { contents }
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
- To track a handoff, you can use an instance of `HandOffBuilder` from `@botonic/core` `handoffBuilder.withBotEvent()` so that the backend will create the event after the handoff has been done correctly.
|
|
66
|
-
|
|
67
|
-
```typescript
|
|
68
|
-
const handOffBuilder = new HandOffBuilder(request.session)
|
|
69
|
-
handOffBuilder.withQueue(this.queue.id)
|
|
70
|
-
handOffBuilder.withBotEvent({
|
|
71
|
-
language: request.session.user.extra_data.language,
|
|
72
|
-
country: request.session.user.extra_data.country,
|
|
73
|
-
})
|
|
74
|
-
await handOffBuilder.handOff()
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
- To track a feedback given by the user after a handoff. If you add a free comment this field is only stored in hubtype DB and no other service will be used to store this sensitive data.
|
|
78
|
-
|
|
79
|
-
```typescript
|
|
80
|
-
const hubtypeAnalyticsPlugin = request.plugins.hubtypeAnalytics
|
|
81
|
-
const event = {
|
|
82
|
-
action: FeedbackAction.case,
|
|
83
|
-
data: {
|
|
84
|
-
feedbackTargetId: request.session.case_id,
|
|
85
|
-
feedbackGroupId: uuid(),
|
|
86
|
-
possibleOptions: ['*', '**', '***', '****', '*****'],
|
|
87
|
-
possibleValues: [1, 2, 3, 4, 5],
|
|
88
|
-
option: '**',
|
|
89
|
-
value: 2,
|
|
90
|
-
comment: 'free comment writen by the user',
|
|
91
|
-
},
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
try {
|
|
95
|
-
const response = await hubtypeAnalyticsPlugin.trackEvent(request, event)
|
|
96
|
-
console.log(response)
|
|
97
|
-
} catch (error) {
|
|
98
|
-
console.error(error)
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
- To track an event from a webview. In a webview you don't have the plugins initialised, we have to create an instance of `BotonicPluginHubtypeAnalytics`
|
|
103
|
-
|
|
104
|
-
```typescript
|
|
105
|
-
const hubtypeAnalytics = new BotonicPluginHubtypeAnalytics()
|
|
106
|
-
const event = {
|
|
107
|
-
action: EventAction.WebviewStep,
|
|
108
|
-
webviewThreadId,
|
|
109
|
-
webviewName,
|
|
110
|
-
webviewStepName,
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
try {
|
|
114
|
-
const response = await hubtypeAnalyticsPlugin.trackEvent(request, event)
|
|
115
|
-
console.log(response)
|
|
116
|
-
} catch (error) {
|
|
117
|
-
console.error(error)
|
|
118
|
-
}
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
- Finally, custom events can also be created. In a custom event you can track whatever you want but it is preferable not to use them too much.
|
|
122
|
-
|
|
123
|
-
```typescript
|
|
124
|
-
const hubtypeAnalytics = new BotonicPluginHubtypeAnalytics()
|
|
125
|
-
const event = {
|
|
126
|
-
action: EventAction.Custom,
|
|
127
|
-
customFields: {
|
|
128
|
-
paymentType: 'paypal',
|
|
129
|
-
bagsAdded: 3,
|
|
130
|
-
},
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
try {
|
|
134
|
-
const response = await hubtypeAnalyticsPlugin.trackEvent(request, event)
|
|
135
|
-
console.log(response)
|
|
136
|
-
} catch (error) {
|
|
137
|
-
console.error(error)
|
|
138
|
-
}
|
|
139
|
-
```
|
|
11
|
+
Run `nx test plugin-hubtype-analytics` to execute the unit tests via [Vitest](https://vitest.dev/).
|
package/package.json
CHANGED
|
@@ -1,44 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botonic/plugin-hubtype-analytics",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "rm -rf lib && ../../node_modules/.bin/tsc -p tsconfig.json && ../../node_modules/.bin/tsc -p tsconfig.esm.json",
|
|
9
|
-
"build:watch": "npm run build -- --watch",
|
|
10
|
-
"test": "../../node_modules/.bin/jest --coverage",
|
|
11
|
-
"prepublishOnly": "rm -rf lib && npm i && npm run build",
|
|
12
|
-
"lint": "biome check --write src/ tests/",
|
|
13
|
-
"lint:check": "biome check src/ tests/",
|
|
14
|
-
"format": "biome format --write src/ tests/"
|
|
15
|
-
},
|
|
3
|
+
"version": "2.23.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"module": "./src/index.js",
|
|
6
|
+
"types": "./src/index.d.ts",
|
|
16
7
|
"dependencies": {
|
|
17
|
-
"
|
|
18
|
-
"@botonic/
|
|
19
|
-
"axios": "^1.13.6"
|
|
20
|
-
},
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@types/node": "^20.11.17"
|
|
8
|
+
"tslib": "^2.3.0",
|
|
9
|
+
"@botonic/shared": "2.23.0"
|
|
23
10
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"README.md"
|
|
11
|
+
"references": [
|
|
12
|
+
{
|
|
13
|
+
"path": "../core/tsconfig.lib.json"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "../shared/tsconfig.lib.json"
|
|
17
|
+
}
|
|
32
18
|
],
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"chatbot",
|
|
39
|
-
"conversational-app",
|
|
40
|
-
"conversational-ui",
|
|
41
|
-
"javascript",
|
|
42
|
-
"typescript"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"main": "./src/index.js"
|
|
23
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
package/src/index.js
ADDED
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/botonic/plugin-hubtype-analytics/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventAiAgent, RequestData } from '../types';
|
|
3
3
|
interface ToolExecutionEventArgs {
|
|
4
4
|
tool_name: string;
|
|
5
|
-
tool_arguments: Record<string,
|
|
6
|
-
tool_results?: string;
|
|
5
|
+
tool_arguments: Record<string, any>;
|
|
7
6
|
knowledgebase_sources_ids?: string[];
|
|
8
7
|
knowledgebase_chunks_ids?: string[];
|
|
9
8
|
}
|
|
@@ -22,7 +21,6 @@ export declare class HtEventAiAgent extends HtEvent {
|
|
|
22
21
|
exit: boolean;
|
|
23
22
|
error: boolean;
|
|
24
23
|
constructor(event: EventAiAgent, requestData: RequestData);
|
|
25
|
-
private truncateToolResults;
|
|
26
24
|
private getToolExecutionInfo;
|
|
27
25
|
}
|
|
28
26
|
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventAction, EventType } from '../types';
|
|
3
|
+
export class HtEventAiAgent extends HtEvent {
|
|
4
|
+
constructor(event, requestData) {
|
|
5
|
+
super(event, requestData);
|
|
6
|
+
this.type = EventType.BotEvent;
|
|
7
|
+
this.action = EventAction.AiAgent;
|
|
8
|
+
this.flow_thread_id = event.flowThreadId;
|
|
9
|
+
this.flow_id = event.flowId;
|
|
10
|
+
this.flow_name = event.flowName;
|
|
11
|
+
this.flow_node_id = event.flowNodeId;
|
|
12
|
+
this.flow_node_content_id = event.flowNodeContentId;
|
|
13
|
+
this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
|
|
14
|
+
this.tools_executed = event.toolsExecuted.map(this.getToolExecutionInfo);
|
|
15
|
+
this.memory_length = event.memoryLength;
|
|
16
|
+
this.input_message_id = event.inputMessageId;
|
|
17
|
+
this.input_guardrails_triggered = event.inputGuardrailsTriggered;
|
|
18
|
+
this.output_guardrails_triggered = event.outputGuardrailsTriggered;
|
|
19
|
+
this.exit = event.exit;
|
|
20
|
+
this.error = event.error;
|
|
21
|
+
}
|
|
22
|
+
getToolExecutionInfo(toolExecution) {
|
|
23
|
+
const knowledgeBaseArgs = {};
|
|
24
|
+
if (toolExecution.knowledgebaseSourcesIds) {
|
|
25
|
+
knowledgeBaseArgs.knowledgebase_sources_ids =
|
|
26
|
+
toolExecution.knowledgebaseSourcesIds;
|
|
27
|
+
}
|
|
28
|
+
if (toolExecution.knowledgebaseChunksIds) {
|
|
29
|
+
knowledgeBaseArgs.knowledgebase_chunks_ids =
|
|
30
|
+
toolExecution.knowledgebaseChunksIds;
|
|
31
|
+
}
|
|
32
|
+
return Object.assign({ tool_name: toolExecution.toolName, tool_arguments: toolExecution.toolArguments }, knowledgeBaseArgs);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=ht-event-ai-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ht-event-ai-agent.js","sourceRoot":"","sources":["../../../../../../../../libs/botonic/plugin-hubtype-analytics/src/lib/event-models/bot/ht-event-ai-agent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAgB,SAAS,EAAe,MAAM,UAAU,CAAA;AAS5E,MAAM,OAAO,cAAe,SAAQ,OAAO;IAezC,YAAY,KAAmB,EAAE,WAAwB;QACvD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,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,oBAAoB,CAAC,CAAA;QACxE,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,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,uBACE,SAAS,EAAE,aAAa,CAAC,QAAQ,EACjC,cAAc,EAAE,aAAa,CAAC,aAAa,IACxC,iBAAiB,EACrB;IACH,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventBotAction, RequestData } from '../types';
|
|
3
3
|
export declare class HtEventBotAction extends HtEvent {
|
|
4
4
|
flow_thread_id: string;
|
|
5
5
|
flow_id: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventAction, EventType } from '../types';
|
|
3
|
+
export class HtEventBotAction extends HtEvent {
|
|
4
|
+
constructor(event, requestData) {
|
|
5
|
+
super(event, requestData);
|
|
6
|
+
this.type = EventType.BotEvent;
|
|
7
|
+
this.action = EventAction.BotAction;
|
|
8
|
+
this.flow_thread_id = event.flowThreadId;
|
|
9
|
+
this.flow_id = event.flowId;
|
|
10
|
+
this.flow_name = event.flowName;
|
|
11
|
+
this.flow_node_id = event.flowNodeId;
|
|
12
|
+
this.flow_node_content_id = event.flowNodeContentId;
|
|
13
|
+
this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
|
|
14
|
+
this.payload = event.payload;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ht-event-bot-action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ht-event-bot-action.js","sourceRoot":"","sources":["../../../../../../../../libs/botonic/plugin-hubtype-analytics/src/lib/event-models/bot/ht-event-bot-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAkB,SAAS,EAAe,MAAM,UAAU,CAAA;AAE9E,MAAM,OAAO,gBAAiB,SAAQ,OAAO;IAS3C,YAAY,KAAqB,EAAE,WAAwB;QACzD,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventCaptureUserInput, RequestData } from '../types';
|
|
3
3
|
export declare class HtEventCaptureUserInput extends HtEvent {
|
|
4
4
|
flow_id: string;
|
|
5
5
|
flow_name: string;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
const ht_event_1 = require("./ht-event");
|
|
6
|
-
class HtEventCaptureUserInput extends ht_event_1.HtEvent {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventAction, EventType, } from '../types';
|
|
3
|
+
export class HtEventCaptureUserInput extends HtEvent {
|
|
7
4
|
constructor(event, requestData) {
|
|
8
5
|
super(event, requestData);
|
|
9
|
-
this.type =
|
|
10
|
-
this.action =
|
|
6
|
+
this.type = EventType.BotEvent;
|
|
7
|
+
this.action = EventAction.CaptureUserInput;
|
|
11
8
|
this.flow_id = event.flowId;
|
|
12
9
|
this.flow_name = event.flowName;
|
|
13
10
|
this.flow_node_id = event.flowNodeId;
|
|
@@ -20,5 +17,4 @@ class HtEventCaptureUserInput extends ht_event_1.HtEvent {
|
|
|
20
17
|
this.message_id = event.messageId;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
exports.HtEventCaptureUserInput = HtEventCaptureUserInput;
|
|
24
20
|
//# sourceMappingURL=ht-event-capture-user-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ht-event-capture-user-input.js","sourceRoot":"","sources":["../../../../../../../../libs/botonic/plugin-hubtype-analytics/src/lib/event-models/bot/ht-event-capture-user-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EACL,WAAW,EAEX,SAAS,GAEV,MAAM,UAAU,CAAA;AAEjB,MAAM,OAAO,uBAAwB,SAAQ,OAAO;IAYlD,YAAY,KAA4B,EAAE,WAAwB;QAChE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventConditionalChannel, RequestData } from '../types';
|
|
3
3
|
export declare class HtEventConditionalChannel extends HtEvent {
|
|
4
4
|
flow_thread_id: string;
|
|
5
5
|
flow_id: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventAction, EventType, } from '../types';
|
|
3
|
+
export class HtEventConditionalChannel extends HtEvent {
|
|
4
|
+
constructor(event, requestData) {
|
|
5
|
+
super(event, requestData);
|
|
6
|
+
this.type = EventType.BotEvent;
|
|
7
|
+
this.action = EventAction.ConditionalChannel;
|
|
8
|
+
this.flow_thread_id = event.flowThreadId;
|
|
9
|
+
this.flow_id = event.flowId;
|
|
10
|
+
this.flow_name = event.flowName;
|
|
11
|
+
this.flow_node_id = event.flowNodeId;
|
|
12
|
+
this.flow_node_content_id = event.flowNodeContentId;
|
|
13
|
+
this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
|
|
14
|
+
this.channel = event.channel;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ht-event-conditional-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ht-event-conditional-channel.js","sourceRoot":"","sources":["../../../../../../../../libs/botonic/plugin-hubtype-analytics/src/lib/event-models/bot/ht-event-conditional-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EACL,WAAW,EAEX,SAAS,GAEV,MAAM,UAAU,CAAA;AAEjB,MAAM,OAAO,yBAA0B,SAAQ,OAAO;IASpD,YAAY,KAA8B,EAAE,WAAwB;QAClE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventConditionalCountry, RequestData } from '../types';
|
|
3
3
|
export declare class HtEventConditionalCountry extends HtEvent {
|
|
4
4
|
flow_thread_id: string;
|
|
5
5
|
flow_id: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventAction, EventType, } from '../types';
|
|
3
|
+
export class HtEventConditionalCountry extends HtEvent {
|
|
4
|
+
constructor(event, requestData) {
|
|
5
|
+
super(event, requestData);
|
|
6
|
+
this.type = EventType.BotEvent;
|
|
7
|
+
this.action = EventAction.ConditionalCountry;
|
|
8
|
+
this.flow_thread_id = event.flowThreadId;
|
|
9
|
+
this.flow_id = event.flowId;
|
|
10
|
+
this.flow_name = event.flowName;
|
|
11
|
+
this.flow_node_id = event.flowNodeId;
|
|
12
|
+
this.flow_node_content_id = event.flowNodeContentId;
|
|
13
|
+
this.flow_node_is_meaningful = event.flowNodeIsMeaningful;
|
|
14
|
+
this.country = event.country;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ht-event-conditional-country.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ht-event-conditional-country.js","sourceRoot":"","sources":["../../../../../../../../libs/botonic/plugin-hubtype-analytics/src/lib/event-models/bot/ht-event-conditional-country.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EACL,WAAW,EAEX,SAAS,GAEV,MAAM,UAAU,CAAA;AAEjB,MAAM,OAAO,yBAA0B,SAAQ,OAAO;IASpD,YAAY,KAA8B,EAAE,WAAwB;QAClE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;QACzB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,WAAW,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HtEvent } from '../ht-event';
|
|
2
|
+
import { EventConditionalCustom, RequestData } from '../types';
|
|
3
3
|
export declare class HtEventConditionalCustom extends HtEvent {
|
|
4
4
|
flow_thread_id: string;
|
|
5
5
|
flow_id: string;
|