@blickwerk/n8n-nodes-microsoft-planner 1.3.9 → 1.5.5

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.
@@ -1,6 +1,9 @@
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
7
  exports.taskOperations = [
5
8
  {
6
9
  displayName: 'Operation',
@@ -53,6 +56,9 @@ exports.taskOperations = [
53
56
  default: 'create',
54
57
  },
55
58
  ];
59
+ // ----------------------------------
60
+ // Task fields
61
+ // ----------------------------------
56
62
  exports.taskFields = [
57
63
  // ----------------------------------
58
64
  // task:create
@@ -130,6 +136,14 @@ exports.taskFields = [
130
136
  },
131
137
  },
132
138
  options: [
139
+ {
140
+ displayName: 'Assigned To (User IDs)',
141
+ name: 'assignments',
142
+ type: 'string',
143
+ default: '',
144
+ placeholder: 'user1@domain.com, user2@domain.com',
145
+ description: 'Comma-separated list of user emails or IDs to assign the task to',
146
+ },
133
147
  {
134
148
  displayName: 'Description',
135
149
  name: 'description',
@@ -140,6 +154,20 @@ exports.taskFields = [
140
154
  default: '',
141
155
  description: 'Description of the task',
142
156
  },
157
+ {
158
+ displayName: 'Due Date Time',
159
+ name: 'dueDateTime',
160
+ type: 'dateTime',
161
+ default: '',
162
+ description: 'Due date and time for the task',
163
+ },
164
+ {
165
+ displayName: 'Percent Complete',
166
+ name: 'percentComplete',
167
+ type: 'number',
168
+ default: 0,
169
+ description: 'Percentage of task completion (0-100)',
170
+ },
143
171
  {
144
172
  displayName: 'Priority',
145
173
  name: 'priority',
@@ -165,21 +193,6 @@ exports.taskFields = [
165
193
  default: 5,
166
194
  description: 'Priority of the task',
167
195
  },
168
- {
169
- displayName: 'Assigned To (User IDs)',
170
- name: 'assignments',
171
- type: 'string',
172
- default: '',
173
- placeholder: 'user1@domain.com, user2@domain.com',
174
- description: 'Comma-separated list of user emails or IDs to assign the task to',
175
- },
176
- {
177
- displayName: 'Due Date Time',
178
- name: 'dueDateTime',
179
- type: 'dateTime',
180
- default: '',
181
- description: 'Due date and time for the task',
182
- },
183
196
  {
184
197
  displayName: 'Start Date Time',
185
198
  name: 'startDateTime',
@@ -188,17 +201,217 @@ exports.taskFields = [
188
201
  description: 'Start date and time for the task',
189
202
  },
190
203
  {
191
- displayName: 'Percent Complete',
192
- name: 'percentComplete',
193
- type: 'number',
194
- default: 0,
195
- description: 'Percentage of task completion (0-100)',
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',
196
411
  },
197
412
  ],
198
413
  },
199
414
  // ----------------------------------
200
- // task:get
201
- // ----------------------------------
202
415
  {
203
416
  displayName: 'Task',
204
417
  name: 'taskId',
@@ -246,37 +459,6 @@ exports.taskFields = [
246
459
  // ----------------------------------
247
460
  // task:getAll
248
461
  // ----------------------------------
249
- {
250
- displayName: 'Return All',
251
- name: 'returnAll',
252
- type: 'boolean',
253
- displayOptions: {
254
- show: {
255
- resource: ['task'],
256
- operation: ['getAll'],
257
- },
258
- },
259
- default: false,
260
- description: 'Whether to return all results or only up to a given limit',
261
- },
262
- {
263
- displayName: 'Limit',
264
- name: 'limit',
265
- type: 'number',
266
- displayOptions: {
267
- show: {
268
- resource: ['task'],
269
- operation: ['getAll'],
270
- returnAll: [false],
271
- },
272
- },
273
- typeOptions: {
274
- minValue: 1,
275
- maxValue: 500,
276
- },
277
- default: 100,
278
- description: 'Max number of results to return',
279
- },
280
462
  {
281
463
  displayName: 'Filter By',
282
464
  name: 'filterBy',
@@ -348,6 +530,28 @@ exports.taskFields = [
348
530
  },
349
531
  ],
350
532
  },
533
+ {
534
+ displayName: 'Additional Fields',
535
+ name: 'additionalFields',
536
+ type: 'collection',
537
+ placeholder: 'Add Field',
538
+ default: {},
539
+ displayOptions: {
540
+ show: {
541
+ resource: ['task'],
542
+ operation: ['getAll'],
543
+ },
544
+ },
545
+ options: [
546
+ {
547
+ displayName: 'Select Properties',
548
+ name: 'select',
549
+ type: 'string',
550
+ default: '',
551
+ description: 'Comma-separated list of properties to specify which fields to return (e.g. id,title,percentComplete)',
552
+ },
553
+ ],
554
+ },
351
555
  // ----------------------------------
352
556
  // task:update
353
557
  // ----------------------------------
@@ -365,11 +569,19 @@ exports.taskFields = [
365
569
  },
366
570
  options: [
367
571
  {
368
- displayName: 'Title',
369
- name: 'title',
572
+ displayName: 'Assigned To (User IDs)',
573
+ name: 'assignments',
370
574
  type: 'string',
371
575
  default: '',
372
- description: 'Title of the task',
576
+ placeholder: 'user1@domain.com, user2@domain.com',
577
+ description: 'Comma-separated list of user emails or IDs to assign the task to',
578
+ },
579
+ {
580
+ displayName: 'Bucket ID',
581
+ name: 'bucketId',
582
+ type: 'string',
583
+ default: '',
584
+ description: 'Move task to a different bucket',
373
585
  },
374
586
  {
375
587
  displayName: 'Description',
@@ -381,6 +593,20 @@ exports.taskFields = [
381
593
  default: '',
382
594
  description: 'Description of the task',
383
595
  },
596
+ {
597
+ displayName: 'Due Date Time',
598
+ name: 'dueDateTime',
599
+ type: 'dateTime',
600
+ default: '',
601
+ description: 'Due date and time for the task',
602
+ },
603
+ {
604
+ displayName: 'Percent Complete',
605
+ name: 'percentComplete',
606
+ type: 'number',
607
+ default: 0,
608
+ description: 'Percentage of task completion (0-100)',
609
+ },
384
610
  {
385
611
  displayName: 'Priority',
386
612
  name: 'priority',
@@ -406,21 +632,6 @@ exports.taskFields = [
406
632
  default: 5,
407
633
  description: 'Priority of the task',
408
634
  },
409
- {
410
- displayName: 'Assigned To (User IDs)',
411
- name: 'assignments',
412
- type: 'string',
413
- default: '',
414
- placeholder: 'user1@domain.com, user2@domain.com',
415
- description: 'Comma-separated list of user emails or IDs to assign the task to',
416
- },
417
- {
418
- displayName: 'Due Date Time',
419
- name: 'dueDateTime',
420
- type: 'dateTime',
421
- default: '',
422
- description: 'Due date and time for the task',
423
- },
424
635
  {
425
636
  displayName: 'Start Date Time',
426
637
  name: 'startDateTime',
@@ -429,18 +640,258 @@ exports.taskFields = [
429
640
  description: 'Start date and time for the task',
430
641
  },
431
642
  {
432
- displayName: 'Percent Complete',
433
- name: 'percentComplete',
434
- type: 'number',
435
- default: 0,
436
- description: 'Percentage of task completion (0-100)',
437
- },
438
- {
439
- displayName: 'Bucket ID',
440
- name: 'bucketId',
643
+ displayName: 'Title',
644
+ name: 'title',
441
645
  type: 'string',
442
646
  default: '',
443
- description: 'Move task to a different bucket',
647
+ description: 'Title of the task',
648
+ },
649
+ {
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',
780
+ },
781
+ {
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',
444
895
  },
445
896
  ],
446
897
  },