@couleetech/n8n-nodes-enlightenedmsp 1.4.5 → 1.4.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.
@@ -155,8 +155,8 @@ class SearchDattormmDevices {
155
155
  displayName: 'Page',
156
156
  name: 'page',
157
157
  type: 'number',
158
- default: 1,
159
- description: 'Page number for pagination',
158
+ default: 0,
159
+ description: 'Page number for pagination (0-indexed)',
160
160
  },
161
161
  {
162
162
  displayName: 'Limit',
@@ -87,10 +87,47 @@ class SearchTicket {
87
87
  },
88
88
  {
89
89
  displayName: 'Status',
90
- name: 'status',
91
- type: 'number',
92
- default: 0,
93
- description: 'Filter by ticket status',
90
+ name: 'statusFilter',
91
+ type: 'fixedCollection',
92
+ default: {},
93
+ options: [
94
+ {
95
+ displayName: 'Filter',
96
+ name: 'filter',
97
+ values: [
98
+ {
99
+ displayName: 'Operation',
100
+ name: 'operation',
101
+ type: 'options',
102
+ options: [
103
+ {
104
+ name: 'Equals',
105
+ value: 'equals',
106
+ },
107
+ {
108
+ name: 'Not Equals',
109
+ value: 'notEquals',
110
+ },
111
+ ],
112
+ default: 'equals',
113
+ typeOptions: {
114
+ minWidth: '100px',
115
+ display: 'inline',
116
+ },
117
+ },
118
+ {
119
+ displayName: 'Value',
120
+ name: 'value',
121
+ type: 'number',
122
+ default: 0,
123
+ typeOptions: {
124
+ minWidth: '100px',
125
+ display: 'inline',
126
+ },
127
+ },
128
+ ],
129
+ },
130
+ ],
94
131
  },
95
132
  {
96
133
  displayName: 'Priority',
@@ -291,7 +328,7 @@ description`,
291
328
  for (let i = 0; i < items.length; i++) {
292
329
  try {
293
330
  const search = this.getNodeParameter('search', i);
294
- const status = this.getNodeParameter('status', i);
331
+ const statusFilter = this.getNodeParameter('statusFilter', i);
295
332
  const priority = this.getNodeParameter('priority', i);
296
333
  const assignedResourceID = this.getNodeParameter('assignedResourceID', i);
297
334
  const queueID = this.getNodeParameter('queueID', i);
@@ -308,7 +345,11 @@ description`,
308
345
  page,
309
346
  limit,
310
347
  search: search || undefined,
311
- status: status ? { eq: status } : undefined,
348
+ status: (statusFilter === null || statusFilter === void 0 ? void 0 : statusFilter.filter) ?
349
+ statusFilter.filter.operation === 'equals' ?
350
+ { eq: statusFilter.filter.value } :
351
+ { ne: statusFilter.filter.value } :
352
+ undefined,
312
353
  priority: priority ? { eq: priority } : undefined,
313
354
  assignedResourceID: assignedResourceID ? { eq: assignedResourceID } : undefined,
314
355
  queueID: queueID ? { eq: queueID } : undefined,
@@ -32,6 +32,7 @@ class UpdateTicketGraphql extends GraphqlBase_1.GraphqlBase {
32
32
  $completedDate: Date
33
33
  $coreCompanyId: Int
34
34
  $archived: Boolean
35
+ $nextActionNote: String
35
36
  ) {
36
37
  updateAutotaskTickets(
37
38
  id: $id
@@ -46,6 +47,7 @@ class UpdateTicketGraphql extends GraphqlBase_1.GraphqlBase {
46
47
  completedDate: $completedDate
47
48
  coreCompanyId: $coreCompanyId
48
49
  archived: $archived
50
+ nextActionNote: $nextActionNote
49
51
  ) {
50
52
  ${variables.fields || DEFAULT_FIELDS}
51
53
  }
@@ -167,6 +169,13 @@ class UpdateTicket {
167
169
  default: '',
168
170
  description: 'The completion date of the ticket',
169
171
  },
172
+ {
173
+ displayName: 'Next Action Note',
174
+ name: 'nextActionNote',
175
+ type: 'string',
176
+ default: '',
177
+ description: 'The next action note for the ticket',
178
+ },
170
179
  ],
171
180
  },
172
181
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@couleetech/n8n-nodes-enlightenedmsp",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "n8n node for EnlightenedMSP ticketing and workflow automation",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -68,6 +68,7 @@
68
68
  "@types/request-promise-native": "~1.0.18",
69
69
  "@typescript-eslint/eslint-plugin": "5.45",
70
70
  "@typescript-eslint/parser": "~5.45",
71
+ "dotenv": "^16.4.7",
71
72
  "eslint": "^8.57.1",
72
73
  "eslint-plugin-n8n-nodes-base": "^1.16.3",
73
74
  "gulp": "^4.0.2",