@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
@@ -253,6 +253,7 @@
253
253
  "required": [
254
254
  "_type",
255
255
  "_uid",
256
+ "secondaryActions",
256
257
  "type"
257
258
  ],
258
259
  "title": "activity",
@@ -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,90 @@
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
+ "activity"
79
+ ],
80
+ "title": "activityRight",
81
+ "type": "object",
82
+ "allOf": [
83
+ {
84
+ "properties": {
85
+ "devParentCase": false
86
+ }
87
+ }
88
+ ],
89
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/activityRight.json."
90
+ }
@@ -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",
@@ -231,6 +231,11 @@
231
231
  "addActivity": false
232
232
  }
233
233
  },
234
+ {
235
+ "properties": {
236
+ "currency": false
237
+ }
238
+ },
234
239
  {
235
240
  "properties": {
236
241
  "attributeDefaultValue": false
@@ -263,6 +268,23 @@
263
268
  ]
264
269
  }
265
270
  },
271
+ {
272
+ "if": {
273
+ "properties": {
274
+ "multivalue": {
275
+ "const": "true"
276
+ }
277
+ },
278
+ "required": [
279
+ "multivalue"
280
+ ]
281
+ },
282
+ "then": {
283
+ "required": [
284
+ "multivalueType"
285
+ ]
286
+ }
287
+ },
266
288
  {
267
289
  "if": {
268
290
  "properties": {
@@ -178,6 +178,7 @@
178
178
  "required": [
179
179
  "_type",
180
180
  "_uid",
181
+ "newRulelist",
181
182
  "name",
182
183
  "type"
183
184
  ],
@@ -1,76 +1,103 @@
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
+ "root"
79
+ ],
80
+ "title": "catchBlock",
81
+ "type": "object",
82
+ "allOf": [
83
+ {
84
+ "if": {
85
+ "properties": {
86
+ "showProgress": {
87
+ "const": "true"
88
+ }
89
+ },
90
+ "required": [
91
+ "showProgress"
92
+ ]
93
+ },
94
+ "then": {
95
+ "required": [
96
+ "progressTemplate",
97
+ "progressTitle"
98
+ ]
99
+ }
100
+ }
101
+ ],
102
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/catchBlock.json."
103
+ }
@@ -73,11 +73,17 @@
73
73
  },
74
74
  "required": [
75
75
  "_type",
76
- "_uid"
76
+ "_uid",
77
+ "view"
77
78
  ],
78
79
  "title": "container",
79
80
  "type": "object",
80
81
  "allOf": [
82
+ {
83
+ "properties": {
84
+ "devParentCase": false
85
+ }
86
+ },
81
87
  {
82
88
  "properties": {
83
89
  "showSingleTab": false