@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,423 @@
1
+ {
2
+ "$id": "https://grexx.net/studio-next/schemas/datasetColumn.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": "datasetColumn"
29
+ },
30
+ "_uid": {
31
+ "description": "Deterministic UUID derived from case-ID.",
32
+ "format": "uuid",
33
+ "type": "string"
34
+ },
35
+ "activityAttribute": {
36
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
37
+ },
38
+ "aggregationOperation": {
39
+ "type": "string"
40
+ },
41
+ "alias": {
42
+ "type": "string"
43
+ },
44
+ "allowHtml": {
45
+ "type": "boolean"
46
+ },
47
+ "attribute": {
48
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
49
+ },
50
+ "baseColumn": {
51
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
52
+ },
53
+ "columnType": {
54
+ "type": "string"
55
+ },
56
+ "dataType": {
57
+ "type": "string"
58
+ },
59
+ "description": {
60
+ "$ref": "template/inlineTemplate.schema.json"
61
+ },
62
+ "externalReference": {
63
+ "type": "string"
64
+ },
65
+ "field": {
66
+ "type": "string"
67
+ },
68
+ "fieldType": {
69
+ "type": "string"
70
+ },
71
+ "inactive": {
72
+ "type": "boolean"
73
+ },
74
+ "inlineTemplate": {
75
+ "$ref": "template/inlineTemplate.schema.json"
76
+ },
77
+ "interfaceStudioProduct": {
78
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
79
+ },
80
+ "metaCaseToOtap": {
81
+ "type": "boolean"
82
+ },
83
+ "ourProductId": {
84
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
85
+ },
86
+ "overrideWithEmpty": {
87
+ "type": "boolean"
88
+ },
89
+ "sortDirection": {
90
+ "type": "string"
91
+ },
92
+ "sortOrder": {
93
+ "type": "integer"
94
+ },
95
+ "title": {
96
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
97
+ },
98
+ "vectorEmbeddingModel": {
99
+ "type": "string"
100
+ }
101
+ },
102
+ "required": [
103
+ "_type",
104
+ "_uid"
105
+ ],
106
+ "title": "datasetColumn",
107
+ "type": "object",
108
+ "allOf": [
109
+ {
110
+ "if": {
111
+ "anyOf": [
112
+ {
113
+ "properties": {
114
+ "fieldType": {
115
+ "const": "platformAttribute"
116
+ }
117
+ },
118
+ "required": [
119
+ "fieldType"
120
+ ]
121
+ },
122
+ {
123
+ "properties": {
124
+ "fieldType": {
125
+ "const": "platformAttribute"
126
+ }
127
+ },
128
+ "required": [
129
+ "fieldType"
130
+ ]
131
+ }
132
+ ]
133
+ },
134
+ "then": {},
135
+ "else": {
136
+ "properties": {
137
+ "attribute": false
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "properties": {
143
+ "sortOrder": false
144
+ }
145
+ },
146
+ {
147
+ "if": {
148
+ "anyOf": [
149
+ {
150
+ "properties": {
151
+ "fieldType": {
152
+ "const": "taskAttribute"
153
+ }
154
+ },
155
+ "required": [
156
+ "fieldType"
157
+ ]
158
+ },
159
+ {
160
+ "properties": {
161
+ "fieldType": {
162
+ "const": "taskAttribute"
163
+ }
164
+ },
165
+ "required": [
166
+ "fieldType"
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ "then": {},
172
+ "else": {
173
+ "properties": {
174
+ "activityAttribute": false
175
+ }
176
+ }
177
+ },
178
+ {
179
+ "if": {
180
+ "anyOf": [
181
+ {
182
+ "properties": {
183
+ "fieldType": {
184
+ "const": "inlineTemplate"
185
+ }
186
+ },
187
+ "required": [
188
+ "fieldType"
189
+ ]
190
+ },
191
+ {
192
+ "properties": {
193
+ "fieldType": {
194
+ "const": "inlineTemplate"
195
+ }
196
+ },
197
+ "required": [
198
+ "fieldType"
199
+ ]
200
+ }
201
+ ]
202
+ },
203
+ "then": {},
204
+ "else": {
205
+ "properties": {
206
+ "inlineTemplate": false
207
+ }
208
+ }
209
+ },
210
+ {
211
+ "if": {
212
+ "anyOf": [
213
+ {
214
+ "properties": {
215
+ "fieldType": {
216
+ "const": "activityMetadata"
217
+ }
218
+ },
219
+ "required": [
220
+ "fieldType"
221
+ ]
222
+ },
223
+ {
224
+ "properties": {
225
+ "fieldType": {
226
+ "const": "taskMetaData"
227
+ }
228
+ },
229
+ "required": [
230
+ "fieldType"
231
+ ]
232
+ },
233
+ {
234
+ "properties": {
235
+ "fieldType": {
236
+ "const": "taskqueueMetaData"
237
+ }
238
+ },
239
+ "required": [
240
+ "fieldType"
241
+ ]
242
+ },
243
+ {
244
+ "properties": {
245
+ "fieldType": {
246
+ "const": "activityMetadata"
247
+ }
248
+ },
249
+ "required": [
250
+ "fieldType"
251
+ ]
252
+ },
253
+ {
254
+ "properties": {
255
+ "fieldType": {
256
+ "const": "taskMetaData"
257
+ }
258
+ },
259
+ "required": [
260
+ "fieldType"
261
+ ]
262
+ },
263
+ {
264
+ "properties": {
265
+ "fieldType": {
266
+ "const": "taskqueueMetaData"
267
+ }
268
+ },
269
+ "required": [
270
+ "fieldType"
271
+ ]
272
+ }
273
+ ]
274
+ },
275
+ "then": {},
276
+ "else": {
277
+ "properties": {
278
+ "field": false
279
+ }
280
+ }
281
+ },
282
+ {
283
+ "if": {
284
+ "properties": {
285
+ "fieldType": {
286
+ "const": "platformAttribute"
287
+ }
288
+ },
289
+ "required": [
290
+ "fieldType"
291
+ ]
292
+ },
293
+ "then": {
294
+ "required": [
295
+ "attribute"
296
+ ],
297
+ "properties": {
298
+ "field": false
299
+ }
300
+ }
301
+ },
302
+ {
303
+ "if": {
304
+ "properties": {
305
+ "fieldType": {
306
+ "const": "activityMetadata"
307
+ }
308
+ },
309
+ "required": [
310
+ "fieldType"
311
+ ]
312
+ },
313
+ "then": {
314
+ "required": [
315
+ "title",
316
+ "field"
317
+ ],
318
+ "properties": {
319
+ "attribute": false
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "if": {
325
+ "properties": {
326
+ "fieldType": {
327
+ "const": "external"
328
+ }
329
+ },
330
+ "required": [
331
+ "fieldType"
332
+ ]
333
+ },
334
+ "then": {
335
+ "required": [
336
+ "title"
337
+ ],
338
+ "properties": {
339
+ "attribute": false,
340
+ "field": false
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "if": {
346
+ "properties": {
347
+ "fieldType": {
348
+ "const": "inlineTemplate"
349
+ }
350
+ },
351
+ "required": [
352
+ "fieldType"
353
+ ]
354
+ },
355
+ "then": {
356
+ "required": [
357
+ "inlineTemplate",
358
+ "title"
359
+ ],
360
+ "properties": {
361
+ "attribute": false,
362
+ "field": false
363
+ }
364
+ }
365
+ },
366
+ {
367
+ "if": {
368
+ "properties": {
369
+ "fieldType": {
370
+ "const": "taskMetaData"
371
+ }
372
+ },
373
+ "required": [
374
+ "fieldType"
375
+ ]
376
+ },
377
+ "then": {
378
+ "required": [
379
+ "title",
380
+ "field"
381
+ ],
382
+ "properties": {
383
+ "attribute": false
384
+ }
385
+ }
386
+ },
387
+ {
388
+ "if": {
389
+ "properties": {
390
+ "fieldType": {
391
+ "const": "taskAttribute"
392
+ }
393
+ },
394
+ "required": [
395
+ "fieldType"
396
+ ]
397
+ },
398
+ "then": {
399
+ "required": [
400
+ "activityAttribute"
401
+ ]
402
+ }
403
+ },
404
+ {
405
+ "if": {
406
+ "properties": {
407
+ "fieldType": {
408
+ "const": "taskqueueMetaData"
409
+ }
410
+ },
411
+ "required": [
412
+ "fieldType"
413
+ ]
414
+ },
415
+ "then": {
416
+ "required": [
417
+ "field"
418
+ ]
419
+ }
420
+ }
421
+ ],
422
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/datasetColumn.json."
423
+ }