@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.
- package/LICENSE +21 -0
- package/README.md +330 -0
- package/dist/credentials/EvolutionApi.credentials.d.ts +10 -0
- package/dist/credentials/EvolutionApi.credentials.js +84 -0
- package/dist/credentials/EvolutionApi.credentials.js.map +1 -0
- package/dist/nodes/EvolutionApi/EvolutionApi.node.d.ts +19 -0
- package/dist/nodes/EvolutionApi/EvolutionApi.node.js +180 -0
- package/dist/nodes/EvolutionApi/EvolutionApi.node.js.map +1 -0
- package/dist/nodes/EvolutionApi/EvolutionApi.node.json +22 -0
- package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.d.ts +18 -0
- package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js +615 -0
- package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.js.map +1 -0
- package/dist/nodes/EvolutionApi/EvolutionApiTrigger.node.json +19 -0
- package/dist/nodes/EvolutionApi/GenericFunctions.d.ts +114 -0
- package/dist/nodes/EvolutionApi/GenericFunctions.js +681 -0
- package/dist/nodes/EvolutionApi/GenericFunctions.js.map +1 -0
- package/dist/nodes/EvolutionApi/constants.d.ts +7 -0
- package/dist/nodes/EvolutionApi/constants.js +77 -0
- package/dist/nodes/EvolutionApi/constants.js.map +1 -0
- package/dist/nodes/EvolutionApi/evolution.svg +11 -0
- package/dist/nodes/EvolutionApi/resources/call/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/call/index.js +62 -0
- package/dist/nodes/EvolutionApi/resources/call/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/call/offer.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/call/offer.operation.js +56 -0
- package/dist/nodes/EvolutionApi/resources/call/offer.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/archive.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/archive.operation.js +44 -0
- package/dist/nodes/EvolutionApi/resources/chat/archive.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.js +28 -0
- package/dist/nodes/EvolutionApi/resources/chat/checkNumbers.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.js +68 -0
- package/dist/nodes/EvolutionApi/resources/chat/deleteMessage.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.js +143 -0
- package/dist/nodes/EvolutionApi/resources/chat/downloadMedia.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.js +49 -0
- package/dist/nodes/EvolutionApi/resources/chat/editMessage.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/get.operation.js +28 -0
- package/dist/nodes/EvolutionApi/resources/chat/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.js +23 -0
- package/dist/nodes/EvolutionApi/resources/chat/getChannels.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.js +55 -0
- package/dist/nodes/EvolutionApi/resources/chat/getContacts.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.js +74 -0
- package/dist/nodes/EvolutionApi/resources/chat/getMany.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.js +124 -0
- package/dist/nodes/EvolutionApi/resources/chat/getMessages.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.js +36 -0
- package/dist/nodes/EvolutionApi/resources/chat/getPollVotes.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.js +57 -0
- package/dist/nodes/EvolutionApi/resources/chat/getStatusUpdates.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/helpers.d.ts +25 -0
- package/dist/nodes/EvolutionApi/resources/chat/helpers.js +219 -0
- package/dist/nodes/EvolutionApi/resources/chat/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/chat/index.js +209 -0
- package/dist/nodes/EvolutionApi/resources/chat/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.js +49 -0
- package/dist/nodes/EvolutionApi/resources/chat/markAsPlayed.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.js +48 -0
- package/dist/nodes/EvolutionApi/resources/chat/markAsRead.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.js +35 -0
- package/dist/nodes/EvolutionApi/resources/chat/markUnread.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.js +53 -0
- package/dist/nodes/EvolutionApi/resources/chat/sendPresence.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.js +44 -0
- package/dist/nodes/EvolutionApi/resources/chat/updateBlockStatus.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.d.ts +31 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.js +73 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/changeStatus.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.d.ts +38 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.js +251 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/create.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.js +44 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/createCredential.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.js +19 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/delete.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.js +30 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/deleteCredential.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/fields.d.ts +10 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/fields.js +229 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/fields.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.js +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.js +17 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getCredentials.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.js +18 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getMany.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.js +39 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getModels.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.js +69 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getSessions.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.js +17 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/getSettings.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/helpers.d.ts +24 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/helpers.js +273 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.js +35 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/ignoreJid.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/index.d.ts +6 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/index.js +210 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/methods.d.ts +2 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/methods.js +58 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/methods.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.d.ts +33 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.js +133 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/setSettings.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.js +112 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/start.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.js +191 -0
- package/dist/nodes/EvolutionApi/resources/chatbot/update.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.js +25 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.d.ts +4 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.js +26 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/index.js +70 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.js +252 -0
- package/dist/nodes/EvolutionApi/resources/chatwoot/set.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.js +25 -0
- package/dist/nodes/EvolutionApi/resources/group/acceptInvite.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/create.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/create.operation.js +68 -0
- package/dist/nodes/EvolutionApi/resources/group/create.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/get.operation.js +15 -0
- package/dist/nodes/EvolutionApi/resources/group/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.js +15 -0
- package/dist/nodes/EvolutionApi/resources/group/getInviteCode.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.js +25 -0
- package/dist/nodes/EvolutionApi/resources/group/getInviteInfo.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/getMany.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/getMany.operation.js +72 -0
- package/dist/nodes/EvolutionApi/resources/group/getMany.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.js +21 -0
- package/dist/nodes/EvolutionApi/resources/group/getParticipants.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/helpers.d.ts +8 -0
- package/dist/nodes/EvolutionApi/resources/group/helpers.js +139 -0
- package/dist/nodes/EvolutionApi/resources/group/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/index.d.ts +7 -0
- package/dist/nodes/EvolutionApi/resources/group/index.js +216 -0
- package/dist/nodes/EvolutionApi/resources/group/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/leave.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/leave.operation.js +15 -0
- package/dist/nodes/EvolutionApi/resources/group/leave.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.js +20 -0
- package/dist/nodes/EvolutionApi/resources/group/revokeInviteCode.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.js +48 -0
- package/dist/nodes/EvolutionApi/resources/group/sendInvite.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.js +43 -0
- package/dist/nodes/EvolutionApi/resources/group/toggleEphemeral.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.js +34 -0
- package/dist/nodes/EvolutionApi/resources/group/updateDescription.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.js +47 -0
- package/dist/nodes/EvolutionApi/resources/group/updateMemberAddMode.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.js +67 -0
- package/dist/nodes/EvolutionApi/resources/group/updateParticipants.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.js +99 -0
- package/dist/nodes/EvolutionApi/resources/group/updatePicture.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.js +57 -0
- package/dist/nodes/EvolutionApi/resources/group/updateSetting.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.js +31 -0
- package/dist/nodes/EvolutionApi/resources/group/updateSubject.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/index.d.ts +6 -0
- package/dist/nodes/EvolutionApi/resources/index.js +144 -0
- package/dist/nodes/EvolutionApi/resources/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/connect.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/instance/connect.operation.js +40 -0
- package/dist/nodes/EvolutionApi/resources/instance/connect.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/create.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/instance/create.operation.js +519 -0
- package/dist/nodes/EvolutionApi/resources/instance/create.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/delete.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/instance/delete.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/instance/delete.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/instance/getConnectionState.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.d.ts +31 -0
- package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.js +149 -0
- package/dist/nodes/EvolutionApi/resources/instance/getMany.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/helpers.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/instance/helpers.js +60 -0
- package/dist/nodes/EvolutionApi/resources/instance/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/index.d.ts +6 -0
- package/dist/nodes/EvolutionApi/resources/instance/index.js +128 -0
- package/dist/nodes/EvolutionApi/resources/instance/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/logout.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/instance/logout.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/instance/logout.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/restart.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/instance/restart.operation.js +13 -0
- package/dist/nodes/EvolutionApi/resources/instance/restart.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.js +24 -0
- package/dist/nodes/EvolutionApi/resources/instance/setPresence.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/label/addToChat.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/label/getMany.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/label/getMany.operation.js +12 -0
- package/dist/nodes/EvolutionApi/resources/label/getMany.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/label/helpers.d.ts +4 -0
- package/dist/nodes/EvolutionApi/resources/label/helpers.js +69 -0
- package/dist/nodes/EvolutionApi/resources/label/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/label/index.d.ts +6 -0
- package/dist/nodes/EvolutionApi/resources/label/index.js +88 -0
- package/dist/nodes/EvolutionApi/resources/label/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/label/removeFromChat.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.js +21 -0
- package/dist/nodes/EvolutionApi/resources/message/generateMessageId.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/helpers.d.ts +39 -0
- package/dist/nodes/EvolutionApi/resources/message/helpers.js +566 -0
- package/dist/nodes/EvolutionApi/resources/message/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/index.d.ts +6 -0
- package/dist/nodes/EvolutionApi/resources/message/index.js +192 -0
- package/dist/nodes/EvolutionApi/resources/message/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.js +36 -0
- package/dist/nodes/EvolutionApi/resources/message/sendAudio.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.js +114 -0
- package/dist/nodes/EvolutionApi/resources/message/sendButtons.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.js +162 -0
- package/dist/nodes/EvolutionApi/resources/message/sendCarousel.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.js +105 -0
- package/dist/nodes/EvolutionApi/resources/message/sendContact.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendList.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/message/sendList.operation.js +197 -0
- package/dist/nodes/EvolutionApi/resources/message/sendList.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.js +70 -0
- package/dist/nodes/EvolutionApi/resources/message/sendLocation.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.js +142 -0
- package/dist/nodes/EvolutionApi/resources/message/sendMedia.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.js +67 -0
- package/dist/nodes/EvolutionApi/resources/message/sendPoll.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.js +22 -0
- package/dist/nodes/EvolutionApi/resources/message/sendPtv.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.js +81 -0
- package/dist/nodes/EvolutionApi/resources/message/sendReaction.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.js +147 -0
- package/dist/nodes/EvolutionApi/resources/message/sendStatus.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.js +41 -0
- package/dist/nodes/EvolutionApi/resources/message/sendSticker.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.js +92 -0
- package/dist/nodes/EvolutionApi/resources/message/sendTemplate.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/message/sendText.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/message/sendText.operation.js +38 -0
- package/dist/nodes/EvolutionApi/resources/message/sendText.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/profile/get.operation.js +27 -0
- package/dist/nodes/EvolutionApi/resources/profile/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.js +24 -0
- package/dist/nodes/EvolutionApi/resources/profile/getBusinessProfile.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.js +27 -0
- package/dist/nodes/EvolutionApi/resources/profile/getPicture.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/profile/getPrivacySettings.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/profile/index.js +136 -0
- package/dist/nodes/EvolutionApi/resources/profile/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.js +11 -0
- package/dist/nodes/EvolutionApi/resources/profile/removePicture.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.js +27 -0
- package/dist/nodes/EvolutionApi/resources/profile/updateName.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.js +86 -0
- package/dist/nodes/EvolutionApi/resources/profile/updatePicture.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.js +133 -0
- package/dist/nodes/EvolutionApi/resources/profile/updatePrivacySettings.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.js +28 -0
- package/dist/nodes/EvolutionApi/resources/profile/updateStatus.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/proxy/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/proxy/get.operation.js +25 -0
- package/dist/nodes/EvolutionApi/resources/proxy/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/proxy/helpers.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/proxy/helpers.js +28 -0
- package/dist/nodes/EvolutionApi/resources/proxy/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/proxy/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/proxy/index.js +70 -0
- package/dist/nodes/EvolutionApi/resources/proxy/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/proxy/set.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/proxy/set.operation.js +137 -0
- package/dist/nodes/EvolutionApi/resources/proxy/set.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/settings/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/settings/get.operation.js +25 -0
- package/dist/nodes/EvolutionApi/resources/settings/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/settings/helpers.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/settings/helpers.js +37 -0
- package/dist/nodes/EvolutionApi/resources/settings/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/settings/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/settings/index.js +70 -0
- package/dist/nodes/EvolutionApi/resources/settings/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/settings/set.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/settings/set.operation.js +128 -0
- package/dist/nodes/EvolutionApi/resources/settings/set.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/create.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/template/create.operation.js +97 -0
- package/dist/nodes/EvolutionApi/resources/template/create.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/delete.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/template/delete.operation.js +50 -0
- package/dist/nodes/EvolutionApi/resources/template/delete.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.js +48 -0
- package/dist/nodes/EvolutionApi/resources/template/getCatalog.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.js +41 -0
- package/dist/nodes/EvolutionApi/resources/template/getCollections.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/getMany.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/template/getMany.operation.js +109 -0
- package/dist/nodes/EvolutionApi/resources/template/getMany.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/helpers.d.ts +3 -0
- package/dist/nodes/EvolutionApi/resources/template/helpers.js +32 -0
- package/dist/nodes/EvolutionApi/resources/template/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/template/index.js +109 -0
- package/dist/nodes/EvolutionApi/resources/template/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/template/update.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/template/update.operation.js +89 -0
- package/dist/nodes/EvolutionApi/resources/template/update.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/webhook/get.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/webhook/get.operation.js +25 -0
- package/dist/nodes/EvolutionApi/resources/webhook/get.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.d.ts +30 -0
- package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.js +49 -0
- package/dist/nodes/EvolutionApi/resources/webhook/getTransport.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/webhook/helpers.d.ts +17 -0
- package/dist/nodes/EvolutionApi/resources/webhook/helpers.js +144 -0
- package/dist/nodes/EvolutionApi/resources/webhook/helpers.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/webhook/index.d.ts +5 -0
- package/dist/nodes/EvolutionApi/resources/webhook/index.js +91 -0
- package/dist/nodes/EvolutionApi/resources/webhook/index.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/webhook/set.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/webhook/set.operation.js +174 -0
- package/dist/nodes/EvolutionApi/resources/webhook/set.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.d.ts +29 -0
- package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.js +159 -0
- package/dist/nodes/EvolutionApi/resources/webhook/setTransport.operation.js.map +1 -0
- package/dist/nodes/EvolutionApi/trigger/auth.d.ts +26 -0
- package/dist/nodes/EvolutionApi/trigger/auth.js +96 -0
- package/dist/nodes/EvolutionApi/trigger/auth.js.map +1 -0
- package/dist/nodes/EvolutionApi/trigger/constants.d.ts +10 -0
- package/dist/nodes/EvolutionApi/trigger/constants.js +154 -0
- package/dist/nodes/EvolutionApi/trigger/constants.js.map +1 -0
- package/dist/nodes/EvolutionApi/trigger/dedupe.d.ts +5 -0
- package/dist/nodes/EvolutionApi/trigger/dedupe.js +87 -0
- package/dist/nodes/EvolutionApi/trigger/dedupe.js.map +1 -0
- package/dist/nodes/EvolutionApi/trigger/payload.d.ts +48 -0
- package/dist/nodes/EvolutionApi/trigger/payload.js +265 -0
- package/dist/nodes/EvolutionApi/trigger/payload.js.map +1 -0
- package/dist/nodes/EvolutionApi/trigger/registration.d.ts +36 -0
- package/dist/nodes/EvolutionApi/trigger/registration.js +156 -0
- package/dist/nodes/EvolutionApi/trigger/registration.js.map +1 -0
- package/dist/nodes/EvolutionApi/types.d.ts +44 -0
- package/dist/nodes/EvolutionApi/types.js +3 -0
- package/dist/nodes/EvolutionApi/types.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IDataObject, IExecuteFunctions, INodeExecutionData, 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 buildCreateBody(this: IExecuteFunctions, itemIndex: number): IDataObject;
|
|
30
|
+
export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject | INodeExecutionData[]>;
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.buildCreateBody = buildCreateBody;
|
|
5
|
+
exports.execute = execute;
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
9
|
+
const helpers_1 = require("../webhook/helpers");
|
|
10
|
+
const helpers_2 = require("./helpers");
|
|
11
|
+
const properties = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'New Instance Name',
|
|
14
|
+
name: 'newInstanceName',
|
|
15
|
+
type: 'string',
|
|
16
|
+
required: true,
|
|
17
|
+
default: '',
|
|
18
|
+
placeholder: 'sales-team',
|
|
19
|
+
description: 'Name of the new instance. It must be unique on the Evolution API server.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Integration',
|
|
23
|
+
name: 'integration',
|
|
24
|
+
type: 'options',
|
|
25
|
+
options: constants_1.INTEGRATION_OPTIONS,
|
|
26
|
+
default: 'WHATSAPP-BAILEYS',
|
|
27
|
+
description: 'Connection type of the new instance',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Generate QR Code',
|
|
31
|
+
name: 'qrcode',
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
default: true,
|
|
34
|
+
displayOptions: { show: { integration: ['WHATSAPP-BAILEYS'] } },
|
|
35
|
+
description: 'Whether to start the WhatsApp connection right away and return the QR code (plus a pairing code when "Phone Number" is set). Evolution waits about 5 seconds for it. Evolution skips this when the Chatwoot block is set: use Connect afterwards.',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Access Token',
|
|
39
|
+
name: 'businessToken',
|
|
40
|
+
type: 'string',
|
|
41
|
+
typeOptions: { password: true },
|
|
42
|
+
required: true,
|
|
43
|
+
default: '',
|
|
44
|
+
displayOptions: { show: { integration: ['WHATSAPP-BUSINESS'] } },
|
|
45
|
+
description: "Permanent Meta access token (System User token). Evolution also uses it as this instance's API key.",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Phone Number ID',
|
|
49
|
+
name: 'phoneNumberId',
|
|
50
|
+
type: 'string',
|
|
51
|
+
required: true,
|
|
52
|
+
default: '',
|
|
53
|
+
displayOptions: { show: { integration: ['WHATSAPP-BUSINESS'] } },
|
|
54
|
+
description: 'Meta phone number ID (from WhatsApp Manager), not the phone number itself',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Business Account ID',
|
|
58
|
+
name: 'businessId',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
displayOptions: { show: { integration: ['WHATSAPP-BUSINESS'] } },
|
|
62
|
+
description: 'WhatsApp Business Account (WABA) ID. Needed to manage message templates.',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Additional Fields',
|
|
66
|
+
name: 'additionalFields',
|
|
67
|
+
type: 'collection',
|
|
68
|
+
placeholder: 'Add Field',
|
|
69
|
+
default: {},
|
|
70
|
+
displayOptions: { show: { integration: ['WHATSAPP-BAILEYS', 'EVOLUTION'] } },
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Instance Token',
|
|
74
|
+
name: 'token',
|
|
75
|
+
type: 'string',
|
|
76
|
+
typeOptions: { password: true },
|
|
77
|
+
default: '',
|
|
78
|
+
description: 'API key for this instance. Leave empty to let Evolution generate one (returned as "hash" when Options > Include Secrets is on).',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Phone Number',
|
|
82
|
+
name: 'number',
|
|
83
|
+
type: 'string',
|
|
84
|
+
default: '',
|
|
85
|
+
placeholder: '5215512345678',
|
|
86
|
+
description: 'Phone number with country code. With "Generate QR Code" on, Evolution also returns a pairing code for it.',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Settings',
|
|
92
|
+
name: 'instanceSettings',
|
|
93
|
+
type: 'collection',
|
|
94
|
+
placeholder: 'Add Setting',
|
|
95
|
+
default: {},
|
|
96
|
+
description: 'Behavior settings of the instance. Settings not added here default to off.',
|
|
97
|
+
options: [
|
|
98
|
+
{
|
|
99
|
+
displayName: 'Always Online',
|
|
100
|
+
name: 'alwaysOnline',
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
default: false,
|
|
103
|
+
description: 'Whether to keep the WhatsApp presence as online',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Call Rejection Message',
|
|
107
|
+
name: 'msgCall',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: '',
|
|
110
|
+
description: 'Message sent to the caller when "Reject Calls" is on',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Ignore Groups',
|
|
114
|
+
name: 'groupsIgnore',
|
|
115
|
+
type: 'boolean',
|
|
116
|
+
default: false,
|
|
117
|
+
description: 'Whether to ignore messages from groups',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Read Messages',
|
|
121
|
+
name: 'readMessages',
|
|
122
|
+
type: 'boolean',
|
|
123
|
+
default: false,
|
|
124
|
+
description: 'Whether to mark incoming messages as read automatically',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: 'Read Status',
|
|
128
|
+
name: 'readStatus',
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
default: false,
|
|
131
|
+
description: "Whether to mark contacts' status updates as seen automatically",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
displayName: 'Reject Calls',
|
|
135
|
+
name: 'rejectCall',
|
|
136
|
+
type: 'boolean',
|
|
137
|
+
default: false,
|
|
138
|
+
description: 'Whether to reject incoming calls automatically',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Sync Full History',
|
|
142
|
+
name: 'syncFullHistory',
|
|
143
|
+
type: 'boolean',
|
|
144
|
+
default: false,
|
|
145
|
+
description: 'Whether to request the full chat history when the session connects',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Wavoip Token',
|
|
149
|
+
name: 'wavoipToken',
|
|
150
|
+
type: 'string',
|
|
151
|
+
typeOptions: { password: true },
|
|
152
|
+
default: '',
|
|
153
|
+
description: 'Unsupported during creation on Evolution API 2.3.7 and 2.4.0-rc2: the WhatsApp socket does not exist yet. Leave empty, then use Settings > Set after connecting a WhatsApp Baileys instance.',
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Webhook',
|
|
159
|
+
name: 'webhookConfig',
|
|
160
|
+
type: 'collection',
|
|
161
|
+
placeholder: 'Add Webhook Option',
|
|
162
|
+
default: {},
|
|
163
|
+
description: 'Configure the instance webhook at creation time. "URL" is required.',
|
|
164
|
+
options: [
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Events',
|
|
167
|
+
name: 'events',
|
|
168
|
+
type: 'multiOptions',
|
|
169
|
+
options: helpers_1.WEBHOOK_EVENT_OPTIONS,
|
|
170
|
+
default: [],
|
|
171
|
+
description: `Events to send. Leave empty to receive all events. "Messaging History Set": ${constants_1.REQUIRES_24}`,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Headers (JSON)',
|
|
175
|
+
name: 'headers',
|
|
176
|
+
type: 'json',
|
|
177
|
+
default: '{}',
|
|
178
|
+
description: 'Extra headers sent with every webhook, e.g. {"authorization": "Bearer …"}. A "jwt_key" entry is not sent as-is: Evolution uses it to sign a short-lived JWT (HS256) and sends it as "Authorization: Bearer …".',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'URL',
|
|
182
|
+
name: 'url',
|
|
183
|
+
type: 'string',
|
|
184
|
+
default: '',
|
|
185
|
+
placeholder: 'https://n8n.example.com/webhook/evolution',
|
|
186
|
+
description: 'URL that receives the events',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
displayName: 'Webhook Base64',
|
|
190
|
+
name: 'base64',
|
|
191
|
+
type: 'boolean',
|
|
192
|
+
default: false,
|
|
193
|
+
description: 'Whether to include received media as base64 in the payload',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
displayName: 'Webhook by Events',
|
|
197
|
+
name: 'byEvents',
|
|
198
|
+
type: 'boolean',
|
|
199
|
+
default: false,
|
|
200
|
+
description: 'Whether to append the event name to the URL (e.g. …/messages-upsert)',
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Proxy',
|
|
206
|
+
name: 'proxyConfig',
|
|
207
|
+
type: 'collection',
|
|
208
|
+
placeholder: 'Add Proxy Option',
|
|
209
|
+
default: {},
|
|
210
|
+
description: 'Route the WhatsApp connection through a proxy. "Host" and "Port" are required; Evolution tests the proxy and answers "Invalid proxy" when it does not work.',
|
|
211
|
+
options: [
|
|
212
|
+
{
|
|
213
|
+
displayName: 'Host',
|
|
214
|
+
name: 'host',
|
|
215
|
+
type: 'string',
|
|
216
|
+
default: '',
|
|
217
|
+
placeholder: 'proxy.example.com',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Password',
|
|
221
|
+
name: 'password',
|
|
222
|
+
type: 'string',
|
|
223
|
+
typeOptions: { password: true },
|
|
224
|
+
default: '',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
displayName: 'Port',
|
|
228
|
+
name: 'port',
|
|
229
|
+
type: 'string',
|
|
230
|
+
default: '',
|
|
231
|
+
placeholder: '8080',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
displayName: 'Protocol',
|
|
235
|
+
name: 'protocol',
|
|
236
|
+
type: 'options',
|
|
237
|
+
options: [
|
|
238
|
+
{ name: 'HTTP', value: 'http' },
|
|
239
|
+
{ name: 'SOCKS', value: 'socks' },
|
|
240
|
+
{ name: 'SOCKS5', value: 'socks5' },
|
|
241
|
+
],
|
|
242
|
+
default: 'http',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Username',
|
|
246
|
+
name: 'username',
|
|
247
|
+
type: 'string',
|
|
248
|
+
default: '',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Chatwoot',
|
|
254
|
+
name: 'chatwootConfig',
|
|
255
|
+
type: 'collection',
|
|
256
|
+
placeholder: 'Add Chatwoot Option',
|
|
257
|
+
default: {},
|
|
258
|
+
description: 'Connect the instance to Chatwoot at creation time (requires CHATWOOT_ENABLED=true on the server). "Account ID", "API Access Token" and "URL" are required.',
|
|
259
|
+
options: [
|
|
260
|
+
{
|
|
261
|
+
displayName: 'Account ID',
|
|
262
|
+
name: 'accountId',
|
|
263
|
+
type: 'string',
|
|
264
|
+
default: '',
|
|
265
|
+
placeholder: '1',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
displayName: 'API Access Token',
|
|
269
|
+
name: 'token',
|
|
270
|
+
type: 'string',
|
|
271
|
+
typeOptions: { password: true },
|
|
272
|
+
default: '',
|
|
273
|
+
description: 'Access token of a Chatwoot user (Profile Settings > Access Token)',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: 'Auto Create Inbox',
|
|
277
|
+
name: 'autoCreate',
|
|
278
|
+
type: 'boolean',
|
|
279
|
+
default: true,
|
|
280
|
+
description: 'Whether Evolution creates the API inbox in Chatwoot automatically',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
displayName: 'Conversation Pending',
|
|
284
|
+
name: 'conversationPending',
|
|
285
|
+
type: 'boolean',
|
|
286
|
+
default: false,
|
|
287
|
+
description: 'Whether new conversations start as pending',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
displayName: 'Days Limit Import Messages',
|
|
291
|
+
name: 'daysLimitImportMessages',
|
|
292
|
+
type: 'number',
|
|
293
|
+
typeOptions: { minValue: 0 },
|
|
294
|
+
default: 60,
|
|
295
|
+
description: 'How many days of history to import',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
displayName: 'Import Contacts',
|
|
299
|
+
name: 'importContacts',
|
|
300
|
+
type: 'boolean',
|
|
301
|
+
default: true,
|
|
302
|
+
description: 'Whether to import WhatsApp contacts into Chatwoot',
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
displayName: 'Import Messages',
|
|
306
|
+
name: 'importMessages',
|
|
307
|
+
type: 'boolean',
|
|
308
|
+
default: true,
|
|
309
|
+
description: 'Whether to import message history into Chatwoot',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
displayName: 'Inbox Name',
|
|
313
|
+
name: 'nameInbox',
|
|
314
|
+
type: 'string',
|
|
315
|
+
default: '',
|
|
316
|
+
description: 'Name of the Chatwoot inbox. Defaults to the instance name.',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
displayName: 'Logo URL',
|
|
320
|
+
name: 'logo',
|
|
321
|
+
type: 'string',
|
|
322
|
+
default: '',
|
|
323
|
+
description: 'Avatar URL of the bot contact created in Chatwoot',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
displayName: 'Merge Brazil Contacts',
|
|
327
|
+
name: 'mergeBrazilContacts',
|
|
328
|
+
type: 'boolean',
|
|
329
|
+
default: false,
|
|
330
|
+
description: 'Whether to merge Brazilian contacts with and without the 9th digit',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
displayName: 'Organization',
|
|
334
|
+
name: 'organization',
|
|
335
|
+
type: 'string',
|
|
336
|
+
default: '',
|
|
337
|
+
description: 'Name of the bot contact created in Chatwoot',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
displayName: 'Reopen Conversation',
|
|
341
|
+
name: 'reopenConversation',
|
|
342
|
+
type: 'boolean',
|
|
343
|
+
default: false,
|
|
344
|
+
description: 'Whether to reopen the last resolved conversation instead of creating a new one',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
displayName: 'Sign Messages',
|
|
348
|
+
name: 'signMsg',
|
|
349
|
+
type: 'boolean',
|
|
350
|
+
default: false,
|
|
351
|
+
description: 'Whether to prefix agent messages with the agent name',
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
displayName: 'URL',
|
|
355
|
+
name: 'url',
|
|
356
|
+
type: 'string',
|
|
357
|
+
default: '',
|
|
358
|
+
placeholder: 'https://chatwoot.example.com',
|
|
359
|
+
description: 'Base URL of the Chatwoot server',
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
displayName: 'Options',
|
|
365
|
+
name: 'options',
|
|
366
|
+
type: 'collection',
|
|
367
|
+
placeholder: 'Add Option',
|
|
368
|
+
default: {},
|
|
369
|
+
options: [
|
|
370
|
+
...helpers_2.qrCodeBinaryOptions,
|
|
371
|
+
{
|
|
372
|
+
displayName: 'Include Secrets',
|
|
373
|
+
name: 'includeSecrets',
|
|
374
|
+
type: 'boolean',
|
|
375
|
+
default: false,
|
|
376
|
+
description: 'Whether to return the instance token (hash), Cloud API verify token, Chatwoot and Wavoip tokens, and secret webhook headers. Enable only when needed to retrieve generated credentials; these values are stored in execution logs.',
|
|
377
|
+
},
|
|
378
|
+
].sort((a, b) => a.displayName.localeCompare(b.displayName)),
|
|
379
|
+
},
|
|
380
|
+
];
|
|
381
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['instance'], operation: ['create'] } }, properties);
|
|
382
|
+
const SETTINGS_KEYS = [
|
|
383
|
+
'rejectCall',
|
|
384
|
+
'msgCall',
|
|
385
|
+
'groupsIgnore',
|
|
386
|
+
'alwaysOnline',
|
|
387
|
+
'readMessages',
|
|
388
|
+
'readStatus',
|
|
389
|
+
'syncFullHistory',
|
|
390
|
+
];
|
|
391
|
+
function buildCreateBody(itemIndex) {
|
|
392
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
393
|
+
const node = this.getNode();
|
|
394
|
+
const instanceName = String(this.getNodeParameter('newInstanceName', itemIndex, '')).trim();
|
|
395
|
+
if (!instanceName) {
|
|
396
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'New Instance Name is required', { itemIndex });
|
|
397
|
+
}
|
|
398
|
+
const integration = this.getNodeParameter('integration', itemIndex, 'WHATSAPP-BAILEYS');
|
|
399
|
+
const body = { instanceName, integration };
|
|
400
|
+
if (integration === 'WHATSAPP-BUSINESS') {
|
|
401
|
+
const token = String(this.getNodeParameter('businessToken', itemIndex, '')).trim();
|
|
402
|
+
const phoneNumberId = (0, GenericFunctions_1.normalizeNumber)(this.getNodeParameter('phoneNumberId', itemIndex, ''));
|
|
403
|
+
if (!token || !phoneNumberId) {
|
|
404
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Access Token and Phone Number ID are required for WhatsApp Cloud API instances', { itemIndex });
|
|
405
|
+
}
|
|
406
|
+
body.token = token;
|
|
407
|
+
body.number = phoneNumberId;
|
|
408
|
+
const businessId = String(this.getNodeParameter('businessId', itemIndex, '')).trim();
|
|
409
|
+
if (businessId)
|
|
410
|
+
body.businessId = businessId;
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {});
|
|
414
|
+
const token = String((_a = additionalFields.token) !== null && _a !== void 0 ? _a : '').trim();
|
|
415
|
+
if (token)
|
|
416
|
+
body.token = token;
|
|
417
|
+
const number = (0, GenericFunctions_1.normalizeNumber)(additionalFields.number);
|
|
418
|
+
if (number)
|
|
419
|
+
body.number = number;
|
|
420
|
+
if (integration === 'WHATSAPP-BAILEYS') {
|
|
421
|
+
body.qrcode = this.getNodeParameter('qrcode', itemIndex, true);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
const settings = this.getNodeParameter('instanceSettings', itemIndex, {});
|
|
425
|
+
if (String((_b = settings.wavoipToken) !== null && _b !== void 0 ? _b : '').trim()) {
|
|
426
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Wavoip Token cannot be set during instance creation', {
|
|
427
|
+
itemIndex,
|
|
428
|
+
description: 'Evolution API 2.3.7 and 2.4.0-rc2 access a WhatsApp socket before it exists and roll back creation. Leave Wavoip Token empty, connect the WhatsApp Baileys instance, then use Settings > Set.',
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
for (const key of SETTINGS_KEYS) {
|
|
432
|
+
if (settings[key] !== undefined && settings[key] !== '')
|
|
433
|
+
body[key] = settings[key];
|
|
434
|
+
}
|
|
435
|
+
const webhook = this.getNodeParameter('webhookConfig', itemIndex, {});
|
|
436
|
+
if (Object.keys(webhook).length > 0) {
|
|
437
|
+
const url = String((_c = webhook.url) !== null && _c !== void 0 ? _c : '').trim();
|
|
438
|
+
if (!url) {
|
|
439
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Webhook URL is required when configuring a webhook', {
|
|
440
|
+
itemIndex,
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
const webhookBody = {
|
|
444
|
+
enabled: true,
|
|
445
|
+
url,
|
|
446
|
+
events: (_d = webhook.events) !== null && _d !== void 0 ? _d : [],
|
|
447
|
+
byEvents: webhook.byEvents === true,
|
|
448
|
+
base64: webhook.base64 === true,
|
|
449
|
+
};
|
|
450
|
+
const headers = (0, GenericFunctions_1.parseJsonParameter)(webhook.headers, 'Webhook > Headers (JSON)');
|
|
451
|
+
if (headers !== undefined && !(0, GenericFunctions_1.isPlainObject)(headers)) {
|
|
452
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Webhook headers must be a JSON object', { itemIndex });
|
|
453
|
+
}
|
|
454
|
+
if ((0, GenericFunctions_1.isPlainObject)(headers) && Object.keys(headers).length > 0)
|
|
455
|
+
webhookBody.headers = headers;
|
|
456
|
+
body.webhook = webhookBody;
|
|
457
|
+
}
|
|
458
|
+
const proxy = this.getNodeParameter('proxyConfig', itemIndex, {});
|
|
459
|
+
if (Object.keys(proxy).length > 0) {
|
|
460
|
+
const host = String((_e = proxy.host) !== null && _e !== void 0 ? _e : '').trim();
|
|
461
|
+
const port = String((_f = proxy.port) !== null && _f !== void 0 ? _f : '').trim();
|
|
462
|
+
if (!host || !port) {
|
|
463
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Proxy Host and Port are required when configuring a proxy', {
|
|
464
|
+
itemIndex,
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
body.proxyHost = host;
|
|
468
|
+
body.proxyPort = port;
|
|
469
|
+
body.proxyProtocol = String(proxy.protocol || 'http');
|
|
470
|
+
if (proxy.username)
|
|
471
|
+
body.proxyUsername = String(proxy.username);
|
|
472
|
+
if (proxy.password)
|
|
473
|
+
body.proxyPassword = String(proxy.password);
|
|
474
|
+
}
|
|
475
|
+
const chatwoot = this.getNodeParameter('chatwootConfig', itemIndex, {});
|
|
476
|
+
if (Object.keys(chatwoot).length > 0) {
|
|
477
|
+
const accountId = String((_g = chatwoot.accountId) !== null && _g !== void 0 ? _g : '').trim();
|
|
478
|
+
const token = String((_h = chatwoot.token) !== null && _h !== void 0 ? _h : '').trim();
|
|
479
|
+
const url = String((_j = chatwoot.url) !== null && _j !== void 0 ? _j : '').trim();
|
|
480
|
+
if (!accountId || !token || !url) {
|
|
481
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Chatwoot Account ID, API Access Token and URL are required when configuring Chatwoot', { itemIndex });
|
|
482
|
+
}
|
|
483
|
+
body.chatwootAccountId = accountId;
|
|
484
|
+
body.chatwootToken = token;
|
|
485
|
+
body.chatwootUrl = url.replace(/\/+$/, '');
|
|
486
|
+
body.chatwootSignMsg = chatwoot.signMsg === true;
|
|
487
|
+
body.chatwootReopenConversation = chatwoot.reopenConversation === true;
|
|
488
|
+
body.chatwootConversationPending = chatwoot.conversationPending === true;
|
|
489
|
+
if (chatwoot.importContacts !== undefined)
|
|
490
|
+
body.chatwootImportContacts = chatwoot.importContacts;
|
|
491
|
+
if (chatwoot.importMessages !== undefined)
|
|
492
|
+
body.chatwootImportMessages = chatwoot.importMessages;
|
|
493
|
+
if (chatwoot.daysLimitImportMessages !== undefined) {
|
|
494
|
+
body.chatwootDaysLimitImportMessages = Number(chatwoot.daysLimitImportMessages);
|
|
495
|
+
}
|
|
496
|
+
if (chatwoot.mergeBrazilContacts !== undefined) {
|
|
497
|
+
body.chatwootMergeBrazilContacts = chatwoot.mergeBrazilContacts;
|
|
498
|
+
}
|
|
499
|
+
if (chatwoot.autoCreate !== undefined)
|
|
500
|
+
body.chatwootAutoCreate = chatwoot.autoCreate;
|
|
501
|
+
if (chatwoot.nameInbox)
|
|
502
|
+
body.chatwootNameInbox = String(chatwoot.nameInbox);
|
|
503
|
+
if (chatwoot.organization)
|
|
504
|
+
body.chatwootOrganization = String(chatwoot.organization);
|
|
505
|
+
if (chatwoot.logo)
|
|
506
|
+
body.chatwootLogo = String(chatwoot.logo);
|
|
507
|
+
}
|
|
508
|
+
return body;
|
|
509
|
+
}
|
|
510
|
+
async function execute(itemIndex) {
|
|
511
|
+
const body = buildCreateBody.call(this, itemIndex);
|
|
512
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
513
|
+
const response = (await GenericFunctions_1.evolutionApiRequest.call(this, 'POST', '/instance/create', body, {}, {
|
|
514
|
+
itemIndex,
|
|
515
|
+
}));
|
|
516
|
+
const output = options.includeSecrets === true ? response : (0, helpers_2.redactCreatedInstanceSecrets)(response);
|
|
517
|
+
return await helpers_2.withQrCodeBinary.call(this, output, options);
|
|
518
|
+
}
|
|
519
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/create.operation.ts"],"names":[],"mappings":";;;AA+ZA,0CAuIC;AAOD,0BAoBC;AA3jBD,+CAAwE;AAExE,+CAAmE;AACnE,6DAKgC;AAChC,gDAA2D;AAC3D,uCAAgG;AAEhG,MAAM,UAAU,GAAsB;IACpC;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,0EAA0E;KACxF;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,+BAAmB;QAC5B,OAAO,EAAE,kBAAkB;QAC3B,WAAW,EAAE,qCAAqC;KACnD;IACD;QACE,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,kBAAkB,CAAC,EAAE,EAAE;QAC/D,WAAW,EACT,mPAAmP;KACtP;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;QAChE,WAAW,EACT,qGAAqG;KACxG;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO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AAQ,CAAC,YAAY,CAAC,CAAC;QACrF,IAAI,QAAQ,CAAC,IAAI;YAAE,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAOM,KAAK,UAAU,OAAO,CAE3B,SAAiB;IAEjB,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAgB,CAAC;IAE/E,MAAM,QAAQ,GAAG,CAAC,MAAM,sCAAmB,CAAC,IAAI,CAC9C,IAAI,EACJ,MAAM,EACN,kBAAkB,EAClB,IAAI,EACJ,EAAE,EACF;QACE,SAAS;KACV,CACF,CAAgB,CAAC;IAElB,MAAM,MAAM,GAAG,OAAO,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,sCAA4B,EAAC,QAAQ,CAAC,CAAC;IACnG,OAAO,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -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/delete/${instance}`, {}, {}, { itemIndex }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/delete.operation.ts"],"names":[],"mappings":";;;AAWA,0BAUC;AAnBD,6DAAkF;AAGrE,QAAA,WAAW,GAAsB,EAAE,CAAC;AAM1C,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,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);
|
|
9
|
+
return (await GenericFunctions_1.evolutionApiRequest.call(this, 'GET', `/instance/connectionState/${instance}`, {}, {}, { itemIndex }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getConnectionState.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConnectionState.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/instance/getConnectionState.operation.ts"],"names":[],"mappings":";;;AAWA,0BAUC;AAnBD,6DAAkF;AAGrE,QAAA,WAAW,GAAsB,EAAE,CAAC;AAM1C,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,MAAM,QAAQ,GAAG,MAAM,sCAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACjE,OAAO,CAAC,MAAM,sCAAmB,CAAC,IAAI,CACpC,IAAI,EACJ,KAAK,EACL,6BAA6B,QAAQ,EAAE,EACvC,EAAE,EACF,EAAE,EACF,EAAE,SAAS,EAAE,CACd,CAAgB,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 redactInstanceSecrets(instance: IDataObject): IDataObject;
|
|
30
|
+
export declare function isFilterNotFoundError(error: unknown): boolean;
|
|
31
|
+
export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject[]>;
|