n8n-nodes-new-evolution-api 2.0.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 (515) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +347 -0
  3. package/dist/credentials/EvolutionApiV2Api.credentials.d.ts +9 -0
  4. package/dist/credentials/EvolutionApiV2Api.credentials.js +50 -0
  5. package/dist/credentials/EvolutionApiV2Api.credentials.js.map +1 -0
  6. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.d.ts +18 -0
  7. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js +835 -0
  8. package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js.map +1 -0
  9. package/dist/nodes/EvolutionApi/EvolutionApiV2.node.d.ts +16 -0
  10. package/dist/nodes/EvolutionApi/EvolutionApiV2.node.js +65 -0
  11. package/dist/nodes/EvolutionApi/EvolutionApiV2.node.js.map +1 -0
  12. package/dist/nodes/EvolutionApi/EvolutionApiV2.node.json +22 -0
  13. package/dist/nodes/EvolutionApi/evolutionapi.svg +14 -0
  14. package/dist/nodes/EvolutionApi/execute/business/getCatalog.d.ts +2 -0
  15. package/dist/nodes/EvolutionApi/execute/business/getCatalog.js +24 -0
  16. package/dist/nodes/EvolutionApi/execute/business/getCatalog.js.map +1 -0
  17. package/dist/nodes/EvolutionApi/execute/business/getCollections.d.ts +2 -0
  18. package/dist/nodes/EvolutionApi/execute/business/getCollections.js +24 -0
  19. package/dist/nodes/EvolutionApi/execute/business/getCollections.js.map +1 -0
  20. package/dist/nodes/EvolutionApi/execute/call/offerCall.d.ts +2 -0
  21. package/dist/nodes/EvolutionApi/execute/call/offerCall.js +24 -0
  22. package/dist/nodes/EvolutionApi/execute/call/offerCall.js.map +1 -0
  23. package/dist/nodes/EvolutionApi/execute/chat/blockContact.d.ts +27 -0
  24. package/dist/nodes/EvolutionApi/execute/chat/blockContact.js +51 -0
  25. package/dist/nodes/EvolutionApi/execute/chat/blockContact.js.map +1 -0
  26. package/dist/nodes/EvolutionApi/execute/chat/checkNumber.d.ts +27 -0
  27. package/dist/nodes/EvolutionApi/execute/chat/checkNumber.js +50 -0
  28. package/dist/nodes/EvolutionApi/execute/chat/checkNumber.js.map +1 -0
  29. package/dist/nodes/EvolutionApi/execute/chat/deleteMessage.d.ts +27 -0
  30. package/dist/nodes/EvolutionApi/execute/chat/deleteMessage.js +62 -0
  31. package/dist/nodes/EvolutionApi/execute/chat/deleteMessage.js.map +1 -0
  32. package/dist/nodes/EvolutionApi/execute/chat/fetchProfilePicture.d.ts +27 -0
  33. package/dist/nodes/EvolutionApi/execute/chat/fetchProfilePicture.js +49 -0
  34. package/dist/nodes/EvolutionApi/execute/chat/fetchProfilePicture.js.map +1 -0
  35. package/dist/nodes/EvolutionApi/execute/chat/findChatByJid.d.ts +2 -0
  36. package/dist/nodes/EvolutionApi/execute/chat/findChatByJid.js +16 -0
  37. package/dist/nodes/EvolutionApi/execute/chat/findChatByJid.js.map +1 -0
  38. package/dist/nodes/EvolutionApi/execute/chat/findChats.d.ts +27 -0
  39. package/dist/nodes/EvolutionApi/execute/chat/findChats.js +57 -0
  40. package/dist/nodes/EvolutionApi/execute/chat/findChats.js.map +1 -0
  41. package/dist/nodes/EvolutionApi/execute/chat/findContacts.d.ts +27 -0
  42. package/dist/nodes/EvolutionApi/execute/chat/findContacts.js +55 -0
  43. package/dist/nodes/EvolutionApi/execute/chat/findContacts.js.map +1 -0
  44. package/dist/nodes/EvolutionApi/execute/chat/findMessages.d.ts +27 -0
  45. package/dist/nodes/EvolutionApi/execute/chat/findMessages.js +57 -0
  46. package/dist/nodes/EvolutionApi/execute/chat/findMessages.js.map +1 -0
  47. package/dist/nodes/EvolutionApi/execute/chat/findStatusMessages.d.ts +27 -0
  48. package/dist/nodes/EvolutionApi/execute/chat/findStatusMessages.js +58 -0
  49. package/dist/nodes/EvolutionApi/execute/chat/findStatusMessages.js.map +1 -0
  50. package/dist/nodes/EvolutionApi/execute/chat/getMediaBase64.d.ts +27 -0
  51. package/dist/nodes/EvolutionApi/execute/chat/getMediaBase64.js +55 -0
  52. package/dist/nodes/EvolutionApi/execute/chat/getMediaBase64.js.map +1 -0
  53. package/dist/nodes/EvolutionApi/execute/chat/manageArchive.d.ts +27 -0
  54. package/dist/nodes/EvolutionApi/execute/chat/manageArchive.js +60 -0
  55. package/dist/nodes/EvolutionApi/execute/chat/manageArchive.js.map +1 -0
  56. package/dist/nodes/EvolutionApi/execute/chat/markChatUnread.d.ts +27 -0
  57. package/dist/nodes/EvolutionApi/execute/chat/markChatUnread.js +58 -0
  58. package/dist/nodes/EvolutionApi/execute/chat/markChatUnread.js.map +1 -0
  59. package/dist/nodes/EvolutionApi/execute/chat/readMessages.d.ts +27 -0
  60. package/dist/nodes/EvolutionApi/execute/chat/readMessages.js +57 -0
  61. package/dist/nodes/EvolutionApi/execute/chat/readMessages.js.map +1 -0
  62. package/dist/nodes/EvolutionApi/execute/chat/sendPresence.d.ts +27 -0
  63. package/dist/nodes/EvolutionApi/execute/chat/sendPresence.js +53 -0
  64. package/dist/nodes/EvolutionApi/execute/chat/sendPresence.js.map +1 -0
  65. package/dist/nodes/EvolutionApi/execute/chat/updateMessage.d.ts +27 -0
  66. package/dist/nodes/EvolutionApi/execute/chat/updateMessage.js +57 -0
  67. package/dist/nodes/EvolutionApi/execute/chat/updateMessage.js.map +1 -0
  68. package/dist/nodes/EvolutionApi/execute/community/communityAcceptInvite.d.ts +27 -0
  69. package/dist/nodes/EvolutionApi/execute/community/communityAcceptInvite.js +48 -0
  70. package/dist/nodes/EvolutionApi/execute/community/communityAcceptInvite.js.map +1 -0
  71. package/dist/nodes/EvolutionApi/execute/community/communityInviteCode.d.ts +27 -0
  72. package/dist/nodes/EvolutionApi/execute/community/communityInviteCode.js +48 -0
  73. package/dist/nodes/EvolutionApi/execute/community/communityInviteCode.js.map +1 -0
  74. package/dist/nodes/EvolutionApi/execute/community/communityInviteInfo.d.ts +27 -0
  75. package/dist/nodes/EvolutionApi/execute/community/communityInviteInfo.js +48 -0
  76. package/dist/nodes/EvolutionApi/execute/community/communityInviteInfo.js.map +1 -0
  77. package/dist/nodes/EvolutionApi/execute/community/communityJoinApprovalMode.d.ts +27 -0
  78. package/dist/nodes/EvolutionApi/execute/community/communityJoinApprovalMode.js +50 -0
  79. package/dist/nodes/EvolutionApi/execute/community/communityJoinApprovalMode.js.map +1 -0
  80. package/dist/nodes/EvolutionApi/execute/community/communityLinkGroups.d.ts +27 -0
  81. package/dist/nodes/EvolutionApi/execute/community/communityLinkGroups.js +54 -0
  82. package/dist/nodes/EvolutionApi/execute/community/communityLinkGroups.js.map +1 -0
  83. package/dist/nodes/EvolutionApi/execute/community/communityMemberAddMode.d.ts +27 -0
  84. package/dist/nodes/EvolutionApi/execute/community/communityMemberAddMode.js +50 -0
  85. package/dist/nodes/EvolutionApi/execute/community/communityMemberAddMode.js.map +1 -0
  86. package/dist/nodes/EvolutionApi/execute/community/communityMetadata.d.ts +27 -0
  87. package/dist/nodes/EvolutionApi/execute/community/communityMetadata.js +48 -0
  88. package/dist/nodes/EvolutionApi/execute/community/communityMetadata.js.map +1 -0
  89. package/dist/nodes/EvolutionApi/execute/community/communityParticipants.d.ts +27 -0
  90. package/dist/nodes/EvolutionApi/execute/community/communityParticipants.js +45 -0
  91. package/dist/nodes/EvolutionApi/execute/community/communityParticipants.js.map +1 -0
  92. package/dist/nodes/EvolutionApi/execute/community/communityRequestParticipantsList.d.ts +27 -0
  93. package/dist/nodes/EvolutionApi/execute/community/communityRequestParticipantsList.js +48 -0
  94. package/dist/nodes/EvolutionApi/execute/community/communityRequestParticipantsList.js.map +1 -0
  95. package/dist/nodes/EvolutionApi/execute/community/communityRequestParticipantsUpdate.d.ts +27 -0
  96. package/dist/nodes/EvolutionApi/execute/community/communityRequestParticipantsUpdate.js +56 -0
  97. package/dist/nodes/EvolutionApi/execute/community/communityRequestParticipantsUpdate.js.map +1 -0
  98. package/dist/nodes/EvolutionApi/execute/community/communityRevokeInviteCode.d.ts +27 -0
  99. package/dist/nodes/EvolutionApi/execute/community/communityRevokeInviteCode.js +48 -0
  100. package/dist/nodes/EvolutionApi/execute/community/communityRevokeInviteCode.js.map +1 -0
  101. package/dist/nodes/EvolutionApi/execute/community/communitySettings.d.ts +27 -0
  102. package/dist/nodes/EvolutionApi/execute/community/communitySettings.js +50 -0
  103. package/dist/nodes/EvolutionApi/execute/community/communitySettings.js.map +1 -0
  104. package/dist/nodes/EvolutionApi/execute/community/communityToggleEphemeral.d.ts +27 -0
  105. package/dist/nodes/EvolutionApi/execute/community/communityToggleEphemeral.js +50 -0
  106. package/dist/nodes/EvolutionApi/execute/community/communityToggleEphemeral.js.map +1 -0
  107. package/dist/nodes/EvolutionApi/execute/community/communityUnlinkGroups.d.ts +27 -0
  108. package/dist/nodes/EvolutionApi/execute/community/communityUnlinkGroups.js +54 -0
  109. package/dist/nodes/EvolutionApi/execute/community/communityUnlinkGroups.js.map +1 -0
  110. package/dist/nodes/EvolutionApi/execute/community/createCommunity.d.ts +27 -0
  111. package/dist/nodes/EvolutionApi/execute/community/createCommunity.js +53 -0
  112. package/dist/nodes/EvolutionApi/execute/community/createCommunity.js.map +1 -0
  113. package/dist/nodes/EvolutionApi/execute/community/fetchCommunities.d.ts +27 -0
  114. package/dist/nodes/EvolutionApi/execute/community/fetchCommunities.js +44 -0
  115. package/dist/nodes/EvolutionApi/execute/community/fetchCommunities.js.map +1 -0
  116. package/dist/nodes/EvolutionApi/execute/community/leaveCommunity.d.ts +27 -0
  117. package/dist/nodes/EvolutionApi/execute/community/leaveCommunity.js +48 -0
  118. package/dist/nodes/EvolutionApi/execute/community/leaveCommunity.js.map +1 -0
  119. package/dist/nodes/EvolutionApi/execute/community/updateCommunityDescription.d.ts +27 -0
  120. package/dist/nodes/EvolutionApi/execute/community/updateCommunityDescription.js +50 -0
  121. package/dist/nodes/EvolutionApi/execute/community/updateCommunityDescription.js.map +1 -0
  122. package/dist/nodes/EvolutionApi/execute/community/updateCommunityParticipants.d.ts +27 -0
  123. package/dist/nodes/EvolutionApi/execute/community/updateCommunityParticipants.js +53 -0
  124. package/dist/nodes/EvolutionApi/execute/community/updateCommunityParticipants.js.map +1 -0
  125. package/dist/nodes/EvolutionApi/execute/community/updateCommunitySubject.d.ts +27 -0
  126. package/dist/nodes/EvolutionApi/execute/community/updateCommunitySubject.js +50 -0
  127. package/dist/nodes/EvolutionApi/execute/community/updateCommunitySubject.js.map +1 -0
  128. package/dist/nodes/EvolutionApi/execute/events/setKafka.d.ts +2 -0
  129. package/dist/nodes/EvolutionApi/execute/events/setKafka.js +37 -0
  130. package/dist/nodes/EvolutionApi/execute/events/setKafka.js.map +1 -0
  131. package/dist/nodes/EvolutionApi/execute/events/setNats.d.ts +2 -0
  132. package/dist/nodes/EvolutionApi/execute/events/setNats.js +33 -0
  133. package/dist/nodes/EvolutionApi/execute/events/setNats.js.map +1 -0
  134. package/dist/nodes/EvolutionApi/execute/events/setProxy.d.ts +27 -0
  135. package/dist/nodes/EvolutionApi/execute/events/setProxy.js +63 -0
  136. package/dist/nodes/EvolutionApi/execute/events/setProxy.js.map +1 -0
  137. package/dist/nodes/EvolutionApi/execute/events/setPusher.d.ts +2 -0
  138. package/dist/nodes/EvolutionApi/execute/events/setPusher.js +39 -0
  139. package/dist/nodes/EvolutionApi/execute/events/setPusher.js.map +1 -0
  140. package/dist/nodes/EvolutionApi/execute/events/setRabbitMQ.d.ts +27 -0
  141. package/dist/nodes/EvolutionApi/execute/events/setRabbitMQ.js +83 -0
  142. package/dist/nodes/EvolutionApi/execute/events/setRabbitMQ.js.map +1 -0
  143. package/dist/nodes/EvolutionApi/execute/events/setSqs.d.ts +2 -0
  144. package/dist/nodes/EvolutionApi/execute/events/setSqs.js +37 -0
  145. package/dist/nodes/EvolutionApi/execute/events/setSqs.js.map +1 -0
  146. package/dist/nodes/EvolutionApi/execute/events/setWebhook.d.ts +27 -0
  147. package/dist/nodes/EvolutionApi/execute/events/setWebhook.js +89 -0
  148. package/dist/nodes/EvolutionApi/execute/events/setWebhook.js.map +1 -0
  149. package/dist/nodes/EvolutionApi/execute/events/setWebsocket.d.ts +2 -0
  150. package/dist/nodes/EvolutionApi/execute/events/setWebsocket.js +29 -0
  151. package/dist/nodes/EvolutionApi/execute/events/setWebsocket.js.map +1 -0
  152. package/dist/nodes/EvolutionApi/execute/evolutionRequest.d.ts +2 -0
  153. package/dist/nodes/EvolutionApi/execute/evolutionRequest.js +18 -0
  154. package/dist/nodes/EvolutionApi/execute/evolutionRequest.js.map +1 -0
  155. package/dist/nodes/EvolutionApi/execute/groups/createGroup.d.ts +27 -0
  156. package/dist/nodes/EvolutionApi/execute/groups/createGroup.js +54 -0
  157. package/dist/nodes/EvolutionApi/execute/groups/createGroup.js.map +1 -0
  158. package/dist/nodes/EvolutionApi/execute/groups/fetchGroups.d.ts +27 -0
  159. package/dist/nodes/EvolutionApi/execute/groups/fetchGroups.js +69 -0
  160. package/dist/nodes/EvolutionApi/execute/groups/fetchGroups.js.map +1 -0
  161. package/dist/nodes/EvolutionApi/execute/groups/fetchInviteCode.d.ts +27 -0
  162. package/dist/nodes/EvolutionApi/execute/groups/fetchInviteCode.js +45 -0
  163. package/dist/nodes/EvolutionApi/execute/groups/fetchInviteCode.js.map +1 -0
  164. package/dist/nodes/EvolutionApi/execute/groups/findGroupInfos.d.ts +2 -0
  165. package/dist/nodes/EvolutionApi/execute/groups/findGroupInfos.js +17 -0
  166. package/dist/nodes/EvolutionApi/execute/groups/findGroupInfos.js.map +1 -0
  167. package/dist/nodes/EvolutionApi/execute/groups/findParticipants.d.ts +27 -0
  168. package/dist/nodes/EvolutionApi/execute/groups/findParticipants.js +45 -0
  169. package/dist/nodes/EvolutionApi/execute/groups/findParticipants.js.map +1 -0
  170. package/dist/nodes/EvolutionApi/execute/groups/inviteInfo.d.ts +2 -0
  171. package/dist/nodes/EvolutionApi/execute/groups/inviteInfo.js +17 -0
  172. package/dist/nodes/EvolutionApi/execute/groups/inviteInfo.js.map +1 -0
  173. package/dist/nodes/EvolutionApi/execute/groups/joinGroup.d.ts +27 -0
  174. package/dist/nodes/EvolutionApi/execute/groups/joinGroup.js +45 -0
  175. package/dist/nodes/EvolutionApi/execute/groups/joinGroup.js.map +1 -0
  176. package/dist/nodes/EvolutionApi/execute/groups/leaveGroup.d.ts +27 -0
  177. package/dist/nodes/EvolutionApi/execute/groups/leaveGroup.js +45 -0
  178. package/dist/nodes/EvolutionApi/execute/groups/leaveGroup.js.map +1 -0
  179. package/dist/nodes/EvolutionApi/execute/groups/revokeInviteCode.d.ts +27 -0
  180. package/dist/nodes/EvolutionApi/execute/groups/revokeInviteCode.js +45 -0
  181. package/dist/nodes/EvolutionApi/execute/groups/revokeInviteCode.js.map +1 -0
  182. package/dist/nodes/EvolutionApi/execute/groups/sendInviteLink.d.ts +27 -0
  183. package/dist/nodes/EvolutionApi/execute/groups/sendInviteLink.js +54 -0
  184. package/dist/nodes/EvolutionApi/execute/groups/sendInviteLink.js.map +1 -0
  185. package/dist/nodes/EvolutionApi/execute/groups/toggleEphemeral.d.ts +27 -0
  186. package/dist/nodes/EvolutionApi/execute/groups/toggleEphemeral.js +50 -0
  187. package/dist/nodes/EvolutionApi/execute/groups/toggleEphemeral.js.map +1 -0
  188. package/dist/nodes/EvolutionApi/execute/groups/updateGroupDescription.d.ts +27 -0
  189. package/dist/nodes/EvolutionApi/execute/groups/updateGroupDescription.js +50 -0
  190. package/dist/nodes/EvolutionApi/execute/groups/updateGroupDescription.js.map +1 -0
  191. package/dist/nodes/EvolutionApi/execute/groups/updateGroupName.d.ts +27 -0
  192. package/dist/nodes/EvolutionApi/execute/groups/updateGroupName.js +50 -0
  193. package/dist/nodes/EvolutionApi/execute/groups/updateGroupName.js.map +1 -0
  194. package/dist/nodes/EvolutionApi/execute/groups/updateGroupPicture.d.ts +27 -0
  195. package/dist/nodes/EvolutionApi/execute/groups/updateGroupPicture.js +50 -0
  196. package/dist/nodes/EvolutionApi/execute/groups/updateGroupPicture.js.map +1 -0
  197. package/dist/nodes/EvolutionApi/execute/groups/updateParticipants.d.ts +27 -0
  198. package/dist/nodes/EvolutionApi/execute/groups/updateParticipants.js +53 -0
  199. package/dist/nodes/EvolutionApi/execute/groups/updateParticipants.js.map +1 -0
  200. package/dist/nodes/EvolutionApi/execute/groups/updateSettings.d.ts +27 -0
  201. package/dist/nodes/EvolutionApi/execute/groups/updateSettings.js +50 -0
  202. package/dist/nodes/EvolutionApi/execute/groups/updateSettings.js.map +1 -0
  203. package/dist/nodes/EvolutionApi/execute/index.d.ts +8 -0
  204. package/dist/nodes/EvolutionApi/execute/index.js +296 -0
  205. package/dist/nodes/EvolutionApi/execute/index.js.map +1 -0
  206. package/dist/nodes/EvolutionApi/execute/instance/connectionState.d.ts +2 -0
  207. package/dist/nodes/EvolutionApi/execute/instance/connectionState.js +12 -0
  208. package/dist/nodes/EvolutionApi/execute/instance/connectionState.js.map +1 -0
  209. package/dist/nodes/EvolutionApi/execute/instance/createInstanceBasic.d.ts +27 -0
  210. package/dist/nodes/EvolutionApi/execute/instance/createInstanceBasic.js +104 -0
  211. package/dist/nodes/EvolutionApi/execute/instance/createInstanceBasic.js.map +1 -0
  212. package/dist/nodes/EvolutionApi/execute/instance/deleteInstance.d.ts +27 -0
  213. package/dist/nodes/EvolutionApi/execute/instance/deleteInstance.js +48 -0
  214. package/dist/nodes/EvolutionApi/execute/instance/deleteInstance.js.map +1 -0
  215. package/dist/nodes/EvolutionApi/execute/instance/fetchInstances.d.ts +27 -0
  216. package/dist/nodes/EvolutionApi/execute/instance/fetchInstances.js +48 -0
  217. package/dist/nodes/EvolutionApi/execute/instance/fetchInstances.js.map +1 -0
  218. package/dist/nodes/EvolutionApi/execute/instance/fetchProxy.d.ts +2 -0
  219. package/dist/nodes/EvolutionApi/execute/instance/fetchProxy.js +12 -0
  220. package/dist/nodes/EvolutionApi/execute/instance/fetchProxy.js.map +1 -0
  221. package/dist/nodes/EvolutionApi/execute/instance/instanceConnect.d.ts +27 -0
  222. package/dist/nodes/EvolutionApi/execute/instance/instanceConnect.js +48 -0
  223. package/dist/nodes/EvolutionApi/execute/instance/instanceConnect.js.map +1 -0
  224. package/dist/nodes/EvolutionApi/execute/instance/instanceSettings.d.ts +27 -0
  225. package/dist/nodes/EvolutionApi/execute/instance/instanceSettings.js +71 -0
  226. package/dist/nodes/EvolutionApi/execute/instance/instanceSettings.js.map +1 -0
  227. package/dist/nodes/EvolutionApi/execute/instance/logoutInstance.d.ts +27 -0
  228. package/dist/nodes/EvolutionApi/execute/instance/logoutInstance.js +48 -0
  229. package/dist/nodes/EvolutionApi/execute/instance/logoutInstance.js.map +1 -0
  230. package/dist/nodes/EvolutionApi/execute/instance/restartInstance.d.ts +27 -0
  231. package/dist/nodes/EvolutionApi/execute/instance/restartInstance.js +48 -0
  232. package/dist/nodes/EvolutionApi/execute/instance/restartInstance.js.map +1 -0
  233. package/dist/nodes/EvolutionApi/execute/instance/setPresence.d.ts +27 -0
  234. package/dist/nodes/EvolutionApi/execute/instance/setPresence.js +55 -0
  235. package/dist/nodes/EvolutionApi/execute/instance/setPresence.js.map +1 -0
  236. package/dist/nodes/EvolutionApi/execute/instance/setProxy.d.ts +27 -0
  237. package/dist/nodes/EvolutionApi/execute/instance/setProxy.js +89 -0
  238. package/dist/nodes/EvolutionApi/execute/instance/setProxy.js.map +1 -0
  239. package/dist/nodes/EvolutionApi/execute/integrations/setChatwoot.d.ts +27 -0
  240. package/dist/nodes/EvolutionApi/execute/integrations/setChatwoot.js +108 -0
  241. package/dist/nodes/EvolutionApi/execute/integrations/setChatwoot.js.map +1 -0
  242. package/dist/nodes/EvolutionApi/execute/integrations/setDifyBot.d.ts +27 -0
  243. package/dist/nodes/EvolutionApi/execute/integrations/setDifyBot.js +169 -0
  244. package/dist/nodes/EvolutionApi/execute/integrations/setDifyBot.js.map +1 -0
  245. package/dist/nodes/EvolutionApi/execute/integrations/setEvoai.d.ts +2 -0
  246. package/dist/nodes/EvolutionApi/execute/integrations/setEvoai.js +106 -0
  247. package/dist/nodes/EvolutionApi/execute/integrations/setEvoai.js.map +1 -0
  248. package/dist/nodes/EvolutionApi/execute/integrations/setEvolutionBot.d.ts +27 -0
  249. package/dist/nodes/EvolutionApi/execute/integrations/setEvolutionBot.js +178 -0
  250. package/dist/nodes/EvolutionApi/execute/integrations/setEvolutionBot.js.map +1 -0
  251. package/dist/nodes/EvolutionApi/execute/integrations/setFlowiseBot.d.ts +27 -0
  252. package/dist/nodes/EvolutionApi/execute/integrations/setFlowiseBot.js +178 -0
  253. package/dist/nodes/EvolutionApi/execute/integrations/setFlowiseBot.js.map +1 -0
  254. package/dist/nodes/EvolutionApi/execute/integrations/setN8nBot.d.ts +2 -0
  255. package/dist/nodes/EvolutionApi/execute/integrations/setN8nBot.js +100 -0
  256. package/dist/nodes/EvolutionApi/execute/integrations/setN8nBot.js.map +1 -0
  257. package/dist/nodes/EvolutionApi/execute/integrations/setOpenai.d.ts +2 -0
  258. package/dist/nodes/EvolutionApi/execute/integrations/setOpenai.js +148 -0
  259. package/dist/nodes/EvolutionApi/execute/integrations/setOpenai.js.map +1 -0
  260. package/dist/nodes/EvolutionApi/execute/integrations/setTypebot.d.ts +27 -0
  261. package/dist/nodes/EvolutionApi/execute/integrations/setTypebot.js +194 -0
  262. package/dist/nodes/EvolutionApi/execute/integrations/setTypebot.js.map +1 -0
  263. package/dist/nodes/EvolutionApi/execute/labels/fetchLabels.d.ts +27 -0
  264. package/dist/nodes/EvolutionApi/execute/labels/fetchLabels.js +44 -0
  265. package/dist/nodes/EvolutionApi/execute/labels/fetchLabels.js.map +1 -0
  266. package/dist/nodes/EvolutionApi/execute/labels/handleLabel.d.ts +27 -0
  267. package/dist/nodes/EvolutionApi/execute/labels/handleLabel.js +52 -0
  268. package/dist/nodes/EvolutionApi/execute/labels/handleLabel.js.map +1 -0
  269. package/dist/nodes/EvolutionApi/execute/messages/sendAudio.d.ts +27 -0
  270. package/dist/nodes/EvolutionApi/execute/messages/sendAudio.js +86 -0
  271. package/dist/nodes/EvolutionApi/execute/messages/sendAudio.js.map +1 -0
  272. package/dist/nodes/EvolutionApi/execute/messages/sendButtons.d.ts +27 -0
  273. package/dist/nodes/EvolutionApi/execute/messages/sendButtons.js +121 -0
  274. package/dist/nodes/EvolutionApi/execute/messages/sendButtons.js.map +1 -0
  275. package/dist/nodes/EvolutionApi/execute/messages/sendContact.d.ts +27 -0
  276. package/dist/nodes/EvolutionApi/execute/messages/sendContact.js +80 -0
  277. package/dist/nodes/EvolutionApi/execute/messages/sendContact.js.map +1 -0
  278. package/dist/nodes/EvolutionApi/execute/messages/sendDocument.d.ts +2 -0
  279. package/dist/nodes/EvolutionApi/execute/messages/sendDocument.js +97 -0
  280. package/dist/nodes/EvolutionApi/execute/messages/sendDocument.js.map +1 -0
  281. package/dist/nodes/EvolutionApi/execute/messages/sendImage.d.ts +2 -0
  282. package/dist/nodes/EvolutionApi/execute/messages/sendImage.js +98 -0
  283. package/dist/nodes/EvolutionApi/execute/messages/sendImage.js.map +1 -0
  284. package/dist/nodes/EvolutionApi/execute/messages/sendList.d.ts +27 -0
  285. package/dist/nodes/EvolutionApi/execute/messages/sendList.js +111 -0
  286. package/dist/nodes/EvolutionApi/execute/messages/sendList.js.map +1 -0
  287. package/dist/nodes/EvolutionApi/execute/messages/sendLocation.d.ts +2 -0
  288. package/dist/nodes/EvolutionApi/execute/messages/sendLocation.js +47 -0
  289. package/dist/nodes/EvolutionApi/execute/messages/sendLocation.js.map +1 -0
  290. package/dist/nodes/EvolutionApi/execute/messages/sendPix.d.ts +27 -0
  291. package/dist/nodes/EvolutionApi/execute/messages/sendPix.js +84 -0
  292. package/dist/nodes/EvolutionApi/execute/messages/sendPix.js.map +1 -0
  293. package/dist/nodes/EvolutionApi/execute/messages/sendPoll.d.ts +27 -0
  294. package/dist/nodes/EvolutionApi/execute/messages/sendPoll.js +89 -0
  295. package/dist/nodes/EvolutionApi/execute/messages/sendPoll.js.map +1 -0
  296. package/dist/nodes/EvolutionApi/execute/messages/sendPtv.d.ts +2 -0
  297. package/dist/nodes/EvolutionApi/execute/messages/sendPtv.js +41 -0
  298. package/dist/nodes/EvolutionApi/execute/messages/sendPtv.js.map +1 -0
  299. package/dist/nodes/EvolutionApi/execute/messages/sendReaction.d.ts +27 -0
  300. package/dist/nodes/EvolutionApi/execute/messages/sendReaction.js +79 -0
  301. package/dist/nodes/EvolutionApi/execute/messages/sendReaction.js.map +1 -0
  302. package/dist/nodes/EvolutionApi/execute/messages/sendSticker.d.ts +2 -0
  303. package/dist/nodes/EvolutionApi/execute/messages/sendSticker.js +41 -0
  304. package/dist/nodes/EvolutionApi/execute/messages/sendSticker.js.map +1 -0
  305. package/dist/nodes/EvolutionApi/execute/messages/sendStories.d.ts +27 -0
  306. package/dist/nodes/EvolutionApi/execute/messages/sendStories.js +94 -0
  307. package/dist/nodes/EvolutionApi/execute/messages/sendStories.js.map +1 -0
  308. package/dist/nodes/EvolutionApi/execute/messages/sendTemplate.d.ts +2 -0
  309. package/dist/nodes/EvolutionApi/execute/messages/sendTemplate.js +38 -0
  310. package/dist/nodes/EvolutionApi/execute/messages/sendTemplate.js.map +1 -0
  311. package/dist/nodes/EvolutionApi/execute/messages/sendText.d.ts +2 -0
  312. package/dist/nodes/EvolutionApi/execute/messages/sendText.js +94 -0
  313. package/dist/nodes/EvolutionApi/execute/messages/sendText.js.map +1 -0
  314. package/dist/nodes/EvolutionApi/execute/messages/sendVideo.d.ts +27 -0
  315. package/dist/nodes/EvolutionApi/execute/messages/sendVideo.js +89 -0
  316. package/dist/nodes/EvolutionApi/execute/messages/sendVideo.js.map +1 -0
  317. package/dist/nodes/EvolutionApi/execute/newsletter/createNewsletter.d.ts +27 -0
  318. package/dist/nodes/EvolutionApi/execute/newsletter/createNewsletter.js +57 -0
  319. package/dist/nodes/EvolutionApi/execute/newsletter/createNewsletter.js.map +1 -0
  320. package/dist/nodes/EvolutionApi/execute/newsletter/deleteNewsletter.d.ts +27 -0
  321. package/dist/nodes/EvolutionApi/execute/newsletter/deleteNewsletter.js +48 -0
  322. package/dist/nodes/EvolutionApi/execute/newsletter/deleteNewsletter.js.map +1 -0
  323. package/dist/nodes/EvolutionApi/execute/newsletter/fetchNewsletterMessages.d.ts +27 -0
  324. package/dist/nodes/EvolutionApi/execute/newsletter/fetchNewsletterMessages.js +58 -0
  325. package/dist/nodes/EvolutionApi/execute/newsletter/fetchNewsletterMessages.js.map +1 -0
  326. package/dist/nodes/EvolutionApi/execute/newsletter/fetchNewsletters.d.ts +27 -0
  327. package/dist/nodes/EvolutionApi/execute/newsletter/fetchNewsletters.js +44 -0
  328. package/dist/nodes/EvolutionApi/execute/newsletter/fetchNewsletters.js.map +1 -0
  329. package/dist/nodes/EvolutionApi/execute/newsletter/followNewsletter.d.ts +27 -0
  330. package/dist/nodes/EvolutionApi/execute/newsletter/followNewsletter.js +48 -0
  331. package/dist/nodes/EvolutionApi/execute/newsletter/followNewsletter.js.map +1 -0
  332. package/dist/nodes/EvolutionApi/execute/newsletter/muteNewsletter.d.ts +27 -0
  333. package/dist/nodes/EvolutionApi/execute/newsletter/muteNewsletter.js +48 -0
  334. package/dist/nodes/EvolutionApi/execute/newsletter/muteNewsletter.js.map +1 -0
  335. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterInviteInfo.d.ts +2 -0
  336. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterInviteInfo.js +14 -0
  337. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterInviteInfo.js.map +1 -0
  338. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterMetadata.d.ts +27 -0
  339. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterMetadata.js +56 -0
  340. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterMetadata.js.map +1 -0
  341. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterReactionMode.d.ts +27 -0
  342. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterReactionMode.js +50 -0
  343. package/dist/nodes/EvolutionApi/execute/newsletter/newsletterReactionMode.js.map +1 -0
  344. package/dist/nodes/EvolutionApi/execute/newsletter/reactNewsletterMessage.d.ts +27 -0
  345. package/dist/nodes/EvolutionApi/execute/newsletter/reactNewsletterMessage.js +52 -0
  346. package/dist/nodes/EvolutionApi/execute/newsletter/reactNewsletterMessage.js.map +1 -0
  347. package/dist/nodes/EvolutionApi/execute/newsletter/removeNewsletterPicture.d.ts +27 -0
  348. package/dist/nodes/EvolutionApi/execute/newsletter/removeNewsletterPicture.js +48 -0
  349. package/dist/nodes/EvolutionApi/execute/newsletter/removeNewsletterPicture.js.map +1 -0
  350. package/dist/nodes/EvolutionApi/execute/newsletter/repostNewsletterMessage.d.ts +2 -0
  351. package/dist/nodes/EvolutionApi/execute/newsletter/repostNewsletterMessage.js +355 -0
  352. package/dist/nodes/EvolutionApi/execute/newsletter/repostNewsletterMessage.js.map +1 -0
  353. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterMedia.d.ts +2 -0
  354. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterMedia.js +68 -0
  355. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterMedia.js.map +1 -0
  356. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterPoll.d.ts +2 -0
  357. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterPoll.js +39 -0
  358. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterPoll.js.map +1 -0
  359. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterQuestion.d.ts +2 -0
  360. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterQuestion.js +22 -0
  361. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterQuestion.js.map +1 -0
  362. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterText.d.ts +2 -0
  363. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterText.js +20 -0
  364. package/dist/nodes/EvolutionApi/execute/newsletter/sendNewsletterText.js.map +1 -0
  365. package/dist/nodes/EvolutionApi/execute/newsletter/unfollowNewsletter.d.ts +27 -0
  366. package/dist/nodes/EvolutionApi/execute/newsletter/unfollowNewsletter.js +48 -0
  367. package/dist/nodes/EvolutionApi/execute/newsletter/unfollowNewsletter.js.map +1 -0
  368. package/dist/nodes/EvolutionApi/execute/newsletter/unmuteNewsletter.d.ts +27 -0
  369. package/dist/nodes/EvolutionApi/execute/newsletter/unmuteNewsletter.js +48 -0
  370. package/dist/nodes/EvolutionApi/execute/newsletter/unmuteNewsletter.js.map +1 -0
  371. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterDescription.d.ts +27 -0
  372. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterDescription.js +50 -0
  373. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterDescription.js.map +1 -0
  374. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterName.d.ts +27 -0
  375. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterName.js +50 -0
  376. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterName.js.map +1 -0
  377. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterPicture.d.ts +27 -0
  378. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterPicture.js +50 -0
  379. package/dist/nodes/EvolutionApi/execute/newsletter/updateNewsletterPicture.js.map +1 -0
  380. package/dist/nodes/EvolutionApi/execute/profile/fetchBusinessProfile.d.ts +27 -0
  381. package/dist/nodes/EvolutionApi/execute/profile/fetchBusinessProfile.js +49 -0
  382. package/dist/nodes/EvolutionApi/execute/profile/fetchBusinessProfile.js.map +1 -0
  383. package/dist/nodes/EvolutionApi/execute/profile/fetchPrivacySettings.d.ts +27 -0
  384. package/dist/nodes/EvolutionApi/execute/profile/fetchPrivacySettings.js +44 -0
  385. package/dist/nodes/EvolutionApi/execute/profile/fetchPrivacySettings.js.map +1 -0
  386. package/dist/nodes/EvolutionApi/execute/profile/fetchProfile.d.ts +27 -0
  387. package/dist/nodes/EvolutionApi/execute/profile/fetchProfile.js +49 -0
  388. package/dist/nodes/EvolutionApi/execute/profile/fetchProfile.js.map +1 -0
  389. package/dist/nodes/EvolutionApi/execute/profile/removeProfilePicture.d.ts +27 -0
  390. package/dist/nodes/EvolutionApi/execute/profile/removeProfilePicture.js +44 -0
  391. package/dist/nodes/EvolutionApi/execute/profile/removeProfilePicture.js.map +1 -0
  392. package/dist/nodes/EvolutionApi/execute/profile/updatePrivacySettings.d.ts +27 -0
  393. package/dist/nodes/EvolutionApi/execute/profile/updatePrivacySettings.js +59 -0
  394. package/dist/nodes/EvolutionApi/execute/profile/updatePrivacySettings.js.map +1 -0
  395. package/dist/nodes/EvolutionApi/execute/profile/updateProfileName.d.ts +27 -0
  396. package/dist/nodes/EvolutionApi/execute/profile/updateProfileName.js +49 -0
  397. package/dist/nodes/EvolutionApi/execute/profile/updateProfileName.js.map +1 -0
  398. package/dist/nodes/EvolutionApi/execute/profile/updateProfilePicture.d.ts +27 -0
  399. package/dist/nodes/EvolutionApi/execute/profile/updateProfilePicture.js +49 -0
  400. package/dist/nodes/EvolutionApi/execute/profile/updateProfilePicture.js.map +1 -0
  401. package/dist/nodes/EvolutionApi/execute/profile/updateProfileStatus.d.ts +27 -0
  402. package/dist/nodes/EvolutionApi/execute/profile/updateProfileStatus.js +49 -0
  403. package/dist/nodes/EvolutionApi/execute/profile/updateProfileStatus.js.map +1 -0
  404. package/dist/nodes/EvolutionApi/execute/s3/getMedia.d.ts +2 -0
  405. package/dist/nodes/EvolutionApi/execute/s3/getMedia.js +19 -0
  406. package/dist/nodes/EvolutionApi/execute/s3/getMedia.js.map +1 -0
  407. package/dist/nodes/EvolutionApi/execute/s3/getMediaUrl.d.ts +2 -0
  408. package/dist/nodes/EvolutionApi/execute/s3/getMediaUrl.js +19 -0
  409. package/dist/nodes/EvolutionApi/execute/s3/getMediaUrl.js.map +1 -0
  410. package/dist/nodes/EvolutionApi/execute/templates/createTemplate.d.ts +2 -0
  411. package/dist/nodes/EvolutionApi/execute/templates/createTemplate.js +23 -0
  412. package/dist/nodes/EvolutionApi/execute/templates/createTemplate.js.map +1 -0
  413. package/dist/nodes/EvolutionApi/execute/templates/fetchTemplates.d.ts +2 -0
  414. package/dist/nodes/EvolutionApi/execute/templates/fetchTemplates.js +12 -0
  415. package/dist/nodes/EvolutionApi/execute/templates/fetchTemplates.js.map +1 -0
  416. package/dist/nodes/EvolutionApi/loadOptions.d.ts +7 -0
  417. package/dist/nodes/EvolutionApi/loadOptions.js +264 -0
  418. package/dist/nodes/EvolutionApi/loadOptions.js.map +1 -0
  419. package/dist/nodes/EvolutionApi/properties/ai-integrations.fields.d.ts +4 -0
  420. package/dist/nodes/EvolutionApi/properties/ai-integrations.fields.js +608 -0
  421. package/dist/nodes/EvolutionApi/properties/ai-integrations.fields.js.map +1 -0
  422. package/dist/nodes/EvolutionApi/properties/business.fields.d.ts +2 -0
  423. package/dist/nodes/EvolutionApi/properties/business.fields.js +126 -0
  424. package/dist/nodes/EvolutionApi/properties/business.fields.js.map +1 -0
  425. package/dist/nodes/EvolutionApi/properties/business.operations.d.ts +2 -0
  426. package/dist/nodes/EvolutionApi/properties/business.operations.js +30 -0
  427. package/dist/nodes/EvolutionApi/properties/business.operations.js.map +1 -0
  428. package/dist/nodes/EvolutionApi/properties/call.fields.d.ts +2 -0
  429. package/dist/nodes/EvolutionApi/properties/call.fields.js +63 -0
  430. package/dist/nodes/EvolutionApi/properties/call.fields.js.map +1 -0
  431. package/dist/nodes/EvolutionApi/properties/call.operations.d.ts +2 -0
  432. package/dist/nodes/EvolutionApi/properties/call.operations.js +24 -0
  433. package/dist/nodes/EvolutionApi/properties/call.operations.js.map +1 -0
  434. package/dist/nodes/EvolutionApi/properties/chat.fields.d.ts +2 -0
  435. package/dist/nodes/EvolutionApi/properties/chat.fields.js +622 -0
  436. package/dist/nodes/EvolutionApi/properties/chat.fields.js.map +1 -0
  437. package/dist/nodes/EvolutionApi/properties/chat.operations.d.ts +2 -0
  438. package/dist/nodes/EvolutionApi/properties/chat.operations.js +108 -0
  439. package/dist/nodes/EvolutionApi/properties/chat.operations.js.map +1 -0
  440. package/dist/nodes/EvolutionApi/properties/community.fields.d.ts +2 -0
  441. package/dist/nodes/EvolutionApi/properties/community.fields.js +475 -0
  442. package/dist/nodes/EvolutionApi/properties/community.fields.js.map +1 -0
  443. package/dist/nodes/EvolutionApi/properties/community.operations.d.ts +2 -0
  444. package/dist/nodes/EvolutionApi/properties/community.operations.js +138 -0
  445. package/dist/nodes/EvolutionApi/properties/community.operations.js.map +1 -0
  446. package/dist/nodes/EvolutionApi/properties/events.fields.d.ts +2 -0
  447. package/dist/nodes/EvolutionApi/properties/events.fields.js +938 -0
  448. package/dist/nodes/EvolutionApi/properties/events.fields.js.map +1 -0
  449. package/dist/nodes/EvolutionApi/properties/events.operations.d.ts +2 -0
  450. package/dist/nodes/EvolutionApi/properties/events.operations.js +60 -0
  451. package/dist/nodes/EvolutionApi/properties/events.operations.js.map +1 -0
  452. package/dist/nodes/EvolutionApi/properties/groups.fields.d.ts +2 -0
  453. package/dist/nodes/EvolutionApi/properties/groups.fields.js +798 -0
  454. package/dist/nodes/EvolutionApi/properties/groups.fields.js.map +1 -0
  455. package/dist/nodes/EvolutionApi/properties/groups.operations.d.ts +2 -0
  456. package/dist/nodes/EvolutionApi/properties/groups.operations.js +114 -0
  457. package/dist/nodes/EvolutionApi/properties/groups.operations.js.map +1 -0
  458. package/dist/nodes/EvolutionApi/properties/index.d.ts +2 -0
  459. package/dist/nodes/EvolutionApi/properties/index.js +132 -0
  460. package/dist/nodes/EvolutionApi/properties/index.js.map +1 -0
  461. package/dist/nodes/EvolutionApi/properties/instances.fields.d.ts +2 -0
  462. package/dist/nodes/EvolutionApi/properties/instances.fields.js +982 -0
  463. package/dist/nodes/EvolutionApi/properties/instances.fields.js.map +1 -0
  464. package/dist/nodes/EvolutionApi/properties/instances.operations.d.ts +2 -0
  465. package/dist/nodes/EvolutionApi/properties/instances.operations.js +84 -0
  466. package/dist/nodes/EvolutionApi/properties/instances.operations.js.map +1 -0
  467. package/dist/nodes/EvolutionApi/properties/integrations.fields.d.ts +2 -0
  468. package/dist/nodes/EvolutionApi/properties/integrations.fields.js +1782 -0
  469. package/dist/nodes/EvolutionApi/properties/integrations.fields.js.map +1 -0
  470. package/dist/nodes/EvolutionApi/properties/integrations.operations.d.ts +2 -0
  471. package/dist/nodes/EvolutionApi/properties/integrations.operations.js +66 -0
  472. package/dist/nodes/EvolutionApi/properties/integrations.operations.js.map +1 -0
  473. package/dist/nodes/EvolutionApi/properties/labels.fields.d.ts +2 -0
  474. package/dist/nodes/EvolutionApi/properties/labels.fields.js +55 -0
  475. package/dist/nodes/EvolutionApi/properties/labels.fields.js.map +1 -0
  476. package/dist/nodes/EvolutionApi/properties/labels.operations.d.ts +2 -0
  477. package/dist/nodes/EvolutionApi/properties/labels.operations.js +30 -0
  478. package/dist/nodes/EvolutionApi/properties/labels.operations.js.map +1 -0
  479. package/dist/nodes/EvolutionApi/properties/messages.fields.d.ts +2 -0
  480. package/dist/nodes/EvolutionApi/properties/messages.fields.js +2199 -0
  481. package/dist/nodes/EvolutionApi/properties/messages.fields.js.map +1 -0
  482. package/dist/nodes/EvolutionApi/properties/messages.operations.d.ts +2 -0
  483. package/dist/nodes/EvolutionApi/properties/messages.operations.js +114 -0
  484. package/dist/nodes/EvolutionApi/properties/messages.operations.js.map +1 -0
  485. package/dist/nodes/EvolutionApi/properties/newsletter.fields.d.ts +2 -0
  486. package/dist/nodes/EvolutionApi/properties/newsletter.fields.js +1050 -0
  487. package/dist/nodes/EvolutionApi/properties/newsletter.fields.js.map +1 -0
  488. package/dist/nodes/EvolutionApi/properties/newsletter.operations.d.ts +2 -0
  489. package/dist/nodes/EvolutionApi/properties/newsletter.operations.js +144 -0
  490. package/dist/nodes/EvolutionApi/properties/newsletter.operations.js.map +1 -0
  491. package/dist/nodes/EvolutionApi/properties/profile.fields.d.ts +2 -0
  492. package/dist/nodes/EvolutionApi/properties/profile.fields.js +257 -0
  493. package/dist/nodes/EvolutionApi/properties/profile.fields.js.map +1 -0
  494. package/dist/nodes/EvolutionApi/properties/profile.operations.d.ts +2 -0
  495. package/dist/nodes/EvolutionApi/properties/profile.operations.js +66 -0
  496. package/dist/nodes/EvolutionApi/properties/profile.operations.js.map +1 -0
  497. package/dist/nodes/EvolutionApi/properties/resources.d.ts +2 -0
  498. package/dist/nodes/EvolutionApi/properties/resources.js +41 -0
  499. package/dist/nodes/EvolutionApi/properties/resources.js.map +1 -0
  500. package/dist/nodes/EvolutionApi/properties/s3.fields.d.ts +2 -0
  501. package/dist/nodes/EvolutionApi/properties/s3.fields.js +64 -0
  502. package/dist/nodes/EvolutionApi/properties/s3.fields.js.map +1 -0
  503. package/dist/nodes/EvolutionApi/properties/s3.operations.d.ts +2 -0
  504. package/dist/nodes/EvolutionApi/properties/s3.operations.js +30 -0
  505. package/dist/nodes/EvolutionApi/properties/s3.operations.js.map +1 -0
  506. package/dist/nodes/EvolutionApi/properties/templates.fields.d.ts +2 -0
  507. package/dist/nodes/EvolutionApi/properties/templates.fields.js +95 -0
  508. package/dist/nodes/EvolutionApi/properties/templates.fields.js.map +1 -0
  509. package/dist/nodes/EvolutionApi/properties/templates.operations.d.ts +2 -0
  510. package/dist/nodes/EvolutionApi/properties/templates.operations.js +30 -0
  511. package/dist/nodes/EvolutionApi/properties/templates.operations.js.map +1 -0
  512. package/dist/package.json +69 -0
  513. package/dist/tsconfig.tsbuildinfo +1 -0
  514. package/index.js +0 -0
  515. package/package.json +69 -0
@@ -0,0 +1,27 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendPoll(ef: IExecuteFunctions): Promise<{
3
+ json: {
4
+ success: boolean;
5
+ data: any;
6
+ };
7
+ error?: undefined;
8
+ } | {
9
+ json: {
10
+ success: boolean;
11
+ error: {
12
+ message: string;
13
+ details: any;
14
+ code: any;
15
+ timestamp: string;
16
+ };
17
+ };
18
+ error: {
19
+ success: boolean;
20
+ error: {
21
+ message: string;
22
+ details: any;
23
+ code: any;
24
+ timestamp: string;
25
+ };
26
+ };
27
+ }>;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendPoll = sendPoll;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const evolutionRequest_1 = require("../evolutionRequest");
6
+ async function sendPoll(ef) {
7
+ var _a, _b;
8
+ try {
9
+ const instanceName = ef.getNodeParameter('instanceName', 0);
10
+ const remoteJid = ef.getNodeParameter('remoteJid', 0);
11
+ const pollTitle = ef.getNodeParameter('caption', 0);
12
+ const options = ef.getNodeParameter('options_display.metadataValues', 0);
13
+ const options_message = ef.getNodeParameter('options_message', 0, {});
14
+ const pollOptions = Array.isArray(options) ? options.map((option) => option.optionValue) : [];
15
+ if (pollOptions.length === 0) {
16
+ const errorData = {
17
+ success: false,
18
+ error: {
19
+ message: 'Opções da enquete inválidas',
20
+ details: 'A enquete precisa ter pelo menos uma opção',
21
+ code: 'INVALID_POLL_OPTIONS',
22
+ timestamp: new Date().toISOString(),
23
+ },
24
+ };
25
+ return {
26
+ json: errorData,
27
+ error: errorData,
28
+ };
29
+ }
30
+ const body = {
31
+ number: remoteJid,
32
+ name: pollTitle,
33
+ selectableCount: 1,
34
+ values: pollOptions,
35
+ };
36
+ if (options_message.delay) {
37
+ body.delay = options_message.delay;
38
+ }
39
+ if ((_b = (_a = options_message.quoted) === null || _a === void 0 ? void 0 : _a.messageQuoted) === null || _b === void 0 ? void 0 : _b.messageId) {
40
+ body.quoted = {
41
+ key: {
42
+ id: options_message.quoted.messageQuoted.messageId,
43
+ },
44
+ };
45
+ }
46
+ const requestOptions = {
47
+ method: 'POST',
48
+ headers: {
49
+ 'Content-Type': 'application/json',
50
+ },
51
+ uri: `/message/sendPoll/${instanceName}`,
52
+ body,
53
+ json: true,
54
+ };
55
+ const response = await (0, evolutionRequest_1.evolutionRequest)(ef, requestOptions);
56
+ return {
57
+ json: {
58
+ success: true,
59
+ data: response,
60
+ },
61
+ };
62
+ }
63
+ catch (error) {
64
+ const errorData = {
65
+ success: false,
66
+ error: {
67
+ message: error.message.includes('Could not get parameter')
68
+ ? 'Parâmetros inválidos ou ausentes'
69
+ : 'Erro ao enviar enquete',
70
+ details: error.message.includes('Could not get parameter')
71
+ ? 'Verifique se todos os campos obrigatórios foram preenchidos corretamente'
72
+ : error.message,
73
+ code: error.code || 'UNKNOWN_ERROR',
74
+ timestamp: new Date().toISOString(),
75
+ },
76
+ };
77
+ if (!ef.continueOnFail()) {
78
+ throw new n8n_workflow_1.NodeOperationError(ef.getNode(), error.message, {
79
+ message: errorData.error.message,
80
+ description: errorData.error.details,
81
+ });
82
+ }
83
+ return {
84
+ json: errorData,
85
+ error: errorData,
86
+ };
87
+ }
88
+ }
89
+ //# sourceMappingURL=sendPoll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendPoll.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendPoll.ts"],"names":[],"mappings":";;AAQA,4BAwGC;AAhHD,+CAKsB;AACtB,0DAAuD;AAEhD,KAAK,UAAU,QAAQ,CAAC,EAAqB;;IACnD,IAAI,CAAC;QAEJ,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;QAC5D,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACtD,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QACpD,MAAM,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,gCAAgC,EAAE,CAAC,CAEpE,CAAC;QAGJ,MAAM,eAAe,GAAG,EAAE,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAOnE,CAAC;QAGF,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,C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AAE;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,QAAQ;aACd;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,SAAS,GAAG;YACjB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACN,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,kCAAkC;oBACpC,CAAC,CAAC,wBAAwB;gBAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,0EAA0E;oBAC5E,CAAC,CAAC,KAAK,CAAC,OAAO;gBAChB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,eAAe;gBACnC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACnC;SACD,CAAC;QAEF,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC;YAC1B,MAAM,IAAI,iCAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;gBACzD,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;gBAChC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;aACpC,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACN,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SAChB,CAAC;IACH,CAAC;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendPtv(ef: IExecuteFunctions): Promise<any>;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendPtv = sendPtv;
4
+ async function sendPtv(ef) {
5
+ var _a, _b, _c;
6
+ const instanceName = ef.getNodeParameter('instanceName', 0);
7
+ const remoteJid = ef.getNodeParameter('remoteJid', 0);
8
+ const video = ef.getNodeParameter('video', 0);
9
+ const optionsMessage = ef.getNodeParameter('options_message', 0, {});
10
+ const body = {
11
+ number: remoteJid,
12
+ video,
13
+ };
14
+ if (optionsMessage.delay) {
15
+ body.delay = optionsMessage.delay;
16
+ }
17
+ if ((_b = (_a = optionsMessage.quoted) === null || _a === void 0 ? void 0 : _a.messageQuoted) === null || _b === void 0 ? void 0 : _b.messageId) {
18
+ body.quoted = {
19
+ key: {
20
+ id: optionsMessage.quoted.messageQuoted.messageId,
21
+ },
22
+ };
23
+ }
24
+ if ((_c = optionsMessage.mentions) === null || _c === void 0 ? void 0 : _c.mentionsSettings) {
25
+ const { mentionsEveryOne, mentioned } = optionsMessage.mentions.mentionsSettings;
26
+ if (mentionsEveryOne) {
27
+ body.mentionsEveryOne = true;
28
+ }
29
+ else if (mentioned) {
30
+ body.mentioned = mentioned.split(',').map((n) => n.trim());
31
+ }
32
+ }
33
+ const options = {
34
+ method: 'POST',
35
+ uri: `/message/sendPtv/${instanceName}`,
36
+ body,
37
+ json: true,
38
+ };
39
+ return await ef.helpers.requestWithAuthentication.call(ef, 'evolutionApi', options);
40
+ }
41
+ //# sourceMappingURL=sendPtv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendPtv.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendPtv.ts"],"names":[],"mappings":";;AAMA,0BAsDC;AAtDM,KAAK,UAAU,OAAO,CAAC,EAAqB;;IAClD,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,KAAK,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;IACxD,MAAM,cAAc,GAAG,EAAE,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAalE,CAAC;IAEF,MAAM,IAAI,GAAQ;QACjB,MAAM,EAAE,SAAS;QACjB,KAAK;KACL,CAAC;IAGF,IAAI,cAAc,CAAC,KAAK,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,IAAI,MAAA,MAAA,cAAc,CAAC,MAAM,0CAAE,aAAa,0CAAE,SAAS,EAAE,CAAC;QACrD,IAAI,CAAC,MAAM,GAAG;YACb,GAAG,EAAE;gBACJ,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS;aACjD;SACD,CAAC;IACH,CAAC;IAED,IAAI,MAAA,cAAc,CAAC,QAAQ,0CAAE,gBAAgB,EAAE,CAAC;QAC/C,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACjF,IAAI,gBAAgB,EAAE,CAAC;YACtB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC9B,CAAC;aAAM,IAAI,SAAS,EAAE,CAAC;YACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QACpE,CAAC;IACF,CAAC;IAED,MAAM,OAAO,GAAoB;QAChC,MAAM,EAAE,MAA6B;QACrC,GAAG,EAAE,oBAAoB,YAAY,EAAE;QACvC,IAAI;QACJ,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,OAAO,MAAM,EAAE,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendReaction(ef: IExecuteFunctions): Promise<{
3
+ json: {
4
+ success: boolean;
5
+ data: any;
6
+ };
7
+ error?: undefined;
8
+ } | {
9
+ json: {
10
+ success: boolean;
11
+ error: {
12
+ message: string;
13
+ details: any;
14
+ code: any;
15
+ timestamp: string;
16
+ };
17
+ };
18
+ error: {
19
+ success: boolean;
20
+ error: {
21
+ message: string;
22
+ details: any;
23
+ code: any;
24
+ timestamp: string;
25
+ };
26
+ };
27
+ }>;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendReaction = sendReaction;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const evolutionRequest_1 = require("../evolutionRequest");
6
+ async function sendReaction(ef) {
7
+ try {
8
+ const instanceName = ef.getNodeParameter('instanceName', 0);
9
+ const remoteJid = ef.getNodeParameter('remoteJid', 0);
10
+ const messageId = ef.getNodeParameter('messageId', 0);
11
+ const fromMe = ef.getNodeParameter('fromMe', 0);
12
+ const reaction = ef.getNodeParameter('reaction', 0);
13
+ if (!reaction) {
14
+ const errorData = {
15
+ success: false,
16
+ error: {
17
+ message: 'Reação inválida',
18
+ details: 'É necessário fornecer um emoji para a reação',
19
+ code: 'INVALID_REACTION',
20
+ timestamp: new Date().toISOString(),
21
+ },
22
+ };
23
+ return {
24
+ json: errorData,
25
+ error: errorData,
26
+ };
27
+ }
28
+ const body = {
29
+ key: {
30
+ remoteJid,
31
+ fromMe,
32
+ id: messageId,
33
+ },
34
+ reaction,
35
+ };
36
+ const requestOptions = {
37
+ method: 'POST',
38
+ headers: {
39
+ 'Content-Type': 'application/json',
40
+ },
41
+ uri: `/message/sendReaction/${instanceName}`,
42
+ body,
43
+ json: true,
44
+ };
45
+ const response = await (0, evolutionRequest_1.evolutionRequest)(ef, requestOptions);
46
+ return {
47
+ json: {
48
+ success: true,
49
+ data: response,
50
+ },
51
+ };
52
+ }
53
+ catch (error) {
54
+ const errorData = {
55
+ success: false,
56
+ error: {
57
+ message: error.message.includes('Could not get parameter')
58
+ ? 'Parâmetros inválidos ou ausentes'
59
+ : 'Erro ao enviar reação',
60
+ details: error.message.includes('Could not get parameter')
61
+ ? 'Verifique se todos os campos obrigatórios foram preenchidos corretamente'
62
+ : error.message,
63
+ code: error.code || 'UNKNOWN_ERROR',
64
+ timestamp: new Date().toISOString(),
65
+ },
66
+ };
67
+ if (!ef.continueOnFail()) {
68
+ throw new n8n_workflow_1.NodeOperationError(ef.getNode(), error.message, {
69
+ message: errorData.error.message,
70
+ description: errorData.error.details,
71
+ });
72
+ }
73
+ return {
74
+ json: errorData,
75
+ error: errorData,
76
+ };
77
+ }
78
+ }
79
+ //# sourceMappingURL=sendReaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendReaction.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendReaction.ts"],"names":[],"mappings":";;AAQA,oCA+EC;AAvFD,+CAKsB;AACtB,0DAAuD;AAEhD,KAAK,UAAU,YAAY,CAAC,EAAqB;IACvD,IAAI,CAAC;QAEJ,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;QACtE,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAChE,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAChE,MAAM,MAAM,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAY,CAAC;QAC3D,MAAM,QAAQ,GAAG,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;QAG9D,IAAI,CAAC,QAAQ,EAAE,CAAC;YACf,MAAM,SAAS,GAAG;gBACjB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE;oBACN,OAAO,EAAE,iBAAiB;oBAC1B,OAAO,EAAE,8CAA8C;oBACvD,IAAI,EAAE,kBAAkB;oBACxB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC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zD,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;gBAChC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;aACpC,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACN,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SAChB,CAAC;IACH,CAAC;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendSticker(ef: IExecuteFunctions): Promise<any>;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendSticker = sendSticker;
4
+ async function sendSticker(ef) {
5
+ var _a, _b, _c;
6
+ const instanceName = ef.getNodeParameter('instanceName', 0);
7
+ const remoteJid = ef.getNodeParameter('remoteJid', 0);
8
+ const sticker = ef.getNodeParameter('sticker', 0);
9
+ const optionsMessage = ef.getNodeParameter('options_message', 0, {});
10
+ const body = {
11
+ number: remoteJid,
12
+ sticker,
13
+ };
14
+ if (optionsMessage.delay) {
15
+ body.delay = optionsMessage.delay;
16
+ }
17
+ if ((_b = (_a = optionsMessage.quoted) === null || _a === void 0 ? void 0 : _a.messageQuoted) === null || _b === void 0 ? void 0 : _b.messageId) {
18
+ body.quoted = {
19
+ key: {
20
+ id: optionsMessage.quoted.messageQuoted.messageId,
21
+ },
22
+ };
23
+ }
24
+ if ((_c = optionsMessage.mentions) === null || _c === void 0 ? void 0 : _c.mentionsSettings) {
25
+ const { mentionsEveryOne, mentioned } = optionsMessage.mentions.mentionsSettings;
26
+ if (mentionsEveryOne) {
27
+ body.mentionsEveryOne = true;
28
+ }
29
+ else if (mentioned) {
30
+ body.mentioned = mentioned.split(',').map((n) => n.trim());
31
+ }
32
+ }
33
+ const options = {
34
+ method: 'POST',
35
+ uri: `/message/sendSticker/${instanceName}`,
36
+ body,
37
+ json: true,
38
+ };
39
+ return await ef.helpers.requestWithAuthentication.call(ef, 'evolutionApi', options);
40
+ }
41
+ //# sourceMappingURL=sendSticker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendSticker.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendSticker.ts"],"names":[],"mappings":";;AAMA,kCAsDC;AAtDM,KAAK,UAAU,WAAW,CAAC,EAAqB;;IACtD,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAW,CAAC;IAC5D,MAAM,cAAc,GAAG,EAAE,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAalE,CAAC;IAEF,MAAM,IAAI,GAAQ;QACjB,MAAM,EAAE,SAAS;QACjB,OAAO;KACP,CAAC;IAGF,IAAI,cAAc,CAAC,KAAK,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,IAAI,MAAA,MAAA,cAAc,CAAC,MAAM,0CAAE,aAAa,0CAAE,SAAS,EAAE,CAAC;QACrD,IAAI,CAAC,MAAM,GAAG;YACb,GAAG,EAAE;gBACJ,EAAE,EAAE,cAAc,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS;aACjD;SACD,CAAC;IACH,CAAC;IAED,IAAI,MAAA,cAAc,CAAC,QAAQ,0CAAE,gBAAgB,EAAE,CAAC;QAC/C,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACjF,IAAI,gBAAgB,EAAE,CAAC;YACtB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC9B,CAAC;aAAM,IAAI,SAAS,EAAE,CAAC;YACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QACpE,CAAC;IACF,CAAC;IAED,MAAM,OAAO,GAAoB;QAChC,MAAM,EAAE,MAA6B;QACrC,GAAG,EAAE,wBAAwB,YAAY,EAAE;QAC3C,IAAI;QACJ,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,OAAO,MAAM,EAAE,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendStories(ef: IExecuteFunctions): Promise<{
3
+ json: {
4
+ success: boolean;
5
+ data: any;
6
+ };
7
+ error?: undefined;
8
+ } | {
9
+ json: {
10
+ success: boolean;
11
+ error: {
12
+ message: string;
13
+ details: any;
14
+ code: any;
15
+ timestamp: string;
16
+ };
17
+ };
18
+ error: {
19
+ success: boolean;
20
+ error: {
21
+ message: string;
22
+ details: any;
23
+ code: any;
24
+ timestamp: string;
25
+ };
26
+ };
27
+ }>;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendStories = sendStories;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const evolutionRequest_1 = require("../evolutionRequest");
6
+ async function sendStories(ef) {
7
+ try {
8
+ const instanceName = ef.getNodeParameter('instanceName', 0);
9
+ const content = ef.getNodeParameter('content', 0);
10
+ const type = ef.getNodeParameter('type', 0);
11
+ const caption = ef.getNodeParameter('caption', 0, '');
12
+ const allContacts = ef.getNodeParameter('allContacts', 0, false);
13
+ const backgroundColor = ef.getNodeParameter('backgroundColor', 0, '#000000');
14
+ const font = ef.getNodeParameter('font', 0, 1);
15
+ if (type !== 'text' && !content.startsWith('http') && !content.startsWith('data:')) {
16
+ const errorData = {
17
+ success: false,
18
+ error: {
19
+ message: 'Formato de conteúdo inválido',
20
+ details: 'O conteúdo deve ser uma URL válida ou um base64',
21
+ code: 'INVALID_CONTENT_FORMAT',
22
+ timestamp: new Date().toISOString(),
23
+ },
24
+ };
25
+ return {
26
+ json: errorData,
27
+ error: errorData,
28
+ };
29
+ }
30
+ const body = {
31
+ type,
32
+ content,
33
+ backgroundColor,
34
+ font,
35
+ allContacts
36
+ };
37
+ if ((type === 'image' || type === 'video') && caption) {
38
+ body.caption = caption;
39
+ }
40
+ if (!allContacts) {
41
+ const statusJidList = ef.getNodeParameter('statusJidList', 0, '');
42
+ if (statusJidList) {
43
+ body.statusJidList = statusJidList.split(',')
44
+ .map(num => num.trim())
45
+ .map(num => num.includes('@s.whatsapp.net') ? num : `${num}@s.whatsapp.net`);
46
+ }
47
+ }
48
+ const requestOptions = {
49
+ method: 'POST',
50
+ headers: {
51
+ 'Content-Type': 'application/json',
52
+ },
53
+ uri: `/message/sendStatus/${instanceName}`,
54
+ body,
55
+ json: true,
56
+ };
57
+ const response = await (0, evolutionRequest_1.evolutionRequest)(ef, requestOptions);
58
+ if (!response) {
59
+ throw new Error('Resposta vazia do servidor');
60
+ }
61
+ return {
62
+ json: {
63
+ success: true,
64
+ data: response,
65
+ },
66
+ };
67
+ }
68
+ catch (error) {
69
+ const errorData = {
70
+ success: false,
71
+ error: {
72
+ message: error.message.includes('Could not get parameter')
73
+ ? 'Parâmetros inválidos ou ausentes'
74
+ : 'Erro ao enviar status',
75
+ details: error.message.includes('Could not get parameter')
76
+ ? 'Verifique se todos os campos obrigatórios foram preenchidos corretamente'
77
+ : error.message,
78
+ code: error.code || 'UNKNOWN_ERROR',
79
+ timestamp: new Date().toISOString(),
80
+ },
81
+ };
82
+ if (!ef.continueOnFail()) {
83
+ throw new n8n_workflow_1.NodeOperationError(ef.getNode(), error.message, {
84
+ message: errorData.error.message,
85
+ description: errorData.error.details,
86
+ });
87
+ }
88
+ return {
89
+ json: errorData,
90
+ error: errorData,
91
+ };
92
+ }
93
+ }
94
+ //# sourceMappingURL=sendStories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendStories.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendStories.ts"],"names":[],"mappings":";;AAQA,kCAoGC;AA5GD,+CAKsB;AACtB,0DAAuD;AAEhD,KAAK,UAAU,WAAW,CAAC,EAAqB;IACtD,IAAI,CAAC;QAEJ,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;QACtE,MAAM,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAW,CAAC;QAC5D,MAAM,IAAI,GAAG,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAyC,CAAC;QACpF,MAAM,OAAO,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;QAChE,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,EAAE,KAAK,CAAY,CAAC;QAC5E,MAAM,eAAe,GAAG,EAAE,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,EAAE,SAAS,CAAW,CAAC;QACvF,MAAM,IAAI,GAAG,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAW,CAAC;QAGzD,IAAI,IAAI,KAAK,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACpF,MAAM,SAAS,GAAG;gBACjB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE;oBACN,OAAO,EAAE,8BAA8B;oBACvC,OAAO,EAAE,iDAAiD;oBAC1D,IAAI,EAAE,wBAAwB;oBAC9B,SAAS,EAAE,IAAI,IAAI,EAAE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AE;gBACL,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,QAAQ;aACd;SACD,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,SAAS,GAAG;YACjB,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACN,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,kCAAkC;oBACpC,CAAC,CAAC,uBAAuB;gBAC1B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC;oBACzD,CAAC,CAAC,0EAA0E;oBAC5E,CAAC,CAAC,KAAK,CAAC,OAAO;gBAChB,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,eAAe;gBACnC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACnC;SACD,CAAC;QAEF,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC;YAC1B,MAAM,IAAI,iCAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;gBACzD,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;gBAChC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO;aACpC,CAAC,CAAC;QACJ,CAAC;QAED,OAAO;YACN,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;SAChB,CAAC;IACH,CAAC;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendTemplate(ef: IExecuteFunctions): Promise<any>;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendTemplate = sendTemplate;
4
+ async function sendTemplate(ef) {
5
+ const instanceName = ef.getNodeParameter('instanceName', 0);
6
+ const remoteJid = ef.getNodeParameter('remoteJid', 0);
7
+ const templateName = ef.getNodeParameter('templateName', 0);
8
+ const language = ef.getNodeParameter('language', 0, 'pt_BR');
9
+ const componentsRaw = ef.getNodeParameter('components', 0, { componentValues: [] });
10
+ const body = {
11
+ number: remoteJid,
12
+ name: templateName,
13
+ language,
14
+ };
15
+ if (componentsRaw.componentValues && componentsRaw.componentValues.length > 0) {
16
+ body.components = componentsRaw.componentValues.map((comp) => {
17
+ let params = [];
18
+ try {
19
+ params = JSON.parse(comp.parameters);
20
+ }
21
+ catch (e) {
22
+ params = comp.parameters.split(',').map((p) => ({ type: 'text', text: p.trim() }));
23
+ }
24
+ return {
25
+ type: comp.type,
26
+ parameters: params,
27
+ };
28
+ });
29
+ }
30
+ const options = {
31
+ method: 'POST',
32
+ uri: `/message/sendTemplate/${instanceName}`,
33
+ body,
34
+ json: true,
35
+ };
36
+ return await ef.helpers.requestWithAuthentication.call(ef, 'evolutionApi', options);
37
+ }
38
+ //# sourceMappingURL=sendTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendTemplate.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendTemplate.ts"],"names":[],"mappings":";;AAMA,oCA2CC;AA3CM,KAAK,UAAU,YAAY,CAAC,EAAqB;IACvD,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,QAAQ,GAAG,EAAE,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,EAAE,OAAO,CAAW,CAAC;IACvE,MAAM,aAAa,GAAG,EAAE,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,CAKjF,CAAC;IAEF,MAAM,IAAI,GAAQ;QACjB,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,YAAY;QAClB,QAAQ;KACR,CAAC;IAGF,IAAI,aAAa,CAAC,eAAe,IAAI,aAAa,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/E,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5D,IAAI,MAAM,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC;gBACJ,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtC,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBAEZ,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;YAC5F,CAAC;YACD,OAAO;gBACN,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,UAAU,EAAE,MAAM;aAClB,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAoB;QAChC,MAAM,EAAE,MAA6B;QACrC,GAAG,EAAE,yBAAyB,YAAY,EAAE;QAC5C,IAAI;QACJ,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,OAAO,MAAM,EAAE,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACrF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
2
+ export declare function sendText(ef: IExecuteFunctions): Promise<INodeExecutionData[]>;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendText = sendText;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const evolutionRequest_1 = require("../evolutionRequest");
6
+ async function sendText(ef) {
7
+ var _a, _b, _c;
8
+ const items = ef.getInputData();
9
+ const returnData = [];
10
+ for (let i = 0; i < items.length; i++) {
11
+ try {
12
+ const instanceName = ef.getNodeParameter('instanceName', i);
13
+ const remoteJid = ef.getNodeParameter('remoteJid', i);
14
+ const messageText = ef.getNodeParameter('messageText', i);
15
+ const options = ef.getNodeParameter('options_message', i, {});
16
+ const body = {
17
+ number: remoteJid,
18
+ text: messageText,
19
+ };
20
+ if (options.delay) {
21
+ body.delay = options.delay;
22
+ }
23
+ if (options.linkPreview !== undefined) {
24
+ body.linkPreview = options.linkPreview;
25
+ }
26
+ if ((_b = (_a = options.quoted) === null || _a === void 0 ? void 0 : _a.messageQuoted) === null || _b === void 0 ? void 0 : _b.messageId) {
27
+ body.quoted = {
28
+ key: {
29
+ id: options.quoted.messageQuoted.messageId,
30
+ },
31
+ };
32
+ }
33
+ if ((_c = options.mentions) === null || _c === void 0 ? void 0 : _c.mentionsSettings) {
34
+ const { mentionsEveryOne, mentioned } = options.mentions.mentionsSettings;
35
+ if (mentionsEveryOne) {
36
+ body.mentionsEveryOne = true;
37
+ }
38
+ else if (mentioned) {
39
+ const mentionedNumbers = mentioned.split(',')
40
+ .map(num => num.trim())
41
+ .map(num => num.includes('@s.whatsapp.net') ? num : `${num}@s.whatsapp.net`);
42
+ body.mentioned = mentionedNumbers;
43
+ }
44
+ }
45
+ const requestOptions = {
46
+ method: 'POST',
47
+ headers: {
48
+ 'Content-Type': 'application/json',
49
+ },
50
+ uri: `/message/sendText/${instanceName}`,
51
+ body,
52
+ json: true,
53
+ };
54
+ const response = await (0, evolutionRequest_1.evolutionRequest)(ef, requestOptions);
55
+ returnData.push({
56
+ json: {
57
+ success: true,
58
+ data: response,
59
+ },
60
+ });
61
+ }
62
+ catch (error) {
63
+ const errorMessage = error.message.includes('Could not get parameter')
64
+ ? 'Parâmetros inválidos ou ausentes'
65
+ : 'Erro ao enviar mensagem de texto';
66
+ const errorDetails = error.message.includes('Could not get parameter')
67
+ ? 'Verifique se todos os campos obrigatórios foram preenchidos corretamente'
68
+ : error.message;
69
+ if (!ef.continueOnFail()) {
70
+ throw new n8n_workflow_1.NodeOperationError(ef.getNode(), errorMessage, {
71
+ message: errorMessage,
72
+ description: errorDetails,
73
+ });
74
+ }
75
+ returnData.push({
76
+ json: {
77
+ success: false,
78
+ error: {
79
+ message: errorMessage,
80
+ details: errorDetails,
81
+ code: error.code || 'UNKNOWN_ERROR',
82
+ timestamp: new Date().toISOString(),
83
+ },
84
+ },
85
+ error: new n8n_workflow_1.NodeOperationError(ef.getNode(), errorMessage, {
86
+ message: errorMessage,
87
+ description: errorDetails,
88
+ }),
89
+ });
90
+ }
91
+ }
92
+ return returnData;
93
+ }
94
+ //# sourceMappingURL=sendText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendText.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/execute/messages/sendText.ts"],"names":[],"mappings":";;AASA,4BAgHC;AAzHD,+CAMsB;AACtB,0DAAuD;AAEhD,KAAK,UAAU,QAAQ,CAAC,EAAqB;;IACnD,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC;IAChC,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,IAAI,CAAC;YACJ,MAAM,YAAY,GAAG,EAAE,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC,CAAW,CAAC;YACtE,MAAM,SAAS,GAAG,EAAE,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;YAChE,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAW,CAAC;YACpE,MAAM,OAAO,GAAG,EAAE,CAAC,gBAAgB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AkB,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE;oBACzD,OAAO,EAAE,YAAY;oBACrB,WAAW,EAAE,YAAY;iBACzB,CAAC;aACF,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { IExecuteFunctions } from 'n8n-workflow';
2
+ export declare function sendVideo(ef: IExecuteFunctions): Promise<{
3
+ json: {
4
+ success: boolean;
5
+ data: any;
6
+ };
7
+ error?: undefined;
8
+ } | {
9
+ json: {
10
+ success: boolean;
11
+ error: {
12
+ message: string;
13
+ details: any;
14
+ code: any;
15
+ timestamp: string;
16
+ };
17
+ };
18
+ error: {
19
+ success: boolean;
20
+ error: {
21
+ message: string;
22
+ details: any;
23
+ code: any;
24
+ timestamp: string;
25
+ };
26
+ };
27
+ }>;