@blickwerk/n8n-nodes-microsoft-planner 1.5.5 → 1.6.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.
Files changed (40) hide show
  1. package/LICENSE.md +21 -21
  2. package/README.md +527 -459
  3. package/dist/credentials/MicrosoftPlannerOAuth2Api.credentials.d.ts +2 -2
  4. package/dist/credentials/MicrosoftPlannerOAuth2Api.credentials.js +9 -28
  5. package/dist/credentials/MicrosoftPlannerOAuth2Api.credentials.js.map +1 -0
  6. package/dist/nodes/MicrosoftPlanner/BucketDescription.js +30 -23
  7. package/dist/nodes/MicrosoftPlanner/BucketDescription.js.map +1 -0
  8. package/dist/nodes/MicrosoftPlanner/CommentDescription.js +10 -14
  9. package/dist/nodes/MicrosoftPlanner/CommentDescription.js.map +1 -0
  10. package/dist/nodes/MicrosoftPlanner/GenericFunctions.d.ts +15 -18
  11. package/dist/nodes/MicrosoftPlanner/GenericFunctions.js +222 -70
  12. package/dist/nodes/MicrosoftPlanner/GenericFunctions.js.map +1 -0
  13. package/dist/nodes/MicrosoftPlanner/MicrosoftPlanner.node.d.ts +6 -10
  14. package/dist/nodes/MicrosoftPlanner/MicrosoftPlanner.node.js +100 -826
  15. package/dist/nodes/MicrosoftPlanner/MicrosoftPlanner.node.js.map +1 -0
  16. package/dist/nodes/MicrosoftPlanner/MicrosoftPlanner.node.json +18 -0
  17. package/dist/nodes/MicrosoftPlanner/PlanDescription.js +207 -57
  18. package/dist/nodes/MicrosoftPlanner/PlanDescription.js.map +1 -0
  19. package/dist/nodes/MicrosoftPlanner/SharedFields.d.ts +10 -0
  20. package/dist/nodes/MicrosoftPlanner/SharedFields.js +316 -0
  21. package/dist/nodes/MicrosoftPlanner/SharedFields.js.map +1 -0
  22. package/dist/nodes/MicrosoftPlanner/TaskDescription.d.ts +1 -1
  23. package/dist/nodes/MicrosoftPlanner/TaskDescription.js +226 -583
  24. package/dist/nodes/MicrosoftPlanner/TaskDescription.js.map +1 -0
  25. package/dist/nodes/MicrosoftPlanner/actions/bucket.d.ts +2 -0
  26. package/dist/nodes/MicrosoftPlanner/actions/bucket.js +72 -0
  27. package/dist/nodes/MicrosoftPlanner/actions/bucket.js.map +1 -0
  28. package/dist/nodes/MicrosoftPlanner/actions/comment.d.ts +2 -0
  29. package/dist/nodes/MicrosoftPlanner/actions/comment.js +100 -0
  30. package/dist/nodes/MicrosoftPlanner/actions/comment.js.map +1 -0
  31. package/dist/nodes/MicrosoftPlanner/actions/plan.d.ts +4 -0
  32. package/dist/nodes/MicrosoftPlanner/actions/plan.js +116 -0
  33. package/dist/nodes/MicrosoftPlanner/actions/plan.js.map +1 -0
  34. package/dist/nodes/MicrosoftPlanner/actions/task.d.ts +4 -0
  35. package/dist/nodes/MicrosoftPlanner/actions/task.js +392 -0
  36. package/dist/nodes/MicrosoftPlanner/actions/task.js.map +1 -0
  37. package/dist/nodes/MicrosoftPlanner/planner.svg +51 -51
  38. package/dist/package.json +60 -0
  39. package/dist/tsconfig.tsbuildinfo +1 -0
  40. package/package.json +60 -63
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.taskFields = exports.taskOperations = void 0;
4
- // ----------------------------------
5
- // Task operations
6
- // ----------------------------------
4
+ const SharedFields_1 = require("./SharedFields");
7
5
  exports.taskOperations = [
8
6
  {
9
7
  displayName: 'Operation',
@@ -22,16 +20,34 @@ exports.taskOperations = [
22
20
  description: 'Create a new task',
23
21
  action: 'Create a task',
24
22
  },
23
+ {
24
+ name: 'Delete',
25
+ value: 'delete',
26
+ description: 'Delete a task',
27
+ action: 'Delete a task',
28
+ },
25
29
  {
26
30
  name: 'Get',
27
31
  value: 'get',
28
32
  description: 'Get a task',
29
33
  action: 'Get a task',
30
34
  },
35
+ {
36
+ name: 'Get Board Format',
37
+ value: 'getBoardFormat',
38
+ description: 'Get the ordering of a task in one of the board views',
39
+ action: 'Get the board format of a task',
40
+ },
41
+ {
42
+ name: 'Get Files',
43
+ value: 'getFiles',
44
+ description: 'Get files attached to a task',
45
+ action: 'Get files from a task',
46
+ },
31
47
  {
32
48
  name: 'Get Many',
33
49
  value: 'getAll',
34
- description: 'Get many tasks',
50
+ description: 'Get many tasks of a plan, a bucket, the current user or another user',
35
51
  action: 'Get many tasks',
36
52
  },
37
53
  {
@@ -41,28 +57,38 @@ exports.taskOperations = [
41
57
  action: 'Update a task',
42
58
  },
43
59
  {
44
- name: 'Delete',
45
- value: 'delete',
46
- description: 'Delete a task',
47
- action: 'Delete a task',
48
- },
49
- {
50
- name: 'Get Files',
51
- value: 'getFiles',
52
- description: 'Get files attached to a task',
53
- action: 'Get files from a task',
60
+ name: 'Update Board Format',
61
+ value: 'updateBoardFormat',
62
+ description: 'Change the ordering of a task in one of the board views',
63
+ action: 'Update the board format of a task',
54
64
  },
55
65
  ],
56
66
  default: 'create',
57
67
  },
58
68
  ];
59
- // ----------------------------------
60
- // Task fields
61
- // ----------------------------------
69
+ const taskIdField = {
70
+ displayName: 'Task',
71
+ name: 'taskId',
72
+ type: 'resourceLocator',
73
+ default: { mode: 'id', value: '' },
74
+ required: true,
75
+ displayOptions: {
76
+ show: {
77
+ resource: ['task'],
78
+ operation: ['get', 'delete', 'update', 'getFiles', 'getBoardFormat', 'updateBoardFormat'],
79
+ },
80
+ },
81
+ modes: [
82
+ {
83
+ displayName: 'By ID',
84
+ name: 'id',
85
+ type: 'string',
86
+ placeholder: 'e.g. rz1EH6N_a0aLpRm-2QifxZgAF5OL',
87
+ },
88
+ ],
89
+ description: 'The task to operate on',
90
+ };
62
91
  exports.taskFields = [
63
- // ----------------------------------
64
- // task:create
65
- // ----------------------------------
66
92
  {
67
93
  displayName: 'Plan ID',
68
94
  name: 'planId',
@@ -76,7 +102,7 @@ exports.taskFields = [
76
102
  },
77
103
  default: '',
78
104
  description: 'The ID of the plan to which the task belongs',
79
- placeholder: 'Enter Plan ID',
105
+ placeholder: 'e.g. xqQg5FS2LkCp935s-FIFm2QAFkHM',
80
106
  },
81
107
  {
82
108
  displayName: 'Bucket',
@@ -136,6 +162,7 @@ exports.taskFields = [
136
162
  },
137
163
  },
138
164
  options: [
165
+ SharedFields_1.assigneePriorityField,
139
166
  {
140
167
  displayName: 'Assigned To (User IDs)',
141
168
  name: 'assignments',
@@ -144,6 +171,9 @@ exports.taskFields = [
144
171
  placeholder: 'user1@domain.com, user2@domain.com',
145
172
  description: 'Comma-separated list of user emails or IDs to assign the task to',
146
173
  },
174
+ (0, SharedFields_1.attachmentsField)(false),
175
+ (0, SharedFields_1.checklistField)(false),
176
+ SharedFields_1.conversationThreadIdField,
147
177
  {
148
178
  displayName: 'Description',
149
179
  name: 'description',
@@ -161,38 +191,11 @@ exports.taskFields = [
161
191
  default: '',
162
192
  description: 'Due date and time for the task',
163
193
  },
164
- {
165
- displayName: 'Percent Complete',
166
- name: 'percentComplete',
167
- type: 'number',
168
- default: 0,
169
- description: 'Percentage of task completion (0-100)',
170
- },
171
- {
172
- displayName: 'Priority',
173
- name: 'priority',
174
- type: 'options',
175
- options: [
176
- {
177
- name: 'Urgent',
178
- value: 1,
179
- },
180
- {
181
- name: 'Important',
182
- value: 3,
183
- },
184
- {
185
- name: 'Medium',
186
- value: 5,
187
- },
188
- {
189
- name: 'Low',
190
- value: 9,
191
- },
192
- ],
193
- default: 5,
194
- description: 'Priority of the task',
195
- },
194
+ (0, SharedFields_1.labelsField)('Label Names or IDs', 'appliedCategories'),
195
+ SharedFields_1.orderHintField,
196
+ SharedFields_1.percentCompleteField,
197
+ SharedFields_1.previewTypeField,
198
+ SharedFields_1.priorityField,
196
199
  {
197
200
  displayName: 'Start Date Time',
198
201
  name: 'startDateTime',
@@ -200,240 +203,9 @@ exports.taskFields = [
200
203
  default: '',
201
204
  description: 'Start date and time for the task',
202
205
  },
203
- {
204
- displayName: 'Attachments',
205
- name: 'attachmentsUi',
206
- placeholder: 'Add Attachments',
207
- type: 'fixedCollection',
208
- typeOptions: {
209
- multipleValues: false,
210
- },
211
- default: {
212
- attachments: {},
213
- },
214
- options: [
215
- {
216
- displayName: 'Attachments',
217
- name: 'attachments',
218
- values: [
219
- {
220
- displayName: 'Input Mode',
221
- name: 'mode',
222
- type: 'options',
223
- options: [
224
- {
225
- name: 'Manual',
226
- value: 'manual',
227
- },
228
- {
229
- name: 'JSON',
230
- value: 'json',
231
- },
232
- ],
233
- default: 'manual',
234
- description: 'Choose how to provide attachments',
235
- },
236
- {
237
- displayName: 'Items',
238
- name: 'items',
239
- type: 'fixedCollection',
240
- default: {},
241
- placeholder: 'Add Attachment',
242
- displayOptions: {
243
- show: {
244
- mode: ['manual'],
245
- },
246
- },
247
- typeOptions: {
248
- multipleValues: true,
249
- },
250
- options: [
251
- {
252
- name: 'reference',
253
- displayName: 'Attachment',
254
- values: [
255
- {
256
- displayName: 'URL',
257
- name: 'url',
258
- type: 'string',
259
- default: '',
260
- required: true,
261
- description: 'The URL of the attachment',
262
- },
263
- {
264
- displayName: 'Alias',
265
- name: 'alias',
266
- type: 'string',
267
- default: '',
268
- description: 'A friendly name for the attachment',
269
- },
270
- {
271
- displayName: 'Type',
272
- name: 'type',
273
- type: 'options',
274
- options: [
275
- {
276
- name: 'Excel',
277
- value: 'Excel',
278
- },
279
- {
280
- name: 'Other',
281
- value: 'Other',
282
- },
283
- {
284
- name: 'PowerPoint',
285
- value: 'PowerPoint',
286
- },
287
- {
288
- name: 'Word',
289
- value: 'Word',
290
- },
291
- ],
292
- default: 'Other',
293
- },
294
- ],
295
- },
296
- ],
297
- },
298
- {
299
- displayName: 'JSON',
300
- name: 'json',
301
- type: 'string',
302
- default: '',
303
- placeholder: '[{"url": "https://example.com", "alias": "Example", "type": "Other"}]',
304
- displayOptions: {
305
- show: {
306
- mode: ['json'],
307
- },
308
- },
309
- description: 'Add attachments as a JSON array of objects with url, alias (optional), and type (optional) keys',
310
- },
311
- ],
312
- },
313
- ],
314
- description: 'Add attachments to the task',
315
- },
316
- {
317
- displayName: 'Checklist',
318
- name: 'checklistUi',
319
- placeholder: 'Add Checklist',
320
- type: 'fixedCollection',
321
- typeOptions: {
322
- multipleValues: false,
323
- },
324
- default: {
325
- checklist: {},
326
- },
327
- options: [
328
- {
329
- displayName: 'Checklist',
330
- name: 'checklist',
331
- values: [
332
- {
333
- displayName: 'Input Mode',
334
- name: 'mode',
335
- type: 'options',
336
- options: [
337
- {
338
- name: 'Manual',
339
- value: 'manual',
340
- },
341
- {
342
- name: 'JSON',
343
- value: 'json',
344
- },
345
- ],
346
- default: 'manual',
347
- description: 'Choose how to provide checklist items',
348
- },
349
- {
350
- displayName: 'Items',
351
- name: 'items',
352
- type: 'fixedCollection',
353
- default: {},
354
- placeholder: 'Add Checklist Item',
355
- displayOptions: {
356
- show: {
357
- mode: ['manual'],
358
- },
359
- },
360
- typeOptions: {
361
- multipleValues: true,
362
- },
363
- options: [
364
- {
365
- name: 'item',
366
- displayName: 'Checklist Item',
367
- values: [
368
- {
369
- displayName: 'ID',
370
- name: 'id',
371
- type: 'string',
372
- default: '',
373
- description: 'ID of the checklist item. Leave empty to generate a new ID.',
374
- },
375
- {
376
- displayName: 'Title',
377
- name: 'title',
378
- type: 'string',
379
- default: '',
380
- required: true,
381
- description: 'The title of the checklist item',
382
- },
383
- {
384
- displayName: 'Is Checked',
385
- name: 'isChecked',
386
- type: 'boolean',
387
- default: false,
388
- description: 'Whether the item is checked',
389
- },
390
- ],
391
- },
392
- ],
393
- },
394
- {
395
- displayName: 'JSON',
396
- name: 'json',
397
- type: 'string',
398
- default: '',
399
- placeholder: '[{"title": "My Item", "isChecked": false}]',
400
- displayOptions: {
401
- show: {
402
- mode: ['json'],
403
- },
404
- },
405
- description: 'Add checklist items as a JSON array of objects with title and isChecked (optional) keys',
406
- },
407
- ],
408
- },
409
- ],
410
- description: 'Add checklist items to the task',
411
- },
412
206
  ],
413
207
  },
414
- // ----------------------------------
415
- {
416
- displayName: 'Task',
417
- name: 'taskId',
418
- type: 'resourceLocator',
419
- default: { mode: 'id', value: '' },
420
- required: true,
421
- displayOptions: {
422
- show: {
423
- resource: ['task'],
424
- operation: ['get', 'delete', 'update'],
425
- },
426
- },
427
- modes: [
428
- {
429
- displayName: 'By ID',
430
- name: 'id',
431
- type: 'string',
432
- placeholder: 'e.g. rz1EH6N_a0aLpRm-2QifxZgAF5OL',
433
- },
434
- ],
435
- description: 'The task to operate on',
436
- },
208
+ taskIdField,
437
209
  {
438
210
  displayName: 'Additional Fields',
439
211
  name: 'additionalFields',
@@ -452,13 +224,10 @@ exports.taskFields = [
452
224
  name: 'includeDetails',
453
225
  type: 'boolean',
454
226
  default: false,
455
- description: 'Whether to include task details (description, checklist, etc.)',
227
+ description: 'Whether to include task details (description, checklist, attachments, etc.)',
456
228
  },
457
229
  ],
458
230
  },
459
- // ----------------------------------
460
- // task:getAll
461
- // ----------------------------------
462
231
  {
463
232
  displayName: 'Filter By',
464
233
  name: 'filterBy',
@@ -473,14 +242,26 @@ exports.taskFields = [
473
242
  {
474
243
  name: 'Plan',
475
244
  value: 'plan',
245
+ description: 'All tasks of a plan',
476
246
  },
477
247
  {
478
248
  name: 'Bucket',
479
249
  value: 'bucket',
250
+ description: 'All tasks of a bucket',
251
+ },
252
+ {
253
+ name: 'My Tasks',
254
+ value: 'my',
255
+ description: 'Tasks assigned to the authenticated user',
256
+ },
257
+ {
258
+ name: 'User',
259
+ value: 'user',
260
+ description: 'Tasks assigned to a specific user',
480
261
  },
481
262
  ],
482
263
  default: 'plan',
483
- description: 'Choose whether to filter by Plan or Bucket',
264
+ description: 'Which set of tasks to return',
484
265
  },
485
266
  {
486
267
  displayName: 'Plan ID',
@@ -496,7 +277,7 @@ exports.taskFields = [
496
277
  default: '',
497
278
  required: true,
498
279
  description: 'The Plan ID to filter tasks',
499
- placeholder: 'Enter Plan ID',
280
+ placeholder: 'e.g. xqQg5FS2LkCp935s-FIFm2QAFkHM',
500
281
  },
501
282
  {
502
283
  displayName: 'Bucket',
@@ -530,6 +311,22 @@ exports.taskFields = [
530
311
  },
531
312
  ],
532
313
  },
314
+ {
315
+ displayName: 'User',
316
+ name: 'userId',
317
+ type: 'string',
318
+ displayOptions: {
319
+ show: {
320
+ resource: ['task'],
321
+ operation: ['getAll'],
322
+ filterBy: ['user'],
323
+ },
324
+ },
325
+ default: '',
326
+ required: true,
327
+ placeholder: 'user@domain.com',
328
+ description: 'Email address, user principal name or ID of the user',
329
+ },
533
330
  {
534
331
  displayName: 'Additional Fields',
535
332
  name: 'additionalFields',
@@ -543,18 +340,29 @@ exports.taskFields = [
543
340
  },
544
341
  },
545
342
  options: [
343
+ {
344
+ displayName: 'Exclude Completed Tasks',
345
+ name: 'excludeCompleted',
346
+ type: 'boolean',
347
+ default: false,
348
+ description: 'Whether to leave out tasks that are 100% complete',
349
+ },
350
+ {
351
+ displayName: 'Include Details',
352
+ name: 'includeDetails',
353
+ type: 'boolean',
354
+ default: false,
355
+ description: 'Whether to include task details (description, checklist, attachments) for every task',
356
+ },
546
357
  {
547
358
  displayName: 'Select Properties',
548
359
  name: 'select',
549
360
  type: 'string',
550
361
  default: '',
551
- description: 'Comma-separated list of properties to specify which fields to return (e.g. id,title,percentComplete)',
362
+ description: 'Comma-separated list of properties to specify which fields to return (e.g. title,percentComplete). The ID is always returned.',
552
363
  },
553
364
  ],
554
365
  },
555
- // ----------------------------------
556
- // task:update
557
- // ----------------------------------
558
366
  {
559
367
  displayName: 'Update Fields',
560
368
  name: 'updateFields',
@@ -568,6 +376,7 @@ exports.taskFields = [
568
376
  },
569
377
  },
570
378
  options: [
379
+ SharedFields_1.assigneePriorityField,
571
380
  {
572
381
  displayName: 'Assigned To (User IDs)',
573
382
  name: 'assignments',
@@ -576,6 +385,26 @@ exports.taskFields = [
576
385
  placeholder: 'user1@domain.com, user2@domain.com',
577
386
  description: 'Comma-separated list of user emails or IDs to assign the task to',
578
387
  },
388
+ {
389
+ displayName: 'Assignment Mode',
390
+ name: 'assignmentsMode',
391
+ type: 'options',
392
+ options: [
393
+ {
394
+ name: 'Append',
395
+ value: 'append',
396
+ description: 'Add the given users to the existing assignees',
397
+ },
398
+ {
399
+ name: 'Replace',
400
+ value: 'replace',
401
+ description: 'The given users become the only assignees',
402
+ },
403
+ ],
404
+ default: 'append',
405
+ description: 'How "Assigned To" is applied to the existing assignees',
406
+ },
407
+ (0, SharedFields_1.attachmentsField)(true),
579
408
  {
580
409
  displayName: 'Bucket ID',
581
410
  name: 'bucketId',
@@ -583,6 +412,8 @@ exports.taskFields = [
583
412
  default: '',
584
413
  description: 'Move task to a different bucket',
585
414
  },
415
+ (0, SharedFields_1.checklistField)(true),
416
+ SharedFields_1.conversationThreadIdField,
586
417
  {
587
418
  displayName: 'Description',
588
419
  name: 'description',
@@ -591,7 +422,7 @@ exports.taskFields = [
591
422
  rows: 5,
592
423
  },
593
424
  default: '',
594
- description: 'Description of the task',
425
+ description: 'Description of the task. Leave empty to clear the description.',
595
426
  },
596
427
  {
597
428
  displayName: 'Due Date Time',
@@ -600,37 +431,47 @@ exports.taskFields = [
600
431
  default: '',
601
432
  description: 'Due date and time for the task',
602
433
  },
434
+ (0, SharedFields_1.labelsField)('Label Names or IDs to Add', 'labelsToAdd'),
435
+ (0, SharedFields_1.labelsField)('Label Names or IDs to Remove', 'labelsToRemove'),
436
+ SharedFields_1.orderHintField,
437
+ SharedFields_1.percentCompleteField,
438
+ SharedFields_1.previewTypeField,
439
+ SharedFields_1.priorityField,
603
440
  {
604
- displayName: 'Percent Complete',
605
- name: 'percentComplete',
606
- type: 'number',
607
- default: 0,
608
- description: 'Percentage of task completion (0-100)',
441
+ displayName: 'Remove Assignees',
442
+ name: 'removeAssignments',
443
+ type: 'string',
444
+ default: '',
445
+ placeholder: 'user1@domain.com, user2@domain.com',
446
+ description: 'Comma-separated list of user emails or IDs to unassign from the task',
609
447
  },
610
448
  {
611
- displayName: 'Priority',
612
- name: 'priority',
613
- type: 'options',
614
- options: [
615
- {
616
- name: 'Urgent',
617
- value: 0,
618
- },
619
- {
620
- name: 'Important',
621
- value: 1,
622
- },
623
- {
624
- name: 'Medium',
625
- value: 5,
626
- },
627
- {
628
- name: 'Low',
629
- value: 9,
630
- },
631
- ],
632
- default: 5,
633
- description: 'Priority of the task',
449
+ displayName: 'Remove Attachments (URLs)',
450
+ name: 'removeAttachmentUrls',
451
+ type: 'string',
452
+ default: '',
453
+ description: 'Comma-separated list of attachment URLs to remove from the task',
454
+ },
455
+ {
456
+ displayName: 'Remove Checklist Items (IDs)',
457
+ name: 'removeChecklistItemIds',
458
+ type: 'string',
459
+ default: '',
460
+ description: 'Comma-separated list of checklist item IDs to remove from the task',
461
+ },
462
+ {
463
+ displayName: 'Remove Due Date',
464
+ name: 'clearDueDateTime',
465
+ type: 'boolean',
466
+ default: false,
467
+ description: 'Whether to remove the due date of the task',
468
+ },
469
+ {
470
+ displayName: 'Remove Start Date',
471
+ name: 'clearStartDateTime',
472
+ type: 'boolean',
473
+ default: false,
474
+ description: 'Whether to remove the start date of the task',
634
475
  },
635
476
  {
636
477
  displayName: 'Start Date Time',
@@ -646,278 +487,80 @@ exports.taskFields = [
646
487
  default: '',
647
488
  description: 'Title of the task',
648
489
  },
490
+ ],
491
+ },
492
+ {
493
+ displayName: 'Board View',
494
+ name: 'boardFormatType',
495
+ type: 'options',
496
+ displayOptions: {
497
+ show: {
498
+ resource: ['task'],
499
+ operation: ['getBoardFormat', 'updateBoardFormat'],
500
+ },
501
+ },
502
+ options: [
649
503
  {
650
- displayName: 'Attachments',
651
- name: 'attachmentsUi',
652
- placeholder: 'Add Attachments',
653
- type: 'fixedCollection',
654
- typeOptions: {
655
- multipleValues: false,
656
- },
657
- default: {
658
- attachments: {},
659
- },
660
- options: [
661
- {
662
- displayName: 'Attachments',
663
- name: 'attachments',
664
- values: [
665
- {
666
- displayName: 'Input Mode',
667
- name: 'mode',
668
- type: 'options',
669
- options: [
670
- {
671
- name: 'Manual',
672
- value: 'manual',
673
- },
674
- {
675
- name: 'JSON',
676
- value: 'json',
677
- },
678
- ],
679
- default: 'manual',
680
- description: 'Choose how to provide attachments',
681
- },
682
- {
683
- displayName: 'Items',
684
- name: 'items',
685
- type: 'fixedCollection',
686
- default: {},
687
- placeholder: 'Add Attachment',
688
- displayOptions: {
689
- show: {
690
- mode: ['manual'],
691
- },
692
- },
693
- typeOptions: {
694
- multipleValues: true,
695
- },
696
- options: [
697
- {
698
- name: 'reference',
699
- displayName: 'Attachment',
700
- values: [
701
- {
702
- displayName: 'URL',
703
- name: 'url',
704
- type: 'string',
705
- default: '',
706
- required: true,
707
- description: 'The URL of the attachment',
708
- },
709
- {
710
- displayName: 'Alias',
711
- name: 'alias',
712
- type: 'string',
713
- default: '',
714
- description: 'A friendly name for the attachment',
715
- },
716
- {
717
- displayName: 'Type',
718
- name: 'type',
719
- type: 'options',
720
- options: [
721
- {
722
- name: 'Excel',
723
- value: 'Excel',
724
- },
725
- {
726
- name: 'Other',
727
- value: 'Other',
728
- },
729
- {
730
- name: 'PowerPoint',
731
- value: 'PowerPoint',
732
- },
733
- {
734
- name: 'Word',
735
- value: 'Word',
736
- },
737
- ],
738
- default: 'Other',
739
- },
740
- ],
741
- },
742
- ],
743
- },
744
- {
745
- displayName: 'JSON',
746
- name: 'json',
747
- type: 'string',
748
- default: '',
749
- placeholder: '[{"url": "https://example.com", "alias": "Example", "type": "Other"}]',
750
- displayOptions: {
751
- show: {
752
- mode: ['json'],
753
- },
754
- },
755
- description: 'Add attachments as a JSON array of objects with url, alias (optional), and type (optional) keys',
756
- },
757
- {
758
- displayName: 'Operation Mode',
759
- name: 'operationMode',
760
- type: 'options',
761
- options: [
762
- {
763
- name: 'Append',
764
- value: 'append',
765
- description: 'Appends the new given attachment items to the existing ones, potentially updating existing ones with matching ids',
766
- },
767
- {
768
- name: 'Replace',
769
- value: 'replace',
770
- description: 'Sets the given attachment items and replaces potentially existing ones',
771
- },
772
- ],
773
- default: 'append',
774
- description: 'Choose how to update the attachments',
775
- },
776
- ],
777
- },
778
- ],
779
- description: 'Add attachments to the task',
504
+ name: 'Assigned To',
505
+ value: 'assignedToTaskBoardFormat',
506
+ description: 'Board grouped by assignee',
780
507
  },
781
508
  {
782
- displayName: 'Checklist',
783
- name: 'checklistUi',
784
- placeholder: 'Add Checklist',
785
- type: 'fixedCollection',
786
- typeOptions: {
787
- multipleValues: false,
788
- },
789
- default: {
790
- checklist: {},
791
- },
792
- options: [
793
- {
794
- displayName: 'Checklist',
795
- name: 'checklist',
796
- values: [
797
- {
798
- displayName: 'Input Mode',
799
- name: 'mode',
800
- type: 'options',
801
- options: [
802
- {
803
- name: 'Manual',
804
- value: 'manual',
805
- },
806
- {
807
- name: 'JSON',
808
- value: 'json',
809
- },
810
- ],
811
- default: 'manual',
812
- description: 'Choose how to provide checklist items',
813
- },
814
- {
815
- displayName: 'Items',
816
- name: 'items',
817
- type: 'fixedCollection',
818
- default: {},
819
- placeholder: 'Add Checklist Item',
820
- displayOptions: {
821
- show: {
822
- mode: ['manual'],
823
- },
824
- },
825
- typeOptions: {
826
- multipleValues: true,
827
- },
828
- options: [
829
- {
830
- name: 'item',
831
- displayName: 'Checklist Item',
832
- values: [
833
- {
834
- displayName: 'ID',
835
- name: 'id',
836
- type: 'string',
837
- default: '',
838
- description: 'ID of the checklist item. Leave empty to generate a new ID.',
839
- },
840
- {
841
- displayName: 'Title',
842
- name: 'title',
843
- type: 'string',
844
- default: '',
845
- required: true,
846
- description: 'The title of the checklist item',
847
- },
848
- {
849
- displayName: 'Is Checked',
850
- name: 'isChecked',
851
- type: 'boolean',
852
- default: false,
853
- description: 'Whether the item is checked',
854
- },
855
- ],
856
- },
857
- ],
858
- },
859
- {
860
- displayName: 'JSON',
861
- name: 'json',
862
- type: 'string',
863
- default: '',
864
- placeholder: '[{"title": "My Item", "isChecked": false}]',
865
- displayOptions: {
866
- show: {
867
- mode: ['json'],
868
- },
869
- },
870
- description: 'Add checklist items as a JSON array of objects with title and isChecked (optional) keys',
871
- },
872
- {
873
- displayName: 'Operation Mode',
874
- name: 'operationMode',
875
- type: 'options',
876
- options: [
877
- {
878
- name: 'Append',
879
- value: 'append',
880
- description: 'Appends the new given checklist items to the existing ones, potentially updating existing ones with matching ids',
881
- },
882
- {
883
- name: 'Replace',
884
- value: 'replace',
885
- description: 'Sets the given checklist items and replaces potentially existing ones',
886
- },
887
- ],
888
- default: 'append',
889
- description: 'Choose how to update the checklist',
890
- },
891
- ],
892
- },
893
- ],
894
- description: 'Add checklist items to the task',
509
+ name: 'Bucket',
510
+ value: 'bucketTaskBoardFormat',
511
+ description: 'Board grouped by bucket',
512
+ },
513
+ {
514
+ name: 'Progress',
515
+ value: 'progressTaskBoardFormat',
516
+ description: 'Board grouped by progress',
895
517
  },
896
518
  ],
519
+ default: 'bucketTaskBoardFormat',
520
+ description: 'The board view whose task ordering should be used',
897
521
  },
898
- // ----------------------------------
899
- // task:getFiles
900
- // ----------------------------------
901
522
  {
902
- displayName: 'Task',
903
- name: 'taskId',
904
- type: 'resourceLocator',
905
- default: { mode: 'id', value: '' },
523
+ displayName: 'Order Hint',
524
+ name: 'boardOrderHint',
525
+ type: 'string',
526
+ displayOptions: {
527
+ show: {
528
+ resource: ['task'],
529
+ operation: ['updateBoardFormat'],
530
+ boardFormatType: ['bucketTaskBoardFormat', 'progressTaskBoardFormat'],
531
+ },
532
+ },
533
+ default: '',
906
534
  required: true,
535
+ description: 'Order hint for the task in this board view (e.g. " !" to move it to the top)',
536
+ },
537
+ {
538
+ displayName: 'Unassigned Order Hint',
539
+ name: 'unassignedOrderHint',
540
+ type: 'string',
907
541
  displayOptions: {
908
542
  show: {
909
543
  resource: ['task'],
910
- operation: ['getFiles'],
544
+ operation: ['updateBoardFormat'],
545
+ boardFormatType: ['assignedToTaskBoardFormat'],
911
546
  },
912
547
  },
913
- modes: [
914
- {
915
- displayName: 'By ID',
916
- name: 'id',
917
- type: 'string',
918
- placeholder: 'e.g. rz1EH6N_a0aLpRm-2QifxZgAF5OL',
548
+ default: '',
549
+ description: 'Order hint for the task in the "Unassigned" column',
550
+ },
551
+ {
552
+ displayName: 'Order Hints by Assignee (JSON)',
553
+ name: 'orderHintsByAssignee',
554
+ type: 'json',
555
+ displayOptions: {
556
+ show: {
557
+ resource: ['task'],
558
+ operation: ['updateBoardFormat'],
559
+ boardFormatType: ['assignedToTaskBoardFormat'],
919
560
  },
920
- ],
921
- description: 'The Task ID to get files from',
561
+ },
562
+ default: '{}',
563
+ description: 'JSON object mapping user IDs to order hints (e.g. {"6463a5ce-2119-4198-9f2a-628761df4a62": " !"})',
922
564
  },
923
565
  ];
566
+ //# sourceMappingURL=TaskDescription.js.map