@dawntech/dwntbots-services 0.0.90 → 0.0.92

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 (187) hide show
  1. package/package.json +14 -9
  2. package/src/lib/blip/BlipBuilder/BlipBuilderTranspilation.js +4 -2
  3. package/src/lib/blip/BlipBuilder/BlipBuilderTranspilation.js.map +1 -1
  4. package/src/lib/blip/BlipBuilder/features/Feature.js.map +1 -1
  5. package/src/lib/blip/BlipBuilder/features/InactivityFeature.js +1 -1
  6. package/src/lib/blip/BlipBuilder/features/InactivityFeature.js.map +1 -1
  7. package/src/lib/blip/BlipBuilder/features/PositionFeature.js +2 -2
  8. package/src/lib/blip/BlipBuilder/features/PositionFeature.js.map +1 -1
  9. package/src/lib/blip/BlipBuilder/features/SDKFeature.js +12 -9
  10. package/src/lib/blip/BlipBuilder/features/SDKFeature.js.map +1 -1
  11. package/src/lib/blip/BlipBuilder/features/actions/entrypoint.js +1 -1
  12. package/src/lib/blip/BlipBuilder/features/actions/entrypoint.js.map +1 -1
  13. package/src/lib/blip/BlipBuilder/features/actions/fallback.d.ts +2 -2
  14. package/src/lib/blip/BlipBuilder/features/actions/fallback.js +12 -25
  15. package/src/lib/blip/BlipBuilder/features/actions/fallback.js.map +1 -1
  16. package/src/lib/blip/BlipBuilder/features/actions/global.d.ts +1 -1
  17. package/src/lib/blip/BlipBuilder/features/actions/global.js +9 -17
  18. package/src/lib/blip/BlipBuilder/features/actions/global.js.map +1 -1
  19. package/src/lib/blip/BlipBuilder/features/actions/onboarding.js +1 -1
  20. package/src/lib/blip/BlipBuilder/features/actions/onboarding.js.map +1 -1
  21. package/src/lib/blip/BlipBuilder/index.d.ts +3 -3
  22. package/src/lib/blip/BlipBuilder/index.js +2 -3
  23. package/src/lib/blip/BlipBuilder/index.js.map +1 -1
  24. package/src/lib/blip/BlipBuilder/models/_base.js +3 -3
  25. package/src/lib/blip/BlipBuilder/models/_base.js.map +1 -1
  26. package/src/lib/blip/BlipBuilder/models/base.js +3 -3
  27. package/src/lib/blip/BlipBuilder/models/base.js.map +1 -1
  28. package/src/lib/blip/BlipBuilder/models/navigation.js.map +1 -1
  29. package/src/lib/blip/BlipBuilder/models/tags.js +1 -1
  30. package/src/lib/blip/BlipBuilder/models/tags.js.map +1 -1
  31. package/src/lib/blip/BlipBuilder/utils.d.ts +1 -1
  32. package/src/lib/blip/BlipBuilder/utils.js.map +1 -1
  33. package/src/lib/blip/BlipService.d.ts +21 -4
  34. package/src/lib/blip/BlipService.js +161 -22
  35. package/src/lib/blip/BlipService.js.map +1 -1
  36. package/src/lib/blip/BlipTransport.d.ts +1 -0
  37. package/src/lib/blip/BlipTransport.js +16 -4
  38. package/src/lib/blip/BlipTransport.js.map +1 -1
  39. package/src/lib/blip/{BlipBuilder/BlipBotDiff.d.ts → BotDiff/BotDiff.d.ts} +24 -11
  40. package/src/lib/blip/{BlipBuilder/BlipBotDiff.js → BotDiff/BotDiff.js} +57 -23
  41. package/src/lib/blip/BotDiff/BotDiff.js.map +1 -0
  42. package/src/lib/blip/BotDiff/index.d.ts +2 -0
  43. package/src/lib/blip/BotDiff/index.js +8 -0
  44. package/src/lib/blip/BotDiff/index.js.map +1 -0
  45. package/src/lib/blip/{BlipBuilder → BuilderSanitize}/BlipBuilderSanitize.d.ts +1 -0
  46. package/src/lib/blip/{BlipBuilder → BuilderSanitize}/BlipBuilderSanitize.js +16 -10
  47. package/src/lib/blip/BuilderSanitize/BlipBuilderSanitize.js.map +1 -0
  48. package/src/lib/blip/BuilderSanitize/index.d.ts +1 -0
  49. package/src/lib/blip/BuilderSanitize/index.js +18 -0
  50. package/src/lib/blip/BuilderSanitize/index.js.map +1 -0
  51. package/src/lib/blip/DwnGridCompiler/BlipBuilder.d.ts +96 -0
  52. package/src/lib/blip/DwnGridCompiler/BlipBuilder.js +443 -0
  53. package/src/lib/blip/DwnGridCompiler/BlipBuilder.js.map +1 -0
  54. package/src/lib/blip/DwnGridCompiler/DwnGridCompiler.d.ts +61 -0
  55. package/src/lib/blip/DwnGridCompiler/DwnGridCompiler.js +255 -0
  56. package/src/lib/blip/DwnGridCompiler/DwnGridCompiler.js.map +1 -0
  57. package/src/lib/blip/DwnGridCompiler/ExecutionLogger.d.ts +24 -0
  58. package/src/lib/blip/DwnGridCompiler/ExecutionLogger.js +48 -0
  59. package/src/lib/blip/DwnGridCompiler/ExecutionLogger.js.map +1 -0
  60. package/src/lib/blip/DwnGridCompiler/features/CoreFeature.d.ts +65 -0
  61. package/src/lib/blip/DwnGridCompiler/features/CoreFeature.js +408 -0
  62. package/src/lib/blip/DwnGridCompiler/features/CoreFeature.js.map +1 -0
  63. package/src/lib/blip/DwnGridCompiler/features/Feature.d.ts +149 -0
  64. package/src/lib/blip/DwnGridCompiler/features/Feature.js +160 -0
  65. package/src/lib/blip/DwnGridCompiler/features/Feature.js.map +1 -0
  66. package/src/lib/blip/DwnGridCompiler/features/InactivityFeature.d.ts +13 -0
  67. package/src/lib/blip/DwnGridCompiler/features/InactivityFeature.js +56 -0
  68. package/src/lib/blip/DwnGridCompiler/features/InactivityFeature.js.map +1 -0
  69. package/src/lib/blip/DwnGridCompiler/features/LinterFeature.d.ts +38 -0
  70. package/src/lib/blip/DwnGridCompiler/features/LinterFeature.js +77 -0
  71. package/src/lib/blip/DwnGridCompiler/features/LinterFeature.js.map +1 -0
  72. package/src/lib/blip/DwnGridCompiler/features/ScriptsFeature.d.ts +14 -0
  73. package/src/lib/blip/DwnGridCompiler/features/ScriptsFeature.js +46 -0
  74. package/src/lib/blip/DwnGridCompiler/features/ScriptsFeature.js.map +1 -0
  75. package/src/lib/blip/DwnGridCompiler/features/TagsFeature.d.ts +30 -0
  76. package/src/lib/blip/DwnGridCompiler/features/TagsFeature.js +221 -0
  77. package/src/lib/blip/DwnGridCompiler/features/TagsFeature.js.map +1 -0
  78. package/src/lib/blip/DwnGridCompiler/features/TemplatesFeature.d.ts +14 -0
  79. package/src/lib/blip/DwnGridCompiler/features/TemplatesFeature.js +31 -0
  80. package/src/lib/blip/DwnGridCompiler/features/TemplatesFeature.js.map +1 -0
  81. package/src/lib/blip/DwnGridCompiler/features/entities/conditions.d.ts +2 -0
  82. package/src/lib/blip/DwnGridCompiler/features/entities/conditions.js +45 -0
  83. package/src/lib/blip/DwnGridCompiler/features/entities/conditions.js.map +1 -0
  84. package/src/lib/blip/DwnGridCompiler/features/entities/contact.d.ts +5 -0
  85. package/src/lib/blip/DwnGridCompiler/features/entities/contact.js +112 -0
  86. package/src/lib/blip/DwnGridCompiler/features/entities/contact.js.map +1 -0
  87. package/src/lib/blip/DwnGridCompiler/features/entities/content.d.ts +7 -0
  88. package/src/lib/blip/DwnGridCompiler/features/entities/content.js +183 -0
  89. package/src/lib/blip/DwnGridCompiler/features/entities/content.js.map +1 -0
  90. package/src/lib/blip/DwnGridCompiler/features/entities/events.d.ts +21 -0
  91. package/src/lib/blip/DwnGridCompiler/features/entities/events.js +827 -0
  92. package/src/lib/blip/DwnGridCompiler/features/entities/events.js.map +1 -0
  93. package/src/lib/blip/DwnGridCompiler/features/entities/redirect.d.ts +3 -0
  94. package/src/lib/blip/DwnGridCompiler/features/entities/redirect.js +77 -0
  95. package/src/lib/blip/DwnGridCompiler/features/entities/redirect.js.map +1 -0
  96. package/src/lib/blip/DwnGridCompiler/features/entities/scripts.d.ts +14 -0
  97. package/src/lib/blip/DwnGridCompiler/features/entities/scripts.js +292 -0
  98. package/src/lib/blip/DwnGridCompiler/features/entities/scripts.js.map +1 -0
  99. package/src/lib/blip/DwnGridCompiler/features/index.d.ts +8 -0
  100. package/src/lib/blip/DwnGridCompiler/features/index.js +67 -0
  101. package/src/lib/blip/DwnGridCompiler/features/index.js.map +1 -0
  102. package/src/lib/blip/DwnGridCompiler/features/scripts/__definitions.d.ts +830 -0
  103. package/src/lib/blip/DwnGridCompiler/features/scripts/__definitions.js +364 -0
  104. package/src/lib/blip/DwnGridCompiler/features/scripts/__definitions.js.map +1 -0
  105. package/src/lib/blip/DwnGridCompiler/features/scripts/__scripts.template.d.ts +14 -0
  106. package/src/lib/blip/DwnGridCompiler/features/scripts/__scripts.template.js +292 -0
  107. package/src/lib/blip/DwnGridCompiler/features/scripts/__scripts.template.js.map +1 -0
  108. package/src/lib/blip/DwnGridCompiler/features/scripts/_bindings.d.ts +24 -0
  109. package/src/lib/blip/DwnGridCompiler/features/scripts/_bindings.js +25 -0
  110. package/src/lib/blip/DwnGridCompiler/features/scripts/_bindings.js.map +1 -0
  111. package/src/lib/blip/DwnGridCompiler/features/scripts/_build.d.ts +2 -0
  112. package/src/lib/blip/DwnGridCompiler/features/scripts/_build.js +8 -0
  113. package/src/lib/blip/DwnGridCompiler/features/scripts/_build.js.map +1 -0
  114. package/src/lib/blip/DwnGridCompiler/features/scripts/_types.d.ts +14 -0
  115. package/src/lib/blip/DwnGridCompiler/features/scripts/_types.js +3 -0
  116. package/src/lib/blip/DwnGridCompiler/features/scripts/_types.js.map +1 -0
  117. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_error_message.d.ts +1 -0
  118. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_error_message.js +46 -0
  119. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_error_message.js.map +1 -0
  120. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_fallback_create.d.ts +1 -0
  121. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_fallback_create.js +178 -0
  122. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_fallback_create.js.map +1 -0
  123. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_fallback_process.d.ts +1 -0
  124. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_fallback_process.js +225 -0
  125. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_fallback_process.js.map +1 -0
  126. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_config_pt_br.d.ts +19 -0
  127. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_config_pt_br.js +165 -0
  128. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_config_pt_br.js.map +1 -0
  129. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_core.d.ts +1 -0
  130. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_core.js +411 -0
  131. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_core.js.map +1 -0
  132. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_dwn.d.ts +1 -0
  133. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_dwn.js +1195 -0
  134. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_gactions_dwn.js.map +1 -0
  135. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_onboarding_reset.d.ts +1 -0
  136. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_onboarding_reset.js +109 -0
  137. package/src/lib/blip/DwnGridCompiler/features/scripts/grid_onboarding_reset.js.map +1 -0
  138. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_console.d.ts +29 -0
  139. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_console.js +61 -0
  140. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_console.js.map +1 -0
  141. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_datetime.d.ts +5 -0
  142. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_datetime.js +24 -0
  143. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_datetime.js.map +1 -0
  144. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_enforcesate.d.ts +2 -0
  145. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_enforcesate.js +28 -0
  146. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_enforcesate.js.map +1 -0
  147. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_http.d.ts +139 -0
  148. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_http.js +270 -0
  149. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_http.js.map +1 -0
  150. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_kebabcase.d.ts +1 -0
  151. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_kebabcase.js +16 -0
  152. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_kebabcase.js.map +1 -0
  153. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_merge.d.ts +1 -0
  154. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_merge.js +64 -0
  155. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_merge.js.map +1 -0
  156. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_script.d.ts +2 -0
  157. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_script.js +148 -0
  158. package/src/lib/blip/DwnGridCompiler/features/scripts/libs_script.js.map +1 -0
  159. package/src/lib/blip/DwnGridCompiler/features/scripts/template_intent.d.ts +1 -0
  160. package/src/lib/blip/DwnGridCompiler/features/scripts/template_intent.js +148 -0
  161. package/src/lib/blip/DwnGridCompiler/features/scripts/template_intent.js.map +1 -0
  162. package/src/lib/blip/DwnGridCompiler/features/scripts/template_prepare.d.ts +33 -0
  163. package/src/lib/blip/DwnGridCompiler/features/scripts/template_prepare.js +165 -0
  164. package/src/lib/blip/DwnGridCompiler/features/scripts/template_prepare.js.map +1 -0
  165. package/src/lib/blip/DwnGridCompiler/features/scripts/template_script_basic.d.ts +1 -0
  166. package/src/lib/blip/DwnGridCompiler/features/scripts/template_script_basic.js +31 -0
  167. package/src/lib/blip/DwnGridCompiler/features/scripts/template_script_basic.js.map +1 -0
  168. package/src/lib/blip/DwnGridCompiler/features/scripts/template_script_complete.d.ts +1 -0
  169. package/src/lib/blip/DwnGridCompiler/features/scripts/template_script_complete.js +31 -0
  170. package/src/lib/blip/DwnGridCompiler/features/scripts/template_script_complete.js.map +1 -0
  171. package/src/lib/blip/DwnGridCompiler/index.d.ts +1 -0
  172. package/src/lib/blip/DwnGridCompiler/index.js +18 -0
  173. package/src/lib/blip/DwnGridCompiler/index.js.map +1 -0
  174. package/src/lib/blip/WhatsAppBlipService.js +0 -2
  175. package/src/lib/blip/WhatsAppBlipService.js.map +1 -1
  176. package/src/lib/new-relic/NewRelicIngest.d.ts +17 -4
  177. package/src/lib/new-relic/NewRelicIngest.js +2 -0
  178. package/src/lib/new-relic/NewRelicIngest.js.map +1 -1
  179. package/src/lib/storage/Driver.js +1 -1
  180. package/src/lib/storage/Driver.js.map +1 -1
  181. package/src/lib/storage/ScopedStorage.js.map +1 -1
  182. package/src/lib/whatsapp-flow/index.js.map +1 -1
  183. package/src/lib/blip/BlipBuilder/BlipBotDiff.js.map +0 -1
  184. package/src/lib/blip/BlipBuilder/BlipBuilderSanitize.js.map +0 -1
  185. package/src/lib/blip/BlipBuilder/BlipBuilderTranspile.d.ts +0 -49
  186. package/src/lib/blip/BlipBuilder/BlipBuilderTranspile.js +0 -317
  187. package/src/lib/blip/BlipBuilder/BlipBuilderTranspile.js.map +0 -1
@@ -0,0 +1,827 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.trackConfigIntentList = exports.trackConfigIntents = exports.trackStackIntentsList = exports.trackStackIntents = exports.trackInactivity = exports.trackPrepareIntentsUnmatchedList = exports.trackPrepareIntentsList = exports.trackPrepareIntentsGlobalUnexpected = exports.trackPrepareIntentsWithUnexpected = exports.trackPrepareIntents = exports.trackBubbledErrors = exports.trackFinalizationStatus = exports.trackErrorsByTypeListNoUnexpected = exports.trackErrorsByTypeList = exports.trackErrorsByTypeLocalNoUnexpected = exports.trackErrorsByTypeGlobalNoUnexpected = exports.trackErrorsByTypeLocal = exports.trackErrorsByTypeGlobal = exports.trackContactHour = exports.trackContactSessions = void 0;
4
+ const Feature_1 = require("../Feature");
5
+ // --- ONBOARDING (2)
6
+ const trackContactSessions = ($id) => {
7
+ return {
8
+ $id,
9
+ $typeOfContent: "",
10
+ type: "TrackEvent",
11
+ $title: "DWN Contact Sessions",
12
+ settings: {
13
+ extras: {
14
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
15
+ },
16
+ category: "dwn-contact-sessions",
17
+ action: `{{${Feature_1.Feature.VARIABLES.CORE}@sessions}}`,
18
+ },
19
+ conditions: [
20
+ {
21
+ values: [],
22
+ source: "context",
23
+ comparison: "exists",
24
+ variable: `${Feature_1.Feature.VARIABLES.CORE}@sessions`,
25
+ },
26
+ {
27
+ values: [],
28
+ source: "context",
29
+ comparison: "exists",
30
+ variable: `${Feature_1.Feature.VARIABLES.CORE}@main`,
31
+ },
32
+ ],
33
+ };
34
+ };
35
+ exports.trackContactSessions = trackContactSessions;
36
+ const trackContactHour = ($id) => {
37
+ return {
38
+ $id,
39
+ $typeOfContent: "",
40
+ type: "TrackEvent",
41
+ $title: "DWN Contact Hour",
42
+ settings: {
43
+ extras: {
44
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
45
+ },
46
+ category: `dwn-{{${Feature_1.Feature.VARIABLES.CORE}@service}}-contact-hour`,
47
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@calendar.hour}}`,
48
+ },
49
+ conditions: [
50
+ {
51
+ values: [],
52
+ source: "context",
53
+ comparison: "exists",
54
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@calendar.hour`,
55
+ },
56
+ ],
57
+ };
58
+ };
59
+ exports.trackContactHour = trackContactHour;
60
+ // --- FALLBACK (7)
61
+ const trackErrorsByTypeGlobal = ($id) => {
62
+ return {
63
+ $id,
64
+ $typeOfContent: "",
65
+ type: "TrackEvent",
66
+ $title: "DWN Global errors by type",
67
+ settings: {
68
+ extras: {
69
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
70
+ },
71
+ category: `dwn-global-errors-by-type`,
72
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@error.type}}`,
73
+ },
74
+ conditions: [
75
+ {
76
+ values: [],
77
+ source: "context",
78
+ comparison: "notExists",
79
+ variable: Feature_1.Feature.VARIABLES.ERROR,
80
+ },
81
+ {
82
+ values: [],
83
+ source: "context",
84
+ comparison: "exists",
85
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
86
+ },
87
+ {
88
+ values: [],
89
+ source: "context",
90
+ comparison: "exists",
91
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
92
+ },
93
+ ],
94
+ };
95
+ };
96
+ exports.trackErrorsByTypeGlobal = trackErrorsByTypeGlobal;
97
+ const trackErrorsByTypeLocal = ($id) => {
98
+ return {
99
+ $id,
100
+ $typeOfContent: "",
101
+ type: "TrackEvent",
102
+ $title: "DWN Local errors by type",
103
+ settings: {
104
+ extras: {
105
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
106
+ },
107
+ category: `dwn-{{${Feature_1.Feature.VARIABLES.CORE}@service}}-errors-by-type`,
108
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@error.type}}`,
109
+ },
110
+ conditions: [
111
+ {
112
+ values: [],
113
+ source: "context",
114
+ comparison: "notExists",
115
+ variable: Feature_1.Feature.VARIABLES.ERROR,
116
+ },
117
+ {
118
+ values: [],
119
+ source: "context",
120
+ comparison: "exists",
121
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
122
+ },
123
+ {
124
+ values: [],
125
+ source: "context",
126
+ comparison: "exists",
127
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
128
+ },
129
+ ],
130
+ };
131
+ };
132
+ exports.trackErrorsByTypeLocal = trackErrorsByTypeLocal;
133
+ const trackErrorsByTypeGlobalNoUnexpected = ($id) => {
134
+ return {
135
+ $id,
136
+ $typeOfContent: "",
137
+ type: "TrackEvent",
138
+ $title: "DWN Global errors by type excluding unexpected",
139
+ settings: {
140
+ extras: {
141
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
142
+ },
143
+ category: `dwn-global-errors-by-type-no-unexpected`,
144
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@error.type}}`,
145
+ },
146
+ conditions: [
147
+ {
148
+ values: [],
149
+ source: "context",
150
+ comparison: "notExists",
151
+ variable: Feature_1.Feature.VARIABLES.ERROR,
152
+ },
153
+ {
154
+ values: [],
155
+ source: "context",
156
+ comparison: "exists",
157
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
158
+ },
159
+ {
160
+ values: [],
161
+ source: "context",
162
+ comparison: "exists",
163
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
164
+ },
165
+ {
166
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.UNEXPECTED_INPUT],
167
+ source: "context",
168
+ comparison: "notEquals",
169
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
170
+ },
171
+ {
172
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.UNEXPECTED_OPTION],
173
+ source: "context",
174
+ comparison: "notEquals",
175
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
176
+ },
177
+ {
178
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.INTENT],
179
+ source: "context",
180
+ comparison: "notEquals",
181
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
182
+ },
183
+ ],
184
+ };
185
+ };
186
+ exports.trackErrorsByTypeGlobalNoUnexpected = trackErrorsByTypeGlobalNoUnexpected;
187
+ const trackErrorsByTypeLocalNoUnexpected = ($id) => {
188
+ return {
189
+ $id,
190
+ $typeOfContent: "",
191
+ type: "TrackEvent",
192
+ $title: "DWN Local errors by type excluding unexpected",
193
+ settings: {
194
+ extras: {
195
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
196
+ },
197
+ category: `dwn-{{${Feature_1.Feature.VARIABLES.CORE}@service}}-errors-by-type-no-unexpected`,
198
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@error.type}}`,
199
+ },
200
+ conditions: [
201
+ {
202
+ values: [],
203
+ source: "context",
204
+ comparison: "notExists",
205
+ variable: Feature_1.Feature.VARIABLES.ERROR,
206
+ },
207
+ {
208
+ values: [],
209
+ source: "context",
210
+ comparison: "exists",
211
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
212
+ },
213
+ {
214
+ values: [],
215
+ source: "context",
216
+ comparison: "exists",
217
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
218
+ },
219
+ {
220
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.UNEXPECTED_INPUT],
221
+ source: "context",
222
+ comparison: "notEquals",
223
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
224
+ },
225
+ {
226
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.UNEXPECTED_OPTION],
227
+ source: "context",
228
+ comparison: "notEquals",
229
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
230
+ },
231
+ {
232
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.INTENT],
233
+ source: "context",
234
+ comparison: "notEquals",
235
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
236
+ },
237
+ ],
238
+ };
239
+ };
240
+ exports.trackErrorsByTypeLocalNoUnexpected = trackErrorsByTypeLocalNoUnexpected;
241
+ const trackErrorsByTypeList = ($id) => {
242
+ const list = [
243
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.at}}`,
244
+ `{{contact.identity}}`,
245
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.type}}`,
246
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.state.id}}`,
247
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.state.service}}`,
248
+ ];
249
+ return {
250
+ $id,
251
+ $typeOfContent: "",
252
+ type: "TrackEvent",
253
+ $title: "DWN Global errors by type list",
254
+ settings: {
255
+ extras: {
256
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
257
+ },
258
+ category: `dwn-errors-by-type-list`,
259
+ action: list.join(" | "),
260
+ },
261
+ conditions: [
262
+ {
263
+ values: [],
264
+ source: "context",
265
+ comparison: "notExists",
266
+ variable: Feature_1.Feature.VARIABLES.ERROR,
267
+ },
268
+ {
269
+ values: [],
270
+ source: "context",
271
+ comparison: "exists",
272
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
273
+ },
274
+ ],
275
+ };
276
+ };
277
+ exports.trackErrorsByTypeList = trackErrorsByTypeList;
278
+ const trackErrorsByTypeListNoUnexpected = ($id) => {
279
+ const list = [
280
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.at}}`,
281
+ `{{contact.identity}}`,
282
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.state.id}}`,
283
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.state.service}}`,
284
+ `{{${Feature_1.Feature.VARIABLES.DWN}@error.stack}}`,
285
+ ];
286
+ return {
287
+ $id,
288
+ $typeOfContent: "",
289
+ type: "TrackEvent",
290
+ $title: "DWN Global errors by type excluding unexpected list",
291
+ settings: {
292
+ extras: {
293
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
294
+ },
295
+ category: `dwn-errors-by-type-list-no-unexpected`,
296
+ action: list.join(" | "),
297
+ },
298
+ conditions: [
299
+ {
300
+ values: [],
301
+ source: "context",
302
+ comparison: "notExists",
303
+ variable: Feature_1.Feature.VARIABLES.ERROR,
304
+ },
305
+ {
306
+ values: [],
307
+ source: "context",
308
+ comparison: "exists",
309
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
310
+ },
311
+ {
312
+ values: [],
313
+ source: "context",
314
+ comparison: "exists",
315
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
316
+ },
317
+ {
318
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.UNEXPECTED_INPUT],
319
+ source: "context",
320
+ comparison: "notEquals",
321
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
322
+ },
323
+ {
324
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.UNEXPECTED_OPTION],
325
+ source: "context",
326
+ comparison: "notEquals",
327
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
328
+ },
329
+ {
330
+ values: [Feature_1.Feature.PREDEFINED_ERRORS.INTENT],
331
+ source: "context",
332
+ comparison: "notEquals",
333
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
334
+ },
335
+ ],
336
+ };
337
+ };
338
+ exports.trackErrorsByTypeListNoUnexpected = trackErrorsByTypeListNoUnexpected;
339
+ const trackFinalizationStatus = ($id) => {
340
+ return {
341
+ $id,
342
+ $typeOfContent: "",
343
+ type: "TrackEvent",
344
+ $title: "DWN Abandonment rate",
345
+ settings: {
346
+ extras: {
347
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
348
+ },
349
+ category: `dwn-finalization-status`,
350
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@error.status}}`,
351
+ },
352
+ conditions: [
353
+ {
354
+ values: [],
355
+ source: "context",
356
+ comparison: "notExists",
357
+ variable: Feature_1.Feature.VARIABLES.ERROR,
358
+ },
359
+ {
360
+ values: [],
361
+ source: "context",
362
+ comparison: "notExists",
363
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.goto`,
364
+ },
365
+ {
366
+ values: [],
367
+ source: "context",
368
+ comparison: "exists",
369
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.status`,
370
+ },
371
+ ],
372
+ };
373
+ };
374
+ exports.trackFinalizationStatus = trackFinalizationStatus;
375
+ const trackBubbledErrors = ($id) => {
376
+ return {
377
+ $id,
378
+ $typeOfContent: "",
379
+ type: "TrackEvent",
380
+ $title: "DWN Bubbled errors by type",
381
+ settings: {
382
+ extras: {
383
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
384
+ },
385
+ category: `dwn-bubbled-errors-by-type`,
386
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@error.type}}`,
387
+ },
388
+ conditions: [
389
+ {
390
+ values: [],
391
+ source: "context",
392
+ comparison: "notExists",
393
+ variable: Feature_1.Feature.VARIABLES.ERROR,
394
+ },
395
+ {
396
+ values: [],
397
+ source: "context",
398
+ comparison: "exists",
399
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error`,
400
+ },
401
+ {
402
+ values: [],
403
+ source: "context",
404
+ comparison: "exists",
405
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.type`,
406
+ },
407
+ {
408
+ values: [],
409
+ source: "context",
410
+ comparison: "notExists",
411
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@error.goto`,
412
+ },
413
+ ],
414
+ };
415
+ };
416
+ exports.trackBubbledErrors = trackBubbledErrors;
417
+ // --- GLOBAL ACTIONS (10)
418
+ const trackPrepareIntents = ($id) => {
419
+ return {
420
+ $id,
421
+ $typeOfContent: "",
422
+ type: "TrackEvent",
423
+ $title: "DWN Prepare Intents",
424
+ settings: {
425
+ extras: {
426
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
427
+ },
428
+ category: `dwn-prepare-intents-{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}`,
429
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
430
+ },
431
+ conditions: [
432
+ {
433
+ values: [],
434
+ source: "context",
435
+ comparison: "exists",
436
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
437
+ },
438
+ {
439
+ values: [Feature_1.Feature.INTENT_SCOPE.PREPARE],
440
+ source: "context",
441
+ comparison: "equals",
442
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
443
+ },
444
+ {
445
+ values: [],
446
+ source: "context",
447
+ comparison: "exists",
448
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.id`,
449
+ },
450
+ {
451
+ values: [],
452
+ source: "context",
453
+ comparison: "exists",
454
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.label`,
455
+ },
456
+ ],
457
+ };
458
+ };
459
+ exports.trackPrepareIntents = trackPrepareIntents;
460
+ const trackPrepareIntentsWithUnexpected = ($id) => {
461
+ return {
462
+ $id,
463
+ $typeOfContent: "",
464
+ type: "TrackEvent",
465
+ $title: "DWN Prepare Intents with unexpected",
466
+ settings: {
467
+ extras: {
468
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
469
+ },
470
+ category: `dwn-prepare-intents-{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}-with-unexpected`,
471
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
472
+ },
473
+ conditions: [
474
+ {
475
+ values: [],
476
+ source: "context",
477
+ comparison: "exists",
478
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
479
+ },
480
+ {
481
+ values: [Feature_1.Feature.INTENT_SCOPE.PREPARE],
482
+ source: "context",
483
+ comparison: "equals",
484
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
485
+ },
486
+ {
487
+ values: [],
488
+ source: "context",
489
+ comparison: "exists",
490
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.label`,
491
+ },
492
+ ],
493
+ };
494
+ };
495
+ exports.trackPrepareIntentsWithUnexpected = trackPrepareIntentsWithUnexpected;
496
+ const trackPrepareIntentsGlobalUnexpected = ($id) => {
497
+ return {
498
+ $id,
499
+ $typeOfContent: "",
500
+ type: "TrackEvent",
501
+ $title: "DWN Prepare unexpected intents",
502
+ settings: {
503
+ extras: {
504
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
505
+ },
506
+ category: `dwn-prepare-intents-global-unexpected`,
507
+ action: `{{${Feature_1.Feature.VARIABLES.CORE}@state.name}}`,
508
+ },
509
+ conditions: [
510
+ {
511
+ values: [],
512
+ source: "context",
513
+ comparison: "exists",
514
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
515
+ },
516
+ {
517
+ values: [Feature_1.Feature.INTENT_SCOPE.PREPARE],
518
+ source: "context",
519
+ comparison: "equals",
520
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
521
+ },
522
+ {
523
+ values: [],
524
+ source: "context",
525
+ comparison: "notExists",
526
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.id`,
527
+ },
528
+ {
529
+ values: [],
530
+ source: "context",
531
+ comparison: "exists",
532
+ variable: `${Feature_1.Feature.VARIABLES.CORE}@state.name`,
533
+ },
534
+ ],
535
+ };
536
+ };
537
+ exports.trackPrepareIntentsGlobalUnexpected = trackPrepareIntentsGlobalUnexpected;
538
+ const trackPrepareIntentsList = ($id) => {
539
+ const list = [
540
+ "",
541
+ `{{${Feature_1.Feature.VARIABLES.DWN}@calendar.datetime}}`,
542
+ `{{contact.identity}}`,
543
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
544
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.type}}`,
545
+ `{{${Feature_1.Feature.VARIABLES.DWN}@input.content}}`,
546
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.pattern}}`,
547
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.score}}`,
548
+ ];
549
+ return {
550
+ $id,
551
+ $typeOfContent: "",
552
+ type: "TrackEvent",
553
+ $title: "DWN Stack Intent List",
554
+ settings: {
555
+ extras: {
556
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
557
+ },
558
+ category: `dwn-prepare-intents-list-{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}`,
559
+ action: list.join(" | "),
560
+ },
561
+ conditions: [
562
+ {
563
+ values: [],
564
+ source: "context",
565
+ comparison: "exists",
566
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
567
+ },
568
+ {
569
+ values: [Feature_1.Feature.INTENT_SCOPE.PREPARE],
570
+ source: "context",
571
+ comparison: "equals",
572
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
573
+ },
574
+ ],
575
+ };
576
+ };
577
+ exports.trackPrepareIntentsList = trackPrepareIntentsList;
578
+ const trackPrepareIntentsUnmatchedList = ($id) => {
579
+ const list = [
580
+ "",
581
+ `{{${Feature_1.Feature.VARIABLES.DWN}@calendar.datetime}}`,
582
+ `{{contact.identity}}`,
583
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.type}}`,
584
+ `{{${Feature_1.Feature.VARIABLES.DWN}@input.content}}`,
585
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.score}}`,
586
+ ];
587
+ return {
588
+ $id,
589
+ $typeOfContent: "",
590
+ type: "TrackEvent",
591
+ $title: "DWN Prepare Unmatched Intent List",
592
+ settings: {
593
+ extras: {
594
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
595
+ },
596
+ category: `dwn-prepare-intents-list-unmatched`,
597
+ action: list.join(" | "),
598
+ },
599
+ conditions: [
600
+ {
601
+ values: [],
602
+ source: "context",
603
+ comparison: "exists",
604
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
605
+ },
606
+ {
607
+ values: [Feature_1.Feature.INTENT_SCOPE.PREPARE],
608
+ source: "context",
609
+ comparison: "equals",
610
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
611
+ },
612
+ ],
613
+ };
614
+ };
615
+ exports.trackPrepareIntentsUnmatchedList = trackPrepareIntentsUnmatchedList;
616
+ const trackInactivity = ($id) => {
617
+ return {
618
+ $id,
619
+ $typeOfContent: "",
620
+ type: "TrackEvent",
621
+ $title: "DWN Inactivity",
622
+ settings: {
623
+ extras: {
624
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
625
+ },
626
+ category: `dwn-inactivity`,
627
+ action: `{{${Feature_1.Feature.VARIABLES.CORE}@state.name}}`,
628
+ },
629
+ conditions: [
630
+ {
631
+ values: [],
632
+ source: "input",
633
+ comparison: "notExists",
634
+ },
635
+ {
636
+ values: [],
637
+ source: "context",
638
+ comparison: "exists",
639
+ variable: `${Feature_1.Feature.VARIABLES.CORE}@state.name`,
640
+ },
641
+ ],
642
+ };
643
+ };
644
+ exports.trackInactivity = trackInactivity;
645
+ const trackStackIntents = ($id) => {
646
+ return {
647
+ $id,
648
+ $typeOfContent: "",
649
+ type: "TrackEvent",
650
+ $title: "DWN Stack Intent",
651
+ settings: {
652
+ extras: {
653
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
654
+ },
655
+ category: `dwn-stack-intents-{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}`,
656
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
657
+ },
658
+ conditions: [
659
+ {
660
+ values: [],
661
+ source: "context",
662
+ comparison: "exists",
663
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
664
+ },
665
+ {
666
+ values: [Feature_1.Feature.INTENT_SCOPE.STACK],
667
+ source: "context",
668
+ comparison: "equals",
669
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
670
+ },
671
+ {
672
+ values: [],
673
+ source: "context",
674
+ comparison: "exists",
675
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.label`,
676
+ },
677
+ ],
678
+ };
679
+ };
680
+ exports.trackStackIntents = trackStackIntents;
681
+ const trackStackIntentsList = ($id) => {
682
+ const list = [
683
+ "",
684
+ `{{${Feature_1.Feature.VARIABLES.DWN}@calendar.datetime}}`,
685
+ `{{contact.identity}}`,
686
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}`,
687
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
688
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.type}}`,
689
+ `{{${Feature_1.Feature.VARIABLES.DWN}@input.content}}`,
690
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.pattern}}`,
691
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.score}}`,
692
+ ];
693
+ return {
694
+ $id,
695
+ $typeOfContent: "",
696
+ type: "TrackEvent",
697
+ $title: "DWN Stack Intent List",
698
+ settings: {
699
+ extras: {
700
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
701
+ },
702
+ category: `dwn-stack-intents-list`,
703
+ action: list.join(" | "),
704
+ },
705
+ conditions: [
706
+ {
707
+ values: [],
708
+ source: "context",
709
+ comparison: "exists",
710
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
711
+ },
712
+ {
713
+ values: [Feature_1.Feature.INTENT_SCOPE.STACK],
714
+ source: "context",
715
+ comparison: "equals",
716
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
717
+ },
718
+ ],
719
+ };
720
+ };
721
+ exports.trackStackIntentsList = trackStackIntentsList;
722
+ const trackConfigIntents = ($id) => {
723
+ return {
724
+ $id,
725
+ $typeOfContent: "",
726
+ type: "TrackEvent",
727
+ $title: "DWN Config Intent",
728
+ settings: {
729
+ extras: {
730
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
731
+ },
732
+ category: `dwn-config-intents-{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}`,
733
+ action: `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
734
+ },
735
+ conditions: [
736
+ {
737
+ values: [],
738
+ source: "context",
739
+ comparison: "exists",
740
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
741
+ },
742
+ {
743
+ values: [Feature_1.Feature.INTENT_SCOPE.CONFIG],
744
+ source: "context",
745
+ comparison: "equals",
746
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
747
+ },
748
+ {
749
+ values: [],
750
+ source: "context",
751
+ comparison: "exists",
752
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.label`,
753
+ },
754
+ ],
755
+ };
756
+ };
757
+ exports.trackConfigIntents = trackConfigIntents;
758
+ const trackConfigIntentList = ($id) => {
759
+ const list = [
760
+ "",
761
+ `{{${Feature_1.Feature.VARIABLES.DWN}@calendar.datetime}}`,
762
+ `{{contact.identity}}`,
763
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.event}}`,
764
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.label}}`,
765
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.type}}`,
766
+ `{{${Feature_1.Feature.VARIABLES.DWN}@input.content}}`,
767
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.pattern}}`,
768
+ `{{${Feature_1.Feature.VARIABLES.DWN}@intent.score}}`,
769
+ ];
770
+ return {
771
+ $id,
772
+ $typeOfContent: "",
773
+ type: "TrackEvent",
774
+ $title: "DWN Config Intent List",
775
+ settings: {
776
+ extras: {
777
+ journey: `{{${Feature_1.Feature.VARIABLES.DWN}@journey}}`,
778
+ },
779
+ category: `dwn-config-intents-list`,
780
+ action: list.join(" | "),
781
+ },
782
+ conditions: [
783
+ {
784
+ values: [],
785
+ source: "context",
786
+ comparison: "exists",
787
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent`,
788
+ },
789
+ {
790
+ values: [Feature_1.Feature.INTENT_SCOPE.CONFIG],
791
+ source: "context",
792
+ comparison: "equals",
793
+ variable: `${Feature_1.Feature.VARIABLES.DWN}@intent.scope`,
794
+ },
795
+ ],
796
+ };
797
+ };
798
+ exports.trackConfigIntentList = trackConfigIntentList;
799
+ // ------- ONBOARDING
800
+ // --- BAR / PIE
801
+ // OK - Contacting Hour
802
+ // OK - First Contact (check user)
803
+ // OK - Journeys by User (1, 2, 3...)
804
+ //
805
+ // ------- ERRORS
806
+ // --- BARS / PIE
807
+ // OK - By type Global
808
+ // OK - By type Local
809
+ // OK - By type excluding unexpected Global
810
+ // OK - By type excluding unexpected Local
811
+ // --- LISTS
812
+ // OK - All TYPEs
813
+ // OK - By TYPE
814
+ // OK - CONCLUSION RATE -> dwn@error on start (new journey) -> NOT FINISHING ERRORS CONFIG ???
815
+ // ------- GLOBAL
816
+ // --- BARS / PIE
817
+ // OK - INTENT EXCLUDING UNEXPECTED
818
+ // OK - INTENT with UNEXPECTED
819
+ // INTENT MATCH PATTERNS
820
+ // OK - Global UNEXPECTED INTENT
821
+ // OK - INACTIVITY BLOCK (with input.content not exists)
822
+ // OK - By STACKED INTENT - block
823
+ // OK - By GLOBAL INTENT - block
824
+ // --- LISTS
825
+ // OK - STACKED INTENT
826
+ // OK - Global intents
827
+ //# sourceMappingURL=events.js.map