n8n-nodes-perfexcrm 0.1.7 → 0.1.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.
- package/dist/nodes/PerfexCrm/PerfexCrm.node.js +251 -2
- package/dist/nodes/PerfexCrm/PerfexCrmTrigger.node.js +1 -1
- package/dist/nodes/PerfexCrm/descriptions/ContractDescription.js +412 -2
- package/dist/nodes/PerfexCrm/descriptions/CustomerDescription.js +115 -0
- package/dist/nodes/PerfexCrm/descriptions/InvoiceDescription.js +456 -2
- package/dist/nodes/PerfexCrm/descriptions/LeadDescription.js +426 -2
- package/dist/nodes/PerfexCrm/descriptions/ProjectDescription.js +492 -2
- package/dist/nodes/PerfexCrm/descriptions/TicketDescription.js +159 -0
- package/dist/nodes/PerfexCrm/perfexcrm.svg +9 -5
- package/package.json +4 -3
|
@@ -1,5 +1,495 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.projectFields = exports.projectOperations = void 0;
|
|
4
|
-
exports.projectOperations = [
|
|
5
|
-
|
|
4
|
+
exports.projectOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['project'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new project',
|
|
20
|
+
action: 'Create a project',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a project',
|
|
26
|
+
action: 'Delete a project',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a project',
|
|
32
|
+
action: 'Get a project',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get many projects',
|
|
38
|
+
action: 'Get many projects',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update a project',
|
|
44
|
+
action: 'Update a project',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'create',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.projectFields = [
|
|
51
|
+
/* -------------------------------------------------------------------------- */
|
|
52
|
+
/* project:create */
|
|
53
|
+
/* -------------------------------------------------------------------------- */
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Name',
|
|
56
|
+
name: 'name',
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: true,
|
|
59
|
+
default: '',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['project'],
|
|
63
|
+
operation: ['create'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
description: 'Project name',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Client ID',
|
|
70
|
+
name: 'clientId',
|
|
71
|
+
type: 'string',
|
|
72
|
+
required: true,
|
|
73
|
+
default: '',
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
resource: ['project'],
|
|
77
|
+
operation: ['create'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
description: 'Client ID',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
displayName: 'Additional Fields',
|
|
84
|
+
name: 'additionalFields',
|
|
85
|
+
type: 'collection',
|
|
86
|
+
placeholder: 'Add Field',
|
|
87
|
+
default: {},
|
|
88
|
+
displayOptions: {
|
|
89
|
+
show: {
|
|
90
|
+
resource: ['project'],
|
|
91
|
+
operation: ['create'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
options: [
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Description',
|
|
97
|
+
name: 'description',
|
|
98
|
+
type: 'string',
|
|
99
|
+
typeOptions: {
|
|
100
|
+
alwaysOpenEditWindow: true,
|
|
101
|
+
},
|
|
102
|
+
default: '',
|
|
103
|
+
description: 'Project description',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Status',
|
|
107
|
+
name: 'status',
|
|
108
|
+
type: 'options',
|
|
109
|
+
options: [
|
|
110
|
+
{
|
|
111
|
+
name: 'Not Started',
|
|
112
|
+
value: 1,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'In Progress',
|
|
116
|
+
value: 2,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'On Hold',
|
|
120
|
+
value: 3,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'Cancelled',
|
|
124
|
+
value: 4,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'Finished',
|
|
128
|
+
value: 5,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
default: 1,
|
|
132
|
+
description: 'Project status',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
displayName: 'Billing Type',
|
|
136
|
+
name: 'billing_type',
|
|
137
|
+
type: 'options',
|
|
138
|
+
options: [
|
|
139
|
+
{
|
|
140
|
+
name: 'Fixed Rate',
|
|
141
|
+
value: 1,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'Project Hours',
|
|
145
|
+
value: 2,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: 'Task Hours',
|
|
149
|
+
value: 3,
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
default: 1,
|
|
153
|
+
description: 'Project billing type',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Start Date',
|
|
157
|
+
name: 'start_date',
|
|
158
|
+
type: 'dateTime',
|
|
159
|
+
default: '',
|
|
160
|
+
description: 'Project start date',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Deadline',
|
|
164
|
+
name: 'deadline',
|
|
165
|
+
type: 'dateTime',
|
|
166
|
+
default: '',
|
|
167
|
+
description: 'Project deadline',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
displayName: 'Project Cost',
|
|
171
|
+
name: 'project_cost',
|
|
172
|
+
type: 'number',
|
|
173
|
+
default: 0,
|
|
174
|
+
description: 'Total project cost',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Project Rate Per Hour',
|
|
178
|
+
name: 'project_rate_per_hour',
|
|
179
|
+
type: 'number',
|
|
180
|
+
default: 0,
|
|
181
|
+
description: 'Hourly rate for project',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Estimated Hours',
|
|
185
|
+
name: 'estimated_hours',
|
|
186
|
+
type: 'number',
|
|
187
|
+
default: 0,
|
|
188
|
+
description: 'Estimated hours for project',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Progress',
|
|
192
|
+
name: 'progress',
|
|
193
|
+
type: 'number',
|
|
194
|
+
typeOptions: {
|
|
195
|
+
minValue: 0,
|
|
196
|
+
maxValue: 100,
|
|
197
|
+
},
|
|
198
|
+
default: 0,
|
|
199
|
+
description: 'Project progress percentage (0-100)',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
/* -------------------------------------------------------------------------- */
|
|
204
|
+
/* project:get */
|
|
205
|
+
/* -------------------------------------------------------------------------- */
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Project ID',
|
|
208
|
+
name: 'projectId',
|
|
209
|
+
type: 'string',
|
|
210
|
+
required: true,
|
|
211
|
+
default: '',
|
|
212
|
+
displayOptions: {
|
|
213
|
+
show: {
|
|
214
|
+
resource: ['project'],
|
|
215
|
+
operation: ['get'],
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
description: 'The ID of the project',
|
|
219
|
+
},
|
|
220
|
+
/* -------------------------------------------------------------------------- */
|
|
221
|
+
/* project:getAll */
|
|
222
|
+
/* -------------------------------------------------------------------------- */
|
|
223
|
+
{
|
|
224
|
+
displayName: 'Return All',
|
|
225
|
+
name: 'returnAll',
|
|
226
|
+
type: 'boolean',
|
|
227
|
+
displayOptions: {
|
|
228
|
+
show: {
|
|
229
|
+
resource: ['project'],
|
|
230
|
+
operation: ['getAll'],
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
default: false,
|
|
234
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
displayName: 'Limit',
|
|
238
|
+
name: 'limit',
|
|
239
|
+
type: 'number',
|
|
240
|
+
displayOptions: {
|
|
241
|
+
show: {
|
|
242
|
+
resource: ['project'],
|
|
243
|
+
operation: ['getAll'],
|
|
244
|
+
returnAll: [false],
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
typeOptions: {
|
|
248
|
+
minValue: 1,
|
|
249
|
+
},
|
|
250
|
+
default: 50,
|
|
251
|
+
description: 'Max number of results to return',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Filters',
|
|
255
|
+
name: 'filters',
|
|
256
|
+
type: 'collection',
|
|
257
|
+
placeholder: 'Add Filter',
|
|
258
|
+
default: {},
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: {
|
|
261
|
+
resource: ['project'],
|
|
262
|
+
operation: ['getAll'],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
options: [
|
|
266
|
+
{
|
|
267
|
+
displayName: 'Client ID',
|
|
268
|
+
name: 'clientid',
|
|
269
|
+
type: 'string',
|
|
270
|
+
default: '',
|
|
271
|
+
description: 'Filter by client ID',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Status',
|
|
275
|
+
name: 'status',
|
|
276
|
+
type: 'options',
|
|
277
|
+
options: [
|
|
278
|
+
{
|
|
279
|
+
name: 'All',
|
|
280
|
+
value: '',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'Not Started',
|
|
284
|
+
value: '1',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: 'In Progress',
|
|
288
|
+
value: '2',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: 'On Hold',
|
|
292
|
+
value: '3',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: 'Cancelled',
|
|
296
|
+
value: '4',
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: 'Finished',
|
|
300
|
+
value: '5',
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
default: '',
|
|
304
|
+
description: 'Filter by status',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
displayName: 'Billing Type',
|
|
308
|
+
name: 'billing_type',
|
|
309
|
+
type: 'options',
|
|
310
|
+
options: [
|
|
311
|
+
{
|
|
312
|
+
name: 'All',
|
|
313
|
+
value: '',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: 'Fixed Rate',
|
|
317
|
+
value: '1',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: 'Project Hours',
|
|
321
|
+
value: '2',
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: 'Task Hours',
|
|
325
|
+
value: '3',
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
default: '',
|
|
329
|
+
description: 'Filter by billing type',
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
},
|
|
333
|
+
/* -------------------------------------------------------------------------- */
|
|
334
|
+
/* project:update */
|
|
335
|
+
/* -------------------------------------------------------------------------- */
|
|
336
|
+
{
|
|
337
|
+
displayName: 'Project ID',
|
|
338
|
+
name: 'projectId',
|
|
339
|
+
type: 'string',
|
|
340
|
+
required: true,
|
|
341
|
+
default: '',
|
|
342
|
+
displayOptions: {
|
|
343
|
+
show: {
|
|
344
|
+
resource: ['project'],
|
|
345
|
+
operation: ['update'],
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
description: 'The ID of the project',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
displayName: 'Update Fields',
|
|
352
|
+
name: 'updateFields',
|
|
353
|
+
type: 'collection',
|
|
354
|
+
placeholder: 'Add Field',
|
|
355
|
+
default: {},
|
|
356
|
+
displayOptions: {
|
|
357
|
+
show: {
|
|
358
|
+
resource: ['project'],
|
|
359
|
+
operation: ['update'],
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
options: [
|
|
363
|
+
{
|
|
364
|
+
displayName: 'Name',
|
|
365
|
+
name: 'name',
|
|
366
|
+
type: 'string',
|
|
367
|
+
default: '',
|
|
368
|
+
description: 'Project name',
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
displayName: 'Description',
|
|
372
|
+
name: 'description',
|
|
373
|
+
type: 'string',
|
|
374
|
+
typeOptions: {
|
|
375
|
+
alwaysOpenEditWindow: true,
|
|
376
|
+
},
|
|
377
|
+
default: '',
|
|
378
|
+
description: 'Project description',
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
displayName: 'Status',
|
|
382
|
+
name: 'status',
|
|
383
|
+
type: 'options',
|
|
384
|
+
options: [
|
|
385
|
+
{
|
|
386
|
+
name: 'Not Started',
|
|
387
|
+
value: 1,
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: 'In Progress',
|
|
391
|
+
value: 2,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: 'On Hold',
|
|
395
|
+
value: 3,
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: 'Cancelled',
|
|
399
|
+
value: 4,
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
name: 'Finished',
|
|
403
|
+
value: 5,
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
default: 1,
|
|
407
|
+
description: 'Project status',
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
displayName: 'Billing Type',
|
|
411
|
+
name: 'billing_type',
|
|
412
|
+
type: 'options',
|
|
413
|
+
options: [
|
|
414
|
+
{
|
|
415
|
+
name: 'Fixed Rate',
|
|
416
|
+
value: 1,
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: 'Project Hours',
|
|
420
|
+
value: 2,
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: 'Task Hours',
|
|
424
|
+
value: 3,
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
default: 1,
|
|
428
|
+
description: 'Project billing type',
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
displayName: 'Start Date',
|
|
432
|
+
name: 'start_date',
|
|
433
|
+
type: 'dateTime',
|
|
434
|
+
default: '',
|
|
435
|
+
description: 'Project start date',
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
displayName: 'Deadline',
|
|
439
|
+
name: 'deadline',
|
|
440
|
+
type: 'dateTime',
|
|
441
|
+
default: '',
|
|
442
|
+
description: 'Project deadline',
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
displayName: 'Project Cost',
|
|
446
|
+
name: 'project_cost',
|
|
447
|
+
type: 'number',
|
|
448
|
+
default: 0,
|
|
449
|
+
description: 'Total project cost',
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
displayName: 'Project Rate Per Hour',
|
|
453
|
+
name: 'project_rate_per_hour',
|
|
454
|
+
type: 'number',
|
|
455
|
+
default: 0,
|
|
456
|
+
description: 'Hourly rate for project',
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
displayName: 'Estimated Hours',
|
|
460
|
+
name: 'estimated_hours',
|
|
461
|
+
type: 'number',
|
|
462
|
+
default: 0,
|
|
463
|
+
description: 'Estimated hours for project',
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
displayName: 'Progress',
|
|
467
|
+
name: 'progress',
|
|
468
|
+
type: 'number',
|
|
469
|
+
typeOptions: {
|
|
470
|
+
minValue: 0,
|
|
471
|
+
maxValue: 100,
|
|
472
|
+
},
|
|
473
|
+
default: 0,
|
|
474
|
+
description: 'Project progress percentage (0-100)',
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
},
|
|
478
|
+
/* -------------------------------------------------------------------------- */
|
|
479
|
+
/* project:delete */
|
|
480
|
+
/* -------------------------------------------------------------------------- */
|
|
481
|
+
{
|
|
482
|
+
displayName: 'Project ID',
|
|
483
|
+
name: 'projectId',
|
|
484
|
+
type: 'string',
|
|
485
|
+
required: true,
|
|
486
|
+
default: '',
|
|
487
|
+
displayOptions: {
|
|
488
|
+
show: {
|
|
489
|
+
resource: ['project'],
|
|
490
|
+
operation: ['delete'],
|
|
491
|
+
},
|
|
492
|
+
},
|
|
493
|
+
description: 'The ID of the project',
|
|
494
|
+
},
|
|
495
|
+
];
|
|
@@ -31,6 +31,12 @@ exports.ticketOperations = [
|
|
|
31
31
|
description: 'Delete a ticket',
|
|
32
32
|
action: 'Delete a ticket',
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Delete Reply',
|
|
36
|
+
value: 'deleteReply',
|
|
37
|
+
description: 'Delete a reply from a ticket',
|
|
38
|
+
action: 'Delete reply from ticket',
|
|
39
|
+
},
|
|
34
40
|
{
|
|
35
41
|
name: 'Get',
|
|
36
42
|
value: 'get',
|
|
@@ -43,12 +49,30 @@ exports.ticketOperations = [
|
|
|
43
49
|
description: 'Get many tickets',
|
|
44
50
|
action: 'Get many tickets',
|
|
45
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Get Reply',
|
|
54
|
+
value: 'getReply',
|
|
55
|
+
description: 'Get a reply from a ticket',
|
|
56
|
+
action: 'Get reply from ticket',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'List Replies',
|
|
60
|
+
value: 'listReplies',
|
|
61
|
+
description: 'Get all replies from a ticket',
|
|
62
|
+
action: 'Get all replies from ticket',
|
|
63
|
+
},
|
|
46
64
|
{
|
|
47
65
|
name: 'Update',
|
|
48
66
|
value: 'update',
|
|
49
67
|
description: 'Update a ticket',
|
|
50
68
|
action: 'Update a ticket',
|
|
51
69
|
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Update Reply',
|
|
72
|
+
value: 'updateReply',
|
|
73
|
+
description: 'Update a reply on a ticket',
|
|
74
|
+
action: 'Update reply on ticket',
|
|
75
|
+
},
|
|
52
76
|
],
|
|
53
77
|
default: 'create',
|
|
54
78
|
},
|
|
@@ -566,4 +590,139 @@ exports.ticketFields = [
|
|
|
566
590
|
},
|
|
567
591
|
],
|
|
568
592
|
},
|
|
593
|
+
/* -------------------------------------------------------------------------- */
|
|
594
|
+
/* ticket:getReply */
|
|
595
|
+
/* -------------------------------------------------------------------------- */
|
|
596
|
+
{
|
|
597
|
+
displayName: 'Ticket ID',
|
|
598
|
+
name: 'ticketId',
|
|
599
|
+
type: 'string',
|
|
600
|
+
required: true,
|
|
601
|
+
default: '',
|
|
602
|
+
displayOptions: {
|
|
603
|
+
show: {
|
|
604
|
+
resource: ['ticket'],
|
|
605
|
+
operation: ['getReply'],
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
description: 'The ID of the ticket',
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
displayName: 'Reply ID',
|
|
612
|
+
name: 'replyId',
|
|
613
|
+
type: 'string',
|
|
614
|
+
required: true,
|
|
615
|
+
default: '',
|
|
616
|
+
displayOptions: {
|
|
617
|
+
show: {
|
|
618
|
+
resource: ['ticket'],
|
|
619
|
+
operation: ['getReply'],
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
description: 'The ID of the reply',
|
|
623
|
+
},
|
|
624
|
+
/* -------------------------------------------------------------------------- */
|
|
625
|
+
/* ticket:updateReply */
|
|
626
|
+
/* -------------------------------------------------------------------------- */
|
|
627
|
+
{
|
|
628
|
+
displayName: 'Ticket ID',
|
|
629
|
+
name: 'ticketId',
|
|
630
|
+
type: 'string',
|
|
631
|
+
required: true,
|
|
632
|
+
default: '',
|
|
633
|
+
displayOptions: {
|
|
634
|
+
show: {
|
|
635
|
+
resource: ['ticket'],
|
|
636
|
+
operation: ['updateReply'],
|
|
637
|
+
},
|
|
638
|
+
},
|
|
639
|
+
description: 'The ID of the ticket',
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
displayName: 'Reply ID',
|
|
643
|
+
name: 'replyId',
|
|
644
|
+
type: 'string',
|
|
645
|
+
required: true,
|
|
646
|
+
default: '',
|
|
647
|
+
displayOptions: {
|
|
648
|
+
show: {
|
|
649
|
+
resource: ['ticket'],
|
|
650
|
+
operation: ['updateReply'],
|
|
651
|
+
},
|
|
652
|
+
},
|
|
653
|
+
description: 'The ID of the reply',
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
displayName: 'Update Fields',
|
|
657
|
+
name: 'updateFields',
|
|
658
|
+
type: 'collection',
|
|
659
|
+
placeholder: 'Add Field',
|
|
660
|
+
default: {},
|
|
661
|
+
displayOptions: {
|
|
662
|
+
show: {
|
|
663
|
+
resource: ['ticket'],
|
|
664
|
+
operation: ['updateReply'],
|
|
665
|
+
},
|
|
666
|
+
},
|
|
667
|
+
options: [
|
|
668
|
+
{
|
|
669
|
+
displayName: 'Message',
|
|
670
|
+
name: 'message',
|
|
671
|
+
type: 'string',
|
|
672
|
+
typeOptions: {
|
|
673
|
+
alwaysOpenEditWindow: true,
|
|
674
|
+
},
|
|
675
|
+
default: '',
|
|
676
|
+
description: 'Reply message content',
|
|
677
|
+
},
|
|
678
|
+
],
|
|
679
|
+
},
|
|
680
|
+
/* -------------------------------------------------------------------------- */
|
|
681
|
+
/* ticket:deleteReply */
|
|
682
|
+
/* -------------------------------------------------------------------------- */
|
|
683
|
+
{
|
|
684
|
+
displayName: 'Ticket ID',
|
|
685
|
+
name: 'ticketId',
|
|
686
|
+
type: 'string',
|
|
687
|
+
required: true,
|
|
688
|
+
default: '',
|
|
689
|
+
displayOptions: {
|
|
690
|
+
show: {
|
|
691
|
+
resource: ['ticket'],
|
|
692
|
+
operation: ['deleteReply'],
|
|
693
|
+
},
|
|
694
|
+
},
|
|
695
|
+
description: 'The ID of the ticket',
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
displayName: 'Reply ID',
|
|
699
|
+
name: 'replyId',
|
|
700
|
+
type: 'string',
|
|
701
|
+
required: true,
|
|
702
|
+
default: '',
|
|
703
|
+
displayOptions: {
|
|
704
|
+
show: {
|
|
705
|
+
resource: ['ticket'],
|
|
706
|
+
operation: ['deleteReply'],
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
description: 'The ID of the reply',
|
|
710
|
+
},
|
|
711
|
+
/* -------------------------------------------------------------------------- */
|
|
712
|
+
/* ticket:listReplies */
|
|
713
|
+
/* -------------------------------------------------------------------------- */
|
|
714
|
+
{
|
|
715
|
+
displayName: 'Ticket ID',
|
|
716
|
+
name: 'ticketId',
|
|
717
|
+
type: 'string',
|
|
718
|
+
required: true,
|
|
719
|
+
default: '',
|
|
720
|
+
displayOptions: {
|
|
721
|
+
show: {
|
|
722
|
+
resource: ['ticket'],
|
|
723
|
+
operation: ['listReplies'],
|
|
724
|
+
},
|
|
725
|
+
},
|
|
726
|
+
description: 'The ID of the ticket',
|
|
727
|
+
},
|
|
569
728
|
];
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="perfexGradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4
|
+
<stop offset="0%" style="stop-color:#4e73df;stop-opacity:1" />
|
|
5
|
+
<stop offset="100%" style="stop-color:#224abe;stop-opacity:1" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect width="60" height="60" rx="8" ry="8" fill="url(#perfexGradient)"/>
|
|
9
|
+
<text x="30" y="42" font-family="Arial, sans-serif" font-size="36" font-weight="bold" fill="white" text-anchor="middle">P</text>
|
|
6
10
|
</svg>
|