@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
@@ -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,17 @@
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
  ]
29
51
  }
30
52
  }
@@ -1,4 +1,7 @@
1
1
  {
2
+ "hide": {
3
+ "baseline": "MUST_NOT"
4
+ },
2
5
  "justify": {
3
6
  "baseline": "MAY",
4
7
  "enabledWhen": [
@@ -39,11 +42,60 @@
39
42
  }
40
43
  ]
41
44
  }
45
+ ],
46
+ "forbiddenWhen": [
47
+ {
48
+ "op": "and",
49
+ "items": [
50
+ {
51
+ "op": "cmp",
52
+ "field": "containerDisplay",
53
+ "fieldName": "Container display",
54
+ "operator": "==",
55
+ "value": "tabs",
56
+ "valueIsField": false,
57
+ "isEmpty": false
58
+ },
59
+ {
60
+ "op": "cmp",
61
+ "field": "tabsPosition",
62
+ "fieldName": "Tabs position",
63
+ "operator": "!=",
64
+ "value": "below",
65
+ "valueIsField": false,
66
+ "isEmpty": false
67
+ },
68
+ {
69
+ "op": "cmp",
70
+ "field": "tabsPosition",
71
+ "fieldName": "Tabs position",
72
+ "operator": "!=",
73
+ "value": "top",
74
+ "valueIsField": false,
75
+ "isEmpty": false
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "op": "cmp",
81
+ "field": "containerDisplay",
82
+ "fieldName": "Container display",
83
+ "operator": "!=",
84
+ "value": "tabs",
85
+ "valueIsField": false,
86
+ "isEmpty": false
87
+ }
42
88
  ]
43
89
  },
44
90
  "containerDisplay": {
45
91
  "baseline": "MUST_NOT"
46
92
  },
93
+ "options": {
94
+ "baseline": "MUST_NOT"
95
+ },
96
+ "position": {
97
+ "baseline": "MUST_NOT"
98
+ },
47
99
  "showSingleTab": {
48
100
  "baseline": "MUST_NOT",
49
101
  "enabledWhen": [
@@ -56,6 +108,17 @@
56
108
  "valueIsField": false,
57
109
  "isEmpty": false
58
110
  }
111
+ ],
112
+ "forbiddenWhen": [
113
+ {
114
+ "op": "cmp",
115
+ "field": "containerDisplay",
116
+ "fieldName": "Container display",
117
+ "operator": "!=",
118
+ "value": "tabs",
119
+ "valueIsField": false,
120
+ "isEmpty": false
121
+ }
59
122
  ]
60
123
  },
61
124
  "tabsPosition": {
@@ -71,6 +134,17 @@
71
134
  "isEmpty": false
72
135
  }
73
136
  ],
137
+ "forbiddenWhen": [
138
+ {
139
+ "op": "cmp",
140
+ "field": "containerDisplay",
141
+ "fieldName": "Container display",
142
+ "operator": "!=",
143
+ "value": "tabs",
144
+ "valueIsField": false,
145
+ "isEmpty": false
146
+ }
147
+ ],
74
148
  "setValueWhen": [
75
149
  {
76
150
  "when": {
@@ -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,17 @@
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
  ]
29
51
  },
30
52
  "messageType": {
@@ -22,6 +22,44 @@
22
22
  "valueIsField": false,
23
23
  "isEmpty": false
24
24
  }
25
+ ],
26
+ "forbiddenWhen": [
27
+ {
28
+ "op": "cmp",
29
+ "field": "type",
30
+ "fieldName": "Type",
31
+ "operator": "==",
32
+ "value": "all",
33
+ "valueIsField": false,
34
+ "isEmpty": false
35
+ },
36
+ {
37
+ "op": "cmp",
38
+ "field": "type",
39
+ "fieldName": "Type",
40
+ "operator": "==",
41
+ "value": "cases",
42
+ "valueIsField": false,
43
+ "isEmpty": false
44
+ },
45
+ {
46
+ "op": "cmp",
47
+ "field": "type",
48
+ "fieldName": "Type",
49
+ "operator": "==",
50
+ "value": "",
51
+ "valueIsField": false,
52
+ "isEmpty": true
53
+ },
54
+ {
55
+ "op": "cmp",
56
+ "field": "type",
57
+ "fieldName": "Type",
58
+ "operator": "!=",
59
+ "value": "multivalueAttribute",
60
+ "valueIsField": false,
61
+ "isEmpty": false
62
+ }
25
63
  ]
26
64
  },
27
65
  "attributesToMakeColumnsFor": {
@@ -47,7 +85,7 @@
47
85
  ]
48
86
  },
49
87
  "caseID": {
50
- "baseline": "MAY",
88
+ "baseline": "MUST_NOT",
51
89
  "enabledWhen": [
52
90
  {
53
91
  "op": "cmp",
@@ -123,8 +161,42 @@
123
161
  }
124
162
  ]
125
163
  },
164
+ "casePointer": {
165
+ "baseline": "MUST_NOT",
166
+ "enabledWhen": [
167
+ {
168
+ "op": "cmp",
169
+ "field": "type",
170
+ "fieldName": "Type",
171
+ "operator": "==",
172
+ "value": "casedata",
173
+ "valueIsField": false,
174
+ "isEmpty": false
175
+ },
176
+ {
177
+ "op": "cmp",
178
+ "field": "type",
179
+ "fieldName": "Type",
180
+ "operator": "==",
181
+ "value": "casedatahistory",
182
+ "valueIsField": false,
183
+ "isEmpty": false
184
+ }
185
+ ],
186
+ "forbiddenWhen": [
187
+ {
188
+ "op": "cmp",
189
+ "field": "type",
190
+ "fieldName": "Type",
191
+ "operator": "!=",
192
+ "value": "casedatahistory",
193
+ "valueIsField": false,
194
+ "isEmpty": false
195
+ }
196
+ ]
197
+ },
126
198
  "casetype": {
127
- "baseline": "MAY",
199
+ "baseline": "MUST_NOT",
128
200
  "enabledWhen": [
129
201
  {
130
202
  "op": "cmp",
@@ -212,6 +284,44 @@
212
284
  "valueIsField": false,
213
285
  "isEmpty": false
214
286
  }
287
+ ],
288
+ "forbiddenWhen": [
289
+ {
290
+ "op": "cmp",
291
+ "field": "type",
292
+ "fieldName": "Type",
293
+ "operator": "==",
294
+ "value": "all",
295
+ "valueIsField": false,
296
+ "isEmpty": false
297
+ },
298
+ {
299
+ "op": "cmp",
300
+ "field": "type",
301
+ "fieldName": "Type",
302
+ "operator": "==",
303
+ "value": "multivalueAttribute",
304
+ "valueIsField": false,
305
+ "isEmpty": false
306
+ },
307
+ {
308
+ "op": "cmp",
309
+ "field": "type",
310
+ "fieldName": "Type",
311
+ "operator": "==",
312
+ "value": "",
313
+ "valueIsField": false,
314
+ "isEmpty": true
315
+ },
316
+ {
317
+ "op": "cmp",
318
+ "field": "type",
319
+ "fieldName": "Type",
320
+ "operator": "!=",
321
+ "value": "cases",
322
+ "valueIsField": false,
323
+ "isEmpty": false
324
+ }
215
325
  ]
216
326
  },
217
327
  "copiedCase": {
@@ -243,6 +353,17 @@
243
353
  "valueIsField": false,
244
354
  "isEmpty": false
245
355
  }
356
+ ],
357
+ "forbiddenWhen": [
358
+ {
359
+ "op": "cmp",
360
+ "field": "type",
361
+ "fieldName": "Type",
362
+ "operator": "!=",
363
+ "value": "json",
364
+ "valueIsField": false,
365
+ "isEmpty": false
366
+ }
246
367
  ]
247
368
  },
248
369
  "dateClosed": {
@@ -329,10 +450,21 @@
329
450
  "valueIsField": false,
330
451
  "isEmpty": false
331
452
  }
453
+ ],
454
+ "forbiddenWhen": [
455
+ {
456
+ "op": "cmp",
457
+ "field": "includeFinished",
458
+ "fieldName": "Include closed",
459
+ "operator": "!=",
460
+ "value": "true",
461
+ "valueIsField": false,
462
+ "isEmpty": false
463
+ }
332
464
  ]
333
465
  },
334
466
  "dateCreated": {
335
- "baseline": "MAY",
467
+ "baseline": "MUST_NOT",
336
468
  "enabledWhen": [
337
469
  {
338
470
  "op": "cmp",
@@ -413,7 +545,18 @@
413
545
  },
414
546
  "headers": {
415
547
  "baseline": "MAY",
416
- "clearWhen": [
548
+ "enabledWhen": [
549
+ {
550
+ "op": "cmp",
551
+ "field": "type",
552
+ "fieldName": "Type",
553
+ "operator": "==",
554
+ "value": "externalURL",
555
+ "valueIsField": false,
556
+ "isEmpty": false
557
+ }
558
+ ],
559
+ "forbiddenWhen": [
417
560
  {
418
561
  "op": "cmp",
419
562
  "field": "type",
@@ -447,9 +590,27 @@
447
590
  "value": "POST",
448
591
  "valueIsField": false,
449
592
  "isEmpty": false
593
+ },
594
+ {
595
+ "op": "cmp",
596
+ "field": "type",
597
+ "fieldName": "Type",
598
+ "operator": "==",
599
+ "value": "externalURL",
600
+ "valueIsField": false,
601
+ "isEmpty": false
450
602
  }
451
603
  ],
452
- "clearWhen": [
604
+ "forbiddenWhen": [
605
+ {
606
+ "op": "cmp",
607
+ "field": "method",
608
+ "fieldName": "External URL method",
609
+ "operator": "!=",
610
+ "value": "POST",
611
+ "valueIsField": false,
612
+ "isEmpty": false
613
+ },
453
614
  {
454
615
  "op": "cmp",
455
616
  "field": "type",
@@ -483,7 +644,9 @@
483
644
  "value": "externalURL",
484
645
  "valueIsField": false,
485
646
  "isEmpty": false
486
- },
647
+ }
648
+ ],
649
+ "forbiddenWhen": [
487
650
  {
488
651
  "op": "cmp",
489
652
  "field": "type",
@@ -493,22 +656,22 @@
493
656
  "valueIsField": false,
494
657
  "isEmpty": false
495
658
  }
496
- ],
497
- "clearWhen": [
659
+ ]
660
+ },
661
+ "method": {
662
+ "baseline": "MAY",
663
+ "enabledWhen": [
498
664
  {
499
665
  "op": "cmp",
500
666
  "field": "type",
501
667
  "fieldName": "Type",
502
- "operator": "!=",
668
+ "operator": "==",
503
669
  "value": "externalURL",
504
670
  "valueIsField": false,
505
671
  "isEmpty": false
506
672
  }
507
- ]
508
- },
509
- "method": {
510
- "baseline": "MAY",
511
- "clearWhen": [
673
+ ],
674
+ "forbiddenWhen": [
512
675
  {
513
676
  "op": "cmp",
514
677
  "field": "type",
@@ -562,6 +725,26 @@
562
725
  "valueIsField": false,
563
726
  "isEmpty": false
564
727
  }
728
+ ],
729
+ "forbiddenWhen": [
730
+ {
731
+ "op": "cmp",
732
+ "field": "type",
733
+ "fieldName": "Type",
734
+ "operator": "in",
735
+ "value": "[\"filter\",\"aggregation\"]",
736
+ "valueIsField": false,
737
+ "isEmpty": false
738
+ },
739
+ {
740
+ "op": "cmp",
741
+ "field": "type",
742
+ "fieldName": "Type",
743
+ "operator": "==",
744
+ "value": "externalURL",
745
+ "valueIsField": false,
746
+ "isEmpty": false
747
+ }
565
748
  ]
566
749
  },
567
750
  "includeOpen": {
@@ -603,6 +786,26 @@
603
786
  "valueIsField": false,
604
787
  "isEmpty": false
605
788
  }
789
+ ],
790
+ "forbiddenWhen": [
791
+ {
792
+ "op": "cmp",
793
+ "field": "type",
794
+ "fieldName": "Type",
795
+ "operator": "in",
796
+ "value": "[\"filter\",\"aggregation\"]",
797
+ "valueIsField": false,
798
+ "isEmpty": false
799
+ },
800
+ {
801
+ "op": "cmp",
802
+ "field": "type",
803
+ "fieldName": "Type",
804
+ "operator": "==",
805
+ "value": "externalURL",
806
+ "valueIsField": false,
807
+ "isEmpty": false
808
+ }
606
809
  ]
607
810
  },
608
811
  "joinType": {
@@ -628,10 +831,46 @@
628
831
  "valueIsField": false,
629
832
  "isEmpty": false
630
833
  }
834
+ ],
835
+ "forbiddenWhen": [
836
+ {
837
+ "op": "cmp",
838
+ "field": "type",
839
+ "fieldName": "Type",
840
+ "operator": "!=",
841
+ "value": "join",
842
+ "valueIsField": false,
843
+ "isEmpty": false
844
+ }
631
845
  ]
632
846
  },
633
- "lastModifiedDate": {
847
+ "resultPath": {
634
848
  "baseline": "MAY",
849
+ "enabledWhen": [
850
+ {
851
+ "op": "cmp",
852
+ "field": "type",
853
+ "fieldName": "Type",
854
+ "operator": "==",
855
+ "value": "externalURL",
856
+ "valueIsField": false,
857
+ "isEmpty": false
858
+ }
859
+ ],
860
+ "forbiddenWhen": [
861
+ {
862
+ "op": "cmp",
863
+ "field": "type",
864
+ "fieldName": "Type",
865
+ "operator": "!=",
866
+ "value": "externalURL",
867
+ "valueIsField": false,
868
+ "isEmpty": false
869
+ }
870
+ ]
871
+ },
872
+ "lastModifiedDate": {
873
+ "baseline": "MUST_NOT",
635
874
  "enabledWhen": [
636
875
  {
637
876
  "op": "cmp",
@@ -676,10 +915,21 @@
676
915
  "valueIsField": false,
677
916
  "isEmpty": false
678
917
  }
918
+ ],
919
+ "forbiddenWhen": [
920
+ {
921
+ "op": "cmp",
922
+ "field": "type",
923
+ "fieldName": "Type",
924
+ "operator": "!=",
925
+ "value": "join",
926
+ "valueIsField": false,
927
+ "isEmpty": false
928
+ }
679
929
  ]
680
930
  },
681
931
  "parentCaseID": {
682
- "baseline": "MAY",
932
+ "baseline": "MUST_NOT",
683
933
  "enabledWhen": [
684
934
  {
685
935
  "op": "cmp",
@@ -806,6 +1056,17 @@
806
1056
  "isEmpty": false
807
1057
  }
808
1058
  ],
1059
+ "forbiddenWhen": [
1060
+ {
1061
+ "op": "cmp",
1062
+ "field": "type",
1063
+ "fieldName": "Type",
1064
+ "operator": "notin",
1065
+ "value": "[\"filter\",\"aggregation\"]",
1066
+ "valueIsField": false,
1067
+ "isEmpty": false
1068
+ }
1069
+ ],
809
1070
  "optionsWhen": [
810
1071
  {
811
1072
  "when": {
@@ -830,7 +1091,7 @@
830
1091
  "baseline": "MUST_NOT"
831
1092
  },
832
1093
  "reference": {
833
- "baseline": "MAY",
1094
+ "baseline": "MUST_NOT",
834
1095
  "enabledWhen": [
835
1096
  {
836
1097
  "op": "cmp",
@@ -907,7 +1168,7 @@
907
1168
  ]
908
1169
  },
909
1170
  "requestor": {
910
- "baseline": "MAY",
1171
+ "baseline": "MUST_NOT",
911
1172
  "enabledWhen": [
912
1173
  {
913
1174
  "op": "cmp",
@@ -1006,6 +1267,17 @@
1006
1267
  "valueIsField": false,
1007
1268
  "isEmpty": false
1008
1269
  }
1270
+ ],
1271
+ "forbiddenWhen": [
1272
+ {
1273
+ "op": "cmp",
1274
+ "field": "type",
1275
+ "fieldName": "Type",
1276
+ "operator": "!=",
1277
+ "value": "join",
1278
+ "valueIsField": false,
1279
+ "isEmpty": false
1280
+ }
1009
1281
  ]
1010
1282
  },
1011
1283
  "specialDataset": {
@@ -1031,6 +1303,26 @@
1031
1303
  "valueIsField": false,
1032
1304
  "isEmpty": false
1033
1305
  }
1306
+ ],
1307
+ "forbiddenWhen": [
1308
+ {
1309
+ "op": "cmp",
1310
+ "field": "type",
1311
+ "fieldName": "Type",
1312
+ "operator": "!=",
1313
+ "value": "multivalueAttribute",
1314
+ "valueIsField": false,
1315
+ "isEmpty": false
1316
+ },
1317
+ {
1318
+ "op": "cmp",
1319
+ "field": "type",
1320
+ "fieldName": "Type",
1321
+ "operator": "!=",
1322
+ "value": "special",
1323
+ "valueIsField": false,
1324
+ "isEmpty": false
1325
+ }
1034
1326
  ]
1035
1327
  }
1036
1328
  }
@@ -235,13 +235,59 @@
235
235
  "allOf": [
236
236
  {
237
237
  "if": {
238
+ "anyOf": [
239
+ {
240
+ "properties": {
241
+ "type": {
242
+ "const": "casedata"
243
+ }
244
+ },
245
+ "required": [
246
+ "type"
247
+ ]
248
+ },
249
+ {
250
+ "properties": {
251
+ "type": {
252
+ "const": "casedatahistory"
253
+ }
254
+ },
255
+ "required": [
256
+ "type"
257
+ ]
258
+ }
259
+ ]
260
+ },
261
+ "then": {},
262
+ "else": {
238
263
  "properties": {
239
- "method": {
240
- "const": "POST"
264
+ "casePointer": false
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "if": {
270
+ "anyOf": [
271
+ {
272
+ "properties": {
273
+ "method": {
274
+ "const": "POST"
275
+ }
276
+ },
277
+ "required": [
278
+ "method"
279
+ ]
280
+ },
281
+ {
282
+ "properties": {
283
+ "type": {
284
+ "const": "externalURL"
285
+ }
286
+ },
287
+ "required": [
288
+ "type"
289
+ ]
241
290
  }
242
- },
243
- "required": [
244
- "method"
245
291
  ]
246
292
  },
247
293
  "then": {},