@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
@@ -1,4 +1,18 @@
1
1
  {
2
+ "dataType": {
3
+ "baseline": "MAY",
4
+ "forbiddenWhen": [
5
+ {
6
+ "op": "cmp",
7
+ "field": "columnType",
8
+ "fieldName": "Column type",
9
+ "operator": "==",
10
+ "value": "groupBy",
11
+ "valueIsField": false,
12
+ "isEmpty": false
13
+ }
14
+ ]
15
+ },
2
16
  "attribute": {
3
17
  "baseline": "MUST_NOT",
4
18
  "requiredWhen": [
@@ -179,6 +193,62 @@
179
193
  "isEmpty": false
180
194
  }
181
195
  ],
196
+ "forbiddenWhen": [
197
+ {
198
+ "op": "cmp",
199
+ "field": "fieldType",
200
+ "fieldName": "Field type",
201
+ "operator": "in",
202
+ "value": "[\"caseMetaData\",\"dataHistory\"]",
203
+ "valueIsField": false,
204
+ "isEmpty": false
205
+ },
206
+ {
207
+ "op": "cmp",
208
+ "field": "fieldType",
209
+ "fieldName": "Field type",
210
+ "operator": "==",
211
+ "value": "activityMetadata",
212
+ "valueIsField": false,
213
+ "isEmpty": false
214
+ },
215
+ {
216
+ "op": "cmp",
217
+ "field": "fieldType",
218
+ "fieldName": "Field type",
219
+ "operator": "==",
220
+ "value": "external",
221
+ "valueIsField": false,
222
+ "isEmpty": false
223
+ },
224
+ {
225
+ "op": "cmp",
226
+ "field": "fieldType",
227
+ "fieldName": "Field type",
228
+ "operator": "==",
229
+ "value": "inlineTemplate",
230
+ "valueIsField": false,
231
+ "isEmpty": false
232
+ },
233
+ {
234
+ "op": "cmp",
235
+ "field": "fieldType",
236
+ "fieldName": "Field type",
237
+ "operator": "==",
238
+ "value": "taskAttribute",
239
+ "valueIsField": false,
240
+ "isEmpty": false
241
+ },
242
+ {
243
+ "op": "cmp",
244
+ "field": "fieldType",
245
+ "fieldName": "Field type",
246
+ "operator": "==",
247
+ "value": "taskMetaData",
248
+ "valueIsField": false,
249
+ "isEmpty": false
250
+ }
251
+ ],
182
252
  "optionsWhen": [
183
253
  {
184
254
  "when": {
@@ -1111,6 +1181,31 @@
1111
1181
  },
1112
1182
  "fieldType": {
1113
1183
  "baseline": "MAY",
1184
+ "forbiddenWhen": [
1185
+ {
1186
+ "op": "or",
1187
+ "items": [
1188
+ {
1189
+ "op": "cmp",
1190
+ "field": "relatedDatasetType",
1191
+ "fieldName": "Related dataset type",
1192
+ "operator": "contains",
1193
+ "value": "elastic",
1194
+ "valueIsField": false,
1195
+ "isEmpty": false
1196
+ },
1197
+ {
1198
+ "op": "cmp",
1199
+ "field": "relatedDatasetType",
1200
+ "fieldName": "Related dataset type",
1201
+ "operator": "contains",
1202
+ "value": "kibana",
1203
+ "valueIsField": false,
1204
+ "isEmpty": false
1205
+ }
1206
+ ]
1207
+ }
1208
+ ],
1114
1209
  "setValueWhen": [
1115
1210
  {
1116
1211
  "when": {
@@ -1163,6 +1258,17 @@
1163
1258
  "valueIsField": false,
1164
1259
  "isEmpty": false
1165
1260
  }
1261
+ ],
1262
+ "forbiddenWhen": [
1263
+ {
1264
+ "op": "cmp",
1265
+ "field": "columnType",
1266
+ "fieldName": "Column type",
1267
+ "operator": "==",
1268
+ "value": "groupBy",
1269
+ "valueIsField": false,
1270
+ "isEmpty": false
1271
+ }
1166
1272
  ]
1167
1273
  },
1168
1274
  "overrideWithEmpty": {
@@ -1191,6 +1297,31 @@
1191
1297
  }
1192
1298
  ]
1193
1299
  }
1300
+ ],
1301
+ "forbiddenWhen": [
1302
+ {
1303
+ "op": "and",
1304
+ "items": [
1305
+ {
1306
+ "op": "cmp",
1307
+ "field": "fieldType",
1308
+ "fieldName": "Field type",
1309
+ "operator": "!=",
1310
+ "value": "caseData",
1311
+ "valueIsField": false,
1312
+ "isEmpty": false
1313
+ },
1314
+ {
1315
+ "op": "cmp",
1316
+ "field": "fieldType",
1317
+ "fieldName": "Field type",
1318
+ "operator": "!=",
1319
+ "value": "platformAttribute",
1320
+ "valueIsField": false,
1321
+ "isEmpty": false
1322
+ }
1323
+ ]
1324
+ }
1194
1325
  ]
1195
1326
  },
1196
1327
  "parentDatasetColumnProvidingDataset": {
@@ -1202,6 +1333,23 @@
1202
1333
  "relatedDatasetType": {
1203
1334
  "baseline": "MUST_NOT"
1204
1335
  },
1336
+ "root": {
1337
+ "baseline": "MUST_NOT"
1338
+ },
1339
+ "sortDirection": {
1340
+ "baseline": "MUST_NOT"
1341
+ },
1342
+ "sortOrder": {
1343
+ "baseline": "MUST_NOT",
1344
+ "enabledWhen": [
1345
+ {
1346
+ "op": "cmp",
1347
+ "field": "sortDirection",
1348
+ "operator": "!=",
1349
+ "isEmpty": true
1350
+ }
1351
+ ]
1352
+ },
1205
1353
  "activityAttribute": {
1206
1354
  "baseline": "MUST_NOT",
1207
1355
  "requiredWhen": [
@@ -1225,6 +1373,17 @@
1225
1373
  "valueIsField": false,
1226
1374
  "isEmpty": false
1227
1375
  }
1376
+ ],
1377
+ "forbiddenWhen": [
1378
+ {
1379
+ "op": "cmp",
1380
+ "field": "fieldType",
1381
+ "fieldName": "Field type",
1382
+ "operator": "!=",
1383
+ "value": "taskAttribute",
1384
+ "valueIsField": false,
1385
+ "isEmpty": false
1386
+ }
1228
1387
  ]
1229
1388
  },
1230
1389
  "inlineTemplate": {
@@ -1250,6 +1409,17 @@
1250
1409
  "valueIsField": false,
1251
1410
  "isEmpty": false
1252
1411
  }
1412
+ ],
1413
+ "forbiddenWhen": [
1414
+ {
1415
+ "op": "cmp",
1416
+ "field": "fieldType",
1417
+ "fieldName": "Field type",
1418
+ "operator": "!=",
1419
+ "value": "inlineTemplate",
1420
+ "valueIsField": false,
1421
+ "isEmpty": false
1422
+ }
1253
1423
  ]
1254
1424
  },
1255
1425
  "title": {
@@ -1514,6 +1684,131 @@
1514
1684
  "isEmpty": false
1515
1685
  }
1516
1686
  ],
1687
+ "forbiddenWhen": [
1688
+ {
1689
+ "op": "and",
1690
+ "items": [
1691
+ {
1692
+ "op": "cmp",
1693
+ "field": "fieldType",
1694
+ "fieldName": "Field type",
1695
+ "operator": "==",
1696
+ "value": "caseData",
1697
+ "valueIsField": false,
1698
+ "isEmpty": false
1699
+ },
1700
+ {
1701
+ "op": "cmp",
1702
+ "field": "relatedDatasetCasetypes",
1703
+ "fieldName": "Related dataset casetypes",
1704
+ "operator": "==text==",
1705
+ "value": "",
1706
+ "valueIsField": false,
1707
+ "isEmpty": true
1708
+ },
1709
+ {
1710
+ "op": "cmp",
1711
+ "field": "relatedDatasetType",
1712
+ "fieldName": "Related dataset type",
1713
+ "operator": "!==",
1714
+ "value": "multivalueAttribute",
1715
+ "valueIsField": false,
1716
+ "isEmpty": false
1717
+ }
1718
+ ]
1719
+ },
1720
+ {
1721
+ "op": "and",
1722
+ "items": [
1723
+ {
1724
+ "op": "cmp",
1725
+ "field": "fieldType",
1726
+ "fieldName": "Field type",
1727
+ "operator": "==",
1728
+ "value": "caseData",
1729
+ "valueIsField": false,
1730
+ "isEmpty": false
1731
+ },
1732
+ {
1733
+ "op": "cmp",
1734
+ "field": "relatedDatasetType",
1735
+ "fieldName": "Related dataset type",
1736
+ "operator": "==",
1737
+ "value": "multivalueAttribute",
1738
+ "valueIsField": false,
1739
+ "isEmpty": false
1740
+ }
1741
+ ]
1742
+ },
1743
+ {
1744
+ "op": "and",
1745
+ "items": [
1746
+ {
1747
+ "op": "cmp",
1748
+ "field": "fieldType",
1749
+ "fieldName": "Field type",
1750
+ "operator": "==",
1751
+ "value": "caseData",
1752
+ "valueIsField": false,
1753
+ "isEmpty": false
1754
+ },
1755
+ {
1756
+ "op": "cmp",
1757
+ "field": "relatedDatasetType",
1758
+ "fieldName": "Related dataset type",
1759
+ "operator": "!==",
1760
+ "value": "multivalueAttribute",
1761
+ "valueIsField": false,
1762
+ "isEmpty": false
1763
+ }
1764
+ ]
1765
+ },
1766
+ {
1767
+ "op": "cmp",
1768
+ "field": "fieldType",
1769
+ "fieldName": "Field type",
1770
+ "operator": "==",
1771
+ "value": "external",
1772
+ "valueIsField": false,
1773
+ "isEmpty": false
1774
+ },
1775
+ {
1776
+ "op": "cmp",
1777
+ "field": "fieldType",
1778
+ "fieldName": "Field type",
1779
+ "operator": "==",
1780
+ "value": "inlineTemplate",
1781
+ "valueIsField": false,
1782
+ "isEmpty": false
1783
+ },
1784
+ {
1785
+ "op": "cmp",
1786
+ "field": "fieldType",
1787
+ "fieldName": "Field type",
1788
+ "operator": "==",
1789
+ "value": "platformAttribute",
1790
+ "valueIsField": false,
1791
+ "isEmpty": false
1792
+ },
1793
+ {
1794
+ "op": "cmp",
1795
+ "field": "fieldType",
1796
+ "fieldName": "Field type",
1797
+ "operator": "==",
1798
+ "value": "taskAttribute",
1799
+ "valueIsField": false,
1800
+ "isEmpty": false
1801
+ },
1802
+ {
1803
+ "op": "cmp",
1804
+ "field": "fieldType",
1805
+ "fieldName": "Field type",
1806
+ "operator": "==",
1807
+ "value": "",
1808
+ "valueIsField": false,
1809
+ "isEmpty": true
1810
+ }
1811
+ ],
1517
1812
  "optionsWhen": [
1518
1813
  {
1519
1814
  "when": {
@@ -1828,16 +2123,5 @@
1828
2123
  }
1829
2124
  }
1830
2125
  ]
1831
- },
1832
- "sortOrder": {
1833
- "baseline": "MUST_NOT",
1834
- "enabledWhen": [
1835
- {
1836
- "op": "cmp",
1837
- "field": "sortDirection",
1838
- "operator": "!=",
1839
- "isEmpty": true
1840
- }
1841
- ]
1842
2126
  }
1843
2127
  }
@@ -115,6 +115,31 @@
115
115
  "isEmpty": false
116
116
  }
117
117
  ],
118
+ "forbiddenWhen": [
119
+ {
120
+ "op": "and",
121
+ "items": [
122
+ {
123
+ "op": "cmp",
124
+ "field": "column",
125
+ "fieldName": "Column (left side)",
126
+ "operator": "==",
127
+ "value": "",
128
+ "valueIsField": false,
129
+ "isEmpty": true
130
+ },
131
+ {
132
+ "op": "cmp",
133
+ "field": "leftFieldType",
134
+ "fieldName": "Left type",
135
+ "operator": "==",
136
+ "value": "",
137
+ "valueIsField": false,
138
+ "isEmpty": true
139
+ }
140
+ ]
141
+ }
142
+ ],
118
143
  "messageWhen": [
119
144
  {
120
145
  "when": {
@@ -403,6 +428,70 @@
403
428
  "isEmpty": false
404
429
  }
405
430
  ],
431
+ "forbiddenWhen": [
432
+ {
433
+ "op": "and",
434
+ "items": [
435
+ {
436
+ "op": "cmp",
437
+ "field": "parentDatasetType",
438
+ "fieldName": "Parent dataset type",
439
+ "operator": "==",
440
+ "value": "join",
441
+ "valueIsField": false,
442
+ "isEmpty": false
443
+ },
444
+ {
445
+ "op": "not",
446
+ "item": {
447
+ "op": "cmp",
448
+ "field": "fieldType",
449
+ "fieldName": "Right type",
450
+ "operator": "contains",
451
+ "value": "Column",
452
+ "valueIsField": false,
453
+ "isEmpty": false
454
+ }
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "op": "cmp",
460
+ "field": "fieldType",
461
+ "fieldName": "Right type",
462
+ "operator": "==",
463
+ "value": "currentcase",
464
+ "valueIsField": false,
465
+ "isEmpty": false
466
+ },
467
+ {
468
+ "op": "cmp",
469
+ "field": "fieldType",
470
+ "fieldName": "Right type",
471
+ "operator": "==",
472
+ "value": "inlineTemplate",
473
+ "valueIsField": false,
474
+ "isEmpty": false
475
+ },
476
+ {
477
+ "op": "cmp",
478
+ "field": "fieldType",
479
+ "fieldName": "Right type",
480
+ "operator": "==",
481
+ "value": "value",
482
+ "valueIsField": false,
483
+ "isEmpty": false
484
+ },
485
+ {
486
+ "op": "cmp",
487
+ "field": "fieldType",
488
+ "fieldName": "Right type",
489
+ "operator": "==",
490
+ "value": "",
491
+ "valueIsField": false,
492
+ "isEmpty": true
493
+ }
494
+ ],
406
495
  "messageWhen": [
407
496
  {
408
497
  "when": {
@@ -652,6 +741,85 @@
652
741
  "valueIsField": false,
653
742
  "isEmpty": false
654
743
  }
744
+ ],
745
+ "forbiddenWhen": [
746
+ {
747
+ "op": "and",
748
+ "items": [
749
+ {
750
+ "op": "cmp",
751
+ "field": "parentDatasetType",
752
+ "fieldName": "Parent dataset type",
753
+ "operator": "==",
754
+ "value": "join",
755
+ "valueIsField": false,
756
+ "isEmpty": false
757
+ },
758
+ {
759
+ "op": "cmp",
760
+ "field": "fieldType",
761
+ "fieldName": "Right type",
762
+ "operator": "contains",
763
+ "value": "Column",
764
+ "valueIsField": false,
765
+ "isEmpty": false
766
+ }
767
+ ]
768
+ },
769
+ {
770
+ "op": "cmp",
771
+ "field": "fieldType",
772
+ "fieldName": "Right type",
773
+ "operator": "==",
774
+ "value": "casedata",
775
+ "valueIsField": false,
776
+ "isEmpty": false
777
+ },
778
+ {
779
+ "op": "cmp",
780
+ "field": "fieldType",
781
+ "fieldName": "Right type",
782
+ "operator": "==",
783
+ "value": "casemetadata",
784
+ "valueIsField": false,
785
+ "isEmpty": false
786
+ },
787
+ {
788
+ "op": "cmp",
789
+ "field": "fieldType",
790
+ "fieldName": "Right type",
791
+ "operator": "==",
792
+ "value": "column",
793
+ "valueIsField": false,
794
+ "isEmpty": false
795
+ },
796
+ {
797
+ "op": "cmp",
798
+ "field": "fieldType",
799
+ "fieldName": "Right type",
800
+ "operator": "==",
801
+ "value": "currentcase",
802
+ "valueIsField": false,
803
+ "isEmpty": false
804
+ },
805
+ {
806
+ "op": "cmp",
807
+ "field": "fieldType",
808
+ "fieldName": "Right type",
809
+ "operator": "==",
810
+ "value": "value",
811
+ "valueIsField": false,
812
+ "isEmpty": false
813
+ },
814
+ {
815
+ "op": "cmp",
816
+ "field": "fieldType",
817
+ "fieldName": "Right type",
818
+ "operator": "==",
819
+ "value": "",
820
+ "valueIsField": false,
821
+ "isEmpty": true
822
+ }
655
823
  ]
656
824
  },
657
825
  "leftFieldType": {
@@ -943,6 +1111,85 @@
943
1111
  "valueIsField": false,
944
1112
  "isEmpty": false
945
1113
  }
1114
+ ],
1115
+ "forbiddenWhen": [
1116
+ {
1117
+ "op": "and",
1118
+ "items": [
1119
+ {
1120
+ "op": "cmp",
1121
+ "field": "parentDatasetType",
1122
+ "fieldName": "Parent dataset type",
1123
+ "operator": "==",
1124
+ "value": "join",
1125
+ "valueIsField": false,
1126
+ "isEmpty": false
1127
+ },
1128
+ {
1129
+ "op": "cmp",
1130
+ "field": "fieldType",
1131
+ "fieldName": "Right type",
1132
+ "operator": "contains",
1133
+ "value": "Column",
1134
+ "valueIsField": false,
1135
+ "isEmpty": false
1136
+ }
1137
+ ]
1138
+ },
1139
+ {
1140
+ "op": "cmp",
1141
+ "field": "fieldType",
1142
+ "fieldName": "Right type",
1143
+ "operator": "==",
1144
+ "value": "casedata",
1145
+ "valueIsField": false,
1146
+ "isEmpty": false
1147
+ },
1148
+ {
1149
+ "op": "cmp",
1150
+ "field": "fieldType",
1151
+ "fieldName": "Right type",
1152
+ "operator": "==",
1153
+ "value": "casemetadata",
1154
+ "valueIsField": false,
1155
+ "isEmpty": false
1156
+ },
1157
+ {
1158
+ "op": "cmp",
1159
+ "field": "fieldType",
1160
+ "fieldName": "Right type",
1161
+ "operator": "==",
1162
+ "value": "column",
1163
+ "valueIsField": false,
1164
+ "isEmpty": false
1165
+ },
1166
+ {
1167
+ "op": "cmp",
1168
+ "field": "fieldType",
1169
+ "fieldName": "Right type",
1170
+ "operator": "==",
1171
+ "value": "currentcase",
1172
+ "valueIsField": false,
1173
+ "isEmpty": false
1174
+ },
1175
+ {
1176
+ "op": "cmp",
1177
+ "field": "fieldType",
1178
+ "fieldName": "Right type",
1179
+ "operator": "==",
1180
+ "value": "inlineTemplate",
1181
+ "valueIsField": false,
1182
+ "isEmpty": false
1183
+ },
1184
+ {
1185
+ "op": "cmp",
1186
+ "field": "fieldType",
1187
+ "fieldName": "Right type",
1188
+ "operator": "==",
1189
+ "value": "",
1190
+ "valueIsField": false,
1191
+ "isEmpty": true
1192
+ }
946
1193
  ]
947
1194
  }
948
1195
  }