@objectstack/spec 0.1.1 → 0.1.2
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.
- package/README.md +73 -1
- package/dist/api/contract.zod.d.ts +1733 -0
- package/dist/api/contract.zod.d.ts.map +1 -0
- package/dist/api/contract.zod.js +138 -0
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +1648 -10
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +149 -8
- package/dist/data/mapping.zod.d.ts +215 -2
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +505 -25
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +32 -5
- package/dist/data/query.zod.d.ts +349 -0
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +77 -1
- package/dist/data/trigger.zod.d.ts +354 -0
- package/dist/data/trigger.zod.d.ts.map +1 -0
- package/dist/data/trigger.zod.js +195 -0
- package/dist/data/validation.zod.d.ts +83 -43
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +51 -5
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/system/api.zod.d.ts +130 -4
- package/dist/system/api.zod.d.ts.map +1 -1
- package/dist/system/api.zod.js +4 -1
- package/dist/system/datasource.zod.d.ts +89 -6
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +33 -5
- package/dist/system/discovery.zod.d.ts +174 -0
- package/dist/system/discovery.zod.d.ts.map +1 -0
- package/dist/system/discovery.zod.js +53 -0
- package/dist/system/driver.zod.d.ts +1525 -0
- package/dist/system/driver.zod.d.ts.map +1 -0
- package/dist/system/driver.zod.js +290 -0
- package/dist/system/license.zod.d.ts +2 -2
- package/dist/system/manifest.zod.d.ts +323 -52
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +91 -17
- package/dist/system/plugin.zod.d.ts +3516 -0
- package/dist/system/plugin.zod.d.ts.map +1 -0
- package/dist/system/plugin.zod.js +226 -0
- package/dist/system/territory.zod.d.ts +1 -1
- package/dist/system/webhook.zod.d.ts +3 -3
- package/dist/ui/action.zod.d.ts +19 -12
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/action.zod.js +7 -1
- package/dist/ui/app.zod.d.ts +109 -3
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +13 -2
- package/dist/ui/dashboard.zod.d.ts +9 -3
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +7 -1
- package/dist/ui/page.zod.d.ts +6 -6
- package/dist/ui/report.zod.d.ts +9 -0
- package/dist/ui/report.zod.d.ts.map +1 -1
- package/dist/ui/report.zod.js +7 -1
- package/dist/ui/theme.zod.d.ts +1221 -0
- package/dist/ui/theme.zod.d.ts.map +1 -0
- package/dist/ui/theme.zod.js +202 -0
- package/dist/ui/widget.zod.d.ts +350 -0
- package/dist/ui/widget.zod.d.ts.map +1 -0
- package/dist/ui/widget.zod.js +66 -0
- package/json-schema/Action.json +8 -2
- package/json-schema/ActionParam.json +8 -2
- package/json-schema/Address.json +40 -0
- package/json-schema/AggregationFunction.json +19 -0
- package/json-schema/AggregationNode.json +42 -0
- package/json-schema/Animation.json +56 -0
- package/json-schema/ApiCapabilities.json +28 -0
- package/json-schema/ApiError.json +27 -0
- package/json-schema/ApiRoutes.json +41 -0
- package/json-schema/App.json +13 -2
- package/json-schema/AsyncValidation.json +70 -0
- package/json-schema/BaseResponse.json +63 -0
- package/json-schema/BorderRadius.json +44 -0
- package/json-schema/Breakpoints.json +36 -0
- package/json-schema/BulkRequest.json +29 -0
- package/json-schema/BulkResponse.json +108 -0
- package/json-schema/ColorPalette.json +83 -0
- package/json-schema/ConditionalValidation.json +793 -0
- package/json-schema/CreateRequest.json +20 -0
- package/json-schema/CrossFieldValidation.json +56 -0
- package/json-schema/CustomValidator.json +57 -0
- package/json-schema/Datasource.json +0 -18
- package/json-schema/DeleteResponse.json +68 -0
- package/json-schema/Discovery.json +114 -0
- package/json-schema/DriverCapabilities.json +39 -0
- package/json-schema/DriverDefinition.json +66 -0
- package/json-schema/DriverInterface.json +58 -0
- package/json-schema/DriverOptions.json +23 -0
- package/json-schema/DriverType.json +1 -18
- package/json-schema/ExportRequest.json +786 -0
- package/json-schema/Field.json +75 -4
- package/json-schema/FieldType.json +8 -2
- package/json-schema/FieldWidgetProps.json +327 -0
- package/json-schema/I18nContext.json +12 -0
- package/json-schema/JoinNode.json +455 -0
- package/json-schema/JoinType.json +15 -0
- package/json-schema/ListRecordResponse.json +103 -0
- package/json-schema/LocationCoordinates.json +36 -0
- package/json-schema/Logger.json +25 -0
- package/json-schema/Manifest.json +243 -18
- package/json-schema/Mapping.json +328 -0
- package/json-schema/ModificationResult.json +46 -0
- package/json-schema/Object.json +103 -6
- package/json-schema/ObjectCapabilities.json +26 -0
- package/json-schema/ObjectQLClient.json +12 -0
- package/json-schema/Plugin.json +20 -0
- package/json-schema/PluginContext.json +91 -0
- package/json-schema/PluginLifecycle.json +11 -0
- package/json-schema/Query.json +328 -0
- package/json-schema/RecordData.json +11 -0
- package/json-schema/Router.json +12 -0
- package/json-schema/Scheduler.json +12 -0
- package/json-schema/ScopedStorage.json +12 -0
- package/json-schema/Shadow.json +44 -0
- package/json-schema/SingleRecordResponse.json +69 -0
- package/json-schema/Spacing.json +64 -0
- package/json-schema/SystemAPI.json +12 -0
- package/json-schema/Theme.json +543 -0
- package/json-schema/ThemeMode.json +14 -0
- package/json-schema/Trigger.json +73 -0
- package/json-schema/TriggerAction.json +14 -0
- package/json-schema/TriggerContext.json +61 -0
- package/json-schema/TriggerTiming.json +13 -0
- package/json-schema/Typography.json +142 -0
- package/json-schema/UpdateRequest.json +20 -0
- package/json-schema/ValidationRule.json +583 -0
- package/json-schema/WindowFunction.json +24 -0
- package/json-schema/WindowFunctionNode.json +104 -0
- package/json-schema/WindowSpec.json +65 -0
- package/json-schema/ZIndex.json +44 -0
- package/package.json +8 -3
package/json-schema/Object.json
CHANGED
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"datasource": {
|
|
29
29
|
"type": "string",
|
|
30
30
|
"default": "default",
|
|
31
|
-
"description": "Datasource
|
|
31
|
+
"description": "Target Datasource ID (e.g. \"postgres\", \"salesforce\"). references sys_datasource."
|
|
32
32
|
},
|
|
33
33
|
"tableName": {
|
|
34
34
|
"type": "string",
|
|
35
|
-
"description": "Physical
|
|
35
|
+
"description": "Physical table/collection name in the target datasource"
|
|
36
36
|
},
|
|
37
37
|
"isSystem": {
|
|
38
38
|
"type": "boolean",
|
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
"password",
|
|
65
65
|
"markdown",
|
|
66
66
|
"html",
|
|
67
|
+
"richtext",
|
|
67
68
|
"number",
|
|
68
69
|
"currency",
|
|
69
70
|
"percent",
|
|
@@ -72,7 +73,6 @@
|
|
|
72
73
|
"time",
|
|
73
74
|
"boolean",
|
|
74
75
|
"select",
|
|
75
|
-
"multiselect",
|
|
76
76
|
"lookup",
|
|
77
77
|
"master_detail",
|
|
78
78
|
"image",
|
|
@@ -80,7 +80,13 @@
|
|
|
80
80
|
"avatar",
|
|
81
81
|
"formula",
|
|
82
82
|
"summary",
|
|
83
|
-
"autonumber"
|
|
83
|
+
"autonumber",
|
|
84
|
+
"location",
|
|
85
|
+
"address",
|
|
86
|
+
"code",
|
|
87
|
+
"color",
|
|
88
|
+
"rating",
|
|
89
|
+
"signature"
|
|
84
90
|
],
|
|
85
91
|
"description": "Field Data Type"
|
|
86
92
|
},
|
|
@@ -88,11 +94,20 @@
|
|
|
88
94
|
"type": "string",
|
|
89
95
|
"description": "Tooltip/Help text"
|
|
90
96
|
},
|
|
97
|
+
"format": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Format string (e.g. email, phone)"
|
|
100
|
+
},
|
|
91
101
|
"required": {
|
|
92
102
|
"type": "boolean",
|
|
93
103
|
"default": false,
|
|
94
104
|
"description": "Is required"
|
|
95
105
|
},
|
|
106
|
+
"searchable": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": false,
|
|
109
|
+
"description": "Is searchable"
|
|
110
|
+
},
|
|
96
111
|
"multiple": {
|
|
97
112
|
"type": "boolean",
|
|
98
113
|
"default": false,
|
|
@@ -221,6 +236,64 @@
|
|
|
221
236
|
"additionalProperties": false,
|
|
222
237
|
"description": "Roll-up summary definition"
|
|
223
238
|
},
|
|
239
|
+
"language": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Programming language for syntax highlighting (e.g., javascript, python, sql)"
|
|
242
|
+
},
|
|
243
|
+
"theme": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"description": "Code editor theme (e.g., dark, light, monokai)"
|
|
246
|
+
},
|
|
247
|
+
"lineNumbers": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"description": "Show line numbers in code editor"
|
|
250
|
+
},
|
|
251
|
+
"maxRating": {
|
|
252
|
+
"type": "number",
|
|
253
|
+
"description": "Maximum rating value (default: 5)"
|
|
254
|
+
},
|
|
255
|
+
"allowHalf": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"description": "Allow half-star ratings"
|
|
258
|
+
},
|
|
259
|
+
"displayMap": {
|
|
260
|
+
"type": "boolean",
|
|
261
|
+
"description": "Display map widget for location field"
|
|
262
|
+
},
|
|
263
|
+
"allowGeocoding": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"description": "Allow address-to-coordinate conversion"
|
|
266
|
+
},
|
|
267
|
+
"addressFormat": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"enum": [
|
|
270
|
+
"us",
|
|
271
|
+
"uk",
|
|
272
|
+
"international"
|
|
273
|
+
],
|
|
274
|
+
"description": "Address format template"
|
|
275
|
+
},
|
|
276
|
+
"colorFormat": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"enum": [
|
|
279
|
+
"hex",
|
|
280
|
+
"rgb",
|
|
281
|
+
"rgba",
|
|
282
|
+
"hsl"
|
|
283
|
+
],
|
|
284
|
+
"description": "Color value format"
|
|
285
|
+
},
|
|
286
|
+
"allowAlpha": {
|
|
287
|
+
"type": "boolean",
|
|
288
|
+
"description": "Allow transparency/alpha channel"
|
|
289
|
+
},
|
|
290
|
+
"presetColors": {
|
|
291
|
+
"type": "array",
|
|
292
|
+
"items": {
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
"description": "Preset color options"
|
|
296
|
+
},
|
|
224
297
|
"hidden": {
|
|
225
298
|
"type": "boolean",
|
|
226
299
|
"default": false,
|
|
@@ -248,8 +321,6 @@
|
|
|
248
321
|
}
|
|
249
322
|
},
|
|
250
323
|
"required": [
|
|
251
|
-
"name",
|
|
252
|
-
"label",
|
|
253
324
|
"type"
|
|
254
325
|
],
|
|
255
326
|
"additionalProperties": false
|
|
@@ -303,6 +374,32 @@
|
|
|
303
374
|
"type": "boolean",
|
|
304
375
|
"default": true
|
|
305
376
|
},
|
|
377
|
+
"apiMethods": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"items": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"enum": [
|
|
382
|
+
"get",
|
|
383
|
+
"list",
|
|
384
|
+
"create",
|
|
385
|
+
"update",
|
|
386
|
+
"delete",
|
|
387
|
+
"upsert",
|
|
388
|
+
"bulkCreate",
|
|
389
|
+
"bulkUpdate",
|
|
390
|
+
"bulkDelete",
|
|
391
|
+
"bulkUpsert",
|
|
392
|
+
"aggregate",
|
|
393
|
+
"history",
|
|
394
|
+
"search",
|
|
395
|
+
"restore",
|
|
396
|
+
"purge",
|
|
397
|
+
"import",
|
|
398
|
+
"export"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"description": "Allowed API operations"
|
|
402
|
+
},
|
|
306
403
|
"files": {
|
|
307
404
|
"type": "boolean",
|
|
308
405
|
"default": false
|
|
@@ -16,6 +16,32 @@
|
|
|
16
16
|
"type": "boolean",
|
|
17
17
|
"default": true
|
|
18
18
|
},
|
|
19
|
+
"apiMethods": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"get",
|
|
25
|
+
"list",
|
|
26
|
+
"create",
|
|
27
|
+
"update",
|
|
28
|
+
"delete",
|
|
29
|
+
"upsert",
|
|
30
|
+
"bulkCreate",
|
|
31
|
+
"bulkUpdate",
|
|
32
|
+
"bulkDelete",
|
|
33
|
+
"bulkUpsert",
|
|
34
|
+
"aggregate",
|
|
35
|
+
"history",
|
|
36
|
+
"search",
|
|
37
|
+
"restore",
|
|
38
|
+
"purge",
|
|
39
|
+
"import",
|
|
40
|
+
"export"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"description": "Allowed API operations"
|
|
44
|
+
},
|
|
19
45
|
"files": {
|
|
20
46
|
"type": "boolean",
|
|
21
47
|
"default": false
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ObjectQLClient",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ObjectQLClient": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {},
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"description": "ObjectQL Data Access Client"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Plugin",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Plugin": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Plugin identifier"
|
|
10
|
+
},
|
|
11
|
+
"version": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Plugin version"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": false
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
20
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/PluginContext",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"PluginContext": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"ql": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {},
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"description": "ObjectQL Data Access Client"
|
|
12
|
+
},
|
|
13
|
+
"os": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {},
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"description": "Access to System Core"
|
|
18
|
+
},
|
|
19
|
+
"logger": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"debug": {
|
|
23
|
+
"description": "(message: string, ...meta: any[]) => void"
|
|
24
|
+
},
|
|
25
|
+
"info": {
|
|
26
|
+
"description": "(message: string, ...meta: any[]) => void"
|
|
27
|
+
},
|
|
28
|
+
"warn": {
|
|
29
|
+
"description": "(message: string, ...meta: any[]) => void"
|
|
30
|
+
},
|
|
31
|
+
"error": {
|
|
32
|
+
"description": "(message: string, ...meta: any[]) => void"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "Structured Logger"
|
|
37
|
+
},
|
|
38
|
+
"storage": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {},
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"description": "Plugin Scoped Data Storage (KV)"
|
|
43
|
+
},
|
|
44
|
+
"i18n": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {},
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"description": "Internationalization Helper"
|
|
49
|
+
},
|
|
50
|
+
"metadata": {
|
|
51
|
+
"description": "Metadata registry"
|
|
52
|
+
},
|
|
53
|
+
"events": {
|
|
54
|
+
"description": "Event bus"
|
|
55
|
+
},
|
|
56
|
+
"app": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"router": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {},
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"description": "HTTP Router Interface"
|
|
64
|
+
},
|
|
65
|
+
"scheduler": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {},
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"description": "Job Scheduler Interface"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"router"
|
|
74
|
+
],
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"description": "App Runtime Capabilities"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"ql",
|
|
81
|
+
"os",
|
|
82
|
+
"logger",
|
|
83
|
+
"storage",
|
|
84
|
+
"i18n",
|
|
85
|
+
"app"
|
|
86
|
+
],
|
|
87
|
+
"additionalProperties": false
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
91
|
+
}
|
package/json-schema/Query.json
CHANGED
|
@@ -38,6 +38,148 @@
|
|
|
38
38
|
},
|
|
39
39
|
"description": "Fields to retrieve"
|
|
40
40
|
},
|
|
41
|
+
"aggregations": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"function": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"count",
|
|
50
|
+
"sum",
|
|
51
|
+
"avg",
|
|
52
|
+
"min",
|
|
53
|
+
"max",
|
|
54
|
+
"count_distinct",
|
|
55
|
+
"array_agg",
|
|
56
|
+
"string_agg"
|
|
57
|
+
],
|
|
58
|
+
"description": "Aggregation function"
|
|
59
|
+
},
|
|
60
|
+
"field": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "Field to aggregate (optional for COUNT(*))"
|
|
63
|
+
},
|
|
64
|
+
"alias": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Result column alias"
|
|
67
|
+
},
|
|
68
|
+
"distinct": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Apply DISTINCT before aggregation"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"function",
|
|
75
|
+
"alias"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
},
|
|
79
|
+
"description": "Aggregation functions (GROUP BY)"
|
|
80
|
+
},
|
|
81
|
+
"windowFunctions": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"function": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": [
|
|
89
|
+
"row_number",
|
|
90
|
+
"rank",
|
|
91
|
+
"dense_rank",
|
|
92
|
+
"percent_rank",
|
|
93
|
+
"lag",
|
|
94
|
+
"lead",
|
|
95
|
+
"first_value",
|
|
96
|
+
"last_value",
|
|
97
|
+
"sum",
|
|
98
|
+
"avg",
|
|
99
|
+
"count",
|
|
100
|
+
"min",
|
|
101
|
+
"max"
|
|
102
|
+
],
|
|
103
|
+
"description": "Window function name"
|
|
104
|
+
},
|
|
105
|
+
"field": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Field to operate on (for aggregate window functions)"
|
|
108
|
+
},
|
|
109
|
+
"alias": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Result column alias"
|
|
112
|
+
},
|
|
113
|
+
"over": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"partitionBy": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"items": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"description": "PARTITION BY fields"
|
|
122
|
+
},
|
|
123
|
+
"orderBy": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"items": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"field": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"order": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"enum": [
|
|
134
|
+
"asc",
|
|
135
|
+
"desc"
|
|
136
|
+
],
|
|
137
|
+
"default": "asc"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"field"
|
|
142
|
+
],
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
},
|
|
145
|
+
"description": "ORDER BY specification"
|
|
146
|
+
},
|
|
147
|
+
"frame": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"type": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": [
|
|
153
|
+
"rows",
|
|
154
|
+
"range"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"start": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
|
|
160
|
+
},
|
|
161
|
+
"end": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"description": "Window frame specification"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"description": "Window specification (OVER clause)"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": [
|
|
175
|
+
"function",
|
|
176
|
+
"alias",
|
|
177
|
+
"over"
|
|
178
|
+
],
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
},
|
|
181
|
+
"description": "Window functions with OVER clause"
|
|
182
|
+
},
|
|
41
183
|
"filters": {
|
|
42
184
|
"anyOf": [
|
|
43
185
|
{
|
|
@@ -85,6 +227,188 @@
|
|
|
85
227
|
],
|
|
86
228
|
"description": "Filtering criteria"
|
|
87
229
|
},
|
|
230
|
+
"joins": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"properties": {
|
|
235
|
+
"type": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"enum": [
|
|
238
|
+
"inner",
|
|
239
|
+
"left",
|
|
240
|
+
"right",
|
|
241
|
+
"full"
|
|
242
|
+
],
|
|
243
|
+
"description": "Join type"
|
|
244
|
+
},
|
|
245
|
+
"object": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"description": "Object/table to join"
|
|
248
|
+
},
|
|
249
|
+
"alias": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"description": "Table alias"
|
|
252
|
+
},
|
|
253
|
+
"on": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"type": "array",
|
|
257
|
+
"minItems": 3,
|
|
258
|
+
"maxItems": 3,
|
|
259
|
+
"items": [
|
|
260
|
+
{
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "string",
|
|
265
|
+
"enum": [
|
|
266
|
+
"=",
|
|
267
|
+
"!=",
|
|
268
|
+
"<>",
|
|
269
|
+
">",
|
|
270
|
+
">=",
|
|
271
|
+
"<",
|
|
272
|
+
"<=",
|
|
273
|
+
"startswith",
|
|
274
|
+
"contains",
|
|
275
|
+
"notcontains",
|
|
276
|
+
"between",
|
|
277
|
+
"in",
|
|
278
|
+
"notin",
|
|
279
|
+
"is_null",
|
|
280
|
+
"is_not_null"
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"type": "array",
|
|
288
|
+
"items": {
|
|
289
|
+
"anyOf": [
|
|
290
|
+
{
|
|
291
|
+
"type": "string"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"anyOf": [
|
|
295
|
+
{
|
|
296
|
+
"type": "array",
|
|
297
|
+
"minItems": 3,
|
|
298
|
+
"maxItems": 3,
|
|
299
|
+
"items": [
|
|
300
|
+
{
|
|
301
|
+
"type": "string"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "string",
|
|
305
|
+
"enum": [
|
|
306
|
+
"=",
|
|
307
|
+
"!=",
|
|
308
|
+
"<>",
|
|
309
|
+
">",
|
|
310
|
+
">=",
|
|
311
|
+
"<",
|
|
312
|
+
"<=",
|
|
313
|
+
"startswith",
|
|
314
|
+
"contains",
|
|
315
|
+
"notcontains",
|
|
316
|
+
"between",
|
|
317
|
+
"in",
|
|
318
|
+
"notin",
|
|
319
|
+
"is_null",
|
|
320
|
+
"is_not_null"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "array",
|
|
328
|
+
"items": {
|
|
329
|
+
"anyOf": [
|
|
330
|
+
{
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
{}
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"description": "Join condition"
|
|
344
|
+
},
|
|
345
|
+
"subquery": {
|
|
346
|
+
"description": "Subquery instead of object"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"type",
|
|
351
|
+
"object",
|
|
352
|
+
"on"
|
|
353
|
+
],
|
|
354
|
+
"additionalProperties": false
|
|
355
|
+
},
|
|
356
|
+
"description": "Table joins"
|
|
357
|
+
},
|
|
358
|
+
"groupBy": {
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": {
|
|
361
|
+
"type": "string"
|
|
362
|
+
},
|
|
363
|
+
"description": "GROUP BY fields"
|
|
364
|
+
},
|
|
365
|
+
"having": {
|
|
366
|
+
"anyOf": [
|
|
367
|
+
{
|
|
368
|
+
"type": "array",
|
|
369
|
+
"minItems": 3,
|
|
370
|
+
"maxItems": 3,
|
|
371
|
+
"items": [
|
|
372
|
+
{
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"type": "string",
|
|
377
|
+
"enum": [
|
|
378
|
+
"=",
|
|
379
|
+
"!=",
|
|
380
|
+
"<>",
|
|
381
|
+
">",
|
|
382
|
+
">=",
|
|
383
|
+
"<",
|
|
384
|
+
"<=",
|
|
385
|
+
"startswith",
|
|
386
|
+
"contains",
|
|
387
|
+
"notcontains",
|
|
388
|
+
"between",
|
|
389
|
+
"in",
|
|
390
|
+
"notin",
|
|
391
|
+
"is_null",
|
|
392
|
+
"is_not_null"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
{}
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"type": "array",
|
|
400
|
+
"items": {
|
|
401
|
+
"anyOf": [
|
|
402
|
+
{
|
|
403
|
+
"type": "string"
|
|
404
|
+
},
|
|
405
|
+
{}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"description": "HAVING clause for aggregation filtering"
|
|
411
|
+
},
|
|
88
412
|
"sort": {
|
|
89
413
|
"type": "array",
|
|
90
414
|
"items": {
|
|
@@ -116,6 +440,10 @@
|
|
|
116
440
|
"skip": {
|
|
117
441
|
"type": "number",
|
|
118
442
|
"description": "Offset results"
|
|
443
|
+
},
|
|
444
|
+
"distinct": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"description": "SELECT DISTINCT flag"
|
|
119
447
|
}
|
|
120
448
|
},
|
|
121
449
|
"required": [
|