n8n-nodes-whaapy 0.2.0 → 0.2.2

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.
@@ -226,40 +226,35 @@ class Whaapy {
226
226
  send: { type: 'body', property: 'language' },
227
227
  },
228
228
  },
229
- // Message: Send - Template parameters
229
+ // Message: Send - Template Additional Options
230
230
  {
231
- displayName: 'Body Parameters',
232
- name: 'templateParameters',
233
- type: 'string',
234
- default: '',
235
- placeholder: 'Juan Pérez, #ORD-12345, $1500',
236
- description: 'Comma-separated values for {{1}}, {{2}}, etc. placeholders in the template body. Example: "Juan, #12345, $100"',
237
- displayOptions: {
238
- show: { resource: ['message'], operation: ['send'], messageType: ['template'] },
239
- },
240
- routing: {
241
- send: {
242
- type: 'body',
243
- property: 'template_parameters',
244
- value: '={{ $value ? $value.split(",").map(v => v.trim()) : [] }}',
245
- },
246
- },
247
- },
248
- // Message: Send - Template Header Media
249
- {
250
- displayName: 'Header Media',
251
- name: 'templateHeaderMedia',
231
+ displayName: 'Template Options',
232
+ name: 'templateOptions',
252
233
  type: 'collection',
253
- placeholder: 'Add Header Media',
234
+ placeholder: 'Add Option',
254
235
  default: {},
255
- description: 'Optional media for template header (image, video, or document)',
256
236
  displayOptions: {
257
237
  show: { resource: ['message'], operation: ['send'], messageType: ['template'] },
258
238
  },
259
239
  options: [
260
240
  {
261
- displayName: 'Media Type',
262
- name: 'type',
241
+ displayName: 'Body Parameters',
242
+ name: 'parameters',
243
+ type: 'string',
244
+ default: '',
245
+ placeholder: 'Juan Pérez, #ORD-12345, $1500',
246
+ description: 'Comma-separated values for {{1}}, {{2}}, etc. placeholders in the template body',
247
+ routing: {
248
+ send: {
249
+ type: 'body',
250
+ property: 'template_parameters',
251
+ value: '={{ $value ? $value.split(",").map(v => v.trim()) : undefined }}',
252
+ },
253
+ },
254
+ },
255
+ {
256
+ displayName: 'Header Media Type',
257
+ name: 'headerMediaType',
263
258
  type: 'options',
264
259
  default: 'image',
265
260
  options: [
@@ -272,12 +267,12 @@ class Whaapy {
272
267
  },
273
268
  },
274
269
  {
275
- displayName: 'Media URL',
276
- name: 'url',
270
+ displayName: 'Header Media URL',
271
+ name: 'headerMediaUrl',
277
272
  type: 'string',
278
273
  default: '',
279
274
  placeholder: 'https://example.com/image.jpg',
280
- description: 'Public URL of the media file',
275
+ description: 'Public URL of the media file for header',
281
276
  routing: {
282
277
  send: { type: 'body', property: 'header_media.url' },
283
278
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-whaapy",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "n8n community node for Whaapy - WhatsApp Business API with AI",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",