@couleetech/n8n-nodes-enlightenedmsp 1.0.0 → 1.1.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.
|
@@ -10,23 +10,193 @@ class UpdateTicketGraphql extends GraphqlBase_1.GraphqlBase {
|
|
|
10
10
|
UpdateTicketGraphql.UPDATE_TICKET_MUTATION = `
|
|
11
11
|
mutation UpdateAutotaskTicket(
|
|
12
12
|
$id: Int!
|
|
13
|
-
$
|
|
14
|
-
$
|
|
13
|
+
$parentTicketId: Int
|
|
14
|
+
$apiVendorID: Int
|
|
15
|
+
$assignedResourceID: Int
|
|
16
|
+
$assignedResourceRoleID: Int
|
|
17
|
+
$billingCodeID: Int
|
|
18
|
+
$changeApprovalBoard: Int
|
|
19
|
+
$changeApprovalStatus: Int
|
|
20
|
+
$changeApprovalType: Int
|
|
21
|
+
$changeInfoField1: String
|
|
22
|
+
$changeInfoField2: String
|
|
23
|
+
$changeInfoField3: String
|
|
24
|
+
$changeInfoField4: String
|
|
25
|
+
$changeInfoField5: String
|
|
26
|
+
$companyID: Int
|
|
27
|
+
$companyLocationID: Int
|
|
28
|
+
$completedByResourceID: Int
|
|
29
|
+
$completedDate: Date
|
|
30
|
+
$configurationItemID: Int
|
|
31
|
+
$contactID: Int
|
|
32
|
+
$contractID: Int
|
|
33
|
+
$contractServiceBundleID: Int
|
|
34
|
+
$contractServiceID: Int
|
|
35
|
+
$createDate: Date
|
|
36
|
+
$createdByContactID: Int
|
|
37
|
+
$creatorResourceID: Int
|
|
38
|
+
$creatorType: Int
|
|
39
|
+
$currentServiceThermometerRating: Int
|
|
40
|
+
$dueDateTime: Date
|
|
41
|
+
$estimatedHours: Int
|
|
42
|
+
$externalID: String
|
|
43
|
+
$firstResponseAssignedResourceID: Int
|
|
44
|
+
$firstResponseDateTime: Date
|
|
45
|
+
$firstResponseDueDateTime: Date
|
|
46
|
+
$firstResponseInitiatingResourceID: Int
|
|
47
|
+
$hoursToBeScheduled: Int
|
|
48
|
+
$impersonatorCreatorResourceID: Int
|
|
49
|
+
$issueType: Int
|
|
50
|
+
$lastActivityDate: Date
|
|
51
|
+
$lastActivityPersonType: Int
|
|
52
|
+
$lastActivityResourceID: Int
|
|
53
|
+
$lastCustomerNotificationDateTime: Date
|
|
54
|
+
$lastCustomerVisibleActivityDateTime: Date
|
|
55
|
+
$lastTrackedModificationDateTime: Date
|
|
56
|
+
$monitorID: Int
|
|
57
|
+
$monitorTypeID: Int
|
|
58
|
+
$opportunityID: Int
|
|
59
|
+
$organizationalLevelAssociationID: Int
|
|
60
|
+
$previousServiceThermometerRating: Int
|
|
61
|
+
$priority: Int
|
|
62
|
+
$problemTicketId: Int
|
|
63
|
+
$projectID: Int
|
|
64
|
+
$purchaseOrderNumber: String
|
|
65
|
+
$queueID: Int
|
|
66
|
+
$resolution: String
|
|
67
|
+
$resolutionPlanDateTime: Date
|
|
68
|
+
$resolutionPlanDueDateTime: Int
|
|
69
|
+
$resolvedDateTime: Date
|
|
70
|
+
$resolvedDueDateTime: Date
|
|
71
|
+
$rmaStatus: Int
|
|
72
|
+
$rmaType: Int
|
|
73
|
+
$rmmAlertID: String
|
|
74
|
+
$serviceLevelAgreementHasBeenMet: Int
|
|
75
|
+
$serviceLevelAgreementID: Int
|
|
76
|
+
$serviceLevelAgreementPausedNextEventHours: Int
|
|
77
|
+
$serviceThermometerTemperature: Int
|
|
78
|
+
$source: Int
|
|
79
|
+
$status: Int
|
|
80
|
+
$subIssueType: Int
|
|
81
|
+
$ticketCategory: Int
|
|
82
|
+
$ticketNumber: String
|
|
83
|
+
$ticketType: Int
|
|
15
84
|
$title: String
|
|
16
|
-
$
|
|
85
|
+
$enlightendTicketClass: String
|
|
86
|
+
$nextActionDate: Date
|
|
87
|
+
$nextActionTime: Int
|
|
88
|
+
$nextActionType: String
|
|
89
|
+
$contactlessStart: Boolean
|
|
90
|
+
$archived: Boolean
|
|
91
|
+
$maxImportanceRank: Int
|
|
92
|
+
$resyncImportanceRank: Boolean
|
|
93
|
+
$lastImportanceSync: Date
|
|
94
|
+
$recipeInstanceId: Int
|
|
95
|
+
$fromAutotask: Boolean
|
|
96
|
+
$mergeToTicketId: Int
|
|
97
|
+
$completedBy: String
|
|
98
|
+
$coreCompanyId: Int
|
|
17
99
|
) {
|
|
18
100
|
updateAutotaskTickets(
|
|
19
101
|
id: $id
|
|
102
|
+
parentTicketId: $parentTicketId
|
|
103
|
+
apiVendorID: $apiVendorID
|
|
104
|
+
assignedResourceID: $assignedResourceID
|
|
105
|
+
assignedResourceRoleID: $assignedResourceRoleID
|
|
106
|
+
billingCodeID: $billingCodeID
|
|
107
|
+
changeApprovalBoard: $changeApprovalBoard
|
|
108
|
+
changeApprovalStatus: $changeApprovalStatus
|
|
109
|
+
changeApprovalType: $changeApprovalType
|
|
110
|
+
changeInfoField1: $changeInfoField1
|
|
111
|
+
changeInfoField2: $changeInfoField2
|
|
112
|
+
changeInfoField3: $changeInfoField3
|
|
113
|
+
changeInfoField4: $changeInfoField4
|
|
114
|
+
changeInfoField5: $changeInfoField5
|
|
115
|
+
companyID: $companyID
|
|
116
|
+
companyLocationID: $companyLocationID
|
|
117
|
+
completedByResourceID: $completedByResourceID
|
|
118
|
+
completedDate: $completedDate
|
|
119
|
+
configurationItemID: $configurationItemID
|
|
120
|
+
contactID: $contactID
|
|
121
|
+
contractID: $contractID
|
|
122
|
+
contractServiceBundleID: $contractServiceBundleID
|
|
123
|
+
contractServiceID: $contractServiceID
|
|
124
|
+
createDate: $createDate
|
|
125
|
+
createdByContactID: $createdByContactID
|
|
126
|
+
creatorResourceID: $creatorResourceID
|
|
127
|
+
creatorType: $creatorType
|
|
128
|
+
currentServiceThermometerRating: $currentServiceThermometerRating
|
|
129
|
+
dueDateTime: $dueDateTime
|
|
130
|
+
estimatedHours: $estimatedHours
|
|
131
|
+
externalID: $externalID
|
|
132
|
+
firstResponseAssignedResourceID: $firstResponseAssignedResourceID
|
|
133
|
+
firstResponseDateTime: $firstResponseDateTime
|
|
134
|
+
firstResponseDueDateTime: $firstResponseDueDateTime
|
|
135
|
+
firstResponseInitiatingResourceID: $firstResponseInitiatingResourceID
|
|
136
|
+
hoursToBeScheduled: $hoursToBeScheduled
|
|
137
|
+
impersonatorCreatorResourceID: $impersonatorCreatorResourceID
|
|
138
|
+
issueType: $issueType
|
|
139
|
+
lastActivityDate: $lastActivityDate
|
|
140
|
+
lastActivityPersonType: $lastActivityPersonType
|
|
141
|
+
lastActivityResourceID: $lastActivityResourceID
|
|
142
|
+
lastCustomerNotificationDateTime: $lastCustomerNotificationDateTime
|
|
143
|
+
lastCustomerVisibleActivityDateTime: $lastCustomerVisibleActivityDateTime
|
|
144
|
+
lastTrackedModificationDateTime: $lastTrackedModificationDateTime
|
|
145
|
+
monitorID: $monitorID
|
|
146
|
+
monitorTypeID: $monitorTypeID
|
|
147
|
+
opportunityID: $opportunityID
|
|
148
|
+
organizationalLevelAssociationID: $organizationalLevelAssociationID
|
|
149
|
+
previousServiceThermometerRating: $previousServiceThermometerRating
|
|
150
|
+
priority: $priority
|
|
151
|
+
problemTicketId: $problemTicketId
|
|
152
|
+
projectID: $projectID
|
|
153
|
+
purchaseOrderNumber: $purchaseOrderNumber
|
|
154
|
+
queueID: $queueID
|
|
155
|
+
resolution: $resolution
|
|
156
|
+
resolutionPlanDateTime: $resolutionPlanDateTime
|
|
157
|
+
resolutionPlanDueDateTime: $resolutionPlanDueDateTime
|
|
158
|
+
resolvedDateTime: $resolvedDateTime
|
|
159
|
+
resolvedDueDateTime: $resolvedDueDateTime
|
|
160
|
+
rmaStatus: $rmaStatus
|
|
161
|
+
rmaType: $rmaType
|
|
162
|
+
rmmAlertID: $rmmAlertID
|
|
163
|
+
serviceLevelAgreementHasBeenMet: $serviceLevelAgreementHasBeenMet
|
|
164
|
+
serviceLevelAgreementID: $serviceLevelAgreementID
|
|
165
|
+
serviceLevelAgreementPausedNextEventHours: $serviceLevelAgreementPausedNextEventHours
|
|
166
|
+
serviceThermometerTemperature: $serviceThermometerTemperature
|
|
167
|
+
source: $source
|
|
20
168
|
status: $status
|
|
21
|
-
|
|
169
|
+
subIssueType: $subIssueType
|
|
170
|
+
ticketCategory: $ticketCategory
|
|
171
|
+
ticketNumber: $ticketNumber
|
|
172
|
+
ticketType: $ticketType
|
|
22
173
|
title: $title
|
|
23
|
-
|
|
174
|
+
enlightendTicketClass: $enlightendTicketClass
|
|
175
|
+
nextActionDate: $nextActionDate
|
|
176
|
+
nextActionTime: $nextActionTime
|
|
177
|
+
nextActionType: $nextActionType
|
|
178
|
+
contactlessStart: $contactlessStart
|
|
179
|
+
archived: $archived
|
|
180
|
+
maxImportanceRank: $maxImportanceRank
|
|
181
|
+
resyncImportanceRank: $resyncImportanceRank
|
|
182
|
+
lastImportanceSync: $lastImportanceSync
|
|
183
|
+
recipeInstanceId: $recipeInstanceId
|
|
184
|
+
fromAutotask: $fromAutotask
|
|
185
|
+
mergeToTicketId: $mergeToTicketId
|
|
186
|
+
completedBy: $completedBy
|
|
187
|
+
coreCompanyId: $coreCompanyId
|
|
24
188
|
) {
|
|
25
189
|
id
|
|
26
|
-
status
|
|
27
|
-
parentId
|
|
28
190
|
title
|
|
191
|
+
status
|
|
192
|
+
ticketNumber
|
|
29
193
|
description
|
|
194
|
+
priority
|
|
195
|
+
dueDateTime
|
|
196
|
+
assignedResourceID
|
|
197
|
+
queueID
|
|
198
|
+
completedDate
|
|
199
|
+
resolution
|
|
30
200
|
}
|
|
31
201
|
}
|
|
32
202
|
`;
|
|
@@ -67,15 +237,8 @@ class UpdateTicket {
|
|
|
67
237
|
default: {},
|
|
68
238
|
options: [
|
|
69
239
|
{
|
|
70
|
-
displayName: '
|
|
71
|
-
name: '
|
|
72
|
-
type: 'string',
|
|
73
|
-
default: '',
|
|
74
|
-
description: 'The new status of the ticket',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
displayName: 'Parent ID',
|
|
78
|
-
name: 'parentId',
|
|
240
|
+
displayName: 'Parent Ticket ID',
|
|
241
|
+
name: 'parentTicketId',
|
|
79
242
|
type: 'number',
|
|
80
243
|
default: 0,
|
|
81
244
|
description: 'The ID of the parent ticket',
|
|
@@ -85,14 +248,56 @@ class UpdateTicket {
|
|
|
85
248
|
name: 'title',
|
|
86
249
|
type: 'string',
|
|
87
250
|
default: '',
|
|
88
|
-
description: 'The
|
|
251
|
+
description: 'The title of the ticket',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Status',
|
|
255
|
+
name: 'status',
|
|
256
|
+
type: 'number',
|
|
257
|
+
default: 0,
|
|
258
|
+
description: 'The status of the ticket',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
displayName: 'Priority',
|
|
262
|
+
name: 'priority',
|
|
263
|
+
type: 'number',
|
|
264
|
+
default: 0,
|
|
265
|
+
description: 'The priority of the ticket',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
displayName: 'Queue ID',
|
|
269
|
+
name: 'queueID',
|
|
270
|
+
type: 'number',
|
|
271
|
+
default: 0,
|
|
272
|
+
description: 'The queue ID of the ticket',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
displayName: 'Assigned Resource ID',
|
|
276
|
+
name: 'assignedResourceID',
|
|
277
|
+
type: 'number',
|
|
278
|
+
default: 0,
|
|
279
|
+
description: 'The ID of the assigned resource',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
displayName: 'Due Date Time',
|
|
283
|
+
name: 'dueDateTime',
|
|
284
|
+
type: 'dateTime',
|
|
285
|
+
default: '',
|
|
286
|
+
description: 'The due date and time of the ticket',
|
|
89
287
|
},
|
|
90
288
|
{
|
|
91
|
-
displayName: '
|
|
92
|
-
name: '
|
|
289
|
+
displayName: 'Resolution',
|
|
290
|
+
name: 'resolution',
|
|
93
291
|
type: 'string',
|
|
94
292
|
default: '',
|
|
95
|
-
description: 'The
|
|
293
|
+
description: 'The resolution of the ticket',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
displayName: 'Completed Date',
|
|
297
|
+
name: 'completedDate',
|
|
298
|
+
type: 'dateTime',
|
|
299
|
+
default: '',
|
|
300
|
+
description: 'The completion date of the ticket',
|
|
96
301
|
},
|
|
97
302
|
],
|
|
98
303
|
},
|
|
@@ -112,6 +317,12 @@ class UpdateTicket {
|
|
|
112
317
|
id,
|
|
113
318
|
...updateFields,
|
|
114
319
|
};
|
|
320
|
+
if (updateFields.dueDateTime) {
|
|
321
|
+
variables.dueDateTime = new Date(updateFields.dueDateTime);
|
|
322
|
+
}
|
|
323
|
+
if (updateFields.completedDate) {
|
|
324
|
+
variables.completedDate = new Date(updateFields.completedDate);
|
|
325
|
+
}
|
|
115
326
|
const result = await graphqlClient.updateTicket(variables);
|
|
116
327
|
returnData.push({
|
|
117
328
|
json: result.updateAutotaskTickets,
|