@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.
- package/LICENSE.md +21 -21
- package/README.md +459 -309
- package/dist/credentials/MicrosoftPlannerOAuth2Api.credentials.js +3 -2
- package/dist/nodes/MicrosoftPlanner/BucketDescription.d.ts +3 -0
- package/dist/nodes/MicrosoftPlanner/BucketDescription.js +173 -0
- package/dist/nodes/MicrosoftPlanner/CommentDescription.d.ts +3 -0
- package/dist/nodes/MicrosoftPlanner/CommentDescription.js +160 -0
- package/dist/nodes/MicrosoftPlanner/GenericFunctions.d.ts +18 -2
- package/dist/nodes/MicrosoftPlanner/GenericFunctions.js +74 -9
- package/dist/nodes/MicrosoftPlanner/MicrosoftPlanner.node.d.ts +3 -0
- package/dist/nodes/MicrosoftPlanner/MicrosoftPlanner.node.js +607 -42
- package/dist/nodes/MicrosoftPlanner/PlanDescription.d.ts +3 -0
- package/dist/nodes/MicrosoftPlanner/PlanDescription.js +285 -0
- package/dist/nodes/MicrosoftPlanner/TaskDescription.js +532 -81
- package/dist/nodes/MicrosoftPlanner/planner.svg +51 -13
- package/package.json +63 -58
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.planFields = exports.planOperations = void 0;
|
|
4
|
+
// ----------------------------------
|
|
5
|
+
// Plan operations
|
|
6
|
+
// ----------------------------------
|
|
7
|
+
exports.planOperations = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: {
|
|
15
|
+
resource: ['plan'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Create',
|
|
21
|
+
value: 'create',
|
|
22
|
+
description: 'Create a new plan',
|
|
23
|
+
action: 'Create a plan',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Get',
|
|
27
|
+
value: 'get',
|
|
28
|
+
description: 'Get a plan',
|
|
29
|
+
action: 'Get a plan',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Get Many',
|
|
33
|
+
value: 'getAll',
|
|
34
|
+
description: 'Get many plans',
|
|
35
|
+
action: 'Get many plans',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Update',
|
|
39
|
+
value: 'update',
|
|
40
|
+
description: 'Update a plan',
|
|
41
|
+
action: 'Update a plan',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Delete',
|
|
45
|
+
value: 'delete',
|
|
46
|
+
description: 'Delete a plan',
|
|
47
|
+
action: 'Delete a plan',
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
default: 'getAll',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
// ----------------------------------
|
|
54
|
+
// Plan fields
|
|
55
|
+
// ----------------------------------
|
|
56
|
+
exports.planFields = [
|
|
57
|
+
// ----------------------------------
|
|
58
|
+
// plan:create
|
|
59
|
+
// ----------------------------------
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Owner Group',
|
|
62
|
+
name: 'owner',
|
|
63
|
+
type: 'resourceLocator',
|
|
64
|
+
default: { mode: 'list', value: '' },
|
|
65
|
+
required: true,
|
|
66
|
+
displayOptions: {
|
|
67
|
+
show: {
|
|
68
|
+
resource: ['plan'],
|
|
69
|
+
operation: ['create'],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
modes: [
|
|
73
|
+
{
|
|
74
|
+
displayName: 'From List',
|
|
75
|
+
name: 'list',
|
|
76
|
+
type: 'list',
|
|
77
|
+
typeOptions: {
|
|
78
|
+
searchListMethod: 'getGroups',
|
|
79
|
+
searchable: true,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
displayName: 'By ID',
|
|
84
|
+
name: 'id',
|
|
85
|
+
type: 'string',
|
|
86
|
+
placeholder: 'e.g. 02bd9fd6-8f93-4758-87c3-1fb73740a315',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
description: 'The Microsoft 365 group that will own the plan',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Title',
|
|
93
|
+
name: 'title',
|
|
94
|
+
type: 'string',
|
|
95
|
+
required: true,
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['plan'],
|
|
99
|
+
operation: ['create'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
default: '',
|
|
103
|
+
description: 'Title of the plan',
|
|
104
|
+
},
|
|
105
|
+
// ----------------------------------
|
|
106
|
+
// plan:get
|
|
107
|
+
// ----------------------------------
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Plan ID',
|
|
110
|
+
name: 'planId',
|
|
111
|
+
type: 'string',
|
|
112
|
+
required: true,
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
resource: ['plan'],
|
|
116
|
+
operation: [
|
|
117
|
+
'get',
|
|
118
|
+
'update',
|
|
119
|
+
'delete',
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
default: '',
|
|
124
|
+
description: 'The ID of the plan',
|
|
125
|
+
placeholder: 'e.g. xqQg5FS2LkCp935s-FIFm2QAFkHM',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Additional Fields',
|
|
129
|
+
name: 'additionalFields',
|
|
130
|
+
type: 'collection',
|
|
131
|
+
placeholder: 'Add Field',
|
|
132
|
+
default: {},
|
|
133
|
+
displayOptions: {
|
|
134
|
+
show: {
|
|
135
|
+
resource: ['plan'],
|
|
136
|
+
operation: ['get'],
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
options: [
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Include Details',
|
|
142
|
+
name: 'includeDetails',
|
|
143
|
+
type: 'boolean',
|
|
144
|
+
default: false,
|
|
145
|
+
description: 'Whether to include plan details (labels, metadata, etc.)',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
// ----------------------------------
|
|
150
|
+
// plan:getAll
|
|
151
|
+
// ----------------------------------
|
|
152
|
+
{
|
|
153
|
+
displayName: 'Scope',
|
|
154
|
+
name: 'scope',
|
|
155
|
+
type: 'options',
|
|
156
|
+
displayOptions: {
|
|
157
|
+
show: {
|
|
158
|
+
resource: ['plan'],
|
|
159
|
+
operation: ['getAll'],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
options: [
|
|
163
|
+
{
|
|
164
|
+
name: 'My Plans',
|
|
165
|
+
value: 'my',
|
|
166
|
+
description: 'Plans the current user is a member of',
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'Group',
|
|
170
|
+
value: 'group',
|
|
171
|
+
description: 'Plans that belong to a specific Microsoft 365 group (owner)',
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
default: 'my',
|
|
175
|
+
description: 'Which set of plans to list',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Group ID',
|
|
179
|
+
name: 'groupId',
|
|
180
|
+
type: 'string',
|
|
181
|
+
displayOptions: {
|
|
182
|
+
show: {
|
|
183
|
+
resource: ['plan'],
|
|
184
|
+
operation: ['getAll'],
|
|
185
|
+
scope: ['group'],
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
default: '',
|
|
189
|
+
required: true,
|
|
190
|
+
description: 'The Microsoft 365 group ID whose plans to list (owner)',
|
|
191
|
+
placeholder: 'e.g. 6ff15978-94d4-414f-a497-295a245718bc',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
displayName: 'Additional Fields',
|
|
195
|
+
name: 'additionalFields',
|
|
196
|
+
type: 'collection',
|
|
197
|
+
placeholder: 'Add Field',
|
|
198
|
+
default: {},
|
|
199
|
+
displayOptions: {
|
|
200
|
+
show: {
|
|
201
|
+
resource: ['plan'],
|
|
202
|
+
operation: ['getAll'],
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
options: [
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Select Properties',
|
|
208
|
+
name: 'select',
|
|
209
|
+
type: 'string',
|
|
210
|
+
default: '',
|
|
211
|
+
description: 'Comma-separated list of properties to specify which fields to return (e.g. id,title)',
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
// ----------------------------------
|
|
216
|
+
// plan:update
|
|
217
|
+
// ----------------------------------
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Update Fields',
|
|
220
|
+
name: 'updateFields',
|
|
221
|
+
type: 'collection',
|
|
222
|
+
placeholder: 'Add Field',
|
|
223
|
+
default: {},
|
|
224
|
+
displayOptions: {
|
|
225
|
+
show: {
|
|
226
|
+
resource: ['plan'],
|
|
227
|
+
operation: ['update'],
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
options: [
|
|
231
|
+
{
|
|
232
|
+
displayName: 'Title',
|
|
233
|
+
name: 'title',
|
|
234
|
+
type: 'string',
|
|
235
|
+
default: '',
|
|
236
|
+
description: 'Title of the plan',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
displayName: 'Category Descriptions',
|
|
240
|
+
name: 'categoryDescriptions',
|
|
241
|
+
type: 'collection',
|
|
242
|
+
placeholder: 'Add Category',
|
|
243
|
+
default: {},
|
|
244
|
+
description: 'Labels for up to 25 categories on the plan',
|
|
245
|
+
options: [
|
|
246
|
+
{ displayName: 'Category 1', name: 'category1', type: 'string', default: '', description: 'Label for category1' },
|
|
247
|
+
{ displayName: 'Category 2', name: 'category2', type: 'string', default: '', description: 'Label for category2' },
|
|
248
|
+
{ displayName: 'Category 3', name: 'category3', type: 'string', default: '', description: 'Label for category3' },
|
|
249
|
+
{ displayName: 'Category 4', name: 'category4', type: 'string', default: '', description: 'Label for category4' },
|
|
250
|
+
{ displayName: 'Category 5', name: 'category5', type: 'string', default: '', description: 'Label for category5' },
|
|
251
|
+
{ displayName: 'Category 6', name: 'category6', type: 'string', default: '', description: 'Label for category6' },
|
|
252
|
+
{ displayName: 'Category 7', name: 'category7', type: 'string', default: '', description: 'Label for category7' },
|
|
253
|
+
{ displayName: 'Category 8', name: 'category8', type: 'string', default: '', description: 'Label for category8' },
|
|
254
|
+
{ displayName: 'Category 9', name: 'category9', type: 'string', default: '', description: 'Label for category9' },
|
|
255
|
+
{ displayName: 'Category 10', name: 'category10', type: 'string', default: '', description: 'Label for category10' },
|
|
256
|
+
{ displayName: 'Category 11', name: 'category11', type: 'string', default: '', description: 'Label for category11' },
|
|
257
|
+
{ displayName: 'Category 12', name: 'category12', type: 'string', default: '', description: 'Label for category12' },
|
|
258
|
+
{ displayName: 'Category 13', name: 'category13', type: 'string', default: '', description: 'Label for category13' },
|
|
259
|
+
{ displayName: 'Category 14', name: 'category14', type: 'string', default: '', description: 'Label for category14' },
|
|
260
|
+
{ displayName: 'Category 15', name: 'category15', type: 'string', default: '', description: 'Label for category15' },
|
|
261
|
+
{ displayName: 'Category 16', name: 'category16', type: 'string', default: '', description: 'Label for category16' },
|
|
262
|
+
{ displayName: 'Category 17', name: 'category17', type: 'string', default: '', description: 'Label for category17' },
|
|
263
|
+
{ displayName: 'Category 18', name: 'category18', type: 'string', default: '', description: 'Label for category18' },
|
|
264
|
+
{ displayName: 'Category 19', name: 'category19', type: 'string', default: '', description: 'Label for category19' },
|
|
265
|
+
{ displayName: 'Category 20', name: 'category20', type: 'string', default: '', description: 'Label for category20' },
|
|
266
|
+
{ displayName: 'Category 21', name: 'category21', type: 'string', default: '', description: 'Label for category21' },
|
|
267
|
+
{ displayName: 'Category 22', name: 'category22', type: 'string', default: '', description: 'Label for category22' },
|
|
268
|
+
{ displayName: 'Category 23', name: 'category23', type: 'string', default: '', description: 'Label for category23' },
|
|
269
|
+
{ displayName: 'Category 24', name: 'category24', type: 'string', default: '', description: 'Label for category24' },
|
|
270
|
+
{ displayName: 'Category 25', name: 'category25', type: 'string', default: '', description: 'Label for category25' },
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
displayName: 'Shared With (plannerUserIds JSON)',
|
|
275
|
+
name: 'sharedWithJson',
|
|
276
|
+
type: 'string',
|
|
277
|
+
typeOptions: {
|
|
278
|
+
rows: 5,
|
|
279
|
+
},
|
|
280
|
+
default: '',
|
|
281
|
+
description: 'JSON object mapping user IDs to booleans (e.g. {"6463a5ce-...": true})',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
];
|