@venturialstd/workflow 0.0.1

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 (302) hide show
  1. package/README.md +238 -0
  2. package/dist/constants/workflow.constant.d.ts +23 -0
  3. package/dist/constants/workflow.constant.d.ts.map +1 -0
  4. package/dist/constants/workflow.constant.js +30 -0
  5. package/dist/constants/workflow.constant.js.map +1 -0
  6. package/dist/dtos/create-workflow-edge.dto.d.ts +10 -0
  7. package/dist/dtos/create-workflow-edge.dto.d.ts.map +1 -0
  8. package/dist/dtos/create-workflow-edge.dto.js +58 -0
  9. package/dist/dtos/create-workflow-edge.dto.js.map +1 -0
  10. package/dist/dtos/create-workflow-execution.dto.d.ts +11 -0
  11. package/dist/dtos/create-workflow-execution.dto.d.ts.map +1 -0
  12. package/dist/dtos/create-workflow-execution.dto.js +58 -0
  13. package/dist/dtos/create-workflow-execution.dto.js.map +1 -0
  14. package/dist/dtos/create-workflow-module-credential.dto.d.ts +15 -0
  15. package/dist/dtos/create-workflow-module-credential.dto.d.ts.map +1 -0
  16. package/dist/dtos/create-workflow-module-credential.dto.js +75 -0
  17. package/dist/dtos/create-workflow-module-credential.dto.js.map +1 -0
  18. package/dist/dtos/create-workflow-module.dto.d.ts +10 -0
  19. package/dist/dtos/create-workflow-module.dto.d.ts.map +1 -0
  20. package/dist/dtos/create-workflow-module.dto.js +55 -0
  21. package/dist/dtos/create-workflow-module.dto.js.map +1 -0
  22. package/dist/dtos/create-workflow-node.dto.d.ts +15 -0
  23. package/dist/dtos/create-workflow-node.dto.d.ts.map +1 -0
  24. package/dist/dtos/create-workflow-node.dto.js +62 -0
  25. package/dist/dtos/create-workflow-node.dto.js.map +1 -0
  26. package/dist/dtos/create-workflow-session.dto.d.ts +13 -0
  27. package/dist/dtos/create-workflow-session.dto.d.ts.map +1 -0
  28. package/dist/dtos/create-workflow-session.dto.js +51 -0
  29. package/dist/dtos/create-workflow-session.dto.js.map +1 -0
  30. package/dist/dtos/create-workflow.dto.d.ts +12 -0
  31. package/dist/dtos/create-workflow.dto.d.ts.map +1 -0
  32. package/dist/dtos/create-workflow.dto.js +65 -0
  33. package/dist/dtos/create-workflow.dto.js.map +1 -0
  34. package/dist/dtos/index.d.ts +8 -0
  35. package/dist/dtos/index.d.ts.map +1 -0
  36. package/dist/dtos/index.js +24 -0
  37. package/dist/dtos/index.js.map +1 -0
  38. package/dist/entities/workflow-edge.entity.d.ts +15 -0
  39. package/dist/entities/workflow-edge.entity.d.ts.map +1 -0
  40. package/dist/entities/workflow-edge.entity.js +99 -0
  41. package/dist/entities/workflow-edge.entity.js.map +1 -0
  42. package/dist/entities/workflow-execution.entity.d.ts +20 -0
  43. package/dist/entities/workflow-execution.entity.d.ts.map +1 -0
  44. package/dist/entities/workflow-execution.entity.js +123 -0
  45. package/dist/entities/workflow-execution.entity.js.map +1 -0
  46. package/dist/entities/workflow-module-credential.entity.d.ts +13 -0
  47. package/dist/entities/workflow-module-credential.entity.d.ts.map +1 -0
  48. package/dist/entities/workflow-module-credential.entity.js +89 -0
  49. package/dist/entities/workflow-module-credential.entity.js.map +1 -0
  50. package/dist/entities/workflow-module.entity.d.ts +17 -0
  51. package/dist/entities/workflow-module.entity.d.ts.map +1 -0
  52. package/dist/entities/workflow-module.entity.js +113 -0
  53. package/dist/entities/workflow-module.entity.js.map +1 -0
  54. package/dist/entities/workflow-node.entity.d.ts +20 -0
  55. package/dist/entities/workflow-node.entity.d.ts.map +1 -0
  56. package/dist/entities/workflow-node.entity.js +105 -0
  57. package/dist/entities/workflow-node.entity.js.map +1 -0
  58. package/dist/entities/workflow-session.entity.d.ts +20 -0
  59. package/dist/entities/workflow-session.entity.d.ts.map +1 -0
  60. package/dist/entities/workflow-session.entity.js +100 -0
  61. package/dist/entities/workflow-session.entity.js.map +1 -0
  62. package/dist/entities/workflow.entity.d.ts +23 -0
  63. package/dist/entities/workflow.entity.d.ts.map +1 -0
  64. package/dist/entities/workflow.entity.js +130 -0
  65. package/dist/entities/workflow.entity.js.map +1 -0
  66. package/dist/index.d.ts +19 -0
  67. package/dist/index.d.ts.map +1 -0
  68. package/dist/index.js +37 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/modules/ai/actions/analyze-sentiment.action.d.ts +3 -0
  71. package/dist/modules/ai/actions/analyze-sentiment.action.d.ts.map +1 -0
  72. package/dist/modules/ai/actions/analyze-sentiment.action.js +59 -0
  73. package/dist/modules/ai/actions/analyze-sentiment.action.js.map +1 -0
  74. package/dist/modules/ai/actions/generate-text.action.d.ts +3 -0
  75. package/dist/modules/ai/actions/generate-text.action.d.ts.map +1 -0
  76. package/dist/modules/ai/actions/generate-text.action.js +89 -0
  77. package/dist/modules/ai/actions/generate-text.action.js.map +1 -0
  78. package/dist/modules/ai/actions/index.d.ts +4 -0
  79. package/dist/modules/ai/actions/index.d.ts.map +1 -0
  80. package/dist/modules/ai/actions/index.js +20 -0
  81. package/dist/modules/ai/actions/index.js.map +1 -0
  82. package/dist/modules/ai/actions/summarize.action.d.ts +3 -0
  83. package/dist/modules/ai/actions/summarize.action.d.ts.map +1 -0
  84. package/dist/modules/ai/actions/summarize.action.js +60 -0
  85. package/dist/modules/ai/actions/summarize.action.js.map +1 -0
  86. package/dist/modules/ai/ai.module.d.ts +3 -0
  87. package/dist/modules/ai/ai.module.d.ts.map +1 -0
  88. package/dist/modules/ai/ai.module.js +19 -0
  89. package/dist/modules/ai/ai.module.js.map +1 -0
  90. package/dist/modules/ai/auth/ai-auth.service.d.ts +5 -0
  91. package/dist/modules/ai/auth/ai-auth.service.d.ts.map +1 -0
  92. package/dist/modules/ai/auth/ai-auth.service.js +41 -0
  93. package/dist/modules/ai/auth/ai-auth.service.js.map +1 -0
  94. package/dist/modules/ai/auth/index.d.ts +2 -0
  95. package/dist/modules/ai/auth/index.d.ts.map +1 -0
  96. package/dist/modules/ai/auth/index.js +18 -0
  97. package/dist/modules/ai/auth/index.js.map +1 -0
  98. package/dist/modules/ai/credentials.d.ts +3 -0
  99. package/dist/modules/ai/credentials.d.ts.map +1 -0
  100. package/dist/modules/ai/credentials.js +32 -0
  101. package/dist/modules/ai/credentials.js.map +1 -0
  102. package/dist/modules/ai/services/analyze-sentiment.service.d.ts +5 -0
  103. package/dist/modules/ai/services/analyze-sentiment.service.d.ts.map +1 -0
  104. package/dist/modules/ai/services/analyze-sentiment.service.js +27 -0
  105. package/dist/modules/ai/services/analyze-sentiment.service.js.map +1 -0
  106. package/dist/modules/ai/services/generate-text.service.d.ts +5 -0
  107. package/dist/modules/ai/services/generate-text.service.d.ts.map +1 -0
  108. package/dist/modules/ai/services/generate-text.service.js +29 -0
  109. package/dist/modules/ai/services/generate-text.service.js.map +1 -0
  110. package/dist/modules/ai/services/index.d.ts +4 -0
  111. package/dist/modules/ai/services/index.d.ts.map +1 -0
  112. package/dist/modules/ai/services/index.js +20 -0
  113. package/dist/modules/ai/services/index.js.map +1 -0
  114. package/dist/modules/ai/services/summarize.service.d.ts +5 -0
  115. package/dist/modules/ai/services/summarize.service.d.ts.map +1 -0
  116. package/dist/modules/ai/services/summarize.service.js +28 -0
  117. package/dist/modules/ai/services/summarize.service.js.map +1 -0
  118. package/dist/modules/ai/triggers/index.d.ts +3 -0
  119. package/dist/modules/ai/triggers/index.d.ts.map +1 -0
  120. package/dist/modules/ai/triggers/index.js +5 -0
  121. package/dist/modules/ai/triggers/index.js.map +1 -0
  122. package/dist/modules/chatbot/actions/ask-question.action.d.ts +3 -0
  123. package/dist/modules/chatbot/actions/ask-question.action.d.ts.map +1 -0
  124. package/dist/modules/chatbot/actions/ask-question.action.js +42 -0
  125. package/dist/modules/chatbot/actions/ask-question.action.js.map +1 -0
  126. package/dist/modules/chatbot/actions/index.d.ts +4 -0
  127. package/dist/modules/chatbot/actions/index.d.ts.map +1 -0
  128. package/dist/modules/chatbot/actions/index.js +20 -0
  129. package/dist/modules/chatbot/actions/index.js.map +1 -0
  130. package/dist/modules/chatbot/actions/send-buttons.action.d.ts +3 -0
  131. package/dist/modules/chatbot/actions/send-buttons.action.d.ts.map +1 -0
  132. package/dist/modules/chatbot/actions/send-buttons.action.js +67 -0
  133. package/dist/modules/chatbot/actions/send-buttons.action.js.map +1 -0
  134. package/dist/modules/chatbot/actions/send-message.action.d.ts +3 -0
  135. package/dist/modules/chatbot/actions/send-message.action.d.ts.map +1 -0
  136. package/dist/modules/chatbot/actions/send-message.action.js +52 -0
  137. package/dist/modules/chatbot/actions/send-message.action.js.map +1 -0
  138. package/dist/modules/chatbot/chatbot.module.d.ts +3 -0
  139. package/dist/modules/chatbot/chatbot.module.d.ts.map +1 -0
  140. package/dist/modules/chatbot/chatbot.module.js +17 -0
  141. package/dist/modules/chatbot/chatbot.module.js.map +1 -0
  142. package/dist/modules/chatbot/credentials.d.ts +3 -0
  143. package/dist/modules/chatbot/credentials.d.ts.map +1 -0
  144. package/dist/modules/chatbot/credentials.js +5 -0
  145. package/dist/modules/chatbot/credentials.js.map +1 -0
  146. package/dist/modules/chatbot/services/ask-question.service.d.ts +5 -0
  147. package/dist/modules/chatbot/services/ask-question.service.d.ts.map +1 -0
  148. package/dist/modules/chatbot/services/ask-question.service.js +25 -0
  149. package/dist/modules/chatbot/services/ask-question.service.js.map +1 -0
  150. package/dist/modules/chatbot/services/index.d.ts +5 -0
  151. package/dist/modules/chatbot/services/index.d.ts.map +1 -0
  152. package/dist/modules/chatbot/services/index.js +21 -0
  153. package/dist/modules/chatbot/services/index.js.map +1 -0
  154. package/dist/modules/chatbot/services/send-buttons.service.d.ts +5 -0
  155. package/dist/modules/chatbot/services/send-buttons.service.d.ts.map +1 -0
  156. package/dist/modules/chatbot/services/send-buttons.service.js +25 -0
  157. package/dist/modules/chatbot/services/send-buttons.service.js.map +1 -0
  158. package/dist/modules/chatbot/services/send-message.service.d.ts +5 -0
  159. package/dist/modules/chatbot/services/send-message.service.d.ts.map +1 -0
  160. package/dist/modules/chatbot/services/send-message.service.js +27 -0
  161. package/dist/modules/chatbot/services/send-message.service.js.map +1 -0
  162. package/dist/modules/chatbot/services/user-responded.service.d.ts +5 -0
  163. package/dist/modules/chatbot/services/user-responded.service.d.ts.map +1 -0
  164. package/dist/modules/chatbot/services/user-responded.service.js +25 -0
  165. package/dist/modules/chatbot/services/user-responded.service.js.map +1 -0
  166. package/dist/modules/chatbot/triggers/index.d.ts +2 -0
  167. package/dist/modules/chatbot/triggers/index.d.ts.map +1 -0
  168. package/dist/modules/chatbot/triggers/index.js +18 -0
  169. package/dist/modules/chatbot/triggers/index.js.map +1 -0
  170. package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts +3 -0
  171. package/dist/modules/chatbot/triggers/user-responded.trigger.d.ts.map +1 -0
  172. package/dist/modules/chatbot/triggers/user-responded.trigger.js +45 -0
  173. package/dist/modules/chatbot/triggers/user-responded.trigger.js.map +1 -0
  174. package/dist/modules/conditional/actions/evaluate-condition.action.d.ts +3 -0
  175. package/dist/modules/conditional/actions/evaluate-condition.action.d.ts.map +1 -0
  176. package/dist/modules/conditional/actions/evaluate-condition.action.js +75 -0
  177. package/dist/modules/conditional/actions/evaluate-condition.action.js.map +1 -0
  178. package/dist/modules/conditional/actions/index.d.ts +2 -0
  179. package/dist/modules/conditional/actions/index.d.ts.map +1 -0
  180. package/dist/modules/conditional/actions/index.js +18 -0
  181. package/dist/modules/conditional/actions/index.js.map +1 -0
  182. package/dist/modules/conditional/conditional.module.d.ts +3 -0
  183. package/dist/modules/conditional/conditional.module.d.ts.map +1 -0
  184. package/dist/modules/conditional/conditional.module.js +17 -0
  185. package/dist/modules/conditional/conditional.module.js.map +1 -0
  186. package/dist/modules/conditional/credentials.d.ts +3 -0
  187. package/dist/modules/conditional/credentials.d.ts.map +1 -0
  188. package/dist/modules/conditional/credentials.js +5 -0
  189. package/dist/modules/conditional/credentials.js.map +1 -0
  190. package/dist/modules/conditional/services/condition-met.service.d.ts +5 -0
  191. package/dist/modules/conditional/services/condition-met.service.d.ts.map +1 -0
  192. package/dist/modules/conditional/services/condition-met.service.js +24 -0
  193. package/dist/modules/conditional/services/condition-met.service.js.map +1 -0
  194. package/dist/modules/conditional/services/condition-not-met.service.d.ts +5 -0
  195. package/dist/modules/conditional/services/condition-not-met.service.d.ts.map +1 -0
  196. package/dist/modules/conditional/services/condition-not-met.service.js +24 -0
  197. package/dist/modules/conditional/services/condition-not-met.service.js.map +1 -0
  198. package/dist/modules/conditional/services/evaluate-condition.service.d.ts +5 -0
  199. package/dist/modules/conditional/services/evaluate-condition.service.d.ts.map +1 -0
  200. package/dist/modules/conditional/services/evaluate-condition.service.js +56 -0
  201. package/dist/modules/conditional/services/evaluate-condition.service.js.map +1 -0
  202. package/dist/modules/conditional/services/index.d.ts +4 -0
  203. package/dist/modules/conditional/services/index.d.ts.map +1 -0
  204. package/dist/modules/conditional/services/index.js +20 -0
  205. package/dist/modules/conditional/services/index.js.map +1 -0
  206. package/dist/modules/conditional/triggers/condition-met.trigger.d.ts +3 -0
  207. package/dist/modules/conditional/triggers/condition-met.trigger.d.ts.map +1 -0
  208. package/dist/modules/conditional/triggers/condition-met.trigger.js +39 -0
  209. package/dist/modules/conditional/triggers/condition-met.trigger.js.map +1 -0
  210. package/dist/modules/conditional/triggers/condition-not-met.trigger.d.ts +3 -0
  211. package/dist/modules/conditional/triggers/condition-not-met.trigger.d.ts.map +1 -0
  212. package/dist/modules/conditional/triggers/condition-not-met.trigger.js +39 -0
  213. package/dist/modules/conditional/triggers/condition-not-met.trigger.js.map +1 -0
  214. package/dist/modules/conditional/triggers/index.d.ts +3 -0
  215. package/dist/modules/conditional/triggers/index.d.ts.map +1 -0
  216. package/dist/modules/conditional/triggers/index.js +19 -0
  217. package/dist/modules/conditional/triggers/index.js.map +1 -0
  218. package/dist/modules/index.d.ts +6 -0
  219. package/dist/modules/index.d.ts.map +1 -0
  220. package/dist/modules/index.js +110 -0
  221. package/dist/modules/index.js.map +1 -0
  222. package/dist/modules/twilio/actions/index.d.ts +2 -0
  223. package/dist/modules/twilio/actions/index.d.ts.map +1 -0
  224. package/dist/modules/twilio/actions/index.js +18 -0
  225. package/dist/modules/twilio/actions/index.js.map +1 -0
  226. package/dist/modules/twilio/actions/send-sms.action.d.ts +3 -0
  227. package/dist/modules/twilio/actions/send-sms.action.d.ts.map +1 -0
  228. package/dist/modules/twilio/actions/send-sms.action.js +59 -0
  229. package/dist/modules/twilio/actions/send-sms.action.js.map +1 -0
  230. package/dist/modules/twilio/auth/index.d.ts +2 -0
  231. package/dist/modules/twilio/auth/index.d.ts.map +1 -0
  232. package/dist/modules/twilio/auth/index.js +18 -0
  233. package/dist/modules/twilio/auth/index.js.map +1 -0
  234. package/dist/modules/twilio/auth/twilio-auth.service.d.ts +5 -0
  235. package/dist/modules/twilio/auth/twilio-auth.service.d.ts.map +1 -0
  236. package/dist/modules/twilio/auth/twilio-auth.service.js +62 -0
  237. package/dist/modules/twilio/auth/twilio-auth.service.js.map +1 -0
  238. package/dist/modules/twilio/credentials.d.ts +3 -0
  239. package/dist/modules/twilio/credentials.d.ts.map +1 -0
  240. package/dist/modules/twilio/credentials.js +48 -0
  241. package/dist/modules/twilio/credentials.js.map +1 -0
  242. package/dist/modules/twilio/services/index.d.ts +3 -0
  243. package/dist/modules/twilio/services/index.d.ts.map +1 -0
  244. package/dist/modules/twilio/services/index.js +19 -0
  245. package/dist/modules/twilio/services/index.js.map +1 -0
  246. package/dist/modules/twilio/services/message-received.service.d.ts +5 -0
  247. package/dist/modules/twilio/services/message-received.service.d.ts.map +1 -0
  248. package/dist/modules/twilio/services/message-received.service.js +28 -0
  249. package/dist/modules/twilio/services/message-received.service.js.map +1 -0
  250. package/dist/modules/twilio/services/send-sms.service.d.ts +5 -0
  251. package/dist/modules/twilio/services/send-sms.service.d.ts.map +1 -0
  252. package/dist/modules/twilio/services/send-sms.service.js +29 -0
  253. package/dist/modules/twilio/services/send-sms.service.js.map +1 -0
  254. package/dist/modules/twilio/triggers/index.d.ts +2 -0
  255. package/dist/modules/twilio/triggers/index.d.ts.map +1 -0
  256. package/dist/modules/twilio/triggers/index.js +18 -0
  257. package/dist/modules/twilio/triggers/index.js.map +1 -0
  258. package/dist/modules/twilio/triggers/message-received.trigger.d.ts +3 -0
  259. package/dist/modules/twilio/triggers/message-received.trigger.d.ts.map +1 -0
  260. package/dist/modules/twilio/triggers/message-received.trigger.js +69 -0
  261. package/dist/modules/twilio/triggers/message-received.trigger.js.map +1 -0
  262. package/dist/modules/twilio/twilio.module.d.ts +3 -0
  263. package/dist/modules/twilio/twilio.module.d.ts.map +1 -0
  264. package/dist/modules/twilio/twilio.module.js +19 -0
  265. package/dist/modules/twilio/twilio.module.js.map +1 -0
  266. package/dist/modules/types.d.ts +103 -0
  267. package/dist/modules/types.d.ts.map +1 -0
  268. package/dist/modules/types.js +50 -0
  269. package/dist/modules/types.js.map +1 -0
  270. package/dist/services/workflow-edge.service.d.ts +12 -0
  271. package/dist/services/workflow-edge.service.d.ts.map +1 -0
  272. package/dist/services/workflow-edge.service.js +52 -0
  273. package/dist/services/workflow-edge.service.js.map +1 -0
  274. package/dist/services/workflow-execution.service.d.ts +15 -0
  275. package/dist/services/workflow-execution.service.d.ts.map +1 -0
  276. package/dist/services/workflow-execution.service.js +96 -0
  277. package/dist/services/workflow-execution.service.js.map +1 -0
  278. package/dist/services/workflow-module-credential.service.d.ts +14 -0
  279. package/dist/services/workflow-module-credential.service.d.ts.map +1 -0
  280. package/dist/services/workflow-module-credential.service.js +85 -0
  281. package/dist/services/workflow-module-credential.service.js.map +1 -0
  282. package/dist/services/workflow-module.service.d.ts +15 -0
  283. package/dist/services/workflow-module.service.d.ts.map +1 -0
  284. package/dist/services/workflow-module.service.js +96 -0
  285. package/dist/services/workflow-module.service.js.map +1 -0
  286. package/dist/services/workflow-node.service.d.ts +15 -0
  287. package/dist/services/workflow-node.service.d.ts.map +1 -0
  288. package/dist/services/workflow-node.service.js +62 -0
  289. package/dist/services/workflow-node.service.js.map +1 -0
  290. package/dist/services/workflow-session.service.d.ts +15 -0
  291. package/dist/services/workflow-session.service.d.ts.map +1 -0
  292. package/dist/services/workflow-session.service.js +91 -0
  293. package/dist/services/workflow-session.service.js.map +1 -0
  294. package/dist/services/workflow.service.d.ts +13 -0
  295. package/dist/services/workflow.service.d.ts.map +1 -0
  296. package/dist/services/workflow.service.js +73 -0
  297. package/dist/services/workflow.service.js.map +1 -0
  298. package/dist/workflow.module.d.ts +3 -0
  299. package/dist/workflow.module.d.ts.map +1 -0
  300. package/dist/workflow.module.js +98 -0
  301. package/dist/workflow.module.js.map +1 -0
  302. package/package.json +93 -0
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./analyze-sentiment.service"), exports);
18
+ __exportStar(require("./generate-text.service"), exports);
19
+ __exportStar(require("./summarize.service"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/ai/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class SummarizeService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=summarize.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summarize.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/services/summarize.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,gBAAiB,YAAW,sBAAsB;IACvD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAgBpC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SummarizeService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let SummarizeService = class SummarizeService {
12
+ async perform(inputs, _context) {
13
+ const text = inputs.text;
14
+ const _maxLength = inputs.maxLength || 100;
15
+ const _apiKey = _context.credentials?.apiKey;
16
+ const originalLength = text.split(/\s+/).length;
17
+ return {
18
+ summary: '',
19
+ originalLength,
20
+ summaryLength: 0,
21
+ };
22
+ }
23
+ };
24
+ exports.SummarizeService = SummarizeService;
25
+ exports.SummarizeService = SummarizeService = __decorate([
26
+ (0, common_1.Injectable)()
27
+ ], SummarizeService);
28
+ //# sourceMappingURL=summarize.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summarize.service.js","sourceRoot":"","sources":["../../../../src/modules/ai/services/summarize.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAG/B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAc,CAAC;QACnC,MAAM,UAAU,GAAI,MAAM,CAAC,SAAoB,IAAI,GAAG,CAAC;QACvD,MAAM,OAAO,GAAG,QAAQ,CAAC,WAAW,EAAE,MAAgB,CAAC;QAIvD,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC;QAEhD,OAAO;YACL,OAAO,EAAE,EAAE;YACX,cAAc;YACd,aAAa,EAAE,CAAC;SACjB,CAAC;IACJ,CAAC;CACF,CAAA;AApBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;GACA,gBAAgB,CAoB5B"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const aiTriggers: WorkflowActionTrigger[];
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/ai/triggers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,UAAU,EAAE,qBAAqB,EAAO,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.aiTriggers = void 0;
4
+ exports.aiTriggers = [];
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/ai/triggers/index.ts"],"names":[],"mappings":";;;AAGa,QAAA,UAAU,GAA4B,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const askQuestionAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=ask-question.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/ask-question.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBAmC/B,CAAC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askQuestionAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const ask_question_service_1 = require("../services/ask-question.service");
6
+ exports.askQuestionAction = {
7
+ id: 'ask-question',
8
+ name: 'Ask Question',
9
+ description: 'Send a message and wait for user response',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '❓',
12
+ serviceClass: ask_question_service_1.AskQuestionService,
13
+ inputs: [
14
+ {
15
+ id: 'message',
16
+ name: 'Question',
17
+ description: 'The question to ask the user',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ minLength: 1,
22
+ maxLength: 5000,
23
+ },
24
+ placeholder: 'What would you like to do?',
25
+ },
26
+ ],
27
+ outputs: [
28
+ {
29
+ id: 'userResponse',
30
+ name: 'User Response',
31
+ description: 'The response received from the user',
32
+ type: types_1.FIELD_TYPE.STRING,
33
+ },
34
+ {
35
+ id: 'responseTime',
36
+ name: 'Response Time',
37
+ description: 'Time taken for user to respond (ms)',
38
+ type: types_1.FIELD_TYPE.NUMBER,
39
+ },
40
+ ],
41
+ };
42
+ //# sourceMappingURL=ask-question.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/ask-question.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,4BAA4B;SAC1C;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './ask-question.action';
2
+ export * from './send-buttons.action';
3
+ export * from './send-message.action';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ask-question.action"), exports);
18
+ __exportStar(require("./send-buttons.action"), exports);
19
+ __exportStar(require("./send-message.action"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const sendButtonsAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=send-buttons.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-buttons.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBA4D/B,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendButtonsAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const send_buttons_service_1 = require("../services/send-buttons.service");
6
+ exports.sendButtonsAction = {
7
+ id: 'send-buttons',
8
+ name: 'Send with Buttons',
9
+ description: 'Send a message with interactive buttons',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '🔘',
12
+ serviceClass: send_buttons_service_1.SendButtonsService,
13
+ inputs: [
14
+ {
15
+ id: 'message',
16
+ name: 'Message',
17
+ description: 'The message text to send',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ minLength: 1,
22
+ maxLength: 5000,
23
+ },
24
+ placeholder: 'Please choose an option:',
25
+ },
26
+ {
27
+ id: 'buttons',
28
+ name: 'Buttons',
29
+ description: 'Array of button options',
30
+ type: types_1.FIELD_TYPE.ARRAY,
31
+ validation: {
32
+ required: true,
33
+ min: 1,
34
+ max: 10,
35
+ },
36
+ },
37
+ {
38
+ id: 'buttonLabel',
39
+ name: 'Button Label',
40
+ description: 'Label for each button',
41
+ type: types_1.FIELD_TYPE.STRING,
42
+ dependsOn: ['buttons'],
43
+ },
44
+ {
45
+ id: 'buttonValue',
46
+ name: 'Button Value',
47
+ description: 'Value returned when button is clicked',
48
+ type: types_1.FIELD_TYPE.STRING,
49
+ dependsOn: ['buttons'],
50
+ },
51
+ ],
52
+ outputs: [
53
+ {
54
+ id: 'selectedButton',
55
+ name: 'Selected Button',
56
+ description: 'The button value that was selected',
57
+ type: types_1.FIELD_TYPE.STRING,
58
+ },
59
+ {
60
+ id: 'selectedButtonLabel',
61
+ name: 'Selected Button Label',
62
+ description: 'The label of the selected button',
63
+ type: types_1.FIELD_TYPE.STRING,
64
+ },
65
+ ],
66
+ };
67
+ //# sourceMappingURL=send-buttons.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-buttons.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,0BAA0B;SACxC;QACD;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,EAAE;aACR;SACF;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,gBAAgB;YACpB,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,qBAAqB;YACzB,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,kCAAkC;YAC/C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const sendMessageAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=send-message.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-message.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,iBAAiB,EAAE,qBA6C/B,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendMessageAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const send_message_service_1 = require("../services/send-message.service");
6
+ exports.sendMessageAction = {
7
+ id: 'send-message',
8
+ name: 'Send Message',
9
+ description: 'Send a simple message to the user',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '📤',
12
+ serviceClass: send_message_service_1.SendMessageService,
13
+ inputs: [
14
+ {
15
+ id: 'message',
16
+ name: 'Message',
17
+ description: 'The message text to send',
18
+ type: types_1.FIELD_TYPE.STRING,
19
+ validation: {
20
+ required: true,
21
+ minLength: 1,
22
+ maxLength: 5000,
23
+ },
24
+ placeholder: 'Enter your message...',
25
+ },
26
+ {
27
+ id: 'waitForResponse',
28
+ name: 'Wait for Response',
29
+ description: 'Whether to wait for user response after sending',
30
+ type: types_1.FIELD_TYPE.BOOLEAN,
31
+ validation: {
32
+ required: false,
33
+ },
34
+ defaultValue: false,
35
+ },
36
+ ],
37
+ outputs: [
38
+ {
39
+ id: 'messageId',
40
+ name: 'Message ID',
41
+ description: 'Unique identifier for the sent message',
42
+ type: types_1.FIELD_TYPE.STRING,
43
+ },
44
+ {
45
+ id: 'sentAt',
46
+ name: 'Sent At',
47
+ description: 'Timestamp when message was sent',
48
+ type: types_1.FIELD_TYPE.DATE,
49
+ },
50
+ ],
51
+ };
52
+ //# sourceMappingURL=send-message.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.action.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/actions/send-message.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,2EAAsE;AAEzD,QAAA,iBAAiB,GAA0B;IACtD,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,yCAAkB;IAChC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0BAA0B;YACvC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,uBAAuB;SACrC;QACD;YACE,EAAE,EAAE,iBAAiB;YACrB,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,iDAAiD;YAC9D,IAAI,EAAE,kBAAU,CAAC,OAAO;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,KAAK;aAChB;YACD,YAAY,EAAE,KAAK;SACpB;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,WAAW;YACf,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowModuleDefinition } from '../types';
2
+ export declare const chatbotModule: WorkflowModuleDefinition;
3
+ //# sourceMappingURL=chatbot.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatbot.module.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpD,eAAO,MAAM,aAAa,EAAE,wBAS3B,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatbotModule = void 0;
4
+ const actions_1 = require("./actions");
5
+ const credentials_1 = require("./credentials");
6
+ const triggers_1 = require("./triggers");
7
+ exports.chatbotModule = {
8
+ id: 'chatbot',
9
+ name: 'Chatbot',
10
+ description: 'Interact with users through messages',
11
+ icon: '💬',
12
+ version: '1.0.0',
13
+ credentialFields: credentials_1.chatbotCredentials,
14
+ actions: [actions_1.sendMessageAction, actions_1.askQuestionAction, actions_1.sendButtonsAction],
15
+ triggers: [triggers_1.userRespondedTrigger],
16
+ };
17
+ //# sourceMappingURL=chatbot.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatbot.module.js","sourceRoot":"","sources":["../../../src/modules/chatbot/chatbot.module.ts"],"names":[],"mappings":";;;AACA,uCAAoF;AACpF,+CAAmD;AACnD,yCAAkD;AAErC,QAAA,aAAa,GAA6B;IACrD,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,OAAO;IAChB,gBAAgB,EAAE,gCAAkB;IACpC,OAAO,EAAE,CAAC,2BAAiB,EAAE,2BAAiB,EAAE,2BAAiB,CAAC;IAClE,QAAQ,EAAE,CAAC,+BAAoB,CAAC;CACjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CredentialFieldDefinition } from '../types';
2
+ export declare const chatbotCredentials: CredentialFieldDefinition[];
3
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/chatbot/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAE,yBAAyB,EAGzD,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chatbotCredentials = void 0;
4
+ exports.chatbotCredentials = [];
5
+ //# sourceMappingURL=credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/chatbot/credentials.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAgC,EAG9D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class AskQuestionService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=ask-question.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/ask-question.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAapC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.AskQuestionService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let AskQuestionService = class AskQuestionService {
12
+ async perform(inputs, _context) {
13
+ const _message = inputs.message;
14
+ const _startTime = Date.now();
15
+ return {
16
+ userResponse: '',
17
+ responseTime: 0,
18
+ };
19
+ }
20
+ };
21
+ exports.AskQuestionService = AskQuestionService;
22
+ exports.AskQuestionService = AskQuestionService = __decorate([
23
+ (0, common_1.Injectable)()
24
+ ], AskQuestionService);
25
+ //# sourceMappingURL=ask-question.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-question.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/ask-question.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAI9B,OAAO;YACL,YAAY,EAAE,EAAE;YAChB,YAAY,EAAE,CAAC;SAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAjBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAiB9B"}
@@ -0,0 +1,5 @@
1
+ export * from './ask-question.service';
2
+ export * from './send-buttons.service';
3
+ export * from './send-message.service';
4
+ export * from './user-responded.service';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ask-question.service"), exports);
18
+ __exportStar(require("./send-buttons.service"), exports);
19
+ __exportStar(require("./send-message.service"), exports);
20
+ __exportStar(require("./user-responded.service"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,2DAAyC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class SendButtonsService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=send-buttons.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-buttons.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAYpC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SendButtonsService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let SendButtonsService = class SendButtonsService {
12
+ async perform(inputs, _context) {
13
+ const _message = inputs.message;
14
+ const _buttons = inputs.buttons;
15
+ return {
16
+ selectedButton: '',
17
+ selectedButtonLabel: '',
18
+ };
19
+ }
20
+ };
21
+ exports.SendButtonsService = SendButtonsService;
22
+ exports.SendButtonsService = SendButtonsService = __decorate([
23
+ (0, common_1.Injectable)()
24
+ ], SendButtonsService);
25
+ //# sourceMappingURL=send-buttons.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-buttons.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-buttons.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAkD,CAAC;QAG3E,OAAO;YACL,cAAc,EAAE,EAAE;YAClB,mBAAmB,EAAE,EAAE;SACxB,CAAC;IACJ,CAAC;CACF,CAAA;AAhBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAgB9B"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class SendMessageService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=send-message.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-message.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,kBAAmB,YAAW,sBAAsB;IACzD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAepC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.SendMessageService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let SendMessageService = class SendMessageService {
12
+ async perform(inputs, _context) {
13
+ const _message = inputs.message;
14
+ const _waitForResponse = inputs.waitForResponse || false;
15
+ const messageId = `msg_${Date.now()}`;
16
+ const sentAt = new Date();
17
+ return {
18
+ messageId,
19
+ sentAt: sentAt.toISOString(),
20
+ };
21
+ }
22
+ };
23
+ exports.SendMessageService = SendMessageService;
24
+ exports.SendMessageService = SendMessageService = __decorate([
25
+ (0, common_1.Injectable)()
26
+ ], SendMessageService);
27
+ //# sourceMappingURL=send-message.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-message.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/send-message.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAiB,CAAC;QAC1C,MAAM,gBAAgB,GAAI,MAAM,CAAC,eAA2B,IAAI,KAAK,CAAC;QAGtE,MAAM,SAAS,GAAG,OAAO,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QACtC,MAAM,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QAE1B,OAAO;YACL,SAAS;YACT,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE;SAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAmB9B"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class UserRespondedService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=user-responded.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-responded.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/user-responded.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,oBAAqB,YAAW,sBAAsB;IAC3D,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,qBAAqB,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAYpC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.UserRespondedService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let UserRespondedService = class UserRespondedService {
12
+ async perform(inputs, _context) {
13
+ const userId = inputs.userId;
14
+ return {
15
+ message: '',
16
+ timestamp: new Date().toISOString(),
17
+ userId,
18
+ };
19
+ }
20
+ };
21
+ exports.UserRespondedService = UserRespondedService;
22
+ exports.UserRespondedService = UserRespondedService = __decorate([
23
+ (0, common_1.Injectable)()
24
+ ], UserRespondedService);
25
+ //# sourceMappingURL=user-responded.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-responded.service.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/services/user-responded.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAgB,CAAC;QAGvC,OAAO;YACL,OAAO,EAAE,EAAE;YACX,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,MAAM;SACP,CAAC;IACJ,CAAC;CACF,CAAA;AAhBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;GACA,oBAAoB,CAgBhC"}
@@ -0,0 +1,2 @@
1
+ export * from './user-responded.trigger';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/chatbot/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./user-responded.trigger"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/chatbot/triggers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}