@grexx/grexxlinter 0.2.0 → 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,64 +1,90 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/menuItemRight.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/menuItemRight.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" : "menuItemRight"
27
+ "_type": {
28
+ "const": "menuItemRight"
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" : "menuItemRight",
63
- "type" : "object"
64
- }
75
+ "required": [
76
+ "_type",
77
+ "_uid",
78
+ "menuItem"
79
+ ],
80
+ "title": "menuItemRight",
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/menuItemRight.json."
90
+ }
@@ -71,14 +71,42 @@
71
71
  },
72
72
  "required": [
73
73
  "_type",
74
- "_uid"
74
+ "_uid",
75
+ "name"
75
76
  ],
76
77
  "title": "navigation",
77
78
  "type": "object",
78
79
  "allOf": [
79
80
  {
80
- "properties": {
81
- "rootMenuItem": false
81
+ "if": {
82
+ "anyOf": [
83
+ {
84
+ "properties": {
85
+ "type": {
86
+ "const": "sidebar-left"
87
+ }
88
+ },
89
+ "required": [
90
+ "type"
91
+ ]
92
+ },
93
+ {
94
+ "properties": {
95
+ "type": {
96
+ "const": "sidebar-right"
97
+ }
98
+ },
99
+ "required": [
100
+ "type"
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ "then": {},
106
+ "else": {
107
+ "properties": {
108
+ "uncollapsible": false
109
+ }
82
110
  }
83
111
  }
84
112
  ],
@@ -1,60 +1,81 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/notCondition.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/notCondition.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" : "notCondition"
27
+ "_type": {
28
+ "const": "notCondition"
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
- "negate" : {
51
- "type" : "boolean"
50
+ "negate": {
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
56
  },
57
- "required" : [ "_type", "_uid" ],
58
- "title" : "notCondition",
59
- "type" : "object"
60
- }
57
+ "required": [
58
+ "_type",
59
+ "_uid"
60
+ ],
61
+ "title": "notCondition",
62
+ "type": "object",
63
+ "allOf": [
64
+ {
65
+ "properties": {
66
+ "devParentCase": false
67
+ }
68
+ },
69
+ {
70
+ "properties": {
71
+ "StoreproductId": false
72
+ }
73
+ },
74
+ {
75
+ "properties": {
76
+ "StoreproductLatestVersionId": false
77
+ }
78
+ }
79
+ ],
80
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/notCondition.json."
81
+ }
@@ -1,75 +1,80 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/parallelBlock.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/parallelBlock.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" : "parallelBlock"
27
+ "_type": {
28
+ "const": "parallelBlock"
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
- "parallelRules" : {
54
- "items" : {
55
- "$ref" : "ruleList.schema.json"
53
+ "parallelRules": {
54
+ "items": {
55
+ "$ref": "ruleList.schema.json"
56
56
  },
57
- "type" : "array"
57
+ "type": "array"
58
58
  },
59
- "progressTemplate" : {
60
- "$ref" : "template/inlineTemplate.schema.json"
59
+ "progressTemplate": {
60
+ "$ref": "template/inlineTemplate.schema.json"
61
61
  },
62
- "progressTitle" : {
63
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
62
+ "progressTitle": {
63
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
64
64
  },
65
- "showProgress" : {
66
- "type" : "boolean"
65
+ "showProgress": {
66
+ "type": "boolean"
67
67
  },
68
- "timeOutSeconds" : {
69
- "type" : "integer"
68
+ "timeOutSeconds": {
69
+ "type": "integer"
70
70
  }
71
71
  },
72
- "required" : [ "_type", "_uid" ],
73
- "title" : "parallelBlock",
74
- "type" : "object"
75
- }
72
+ "required": [
73
+ "_type",
74
+ "_uid",
75
+ "root"
76
+ ],
77
+ "title": "parallelBlock",
78
+ "type": "object",
79
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/parallelBlock.json."
80
+ }
@@ -105,7 +105,8 @@
105
105
  "required": [
106
106
  "_type",
107
107
  "_uid",
108
- "name"
108
+ "name",
109
+ "StoreproductId"
109
110
  ],
110
111
  "title": "picklist",
111
112
  "type": "object",
@@ -63,7 +63,8 @@
63
63
  "required": [
64
64
  "_type",
65
65
  "_uid",
66
- "ourProductId"
66
+ "StoreproductId",
67
+ "StoreproductLatestVersionId"
67
68
  ],
68
69
  "title": "picklistItem",
69
70
  "type": "object",
@@ -273,6 +273,38 @@
273
273
  }
274
274
  }
275
275
  },
276
+ {
277
+ "if": {
278
+ "allOf": [
279
+ {
280
+ "properties": {
281
+ "calculatedCached": {
282
+ "const": "true"
283
+ }
284
+ },
285
+ "required": [
286
+ "calculatedCached"
287
+ ]
288
+ },
289
+ {
290
+ "properties": {
291
+ "isCalculated": {
292
+ "const": "true"
293
+ }
294
+ },
295
+ "required": [
296
+ "isCalculated"
297
+ ]
298
+ }
299
+ ]
300
+ },
301
+ "then": {},
302
+ "else": {
303
+ "properties": {
304
+ "calculationOrder": false
305
+ }
306
+ }
307
+ },
276
308
  {
277
309
  "properties": {
278
310
  "validation": false
@@ -294,6 +326,40 @@
294
326
  "calcTemplate"
295
327
  ]
296
328
  }
329
+ },
330
+ {
331
+ "if": {
332
+ "properties": {
333
+ "type": {
334
+ "const": "singlecurrencymoney"
335
+ }
336
+ },
337
+ "required": [
338
+ "type"
339
+ ]
340
+ },
341
+ "then": {
342
+ "required": [
343
+ "currency"
344
+ ]
345
+ }
346
+ },
347
+ {
348
+ "if": {
349
+ "properties": {
350
+ "type": {
351
+ "const": "case"
352
+ }
353
+ },
354
+ "required": [
355
+ "type"
356
+ ]
357
+ },
358
+ "then": {
359
+ "required": [
360
+ "subtype"
361
+ ]
362
+ }
297
363
  }
298
364
  ],
299
365
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/platformAttribute.json."
@@ -124,6 +124,7 @@
124
124
  "required": [
125
125
  "_type",
126
126
  "_uid",
127
+ "roleName",
127
128
  "platformRoleType"
128
129
  ],
129
130
  "title": "platformRole",
@@ -134,6 +135,11 @@
134
135
  "aiAgents": false
135
136
  }
136
137
  },
138
+ {
139
+ "properties": {
140
+ "devParentCase": false
141
+ }
142
+ },
137
143
  {
138
144
  "if": {
139
145
  "properties": {