@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,53 @@
11
11
  "valueIsField": false,
12
12
  "isEmpty": false
13
13
  }
14
+ ],
15
+ "forbiddenWhen": [
16
+ {
17
+ "op": "cmp",
18
+ "field": "contexttype",
19
+ "fieldName": "Context type",
20
+ "operator": "==",
21
+ "value": "context",
22
+ "valueIsField": false,
23
+ "isEmpty": false
24
+ },
25
+ {
26
+ "op": "cmp",
27
+ "field": "contexttype",
28
+ "fieldName": "Context type",
29
+ "operator": "==",
30
+ "value": "impersonate",
31
+ "valueIsField": false,
32
+ "isEmpty": false
33
+ },
34
+ {
35
+ "op": "cmp",
36
+ "field": "contexttype",
37
+ "fieldName": "Context type",
38
+ "operator": "==",
39
+ "value": "resetimpersonate",
40
+ "valueIsField": false,
41
+ "isEmpty": false
42
+ },
43
+ {
44
+ "op": "cmp",
45
+ "field": "contexttype",
46
+ "fieldName": "Context type",
47
+ "operator": "==",
48
+ "value": "usersession",
49
+ "valueIsField": false,
50
+ "isEmpty": false
51
+ },
52
+ {
53
+ "op": "cmp",
54
+ "field": "contexttype",
55
+ "fieldName": "Context type",
56
+ "operator": "!=",
57
+ "value": "additionalSecurityProfile",
58
+ "valueIsField": false,
59
+ "isEmpty": false
60
+ }
14
61
  ]
15
62
  },
16
63
  "contexttype": {
@@ -84,6 +131,26 @@
84
131
  "isEmpty": false
85
132
  }
86
133
  ],
134
+ "forbiddenWhen": [
135
+ {
136
+ "op": "cmp",
137
+ "field": "contexttype",
138
+ "fieldName": "Context type",
139
+ "operator": "==",
140
+ "value": "additionalSecurityProfile",
141
+ "valueIsField": false,
142
+ "isEmpty": false
143
+ },
144
+ {
145
+ "op": "cmp",
146
+ "field": "contexttype",
147
+ "fieldName": "Context type",
148
+ "operator": "==",
149
+ "value": "resetimpersonate",
150
+ "valueIsField": false,
151
+ "isEmpty": false
152
+ }
153
+ ],
87
154
  "optionsWhen": [
88
155
  {
89
156
  "when": {
@@ -157,6 +224,58 @@
157
224
  "isEmpty": false
158
225
  }
159
226
  ],
227
+ "forbiddenWhen": [
228
+ {
229
+ "op": "cmp",
230
+ "field": "contexttype",
231
+ "fieldName": "Context type",
232
+ "operator": "contains",
233
+ "value": "platform",
234
+ "valueIsField": false,
235
+ "isEmpty": false
236
+ },
237
+ {
238
+ "op": "cmp",
239
+ "field": "contexttype",
240
+ "fieldName": "Context type",
241
+ "operator": "==",
242
+ "value": "additionalSecurityProfile",
243
+ "valueIsField": false,
244
+ "isEmpty": false
245
+ },
246
+ {
247
+ "op": "cmp",
248
+ "field": "contexttype",
249
+ "fieldName": "Context type",
250
+ "operator": "==",
251
+ "value": "impersonate",
252
+ "valueIsField": false,
253
+ "isEmpty": false
254
+ },
255
+ {
256
+ "op": "cmp",
257
+ "field": "contexttype",
258
+ "fieldName": "Context type",
259
+ "operator": "==",
260
+ "value": "resetimpersonate",
261
+ "valueIsField": false,
262
+ "isEmpty": false
263
+ }
264
+ ],
265
+ "labelWhen": [
266
+ {
267
+ "when": {
268
+ "op": "cmp",
269
+ "field": "contexttype",
270
+ "fieldName": "Context type",
271
+ "operator": "==",
272
+ "value": "usersession",
273
+ "valueIsField": false,
274
+ "isEmpty": false
275
+ },
276
+ "label": "Type (Key)"
277
+ }
278
+ ],
160
279
  "optionsWhen": [
161
280
  {
162
281
  "when": {
@@ -83,6 +83,71 @@
83
83
  "isEmpty": false
84
84
  }
85
85
  ],
86
+ "forbiddenWhen": [
87
+ {
88
+ "op": "cmp",
89
+ "field": "leftFieldType",
90
+ "fieldName": "Left field type",
91
+ "operator": "==",
92
+ "value": "inlinetemplate",
93
+ "valueIsField": false,
94
+ "isEmpty": false
95
+ },
96
+ {
97
+ "op": "cmp",
98
+ "field": "leftFieldType",
99
+ "fieldName": "Left field type",
100
+ "operator": "==",
101
+ "value": "staticPicklistItem",
102
+ "valueIsField": false,
103
+ "isEmpty": false
104
+ },
105
+ {
106
+ "op": "cmp",
107
+ "field": "leftFieldType",
108
+ "fieldName": "Left field type",
109
+ "operator": "==",
110
+ "value": "taskAttribute",
111
+ "valueIsField": false,
112
+ "isEmpty": false
113
+ },
114
+ {
115
+ "op": "cmp",
116
+ "field": "leftFieldType",
117
+ "fieldName": "Left field type",
118
+ "operator": "==",
119
+ "value": "value",
120
+ "valueIsField": false,
121
+ "isEmpty": false
122
+ },
123
+ {
124
+ "op": "cmp",
125
+ "field": "leftFieldType",
126
+ "fieldName": "Left field type",
127
+ "operator": "==",
128
+ "value": "",
129
+ "valueIsField": false,
130
+ "isEmpty": true
131
+ },
132
+ {
133
+ "op": "cmp",
134
+ "field": "leftFieldType",
135
+ "fieldName": "Left field type",
136
+ "operator": "!=",
137
+ "value": "caseData",
138
+ "valueIsField": false,
139
+ "isEmpty": false
140
+ },
141
+ {
142
+ "op": "cmp",
143
+ "field": "leftFieldType",
144
+ "fieldName": "Left field type",
145
+ "operator": "!=",
146
+ "value": "formfield",
147
+ "valueIsField": false,
148
+ "isEmpty": false
149
+ }
150
+ ],
86
151
  "optionsWhen": [
87
152
  {
88
153
  "when": {
@@ -233,6 +298,53 @@
233
298
  "valueIsField": false,
234
299
  "isEmpty": false
235
300
  }
301
+ ],
302
+ "forbiddenWhen": [
303
+ {
304
+ "op": "cmp",
305
+ "field": "leftFieldType",
306
+ "fieldName": "Left field type",
307
+ "operator": "==",
308
+ "value": "caseData",
309
+ "valueIsField": false,
310
+ "isEmpty": false
311
+ },
312
+ {
313
+ "op": "cmp",
314
+ "field": "leftFieldType",
315
+ "fieldName": "Left field type",
316
+ "operator": "==",
317
+ "value": "staticPicklistItem",
318
+ "valueIsField": false,
319
+ "isEmpty": false
320
+ },
321
+ {
322
+ "op": "cmp",
323
+ "field": "leftFieldType",
324
+ "fieldName": "Left field type",
325
+ "operator": "==",
326
+ "value": "value",
327
+ "valueIsField": false,
328
+ "isEmpty": false
329
+ },
330
+ {
331
+ "op": "cmp",
332
+ "field": "leftFieldType",
333
+ "fieldName": "Left field type",
334
+ "operator": "==",
335
+ "value": "",
336
+ "valueIsField": false,
337
+ "isEmpty": true
338
+ },
339
+ {
340
+ "op": "cmp",
341
+ "field": "leftFieldType",
342
+ "fieldName": "Left field type",
343
+ "operator": "!=",
344
+ "value": "inlinetemplate",
345
+ "valueIsField": false,
346
+ "isEmpty": false
347
+ }
236
348
  ]
237
349
  },
238
350
  "leftActivityAttribute": {
@@ -258,6 +370,17 @@
258
370
  "valueIsField": false,
259
371
  "isEmpty": false
260
372
  }
373
+ ],
374
+ "forbiddenWhen": [
375
+ {
376
+ "op": "cmp",
377
+ "field": "leftFieldType",
378
+ "fieldName": "Left field type",
379
+ "operator": "!=",
380
+ "value": "taskAttribute",
381
+ "valueIsField": false,
382
+ "isEmpty": false
383
+ }
261
384
  ]
262
385
  },
263
386
  "leftTriggerPointer": {
@@ -295,6 +418,62 @@
295
418
  "valueIsField": false,
296
419
  "isEmpty": false
297
420
  }
421
+ ],
422
+ "forbiddenWhen": [
423
+ {
424
+ "op": "cmp",
425
+ "field": "leftFieldType",
426
+ "fieldName": "Left field type",
427
+ "operator": "==",
428
+ "value": "caseData",
429
+ "valueIsField": false,
430
+ "isEmpty": false
431
+ },
432
+ {
433
+ "op": "cmp",
434
+ "field": "leftFieldType",
435
+ "fieldName": "Left field type",
436
+ "operator": "==",
437
+ "value": "inlinetemplate",
438
+ "valueIsField": false,
439
+ "isEmpty": false
440
+ },
441
+ {
442
+ "op": "cmp",
443
+ "field": "leftFieldType",
444
+ "fieldName": "Left field type",
445
+ "operator": "==",
446
+ "value": "taskAttribute",
447
+ "valueIsField": false,
448
+ "isEmpty": false
449
+ },
450
+ {
451
+ "op": "cmp",
452
+ "field": "leftFieldType",
453
+ "fieldName": "Left field type",
454
+ "operator": "==",
455
+ "value": "taskIn",
456
+ "valueIsField": false,
457
+ "isEmpty": false
458
+ },
459
+ {
460
+ "op": "cmp",
461
+ "field": "leftFieldType",
462
+ "fieldName": "Left field type",
463
+ "operator": "==",
464
+ "value": "taskOut",
465
+ "valueIsField": false,
466
+ "isEmpty": false
467
+ },
468
+ {
469
+ "op": "cmp",
470
+ "field": "leftFieldType",
471
+ "fieldName": "Left field type",
472
+ "operator": "==",
473
+ "value": "",
474
+ "valueIsField": false,
475
+ "isEmpty": true
476
+ }
298
477
  ]
299
478
  },
300
479
  "operator": {
@@ -458,6 +637,62 @@
458
637
  "isEmpty": false
459
638
  }
460
639
  ],
640
+ "forbiddenWhen": [
641
+ {
642
+ "op": "cmp",
643
+ "field": "rightFieldType",
644
+ "fieldName": "Right field type",
645
+ "operator": "==",
646
+ "value": "inlinetemplate",
647
+ "valueIsField": false,
648
+ "isEmpty": false
649
+ },
650
+ {
651
+ "op": "cmp",
652
+ "field": "rightFieldType",
653
+ "fieldName": "Right field type",
654
+ "operator": "==",
655
+ "value": "staticPicklistItem",
656
+ "valueIsField": false,
657
+ "isEmpty": false
658
+ },
659
+ {
660
+ "op": "cmp",
661
+ "field": "rightFieldType",
662
+ "fieldName": "Right field type",
663
+ "operator": "==",
664
+ "value": "taskAttribute",
665
+ "valueIsField": false,
666
+ "isEmpty": false
667
+ },
668
+ {
669
+ "op": "cmp",
670
+ "field": "rightFieldType",
671
+ "fieldName": "Right field type",
672
+ "operator": "==",
673
+ "value": "value",
674
+ "valueIsField": false,
675
+ "isEmpty": false
676
+ },
677
+ {
678
+ "op": "cmp",
679
+ "field": "rightFieldType",
680
+ "fieldName": "Right field type",
681
+ "operator": "==",
682
+ "value": "",
683
+ "valueIsField": false,
684
+ "isEmpty": true
685
+ },
686
+ {
687
+ "op": "cmp",
688
+ "field": "rightFieldType",
689
+ "fieldName": "Right field type",
690
+ "operator": "!=",
691
+ "value": "caseData",
692
+ "valueIsField": false,
693
+ "isEmpty": false
694
+ }
695
+ ],
461
696
  "optionsWhen": [
462
697
  {
463
698
  "when": {
@@ -549,7 +784,41 @@
549
784
  ]
550
785
  },
551
786
  "rightFieldStaticItem": {
552
- "baseline": "MUST_NOT"
787
+ "baseline": "MUST_NOT",
788
+ "forbiddenWhen": [
789
+ {
790
+ "op": "or",
791
+ "items": [
792
+ {
793
+ "op": "cmp",
794
+ "field": "leftFieldType",
795
+ "fieldName": "Left field type",
796
+ "operator": "!=",
797
+ "value": "value",
798
+ "valueIsField": false,
799
+ "isEmpty": false
800
+ },
801
+ {
802
+ "op": "cmp",
803
+ "field": "rightField",
804
+ "fieldName": "Right field",
805
+ "operator": "===",
806
+ "value": "",
807
+ "valueIsField": false,
808
+ "isEmpty": true
809
+ }
810
+ ]
811
+ },
812
+ {
813
+ "op": "cmp",
814
+ "field": "rightField",
815
+ "fieldName": "Right field",
816
+ "operator": "===",
817
+ "value": "",
818
+ "valueIsField": false,
819
+ "isEmpty": true
820
+ }
821
+ ]
553
822
  },
554
823
  "rightFieldType": {
555
824
  "baseline": "MAY",
@@ -600,6 +869,53 @@
600
869
  "valueIsField": false,
601
870
  "isEmpty": false
602
871
  }
872
+ ],
873
+ "forbiddenWhen": [
874
+ {
875
+ "op": "cmp",
876
+ "field": "rightFieldType",
877
+ "fieldName": "Right field type",
878
+ "operator": "==",
879
+ "value": "caseData",
880
+ "valueIsField": false,
881
+ "isEmpty": false
882
+ },
883
+ {
884
+ "op": "cmp",
885
+ "field": "rightFieldType",
886
+ "fieldName": "Right field type",
887
+ "operator": "==",
888
+ "value": "staticPicklistItem",
889
+ "valueIsField": false,
890
+ "isEmpty": false
891
+ },
892
+ {
893
+ "op": "cmp",
894
+ "field": "rightFieldType",
895
+ "fieldName": "Right field type",
896
+ "operator": "==",
897
+ "value": "value",
898
+ "valueIsField": false,
899
+ "isEmpty": false
900
+ },
901
+ {
902
+ "op": "cmp",
903
+ "field": "rightFieldType",
904
+ "fieldName": "Right field type",
905
+ "operator": "==",
906
+ "value": "",
907
+ "valueIsField": false,
908
+ "isEmpty": true
909
+ },
910
+ {
911
+ "op": "cmp",
912
+ "field": "rightFieldType",
913
+ "fieldName": "Right field type",
914
+ "operator": "!=",
915
+ "value": "inlinetemplate",
916
+ "valueIsField": false,
917
+ "isEmpty": false
918
+ }
603
919
  ]
604
920
  },
605
921
  "rightActivityAttribute": {
@@ -625,6 +941,17 @@
625
941
  "valueIsField": false,
626
942
  "isEmpty": false
627
943
  }
944
+ ],
945
+ "forbiddenWhen": [
946
+ {
947
+ "op": "cmp",
948
+ "field": "rightFieldType",
949
+ "fieldName": "Right field type",
950
+ "operator": "!=",
951
+ "value": "taskAttribute",
952
+ "valueIsField": false,
953
+ "isEmpty": false
954
+ }
628
955
  ]
629
956
  },
630
957
  "rightTriggerPointer": {
@@ -662,6 +989,62 @@
662
989
  "valueIsField": false,
663
990
  "isEmpty": false
664
991
  }
992
+ ],
993
+ "forbiddenWhen": [
994
+ {
995
+ "op": "cmp",
996
+ "field": "rightFieldType",
997
+ "fieldName": "Right field type",
998
+ "operator": "==",
999
+ "value": "caseData",
1000
+ "valueIsField": false,
1001
+ "isEmpty": false
1002
+ },
1003
+ {
1004
+ "op": "cmp",
1005
+ "field": "rightFieldType",
1006
+ "fieldName": "Right field type",
1007
+ "operator": "==",
1008
+ "value": "inlinetemplate",
1009
+ "valueIsField": false,
1010
+ "isEmpty": false
1011
+ },
1012
+ {
1013
+ "op": "cmp",
1014
+ "field": "rightFieldType",
1015
+ "fieldName": "Right field type",
1016
+ "operator": "==",
1017
+ "value": "taskAttribute",
1018
+ "valueIsField": false,
1019
+ "isEmpty": false
1020
+ },
1021
+ {
1022
+ "op": "cmp",
1023
+ "field": "rightFieldType",
1024
+ "fieldName": "Right field type",
1025
+ "operator": "==",
1026
+ "value": "taskIn",
1027
+ "valueIsField": false,
1028
+ "isEmpty": false
1029
+ },
1030
+ {
1031
+ "op": "cmp",
1032
+ "field": "rightFieldType",
1033
+ "fieldName": "Right field type",
1034
+ "operator": "==",
1035
+ "value": "taskOut",
1036
+ "valueIsField": false,
1037
+ "isEmpty": false
1038
+ },
1039
+ {
1040
+ "op": "cmp",
1041
+ "field": "rightFieldType",
1042
+ "fieldName": "Right field type",
1043
+ "operator": "==",
1044
+ "value": "",
1045
+ "valueIsField": false,
1046
+ "isEmpty": true
1047
+ }
665
1048
  ]
666
1049
  }
667
1050
  }
@@ -24,6 +24,23 @@
24
24
  "attribute"
25
25
  ]
26
26
  }
27
+ },
28
+ {
29
+ "when": {
30
+ "op": "cmp",
31
+ "field": "isTaskQueueBeingUsedWithQueuecases",
32
+ "fieldName": "Is task queue being used with queuecases",
33
+ "operator": "!=",
34
+ "value": "true",
35
+ "valueIsField": false,
36
+ "isEmpty": false
37
+ },
38
+ "source": {
39
+ "kind": "objects",
40
+ "type": [
41
+ "attribute"
42
+ ]
43
+ }
27
44
  }
28
45
  ]
29
46
  }
@@ -11,6 +11,17 @@
11
11
  "valueIsField": false,
12
12
  "isEmpty": true
13
13
  }
14
+ ],
15
+ "forbiddenWhen": [
16
+ {
17
+ "op": "cmp",
18
+ "field": "subtype",
19
+ "fieldName": "Context: Current casetypes",
20
+ "operator": "!=",
21
+ "value": "",
22
+ "valueIsField": false,
23
+ "isEmpty": true
24
+ }
14
25
  ]
15
26
  },
16
27
  "name": {