@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,566 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PIX_KEY_TYPE_OPTIONS = exports.BUTTON_TYPE_OPTIONS = exports.messageIdOption = exports.mentionOptions = exports.linkPreviewOption = exports.interactiveInputModeProperty = exports.MEDIA_SOURCE_OPTIONS = exports.numberProperty = void 0;
4
+ exports.mediaSourceProperties = mediaSourceProperties;
5
+ exports.resolveMediaInput = resolveMediaInput;
6
+ exports.delayOption = delayOption;
7
+ exports.quotedOptions = quotedOptions;
8
+ exports.sortOptions = sortOptions;
9
+ exports.sendOptionsProperty = sendOptionsProperty;
10
+ exports.operationError = operationError;
11
+ exports.getString = getString;
12
+ exports.getRecipient = getRecipient;
13
+ exports.buildQuoted = buildQuoted;
14
+ exports.normalizeMentions = normalizeMentions;
15
+ exports.applySendOptions = applySendOptions;
16
+ exports.assertMessageAccepted = assertMessageAccepted;
17
+ exports.postMessage = postMessage;
18
+ exports.parseJsonArray = parseJsonArray;
19
+ exports.getCollectionEntries = getCollectionEntries;
20
+ exports.str = str;
21
+ exports.splitLines = splitLines;
22
+ exports.ensureFileExtension = ensureFileExtension;
23
+ exports.hasFileExtension = hasFileExtension;
24
+ exports.fileNameFromUrl = fileNameFromUrl;
25
+ exports.buttonValueProperties = buttonValueProperties;
26
+ exports.normalizeButton = normalizeButton;
27
+ exports.assertButtonRules = assertButtonRules;
28
+ exports.contactWaId = contactWaId;
29
+ const n8n_workflow_1 = require("n8n-workflow");
30
+ const constants_1 = require("../../constants");
31
+ const GenericFunctions_1 = require("../../GenericFunctions");
32
+ exports.numberProperty = {
33
+ displayName: 'Number',
34
+ name: 'number',
35
+ type: 'string',
36
+ required: true,
37
+ default: '',
38
+ placeholder: '5215512345678',
39
+ description: 'Recipient: phone number with country code (digits only or formatted, e.g. +52 1 55 1234 5678), or a full JID: …@s.whatsapp.net (contact), …@g.us (group), …@lid (hidden-number contact) or …@newsletter (channel, needs Evolution API 2.4+)',
40
+ };
41
+ exports.MEDIA_SOURCE_OPTIONS = [
42
+ {
43
+ name: 'Base64',
44
+ value: 'base64',
45
+ description: 'Base64 string (a data: URI prefix is removed automatically)',
46
+ },
47
+ {
48
+ name: 'Binary File',
49
+ value: 'binary',
50
+ description: 'File from a binary property of the input item (e.g. a downloaded attachment)',
51
+ },
52
+ {
53
+ name: 'URL',
54
+ value: 'url',
55
+ description: 'Public http(s) URL that the Evolution server downloads',
56
+ },
57
+ ];
58
+ function mediaSourceProperties(noun, show = {}, defaultSource = 'url') {
59
+ const withSource = (source) => ({ show: { ...show, mediaSource: [source] } });
60
+ return [
61
+ {
62
+ displayName: 'Input Data',
63
+ name: 'mediaSource',
64
+ type: 'options',
65
+ options: exports.MEDIA_SOURCE_OPTIONS,
66
+ default: defaultSource,
67
+ description: `Where the ${noun} comes from`,
68
+ ...(Object.keys(show).length > 0 ? { displayOptions: { show } } : {}),
69
+ },
70
+ {
71
+ displayName: 'URL',
72
+ name: 'mediaUrl',
73
+ type: 'string',
74
+ required: true,
75
+ default: '',
76
+ placeholder: 'https://example.com/file.jpg',
77
+ description: `Public http(s) URL of the ${noun}. The Evolution server downloads it.`,
78
+ displayOptions: withSource('url'),
79
+ },
80
+ {
81
+ displayName: 'Base64',
82
+ name: 'mediaBase64',
83
+ type: 'string',
84
+ required: true,
85
+ default: '',
86
+ typeOptions: { rows: 2 },
87
+ description: `Base64 content of the ${noun}. A data: URI prefix is removed automatically.`,
88
+ displayOptions: withSource('base64'),
89
+ },
90
+ {
91
+ displayName: 'Input Binary Field',
92
+ name: 'binaryPropertyName',
93
+ type: 'string',
94
+ required: true,
95
+ default: 'data',
96
+ hint: 'The name of the input binary field containing the file to be sent',
97
+ description: `Name of the binary property of the input item that holds the ${noun}`,
98
+ displayOptions: withSource('binary'),
99
+ },
100
+ ];
101
+ }
102
+ async function resolveMediaInput(itemIndex, overrides = {}) {
103
+ const type = this.getNodeParameter('mediaSource', itemIndex, 'url');
104
+ return await GenericFunctions_1.resolveMedia.call(this, itemIndex, {
105
+ type,
106
+ url: type === 'url' ? String(this.getNodeParameter('mediaUrl', itemIndex, '')) : undefined,
107
+ base64: type === 'base64' ? String(this.getNodeParameter('mediaBase64', itemIndex, '')) : undefined,
108
+ binaryPropertyName: type === 'binary'
109
+ ? String(this.getNodeParameter('binaryPropertyName', itemIndex, 'data'))
110
+ : undefined,
111
+ fileName: overrides.fileName || undefined,
112
+ mimeType: overrides.mimeType || undefined,
113
+ });
114
+ }
115
+ exports.interactiveInputModeProperty = {
116
+ displayName: 'Define Using',
117
+ name: 'interactiveInputMode',
118
+ type: 'options',
119
+ noDataExpression: true,
120
+ options: [
121
+ {
122
+ name: 'Fields Below',
123
+ value: 'fields',
124
+ },
125
+ {
126
+ name: 'JSON',
127
+ value: 'json',
128
+ description: 'Pass the whole structure as JSON (handy for expressions and AI agents)',
129
+ },
130
+ ],
131
+ default: 'fields',
132
+ };
133
+ function delayOption(presence = 'typing…') {
134
+ return {
135
+ displayName: 'Delay (Ms)',
136
+ name: 'delay',
137
+ type: 'number',
138
+ typeOptions: { minValue: 0 },
139
+ default: 0,
140
+ description: `Milliseconds to show "${presence}" to the recipient before sending. The request waits that long before it returns.`,
141
+ };
142
+ }
143
+ exports.linkPreviewOption = {
144
+ displayName: 'Link Preview',
145
+ name: 'linkPreview',
146
+ type: 'boolean',
147
+ default: true,
148
+ description: 'Whether to show a preview of the first link in the text. On Evolution API 2.4+ the server downloads the page to build the preview unless this is off; turn it off for bulk sends.',
149
+ };
150
+ exports.mentionOptions = [
151
+ {
152
+ displayName: 'Mention Everyone',
153
+ name: 'mentionsEveryOne',
154
+ type: 'boolean',
155
+ default: false,
156
+ description: 'Whether to mention every participant (groups only)',
157
+ },
158
+ {
159
+ displayName: 'Mentions',
160
+ name: 'mentioned',
161
+ type: 'string',
162
+ default: '',
163
+ placeholder: '5215512345678, 5511999999999',
164
+ description: 'Groups only: numbers or JIDs to mention, separated by commas (a leading "@" is ignored). Write "@" followed by the number in the text so the mention is highlighted.',
165
+ },
166
+ ];
167
+ exports.messageIdOption = {
168
+ displayName: 'Custom Message ID',
169
+ name: 'messageId',
170
+ type: 'string',
171
+ default: '',
172
+ description: `WhatsApp ID to give the sent message, for idempotent retries or to correlate it with another system. It must be a valid WhatsApp message ID: get one with the Message > Generate Message ID operation. ${constants_1.REQUIRES_24}`,
173
+ };
174
+ function quotedOptions(note = '') {
175
+ const suffix = note ? ` ${note}` : '';
176
+ return [
177
+ {
178
+ displayName: 'Reply To Message (JSON)',
179
+ name: 'quotedMessage',
180
+ type: 'json',
181
+ default: '',
182
+ description: `Full message to reply to, e.g. the "data" of a MESSAGES_UPSERT webhook: { "key": { "id", "remoteJid", "fromMe", "participant" }, "message": { … } }. Use it when the message may not be stored in Evolution's database. Takes precedence over Reply To Message ID.${suffix}`,
183
+ },
184
+ {
185
+ displayName: 'Reply To Message ID',
186
+ name: 'quotedMessageId',
187
+ type: 'string',
188
+ default: '',
189
+ description: `ID (key.id) of the message to reply to. Evolution loads the original from its database; if it is not stored there, the message is sent without the quote.${suffix}`,
190
+ },
191
+ ];
192
+ }
193
+ function sortOptions(options) {
194
+ return [...options].sort((a, b) => a.displayName.localeCompare(b.displayName));
195
+ }
196
+ function sendOptionsProperty(options) {
197
+ return {
198
+ displayName: 'Options',
199
+ name: 'options',
200
+ type: 'collection',
201
+ placeholder: 'Add Option',
202
+ default: {},
203
+ options: sortOptions(options),
204
+ };
205
+ }
206
+ function operationError(node, itemIndex, message, description) {
207
+ return new n8n_workflow_1.NodeOperationError(node, message, { itemIndex, description });
208
+ }
209
+ function getString(name, itemIndex) {
210
+ const value = this.getNodeParameter(name, itemIndex, '');
211
+ return value === undefined || value === null ? '' : String(value).trim();
212
+ }
213
+ function getRecipient(itemIndex) {
214
+ const number = (0, GenericFunctions_1.normalizeNumber)(this.getNodeParameter('number', itemIndex, ''));
215
+ if (!number)
216
+ throw operationError(this.getNode(), itemIndex, 'Number is required');
217
+ return number;
218
+ }
219
+ function buildQuoted(node, itemIndex, options) {
220
+ var _a, _b;
221
+ let parsed;
222
+ try {
223
+ parsed = (0, GenericFunctions_1.parseJsonParameter)(options.quotedMessage, 'Reply To Message (JSON)');
224
+ }
225
+ catch (error) {
226
+ throw operationError(node, itemIndex, error.message);
227
+ }
228
+ if (parsed !== undefined && parsed !== null && parsed !== '') {
229
+ const source = (0, GenericFunctions_1.isPlainObject)(parsed) && (0, GenericFunctions_1.isPlainObject)(parsed.data) ? parsed.data : parsed;
230
+ const key = (0, GenericFunctions_1.isPlainObject)(source) && (0, GenericFunctions_1.isPlainObject)(source.key) ? source.key : undefined;
231
+ if (!key || !String((_a = key.id) !== null && _a !== void 0 ? _a : '').trim()) {
232
+ throw operationError(node, itemIndex, 'Reply To Message (JSON) must be a message object with "key.id"', 'Example: { "key": { "id": "3EB0…", "remoteJid": "5215512345678@s.whatsapp.net", "fromMe": false }, "message": { "conversation": "Hi" } }');
233
+ }
234
+ const quotedKey = (0, GenericFunctions_1.compactObject)({ ...key });
235
+ if (typeof quotedKey.fromMe === 'string')
236
+ quotedKey.fromMe = quotedKey.fromMe === 'true';
237
+ const quoted = { key: quotedKey };
238
+ if ((0, GenericFunctions_1.isPlainObject)(source.message)) {
239
+ quoted.message = source.message;
240
+ }
241
+ return quoted;
242
+ }
243
+ const id = String((_b = options.quotedMessageId) !== null && _b !== void 0 ? _b : '').trim();
244
+ return id ? { key: { id } } : undefined;
245
+ }
246
+ function normalizeMentions(value) {
247
+ const entries = Array.isArray(value) ? value : String(value !== null && value !== void 0 ? value : '').split(/[,\n;]/);
248
+ return (0, GenericFunctions_1.normalizeNumberList)(entries.map((entry) => String(entry !== null && entry !== void 0 ? entry : '')
249
+ .trim()
250
+ .replace(/^@+/, '')));
251
+ }
252
+ function applySendOptions(node, itemIndex, options, body) {
253
+ var _a;
254
+ const delay = Number(options.delay);
255
+ if (options.delay !== undefined && options.delay !== '' && Number.isFinite(delay) && delay > 0) {
256
+ body.delay = Math.round(delay);
257
+ }
258
+ if (options.linkPreview !== undefined)
259
+ body.linkPreview = options.linkPreview === true;
260
+ const quoted = buildQuoted(node, itemIndex, options);
261
+ if (quoted)
262
+ body.quoted = quoted;
263
+ if (options.mentionsEveryOne === true)
264
+ body.mentionsEveryOne = true;
265
+ const mentioned = normalizeMentions(options.mentioned);
266
+ if (mentioned.length > 0)
267
+ body.mentioned = mentioned;
268
+ const messageId = String((_a = options.messageId) !== null && _a !== void 0 ? _a : '').trim();
269
+ if (messageId)
270
+ body.messageId = messageId;
271
+ return body;
272
+ }
273
+ function assertMessageAccepted(node, response, itemIndex) {
274
+ if (!(0, GenericFunctions_1.isPlainObject)(response) || response.key !== undefined)
275
+ return;
276
+ const isMetaError = response.error_data !== undefined ||
277
+ response.fbtrace_id !== undefined ||
278
+ (typeof response.code === 'number' && typeof response.type === 'string');
279
+ if (!isMetaError)
280
+ return;
281
+ const messages = (0, GenericFunctions_1.extractEvolutionMessages)(response);
282
+ const errorData = response.error_data;
283
+ if ((0, GenericFunctions_1.isPlainObject)(errorData) && typeof errorData.details === 'string') {
284
+ const details = errorData.details.trim();
285
+ if (details && !messages.includes(details))
286
+ messages.push(details);
287
+ }
288
+ const detail = messages.join('; ') || 'unknown error';
289
+ throw operationError(node, itemIndex, `WhatsApp Cloud API rejected the message: ${detail}`, `Evolution API answered with Meta's error${response.code !== undefined ? ` (code ${String(response.code)})` : ''} instead of the sent message.`);
290
+ }
291
+ async function postMessage(itemIndex, route, body) {
292
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
293
+ const response = await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', `/message/${route}/${instance}`, body, {}, { itemIndex });
294
+ assertMessageAccepted(this.getNode(), response, itemIndex);
295
+ return response;
296
+ }
297
+ function parseJsonArray(node, itemIndex, value, label, wrapperKeys) {
298
+ if (value === undefined || value === null || (typeof value === 'string' && !value.trim())) {
299
+ return [];
300
+ }
301
+ let parsed;
302
+ try {
303
+ parsed = (0, GenericFunctions_1.parseJsonParameter)(value, label);
304
+ }
305
+ catch (error) {
306
+ throw operationError(node, itemIndex, error.message);
307
+ }
308
+ if ((0, GenericFunctions_1.isPlainObject)(parsed)) {
309
+ const wrapper = parsed;
310
+ const key = wrapperKeys.find((candidate) => Array.isArray(wrapper[candidate]));
311
+ if (key)
312
+ parsed = wrapper[key];
313
+ }
314
+ if (!Array.isArray(parsed)) {
315
+ throw operationError(node, itemIndex, `${label} must be a JSON array`);
316
+ }
317
+ return parsed.map((entry) => ((0, GenericFunctions_1.isPlainObject)(entry) ? entry : {}));
318
+ }
319
+ function getCollectionEntries(value, group) {
320
+ if (!(0, GenericFunctions_1.isPlainObject)(value))
321
+ return [];
322
+ const entries = value[group];
323
+ if (Array.isArray(entries))
324
+ return entries.filter(GenericFunctions_1.isPlainObject);
325
+ return (0, GenericFunctions_1.isPlainObject)(entries) ? [entries] : [];
326
+ }
327
+ function str(source, key) {
328
+ const value = source[key];
329
+ return value === undefined || value === null ? '' : String(value).trim();
330
+ }
331
+ function splitLines(value) {
332
+ const entries = Array.isArray(value) ? value : String(value !== null && value !== void 0 ? value : '').split(/\r?\n/);
333
+ return entries.map((entry) => String(entry !== null && entry !== void 0 ? entry : '').trim()).filter((entry) => entry !== '');
334
+ }
335
+ const EXTENSION_BY_MIME_TYPE = {
336
+ 'application/json': 'json',
337
+ 'application/msword': 'doc',
338
+ 'application/pdf': 'pdf',
339
+ 'application/vnd.ms-excel': 'xls',
340
+ 'application/vnd.ms-powerpoint': 'ppt',
341
+ 'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'pptx',
342
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'xlsx',
343
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'docx',
344
+ 'application/zip': 'zip',
345
+ 'audio/aac': 'aac',
346
+ 'audio/mp4': 'm4a',
347
+ 'audio/mpeg': 'mp3',
348
+ 'audio/ogg': 'ogg',
349
+ 'audio/wav': 'wav',
350
+ 'image/gif': 'gif',
351
+ 'image/jpeg': 'jpg',
352
+ 'image/png': 'png',
353
+ 'image/webp': 'webp',
354
+ 'text/csv': 'csv',
355
+ 'text/plain': 'txt',
356
+ 'video/3gpp': '3gp',
357
+ 'video/mp4': 'mp4',
358
+ 'video/quicktime': 'mov',
359
+ };
360
+ function ensureFileExtension(fileName, mimeType) {
361
+ if (!fileName || hasFileExtension(fileName) || !mimeType)
362
+ return fileName;
363
+ const extension = EXTENSION_BY_MIME_TYPE[mimeType.split(';')[0].trim().toLowerCase()];
364
+ return extension ? `${fileName}.${extension}` : fileName;
365
+ }
366
+ function hasFileExtension(fileName) {
367
+ return /\.[A-Za-z0-9]{1,8}$/.test(fileName);
368
+ }
369
+ function fileNameFromUrl(url) {
370
+ var _a;
371
+ let segment;
372
+ try {
373
+ segment = (_a = new URL(url).pathname.split('/').pop()) !== null && _a !== void 0 ? _a : '';
374
+ }
375
+ catch {
376
+ return '';
377
+ }
378
+ let decoded = segment;
379
+ try {
380
+ decoded = decodeURIComponent(segment);
381
+ }
382
+ catch {
383
+ }
384
+ decoded = decoded.trim();
385
+ return decoded && hasFileExtension(decoded) ? decoded : '';
386
+ }
387
+ exports.BUTTON_TYPE_OPTIONS = [
388
+ { name: 'Call', value: 'call', description: 'Call a phone number' },
389
+ { name: 'Copy Code', value: 'copy', description: 'Copy a code to the clipboard' },
390
+ {
391
+ name: 'PIX Payment',
392
+ value: 'pix',
393
+ description: 'Brazilian PIX static payment key (must be the only button)',
394
+ },
395
+ {
396
+ name: 'Quick Reply',
397
+ value: 'reply',
398
+ description: 'Reply button; its ID comes back in the reply webhook',
399
+ },
400
+ { name: 'URL', value: 'url', description: 'Open a link' },
401
+ ];
402
+ exports.PIX_KEY_TYPE_OPTIONS = [
403
+ { name: 'CNPJ', value: 'cnpj' },
404
+ { name: 'CPF', value: 'cpf' },
405
+ { name: 'Email', value: 'email' },
406
+ { name: 'Phone', value: 'phone' },
407
+ { name: 'Random Key', value: 'random' },
408
+ ];
409
+ function buttonValueProperties(types) {
410
+ const typeOptions = exports.BUTTON_TYPE_OPTIONS.filter((option) => types.includes(String(option.value)));
411
+ const properties = [
412
+ {
413
+ displayName: 'Type',
414
+ name: 'type',
415
+ type: 'options',
416
+ options: typeOptions,
417
+ default: 'reply',
418
+ },
419
+ {
420
+ displayName: 'Display Text',
421
+ name: 'displayText',
422
+ type: 'string',
423
+ default: '',
424
+ description: 'Label of the button',
425
+ displayOptions: { show: { type: ['reply', 'url', 'call', 'copy'] } },
426
+ },
427
+ {
428
+ displayName: 'Button ID',
429
+ name: 'id',
430
+ type: 'string',
431
+ default: '',
432
+ description: 'ID sent back in the reply webhook when the button is tapped. Defaults to the display text.',
433
+ displayOptions: { show: { type: ['reply'] } },
434
+ },
435
+ {
436
+ displayName: 'URL',
437
+ name: 'url',
438
+ type: 'string',
439
+ default: '',
440
+ placeholder: 'https://example.com',
441
+ displayOptions: { show: { type: ['url'] } },
442
+ },
443
+ {
444
+ displayName: 'Phone Number',
445
+ name: 'phoneNumber',
446
+ type: 'string',
447
+ default: '',
448
+ placeholder: '+5215512345678',
449
+ description: 'Number to call, in international format',
450
+ displayOptions: { show: { type: ['call'] } },
451
+ },
452
+ {
453
+ displayName: 'Copy Code',
454
+ name: 'copyCode',
455
+ type: 'string',
456
+ default: '',
457
+ description: 'Text copied to the clipboard (e.g. a coupon code)',
458
+ displayOptions: { show: { type: ['copy'] } },
459
+ },
460
+ ];
461
+ if (types.includes('pix')) {
462
+ properties.push({
463
+ displayName: 'Currency',
464
+ name: 'currency',
465
+ type: 'string',
466
+ default: 'BRL',
467
+ displayOptions: { show: { type: ['pix'] } },
468
+ }, {
469
+ displayName: 'Merchant Name',
470
+ name: 'name',
471
+ type: 'string',
472
+ default: '',
473
+ displayOptions: { show: { type: ['pix'] } },
474
+ }, {
475
+ displayName: 'PIX Key Type',
476
+ name: 'keyType',
477
+ type: 'options',
478
+ options: exports.PIX_KEY_TYPE_OPTIONS,
479
+ default: 'random',
480
+ displayOptions: { show: { type: ['pix'] } },
481
+ }, {
482
+ displayName: 'PIX Key',
483
+ name: 'key',
484
+ type: 'string',
485
+ default: '',
486
+ displayOptions: { show: { type: ['pix'] } },
487
+ });
488
+ }
489
+ return properties;
490
+ }
491
+ const PIX_KEY_TYPES = exports.PIX_KEY_TYPE_OPTIONS.map((option) => String(option.value));
492
+ function normalizeButton(node, itemIndex, raw, label, allowedTypes) {
493
+ const type = str(raw, 'type');
494
+ if (!allowedTypes.includes(type)) {
495
+ throw operationError(node, itemIndex, `${label}: unsupported button type "${type}"`, `Use one of: ${allowedTypes.join(', ')}.`);
496
+ }
497
+ const requireValue = (key, name) => {
498
+ const value = str(raw, key);
499
+ if (!value)
500
+ throw operationError(node, itemIndex, `${label}: ${name} is required`);
501
+ return value;
502
+ };
503
+ if (type === 'pix') {
504
+ const keyType = str(raw, 'keyType');
505
+ if (!PIX_KEY_TYPES.includes(keyType)) {
506
+ throw operationError(node, itemIndex, `${label}: PIX Key Type must be one of ${PIX_KEY_TYPES.join(', ')}`);
507
+ }
508
+ return {
509
+ type,
510
+ currency: str(raw, 'currency') || 'BRL',
511
+ name: requireValue('name', 'Merchant Name'),
512
+ keyType,
513
+ key: requireValue('key', 'PIX Key'),
514
+ };
515
+ }
516
+ const displayText = requireValue('displayText', 'Display Text');
517
+ if (type === 'reply')
518
+ return { type, displayText, id: str(raw, 'id') || displayText };
519
+ if (type === 'url') {
520
+ const url = requireValue('url', 'URL');
521
+ if (!/^https?:\/\//i.test(url)) {
522
+ throw operationError(node, itemIndex, `${label}: URL must start with http:// or https://`);
523
+ }
524
+ return { type, displayText, url };
525
+ }
526
+ if (type === 'call') {
527
+ return { type, displayText, phoneNumber: requireValue('phoneNumber', 'Phone Number') };
528
+ }
529
+ return { type, displayText, copyCode: requireValue('copyCode', 'Copy Code') };
530
+ }
531
+ function assertButtonRules(node, itemIndex, buttons) {
532
+ const count = (types) => buttons.filter((b) => types.includes(String(b.type))).length;
533
+ const replies = count(['reply']);
534
+ const pix = count(['pix']);
535
+ const rulesHint = 'Allowed combinations: 1-3 Quick Reply buttons, URL/Call/Copy Code buttons (at most 2 on Evolution API 2.4+), or a single PIX Payment button.';
536
+ if (buttons.length === 0) {
537
+ throw operationError(node, itemIndex, 'At least one button is required', rulesHint);
538
+ }
539
+ if (replies > 0 && replies !== buttons.length) {
540
+ throw operationError(node, itemIndex, 'Quick Reply buttons cannot be mixed with other button types', rulesHint);
541
+ }
542
+ if (replies > 3) {
543
+ throw operationError(node, itemIndex, 'A message can have at most 3 Quick Reply buttons', rulesHint);
544
+ }
545
+ const replyIds = buttons.filter((b) => b.type === 'reply').map((b) => String(b.id));
546
+ const duplicateId = replyIds.find((id, index) => replyIds.indexOf(id) !== index);
547
+ if (duplicateId !== undefined) {
548
+ throw operationError(node, itemIndex, `Quick Reply button IDs must be different ("${duplicateId}" is repeated)`, 'The ID defaults to the display text when it is empty.');
549
+ }
550
+ if (pix > 0 && buttons.length > 1) {
551
+ throw operationError(node, itemIndex, 'A PIX Payment button must be the only button of the message', rulesHint);
552
+ }
553
+ }
554
+ function contactWaId(phoneNumber) {
555
+ let digits = phoneNumber.replace(/\D/g, '');
556
+ const countryCode = digits.substring(0, 2);
557
+ if ((countryCode === '52' || countryCode === '54') && digits.length === 13) {
558
+ digits = countryCode + digits.substring(3);
559
+ }
560
+ const brazil = /^(55)(\d{2})\d(\d{8})$/.exec(digits);
561
+ if (brazil && Number(brazil[2]) >= 31 && Number(brazil[3][0]) >= 7) {
562
+ digits = brazil[1] + brazil[2] + brazil[3];
563
+ }
564
+ return digits;
565
+ }
566
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/helpers.ts"],"names":[],"mappings":";;;AAwEA,sDA+CC;AAGD,8CAkBC;AA0BD,kCASC;AAuCD,sCAkBC;AAGD,kCAEC;AAGD,kDASC;AAMD,wCAOC;AAGD,8BAGC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,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QACnE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import type { OperationHandler } from '../../types';
3
+ export declare const operations: INodeProperties;
4
+ export declare const fields: INodeProperties[];
5
+ export declare const execute: Record<string, OperationHandler>;
6
+ export declare const binaryPassThrough: string[];