n8n-nodes-tukimate 1.0.6 → 1.0.7

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.
@@ -83,7 +83,8 @@ async function getProjectOptions() {
83
83
  },
84
84
  json: true,
85
85
  });
86
- const projects = Array.isArray(response) ? response : [];
86
+ // Handle both array response and nested data
87
+ const projects = Array.isArray(response) ? response : (response?.data || []);
87
88
  return projects.map((project) => ({
88
89
  name: project.name,
89
90
  value: project.id,
@@ -261,7 +262,7 @@ class TukiMate {
261
262
  operation: [OPERATIONS.LIST],
262
263
  },
263
264
  },
264
- default: 100,
265
+ default: 10,
265
266
  description: 'Max number of results',
266
267
  },
267
268
  {
@@ -393,11 +394,11 @@ class TukiMate {
393
394
  displayOptions: {
394
395
  show: {
395
396
  resource: [RESOURCES.CONVERSATION],
396
- operation: [OPERATIONS.CREATE, OPERATIONS.UPDATE],
397
+ operation: [OPERATIONS.LIST, OPERATIONS.CREATE, OPERATIONS.UPDATE],
397
398
  },
398
399
  },
399
400
  default: '',
400
- description: 'Associated client',
401
+ description: 'Filter or set by client',
401
402
  },
402
403
  {
403
404
  displayName: 'Description',
@@ -936,7 +937,8 @@ class TukiMate {
936
937
  const search = this.getNodeParameter('search', i, '');
937
938
  const teamId = this.getNodeParameter('teamId', i, '');
938
939
  const projectId = this.getNodeParameter('projectId', i, '');
939
- const limit = this.getNodeParameter('limit', i, 100);
940
+ const clientId = this.getNodeParameter('clientId', i, '');
941
+ const limit = this.getNodeParameter('limit', i, 10);
940
942
  const offset = this.getNodeParameter('offset', i, 0);
941
943
  const query = { limit, offset };
942
944
  if (search)
@@ -945,6 +947,8 @@ class TukiMate {
945
947
  query.team = teamId;
946
948
  if (projectId)
947
949
  query.project = projectId;
950
+ if (clientId)
951
+ query.client = clientId;
948
952
  responseData = await tukiMateRequest.call(this, 'GET', '/conversations', undefined, query);
949
953
  }
950
954
  else if (operation === OPERATIONS.GET) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-tukimate",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "n8n community node for TukiMate API",
5
5
  "keywords": [
6
6
  "n8n",