@grexx/grexxlinter 0.2.0

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 (137) hide show
  1. package/cli.js +14973 -0
  2. package/lsp.js +23977 -0
  3. package/package.json +19 -0
  4. package/schemas/.coverage.json +10987 -0
  5. package/schemas/abstract.schema.json +842 -0
  6. package/schemas/abstractAttribute.schema.json +38 -0
  7. package/schemas/abstractAttributeFormField.schema.json +50 -0
  8. package/schemas/abstractCondition.schema.json +74 -0
  9. package/schemas/abstractRight.schema.json +74 -0
  10. package/schemas/abstractRole.schema.json +50 -0
  11. package/schemas/abstractRule.schema.json +182 -0
  12. package/schemas/activity.schema.json +1328 -0
  13. package/schemas/activityAttribute.schema.json +73 -0
  14. package/schemas/activityRight.schema.json +64 -0
  15. package/schemas/agent.schema.json +179 -0
  16. package/schemas/agentTool.schema.json +118 -0
  17. package/schemas/attribute.schema.json +286 -0
  18. package/schemas/casetype.schema.json +256 -0
  19. package/schemas/catchBlock.schema.json +76 -0
  20. package/schemas/common.schema.json +63 -0
  21. package/schemas/conditionList.schema.json +67 -0
  22. package/schemas/container.schema.json +88 -0
  23. package/schemas/cssVariables.schema.json +90 -0
  24. package/schemas/customThrow.schema.json +73 -0
  25. package/schemas/dataRetentionProfile.schema.json +90 -0
  26. package/schemas/dataset.schema.json +579 -0
  27. package/schemas/datasetColumn.schema.json +423 -0
  28. package/schemas/datasetCondition.schema.json +409 -0
  29. package/schemas/datasetRight.schema.json +86 -0
  30. package/schemas/datasource.schema.json +73 -0
  31. package/schemas/dateProfile.schema.json +87 -0
  32. package/schemas/directRole.schema.json +71 -0
  33. package/schemas/fileUploadProfile.schema.json +75 -0
  34. package/schemas/forEach.schema.json +144 -0
  35. package/schemas/form.schema.json +119 -0
  36. package/schemas/formAction.schema.json +149 -0
  37. package/schemas/formActionAi.schema.json +81 -0
  38. package/schemas/formActionInlineJavascript.schema.json +66 -0
  39. package/schemas/formButton.schema.json +84 -0
  40. package/schemas/formGroup.schema.json +99 -0
  41. package/schemas/formRight.schema.json +86 -0
  42. package/schemas/formfield.schema.json +339 -0
  43. package/schemas/gridActivity.schema.json +80 -0
  44. package/schemas/gridColumn.schema.json +111 -0
  45. package/schemas/hasRoleCondition.schema.json +63 -0
  46. package/schemas/ifthenelse.schema.json +78 -0
  47. package/schemas/indirectRole.schema.json +74 -0
  48. package/schemas/job.schema.json +63 -0
  49. package/schemas/jobStep.schema.json +68 -0
  50. package/schemas/llmModel.schema.json +79 -0
  51. package/schemas/mapping.schema.json +690 -0
  52. package/schemas/menuItem.schema.json +519 -0
  53. package/schemas/menuItemRight.schema.json +64 -0
  54. package/schemas/metadata.schema.json +96 -0
  55. package/schemas/navigation.schema.json +86 -0
  56. package/schemas/notCondition.schema.json +60 -0
  57. package/schemas/parallelBlock.schema.json +75 -0
  58. package/schemas/picklist.schema.json +113 -0
  59. package/schemas/picklistItem.schema.json +71 -0
  60. package/schemas/platformAttribute.schema.json +300 -0
  61. package/schemas/platformRole.schema.json +191 -0
  62. package/schemas/platformconstants.schema.json +94 -0
  63. package/schemas/plugin.schema.json +99 -0
  64. package/schemas/pluginLibrary.schema.json +78 -0
  65. package/schemas/requestContext.schema.json +183 -0
  66. package/schemas/roleName.schema.json +115 -0
  67. package/schemas/ruleList.schema.json +72 -0
  68. package/schemas/securityProfile.schema.json +63 -0
  69. package/schemas/securityRequirement.schema.json +63 -0
  70. package/schemas/simpleCondition.schema.json +466 -0
  71. package/schemas/staticFile.schema.json +63 -0
  72. package/schemas/tag.schema.json +62 -0
  73. package/schemas/taskQueue.schema.json +69 -0
  74. package/schemas/template/activitymeta.schema.json +36 -0
  75. package/schemas/template/attribute.schema.json +31 -0
  76. package/schemas/template/calculate-dataset.schema.json +31 -0
  77. package/schemas/template/casemeta.schema.json +18 -0
  78. package/schemas/template/casetypemeta.schema.json +19 -0
  79. package/schemas/template/comment.schema.json +36 -0
  80. package/schemas/template/datasetColumn.schema.json +31 -0
  81. package/schemas/template/date-function.schema.json +232 -0
  82. package/schemas/template/definitionmeta.schema.json +73 -0
  83. package/schemas/template/file.schema.json +39 -0
  84. package/schemas/template/foreach.schema.json +67 -0
  85. package/schemas/template/formfield.schema.json +21 -0
  86. package/schemas/template/formula.schema.json +18 -0
  87. package/schemas/template/hasRole.schema.json +18 -0
  88. package/schemas/template/historic.schema.json +21 -0
  89. package/schemas/template/html.schema.json +165 -0
  90. package/schemas/template/icon.schema.json +18 -0
  91. package/schemas/template/if.schema.json +30 -0
  92. package/schemas/template/inlineTemplate.schema.json +26 -0
  93. package/schemas/template/isnull.schema.json +21 -0
  94. package/schemas/template/isofcasetype.schema.json +24 -0
  95. package/schemas/template/iterator.schema.json +61 -0
  96. package/schemas/template/json.schema.json +55 -0
  97. package/schemas/template/math.schema.json +210 -0
  98. package/schemas/template/meta.schema.json +164 -0
  99. package/schemas/template/metadefinitionmeta.schema.json +36 -0
  100. package/schemas/template/multivalue.schema.json +210 -0
  101. package/schemas/template/page.schema.json +21 -0
  102. package/schemas/template/parameter.schema.json +24 -0
  103. package/schemas/template/parameterDefinition.schema.json +27 -0
  104. package/schemas/template/parameterIdDefinition.schema.json +28 -0
  105. package/schemas/template/parseError.schema.json +48 -0
  106. package/schemas/template/picklist.schema.json +27 -0
  107. package/schemas/template/pseudoTemplate.schema.json +27 -0
  108. package/schemas/template/requestcontext.schema.json +52 -0
  109. package/schemas/template/returnType.schema.json +26 -0
  110. package/schemas/template/spacialMath.schema.json +77 -0
  111. package/schemas/template/special.schema.json +19 -0
  112. package/schemas/template/staticFile.schema.json +39 -0
  113. package/schemas/template/system.schema.json +22 -0
  114. package/schemas/template/systemconfig.schema.json +21 -0
  115. package/schemas/template/taskattribute.schema.json +21 -0
  116. package/schemas/template/taskdata.schema.json +24 -0
  117. package/schemas/template/taskmeta.schema.json +180 -0
  118. package/schemas/template/taskqueuemeta.schema.json +36 -0
  119. package/schemas/template/template.schema.json +27 -0
  120. package/schemas/template/templatePart.schema.json +638 -0
  121. package/schemas/template/text.schema.json +18 -0
  122. package/schemas/template/url.schema.json +77 -0
  123. package/schemas/template/urlParameter.schema.json +21 -0
  124. package/schemas/template/user.schema.json +36 -0
  125. package/schemas/template/userProperty.schema.json +22 -0
  126. package/schemas/template/usersession.schema.json +18 -0
  127. package/schemas/template/util.schema.json +434 -0
  128. package/schemas/template/xml.schema.json +55 -0
  129. package/schemas/template.schema.json +74 -0
  130. package/schemas/theme.schema.json +63 -0
  131. package/schemas/trigger.schema.json +413 -0
  132. package/schemas/tryBlock.schema.json +99 -0
  133. package/schemas/view.schema.json +159 -0
  134. package/schemas/webhook.schema.json +77 -0
  135. package/schemas/while.schema.json +130 -0
  136. package/schemas/widget.schema.json +1416 -0
  137. package/schemas/widgetRight.schema.json +85 -0
@@ -0,0 +1,579 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/dataset.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
+ },
19
+ "type": "array"
20
+ },
21
+ "_origin": {
22
+ "type": "string"
23
+ },
24
+ "_src": {
25
+ "type": "string"
26
+ },
27
+ "_type": {
28
+ "const": "dataset"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "casePointer": {
36
+ "$ref": "template/inlineTemplate.schema.json"
37
+ },
38
+ "casedataAttributes": {
39
+ "items": {
40
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
41
+ },
42
+ "type": "array"
43
+ },
44
+ "columns": {
45
+ "items": {
46
+ "$ref": "datasetColumn.schema.json"
47
+ },
48
+ "type": "array"
49
+ },
50
+ "condition": {
51
+ "$ref": "conditionList.schema.json"
52
+ },
53
+ "description": {
54
+ "$ref": "template/inlineTemplate.schema.json"
55
+ },
56
+ "externalURL": {
57
+ "$ref": "template/inlineTemplate.schema.json"
58
+ },
59
+ "fullCountPath": {
60
+ "type": "string"
61
+ },
62
+ "headers": {
63
+ "$ref": "template/inlineTemplate.schema.json"
64
+ },
65
+ "inactive": {
66
+ "type": "boolean"
67
+ },
68
+ "includeFinished": {
69
+ "type": "boolean"
70
+ },
71
+ "includeOpen": {
72
+ "type": "boolean"
73
+ },
74
+ "includedCasetype": {
75
+ "items": {
76
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
77
+ },
78
+ "type": "array"
79
+ },
80
+ "interfaceStudioProduct": {
81
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
82
+ },
83
+ "joinCondition": {
84
+ "$ref": "conditionList.schema.json"
85
+ },
86
+ "joinType": {
87
+ "enum": [
88
+ "innerJoin",
89
+ "outerJoin",
90
+ "leftJoin",
91
+ "rightJoin"
92
+ ],
93
+ "type": "string"
94
+ },
95
+ "json": {
96
+ "$ref": "template/inlineTemplate.schema.json"
97
+ },
98
+ "metaCaseToOtap": {
99
+ "type": "boolean"
100
+ },
101
+ "method": {
102
+ "type": "string"
103
+ },
104
+ "mva_attribute": {
105
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
106
+ },
107
+ "name": {
108
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
109
+ },
110
+ "noFullCount": {
111
+ "type": "boolean"
112
+ },
113
+ "options": {
114
+ "additionalProperties": true,
115
+ "type": "object"
116
+ },
117
+ "ourProductId": {
118
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
119
+ },
120
+ "params": {
121
+ "$ref": "template/inlineTemplate.schema.json"
122
+ },
123
+ "parentDataset": {
124
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
125
+ },
126
+ "parentDatasetLeft": {
127
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
128
+ },
129
+ "parentDatasetRight": {
130
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
131
+ },
132
+ "resultPath": {
133
+ "type": "string"
134
+ },
135
+ "rights": {
136
+ "items": {
137
+ "$ref": "datasetRight.schema.json"
138
+ },
139
+ "type": "array"
140
+ },
141
+ "specialDataset": {
142
+ "enum": [
143
+ "special",
144
+ "datatype",
145
+ "systemservice",
146
+ "gitDataCommits",
147
+ "gitDataBranches",
148
+ "gitDefinitionBranches",
149
+ "eventtype",
150
+ "releaseRings",
151
+ "availableLocales",
152
+ "webhookEvent",
153
+ "webhookDatatype",
154
+ "jobStep",
155
+ "jobDefinition"
156
+ ],
157
+ "type": "string"
158
+ },
159
+ "subtype": {
160
+ "items": {
161
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
162
+ },
163
+ "type": "array"
164
+ },
165
+ "throwIfPostProcessingRequired": {
166
+ "type": "boolean"
167
+ },
168
+ "type": {
169
+ "enum": [
170
+ "mandatoryTasks",
171
+ "requiredTasks",
172
+ "mandatoryTasksNoRightsCheck",
173
+ "requiredTasksNoRightsCheck",
174
+ "mandatoryTasksPlatform",
175
+ "requiredTasksPlatform",
176
+ "mandatoryPlatformNoRightsCheck",
177
+ "requiredTasksPlatformNoRightsCheck",
178
+ "allTasks",
179
+ "allTasksIncludingNew",
180
+ "allTasksPlatform",
181
+ "allTasksPlatformIncludingNew",
182
+ "queuedTasks",
183
+ "queue",
184
+ "optionalTasks",
185
+ "optionalTasksNoRightsCheck",
186
+ "optionalTasksWithSuggest",
187
+ "optionalTasksWithSuggestNoRightsCheck",
188
+ "cases",
189
+ "casespostprocess",
190
+ "externalcases",
191
+ "multivalueAttribute",
192
+ "taskHistory",
193
+ "externalURL",
194
+ "json",
195
+ "kibanaPerformance",
196
+ "elasticPerformance",
197
+ "elasticPerformanceClient",
198
+ "elasticPerformanceUnion",
199
+ "elasticError",
200
+ "elasticUsage",
201
+ "elasticGcMessages",
202
+ "elasticPlatformMessages",
203
+ "elasticGui",
204
+ "elasticApiRequestV2",
205
+ "elasticDocsVector",
206
+ "aggregate",
207
+ "aggregation",
208
+ "special",
209
+ "join",
210
+ "casedatahistory",
211
+ "casepath",
212
+ "eventconsumer",
213
+ "size",
214
+ "sizeaggregated",
215
+ "filter"
216
+ ],
217
+ "type": "string"
218
+ }
219
+ },
220
+ "required": [
221
+ "_type",
222
+ "_uid"
223
+ ],
224
+ "title": "dataset",
225
+ "type": "object",
226
+ "allOf": [
227
+ {
228
+ "if": {
229
+ "anyOf": [
230
+ {
231
+ "properties": {
232
+ "method": {
233
+ "const": "POST"
234
+ }
235
+ },
236
+ "required": [
237
+ "method"
238
+ ]
239
+ },
240
+ {
241
+ "properties": {
242
+ "method": {
243
+ "const": "POST"
244
+ }
245
+ },
246
+ "required": [
247
+ "method"
248
+ ]
249
+ }
250
+ ]
251
+ },
252
+ "then": {},
253
+ "else": {
254
+ "properties": {
255
+ "params": false
256
+ }
257
+ }
258
+ },
259
+ {
260
+ "if": {
261
+ "anyOf": [
262
+ {
263
+ "properties": {
264
+ "type": {
265
+ "const": "join"
266
+ }
267
+ },
268
+ "required": [
269
+ "type"
270
+ ]
271
+ },
272
+ {
273
+ "properties": {
274
+ "type": {
275
+ "const": "join"
276
+ }
277
+ },
278
+ "required": [
279
+ "type"
280
+ ]
281
+ }
282
+ ]
283
+ },
284
+ "then": {},
285
+ "else": {
286
+ "properties": {
287
+ "joinType": false
288
+ }
289
+ }
290
+ },
291
+ {
292
+ "if": {
293
+ "anyOf": [
294
+ {
295
+ "properties": {
296
+ "type": {
297
+ "const": "join"
298
+ }
299
+ },
300
+ "required": [
301
+ "type"
302
+ ]
303
+ },
304
+ {
305
+ "properties": {
306
+ "type": {
307
+ "const": "join"
308
+ }
309
+ },
310
+ "required": [
311
+ "type"
312
+ ]
313
+ }
314
+ ]
315
+ },
316
+ "then": {},
317
+ "else": {
318
+ "properties": {
319
+ "parentDatasetLeft": false
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "if": {
325
+ "anyOf": [
326
+ {
327
+ "properties": {
328
+ "type": {
329
+ "const": "aggregation"
330
+ }
331
+ },
332
+ "required": [
333
+ "type"
334
+ ]
335
+ },
336
+ {
337
+ "properties": {
338
+ "type": {
339
+ "const": "filter"
340
+ }
341
+ },
342
+ "required": [
343
+ "type"
344
+ ]
345
+ },
346
+ {
347
+ "properties": {
348
+ "type": {
349
+ "const": "aggregation"
350
+ }
351
+ },
352
+ "required": [
353
+ "type"
354
+ ]
355
+ },
356
+ {
357
+ "properties": {
358
+ "type": {
359
+ "const": "filter"
360
+ }
361
+ },
362
+ "required": [
363
+ "type"
364
+ ]
365
+ }
366
+ ]
367
+ },
368
+ "then": {},
369
+ "else": {
370
+ "properties": {
371
+ "parentDataset": false
372
+ }
373
+ }
374
+ },
375
+ {
376
+ "if": {
377
+ "anyOf": [
378
+ {
379
+ "properties": {
380
+ "type": {
381
+ "const": "join"
382
+ }
383
+ },
384
+ "required": [
385
+ "type"
386
+ ]
387
+ },
388
+ {
389
+ "properties": {
390
+ "type": {
391
+ "const": "join"
392
+ }
393
+ },
394
+ "required": [
395
+ "type"
396
+ ]
397
+ }
398
+ ]
399
+ },
400
+ "then": {},
401
+ "else": {
402
+ "properties": {
403
+ "parentDatasetRight": false
404
+ }
405
+ }
406
+ },
407
+ {
408
+ "if": {
409
+ "anyOf": [
410
+ {
411
+ "properties": {
412
+ "type": {
413
+ "const": "special"
414
+ }
415
+ },
416
+ "required": [
417
+ "type"
418
+ ]
419
+ },
420
+ {
421
+ "properties": {
422
+ "type": {
423
+ "const": "special"
424
+ }
425
+ },
426
+ "required": [
427
+ "type"
428
+ ]
429
+ }
430
+ ]
431
+ },
432
+ "then": {},
433
+ "else": {
434
+ "properties": {
435
+ "specialDataset": false
436
+ }
437
+ }
438
+ },
439
+ {
440
+ "if": {
441
+ "properties": {
442
+ "type": {
443
+ "const": "multivalueAttribute"
444
+ }
445
+ },
446
+ "required": [
447
+ "type"
448
+ ]
449
+ },
450
+ "then": {
451
+ "required": [
452
+ "mva_attribute"
453
+ ]
454
+ }
455
+ },
456
+ {
457
+ "if": {
458
+ "properties": {
459
+ "type": {
460
+ "const": "json"
461
+ }
462
+ },
463
+ "required": [
464
+ "type"
465
+ ]
466
+ },
467
+ "then": {
468
+ "required": [
469
+ "json"
470
+ ]
471
+ }
472
+ },
473
+ {
474
+ "if": {
475
+ "properties": {
476
+ "method": {
477
+ "const": "POST"
478
+ }
479
+ },
480
+ "required": [
481
+ "method"
482
+ ]
483
+ },
484
+ "then": {
485
+ "required": [
486
+ "params"
487
+ ]
488
+ }
489
+ },
490
+ {
491
+ "if": {
492
+ "properties": {
493
+ "type": {
494
+ "const": "externalURL"
495
+ }
496
+ },
497
+ "required": [
498
+ "type"
499
+ ]
500
+ },
501
+ "then": {
502
+ "required": [
503
+ "externalURL"
504
+ ]
505
+ }
506
+ },
507
+ {
508
+ "if": {
509
+ "properties": {
510
+ "type": {
511
+ "const": "join"
512
+ }
513
+ },
514
+ "required": [
515
+ "type"
516
+ ]
517
+ },
518
+ "then": {
519
+ "required": [
520
+ "joinType",
521
+ "parentDatasetLeft",
522
+ "parentDatasetRight"
523
+ ]
524
+ }
525
+ },
526
+ {
527
+ "if": {
528
+ "properties": {
529
+ "type": {
530
+ "const": "aggregation"
531
+ }
532
+ },
533
+ "required": [
534
+ "type"
535
+ ]
536
+ },
537
+ "then": {
538
+ "required": [
539
+ "parentDataset"
540
+ ]
541
+ }
542
+ },
543
+ {
544
+ "if": {
545
+ "properties": {
546
+ "type": {
547
+ "const": "filter"
548
+ }
549
+ },
550
+ "required": [
551
+ "type"
552
+ ]
553
+ },
554
+ "then": {
555
+ "required": [
556
+ "parentDataset"
557
+ ]
558
+ }
559
+ },
560
+ {
561
+ "if": {
562
+ "properties": {
563
+ "type": {
564
+ "const": "special"
565
+ }
566
+ },
567
+ "required": [
568
+ "type"
569
+ ]
570
+ },
571
+ "then": {
572
+ "required": [
573
+ "specialDataset"
574
+ ]
575
+ }
576
+ }
577
+ ],
578
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/dataset.json."
579
+ }