n8n-nodes-vh3ai 0.2.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 (89) hide show
  1. package/README.md +216 -0
  2. package/dist/credentials/Vh3AiApi.credentials.d.ts +9 -0
  3. package/dist/credentials/Vh3AiApi.credentials.js +65 -0
  4. package/dist/credentials/Vh3AiApi.credentials.js.map +1 -0
  5. package/dist/nodes/Vh3Ai/GenericFunctions.d.ts +29 -0
  6. package/dist/nodes/Vh3Ai/GenericFunctions.js +130 -0
  7. package/dist/nodes/Vh3Ai/GenericFunctions.js.map +1 -0
  8. package/dist/nodes/Vh3Ai/Vh3Ai.node.d.ts +5 -0
  9. package/dist/nodes/Vh3Ai/Vh3Ai.node.js +1328 -0
  10. package/dist/nodes/Vh3Ai/Vh3Ai.node.js.map +1 -0
  11. package/dist/nodes/Vh3Ai/Vh3Ai.node.json +18 -0
  12. package/dist/nodes/Vh3Ai/descriptions/ContactsDescription.d.ts +3 -0
  13. package/dist/nodes/Vh3Ai/descriptions/ContactsDescription.js +680 -0
  14. package/dist/nodes/Vh3Ai/descriptions/ContactsDescription.js.map +1 -0
  15. package/dist/nodes/Vh3Ai/descriptions/InvoicesDescription.d.ts +3 -0
  16. package/dist/nodes/Vh3Ai/descriptions/InvoicesDescription.js +601 -0
  17. package/dist/nodes/Vh3Ai/descriptions/InvoicesDescription.js.map +1 -0
  18. package/dist/nodes/Vh3Ai/descriptions/JobGroupsDescription.d.ts +3 -0
  19. package/dist/nodes/Vh3Ai/descriptions/JobGroupsDescription.js +442 -0
  20. package/dist/nodes/Vh3Ai/descriptions/JobGroupsDescription.js.map +1 -0
  21. package/dist/nodes/Vh3Ai/descriptions/JobTypesDescription.d.ts +3 -0
  22. package/dist/nodes/Vh3Ai/descriptions/JobTypesDescription.js +115 -0
  23. package/dist/nodes/Vh3Ai/descriptions/JobTypesDescription.js.map +1 -0
  24. package/dist/nodes/Vh3Ai/descriptions/JobsDescription.d.ts +3 -0
  25. package/dist/nodes/Vh3Ai/descriptions/JobsDescription.js +1031 -0
  26. package/dist/nodes/Vh3Ai/descriptions/JobsDescription.js.map +1 -0
  27. package/dist/nodes/Vh3Ai/descriptions/NotesDescription.d.ts +3 -0
  28. package/dist/nodes/Vh3Ai/descriptions/NotesDescription.js +535 -0
  29. package/dist/nodes/Vh3Ai/descriptions/NotesDescription.js.map +1 -0
  30. package/dist/nodes/Vh3Ai/descriptions/PersonsDescription.d.ts +3 -0
  31. package/dist/nodes/Vh3Ai/descriptions/PersonsDescription.js +377 -0
  32. package/dist/nodes/Vh3Ai/descriptions/PersonsDescription.js.map +1 -0
  33. package/dist/nodes/Vh3Ai/descriptions/ReferenceDataDescription.d.ts +3 -0
  34. package/dist/nodes/Vh3Ai/descriptions/ReferenceDataDescription.js +200 -0
  35. package/dist/nodes/Vh3Ai/descriptions/ReferenceDataDescription.js.map +1 -0
  36. package/dist/nodes/Vh3Ai/descriptions/ResourcesDescription.d.ts +3 -0
  37. package/dist/nodes/Vh3Ai/descriptions/ResourcesDescription.js +306 -0
  38. package/dist/nodes/Vh3Ai/descriptions/ResourcesDescription.js.map +1 -0
  39. package/dist/nodes/Vh3Ai/descriptions/StockDescription.d.ts +3 -0
  40. package/dist/nodes/Vh3Ai/descriptions/StockDescription.js +843 -0
  41. package/dist/nodes/Vh3Ai/descriptions/StockDescription.js.map +1 -0
  42. package/dist/nodes/Vh3Ai/descriptions/VehiclesDescription.d.ts +3 -0
  43. package/dist/nodes/Vh3Ai/descriptions/VehiclesDescription.js +304 -0
  44. package/dist/nodes/Vh3Ai/descriptions/VehiclesDescription.js.map +1 -0
  45. package/dist/nodes/Vh3Ai/descriptions/WorksheetGroupsDescription.d.ts +3 -0
  46. package/dist/nodes/Vh3Ai/descriptions/WorksheetGroupsDescription.js +93 -0
  47. package/dist/nodes/Vh3Ai/descriptions/WorksheetGroupsDescription.js.map +1 -0
  48. package/dist/nodes/Vh3Ai/descriptions/WorksheetsDescription.d.ts +3 -0
  49. package/dist/nodes/Vh3Ai/descriptions/WorksheetsDescription.js +221 -0
  50. package/dist/nodes/Vh3Ai/descriptions/WorksheetsDescription.js.map +1 -0
  51. package/dist/nodes/Vh3Ai/vh3ai-inverted.svg +48 -0
  52. package/dist/nodes/Vh3Ai/vh3ai-original.svg +14 -0
  53. package/dist/nodes/Vh3Ai/vh3ai-wordmark.svg +34 -0
  54. package/dist/nodes/Vh3Ai/vh3ai.svg +14 -0
  55. package/dist/nodes/Vh3AiPro/GenericFunctions.d.ts +23 -0
  56. package/dist/nodes/Vh3AiPro/GenericFunctions.js +122 -0
  57. package/dist/nodes/Vh3AiPro/GenericFunctions.js.map +1 -0
  58. package/dist/nodes/Vh3AiPro/Vh3AiPro.node.d.ts +5 -0
  59. package/dist/nodes/Vh3AiPro/Vh3AiPro.node.js +366 -0
  60. package/dist/nodes/Vh3AiPro/Vh3AiPro.node.js.map +1 -0
  61. package/dist/nodes/Vh3AiPro/Vh3AiPro.node.json +31 -0
  62. package/dist/nodes/Vh3AiPro/descriptions/FsiAccountReviewDescription.d.ts +3 -0
  63. package/dist/nodes/Vh3AiPro/descriptions/FsiAccountReviewDescription.js +72 -0
  64. package/dist/nodes/Vh3AiPro/descriptions/FsiAccountReviewDescription.js.map +1 -0
  65. package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.d.ts +3 -0
  66. package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.js +118 -0
  67. package/dist/nodes/Vh3AiPro/descriptions/FsiAgentDescription.js.map +1 -0
  68. package/dist/nodes/Vh3AiPro/descriptions/FsiBriefingDescription.d.ts +3 -0
  69. package/dist/nodes/Vh3AiPro/descriptions/FsiBriefingDescription.js +85 -0
  70. package/dist/nodes/Vh3AiPro/descriptions/FsiBriefingDescription.js.map +1 -0
  71. package/dist/nodes/Vh3AiPro/descriptions/FsiEmailDescription.d.ts +3 -0
  72. package/dist/nodes/Vh3AiPro/descriptions/FsiEmailDescription.js +299 -0
  73. package/dist/nodes/Vh3AiPro/descriptions/FsiEmailDescription.js.map +1 -0
  74. package/dist/nodes/Vh3AiPro/descriptions/FsiJobsDescription.d.ts +3 -0
  75. package/dist/nodes/Vh3AiPro/descriptions/FsiJobsDescription.js +370 -0
  76. package/dist/nodes/Vh3AiPro/descriptions/FsiJobsDescription.js.map +1 -0
  77. package/dist/nodes/Vh3AiPro/descriptions/FsiReportsDescription.d.ts +3 -0
  78. package/dist/nodes/Vh3AiPro/descriptions/FsiReportsDescription.js +87 -0
  79. package/dist/nodes/Vh3AiPro/descriptions/FsiReportsDescription.js.map +1 -0
  80. package/dist/nodes/Vh3AiPro/descriptions/FsiSearchDescription.d.ts +3 -0
  81. package/dist/nodes/Vh3AiPro/descriptions/FsiSearchDescription.js +143 -0
  82. package/dist/nodes/Vh3AiPro/descriptions/FsiSearchDescription.js.map +1 -0
  83. package/dist/nodes/Vh3AiPro/descriptions/FsiSentinelDescription.d.ts +3 -0
  84. package/dist/nodes/Vh3AiPro/descriptions/FsiSentinelDescription.js +69 -0
  85. package/dist/nodes/Vh3AiPro/descriptions/FsiSentinelDescription.js.map +1 -0
  86. package/dist/nodes/Vh3AiPro/vh3ai-original.svg +14 -0
  87. package/dist/nodes/Vh3AiPro/vh3ai.svg +14 -0
  88. package/index.js +1 -0
  89. package/package.json +64 -0
@@ -0,0 +1,1031 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.jobsFields = exports.jobsOperations = void 0;
4
+ exports.jobsOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['jobs'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Cancel Job',
18
+ value: 'cancelJob',
19
+ action: 'Cancel a job',
20
+ description: 'Cancel a field service job with an optional reason',
21
+ },
22
+ {
23
+ name: 'Create Job',
24
+ value: 'createJob',
25
+ action: 'Create a job',
26
+ description: 'Create a new field service job with a job type, customer, and optional scheduling details',
27
+ },
28
+ {
29
+ name: 'Create Job Constraint',
30
+ value: 'createJobConstraint',
31
+ action: 'Create a job constraint',
32
+ description: 'Add a scheduling constraint to a job such as start/end time limits or required resources',
33
+ },
34
+ {
35
+ name: 'Create Job Stock',
36
+ value: 'createJobStock',
37
+ action: 'Create job stock entry',
38
+ description: 'Add a stock or parts entry to a job for tracking materials used or delivered',
39
+ },
40
+ {
41
+ name: 'Delete Job Constraint',
42
+ value: 'deleteJobConstraint',
43
+ action: 'Delete a job constraint',
44
+ description: 'Remove a scheduling constraint from a job',
45
+ },
46
+ {
47
+ name: 'Edit Job',
48
+ value: 'editJob',
49
+ action: 'Edit a job',
50
+ description: 'Update an existing job with new details such as description, reference, or duration',
51
+ },
52
+ {
53
+ name: 'Get Job',
54
+ value: 'getJob',
55
+ action: 'Get a job',
56
+ description: 'Get full details for a single field service job including completed worksheet answers, assigned engineer, site address, custom fields, and status history',
57
+ },
58
+ {
59
+ name: 'Get Job by ID',
60
+ value: 'getJobById',
61
+ action: 'Get a job by ID',
62
+ description: 'Get basic details for a single job by its numeric ID from the proxy API',
63
+ },
64
+ {
65
+ name: 'List Job Constraints',
66
+ value: 'listJobConstraints',
67
+ action: 'List job constraints',
68
+ description: 'List all scheduling constraints assigned to a job',
69
+ },
70
+ {
71
+ name: 'List Job Status History',
72
+ value: 'listJobStatusHistory',
73
+ action: 'List job status history',
74
+ description: 'Retrieve the full status change history for a job',
75
+ },
76
+ {
77
+ name: 'List Job Stock',
78
+ value: 'listJobStock',
79
+ action: 'List job stock',
80
+ description: 'List all stock and parts entries associated with a job',
81
+ },
82
+ {
83
+ name: 'List Jobs',
84
+ value: 'listJobs',
85
+ action: 'List jobs',
86
+ description: 'Search and list field service jobs with filters for date ranges, status, job type, contact (customer/site), assigned resource (engineer), and reference number',
87
+ },
88
+ {
89
+ name: 'Schedule Job',
90
+ value: 'scheduleJob',
91
+ action: 'Schedule a job',
92
+ description: 'Assign an engineer, vehicle, and planned start time to a job',
93
+ },
94
+ {
95
+ name: 'Set Job Result',
96
+ value: 'setJobResult',
97
+ action: 'Set job result',
98
+ description: 'Set the completion result for a job as completed OK or completed with issues',
99
+ },
100
+ {
101
+ name: 'Start Job',
102
+ value: 'startJob',
103
+ action: 'Start a job',
104
+ description: 'Mark a job as started with an optional comment',
105
+ },
106
+ ],
107
+ default: 'listJobs',
108
+ },
109
+ ];
110
+ exports.jobsFields = [
111
+ // ── List Jobs fields ──
112
+ {
113
+ displayName: 'Created From',
114
+ name: 'createdAtFrom',
115
+ type: 'dateTime',
116
+ required: true,
117
+ default: '',
118
+ description: 'Only return jobs created on or after this date (UTC: YYYY-MM-DDTHH:MM:SSZ)',
119
+ displayOptions: {
120
+ show: {
121
+ resource: ['jobs'],
122
+ operation: ['listJobs'],
123
+ },
124
+ },
125
+ },
126
+ {
127
+ displayName: 'Created To',
128
+ name: 'createdAtTo',
129
+ type: 'dateTime',
130
+ required: true,
131
+ default: '',
132
+ description: 'Only return jobs created on or before this date (UTC: YYYY-MM-DDTHH:MM:SSZ)',
133
+ displayOptions: {
134
+ show: {
135
+ resource: ['jobs'],
136
+ operation: ['listJobs'],
137
+ },
138
+ },
139
+ },
140
+ {
141
+ displayName: 'Sort Direction',
142
+ name: 'direction',
143
+ type: 'options',
144
+ options: [
145
+ { name: 'Descending', value: 'descending' },
146
+ { name: 'Ascending', value: 'ascending' },
147
+ ],
148
+ default: 'descending',
149
+ displayOptions: {
150
+ show: {
151
+ resource: ['jobs'],
152
+ operation: ['listJobs'],
153
+ },
154
+ },
155
+ },
156
+ {
157
+ displayName: 'Return All',
158
+ name: 'returnAll',
159
+ type: 'boolean',
160
+ default: false,
161
+ description: 'Whether to return all results or only up to a given page size',
162
+ displayOptions: {
163
+ show: {
164
+ resource: ['jobs'],
165
+ operation: ['listJobs'],
166
+ },
167
+ },
168
+ },
169
+ {
170
+ displayName: 'Page Size',
171
+ name: 'pageSize',
172
+ type: 'number',
173
+ typeOptions: { minValue: 1, maxValue: 1000 },
174
+ default: 100,
175
+ description: 'Number of results per page',
176
+ displayOptions: {
177
+ show: {
178
+ resource: ['jobs'],
179
+ operation: ['listJobs'],
180
+ returnAll: [false],
181
+ },
182
+ },
183
+ },
184
+ {
185
+ displayName: 'Page Number',
186
+ name: 'pageNumber',
187
+ type: 'number',
188
+ typeOptions: { minValue: 1 },
189
+ default: 1,
190
+ description: 'Page to retrieve (1-based)',
191
+ displayOptions: {
192
+ show: {
193
+ resource: ['jobs'],
194
+ operation: ['listJobs'],
195
+ returnAll: [false],
196
+ },
197
+ },
198
+ },
199
+ {
200
+ displayName: 'Additional Fields',
201
+ name: 'additionalFields',
202
+ type: 'collection',
203
+ placeholder: 'Add Field',
204
+ default: {},
205
+ displayOptions: {
206
+ show: {
207
+ resource: ['jobs'],
208
+ operation: ['listJobs'],
209
+ },
210
+ },
211
+ options: [
212
+ {
213
+ displayName: 'Contact IDs',
214
+ name: 'contactId',
215
+ type: 'string',
216
+ default: '',
217
+ description: 'Filter by contact (customer/site) IDs (comma-separated for multiple, max 50)',
218
+ },
219
+ {
220
+ displayName: 'References',
221
+ name: 'reference',
222
+ type: 'string',
223
+ default: '',
224
+ description: 'Filter by job references (comma-separated for multiple, max 50)',
225
+ },
226
+ {
227
+ displayName: 'Resource IDs',
228
+ name: 'resourceId',
229
+ type: 'string',
230
+ default: '',
231
+ description: 'Filter by assigned resource (engineer) IDs (comma-separated for multiple, max 50)',
232
+ },
233
+ {
234
+ displayName: 'Status',
235
+ name: 'status',
236
+ type: 'multiOptions',
237
+ options: [
238
+ { name: 'Accepted', value: 'accepted' },
239
+ { name: 'Cancelled', value: 'cancelled' },
240
+ { name: 'Completed OK', value: 'completedOk' },
241
+ { name: 'Completed With Issues', value: 'completedWithIssues' },
242
+ { name: 'Late Finish', value: 'lateFinish' },
243
+ { name: 'Late Start', value: 'lateStart' },
244
+ { name: 'New', value: 'new' },
245
+ { name: 'On The Way', value: 'onTheWay' },
246
+ { name: 'Read', value: 'read' },
247
+ { name: 'Rescheduled', value: 'rescheduled' },
248
+ { name: 'Refused', value: 'refused' },
249
+ { name: 'Scheduled', value: 'scheduled' },
250
+ { name: 'Sent', value: 'sent' },
251
+ { name: 'Started', value: 'started' },
252
+ { name: 'Suspended', value: 'suspended' },
253
+ { name: 'Unscheduled', value: 'unscheduled' },
254
+ ],
255
+ default: [],
256
+ description: 'Filter by job status',
257
+ },
258
+ {
259
+ displayName: 'Type IDs',
260
+ name: 'typeId',
261
+ type: 'string',
262
+ default: '',
263
+ description: 'Filter by job type IDs (comma-separated for multiple, max 50)',
264
+ },
265
+ {
266
+ displayName: 'Vehicle IDs',
267
+ name: 'vehicleId',
268
+ type: 'string',
269
+ default: '',
270
+ description: 'Filter by vehicle IDs (comma-separated for multiple, max 50)',
271
+ },
272
+ ],
273
+ },
274
+ // ── Get Job fields ──
275
+ {
276
+ displayName: 'Job ID',
277
+ name: 'jobId',
278
+ type: 'number',
279
+ required: true,
280
+ default: 0,
281
+ description: 'The numeric ID of the job to retrieve',
282
+ displayOptions: {
283
+ show: {
284
+ resource: ['jobs'],
285
+ operation: ['getJob'],
286
+ },
287
+ },
288
+ },
289
+ // ── Get Job by ID fields ──
290
+ {
291
+ displayName: 'Job ID',
292
+ name: 'jobId',
293
+ type: 'number',
294
+ required: true,
295
+ default: 0,
296
+ description: 'The numeric ID of the job',
297
+ displayOptions: {
298
+ show: {
299
+ resource: ['jobs'],
300
+ operation: ['getJobById'],
301
+ },
302
+ },
303
+ },
304
+ // ── Cancel Job fields ──
305
+ {
306
+ displayName: 'Job ID',
307
+ name: 'jobId',
308
+ type: 'number',
309
+ required: true,
310
+ default: 0,
311
+ description: 'The numeric ID of the job to cancel',
312
+ displayOptions: {
313
+ show: {
314
+ resource: ['jobs'],
315
+ operation: ['cancelJob'],
316
+ },
317
+ },
318
+ },
319
+ {
320
+ displayName: 'Additional Fields',
321
+ name: 'additionalFields',
322
+ type: 'collection',
323
+ placeholder: 'Add Field',
324
+ default: {},
325
+ displayOptions: {
326
+ show: {
327
+ resource: ['jobs'],
328
+ operation: ['cancelJob'],
329
+ },
330
+ },
331
+ options: [
332
+ {
333
+ displayName: 'Reason',
334
+ name: 'reason',
335
+ type: 'string',
336
+ default: '',
337
+ description: 'Reason for cancelling the job',
338
+ },
339
+ ],
340
+ },
341
+ // ── Create Job fields ──
342
+ {
343
+ displayName: 'Type ID',
344
+ name: 'typeId',
345
+ type: 'number',
346
+ required: true,
347
+ default: 0,
348
+ description: 'The job type ID',
349
+ displayOptions: {
350
+ show: {
351
+ resource: ['jobs'],
352
+ operation: ['createJob'],
353
+ },
354
+ },
355
+ },
356
+ {
357
+ displayName: 'Contact ID',
358
+ name: 'contactId',
359
+ type: 'number',
360
+ required: true,
361
+ default: 0,
362
+ description: 'The customer/site contact ID',
363
+ displayOptions: {
364
+ show: {
365
+ resource: ['jobs'],
366
+ operation: ['createJob'],
367
+ },
368
+ },
369
+ },
370
+ {
371
+ displayName: 'Additional Fields',
372
+ name: 'additionalFields',
373
+ type: 'collection',
374
+ placeholder: 'Add Field',
375
+ default: {},
376
+ displayOptions: {
377
+ show: {
378
+ resource: ['jobs'],
379
+ operation: ['createJob'],
380
+ },
381
+ },
382
+ options: [
383
+ {
384
+ displayName: 'Description',
385
+ name: 'description',
386
+ type: 'string',
387
+ default: '',
388
+ description: 'Job description',
389
+ },
390
+ {
391
+ displayName: 'Job Group ID',
392
+ name: 'jobGroupId',
393
+ type: 'number',
394
+ default: 0,
395
+ description: 'Job group ID',
396
+ },
397
+ {
398
+ displayName: 'Order Number',
399
+ name: 'orderNumber',
400
+ type: 'string',
401
+ default: '',
402
+ description: 'Purchase order number',
403
+ },
404
+ {
405
+ displayName: 'Person ID',
406
+ name: 'personId',
407
+ type: 'string',
408
+ default: '',
409
+ description: 'Person UUID',
410
+ },
411
+ {
412
+ displayName: 'Planned Duration',
413
+ name: 'plannedDuration',
414
+ type: 'number',
415
+ default: 0,
416
+ description: 'Planned duration in minutes',
417
+ },
418
+ {
419
+ displayName: 'Reference',
420
+ name: 'reference',
421
+ type: 'string',
422
+ default: '',
423
+ description: 'Job reference',
424
+ },
425
+ ],
426
+ },
427
+ // ── Edit Job fields ──
428
+ {
429
+ displayName: 'Job ID',
430
+ name: 'jobId',
431
+ type: 'number',
432
+ required: true,
433
+ default: 0,
434
+ description: 'The numeric ID of the job to edit',
435
+ displayOptions: {
436
+ show: {
437
+ resource: ['jobs'],
438
+ operation: ['editJob'],
439
+ },
440
+ },
441
+ },
442
+ {
443
+ displayName: 'Additional Fields',
444
+ name: 'additionalFields',
445
+ type: 'collection',
446
+ placeholder: 'Add Field',
447
+ default: {},
448
+ displayOptions: {
449
+ show: {
450
+ resource: ['jobs'],
451
+ operation: ['editJob'],
452
+ },
453
+ },
454
+ options: [
455
+ {
456
+ displayName: 'Description',
457
+ name: 'description',
458
+ type: 'string',
459
+ default: '',
460
+ description: 'Job description',
461
+ },
462
+ {
463
+ displayName: 'Is Actioned',
464
+ name: 'isActioned',
465
+ type: 'boolean',
466
+ default: false,
467
+ description: 'Whether the job has been actioned',
468
+ },
469
+ {
470
+ displayName: 'Is Financially Complete',
471
+ name: 'isFinanciallyComplete',
472
+ type: 'boolean',
473
+ default: false,
474
+ description: 'Whether the job is financially complete',
475
+ },
476
+ {
477
+ displayName: 'Job Group ID',
478
+ name: 'jobGroupId',
479
+ type: 'number',
480
+ default: 0,
481
+ description: 'Job group ID',
482
+ },
483
+ {
484
+ displayName: 'Office Notes',
485
+ name: 'officeNotes',
486
+ type: 'string',
487
+ default: '',
488
+ description: 'Office notes for the job',
489
+ },
490
+ {
491
+ displayName: 'Order Number',
492
+ name: 'orderNumber',
493
+ type: 'string',
494
+ default: '',
495
+ description: 'Purchase order number',
496
+ },
497
+ {
498
+ displayName: 'Person ID',
499
+ name: 'personId',
500
+ type: 'string',
501
+ default: '',
502
+ description: 'Person UUID',
503
+ },
504
+ {
505
+ displayName: 'Planned Duration',
506
+ name: 'plannedDuration',
507
+ type: 'number',
508
+ default: 0,
509
+ description: 'Planned duration in minutes',
510
+ },
511
+ {
512
+ displayName: 'Reference',
513
+ name: 'reference',
514
+ type: 'string',
515
+ default: '',
516
+ description: 'Job reference',
517
+ },
518
+ ],
519
+ },
520
+ // ── Schedule Job fields ──
521
+ {
522
+ displayName: 'Job ID',
523
+ name: 'jobId',
524
+ type: 'number',
525
+ required: true,
526
+ default: 0,
527
+ description: 'The numeric ID of the job to schedule',
528
+ displayOptions: {
529
+ show: {
530
+ resource: ['jobs'],
531
+ operation: ['scheduleJob'],
532
+ },
533
+ },
534
+ },
535
+ {
536
+ displayName: 'Additional Fields',
537
+ name: 'additionalFields',
538
+ type: 'collection',
539
+ placeholder: 'Add Field',
540
+ default: {},
541
+ displayOptions: {
542
+ show: {
543
+ resource: ['jobs'],
544
+ operation: ['scheduleJob'],
545
+ },
546
+ },
547
+ options: [
548
+ {
549
+ displayName: 'Planned Start At',
550
+ name: 'plannedStartAt',
551
+ type: 'dateTime',
552
+ default: '',
553
+ description: 'Planned start date and time (UTC)',
554
+ },
555
+ {
556
+ displayName: 'Resource ID',
557
+ name: 'resourceId',
558
+ type: 'number',
559
+ default: 0,
560
+ description: 'Engineer/resource ID to assign',
561
+ },
562
+ {
563
+ displayName: 'Vehicle ID',
564
+ name: 'vehicleId',
565
+ type: 'number',
566
+ default: 0,
567
+ description: 'Vehicle ID to assign',
568
+ },
569
+ ],
570
+ },
571
+ // ── Start Job fields ──
572
+ {
573
+ displayName: 'Job ID',
574
+ name: 'jobId',
575
+ type: 'number',
576
+ required: true,
577
+ default: 0,
578
+ description: 'The numeric ID of the job to start',
579
+ displayOptions: {
580
+ show: {
581
+ resource: ['jobs'],
582
+ operation: ['startJob'],
583
+ },
584
+ },
585
+ },
586
+ {
587
+ displayName: 'Additional Fields',
588
+ name: 'additionalFields',
589
+ type: 'collection',
590
+ placeholder: 'Add Field',
591
+ default: {},
592
+ displayOptions: {
593
+ show: {
594
+ resource: ['jobs'],
595
+ operation: ['startJob'],
596
+ },
597
+ },
598
+ options: [
599
+ {
600
+ displayName: 'Comment',
601
+ name: 'comment',
602
+ type: 'string',
603
+ default: '',
604
+ description: 'Comment when starting the job (max 250 characters)',
605
+ typeOptions: { maxLength: 250 },
606
+ },
607
+ {
608
+ displayName: 'Status Modified At',
609
+ name: 'statusModifiedAt',
610
+ type: 'dateTime',
611
+ default: '',
612
+ description: 'Override timestamp for when the job was started (UTC)',
613
+ },
614
+ ],
615
+ },
616
+ // ── Set Job Result fields ──
617
+ {
618
+ displayName: 'Job ID',
619
+ name: 'jobId',
620
+ type: 'number',
621
+ required: true,
622
+ default: 0,
623
+ description: 'The numeric ID of the job',
624
+ displayOptions: {
625
+ show: {
626
+ resource: ['jobs'],
627
+ operation: ['setJobResult'],
628
+ },
629
+ },
630
+ },
631
+ {
632
+ displayName: 'Status',
633
+ name: 'status',
634
+ type: 'options',
635
+ required: true,
636
+ options: [
637
+ { name: 'Completed OK', value: 'completedOk' },
638
+ { name: 'Completed With Issues', value: 'completedWithIssues' },
639
+ ],
640
+ default: 'completedOk',
641
+ description: 'The completion result status',
642
+ displayOptions: {
643
+ show: {
644
+ resource: ['jobs'],
645
+ operation: ['setJobResult'],
646
+ },
647
+ },
648
+ },
649
+ {
650
+ displayName: 'Additional Fields',
651
+ name: 'additionalFields',
652
+ type: 'collection',
653
+ placeholder: 'Add Field',
654
+ default: {},
655
+ displayOptions: {
656
+ show: {
657
+ resource: ['jobs'],
658
+ operation: ['setJobResult'],
659
+ },
660
+ },
661
+ options: [
662
+ {
663
+ displayName: 'Result',
664
+ name: 'result',
665
+ type: 'string',
666
+ default: '',
667
+ description: 'Result description text',
668
+ },
669
+ {
670
+ displayName: 'Status Modified At',
671
+ name: 'statusModifiedAt',
672
+ type: 'dateTime',
673
+ default: '',
674
+ description: 'Override timestamp for when the result was set (UTC)',
675
+ },
676
+ ],
677
+ },
678
+ // ── List Job Status History fields ──
679
+ {
680
+ displayName: 'Job ID',
681
+ name: 'jobId',
682
+ type: 'number',
683
+ required: true,
684
+ default: 0,
685
+ description: 'The numeric ID of the job',
686
+ displayOptions: {
687
+ show: {
688
+ resource: ['jobs'],
689
+ operation: ['listJobStatusHistory'],
690
+ },
691
+ },
692
+ },
693
+ {
694
+ displayName: 'Return All',
695
+ name: 'returnAll',
696
+ type: 'boolean',
697
+ default: false,
698
+ description: 'Whether to return all results or only up to a given page size',
699
+ displayOptions: {
700
+ show: {
701
+ resource: ['jobs'],
702
+ operation: ['listJobStatusHistory'],
703
+ },
704
+ },
705
+ },
706
+ {
707
+ displayName: 'Page Size',
708
+ name: 'pageSize',
709
+ type: 'number',
710
+ typeOptions: { minValue: 1, maxValue: 1000 },
711
+ default: 100,
712
+ description: 'Number of results per page',
713
+ displayOptions: {
714
+ show: {
715
+ resource: ['jobs'],
716
+ operation: ['listJobStatusHistory'],
717
+ returnAll: [false],
718
+ },
719
+ },
720
+ },
721
+ {
722
+ displayName: 'Page Number',
723
+ name: 'pageNumber',
724
+ type: 'number',
725
+ typeOptions: { minValue: 1 },
726
+ default: 1,
727
+ description: 'Page to retrieve (1-based)',
728
+ displayOptions: {
729
+ show: {
730
+ resource: ['jobs'],
731
+ operation: ['listJobStatusHistory'],
732
+ returnAll: [false],
733
+ },
734
+ },
735
+ },
736
+ {
737
+ displayName: 'Additional Fields',
738
+ name: 'additionalFields',
739
+ type: 'collection',
740
+ placeholder: 'Add Field',
741
+ default: {},
742
+ displayOptions: {
743
+ show: {
744
+ resource: ['jobs'],
745
+ operation: ['listJobStatusHistory'],
746
+ },
747
+ },
748
+ options: [
749
+ {
750
+ displayName: 'Direction',
751
+ name: 'direction',
752
+ type: 'options',
753
+ options: [
754
+ { name: 'Ascending', value: 'ascending' },
755
+ { name: 'Descending', value: 'descending' },
756
+ ],
757
+ default: 'descending',
758
+ description: 'Sort direction for status history entries',
759
+ },
760
+ ],
761
+ },
762
+ // ── Create Job Constraint fields ──
763
+ {
764
+ displayName: 'Job ID',
765
+ name: 'jobId',
766
+ type: 'number',
767
+ required: true,
768
+ default: 0,
769
+ description: 'The numeric ID of the job',
770
+ displayOptions: {
771
+ show: {
772
+ resource: ['jobs'],
773
+ operation: ['createJobConstraint'],
774
+ },
775
+ },
776
+ },
777
+ {
778
+ displayName: 'Constraint Type',
779
+ name: 'type',
780
+ type: 'options',
781
+ required: true,
782
+ options: [
783
+ { name: 'Job Must Complete Before', value: 'jobMustCompleteBefore' },
784
+ { name: 'Job Must Complete In Available Hours', value: 'jobMustCompleteInAvailableHours' },
785
+ { name: 'Job Must Start After', value: 'jobMustStartAfter' },
786
+ { name: 'Job Must Start Before', value: 'jobMustStartBefore' },
787
+ { name: 'Job Must Start In Available Hours', value: 'jobMustStartInAvailableHours' },
788
+ { name: 'Job Requires Resource Skill', value: 'jobRequiresResourceSkill' },
789
+ { name: 'Job Requires Vehicle Attribute', value: 'jobRequiresVehicleAttribute' },
790
+ { name: 'Job Resource', value: 'jobResource' },
791
+ { name: 'Job Resource Group', value: 'jobResourceGroup' },
792
+ { name: 'Job Vehicle', value: 'jobVehicle' },
793
+ { name: 'Job Vehicle Group', value: 'jobVehicleGroup' },
794
+ ],
795
+ default: 'jobMustStartAfter',
796
+ description: 'The type of scheduling constraint to add',
797
+ displayOptions: {
798
+ show: {
799
+ resource: ['jobs'],
800
+ operation: ['createJobConstraint'],
801
+ },
802
+ },
803
+ },
804
+ {
805
+ displayName: 'Additional Fields',
806
+ name: 'additionalFields',
807
+ type: 'collection',
808
+ placeholder: 'Add Field',
809
+ default: {},
810
+ displayOptions: {
811
+ show: {
812
+ resource: ['jobs'],
813
+ operation: ['createJobConstraint'],
814
+ },
815
+ },
816
+ options: [
817
+ {
818
+ displayName: 'Constraint At',
819
+ name: 'constraintAt',
820
+ type: 'dateTime',
821
+ default: '',
822
+ description: 'Date/time value for time-based constraints (UTC)',
823
+ },
824
+ {
825
+ displayName: 'Entity ID',
826
+ name: 'entityId',
827
+ type: 'number',
828
+ default: 0,
829
+ description: 'ID of the related entity (resource, vehicle, skill, etc.)',
830
+ },
831
+ ],
832
+ },
833
+ // ── Delete Job Constraint fields ──
834
+ {
835
+ displayName: 'Constraint ID',
836
+ name: 'constraintId',
837
+ type: 'number',
838
+ required: true,
839
+ default: 0,
840
+ description: 'The numeric ID of the constraint to delete',
841
+ displayOptions: {
842
+ show: {
843
+ resource: ['jobs'],
844
+ operation: ['deleteJobConstraint'],
845
+ },
846
+ },
847
+ },
848
+ // ── List Job Constraints fields ──
849
+ {
850
+ displayName: 'Job ID',
851
+ name: 'jobId',
852
+ type: 'number',
853
+ required: true,
854
+ default: 0,
855
+ description: 'The numeric ID of the job',
856
+ displayOptions: {
857
+ show: {
858
+ resource: ['jobs'],
859
+ operation: ['listJobConstraints'],
860
+ },
861
+ },
862
+ },
863
+ {
864
+ displayName: 'Return All',
865
+ name: 'returnAll',
866
+ type: 'boolean',
867
+ default: false,
868
+ description: 'Whether to return all results or only up to a given page size',
869
+ displayOptions: {
870
+ show: {
871
+ resource: ['jobs'],
872
+ operation: ['listJobConstraints'],
873
+ },
874
+ },
875
+ },
876
+ {
877
+ displayName: 'Page Size',
878
+ name: 'pageSize',
879
+ type: 'number',
880
+ typeOptions: { minValue: 1, maxValue: 1000 },
881
+ default: 100,
882
+ description: 'Number of results per page',
883
+ displayOptions: {
884
+ show: {
885
+ resource: ['jobs'],
886
+ operation: ['listJobConstraints'],
887
+ returnAll: [false],
888
+ },
889
+ },
890
+ },
891
+ {
892
+ displayName: 'Page Number',
893
+ name: 'pageNumber',
894
+ type: 'number',
895
+ typeOptions: { minValue: 1 },
896
+ default: 1,
897
+ description: 'Page to retrieve (1-based)',
898
+ displayOptions: {
899
+ show: {
900
+ resource: ['jobs'],
901
+ operation: ['listJobConstraints'],
902
+ returnAll: [false],
903
+ },
904
+ },
905
+ },
906
+ // ── Create Job Stock fields ──
907
+ {
908
+ displayName: 'Job ID',
909
+ name: 'jobId',
910
+ type: 'number',
911
+ required: true,
912
+ default: 0,
913
+ description: 'The numeric ID of the job',
914
+ displayOptions: {
915
+ show: {
916
+ resource: ['jobs'],
917
+ operation: ['createJobStock'],
918
+ },
919
+ },
920
+ },
921
+ {
922
+ displayName: 'Additional Fields',
923
+ name: 'additionalFields',
924
+ type: 'collection',
925
+ placeholder: 'Add Field',
926
+ default: {},
927
+ displayOptions: {
928
+ show: {
929
+ resource: ['jobs'],
930
+ operation: ['createJobStock'],
931
+ },
932
+ },
933
+ options: [
934
+ {
935
+ displayName: 'Action',
936
+ name: 'action',
937
+ type: 'options',
938
+ options: [
939
+ { name: 'Brought And Left', value: 'broughtAndLeft' },
940
+ { name: 'Brought And Taken Back', value: 'broughtAndTakenBack' },
941
+ { name: 'No Movement', value: 'noMovement' },
942
+ { name: 'On Site And Left', value: 'onSiteAndLeft' },
943
+ { name: 'On Site And Taken Back', value: 'onSiteAndTakenBack' },
944
+ { name: 'Used In Stock', value: 'usedInStock' },
945
+ ],
946
+ default: 'noMovement',
947
+ description: 'Stock movement action',
948
+ },
949
+ {
950
+ displayName: 'Quantity Planned',
951
+ name: 'quantityPlanned',
952
+ type: 'number',
953
+ default: 0,
954
+ description: 'Planned quantity of stock',
955
+ },
956
+ {
957
+ displayName: 'Stock Details ID',
958
+ name: 'stockDetailsId',
959
+ type: 'number',
960
+ default: 0,
961
+ description: 'Stock details ID',
962
+ },
963
+ {
964
+ displayName: 'Stock Item ID',
965
+ name: 'stockItemId',
966
+ type: 'number',
967
+ default: 0,
968
+ description: 'Stock item ID',
969
+ },
970
+ ],
971
+ },
972
+ // ── List Job Stock fields ──
973
+ {
974
+ displayName: 'Job ID',
975
+ name: 'jobId',
976
+ type: 'number',
977
+ required: true,
978
+ default: 0,
979
+ description: 'The numeric ID of the job',
980
+ displayOptions: {
981
+ show: {
982
+ resource: ['jobs'],
983
+ operation: ['listJobStock'],
984
+ },
985
+ },
986
+ },
987
+ {
988
+ displayName: 'Return All',
989
+ name: 'returnAll',
990
+ type: 'boolean',
991
+ default: false,
992
+ description: 'Whether to return all results or only up to a given page size',
993
+ displayOptions: {
994
+ show: {
995
+ resource: ['jobs'],
996
+ operation: ['listJobStock'],
997
+ },
998
+ },
999
+ },
1000
+ {
1001
+ displayName: 'Page Size',
1002
+ name: 'pageSize',
1003
+ type: 'number',
1004
+ typeOptions: { minValue: 1, maxValue: 1000 },
1005
+ default: 100,
1006
+ description: 'Number of results per page',
1007
+ displayOptions: {
1008
+ show: {
1009
+ resource: ['jobs'],
1010
+ operation: ['listJobStock'],
1011
+ returnAll: [false],
1012
+ },
1013
+ },
1014
+ },
1015
+ {
1016
+ displayName: 'Page Number',
1017
+ name: 'pageNumber',
1018
+ type: 'number',
1019
+ typeOptions: { minValue: 1 },
1020
+ default: 1,
1021
+ description: 'Page to retrieve (1-based)',
1022
+ displayOptions: {
1023
+ show: {
1024
+ resource: ['jobs'],
1025
+ operation: ['listJobStock'],
1026
+ returnAll: [false],
1027
+ },
1028
+ },
1029
+ },
1030
+ ];
1031
+ //# sourceMappingURL=JobsDescription.js.map