@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
@@ -156,78 +156,6 @@
156
156
  "title": "datasetCondition",
157
157
  "type": "object",
158
158
  "allOf": [
159
- {
160
- "if": {
161
- "anyOf": [
162
- {
163
- "properties": {
164
- "fieldType": {
165
- "const": "casedata"
166
- }
167
- },
168
- "required": [
169
- "fieldType"
170
- ]
171
- },
172
- {
173
- "properties": {
174
- "fieldType": {
175
- "const": "casemetadata"
176
- }
177
- },
178
- "required": [
179
- "fieldType"
180
- ]
181
- },
182
- {
183
- "properties": {
184
- "fieldType": {
185
- "const": "column"
186
- }
187
- },
188
- "required": [
189
- "fieldType"
190
- ]
191
- },
192
- {
193
- "properties": {
194
- "fieldType": {
195
- "const": "casedata"
196
- }
197
- },
198
- "required": [
199
- "fieldType"
200
- ]
201
- },
202
- {
203
- "properties": {
204
- "fieldType": {
205
- "const": "casemetadata"
206
- }
207
- },
208
- "required": [
209
- "fieldType"
210
- ]
211
- },
212
- {
213
- "properties": {
214
- "fieldType": {
215
- "const": "column"
216
- }
217
- },
218
- "required": [
219
- "fieldType"
220
- ]
221
- }
222
- ]
223
- },
224
- "then": {},
225
- "else": {
226
- "properties": {
227
- "field": false
228
- }
229
- }
230
- },
231
159
  {
232
160
  "if": {
233
161
  "anyOf": [
@@ -260,11 +188,6 @@
260
188
  }
261
189
  }
262
190
  },
263
- {
264
- "properties": {
265
- "leftFieldType": false
266
- }
267
- },
268
191
  {
269
192
  "if": {
270
193
  "properties": {
@@ -76,8 +76,6 @@
76
76
  "_type",
77
77
  "_uid",
78
78
  "condition",
79
- "dataset",
80
- "name",
81
79
  "roleName",
82
80
  "type"
83
81
  ],
@@ -67,12 +67,5 @@
67
67
  ],
68
68
  "title": "directRole",
69
69
  "type": "object",
70
- "allOf": [
71
- {
72
- "properties": {
73
- "devParentCase": false
74
- }
75
- }
76
- ],
77
70
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/directRole.json."
78
71
  }
@@ -0,0 +1,45 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://grexx.net/studio-next/schemas/folderInfo.schema.json",
4
+ "title": "folderInfo",
5
+ "$comment": "Hand-maintained — L2 does not define folderInfo. Lives in packages/schemas/custom/ and is overlaid into extended/ by scripts/extend.mjs. Permissive on purpose (no additionalProperties:false yet); tighten as the shape is nailed down.",
6
+ "type": "object",
7
+ "properties": {
8
+ "_type": { "const": "folderInfo" },
9
+ "_id": { "type": "string" },
10
+ "_uid": { "type": "string" },
11
+ "folderName": { "type": "string" },
12
+ "folderType": { "type": "string" },
13
+ "component": { "type": "string" },
14
+ "marketPlaceProduct": { "type": "string" },
15
+ "marketPlaceAvailableProducts": {
16
+ "type": "array",
17
+ "items": { "$ref": "#/$defs/availableProduct" }
18
+ }
19
+ },
20
+ "required": ["_type"],
21
+ "$defs": {
22
+ "availableProduct": {
23
+ "type": "object",
24
+ "properties": {
25
+ "_type": { "const": "availableProduct" },
26
+ "_id": { "type": "string" },
27
+ "storeProductId": { "type": "string" },
28
+ "storeSpaceId": { "type": "string" },
29
+ "availableVersions": {
30
+ "type": "array",
31
+ "items": { "$ref": "#/$defs/availableProductVersion" }
32
+ }
33
+ }
34
+ },
35
+ "availableProductVersion": {
36
+ "type": "object",
37
+ "properties": {
38
+ "_type": { "const": "availableProductVersion" },
39
+ "_id": { "type": "string" },
40
+ "status": { "type": "string" },
41
+ "versionName": { "type": "string" }
42
+ }
43
+ }
44
+ }
45
+ }
@@ -86,13 +86,21 @@
86
86
  "type": "object",
87
87
  "allOf": [
88
88
  {
89
- "properties": {
90
- "devParentCase": false
91
- }
92
- },
93
- {
94
- "properties": {
95
- "multivalueTemplate": false
89
+ "if": {
90
+ "properties": {
91
+ "showProgress": {
92
+ "const": "true"
93
+ }
94
+ },
95
+ "required": [
96
+ "showProgress"
97
+ ]
98
+ },
99
+ "then": {},
100
+ "else": {
101
+ "properties": {
102
+ "progressTemplate": false
103
+ }
96
104
  }
97
105
  },
98
106
  {
@@ -123,42 +131,50 @@
123
131
  "then": {},
124
132
  "else": {
125
133
  "properties": {
126
- "progressTemplate": false
134
+ "progressTitle": false
127
135
  }
128
136
  }
129
137
  },
130
138
  {
131
139
  "if": {
140
+ "properties": {
141
+ "showProgress": {
142
+ "const": "true"
143
+ }
144
+ },
145
+ "required": [
146
+ "showProgress"
147
+ ]
148
+ },
149
+ "then": {
132
150
  "anyOf": [
133
151
  {
134
- "properties": {
135
- "showProgress": {
136
- "const": "true"
137
- }
138
- },
139
152
  "required": [
140
- "showProgress"
153
+ "progressTitle"
141
154
  ]
142
155
  },
143
156
  {
144
- "properties": {
145
- "showProgress": {
146
- "const": "true"
147
- }
148
- },
149
157
  "required": [
150
- "showProgress"
158
+ "progressTemplate"
151
159
  ]
152
160
  }
153
161
  ]
154
- },
155
- "then": {},
156
- "else": {
157
- "properties": {
158
- "progressTitle": false
159
- }
160
162
  }
161
163
  },
164
+ {
165
+ "anyOf": [
166
+ {
167
+ "required": [
168
+ "for"
169
+ ]
170
+ },
171
+ {
172
+ "required": [
173
+ "forDataset"
174
+ ]
175
+ }
176
+ ]
177
+ },
162
178
  {
163
179
  "if": {
164
180
  "properties": {
@@ -172,7 +188,6 @@
172
188
  },
173
189
  "then": {
174
190
  "required": [
175
- "progressTemplate",
176
191
  "progressTitle"
177
192
  ]
178
193
  }
@@ -112,27 +112,11 @@
112
112
  },
113
113
  "required": [
114
114
  "_type",
115
- "_uid",
116
- "root"
115
+ "_uid"
117
116
  ],
118
117
  "title": "formAction",
119
118
  "type": "object",
120
119
  "allOf": [
121
- {
122
- "properties": {
123
- "dataType": false
124
- }
125
- },
126
- {
127
- "properties": {
128
- "multivalueType": false
129
- }
130
- },
131
- {
132
- "properties": {
133
- "devParentCase": false
134
- }
135
- },
136
120
  {
137
121
  "if": {
138
122
  "properties": {
@@ -1,71 +1,66 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/formActionInlineJavascript.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/formActionInlineJavascript.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": "formActionInlineJavascript"
27
+ "_type" : {
28
+ "const" : "formActionInlineJavascript"
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
- "codeBlock": {
36
- "type": "string"
35
+ "codeBlock" : {
36
+ "type" : "string"
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
- "progressTemplate": {
54
- "$ref": "template/inlineTemplate.schema.json"
53
+ "progressTemplate" : {
54
+ "$ref" : "template/inlineTemplate.schema.json"
55
55
  },
56
- "progressTitle": {
57
- "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
56
+ "progressTitle" : {
57
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
58
58
  },
59
- "showProgress": {
60
- "type": "boolean"
59
+ "showProgress" : {
60
+ "type" : "boolean"
61
61
  }
62
62
  },
63
- "required": [
64
- "_type",
65
- "_uid",
66
- "root"
67
- ],
68
- "title": "formActionInlineJavascript",
69
- "type": "object",
70
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formActionInlineJavascript.json."
71
- }
63
+ "required" : [ "_type", "_uid" ],
64
+ "title" : "formActionInlineJavascript",
65
+ "type" : "object"
66
+ }
@@ -1,110 +1,99 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/formGroup.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/formGroup.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": "formGroup"
27
+ "_type" : {
28
+ "const" : "formGroup"
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
- "buttons": {
36
- "items": {
37
- "$ref": "formButton.schema.json"
35
+ "buttons" : {
36
+ "items" : {
37
+ "$ref" : "formButton.schema.json"
38
38
  },
39
- "type": "array"
39
+ "type" : "array"
40
40
  },
41
- "cssClass": {
42
- "items": {
43
- "type": "string"
41
+ "cssClass" : {
42
+ "items" : {
43
+ "type" : "string"
44
44
  },
45
- "type": "array"
45
+ "type" : "array"
46
46
  },
47
- "description": {
48
- "$ref": "template/inlineTemplate.schema.json"
47
+ "description" : {
48
+ "$ref" : "template/inlineTemplate.schema.json"
49
49
  },
50
- "formFields": {
51
- "items": {
52
- "$ref": "formfield.schema.json"
50
+ "formFields" : {
51
+ "items" : {
52
+ "$ref" : "formfield.schema.json"
53
53
  },
54
- "type": "array"
54
+ "type" : "array"
55
55
  },
56
- "groups": {
57
- "items": {
58
- "$ref": "formGroup.schema.json"
56
+ "groups" : {
57
+ "items" : {
58
+ "$ref" : "formGroup.schema.json"
59
59
  },
60
- "type": "array"
60
+ "type" : "array"
61
61
  },
62
- "hide": {
63
- "type": "boolean"
62
+ "hide" : {
63
+ "type" : "boolean"
64
64
  },
65
- "inactive": {
66
- "type": "boolean"
65
+ "inactive" : {
66
+ "type" : "boolean"
67
67
  },
68
- "instruction": {
69
- "$ref": "template/inlineTemplate.schema.json"
68
+ "instruction" : {
69
+ "$ref" : "template/inlineTemplate.schema.json"
70
70
  },
71
- "interfaceStudioProduct": {
72
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
71
+ "interfaceStudioProduct" : {
72
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
73
73
  },
74
- "metaCaseToOtap": {
75
- "type": "boolean"
74
+ "metaCaseToOtap" : {
75
+ "type" : "boolean"
76
76
  },
77
- "name": {
78
- "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
77
+ "name" : {
78
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
79
79
  },
80
- "offset": {
81
- "type": "integer"
80
+ "offset" : {
81
+ "type" : "integer"
82
82
  },
83
- "ourProductId": {
84
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
83
+ "ourProductId" : {
84
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
85
85
  },
86
- "tooltip": {
87
- "$ref": "template/inlineTemplate.schema.json"
86
+ "tooltip" : {
87
+ "$ref" : "template/inlineTemplate.schema.json"
88
88
  },
89
- "type": {
90
- "type": "string"
89
+ "type" : {
90
+ "type" : "string"
91
91
  },
92
- "width": {
93
- "type": "integer"
92
+ "width" : {
93
+ "type" : "integer"
94
94
  }
95
95
  },
96
- "required": [
97
- "_type",
98
- "_uid"
99
- ],
100
- "title": "formGroup",
101
- "type": "object",
102
- "allOf": [
103
- {
104
- "properties": {
105
- "devParentCase": false
106
- }
107
- }
108
- ],
109
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formGroup.json."
110
- }
96
+ "required" : [ "_type", "_uid" ],
97
+ "title" : "formGroup",
98
+ "type" : "object"
99
+ }
@@ -76,8 +76,6 @@
76
76
  "_type",
77
77
  "_uid",
78
78
  "condition",
79
- "form",
80
- "name",
81
79
  "roleName",
82
80
  "type"
83
81
  ],
@@ -299,56 +299,16 @@
299
299
  "title": "formfield",
300
300
  "type": "object",
301
301
  "allOf": [
302
- {
303
- "properties": {
304
- "addActivity": false
305
- }
306
- },
307
302
  {
308
303
  "properties": {
309
304
  "attributeInfo": false
310
305
  }
311
306
  },
312
- {
313
- "properties": {
314
- "dateProfile": false
315
- }
316
- },
317
- {
318
- "properties": {
319
- "devParentCase": false
320
- }
321
- },
322
307
  {
323
308
  "properties": {
324
309
  "logic": false
325
310
  }
326
311
  },
327
- {
328
- "properties": {
329
- "addActivityBase": false
330
- }
331
- },
332
- {
333
- "properties": {
334
- "picklistBase": false
335
- }
336
- },
337
- {
338
- "properties": {
339
- "placeholder": false
340
- }
341
- },
342
- {
343
- "properties": {
344
- "placeholderUseLabel": false
345
- }
346
- },
347
- {
348
- "properties": {
349
- "textRows": false
350
- }
351
- },
352
312
  {
353
313
  "if": {
354
314
  "properties": {