@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,110 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.twilioModule = exports.conditionalModule = exports.chatbotModule = exports.aiModule = void 0;
40
+ const fs = __importStar(require("fs"));
41
+ const path = __importStar(require("path"));
42
+ const types_1 = require("./types");
43
+ async function registerModules() {
44
+ const modulesDir = __dirname;
45
+ if (!fs.existsSync(modulesDir)) {
46
+ console.warn(`Modules directory not found: ${modulesDir}`);
47
+ return;
48
+ }
49
+ const entries = fs.readdirSync(modulesDir, { withFileTypes: true });
50
+ for (const entry of entries) {
51
+ if (!entry.isDirectory() ||
52
+ entry.name === 'node_modules' ||
53
+ entry.name.startsWith('.') ||
54
+ entry.name === 'index.ts' ||
55
+ entry.name === 'index.js' ||
56
+ entry.name === 'types.ts' ||
57
+ entry.name === 'types.js' ||
58
+ entry.name === 'README.md') {
59
+ continue;
60
+ }
61
+ const moduleDir = path.join(modulesDir, entry.name);
62
+ const moduleName = entry.name;
63
+ const moduleFileTs = path.join(moduleDir, `${moduleName}.module.ts`);
64
+ const moduleFileJs = path.join(moduleDir, `${moduleName}.module.js`);
65
+ let moduleFile = null;
66
+ if (fs.existsSync(moduleFileTs)) {
67
+ moduleFile = moduleFileTs;
68
+ }
69
+ else if (fs.existsSync(moduleFileJs)) {
70
+ moduleFile = moduleFileJs;
71
+ }
72
+ else {
73
+ continue;
74
+ }
75
+ try {
76
+ const relativePath = path.relative(__dirname, moduleFile).replace(/\\/g, '/');
77
+ const modulePath = relativePath.startsWith('.') ? relativePath : `./${relativePath}`;
78
+ const moduleExport = await Promise.resolve(`${modulePath}`).then(s => __importStar(require(s)));
79
+ const moduleExportName = `${moduleName.charAt(0).toUpperCase() + moduleName.slice(1)}Module`;
80
+ const module = moduleExport[`${moduleName}Module`] ||
81
+ moduleExport[moduleExportName] ||
82
+ moduleExport.default;
83
+ if (module && typeof module === 'object' && 'id' in module) {
84
+ const workflowModule = module;
85
+ types_1.workflowModuleRegistry.register(workflowModule);
86
+ console.log(`✓ Registered workflow module: ${workflowModule.name} (${workflowModule.id})`);
87
+ }
88
+ else {
89
+ console.warn(`âš  Module file found but no valid module definition exported: ${moduleFile}`);
90
+ console.warn(` Expected export: ${moduleName}Module or ${moduleExportName}`);
91
+ }
92
+ }
93
+ catch (error) {
94
+ console.error(`✗ Error loading module from ${moduleFile}:`, error);
95
+ }
96
+ }
97
+ }
98
+ registerModules().catch((error) => {
99
+ console.error('Failed to register workflow modules:', error);
100
+ });
101
+ __exportStar(require("./types"), exports);
102
+ var ai_module_1 = require("./ai/ai.module");
103
+ Object.defineProperty(exports, "aiModule", { enumerable: true, get: function () { return ai_module_1.aiModule; } });
104
+ var chatbot_module_1 = require("./chatbot/chatbot.module");
105
+ Object.defineProperty(exports, "chatbotModule", { enumerable: true, get: function () { return chatbot_module_1.chatbotModule; } });
106
+ var conditional_module_1 = require("./conditional/conditional.module");
107
+ Object.defineProperty(exports, "conditionalModule", { enumerable: true, get: function () { return conditional_module_1.conditionalModule; } });
108
+ var twilio_module_1 = require("./twilio/twilio.module");
109
+ Object.defineProperty(exports, "twilioModule", { enumerable: true, get: function () { return twilio_module_1.twilioModule; } });
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export * from './send-sms.action';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,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("./send-sms.action"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const sendSmsAction: WorkflowActionTrigger;
3
+ //# sourceMappingURL=send-sms.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-sms.action.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/send-sms.action.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,aAAa,EAAE,qBAoD3B,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendSmsAction = void 0;
4
+ const types_1 = require("../../types");
5
+ const send_sms_service_1 = require("../services/send-sms.service");
6
+ exports.sendSmsAction = {
7
+ id: 'send-sms',
8
+ name: 'Send SMS',
9
+ description: 'Send an SMS message to a phone number',
10
+ category: types_1.NODE_CATEGORY.ACTION,
11
+ icon: '📤',
12
+ serviceClass: send_sms_service_1.SendSmsService,
13
+ inputs: [
14
+ {
15
+ id: 'phoneNumber',
16
+ name: 'Phone Number',
17
+ description: 'Recipient phone number (E.164 format)',
18
+ type: types_1.FIELD_TYPE.PHONE,
19
+ validation: {
20
+ required: true,
21
+ pattern: '^\\+[1-9]\\d{1,14}$',
22
+ },
23
+ placeholder: '+1234567890',
24
+ },
25
+ {
26
+ id: 'messageBody',
27
+ name: 'Message Body',
28
+ description: 'The SMS message content',
29
+ type: types_1.FIELD_TYPE.STRING,
30
+ validation: {
31
+ required: true,
32
+ minLength: 1,
33
+ maxLength: 1600,
34
+ },
35
+ placeholder: 'Enter your SMS message...',
36
+ },
37
+ ],
38
+ outputs: [
39
+ {
40
+ id: 'messageSid',
41
+ name: 'Message SID',
42
+ description: 'Twilio message SID',
43
+ type: types_1.FIELD_TYPE.STRING,
44
+ },
45
+ {
46
+ id: 'status',
47
+ name: 'Status',
48
+ description: 'Message delivery status',
49
+ type: types_1.FIELD_TYPE.STRING,
50
+ },
51
+ {
52
+ id: 'sentAt',
53
+ name: 'Sent At',
54
+ description: 'Timestamp when message was sent',
55
+ type: types_1.FIELD_TYPE.DATE,
56
+ },
57
+ ],
58
+ };
59
+ //# sourceMappingURL=send-sms.action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-sms.action.js","sourceRoot":"","sources":["../../../../src/modules/twilio/actions/send-sms.action.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,mEAA8D;AAEjD,QAAA,aAAa,GAA0B;IAClD,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,qBAAa,CAAC,MAAM;IAC9B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,iCAAc;IAC5B,MAAM,EAAE;QACN;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,qBAAqB;aAC/B;YACD,WAAW,EAAE,aAAa;SAC3B;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,WAAW,EAAE,2BAA2B;SACzC;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yBAAyB;YACtC,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,2 @@
1
+ export * from './twilio-auth.service';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,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("./twilio-auth.service"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
@@ -0,0 +1,5 @@
1
+ import { CredentialAuthResult, IWorkflowCredentialAuthService } from '../../types';
2
+ export declare class TwilioAuthService implements IWorkflowCredentialAuthService {
3
+ authenticate(credentials: Record<string, unknown>): Promise<CredentialAuthResult>;
4
+ }
5
+ //# sourceMappingURL=twilio-auth.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twilio-auth.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/twilio-auth.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAEnF,qBACa,iBAAkB,YAAW,8BAA8B;IAChE,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAwExF"}
@@ -0,0 +1,62 @@
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.TwilioAuthService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let TwilioAuthService = class TwilioAuthService {
12
+ async authenticate(credentials) {
13
+ try {
14
+ const accountSid = credentials.accountSid;
15
+ const authToken = credentials.authToken;
16
+ if (!accountSid || accountSid.trim().length === 0) {
17
+ return {
18
+ success: false,
19
+ message: 'Account SID is required',
20
+ error: 'MISSING_ACCOUNT_SID',
21
+ };
22
+ }
23
+ if (!authToken || authToken.trim().length === 0) {
24
+ return {
25
+ success: false,
26
+ message: 'Auth token is required',
27
+ error: 'MISSING_AUTH_TOKEN',
28
+ };
29
+ }
30
+ if (accountSid.length !== 34 || !accountSid.startsWith('AC')) {
31
+ return {
32
+ success: false,
33
+ message: 'Invalid Account SID format',
34
+ error: 'INVALID_ACCOUNT_SID_FORMAT',
35
+ };
36
+ }
37
+ if (authToken.length !== 32) {
38
+ return {
39
+ success: false,
40
+ message: 'Invalid Auth Token format',
41
+ error: 'INVALID_AUTH_TOKEN_FORMAT',
42
+ };
43
+ }
44
+ return {
45
+ success: true,
46
+ message: 'Credentials validated successfully',
47
+ };
48
+ }
49
+ catch (error) {
50
+ return {
51
+ success: false,
52
+ message: error instanceof Error ? error.message : 'Unknown error occurred',
53
+ error: 'AUTH_ERROR',
54
+ };
55
+ }
56
+ }
57
+ };
58
+ exports.TwilioAuthService = TwilioAuthService;
59
+ exports.TwilioAuthService = TwilioAuthService = __decorate([
60
+ (0, common_1.Injectable)()
61
+ ], TwilioAuthService);
62
+ //# sourceMappingURL=twilio-auth.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twilio-auth.service.js","sourceRoot":"","sources":["../../../../src/modules/twilio/auth/twilio-auth.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC5B,KAAK,CAAC,YAAY,CAAC,WAAoC;QACrD,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,WAAW,CAAC,UAAoB,CAAC;YACpD,MAAM,SAAS,GAAG,WAAW,CAAC,SAAmB,CAAC;YAElD,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAClD,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,yBAAyB;oBAClC,KAAK,EAAE,qBAAqB;iBAC7B,CAAC;YACJ,CAAC;YAED,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAChD,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,wBAAwB;oBACjC,KAAK,EAAE,oBAAoB;iBAC5B,CAAC;YACJ,CAAC;YAED,IAAI,UAAU,CAAC,MAAM,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC7D,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,4BAA4B;oBACrC,KAAK,EAAE,4BAA4B;iBACpC,CAAC;YACJ,CAAC;YAED,IAAI,SAAS,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;gBAC5B,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,2BAA2B;oBACpC,KAAK,EAAE,2BAA2B;iBACnC,CAAC;YACJ,CAAC;YAyBD,OAAO;gBACL,OAAO,EAAE,IAAI;gBACb,OAAO,EAAE,oCAAoC;aAC9C,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB;gBAC1E,KAAK,EAAE,YAAY;aACpB,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAA;AAzEY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;GACA,iBAAiB,CAyE7B"}
@@ -0,0 +1,3 @@
1
+ import { CredentialFieldDefinition } from '../types';
2
+ export declare const twilioCredentials: CredentialFieldDefinition[];
3
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/modules/twilio/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAc,MAAM,UAAU,CAAC;AAEjE,eAAO,MAAM,iBAAiB,EAAE,yBAAyB,EA0CxD,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.twilioCredentials = void 0;
4
+ const types_1 = require("../types");
5
+ exports.twilioCredentials = [
6
+ {
7
+ id: 'accountSid',
8
+ name: 'Account SID',
9
+ description: 'Your Twilio Account SID',
10
+ type: types_1.FIELD_TYPE.STRING,
11
+ validation: {
12
+ required: true,
13
+ minLength: 34,
14
+ maxLength: 34,
15
+ },
16
+ placeholder: 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
17
+ sensitive: true,
18
+ required: true,
19
+ },
20
+ {
21
+ id: 'authToken',
22
+ name: 'Auth Token',
23
+ description: 'Your Twilio Auth Token',
24
+ type: types_1.FIELD_TYPE.STRING,
25
+ validation: {
26
+ required: true,
27
+ minLength: 32,
28
+ maxLength: 32,
29
+ },
30
+ placeholder: 'Your auth token',
31
+ sensitive: true,
32
+ required: true,
33
+ },
34
+ {
35
+ id: 'fromNumber',
36
+ name: 'From Phone Number',
37
+ description: 'Default phone number to send messages from (optional)',
38
+ type: types_1.FIELD_TYPE.PHONE,
39
+ validation: {
40
+ required: false,
41
+ pattern: '^\\+[1-9]\\d{1,14}$',
42
+ },
43
+ placeholder: '+1234567890',
44
+ sensitive: false,
45
+ required: false,
46
+ },
47
+ ];
48
+ //# sourceMappingURL=credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/modules/twilio/credentials.ts"],"names":[],"mappings":";;;AAAA,oCAAiE;AAEpD,QAAA,iBAAiB,GAAgC;IAC5D;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,EAAE;SACd;QACD,WAAW,EAAE,oCAAoC;QACjD,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,kBAAU,CAAC,MAAM;QACvB,UAAU,EAAE;YACV,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,EAAE;SACd;QACD,WAAW,EAAE,iBAAiB;QAC9B,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;KACf;IACD;QACE,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,kBAAU,CAAC,KAAK;QACtB,UAAU,EAAE;YACV,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,qBAAqB;SAC/B;QACD,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,KAAK;KAChB;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './message-received.service';
2
+ export * from './send-sms.service';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
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("./message-received.service"), exports);
18
+ __exportStar(require("./send-sms.service"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,qDAAmC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class MessageReceivedService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, _context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=message-received.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-received.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/services/message-received.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,sBAAuB,YAAW,sBAAsB;IAC7D,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,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.MessageReceivedService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let MessageReceivedService = class MessageReceivedService {
12
+ async perform(inputs, _context) {
13
+ const phoneNumber = inputs.phoneNumber;
14
+ const _webhookUrl = inputs.webhookUrl;
15
+ return {
16
+ messageBody: '',
17
+ fromNumber: '',
18
+ toNumber: phoneNumber,
19
+ messageSid: '',
20
+ receivedAt: new Date().toISOString(),
21
+ };
22
+ }
23
+ };
24
+ exports.MessageReceivedService = MessageReceivedService;
25
+ exports.MessageReceivedService = MessageReceivedService = __decorate([
26
+ (0, common_1.Injectable)()
27
+ ], MessageReceivedService);
28
+ //# sourceMappingURL=message-received.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-received.service.js","sourceRoot":"","sources":["../../../../src/modules/twilio/services/message-received.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,QAA+B;QAI/B,MAAM,WAAW,GAAG,MAAM,CAAC,WAAqB,CAAC;QACjD,MAAM,WAAW,GAAG,MAAM,CAAC,UAAoB,CAAC;QAGhD,OAAO;YACL,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,WAAW;YACrB,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACrC,CAAC;IACJ,CAAC;CACF,CAAA;AAnBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;GACA,sBAAsB,CAmBlC"}
@@ -0,0 +1,5 @@
1
+ import { IWorkflowActionService, WorkflowActionContext } from '../../types';
2
+ export declare class SendSmsService implements IWorkflowActionService {
3
+ perform(inputs: Record<string, unknown>, context: WorkflowActionContext): Promise<Record<string, unknown>>;
4
+ }
5
+ //# sourceMappingURL=send-sms.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-sms.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/services/send-sms.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAE5E,qBACa,cAAe,YAAW,sBAAsB;IACrD,OAAO,CACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAwBpC"}
@@ -0,0 +1,29 @@
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.SendSmsService = void 0;
10
+ const common_1 = require("@nestjs/common");
11
+ let SendSmsService = class SendSmsService {
12
+ async perform(inputs, context) {
13
+ const _phoneNumber = inputs.phoneNumber;
14
+ const _messageBody = inputs.messageBody;
15
+ const _accountSid = context.credentials?.accountSid;
16
+ const _authToken = context.credentials?.authToken;
17
+ const _fromNumber = context.credentials?.fromNumber || _phoneNumber;
18
+ return {
19
+ messageSid: `SM${Date.now()}`,
20
+ status: 'queued',
21
+ sentAt: new Date().toISOString(),
22
+ };
23
+ }
24
+ };
25
+ exports.SendSmsService = SendSmsService;
26
+ exports.SendSmsService = SendSmsService = __decorate([
27
+ (0, common_1.Injectable)()
28
+ ], SendSmsService);
29
+ //# sourceMappingURL=send-sms.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-sms.service.js","sourceRoot":"","sources":["../../../../src/modules/twilio/services/send-sms.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAKrC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,KAAK,CAAC,OAAO,CACX,MAA+B,EAC/B,OAA8B;QAI9B,MAAM,YAAY,GAAG,MAAM,CAAC,WAAqB,CAAC;QAClD,MAAM,YAAY,GAAG,MAAM,CAAC,WAAqB,CAAC;QAClD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,UAAoB,CAAC;QAC9D,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,EAAE,SAAmB,CAAC;QAC5D,MAAM,WAAW,GAAI,OAAO,CAAC,WAAW,EAAE,UAAqB,IAAI,YAAY,CAAC;QAWhF,OAAO;YACL,UAAU,EAAE,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE;YAC7B,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACjC,CAAC;IACJ,CAAC;CACF,CAAA;AA5BY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;GACA,cAAc,CA4B1B"}
@@ -0,0 +1,2 @@
1
+ export * from './message-received.trigger';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,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("./message-received.trigger"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C"}
@@ -0,0 +1,3 @@
1
+ import { WorkflowActionTrigger } from '../../types';
2
+ export declare const messageReceivedTrigger: WorkflowActionTrigger;
3
+ //# sourceMappingURL=message-received.trigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-received.trigger.d.ts","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/message-received.trigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAG/E,eAAO,MAAM,sBAAsB,EAAE,qBA8DpC,CAAC"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messageReceivedTrigger = void 0;
4
+ const types_1 = require("../../types");
5
+ const message_received_service_1 = require("../services/message-received.service");
6
+ exports.messageReceivedTrigger = {
7
+ id: 'message-received',
8
+ name: 'Message Received',
9
+ description: 'Triggered when an SMS message is received',
10
+ category: types_1.NODE_CATEGORY.TRIGGER,
11
+ icon: '📥',
12
+ serviceClass: message_received_service_1.MessageReceivedService,
13
+ inputs: [
14
+ {
15
+ id: 'phoneNumber',
16
+ name: 'Phone Number',
17
+ description: 'The phone number to monitor for incoming messages',
18
+ type: types_1.FIELD_TYPE.PHONE,
19
+ validation: {
20
+ required: true,
21
+ pattern: '^\\+[1-9]\\d{1,14}$',
22
+ },
23
+ placeholder: '+1234567890',
24
+ },
25
+ {
26
+ id: 'webhookUrl',
27
+ name: 'Webhook URL',
28
+ description: 'URL to configure in Twilio console for receiving messages',
29
+ type: types_1.FIELD_TYPE.URL,
30
+ validation: {
31
+ required: true,
32
+ },
33
+ placeholder: 'https://your-domain.com/webhook',
34
+ },
35
+ ],
36
+ outputs: [
37
+ {
38
+ id: 'messageBody',
39
+ name: 'Message Body',
40
+ description: 'Content of the received message',
41
+ type: types_1.FIELD_TYPE.STRING,
42
+ },
43
+ {
44
+ id: 'fromNumber',
45
+ name: 'From Number',
46
+ description: 'Phone number that sent the message',
47
+ type: types_1.FIELD_TYPE.PHONE,
48
+ },
49
+ {
50
+ id: 'toNumber',
51
+ name: 'To Number',
52
+ description: 'Phone number that received the message',
53
+ type: types_1.FIELD_TYPE.PHONE,
54
+ },
55
+ {
56
+ id: 'messageSid',
57
+ name: 'Message SID',
58
+ description: 'Twilio message SID',
59
+ type: types_1.FIELD_TYPE.STRING,
60
+ },
61
+ {
62
+ id: 'receivedAt',
63
+ name: 'Received At',
64
+ description: 'Timestamp when message was received',
65
+ type: types_1.FIELD_TYPE.DATE,
66
+ },
67
+ ],
68
+ };
69
+ //# sourceMappingURL=message-received.trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-received.trigger.js","sourceRoot":"","sources":["../../../../src/modules/twilio/triggers/message-received.trigger.ts"],"names":[],"mappings":";;;AAAA,uCAA+E;AAC/E,mFAA8E;AAEjE,QAAA,sBAAsB,GAA0B;IAC3D,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,qBAAa,CAAC,OAAO;IAC/B,IAAI,EAAE,IAAI;IACV,YAAY,EAAE,iDAAsB;IACpC,MAAM,EAAE;QACN;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,mDAAmD;YAChE,IAAI,EAAE,kBAAU,CAAC,KAAK;YACtB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,qBAAqB;aAC/B;YACD,WAAW,EAAE,aAAa;SAC3B;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,2DAA2D;YACxE,IAAI,EAAE,kBAAU,CAAC,GAAG;YACpB,UAAU,EAAE;gBACV,QAAQ,EAAE,IAAI;aACf;YACD,WAAW,EAAE,iCAAiC;SAC/C;KACF;IACD,OAAO,EAAE;QACP;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,kBAAU,CAAC,KAAK;SACvB;QACD;YACE,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,kBAAU,CAAC,KAAK;SACvB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAU,CAAC,MAAM;SACxB;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,kBAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}