@renatoascencio/n8n-nodes-evolution-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +330 -0
  3. package/dist/credentials/EvolutionApi.credentials.d.ts +10 -0
  4. package/dist/credentials/EvolutionApi.credentials.js +84 -0
  5. package/dist/credentials/EvolutionApi.credentials.js.map +1 -0
  6. package/dist/nodes/EvolutionApi/EvolutionApi.node.d.ts +19 -0
  7. package/dist/nodes/EvolutionApi/EvolutionApi.node.js +180 -0
  8. package/dist/nodes/EvolutionApi/EvolutionApi.node.js.map +1 -0
  9. package/dist/nodes/EvolutionApi/EvolutionApi.node.json +22 -0
  10. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.d.ts +18 -0
  11. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js +615 -0
  12. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js.map +1 -0
  13. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.json +19 -0
  14. package/dist/nodes/EvolutionApi/GenericFunctions.d.ts +114 -0
  15. package/dist/nodes/EvolutionApi/GenericFunctions.js +681 -0
  16. package/dist/nodes/EvolutionApi/GenericFunctions.js.map +1 -0
  17. package/dist/nodes/EvolutionApi/constants.d.ts +7 -0
  18. package/dist/nodes/EvolutionApi/constants.js +77 -0
  19. package/dist/nodes/EvolutionApi/constants.js.map +1 -0
  20. package/dist/nodes/EvolutionApi/evolution.svg +11 -0
  21. package/dist/nodes/EvolutionApi/resources/call/index.d.ts +5 -0
  22. package/dist/nodes/EvolutionApi/resources/call/index.js +62 -0
  23. package/dist/nodes/EvolutionApi/resources/call/index.js.map +1 -0
  24. package/dist/nodes/EvolutionApi/resources/call/offer.operation.d.ts +29 -0
  25. package/dist/nodes/EvolutionApi/resources/call/offer.operation.js +56 -0
  26. package/dist/nodes/EvolutionApi/resources/call/offer.operation.js.map +1 -0
  27. package/dist/nodes/EvolutionApi/resources/chat/archive.operation.d.ts +29 -0
  28. package/dist/nodes/EvolutionApi/resources/chat/archive.operation.js +44 -0
  29. package/dist/nodes/EvolutionApi/resources/chat/archive.operation.js.map +1 -0
  30. package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.d.ts +29 -0
  31. package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.js +28 -0
  32. package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.js.map +1 -0
  33. package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.d.ts +29 -0
  34. package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.js +68 -0
  35. package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.js.map +1 -0
  36. package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.d.ts +30 -0
  37. package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.js +143 -0
  38. package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.js.map +1 -0
  39. package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.d.ts +29 -0
  40. package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.js +49 -0
  41. package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.js.map +1 -0
  42. package/dist/nodes/EvolutionApi/resources/chat/get.operation.d.ts +29 -0
  43. package/dist/nodes/EvolutionApi/resources/chat/get.operation.js +28 -0
  44. package/dist/nodes/EvolutionApi/resources/chat/get.operation.js.map +1 -0
  45. package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.d.ts +29 -0
  46. package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.js +23 -0
  47. package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.js.map +1 -0
  48. package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.d.ts +29 -0
  49. package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.js +55 -0
  50. package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.js.map +1 -0
  51. package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.d.ts +30 -0
  52. package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.js +74 -0
  53. package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.js.map +1 -0
  54. package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.d.ts +29 -0
  55. package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.js +124 -0
  56. package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.js.map +1 -0
  57. package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.d.ts +29 -0
  58. package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.js +36 -0
  59. package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.js.map +1 -0
  60. package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.d.ts +29 -0
  61. package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.js +57 -0
  62. package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.js.map +1 -0
  63. package/dist/nodes/EvolutionApi/resources/chat/helpers.d.ts +25 -0
  64. package/dist/nodes/EvolutionApi/resources/chat/helpers.js +219 -0
  65. package/dist/nodes/EvolutionApi/resources/chat/helpers.js.map +1 -0
  66. package/dist/nodes/EvolutionApi/resources/chat/index.d.ts +5 -0
  67. package/dist/nodes/EvolutionApi/resources/chat/index.js +209 -0
  68. package/dist/nodes/EvolutionApi/resources/chat/index.js.map +1 -0
  69. package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.d.ts +29 -0
  70. package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.js +49 -0
  71. package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.js.map +1 -0
  72. package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.d.ts +29 -0
  73. package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.js +48 -0
  74. package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.js.map +1 -0
  75. package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.d.ts +29 -0
  76. package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.js +35 -0
  77. package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.js.map +1 -0
  78. package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.d.ts +29 -0
  79. package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.js +53 -0
  80. package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.js.map +1 -0
  81. package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.d.ts +29 -0
  82. package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.js +44 -0
  83. package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.js.map +1 -0
  84. package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.d.ts +31 -0
  85. package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.js +73 -0
  86. package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.js.map +1 -0
  87. package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.d.ts +38 -0
  88. package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.js +251 -0
  89. package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.js.map +1 -0
  90. package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.d.ts +29 -0
  91. package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.js +44 -0
  92. package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.js.map +1 -0
  93. package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.d.ts +3 -0
  94. package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.js +19 -0
  95. package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.js.map +1 -0
  96. package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.d.ts +29 -0
  97. package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.js +30 -0
  98. package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.js.map +1 -0
  99. package/dist/nodes/EvolutionApi/resources/chatbot/fields.d.ts +10 -0
  100. package/dist/nodes/EvolutionApi/resources/chatbot/fields.js +229 -0
  101. package/dist/nodes/EvolutionApi/resources/chatbot/fields.js.map +1 -0
  102. package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.d.ts +30 -0
  103. package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.js +29 -0
  104. package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.js.map +1 -0
  105. package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.d.ts +29 -0
  106. package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.js +17 -0
  107. package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.js.map +1 -0
  108. package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.d.ts +29 -0
  109. package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.js +18 -0
  110. package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.js.map +1 -0
  111. package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.d.ts +29 -0
  112. package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.js +39 -0
  113. package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.js.map +1 -0
  114. package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.d.ts +29 -0
  115. package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.js +69 -0
  116. package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.js.map +1 -0
  117. package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.d.ts +29 -0
  118. package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.js +17 -0
  119. package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.js.map +1 -0
  120. package/dist/nodes/EvolutionApi/resources/chatbot/helpers.d.ts +24 -0
  121. package/dist/nodes/EvolutionApi/resources/chatbot/helpers.js +273 -0
  122. package/dist/nodes/EvolutionApi/resources/chatbot/helpers.js.map +1 -0
  123. package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.d.ts +29 -0
  124. package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.js +35 -0
  125. package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.js.map +1 -0
  126. package/dist/nodes/EvolutionApi/resources/chatbot/index.d.ts +6 -0
  127. package/dist/nodes/EvolutionApi/resources/chatbot/index.js +210 -0
  128. package/dist/nodes/EvolutionApi/resources/chatbot/index.js.map +1 -0
  129. package/dist/nodes/EvolutionApi/resources/chatbot/methods.d.ts +2 -0
  130. package/dist/nodes/EvolutionApi/resources/chatbot/methods.js +58 -0
  131. package/dist/nodes/EvolutionApi/resources/chatbot/methods.js.map +1 -0
  132. package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.d.ts +33 -0
  133. package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.js +133 -0
  134. package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.js.map +1 -0
  135. package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.d.ts +29 -0
  136. package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.js +112 -0
  137. package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.js.map +1 -0
  138. package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.d.ts +29 -0
  139. package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.js +191 -0
  140. package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.js.map +1 -0
  141. package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.d.ts +29 -0
  142. package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.js +25 -0
  143. package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.js.map +1 -0
  144. package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.d.ts +4 -0
  145. package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.js +26 -0
  146. package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.js.map +1 -0
  147. package/dist/nodes/EvolutionApi/resources/chatwoot/index.d.ts +5 -0
  148. package/dist/nodes/EvolutionApi/resources/chatwoot/index.js +70 -0
  149. package/dist/nodes/EvolutionApi/resources/chatwoot/index.js.map +1 -0
  150. package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.d.ts +30 -0
  151. package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.js +252 -0
  152. package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.js.map +1 -0
  153. package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.d.ts +29 -0
  154. package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.js +25 -0
  155. package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.js.map +1 -0
  156. package/dist/nodes/EvolutionApi/resources/group/create.operation.d.ts +29 -0
  157. package/dist/nodes/EvolutionApi/resources/group/create.operation.js +68 -0
  158. package/dist/nodes/EvolutionApi/resources/group/create.operation.js.map +1 -0
  159. package/dist/nodes/EvolutionApi/resources/group/get.operation.d.ts +29 -0
  160. package/dist/nodes/EvolutionApi/resources/group/get.operation.js +15 -0
  161. package/dist/nodes/EvolutionApi/resources/group/get.operation.js.map +1 -0
  162. package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.d.ts +29 -0
  163. package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.js +15 -0
  164. package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.js.map +1 -0
  165. package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.d.ts +29 -0
  166. package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.js +25 -0
  167. package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.js.map +1 -0
  168. package/dist/nodes/EvolutionApi/resources/group/getMany.operation.d.ts +29 -0
  169. package/dist/nodes/EvolutionApi/resources/group/getMany.operation.js +72 -0
  170. package/dist/nodes/EvolutionApi/resources/group/getMany.operation.js.map +1 -0
  171. package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.d.ts +29 -0
  172. package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.js +21 -0
  173. package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.js.map +1 -0
  174. package/dist/nodes/EvolutionApi/resources/group/helpers.d.ts +8 -0
  175. package/dist/nodes/EvolutionApi/resources/group/helpers.js +139 -0
  176. package/dist/nodes/EvolutionApi/resources/group/helpers.js.map +1 -0
  177. package/dist/nodes/EvolutionApi/resources/group/index.d.ts +7 -0
  178. package/dist/nodes/EvolutionApi/resources/group/index.js +216 -0
  179. package/dist/nodes/EvolutionApi/resources/group/index.js.map +1 -0
  180. package/dist/nodes/EvolutionApi/resources/group/leave.operation.d.ts +29 -0
  181. package/dist/nodes/EvolutionApi/resources/group/leave.operation.js +15 -0
  182. package/dist/nodes/EvolutionApi/resources/group/leave.operation.js.map +1 -0
  183. package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.d.ts +29 -0
  184. package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.js +20 -0
  185. package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.js.map +1 -0
  186. package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.d.ts +29 -0
  187. package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.js +48 -0
  188. package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.js.map +1 -0
  189. package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.d.ts +29 -0
  190. package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.js +43 -0
  191. package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.js.map +1 -0
  192. package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.d.ts +29 -0
  193. package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.js +34 -0
  194. package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.js.map +1 -0
  195. package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.d.ts +29 -0
  196. package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.js +47 -0
  197. package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.js.map +1 -0
  198. package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.d.ts +29 -0
  199. package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.js +67 -0
  200. package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.js.map +1 -0
  201. package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.d.ts +29 -0
  202. package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.js +99 -0
  203. package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.js.map +1 -0
  204. package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.d.ts +29 -0
  205. package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.js +57 -0
  206. package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.js.map +1 -0
  207. package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.d.ts +29 -0
  208. package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.js +31 -0
  209. package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.js.map +1 -0
  210. package/dist/nodes/EvolutionApi/resources/index.d.ts +6 -0
  211. package/dist/nodes/EvolutionApi/resources/index.js +144 -0
  212. package/dist/nodes/EvolutionApi/resources/index.js.map +1 -0
  213. package/dist/nodes/EvolutionApi/resources/instance/connect.operation.d.ts +29 -0
  214. package/dist/nodes/EvolutionApi/resources/instance/connect.operation.js +40 -0
  215. package/dist/nodes/EvolutionApi/resources/instance/connect.operation.js.map +1 -0
  216. package/dist/nodes/EvolutionApi/resources/instance/create.operation.d.ts +30 -0
  217. package/dist/nodes/EvolutionApi/resources/instance/create.operation.js +519 -0
  218. package/dist/nodes/EvolutionApi/resources/instance/create.operation.js.map +1 -0
  219. package/dist/nodes/EvolutionApi/resources/instance/delete.operation.d.ts +3 -0
  220. package/dist/nodes/EvolutionApi/resources/instance/delete.operation.js +11 -0
  221. package/dist/nodes/EvolutionApi/resources/instance/delete.operation.js.map +1 -0
  222. package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.d.ts +3 -0
  223. package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.js +11 -0
  224. package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.js.map +1 -0
  225. package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.d.ts +31 -0
  226. package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.js +149 -0
  227. package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.js.map +1 -0
  228. package/dist/nodes/EvolutionApi/resources/instance/helpers.d.ts +5 -0
  229. package/dist/nodes/EvolutionApi/resources/instance/helpers.js +60 -0
  230. package/dist/nodes/EvolutionApi/resources/instance/helpers.js.map +1 -0
  231. package/dist/nodes/EvolutionApi/resources/instance/index.d.ts +6 -0
  232. package/dist/nodes/EvolutionApi/resources/instance/index.js +128 -0
  233. package/dist/nodes/EvolutionApi/resources/instance/index.js.map +1 -0
  234. package/dist/nodes/EvolutionApi/resources/instance/logout.operation.d.ts +3 -0
  235. package/dist/nodes/EvolutionApi/resources/instance/logout.operation.js +11 -0
  236. package/dist/nodes/EvolutionApi/resources/instance/logout.operation.js.map +1 -0
  237. package/dist/nodes/EvolutionApi/resources/instance/restart.operation.d.ts +3 -0
  238. package/dist/nodes/EvolutionApi/resources/instance/restart.operation.js +13 -0
  239. package/dist/nodes/EvolutionApi/resources/instance/restart.operation.js.map +1 -0
  240. package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.d.ts +29 -0
  241. package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.js +24 -0
  242. package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.js.map +1 -0
  243. package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.d.ts +29 -0
  244. package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.js +11 -0
  245. package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.js.map +1 -0
  246. package/dist/nodes/EvolutionApi/resources/label/getMany.operation.d.ts +3 -0
  247. package/dist/nodes/EvolutionApi/resources/label/getMany.operation.js +12 -0
  248. package/dist/nodes/EvolutionApi/resources/label/getMany.operation.js.map +1 -0
  249. package/dist/nodes/EvolutionApi/resources/label/helpers.d.ts +4 -0
  250. package/dist/nodes/EvolutionApi/resources/label/helpers.js +69 -0
  251. package/dist/nodes/EvolutionApi/resources/label/helpers.js.map +1 -0
  252. package/dist/nodes/EvolutionApi/resources/label/index.d.ts +6 -0
  253. package/dist/nodes/EvolutionApi/resources/label/index.js +88 -0
  254. package/dist/nodes/EvolutionApi/resources/label/index.js.map +1 -0
  255. package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.d.ts +29 -0
  256. package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.js +11 -0
  257. package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.js.map +1 -0
  258. package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.d.ts +29 -0
  259. package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.js +21 -0
  260. package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.js.map +1 -0
  261. package/dist/nodes/EvolutionApi/resources/message/helpers.d.ts +39 -0
  262. package/dist/nodes/EvolutionApi/resources/message/helpers.js +566 -0
  263. package/dist/nodes/EvolutionApi/resources/message/helpers.js.map +1 -0
  264. package/dist/nodes/EvolutionApi/resources/message/index.d.ts +6 -0
  265. package/dist/nodes/EvolutionApi/resources/message/index.js +192 -0
  266. package/dist/nodes/EvolutionApi/resources/message/index.js.map +1 -0
  267. package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.d.ts +29 -0
  268. package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.js +36 -0
  269. package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.js.map +1 -0
  270. package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.d.ts +29 -0
  271. package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.js +114 -0
  272. package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.js.map +1 -0
  273. package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.d.ts +30 -0
  274. package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.js +162 -0
  275. package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.js.map +1 -0
  276. package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.d.ts +29 -0
  277. package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.js +105 -0
  278. package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.js.map +1 -0
  279. package/dist/nodes/EvolutionApi/resources/message/sendList.operation.d.ts +30 -0
  280. package/dist/nodes/EvolutionApi/resources/message/sendList.operation.js +197 -0
  281. package/dist/nodes/EvolutionApi/resources/message/sendList.operation.js.map +1 -0
  282. package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.d.ts +29 -0
  283. package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.js +70 -0
  284. package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.js.map +1 -0
  285. package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.d.ts +29 -0
  286. package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.js +142 -0
  287. package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.js.map +1 -0
  288. package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.d.ts +29 -0
  289. package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.js +67 -0
  290. package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.js.map +1 -0
  291. package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.d.ts +29 -0
  292. package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.js +22 -0
  293. package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.js.map +1 -0
  294. package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.d.ts +29 -0
  295. package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.js +81 -0
  296. package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.js.map +1 -0
  297. package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.d.ts +29 -0
  298. package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.js +147 -0
  299. package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.js.map +1 -0
  300. package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.d.ts +29 -0
  301. package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.js +41 -0
  302. package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.js.map +1 -0
  303. package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.d.ts +29 -0
  304. package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.js +92 -0
  305. package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.js.map +1 -0
  306. package/dist/nodes/EvolutionApi/resources/message/sendText.operation.d.ts +29 -0
  307. package/dist/nodes/EvolutionApi/resources/message/sendText.operation.js +38 -0
  308. package/dist/nodes/EvolutionApi/resources/message/sendText.operation.js.map +1 -0
  309. package/dist/nodes/EvolutionApi/resources/profile/get.operation.d.ts +29 -0
  310. package/dist/nodes/EvolutionApi/resources/profile/get.operation.js +27 -0
  311. package/dist/nodes/EvolutionApi/resources/profile/get.operation.js.map +1 -0
  312. package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.d.ts +29 -0
  313. package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.js +24 -0
  314. package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.js.map +1 -0
  315. package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.d.ts +29 -0
  316. package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.js +27 -0
  317. package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.js.map +1 -0
  318. package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.d.ts +3 -0
  319. package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.js +11 -0
  320. package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.js.map +1 -0
  321. package/dist/nodes/EvolutionApi/resources/profile/index.d.ts +5 -0
  322. package/dist/nodes/EvolutionApi/resources/profile/index.js +136 -0
  323. package/dist/nodes/EvolutionApi/resources/profile/index.js.map +1 -0
  324. package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.d.ts +3 -0
  325. package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.js +11 -0
  326. package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.js.map +1 -0
  327. package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.d.ts +29 -0
  328. package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.js +27 -0
  329. package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.js.map +1 -0
  330. package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.d.ts +29 -0
  331. package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.js +86 -0
  332. package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.js.map +1 -0
  333. package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.d.ts +30 -0
  334. package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.js +133 -0
  335. package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.js.map +1 -0
  336. package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.d.ts +29 -0
  337. package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.js +28 -0
  338. package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.js.map +1 -0
  339. package/dist/nodes/EvolutionApi/resources/proxy/get.operation.d.ts +29 -0
  340. package/dist/nodes/EvolutionApi/resources/proxy/get.operation.js +25 -0
  341. package/dist/nodes/EvolutionApi/resources/proxy/get.operation.js.map +1 -0
  342. package/dist/nodes/EvolutionApi/resources/proxy/helpers.d.ts +3 -0
  343. package/dist/nodes/EvolutionApi/resources/proxy/helpers.js +28 -0
  344. package/dist/nodes/EvolutionApi/resources/proxy/helpers.js.map +1 -0
  345. package/dist/nodes/EvolutionApi/resources/proxy/index.d.ts +5 -0
  346. package/dist/nodes/EvolutionApi/resources/proxy/index.js +70 -0
  347. package/dist/nodes/EvolutionApi/resources/proxy/index.js.map +1 -0
  348. package/dist/nodes/EvolutionApi/resources/proxy/set.operation.d.ts +30 -0
  349. package/dist/nodes/EvolutionApi/resources/proxy/set.operation.js +137 -0
  350. package/dist/nodes/EvolutionApi/resources/proxy/set.operation.js.map +1 -0
  351. package/dist/nodes/EvolutionApi/resources/settings/get.operation.d.ts +29 -0
  352. package/dist/nodes/EvolutionApi/resources/settings/get.operation.js +25 -0
  353. package/dist/nodes/EvolutionApi/resources/settings/get.operation.js.map +1 -0
  354. package/dist/nodes/EvolutionApi/resources/settings/helpers.d.ts +5 -0
  355. package/dist/nodes/EvolutionApi/resources/settings/helpers.js +37 -0
  356. package/dist/nodes/EvolutionApi/resources/settings/helpers.js.map +1 -0
  357. package/dist/nodes/EvolutionApi/resources/settings/index.d.ts +5 -0
  358. package/dist/nodes/EvolutionApi/resources/settings/index.js +70 -0
  359. package/dist/nodes/EvolutionApi/resources/settings/index.js.map +1 -0
  360. package/dist/nodes/EvolutionApi/resources/settings/set.operation.d.ts +30 -0
  361. package/dist/nodes/EvolutionApi/resources/settings/set.operation.js +128 -0
  362. package/dist/nodes/EvolutionApi/resources/settings/set.operation.js.map +1 -0
  363. package/dist/nodes/EvolutionApi/resources/template/create.operation.d.ts +29 -0
  364. package/dist/nodes/EvolutionApi/resources/template/create.operation.js +97 -0
  365. package/dist/nodes/EvolutionApi/resources/template/create.operation.js.map +1 -0
  366. package/dist/nodes/EvolutionApi/resources/template/delete.operation.d.ts +29 -0
  367. package/dist/nodes/EvolutionApi/resources/template/delete.operation.js +50 -0
  368. package/dist/nodes/EvolutionApi/resources/template/delete.operation.js.map +1 -0
  369. package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.d.ts +30 -0
  370. package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.js +48 -0
  371. package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.js.map +1 -0
  372. package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.d.ts +29 -0
  373. package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.js +41 -0
  374. package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.js.map +1 -0
  375. package/dist/nodes/EvolutionApi/resources/template/getMany.operation.d.ts +29 -0
  376. package/dist/nodes/EvolutionApi/resources/template/getMany.operation.js +109 -0
  377. package/dist/nodes/EvolutionApi/resources/template/getMany.operation.js.map +1 -0
  378. package/dist/nodes/EvolutionApi/resources/template/helpers.d.ts +3 -0
  379. package/dist/nodes/EvolutionApi/resources/template/helpers.js +32 -0
  380. package/dist/nodes/EvolutionApi/resources/template/helpers.js.map +1 -0
  381. package/dist/nodes/EvolutionApi/resources/template/index.d.ts +5 -0
  382. package/dist/nodes/EvolutionApi/resources/template/index.js +109 -0
  383. package/dist/nodes/EvolutionApi/resources/template/index.js.map +1 -0
  384. package/dist/nodes/EvolutionApi/resources/template/update.operation.d.ts +29 -0
  385. package/dist/nodes/EvolutionApi/resources/template/update.operation.js +89 -0
  386. package/dist/nodes/EvolutionApi/resources/template/update.operation.js.map +1 -0
  387. package/dist/nodes/EvolutionApi/resources/webhook/get.operation.d.ts +29 -0
  388. package/dist/nodes/EvolutionApi/resources/webhook/get.operation.js +25 -0
  389. package/dist/nodes/EvolutionApi/resources/webhook/get.operation.js.map +1 -0
  390. package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.d.ts +30 -0
  391. package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.js +49 -0
  392. package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.js.map +1 -0
  393. package/dist/nodes/EvolutionApi/resources/webhook/helpers.d.ts +17 -0
  394. package/dist/nodes/EvolutionApi/resources/webhook/helpers.js +144 -0
  395. package/dist/nodes/EvolutionApi/resources/webhook/helpers.js.map +1 -0
  396. package/dist/nodes/EvolutionApi/resources/webhook/index.d.ts +5 -0
  397. package/dist/nodes/EvolutionApi/resources/webhook/index.js +91 -0
  398. package/dist/nodes/EvolutionApi/resources/webhook/index.js.map +1 -0
  399. package/dist/nodes/EvolutionApi/resources/webhook/set.operation.d.ts +29 -0
  400. package/dist/nodes/EvolutionApi/resources/webhook/set.operation.js +174 -0
  401. package/dist/nodes/EvolutionApi/resources/webhook/set.operation.js.map +1 -0
  402. package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.d.ts +29 -0
  403. package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.js +159 -0
  404. package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.js.map +1 -0
  405. package/dist/nodes/EvolutionApi/trigger/auth.d.ts +26 -0
  406. package/dist/nodes/EvolutionApi/trigger/auth.js +96 -0
  407. package/dist/nodes/EvolutionApi/trigger/auth.js.map +1 -0
  408. package/dist/nodes/EvolutionApi/trigger/constants.d.ts +10 -0
  409. package/dist/nodes/EvolutionApi/trigger/constants.js +154 -0
  410. package/dist/nodes/EvolutionApi/trigger/constants.js.map +1 -0
  411. package/dist/nodes/EvolutionApi/trigger/dedupe.d.ts +5 -0
  412. package/dist/nodes/EvolutionApi/trigger/dedupe.js +87 -0
  413. package/dist/nodes/EvolutionApi/trigger/dedupe.js.map +1 -0
  414. package/dist/nodes/EvolutionApi/trigger/payload.d.ts +48 -0
  415. package/dist/nodes/EvolutionApi/trigger/payload.js +265 -0
  416. package/dist/nodes/EvolutionApi/trigger/payload.js.map +1 -0
  417. package/dist/nodes/EvolutionApi/trigger/registration.d.ts +36 -0
  418. package/dist/nodes/EvolutionApi/trigger/registration.js +156 -0
  419. package/dist/nodes/EvolutionApi/trigger/registration.js.map +1 -0
  420. package/dist/nodes/EvolutionApi/types.d.ts +44 -0
  421. package/dist/nodes/EvolutionApi/types.js +3 -0
  422. package/dist/nodes/EvolutionApi/types.js.map +1 -0
  423. package/package.json +83 -0
@@ -0,0 +1,192 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.binaryPassThrough = exports.execute = exports.fields = exports.operations = void 0;
37
+ const constants_1 = require("../../constants");
38
+ const generateMessageId = __importStar(require("./generateMessageId.operation"));
39
+ const sendAudio = __importStar(require("./sendAudio.operation"));
40
+ const sendButtons = __importStar(require("./sendButtons.operation"));
41
+ const sendCarousel = __importStar(require("./sendCarousel.operation"));
42
+ const sendContact = __importStar(require("./sendContact.operation"));
43
+ const sendList = __importStar(require("./sendList.operation"));
44
+ const sendLocation = __importStar(require("./sendLocation.operation"));
45
+ const sendMedia = __importStar(require("./sendMedia.operation"));
46
+ const sendPoll = __importStar(require("./sendPoll.operation"));
47
+ const sendPtv = __importStar(require("./sendPtv.operation"));
48
+ const sendReaction = __importStar(require("./sendReaction.operation"));
49
+ const sendStatus = __importStar(require("./sendStatus.operation"));
50
+ const sendSticker = __importStar(require("./sendSticker.operation"));
51
+ const sendTemplate = __importStar(require("./sendTemplate.operation"));
52
+ const sendText = __importStar(require("./sendText.operation"));
53
+ exports.operations = {
54
+ displayName: 'Operation',
55
+ name: 'operation',
56
+ type: 'options',
57
+ noDataExpression: true,
58
+ displayOptions: {
59
+ show: {
60
+ resource: ['message'],
61
+ },
62
+ },
63
+ options: [
64
+ {
65
+ name: 'Generate Message ID',
66
+ value: 'generateMessageId',
67
+ description: `Generate a valid WhatsApp message ID to pass as Custom Message ID of a send operation, e.g. for retries without duplicates (WhatsApp Baileys only). ${constants_1.REQUIRES_24}`,
68
+ action: 'Generate a message ID',
69
+ },
70
+ {
71
+ name: 'Send Audio',
72
+ value: 'sendAudio',
73
+ description: 'Send a voice note (push-to-talk) from a URL, base64 or binary file; converted to OGG/Opus by Evolution',
74
+ action: 'Send a voice message',
75
+ },
76
+ {
77
+ name: 'Send Buttons',
78
+ value: 'sendButtons',
79
+ description: 'Send a message with quick reply, URL, call, copy code or PIX buttons (1-3 replies or 1-2 call-to-action buttons)',
80
+ action: 'Send a button message',
81
+ },
82
+ {
83
+ name: 'Send Carousel',
84
+ value: 'sendCarousel',
85
+ description: `Send a carousel of 1-10 cards with image, text and buttons (WhatsApp Baileys only). ${constants_1.REQUIRES_24}`,
86
+ action: 'Send a carousel message',
87
+ },
88
+ {
89
+ name: 'Send Contact',
90
+ value: 'sendContact',
91
+ description: 'Send one or more contact cards (vCards)',
92
+ action: 'Send a contact card',
93
+ },
94
+ {
95
+ name: 'Send List',
96
+ value: 'sendList',
97
+ description: 'Send a message with a button that opens a list of selectable rows',
98
+ action: 'Send a list message',
99
+ },
100
+ {
101
+ name: 'Send Location',
102
+ value: 'sendLocation',
103
+ description: 'Send a map location with a name and an address',
104
+ action: 'Send a location',
105
+ },
106
+ {
107
+ name: 'Send Media',
108
+ value: 'sendMedia',
109
+ description: 'Send an image, video, document or audio file from a URL, base64 or binary file, with an optional caption',
110
+ action: 'Send an image, video, document or audio file',
111
+ },
112
+ {
113
+ name: 'Send Poll',
114
+ value: 'sendPoll',
115
+ description: 'Send a poll with 2-10 options (WhatsApp Baileys only)',
116
+ action: 'Send a poll',
117
+ },
118
+ {
119
+ name: 'Send Reaction',
120
+ value: 'sendReaction',
121
+ description: 'React to a message with an emoji, or remove a reaction',
122
+ action: 'React to a message',
123
+ },
124
+ {
125
+ name: 'Send Status',
126
+ value: 'sendStatus',
127
+ description: 'Post a text, image, video or audio status (story) to selected contacts (WhatsApp Baileys only)',
128
+ action: 'Post a status (story)',
129
+ },
130
+ {
131
+ name: 'Send Sticker',
132
+ value: 'sendSticker',
133
+ description: 'Send an image as a sticker; Evolution converts it to WebP (WhatsApp Baileys only)',
134
+ action: 'Send a sticker',
135
+ },
136
+ {
137
+ name: 'Send Template',
138
+ value: 'sendTemplate',
139
+ description: 'Send an approved WhatsApp Business template, e.g. to start a conversation (WhatsApp Cloud API instances only)',
140
+ action: 'Send a template message',
141
+ },
142
+ {
143
+ name: 'Send Text',
144
+ value: 'sendText',
145
+ description: 'Send a text message, optionally as a reply or with mentions',
146
+ action: 'Send a text message',
147
+ },
148
+ {
149
+ name: 'Send Video Note',
150
+ value: 'sendPtv',
151
+ description: 'Send a round video note (PTV) from an MP4 URL, base64 or binary file (WhatsApp Baileys only)',
152
+ action: 'Send a video note',
153
+ },
154
+ ],
155
+ default: 'sendText',
156
+ };
157
+ exports.fields = [
158
+ ...generateMessageId.description,
159
+ ...sendAudio.description,
160
+ ...sendButtons.description,
161
+ ...sendCarousel.description,
162
+ ...sendContact.description,
163
+ ...sendList.description,
164
+ ...sendLocation.description,
165
+ ...sendMedia.description,
166
+ ...sendPoll.description,
167
+ ...sendReaction.description,
168
+ ...sendStatus.description,
169
+ ...sendSticker.description,
170
+ ...sendTemplate.description,
171
+ ...sendText.description,
172
+ ...sendPtv.description,
173
+ ];
174
+ exports.execute = {
175
+ generateMessageId: generateMessageId.execute,
176
+ sendAudio: sendAudio.execute,
177
+ sendButtons: sendButtons.execute,
178
+ sendCarousel: sendCarousel.execute,
179
+ sendContact: sendContact.execute,
180
+ sendList: sendList.execute,
181
+ sendLocation: sendLocation.execute,
182
+ sendMedia: sendMedia.execute,
183
+ sendPoll: sendPoll.execute,
184
+ sendPtv: sendPtv.execute,
185
+ sendReaction: sendReaction.execute,
186
+ sendStatus: sendStatus.execute,
187
+ sendSticker: sendSticker.execute,
188
+ sendTemplate: sendTemplate.execute,
189
+ sendText: sendText.execute,
190
+ };
191
+ exports.binaryPassThrough = ['sendAudio', 'sendMedia', 'sendPtv', 'sendStatus', 'sendSticker'];
192
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+CAA8C;AAE9C,iFAAmE;AACnE,iEAAmD;AACnD,qEAAuD;AACvD,uEAAyD;AACzD,qEAAuD;AACvD,+DAAiD;AACjD,uEAAyD;AACzD,iEAAmD;AACnD,+DAAiD;AACjD,6DAA+C;AAC/C,uEAAyD;AACzD,mEAAqD;AACrD,qEAAuD;AACvD,uEAAyD;AACzD,+DAAiD;AAWpC,QAAA,UAAU,GAAoB;IACzC,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,qBAAqB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;IAC1B,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,SAAS,EAAE,SAAS,CAAC,OAAO;IAC5B,QAAQ,EAAE,QAAQ,CAAC,OAAO;IAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,UAAU,EAAE,UAAU,CAAC,OAAO;IAC9B,WAAW,EAAE,WAAW,CAAC,OAAO;IAChC,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,QAAQ,EAAE,QAAQ,CAAC,OAAO;CAC3B,CAAC;AAGW,QAAA,iBAAiB,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const constants_1 = require("../../constants");
7
+ const GenericFunctions_1 = require("../../GenericFunctions");
8
+ const helpers_1 = require("./helpers");
9
+ const properties = [
10
+ helpers_1.numberProperty,
11
+ ...(0, helpers_1.mediaSourceProperties)('audio'),
12
+ (0, helpers_1.sendOptionsProperty)([
13
+ (0, helpers_1.delayOption)('recording audio…'),
14
+ {
15
+ displayName: 'Convert to Voice Note',
16
+ name: 'encoding',
17
+ type: 'boolean',
18
+ default: true,
19
+ description: 'Whether Evolution converts the audio to OGG/Opus with ffmpeg so it plays as a voice note. Turn it off only when the file already is OGG/Opus.',
20
+ },
21
+ ...(0, helpers_1.quotedOptions)(`${constants_1.REQUIRES_24} Older versions send the voice note without the quote.`),
22
+ ]),
23
+ ];
24
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['message'], operation: ['sendAudio'] } }, properties);
25
+ async function execute(itemIndex) {
26
+ const number = helpers_1.getRecipient.call(this, itemIndex);
27
+ const options = this.getNodeParameter('options', itemIndex, {});
28
+ const media = await helpers_1.resolveMediaInput.call(this, itemIndex);
29
+ const fields = { number };
30
+ if (options.encoding === false)
31
+ fields.encoding = false;
32
+ (0, helpers_1.applySendOptions)(this.getNode(), itemIndex, options, fields);
33
+ const body = (0, GenericFunctions_1.buildMediaRequestBody)(media, fields, { mediaField: 'audio', allowMultipart: true });
34
+ return await helpers_1.postMessage.call(this, itemIndex, 'sendWhatsAppAudio', body);
35
+ }
36
+ //# sourceMappingURL=sendAudio.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendAudio.operation.js","sourceRoot":"","sources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AG,IAAA,wCAAqB,EAAC,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IACjG,OAAO,MAAM,qBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAC;AAC5E,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const helpers_1 = require("./helpers");
7
+ const BUTTON_TYPES = ['reply', 'copy', 'url', 'call', 'pix'];
8
+ const BUTTONS_EXAMPLE = `[
9
+ { "type": "reply", "displayText": "Yes", "id": "yes" },
10
+ { "type": "reply", "displayText": "No", "id": "no" }
11
+ ]`;
12
+ const RULES = 'Use 1-3 Quick Reply buttons, any combination of URL/Call/Copy Code buttons, or a single PIX Payment button. Evolution API 2.4+ limits URL/Call/Copy Code buttons to 2; 2.3.x has no server limit.';
13
+ const properties = [
14
+ helpers_1.numberProperty,
15
+ {
16
+ displayName: 'Title',
17
+ name: 'buttonsTitle',
18
+ type: 'string',
19
+ required: true,
20
+ default: '',
21
+ placeholder: 'Confirm your appointment',
22
+ description: 'Bold title at the top of the message',
23
+ },
24
+ {
25
+ displayName: 'Description',
26
+ name: 'buttonsDescription',
27
+ type: 'string',
28
+ default: '',
29
+ typeOptions: { rows: 2 },
30
+ description: 'Body text shown under the title',
31
+ },
32
+ helpers_1.interactiveInputModeProperty,
33
+ {
34
+ displayName: 'Buttons',
35
+ name: 'buttons',
36
+ type: 'fixedCollection',
37
+ required: true,
38
+ typeOptions: { multipleValues: true },
39
+ placeholder: 'Add Button',
40
+ default: {},
41
+ description: `Buttons of the message. ${RULES}`,
42
+ displayOptions: { show: { interactiveInputMode: ['fields'] } },
43
+ options: [
44
+ {
45
+ displayName: 'Button',
46
+ name: 'button',
47
+ values: (0, helpers_1.buttonValueProperties)(BUTTON_TYPES),
48
+ },
49
+ ],
50
+ },
51
+ {
52
+ displayName: 'Buttons (JSON)',
53
+ name: 'buttonsJson',
54
+ type: 'json',
55
+ required: true,
56
+ default: '',
57
+ placeholder: BUTTONS_EXAMPLE,
58
+ description: `Array of buttons: { "type": "reply", "displayText", "id" }, { "type": "url", "displayText", "url" }, { "type": "call", "displayText", "phoneNumber" }, { "type": "copy", "displayText", "copyCode" } or { "type": "pix", "currency", "name", "keyType", "key" }. ${RULES}`,
59
+ displayOptions: { show: { interactiveInputMode: ['json'] } },
60
+ },
61
+ (0, helpers_1.sendOptionsProperty)([
62
+ (0, helpers_1.delayOption)(),
63
+ {
64
+ displayName: 'Footer',
65
+ name: 'footer',
66
+ type: 'string',
67
+ default: '',
68
+ description: 'Small text shown at the bottom of the message',
69
+ },
70
+ {
71
+ displayName: 'Header Image URL',
72
+ name: 'thumbnailUrl',
73
+ type: 'string',
74
+ default: '',
75
+ placeholder: 'https://example.com/banner.jpg',
76
+ description: 'Public URL of an image shown above the title',
77
+ },
78
+ ...helpers_1.mentionOptions,
79
+ ...(0, helpers_1.quotedOptions)(),
80
+ ]),
81
+ ];
82
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['message'], operation: ['sendButtons'] } }, properties);
83
+ async function execute(itemIndex) {
84
+ var _a, _b;
85
+ const node = this.getNode();
86
+ const number = helpers_1.getRecipient.call(this, itemIndex);
87
+ const title = helpers_1.getString.call(this, 'buttonsTitle', itemIndex);
88
+ if (!title)
89
+ throw (0, helpers_1.operationError)(node, itemIndex, 'Title is required');
90
+ const mode = this.getNodeParameter('interactiveInputMode', itemIndex, 'fields');
91
+ const rawButtons = mode === 'json'
92
+ ? (0, helpers_1.parseJsonArray)(node, itemIndex, this.getNodeParameter('buttonsJson', itemIndex, ''), 'Buttons (JSON)', ['buttons'])
93
+ : (0, helpers_1.getCollectionEntries)(this.getNodeParameter('buttons', itemIndex, {}), 'button');
94
+ const buttons = rawButtons.map((raw, index) => (0, helpers_1.normalizeButton)(node, itemIndex, raw, `Button ${index + 1}`, BUTTON_TYPES));
95
+ (0, helpers_1.assertButtonRules)(node, itemIndex, buttons);
96
+ const body = { number, title, buttons };
97
+ const buttonsDescription = helpers_1.getString.call(this, 'buttonsDescription', itemIndex);
98
+ if (buttonsDescription)
99
+ body.description = buttonsDescription;
100
+ const options = this.getNodeParameter('options', itemIndex, {});
101
+ const footer = String((_a = options.footer) !== null && _a !== void 0 ? _a : '').trim();
102
+ if (footer)
103
+ body.footer = footer;
104
+ const thumbnailUrl = String((_b = options.thumbnailUrl) !== null && _b !== void 0 ? _b : '').trim();
105
+ if (thumbnailUrl) {
106
+ if (!/^https?:\/\//i.test(thumbnailUrl)) {
107
+ throw (0, helpers_1.operationError)(node, itemIndex, 'Header Image URL must start with http:// or https://');
108
+ }
109
+ body.thumbnailUrl = thumbnailUrl;
110
+ }
111
+ (0, helpers_1.applySendOptions)(node, itemIndex, options, body);
112
+ return await helpers_1.postMessage.call(this, itemIndex, 'sendButtons', body);
113
+ }
114
+ //# sourceMappingURL=sendButtons.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendButtons.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/sendButtons.operation.ts"],"names":[],"mappings":";;;AAmHA,0BAsCC;AAxJD,+CAAoD;AAEpD,uCAiBmB;AAEnB,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAE7D,MAAM,eAAe,GAAG;;;EAGtB,CAAC;AAEH,MAAM,KAAK,GACT,mMAAmM,CAAC;AAEtM,MAAM,UAAU,GAAsB;IACpC,wBAAc;IACd;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,0BAA0B;QACvC,WAAW,EAAE,sCAAsC;KACpD;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;QACxB,WAAW,EAAE,iCAAiC;KAC/C;IACD,sCAA4B;IAC5B;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,IAAI;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AAE,SAAS,CAAC,CAAC;IACjF,IAAI,kBAAkB;QAAE,IAAI,CAAC,WAAW,GAAG,kBAAkB,CAAC;IAE9D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAgB,CAAC;IAC/E,MAAM,MAAM,GAAG,MAAM,CAAC,MAAA,OAAO,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACnD,IAAI,MAAM;QAAE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAA,OAAO,CAAC,YAAY,mCAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/D,IAAI,YAAY,EAAE,CAAC;QACjB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YACxC,MAAM,IAAA,wBAAc,EAAC,IAAI,EAAE,SAAS,EAAE,sDAAsD,CAAC,CAAC;QAChG,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IACD,IAAA,0BAAgB,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACjD,OAAO,MAAM,qBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { IDataObject, IExecuteFunctions, INode, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function normalizeCards(node: INode, itemIndex: number, rawCards: IDataObject[]): IDataObject[];
30
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.normalizeCards = normalizeCards;
5
+ exports.execute = execute;
6
+ const n8n_workflow_1 = require("n8n-workflow");
7
+ const constants_1 = require("../../constants");
8
+ const GenericFunctions_1 = require("../../GenericFunctions");
9
+ const helpers_1 = require("./helpers");
10
+ const CARD_BUTTON_TYPES = ['reply', 'copy', 'url', 'call'];
11
+ const CARDS_EXAMPLE = `[
12
+ {
13
+ "title": "Pizza",
14
+ "body": "Large, 8 slices - $12",
15
+ "footer": "Free delivery",
16
+ "imageUrl": "https://example.com/pizza.jpg",
17
+ "buttons": [
18
+ { "type": "reply", "displayText": "Order", "id": "order_pizza" },
19
+ { "type": "url", "displayText": "Details", "url": "https://example.com/pizza" }
20
+ ]
21
+ }
22
+ ]`;
23
+ const properties = [
24
+ {
25
+ displayName: `${constants_1.REQUIRES_24} Older servers answer 404 "Cannot POST /message/sendCarousel".`,
26
+ name: 'carouselNotice',
27
+ type: 'notice',
28
+ default: '',
29
+ },
30
+ helpers_1.numberProperty,
31
+ {
32
+ displayName: 'Body',
33
+ name: 'carouselBody',
34
+ type: 'string',
35
+ required: true,
36
+ default: '',
37
+ typeOptions: { rows: 2 },
38
+ description: `Text shown above the cards. For a single card without an image, the node prepends this text to the card body. ${constants_1.REQUIRES_24}`,
39
+ },
40
+ helpers_1.interactiveInputModeProperty,
41
+ {
42
+ displayName: 'Cards',
43
+ name: 'carouselCards',
44
+ type: 'fixedCollection',
45
+ required: true,
46
+ typeOptions: { multipleValues: true },
47
+ placeholder: 'Add Card',
48
+ default: {},
49
+ description: 'Cards of the carousel (1 to 10), each with 1 to 3 buttons',
50
+ displayOptions: { show: { interactiveInputMode: ['fields'] } },
51
+ options: [
52
+ {
53
+ displayName: 'Card',
54
+ name: 'card',
55
+ values: [
56
+ {
57
+ displayName: 'Title',
58
+ name: 'title',
59
+ type: 'string',
60
+ default: '',
61
+ description: 'Prepended in bold to the card body because Evolution ignores card titles',
62
+ },
63
+ {
64
+ displayName: 'Body',
65
+ name: 'body',
66
+ type: 'string',
67
+ required: true,
68
+ default: '',
69
+ description: 'Text of the card',
70
+ },
71
+ {
72
+ displayName: 'Footer',
73
+ name: 'footer',
74
+ type: 'string',
75
+ default: '',
76
+ },
77
+ {
78
+ displayName: 'Image URL',
79
+ name: 'imageUrl',
80
+ type: 'string',
81
+ default: '',
82
+ placeholder: 'https://example.com/product.jpg',
83
+ description: 'Public URL of the card image',
84
+ },
85
+ {
86
+ displayName: 'Buttons',
87
+ name: 'buttons',
88
+ type: 'fixedCollection',
89
+ typeOptions: { multipleValues: true },
90
+ placeholder: 'Add Button',
91
+ default: {},
92
+ description: '1 to 3 buttons (Quick Reply, URL, Call or Copy Code)',
93
+ options: [
94
+ {
95
+ displayName: 'Button',
96
+ name: 'button',
97
+ values: (0, helpers_1.buttonValueProperties)(CARD_BUTTON_TYPES),
98
+ },
99
+ ],
100
+ },
101
+ ],
102
+ },
103
+ ],
104
+ },
105
+ {
106
+ displayName: 'Cards (JSON)',
107
+ name: 'carouselCardsJson',
108
+ type: 'json',
109
+ required: true,
110
+ default: '',
111
+ placeholder: CARDS_EXAMPLE,
112
+ description: 'Array of 1-10 cards: { "title"?, "body", "footer"?, "imageUrl"?, "buttons": [1-3 buttons of type reply, url, call or copy] }. The node prepends each title in bold to its card body. An object with a "cards" key is accepted too.',
113
+ displayOptions: { show: { interactiveInputMode: ['json'] } },
114
+ },
115
+ (0, helpers_1.sendOptionsProperty)([(0, helpers_1.delayOption)(), ...helpers_1.mentionOptions, ...(0, helpers_1.quotedOptions)()]),
116
+ ];
117
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['message'], operation: ['sendCarousel'] } }, properties);
118
+ function normalizeCards(node, itemIndex, rawCards) {
119
+ if (rawCards.length < 1 || rawCards.length > 10) {
120
+ throw (0, helpers_1.operationError)(node, itemIndex, `A carousel needs between 1 and 10 cards (got ${rawCards.length})`);
121
+ }
122
+ return rawCards.map((rawCard, cardIndex) => {
123
+ const label = `Card ${cardIndex + 1}`;
124
+ const body = (0, helpers_1.str)(rawCard, 'body');
125
+ if (!body)
126
+ throw (0, helpers_1.operationError)(node, itemIndex, `${label}: Body is required`);
127
+ const rawButtons = Array.isArray(rawCard.buttons)
128
+ ? rawCard.buttons
129
+ : (0, helpers_1.getCollectionEntries)(rawCard.buttons, 'button');
130
+ if (rawButtons.length < 1 || rawButtons.length > 3) {
131
+ throw (0, helpers_1.operationError)(node, itemIndex, `${label}: a card needs between 1 and 3 buttons (got ${rawButtons.length})`);
132
+ }
133
+ const buttons = rawButtons.map((rawButton, buttonIndex) => (0, helpers_1.normalizeButton)(node, itemIndex, (0, GenericFunctions_1.isPlainObject)(rawButton) ? rawButton : {}, `${label}, button ${buttonIndex + 1}`, CARD_BUTTON_TYPES));
134
+ const title = (0, helpers_1.str)(rawCard, 'title');
135
+ const card = { body: title ? `*${title}*\n\n${body}` : body, buttons };
136
+ for (const key of ['footer', 'imageUrl']) {
137
+ const value = (0, helpers_1.str)(rawCard, key);
138
+ if (value)
139
+ card[key] = value;
140
+ }
141
+ return card;
142
+ });
143
+ }
144
+ async function execute(itemIndex) {
145
+ const node = this.getNode();
146
+ const number = helpers_1.getRecipient.call(this, itemIndex);
147
+ const body = helpers_1.getString.call(this, 'carouselBody', itemIndex);
148
+ if (!body)
149
+ throw (0, helpers_1.operationError)(node, itemIndex, 'Body is required');
150
+ const mode = this.getNodeParameter('interactiveInputMode', itemIndex, 'fields');
151
+ const rawCards = mode === 'json'
152
+ ? (0, helpers_1.parseJsonArray)(node, itemIndex, this.getNodeParameter('carouselCardsJson', itemIndex, ''), 'Cards (JSON)', ['cards'])
153
+ : (0, helpers_1.getCollectionEntries)(this.getNodeParameter('carouselCards', itemIndex, {}), 'card');
154
+ const cards = normalizeCards(node, itemIndex, rawCards);
155
+ if (cards.length === 1 && !cards[0].imageUrl) {
156
+ cards[0].body = `${body}\n\n${cards[0].body}`;
157
+ }
158
+ const options = this.getNodeParameter('options', itemIndex, {});
159
+ const payload = (0, helpers_1.applySendOptions)(node, itemIndex, options, { number, body, cards });
160
+ return await helpers_1.postMessage.call(this, itemIndex, 'sendCarousel', payload);
161
+ }
162
+ //# sourceMappingURL=sendCarousel.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendCarousel.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/sendCarousel.operation.ts"],"names":[],"mappings":";;;AA8IA,wCA6CC;AAQD,0BA2BC;AA7ND,+CAAoD;AAEpD,+CAA8C;AAC9C,6DAAuD;AACvD,uCAiBmB;AAGnB,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAE3D,MAAM,aAAa,GAAG;;;;;;;;;;;EAWpB,CAAC;AAEH,MAAM,UAAU,GAAsB;IACpC;QACE,WAAW,EAAE,GAAG,uBAAW,gEAAgE;QAC3F,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