@couleetech/n8n-nodes-enlightenedmsp 1.4.8 → 1.4.9
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.
@@ -21,6 +21,7 @@ class SearchTicketGraphql extends GraphqlBase_1.GraphqlBase {
|
|
21
21
|
$page: Int
|
22
22
|
$limit: Int
|
23
23
|
$search: String
|
24
|
+
$title: StringProp
|
24
25
|
$status: NumberProp
|
25
26
|
$priority: NumberProp
|
26
27
|
$assignedResourceID: NumberProp
|
@@ -35,6 +36,7 @@ class SearchTicketGraphql extends GraphqlBase_1.GraphqlBase {
|
|
35
36
|
page: $page
|
36
37
|
limit: $limit
|
37
38
|
search: $search
|
39
|
+
title: $title
|
38
40
|
status: $status
|
39
41
|
priority: $priority
|
40
42
|
assignedResourceID: $assignedResourceID
|
@@ -317,6 +319,58 @@ status
|
|
317
319
|
ticketNumber
|
318
320
|
description`,
|
319
321
|
},
|
322
|
+
{
|
323
|
+
displayName: 'Title',
|
324
|
+
name: 'titleFilter',
|
325
|
+
type: 'fixedCollection',
|
326
|
+
default: {},
|
327
|
+
options: [
|
328
|
+
{
|
329
|
+
displayName: 'Filter',
|
330
|
+
name: 'filter',
|
331
|
+
values: [
|
332
|
+
{
|
333
|
+
displayName: 'Operation',
|
334
|
+
name: 'operation',
|
335
|
+
type: 'options',
|
336
|
+
options: [
|
337
|
+
{
|
338
|
+
name: 'Equals',
|
339
|
+
value: 'equals',
|
340
|
+
},
|
341
|
+
{
|
342
|
+
name: 'Not Equals',
|
343
|
+
value: 'notEquals',
|
344
|
+
},
|
345
|
+
{
|
346
|
+
name: 'Contains',
|
347
|
+
value: 'contains',
|
348
|
+
},
|
349
|
+
{
|
350
|
+
name: 'Not Contains',
|
351
|
+
value: 'notContains',
|
352
|
+
},
|
353
|
+
],
|
354
|
+
default: 'equals',
|
355
|
+
typeOptions: {
|
356
|
+
minWidth: '100px',
|
357
|
+
display: 'inline',
|
358
|
+
},
|
359
|
+
},
|
360
|
+
{
|
361
|
+
displayName: 'Value',
|
362
|
+
name: 'value',
|
363
|
+
type: 'string',
|
364
|
+
default: '',
|
365
|
+
typeOptions: {
|
366
|
+
minWidth: '100px',
|
367
|
+
display: 'inline',
|
368
|
+
},
|
369
|
+
},
|
370
|
+
],
|
371
|
+
},
|
372
|
+
],
|
373
|
+
},
|
320
374
|
],
|
321
375
|
};
|
322
376
|
}
|
@@ -342,6 +396,7 @@ description`,
|
|
342
396
|
const page = this.getNodeParameter('page', i);
|
343
397
|
const limit = this.getNodeParameter('limit', i);
|
344
398
|
const dataSelection = this.getNodeParameter('dataSelection', i, DEFAULT_FIELDS);
|
399
|
+
const titleFilter = this.getNodeParameter('titleFilter', i, {});
|
345
400
|
const variables = {
|
346
401
|
page,
|
347
402
|
limit,
|
@@ -355,6 +410,22 @@ description`,
|
|
355
410
|
? { eq: statusFilter.filter.value }
|
356
411
|
: { not: statusFilter.filter.value };
|
357
412
|
}
|
413
|
+
if (titleFilter.filter) {
|
414
|
+
switch (titleFilter.filter.operation) {
|
415
|
+
case 'equals':
|
416
|
+
variables.title = { eq: titleFilter.filter.value };
|
417
|
+
break;
|
418
|
+
case 'notEquals':
|
419
|
+
variables.title = { not: titleFilter.filter.value };
|
420
|
+
break;
|
421
|
+
case 'contains':
|
422
|
+
variables.title = { like: titleFilter.filter.value };
|
423
|
+
break;
|
424
|
+
case 'notContains':
|
425
|
+
variables.title = { notlike: titleFilter.filter.value };
|
426
|
+
break;
|
427
|
+
}
|
428
|
+
}
|
358
429
|
if (priority) {
|
359
430
|
variables.priority = { eq: priority };
|
360
431
|
}
|