@grexx/grexxlinter 0.2.1 → 0.2.343

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 (46) hide show
  1. package/cli.js +3 -3
  2. package/lsp.js +2 -2
  3. package/package.json +1 -1
  4. package/schemas/.coverage.json +3176 -1101
  5. package/schemas/activityAttribute.schema.json +116 -55
  6. package/schemas/activityRight.schema.json +65 -45
  7. package/schemas/agentTool.schema.json +3 -1
  8. package/schemas/attribute.schema.json +32 -0
  9. package/schemas/catchBlock.schema.json +82 -56
  10. package/schemas/conditionList.schema.json +69 -50
  11. package/schemas/customThrow.schema.json +82 -54
  12. package/schemas/dataRetentionProfile.schema.json +70 -65
  13. package/schemas/datasetColumn.schema.json +11 -0
  14. package/schemas/datasetRight.schema.json +0 -1
  15. package/schemas/datasource.schema.json +64 -54
  16. package/schemas/fileUploadProfile.schema.json +60 -55
  17. package/schemas/forEach.schema.json +33 -0
  18. package/schemas/formRight.schema.json +0 -1
  19. package/schemas/formfield.schema.json +44 -0
  20. package/schemas/ifthenelse.schema.json +73 -57
  21. package/schemas/jobStep.schema.json +47 -52
  22. package/schemas/llmModel.schema.json +98 -58
  23. package/schemas/metadata.schema.json +3 -1
  24. package/schemas/navigation.schema.json +31 -3
  25. package/schemas/picklistItem.schema.json +49 -54
  26. package/schemas/platformAttribute.schema.json +66 -0
  27. package/schemas/requestContext.schema.json +10 -0
  28. package/schemas/securityProfile.schema.json +53 -47
  29. package/schemas/securityRequirement.schema.json +52 -47
  30. package/schemas/simpleCondition.schema.json +15 -0
  31. package/schemas/tag.schema.json +43 -48
  32. package/schemas/taskQueue.schema.json +56 -51
  33. package/schemas/template/date-function.schema.json +1 -0
  34. package/schemas/template/html.schema.json +1 -0
  35. package/schemas/template/if.schema.json +1 -0
  36. package/schemas/template/iterator.schema.json +1 -0
  37. package/schemas/template/multivalue.schema.json +1 -0
  38. package/schemas/template/picklist.schema.json +1 -0
  39. package/schemas/template/util.schema.json +4 -0
  40. package/schemas/trigger.schema.json +33 -0
  41. package/schemas/tryBlock.schema.json +2 -2
  42. package/schemas/view.schema.json +1 -2
  43. package/schemas/webhook.schema.json +46 -58
  44. package/schemas/while.schema.json +33 -0
  45. package/schemas/widget.schema.json +197 -2
  46. package/schemas/widgetRight.schema.json +0 -1
@@ -1,63 +1,68 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/securityRequirement.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/securityRequirement.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" : "securityRequirement"
27
+ "_type": {
28
+ "const": "securityRequirement"
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
- "key" : {
45
- "type" : "string"
44
+ "key": {
45
+ "type": "string"
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
- "value" : {
54
- "items" : {
55
- "type" : "string"
53
+ "value": {
54
+ "items": {
55
+ "type": "string"
56
56
  },
57
- "type" : "array"
57
+ "type": "array"
58
58
  }
59
59
  },
60
- "required" : [ "_type", "_uid" ],
61
- "title" : "securityRequirement",
62
- "type" : "object"
63
- }
60
+ "required": [
61
+ "_type",
62
+ "_uid",
63
+ "key"
64
+ ],
65
+ "title": "securityRequirement",
66
+ "type": "object",
67
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/securityRequirement.json."
68
+ }
@@ -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,16 @@
225
230
  }
226
231
  }
227
232
  },
233
+ {
234
+ "properties": {
235
+ "parentCondition": false
236
+ }
237
+ },
238
+ {
239
+ "properties": {
240
+ "rightFieldStaticItem": false
241
+ }
242
+ },
228
243
  {
229
244
  "if": {
230
245
  "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
+ }
@@ -190,6 +190,7 @@
190
190
  "$ref" : "inlineTemplate.schema.json"
191
191
  },
192
192
  "timeUnit" : {
193
+ "enum" : [ "millis", "seconds", "minutes", "hours", "days", "weeks", "months", "years" ],
193
194
  "type" : "string"
194
195
  }
195
196
  }
@@ -150,6 +150,7 @@
150
150
  "$ref" : "inlineTemplate.schema.json"
151
151
  },
152
152
  "tag" : {
153
+ "enum" : [ "button", "div", "span", "a", "input" ],
153
154
  "type" : "string"
154
155
  },
155
156
  "title" : {
@@ -9,6 +9,7 @@
9
9
  "$ref" : "inlineTemplate.schema.json"
10
10
  },
11
11
  "operator" : {
12
+ "enum" : [ "==", "eq", "equals", "==text==", "!==text!==", "!==text==", "!==", "<>", "!=", "neq", "!==", ">=", "gte", ">", "gt", "<=", "lte", "<", "lt", "contains", "notcontains", "!contains", "stringcontains", "notstringcontains", "!stringcontains", "multivaluecontains", "mvcontains", "notmultivaluecontains", "notmvcontains", "!multivaluecontains", "anyin", "notanyin", "!anyin", "allin", "notallin", "!allin", "vectorsearch", "in", "notin", "!in", "innonnull", "notinnonnull", "!innonnull", "like", "notlike", "!like", "beginsWith", "begins", "startswith", "notBeginsWith", "notbegins", "notstartswith", "!beginsWith", "endsWith", "ends", "notEndsWith", "notends", "!endsWith", "equalswildcard", "notequalswildcard", "!equalswildcard", "equalswildcardlhs", "notequalswildcardlhs", "!equalswildcardlhs" ],
12
13
  "type" : "string"
13
14
  },
14
15
  "returnType" : {
@@ -48,6 +48,7 @@
48
48
  "const" : "iterator"
49
49
  },
50
50
  "useCache" : {
51
+ "enum" : [ "auto", "readonly", "readwrite" ],
51
52
  "type" : "string"
52
53
  },
53
54
  "value" : {
@@ -187,6 +187,7 @@
187
187
  "$ref" : "inlineTemplate.schema.json"
188
188
  },
189
189
  "sortDirectionFixed" : {
190
+ "enum" : [ "asc", "ascending", "desc", "descending", "dynamic" ],
190
191
  "type" : "string"
191
192
  }
192
193
  }
@@ -3,6 +3,7 @@
3
3
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
4
  "properties" : {
5
5
  "notFoundBehaviour" : {
6
+ "enum" : [ "noLabelText", "rawValue", "parseAlways", "empty" ],
6
7
  "type" : "string"
7
8
  },
8
9
  "param" : {
@@ -67,6 +67,7 @@
67
67
  "then" : {
68
68
  "properties" : {
69
69
  "charset" : {
70
+ "enum" : [ "UTF-8", "UTF-16", "ISO-8859-1", "US-ASCII", "base64" ],
70
71
  "type" : "string"
71
72
  },
72
73
  "param" : {
@@ -155,12 +156,15 @@
155
156
  "then" : {
156
157
  "properties" : {
157
158
  "algorithm" : {
159
+ "enum" : [ "SHA-256", "SHA-512", "HMAC-SHA-512", "HMAC-SHA-256", "hmac-sha-1", "sha-1", "md5", "java" ],
158
160
  "type" : "string"
159
161
  },
160
162
  "outputEncoding" : {
163
+ "enum" : [ "hex", "base64" ],
161
164
  "type" : "string"
162
165
  },
163
166
  "pepper" : {
167
+ "enum" : [ "none", "atalanta" ],
164
168
  "type" : "string"
165
169
  },
166
170
  "salt" : {
@@ -121,6 +121,38 @@
121
121
  "title": "trigger",
122
122
  "type": "object",
123
123
  "allOf": [
124
+ {
125
+ "if": {
126
+ "anyOf": [
127
+ {
128
+ "properties": {
129
+ "showProgress": {
130
+ "const": "true"
131
+ }
132
+ },
133
+ "required": [
134
+ "showProgress"
135
+ ]
136
+ },
137
+ {
138
+ "properties": {
139
+ "showProgress": {
140
+ "const": "true"
141
+ }
142
+ },
143
+ "required": [
144
+ "showProgress"
145
+ ]
146
+ }
147
+ ]
148
+ },
149
+ "then": {},
150
+ "else": {
151
+ "properties": {
152
+ "progressTemplate": false
153
+ }
154
+ }
155
+ },
124
156
  {
125
157
  "if": {
126
158
  "anyOf": [
@@ -387,6 +419,7 @@
387
419
  },
388
420
  "then": {
389
421
  "required": [
422
+ "progressTemplate",
390
423
  "progressTitle"
391
424
  ]
392
425
  }
@@ -89,8 +89,8 @@
89
89
  },
90
90
  "then": {
91
91
  "required": [
92
- "progressTitle",
93
- "progressTemplate"
92
+ "progressTemplate",
93
+ "progressTitle"
94
94
  ]
95
95
  }
96
96
  }
@@ -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",
@@ -1,77 +1,65 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/webhook.schema.json",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "additionalProperties": false,
5
- "properties": {
6
- "_id": {
7
- "type": "string"
2
+ "$id" : "https://grexx.net/studio-next/schemas/webhook.schema.json",
3
+ "$schema" : "https://json-schema.org/draft/2020-12/schema",
4
+ "additionalProperties" : false,
5
+ "properties" : {
6
+ "_id" : {
7
+ "type" : "string"
8
8
  },
9
- "_interfaceID": {
10
- "type": "string"
9
+ "_interfaceID" : {
10
+ "type" : "string"
11
11
  },
12
- "_isInterface": {
13
- "type": "boolean"
12
+ "_isInterface" : {
13
+ "type" : "boolean"
14
14
  },
15
- "_knownIDs": {
16
- "items": {
17
- "type": "string"
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": "webhook"
27
+ "_type" : {
28
+ "const" : "webhook"
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
- "dataType": {
36
- "enum": [
37
- "ANALYTICS_JSON"
38
- ],
39
- "type": "string"
35
+ "dataType" : {
36
+ "enum" : [ "ANALYTICS_JSON" ],
37
+ "type" : "string"
40
38
  },
41
- "description": {
42
- "$ref": "template/inlineTemplate.schema.json"
39
+ "description" : {
40
+ "$ref" : "template/inlineTemplate.schema.json"
43
41
  },
44
- "event": {
45
- "enum": [
46
- "user_postform",
47
- "casedata_change",
48
- "case_finish"
49
- ],
50
- "type": "string"
42
+ "event" : {
43
+ "enum" : [ "user_postform", "casedata_change", "case_finish" ],
44
+ "type" : "string"
51
45
  },
52
- "inactive": {
53
- "type": "boolean"
46
+ "inactive" : {
47
+ "type" : "boolean"
54
48
  },
55
- "interfaceStudioProduct": {
56
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
49
+ "interfaceStudioProduct" : {
50
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
57
51
  },
58
- "metaCaseToOtap": {
59
- "type": "boolean"
52
+ "metaCaseToOtap" : {
53
+ "type" : "boolean"
60
54
  },
61
- "ourProductId": {
62
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
+ "ourProductId" : {
56
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
63
57
  },
64
- "url": {
65
- "$ref": "template/inlineTemplate.schema.json"
58
+ "url" : {
59
+ "$ref" : "template/inlineTemplate.schema.json"
66
60
  }
67
61
  },
68
- "required": [
69
- "_type",
70
- "_uid",
71
- "event",
72
- "url"
73
- ],
74
- "title": "webhook",
75
- "type": "object",
76
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/webhook.json."
77
- }
62
+ "required" : [ "_type", "_uid" ],
63
+ "title" : "webhook",
64
+ "type" : "object"
65
+ }