@joshuanode/n8n-nodes-scalepad 0.0.4 → 0.0.6
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/README.md +73 -131
- package/dist/nodes/ScalePadCore/ScalePadCore.node.js +798 -11
- package/dist/nodes/ScalePadCore/descriptions/ActionItemDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/ActionItemDescription.js +306 -0
- package/dist/nodes/ScalePadCore/descriptions/AssessmentDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/AssessmentDescription.js +291 -0
- package/dist/nodes/ScalePadCore/descriptions/AssessmentTemplateDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/AssessmentTemplateDescription.js +59 -0
- package/dist/nodes/ScalePadCore/descriptions/ContractDescription.js +242 -21
- package/dist/nodes/ScalePadCore/descriptions/GoalDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/GoalDescription.js +468 -0
- package/dist/nodes/ScalePadCore/descriptions/HardwareLifecycleDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/HardwareLifecycleDescription.js +81 -0
- package/dist/nodes/ScalePadCore/descriptions/InitiativeDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/InitiativeDescription.js +565 -0
- package/dist/nodes/ScalePadCore/descriptions/LmContractDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/LmContractDescription.js +342 -0
- package/dist/nodes/ScalePadCore/descriptions/MeetingDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/MeetingDescription.js +501 -0
- package/dist/nodes/ScalePadCore/descriptions/NoteDescription.d.ts +3 -0
- package/dist/nodes/ScalePadCore/descriptions/NoteDescription.js +289 -0
- package/dist/nodes/ScalePadLifecycleManager/ScalePadLifecycleManager.node.d.ts +6 -0
- package/dist/nodes/ScalePadLifecycleManager/ScalePadLifecycleManager.node.js +837 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/ActionItemDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/ActionItemDescription.js +306 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/AssessmentDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/AssessmentDescription.js +291 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/AssessmentTemplateDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/AssessmentTemplateDescription.js +59 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/ContractDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/ContractDescription.js +342 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/GoalDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/GoalDescription.js +468 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/HardwareLifecycleDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/HardwareLifecycleDescription.js +81 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/InitiativeDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/InitiativeDescription.js +565 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/MeetingDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/MeetingDescription.js +501 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/NoteDescription.d.ts +3 -0
- package/dist/nodes/ScalePadLifecycleManager/descriptions/NoteDescription.js +289 -0
- package/dist/nodes/ScalePadLifecycleManager/scalepad.svg +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initiativeFields = exports.initiativeOperations = void 0;
|
|
4
|
+
exports.initiativeOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['initiative'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new initiative',
|
|
20
|
+
action: 'Create an initiative',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete an initiative',
|
|
26
|
+
action: 'Delete an initiative',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get an initiative by ID',
|
|
32
|
+
action: 'Get an initiative',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get many initiatives',
|
|
38
|
+
action: 'Get many initiatives',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update an initiative',
|
|
44
|
+
action: 'Update an initiative',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Update Status',
|
|
48
|
+
value: 'updateStatus',
|
|
49
|
+
description: 'Update initiative status',
|
|
50
|
+
action: 'Update initiative status',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Update Schedule',
|
|
54
|
+
value: 'updateSchedule',
|
|
55
|
+
description: 'Set the fiscal quarter for an initiative',
|
|
56
|
+
action: 'Update initiative schedule',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Update Priority',
|
|
60
|
+
value: 'updatePriority',
|
|
61
|
+
description: 'Adjust initiative priority',
|
|
62
|
+
action: 'Update initiative priority',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Update Budget',
|
|
66
|
+
value: 'updateBudget',
|
|
67
|
+
description: 'Modify investment amounts',
|
|
68
|
+
action: 'Update initiative budget',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'List Meetings',
|
|
72
|
+
value: 'listMeetings',
|
|
73
|
+
description: 'List meetings linked to an initiative',
|
|
74
|
+
action: 'List initiative meetings',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Link Meeting',
|
|
78
|
+
value: 'linkMeeting',
|
|
79
|
+
description: 'Link a meeting to an initiative',
|
|
80
|
+
action: 'Link meeting to initiative',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Unlink Meeting',
|
|
84
|
+
value: 'unlinkMeeting',
|
|
85
|
+
description: 'Unlink a meeting from an initiative',
|
|
86
|
+
action: 'Unlink meeting from initiative',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'List Goals',
|
|
90
|
+
value: 'listGoals',
|
|
91
|
+
description: 'List goals linked to an initiative',
|
|
92
|
+
action: 'List initiative goals',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Link Goal',
|
|
96
|
+
value: 'linkGoal',
|
|
97
|
+
description: 'Link a goal to an initiative',
|
|
98
|
+
action: 'Link goal to initiative',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Unlink Goal',
|
|
102
|
+
value: 'unlinkGoal',
|
|
103
|
+
description: 'Unlink a goal from an initiative',
|
|
104
|
+
action: 'Unlink goal from initiative',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'List Action Items',
|
|
108
|
+
value: 'listActionItems',
|
|
109
|
+
description: 'List action items linked to an initiative',
|
|
110
|
+
action: 'List initiative action items',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'Link Action Item',
|
|
114
|
+
value: 'linkActionItem',
|
|
115
|
+
description: 'Link an action item to an initiative',
|
|
116
|
+
action: 'Link action item to initiative',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'Unlink Action Item',
|
|
120
|
+
value: 'unlinkActionItem',
|
|
121
|
+
description: 'Unlink an action item from an initiative',
|
|
122
|
+
action: 'Unlink action item from initiative',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
default: 'getAll',
|
|
126
|
+
},
|
|
127
|
+
];
|
|
128
|
+
exports.initiativeFields = [
|
|
129
|
+
// Initiative ID for get/update/delete operations
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Initiative ID',
|
|
132
|
+
name: 'initiativeId',
|
|
133
|
+
type: 'string',
|
|
134
|
+
required: true,
|
|
135
|
+
displayOptions: {
|
|
136
|
+
show: {
|
|
137
|
+
resource: ['initiative'],
|
|
138
|
+
operation: [
|
|
139
|
+
'get',
|
|
140
|
+
'update',
|
|
141
|
+
'delete',
|
|
142
|
+
'updateStatus',
|
|
143
|
+
'updateSchedule',
|
|
144
|
+
'updatePriority',
|
|
145
|
+
'updateBudget',
|
|
146
|
+
'listMeetings',
|
|
147
|
+
'linkMeeting',
|
|
148
|
+
'unlinkMeeting',
|
|
149
|
+
'listGoals',
|
|
150
|
+
'linkGoal',
|
|
151
|
+
'unlinkGoal',
|
|
152
|
+
'listActionItems',
|
|
153
|
+
'linkActionItem',
|
|
154
|
+
'unlinkActionItem',
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
default: '',
|
|
159
|
+
description: 'The ID of the initiative',
|
|
160
|
+
},
|
|
161
|
+
// Create operation fields
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Client ID',
|
|
164
|
+
name: 'clientId',
|
|
165
|
+
type: 'string',
|
|
166
|
+
required: true,
|
|
167
|
+
displayOptions: {
|
|
168
|
+
show: {
|
|
169
|
+
resource: ['initiative'],
|
|
170
|
+
operation: ['create'],
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
default: '',
|
|
174
|
+
description: 'The ID of the client for this initiative',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Title',
|
|
178
|
+
name: 'title',
|
|
179
|
+
type: 'string',
|
|
180
|
+
required: true,
|
|
181
|
+
displayOptions: {
|
|
182
|
+
show: {
|
|
183
|
+
resource: ['initiative'],
|
|
184
|
+
operation: ['create'],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
default: '',
|
|
188
|
+
description: 'The title of the initiative',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Additional Fields',
|
|
192
|
+
name: 'additionalFields',
|
|
193
|
+
type: 'collection',
|
|
194
|
+
placeholder: 'Add Field',
|
|
195
|
+
default: {},
|
|
196
|
+
displayOptions: {
|
|
197
|
+
show: {
|
|
198
|
+
resource: ['initiative'],
|
|
199
|
+
operation: ['create'],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
options: [
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Description',
|
|
205
|
+
name: 'description',
|
|
206
|
+
type: 'string',
|
|
207
|
+
typeOptions: {
|
|
208
|
+
rows: 4,
|
|
209
|
+
},
|
|
210
|
+
default: '',
|
|
211
|
+
description: 'Description of the initiative',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
displayName: 'Status',
|
|
215
|
+
name: 'status',
|
|
216
|
+
type: 'options',
|
|
217
|
+
options: [
|
|
218
|
+
{ name: 'Draft', value: 'draft' },
|
|
219
|
+
{ name: 'Proposed', value: 'proposed' },
|
|
220
|
+
{ name: 'Approved', value: 'approved' },
|
|
221
|
+
{ name: 'In Progress', value: 'in_progress' },
|
|
222
|
+
{ name: 'Completed', value: 'completed' },
|
|
223
|
+
{ name: 'On Hold', value: 'on_hold' },
|
|
224
|
+
{ name: 'Cancelled', value: 'cancelled' },
|
|
225
|
+
],
|
|
226
|
+
default: 'draft',
|
|
227
|
+
description: 'Status of the initiative',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
displayName: 'Priority',
|
|
231
|
+
name: 'priority',
|
|
232
|
+
type: 'options',
|
|
233
|
+
options: [
|
|
234
|
+
{ name: 'Low', value: 'low' },
|
|
235
|
+
{ name: 'Medium', value: 'medium' },
|
|
236
|
+
{ name: 'High', value: 'high' },
|
|
237
|
+
{ name: 'Critical', value: 'critical' },
|
|
238
|
+
],
|
|
239
|
+
default: 'medium',
|
|
240
|
+
description: 'Priority level of the initiative',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
displayName: 'Fiscal Year',
|
|
244
|
+
name: 'fiscal_year',
|
|
245
|
+
type: 'number',
|
|
246
|
+
default: new Date().getFullYear(),
|
|
247
|
+
description: 'Fiscal year for the initiative',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
displayName: 'Fiscal Quarter',
|
|
251
|
+
name: 'fiscal_quarter',
|
|
252
|
+
type: 'options',
|
|
253
|
+
options: [
|
|
254
|
+
{ name: 'Q1', value: 1 },
|
|
255
|
+
{ name: 'Q2', value: 2 },
|
|
256
|
+
{ name: 'Q3', value: 3 },
|
|
257
|
+
{ name: 'Q4', value: 4 },
|
|
258
|
+
],
|
|
259
|
+
default: 1,
|
|
260
|
+
description: 'Fiscal quarter for the initiative',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
displayName: 'One-Time Investment',
|
|
264
|
+
name: 'one_time_investment',
|
|
265
|
+
type: 'number',
|
|
266
|
+
typeOptions: {
|
|
267
|
+
minValue: 0,
|
|
268
|
+
},
|
|
269
|
+
default: 0,
|
|
270
|
+
description: 'One-time investment amount',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
displayName: 'Recurring Investment',
|
|
274
|
+
name: 'recurring_investment',
|
|
275
|
+
type: 'number',
|
|
276
|
+
typeOptions: {
|
|
277
|
+
minValue: 0,
|
|
278
|
+
},
|
|
279
|
+
default: 0,
|
|
280
|
+
description: 'Recurring investment amount',
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
// Update operation fields
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Update Fields',
|
|
287
|
+
name: 'updateFields',
|
|
288
|
+
type: 'collection',
|
|
289
|
+
placeholder: 'Add Field',
|
|
290
|
+
default: {},
|
|
291
|
+
displayOptions: {
|
|
292
|
+
show: {
|
|
293
|
+
resource: ['initiative'],
|
|
294
|
+
operation: ['update'],
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
options: [
|
|
298
|
+
{
|
|
299
|
+
displayName: 'Title',
|
|
300
|
+
name: 'title',
|
|
301
|
+
type: 'string',
|
|
302
|
+
default: '',
|
|
303
|
+
description: 'The title of the initiative',
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
displayName: 'Description',
|
|
307
|
+
name: 'description',
|
|
308
|
+
type: 'string',
|
|
309
|
+
typeOptions: {
|
|
310
|
+
rows: 4,
|
|
311
|
+
},
|
|
312
|
+
default: '',
|
|
313
|
+
description: 'Description of the initiative',
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
},
|
|
317
|
+
// Update status
|
|
318
|
+
{
|
|
319
|
+
displayName: 'Status',
|
|
320
|
+
name: 'status',
|
|
321
|
+
type: 'options',
|
|
322
|
+
required: true,
|
|
323
|
+
displayOptions: {
|
|
324
|
+
show: {
|
|
325
|
+
resource: ['initiative'],
|
|
326
|
+
operation: ['updateStatus'],
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
options: [
|
|
330
|
+
{ name: 'Draft', value: 'draft' },
|
|
331
|
+
{ name: 'Proposed', value: 'proposed' },
|
|
332
|
+
{ name: 'Approved', value: 'approved' },
|
|
333
|
+
{ name: 'In Progress', value: 'in_progress' },
|
|
334
|
+
{ name: 'Completed', value: 'completed' },
|
|
335
|
+
{ name: 'On Hold', value: 'on_hold' },
|
|
336
|
+
{ name: 'Cancelled', value: 'cancelled' },
|
|
337
|
+
],
|
|
338
|
+
default: 'draft',
|
|
339
|
+
description: 'The new status for the initiative',
|
|
340
|
+
},
|
|
341
|
+
// Update schedule
|
|
342
|
+
{
|
|
343
|
+
displayName: 'Fiscal Year',
|
|
344
|
+
name: 'fiscalYear',
|
|
345
|
+
type: 'number',
|
|
346
|
+
required: true,
|
|
347
|
+
displayOptions: {
|
|
348
|
+
show: {
|
|
349
|
+
resource: ['initiative'],
|
|
350
|
+
operation: ['updateSchedule'],
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
default: new Date().getFullYear(),
|
|
354
|
+
description: 'The fiscal year',
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
displayName: 'Fiscal Quarter',
|
|
358
|
+
name: 'fiscalQuarter',
|
|
359
|
+
type: 'options',
|
|
360
|
+
required: true,
|
|
361
|
+
displayOptions: {
|
|
362
|
+
show: {
|
|
363
|
+
resource: ['initiative'],
|
|
364
|
+
operation: ['updateSchedule'],
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
options: [
|
|
368
|
+
{ name: 'Q1', value: 1 },
|
|
369
|
+
{ name: 'Q2', value: 2 },
|
|
370
|
+
{ name: 'Q3', value: 3 },
|
|
371
|
+
{ name: 'Q4', value: 4 },
|
|
372
|
+
],
|
|
373
|
+
default: 1,
|
|
374
|
+
description: 'The fiscal quarter',
|
|
375
|
+
},
|
|
376
|
+
// Update priority
|
|
377
|
+
{
|
|
378
|
+
displayName: 'Priority',
|
|
379
|
+
name: 'priority',
|
|
380
|
+
type: 'options',
|
|
381
|
+
required: true,
|
|
382
|
+
displayOptions: {
|
|
383
|
+
show: {
|
|
384
|
+
resource: ['initiative'],
|
|
385
|
+
operation: ['updatePriority'],
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
options: [
|
|
389
|
+
{ name: 'Low', value: 'low' },
|
|
390
|
+
{ name: 'Medium', value: 'medium' },
|
|
391
|
+
{ name: 'High', value: 'high' },
|
|
392
|
+
{ name: 'Critical', value: 'critical' },
|
|
393
|
+
],
|
|
394
|
+
default: 'medium',
|
|
395
|
+
description: 'The priority level',
|
|
396
|
+
},
|
|
397
|
+
// Update budget
|
|
398
|
+
{
|
|
399
|
+
displayName: 'One-Time Investment',
|
|
400
|
+
name: 'oneTimeInvestment',
|
|
401
|
+
type: 'number',
|
|
402
|
+
displayOptions: {
|
|
403
|
+
show: {
|
|
404
|
+
resource: ['initiative'],
|
|
405
|
+
operation: ['updateBudget'],
|
|
406
|
+
},
|
|
407
|
+
},
|
|
408
|
+
typeOptions: {
|
|
409
|
+
minValue: 0,
|
|
410
|
+
},
|
|
411
|
+
default: 0,
|
|
412
|
+
description: 'One-time investment amount',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
displayName: 'Recurring Investment',
|
|
416
|
+
name: 'recurringInvestment',
|
|
417
|
+
type: 'number',
|
|
418
|
+
displayOptions: {
|
|
419
|
+
show: {
|
|
420
|
+
resource: ['initiative'],
|
|
421
|
+
operation: ['updateBudget'],
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
typeOptions: {
|
|
425
|
+
minValue: 0,
|
|
426
|
+
},
|
|
427
|
+
default: 0,
|
|
428
|
+
description: 'Recurring investment amount',
|
|
429
|
+
},
|
|
430
|
+
// Meeting linking
|
|
431
|
+
{
|
|
432
|
+
displayName: 'Meeting ID',
|
|
433
|
+
name: 'meetingId',
|
|
434
|
+
type: 'string',
|
|
435
|
+
required: true,
|
|
436
|
+
displayOptions: {
|
|
437
|
+
show: {
|
|
438
|
+
resource: ['initiative'],
|
|
439
|
+
operation: ['linkMeeting', 'unlinkMeeting'],
|
|
440
|
+
},
|
|
441
|
+
},
|
|
442
|
+
default: '',
|
|
443
|
+
description: 'The ID of the meeting to link or unlink',
|
|
444
|
+
},
|
|
445
|
+
// Goal linking
|
|
446
|
+
{
|
|
447
|
+
displayName: 'Goal ID',
|
|
448
|
+
name: 'goalId',
|
|
449
|
+
type: 'string',
|
|
450
|
+
required: true,
|
|
451
|
+
displayOptions: {
|
|
452
|
+
show: {
|
|
453
|
+
resource: ['initiative'],
|
|
454
|
+
operation: ['linkGoal', 'unlinkGoal'],
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
default: '',
|
|
458
|
+
description: 'The ID of the goal to link or unlink',
|
|
459
|
+
},
|
|
460
|
+
// Action item linking
|
|
461
|
+
{
|
|
462
|
+
displayName: 'Action Item ID',
|
|
463
|
+
name: 'actionItemId',
|
|
464
|
+
type: 'string',
|
|
465
|
+
required: true,
|
|
466
|
+
displayOptions: {
|
|
467
|
+
show: {
|
|
468
|
+
resource: ['initiative'],
|
|
469
|
+
operation: ['linkActionItem', 'unlinkActionItem'],
|
|
470
|
+
},
|
|
471
|
+
},
|
|
472
|
+
default: '',
|
|
473
|
+
description: 'The ID of the action item to link or unlink',
|
|
474
|
+
},
|
|
475
|
+
// Get Many operation
|
|
476
|
+
{
|
|
477
|
+
displayName: 'Return All',
|
|
478
|
+
name: 'returnAll',
|
|
479
|
+
type: 'boolean',
|
|
480
|
+
displayOptions: {
|
|
481
|
+
show: {
|
|
482
|
+
resource: ['initiative'],
|
|
483
|
+
operation: ['getAll'],
|
|
484
|
+
},
|
|
485
|
+
},
|
|
486
|
+
default: false,
|
|
487
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
displayName: 'Limit',
|
|
491
|
+
name: 'limit',
|
|
492
|
+
type: 'number',
|
|
493
|
+
displayOptions: {
|
|
494
|
+
show: {
|
|
495
|
+
resource: ['initiative'],
|
|
496
|
+
operation: ['getAll'],
|
|
497
|
+
returnAll: [false],
|
|
498
|
+
},
|
|
499
|
+
},
|
|
500
|
+
typeOptions: {
|
|
501
|
+
minValue: 1,
|
|
502
|
+
maxValue: 200,
|
|
503
|
+
},
|
|
504
|
+
default: 50,
|
|
505
|
+
description: 'Max number of results to return',
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
displayName: 'Filters',
|
|
509
|
+
name: 'filters',
|
|
510
|
+
type: 'collection',
|
|
511
|
+
placeholder: 'Add Filter',
|
|
512
|
+
default: {},
|
|
513
|
+
displayOptions: {
|
|
514
|
+
show: {
|
|
515
|
+
resource: ['initiative'],
|
|
516
|
+
operation: ['getAll'],
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
options: [
|
|
520
|
+
{
|
|
521
|
+
displayName: 'Client ID',
|
|
522
|
+
name: 'clientId',
|
|
523
|
+
type: 'string',
|
|
524
|
+
default: '',
|
|
525
|
+
description: 'Filter by client ID',
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
displayName: 'Status',
|
|
529
|
+
name: 'status',
|
|
530
|
+
type: 'options',
|
|
531
|
+
options: [
|
|
532
|
+
{ name: 'Draft', value: 'draft' },
|
|
533
|
+
{ name: 'Proposed', value: 'proposed' },
|
|
534
|
+
{ name: 'Approved', value: 'approved' },
|
|
535
|
+
{ name: 'In Progress', value: 'in_progress' },
|
|
536
|
+
{ name: 'Completed', value: 'completed' },
|
|
537
|
+
{ name: 'On Hold', value: 'on_hold' },
|
|
538
|
+
{ name: 'Cancelled', value: 'cancelled' },
|
|
539
|
+
],
|
|
540
|
+
default: 'draft',
|
|
541
|
+
description: 'Filter by status',
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
displayName: 'Priority',
|
|
545
|
+
name: 'priority',
|
|
546
|
+
type: 'options',
|
|
547
|
+
options: [
|
|
548
|
+
{ name: 'Low', value: 'low' },
|
|
549
|
+
{ name: 'Medium', value: 'medium' },
|
|
550
|
+
{ name: 'High', value: 'high' },
|
|
551
|
+
{ name: 'Critical', value: 'critical' },
|
|
552
|
+
],
|
|
553
|
+
default: 'medium',
|
|
554
|
+
description: 'Filter by priority',
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
displayName: 'Fiscal Year',
|
|
558
|
+
name: 'fiscalYear',
|
|
559
|
+
type: 'number',
|
|
560
|
+
default: new Date().getFullYear(),
|
|
561
|
+
description: 'Filter by fiscal year',
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
},
|
|
565
|
+
];
|