n8n-nodes-proiectro 0.1.1
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/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/credentials/ProiectroApi.credentials.d.ts +13 -0
- package/dist/credentials/ProiectroApi.credentials.js +52 -0
- package/dist/credentials/proiectro.svg +44 -0
- package/dist/nodes/Proiectro/Proiectro.node.d.ts +17 -0
- package/dist/nodes/Proiectro/Proiectro.node.js +1865 -0
- package/dist/nodes/Proiectro/ProiectroTrigger.node.d.ts +12 -0
- package/dist/nodes/Proiectro/ProiectroTrigger.node.js +214 -0
- package/dist/nodes/Proiectro/descriptions/ContactDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/ContactDescription.js +157 -0
- package/dist/nodes/Proiectro/descriptions/CustomerDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/CustomerDescription.js +152 -0
- package/dist/nodes/Proiectro/descriptions/LabelDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/LabelDescription.js +370 -0
- package/dist/nodes/Proiectro/descriptions/OperationalWorkItemDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/OperationalWorkItemDescription.js +261 -0
- package/dist/nodes/Proiectro/descriptions/PaymentDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/PaymentDescription.js +163 -0
- package/dist/nodes/Proiectro/descriptions/ProcessDefinitionDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/ProcessDefinitionDescription.js +127 -0
- package/dist/nodes/Proiectro/descriptions/ProjectDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/ProjectDescription.js +48 -0
- package/dist/nodes/Proiectro/descriptions/ProposalDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/ProposalDescription.js +460 -0
- package/dist/nodes/Proiectro/descriptions/ResourceDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/ResourceDescription.js +119 -0
- package/dist/nodes/Proiectro/descriptions/SupportRequestDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/SupportRequestDescription.js +237 -0
- package/dist/nodes/Proiectro/descriptions/TagDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/TagDescription.js +235 -0
- package/dist/nodes/Proiectro/descriptions/TeamMemberDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/TeamMemberDescription.js +166 -0
- package/dist/nodes/Proiectro/descriptions/WebhookDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/WebhookDescription.js +118 -0
- package/dist/nodes/Proiectro/descriptions/WorkItemDescription.d.ts +3 -0
- package/dist/nodes/Proiectro/descriptions/WorkItemDescription.js +288 -0
- package/dist/nodes/Proiectro/proiectro.svg +44 -0
- package/package.json +45 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.labelFields = exports.labelOperations = void 0;
|
|
4
|
+
exports.labelOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: { resource: ['label'] },
|
|
12
|
+
},
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Create',
|
|
16
|
+
value: 'create',
|
|
17
|
+
action: 'Create a label',
|
|
18
|
+
description: 'Create a new label',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Delete',
|
|
22
|
+
value: 'delete',
|
|
23
|
+
action: 'Delete a label',
|
|
24
|
+
description: 'Delete a label',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Label Customer',
|
|
28
|
+
value: 'label_customer',
|
|
29
|
+
action: 'Label a customer',
|
|
30
|
+
description: 'Attach a label to a customer',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Label Member',
|
|
34
|
+
value: 'label_member',
|
|
35
|
+
action: 'Label a team member',
|
|
36
|
+
description: 'Attach a label to a team member',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Label Operational Work Item',
|
|
40
|
+
value: 'label_operational_item',
|
|
41
|
+
action: 'Label an operational work item',
|
|
42
|
+
description: 'Attach a label to an operational work item',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Label Proposal',
|
|
46
|
+
value: 'label_proposal',
|
|
47
|
+
action: 'Label a proposal',
|
|
48
|
+
description: 'Attach a label to a proposal',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Label Resource',
|
|
52
|
+
value: 'label_resource',
|
|
53
|
+
action: 'Label a resource',
|
|
54
|
+
description: 'Attach a label to a resource',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Label Work Item',
|
|
58
|
+
value: 'label_work_item',
|
|
59
|
+
action: 'Label a work item',
|
|
60
|
+
description: 'Attach a label to a project work item',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'List All',
|
|
64
|
+
value: 'list',
|
|
65
|
+
action: 'List all labels',
|
|
66
|
+
description: 'List all labels in the workspace',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Unlabel Customer',
|
|
70
|
+
value: 'unlabel_customer',
|
|
71
|
+
action: 'Unlabel a customer',
|
|
72
|
+
description: 'Remove a label from a customer',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'Unlabel Member',
|
|
76
|
+
value: 'unlabel_member',
|
|
77
|
+
action: 'Unlabel a team member',
|
|
78
|
+
description: 'Remove a label from a team member',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Unlabel Operational Work Item',
|
|
82
|
+
value: 'unlabel_operational_item',
|
|
83
|
+
action: 'Unlabel an operational work item',
|
|
84
|
+
description: 'Remove a label from an operational work item',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'Unlabel Proposal',
|
|
88
|
+
value: 'unlabel_proposal',
|
|
89
|
+
action: 'Unlabel a proposal',
|
|
90
|
+
description: 'Remove a label from a proposal',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'Unlabel Resource',
|
|
94
|
+
value: 'unlabel_resource',
|
|
95
|
+
action: 'Unlabel a resource',
|
|
96
|
+
description: 'Remove a label from a resource',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'Unlabel Work Item',
|
|
100
|
+
value: 'unlabel_work_item',
|
|
101
|
+
action: 'Unlabel a work item',
|
|
102
|
+
description: 'Remove a label from a project work item',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Update',
|
|
106
|
+
value: 'update',
|
|
107
|
+
action: 'Update a label',
|
|
108
|
+
description: 'Update a label',
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
default: 'create',
|
|
112
|
+
},
|
|
113
|
+
];
|
|
114
|
+
exports.labelFields = [
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Name',
|
|
117
|
+
name: 'name',
|
|
118
|
+
type: 'string',
|
|
119
|
+
required: true,
|
|
120
|
+
default: '',
|
|
121
|
+
displayOptions: {
|
|
122
|
+
show: {
|
|
123
|
+
resource: ['label'],
|
|
124
|
+
operation: ["create", "update"],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Label Type',
|
|
130
|
+
name: 'label_type',
|
|
131
|
+
type: 'options',
|
|
132
|
+
options: [
|
|
133
|
+
{ name: 'Date', value: 'date' },
|
|
134
|
+
{ name: 'Decimal', value: 'decimal' },
|
|
135
|
+
{ name: 'Integer', value: 'integer' },
|
|
136
|
+
{ name: 'Text', value: 'text' },
|
|
137
|
+
],
|
|
138
|
+
default: 'text',
|
|
139
|
+
displayOptions: {
|
|
140
|
+
show: {
|
|
141
|
+
resource: ['label'],
|
|
142
|
+
operation: ["create"],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Label Name or ID',
|
|
148
|
+
name: 'label_id',
|
|
149
|
+
type: 'options',
|
|
150
|
+
required: true,
|
|
151
|
+
typeOptions: {
|
|
152
|
+
loadOptionsMethod: 'getLabels',
|
|
153
|
+
},
|
|
154
|
+
default: '',
|
|
155
|
+
displayOptions: {
|
|
156
|
+
show: {
|
|
157
|
+
resource: ['label'],
|
|
158
|
+
operation: ["update", "delete", "unlabel_customer", "unlabel_member", "unlabel_resource", "unlabel_proposal", "unlabel_work_item", "unlabel_operational_item"],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: 'Org',
|
|
165
|
+
name: 'org',
|
|
166
|
+
type: 'string',
|
|
167
|
+
required: true,
|
|
168
|
+
default: '',
|
|
169
|
+
displayOptions: {
|
|
170
|
+
show: {
|
|
171
|
+
resource: ['label'],
|
|
172
|
+
operation: ["label_customer"],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Label Name or ID',
|
|
178
|
+
name: 'label',
|
|
179
|
+
type: 'options',
|
|
180
|
+
required: true,
|
|
181
|
+
typeOptions: {
|
|
182
|
+
loadOptionsMethod: 'getLabels',
|
|
183
|
+
},
|
|
184
|
+
default: '',
|
|
185
|
+
displayOptions: {
|
|
186
|
+
show: {
|
|
187
|
+
resource: ['label'],
|
|
188
|
+
operation: ["label_customer", "label_member", "label_resource", "label_proposal", "label_work_item", "label_operational_item"],
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
displayName: 'Value Text',
|
|
195
|
+
name: 'value_text',
|
|
196
|
+
type: 'string',
|
|
197
|
+
default: '',
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
resource: ['label'],
|
|
201
|
+
operation: ["label_customer", "label_member", "label_resource", "label_proposal", "label_work_item", "label_operational_item"],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Value Integer',
|
|
207
|
+
name: 'value_integer',
|
|
208
|
+
type: 'number',
|
|
209
|
+
default: 0,
|
|
210
|
+
displayOptions: {
|
|
211
|
+
show: {
|
|
212
|
+
resource: ['label'],
|
|
213
|
+
operation: ["label_customer", "label_member", "label_resource", "label_proposal", "label_work_item", "label_operational_item"],
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Value Decimal',
|
|
219
|
+
name: 'value_decimal',
|
|
220
|
+
type: 'number',
|
|
221
|
+
default: 0,
|
|
222
|
+
displayOptions: {
|
|
223
|
+
show: {
|
|
224
|
+
resource: ['label'],
|
|
225
|
+
operation: ["label_customer", "label_member", "label_resource", "label_proposal", "label_work_item", "label_operational_item"],
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
displayName: 'Value Date',
|
|
231
|
+
name: 'value_date',
|
|
232
|
+
type: 'string',
|
|
233
|
+
default: '',
|
|
234
|
+
displayOptions: {
|
|
235
|
+
show: {
|
|
236
|
+
resource: ['label'],
|
|
237
|
+
operation: ["label_customer", "label_member", "label_resource", "label_proposal", "label_work_item", "label_operational_item"],
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
displayName: 'Org Name or ID',
|
|
243
|
+
name: 'org_id',
|
|
244
|
+
type: 'options',
|
|
245
|
+
required: true,
|
|
246
|
+
typeOptions: {
|
|
247
|
+
loadOptionsMethod: 'getCustomers',
|
|
248
|
+
},
|
|
249
|
+
default: '',
|
|
250
|
+
displayOptions: {
|
|
251
|
+
show: {
|
|
252
|
+
resource: ['label'],
|
|
253
|
+
operation: ["unlabel_customer"],
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Team',
|
|
260
|
+
name: 'team',
|
|
261
|
+
type: 'string',
|
|
262
|
+
required: true,
|
|
263
|
+
default: '',
|
|
264
|
+
displayOptions: {
|
|
265
|
+
show: {
|
|
266
|
+
resource: ['label'],
|
|
267
|
+
operation: ["label_member"],
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
displayName: 'Member Name or ID',
|
|
273
|
+
name: 'member_id',
|
|
274
|
+
type: 'options',
|
|
275
|
+
required: true,
|
|
276
|
+
typeOptions: {
|
|
277
|
+
loadOptionsMethod: 'getMembers',
|
|
278
|
+
},
|
|
279
|
+
default: '',
|
|
280
|
+
displayOptions: {
|
|
281
|
+
show: {
|
|
282
|
+
resource: ['label'],
|
|
283
|
+
operation: ["unlabel_member"],
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
displayName: 'Resource',
|
|
290
|
+
name: 'resource',
|
|
291
|
+
type: 'string',
|
|
292
|
+
required: true,
|
|
293
|
+
default: '',
|
|
294
|
+
displayOptions: {
|
|
295
|
+
show: {
|
|
296
|
+
resource: ['label'],
|
|
297
|
+
operation: ["label_resource"],
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
displayName: 'Resource ID',
|
|
303
|
+
name: 'resource_id',
|
|
304
|
+
type: 'string',
|
|
305
|
+
required: true,
|
|
306
|
+
default: '',
|
|
307
|
+
displayOptions: {
|
|
308
|
+
show: {
|
|
309
|
+
resource: ['label'],
|
|
310
|
+
operation: ["unlabel_resource"],
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
displayName: 'Proposal',
|
|
316
|
+
name: 'proposal',
|
|
317
|
+
type: 'string',
|
|
318
|
+
required: true,
|
|
319
|
+
default: '',
|
|
320
|
+
displayOptions: {
|
|
321
|
+
show: {
|
|
322
|
+
resource: ['label'],
|
|
323
|
+
operation: ["label_proposal"],
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
displayName: 'Proposal Name or ID',
|
|
329
|
+
name: 'proposal_id',
|
|
330
|
+
type: 'options',
|
|
331
|
+
required: true,
|
|
332
|
+
typeOptions: {
|
|
333
|
+
loadOptionsMethod: 'getProposals',
|
|
334
|
+
},
|
|
335
|
+
default: '',
|
|
336
|
+
displayOptions: {
|
|
337
|
+
show: {
|
|
338
|
+
resource: ['label'],
|
|
339
|
+
operation: ["unlabel_proposal"],
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
displayName: 'Work Item',
|
|
346
|
+
name: 'work_item',
|
|
347
|
+
type: 'string',
|
|
348
|
+
required: true,
|
|
349
|
+
default: '',
|
|
350
|
+
displayOptions: {
|
|
351
|
+
show: {
|
|
352
|
+
resource: ['label'],
|
|
353
|
+
operation: ["label_work_item", "label_operational_item"],
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
displayName: 'Work Item ID',
|
|
359
|
+
name: 'work_item_id',
|
|
360
|
+
type: 'string',
|
|
361
|
+
required: true,
|
|
362
|
+
default: '',
|
|
363
|
+
displayOptions: {
|
|
364
|
+
show: {
|
|
365
|
+
resource: ['label'],
|
|
366
|
+
operation: ["unlabel_work_item", "unlabel_operational_item"],
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
];
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.operationalWorkItemFields = exports.operationalWorkItemOperations = void 0;
|
|
4
|
+
exports.operationalWorkItemOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: { resource: ['operationalWorkItem'] },
|
|
12
|
+
},
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Approve',
|
|
16
|
+
value: 'approve',
|
|
17
|
+
action: 'Approve an operational work item',
|
|
18
|
+
description: 'Approve a work item at an approval-required stage',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Create',
|
|
22
|
+
value: 'create',
|
|
23
|
+
action: 'Create an operational work item',
|
|
24
|
+
description: 'Create a new operational work item (enters INPUT stage)',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Delete',
|
|
28
|
+
value: 'delete',
|
|
29
|
+
action: 'Delete an operational work item',
|
|
30
|
+
description: 'Delete an operational work item',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Get',
|
|
34
|
+
value: 'get',
|
|
35
|
+
action: 'Get an operational work item',
|
|
36
|
+
description: 'Get a single operational work item by ID',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'History',
|
|
40
|
+
value: 'history',
|
|
41
|
+
action: 'Get operational work item history',
|
|
42
|
+
description: 'Get the full movement/approval history of a work item',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'List All',
|
|
46
|
+
value: 'list',
|
|
47
|
+
action: 'List all operational work items',
|
|
48
|
+
description: 'List all operational work items across processes',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'List Stage Items',
|
|
52
|
+
value: 'stage_items',
|
|
53
|
+
action: 'List operational work items by stage',
|
|
54
|
+
description: 'List all work items in a specific process stage',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Move',
|
|
58
|
+
value: 'move',
|
|
59
|
+
action: 'Move an operational work item',
|
|
60
|
+
description: 'Move a work item to the next stage in its process',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'My Approvals',
|
|
64
|
+
value: 'my_approvals',
|
|
65
|
+
action: 'List my pending approvals',
|
|
66
|
+
description: 'List work items pending the user\'s approval',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'My Work Items',
|
|
70
|
+
value: 'my_items',
|
|
71
|
+
action: 'List my operational work items',
|
|
72
|
+
description: 'List work items assigned to the authenticated user',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'Reassign',
|
|
76
|
+
value: 'reassign',
|
|
77
|
+
action: 'Reassign an operational work item',
|
|
78
|
+
description: 'Reassign a work item to a different team member',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Reject',
|
|
82
|
+
value: 'reject',
|
|
83
|
+
action: 'Reject an operational work item',
|
|
84
|
+
description: 'Reject a work item back to its previous stage',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'Update',
|
|
88
|
+
value: 'update',
|
|
89
|
+
action: 'Update an operational work item',
|
|
90
|
+
description: 'Update an operational work item\'s details',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
default: 'approve',
|
|
94
|
+
},
|
|
95
|
+
];
|
|
96
|
+
exports.operationalWorkItemFields = [
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Item ID',
|
|
99
|
+
name: 'item_id',
|
|
100
|
+
type: 'string',
|
|
101
|
+
required: true,
|
|
102
|
+
default: '',
|
|
103
|
+
displayOptions: {
|
|
104
|
+
show: {
|
|
105
|
+
resource: ['operationalWorkItem'],
|
|
106
|
+
operation: ["get", "update", "delete", "move", "approve", "reject", "reassign", "history"],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Process',
|
|
112
|
+
name: 'process',
|
|
113
|
+
type: 'string',
|
|
114
|
+
required: true,
|
|
115
|
+
default: '',
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
resource: ['operationalWorkItem'],
|
|
119
|
+
operation: ["create"],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
displayName: 'Name',
|
|
125
|
+
name: 'name',
|
|
126
|
+
type: 'string',
|
|
127
|
+
required: true,
|
|
128
|
+
default: '',
|
|
129
|
+
displayOptions: {
|
|
130
|
+
show: {
|
|
131
|
+
resource: ['operationalWorkItem'],
|
|
132
|
+
operation: ["create", "update"],
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
displayName: 'Description',
|
|
138
|
+
name: 'description',
|
|
139
|
+
type: 'string',
|
|
140
|
+
default: '',
|
|
141
|
+
displayOptions: {
|
|
142
|
+
show: {
|
|
143
|
+
resource: ['operationalWorkItem'],
|
|
144
|
+
operation: ["create", "update"],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
displayName: 'Customer',
|
|
150
|
+
name: 'customer',
|
|
151
|
+
type: 'string',
|
|
152
|
+
default: '',
|
|
153
|
+
displayOptions: {
|
|
154
|
+
show: {
|
|
155
|
+
resource: ['operationalWorkItem'],
|
|
156
|
+
operation: ["create", "update"],
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Priority',
|
|
162
|
+
name: 'priority',
|
|
163
|
+
type: 'options',
|
|
164
|
+
options: [
|
|
165
|
+
{ name: 'Critical', value: 'critical' },
|
|
166
|
+
{ name: 'High', value: 'high' },
|
|
167
|
+
{ name: 'Low', value: 'low' },
|
|
168
|
+
{ name: 'Normal', value: 'normal' },
|
|
169
|
+
],
|
|
170
|
+
default: 'critical',
|
|
171
|
+
displayOptions: {
|
|
172
|
+
show: {
|
|
173
|
+
resource: ['operationalWorkItem'],
|
|
174
|
+
operation: ["create", "update"],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'Due Date',
|
|
180
|
+
name: 'due_date',
|
|
181
|
+
type: 'string',
|
|
182
|
+
default: '',
|
|
183
|
+
displayOptions: {
|
|
184
|
+
show: {
|
|
185
|
+
resource: ['operationalWorkItem'],
|
|
186
|
+
operation: ["create", "update"],
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Owner Name or ID',
|
|
192
|
+
name: 'owner',
|
|
193
|
+
type: 'options',
|
|
194
|
+
typeOptions: {
|
|
195
|
+
loadOptionsMethod: 'getMembers',
|
|
196
|
+
},
|
|
197
|
+
default: '',
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
resource: ['operationalWorkItem'],
|
|
201
|
+
operation: ["update", "reassign"],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Target Stage',
|
|
208
|
+
name: 'target_stage',
|
|
209
|
+
type: 'string',
|
|
210
|
+
required: true,
|
|
211
|
+
default: '',
|
|
212
|
+
displayOptions: {
|
|
213
|
+
show: {
|
|
214
|
+
resource: ['operationalWorkItem'],
|
|
215
|
+
operation: ["move", "approve"],
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Notes',
|
|
221
|
+
name: 'notes',
|
|
222
|
+
type: 'string',
|
|
223
|
+
default: '',
|
|
224
|
+
displayOptions: {
|
|
225
|
+
show: {
|
|
226
|
+
resource: ['operationalWorkItem'],
|
|
227
|
+
operation: ["move", "approve"],
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
displayName: 'Reason',
|
|
233
|
+
name: 'reason',
|
|
234
|
+
type: 'string',
|
|
235
|
+
required: true,
|
|
236
|
+
default: '',
|
|
237
|
+
displayOptions: {
|
|
238
|
+
show: {
|
|
239
|
+
resource: ['operationalWorkItem'],
|
|
240
|
+
operation: ["reject"],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Process Name or ID',
|
|
246
|
+
name: 'process_id',
|
|
247
|
+
type: 'options',
|
|
248
|
+
required: true,
|
|
249
|
+
typeOptions: {
|
|
250
|
+
loadOptionsMethod: 'getProcesses',
|
|
251
|
+
},
|
|
252
|
+
default: '',
|
|
253
|
+
displayOptions: {
|
|
254
|
+
show: {
|
|
255
|
+
resource: ['operationalWorkItem'],
|
|
256
|
+
operation: ["stage_items"],
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
260
|
+
},
|
|
261
|
+
];
|