@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,75 +1,80 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/fileUploadProfile.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/fileUploadProfile.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" : "fileUploadProfile"
27
+ "_type": {
28
+ "const": "fileUploadProfile"
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
- "allowedExtensions" : {
36
- "items" : {
37
- "type" : "string"
35
+ "allowedExtensions": {
36
+ "items": {
37
+ "type": "string"
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
- "disallowedExtensions" : {
45
- "items" : {
46
- "type" : "string"
44
+ "disallowedExtensions": {
45
+ "items": {
46
+ "type": "string"
47
47
  },
48
- "type" : "array"
48
+ "type": "array"
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
- "maxFileSize" : {
57
- "type" : "integer"
56
+ "maxFileSize": {
57
+ "type": "integer"
58
58
  },
59
- "metaCaseToOtap" : {
60
- "type" : "boolean"
59
+ "metaCaseToOtap": {
60
+ "type": "boolean"
61
61
  },
62
- "minFileSize" : {
63
- "type" : "integer"
62
+ "minFileSize": {
63
+ "type": "integer"
64
64
  },
65
- "name" : {
66
- "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
65
+ "name": {
66
+ "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
67
67
  },
68
- "ourProductId" : {
69
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
68
+ "ourProductId": {
69
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
70
70
  }
71
71
  },
72
- "required" : [ "_type", "_uid" ],
73
- "title" : "fileUploadProfile",
74
- "type" : "object"
75
- }
72
+ "required": [
73
+ "_type",
74
+ "_uid",
75
+ "name"
76
+ ],
77
+ "title": "fileUploadProfile",
78
+ "type": "object",
79
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/fileUploadProfile.json."
80
+ }
@@ -90,6 +90,38 @@
90
90
  "multivalueTemplate": false
91
91
  }
92
92
  },
93
+ {
94
+ "if": {
95
+ "anyOf": [
96
+ {
97
+ "properties": {
98
+ "showProgress": {
99
+ "const": "true"
100
+ }
101
+ },
102
+ "required": [
103
+ "showProgress"
104
+ ]
105
+ },
106
+ {
107
+ "properties": {
108
+ "showProgress": {
109
+ "const": "true"
110
+ }
111
+ },
112
+ "required": [
113
+ "showProgress"
114
+ ]
115
+ }
116
+ ]
117
+ },
118
+ "then": {},
119
+ "else": {
120
+ "properties": {
121
+ "progressTemplate": false
122
+ }
123
+ }
124
+ },
93
125
  {
94
126
  "if": {
95
127
  "anyOf": [
@@ -135,6 +167,7 @@
135
167
  },
136
168
  "then": {
137
169
  "required": [
170
+ "progressTemplate",
138
171
  "progressTitle"
139
172
  ]
140
173
  }
@@ -75,7 +75,6 @@
75
75
  "required": [
76
76
  "_type",
77
77
  "_uid",
78
- "description",
79
78
  "condition",
80
79
  "roleName",
81
80
  "type"
@@ -304,6 +304,16 @@
304
304
  "addActivity": false
305
305
  }
306
306
  },
307
+ {
308
+ "properties": {
309
+ "attributeInfo": false
310
+ }
311
+ },
312
+ {
313
+ "properties": {
314
+ "dateProfile": false
315
+ }
316
+ },
307
317
  {
308
318
  "properties": {
309
319
  "logic": false
@@ -333,6 +343,40 @@
333
343
  "properties": {
334
344
  "textRows": false
335
345
  }
346
+ },
347
+ {
348
+ "if": {
349
+ "properties": {
350
+ "type": {
351
+ "const": "singlecurrencymoney"
352
+ }
353
+ },
354
+ "required": [
355
+ "type"
356
+ ]
357
+ },
358
+ "then": {
359
+ "required": [
360
+ "currency"
361
+ ]
362
+ }
363
+ },
364
+ {
365
+ "if": {
366
+ "properties": {
367
+ "multivalue": {
368
+ "const": "true"
369
+ }
370
+ },
371
+ "required": [
372
+ "multivalue"
373
+ ]
374
+ },
375
+ "then": {
376
+ "required": [
377
+ "multivalueType"
378
+ ]
379
+ }
336
380
  }
337
381
  ],
338
382
  "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/formfield.json."
@@ -1,78 +1,94 @@
1
1
  {
2
- "$id" : "https://grexx.net/studio-next/schemas/ifthenelse.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/ifthenelse.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" : "ifthenelse"
27
+ "_type": {
28
+ "const": "ifthenelse"
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
- "else" : {
39
- "items" : {
40
- "$ref" : "abstractRule.schema.json"
38
+ "else": {
39
+ "items": {
40
+ "$ref": "abstractRule.schema.json"
41
41
  },
42
- "type" : "array"
42
+ "type": "array"
43
43
  },
44
- "if" : {
45
- "$ref" : "abstractCondition.schema.json"
44
+ "if": {
45
+ "$ref": "abstractCondition.schema.json"
46
46
  },
47
- "inactive" : {
48
- "type" : "boolean"
47
+ "inactive": {
48
+ "type": "boolean"
49
49
  },
50
- "interfaceStudioProduct" : {
51
- "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
50
+ "interfaceStudioProduct": {
51
+ "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
52
52
  },
53
- "metaCaseToOtap" : {
54
- "type" : "boolean"
53
+ "metaCaseToOtap": {
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
- "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
- "then" : {
69
- "items" : {
70
- "$ref" : "abstractRule.schema.json"
68
+ "then": {
69
+ "items": {
70
+ "$ref": "abstractRule.schema.json"
71
71
  },
72
- "type" : "array"
72
+ "type": "array"
73
73
  }
74
74
  },
75
- "required" : [ "_type", "_uid" ],
76
- "title" : "ifthenelse",
77
- "type" : "object"
78
- }
75
+ "required": [
76
+ "_type",
77
+ "_uid"
78
+ ],
79
+ "title": "ifthenelse",
80
+ "type": "object",
81
+ "allOf": [
82
+ {
83
+ "properties": {
84
+ "hasValidConfiguration": false
85
+ }
86
+ },
87
+ {
88
+ "properties": {
89
+ "wasEverFullyConfigured": false
90
+ }
91
+ }
92
+ ],
93
+ "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/ifthenelse.json."
94
+ }
@@ -1,68 +1,63 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/jobStep.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/jobStep.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": "jobStep"
27
+ "_type" : {
28
+ "const" : "jobStep"
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
- "description": {
39
- "$ref": "template/inlineTemplate.schema.json"
38
+ "description" : {
39
+ "$ref" : "template/inlineTemplate.schema.json"
40
40
  },
41
- "executeCasetype": {
42
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
41
+ "executeCasetype" : {
42
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
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
- "name": {
54
- "$ref": "common.schema.json#/$defs/multilanguageStringStructure"
53
+ "name" : {
54
+ "$ref" : "common.schema.json#/$defs/multilanguageStringStructure"
55
55
  },
56
- "ourProductId": {
57
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
56
+ "ourProductId" : {
57
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
58
58
  }
59
59
  },
60
- "required": [
61
- "_type",
62
- "_uid",
63
- "activity"
64
- ],
65
- "title": "jobStep",
66
- "type": "object",
67
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/jobStep.json."
68
- }
60
+ "required" : [ "_type", "_uid" ],
61
+ "title" : "jobStep",
62
+ "type" : "object"
63
+ }