@grexx/grexxlinter 0.2.2124 → 0.2.2179

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 (44) hide show
  1. package/cli.js +1 -1
  2. package/package.json +1 -1
  3. package/schemas/.coverage.json +6909 -2954
  4. package/schemas/activity.behavior.json +1037 -59
  5. package/schemas/activity.schema.json +79 -29
  6. package/schemas/activityAttribute.behavior.json +56 -0
  7. package/schemas/agent.behavior.json +44 -0
  8. package/schemas/agentTool.behavior.json +47 -0
  9. package/schemas/attribute.behavior.json +1503 -110
  10. package/schemas/casetype.behavior.json +854 -128
  11. package/schemas/catchBlock.behavior.json +22 -0
  12. package/schemas/container.behavior.json +74 -0
  13. package/schemas/customThrow.behavior.json +22 -0
  14. package/schemas/dataset.behavior.json +310 -18
  15. package/schemas/dataset.schema.json +51 -5
  16. package/schemas/datasetColumn.behavior.json +295 -11
  17. package/schemas/datasetCondition.behavior.json +247 -0
  18. package/schemas/directRole.behavior.json +68 -0
  19. package/schemas/forEach.behavior.json +82 -0
  20. package/schemas/form.behavior.json +25 -0
  21. package/schemas/formAction.behavior.json +947 -106
  22. package/schemas/formActionAi.behavior.json +22 -0
  23. package/schemas/formGroup.behavior.json +3 -0
  24. package/schemas/formfield.behavior.json +4523 -455
  25. package/schemas/indirectRole.behavior.json +82 -0
  26. package/schemas/mapping.behavior.json +608 -29
  27. package/schemas/menuItem.behavior.json +255 -0
  28. package/schemas/menuItem.schema.json +10 -0
  29. package/schemas/metadata.behavior.json +120 -0
  30. package/schemas/navigation.behavior.json +25 -0
  31. package/schemas/parallelBlock.behavior.json +5 -0
  32. package/schemas/picklist.behavior.json +108 -0
  33. package/schemas/platformAttribute.behavior.json +428 -1
  34. package/schemas/platformRole.behavior.json +44 -0
  35. package/schemas/requestContext.behavior.json +119 -0
  36. package/schemas/simpleCondition.behavior.json +384 -1
  37. package/schemas/taskQueue.behavior.json +17 -0
  38. package/schemas/template.behavior.json +11 -0
  39. package/schemas/trigger.behavior.json +296 -0
  40. package/schemas/tryBlock.behavior.json +25 -0
  41. package/schemas/view.behavior.json +259 -0
  42. package/schemas/while.behavior.json +22 -0
  43. package/schemas/widget.behavior.json +1755 -119
  44. package/schemas/widget.schema.json +144 -0
@@ -80,6 +80,40 @@
80
80
  "isEmpty": false
81
81
  }
82
82
  ],
83
+ "forbiddenWhen": [
84
+ {
85
+ "op": "and",
86
+ "items": [
87
+ {
88
+ "op": "cmp",
89
+ "field": "toPage",
90
+ "fieldName": "To page",
91
+ "operator": "===",
92
+ "value": "",
93
+ "valueIsField": false,
94
+ "isEmpty": true
95
+ },
96
+ {
97
+ "op": "cmp",
98
+ "field": "toTriggerType",
99
+ "fieldName": "To type",
100
+ "operator": "==",
101
+ "value": "page",
102
+ "valueIsField": false,
103
+ "isEmpty": false
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "op": "cmp",
109
+ "field": "toTriggerType",
110
+ "fieldName": "To type",
111
+ "operator": "==",
112
+ "value": "",
113
+ "valueIsField": false,
114
+ "isEmpty": true
115
+ }
116
+ ],
83
117
  "optionsWhen": [
84
118
  {
85
119
  "when": {
@@ -279,6 +313,40 @@
279
313
  "valueIsField": false,
280
314
  "isEmpty": false
281
315
  }
316
+ ],
317
+ "forbiddenWhen": [
318
+ {
319
+ "op": "and",
320
+ "items": [
321
+ {
322
+ "op": "cmp",
323
+ "field": "toPage",
324
+ "fieldName": "To page",
325
+ "operator": "===",
326
+ "value": "",
327
+ "valueIsField": false,
328
+ "isEmpty": true
329
+ },
330
+ {
331
+ "op": "cmp",
332
+ "field": "toTriggerType",
333
+ "fieldName": "To type",
334
+ "operator": "==",
335
+ "value": "page",
336
+ "valueIsField": false,
337
+ "isEmpty": false
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "op": "cmp",
343
+ "field": "toTriggerType",
344
+ "fieldName": "To type",
345
+ "operator": "==",
346
+ "value": "",
347
+ "valueIsField": false,
348
+ "isEmpty": true
349
+ }
282
350
  ]
283
351
  },
284
352
  "additionalIn": {
@@ -308,6 +376,17 @@
308
376
  "valueIsField": false,
309
377
  "isEmpty": false
310
378
  }
379
+ ],
380
+ "forbiddenWhen": [
381
+ {
382
+ "op": "cmp",
383
+ "field": "showProgress",
384
+ "fieldName": "Show Progress",
385
+ "operator": "!=",
386
+ "value": "true",
387
+ "valueIsField": false,
388
+ "isEmpty": false
389
+ }
311
390
  ]
312
391
  },
313
392
  "progressTitle": {
@@ -322,6 +401,17 @@
322
401
  "valueIsField": false,
323
402
  "isEmpty": false
324
403
  }
404
+ ],
405
+ "forbiddenWhen": [
406
+ {
407
+ "op": "cmp",
408
+ "field": "showProgress",
409
+ "fieldName": "Show Progress",
410
+ "operator": "!=",
411
+ "value": "true",
412
+ "valueIsField": false,
413
+ "isEmpty": false
414
+ }
325
415
  ]
326
416
  },
327
417
  "caseTo": {
@@ -347,6 +437,53 @@
347
437
  "valueIsField": false,
348
438
  "isEmpty": false
349
439
  }
440
+ ],
441
+ "forbiddenWhen": [
442
+ {
443
+ "op": "cmp",
444
+ "field": "toTriggerType",
445
+ "fieldName": "To type",
446
+ "operator": "==",
447
+ "value": "casesInDataset",
448
+ "valueIsField": false,
449
+ "isEmpty": false
450
+ },
451
+ {
452
+ "op": "cmp",
453
+ "field": "toTriggerType",
454
+ "fieldName": "To type",
455
+ "operator": "==",
456
+ "value": "currentCase",
457
+ "valueIsField": false,
458
+ "isEmpty": false
459
+ },
460
+ {
461
+ "op": "cmp",
462
+ "field": "toTriggerType",
463
+ "fieldName": "To type",
464
+ "operator": "==",
465
+ "value": "foreachItem",
466
+ "valueIsField": false,
467
+ "isEmpty": false
468
+ },
469
+ {
470
+ "op": "cmp",
471
+ "field": "toTriggerType",
472
+ "fieldName": "To type",
473
+ "operator": "==",
474
+ "value": "page",
475
+ "valueIsField": false,
476
+ "isEmpty": false
477
+ },
478
+ {
479
+ "op": "cmp",
480
+ "field": "toTriggerType",
481
+ "fieldName": "To type",
482
+ "operator": "==",
483
+ "value": "parent",
484
+ "valueIsField": false,
485
+ "isEmpty": false
486
+ }
350
487
  ]
351
488
  },
352
489
  "datasetTo": {
@@ -372,6 +509,53 @@
372
509
  "valueIsField": false,
373
510
  "isEmpty": false
374
511
  }
512
+ ],
513
+ "forbiddenWhen": [
514
+ {
515
+ "op": "cmp",
516
+ "field": "toTriggerType",
517
+ "fieldName": "To type",
518
+ "operator": "==",
519
+ "value": "attributeValue",
520
+ "valueIsField": false,
521
+ "isEmpty": false
522
+ },
523
+ {
524
+ "op": "cmp",
525
+ "field": "toTriggerType",
526
+ "fieldName": "To type",
527
+ "operator": "==",
528
+ "value": "currentCase",
529
+ "valueIsField": false,
530
+ "isEmpty": false
531
+ },
532
+ {
533
+ "op": "cmp",
534
+ "field": "toTriggerType",
535
+ "fieldName": "To type",
536
+ "operator": "==",
537
+ "value": "foreachItem",
538
+ "valueIsField": false,
539
+ "isEmpty": false
540
+ },
541
+ {
542
+ "op": "cmp",
543
+ "field": "toTriggerType",
544
+ "fieldName": "To type",
545
+ "operator": "==",
546
+ "value": "page",
547
+ "valueIsField": false,
548
+ "isEmpty": false
549
+ },
550
+ {
551
+ "op": "cmp",
552
+ "field": "toTriggerType",
553
+ "fieldName": "To type",
554
+ "operator": "==",
555
+ "value": "parent",
556
+ "valueIsField": false,
557
+ "isEmpty": false
558
+ }
375
559
  ]
376
560
  },
377
561
  "forEachTo": {
@@ -397,6 +581,62 @@
397
581
  "valueIsField": false,
398
582
  "isEmpty": false
399
583
  }
584
+ ],
585
+ "forbiddenWhen": [
586
+ {
587
+ "op": "cmp",
588
+ "field": "toTriggerType",
589
+ "fieldName": "To type",
590
+ "operator": "==",
591
+ "value": "attributeValue",
592
+ "valueIsField": false,
593
+ "isEmpty": false
594
+ },
595
+ {
596
+ "op": "cmp",
597
+ "field": "toTriggerType",
598
+ "fieldName": "To type",
599
+ "operator": "==",
600
+ "value": "casesInDataset",
601
+ "valueIsField": false,
602
+ "isEmpty": false
603
+ },
604
+ {
605
+ "op": "cmp",
606
+ "field": "toTriggerType",
607
+ "fieldName": "To type",
608
+ "operator": "==",
609
+ "value": "currentCase",
610
+ "valueIsField": false,
611
+ "isEmpty": false
612
+ },
613
+ {
614
+ "op": "cmp",
615
+ "field": "toTriggerType",
616
+ "fieldName": "To type",
617
+ "operator": "==",
618
+ "value": "page",
619
+ "valueIsField": false,
620
+ "isEmpty": false
621
+ },
622
+ {
623
+ "op": "cmp",
624
+ "field": "toTriggerType",
625
+ "fieldName": "To type",
626
+ "operator": "==",
627
+ "value": "parent",
628
+ "valueIsField": false,
629
+ "isEmpty": false
630
+ },
631
+ {
632
+ "op": "cmp",
633
+ "field": "toTriggerType",
634
+ "fieldName": "To type",
635
+ "operator": "==",
636
+ "value": "",
637
+ "valueIsField": false,
638
+ "isEmpty": true
639
+ }
400
640
  ]
401
641
  },
402
642
  "toPage": {
@@ -422,6 +662,62 @@
422
662
  "valueIsField": false,
423
663
  "isEmpty": false
424
664
  }
665
+ ],
666
+ "forbiddenWhen": [
667
+ {
668
+ "op": "cmp",
669
+ "field": "toTriggerType",
670
+ "fieldName": "To type",
671
+ "operator": "==",
672
+ "value": "attributeValue",
673
+ "valueIsField": false,
674
+ "isEmpty": false
675
+ },
676
+ {
677
+ "op": "cmp",
678
+ "field": "toTriggerType",
679
+ "fieldName": "To type",
680
+ "operator": "==",
681
+ "value": "casesInDataset",
682
+ "valueIsField": false,
683
+ "isEmpty": false
684
+ },
685
+ {
686
+ "op": "cmp",
687
+ "field": "toTriggerType",
688
+ "fieldName": "To type",
689
+ "operator": "==",
690
+ "value": "currentCase",
691
+ "valueIsField": false,
692
+ "isEmpty": false
693
+ },
694
+ {
695
+ "op": "cmp",
696
+ "field": "toTriggerType",
697
+ "fieldName": "To type",
698
+ "operator": "==",
699
+ "value": "foreachItem",
700
+ "valueIsField": false,
701
+ "isEmpty": false
702
+ },
703
+ {
704
+ "op": "cmp",
705
+ "field": "toTriggerType",
706
+ "fieldName": "To type",
707
+ "operator": "==",
708
+ "value": "parent",
709
+ "valueIsField": false,
710
+ "isEmpty": false
711
+ },
712
+ {
713
+ "op": "cmp",
714
+ "field": "toTriggerType",
715
+ "fieldName": "To type",
716
+ "operator": "==",
717
+ "value": "",
718
+ "valueIsField": false,
719
+ "isEmpty": true
720
+ }
425
721
  ]
426
722
  },
427
723
  "toTriggerType": {
@@ -11,6 +11,17 @@
11
11
  "valueIsField": false,
12
12
  "isEmpty": false
13
13
  }
14
+ ],
15
+ "forbiddenWhen": [
16
+ {
17
+ "op": "cmp",
18
+ "field": "showProgress",
19
+ "fieldName": "Show progress",
20
+ "operator": "!=",
21
+ "value": "true",
22
+ "valueIsField": false,
23
+ "isEmpty": false
24
+ }
14
25
  ]
15
26
  },
16
27
  "progressTitle": {
@@ -25,6 +36,20 @@
25
36
  "valueIsField": false,
26
37
  "isEmpty": false
27
38
  }
39
+ ],
40
+ "forbiddenWhen": [
41
+ {
42
+ "op": "cmp",
43
+ "field": "showProgress",
44
+ "fieldName": "Show progress",
45
+ "operator": "!=",
46
+ "value": "true",
47
+ "valueIsField": false,
48
+ "isEmpty": false
49
+ }
28
50
  ]
51
+ },
52
+ "tryRule": {
53
+ "baseline": "MUST_NOT"
29
54
  }
30
55
  }
@@ -11,6 +11,34 @@
11
11
  "valueIsField": false,
12
12
  "isEmpty": false
13
13
  }
14
+ ],
15
+ "forbiddenWhen": [
16
+ {
17
+ "op": "not",
18
+ "item": {
19
+ "op": "cmp",
20
+ "field": null,
21
+ "fieldName": "«template»",
22
+ "operator": ">",
23
+ "value": "0",
24
+ "valueIsField": false,
25
+ "isEmpty": false
26
+ }
27
+ }
28
+ ],
29
+ "messageWhen": [
30
+ {
31
+ "when": {
32
+ "op": "cmp",
33
+ "field": null,
34
+ "fieldName": "«template»",
35
+ "operator": "==",
36
+ "value": "0",
37
+ "valueIsField": false,
38
+ "isEmpty": false
39
+ },
40
+ "message": "fa fa-exclamation-triangle There are no navigations configured on this platform. Configure navigation in order to use it in a view."
41
+ }
14
42
  ]
15
43
  },
16
44
  "leftNavigationItems": {
@@ -39,6 +67,57 @@
39
67
  }
40
68
  ]
41
69
  }
70
+ ],
71
+ "forbiddenWhen": [
72
+ {
73
+ "op": "and",
74
+ "items": [
75
+ {
76
+ "op": "cmp",
77
+ "field": null,
78
+ "fieldName": "«template»",
79
+ "operator": ">",
80
+ "value": "0",
81
+ "valueIsField": false,
82
+ "isEmpty": false
83
+ },
84
+ {
85
+ "op": "cmp",
86
+ "field": "leftNavigation",
87
+ "fieldName": "Left navigation",
88
+ "operator": "===",
89
+ "value": "",
90
+ "valueIsField": false,
91
+ "isEmpty": true
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "op": "not",
97
+ "item": {
98
+ "op": "cmp",
99
+ "field": null,
100
+ "fieldName": "«template»",
101
+ "operator": ">",
102
+ "value": "0",
103
+ "valueIsField": false,
104
+ "isEmpty": false
105
+ }
106
+ }
107
+ ],
108
+ "messageWhen": [
109
+ {
110
+ "when": {
111
+ "op": "cmp",
112
+ "field": null,
113
+ "fieldName": "«template»",
114
+ "operator": "==",
115
+ "value": "0",
116
+ "valueIsField": false,
117
+ "isEmpty": false
118
+ },
119
+ "message": "fa fa-exclamation-triangle There are no navigations configured on this platform. Configure navigation in order to use it in a view."
120
+ }
42
121
  ]
43
122
  },
44
123
  "name": {
@@ -56,6 +135,17 @@
56
135
  "valueIsField": false,
57
136
  "isEmpty": false
58
137
  }
138
+ ],
139
+ "forbiddenWhen": [
140
+ {
141
+ "op": "cmp",
142
+ "field": "typeOfDevParentCase",
143
+ "fieldName": "Type of devParentCase",
144
+ "operator": "==",
145
+ "value": "page",
146
+ "valueIsField": false,
147
+ "isEmpty": false
148
+ }
59
149
  ]
60
150
  },
61
151
  "rightNavigation": {
@@ -70,6 +160,34 @@
70
160
  "valueIsField": false,
71
161
  "isEmpty": false
72
162
  }
163
+ ],
164
+ "forbiddenWhen": [
165
+ {
166
+ "op": "not",
167
+ "item": {
168
+ "op": "cmp",
169
+ "field": null,
170
+ "fieldName": "«template»",
171
+ "operator": ">",
172
+ "value": "0",
173
+ "valueIsField": false,
174
+ "isEmpty": false
175
+ }
176
+ }
177
+ ],
178
+ "messageWhen": [
179
+ {
180
+ "when": {
181
+ "op": "cmp",
182
+ "field": null,
183
+ "fieldName": "«template»",
184
+ "operator": "==",
185
+ "value": "0",
186
+ "valueIsField": false,
187
+ "isEmpty": false
188
+ },
189
+ "message": "fa fa-exclamation-triangle There are no navigations configured on this platform. Configure navigation in order to use it in a view."
190
+ }
73
191
  ]
74
192
  },
75
193
  "rightNavigationItems": {
@@ -98,6 +216,57 @@
98
216
  }
99
217
  ]
100
218
  }
219
+ ],
220
+ "forbiddenWhen": [
221
+ {
222
+ "op": "and",
223
+ "items": [
224
+ {
225
+ "op": "cmp",
226
+ "field": null,
227
+ "fieldName": "«template»",
228
+ "operator": ">",
229
+ "value": "0",
230
+ "valueIsField": false,
231
+ "isEmpty": false
232
+ },
233
+ {
234
+ "op": "cmp",
235
+ "field": "rightNavigation",
236
+ "fieldName": "Right navigation",
237
+ "operator": "===",
238
+ "value": "",
239
+ "valueIsField": false,
240
+ "isEmpty": true
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "op": "not",
246
+ "item": {
247
+ "op": "cmp",
248
+ "field": null,
249
+ "fieldName": "«template»",
250
+ "operator": ">",
251
+ "value": "0",
252
+ "valueIsField": false,
253
+ "isEmpty": false
254
+ }
255
+ }
256
+ ],
257
+ "messageWhen": [
258
+ {
259
+ "when": {
260
+ "op": "cmp",
261
+ "field": null,
262
+ "fieldName": "«template»",
263
+ "operator": "==",
264
+ "value": "0",
265
+ "valueIsField": false,
266
+ "isEmpty": false
267
+ },
268
+ "message": "fa fa-exclamation-triangle There are no navigations configured on this platform. Configure navigation in order to use it in a view."
269
+ }
101
270
  ]
102
271
  },
103
272
  "topNavigation": {
@@ -112,6 +281,34 @@
112
281
  "valueIsField": false,
113
282
  "isEmpty": false
114
283
  }
284
+ ],
285
+ "forbiddenWhen": [
286
+ {
287
+ "op": "not",
288
+ "item": {
289
+ "op": "cmp",
290
+ "field": null,
291
+ "fieldName": "«template»",
292
+ "operator": ">",
293
+ "value": "0",
294
+ "valueIsField": false,
295
+ "isEmpty": false
296
+ }
297
+ }
298
+ ],
299
+ "messageWhen": [
300
+ {
301
+ "when": {
302
+ "op": "cmp",
303
+ "field": null,
304
+ "fieldName": "«template»",
305
+ "operator": "==",
306
+ "value": "0",
307
+ "valueIsField": false,
308
+ "isEmpty": false
309
+ },
310
+ "message": "fa fa-exclamation-triangle There are no navigations configured on this platform. Configure navigation in order to use it in a view."
311
+ }
115
312
  ]
116
313
  },
117
314
  "topNavigationItems": {
@@ -140,6 +337,57 @@
140
337
  }
141
338
  ]
142
339
  }
340
+ ],
341
+ "forbiddenWhen": [
342
+ {
343
+ "op": "and",
344
+ "items": [
345
+ {
346
+ "op": "cmp",
347
+ "field": null,
348
+ "fieldName": "«template»",
349
+ "operator": ">",
350
+ "value": "0",
351
+ "valueIsField": false,
352
+ "isEmpty": false
353
+ },
354
+ {
355
+ "op": "cmp",
356
+ "field": "topNavigation",
357
+ "fieldName": "Top navigation",
358
+ "operator": "===",
359
+ "value": "",
360
+ "valueIsField": false,
361
+ "isEmpty": true
362
+ }
363
+ ]
364
+ },
365
+ {
366
+ "op": "not",
367
+ "item": {
368
+ "op": "cmp",
369
+ "field": null,
370
+ "fieldName": "«template»",
371
+ "operator": ">",
372
+ "value": "0",
373
+ "valueIsField": false,
374
+ "isEmpty": false
375
+ }
376
+ }
377
+ ],
378
+ "messageWhen": [
379
+ {
380
+ "when": {
381
+ "op": "cmp",
382
+ "field": null,
383
+ "fieldName": "«template»",
384
+ "operator": "==",
385
+ "value": "0",
386
+ "valueIsField": false,
387
+ "isEmpty": false
388
+ },
389
+ "message": "fa fa-exclamation-triangle There are no navigations configured on this platform. Configure navigation in order to use it in a view."
390
+ }
143
391
  ]
144
392
  },
145
393
  "typeOfDevParentCase": {
@@ -157,6 +405,17 @@
157
405
  "valueIsField": false,
158
406
  "isEmpty": false
159
407
  }
408
+ ],
409
+ "forbiddenWhen": [
410
+ {
411
+ "op": "cmp",
412
+ "field": "hasSeparatePathForArchive",
413
+ "fieldName": "Release URL paths when closing",
414
+ "operator": "==",
415
+ "value": "false",
416
+ "valueIsField": false,
417
+ "isEmpty": false
418
+ }
160
419
  ]
161
420
  }
162
421
  }