@couleetech/n8n-nodes-enlightenedmsp 1.7.4 → 1.8.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.
@@ -299,40 +299,36 @@ class SearchCoreCompanies {
|
|
299
299
|
}
|
300
300
|
const result = await graphqlClient.searchCompanies(variables);
|
301
301
|
const response = result.data.findCoreCompaniesPaginated;
|
302
|
-
|
302
|
+
returnData.push({
|
303
303
|
json: {
|
304
304
|
data: response.data,
|
305
305
|
totalCount: response.totalCount,
|
306
306
|
page: response.page,
|
307
307
|
limit: response.limit
|
308
308
|
},
|
309
|
-
};
|
310
|
-
returnData.push(outputItem);
|
311
|
-
const aiToolOutput = {
|
312
|
-
json: {
|
313
|
-
companies: response.data,
|
314
|
-
totalCount: response.totalCount,
|
315
|
-
page: response.page,
|
316
|
-
limit: response.limit
|
317
|
-
},
|
318
|
-
};
|
319
|
-
void this.addOutputData("ai_tool", i, [[aiToolOutput]]);
|
309
|
+
});
|
320
310
|
}
|
321
311
|
catch (error) {
|
322
312
|
if (this.continueOnFail()) {
|
323
|
-
|
313
|
+
returnData.push({
|
324
314
|
json: {
|
325
315
|
error: error.message,
|
326
316
|
},
|
327
|
-
};
|
328
|
-
returnData.push(errorOutput);
|
329
|
-
void this.addOutputData("ai_tool", i, [[errorOutput]]);
|
317
|
+
});
|
330
318
|
continue;
|
331
319
|
}
|
332
320
|
throw error;
|
333
321
|
}
|
334
322
|
}
|
335
|
-
|
323
|
+
const aiToolData = returnData.map(item => ({
|
324
|
+
json: {
|
325
|
+
companies: item.json.data,
|
326
|
+
totalCount: item.json.totalCount,
|
327
|
+
page: item.json.page,
|
328
|
+
limit: item.json.limit,
|
329
|
+
},
|
330
|
+
}));
|
331
|
+
return [returnData, aiToolData];
|
336
332
|
}
|
337
333
|
}
|
338
334
|
exports.SearchCoreCompanies = SearchCoreCompanies;
|
@@ -269,35 +269,31 @@ deviceClass`,
|
|
269
269
|
Object.assign(variables, filters);
|
270
270
|
}
|
271
271
|
const result = await graphqlClient.searchDevices(variables);
|
272
|
-
|
272
|
+
returnData.push({
|
273
273
|
json: result.findDattormmDevicesPaginated,
|
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]]);
|
274
|
+
});
|
285
275
|
}
|
286
276
|
catch (error) {
|
287
277
|
if (this.continueOnFail()) {
|
288
|
-
|
278
|
+
returnData.push({
|
289
279
|
json: {
|
290
280
|
error: error.message,
|
291
281
|
},
|
292
|
-
};
|
293
|
-
returnData.push(errorOutput);
|
294
|
-
void this.addOutputData("ai_tool", i, [[errorOutput]]);
|
282
|
+
});
|
295
283
|
continue;
|
296
284
|
}
|
297
285
|
throw error;
|
298
286
|
}
|
299
287
|
}
|
300
|
-
|
288
|
+
const aiToolData = returnData.map(item => ({
|
289
|
+
json: {
|
290
|
+
devices: item.json.data,
|
291
|
+
totalCount: item.json.totalCount,
|
292
|
+
page: item.json.page,
|
293
|
+
limit: item.json.limit,
|
294
|
+
},
|
295
|
+
}));
|
296
|
+
return [returnData, aiToolData];
|
301
297
|
}
|
302
298
|
}
|
303
299
|
exports.SearchDattormmDevices = SearchDattormmDevices;
|
@@ -468,35 +468,31 @@ description`,
|
|
468
468
|
};
|
469
469
|
}
|
470
470
|
const result = await searchTicketGraphql.searchTickets(variables);
|
471
|
-
|
471
|
+
returnData.push({
|
472
472
|
json: result.findAutotaskTicketsPaginated,
|
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]]);
|
473
|
+
});
|
484
474
|
}
|
485
475
|
catch (error) {
|
486
476
|
if (this.continueOnFail()) {
|
487
|
-
|
477
|
+
returnData.push({
|
488
478
|
json: {
|
489
479
|
error: error.message,
|
490
480
|
},
|
491
|
-
};
|
492
|
-
returnData.push(errorOutput);
|
493
|
-
void this.addOutputData("ai_tool", i, [[errorOutput]]);
|
481
|
+
});
|
494
482
|
continue;
|
495
483
|
}
|
496
484
|
throw error;
|
497
485
|
}
|
498
486
|
}
|
499
|
-
|
487
|
+
const aiToolData = returnData.map(item => ({
|
488
|
+
json: {
|
489
|
+
tickets: item.json.data,
|
490
|
+
totalCount: item.json.totalCount,
|
491
|
+
page: item.json.page,
|
492
|
+
limit: item.json.limit,
|
493
|
+
},
|
494
|
+
}));
|
495
|
+
return [returnData, aiToolData];
|
500
496
|
}
|
501
497
|
}
|
502
498
|
exports.SearchTicket = SearchTicket;
|