n8n-nodes-tukimate 1.5.2 → 1.6.0
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.
|
@@ -185,7 +185,7 @@ const SIMPLIFIED_FIELDS = {
|
|
|
185
185
|
};
|
|
186
186
|
// Response wrapper keys for list endpoints
|
|
187
187
|
const RESPONSE_WRAPPERS = {
|
|
188
|
-
conversation: '
|
|
188
|
+
conversation: 'data',
|
|
189
189
|
contact: 'contacts',
|
|
190
190
|
project: 'projects',
|
|
191
191
|
client: 'clients',
|
|
@@ -287,20 +287,7 @@ class TukiMate {
|
|
|
287
287
|
],
|
|
288
288
|
default: OPERATIONS.LIST,
|
|
289
289
|
},
|
|
290
|
-
// Conversation:
|
|
291
|
-
{
|
|
292
|
-
displayName: 'Search',
|
|
293
|
-
name: 'search',
|
|
294
|
-
type: 'string',
|
|
295
|
-
displayOptions: {
|
|
296
|
-
show: {
|
|
297
|
-
resource: [RESOURCES.CONVERSATION],
|
|
298
|
-
operation: [OPERATIONS.LIST],
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
default: '',
|
|
302
|
-
description: 'Search term to filter conversations',
|
|
303
|
-
},
|
|
290
|
+
// Conversation: Team/Client/Project for CREATE and UPDATE
|
|
304
291
|
{
|
|
305
292
|
displayName: 'Team',
|
|
306
293
|
name: 'teamId',
|
|
@@ -311,11 +298,11 @@ class TukiMate {
|
|
|
311
298
|
displayOptions: {
|
|
312
299
|
show: {
|
|
313
300
|
resource: [RESOURCES.CONVERSATION],
|
|
314
|
-
operation: [OPERATIONS.
|
|
301
|
+
operation: [OPERATIONS.CREATE, OPERATIONS.UPDATE],
|
|
315
302
|
},
|
|
316
303
|
},
|
|
317
304
|
default: '',
|
|
318
|
-
description: '
|
|
305
|
+
description: 'Set by team',
|
|
319
306
|
},
|
|
320
307
|
{
|
|
321
308
|
displayName: 'Client',
|
|
@@ -327,11 +314,11 @@ class TukiMate {
|
|
|
327
314
|
displayOptions: {
|
|
328
315
|
show: {
|
|
329
316
|
resource: [RESOURCES.CONVERSATION],
|
|
330
|
-
operation: [OPERATIONS.
|
|
317
|
+
operation: [OPERATIONS.CREATE, OPERATIONS.UPDATE],
|
|
331
318
|
},
|
|
332
319
|
},
|
|
333
320
|
default: '',
|
|
334
|
-
description: '
|
|
321
|
+
description: 'Set by client',
|
|
335
322
|
},
|
|
336
323
|
{
|
|
337
324
|
displayName: 'Project',
|
|
@@ -343,11 +330,25 @@ class TukiMate {
|
|
|
343
330
|
displayOptions: {
|
|
344
331
|
show: {
|
|
345
332
|
resource: [RESOURCES.CONVERSATION],
|
|
346
|
-
operation: [OPERATIONS.
|
|
333
|
+
operation: [OPERATIONS.CREATE, OPERATIONS.UPDATE],
|
|
347
334
|
},
|
|
348
335
|
},
|
|
349
336
|
default: '',
|
|
350
|
-
description: '
|
|
337
|
+
description: 'Set by project',
|
|
338
|
+
},
|
|
339
|
+
// Conversation: List filters
|
|
340
|
+
{
|
|
341
|
+
displayName: 'Search',
|
|
342
|
+
name: 'search',
|
|
343
|
+
type: 'string',
|
|
344
|
+
displayOptions: {
|
|
345
|
+
show: {
|
|
346
|
+
resource: [RESOURCES.CONVERSATION],
|
|
347
|
+
operation: [OPERATIONS.LIST],
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
default: '',
|
|
351
|
+
description: 'Search term to filter conversations',
|
|
351
352
|
},
|
|
352
353
|
{
|
|
353
354
|
displayName: 'Limit',
|
|
@@ -376,6 +377,36 @@ class TukiMate {
|
|
|
376
377
|
},
|
|
377
378
|
default: {},
|
|
378
379
|
options: [
|
|
380
|
+
{
|
|
381
|
+
displayName: 'Team',
|
|
382
|
+
name: 'teamId',
|
|
383
|
+
type: 'options',
|
|
384
|
+
typeOptions: {
|
|
385
|
+
loadOptionsMethod: 'getTeams',
|
|
386
|
+
},
|
|
387
|
+
default: '',
|
|
388
|
+
description: 'Filter by team',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
displayName: 'Client',
|
|
392
|
+
name: 'clientId',
|
|
393
|
+
type: 'options',
|
|
394
|
+
typeOptions: {
|
|
395
|
+
loadOptionsMethod: 'getClients',
|
|
396
|
+
},
|
|
397
|
+
default: '',
|
|
398
|
+
description: 'Filter by client',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
displayName: 'Project',
|
|
402
|
+
name: 'projectId',
|
|
403
|
+
type: 'options',
|
|
404
|
+
typeOptions: {
|
|
405
|
+
loadOptionsMethod: 'getProjects',
|
|
406
|
+
},
|
|
407
|
+
default: '',
|
|
408
|
+
description: 'Filter by project',
|
|
409
|
+
},
|
|
379
410
|
{
|
|
380
411
|
displayName: 'External Meeting ID',
|
|
381
412
|
name: 'externalMeetingId',
|
|
@@ -1955,22 +1986,19 @@ class TukiMate {
|
|
|
1955
1986
|
if (resource === RESOURCES.CONVERSATION) {
|
|
1956
1987
|
if (operation === OPERATIONS.LIST) {
|
|
1957
1988
|
const search = this.getNodeParameter('search', i, '');
|
|
1958
|
-
const teamId = this.getNodeParameter('teamId', i, '');
|
|
1959
|
-
const projectId = this.getNodeParameter('projectId', i, '');
|
|
1960
|
-
const clientId = this.getNodeParameter('clientId', i, '');
|
|
1961
1989
|
const limit = this.getNodeParameter('limit', i, 10);
|
|
1962
|
-
// Additional options
|
|
1990
|
+
// Additional options (includes Team, Client, Project filters)
|
|
1963
1991
|
const additionalOptions = this.getNodeParameter('additionalOptions', i, {});
|
|
1964
1992
|
const query = { limit };
|
|
1965
1993
|
if (search)
|
|
1966
1994
|
query.q = search;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1995
|
+
// Filters from additional options
|
|
1996
|
+
if (additionalOptions.teamId)
|
|
1997
|
+
query.team = additionalOptions.teamId;
|
|
1998
|
+
if (additionalOptions.clientId)
|
|
1999
|
+
query.client = additionalOptions.clientId;
|
|
2000
|
+
if (additionalOptions.projectId)
|
|
2001
|
+
query.project = additionalOptions.projectId;
|
|
1974
2002
|
if (additionalOptions.externalMeetingId)
|
|
1975
2003
|
query.source_meeting_id = additionalOptions.externalMeetingId;
|
|
1976
2004
|
if (additionalOptions.offset !== undefined)
|