@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,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,73 +1,101 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/customThrow.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/customThrow.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" : "customThrow"
27
+ "_type": {
28
+ "const": "customThrow"
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
- "debugMessage" : {
36
- "$ref" : "template/inlineTemplate.schema.json"
35
+ "debugMessage": {
36
+ "$ref": "template/inlineTemplate.schema.json"
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
- "messageType" : {
48
- "enum" : [ "error", "warning", "info" ],
49
- "type" : "string"
47
+ "messageType": {
48
+ "enum": [
49
+ "error",
50
+ "warning",
51
+ "info"
52
+ ],
53
+ "type": "string"
50
54
  },
51
- "metaCaseToOtap" : {
52
- "type" : "boolean"
55
+ "metaCaseToOtap": {
56
+ "type": "boolean"
53
57
  },
54
- "ourProductId" : {
55
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
58
+ "ourProductId": {
59
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
56
60
  },
57
- "progressTemplate" : {
58
- "$ref" : "template/inlineTemplate.schema.json"
61
+ "progressTemplate": {
62
+ "$ref": "template/inlineTemplate.schema.json"
59
63
  },
60
- "progressTitle" : {
61
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
64
+ "progressTitle": {
65
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
62
66
  },
63
- "publicMessage" : {
64
- "$ref" : "template/inlineTemplate.schema.json"
67
+ "publicMessage": {
68
+ "$ref": "template/inlineTemplate.schema.json"
65
69
  },
66
- "showProgress" : {
67
- "type" : "boolean"
70
+ "showProgress": {
71
+ "type": "boolean"
68
72
  }
69
73
  },
70
- "required" : [ "_type", "_uid" ],
71
- "title" : "customThrow",
72
- "type" : "object"
73
- }
74
+ "required": [
75
+ "_type",
76
+ "_uid"
77
+ ],
78
+ "title": "customThrow",
79
+ "type": "object",
80
+ "allOf": [
81
+ {
82
+ "if": {
83
+ "properties": {
84
+ "showProgress": {
85
+ "const": "true"
86
+ }
87
+ },
88
+ "required": [
89
+ "showProgress"
90
+ ]
91
+ },
92
+ "then": {
93
+ "required": [
94
+ "progressTemplate",
95
+ "progressTitle"
96
+ ]
97
+ }
98
+ }
99
+ ],
100
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/customThrow.json."
101
+ }
@@ -1,90 +1,95 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/dataRetentionProfile.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/dataRetentionProfile.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" : "dataRetentionProfile"
27
+ "_type": {
28
+ "const": "dataRetentionProfile"
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
- "dataRetentionCleanupDeletedCasedata" : {
36
- "type" : "boolean"
35
+ "dataRetentionCleanupDeletedCasedata": {
36
+ "type": "boolean"
37
37
  },
38
- "dataRetentionCleanupFinishedCasedata" : {
39
- "type" : "boolean"
38
+ "dataRetentionCleanupFinishedCasedata": {
39
+ "type": "boolean"
40
40
  },
41
- "dataRetentionCleanupFinishedCases" : {
42
- "type" : "boolean"
41
+ "dataRetentionCleanupFinishedCases": {
42
+ "type": "boolean"
43
43
  },
44
- "dataRetentionCleanupOpenCasedata" : {
45
- "type" : "boolean"
44
+ "dataRetentionCleanupOpenCasedata": {
45
+ "type": "boolean"
46
46
  },
47
- "dataRetentionCleanupTaskdata" : {
48
- "type" : "boolean"
47
+ "dataRetentionCleanupTaskdata": {
48
+ "type": "boolean"
49
49
  },
50
- "dataRetentionDataAgeMinutes" : {
51
- "type" : "integer"
50
+ "dataRetentionDataAgeMinutes": {
51
+ "type": "integer"
52
52
  },
53
- "dataRetentionNeverStoreData" : {
54
- "type" : "boolean"
53
+ "dataRetentionNeverStoreData": {
54
+ "type": "boolean"
55
55
  },
56
- "dataset" : {
57
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "dataset": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  },
59
- "description" : {
60
- "$ref" : "template/inlineTemplate.schema.json"
59
+ "description": {
60
+ "$ref": "template/inlineTemplate.schema.json"
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
- "onlyRunOnOtap" : {
75
- "items" : {
76
- "type" : "string"
74
+ "onlyRunOnOtap": {
75
+ "items": {
76
+ "type": "string"
77
77
  },
78
- "type" : "array"
78
+ "type": "array"
79
79
  },
80
- "ourProductId" : {
81
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
80
+ "ourProductId": {
81
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
82
82
  },
83
- "pageCasetype" : {
84
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
83
+ "pageCasetype": {
84
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
85
85
  }
86
86
  },
87
- "required" : [ "_type", "_uid" ],
88
- "title" : "dataRetentionProfile",
89
- "type" : "object"
90
- }
87
+ "required": [
88
+ "_type",
89
+ "_uid",
90
+ "name"
91
+ ],
92
+ "title": "dataRetentionProfile",
93
+ "type": "object",
94
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/dataRetentionProfile.json."
95
+ }
@@ -138,6 +138,11 @@
138
138
  }
139
139
  }
140
140
  },
141
+ {
142
+ "properties": {
143
+ "multivalueType": false
144
+ }
145
+ },
141
146
  {
142
147
  "properties": {
143
148
  "sortOrder": false
@@ -207,6 +212,11 @@
207
212
  }
208
213
  }
209
214
  },
215
+ {
216
+ "properties": {
217
+ "name": false
218
+ }
219
+ },
210
220
  {
211
221
  "if": {
212
222
  "anyOf": [
@@ -333,6 +343,7 @@
333
343
  },
334
344
  "then": {
335
345
  "required": [
346
+ "externalReference",
336
347
  "title"
337
348
  ],
338
349
  "properties": {
@@ -75,7 +75,6 @@
75
75
  "required": [
76
76
  "_type",
77
77
  "_uid",
78
- "description",
79
78
  "condition",
80
79
  "roleName",
81
80
  "type"
@@ -1,73 +1,83 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/datasource.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/datasource.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" : "datasource"
27
+ "_type": {
28
+ "const": "datasource"
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
- "datasourceDatabase" : {
36
- "type" : "string"
35
+ "datasourceDatabase": {
36
+ "type": "string"
37
37
  },
38
- "datasourceHost" : {
39
- "type" : "string"
38
+ "datasourceHost": {
39
+ "type": "string"
40
40
  },
41
- "datasourcePort" : {
42
- "type" : "integer"
41
+ "datasourcePort": {
42
+ "type": "integer"
43
43
  },
44
- "datasourceUser" : {
45
- "type" : "string"
44
+ "datasourceUser": {
45
+ "type": "string"
46
46
  },
47
- "description" : {
48
- "$ref" : "template/inlineTemplate.schema.json"
47
+ "description": {
48
+ "$ref": "template/inlineTemplate.schema.json"
49
49
  },
50
- "inactive" : {
51
- "type" : "boolean"
50
+ "inactive": {
51
+ "type": "boolean"
52
52
  },
53
- "interfaceStudioProduct" : {
54
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
53
+ "interfaceStudioProduct": {
54
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
55
  },
56
- "metaCaseToOtap" : {
57
- "type" : "boolean"
56
+ "metaCaseToOtap": {
57
+ "type": "boolean"
58
58
  },
59
- "name" : {
60
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
59
+ "name": {
60
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
61
61
  },
62
- "ourProductId" : {
63
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
62
+ "ourProductId": {
63
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
64
64
  },
65
- "type" : {
66
- "enum" : [ "internal", "mysql_fdw", "multicorn_alchemy" ],
67
- "type" : "string"
65
+ "type": {
66
+ "enum": [
67
+ "internal",
68
+ "mysql_fdw",
69
+ "multicorn_alchemy"
70
+ ],
71
+ "type": "string"
68
72
  }
69
73
  },
70
- "required" : [ "_type", "_uid" ],
71
- "title" : "datasource",
72
- "type" : "object"
73
- }
74
+ "required": [
75
+ "_type",
76
+ "_uid",
77
+ "name",
78
+ "type"
79
+ ],
80
+ "title": "datasource",
81
+ "type": "object",
82
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/datasource.json."
83
+ }