@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
@@ -44,6 +44,62 @@
44
44
  "isEmpty": false
45
45
  }
46
46
  ],
47
+ "forbiddenWhen": [
48
+ {
49
+ "op": "cmp",
50
+ "field": "fromAttributeType",
51
+ "fieldName": "From attribute type",
52
+ "operator": "==",
53
+ "value": "casemetadata",
54
+ "valueIsField": false,
55
+ "isEmpty": false
56
+ },
57
+ {
58
+ "op": "cmp",
59
+ "field": "fromAttributeType",
60
+ "fieldName": "From attribute type",
61
+ "operator": "==",
62
+ "value": "currentItem",
63
+ "valueIsField": false,
64
+ "isEmpty": false
65
+ },
66
+ {
67
+ "op": "cmp",
68
+ "field": "fromAttributeType",
69
+ "fieldName": "From attribute type",
70
+ "operator": "==",
71
+ "value": "dataset",
72
+ "valueIsField": false,
73
+ "isEmpty": false
74
+ },
75
+ {
76
+ "op": "cmp",
77
+ "field": "fromAttributeType",
78
+ "fieldName": "From attribute type",
79
+ "operator": "==",
80
+ "value": "inlineTemplate",
81
+ "valueIsField": false,
82
+ "isEmpty": false
83
+ },
84
+ {
85
+ "op": "cmp",
86
+ "field": "fromAttributeType",
87
+ "fieldName": "From attribute type",
88
+ "operator": "==",
89
+ "value": "newcasemetadata",
90
+ "valueIsField": false,
91
+ "isEmpty": false
92
+ },
93
+ {
94
+ "op": "cmp",
95
+ "field": "fromAttributeType",
96
+ "fieldName": "From attribute type",
97
+ "operator": "==",
98
+ "value": "value",
99
+ "valueIsField": false,
100
+ "isEmpty": false
101
+ }
102
+ ],
47
103
  "optionsWhen": [
48
104
  {
49
105
  "when": {
@@ -68,15 +124,340 @@
68
124
  "field": "fromAttributeType",
69
125
  "fieldName": "From attribute type",
70
126
  "operator": "==",
71
- "value": "casedata",
127
+ "value": "casedata",
128
+ "valueIsField": false,
129
+ "isEmpty": false
130
+ },
131
+ "source": {
132
+ "kind": "objects",
133
+ "type": [
134
+ "platformAttribute",
135
+ "attribute"
136
+ ]
137
+ }
138
+ },
139
+ {
140
+ "when": {
141
+ "op": "cmp",
142
+ "field": "fromAttributeType",
143
+ "fieldName": "From attribute type",
144
+ "operator": "==",
145
+ "value": "taskout",
146
+ "valueIsField": false,
147
+ "isEmpty": false
148
+ },
149
+ "source": {
150
+ "kind": "objects",
151
+ "type": [
152
+ "platformAttribute",
153
+ "attribute"
154
+ ]
155
+ }
156
+ }
157
+ ]
158
+ },
159
+ "fromInlineTemplate": {
160
+ "baseline": "MUST_NOT",
161
+ "requiredWhen": [
162
+ {
163
+ "op": "cmp",
164
+ "field": "fromAttributeType",
165
+ "fieldName": "From attribute type",
166
+ "operator": "==",
167
+ "value": "inlineTemplate",
168
+ "valueIsField": false,
169
+ "isEmpty": false
170
+ }
171
+ ],
172
+ "enabledWhen": [
173
+ {
174
+ "op": "cmp",
175
+ "field": "fromAttributeType",
176
+ "fieldName": "From attribute type",
177
+ "operator": "==",
178
+ "value": "inlineTemplate",
179
+ "valueIsField": false,
180
+ "isEmpty": false
181
+ }
182
+ ],
183
+ "forbiddenWhen": [
184
+ {
185
+ "op": "cmp",
186
+ "field": "fromAttributeType",
187
+ "fieldName": "From attribute type",
188
+ "operator": "==",
189
+ "value": "casedata",
190
+ "valueIsField": false,
191
+ "isEmpty": false
192
+ },
193
+ {
194
+ "op": "cmp",
195
+ "field": "fromAttributeType",
196
+ "fieldName": "From attribute type",
197
+ "operator": "==",
198
+ "value": "casemetadata",
199
+ "valueIsField": false,
200
+ "isEmpty": false
201
+ },
202
+ {
203
+ "op": "cmp",
204
+ "field": "fromAttributeType",
205
+ "fieldName": "From attribute type",
206
+ "operator": "==",
207
+ "value": "currentItem",
208
+ "valueIsField": false,
209
+ "isEmpty": false
210
+ },
211
+ {
212
+ "op": "cmp",
213
+ "field": "fromAttributeType",
214
+ "fieldName": "From attribute type",
215
+ "operator": "==",
216
+ "value": "dataset",
217
+ "valueIsField": false,
218
+ "isEmpty": false
219
+ },
220
+ {
221
+ "op": "cmp",
222
+ "field": "fromAttributeType",
223
+ "fieldName": "From attribute type",
224
+ "operator": "==",
225
+ "value": "newcasemetadata",
226
+ "valueIsField": false,
227
+ "isEmpty": false
228
+ },
229
+ {
230
+ "op": "cmp",
231
+ "field": "fromAttributeType",
232
+ "fieldName": "From attribute type",
233
+ "operator": "==",
234
+ "value": "taskout",
235
+ "valueIsField": false,
236
+ "isEmpty": false
237
+ },
238
+ {
239
+ "op": "cmp",
240
+ "field": "fromAttributeType",
241
+ "fieldName": "From attribute type",
242
+ "operator": "==",
243
+ "value": "value",
244
+ "valueIsField": false,
245
+ "isEmpty": false
246
+ }
247
+ ]
248
+ },
249
+ "fromValue": {
250
+ "baseline": "MAY",
251
+ "requiredWhen": [
252
+ {
253
+ "op": "cmp",
254
+ "field": "fromAttributeType",
255
+ "fieldName": "From attribute type",
256
+ "operator": "==",
257
+ "value": "casemetadata",
258
+ "valueIsField": false,
259
+ "isEmpty": false
260
+ },
261
+ {
262
+ "op": "cmp",
263
+ "field": "fromAttributeType",
264
+ "fieldName": "From attribute type",
265
+ "operator": "==",
266
+ "value": "currentItem",
267
+ "valueIsField": false,
268
+ "isEmpty": false
269
+ },
270
+ {
271
+ "op": "cmp",
272
+ "field": "fromAttributeType",
273
+ "fieldName": "From attribute type",
274
+ "operator": "==",
275
+ "value": "dataset",
276
+ "valueIsField": false,
277
+ "isEmpty": false
278
+ },
279
+ {
280
+ "op": "cmp",
281
+ "field": "fromAttributeType",
282
+ "fieldName": "From attribute type",
283
+ "operator": "==",
284
+ "value": "newcasemetadata",
285
+ "valueIsField": false,
286
+ "isEmpty": false
287
+ },
288
+ {
289
+ "op": "cmp",
290
+ "field": "fromAttributeType",
291
+ "fieldName": "From attribute type",
292
+ "operator": "==",
293
+ "value": "value",
294
+ "valueIsField": false,
295
+ "isEmpty": false
296
+ }
297
+ ],
298
+ "enabledWhen": [
299
+ {
300
+ "op": "cmp",
301
+ "field": "fromAttributeType",
302
+ "fieldName": "From attribute type",
303
+ "operator": "==",
304
+ "value": "casemetadata",
305
+ "valueIsField": false,
306
+ "isEmpty": false
307
+ },
308
+ {
309
+ "op": "cmp",
310
+ "field": "fromAttributeType",
311
+ "fieldName": "From attribute type",
312
+ "operator": "==",
313
+ "value": "currentItem",
314
+ "valueIsField": false,
315
+ "isEmpty": false
316
+ },
317
+ {
318
+ "op": "cmp",
319
+ "field": "fromAttributeType",
320
+ "fieldName": "From attribute type",
321
+ "operator": "==",
322
+ "value": "dataset",
323
+ "valueIsField": false,
324
+ "isEmpty": false
325
+ },
326
+ {
327
+ "op": "cmp",
328
+ "field": "fromAttributeType",
329
+ "fieldName": "From attribute type",
330
+ "operator": "==",
331
+ "value": "newcasemetadata",
332
+ "valueIsField": false,
333
+ "isEmpty": false
334
+ },
335
+ {
336
+ "op": "cmp",
337
+ "field": "fromAttributeType",
338
+ "fieldName": "From attribute type",
339
+ "operator": "==",
340
+ "value": "value",
341
+ "valueIsField": false,
342
+ "isEmpty": false
343
+ }
344
+ ],
345
+ "forbiddenWhen": [
346
+ {
347
+ "op": "cmp",
348
+ "field": "fromAttributeType",
349
+ "fieldName": "From attribute type",
350
+ "operator": "==",
351
+ "value": "casedata",
352
+ "valueIsField": false,
353
+ "isEmpty": false
354
+ },
355
+ {
356
+ "op": "cmp",
357
+ "field": "fromAttributeType",
358
+ "fieldName": "From attribute type",
359
+ "operator": "==",
360
+ "value": "inlineTemplate",
361
+ "valueIsField": false,
362
+ "isEmpty": false
363
+ },
364
+ {
365
+ "op": "cmp",
366
+ "field": "fromAttributeType",
367
+ "fieldName": "From attribute type",
368
+ "operator": "==",
369
+ "value": "taskout",
370
+ "valueIsField": false,
371
+ "isEmpty": false
372
+ }
373
+ ],
374
+ "optionsWhen": [
375
+ {
376
+ "when": {
377
+ "op": "cmp",
378
+ "field": "fromAttributeType",
379
+ "fieldName": "From attribute type",
380
+ "operator": "==",
381
+ "value": "casemetadata",
382
+ "valueIsField": false,
383
+ "isEmpty": false
384
+ },
385
+ "source": {
386
+ "kind": "static",
387
+ "options": [
388
+ {
389
+ "id": "caseid",
390
+ "label": "Case ID"
391
+ },
392
+ {
393
+ "id": "casetype",
394
+ "label": "Casetype"
395
+ },
396
+ {
397
+ "id": "CopyDate",
398
+ "label": "Copy date"
399
+ },
400
+ {
401
+ "id": "CopyOfCaseID",
402
+ "label": "Copy of caseID"
403
+ },
404
+ {
405
+ "id": "dateCreated",
406
+ "label": "Date created"
407
+ },
408
+ {
409
+ "id": "dateFinished",
410
+ "label": "Date closed"
411
+ },
412
+ {
413
+ "id": "id",
414
+ "label": "ID"
415
+ },
416
+ {
417
+ "id": "origin",
418
+ "label": "Origin"
419
+ },
420
+ {
421
+ "id": "lastModified",
422
+ "label": "Last modified"
423
+ },
424
+ {
425
+ "id": "parentCase",
426
+ "label": "Parent case"
427
+ },
428
+ {
429
+ "id": "reference",
430
+ "label": "Reference"
431
+ },
432
+ {
433
+ "id": "requestor",
434
+ "label": "Requestor"
435
+ },
436
+ {
437
+ "id": "src",
438
+ "label": "Source ID"
439
+ },
440
+ {
441
+ "id": "related",
442
+ "label": "Related cases"
443
+ }
444
+ ]
445
+ }
446
+ },
447
+ {
448
+ "when": {
449
+ "op": "cmp",
450
+ "field": "fromAttributeType",
451
+ "fieldName": "From attribute type",
452
+ "operator": "==",
453
+ "value": "dataset",
72
454
  "valueIsField": false,
73
455
  "isEmpty": false
74
456
  },
75
457
  "source": {
76
458
  "kind": "objects",
77
459
  "type": [
78
- "platformAttribute",
79
- "attribute"
460
+ "dataset"
80
461
  ]
81
462
  }
82
463
  },
@@ -86,48 +467,102 @@
86
467
  "field": "fromAttributeType",
87
468
  "fieldName": "From attribute type",
88
469
  "operator": "==",
89
- "value": "taskout",
470
+ "value": "newcasemetadata",
90
471
  "valueIsField": false,
91
472
  "isEmpty": false
92
473
  },
93
474
  "source": {
94
- "kind": "objects",
95
- "type": [
96
- "platformAttribute",
97
- "attribute"
475
+ "kind": "static",
476
+ "options": [
477
+ {
478
+ "id": "caseid",
479
+ "label": "Case ID"
480
+ },
481
+ {
482
+ "id": "casetype",
483
+ "label": "Casetype"
484
+ },
485
+ {
486
+ "id": "CopyDate",
487
+ "label": "Copy date"
488
+ },
489
+ {
490
+ "id": "CopyOfCaseID",
491
+ "label": "Copy of caseID"
492
+ },
493
+ {
494
+ "id": "dateCreated",
495
+ "label": "Date created"
496
+ },
497
+ {
498
+ "id": "dateFinished",
499
+ "label": "Date closed"
500
+ },
501
+ {
502
+ "id": "id",
503
+ "label": "ID"
504
+ },
505
+ {
506
+ "id": "origin",
507
+ "label": "Origin"
508
+ },
509
+ {
510
+ "id": "lastModified",
511
+ "label": "Last modified"
512
+ },
513
+ {
514
+ "id": "parentCase",
515
+ "label": "Parent case"
516
+ },
517
+ {
518
+ "id": "reference",
519
+ "label": "Reference"
520
+ },
521
+ {
522
+ "id": "requestor",
523
+ "label": "Requestor"
524
+ },
525
+ {
526
+ "id": "src",
527
+ "label": "Source ID"
528
+ },
529
+ {
530
+ "id": "related",
531
+ "label": "Related cases"
532
+ }
98
533
  ]
99
534
  }
100
535
  }
101
536
  ]
102
537
  },
103
- "fromInlineTemplate": {
538
+ "progressTemplate": {
104
539
  "baseline": "MUST_NOT",
105
- "requiredWhen": [
540
+ "enabledWhen": [
106
541
  {
107
542
  "op": "cmp",
108
- "field": "fromAttributeType",
109
- "fieldName": "From attribute type",
543
+ "field": "showProgress",
544
+ "fieldName": "Show Progress",
110
545
  "operator": "==",
111
- "value": "inlineTemplate",
546
+ "value": "true",
112
547
  "valueIsField": false,
113
548
  "isEmpty": false
114
549
  }
115
550
  ],
116
- "enabledWhen": [
551
+ "forbiddenWhen": [
117
552
  {
118
553
  "op": "cmp",
119
- "field": "fromAttributeType",
120
- "fieldName": "From attribute type",
121
- "operator": "==",
122
- "value": "inlineTemplate",
554
+ "field": "showProgress",
555
+ "fieldName": "Show Progress",
556
+ "operator": "!=",
557
+ "value": "true",
123
558
  "valueIsField": false,
124
559
  "isEmpty": false
125
560
  }
126
561
  ]
127
562
  },
128
- "progressTemplate": {
563
+ "progressTitle": {
129
564
  "baseline": "MUST_NOT",
130
- "enabledWhen": [
565
+ "requiredWhen": [
131
566
  {
132
567
  "op": "cmp",
133
568
  "field": "showProgress",
@@ -137,11 +572,8 @@
137
572
  "valueIsField": false,
138
573
  "isEmpty": false
139
574
  }
140
- ]
141
- },
142
- "progressTitle": {
143
- "baseline": "MUST_NOT",
144
- "requiredWhen": [
575
+ ],
576
+ "enabledWhen": [
145
577
  {
146
578
  "op": "cmp",
147
579
  "field": "showProgress",
@@ -152,12 +584,12 @@
152
584
  "isEmpty": false
153
585
  }
154
586
  ],
155
- "enabledWhen": [
587
+ "forbiddenWhen": [
156
588
  {
157
589
  "op": "cmp",
158
590
  "field": "showProgress",
159
591
  "fieldName": "Show Progress",
160
- "operator": "==",
592
+ "operator": "!=",
161
593
  "value": "true",
162
594
  "valueIsField": false,
163
595
  "isEmpty": false
@@ -165,10 +597,32 @@
165
597
  ]
166
598
  },
167
599
  "taskInPointer": {
168
- "baseline": "MUST_NOT"
600
+ "baseline": "MUST_NOT",
601
+ "forbiddenWhen": [
602
+ {
603
+ "op": "cmp",
604
+ "field": "toAttributeType",
605
+ "fieldName": "To attribute type",
606
+ "operator": "!==",
607
+ "value": "taskIn",
608
+ "valueIsField": false,
609
+ "isEmpty": false
610
+ }
611
+ ]
169
612
  },
170
613
  "taskOutPointer": {
171
- "baseline": "MUST_NOT"
614
+ "baseline": "MUST_NOT",
615
+ "forbiddenWhen": [
616
+ {
617
+ "op": "cmp",
618
+ "field": "fromAttributeType",
619
+ "fieldName": "From attribute type",
620
+ "operator": "!=",
621
+ "value": "taskout",
622
+ "valueIsField": false,
623
+ "isEmpty": false
624
+ }
625
+ ]
172
626
  },
173
627
  "toAttribute": {
174
628
  "baseline": "MUST_NOT",
@@ -212,6 +666,44 @@
212
666
  "isEmpty": true
213
667
  }
214
668
  ],
669
+ "forbiddenWhen": [
670
+ {
671
+ "op": "cmp",
672
+ "field": "toAttributeType",
673
+ "fieldName": "To attribute type",
674
+ "operator": "in",
675
+ "value": "('casedata',' taskIn')",
676
+ "valueIsField": false,
677
+ "isEmpty": false
678
+ },
679
+ {
680
+ "op": "cmp",
681
+ "field": "toAttributeType",
682
+ "fieldName": "To attribute type",
683
+ "operator": "==",
684
+ "value": "taskAttribute",
685
+ "valueIsField": false,
686
+ "isEmpty": false
687
+ },
688
+ {
689
+ "op": "cmp",
690
+ "field": "toAttributeType",
691
+ "fieldName": "To attribute type",
692
+ "operator": "==",
693
+ "value": "usersession",
694
+ "valueIsField": false,
695
+ "isEmpty": false
696
+ },
697
+ {
698
+ "op": "cmp",
699
+ "field": "toAttributeType",
700
+ "fieldName": "To attribute type",
701
+ "operator": "==",
702
+ "value": "",
703
+ "valueIsField": false,
704
+ "isEmpty": true
705
+ }
706
+ ],
215
707
  "optionsWhen": [
216
708
  {
217
709
  "when": {
@@ -407,6 +899,35 @@
407
899
  "valueIsField": false,
408
900
  "isEmpty": false
409
901
  }
902
+ ],
903
+ "forbiddenWhen": [
904
+ {
905
+ "op": "cmp",
906
+ "field": "toAttributeType",
907
+ "fieldName": "To attribute type",
908
+ "operator": "==",
909
+ "value": "taskAttribute",
910
+ "valueIsField": false,
911
+ "isEmpty": false
912
+ },
913
+ {
914
+ "op": "cmp",
915
+ "field": "toAttributeType",
916
+ "fieldName": "To attribute type",
917
+ "operator": "==",
918
+ "value": "usersession",
919
+ "valueIsField": false,
920
+ "isEmpty": false
921
+ },
922
+ {
923
+ "op": "cmp",
924
+ "field": "toAttributeType",
925
+ "fieldName": "To attribute type",
926
+ "operator": "!==",
927
+ "value": "taskIn",
928
+ "valueIsField": false,
929
+ "isEmpty": false
930
+ }
410
931
  ]
411
932
  },
412
933
  "toKey": {
@@ -432,6 +953,35 @@
432
953
  "valueIsField": false,
433
954
  "isEmpty": false
434
955
  }
956
+ ],
957
+ "forbiddenWhen": [
958
+ {
959
+ "op": "cmp",
960
+ "field": "toAttributeType",
961
+ "fieldName": "To attribute type",
962
+ "operator": "in",
963
+ "value": "('casedata',' taskIn')",
964
+ "valueIsField": false,
965
+ "isEmpty": false
966
+ },
967
+ {
968
+ "op": "cmp",
969
+ "field": "toAttributeType",
970
+ "fieldName": "To attribute type",
971
+ "operator": "==",
972
+ "value": "taskAttribute",
973
+ "valueIsField": false,
974
+ "isEmpty": false
975
+ },
976
+ {
977
+ "op": "cmp",
978
+ "field": "toAttributeType",
979
+ "fieldName": "To attribute type",
980
+ "operator": "!==",
981
+ "value": "taskIn",
982
+ "valueIsField": false,
983
+ "isEmpty": false
984
+ }
435
985
  ]
436
986
  },
437
987
  "activityAttribute": {
@@ -457,6 +1007,35 @@
457
1007
  "valueIsField": false,
458
1008
  "isEmpty": false
459
1009
  }
1010
+ ],
1011
+ "forbiddenWhen": [
1012
+ {
1013
+ "op": "cmp",
1014
+ "field": "toAttributeType",
1015
+ "fieldName": "To attribute type",
1016
+ "operator": "in",
1017
+ "value": "('casedata',' taskIn')",
1018
+ "valueIsField": false,
1019
+ "isEmpty": false
1020
+ },
1021
+ {
1022
+ "op": "cmp",
1023
+ "field": "toAttributeType",
1024
+ "fieldName": "To attribute type",
1025
+ "operator": "==",
1026
+ "value": "usersession",
1027
+ "valueIsField": false,
1028
+ "isEmpty": false
1029
+ },
1030
+ {
1031
+ "op": "cmp",
1032
+ "field": "toAttributeType",
1033
+ "fieldName": "To attribute type",
1034
+ "operator": "!==",
1035
+ "value": "taskIn",
1036
+ "valueIsField": false,
1037
+ "isEmpty": false
1038
+ }
460
1039
  ]
461
1040
  }
462
1041
  }