@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,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.binaryPassThrough = exports.execute = exports.fields = exports.operations = void 0;
|
|
37
|
+
const constants_1 = require("../../constants");
|
|
38
|
+
const generateMessageId = __importStar(require("./generateMessageId.operation"));
|
|
39
|
+
const sendAudio = __importStar(require("./sendAudio.operation"));
|
|
40
|
+
const sendButtons = __importStar(require("./sendButtons.operation"));
|
|
41
|
+
const sendCarousel = __importStar(require("./sendCarousel.operation"));
|
|
42
|
+
const sendContact = __importStar(require("./sendContact.operation"));
|
|
43
|
+
const sendList = __importStar(require("./sendList.operation"));
|
|
44
|
+
const sendLocation = __importStar(require("./sendLocation.operation"));
|
|
45
|
+
const sendMedia = __importStar(require("./sendMedia.operation"));
|
|
46
|
+
const sendPoll = __importStar(require("./sendPoll.operation"));
|
|
47
|
+
const sendPtv = __importStar(require("./sendPtv.operation"));
|
|
48
|
+
const sendReaction = __importStar(require("./sendReaction.operation"));
|
|
49
|
+
const sendStatus = __importStar(require("./sendStatus.operation"));
|
|
50
|
+
const sendSticker = __importStar(require("./sendSticker.operation"));
|
|
51
|
+
const sendTemplate = __importStar(require("./sendTemplate.operation"));
|
|
52
|
+
const sendText = __importStar(require("./sendText.operation"));
|
|
53
|
+
exports.operations = {
|
|
54
|
+
displayName: 'Operation',
|
|
55
|
+
name: 'operation',
|
|
56
|
+
type: 'options',
|
|
57
|
+
noDataExpression: true,
|
|
58
|
+
displayOptions: {
|
|
59
|
+
show: {
|
|
60
|
+
resource: ['message'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
name: 'Generate Message ID',
|
|
66
|
+
value: 'generateMessageId',
|
|
67
|
+
description: `Generate a valid WhatsApp message ID to pass as Custom Message ID of a send operation, e.g. for retries without duplicates (WhatsApp Baileys only). ${constants_1.REQUIRES_24}`,
|
|
68
|
+
action: 'Generate a message ID',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Send Audio',
|
|
72
|
+
value: 'sendAudio',
|
|
73
|
+
description: 'Send a voice note (push-to-talk) from a URL, base64 or binary file; converted to OGG/Opus by Evolution',
|
|
74
|
+
action: 'Send a voice message',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Send Buttons',
|
|
78
|
+
value: 'sendButtons',
|
|
79
|
+
description: 'Send a message with quick reply, URL, call, copy code or PIX buttons (1-3 replies or 1-2 call-to-action buttons)',
|
|
80
|
+
action: 'Send a button message',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Send Carousel',
|
|
84
|
+
value: 'sendCarousel',
|
|
85
|
+
description: `Send a carousel of 1-10 cards with image, text and buttons (WhatsApp Baileys only). ${constants_1.REQUIRES_24}`,
|
|
86
|
+
action: 'Send a carousel message',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Send Contact',
|
|
90
|
+
value: 'sendContact',
|
|
91
|
+
description: 'Send one or more contact cards (vCards)',
|
|
92
|
+
action: 'Send a contact card',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Send List',
|
|
96
|
+
value: 'sendList',
|
|
97
|
+
description: 'Send a message with a button that opens a list of selectable rows',
|
|
98
|
+
action: 'Send a list message',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Send Location',
|
|
102
|
+
value: 'sendLocation',
|
|
103
|
+
description: 'Send a map location with a name and an address',
|
|
104
|
+
action: 'Send a location',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'Send Media',
|
|
108
|
+
value: 'sendMedia',
|
|
109
|
+
description: 'Send an image, video, document or audio file from a URL, base64 or binary file, with an optional caption',
|
|
110
|
+
action: 'Send an image, video, document or audio file',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'Send Poll',
|
|
114
|
+
value: 'sendPoll',
|
|
115
|
+
description: 'Send a poll with 2-10 options (WhatsApp Baileys only)',
|
|
116
|
+
action: 'Send a poll',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'Send Reaction',
|
|
120
|
+
value: 'sendReaction',
|
|
121
|
+
description: 'React to a message with an emoji, or remove a reaction',
|
|
122
|
+
action: 'React to a message',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'Send Status',
|
|
126
|
+
value: 'sendStatus',
|
|
127
|
+
description: 'Post a text, image, video or audio status (story) to selected contacts (WhatsApp Baileys only)',
|
|
128
|
+
action: 'Post a status (story)',
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'Send Sticker',
|
|
132
|
+
value: 'sendSticker',
|
|
133
|
+
description: 'Send an image as a sticker; Evolution converts it to WebP (WhatsApp Baileys only)',
|
|
134
|
+
action: 'Send a sticker',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'Send Template',
|
|
138
|
+
value: 'sendTemplate',
|
|
139
|
+
description: 'Send an approved WhatsApp Business template, e.g. to start a conversation (WhatsApp Cloud API instances only)',
|
|
140
|
+
action: 'Send a template message',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'Send Text',
|
|
144
|
+
value: 'sendText',
|
|
145
|
+
description: 'Send a text message, optionally as a reply or with mentions',
|
|
146
|
+
action: 'Send a text message',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'Send Video Note',
|
|
150
|
+
value: 'sendPtv',
|
|
151
|
+
description: 'Send a round video note (PTV) from an MP4 URL, base64 or binary file (WhatsApp Baileys only)',
|
|
152
|
+
action: 'Send a video note',
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
default: 'sendText',
|
|
156
|
+
};
|
|
157
|
+
exports.fields = [
|
|
158
|
+
...generateMessageId.description,
|
|
159
|
+
...sendAudio.description,
|
|
160
|
+
...sendButtons.description,
|
|
161
|
+
...sendCarousel.description,
|
|
162
|
+
...sendContact.description,
|
|
163
|
+
...sendList.description,
|
|
164
|
+
...sendLocation.description,
|
|
165
|
+
...sendMedia.description,
|
|
166
|
+
...sendPoll.description,
|
|
167
|
+
...sendReaction.description,
|
|
168
|
+
...sendStatus.description,
|
|
169
|
+
...sendSticker.description,
|
|
170
|
+
...sendTemplate.description,
|
|
171
|
+
...sendText.description,
|
|
172
|
+
...sendPtv.description,
|
|
173
|
+
];
|
|
174
|
+
exports.execute = {
|
|
175
|
+
generateMessageId: generateMessageId.execute,
|
|
176
|
+
sendAudio: sendAudio.execute,
|
|
177
|
+
sendButtons: sendButtons.execute,
|
|
178
|
+
sendCarousel: sendCarousel.execute,
|
|
179
|
+
sendContact: sendContact.execute,
|
|
180
|
+
sendList: sendList.execute,
|
|
181
|
+
sendLocation: sendLocation.execute,
|
|
182
|
+
sendMedia: sendMedia.execute,
|
|
183
|
+
sendPoll: sendPoll.execute,
|
|
184
|
+
sendPtv: sendPtv.execute,
|
|
185
|
+
sendReaction: sendReaction.execute,
|
|
186
|
+
sendStatus: sendStatus.execute,
|
|
187
|
+
sendSticker: sendSticker.execute,
|
|
188
|
+
sendTemplate: sendTemplate.execute,
|
|
189
|
+
sendText: sendText.execute,
|
|
190
|
+
};
|
|
191
|
+
exports.binaryPassThrough = ['sendAudio', 'sendMedia', 'sendPtv', 'sendStatus', 'sendSticker'];
|
|
192
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+CAA8C;AAE9C,iFAAmE;AACnE,iEAAmD;AACnD,qEAAuD;AACvD,uEAAyD;AACzD,qEAAuD;AACvD,+DAAiD;AACjD,uEAAyD;AACzD,iEAAmD;A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C1B,GAAG,YAAY,CAAC,WAAW;IAC3B,GAAG,QAAQ,CAAC,WAAW;IACvB,GAAG,OAAO,CAAC,WAAW;CACvB,CAAC;AAEW,QAAA,OAAO,GAAqC;IACvD,iBAAiB,EAAE,iBAAiB,CAAC,OAAO;IAC5C,SAAS,EAAE,SAAS,CAAC,OAAO;IAC5B,WAAW,EAAE,WAAW,CAAC,OAAO;IAChC,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,WAAW,EAAE,WAAW,CAAC,OAAO;IAChC,QAAQ,EAAE,QAAQ,CAAC,OAAO;IAC1B,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,SAAS,EAAE,SAAS,CAAC,OAAO;IAC5B,QAAQ,EAAE,QAAQ,CAAC,OAAO;IAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;IACxB,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,UAAU,EAAE,UAAU,CAAC,OAAO;IAC9B,WAAW,EAAE,WAAW,CAAC,OAAO;IAChC,YAAY,EAAE,YAAY,CAAC,OAAO;IAClC,QAAQ,EAAE,QAAQ,CAAC,OAAO;CAC3B,CAAC;AAGW,QAAA,iBAAiB,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
builderHint?: import("n8n-workflow").IParameterBuilderHint;
|
|
12
|
+
disabledOptions?: import("n8n-workflow").IDisplayOptions;
|
|
13
|
+
options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
isNodeSetting?: boolean;
|
|
16
|
+
noDataExpression?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
routing?: import("n8n-workflow").INodePropertyRouting;
|
|
19
|
+
credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
|
|
20
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
|
|
21
|
+
modes?: import("n8n-workflow").INodePropertyMode[];
|
|
22
|
+
requiresDataPath?: "single" | "multiple";
|
|
23
|
+
doNotInherit?: boolean;
|
|
24
|
+
validateType?: import("n8n-workflow").FieldType;
|
|
25
|
+
ignoreValidationDuringExecution?: boolean;
|
|
26
|
+
allowArbitraryValues?: boolean;
|
|
27
|
+
resolvableField?: boolean;
|
|
28
|
+
}[];
|
|
29
|
+
export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
8
|
+
const helpers_1 = require("./helpers");
|
|
9
|
+
const properties = [
|
|
10
|
+
helpers_1.numberProperty,
|
|
11
|
+
...(0, helpers_1.mediaSourceProperties)('audio'),
|
|
12
|
+
(0, helpers_1.sendOptionsProperty)([
|
|
13
|
+
(0, helpers_1.delayOption)('recording audio…'),
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Convert to Voice Note',
|
|
16
|
+
name: 'encoding',
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
default: true,
|
|
19
|
+
description: 'Whether Evolution converts the audio to OGG/Opus with ffmpeg so it plays as a voice note. Turn it off only when the file already is OGG/Opus.',
|
|
20
|
+
},
|
|
21
|
+
...(0, helpers_1.quotedOptions)(`${constants_1.REQUIRES_24} Older versions send the voice note without the quote.`),
|
|
22
|
+
]),
|
|
23
|
+
];
|
|
24
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['message'], operation: ['sendAudio'] } }, properties);
|
|
25
|
+
async function execute(itemIndex) {
|
|
26
|
+
const number = helpers_1.getRecipient.call(this, itemIndex);
|
|
27
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
28
|
+
const media = await helpers_1.resolveMediaInput.call(this, itemIndex);
|
|
29
|
+
const fields = { number };
|
|
30
|
+
if (options.encoding === false)
|
|
31
|
+
fields.encoding = false;
|
|
32
|
+
(0, helpers_1.applySendOptions)(this.getNode(), itemIndex, options, fields);
|
|
33
|
+
const body = (0, GenericFunctions_1.buildMediaRequestBody)(media, fields, { mediaField: 'audio', allowMultipart: true });
|
|
34
|
+
return await helpers_1.postMessage.call(this, itemIndex, 'sendWhatsAppAudio', body);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=sendAudio.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendAudio.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/sendAudio.operation.ts"],"names":[],"mappings":";;;AA+CA,0BAWC;AAzDD,+CAAoD;AAEpD,+CAA8C;AAC9C,6DAA+D;AAC/D,uCAUmB;AAEnB,MAAM,UAAU,GAAsB;IACpC,wBAAc;IACd,GAAG,IAAA,+BAAqB,EAAC,OAAO,CAAC;IACjC,IAAA,6BAAmB,EAAC;QAClB,IAAA,qBAAW,EAAC,kBAAkB,CAAC;QAC/B;YACE,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EACT,+IAA+I;SAClJ;QACD,GAAG,IAAA,uBAAa,EAAC,GAAG,uBAAW,wDAAwD,CAAC;KACzF,CAAC;CACH,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAC7C,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,EAC7D,UAAU,CACX,CAAC;AAUK,KAAK,UAAU,OAAO,CAA0B,SAAiB;IACtE,MAAM,MAAM,GAAG,sBAAY,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAgB,CAAC;IAC/E,MAAM,KAAK,GAAG,MAAM,2BAAiB,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAE5D,MAAM,MAAM,GAAgB,EAAE,MAAM,EAAE,CAAC;IACvC,IAAI,OAAO,CAAC,QAAQ,KAAK,KAAK;QAAE,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxD,IAAA,0BAAgB,EAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAE7D,MAAM,IAAI,GAAG,IAAA,wCAAqB,EAAC,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IACjG,OAAO,MAAM,qBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IDataObject, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
builderHint?: import("n8n-workflow").IParameterBuilderHint;
|
|
12
|
+
disabledOptions?: import("n8n-workflow").IDisplayOptions;
|
|
13
|
+
options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
isNodeSetting?: boolean;
|
|
16
|
+
noDataExpression?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
routing?: import("n8n-workflow").INodePropertyRouting;
|
|
19
|
+
credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
|
|
20
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
|
|
21
|
+
modes?: import("n8n-workflow").INodePropertyMode[];
|
|
22
|
+
requiresDataPath?: "single" | "multiple";
|
|
23
|
+
doNotInherit?: boolean;
|
|
24
|
+
validateType?: import("n8n-workflow").FieldType;
|
|
25
|
+
ignoreValidationDuringExecution?: boolean;
|
|
26
|
+
allowArbitraryValues?: boolean;
|
|
27
|
+
resolvableField?: boolean;
|
|
28
|
+
}[];
|
|
29
|
+
export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const helpers_1 = require("./helpers");
|
|
7
|
+
const BUTTON_TYPES = ['reply', 'copy', 'url', 'call', 'pix'];
|
|
8
|
+
const BUTTONS_EXAMPLE = `[
|
|
9
|
+
{ "type": "reply", "displayText": "Yes", "id": "yes" },
|
|
10
|
+
{ "type": "reply", "displayText": "No", "id": "no" }
|
|
11
|
+
]`;
|
|
12
|
+
const RULES = 'Use 1-3 Quick Reply buttons, any combination of URL/Call/Copy Code buttons, or a single PIX Payment button. Evolution API 2.4+ limits URL/Call/Copy Code buttons to 2; 2.3.x has no server limit.';
|
|
13
|
+
const properties = [
|
|
14
|
+
helpers_1.numberProperty,
|
|
15
|
+
{
|
|
16
|
+
displayName: 'Title',
|
|
17
|
+
name: 'buttonsTitle',
|
|
18
|
+
type: 'string',
|
|
19
|
+
required: true,
|
|
20
|
+
default: '',
|
|
21
|
+
placeholder: 'Confirm your appointment',
|
|
22
|
+
description: 'Bold title at the top of the message',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Description',
|
|
26
|
+
name: 'buttonsDescription',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
typeOptions: { rows: 2 },
|
|
30
|
+
description: 'Body text shown under the title',
|
|
31
|
+
},
|
|
32
|
+
helpers_1.interactiveInputModeProperty,
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Buttons',
|
|
35
|
+
name: 'buttons',
|
|
36
|
+
type: 'fixedCollection',
|
|
37
|
+
required: true,
|
|
38
|
+
typeOptions: { multipleValues: true },
|
|
39
|
+
placeholder: 'Add Button',
|
|
40
|
+
default: {},
|
|
41
|
+
description: `Buttons of the message. ${RULES}`,
|
|
42
|
+
displayOptions: { show: { interactiveInputMode: ['fields'] } },
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Button',
|
|
46
|
+
name: 'button',
|
|
47
|
+
values: (0, helpers_1.buttonValueProperties)(BUTTON_TYPES),
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Buttons (JSON)',
|
|
53
|
+
name: 'buttonsJson',
|
|
54
|
+
type: 'json',
|
|
55
|
+
required: true,
|
|
56
|
+
default: '',
|
|
57
|
+
placeholder: BUTTONS_EXAMPLE,
|
|
58
|
+
description: `Array of buttons: { "type": "reply", "displayText", "id" }, { "type": "url", "displayText", "url" }, { "type": "call", "displayText", "phoneNumber" }, { "type": "copy", "displayText", "copyCode" } or { "type": "pix", "currency", "name", "keyType", "key" }. ${RULES}`,
|
|
59
|
+
displayOptions: { show: { interactiveInputMode: ['json'] } },
|
|
60
|
+
},
|
|
61
|
+
(0, helpers_1.sendOptionsProperty)([
|
|
62
|
+
(0, helpers_1.delayOption)(),
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Footer',
|
|
65
|
+
name: 'footer',
|
|
66
|
+
type: 'string',
|
|
67
|
+
default: '',
|
|
68
|
+
description: 'Small text shown at the bottom of the message',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Header Image URL',
|
|
72
|
+
name: 'thumbnailUrl',
|
|
73
|
+
type: 'string',
|
|
74
|
+
default: '',
|
|
75
|
+
placeholder: 'https://example.com/banner.jpg',
|
|
76
|
+
description: 'Public URL of an image shown above the title',
|
|
77
|
+
},
|
|
78
|
+
...helpers_1.mentionOptions,
|
|
79
|
+
...(0, helpers_1.quotedOptions)(),
|
|
80
|
+
]),
|
|
81
|
+
];
|
|
82
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['message'], operation: ['sendButtons'] } }, properties);
|
|
83
|
+
async function execute(itemIndex) {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
const node = this.getNode();
|
|
86
|
+
const number = helpers_1.getRecipient.call(this, itemIndex);
|
|
87
|
+
const title = helpers_1.getString.call(this, 'buttonsTitle', itemIndex);
|
|
88
|
+
if (!title)
|
|
89
|
+
throw (0, helpers_1.operationError)(node, itemIndex, 'Title is required');
|
|
90
|
+
const mode = this.getNodeParameter('interactiveInputMode', itemIndex, 'fields');
|
|
91
|
+
const rawButtons = mode === 'json'
|
|
92
|
+
? (0, helpers_1.parseJsonArray)(node, itemIndex, this.getNodeParameter('buttonsJson', itemIndex, ''), 'Buttons (JSON)', ['buttons'])
|
|
93
|
+
: (0, helpers_1.getCollectionEntries)(this.getNodeParameter('buttons', itemIndex, {}), 'button');
|
|
94
|
+
const buttons = rawButtons.map((raw, index) => (0, helpers_1.normalizeButton)(node, itemIndex, raw, `Button ${index + 1}`, BUTTON_TYPES));
|
|
95
|
+
(0, helpers_1.assertButtonRules)(node, itemIndex, buttons);
|
|
96
|
+
const body = { number, title, buttons };
|
|
97
|
+
const buttonsDescription = helpers_1.getString.call(this, 'buttonsDescription', itemIndex);
|
|
98
|
+
if (buttonsDescription)
|
|
99
|
+
body.description = buttonsDescription;
|
|
100
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
101
|
+
const footer = String((_a = options.footer) !== null && _a !== void 0 ? _a : '').trim();
|
|
102
|
+
if (footer)
|
|
103
|
+
body.footer = footer;
|
|
104
|
+
const thumbnailUrl = String((_b = options.thumbnailUrl) !== null && _b !== void 0 ? _b : '').trim();
|
|
105
|
+
if (thumbnailUrl) {
|
|
106
|
+
if (!/^https?:\/\//i.test(thumbnailUrl)) {
|
|
107
|
+
throw (0, helpers_1.operationError)(node, itemIndex, 'Header Image URL must start with http:// or https://');
|
|
108
|
+
}
|
|
109
|
+
body.thumbnailUrl = thumbnailUrl;
|
|
110
|
+
}
|
|
111
|
+
(0, helpers_1.applySendOptions)(node, itemIndex, options, body);
|
|
112
|
+
return await helpers_1.postMessage.call(this, itemIndex, 'sendButtons', body);
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=sendButtons.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendButtons.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/sendButtons.operation.ts"],"names":[],"mappings":";;;AAmHA,0BAsCC;AAxJD,+CAAoD;AAEpD,uCAiBmB;AAEnB,MAAM,YAAY,GAAG,CAAC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AAA,wBAAc,EAAC,IAAI,EAAE,SAAS,EAAE,sDAAsD,CAAC,CAAC;QAChG,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IACD,IAAA,0BAAgB,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACjD,OAAO,MAAM,qBAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IDataObject, IExecuteFunctions, INode, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
builderHint?: import("n8n-workflow").IParameterBuilderHint;
|
|
12
|
+
disabledOptions?: import("n8n-workflow").IDisplayOptions;
|
|
13
|
+
options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
isNodeSetting?: boolean;
|
|
16
|
+
noDataExpression?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
routing?: import("n8n-workflow").INodePropertyRouting;
|
|
19
|
+
credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
|
|
20
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
|
|
21
|
+
modes?: import("n8n-workflow").INodePropertyMode[];
|
|
22
|
+
requiresDataPath?: "single" | "multiple";
|
|
23
|
+
doNotInherit?: boolean;
|
|
24
|
+
validateType?: import("n8n-workflow").FieldType;
|
|
25
|
+
ignoreValidationDuringExecution?: boolean;
|
|
26
|
+
allowArbitraryValues?: boolean;
|
|
27
|
+
resolvableField?: boolean;
|
|
28
|
+
}[];
|
|
29
|
+
export declare function normalizeCards(node: INode, itemIndex: number, rawCards: IDataObject[]): IDataObject[];
|
|
30
|
+
export declare function execute(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.normalizeCards = normalizeCards;
|
|
5
|
+
exports.execute = execute;
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
9
|
+
const helpers_1 = require("./helpers");
|
|
10
|
+
const CARD_BUTTON_TYPES = ['reply', 'copy', 'url', 'call'];
|
|
11
|
+
const CARDS_EXAMPLE = `[
|
|
12
|
+
{
|
|
13
|
+
"title": "Pizza",
|
|
14
|
+
"body": "Large, 8 slices - $12",
|
|
15
|
+
"footer": "Free delivery",
|
|
16
|
+
"imageUrl": "https://example.com/pizza.jpg",
|
|
17
|
+
"buttons": [
|
|
18
|
+
{ "type": "reply", "displayText": "Order", "id": "order_pizza" },
|
|
19
|
+
{ "type": "url", "displayText": "Details", "url": "https://example.com/pizza" }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
]`;
|
|
23
|
+
const properties = [
|
|
24
|
+
{
|
|
25
|
+
displayName: `${constants_1.REQUIRES_24} Older servers answer 404 "Cannot POST /message/sendCarousel".`,
|
|
26
|
+
name: 'carouselNotice',
|
|
27
|
+
type: 'notice',
|
|
28
|
+
default: '',
|
|
29
|
+
},
|
|
30
|
+
helpers_1.numberProperty,
|
|
31
|
+
{
|
|
32
|
+
displayName: 'Body',
|
|
33
|
+
name: 'carouselBody',
|
|
34
|
+
type: 'string',
|
|
35
|
+
required: true,
|
|
36
|
+
default: '',
|
|
37
|
+
typeOptions: { rows: 2 },
|
|
38
|
+
description: `Text shown above the cards. For a single card without an image, the node prepends this text to the card body. ${constants_1.REQUIRES_24}`,
|
|
39
|
+
},
|
|
40
|
+
helpers_1.interactiveInputModeProperty,
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Cards',
|
|
43
|
+
name: 'carouselCards',
|
|
44
|
+
type: 'fixedCollection',
|
|
45
|
+
required: true,
|
|
46
|
+
typeOptions: { multipleValues: true },
|
|
47
|
+
placeholder: 'Add Card',
|
|
48
|
+
default: {},
|
|
49
|
+
description: 'Cards of the carousel (1 to 10), each with 1 to 3 buttons',
|
|
50
|
+
displayOptions: { show: { interactiveInputMode: ['fields'] } },
|
|
51
|
+
options: [
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Card',
|
|
54
|
+
name: 'card',
|
|
55
|
+
values: [
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Title',
|
|
58
|
+
name: 'title',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
description: 'Prepended in bold to the card body because Evolution ignores card titles',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Body',
|
|
65
|
+
name: 'body',
|
|
66
|
+
type: 'string',
|
|
67
|
+
required: true,
|
|
68
|
+
default: '',
|
|
69
|
+
description: 'Text of the card',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Footer',
|
|
73
|
+
name: 'footer',
|
|
74
|
+
type: 'string',
|
|
75
|
+
default: '',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Image URL',
|
|
79
|
+
name: 'imageUrl',
|
|
80
|
+
type: 'string',
|
|
81
|
+
default: '',
|
|
82
|
+
placeholder: 'https://example.com/product.jpg',
|
|
83
|
+
description: 'Public URL of the card image',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Buttons',
|
|
87
|
+
name: 'buttons',
|
|
88
|
+
type: 'fixedCollection',
|
|
89
|
+
typeOptions: { multipleValues: true },
|
|
90
|
+
placeholder: 'Add Button',
|
|
91
|
+
default: {},
|
|
92
|
+
description: '1 to 3 buttons (Quick Reply, URL, Call or Copy Code)',
|
|
93
|
+
options: [
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Button',
|
|
96
|
+
name: 'button',
|
|
97
|
+
values: (0, helpers_1.buttonValueProperties)(CARD_BUTTON_TYPES),
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Cards (JSON)',
|
|
107
|
+
name: 'carouselCardsJson',
|
|
108
|
+
type: 'json',
|
|
109
|
+
required: true,
|
|
110
|
+
default: '',
|
|
111
|
+
placeholder: CARDS_EXAMPLE,
|
|
112
|
+
description: 'Array of 1-10 cards: { "title"?, "body", "footer"?, "imageUrl"?, "buttons": [1-3 buttons of type reply, url, call or copy] }. The node prepends each title in bold to its card body. An object with a "cards" key is accepted too.',
|
|
113
|
+
displayOptions: { show: { interactiveInputMode: ['json'] } },
|
|
114
|
+
},
|
|
115
|
+
(0, helpers_1.sendOptionsProperty)([(0, helpers_1.delayOption)(), ...helpers_1.mentionOptions, ...(0, helpers_1.quotedOptions)()]),
|
|
116
|
+
];
|
|
117
|
+
exports.description = (0, n8n_workflow_1.updateDisplayOptions)({ show: { resource: ['message'], operation: ['sendCarousel'] } }, properties);
|
|
118
|
+
function normalizeCards(node, itemIndex, rawCards) {
|
|
119
|
+
if (rawCards.length < 1 || rawCards.length > 10) {
|
|
120
|
+
throw (0, helpers_1.operationError)(node, itemIndex, `A carousel needs between 1 and 10 cards (got ${rawCards.length})`);
|
|
121
|
+
}
|
|
122
|
+
return rawCards.map((rawCard, cardIndex) => {
|
|
123
|
+
const label = `Card ${cardIndex + 1}`;
|
|
124
|
+
const body = (0, helpers_1.str)(rawCard, 'body');
|
|
125
|
+
if (!body)
|
|
126
|
+
throw (0, helpers_1.operationError)(node, itemIndex, `${label}: Body is required`);
|
|
127
|
+
const rawButtons = Array.isArray(rawCard.buttons)
|
|
128
|
+
? rawCard.buttons
|
|
129
|
+
: (0, helpers_1.getCollectionEntries)(rawCard.buttons, 'button');
|
|
130
|
+
if (rawButtons.length < 1 || rawButtons.length > 3) {
|
|
131
|
+
throw (0, helpers_1.operationError)(node, itemIndex, `${label}: a card needs between 1 and 3 buttons (got ${rawButtons.length})`);
|
|
132
|
+
}
|
|
133
|
+
const buttons = rawButtons.map((rawButton, buttonIndex) => (0, helpers_1.normalizeButton)(node, itemIndex, (0, GenericFunctions_1.isPlainObject)(rawButton) ? rawButton : {}, `${label}, button ${buttonIndex + 1}`, CARD_BUTTON_TYPES));
|
|
134
|
+
const title = (0, helpers_1.str)(rawCard, 'title');
|
|
135
|
+
const card = { body: title ? `*${title}*\n\n${body}` : body, buttons };
|
|
136
|
+
for (const key of ['footer', 'imageUrl']) {
|
|
137
|
+
const value = (0, helpers_1.str)(rawCard, key);
|
|
138
|
+
if (value)
|
|
139
|
+
card[key] = value;
|
|
140
|
+
}
|
|
141
|
+
return card;
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
async function execute(itemIndex) {
|
|
145
|
+
const node = this.getNode();
|
|
146
|
+
const number = helpers_1.getRecipient.call(this, itemIndex);
|
|
147
|
+
const body = helpers_1.getString.call(this, 'carouselBody', itemIndex);
|
|
148
|
+
if (!body)
|
|
149
|
+
throw (0, helpers_1.operationError)(node, itemIndex, 'Body is required');
|
|
150
|
+
const mode = this.getNodeParameter('interactiveInputMode', itemIndex, 'fields');
|
|
151
|
+
const rawCards = mode === 'json'
|
|
152
|
+
? (0, helpers_1.parseJsonArray)(node, itemIndex, this.getNodeParameter('carouselCardsJson', itemIndex, ''), 'Cards (JSON)', ['cards'])
|
|
153
|
+
: (0, helpers_1.getCollectionEntries)(this.getNodeParameter('carouselCards', itemIndex, {}), 'card');
|
|
154
|
+
const cards = normalizeCards(node, itemIndex, rawCards);
|
|
155
|
+
if (cards.length === 1 && !cards[0].imageUrl) {
|
|
156
|
+
cards[0].body = `${body}\n\n${cards[0].body}`;
|
|
157
|
+
}
|
|
158
|
+
const options = this.getNodeParameter('options', itemIndex, {});
|
|
159
|
+
const payload = (0, helpers_1.applySendOptions)(node, itemIndex, options, { number, body, cards });
|
|
160
|
+
return await helpers_1.postMessage.call(this, itemIndex, 'sendCarousel', payload);
|
|
161
|
+
}
|
|
162
|
+
//# sourceMappingURL=sendCarousel.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendCarousel.operation.js","sourceRoot":"","sources":["../../../../../nodes/EvolutionApi/resources/message/sendCarousel.operation.ts"],"names":[],"mappings":";;;AA8IA,wCA6CC;AAQD,0BA2BC;AA7ND,+CAAoD;AAEpD,+CAA8C;AAC9C,6DAAuD;AACvD,uCAiBmB;AAGnB,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAE3D,MAAM,aAAa,GAAG;;;;;;;;;;;EAWpB,CAAC;AAEH,MAAM,UAAU,GAAsB;IACpC;QACE,WAAW,EAAE,GAAG,uBAAW,gEAAgE;QAC3F,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;IACD,wBAAc;IACd;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;QACxB,WAAW,EAAE,iHAAiH,uBAAW,EAAE;KAC5I;IACD,sCAA4B;IAC5B;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,eAAe;QACrB,IAAI,EA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