@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,73 +1,134 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/activityAttribute.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/activityAttribute.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" : "activityAttribute"
27
+ "_type": {
28
+ "const": "activityAttribute"
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
- "allowHTML" : {
36
- "type" : "boolean"
35
+ "allowHTML": {
36
+ "type": "boolean"
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
- "name" : {
51
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
50
+ "name": {
51
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
52
52
  },
53
- "ourProductId" : {
54
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
53
+ "ourProductId": {
54
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
55
  },
56
- "platformAttribute" : {
57
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "platformAttribute": {
57
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  },
59
- "subtype" : {
60
- "items" : {
61
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
59
+ "subtype": {
60
+ "items": {
61
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
62
62
  },
63
- "type" : "array"
64
- },
65
- "type" : {
66
- "enum" : [ "boolean", "date", "datetime", "integer", "long", "double", "string", "string", "text", "mediumstring", "smallstring", "tinystring", "caseid", "case", "internalexternalcaseid", "internalexternalcaseid", "taskid", "task", "jsonobject", "json", "file", "inlinetemplate", "money", "uuid", "datasetrow", "versionedid", "point2d", "polygon2d", "grexxblob", "singlecurrencymoney" ],
67
- "type" : "string"
63
+ "type": "array"
64
+ },
65
+ "type": {
66
+ "enum": [
67
+ "boolean",
68
+ "date",
69
+ "datetime",
70
+ "integer",
71
+ "long",
72
+ "double",
73
+ "string",
74
+ "string",
75
+ "text",
76
+ "mediumstring",
77
+ "smallstring",
78
+ "tinystring",
79
+ "caseid",
80
+ "case",
81
+ "internalexternalcaseid",
82
+ "internalexternalcaseid",
83
+ "taskid",
84
+ "task",
85
+ "jsonobject",
86
+ "json",
87
+ "file",
88
+ "inlinetemplate",
89
+ "money",
90
+ "uuid",
91
+ "datasetrow",
92
+ "versionedid",
93
+ "point2d",
94
+ "polygon2d",
95
+ "grexxblob",
96
+ "singlecurrencymoney"
97
+ ],
98
+ "type": "string"
68
99
  }
69
100
  },
70
- "required" : [ "_type", "_uid" ],
71
- "title" : "activityAttribute",
72
- "type" : "object"
73
- }
101
+ "required": [
102
+ "_type",
103
+ "_uid",
104
+ "name",
105
+ "type"
106
+ ],
107
+ "title": "activityAttribute",
108
+ "type": "object",
109
+ "allOf": [
110
+ {
111
+ "properties": {
112
+ "allowHTML": false
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
+ }
132
+ ],
133
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/activityAttribute.json."
134
+ }
@@ -1,64 +1,84 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/activityRight.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/activityRight.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" : "activityRight"
27
+ "_type": {
28
+ "const": "activityRight"
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
- "condition" : {
36
- "$ref" : "abstractCondition.schema.json"
35
+ "condition": {
36
+ "$ref": "abstractCondition.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
- "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
- "roleName" : {
54
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
53
+ "roleName": {
54
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
55
  },
56
- "type" : {
57
- "enum" : [ "widget_view", "activity_request", "activity_execute", "activity_trigger", "activity_agent_request", "activity_agent_execute", "activity_agent_suggest_request", "activity_agent_suggest_execute", "dataset_view", "form_view", "menuItem_view", "debug_action", "any_right" ],
58
- "type" : "string"
56
+ "type": {
57
+ "enum": [
58
+ "widget_view",
59
+ "activity_request",
60
+ "activity_execute",
61
+ "activity_trigger",
62
+ "activity_agent_request",
63
+ "activity_agent_execute",
64
+ "activity_agent_suggest_request",
65
+ "activity_agent_suggest_execute",
66
+ "dataset_view",
67
+ "form_view",
68
+ "menuItem_view",
69
+ "debug_action",
70
+ "any_right"
71
+ ],
72
+ "type": "string"
59
73
  }
60
74
  },
61
- "required" : [ "_type", "_uid" ],
62
- "title" : "activityRight",
63
- "type" : "object"
64
- }
75
+ "required": [
76
+ "_type",
77
+ "_uid",
78
+ "roleName",
79
+ "type"
80
+ ],
81
+ "title": "activityRight",
82
+ "type": "object",
83
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/activityRight.json."
84
+ }
@@ -74,7 +74,9 @@
74
74
  },
75
75
  "required": [
76
76
  "_type",
77
- "_uid"
77
+ "_uid",
78
+ "name",
79
+ "toolType"
78
80
  ],
79
81
  "title": "agentTool",
80
82
  "type": "object",
@@ -226,16 +226,31 @@
226
226
  "title": "attribute",
227
227
  "type": "object",
228
228
  "allOf": [
229
+ {
230
+ "properties": {
231
+ "calculatedTemplate": false
232
+ }
233
+ },
229
234
  {
230
235
  "properties": {
231
236
  "addActivity": false
232
237
  }
233
238
  },
239
+ {
240
+ "properties": {
241
+ "currency": false
242
+ }
243
+ },
234
244
  {
235
245
  "properties": {
236
246
  "attributeDefaultValue": false
237
247
  }
238
248
  },
249
+ {
250
+ "properties": {
251
+ "linkToPlatform": false
252
+ }
253
+ },
239
254
  {
240
255
  "properties": {
241
256
  "addActivityBase": false
@@ -263,6 +278,23 @@
263
278
  ]
264
279
  }
265
280
  },
281
+ {
282
+ "if": {
283
+ "properties": {
284
+ "multivalue": {
285
+ "const": "true"
286
+ }
287
+ },
288
+ "required": [
289
+ "multivalue"
290
+ ]
291
+ },
292
+ "then": {
293
+ "required": [
294
+ "multivalueType"
295
+ ]
296
+ }
297
+ },
266
298
  {
267
299
  "if": {
268
300
  "properties": {
@@ -1,76 +1,102 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/catchBlock.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/catchBlock.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" : "catchBlock"
27
+ "_type": {
28
+ "const": "catchBlock"
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
- "catchRule" : {
36
- "items" : {
37
- "$ref" : "abstractRule.schema.json"
35
+ "catchRule": {
36
+ "items": {
37
+ "$ref": "abstractRule.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
- "ourProductId" : {
54
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
53
+ "ourProductId": {
54
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
55
  },
56
- "pattern" : {
57
- "items" : {
58
- "enum" : [ "EMAIL-1001" ],
59
- "type" : "string"
56
+ "pattern": {
57
+ "items": {
58
+ "enum": [
59
+ "EMAIL-1001"
60
+ ],
61
+ "type": "string"
60
62
  },
61
- "type" : "array"
63
+ "type": "array"
62
64
  },
63
- "progressTemplate" : {
64
- "$ref" : "template/inlineTemplate.schema.json"
65
+ "progressTemplate": {
66
+ "$ref": "template/inlineTemplate.schema.json"
65
67
  },
66
- "progressTitle" : {
67
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
68
+ "progressTitle": {
69
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
68
70
  },
69
- "showProgress" : {
70
- "type" : "boolean"
71
+ "showProgress": {
72
+ "type": "boolean"
71
73
  }
72
74
  },
73
- "required" : [ "_type", "_uid" ],
74
- "title" : "catchBlock",
75
- "type" : "object"
76
- }
75
+ "required": [
76
+ "_type",
77
+ "_uid"
78
+ ],
79
+ "title": "catchBlock",
80
+ "type": "object",
81
+ "allOf": [
82
+ {
83
+ "if": {
84
+ "properties": {
85
+ "showProgress": {
86
+ "const": "true"
87
+ }
88
+ },
89
+ "required": [
90
+ "showProgress"
91
+ ]
92
+ },
93
+ "then": {
94
+ "required": [
95
+ "progressTemplate",
96
+ "progressTitle"
97
+ ]
98
+ }
99
+ }
100
+ ],
101
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/catchBlock.json."
102
+ }