n8n-nodes-whaapy 0.3.4 → 0.3.5

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.
@@ -564,6 +564,17 @@ class Whaapy {
564
564
  name: 'locationName',
565
565
  type: 'string',
566
566
  default: '',
567
+ description: 'Name of the location (e.g., "Starbucks Centro")',
568
+ displayOptions: {
569
+ show: { resource: ['message'], operation: ['send'], messageType: ['location'] },
570
+ }
571
+ },
572
+ {
573
+ displayName: 'Address',
574
+ name: 'locationAddress',
575
+ type: 'string',
576
+ default: '',
577
+ description: 'Address of the location (e.g., "Av. Reforma 123, CDMX")',
567
578
  displayOptions: {
568
579
  show: { resource: ['message'], operation: ['send'], messageType: ['location'] },
569
580
  }
@@ -1726,10 +1737,13 @@ class Whaapy {
1726
1737
  });
1727
1738
  }
1728
1739
  else if (messageType === 'location') {
1740
+ const locationName = this.getNodeParameter('locationName', i, '');
1741
+ const locationAddress = this.getNodeParameter('locationAddress', i, '');
1729
1742
  body.location = {
1730
1743
  latitude: this.getNodeParameter('latitude', i),
1731
1744
  longitude: this.getNodeParameter('longitude', i),
1732
- name: this.getNodeParameter('locationName', i, '') || undefined,
1745
+ name: locationName || undefined,
1746
+ address: locationAddress || undefined,
1733
1747
  };
1734
1748
  }
1735
1749
  else if (messageType === 'contacts') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-whaapy",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "n8n community node for Whaapy - WhatsApp Business API with AI",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",