@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
@@ -253,7 +253,6 @@
253
253
  "required": [
254
254
  "_type",
255
255
  "_uid",
256
- "secondaryActions",
257
256
  "type"
258
257
  ],
259
258
  "title": "activity",
@@ -323,24 +322,6 @@
323
322
  }
324
323
  }
325
324
  },
326
- {
327
- "if": {
328
- "properties": {
329
- "type": {
330
- "const": "casetype"
331
- }
332
- },
333
- "required": [
334
- "type"
335
- ]
336
- },
337
- "then": {},
338
- "else": {
339
- "properties": {
340
- "newCaseAlternativeStartActivity": false
341
- }
342
- }
343
- },
344
325
  {
345
326
  "if": {
346
327
  "anyOf": [
@@ -111,23 +111,6 @@
111
111
  "properties": {
112
112
  "allowHTML": false
113
113
  }
114
- },
115
- {
116
- "if": {
117
- "properties": {
118
- "type": {
119
- "const": "case"
120
- }
121
- },
122
- "required": [
123
- "type"
124
- ]
125
- },
126
- "then": {
127
- "required": [
128
- "subtype"
129
- ]
130
- }
131
114
  }
132
115
  ],
133
116
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/activityAttribute.json."
@@ -75,16 +75,10 @@
75
75
  "required": [
76
76
  "_type",
77
77
  "_uid",
78
- "activity"
78
+ "roleName",
79
+ "type"
79
80
  ],
80
81
  "title": "activityRight",
81
82
  "type": "object",
82
- "allOf": [
83
- {
84
- "properties": {
85
- "devParentCase": false
86
- }
87
- }
88
- ],
89
83
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/activityRight.json."
90
84
  }
@@ -228,27 +228,12 @@
228
228
  "allOf": [
229
229
  {
230
230
  "properties": {
231
- "addActivity": false
231
+ "calculatedTemplate": false
232
232
  }
233
233
  },
234
234
  {
235
235
  "properties": {
236
- "currency": false
237
- }
238
- },
239
- {
240
- "properties": {
241
- "attributeDefaultValue": false
242
- }
243
- },
244
- {
245
- "properties": {
246
- "addActivityBase": false
247
- }
248
- },
249
- {
250
- "properties": {
251
- "picklistBase": false
236
+ "linkToPlatform": false
252
237
  }
253
238
  },
254
239
  {
@@ -178,7 +178,6 @@
178
178
  "required": [
179
179
  "_type",
180
180
  "_uid",
181
- "newRulelist",
182
181
  "name",
183
182
  "type"
184
183
  ],
@@ -74,8 +74,7 @@
74
74
  },
75
75
  "required": [
76
76
  "_type",
77
- "_uid",
78
- "root"
77
+ "_uid"
79
78
  ],
80
79
  "title": "catchBlock",
81
80
  "type": "object",
@@ -92,9 +91,17 @@
92
91
  ]
93
92
  },
94
93
  "then": {
95
- "required": [
96
- "progressTemplate",
97
- "progressTitle"
94
+ "anyOf": [
95
+ {
96
+ "required": [
97
+ "progressTitle"
98
+ ]
99
+ },
100
+ {
101
+ "required": [
102
+ "progressTemplate"
103
+ ]
104
+ }
98
105
  ]
99
106
  }
100
107
  }
@@ -1,67 +1,86 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/conditionList.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/conditionList.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" : "conditionList"
27
+ "_type": {
28
+ "const": "conditionList"
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
- "conditions" : {
36
- "items" : {
37
- "$ref" : "abstractCondition.schema.json"
35
+ "conditions": {
36
+ "items": {
37
+ "$ref": "abstractCondition.schema.json"
38
38
  },
39
- "type" : "array"
39
+ "type": "array"
40
40
  },
41
- "description" : {
42
- "$ref" : "template/inlineTemplate.schema.json"
41
+ "description": {
42
+ "$ref": "template/inlineTemplate.schema.json"
43
43
  },
44
- "inactive" : {
45
- "type" : "boolean"
44
+ "inactive": {
45
+ "type": "boolean"
46
46
  },
47
- "interfaceStudioProduct" : {
48
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
47
+ "interfaceStudioProduct": {
48
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
49
49
  },
50
- "metaCaseToOtap" : {
51
- "type" : "boolean"
50
+ "metaCaseToOtap": {
51
+ "type": "boolean"
52
52
  },
53
- "negate" : {
54
- "type" : "boolean"
53
+ "negate": {
54
+ "type": "boolean"
55
55
  },
56
- "ourProductId" : {
57
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "ourProductId": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  },
59
- "type" : {
60
- "enum" : [ "AND", "OR" ],
61
- "type" : "string"
59
+ "type": {
60
+ "enum": [
61
+ "AND",
62
+ "OR"
63
+ ],
64
+ "type": "string"
62
65
  }
63
66
  },
64
- "required" : [ "_type", "_uid" ],
65
- "title" : "conditionList",
66
- "type" : "object"
67
- }
67
+ "required": [
68
+ "_type",
69
+ "_uid"
70
+ ],
71
+ "title": "conditionList",
72
+ "type": "object",
73
+ "allOf": [
74
+ {
75
+ "properties": {
76
+ "hasValidConfiguration": false
77
+ }
78
+ },
79
+ {
80
+ "properties": {
81
+ "wasEverFullyConfigured": false
82
+ }
83
+ }
84
+ ],
85
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/conditionList.json."
86
+ }
@@ -1,94 +1,77 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/container.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/container.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": "container"
27
+ "_type" : {
28
+ "const" : "container"
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
- "description": {
36
- "$ref": "template/inlineTemplate.schema.json"
35
+ "description" : {
36
+ "$ref" : "template/inlineTemplate.schema.json"
37
37
  },
38
- "hide": {
39
- "type": "boolean"
38
+ "hide" : {
39
+ "type" : "boolean"
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
- "name": {
51
- "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
50
+ "name" : {
51
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
52
52
  },
53
- "options": {
54
- "additionalProperties": true,
55
- "type": "object"
53
+ "options" : {
54
+ "additionalProperties" : true,
55
+ "type" : "object"
56
56
  },
57
- "ourProductId": {
58
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
57
+ "ourProductId" : {
58
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
59
59
  },
60
- "position": {
61
- "additionalProperties": true,
62
- "type": "object"
60
+ "position" : {
61
+ "additionalProperties" : true,
62
+ "type" : "object"
63
63
  },
64
- "showSingleTab": {
65
- "type": "boolean"
64
+ "showSingleTab" : {
65
+ "type" : "boolean"
66
66
  },
67
- "widgets": {
68
- "items": {
69
- "$ref": "widget.schema.json"
67
+ "widgets" : {
68
+ "items" : {
69
+ "$ref" : "widget.schema.json"
70
70
  },
71
- "type": "array"
71
+ "type" : "array"
72
72
  }
73
73
  },
74
- "required": [
75
- "_type",
76
- "_uid",
77
- "view"
78
- ],
79
- "title": "container",
80
- "type": "object",
81
- "allOf": [
82
- {
83
- "properties": {
84
- "devParentCase": false
85
- }
86
- },
87
- {
88
- "properties": {
89
- "showSingleTab": false
90
- }
91
- }
92
- ],
93
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/container.json."
94
- }
74
+ "required" : [ "_type", "_uid" ],
75
+ "title" : "container",
76
+ "type" : "object"
77
+ }
@@ -90,9 +90,17 @@
90
90
  ]
91
91
  },
92
92
  "then": {
93
- "required": [
94
- "progressTemplate",
95
- "progressTitle"
93
+ "anyOf": [
94
+ {
95
+ "required": [
96
+ "progressTemplate"
97
+ ]
98
+ },
99
+ {
100
+ "required": [
101
+ "progressTitle"
102
+ ]
103
+ }
96
104
  ]
97
105
  }
98
106
  }
@@ -320,58 +320,6 @@
320
320
  }
321
321
  }
322
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
323
  {
376
324
  "if": {
377
325
  "anyOf": [
@@ -106,53 +106,11 @@
106
106
  "title": "datasetColumn",
107
107
  "type": "object",
108
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
- "caseSummary": false
144
- }
145
- },
146
109
  {
147
110
  "properties": {
148
111
  "multivalueType": false
149
112
  }
150
113
  },
151
- {
152
- "properties": {
153
- "sortOrder": false
154
- }
155
- },
156
114
  {
157
115
  "if": {
158
116
  "anyOf": [
@@ -222,78 +180,6 @@
222
180
  "name": false
223
181
  }
224
182
  },
225
- {
226
- "if": {
227
- "anyOf": [
228
- {
229
- "properties": {
230
- "fieldType": {
231
- "const": "activityMetadata"
232
- }
233
- },
234
- "required": [
235
- "fieldType"
236
- ]
237
- },
238
- {
239
- "properties": {
240
- "fieldType": {
241
- "const": "taskMetaData"
242
- }
243
- },
244
- "required": [
245
- "fieldType"
246
- ]
247
- },
248
- {
249
- "properties": {
250
- "fieldType": {
251
- "const": "taskqueueMetaData"
252
- }
253
- },
254
- "required": [
255
- "fieldType"
256
- ]
257
- },
258
- {
259
- "properties": {
260
- "fieldType": {
261
- "const": "activityMetadata"
262
- }
263
- },
264
- "required": [
265
- "fieldType"
266
- ]
267
- },
268
- {
269
- "properties": {
270
- "fieldType": {
271
- "const": "taskMetaData"
272
- }
273
- },
274
- "required": [
275
- "fieldType"
276
- ]
277
- },
278
- {
279
- "properties": {
280
- "fieldType": {
281
- "const": "taskqueueMetaData"
282
- }
283
- },
284
- "required": [
285
- "fieldType"
286
- ]
287
- }
288
- ]
289
- },
290
- "then": {},
291
- "else": {
292
- "properties": {
293
- "field": false
294
- }
295
- }
296
- },
297
183
  {
298
184
  "if": {
299
185
  "properties": {