n8n-nodes-whatsapp-buttons
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -11,3 +11,3 @@ "use strict"; | ||
this.description = { | ||
displayName: "WhatsAppButtons", | ||
displayName: "WhatsApp Buttons", | ||
name: 'whatsAppButtons', | ||
@@ -17,6 +17,6 @@ icon: "file:whatsappbuttons.svg", | ||
version: 1, | ||
subtitle: "0.1.4", | ||
subtitle: "0.1.5", | ||
description: "Send Message With Buttons", | ||
defaults: { | ||
name: "WhatsAppButtons", | ||
name: "WhatsApp Buttons", | ||
}, | ||
@@ -96,10 +96,10 @@ inputs: ["main"], | ||
{ | ||
displayName: "Query Parameters", | ||
displayName: "Max 3 Buttons", | ||
name: "fieldsUi", | ||
placeholder: "Add Buttons", | ||
placeholder: "Add Button", | ||
type: "fixedCollection", | ||
description: "Field must be defined in the collection, otherwise it will be ignored. If field defined in the collection is not set here, it will be set to null.", | ||
typeOptions: { | ||
multipleValueButtonText: "Add Buttons To Send", | ||
multipleValues: true, | ||
maxValue: 3, | ||
}, | ||
@@ -165,3 +165,3 @@ default: {}, | ||
}; | ||
if (headerAction == "image") { | ||
if (headerAction === "image") { | ||
jsonPayload.interactive.header = { | ||
@@ -188,3 +188,3 @@ type: "image", | ||
reply: { | ||
id: `button_${index}`, | ||
id: `button_${index.toString()}`, | ||
title: button, | ||
@@ -196,5 +196,8 @@ }, | ||
} | ||
console.log(jsonPayload); | ||
console.log(JSON.stringify(jsonPayload)); | ||
return axios_1.default.post(url, JSON.stringify(jsonPayload), { | ||
headers: { Authorization: `Bearer ${credentials.apiKey}` }, | ||
headers: { | ||
Authorization: `Bearer ${credentials.apiKey}`, | ||
"Content-Type": "application/json" | ||
}, | ||
}); | ||
@@ -201,0 +204,0 @@ } |
{ | ||
"name": "n8n-nodes-whatsapp-buttons", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Encapsulate WhatsApp Business API for sending messages with actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
{ | ||
"name": "n8n-nodes-whatsapp-buttons", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Encapsulate WhatsApp Business API for sending messages with actions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263
76978