n8n-nodes-whaapy 0.2.1 → 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.
- package/dist/nodes/Whaapy/Whaapy.node.js +24 -29
- package/package.json +1 -1
|
@@ -226,40 +226,35 @@ class Whaapy {
|
|
|
226
226
|
send: { type: 'body', property: 'language' },
|
|
227
227
|
},
|
|
228
228
|
},
|
|
229
|
-
// Message: Send - Template
|
|
229
|
+
// Message: Send - Template Additional Options
|
|
230
230
|
{
|
|
231
|
-
displayName: '
|
|
232
|
-
name: '
|
|
233
|
-
type: 'string',
|
|
234
|
-
default: '',
|
|
235
|
-
placeholder: 'Juan Pérez, #ORD-12345, $1500',
|
|
236
|
-
description: 'Optional. Comma-separated values for {{1}}, {{2}}, etc. placeholders. Leave empty if template has no variables.',
|
|
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()) : undefined }}',
|
|
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
|
|
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: '
|
|
262
|
-
name: '
|
|
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: '
|
|
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
|
},
|