@joshuanode/n8n-nodes-scalepad 0.0.3 → 0.0.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/README.md +41 -121
- package/dist/nodes/ScalePadCore/ScalePadCore.node.js +798 -53
- 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.js +5 -66
- 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,468 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.goalFields = exports.goalOperations = void 0;
|
|
4
|
+
exports.goalOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['goal'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new goal',
|
|
20
|
+
action: 'Create a goal',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a goal',
|
|
26
|
+
action: 'Delete a goal',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a goal by ID',
|
|
32
|
+
action: 'Get a goal',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get many goals',
|
|
38
|
+
action: 'Get many goals',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update a goal',
|
|
44
|
+
action: 'Update a goal',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Update Status',
|
|
48
|
+
value: 'updateStatus',
|
|
49
|
+
description: 'Update goal status',
|
|
50
|
+
action: 'Update goal status',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Update Schedule',
|
|
54
|
+
value: 'updateSchedule',
|
|
55
|
+
description: 'Adjust goal schedule',
|
|
56
|
+
action: 'Update goal schedule',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'List Meetings',
|
|
60
|
+
value: 'listMeetings',
|
|
61
|
+
description: 'List meetings linked to a goal',
|
|
62
|
+
action: 'List goal meetings',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Link Meeting',
|
|
66
|
+
value: 'linkMeeting',
|
|
67
|
+
description: 'Link a meeting to a goal',
|
|
68
|
+
action: 'Link meeting to goal',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Unlink Meeting',
|
|
72
|
+
value: 'unlinkMeeting',
|
|
73
|
+
description: 'Unlink a meeting from a goal',
|
|
74
|
+
action: 'Unlink meeting from goal',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'List Initiatives',
|
|
78
|
+
value: 'listInitiatives',
|
|
79
|
+
description: 'List initiatives linked to a goal',
|
|
80
|
+
action: 'List goal initiatives',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Link Initiative',
|
|
84
|
+
value: 'linkInitiative',
|
|
85
|
+
description: 'Link an initiative to a goal',
|
|
86
|
+
action: 'Link initiative to goal',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Unlink Initiative',
|
|
90
|
+
value: 'unlinkInitiative',
|
|
91
|
+
description: 'Unlink an initiative from a goal',
|
|
92
|
+
action: 'Unlink initiative from goal',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
default: 'getAll',
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
exports.goalFields = [
|
|
99
|
+
// Goal ID for get/update/delete operations
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Goal ID',
|
|
102
|
+
name: 'goalId',
|
|
103
|
+
type: 'string',
|
|
104
|
+
required: true,
|
|
105
|
+
displayOptions: {
|
|
106
|
+
show: {
|
|
107
|
+
resource: ['goal'],
|
|
108
|
+
operation: [
|
|
109
|
+
'get',
|
|
110
|
+
'update',
|
|
111
|
+
'delete',
|
|
112
|
+
'updateStatus',
|
|
113
|
+
'updateSchedule',
|
|
114
|
+
'listMeetings',
|
|
115
|
+
'linkMeeting',
|
|
116
|
+
'unlinkMeeting',
|
|
117
|
+
'listInitiatives',
|
|
118
|
+
'linkInitiative',
|
|
119
|
+
'unlinkInitiative',
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
default: '',
|
|
124
|
+
description: 'The ID of the goal',
|
|
125
|
+
},
|
|
126
|
+
// Create operation fields
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Client ID',
|
|
129
|
+
name: 'clientId',
|
|
130
|
+
type: 'string',
|
|
131
|
+
required: true,
|
|
132
|
+
displayOptions: {
|
|
133
|
+
show: {
|
|
134
|
+
resource: ['goal'],
|
|
135
|
+
operation: ['create'],
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
default: '',
|
|
139
|
+
description: 'The ID of the client for this goal',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
displayName: 'Title',
|
|
143
|
+
name: 'title',
|
|
144
|
+
type: 'string',
|
|
145
|
+
required: true,
|
|
146
|
+
displayOptions: {
|
|
147
|
+
show: {
|
|
148
|
+
resource: ['goal'],
|
|
149
|
+
operation: ['create'],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
default: '',
|
|
153
|
+
description: 'The title of the goal',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Additional Fields',
|
|
157
|
+
name: 'additionalFields',
|
|
158
|
+
type: 'collection',
|
|
159
|
+
placeholder: 'Add Field',
|
|
160
|
+
default: {},
|
|
161
|
+
displayOptions: {
|
|
162
|
+
show: {
|
|
163
|
+
resource: ['goal'],
|
|
164
|
+
operation: ['create'],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
options: [
|
|
168
|
+
{
|
|
169
|
+
displayName: 'Description',
|
|
170
|
+
name: 'description',
|
|
171
|
+
type: 'string',
|
|
172
|
+
typeOptions: {
|
|
173
|
+
rows: 4,
|
|
174
|
+
},
|
|
175
|
+
default: '',
|
|
176
|
+
description: 'Description of the goal',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'Status',
|
|
180
|
+
name: 'status',
|
|
181
|
+
type: 'options',
|
|
182
|
+
options: [
|
|
183
|
+
{ name: 'Not Started', value: 'not_started' },
|
|
184
|
+
{ name: 'In Progress', value: 'in_progress' },
|
|
185
|
+
{ name: 'Completed', value: 'completed' },
|
|
186
|
+
{ name: 'On Hold', value: 'on_hold' },
|
|
187
|
+
{ name: 'Cancelled', value: 'cancelled' },
|
|
188
|
+
],
|
|
189
|
+
default: 'not_started',
|
|
190
|
+
description: 'Status of the goal',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Category',
|
|
194
|
+
name: 'category',
|
|
195
|
+
type: 'options',
|
|
196
|
+
options: [
|
|
197
|
+
{ name: 'Security', value: 'security' },
|
|
198
|
+
{ name: 'Compliance', value: 'compliance' },
|
|
199
|
+
{ name: 'Efficiency', value: 'efficiency' },
|
|
200
|
+
{ name: 'Growth', value: 'growth' },
|
|
201
|
+
{ name: 'Cost Reduction', value: 'cost_reduction' },
|
|
202
|
+
{ name: 'Other', value: 'other' },
|
|
203
|
+
],
|
|
204
|
+
default: 'other',
|
|
205
|
+
description: 'Category of the goal',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Target Date',
|
|
209
|
+
name: 'target_date',
|
|
210
|
+
type: 'dateTime',
|
|
211
|
+
default: '',
|
|
212
|
+
description: 'Target completion date for the goal',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
displayName: 'Fiscal Year',
|
|
216
|
+
name: 'fiscal_year',
|
|
217
|
+
type: 'number',
|
|
218
|
+
default: new Date().getFullYear(),
|
|
219
|
+
description: 'Fiscal year for the goal',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Fiscal Quarter',
|
|
223
|
+
name: 'fiscal_quarter',
|
|
224
|
+
type: 'options',
|
|
225
|
+
options: [
|
|
226
|
+
{ name: 'Q1', value: 1 },
|
|
227
|
+
{ name: 'Q2', value: 2 },
|
|
228
|
+
{ name: 'Q3', value: 3 },
|
|
229
|
+
{ name: 'Q4', value: 4 },
|
|
230
|
+
],
|
|
231
|
+
default: 1,
|
|
232
|
+
description: 'Fiscal quarter for the goal',
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
// Update operation fields
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Update Fields',
|
|
239
|
+
name: 'updateFields',
|
|
240
|
+
type: 'collection',
|
|
241
|
+
placeholder: 'Add Field',
|
|
242
|
+
default: {},
|
|
243
|
+
displayOptions: {
|
|
244
|
+
show: {
|
|
245
|
+
resource: ['goal'],
|
|
246
|
+
operation: ['update'],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
options: [
|
|
250
|
+
{
|
|
251
|
+
displayName: 'Title',
|
|
252
|
+
name: 'title',
|
|
253
|
+
type: 'string',
|
|
254
|
+
default: '',
|
|
255
|
+
description: 'The title of the goal',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
displayName: 'Description',
|
|
259
|
+
name: 'description',
|
|
260
|
+
type: 'string',
|
|
261
|
+
typeOptions: {
|
|
262
|
+
rows: 4,
|
|
263
|
+
},
|
|
264
|
+
default: '',
|
|
265
|
+
description: 'Description of the goal',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
displayName: 'Category',
|
|
269
|
+
name: 'category',
|
|
270
|
+
type: 'options',
|
|
271
|
+
options: [
|
|
272
|
+
{ name: 'Security', value: 'security' },
|
|
273
|
+
{ name: 'Compliance', value: 'compliance' },
|
|
274
|
+
{ name: 'Efficiency', value: 'efficiency' },
|
|
275
|
+
{ name: 'Growth', value: 'growth' },
|
|
276
|
+
{ name: 'Cost Reduction', value: 'cost_reduction' },
|
|
277
|
+
{ name: 'Other', value: 'other' },
|
|
278
|
+
],
|
|
279
|
+
default: 'other',
|
|
280
|
+
description: 'Category of the goal',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
displayName: 'Target Date',
|
|
284
|
+
name: 'target_date',
|
|
285
|
+
type: 'dateTime',
|
|
286
|
+
default: '',
|
|
287
|
+
description: 'Target completion date for the goal',
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
},
|
|
291
|
+
// Update status
|
|
292
|
+
{
|
|
293
|
+
displayName: 'Status',
|
|
294
|
+
name: 'status',
|
|
295
|
+
type: 'options',
|
|
296
|
+
required: true,
|
|
297
|
+
displayOptions: {
|
|
298
|
+
show: {
|
|
299
|
+
resource: ['goal'],
|
|
300
|
+
operation: ['updateStatus'],
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
options: [
|
|
304
|
+
{ name: 'Not Started', value: 'not_started' },
|
|
305
|
+
{ name: 'In Progress', value: 'in_progress' },
|
|
306
|
+
{ name: 'Completed', value: 'completed' },
|
|
307
|
+
{ name: 'On Hold', value: 'on_hold' },
|
|
308
|
+
{ name: 'Cancelled', value: 'cancelled' },
|
|
309
|
+
],
|
|
310
|
+
default: 'not_started',
|
|
311
|
+
description: 'The new status for the goal',
|
|
312
|
+
},
|
|
313
|
+
// Update schedule
|
|
314
|
+
{
|
|
315
|
+
displayName: 'Fiscal Year',
|
|
316
|
+
name: 'fiscalYear',
|
|
317
|
+
type: 'number',
|
|
318
|
+
required: true,
|
|
319
|
+
displayOptions: {
|
|
320
|
+
show: {
|
|
321
|
+
resource: ['goal'],
|
|
322
|
+
operation: ['updateSchedule'],
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
default: new Date().getFullYear(),
|
|
326
|
+
description: 'The fiscal year',
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
displayName: 'Fiscal Quarter',
|
|
330
|
+
name: 'fiscalQuarter',
|
|
331
|
+
type: 'options',
|
|
332
|
+
required: true,
|
|
333
|
+
displayOptions: {
|
|
334
|
+
show: {
|
|
335
|
+
resource: ['goal'],
|
|
336
|
+
operation: ['updateSchedule'],
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
options: [
|
|
340
|
+
{ name: 'Q1', value: 1 },
|
|
341
|
+
{ name: 'Q2', value: 2 },
|
|
342
|
+
{ name: 'Q3', value: 3 },
|
|
343
|
+
{ name: 'Q4', value: 4 },
|
|
344
|
+
],
|
|
345
|
+
default: 1,
|
|
346
|
+
description: 'The fiscal quarter',
|
|
347
|
+
},
|
|
348
|
+
// Meeting linking
|
|
349
|
+
{
|
|
350
|
+
displayName: 'Meeting ID',
|
|
351
|
+
name: 'meetingId',
|
|
352
|
+
type: 'string',
|
|
353
|
+
required: true,
|
|
354
|
+
displayOptions: {
|
|
355
|
+
show: {
|
|
356
|
+
resource: ['goal'],
|
|
357
|
+
operation: ['linkMeeting', 'unlinkMeeting'],
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
default: '',
|
|
361
|
+
description: 'The ID of the meeting to link or unlink',
|
|
362
|
+
},
|
|
363
|
+
// Initiative linking
|
|
364
|
+
{
|
|
365
|
+
displayName: 'Initiative ID',
|
|
366
|
+
name: 'initiativeId',
|
|
367
|
+
type: 'string',
|
|
368
|
+
required: true,
|
|
369
|
+
displayOptions: {
|
|
370
|
+
show: {
|
|
371
|
+
resource: ['goal'],
|
|
372
|
+
operation: ['linkInitiative', 'unlinkInitiative'],
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
default: '',
|
|
376
|
+
description: 'The ID of the initiative to link or unlink',
|
|
377
|
+
},
|
|
378
|
+
// Get Many operation
|
|
379
|
+
{
|
|
380
|
+
displayName: 'Return All',
|
|
381
|
+
name: 'returnAll',
|
|
382
|
+
type: 'boolean',
|
|
383
|
+
displayOptions: {
|
|
384
|
+
show: {
|
|
385
|
+
resource: ['goal'],
|
|
386
|
+
operation: ['getAll'],
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
default: false,
|
|
390
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
displayName: 'Limit',
|
|
394
|
+
name: 'limit',
|
|
395
|
+
type: 'number',
|
|
396
|
+
displayOptions: {
|
|
397
|
+
show: {
|
|
398
|
+
resource: ['goal'],
|
|
399
|
+
operation: ['getAll'],
|
|
400
|
+
returnAll: [false],
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
typeOptions: {
|
|
404
|
+
minValue: 1,
|
|
405
|
+
maxValue: 200,
|
|
406
|
+
},
|
|
407
|
+
default: 50,
|
|
408
|
+
description: 'Max number of results to return',
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
displayName: 'Filters',
|
|
412
|
+
name: 'filters',
|
|
413
|
+
type: 'collection',
|
|
414
|
+
placeholder: 'Add Filter',
|
|
415
|
+
default: {},
|
|
416
|
+
displayOptions: {
|
|
417
|
+
show: {
|
|
418
|
+
resource: ['goal'],
|
|
419
|
+
operation: ['getAll'],
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
options: [
|
|
423
|
+
{
|
|
424
|
+
displayName: 'Client ID',
|
|
425
|
+
name: 'clientId',
|
|
426
|
+
type: 'string',
|
|
427
|
+
default: '',
|
|
428
|
+
description: 'Filter by client ID',
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
displayName: 'Status',
|
|
432
|
+
name: 'status',
|
|
433
|
+
type: 'options',
|
|
434
|
+
options: [
|
|
435
|
+
{ name: 'Not Started', value: 'not_started' },
|
|
436
|
+
{ name: 'In Progress', value: 'in_progress' },
|
|
437
|
+
{ name: 'Completed', value: 'completed' },
|
|
438
|
+
{ name: 'On Hold', value: 'on_hold' },
|
|
439
|
+
{ name: 'Cancelled', value: 'cancelled' },
|
|
440
|
+
],
|
|
441
|
+
default: 'not_started',
|
|
442
|
+
description: 'Filter by status',
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
displayName: 'Category',
|
|
446
|
+
name: 'category',
|
|
447
|
+
type: 'options',
|
|
448
|
+
options: [
|
|
449
|
+
{ name: 'Security', value: 'security' },
|
|
450
|
+
{ name: 'Compliance', value: 'compliance' },
|
|
451
|
+
{ name: 'Efficiency', value: 'efficiency' },
|
|
452
|
+
{ name: 'Growth', value: 'growth' },
|
|
453
|
+
{ name: 'Cost Reduction', value: 'cost_reduction' },
|
|
454
|
+
{ name: 'Other', value: 'other' },
|
|
455
|
+
],
|
|
456
|
+
default: 'other',
|
|
457
|
+
description: 'Filter by category',
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
displayName: 'Fiscal Year',
|
|
461
|
+
name: 'fiscalYear',
|
|
462
|
+
type: 'number',
|
|
463
|
+
default: new Date().getFullYear(),
|
|
464
|
+
description: 'Filter by fiscal year',
|
|
465
|
+
},
|
|
466
|
+
],
|
|
467
|
+
},
|
|
468
|
+
];
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hardwareLifecycleFields = exports.hardwareLifecycleOperations = void 0;
|
|
4
|
+
exports.hardwareLifecycleOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['hardwareLifecycle'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get Many',
|
|
18
|
+
value: 'getAll',
|
|
19
|
+
description: 'Get active hardware lifecycle records',
|
|
20
|
+
action: 'Get many hardware lifecycle records',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
default: 'getAll',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.hardwareLifecycleFields = [
|
|
27
|
+
// Get Many operation
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Return All',
|
|
30
|
+
name: 'returnAll',
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: {
|
|
34
|
+
resource: ['hardwareLifecycle'],
|
|
35
|
+
operation: ['getAll'],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
default: false,
|
|
39
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Limit',
|
|
43
|
+
name: 'limit',
|
|
44
|
+
type: 'number',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
resource: ['hardwareLifecycle'],
|
|
48
|
+
operation: ['getAll'],
|
|
49
|
+
returnAll: [false],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
typeOptions: {
|
|
53
|
+
minValue: 1,
|
|
54
|
+
maxValue: 200,
|
|
55
|
+
},
|
|
56
|
+
default: 50,
|
|
57
|
+
description: 'Max number of results to return',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Filters',
|
|
61
|
+
name: 'filters',
|
|
62
|
+
type: 'collection',
|
|
63
|
+
placeholder: 'Add Filter',
|
|
64
|
+
default: {},
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['hardwareLifecycle'],
|
|
68
|
+
operation: ['getAll'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
options: [
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Client ID',
|
|
74
|
+
name: 'clientId',
|
|
75
|
+
type: 'string',
|
|
76
|
+
default: '',
|
|
77
|
+
description: 'Filter by client ID',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
];
|