@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
@@ -85,11 +85,48 @@
85
85
  "title": "forEach",
86
86
  "type": "object",
87
87
  "allOf": [
88
+ {
89
+ "properties": {
90
+ "devParentCase": false
91
+ }
92
+ },
88
93
  {
89
94
  "properties": {
90
95
  "multivalueTemplate": false
91
96
  }
92
97
  },
98
+ {
99
+ "if": {
100
+ "anyOf": [
101
+ {
102
+ "properties": {
103
+ "showProgress": {
104
+ "const": "true"
105
+ }
106
+ },
107
+ "required": [
108
+ "showProgress"
109
+ ]
110
+ },
111
+ {
112
+ "properties": {
113
+ "showProgress": {
114
+ "const": "true"
115
+ }
116
+ },
117
+ "required": [
118
+ "showProgress"
119
+ ]
120
+ }
121
+ ]
122
+ },
123
+ "then": {},
124
+ "else": {
125
+ "properties": {
126
+ "progressTemplate": false
127
+ }
128
+ }
129
+ },
93
130
  {
94
131
  "if": {
95
132
  "anyOf": [
@@ -135,6 +172,7 @@
135
172
  },
136
173
  "then": {
137
174
  "required": [
175
+ "progressTemplate",
138
176
  "progressTitle"
139
177
  ]
140
178
  }
@@ -112,7 +112,8 @@
112
112
  },
113
113
  "required": [
114
114
  "_type",
115
- "_uid"
115
+ "_uid",
116
+ "root"
116
117
  ],
117
118
  "title": "formAction",
118
119
  "type": "object",
@@ -127,6 +128,11 @@
127
128
  "multivalueType": false
128
129
  }
129
130
  },
131
+ {
132
+ "properties": {
133
+ "devParentCase": false
134
+ }
135
+ },
130
136
  {
131
137
  "if": {
132
138
  "properties": {
@@ -1,66 +1,71 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/formActionInlineJavascript.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/formActionInlineJavascript.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" : "formActionInlineJavascript"
27
+ "_type": {
28
+ "const": "formActionInlineJavascript"
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
- "codeBlock" : {
36
- "type" : "string"
35
+ "codeBlock": {
36
+ "type": "string"
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
- "progressTemplate" : {
54
- "$ref" : "template/inlineTemplate.schema.json"
53
+ "progressTemplate": {
54
+ "$ref": "template/inlineTemplate.schema.json"
55
55
  },
56
- "progressTitle" : {
57
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
56
+ "progressTitle": {
57
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
58
58
  },
59
- "showProgress" : {
60
- "type" : "boolean"
59
+ "showProgress": {
60
+ "type": "boolean"
61
61
  }
62
62
  },
63
- "required" : [ "_type", "_uid" ],
64
- "title" : "formActionInlineJavascript",
65
- "type" : "object"
66
- }
63
+ "required": [
64
+ "_type",
65
+ "_uid",
66
+ "root"
67
+ ],
68
+ "title": "formActionInlineJavascript",
69
+ "type": "object",
70
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formActionInlineJavascript.json."
71
+ }
@@ -1,99 +1,110 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/formGroup.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/formGroup.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" : "formGroup"
27
+ "_type": {
28
+ "const": "formGroup"
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
- "buttons" : {
36
- "items" : {
37
- "$ref" : "formButton.schema.json"
35
+ "buttons": {
36
+ "items": {
37
+ "$ref": "formButton.schema.json"
38
38
  },
39
- "type" : "array"
39
+ "type": "array"
40
40
  },
41
- "cssClass" : {
42
- "items" : {
43
- "type" : "string"
41
+ "cssClass": {
42
+ "items": {
43
+ "type": "string"
44
44
  },
45
- "type" : "array"
45
+ "type": "array"
46
46
  },
47
- "description" : {
48
- "$ref" : "template/inlineTemplate.schema.json"
47
+ "description": {
48
+ "$ref": "template/inlineTemplate.schema.json"
49
49
  },
50
- "formFields" : {
51
- "items" : {
52
- "$ref" : "formfield.schema.json"
50
+ "formFields": {
51
+ "items": {
52
+ "$ref": "formfield.schema.json"
53
53
  },
54
- "type" : "array"
54
+ "type": "array"
55
55
  },
56
- "groups" : {
57
- "items" : {
58
- "$ref" : "formGroup.schema.json"
56
+ "groups": {
57
+ "items": {
58
+ "$ref": "formGroup.schema.json"
59
59
  },
60
- "type" : "array"
60
+ "type": "array"
61
61
  },
62
- "hide" : {
63
- "type" : "boolean"
62
+ "hide": {
63
+ "type": "boolean"
64
64
  },
65
- "inactive" : {
66
- "type" : "boolean"
65
+ "inactive": {
66
+ "type": "boolean"
67
67
  },
68
- "instruction" : {
69
- "$ref" : "template/inlineTemplate.schema.json"
68
+ "instruction": {
69
+ "$ref": "template/inlineTemplate.schema.json"
70
70
  },
71
- "interfaceStudioProduct" : {
72
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
71
+ "interfaceStudioProduct": {
72
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
73
73
  },
74
- "metaCaseToOtap" : {
75
- "type" : "boolean"
74
+ "metaCaseToOtap": {
75
+ "type": "boolean"
76
76
  },
77
- "name" : {
78
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
77
+ "name": {
78
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
79
79
  },
80
- "offset" : {
81
- "type" : "integer"
80
+ "offset": {
81
+ "type": "integer"
82
82
  },
83
- "ourProductId" : {
84
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
83
+ "ourProductId": {
84
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
85
85
  },
86
- "tooltip" : {
87
- "$ref" : "template/inlineTemplate.schema.json"
86
+ "tooltip": {
87
+ "$ref": "template/inlineTemplate.schema.json"
88
88
  },
89
- "type" : {
90
- "type" : "string"
89
+ "type": {
90
+ "type": "string"
91
91
  },
92
- "width" : {
93
- "type" : "integer"
92
+ "width": {
93
+ "type": "integer"
94
94
  }
95
95
  },
96
- "required" : [ "_type", "_uid" ],
97
- "title" : "formGroup",
98
- "type" : "object"
99
- }
96
+ "required": [
97
+ "_type",
98
+ "_uid"
99
+ ],
100
+ "title": "formGroup",
101
+ "type": "object",
102
+ "allOf": [
103
+ {
104
+ "properties": {
105
+ "devParentCase": false
106
+ }
107
+ }
108
+ ],
109
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formGroup.json."
110
+ }
@@ -75,8 +75,9 @@
75
75
  "required": [
76
76
  "_type",
77
77
  "_uid",
78
- "description",
79
78
  "condition",
79
+ "form",
80
+ "name",
80
81
  "roleName",
81
82
  "type"
82
83
  ],
@@ -304,6 +304,21 @@
304
304
  "addActivity": false
305
305
  }
306
306
  },
307
+ {
308
+ "properties": {
309
+ "attributeInfo": false
310
+ }
311
+ },
312
+ {
313
+ "properties": {
314
+ "dateProfile": false
315
+ }
316
+ },
317
+ {
318
+ "properties": {
319
+ "devParentCase": false
320
+ }
321
+ },
307
322
  {
308
323
  "properties": {
309
324
  "logic": false
@@ -333,6 +348,40 @@
333
348
  "properties": {
334
349
  "textRows": false
335
350
  }
351
+ },
352
+ {
353
+ "if": {
354
+ "properties": {
355
+ "type": {
356
+ "const": "singlecurrencymoney"
357
+ }
358
+ },
359
+ "required": [
360
+ "type"
361
+ ]
362
+ },
363
+ "then": {
364
+ "required": [
365
+ "currency"
366
+ ]
367
+ }
368
+ },
369
+ {
370
+ "if": {
371
+ "properties": {
372
+ "multivalue": {
373
+ "const": "true"
374
+ }
375
+ },
376
+ "required": [
377
+ "multivalue"
378
+ ]
379
+ },
380
+ "then": {
381
+ "required": [
382
+ "multivalueType"
383
+ ]
384
+ }
336
385
  }
337
386
  ],
338
387
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formfield.json."
@@ -1,80 +1,99 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/gridActivity.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/gridActivity.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" : "gridActivity"
27
+ "_type": {
28
+ "const": "gridActivity"
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
- "activity" : {
36
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
35
+ "activity": {
36
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
37
37
  },
38
- "breaker" : {
39
- "type" : "boolean"
38
+ "breaker": {
39
+ "type": "boolean"
40
40
  },
41
- "checkRights" : {
42
- "enum" : [ "checkOnce", "inlineAll" ],
43
- "type" : "string"
41
+ "checkRights": {
42
+ "enum": [
43
+ "checkOnce",
44
+ "inlineAll"
45
+ ],
46
+ "type": "string"
44
47
  },
45
- "description" : {
46
- "$ref" : "template/inlineTemplate.schema.json"
48
+ "description": {
49
+ "$ref": "template/inlineTemplate.schema.json"
47
50
  },
48
- "icon" : {
49
- "type" : "string"
51
+ "icon": {
52
+ "type": "string"
50
53
  },
51
- "inactive" : {
52
- "type" : "boolean"
54
+ "inactive": {
55
+ "type": "boolean"
53
56
  },
54
- "interfaceStudioProduct" : {
55
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
57
+ "interfaceStudioProduct": {
58
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
56
59
  },
57
- "metaCaseToOtap" : {
58
- "type" : "boolean"
60
+ "metaCaseToOtap": {
61
+ "type": "boolean"
59
62
  },
60
- "ourProductId" : {
61
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
63
+ "ourProductId": {
64
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
62
65
  },
63
- "title" : {
64
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
66
+ "title": {
67
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
65
68
  },
66
- "type" : {
67
- "enum" : [ "single", "multi", "multiForm", "standalone", "quickStandalone", "quickSingle", "singleInline", "quickInline", "inlineAdd", "inlineEdit" ],
68
- "type" : "string"
69
+ "type": {
70
+ "enum": [
71
+ "single",
72
+ "multi",
73
+ "multiForm",
74
+ "standalone",
75
+ "quickStandalone",
76
+ "quickSingle",
77
+ "singleInline",
78
+ "quickInline",
79
+ "inlineAdd",
80
+ "inlineEdit"
81
+ ],
82
+ "type": "string"
69
83
  },
70
- "useActivityTitle" : {
71
- "type" : "boolean"
84
+ "useActivityTitle": {
85
+ "type": "boolean"
72
86
  },
73
- "whenDoneRefreshType" : {
74
- "type" : "string"
87
+ "whenDoneRefreshType": {
88
+ "type": "string"
75
89
  }
76
90
  },
77
- "required" : [ "_type", "_uid" ],
78
- "title" : "gridActivity",
79
- "type" : "object"
80
- }
91
+ "required": [
92
+ "_type",
93
+ "_uid",
94
+ "widget"
95
+ ],
96
+ "title": "gridActivity",
97
+ "type": "object",
98
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/gridActivity.json."
99
+ }