@crowdin/n8n-nodes-crowdin 0.12.0 → 0.14.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 (54) hide show
  1. package/dist/nodes/Crowdin/methods/common/index.js +3 -0
  2. package/dist/nodes/Crowdin/methods/common/index.js.map +1 -1
  3. package/dist/nodes/Crowdin/properties/common/extensions/advisors.d.ts +2 -0
  4. package/dist/nodes/Crowdin/properties/common/extensions/advisors.js +130 -0
  5. package/dist/nodes/Crowdin/properties/common/extensions/advisors.js.map +1 -0
  6. package/dist/nodes/Crowdin/properties/common/extensions/index.js +2 -1
  7. package/dist/nodes/Crowdin/properties/common/extensions/index.js.map +1 -1
  8. package/dist/nodes/Crowdin/properties/crowdin/fileBased/advisor.d.ts +2 -0
  9. package/dist/nodes/Crowdin/properties/crowdin/fileBased/advisor.js +865 -0
  10. package/dist/nodes/Crowdin/properties/crowdin/fileBased/advisor.js.map +1 -0
  11. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js +526 -311
  12. package/dist/nodes/Crowdin/properties/crowdin/fileBased/ai.js.map +1 -1
  13. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js +42 -36
  14. package/dist/nodes/Crowdin/properties/crowdin/fileBased/index.js.map +1 -1
  15. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js +46 -12
  16. package/dist/nodes/Crowdin/properties/crowdin/fileBased/projects.js.map +1 -1
  17. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js +110 -60
  18. package/dist/nodes/Crowdin/properties/crowdin/fileBased/tasks.js.map +1 -1
  19. package/dist/nodes/Crowdin/properties/crowdin/stringBased/advisor.d.ts +2 -0
  20. package/dist/nodes/Crowdin/properties/crowdin/stringBased/advisor.js +865 -0
  21. package/dist/nodes/Crowdin/properties/crowdin/stringBased/advisor.js.map +1 -0
  22. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js +526 -311
  23. package/dist/nodes/Crowdin/properties/crowdin/stringBased/ai.js.map +1 -1
  24. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js +14 -8
  25. package/dist/nodes/Crowdin/properties/crowdin/stringBased/index.js.map +1 -1
  26. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js +36 -2
  27. package/dist/nodes/Crowdin/properties/crowdin/stringBased/projects.js.map +1 -1
  28. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js +58 -60
  29. package/dist/nodes/Crowdin/properties/crowdin/stringBased/tasks.js.map +1 -1
  30. package/dist/nodes/Crowdin/properties/enterprise/fileBased/advisor.d.ts +2 -0
  31. package/dist/nodes/Crowdin/properties/enterprise/fileBased/advisor.js +865 -0
  32. package/dist/nodes/Crowdin/properties/enterprise/fileBased/advisor.js.map +1 -0
  33. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js +527 -312
  34. package/dist/nodes/Crowdin/properties/enterprise/fileBased/ai.js.map +1 -1
  35. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js +28 -22
  36. package/dist/nodes/Crowdin/properties/enterprise/fileBased/index.js.map +1 -1
  37. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js +46 -12
  38. package/dist/nodes/Crowdin/properties/enterprise/fileBased/projectsAndGroups.js.map +1 -1
  39. package/dist/nodes/Crowdin/properties/enterprise/fileBased/tasks.js +110 -60
  40. package/dist/nodes/Crowdin/properties/enterprise/fileBased/tasks.js.map +1 -1
  41. package/dist/nodes/Crowdin/properties/enterprise/stringBased/advisor.d.ts +2 -0
  42. package/dist/nodes/Crowdin/properties/enterprise/stringBased/advisor.js +865 -0
  43. package/dist/nodes/Crowdin/properties/enterprise/stringBased/advisor.js.map +1 -0
  44. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js +527 -312
  45. package/dist/nodes/Crowdin/properties/enterprise/stringBased/ai.js.map +1 -1
  46. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js +28 -22
  47. package/dist/nodes/Crowdin/properties/enterprise/stringBased/index.js.map +1 -1
  48. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js +36 -2
  49. package/dist/nodes/Crowdin/properties/enterprise/stringBased/projectsAndGroups.js.map +1 -1
  50. package/dist/nodes/Crowdin/properties/enterprise/stringBased/tasks.js +62 -64
  51. package/dist/nodes/Crowdin/properties/enterprise/stringBased/tasks.js.map +1 -1
  52. package/dist/package.json +1 -1
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +1 -1
@@ -0,0 +1,865 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.advisorProperties = void 0;
4
+ const preSend_1 = require("../../../utils/preSend");
5
+ exports.advisorProperties = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: {
12
+ show: {
13
+ resource: [
14
+ 'advisor'
15
+ ]
16
+ }
17
+ },
18
+ options: [
19
+ {
20
+ name: 'Create or Update Application Advisor Insight',
21
+ value: 'api.projects.applications.modules.advisors.insights.put',
22
+ action: 'Create or Update Application Advisor Insight',
23
+ description: '**Required scopes:** `project.advisor` (Read and Write).\n\nCalled by an installed application\'s `advisor-inspector` module to publish the result of its own check against a string. Subsequent calls for the same string overwrite the previous insight from this module.',
24
+ routing: {
25
+ request: {
26
+ method: 'PUT',
27
+ url: '=/projects/{{$parameter["projectId"]}}/applications/{{$parameter["applicationIdentifier"]}}/modules/{{$parameter["moduleKey"]}}/advisors/insights'
28
+ }
29
+ }
30
+ },
31
+ {
32
+ name: 'Create Advisor Check',
33
+ value: 'api.projects.advisors.checks.post',
34
+ action: 'Create Advisor Check',
35
+ description: '**Required scopes:** `project.advisor` (Read and Write).\n\nTriggers an asynchronous re-check of advisor inspectors for the project. At most one of `category` or `inspectors` may be present; if neither is supplied, every inspector is re-checked. Supplying `category` re-checks all inspectors in that category. Supplying `inspectors` re-checks only the listed inspectors; pass `options` on an entry to opt into AI validation for that inspector. Returns a job-progress descriptor — distinct from PATCH `/insights/{insightId}` (user-facing Insight mutation) and PUT `/applications/.../insight` (app-pushed upsert).',
36
+ routing: {
37
+ request: {
38
+ method: 'POST',
39
+ url: '=/projects/{{$parameter["projectId"]}}/advisors/checks'
40
+ }
41
+ }
42
+ },
43
+ {
44
+ name: 'Get Advisor Check Status',
45
+ value: 'api.projects.advisors.checks.get',
46
+ action: 'Get Advisor Check Status',
47
+ description: '**Required scopes:** `project.advisor` (Read only).\n\nReturns the status of an advisor check job',
48
+ routing: {
49
+ request: {
50
+ method: 'GET',
51
+ url: '=/projects/{{$parameter["projectId"]}}/advisors/checks/{{$parameter["checkId"]}}'
52
+ }
53
+ }
54
+ },
55
+ {
56
+ name: 'List Advisor Insights',
57
+ value: 'api.projects.advisors.insights.getMany',
58
+ action: 'List Advisor Insights',
59
+ description: '**Required scopes:** `project.advisor` (Read only).',
60
+ routing: {
61
+ request: {
62
+ method: 'GET',
63
+ url: '=/projects/{{$parameter["projectId"]}}/advisors/insights'
64
+ },
65
+ send: {
66
+ paginate: '={{$parameter["returnAll"]}}'
67
+ },
68
+ output: {
69
+ postReceive: [
70
+ {
71
+ type: 'rootProperty',
72
+ enabled: '={{!$parameter["returnAll"]}}',
73
+ properties: {
74
+ property: 'data'
75
+ }
76
+ }
77
+ ]
78
+ }
79
+ }
80
+ }
81
+ ],
82
+ default: 'api.projects.applications.modules.advisors.insights.put'
83
+ },
84
+ {
85
+ displayName: 'PUT /projects/{projectId}/applications/{applicationIdentifier}/modules/{moduleKey}/advisors/insights',
86
+ name: 'operation',
87
+ type: 'notice',
88
+ typeOptions: {
89
+ theme: 'info'
90
+ },
91
+ default: '',
92
+ displayOptions: {
93
+ show: {
94
+ resource: [
95
+ 'advisor'
96
+ ],
97
+ operation: [
98
+ 'api.projects.applications.modules.advisors.insights.put'
99
+ ]
100
+ }
101
+ }
102
+ },
103
+ {
104
+ displayName: 'POST /projects/{projectId}/advisors/checks',
105
+ name: 'operation',
106
+ type: 'notice',
107
+ typeOptions: {
108
+ theme: 'info'
109
+ },
110
+ default: '',
111
+ displayOptions: {
112
+ show: {
113
+ resource: [
114
+ 'advisor'
115
+ ],
116
+ operation: [
117
+ 'api.projects.advisors.checks.post'
118
+ ]
119
+ }
120
+ }
121
+ },
122
+ {
123
+ displayName: 'GET /projects/{projectId}/advisors/checks/{checkId}',
124
+ name: 'operation',
125
+ type: 'notice',
126
+ typeOptions: {
127
+ theme: 'info'
128
+ },
129
+ default: '',
130
+ displayOptions: {
131
+ show: {
132
+ resource: [
133
+ 'advisor'
134
+ ],
135
+ operation: [
136
+ 'api.projects.advisors.checks.get'
137
+ ]
138
+ }
139
+ }
140
+ },
141
+ {
142
+ displayName: 'GET /projects/{projectId}/advisors/insights',
143
+ name: 'operation',
144
+ type: 'notice',
145
+ typeOptions: {
146
+ theme: 'info'
147
+ },
148
+ default: '',
149
+ displayOptions: {
150
+ show: {
151
+ resource: [
152
+ 'advisor'
153
+ ],
154
+ operation: [
155
+ 'api.projects.advisors.insights.getMany'
156
+ ]
157
+ }
158
+ }
159
+ },
160
+ {
161
+ displayName: 'Project Id',
162
+ name: 'projectId',
163
+ required: true,
164
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
165
+ default: '',
166
+ type: 'options',
167
+ displayOptions: {
168
+ show: {
169
+ resource: [
170
+ 'advisor'
171
+ ],
172
+ operation: [
173
+ 'api.projects.applications.modules.advisors.insights.put'
174
+ ]
175
+ }
176
+ },
177
+ typeOptions: {
178
+ loadOptionsMethod: 'getProjects'
179
+ }
180
+ },
181
+ {
182
+ displayName: 'Application Identifier',
183
+ name: 'applicationIdentifier',
184
+ required: true,
185
+ description: undefined,
186
+ default: '',
187
+ type: 'options',
188
+ displayOptions: {
189
+ show: {
190
+ resource: [
191
+ 'advisor'
192
+ ],
193
+ operation: [
194
+ 'api.projects.applications.modules.advisors.insights.put'
195
+ ]
196
+ }
197
+ },
198
+ typeOptions: {
199
+ loadOptionsMethod: 'getApplicationInstallations'
200
+ }
201
+ },
202
+ {
203
+ displayName: 'Module Key',
204
+ name: 'moduleKey',
205
+ required: true,
206
+ description: undefined,
207
+ default: '',
208
+ type: 'string',
209
+ displayOptions: {
210
+ show: {
211
+ resource: [
212
+ 'advisor'
213
+ ],
214
+ operation: [
215
+ 'api.projects.applications.modules.advisors.insights.put'
216
+ ]
217
+ }
218
+ }
219
+ },
220
+ {
221
+ displayName: 'Outcome',
222
+ required: true,
223
+ name: 'outcome',
224
+ type: 'options',
225
+ default: 'flagged',
226
+ description: 'Result of the app\'s check. `flagged` — issue detected; `clear` — on target; `not_applicable` — inspector does not apply to this project.',
227
+ options: [
228
+ {
229
+ name: 'flagged',
230
+ value: 'flagged'
231
+ },
232
+ {
233
+ name: 'clear',
234
+ value: 'clear'
235
+ },
236
+ {
237
+ name: 'not_applicable',
238
+ value: 'not_applicable'
239
+ }
240
+ ],
241
+ routing: {
242
+ send: {
243
+ property: 'outcome',
244
+ propertyInDotNotation: false,
245
+ type: 'body',
246
+ value: '={{ $value }}'
247
+ }
248
+ },
249
+ displayOptions: {
250
+ show: {
251
+ resource: [
252
+ 'advisor'
253
+ ],
254
+ operation: [
255
+ 'api.projects.applications.modules.advisors.insights.put'
256
+ ]
257
+ }
258
+ }
259
+ },
260
+ {
261
+ displayName: 'Checked At',
262
+ required: true,
263
+ name: 'dateTime:checkedAt',
264
+ type: 'dateTime',
265
+ default: '',
266
+ description: 'Date when the app performed this check (ISO 8601)',
267
+ routing: {
268
+ send: {
269
+ property: 'checkedAt',
270
+ propertyInDotNotation: false,
271
+ type: 'body',
272
+ value: '={{ $value || undefined }}'
273
+ }
274
+ },
275
+ displayOptions: {
276
+ show: {
277
+ resource: [
278
+ 'advisor'
279
+ ],
280
+ operation: [
281
+ 'api.projects.applications.modules.advisors.insights.put'
282
+ ]
283
+ }
284
+ },
285
+ placeholder: '2026-05-21T14:30:00+00:00'
286
+ },
287
+ {
288
+ displayName: 'Metrics',
289
+ name: 'metrics',
290
+ type: 'fixedCollection',
291
+ default: {},
292
+ description: 'Structured metrics produced by the app for this insight.',
293
+ routing: {
294
+ send: {
295
+ property: 'metrics',
296
+ propertyInDotNotation: false,
297
+ type: 'body',
298
+ value: '={{ $value }}',
299
+ preSend: [
300
+ preSend_1.normalizeFieldBody
301
+ ]
302
+ }
303
+ },
304
+ displayOptions: {
305
+ show: {
306
+ resource: [
307
+ 'advisor'
308
+ ],
309
+ operation: [
310
+ 'api.projects.applications.modules.advisors.insights.put'
311
+ ]
312
+ }
313
+ },
314
+ typeOptions: {
315
+ multipleValues: true
316
+ },
317
+ placeholder: 'Add Item',
318
+ options: [
319
+ {
320
+ displayName: 'Advisor Insight Metric',
321
+ name: 'items',
322
+ values: [
323
+ {
324
+ displayName: 'Key',
325
+ name: 'key',
326
+ type: 'string',
327
+ default: '',
328
+ description: undefined,
329
+ placeholder: 'quality_score'
330
+ },
331
+ {
332
+ displayName: 'Value',
333
+ name: 'value',
334
+ type: 'number',
335
+ default: 0,
336
+ description: undefined,
337
+ placeholder: '12'
338
+ },
339
+ {
340
+ displayName: 'Unit',
341
+ name: 'unit',
342
+ type: 'options',
343
+ default: '',
344
+ description: undefined,
345
+ options: [
346
+ {
347
+ name: '-',
348
+ value: ''
349
+ },
350
+ {
351
+ name: 'percent',
352
+ value: 'percent'
353
+ },
354
+ {
355
+ name: 'count',
356
+ value: 'count'
357
+ }
358
+ ],
359
+ placeholder: 'percent'
360
+ },
361
+ {
362
+ displayName: 'Threshold',
363
+ name: 'threshold',
364
+ type: 'number',
365
+ default: 0,
366
+ description: undefined,
367
+ placeholder: '50'
368
+ },
369
+ {
370
+ displayName: 'Tone',
371
+ name: 'tone',
372
+ type: 'options',
373
+ default: '',
374
+ description: undefined,
375
+ options: [
376
+ {
377
+ name: '-',
378
+ value: ''
379
+ },
380
+ {
381
+ name: 'default',
382
+ value: 'default'
383
+ },
384
+ {
385
+ name: 'success',
386
+ value: 'success'
387
+ },
388
+ {
389
+ name: 'danger',
390
+ value: 'danger'
391
+ }
392
+ ],
393
+ placeholder: 'danger'
394
+ },
395
+ {
396
+ displayName: 'Source',
397
+ name: 'source',
398
+ type: 'options',
399
+ default: '',
400
+ description: 'What produced the metric. Omitted for metrics recorded before sources were tracked.',
401
+ options: [
402
+ {
403
+ name: '-',
404
+ value: ''
405
+ },
406
+ {
407
+ name: 'deterministic',
408
+ value: 'deterministic'
409
+ },
410
+ {
411
+ name: 'ai',
412
+ value: 'ai'
413
+ },
414
+ {
415
+ name: 'app',
416
+ value: 'app'
417
+ }
418
+ ],
419
+ placeholder: 'deterministic'
420
+ },
421
+ {
422
+ displayName: 'Checked At',
423
+ name: 'checkedAt',
424
+ type: 'string',
425
+ default: '',
426
+ description: 'Date when the metric was measured (ISO 8601). Omitted for metrics measured at the insight\'s top-level `checkedAt`.',
427
+ placeholder: '2026-04-06T10:30:00+00:00'
428
+ }
429
+ ]
430
+ }
431
+ ]
432
+ },
433
+ {
434
+ displayName: 'Recommendations',
435
+ name: 'recommendations',
436
+ type: 'fixedCollection',
437
+ default: {},
438
+ description: 'Actionable recommendations the app wants to surface for this insight.',
439
+ routing: {
440
+ send: {
441
+ property: 'recommendations',
442
+ propertyInDotNotation: false,
443
+ type: 'body',
444
+ value: '={{ $value }}',
445
+ preSend: [
446
+ preSend_1.normalizeFieldBody
447
+ ]
448
+ }
449
+ },
450
+ displayOptions: {
451
+ show: {
452
+ resource: [
453
+ 'advisor'
454
+ ],
455
+ operation: [
456
+ 'api.projects.applications.modules.advisors.insights.put'
457
+ ]
458
+ }
459
+ },
460
+ typeOptions: {
461
+ multipleValues: true
462
+ },
463
+ placeholder: 'Add Item',
464
+ options: [
465
+ {
466
+ displayName: 'Advisor Insight Recommendation',
467
+ name: 'items',
468
+ values: [
469
+ {
470
+ displayName: 'Id',
471
+ name: 'id',
472
+ type: 'string',
473
+ default: '',
474
+ description: undefined,
475
+ placeholder: 'run_ai_context_validation'
476
+ },
477
+ {
478
+ displayName: 'Primary',
479
+ name: 'primary',
480
+ type: 'boolean',
481
+ default: false,
482
+ description: undefined,
483
+ placeholder: 'true'
484
+ },
485
+ {
486
+ displayName: 'Params',
487
+ name: 'json:params',
488
+ type: 'json',
489
+ default: '{}',
490
+ description: 'Parameters provided alongside the recommendation (e.g., `projectId`). Typically used to construct the recommendation\'s target URL.'
491
+ }
492
+ ]
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ displayName: 'Payload',
498
+ name: 'payload',
499
+ type: 'json',
500
+ default: '{}',
501
+ description: 'Free-form data the app wants to keep attached to this insight. Stored as-is — the backend does not interpret its contents.',
502
+ routing: {
503
+ send: {
504
+ property: 'payload',
505
+ propertyInDotNotation: false,
506
+ type: 'body',
507
+ value: '={{ JSON.parse($value) }}'
508
+ }
509
+ },
510
+ displayOptions: {
511
+ show: {
512
+ resource: [
513
+ 'advisor'
514
+ ],
515
+ operation: [
516
+ 'api.projects.applications.modules.advisors.insights.put'
517
+ ]
518
+ }
519
+ }
520
+ },
521
+ {
522
+ displayName: 'Project Id',
523
+ name: 'projectId',
524
+ required: true,
525
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
526
+ default: '',
527
+ type: 'options',
528
+ displayOptions: {
529
+ show: {
530
+ resource: [
531
+ 'advisor'
532
+ ],
533
+ operation: [
534
+ 'api.projects.advisors.checks.post'
535
+ ]
536
+ }
537
+ },
538
+ typeOptions: {
539
+ loadOptionsMethod: 'getProjects'
540
+ }
541
+ },
542
+ {
543
+ displayName: 'Category',
544
+ name: 'category',
545
+ type: 'string',
546
+ default: '',
547
+ description: 'Optional category to scope the check to. Mutually exclusive with `inspectors`.',
548
+ routing: {
549
+ send: {
550
+ property: 'category',
551
+ propertyInDotNotation: false,
552
+ type: 'body',
553
+ value: '={{ $value || undefined }}'
554
+ }
555
+ },
556
+ displayOptions: {
557
+ show: {
558
+ resource: [
559
+ 'advisor'
560
+ ],
561
+ operation: [
562
+ 'api.projects.advisors.checks.post'
563
+ ]
564
+ }
565
+ },
566
+ placeholder: 'context'
567
+ },
568
+ {
569
+ displayName: 'Inspectors',
570
+ name: 'inspectors',
571
+ type: 'fixedCollection',
572
+ default: {},
573
+ description: 'Optional list of inspectors to re-check. Mutually exclusive with `category`.',
574
+ routing: {
575
+ send: {
576
+ property: 'inspectors',
577
+ propertyInDotNotation: false,
578
+ type: 'body',
579
+ value: '={{ $value }}',
580
+ preSend: [
581
+ preSend_1.normalizeFieldBody
582
+ ]
583
+ }
584
+ },
585
+ displayOptions: {
586
+ show: {
587
+ resource: [
588
+ 'advisor'
589
+ ],
590
+ operation: [
591
+ 'api.projects.advisors.checks.post'
592
+ ]
593
+ }
594
+ },
595
+ typeOptions: {
596
+ multipleValues: true
597
+ },
598
+ placeholder: 'Add Item',
599
+ options: [
600
+ {
601
+ displayName: 'Item',
602
+ name: 'items',
603
+ values: [
604
+ {
605
+ displayName: 'Key',
606
+ name: 'key',
607
+ type: 'string',
608
+ default: '',
609
+ description: undefined,
610
+ placeholder: 'string_context_relevance',
611
+ required: true
612
+ },
613
+ {
614
+ displayName: 'Options',
615
+ name: 'options',
616
+ type: 'fixedCollection',
617
+ default: {},
618
+ description: 'Per-inspector options. Currently only `string_context_relevance` supports AI options.',
619
+ placeholder: 'Add Field',
620
+ options: [
621
+ {
622
+ displayName: 'Fields',
623
+ name: 'fields',
624
+ values: [
625
+ {
626
+ displayName: 'Mode',
627
+ name: 'mode',
628
+ type: 'options',
629
+ default: '',
630
+ description: undefined,
631
+ options: [
632
+ {
633
+ name: '-',
634
+ value: ''
635
+ },
636
+ {
637
+ name: 'auto',
638
+ value: 'auto'
639
+ },
640
+ {
641
+ name: 'all',
642
+ value: 'all'
643
+ }
644
+ ],
645
+ placeholder: 'auto'
646
+ },
647
+ {
648
+ displayName: 'Prompt Id',
649
+ name: 'promptId',
650
+ type: 'options',
651
+ default: '',
652
+ description: undefined,
653
+ typeOptions: {
654
+ loadOptionsMethod: 'getAiPrompts'
655
+ }
656
+ }
657
+ ]
658
+ }
659
+ ]
660
+ }
661
+ ]
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ displayName: 'Project Id',
667
+ name: 'projectId',
668
+ required: true,
669
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
670
+ default: '',
671
+ type: 'options',
672
+ displayOptions: {
673
+ show: {
674
+ resource: [
675
+ 'advisor'
676
+ ],
677
+ operation: [
678
+ 'api.projects.advisors.checks.get'
679
+ ]
680
+ }
681
+ },
682
+ typeOptions: {
683
+ loadOptionsMethod: 'getProjects'
684
+ }
685
+ },
686
+ {
687
+ displayName: 'Check Id',
688
+ name: 'checkId',
689
+ required: true,
690
+ description: 'Advisor Check Identifier, consists of 36 characters',
691
+ default: '',
692
+ type: 'string',
693
+ displayOptions: {
694
+ show: {
695
+ resource: [
696
+ 'advisor'
697
+ ],
698
+ operation: [
699
+ 'api.projects.advisors.checks.get'
700
+ ]
701
+ }
702
+ }
703
+ },
704
+ {
705
+ displayName: 'Project Id',
706
+ name: 'projectId',
707
+ required: true,
708
+ description: 'Project Identifier. Get via [List Projects](#operation/api.projects.getMany)',
709
+ default: '',
710
+ type: 'options',
711
+ displayOptions: {
712
+ show: {
713
+ resource: [
714
+ 'advisor'
715
+ ],
716
+ operation: [
717
+ 'api.projects.advisors.insights.getMany'
718
+ ]
719
+ }
720
+ },
721
+ typeOptions: {
722
+ loadOptionsMethod: 'getProjects'
723
+ }
724
+ },
725
+ {
726
+ displayName: 'Limit',
727
+ name: 'limit',
728
+ description: 'Max number of results to return',
729
+ default: 50,
730
+ type: 'number',
731
+ routing: {
732
+ send: {
733
+ type: 'query',
734
+ property: 'limit',
735
+ value: '={{ typeof $value === \'number\' ? $value : undefined }}',
736
+ propertyInDotNotation: false
737
+ }
738
+ },
739
+ displayOptions: {
740
+ show: {
741
+ resource: [
742
+ 'advisor'
743
+ ],
744
+ operation: [
745
+ 'api.projects.advisors.insights.getMany'
746
+ ],
747
+ returnAll: [
748
+ false
749
+ ]
750
+ }
751
+ },
752
+ typeOptions: {
753
+ minValue: 1
754
+ }
755
+ },
756
+ {
757
+ displayName: 'Is Dismissed',
758
+ name: 'isDismissed',
759
+ description: 'Filter insights by dismissal flag. Omit to return both dismissed and active insights.',
760
+ default: '',
761
+ type: 'options',
762
+ options: [
763
+ {
764
+ name: '-',
765
+ value: ''
766
+ },
767
+ {
768
+ name: '0',
769
+ value: 0
770
+ },
771
+ {
772
+ name: '1',
773
+ value: 1
774
+ }
775
+ ],
776
+ routing: {
777
+ send: {
778
+ type: 'query',
779
+ property: 'isDismissed',
780
+ value: '={{ $value || undefined }}',
781
+ propertyInDotNotation: false
782
+ }
783
+ },
784
+ displayOptions: {
785
+ show: {
786
+ resource: [
787
+ 'advisor'
788
+ ],
789
+ operation: [
790
+ 'api.projects.advisors.insights.getMany'
791
+ ]
792
+ }
793
+ }
794
+ },
795
+ {
796
+ displayName: 'Status',
797
+ name: 'status',
798
+ description: 'Filter insights by status (comma-separated)',
799
+ default: '',
800
+ type: 'string',
801
+ routing: {
802
+ send: {
803
+ type: 'query',
804
+ property: 'status',
805
+ value: '={{ $value || undefined }}',
806
+ propertyInDotNotation: false
807
+ }
808
+ },
809
+ displayOptions: {
810
+ show: {
811
+ resource: [
812
+ 'advisor'
813
+ ],
814
+ operation: [
815
+ 'api.projects.advisors.insights.getMany'
816
+ ]
817
+ }
818
+ },
819
+ placeholder: 'pending,checking,outdated,done'
820
+ },
821
+ {
822
+ displayName: 'Outcome',
823
+ name: 'outcome',
824
+ description: 'Filter insights by outcome (comma-separated). `flagged` — issue detected; `clear` — on target; `not_applicable` — does not apply. Omit to return all checked insights (never-checked ones are excluded).',
825
+ default: '',
826
+ type: 'string',
827
+ routing: {
828
+ send: {
829
+ type: 'query',
830
+ property: 'outcome',
831
+ value: '={{ $value || undefined }}',
832
+ propertyInDotNotation: false
833
+ }
834
+ },
835
+ displayOptions: {
836
+ show: {
837
+ resource: [
838
+ 'advisor'
839
+ ],
840
+ operation: [
841
+ 'api.projects.advisors.insights.getMany'
842
+ ]
843
+ }
844
+ },
845
+ placeholder: 'flagged,clear'
846
+ },
847
+ {
848
+ displayName: 'Return All',
849
+ name: 'returnAll',
850
+ type: 'boolean',
851
+ default: true,
852
+ description: 'Whether to return all results or only up to a given limit',
853
+ displayOptions: {
854
+ show: {
855
+ resource: [
856
+ 'advisor'
857
+ ],
858
+ operation: [
859
+ 'api.projects.advisors.insights.getMany'
860
+ ]
861
+ }
862
+ }
863
+ }
864
+ ];
865
+ //# sourceMappingURL=advisor.js.map