@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,149 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.redactInstanceSecrets = redactInstanceSecrets;
5
+ exports.isFilterNotFoundError = isFilterNotFoundError;
6
+ exports.execute = execute;
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ const GenericFunctions_1 = require("../../GenericFunctions");
9
+ const properties = [
10
+ {
11
+ displayName: 'Return All',
12
+ name: 'returnAll',
13
+ type: 'boolean',
14
+ default: false,
15
+ description: 'Whether to return all results or only up to a given limit',
16
+ },
17
+ {
18
+ displayName: 'Limit',
19
+ name: 'limit',
20
+ type: 'number',
21
+ typeOptions: { minValue: 1 },
22
+ default: 50,
23
+ displayOptions: { show: { returnAll: [false] } },
24
+ description: 'Max number of results to return',
25
+ },
26
+ {
27
+ displayName: 'Filters',
28
+ name: 'filters',
29
+ type: 'collection',
30
+ placeholder: 'Add Filter',
31
+ default: {},
32
+ options: [
33
+ {
34
+ displayName: 'Instance ID',
35
+ name: 'instanceId',
36
+ type: 'string',
37
+ default: '',
38
+ },
39
+ {
40
+ displayName: 'Instance Name',
41
+ name: 'instanceName',
42
+ type: 'string',
43
+ default: '',
44
+ description: 'Exact name of the instance',
45
+ },
46
+ {
47
+ displayName: 'Number',
48
+ name: 'number',
49
+ type: 'string',
50
+ default: '',
51
+ description: 'Number stored on the instance (only honored with the global API key)',
52
+ },
53
+ ],
54
+ },
55
+ {
56
+ displayName: 'Options',
57
+ name: 'options',
58
+ type: 'collection',
59
+ placeholder: 'Add Option',
60
+ default: {},
61
+ options: [
62
+ {
63
+ displayName: 'Include Secrets',
64
+ name: 'includeSecrets',
65
+ type: 'boolean',
66
+ default: false,
67
+ description: 'Whether to keep secrets in the output: the instance token, Chatwoot.token, Proxy.password and Setting.wavoipToken. Off by default so they are not stored in execution logs.',
68
+ },
69
+ ],
70
+ },
71
+ ];
72
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['instance'], operation: ['getMany'] } }, properties);
73
+ const SECRET_PATHS = [
74
+ [null, 'token'],
75
+ ['Chatwoot', 'token'],
76
+ ['Proxy', 'password'],
77
+ ['Setting', 'wavoipToken'],
78
+ ];
79
+ function redactInstanceSecrets(instance) {
80
+ const copy = { ...instance };
81
+ for (const [relation, key] of SECRET_PATHS) {
82
+ if (relation === null) {
83
+ delete copy[key];
84
+ continue;
85
+ }
86
+ const nested = copy[relation];
87
+ if ((0, GenericFunctions_1.isPlainObject)(nested) && key in nested) {
88
+ const nestedCopy = { ...nested };
89
+ delete nestedCopy[key];
90
+ copy[relation] = nestedCopy;
91
+ }
92
+ }
93
+ return copy;
94
+ }
95
+ const FILTER_NOT_FOUND = /Instances? ".*" not found/;
96
+ function isFilterNotFoundError(error) {
97
+ return (error instanceof n8n_workflow_1.NodeApiError &&
98
+ error.httpCode === '404' &&
99
+ FILTER_NOT_FOUND.test(error.message));
100
+ }
101
+ async function execute(itemIndex) {
102
+ var _a, _b;
103
+ const returnAll = this.getNodeParameter('returnAll', itemIndex, false);
104
+ const filters = this.getNodeParameter('filters', itemIndex, {});
105
+ const options = this.getNodeParameter('options', itemIndex, {});
106
+ const instanceName = String((_a = filters.instanceName) !== null && _a !== void 0 ? _a : '').trim();
107
+ const instanceId = String((_b = filters.instanceId) !== null && _b !== void 0 ? _b : '').trim();
108
+ const number = (0, GenericFunctions_1.normalizeNumber)(filters.number);
109
+ const qs = {};
110
+ if (instanceName)
111
+ qs.instanceName = instanceName;
112
+ if (instanceId)
113
+ qs.instanceId = instanceId;
114
+ if (number)
115
+ qs.number = number;
116
+ let response;
117
+ try {
118
+ response = await GenericFunctions_1.evolutionApiRequest.call(this, 'GET', '/instance/fetchInstances', {}, qs, {
119
+ itemIndex,
120
+ });
121
+ }
122
+ catch (error) {
123
+ if (Object.keys(qs).length > 0 && isFilterNotFoundError(error))
124
+ return [];
125
+ if (Object.keys(qs).length > 0 && error instanceof n8n_workflow_1.NodeApiError && error.httpCode === '401') {
126
+ error.message = 'Unauthorized: the API key was rejected or the instance filter matched nothing';
127
+ error.description =
128
+ 'An instance token only sees instances with that token. A name or ID filter for another instance returns 401 even when the token is valid. Remove the filters to check the credential; Number is only filtered by the server with a global API key.';
129
+ }
130
+ const nodeError = error;
131
+ throw nodeError;
132
+ }
133
+ let instances = (0, GenericFunctions_1.toArray)(response).filter((instance) => {
134
+ if (instanceName && instance.name !== undefined && instance.name !== instanceName)
135
+ return false;
136
+ if (instanceId && instance.id !== undefined && instance.id !== instanceId)
137
+ return false;
138
+ if (number && instance.number !== undefined && (0, GenericFunctions_1.normalizeNumber)(instance.number) !== number) {
139
+ return false;
140
+ }
141
+ return true;
142
+ });
143
+ if (!returnAll) {
144
+ const limit = this.getNodeParameter('limit', itemIndex, 50);
145
+ instances = instances.slice(0, limit);
146
+ }
147
+ return options.includeSecrets === true ? instances : instances.map(redactInstanceSecrets);
148
+ }
149
+ //# sourceMappingURL=getMany.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMany.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/getMany.operation.ts"],"names":[],"mappings":";;;AAwFA,sDAeC;AASD,sDAMC;AASD,0BA6CC;AA3KD,+CAAsF;AAEtF,6DAKgC;AAEhC,MAAM,UAAU,GAAsB;IACpC;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;QAC5B,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;QAChD,WAAW,EAAE,iCAAi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KAAK,SAAS,IAAI,QAAQ,CAAC,IAAI,KAAK,YAAY;YAAE,OAAO,KAAK,CAAC;QAChG,IAAI,UAAU,IAAI,QAAQ,CAAC,EAAE,KAAK,SAAS,IAAI,QAAQ,CAAC,EAAE,KAAK,UAAU;YAAE,OAAO,KAAK,CAAC;QACxF,IAAI,MAAM,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS,IAAI,IAAA,kCAAe,EAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,MAAM,EAAE,CAAC;YAC3F,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;QACtE,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,OAAO,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;AAC5F,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
2
+ export declare function redactCreatedInstanceSecrets(response: IDataObject): IDataObject;
3
+ export declare const qrCodeBinaryOptions: INodeProperties[];
4
+ export declare function findQrCodeBase64(response: IDataObject): string | undefined;
5
+ export declare function withQrCodeBinary(this: IExecuteFunctions, response: IDataObject, options: IDataObject): Promise<IDataObject | INodeExecutionData[]>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.qrCodeBinaryOptions = void 0;
4
+ exports.redactCreatedInstanceSecrets = redactCreatedInstanceSecrets;
5
+ exports.findQrCodeBase64 = findQrCodeBase64;
6
+ exports.withQrCodeBinary = withQrCodeBinary;
7
+ const GenericFunctions_1 = require("../../GenericFunctions");
8
+ const helpers_1 = require("../webhook/helpers");
9
+ function redactCreatedInstanceSecrets(response) {
10
+ const copy = { ...response };
11
+ delete copy.hash;
12
+ delete copy.token;
13
+ for (const [relation, secret] of [
14
+ ['instance', 'accessTokenWaBusiness'],
15
+ ['chatwoot', 'token'],
16
+ ['settings', 'wavoipToken'],
17
+ ]) {
18
+ if ((0, GenericFunctions_1.isPlainObject)(copy[relation])) {
19
+ const nested = { ...copy[relation] };
20
+ delete nested[secret];
21
+ copy[relation] = nested;
22
+ }
23
+ }
24
+ if ((0, GenericFunctions_1.isPlainObject)(copy.webhook)) {
25
+ const webhook = copy.webhook;
26
+ const redacted = (0, helpers_1.redactWebhookSecrets)({ headers: webhook.webhookHeaders });
27
+ copy.webhook = { ...webhook, webhookHeaders: redacted.headers };
28
+ }
29
+ return copy;
30
+ }
31
+ exports.qrCodeBinaryOptions = [
32
+ {
33
+ displayName: 'Put QR Code in Binary Property',
34
+ name: 'qrCodeAsBinary',
35
+ type: 'boolean',
36
+ default: false,
37
+ description: 'Whether to also output the QR code as a PNG file, e.g. to send it by email or chat',
38
+ },
39
+ {
40
+ displayName: 'Binary Property',
41
+ name: 'binaryPropertyName',
42
+ type: 'string',
43
+ default: 'data',
44
+ description: 'Name of the binary property that receives the QR code PNG',
45
+ },
46
+ ];
47
+ function findQrCodeBase64(response) {
48
+ const nested = (0, GenericFunctions_1.isPlainObject)(response.qrcode) ? response.qrcode.base64 : undefined;
49
+ const value = nested !== null && nested !== void 0 ? nested : response.base64;
50
+ return typeof value === 'string' && value.trim() ? value : undefined;
51
+ }
52
+ async function withQrCodeBinary(response, options) {
53
+ const base64 = findQrCodeBase64(response);
54
+ if (!options.qrCodeAsBinary || !base64)
55
+ return response;
56
+ const propertyName = String(options.binaryPropertyName || 'data').trim() || 'data';
57
+ const binary = await GenericFunctions_1.base64ToBinary.call(this, base64, 'qrcode.png', 'image/png');
58
+ return [{ json: response, binary: { [propertyName]: binary } }];
59
+ }
60
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/helpers.ts"],"names":[],"mappings":";;;AAWA,oEAqBC;AAsBD,4CAIC;AAGD,4CAWC;AAjED,6DAAuE;AACvE,gDAA0D;AAG1D,SAAgB,4BAA4B,CAAC,QAAqB;IAChE,MAAM,IAAI,GAAgB,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC1C,OAAO,IAAI,CAAC,IAAI,CAAC;IACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IAClB,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI;QAC/B,CAAC,UAAU,EAAE,uBAAuB,CAAC;QACrC,CAAC,UAAU,EAAE,OAAO,CAAC;QACrB,CAAC,UAAU,EAAE,aAAa,CAAC;KAC5B,EAAE,CAAC;QACF,IAAI,IAAA,gCAAa,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;YAClC,MAAM,MAAM,GAAgB,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACtB,IAAI,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,IAAI,IAAA,gCAAa,EAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,MAAM,QAAQ,GAAG,IAAA,8BAAoB,EAAC,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,cAAc,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAClE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAGY,QAAA,mB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AC;AAClE,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 noInstanceOperations: string[];
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.noInstanceOperations = exports.execute = exports.fields = exports.operations = void 0;
37
+ const connect = __importStar(require("./connect.operation"));
38
+ const create = __importStar(require("./create.operation"));
39
+ const deleteInstance = __importStar(require("./delete.operation"));
40
+ const getConnectionState = __importStar(require("./getConnectionState.operation"));
41
+ const getMany = __importStar(require("./getMany.operation"));
42
+ const logout = __importStar(require("./logout.operation"));
43
+ const restart = __importStar(require("./restart.operation"));
44
+ const setPresence = __importStar(require("./setPresence.operation"));
45
+ exports.operations = {
46
+ displayName: 'Operation',
47
+ name: 'operation',
48
+ type: 'options',
49
+ noDataExpression: true,
50
+ displayOptions: {
51
+ show: {
52
+ resource: ['instance'],
53
+ },
54
+ },
55
+ options: [
56
+ {
57
+ name: 'Connect',
58
+ value: 'connect',
59
+ description: 'Start the WhatsApp session and get a QR code or pairing code',
60
+ action: 'Connect an instance',
61
+ },
62
+ {
63
+ name: 'Create',
64
+ value: 'create',
65
+ description: 'Create a new instance (requires the global API key)',
66
+ action: 'Create an instance',
67
+ },
68
+ {
69
+ name: 'Delete',
70
+ value: 'delete',
71
+ description: 'Delete an instance, logging it out first when connected',
72
+ action: 'Delete an instance',
73
+ },
74
+ {
75
+ name: 'Get Connection State',
76
+ value: 'getConnectionState',
77
+ description: 'Get the connection state of an instance (open, connecting or close)',
78
+ action: 'Get the connection state of an instance',
79
+ },
80
+ {
81
+ name: 'Get Many',
82
+ value: 'getMany',
83
+ description: 'List instances with their settings and integrations',
84
+ action: 'Get many instances',
85
+ },
86
+ {
87
+ name: 'Logout',
88
+ value: 'logout',
89
+ description: 'Log out the WhatsApp session but keep the instance',
90
+ action: 'Log out an instance',
91
+ },
92
+ {
93
+ name: 'Restart',
94
+ value: 'restart',
95
+ description: 'Restart the connection of a connected instance',
96
+ action: 'Restart an instance',
97
+ },
98
+ {
99
+ name: 'Set Presence',
100
+ value: 'setPresence',
101
+ description: 'Set the global presence of the account (WhatsApp Baileys only)',
102
+ action: 'Set the presence of an instance',
103
+ },
104
+ ],
105
+ default: 'getConnectionState',
106
+ };
107
+ exports.fields = [
108
+ ...connect.description,
109
+ ...create.description,
110
+ ...deleteInstance.description,
111
+ ...getConnectionState.description,
112
+ ...getMany.description,
113
+ ...logout.description,
114
+ ...restart.description,
115
+ ...setPresence.description,
116
+ ];
117
+ exports.execute = {
118
+ connect: connect.execute,
119
+ create: create.execute,
120
+ delete: deleteInstance.execute,
121
+ getConnectionState: getConnectionState.execute,
122
+ getMany: getMany.execute,
123
+ logout: logout.execute,
124
+ restart: restart.execute,
125
+ setPresence: setPresence.execute,
126
+ };
127
+ exports.noInstanceOperations = ['create', 'getMany'];
128
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,6DAA+C;AAC/C,2DAA6C;AAC7C,mEAAqD;AACrD,mFAAqE;AACrE,6DAA+C;AAC/C,2DAA6C;AAC7C,6DAA+C;AAC/C,qEAAuD;AAM1C,QAAA,UAAU,GAAoB;IACzC,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;SACvB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,8DAA8D;YAC3E,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,qDAAqD;YAClE,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yDAAyD;YACtE,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,sBAAsB;YAC5B,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,qEAAqE;YAClF,MAAM,EAAE,yCAAyC;SAClD;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,qDAAqD;YAClE,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oDAAoD;YACjE,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,gDAAgD;YAC7D,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,cAAc;YACpB,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,gEAAgE;YAC7E,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,OAAO,EAAE,oBAAoB;CAC9B,CAAC;AAEW,QAAA,MAAM,GAAsB;IACvC,GAAG,OAAO,CAAC,WAAW;IACtB,GAAG,MAAM,CAAC,WAAW;IACrB,GAAG,cAAc,CAAC,WAAW;IAC7B,GAAG,kBAAkB,CAAC,WAAW;IACjC,GAAG,OAAO,CAAC,WAAW;IACtB,GAAG,MAAM,CAAC,WAAW;IACrB,GAAG,OAAO,CAAC,WAAW;IACtB,GAAG,WAAW,CAAC,WAAW;CAC3B,CAAC;AAEW,QAAA,OAAO,GAAqC;IACvD,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,MAAM,EAAE,MAAM,CAAC,OAAO;IACtB,MAAM,EAAE,cAAc,CAAC,OAAO;IAC9B,kBAAkB,EAAE,kBAAkB,CAAC,OAAO;IAC9C,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,MAAM,EAAE,MAAM,CAAC,OAAO;IACtB,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,WAAW,EAAE,WAAW,CAAC,OAAO;CACjC,CAAC;AAGW,QAAA,oBAAoB,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const GenericFunctions_1 = require("../../GenericFunctions");
6
+ exports.description = [];
7
+ async function execute(itemIndex) {
8
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex, { allowDefault: false });
9
+ return (await GenericFunctions_1.evolutionApiRequest.call(this, 'DELETE', `/instance/logout/${instance}`, {}, {}, { itemIndex }));
10
+ }
11
+ //# sourceMappingURL=logout.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logout.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/logout.operation.ts"],"names":[],"mappings":";;;AAYA,0BAUC;AApBD,6DAAkF;AAGrE,QAAA,WAAW,GAAsB,EAAE,CAAC;AAO1C,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,MAAM,QAAQ,GAAG,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;IAC1F,OAAO,CAAC,MAAM,sCAAmB,CAAC,IAAI,CACpC,IAAI,EACJ,QAAQ,EACR,oBAAoB,QAAQ,EAAE,EAC9B,EAAE,EACF,EAAE,EACF,EAAE,SAAS,EAAE,CACd,CAAgB,CAAC;AACpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const GenericFunctions_1 = require("../../GenericFunctions");
6
+ exports.description = [];
7
+ async function execute(itemIndex) {
8
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
9
+ const response = (await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', `/instance/restart/${instance}`, {}, {}, { itemIndex }));
10
+ (0, GenericFunctions_1.assertNoSoftError)(this.getNode(), response, itemIndex, 'Evolution API could not restart this instance. It must be connected or connecting; use "Connect" for a closed instance.');
11
+ return response;
12
+ }
13
+ //# sourceMappingURL=restart.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restart.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/restart.operation.ts"],"names":[],"mappings":";;;AAgBA,0BAmBC;AAjCD,6DAIgC;AAGnB,QAAA,WAAW,GAAsB,EAAE,CAAC;AAO1C,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,MAAM,QAAQ,GAAG,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,CAAC,MAAM,sCAAmB,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,qBAAqB,QAAQ,EAAE,EAC/B,EAAE,EACF,EAAE,EACF,EAAE,SAAS,EAAE,CACd,CAAgB,CAAC;IAElB,IAAA,oCAAiB,EACf,IAAI,CAAC,OAAO,EAAE,EACd,QAAQ,EACR,SAAS,EACT,yHAAyH,CAC1H,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const constants_1 = require("../../constants");
7
+ const GenericFunctions_1 = require("../../GenericFunctions");
8
+ const properties = [
9
+ {
10
+ displayName: 'Presence',
11
+ name: 'presence',
12
+ type: 'options',
13
+ options: constants_1.PRESENCE_OPTIONS,
14
+ default: 'available',
15
+ description: 'Global presence of the account (presenceOnlySchema)',
16
+ },
17
+ ];
18
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['instance'], operation: ['setPresence'] } }, properties);
19
+ async function execute(itemIndex) {
20
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
21
+ const presence = this.getNodeParameter('presence', itemIndex);
22
+ return (await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', `/instance/setPresence/${instance}`, { presence }, {}, { itemIndex }));
23
+ }
24
+ //# sourceMappingURL=setPresence.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setPresence.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/setPresence.operation.ts"],"names":[],"mappings":";;;AA0BA,0BAWC;AApCD,+CAAoD;AAEpD,+CAAmD;AACnD,6DAAkF;AAElF,MAAM,UAAU,GAAsB;IACpC;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,4BAAgB;QACzB,OAAO,EAAE,WAAW;QACpB,WAAW,EAAE,qDAAqD;KACnE;CACF,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAC7C,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE,EAChE,UAAU,CACX,CAAC;AAMK,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,MAAM,QAAQ,GAAG,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAW,CAAC;IACxE,OAAO,CAAC,MAAM,sCAAmB,CAAC,IAAI,CACpC,IAAI,EACJ,MAAM,EACN,yBAAyB,QAAQ,EAAE,EACnC,EAAE,QAAQ,EAAE,EACZ,EAAE,EACF,EAAE,SAAS,EAAE,CACd,CAAgB,CAAC;AACpB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const helpers_1 = require("./helpers");
7
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['label'], operation: ['addToChat'] } }, helpers_1.handleLabelProperties);
8
+ async function execute(itemIndex) {
9
+ return await helpers_1.handleLabel.call(this, itemIndex, 'add');
10
+ }
11
+ //# sourceMappingURL=addToChat.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addToChat.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/label/addToChat.operation.ts"],"names":[],"mappings":";;;AAWA,0BAEC;AAZD,+CAAoD;AAEpD,uCAA+D;AAElD,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAC7C,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAC3D,+BAAqB,CACtB,CAAC;AAGK,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,OAAO,MAAM,qBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
3
+ export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject[]>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const GenericFunctions_1 = require("../../GenericFunctions");
6
+ exports.description = [];
7
+ async function execute(itemIndex) {
8
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
9
+ const response = await GenericFunctions_1.evolutionApiRequest.call(this, 'GET', `/label/findLabels/${instance}`, {}, {}, { itemIndex });
10
+ return (0, GenericFunctions_1.toArray)(response);
11
+ }
12
+ //# sourceMappingURL=getMany.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMany.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/label/getMany.operation.ts"],"names":[],"mappings":";;;AAaA,0BAWC;AAtBD,6DAA2F;AAG9E,QAAA,WAAW,GAAsB,EAAE,CAAC;AAQ1C,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,MAAM,QAAQ,GAAG,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,MAAM,sCAAmB,CAAC,IAAI,CAC7C,IAAI,EACJ,KAAK,EACL,qBAAqB,QAAQ,EAAE,EAC/B,EAAE,EACF,EAAE,EACF,EAAE,SAAS,EAAE,CACd,CAAC;IACF,OAAO,IAAA,0BAAO,EAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IDataObject, IExecuteFunctions, ILoadOptionsFunctions, INodeListSearchResult, INodeProperties } from 'n8n-workflow';
2
+ export declare const handleLabelProperties: INodeProperties[];
3
+ export declare function handleLabel(this: IExecuteFunctions, itemIndex: number, action: 'add' | 'remove'): Promise<IDataObject>;
4
+ export declare function labelSearchLabels(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.handleLabelProperties = void 0;
4
+ exports.handleLabel = handleLabel;
5
+ exports.labelSearchLabels = labelSearchLabels;
6
+ const n8n_workflow_1 = require("n8n-workflow");
7
+ const GenericFunctions_1 = require("../../GenericFunctions");
8
+ exports.handleLabelProperties = [
9
+ {
10
+ displayName: 'Chat',
11
+ name: 'number',
12
+ type: 'string',
13
+ required: true,
14
+ default: '',
15
+ placeholder: '5215512345678',
16
+ description: 'Phone number with country code, or the JID of the chat (…@s.whatsapp.net, group …@g.us)',
17
+ },
18
+ {
19
+ displayName: 'Label',
20
+ name: 'labelId',
21
+ type: 'resourceLocator',
22
+ required: true,
23
+ default: { mode: 'list', value: '' },
24
+ description: 'WhatsApp Business label. Use Label > Get Many to list the label IDs.',
25
+ modes: [
26
+ {
27
+ displayName: 'From List',
28
+ name: 'list',
29
+ type: 'list',
30
+ placeholder: 'Select a label...',
31
+ typeOptions: {
32
+ searchListMethod: 'labelSearchLabels',
33
+ searchable: true,
34
+ },
35
+ },
36
+ {
37
+ displayName: 'By ID',
38
+ name: 'id',
39
+ type: 'string',
40
+ placeholder: 'e.g. 1',
41
+ },
42
+ ],
43
+ },
44
+ ];
45
+ async function handleLabel(itemIndex, action) {
46
+ var _a;
47
+ const instance = await GenericFunctions_1.resolveInstanceName.call(this, itemIndex);
48
+ const number = (0, GenericFunctions_1.normalizeNumber)(this.getNodeParameter('number', itemIndex, ''));
49
+ if (!number) {
50
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Chat is required', { itemIndex });
51
+ }
52
+ const labelId = String((_a = this.getNodeParameter('labelId', itemIndex, '', { extractValue: true })) !== null && _a !== void 0 ? _a : '').trim();
53
+ if (!labelId) {
54
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Label is required', { itemIndex });
55
+ }
56
+ return (await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', `/label/handleLabel/${instance}`, { number, labelId, action }, {}, { itemIndex }));
57
+ }
58
+ async function labelSearchLabels(filter) {
59
+ const instance = await GenericFunctions_1.resolveInstanceNameFromValue.call(this, this.getCurrentNodeParameter('instanceName', { extractValue: true }));
60
+ const labels = (0, GenericFunctions_1.toArray)(await GenericFunctions_1.evolutionApiRequest.call(this, 'GET', `/label/findLabels/${instance}`));
61
+ const needle = (filter !== null && filter !== void 0 ? filter : '').trim().toLowerCase();
62
+ const results = labels
63
+ .map((label) => { var _a, _b; return ({ id: String((_a = label.id) !== null && _a !== void 0 ? _a : '').trim(), name: String((_b = label.name) !== null && _b !== void 0 ? _b : '').trim() }); })
64
+ .filter((label) => label.id && (!needle || label.name.toLowerCase().includes(needle)))
65
+ .sort((a, b) => a.name.localeCompare(b.name))
66
+ .map((label) => ({ name: label.name || label.id, value: label.id }));
67
+ return { results };
68
+ }
69
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/label/helpers.ts"],"names":[],"mappings":";;;AA+DA,kCAyBC;AAGD,8CAoBC;AAxGD,+CAAkD;AAElD,6DAMgC;AAGnB,QAAA,qBAAqB,GAAsB;IACtD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;QAC5B,WAAW,EACT,yFAAyF;KAC5F;IACD;QACE,WAAW,EAAE,OAAO;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