@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
@@ -1,77 +1,65 @@
1
1
  {
2
- "$id": "https://grexx.net/studio-next/schemas/webhook.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/webhook.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": "webhook"
27
+ "_type" : {
28
+ "const" : "webhook"
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
- "dataType": {
36
- "enum": [
37
- "ANALYTICS_JSON"
38
- ],
39
- "type": "string"
35
+ "dataType" : {
36
+ "enum" : [ "ANALYTICS_JSON" ],
37
+ "type" : "string"
40
38
  },
41
- "description": {
42
- "$ref": "template/inlineTemplate.schema.json"
39
+ "description" : {
40
+ "$ref" : "template/inlineTemplate.schema.json"
43
41
  },
44
- "event": {
45
- "enum": [
46
- "user_postform",
47
- "casedata_change",
48
- "case_finish"
49
- ],
50
- "type": "string"
42
+ "event" : {
43
+ "enum" : [ "user_postform", "casedata_change", "case_finish" ],
44
+ "type" : "string"
51
45
  },
52
- "inactive": {
53
- "type": "boolean"
46
+ "inactive" : {
47
+ "type" : "boolean"
54
48
  },
55
- "interfaceStudioProduct": {
56
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
49
+ "interfaceStudioProduct" : {
50
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
57
51
  },
58
- "metaCaseToOtap": {
59
- "type": "boolean"
52
+ "metaCaseToOtap" : {
53
+ "type" : "boolean"
60
54
  },
61
- "ourProductId": {
62
- "$ref": "common.schema.json#/$defs/caseIdOrFileReference"
55
+ "ourProductId" : {
56
+ "$ref" : "common.schema.json#/$defs/caseIdOrFileReference"
63
57
  },
64
- "url": {
65
- "$ref": "template/inlineTemplate.schema.json"
58
+ "url" : {
59
+ "$ref" : "template/inlineTemplate.schema.json"
66
60
  }
67
61
  },
68
- "required": [
69
- "_type",
70
- "_uid",
71
- "event",
72
- "url"
73
- ],
74
- "title": "webhook",
75
- "type": "object",
76
- "$comment": "Conditionals generated by packages/schemas/scripts/extend.mjs from rules/webhook.json."
77
- }
62
+ "required" : [ "_type", "_uid" ],
63
+ "title" : "webhook",
64
+ "type" : "object"
65
+ }
@@ -76,6 +76,38 @@
76
76
  "title": "while",
77
77
  "type": "object",
78
78
  "allOf": [
79
+ {
80
+ "if": {
81
+ "anyOf": [
82
+ {
83
+ "properties": {
84
+ "showProgress": {
85
+ "const": "true"
86
+ }
87
+ },
88
+ "required": [
89
+ "showProgress"
90
+ ]
91
+ },
92
+ {
93
+ "properties": {
94
+ "showProgress": {
95
+ "const": "true"
96
+ }
97
+ },
98
+ "required": [
99
+ "showProgress"
100
+ ]
101
+ }
102
+ ]
103
+ },
104
+ "then": {},
105
+ "else": {
106
+ "properties": {
107
+ "progressTemplate": false
108
+ }
109
+ }
110
+ },
79
111
  {
80
112
  "if": {
81
113
  "anyOf": [
@@ -121,6 +153,7 @@
121
153
  },
122
154
  "then": {
123
155
  "required": [
156
+ "progressTemplate",
124
157
  "progressTitle"
125
158
  ]
126
159
  }
@@ -994,8 +994,35 @@
994
994
  }
995
995
  },
996
996
  {
997
- "properties": {
998
- "platformWidget": false
997
+ "if": {
998
+ "anyOf": [
999
+ {
1000
+ "properties": {
1001
+ "isLinkedToPlatformWidget": {
1002
+ "const": "true"
1003
+ }
1004
+ },
1005
+ "required": [
1006
+ "isLinkedToPlatformWidget"
1007
+ ]
1008
+ },
1009
+ {
1010
+ "properties": {
1011
+ "isLinkedToPlatformWidget": {
1012
+ "const": "true"
1013
+ }
1014
+ },
1015
+ "required": [
1016
+ "isLinkedToPlatformWidget"
1017
+ ]
1018
+ }
1019
+ ]
1020
+ },
1021
+ "then": {},
1022
+ "else": {
1023
+ "properties": {
1024
+ "platformWidget": false
1025
+ }
999
1026
  }
1000
1027
  },
1001
1028
  {
@@ -1016,6 +1043,126 @@
1016
1043
  }
1017
1044
  }
1018
1045
  },
1046
+ {
1047
+ "if": {
1048
+ "anyOf": [
1049
+ {
1050
+ "allOf": [
1051
+ {
1052
+ "anyOf": [
1053
+ {
1054
+ "properties": {
1055
+ "widgetType": {
1056
+ "const": "formSearch"
1057
+ }
1058
+ },
1059
+ "required": [
1060
+ "widgetType"
1061
+ ]
1062
+ },
1063
+ {
1064
+ "properties": {
1065
+ "widgetType": {
1066
+ "const": "simpleSearch"
1067
+ }
1068
+ },
1069
+ "required": [
1070
+ "widgetType"
1071
+ ]
1072
+ }
1073
+ ]
1074
+ },
1075
+ {
1076
+ "properties": {
1077
+ "widgetType": {
1078
+ "const": "simpleSearch"
1079
+ }
1080
+ },
1081
+ "required": [
1082
+ "widgetType"
1083
+ ]
1084
+ }
1085
+ ]
1086
+ },
1087
+ {
1088
+ "properties": {
1089
+ "widgetType": {
1090
+ "const": "simpleSearch"
1091
+ }
1092
+ },
1093
+ "required": [
1094
+ "widgetType"
1095
+ ]
1096
+ }
1097
+ ]
1098
+ },
1099
+ "then": {},
1100
+ "else": {
1101
+ "properties": {
1102
+ "templateSearchBox": false
1103
+ }
1104
+ }
1105
+ },
1106
+ {
1107
+ "if": {
1108
+ "anyOf": [
1109
+ {
1110
+ "allOf": [
1111
+ {
1112
+ "anyOf": [
1113
+ {
1114
+ "properties": {
1115
+ "widgetType": {
1116
+ "const": "formSearch"
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "widgetType"
1121
+ ]
1122
+ },
1123
+ {
1124
+ "properties": {
1125
+ "widgetType": {
1126
+ "const": "simpleSearch"
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "widgetType"
1131
+ ]
1132
+ }
1133
+ ]
1134
+ },
1135
+ {
1136
+ "properties": {
1137
+ "widgetType": {
1138
+ "const": "simpleSearch"
1139
+ }
1140
+ },
1141
+ "required": [
1142
+ "widgetType"
1143
+ ]
1144
+ }
1145
+ ]
1146
+ },
1147
+ {
1148
+ "properties": {
1149
+ "widgetType": {
1150
+ "const": "simpleSearch"
1151
+ }
1152
+ },
1153
+ "required": [
1154
+ "widgetType"
1155
+ ]
1156
+ }
1157
+ ]
1158
+ },
1159
+ "then": {},
1160
+ "else": {
1161
+ "properties": {
1162
+ "templateSearchRow": false
1163
+ }
1164
+ }
1165
+ },
1019
1166
  {
1020
1167
  "if": {
1021
1168
  "properties": {
@@ -1256,6 +1403,37 @@
1256
1403
  ]
1257
1404
  }
1258
1405
  },
1406
+ {
1407
+ "if": {
1408
+ "allOf": [
1409
+ {
1410
+ "properties": {
1411
+ "widgetAgentCustomActivities": {
1412
+ "const": "true"
1413
+ }
1414
+ },
1415
+ "required": [
1416
+ "widgetAgentCustomActivities"
1417
+ ]
1418
+ },
1419
+ {
1420
+ "properties": {
1421
+ "widgetType": {
1422
+ "const": "AIConversationWidget"
1423
+ }
1424
+ },
1425
+ "required": [
1426
+ "widgetType"
1427
+ ]
1428
+ }
1429
+ ]
1430
+ },
1431
+ "then": {
1432
+ "required": [
1433
+ "widgetAgentActivityFilterType"
1434
+ ]
1435
+ }
1436
+ },
1259
1437
  {
1260
1438
  "if": {
1261
1439
  "properties": {
@@ -1360,6 +1538,23 @@
1360
1538
  ]
1361
1539
  }
1362
1540
  },
1541
+ {
1542
+ "if": {
1543
+ "properties": {
1544
+ "isLinkedToPlatformWidget": {
1545
+ "const": "true"
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "isLinkedToPlatformWidget"
1550
+ ]
1551
+ },
1552
+ "then": {
1553
+ "required": [
1554
+ "platformWidget"
1555
+ ]
1556
+ }
1557
+ },
1363
1558
  {
1364
1559
  "if": {
1365
1560
  "properties": {
@@ -75,9 +75,9 @@
75
75
  "required": [
76
76
  "_type",
77
77
  "_uid",
78
- "description",
79
78
  "roleName",
80
- "type"
79
+ "type",
80
+ "widget"
81
81
  ],
82
82
  "title": "widgetRight",
83
83
  "type": "object",