@couleetech/n8n-nodes-enlightenedmsp 1.4.9 → 1.5.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.
@@ -80,13 +80,27 @@ class SearchDattormmDevices {
80
80
  name: 'Search Dattormm Devices',
81
81
  },
82
82
  inputs: ['main'],
83
- outputs: ['main'],
83
+ outputs: ['main', "ai_tool"],
84
+ outputNames: ['Output', 'Tool'],
84
85
  credentials: [
85
86
  {
86
87
  name: 'enlightenedMspGraphql',
87
88
  required: true,
88
89
  },
89
90
  ],
91
+ codex: {
92
+ categories: ['AI'],
93
+ subcategories: {
94
+ AI: ['Tools'],
95
+ },
96
+ resources: {
97
+ primaryDocumentation: [
98
+ {
99
+ url: 'https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.searchdattormmdevices/',
100
+ },
101
+ ],
102
+ },
103
+ },
90
104
  properties: [
91
105
  {
92
106
  displayName: 'Device ID',
@@ -255,17 +269,29 @@ deviceClass`,
255
269
  Object.assign(variables, filters);
256
270
  }
257
271
  const result = await graphqlClient.searchDevices(variables);
258
- returnData.push({
272
+ const outputItem = {
259
273
  json: result.findDattormmDevicesPaginated,
260
- });
274
+ };
275
+ returnData.push(outputItem);
276
+ const aiToolOutput = {
277
+ json: {
278
+ devices: result.findDattormmDevicesPaginated.data,
279
+ totalCount: result.findDattormmDevicesPaginated.totalCount,
280
+ page: result.findDattormmDevicesPaginated.page,
281
+ limit: result.findDattormmDevicesPaginated.limit,
282
+ },
283
+ };
284
+ void this.addOutputData("ai_tool", i, [[aiToolOutput]]);
261
285
  }
262
286
  catch (error) {
263
287
  if (this.continueOnFail()) {
264
- returnData.push({
288
+ const errorOutput = {
265
289
  json: {
266
290
  error: error.message,
267
291
  },
268
- });
292
+ };
293
+ returnData.push(errorOutput);
294
+ void this.addOutputData("ai_tool", i, [[errorOutput]]);
269
295
  continue;
270
296
  }
271
297
  throw error;
@@ -72,13 +72,27 @@ class SearchTicket {
72
72
  name: 'Search Tickets',
73
73
  },
74
74
  inputs: ['main'],
75
- outputs: ['main'],
75
+ outputs: ['main', "ai_tool"],
76
+ outputNames: ['Output', 'Tool'],
76
77
  credentials: [
77
78
  {
78
79
  name: 'enlightenedMspGraphql',
79
80
  required: true,
80
81
  },
81
82
  ],
83
+ codex: {
84
+ categories: ['AI'],
85
+ subcategories: {
86
+ AI: ['Tools'],
87
+ },
88
+ resources: {
89
+ primaryDocumentation: [
90
+ {
91
+ url: 'https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.searchticket/',
92
+ },
93
+ ],
94
+ },
95
+ },
82
96
  properties: [
83
97
  {
84
98
  displayName: 'Search Text',
@@ -454,17 +468,29 @@ description`,
454
468
  };
455
469
  }
456
470
  const result = await searchTicketGraphql.searchTickets(variables);
457
- returnData.push({
471
+ const outputItem = {
458
472
  json: result.findAutotaskTicketsPaginated,
459
- });
473
+ };
474
+ returnData.push(outputItem);
475
+ const aiToolOutput = {
476
+ json: {
477
+ tickets: result.findAutotaskTicketsPaginated.data,
478
+ totalCount: result.findAutotaskTicketsPaginated.totalCount,
479
+ page: result.findAutotaskTicketsPaginated.page,
480
+ limit: result.findAutotaskTicketsPaginated.limit,
481
+ },
482
+ };
483
+ void this.addOutputData("ai_tool", i, [[aiToolOutput]]);
460
484
  }
461
485
  catch (error) {
462
486
  if (this.continueOnFail()) {
463
- returnData.push({
487
+ const errorOutput = {
464
488
  json: {
465
489
  error: error.message,
466
490
  },
467
- });
491
+ };
492
+ returnData.push(errorOutput);
493
+ void this.addOutputData("ai_tool", i, [[errorOutput]]);
468
494
  continue;
469
495
  }
470
496
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@couleetech/n8n-nodes-enlightenedmsp",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "description": "n8n node for EnlightenedMSP ticketing and workflow automation",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",