n8n-nodes-linq 0.1.8 → 0.1.9
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/Linq/Linq.node.js +14 -4
- package/package.json +1 -1
|
@@ -215,10 +215,18 @@ class Linq {
|
|
|
215
215
|
displayName: 'Phone Number',
|
|
216
216
|
name: 'phoneNumber',
|
|
217
217
|
type: 'string',
|
|
218
|
-
displayOptions: { show: { resource: ['chat'], operation: ['getAll'
|
|
218
|
+
displayOptions: { show: { resource: ['chat'], operation: ['getAll'] } },
|
|
219
219
|
default: '',
|
|
220
220
|
description: 'Filter chats by phone number',
|
|
221
221
|
},
|
|
222
|
+
{
|
|
223
|
+
displayName: 'Phone Numbers',
|
|
224
|
+
name: 'phoneNumbers',
|
|
225
|
+
type: 'string',
|
|
226
|
+
displayOptions: { show: { resource: ['chat'], operation: ['find'] } },
|
|
227
|
+
default: '',
|
|
228
|
+
description: 'Comma-separated list of phone numbers to find chat between them',
|
|
229
|
+
},
|
|
222
230
|
{
|
|
223
231
|
displayName: 'Page',
|
|
224
232
|
name: 'page',
|
|
@@ -457,10 +465,12 @@ class Linq {
|
|
|
457
465
|
});
|
|
458
466
|
}
|
|
459
467
|
if (operation === 'find') {
|
|
460
|
-
const
|
|
468
|
+
const phoneNumbers = this.getNodeParameter('phoneNumbers', i, '');
|
|
461
469
|
const qs = {};
|
|
462
|
-
if (
|
|
463
|
-
|
|
470
|
+
if (phoneNumbers) {
|
|
471
|
+
// Convert comma-separated string to array for phone_numbers[] parameter
|
|
472
|
+
qs['phone_numbers[]'] = phoneNumbers.split(',').map(p => p.trim());
|
|
473
|
+
}
|
|
464
474
|
responseData = await this.helpers.request({
|
|
465
475
|
method: 'GET',
|
|
466
476
|
url: 'https://api.linqapp.com/api/partner/v2/chats/find',
|