@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.
Files changed (136) hide show
  1. package/README.md +73 -1
  2. package/dist/api/contract.zod.d.ts +1733 -0
  3. package/dist/api/contract.zod.d.ts.map +1 -0
  4. package/dist/api/contract.zod.js +138 -0
  5. package/dist/data/dataset.zod.d.ts +2 -2
  6. package/dist/data/field.zod.d.ts +1648 -10
  7. package/dist/data/field.zod.d.ts.map +1 -1
  8. package/dist/data/field.zod.js +149 -8
  9. package/dist/data/mapping.zod.d.ts +215 -2
  10. package/dist/data/mapping.zod.d.ts.map +1 -1
  11. package/dist/data/object.zod.d.ts +505 -25
  12. package/dist/data/object.zod.d.ts.map +1 -1
  13. package/dist/data/object.zod.js +32 -5
  14. package/dist/data/query.zod.d.ts +349 -0
  15. package/dist/data/query.zod.d.ts.map +1 -1
  16. package/dist/data/query.zod.js +77 -1
  17. package/dist/data/trigger.zod.d.ts +354 -0
  18. package/dist/data/trigger.zod.d.ts.map +1 -0
  19. package/dist/data/trigger.zod.js +195 -0
  20. package/dist/data/validation.zod.d.ts +83 -43
  21. package/dist/data/validation.zod.d.ts.map +1 -1
  22. package/dist/data/validation.zod.js +51 -5
  23. package/dist/index.d.ts +8 -0
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +9 -0
  26. package/dist/system/api.zod.d.ts +130 -4
  27. package/dist/system/api.zod.d.ts.map +1 -1
  28. package/dist/system/api.zod.js +4 -1
  29. package/dist/system/datasource.zod.d.ts +89 -6
  30. package/dist/system/datasource.zod.d.ts.map +1 -1
  31. package/dist/system/datasource.zod.js +33 -5
  32. package/dist/system/discovery.zod.d.ts +174 -0
  33. package/dist/system/discovery.zod.d.ts.map +1 -0
  34. package/dist/system/discovery.zod.js +53 -0
  35. package/dist/system/driver.zod.d.ts +1525 -0
  36. package/dist/system/driver.zod.d.ts.map +1 -0
  37. package/dist/system/driver.zod.js +290 -0
  38. package/dist/system/license.zod.d.ts +2 -2
  39. package/dist/system/manifest.zod.d.ts +323 -52
  40. package/dist/system/manifest.zod.d.ts.map +1 -1
  41. package/dist/system/manifest.zod.js +91 -17
  42. package/dist/system/plugin.zod.d.ts +3516 -0
  43. package/dist/system/plugin.zod.d.ts.map +1 -0
  44. package/dist/system/plugin.zod.js +226 -0
  45. package/dist/system/territory.zod.d.ts +1 -1
  46. package/dist/system/webhook.zod.d.ts +3 -3
  47. package/dist/ui/action.zod.d.ts +19 -12
  48. package/dist/ui/action.zod.d.ts.map +1 -1
  49. package/dist/ui/action.zod.js +7 -1
  50. package/dist/ui/app.zod.d.ts +109 -3
  51. package/dist/ui/app.zod.d.ts.map +1 -1
  52. package/dist/ui/app.zod.js +13 -2
  53. package/dist/ui/dashboard.zod.d.ts +9 -3
  54. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  55. package/dist/ui/dashboard.zod.js +7 -1
  56. package/dist/ui/page.zod.d.ts +6 -6
  57. package/dist/ui/report.zod.d.ts +9 -0
  58. package/dist/ui/report.zod.d.ts.map +1 -1
  59. package/dist/ui/report.zod.js +7 -1
  60. package/dist/ui/theme.zod.d.ts +1221 -0
  61. package/dist/ui/theme.zod.d.ts.map +1 -0
  62. package/dist/ui/theme.zod.js +202 -0
  63. package/dist/ui/widget.zod.d.ts +350 -0
  64. package/dist/ui/widget.zod.d.ts.map +1 -0
  65. package/dist/ui/widget.zod.js +66 -0
  66. package/json-schema/Action.json +8 -2
  67. package/json-schema/ActionParam.json +8 -2
  68. package/json-schema/Address.json +40 -0
  69. package/json-schema/AggregationFunction.json +19 -0
  70. package/json-schema/AggregationNode.json +42 -0
  71. package/json-schema/Animation.json +56 -0
  72. package/json-schema/ApiCapabilities.json +28 -0
  73. package/json-schema/ApiError.json +27 -0
  74. package/json-schema/ApiRoutes.json +41 -0
  75. package/json-schema/App.json +13 -2
  76. package/json-schema/AsyncValidation.json +70 -0
  77. package/json-schema/BaseResponse.json +63 -0
  78. package/json-schema/BorderRadius.json +44 -0
  79. package/json-schema/Breakpoints.json +36 -0
  80. package/json-schema/BulkRequest.json +29 -0
  81. package/json-schema/BulkResponse.json +108 -0
  82. package/json-schema/ColorPalette.json +83 -0
  83. package/json-schema/ConditionalValidation.json +793 -0
  84. package/json-schema/CreateRequest.json +20 -0
  85. package/json-schema/CrossFieldValidation.json +56 -0
  86. package/json-schema/CustomValidator.json +57 -0
  87. package/json-schema/Datasource.json +0 -18
  88. package/json-schema/DeleteResponse.json +68 -0
  89. package/json-schema/Discovery.json +114 -0
  90. package/json-schema/DriverCapabilities.json +39 -0
  91. package/json-schema/DriverDefinition.json +66 -0
  92. package/json-schema/DriverInterface.json +58 -0
  93. package/json-schema/DriverOptions.json +23 -0
  94. package/json-schema/DriverType.json +1 -18
  95. package/json-schema/ExportRequest.json +786 -0
  96. package/json-schema/Field.json +75 -4
  97. package/json-schema/FieldType.json +8 -2
  98. package/json-schema/FieldWidgetProps.json +327 -0
  99. package/json-schema/I18nContext.json +12 -0
  100. package/json-schema/JoinNode.json +455 -0
  101. package/json-schema/JoinType.json +15 -0
  102. package/json-schema/ListRecordResponse.json +103 -0
  103. package/json-schema/LocationCoordinates.json +36 -0
  104. package/json-schema/Logger.json +25 -0
  105. package/json-schema/Manifest.json +243 -18
  106. package/json-schema/Mapping.json +328 -0
  107. package/json-schema/ModificationResult.json +46 -0
  108. package/json-schema/Object.json +103 -6
  109. package/json-schema/ObjectCapabilities.json +26 -0
  110. package/json-schema/ObjectQLClient.json +12 -0
  111. package/json-schema/Plugin.json +20 -0
  112. package/json-schema/PluginContext.json +91 -0
  113. package/json-schema/PluginLifecycle.json +11 -0
  114. package/json-schema/Query.json +328 -0
  115. package/json-schema/RecordData.json +11 -0
  116. package/json-schema/Router.json +12 -0
  117. package/json-schema/Scheduler.json +12 -0
  118. package/json-schema/ScopedStorage.json +12 -0
  119. package/json-schema/Shadow.json +44 -0
  120. package/json-schema/SingleRecordResponse.json +69 -0
  121. package/json-schema/Spacing.json +64 -0
  122. package/json-schema/SystemAPI.json +12 -0
  123. package/json-schema/Theme.json +543 -0
  124. package/json-schema/ThemeMode.json +14 -0
  125. package/json-schema/Trigger.json +73 -0
  126. package/json-schema/TriggerAction.json +14 -0
  127. package/json-schema/TriggerContext.json +61 -0
  128. package/json-schema/TriggerTiming.json +13 -0
  129. package/json-schema/Typography.json +142 -0
  130. package/json-schema/UpdateRequest.json +20 -0
  131. package/json-schema/ValidationRule.json +583 -0
  132. package/json-schema/WindowFunction.json +24 -0
  133. package/json-schema/WindowFunctionNode.json +104 -0
  134. package/json-schema/WindowSpec.json +65 -0
  135. package/json-schema/ZIndex.json +44 -0
  136. package/package.json +8 -3
@@ -0,0 +1,786 @@
1
+ {
2
+ "$ref": "#/definitions/ExportRequest",
3
+ "definitions": {
4
+ "ExportRequest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "object": {
8
+ "type": "string",
9
+ "description": "Object name (e.g. account)"
10
+ },
11
+ "fields": {
12
+ "type": "array",
13
+ "items": {
14
+ "anyOf": [
15
+ {
16
+ "type": "string"
17
+ },
18
+ {
19
+ "type": "object",
20
+ "properties": {
21
+ "field": {
22
+ "type": "string"
23
+ },
24
+ "fields": {
25
+ "type": "array",
26
+ "items": {}
27
+ },
28
+ "alias": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "required": [
33
+ "field"
34
+ ],
35
+ "additionalProperties": false
36
+ }
37
+ ]
38
+ },
39
+ "description": "Fields to retrieve"
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
+ },
183
+ "filters": {
184
+ "anyOf": [
185
+ {
186
+ "type": "array",
187
+ "minItems": 3,
188
+ "maxItems": 3,
189
+ "items": [
190
+ {
191
+ "type": "string"
192
+ },
193
+ {
194
+ "type": "string",
195
+ "enum": [
196
+ "=",
197
+ "!=",
198
+ "<>",
199
+ ">",
200
+ ">=",
201
+ "<",
202
+ "<=",
203
+ "startswith",
204
+ "contains",
205
+ "notcontains",
206
+ "between",
207
+ "in",
208
+ "notin",
209
+ "is_null",
210
+ "is_not_null"
211
+ ]
212
+ },
213
+ {}
214
+ ]
215
+ },
216
+ {
217
+ "type": "array",
218
+ "items": {
219
+ "anyOf": [
220
+ {
221
+ "type": "string"
222
+ },
223
+ {}
224
+ ]
225
+ }
226
+ }
227
+ ],
228
+ "description": "Filtering criteria"
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
+ "type": "object",
347
+ "properties": {
348
+ "object": {
349
+ "type": "string",
350
+ "description": "Object name (e.g. account)"
351
+ },
352
+ "fields": {
353
+ "type": "array",
354
+ "items": {
355
+ "anyOf": [
356
+ {
357
+ "type": "string"
358
+ },
359
+ {
360
+ "type": "object",
361
+ "properties": {
362
+ "field": {
363
+ "type": "string"
364
+ },
365
+ "fields": {
366
+ "type": "array",
367
+ "items": {}
368
+ },
369
+ "alias": {
370
+ "type": "string"
371
+ }
372
+ },
373
+ "required": [
374
+ "field"
375
+ ],
376
+ "additionalProperties": false
377
+ }
378
+ ]
379
+ },
380
+ "description": "Fields to retrieve"
381
+ },
382
+ "aggregations": {
383
+ "type": "array",
384
+ "items": {
385
+ "type": "object",
386
+ "properties": {
387
+ "function": {
388
+ "type": "string",
389
+ "enum": [
390
+ "count",
391
+ "sum",
392
+ "avg",
393
+ "min",
394
+ "max",
395
+ "count_distinct",
396
+ "array_agg",
397
+ "string_agg"
398
+ ],
399
+ "description": "Aggregation function"
400
+ },
401
+ "field": {
402
+ "type": "string",
403
+ "description": "Field to aggregate (optional for COUNT(*))"
404
+ },
405
+ "alias": {
406
+ "type": "string",
407
+ "description": "Result column alias"
408
+ },
409
+ "distinct": {
410
+ "type": "boolean",
411
+ "description": "Apply DISTINCT before aggregation"
412
+ }
413
+ },
414
+ "required": [
415
+ "function",
416
+ "alias"
417
+ ],
418
+ "additionalProperties": false
419
+ },
420
+ "description": "Aggregation functions (GROUP BY)"
421
+ },
422
+ "windowFunctions": {
423
+ "type": "array",
424
+ "items": {
425
+ "type": "object",
426
+ "properties": {
427
+ "function": {
428
+ "type": "string",
429
+ "enum": [
430
+ "row_number",
431
+ "rank",
432
+ "dense_rank",
433
+ "percent_rank",
434
+ "lag",
435
+ "lead",
436
+ "first_value",
437
+ "last_value",
438
+ "sum",
439
+ "avg",
440
+ "count",
441
+ "min",
442
+ "max"
443
+ ],
444
+ "description": "Window function name"
445
+ },
446
+ "field": {
447
+ "type": "string",
448
+ "description": "Field to operate on (for aggregate window functions)"
449
+ },
450
+ "alias": {
451
+ "type": "string",
452
+ "description": "Result column alias"
453
+ },
454
+ "over": {
455
+ "type": "object",
456
+ "properties": {
457
+ "partitionBy": {
458
+ "type": "array",
459
+ "items": {
460
+ "type": "string"
461
+ },
462
+ "description": "PARTITION BY fields"
463
+ },
464
+ "orderBy": {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "object",
468
+ "properties": {
469
+ "field": {
470
+ "type": "string"
471
+ },
472
+ "order": {
473
+ "type": "string",
474
+ "enum": [
475
+ "asc",
476
+ "desc"
477
+ ],
478
+ "default": "asc"
479
+ }
480
+ },
481
+ "required": [
482
+ "field"
483
+ ],
484
+ "additionalProperties": false
485
+ },
486
+ "description": "ORDER BY specification"
487
+ },
488
+ "frame": {
489
+ "type": "object",
490
+ "properties": {
491
+ "type": {
492
+ "type": "string",
493
+ "enum": [
494
+ "rows",
495
+ "range"
496
+ ]
497
+ },
498
+ "start": {
499
+ "type": "string",
500
+ "description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
501
+ },
502
+ "end": {
503
+ "type": "string",
504
+ "description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
505
+ }
506
+ },
507
+ "additionalProperties": false,
508
+ "description": "Window frame specification"
509
+ }
510
+ },
511
+ "additionalProperties": false,
512
+ "description": "Window specification (OVER clause)"
513
+ }
514
+ },
515
+ "required": [
516
+ "function",
517
+ "alias",
518
+ "over"
519
+ ],
520
+ "additionalProperties": false
521
+ },
522
+ "description": "Window functions with OVER clause"
523
+ },
524
+ "filters": {
525
+ "anyOf": [
526
+ {
527
+ "type": "array",
528
+ "minItems": 3,
529
+ "maxItems": 3,
530
+ "items": [
531
+ {
532
+ "type": "string"
533
+ },
534
+ {
535
+ "type": "string",
536
+ "enum": [
537
+ "=",
538
+ "!=",
539
+ "<>",
540
+ ">",
541
+ ">=",
542
+ "<",
543
+ "<=",
544
+ "startswith",
545
+ "contains",
546
+ "notcontains",
547
+ "between",
548
+ "in",
549
+ "notin",
550
+ "is_null",
551
+ "is_not_null"
552
+ ]
553
+ },
554
+ {}
555
+ ]
556
+ },
557
+ {
558
+ "type": "array",
559
+ "items": {
560
+ "anyOf": [
561
+ {
562
+ "type": "string"
563
+ },
564
+ {}
565
+ ]
566
+ }
567
+ }
568
+ ],
569
+ "description": "Filtering criteria"
570
+ },
571
+ "joins": {},
572
+ "groupBy": {
573
+ "type": "array",
574
+ "items": {
575
+ "type": "string"
576
+ },
577
+ "description": "GROUP BY fields"
578
+ },
579
+ "having": {
580
+ "anyOf": [
581
+ {
582
+ "type": "array",
583
+ "minItems": 3,
584
+ "maxItems": 3,
585
+ "items": [
586
+ {
587
+ "type": "string"
588
+ },
589
+ {
590
+ "type": "string",
591
+ "enum": [
592
+ "=",
593
+ "!=",
594
+ "<>",
595
+ ">",
596
+ ">=",
597
+ "<",
598
+ "<=",
599
+ "startswith",
600
+ "contains",
601
+ "notcontains",
602
+ "between",
603
+ "in",
604
+ "notin",
605
+ "is_null",
606
+ "is_not_null"
607
+ ]
608
+ },
609
+ {}
610
+ ]
611
+ },
612
+ {
613
+ "type": "array",
614
+ "items": {
615
+ "anyOf": [
616
+ {
617
+ "type": "string"
618
+ },
619
+ {}
620
+ ]
621
+ }
622
+ }
623
+ ],
624
+ "description": "HAVING clause for aggregation filtering"
625
+ },
626
+ "sort": {
627
+ "type": "array",
628
+ "items": {
629
+ "type": "object",
630
+ "properties": {
631
+ "field": {
632
+ "type": "string"
633
+ },
634
+ "order": {
635
+ "type": "string",
636
+ "enum": [
637
+ "asc",
638
+ "desc"
639
+ ],
640
+ "default": "asc"
641
+ }
642
+ },
643
+ "required": [
644
+ "field"
645
+ ],
646
+ "additionalProperties": false
647
+ },
648
+ "description": "Sorting instructions"
649
+ },
650
+ "top": {
651
+ "type": "number",
652
+ "description": "Limit results"
653
+ },
654
+ "skip": {
655
+ "type": "number",
656
+ "description": "Offset results"
657
+ },
658
+ "distinct": {
659
+ "type": "boolean",
660
+ "description": "SELECT DISTINCT flag"
661
+ }
662
+ },
663
+ "required": [
664
+ "object"
665
+ ],
666
+ "additionalProperties": false,
667
+ "description": "Subquery instead of object"
668
+ }
669
+ },
670
+ "required": [
671
+ "type",
672
+ "object",
673
+ "on"
674
+ ],
675
+ "additionalProperties": false
676
+ },
677
+ "description": "Table joins"
678
+ },
679
+ "groupBy": {
680
+ "type": "array",
681
+ "items": {
682
+ "type": "string"
683
+ },
684
+ "description": "GROUP BY fields"
685
+ },
686
+ "having": {
687
+ "anyOf": [
688
+ {
689
+ "type": "array",
690
+ "minItems": 3,
691
+ "maxItems": 3,
692
+ "items": [
693
+ {
694
+ "type": "string"
695
+ },
696
+ {
697
+ "type": "string",
698
+ "enum": [
699
+ "=",
700
+ "!=",
701
+ "<>",
702
+ ">",
703
+ ">=",
704
+ "<",
705
+ "<=",
706
+ "startswith",
707
+ "contains",
708
+ "notcontains",
709
+ "between",
710
+ "in",
711
+ "notin",
712
+ "is_null",
713
+ "is_not_null"
714
+ ]
715
+ },
716
+ {}
717
+ ]
718
+ },
719
+ {
720
+ "type": "array",
721
+ "items": {
722
+ "anyOf": [
723
+ {
724
+ "type": "string"
725
+ },
726
+ {}
727
+ ]
728
+ }
729
+ }
730
+ ],
731
+ "description": "HAVING clause for aggregation filtering"
732
+ },
733
+ "sort": {
734
+ "type": "array",
735
+ "items": {
736
+ "type": "object",
737
+ "properties": {
738
+ "field": {
739
+ "type": "string"
740
+ },
741
+ "order": {
742
+ "type": "string",
743
+ "enum": [
744
+ "asc",
745
+ "desc"
746
+ ],
747
+ "default": "asc"
748
+ }
749
+ },
750
+ "required": [
751
+ "field"
752
+ ],
753
+ "additionalProperties": false
754
+ },
755
+ "description": "Sorting instructions"
756
+ },
757
+ "top": {
758
+ "type": "number",
759
+ "description": "Limit results"
760
+ },
761
+ "skip": {
762
+ "type": "number",
763
+ "description": "Offset results"
764
+ },
765
+ "distinct": {
766
+ "type": "boolean",
767
+ "description": "SELECT DISTINCT flag"
768
+ },
769
+ "format": {
770
+ "type": "string",
771
+ "enum": [
772
+ "csv",
773
+ "json",
774
+ "xlsx"
775
+ ],
776
+ "default": "csv"
777
+ }
778
+ },
779
+ "required": [
780
+ "object"
781
+ ],
782
+ "additionalProperties": false
783
+ }
784
+ },
785
+ "$schema": "http://json-schema.org/draft-07/schema#"
786
+ }