n8n-nodes-tukimate 1.3.4 → 1.3.6
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.
|
@@ -158,6 +158,8 @@ const SIMPLIFIED_FIELDS = {
|
|
|
158
158
|
project: ['id', 'name', 'description', 'status', 'client_id', 'ai_context'],
|
|
159
159
|
client: ['id', 'name', 'code', 'type', 'status', 'industry', 'website'],
|
|
160
160
|
source: ['id', 'key', 'label', 'active'],
|
|
161
|
+
tag: ['id', 'tag', 'color'],
|
|
162
|
+
tagDefinition: ['id', 'name', 'color', 'category'],
|
|
161
163
|
};
|
|
162
164
|
// Response wrapper keys for list endpoints
|
|
163
165
|
const RESPONSE_WRAPPERS = {
|
|
@@ -239,20 +241,6 @@ class TukiMate {
|
|
|
239
241
|
],
|
|
240
242
|
default: RESOURCES.CONVERSATION,
|
|
241
243
|
},
|
|
242
|
-
// Simplified output option
|
|
243
|
-
{
|
|
244
|
-
displayName: 'Simplified Output',
|
|
245
|
-
name: 'simplifiedOutput',
|
|
246
|
-
type: 'boolean',
|
|
247
|
-
displayOptions: {
|
|
248
|
-
show: {
|
|
249
|
-
resource: [RESOURCES.CONVERSATION, RESOURCES.CONTACT, RESOURCES.TEAM, RESOURCES.PROJECT, RESOURCES.CLIENT, RESOURCES.SOURCE],
|
|
250
|
-
operation: [OPERATIONS.LIST, OPERATIONS.GET],
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
default: false,
|
|
254
|
-
description: 'Return only essential fields (id, name, description, etc.) and exclude internal fields like tenant_id',
|
|
255
|
-
},
|
|
256
244
|
// ==================== CONVERSATION ====================
|
|
257
245
|
// Operation selector for Conversation
|
|
258
246
|
{
|
|
@@ -1986,6 +1974,20 @@ class TukiMate {
|
|
|
1986
1974
|
default: 0,
|
|
1987
1975
|
description: 'Number of results to skip',
|
|
1988
1976
|
},
|
|
1977
|
+
// ==================== SIMPLIFIED OUTPUT (common option) ====================
|
|
1978
|
+
{
|
|
1979
|
+
displayName: 'Simplified Output',
|
|
1980
|
+
name: 'simplifiedOutput',
|
|
1981
|
+
type: 'boolean',
|
|
1982
|
+
displayOptions: {
|
|
1983
|
+
show: {
|
|
1984
|
+
resource: [RESOURCES.CONVERSATION, RESOURCES.CONTACT, RESOURCES.TEAM, RESOURCES.PROJECT, RESOURCES.CLIENT, RESOURCES.SOURCE, RESOURCES.TAG, RESOURCES.TAG_DEFINITION],
|
|
1985
|
+
operation: [OPERATIONS.LIST, OPERATIONS.GET],
|
|
1986
|
+
},
|
|
1987
|
+
},
|
|
1988
|
+
default: false,
|
|
1989
|
+
description: 'Return only essential fields and exclude internal fields like tenant_id, created_at, etc.',
|
|
1990
|
+
},
|
|
1989
1991
|
],
|
|
1990
1992
|
};
|
|
1991
1993
|
methods = {
|
|
@@ -2635,7 +2637,7 @@ class TukiMate {
|
|
|
2635
2637
|
}
|
|
2636
2638
|
// Check if simplified output is requested
|
|
2637
2639
|
const simplifiedOutput = this.getNodeParameter('simplifiedOutput', i, false);
|
|
2638
|
-
if (simplifiedOutput && resource !== RESOURCES.CONVERSATION_TYPE
|
|
2640
|
+
if (simplifiedOutput && resource !== RESOURCES.CONVERSATION_TYPE) {
|
|
2639
2641
|
responseData = simplifyResponse(responseData, resource);
|
|
2640
2642
|
}
|
|
2641
2643
|
if (Array.isArray(responseData)) {
|