@grexx/grexxlinter 0.2.1 → 0.2.326

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 (54) hide show
  1. package/cli.js +2 -2
  2. package/lsp.js +1 -1
  3. package/package.json +1 -1
  4. package/schemas/.coverage.json +3326 -1104
  5. package/schemas/activity.schema.json +1 -0
  6. package/schemas/activityAttribute.schema.json +116 -55
  7. package/schemas/activityRight.schema.json +71 -45
  8. package/schemas/agentTool.schema.json +3 -1
  9. package/schemas/attribute.schema.json +22 -0
  10. package/schemas/casetype.schema.json +1 -0
  11. package/schemas/catchBlock.schema.json +83 -56
  12. package/schemas/container.schema.json +7 -1
  13. package/schemas/customThrow.schema.json +82 -54
  14. package/schemas/dataRetentionProfile.schema.json +70 -65
  15. package/schemas/datasetColumn.schema.json +16 -0
  16. package/schemas/datasetRight.schema.json +2 -1
  17. package/schemas/datasource.schema.json +64 -54
  18. package/schemas/directRole.schema.json +7 -0
  19. package/schemas/fileUploadProfile.schema.json +60 -55
  20. package/schemas/forEach.schema.json +38 -0
  21. package/schemas/formAction.schema.json +7 -1
  22. package/schemas/formActionInlineJavascript.schema.json +54 -49
  23. package/schemas/formGroup.schema.json +82 -71
  24. package/schemas/formRight.schema.json +2 -1
  25. package/schemas/formfield.schema.json +49 -0
  26. package/schemas/gridActivity.schema.json +78 -59
  27. package/schemas/gridColumn.schema.json +144 -107
  28. package/schemas/ifthenelse.schema.json +83 -57
  29. package/schemas/indirectRole.schema.json +7 -0
  30. package/schemas/jobStep.schema.json +12 -0
  31. package/schemas/llmModel.schema.json +98 -58
  32. package/schemas/mapping.schema.json +12 -1
  33. package/schemas/menuItem.schema.json +5 -0
  34. package/schemas/menuItemRight.schema.json +71 -45
  35. package/schemas/navigation.schema.json +31 -3
  36. package/schemas/notCondition.schema.json +66 -45
  37. package/schemas/parallelBlock.schema.json +60 -55
  38. package/schemas/picklist.schema.json +2 -1
  39. package/schemas/picklistItem.schema.json +2 -1
  40. package/schemas/platformAttribute.schema.json +66 -0
  41. package/schemas/platformRole.schema.json +6 -0
  42. package/schemas/plugin.schema.json +77 -71
  43. package/schemas/pluginLibrary.schema.json +2 -0
  44. package/schemas/simpleCondition.schema.json +20 -0
  45. package/schemas/tag.schema.json +43 -48
  46. package/schemas/taskQueue.schema.json +56 -51
  47. package/schemas/template.schema.json +2 -1
  48. package/schemas/trigger.schema.json +38 -0
  49. package/schemas/tryBlock.schema.json +4 -3
  50. package/schemas/view.schema.json +1 -2
  51. package/schemas/webhook.schema.json +46 -58
  52. package/schemas/while.schema.json +33 -0
  53. package/schemas/widget.schema.json +197 -2
  54. package/schemas/widgetRight.schema.json +2 -2
@@ -1,99 +1,105 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/plugin.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/plugin.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" : "plugin"
27
+ "_type": {
28
+ "const": "plugin"
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
- "datasets" : {
36
- "items" : {
37
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
35
+ "datasets": {
36
+ "items": {
37
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
38
38
  },
39
- "type" : "array"
39
+ "type": "array"
40
40
  },
41
- "definitionHTML" : {
42
- "type" : "string"
41
+ "definitionHTML": {
42
+ "type": "string"
43
43
  },
44
- "definitionJavascript" : {
45
- "type" : "string"
44
+ "definitionJavascript": {
45
+ "type": "string"
46
46
  },
47
- "definitionStylesheet" : {
48
- "type" : "string"
47
+ "definitionStylesheet": {
48
+ "type": "string"
49
49
  },
50
- "description" : {
51
- "$ref" : "template/inlineTemplate.schema.json"
50
+ "description": {
51
+ "$ref": "template/inlineTemplate.schema.json"
52
52
  },
53
- "enabled" : {
54
- "type" : "boolean"
53
+ "enabled": {
54
+ "type": "boolean"
55
55
  },
56
- "forms" : {
57
- "items" : {
58
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "forms": {
57
+ "items": {
58
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
59
59
  },
60
- "type" : "array"
60
+ "type": "array"
61
61
  },
62
- "inactive" : {
63
- "type" : "boolean"
62
+ "inactive": {
63
+ "type": "boolean"
64
64
  },
65
- "interfaceStudioProduct" : {
66
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
65
+ "interfaceStudioProduct": {
66
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
67
67
  },
68
- "metaCaseToOtap" : {
69
- "type" : "boolean"
68
+ "metaCaseToOtap": {
69
+ "type": "boolean"
70
70
  },
71
- "name" : {
72
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
71
+ "name": {
72
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
73
73
  },
74
- "ourProductId" : {
75
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
74
+ "ourProductId": {
75
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
76
76
  },
77
- "pluginLibrary" : {
78
- "items" : {
79
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
77
+ "pluginLibrary": {
78
+ "items": {
79
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
80
80
  },
81
- "type" : "array"
81
+ "type": "array"
82
82
  },
83
- "type" : {
84
- "type" : "string"
83
+ "type": {
84
+ "type": "string"
85
85
  },
86
- "version" : {
87
- "type" : "string"
86
+ "version": {
87
+ "type": "string"
88
88
  },
89
- "views" : {
90
- "items" : {
91
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
89
+ "views": {
90
+ "items": {
91
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
92
92
  },
93
- "type" : "array"
93
+ "type": "array"
94
94
  }
95
95
  },
96
- "required" : [ "_type", "_uid" ],
97
- "title" : "plugin",
98
- "type" : "object"
99
- }
96
+ "required": [
97
+ "_type",
98
+ "_uid",
99
+ "StoreproductId",
100
+ "StoreproductLatestVersionId"
101
+ ],
102
+ "title": "plugin",
103
+ "type": "object",
104
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/plugin.json."
105
+ }
@@ -70,6 +70,8 @@
70
70
  "_type",
71
71
  "_uid",
72
72
  "name",
73
+ "StoreproductId",
74
+ "StoreproductLatestVersionId",
73
75
  "version"
74
76
  ],
75
77
  "title": "pluginLibrary",
@@ -193,6 +193,11 @@
193
193
  "title": "simpleCondition",
194
194
  "type": "object",
195
195
  "allOf": [
196
+ {
197
+ "properties": {
198
+ "leftFieldStaticItem": false
199
+ }
200
+ },
196
201
  {
197
202
  "if": {
198
203
  "anyOf": [
@@ -225,6 +230,21 @@
225
230
  }
226
231
  }
227
232
  },
233
+ {
234
+ "properties": {
235
+ "parentCondition": false
236
+ }
237
+ },
238
+ {
239
+ "properties": {
240
+ "parentRule": false
241
+ }
242
+ },
243
+ {
244
+ "properties": {
245
+ "rightFieldStaticItem": false
246
+ }
247
+ },
228
248
  {
229
249
  "if": {
230
250
  "anyOf": [
@@ -1,62 +1,57 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/tag.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/tag.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": "tag"
27
+ "_type" : {
28
+ "const" : "tag"
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
- "inactive": {
39
- "type": "boolean"
38
+ "inactive" : {
39
+ "type" : "boolean"
40
40
  },
41
- "interfaceStudioProduct": {
42
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
41
+ "interfaceStudioProduct" : {
42
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
43
43
  },
44
- "metaCaseToOtap": {
45
- "type": "boolean"
44
+ "metaCaseToOtap" : {
45
+ "type" : "boolean"
46
46
  },
47
- "name": {
48
- "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
47
+ "name" : {
48
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
49
49
  },
50
- "ourProductId": {
51
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
50
+ "ourProductId" : {
51
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
52
52
  }
53
53
  },
54
- "required": [
55
- "_type",
56
- "_uid",
57
- "name"
58
- ],
59
- "title": "tag",
60
- "type": "object",
61
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/tag.json."
62
- }
54
+ "required" : [ "_type", "_uid" ],
55
+ "title" : "tag",
56
+ "type" : "object"
57
+ }
@@ -1,69 +1,74 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/taskQueue.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/taskQueue.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" : "taskQueue"
27
+ "_type": {
28
+ "const": "taskQueue"
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
- "blockOnFailure" : {
36
- "type" : "boolean"
35
+ "blockOnFailure": {
36
+ "type": "boolean"
37
37
  },
38
- "description" : {
39
- "$ref" : "template/inlineTemplate.schema.json"
38
+ "description": {
39
+ "$ref": "template/inlineTemplate.schema.json"
40
40
  },
41
- "executeOnlyMostRecentActivity" : {
42
- "type" : "boolean"
41
+ "executeOnlyMostRecentActivity": {
42
+ "type": "boolean"
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
- "name" : {
54
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
53
+ "name": {
54
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
55
55
  },
56
- "ourProductId" : {
57
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "ourProductId": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  },
59
- "rateLimitPerHourAttribute" : {
60
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
59
+ "rateLimitPerHourAttribute": {
60
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
61
61
  },
62
- "type" : {
63
- "type" : "string"
62
+ "type": {
63
+ "type": "string"
64
64
  }
65
65
  },
66
- "required" : [ "_type", "_uid" ],
67
- "title" : "taskQueue",
68
- "type" : "object"
69
- }
66
+ "required": [
67
+ "_type",
68
+ "_uid",
69
+ "name"
70
+ ],
71
+ "title": "taskQueue",
72
+ "type": "object",
73
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/taskQueue.json."
74
+ }
@@ -66,7 +66,8 @@
66
66
  "required": [
67
67
  "_type",
68
68
  "_uid",
69
- "name"
69
+ "name",
70
+ "type"
70
71
  ],
71
72
  "title": "template",
72
73
  "type": "object",
@@ -121,6 +121,43 @@
121
121
  "title": "trigger",
122
122
  "type": "object",
123
123
  "allOf": [
124
+ {
125
+ "properties": {
126
+ "parentRule": false
127
+ }
128
+ },
129
+ {
130
+ "if": {
131
+ "anyOf": [
132
+ {
133
+ "properties": {
134
+ "showProgress": {
135
+ "const": "true"
136
+ }
137
+ },
138
+ "required": [
139
+ "showProgress"
140
+ ]
141
+ },
142
+ {
143
+ "properties": {
144
+ "showProgress": {
145
+ "const": "true"
146
+ }
147
+ },
148
+ "required": [
149
+ "showProgress"
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ "then": {},
155
+ "else": {
156
+ "properties": {
157
+ "progressTemplate": false
158
+ }
159
+ }
160
+ },
124
161
  {
125
162
  "if": {
126
163
  "anyOf": [
@@ -387,6 +424,7 @@
387
424
  },
388
425
  "then": {
389
426
  "required": [
427
+ "progressTemplate",
390
428
  "progressTitle"
391
429
  ]
392
430
  }
@@ -71,7 +71,8 @@
71
71
  },
72
72
  "required": [
73
73
  "_type",
74
- "_uid"
74
+ "_uid",
75
+ "root"
75
76
  ],
76
77
  "title": "tryBlock",
77
78
  "type": "object",
@@ -89,8 +90,8 @@
89
90
  },
90
91
  "then": {
91
92
  "required": [
92
- "progressTitle",
93
- "progressTemplate"
93
+ "progressTemplate",
94
+ "progressTitle"
94
95
  ]
95
96
  }
96
97
  }
@@ -133,8 +133,7 @@
133
133
  "required": [
134
134
  "_type",
135
135
  "_uid",
136
- "name",
137
- "options"
136
+ "name"
138
137
  ],
139
138
  "title": "view",
140
139
  "type": "object",