@grexx/grexxlinter 0.2.326 → 0.2.348

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 (60) hide show
  1. package/cli.js +186 -9
  2. package/lsp.js +122 -5
  3. package/package.json +1 -1
  4. package/schemas/.coverage.json +75 -714
  5. package/schemas/activity.schema.json +0 -19
  6. package/schemas/activityAttribute.schema.json +0 -17
  7. package/schemas/activityRight.schema.json +2 -8
  8. package/schemas/attribute.schema.json +2 -17
  9. package/schemas/casetype.schema.json +0 -1
  10. package/schemas/catchBlock.schema.json +12 -5
  11. package/schemas/conditionList.schema.json +69 -50
  12. package/schemas/container.schema.json +57 -74
  13. package/schemas/customThrow.schema.json +11 -3
  14. package/schemas/dataset.schema.json +0 -52
  15. package/schemas/datasetColumn.schema.json +0 -114
  16. package/schemas/datasetCondition.schema.json +0 -77
  17. package/schemas/datasetRight.schema.json +0 -2
  18. package/schemas/directRole.schema.json +0 -7
  19. package/schemas/folderInfo.schema.json +45 -0
  20. package/schemas/forEach.schema.json +42 -27
  21. package/schemas/formAction.schema.json +1 -17
  22. package/schemas/formActionInlineJavascript.schema.json +49 -54
  23. package/schemas/formGroup.schema.json +71 -82
  24. package/schemas/formRight.schema.json +0 -2
  25. package/schemas/formfield.schema.json +0 -40
  26. package/schemas/gridActivity.schema.json +59 -78
  27. package/schemas/gridColumn.schema.json +107 -144
  28. package/schemas/ifthenelse.schema.json +0 -10
  29. package/schemas/indirectRole.schema.json +0 -7
  30. package/schemas/jobStep.schema.json +47 -64
  31. package/schemas/mapping.schema.json +33 -43
  32. package/schemas/menuItem.schema.json +43 -56
  33. package/schemas/menuItemRight.schema.json +45 -71
  34. package/schemas/metadata.schema.json +3 -18
  35. package/schemas/notCondition.schema.json +45 -66
  36. package/schemas/parallelBlock.schema.json +55 -60
  37. package/schemas/picklist.schema.json +1 -2
  38. package/schemas/picklistItem.schema.json +49 -55
  39. package/schemas/platformAttribute.schema.json +0 -22
  40. package/schemas/platformRole.schema.json +0 -11
  41. package/schemas/plugin.schema.json +71 -77
  42. package/schemas/pluginLibrary.schema.json +0 -2
  43. package/schemas/requestContext.schema.json +10 -0
  44. package/schemas/securityProfile.schema.json +53 -47
  45. package/schemas/securityRequirement.schema.json +52 -47
  46. package/schemas/simpleCondition.schema.json +0 -10
  47. package/schemas/template/date-function.schema.json +1 -0
  48. package/schemas/template/html.schema.json +1 -0
  49. package/schemas/template/if.schema.json +1 -0
  50. package/schemas/template/iterator.schema.json +1 -0
  51. package/schemas/template/multivalue.schema.json +1 -0
  52. package/schemas/template/picklist.schema.json +1 -0
  53. package/schemas/template/util.schema.json +4 -0
  54. package/schemas/template.schema.json +1 -2
  55. package/schemas/trigger.schema.json +131 -68
  56. package/schemas/tryBlock.schema.json +12 -5
  57. package/schemas/view.schema.json +0 -17
  58. package/schemas/while.schema.json +23 -43
  59. package/schemas/widget.schema.json +0 -463
  60. package/schemas/widgetRight.schema.json +1 -2
@@ -130,17 +130,11 @@
130
130
  },
131
131
  "required": [
132
132
  "_type",
133
- "_uid",
134
- "type"
133
+ "_uid"
135
134
  ],
136
135
  "title": "mapping",
137
136
  "type": "object",
138
137
  "allOf": [
139
- {
140
- "properties": {
141
- "devParentCase": false
142
- }
143
- },
144
138
  {
145
139
  "if": {
146
140
  "anyOf": [
@@ -337,34 +331,15 @@
337
331
  }
338
332
  }
339
333
  },
340
- {
341
- "properties": {
342
- "parentRule": false
343
- }
344
- },
345
334
  {
346
335
  "if": {
347
- "anyOf": [
348
- {
349
- "properties": {
350
- "showProgress": {
351
- "const": "true"
352
- }
353
- },
354
- "required": [
355
- "showProgress"
356
- ]
357
- },
358
- {
359
- "properties": {
360
- "showProgress": {
361
- "const": "true"
362
- }
363
- },
364
- "required": [
365
- "showProgress"
366
- ]
336
+ "properties": {
337
+ "showProgress": {
338
+ "const": "true"
367
339
  }
340
+ },
341
+ "required": [
342
+ "showProgress"
368
343
  ]
369
344
  },
370
345
  "then": {},
@@ -406,16 +381,6 @@
406
381
  }
407
382
  }
408
383
  },
409
- {
410
- "properties": {
411
- "toAttribute": false
412
- }
413
- },
414
- {
415
- "properties": {
416
- "jsonPath": false
417
- }
418
- },
419
384
  {
420
385
  "if": {
421
386
  "anyOf": [
@@ -480,6 +445,32 @@
480
445
  }
481
446
  }
482
447
  },
448
+ {
449
+ "if": {
450
+ "properties": {
451
+ "showProgress": {
452
+ "const": "true"
453
+ }
454
+ },
455
+ "required": [
456
+ "showProgress"
457
+ ]
458
+ },
459
+ "then": {
460
+ "anyOf": [
461
+ {
462
+ "required": [
463
+ "progressTemplate"
464
+ ]
465
+ },
466
+ {
467
+ "required": [
468
+ "progressTitle"
469
+ ]
470
+ }
471
+ ]
472
+ }
473
+ },
483
474
  {
484
475
  "if": {
485
476
  "properties": {
@@ -657,7 +648,6 @@
657
648
  },
658
649
  "then": {
659
650
  "required": [
660
- "progressTemplate",
661
651
  "progressTitle"
662
652
  ]
663
653
  }
@@ -153,11 +153,6 @@
153
153
  }
154
154
  }
155
155
  },
156
- {
157
- "properties": {
158
- "devParentCase": false
159
- }
160
- },
161
156
  {
162
157
  "if": {
163
158
  "anyOf": [
@@ -203,26 +198,6 @@
203
198
  {
204
199
  "if": {
205
200
  "anyOf": [
206
- {
207
- "properties": {
208
- "type": {
209
- "const": "link"
210
- }
211
- },
212
- "required": [
213
- "type"
214
- ]
215
- },
216
- {
217
- "properties": {
218
- "type": {
219
- "const": "menu"
220
- }
221
- },
222
- "required": [
223
- "type"
224
- ]
225
- },
226
201
  {
227
202
  "properties": {
228
203
  "type": {
@@ -315,26 +290,6 @@
315
290
  "type"
316
291
  ]
317
292
  },
318
- {
319
- "properties": {
320
- "type": {
321
- "const": "link"
322
- }
323
- },
324
- "required": [
325
- "type"
326
- ]
327
- },
328
- {
329
- "properties": {
330
- "type": {
331
- "const": "menu"
332
- }
333
- },
334
- "required": [
335
- "type"
336
- ]
337
- },
338
293
  {
339
294
  "properties": {
340
295
  "type": {
@@ -368,7 +323,7 @@
368
323
  {
369
324
  "properties": {
370
325
  "type": {
371
- "const": "link"
326
+ "const": "text"
372
327
  }
373
328
  },
374
329
  "required": [
@@ -378,7 +333,7 @@
378
333
  {
379
334
  "properties": {
380
335
  "type": {
381
- "const": "menu"
336
+ "const": "title"
382
337
  }
383
338
  },
384
339
  "required": [
@@ -388,7 +343,7 @@
388
343
  {
389
344
  "properties": {
390
345
  "type": {
391
- "const": "text"
346
+ "const": "link"
392
347
  }
393
348
  },
394
349
  "required": [
@@ -398,7 +353,7 @@
398
353
  {
399
354
  "properties": {
400
355
  "type": {
401
- "const": "title"
356
+ "const": "menu"
402
357
  }
403
358
  },
404
359
  "required": [
@@ -418,7 +373,7 @@
418
373
  "if": {
419
374
  "properties": {
420
375
  "type": {
421
- "const": "link"
376
+ "const": "menu"
422
377
  }
423
378
  },
424
379
  "required": [
@@ -426,10 +381,43 @@
426
381
  ]
427
382
  },
428
383
  "then": {
384
+ "anyOf": [
385
+ {
386
+ "required": [
387
+ "text"
388
+ ]
389
+ },
390
+ {
391
+ "required": [
392
+ "icon"
393
+ ]
394
+ }
395
+ ]
396
+ }
397
+ },
398
+ {
399
+ "if": {
400
+ "properties": {
401
+ "type": {
402
+ "const": "link"
403
+ }
404
+ },
429
405
  "required": [
430
- "href",
431
- "icon",
432
- "text"
406
+ "type"
407
+ ]
408
+ },
409
+ "then": {
410
+ "anyOf": [
411
+ {
412
+ "required": [
413
+ "text"
414
+ ]
415
+ },
416
+ {
417
+ "required": [
418
+ "icon"
419
+ ]
420
+ }
433
421
  ]
434
422
  }
435
423
  },
@@ -437,7 +425,7 @@
437
425
  "if": {
438
426
  "properties": {
439
427
  "type": {
440
- "const": "menu"
428
+ "const": "link"
441
429
  }
442
430
  },
443
431
  "required": [
@@ -446,8 +434,7 @@
446
434
  },
447
435
  "then": {
448
436
  "required": [
449
- "icon",
450
- "text"
437
+ "href"
451
438
  ]
452
439
  }
453
440
  },
@@ -1,90 +1,64 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/menuItemRight.schema.json",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties": false,
5
- "properties": {
6
- "_id": {
7
- "type": "string"
2
+ "$id" : "https://grexx.net/studio-next/schemas/menuItemRight.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties" : false,
5
+ "properties" : {
6
+ "_id" : {
7
+ "type" : "string"
8
8
  },
9
- "_interfaceID": {
10
- "type": "string"
9
+ "_interfaceID" : {
10
+ "type" : "string"
11
11
  },
12
- "_isInterface": {
13
- "type": "boolean"
12
+ "_isInterface" : {
13
+ "type" : "boolean"
14
14
  },
15
- "_knownIDs": {
16
- "items": {
17
- "type": "string"
15
+ "_knownIDs" : {
16
+ "items" : {
17
+ "type" : "string"
18
18
  },
19
- "type": "array"
19
+ "type" : "array"
20
20
  },
21
- "_origin": {
22
- "type": "string"
21
+ "_origin" : {
22
+ "type" : "string"
23
23
  },
24
- "_src": {
25
- "type": "string"
24
+ "_src" : {
25
+ "type" : "string"
26
26
  },
27
- "_type": {
28
- "const": "menuItemRight"
27
+ "_type" : {
28
+ "const" : "menuItemRight"
29
29
  },
30
- "_uid": {
31
- "description": "Deterministic UUID derived from case-ID.",
32
- "format": "uuid",
33
- "type": "string"
30
+ "_uid" : {
31
+ "description" : "Deterministic UUID derived from case-ID.",
32
+ "format" : "uuid",
33
+ "type" : "string"
34
34
  },
35
- "condition": {
36
- "$ref": "abstractCondition.schema.json"
35
+ "condition" : {
36
+ "$ref" : "abstractCondition.schema.json"
37
37
  },
38
- "description": {
39
- "$ref": "template/inlineTemplate.schema.json"
38
+ "description" : {
39
+ "$ref" : "template/inlineTemplate.schema.json"
40
40
  },
41
- "inactive": {
42
- "type": "boolean"
41
+ "inactive" : {
42
+ "type" : "boolean"
43
43
  },
44
- "interfaceStudioProduct": {
45
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
44
+ "interfaceStudioProduct" : {
45
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
46
46
  },
47
- "metaCaseToOtap": {
48
- "type": "boolean"
47
+ "metaCaseToOtap" : {
48
+ "type" : "boolean"
49
49
  },
50
- "ourProductId": {
51
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
50
+ "ourProductId" : {
51
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
52
52
  },
53
- "roleName": {
54
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
53
+ "roleName" : {
54
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
55
55
  },
56
- "type": {
57
- "enum": [
58
- "widget_view",
59
- "activity_request",
60
- "activity_execute",
61
- "activity_trigger",
62
- "activity_agent_request",
63
- "activity_agent_execute",
64
- "activity_agent_suggest_request",
65
- "activity_agent_suggest_execute",
66
- "dataset_view",
67
- "form_view",
68
- "menuItem_view",
69
- "debug_action",
70
- "any_right"
71
- ],
72
- "type": "string"
56
+ "type" : {
57
+ "enum" : [ "widget_view", "activity_request", "activity_execute", "activity_trigger", "activity_agent_request", "activity_agent_execute", "activity_agent_suggest_request", "activity_agent_suggest_execute", "dataset_view", "form_view", "menuItem_view", "debug_action", "any_right" ],
58
+ "type" : "string"
73
59
  }
74
60
  },
75
- "required": [
76
- "_type",
77
- "_uid",
78
- "menuItem"
79
- ],
80
- "title": "menuItemRight",
81
- "type": "object",
82
- "allOf": [
83
- {
84
- "properties": {
85
- "devParentCase": false
86
- }
87
- }
88
- ],
89
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/menuItemRight.json."
90
- }
61
+ "required" : [ "_type", "_uid" ],
62
+ "title" : "menuItemRight",
63
+ "type" : "object"
64
+ }
@@ -71,26 +71,11 @@
71
71
  },
72
72
  "required": [
73
73
  "_type",
74
- "_uid"
74
+ "_uid",
75
+ "name",
76
+ "type"
75
77
  ],
76
78
  "title": "metadata",
77
79
  "type": "object",
78
- "allOf": [
79
- {
80
- "properties": {
81
- "param1": false
82
- }
83
- },
84
- {
85
- "properties": {
86
- "param2": false
87
- }
88
- },
89
- {
90
- "properties": {
91
- "value": false
92
- }
93
- }
94
- ],
95
80
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/metadata.json."
96
81
  }
@@ -1,81 +1,60 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/notCondition.schema.json",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties": false,
5
- "properties": {
6
- "_id": {
7
- "type": "string"
8
- },
9
- "_interfaceID": {
10
- "type": "string"
11
- },
12
- "_isInterface": {
13
- "type": "boolean"
14
- },
15
- "_knownIDs": {
16
- "items": {
17
- "type": "string"
2
+ "$id" : "https://grexx.net/studio-next/schemas/notCondition.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties" : false,
5
+ "properties" : {
6
+ "_id" : {
7
+ "type" : "string"
8
+ },
9
+ "_interfaceID" : {
10
+ "type" : "string"
11
+ },
12
+ "_isInterface" : {
13
+ "type" : "boolean"
14
+ },
15
+ "_knownIDs" : {
16
+ "items" : {
17
+ "type" : "string"
18
18
  },
19
- "type": "array"
19
+ "type" : "array"
20
20
  },
21
- "_origin": {
22
- "type": "string"
21
+ "_origin" : {
22
+ "type" : "string"
23
23
  },
24
- "_src": {
25
- "type": "string"
24
+ "_src" : {
25
+ "type" : "string"
26
26
  },
27
- "_type": {
28
- "const": "notCondition"
27
+ "_type" : {
28
+ "const" : "notCondition"
29
29
  },
30
- "_uid": {
31
- "description": "Deterministic UUID derived from case-ID.",
32
- "format": "uuid",
33
- "type": "string"
30
+ "_uid" : {
31
+ "description" : "Deterministic UUID derived from case-ID.",
32
+ "format" : "uuid",
33
+ "type" : "string"
34
34
  },
35
- "condition": {
36
- "$ref": "abstractCondition.schema.json"
35
+ "condition" : {
36
+ "$ref" : "abstractCondition.schema.json"
37
37
  },
38
- "description": {
39
- "$ref": "template/inlineTemplate.schema.json"
38
+ "description" : {
39
+ "$ref" : "template/inlineTemplate.schema.json"
40
40
  },
41
- "inactive": {
42
- "type": "boolean"
41
+ "inactive" : {
42
+ "type" : "boolean"
43
43
  },
44
- "interfaceStudioProduct": {
45
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
44
+ "interfaceStudioProduct" : {
45
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
46
46
  },
47
- "metaCaseToOtap": {
48
- "type": "boolean"
47
+ "metaCaseToOtap" : {
48
+ "type" : "boolean"
49
49
  },
50
- "negate": {
51
- "type": "boolean"
50
+ "negate" : {
51
+ "type" : "boolean"
52
52
  },
53
- "ourProductId": {
54
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
53
+ "ourProductId" : {
54
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
55
55
  }
56
56
  },
57
- "required": [
58
- "_type",
59
- "_uid"
60
- ],
61
- "title": "notCondition",
62
- "type": "object",
63
- "allOf": [
64
- {
65
- "properties": {
66
- "devParentCase": false
67
- }
68
- },
69
- {
70
- "properties": {
71
- "StoreproductId": false
72
- }
73
- },
74
- {
75
- "properties": {
76
- "StoreproductLatestVersionId": false
77
- }
78
- }
79
- ],
80
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/notCondition.json."
81
- }
57
+ "required" : [ "_type", "_uid" ],
58
+ "title" : "notCondition",
59
+ "type" : "object"
60
+ }