@objectstack/spec 1.0.5 → 1.0.6
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/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +11 -4
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +11 -4
- package/dist/api/index.mjs.map +1 -1
- package/dist/contracts/index.d.mts +3 -3
- package/dist/contracts/index.d.ts +3 -3
- package/dist/data/index.d.mts +3 -3
- package/dist/data/index.d.ts +3 -3
- package/dist/data/index.js +5 -1
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +5 -1
- package/dist/data/index.mjs.map +1 -1
- package/dist/{driver.zod-YoPJRbBk.d.mts → driver.zod-BOM_Etco.d.mts} +164 -3467
- package/dist/{driver.zod-B0DitHQ2.d.ts → driver.zod-lfi00zVT.d.ts} +164 -3467
- package/dist/{field.zod-Da5S-hAo.d.mts → field.zod-B_lzVsuC.d.ts} +871 -1
- package/dist/{field.zod-Da5S-hAo.d.ts → field.zod-dhbAw0SA.d.mts} +871 -1
- package/dist/{index-CFaoWA3X.d.ts → index-BqQd0BcZ.d.mts} +12 -1309
- package/dist/{index-DSLwt2M_.d.ts → index-C67cfwmW.d.ts} +6 -355
- package/dist/{index-BMqjuD4e.d.ts → index-CH5zloR3.d.ts} +2 -2
- package/dist/{index-BeFe7iF_.d.mts → index-CQ2ZwxNr.d.ts} +12 -1309
- package/dist/{index-CIBOjiZG.d.mts → index-CU4m6noq.d.mts} +2 -2
- package/dist/{index-BYtinxqf.d.mts → index-Dp7GFJ8V.d.mts} +6 -355
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/json-schema/api/ExportRequest.json +419 -758
- package/json-schema/api/FindDataRequest.json +9 -0
- package/json-schema/data/JoinNode.json +9 -0
- package/json-schema/data/Mapping.json +9 -0
- package/json-schema/data/Query.json +9 -0
- package/package.json +1 -1
|
@@ -1,866 +1,6 @@
|
|
|
1
|
-
import { F as FilterCondition } from './filter.zod-BMWnz4HE.js';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Sort Node
|
|
6
|
-
* Represents "Order By".
|
|
7
|
-
*/
|
|
8
|
-
declare const SortNodeSchema: z.ZodObject<{
|
|
9
|
-
field: z.ZodString;
|
|
10
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
field: string;
|
|
13
|
-
order: "asc" | "desc";
|
|
14
|
-
}, {
|
|
15
|
-
field: string;
|
|
16
|
-
order?: "asc" | "desc" | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
/**
|
|
19
|
-
* Aggregation Function Enum
|
|
20
|
-
* Standard aggregation functions for data analysis.
|
|
21
|
-
*
|
|
22
|
-
* Supported Functions:
|
|
23
|
-
* - **count**: Count rows (SQL: COUNT(*) or COUNT(field))
|
|
24
|
-
* - **sum**: Sum numeric values (SQL: SUM(field))
|
|
25
|
-
* - **avg**: Average numeric values (SQL: AVG(field))
|
|
26
|
-
* - **min**: Minimum value (SQL: MIN(field))
|
|
27
|
-
* - **max**: Maximum value (SQL: MAX(field))
|
|
28
|
-
* - **count_distinct**: Count unique values (SQL: COUNT(DISTINCT field))
|
|
29
|
-
* - **array_agg**: Aggregate values into array (SQL: ARRAY_AGG(field))
|
|
30
|
-
* - **string_agg**: Concatenate values (SQL: STRING_AGG(field, delimiter))
|
|
31
|
-
*
|
|
32
|
-
* Performance Considerations:
|
|
33
|
-
* - COUNT(*) is typically faster than COUNT(field) as it doesn't check for nulls
|
|
34
|
-
* - COUNT DISTINCT may require additional memory for tracking unique values
|
|
35
|
-
* - Window aggregates (with OVER clause) can be more efficient than subqueries
|
|
36
|
-
* - Large GROUP BY operations benefit from proper indexing on grouped fields
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* // SQL: SELECT region, SUM(amount) FROM sales GROUP BY region
|
|
40
|
-
* {
|
|
41
|
-
* object: 'sales',
|
|
42
|
-
* fields: ['region'],
|
|
43
|
-
* aggregations: [
|
|
44
|
-
* { function: 'sum', field: 'amount', alias: 'total_sales' }
|
|
45
|
-
* ],
|
|
46
|
-
* groupBy: ['region']
|
|
47
|
-
* }
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* // Salesforce SOQL: SELECT COUNT(Id) FROM Account
|
|
51
|
-
* {
|
|
52
|
-
* object: 'account',
|
|
53
|
-
* aggregations: [
|
|
54
|
-
* { function: 'count', alias: 'total_accounts' }
|
|
55
|
-
* ]
|
|
56
|
-
* }
|
|
57
|
-
*/
|
|
58
|
-
declare const AggregationFunction: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
59
|
-
/**
|
|
60
|
-
* Aggregation Node
|
|
61
|
-
* Represents an aggregated field with function.
|
|
62
|
-
*
|
|
63
|
-
* Aggregations summarize data across groups of rows (GROUP BY).
|
|
64
|
-
* Used with `groupBy` to create analytical queries.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* // SQL: SELECT customer_id, COUNT(*), SUM(amount) FROM orders GROUP BY customer_id
|
|
68
|
-
* {
|
|
69
|
-
* object: 'order',
|
|
70
|
-
* fields: ['customer_id'],
|
|
71
|
-
* aggregations: [
|
|
72
|
-
* { function: 'count', alias: 'order_count' },
|
|
73
|
-
* { function: 'sum', field: 'amount', alias: 'total_amount' }
|
|
74
|
-
* ],
|
|
75
|
-
* groupBy: ['customer_id']
|
|
76
|
-
* }
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* // Salesforce SOQL: SELECT LeadSource, COUNT(Id) FROM Lead GROUP BY LeadSource
|
|
80
|
-
* {
|
|
81
|
-
* object: 'lead',
|
|
82
|
-
* fields: ['lead_source'],
|
|
83
|
-
* aggregations: [
|
|
84
|
-
* { function: 'count', alias: 'lead_count' }
|
|
85
|
-
* ],
|
|
86
|
-
* groupBy: ['lead_source']
|
|
87
|
-
* }
|
|
88
|
-
*/
|
|
89
|
-
declare const AggregationNodeSchema: z.ZodObject<{
|
|
90
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
91
|
-
field: z.ZodOptional<z.ZodString>;
|
|
92
|
-
alias: z.ZodString;
|
|
93
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
97
|
-
alias: string;
|
|
98
|
-
filter?: FilterCondition | undefined;
|
|
99
|
-
field?: string | undefined;
|
|
100
|
-
distinct?: boolean | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
103
|
-
alias: string;
|
|
104
|
-
filter?: FilterCondition | undefined;
|
|
105
|
-
field?: string | undefined;
|
|
106
|
-
distinct?: boolean | undefined;
|
|
107
|
-
}>;
|
|
108
|
-
/**
|
|
109
|
-
* Join Type Enum
|
|
110
|
-
* Standard SQL join types for combining tables.
|
|
111
|
-
*
|
|
112
|
-
* Join Types:
|
|
113
|
-
* - **inner**: Returns only matching rows from both tables (SQL: INNER JOIN)
|
|
114
|
-
* - **left**: Returns all rows from left table, matching rows from right (SQL: LEFT JOIN)
|
|
115
|
-
* - **right**: Returns all rows from right table, matching rows from left (SQL: RIGHT JOIN)
|
|
116
|
-
* - **full**: Returns all rows from both tables (SQL: FULL OUTER JOIN)
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* // SQL: SELECT * FROM orders INNER JOIN customers ON orders.customer_id = customers.id
|
|
120
|
-
* {
|
|
121
|
-
* object: 'order',
|
|
122
|
-
* joins: [
|
|
123
|
-
* {
|
|
124
|
-
* type: 'inner',
|
|
125
|
-
* object: 'customer',
|
|
126
|
-
* on: ['order.customer_id', '=', 'customer.id']
|
|
127
|
-
* }
|
|
128
|
-
* ]
|
|
129
|
-
* }
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* // Salesforce SOQL-style: Find all customers and their orders (if any)
|
|
133
|
-
* {
|
|
134
|
-
* object: 'customer',
|
|
135
|
-
* joins: [
|
|
136
|
-
* {
|
|
137
|
-
* type: 'left',
|
|
138
|
-
* object: 'order',
|
|
139
|
-
* on: ['customer.id', '=', 'order.customer_id']
|
|
140
|
-
* }
|
|
141
|
-
* ]
|
|
142
|
-
* }
|
|
143
|
-
*/
|
|
144
|
-
declare const JoinType: z.ZodEnum<["inner", "left", "right", "full"]>;
|
|
145
|
-
/**
|
|
146
|
-
* Join Execution Strategy
|
|
147
|
-
* Hints to the query engine on how to execute the join.
|
|
148
|
-
*
|
|
149
|
-
* Strategies:
|
|
150
|
-
* - **auto**: Engine decides best strategy (Default).
|
|
151
|
-
* - **database**: Push down join to the database (Requires same datasource).
|
|
152
|
-
* - **hash**: Load both sets into memory and hash join (Cross-datasource, memory intensive).
|
|
153
|
-
* - **loop**: Nested loop lookup (N+1 safe version). (Good for small right-side lookups).
|
|
154
|
-
*/
|
|
155
|
-
declare const JoinStrategy: z.ZodEnum<["auto", "database", "hash", "loop"]>;
|
|
156
|
-
/**
|
|
157
|
-
* Join Node
|
|
158
|
-
* Represents table joins for combining data from multiple objects.
|
|
159
|
-
*
|
|
160
|
-
* Joins connect related data across multiple tables using ON conditions.
|
|
161
|
-
* Supports both direct object joins and subquery joins.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* // SQL: SELECT o.*, c.name FROM orders o INNER JOIN customers c ON o.customer_id = c.id
|
|
165
|
-
* {
|
|
166
|
-
* object: 'order',
|
|
167
|
-
* fields: ['id', 'amount'],
|
|
168
|
-
* joins: [
|
|
169
|
-
* {
|
|
170
|
-
* type: 'inner',
|
|
171
|
-
* object: 'customer',
|
|
172
|
-
* alias: 'c',
|
|
173
|
-
* on: ['order.customer_id', '=', 'c.id']
|
|
174
|
-
* }
|
|
175
|
-
* ]
|
|
176
|
-
* }
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* // SQL: Multi-table join
|
|
180
|
-
* // SELECT * FROM orders o
|
|
181
|
-
* // INNER JOIN customers c ON o.customer_id = c.id
|
|
182
|
-
* // LEFT JOIN shipments s ON o.id = s.order_id
|
|
183
|
-
* {
|
|
184
|
-
* object: 'order',
|
|
185
|
-
* joins: [
|
|
186
|
-
* {
|
|
187
|
-
* type: 'inner',
|
|
188
|
-
* object: 'customer',
|
|
189
|
-
* alias: 'c',
|
|
190
|
-
* on: ['order.customer_id', '=', 'c.id']
|
|
191
|
-
* },
|
|
192
|
-
* {
|
|
193
|
-
* type: 'left',
|
|
194
|
-
* object: 'shipment',
|
|
195
|
-
* alias: 's',
|
|
196
|
-
* on: ['order.id', '=', 's.order_id']
|
|
197
|
-
* }
|
|
198
|
-
* ]
|
|
199
|
-
* }
|
|
200
|
-
*
|
|
201
|
-
* @example
|
|
202
|
-
* // Salesforce SOQL: SELECT Name, (SELECT LastName FROM Contacts) FROM Account
|
|
203
|
-
* {
|
|
204
|
-
* object: 'account',
|
|
205
|
-
* fields: ['name'],
|
|
206
|
-
* joins: [
|
|
207
|
-
* {
|
|
208
|
-
* type: 'left',
|
|
209
|
-
* object: 'contact',
|
|
210
|
-
* on: ['account.id', '=', 'contact.account_id']
|
|
211
|
-
* }
|
|
212
|
-
* ]
|
|
213
|
-
* }
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* // Subquery Join: Join with a filtered/aggregated dataset
|
|
217
|
-
* {
|
|
218
|
-
* object: 'customer',
|
|
219
|
-
* joins: [
|
|
220
|
-
* {
|
|
221
|
-
* type: 'left',
|
|
222
|
-
* object: 'order',
|
|
223
|
-
* alias: 'high_value_orders',
|
|
224
|
-
* on: ['customer.id', '=', 'high_value_orders.customer_id'],
|
|
225
|
-
* subquery: {
|
|
226
|
-
* object: 'order',
|
|
227
|
-
* fields: ['customer_id', 'total'],
|
|
228
|
-
* filters: ['total', '>', 1000]
|
|
229
|
-
* }
|
|
230
|
-
* }
|
|
231
|
-
* ]
|
|
232
|
-
* }
|
|
233
|
-
*/
|
|
234
|
-
declare const JoinNodeSchema: z.ZodType<any>;
|
|
235
|
-
/**
|
|
236
|
-
* Window Function Enum
|
|
237
|
-
* Advanced analytical functions for row-based calculations.
|
|
238
|
-
*
|
|
239
|
-
* Window Functions:
|
|
240
|
-
* - **row_number**: Sequential number within partition (SQL: ROW_NUMBER() OVER (...))
|
|
241
|
-
* - **rank**: Rank with gaps for ties (SQL: RANK() OVER (...))
|
|
242
|
-
* - **dense_rank**: Rank without gaps (SQL: DENSE_RANK() OVER (...))
|
|
243
|
-
* - **percent_rank**: Relative rank as percentage (SQL: PERCENT_RANK() OVER (...))
|
|
244
|
-
* - **lag**: Access previous row value (SQL: LAG(field) OVER (...))
|
|
245
|
-
* - **lead**: Access next row value (SQL: LEAD(field) OVER (...))
|
|
246
|
-
* - **first_value**: First value in window (SQL: FIRST_VALUE(field) OVER (...))
|
|
247
|
-
* - **last_value**: Last value in window (SQL: LAST_VALUE(field) OVER (...))
|
|
248
|
-
* - **sum/avg/count/min/max**: Aggregates over window (SQL: SUM(field) OVER (...))
|
|
249
|
-
*
|
|
250
|
-
* @example
|
|
251
|
-
* // SQL: SELECT *, ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY amount DESC) as rank
|
|
252
|
-
* // FROM orders
|
|
253
|
-
* {
|
|
254
|
-
* object: 'order',
|
|
255
|
-
* fields: ['id', 'customer_id', 'amount'],
|
|
256
|
-
* windowFunctions: [
|
|
257
|
-
* {
|
|
258
|
-
* function: 'row_number',
|
|
259
|
-
* alias: 'rank',
|
|
260
|
-
* over: {
|
|
261
|
-
* partitionBy: ['customer_id'],
|
|
262
|
-
* orderBy: [{ field: 'amount', order: 'desc' }]
|
|
263
|
-
* }
|
|
264
|
-
* }
|
|
265
|
-
* ]
|
|
266
|
-
* }
|
|
267
|
-
*
|
|
268
|
-
* @example
|
|
269
|
-
* // SQL: Running total with SUM() OVER (...)
|
|
270
|
-
* {
|
|
271
|
-
* object: 'transaction',
|
|
272
|
-
* fields: ['date', 'amount'],
|
|
273
|
-
* windowFunctions: [
|
|
274
|
-
* {
|
|
275
|
-
* function: 'sum',
|
|
276
|
-
* field: 'amount',
|
|
277
|
-
* alias: 'running_total',
|
|
278
|
-
* over: {
|
|
279
|
-
* orderBy: [{ field: 'date', order: 'asc' }],
|
|
280
|
-
* frame: {
|
|
281
|
-
* type: 'rows',
|
|
282
|
-
* start: 'UNBOUNDED PRECEDING',
|
|
283
|
-
* end: 'CURRENT ROW'
|
|
284
|
-
* }
|
|
285
|
-
* }
|
|
286
|
-
* }
|
|
287
|
-
* ]
|
|
288
|
-
* }
|
|
289
|
-
*/
|
|
290
|
-
declare const WindowFunction: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
291
|
-
/**
|
|
292
|
-
* Window Specification
|
|
293
|
-
* Defines PARTITION BY and ORDER BY for window functions.
|
|
294
|
-
*
|
|
295
|
-
* Window specifications control how window functions compute values:
|
|
296
|
-
* - **partitionBy**: Divide rows into groups (like GROUP BY but without collapsing rows)
|
|
297
|
-
* - **orderBy**: Define order for ranking and offset functions
|
|
298
|
-
* - **frame**: Specify which rows to include in aggregate calculations
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* // Partition by department, order by salary
|
|
302
|
-
* {
|
|
303
|
-
* partitionBy: ['department'],
|
|
304
|
-
* orderBy: [{ field: 'salary', order: 'desc' }]
|
|
305
|
-
* }
|
|
306
|
-
*
|
|
307
|
-
* @example
|
|
308
|
-
* // Moving average with frame specification
|
|
309
|
-
* {
|
|
310
|
-
* orderBy: [{ field: 'date', order: 'asc' }],
|
|
311
|
-
* frame: {
|
|
312
|
-
* type: 'rows',
|
|
313
|
-
* start: '6 PRECEDING',
|
|
314
|
-
* end: 'CURRENT ROW'
|
|
315
|
-
* }
|
|
316
|
-
* }
|
|
317
|
-
*/
|
|
318
|
-
declare const WindowSpecSchema: z.ZodObject<{
|
|
319
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
320
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
|
-
field: z.ZodString;
|
|
322
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
323
|
-
}, "strip", z.ZodTypeAny, {
|
|
324
|
-
field: string;
|
|
325
|
-
order: "asc" | "desc";
|
|
326
|
-
}, {
|
|
327
|
-
field: string;
|
|
328
|
-
order?: "asc" | "desc" | undefined;
|
|
329
|
-
}>, "many">>;
|
|
330
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
331
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
332
|
-
start: z.ZodOptional<z.ZodString>;
|
|
333
|
-
end: z.ZodOptional<z.ZodString>;
|
|
334
|
-
}, "strip", z.ZodTypeAny, {
|
|
335
|
-
type?: "rows" | "range" | undefined;
|
|
336
|
-
start?: string | undefined;
|
|
337
|
-
end?: string | undefined;
|
|
338
|
-
}, {
|
|
339
|
-
type?: "rows" | "range" | undefined;
|
|
340
|
-
start?: string | undefined;
|
|
341
|
-
end?: string | undefined;
|
|
342
|
-
}>>;
|
|
343
|
-
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
orderBy?: {
|
|
345
|
-
field: string;
|
|
346
|
-
order: "asc" | "desc";
|
|
347
|
-
}[] | undefined;
|
|
348
|
-
partitionBy?: string[] | undefined;
|
|
349
|
-
frame?: {
|
|
350
|
-
type?: "rows" | "range" | undefined;
|
|
351
|
-
start?: string | undefined;
|
|
352
|
-
end?: string | undefined;
|
|
353
|
-
} | undefined;
|
|
354
|
-
}, {
|
|
355
|
-
orderBy?: {
|
|
356
|
-
field: string;
|
|
357
|
-
order?: "asc" | "desc" | undefined;
|
|
358
|
-
}[] | undefined;
|
|
359
|
-
partitionBy?: string[] | undefined;
|
|
360
|
-
frame?: {
|
|
361
|
-
type?: "rows" | "range" | undefined;
|
|
362
|
-
start?: string | undefined;
|
|
363
|
-
end?: string | undefined;
|
|
364
|
-
} | undefined;
|
|
365
|
-
}>;
|
|
366
|
-
/**
|
|
367
|
-
* Window Function Node
|
|
368
|
-
* Represents window function with OVER clause.
|
|
369
|
-
*
|
|
370
|
-
* Window functions perform calculations across a set of rows related to the current row,
|
|
371
|
-
* without collapsing the result set (unlike GROUP BY aggregations).
|
|
372
|
-
*
|
|
373
|
-
* @example
|
|
374
|
-
* // SQL: Top 3 products per category
|
|
375
|
-
* // SELECT *, ROW_NUMBER() OVER (PARTITION BY category ORDER BY sales DESC) as rank
|
|
376
|
-
* // FROM products
|
|
377
|
-
* {
|
|
378
|
-
* object: 'product',
|
|
379
|
-
* fields: ['name', 'category', 'sales'],
|
|
380
|
-
* windowFunctions: [
|
|
381
|
-
* {
|
|
382
|
-
* function: 'row_number',
|
|
383
|
-
* alias: 'category_rank',
|
|
384
|
-
* over: {
|
|
385
|
-
* partitionBy: ['category'],
|
|
386
|
-
* orderBy: [{ field: 'sales', order: 'desc' }]
|
|
387
|
-
* }
|
|
388
|
-
* }
|
|
389
|
-
* ]
|
|
390
|
-
* }
|
|
391
|
-
*
|
|
392
|
-
* @example
|
|
393
|
-
* // SQL: Year-over-year comparison with LAG
|
|
394
|
-
* {
|
|
395
|
-
* object: 'monthly_sales',
|
|
396
|
-
* fields: ['month', 'revenue'],
|
|
397
|
-
* windowFunctions: [
|
|
398
|
-
* {
|
|
399
|
-
* function: 'lag',
|
|
400
|
-
* field: 'revenue',
|
|
401
|
-
* alias: 'prev_year_revenue',
|
|
402
|
-
* over: {
|
|
403
|
-
* orderBy: [{ field: 'month', order: 'asc' }]
|
|
404
|
-
* }
|
|
405
|
-
* }
|
|
406
|
-
* ]
|
|
407
|
-
* }
|
|
408
|
-
*/
|
|
409
|
-
declare const WindowFunctionNodeSchema: z.ZodObject<{
|
|
410
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
411
|
-
field: z.ZodOptional<z.ZodString>;
|
|
412
|
-
alias: z.ZodString;
|
|
413
|
-
over: z.ZodObject<{
|
|
414
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
415
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
416
|
-
field: z.ZodString;
|
|
417
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
418
|
-
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
field: string;
|
|
420
|
-
order: "asc" | "desc";
|
|
421
|
-
}, {
|
|
422
|
-
field: string;
|
|
423
|
-
order?: "asc" | "desc" | undefined;
|
|
424
|
-
}>, "many">>;
|
|
425
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
426
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
427
|
-
start: z.ZodOptional<z.ZodString>;
|
|
428
|
-
end: z.ZodOptional<z.ZodString>;
|
|
429
|
-
}, "strip", z.ZodTypeAny, {
|
|
430
|
-
type?: "rows" | "range" | undefined;
|
|
431
|
-
start?: string | undefined;
|
|
432
|
-
end?: string | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
type?: "rows" | "range" | undefined;
|
|
435
|
-
start?: string | undefined;
|
|
436
|
-
end?: string | undefined;
|
|
437
|
-
}>>;
|
|
438
|
-
}, "strip", z.ZodTypeAny, {
|
|
439
|
-
orderBy?: {
|
|
440
|
-
field: string;
|
|
441
|
-
order: "asc" | "desc";
|
|
442
|
-
}[] | undefined;
|
|
443
|
-
partitionBy?: string[] | undefined;
|
|
444
|
-
frame?: {
|
|
445
|
-
type?: "rows" | "range" | undefined;
|
|
446
|
-
start?: string | undefined;
|
|
447
|
-
end?: string | undefined;
|
|
448
|
-
} | undefined;
|
|
449
|
-
}, {
|
|
450
|
-
orderBy?: {
|
|
451
|
-
field: string;
|
|
452
|
-
order?: "asc" | "desc" | undefined;
|
|
453
|
-
}[] | undefined;
|
|
454
|
-
partitionBy?: string[] | undefined;
|
|
455
|
-
frame?: {
|
|
456
|
-
type?: "rows" | "range" | undefined;
|
|
457
|
-
start?: string | undefined;
|
|
458
|
-
end?: string | undefined;
|
|
459
|
-
} | undefined;
|
|
460
|
-
}>;
|
|
461
|
-
}, "strip", z.ZodTypeAny, {
|
|
462
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
463
|
-
alias: string;
|
|
464
|
-
over: {
|
|
465
|
-
orderBy?: {
|
|
466
|
-
field: string;
|
|
467
|
-
order: "asc" | "desc";
|
|
468
|
-
}[] | undefined;
|
|
469
|
-
partitionBy?: string[] | undefined;
|
|
470
|
-
frame?: {
|
|
471
|
-
type?: "rows" | "range" | undefined;
|
|
472
|
-
start?: string | undefined;
|
|
473
|
-
end?: string | undefined;
|
|
474
|
-
} | undefined;
|
|
475
|
-
};
|
|
476
|
-
field?: string | undefined;
|
|
477
|
-
}, {
|
|
478
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
479
|
-
alias: string;
|
|
480
|
-
over: {
|
|
481
|
-
orderBy?: {
|
|
482
|
-
field: string;
|
|
483
|
-
order?: "asc" | "desc" | undefined;
|
|
484
|
-
}[] | undefined;
|
|
485
|
-
partitionBy?: string[] | undefined;
|
|
486
|
-
frame?: {
|
|
487
|
-
type?: "rows" | "range" | undefined;
|
|
488
|
-
start?: string | undefined;
|
|
489
|
-
end?: string | undefined;
|
|
490
|
-
} | undefined;
|
|
491
|
-
};
|
|
492
|
-
field?: string | undefined;
|
|
493
|
-
}>;
|
|
494
|
-
/**
|
|
495
|
-
* Field Selection Node
|
|
496
|
-
* Represents "Select" attributes, including joins.
|
|
497
|
-
*/
|
|
498
|
-
declare const FieldNodeSchema: z.ZodType<any>;
|
|
499
|
-
/**
|
|
500
|
-
* Full-Text Search Configuration
|
|
501
|
-
* Defines full-text search parameters for text queries.
|
|
502
|
-
*
|
|
503
|
-
* Supports:
|
|
504
|
-
* - Multi-field search
|
|
505
|
-
* - Relevance scoring
|
|
506
|
-
* - Fuzzy matching
|
|
507
|
-
* - Language-specific analyzers
|
|
508
|
-
*
|
|
509
|
-
* @example
|
|
510
|
-
* {
|
|
511
|
-
* query: "John Smith",
|
|
512
|
-
* fields: ["name", "email", "description"],
|
|
513
|
-
* fuzzy: true,
|
|
514
|
-
* boost: { "name": 2.0, "email": 1.5 }
|
|
515
|
-
* }
|
|
516
|
-
*/
|
|
517
|
-
declare const FullTextSearchSchema: z.ZodObject<{
|
|
518
|
-
query: z.ZodString;
|
|
519
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
520
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
521
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
522
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
523
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
524
|
-
language: z.ZodOptional<z.ZodString>;
|
|
525
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
526
|
-
}, "strip", z.ZodTypeAny, {
|
|
527
|
-
query: string;
|
|
528
|
-
fuzzy: boolean;
|
|
529
|
-
operator: "and" | "or";
|
|
530
|
-
highlight: boolean;
|
|
531
|
-
fields?: string[] | undefined;
|
|
532
|
-
boost?: Record<string, number> | undefined;
|
|
533
|
-
minScore?: number | undefined;
|
|
534
|
-
language?: string | undefined;
|
|
535
|
-
}, {
|
|
536
|
-
query: string;
|
|
537
|
-
fields?: string[] | undefined;
|
|
538
|
-
fuzzy?: boolean | undefined;
|
|
539
|
-
operator?: "and" | "or" | undefined;
|
|
540
|
-
boost?: Record<string, number> | undefined;
|
|
541
|
-
minScore?: number | undefined;
|
|
542
|
-
language?: string | undefined;
|
|
543
|
-
highlight?: boolean | undefined;
|
|
544
|
-
}>;
|
|
545
|
-
type FullTextSearch = z.infer<typeof FullTextSearchSchema>;
|
|
546
|
-
/**
|
|
547
|
-
* Query AST Schema
|
|
548
|
-
* The universal data retrieval contract defined in `ast-structure.mdx`.
|
|
549
|
-
*
|
|
550
|
-
* This schema represents ObjectQL - a universal query language that abstracts
|
|
551
|
-
* SQL, NoSQL, and SaaS APIs into a single unified interface.
|
|
552
|
-
*
|
|
553
|
-
* Updates (v2):
|
|
554
|
-
* - Aligned with modern ORM standards (Prisma/TypeORM)
|
|
555
|
-
* - Added `cursor` based pagination support
|
|
556
|
-
* - Renamed `top`/`skip` to `limit`/`offset`
|
|
557
|
-
* - Unified filtering syntax with `FilterConditionSchema`
|
|
558
|
-
*
|
|
559
|
-
* Updates (v3):
|
|
560
|
-
* - Added `search` parameter for full-text search (P2 requirement)
|
|
561
|
-
*
|
|
562
|
-
* @example
|
|
563
|
-
* // Simple query: SELECT name, email FROM account WHERE status = 'active'
|
|
564
|
-
* {
|
|
565
|
-
* object: 'account',
|
|
566
|
-
* fields: ['name', 'email'],
|
|
567
|
-
* where: { status: 'active' }
|
|
568
|
-
* }
|
|
569
|
-
*
|
|
570
|
-
* @example
|
|
571
|
-
* // Pagination with Limit/Offset
|
|
572
|
-
* {
|
|
573
|
-
* object: 'post',
|
|
574
|
-
* where: { published: true },
|
|
575
|
-
* orderBy: [{ field: 'created_at', order: 'desc' }],
|
|
576
|
-
* limit: 20,
|
|
577
|
-
* offset: 40
|
|
578
|
-
* }
|
|
579
|
-
*
|
|
580
|
-
* @example
|
|
581
|
-
* // Full-text search
|
|
582
|
-
* {
|
|
583
|
-
* object: 'article',
|
|
584
|
-
* search: {
|
|
585
|
-
* query: "machine learning",
|
|
586
|
-
* fields: ["title", "content"],
|
|
587
|
-
* fuzzy: true,
|
|
588
|
-
* boost: { "title": 2.0 }
|
|
589
|
-
* },
|
|
590
|
-
* limit: 10
|
|
591
|
-
* }
|
|
592
|
-
*/
|
|
593
|
-
declare const QuerySchema: z.ZodObject<{
|
|
594
|
-
/** Target Entity */
|
|
595
|
-
object: z.ZodString;
|
|
596
|
-
/** Select Clause */
|
|
597
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
598
|
-
/** Where Clause (Filtering) */
|
|
599
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
600
|
-
/** Full-Text Search */
|
|
601
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
602
|
-
query: z.ZodString;
|
|
603
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
604
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
605
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
606
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
607
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
608
|
-
language: z.ZodOptional<z.ZodString>;
|
|
609
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
610
|
-
}, "strip", z.ZodTypeAny, {
|
|
611
|
-
query: string;
|
|
612
|
-
fuzzy: boolean;
|
|
613
|
-
operator: "and" | "or";
|
|
614
|
-
highlight: boolean;
|
|
615
|
-
fields?: string[] | undefined;
|
|
616
|
-
boost?: Record<string, number> | undefined;
|
|
617
|
-
minScore?: number | undefined;
|
|
618
|
-
language?: string | undefined;
|
|
619
|
-
}, {
|
|
620
|
-
query: string;
|
|
621
|
-
fields?: string[] | undefined;
|
|
622
|
-
fuzzy?: boolean | undefined;
|
|
623
|
-
operator?: "and" | "or" | undefined;
|
|
624
|
-
boost?: Record<string, number> | undefined;
|
|
625
|
-
minScore?: number | undefined;
|
|
626
|
-
language?: string | undefined;
|
|
627
|
-
highlight?: boolean | undefined;
|
|
628
|
-
}>>;
|
|
629
|
-
/** Order By Clause (Sorting) */
|
|
630
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
631
|
-
field: z.ZodString;
|
|
632
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
633
|
-
}, "strip", z.ZodTypeAny, {
|
|
634
|
-
field: string;
|
|
635
|
-
order: "asc" | "desc";
|
|
636
|
-
}, {
|
|
637
|
-
field: string;
|
|
638
|
-
order?: "asc" | "desc" | undefined;
|
|
639
|
-
}>, "many">>;
|
|
640
|
-
/** Pagination */
|
|
641
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
642
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
643
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
644
|
-
/** Joins */
|
|
645
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
646
|
-
/** Aggregations */
|
|
647
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
648
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
649
|
-
field: z.ZodOptional<z.ZodString>;
|
|
650
|
-
alias: z.ZodString;
|
|
651
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
652
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
653
|
-
}, "strip", z.ZodTypeAny, {
|
|
654
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
655
|
-
alias: string;
|
|
656
|
-
filter?: FilterCondition | undefined;
|
|
657
|
-
field?: string | undefined;
|
|
658
|
-
distinct?: boolean | undefined;
|
|
659
|
-
}, {
|
|
660
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
661
|
-
alias: string;
|
|
662
|
-
filter?: FilterCondition | undefined;
|
|
663
|
-
field?: string | undefined;
|
|
664
|
-
distinct?: boolean | undefined;
|
|
665
|
-
}>, "many">>;
|
|
666
|
-
/** Group By Clause */
|
|
667
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
668
|
-
/** Having Clause */
|
|
669
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
670
|
-
/** Window Functions */
|
|
671
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
672
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
673
|
-
field: z.ZodOptional<z.ZodString>;
|
|
674
|
-
alias: z.ZodString;
|
|
675
|
-
over: z.ZodObject<{
|
|
676
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
677
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
678
|
-
field: z.ZodString;
|
|
679
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
680
|
-
}, "strip", z.ZodTypeAny, {
|
|
681
|
-
field: string;
|
|
682
|
-
order: "asc" | "desc";
|
|
683
|
-
}, {
|
|
684
|
-
field: string;
|
|
685
|
-
order?: "asc" | "desc" | undefined;
|
|
686
|
-
}>, "many">>;
|
|
687
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
688
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
689
|
-
start: z.ZodOptional<z.ZodString>;
|
|
690
|
-
end: z.ZodOptional<z.ZodString>;
|
|
691
|
-
}, "strip", z.ZodTypeAny, {
|
|
692
|
-
type?: "rows" | "range" | undefined;
|
|
693
|
-
start?: string | undefined;
|
|
694
|
-
end?: string | undefined;
|
|
695
|
-
}, {
|
|
696
|
-
type?: "rows" | "range" | undefined;
|
|
697
|
-
start?: string | undefined;
|
|
698
|
-
end?: string | undefined;
|
|
699
|
-
}>>;
|
|
700
|
-
}, "strip", z.ZodTypeAny, {
|
|
701
|
-
orderBy?: {
|
|
702
|
-
field: string;
|
|
703
|
-
order: "asc" | "desc";
|
|
704
|
-
}[] | undefined;
|
|
705
|
-
partitionBy?: string[] | undefined;
|
|
706
|
-
frame?: {
|
|
707
|
-
type?: "rows" | "range" | undefined;
|
|
708
|
-
start?: string | undefined;
|
|
709
|
-
end?: string | undefined;
|
|
710
|
-
} | undefined;
|
|
711
|
-
}, {
|
|
712
|
-
orderBy?: {
|
|
713
|
-
field: string;
|
|
714
|
-
order?: "asc" | "desc" | undefined;
|
|
715
|
-
}[] | undefined;
|
|
716
|
-
partitionBy?: string[] | undefined;
|
|
717
|
-
frame?: {
|
|
718
|
-
type?: "rows" | "range" | undefined;
|
|
719
|
-
start?: string | undefined;
|
|
720
|
-
end?: string | undefined;
|
|
721
|
-
} | undefined;
|
|
722
|
-
}>;
|
|
723
|
-
}, "strip", z.ZodTypeAny, {
|
|
724
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
725
|
-
alias: string;
|
|
726
|
-
over: {
|
|
727
|
-
orderBy?: {
|
|
728
|
-
field: string;
|
|
729
|
-
order: "asc" | "desc";
|
|
730
|
-
}[] | undefined;
|
|
731
|
-
partitionBy?: string[] | undefined;
|
|
732
|
-
frame?: {
|
|
733
|
-
type?: "rows" | "range" | undefined;
|
|
734
|
-
start?: string | undefined;
|
|
735
|
-
end?: string | undefined;
|
|
736
|
-
} | undefined;
|
|
737
|
-
};
|
|
738
|
-
field?: string | undefined;
|
|
739
|
-
}, {
|
|
740
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
741
|
-
alias: string;
|
|
742
|
-
over: {
|
|
743
|
-
orderBy?: {
|
|
744
|
-
field: string;
|
|
745
|
-
order?: "asc" | "desc" | undefined;
|
|
746
|
-
}[] | undefined;
|
|
747
|
-
partitionBy?: string[] | undefined;
|
|
748
|
-
frame?: {
|
|
749
|
-
type?: "rows" | "range" | undefined;
|
|
750
|
-
start?: string | undefined;
|
|
751
|
-
end?: string | undefined;
|
|
752
|
-
} | undefined;
|
|
753
|
-
};
|
|
754
|
-
field?: string | undefined;
|
|
755
|
-
}>, "many">>;
|
|
756
|
-
/** Subquery flag */
|
|
757
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
758
|
-
}, "strip", z.ZodTypeAny, {
|
|
759
|
-
object: string;
|
|
760
|
-
where?: FilterCondition | undefined;
|
|
761
|
-
distinct?: boolean | undefined;
|
|
762
|
-
fields?: any[] | undefined;
|
|
763
|
-
search?: {
|
|
764
|
-
query: string;
|
|
765
|
-
fuzzy: boolean;
|
|
766
|
-
operator: "and" | "or";
|
|
767
|
-
highlight: boolean;
|
|
768
|
-
fields?: string[] | undefined;
|
|
769
|
-
boost?: Record<string, number> | undefined;
|
|
770
|
-
minScore?: number | undefined;
|
|
771
|
-
language?: string | undefined;
|
|
772
|
-
} | undefined;
|
|
773
|
-
orderBy?: {
|
|
774
|
-
field: string;
|
|
775
|
-
order: "asc" | "desc";
|
|
776
|
-
}[] | undefined;
|
|
777
|
-
limit?: number | undefined;
|
|
778
|
-
offset?: number | undefined;
|
|
779
|
-
cursor?: Record<string, any> | undefined;
|
|
780
|
-
joins?: any[] | undefined;
|
|
781
|
-
aggregations?: {
|
|
782
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
783
|
-
alias: string;
|
|
784
|
-
filter?: FilterCondition | undefined;
|
|
785
|
-
field?: string | undefined;
|
|
786
|
-
distinct?: boolean | undefined;
|
|
787
|
-
}[] | undefined;
|
|
788
|
-
groupBy?: string[] | undefined;
|
|
789
|
-
having?: FilterCondition | undefined;
|
|
790
|
-
windowFunctions?: {
|
|
791
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
792
|
-
alias: string;
|
|
793
|
-
over: {
|
|
794
|
-
orderBy?: {
|
|
795
|
-
field: string;
|
|
796
|
-
order: "asc" | "desc";
|
|
797
|
-
}[] | undefined;
|
|
798
|
-
partitionBy?: string[] | undefined;
|
|
799
|
-
frame?: {
|
|
800
|
-
type?: "rows" | "range" | undefined;
|
|
801
|
-
start?: string | undefined;
|
|
802
|
-
end?: string | undefined;
|
|
803
|
-
} | undefined;
|
|
804
|
-
};
|
|
805
|
-
field?: string | undefined;
|
|
806
|
-
}[] | undefined;
|
|
807
|
-
}, {
|
|
808
|
-
object: string;
|
|
809
|
-
where?: FilterCondition | undefined;
|
|
810
|
-
distinct?: boolean | undefined;
|
|
811
|
-
fields?: any[] | undefined;
|
|
812
|
-
search?: {
|
|
813
|
-
query: string;
|
|
814
|
-
fields?: string[] | undefined;
|
|
815
|
-
fuzzy?: boolean | undefined;
|
|
816
|
-
operator?: "and" | "or" | undefined;
|
|
817
|
-
boost?: Record<string, number> | undefined;
|
|
818
|
-
minScore?: number | undefined;
|
|
819
|
-
language?: string | undefined;
|
|
820
|
-
highlight?: boolean | undefined;
|
|
821
|
-
} | undefined;
|
|
822
|
-
orderBy?: {
|
|
823
|
-
field: string;
|
|
824
|
-
order?: "asc" | "desc" | undefined;
|
|
825
|
-
}[] | undefined;
|
|
826
|
-
limit?: number | undefined;
|
|
827
|
-
offset?: number | undefined;
|
|
828
|
-
cursor?: Record<string, any> | undefined;
|
|
829
|
-
joins?: any[] | undefined;
|
|
830
|
-
aggregations?: {
|
|
831
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
832
|
-
alias: string;
|
|
833
|
-
filter?: FilterCondition | undefined;
|
|
834
|
-
field?: string | undefined;
|
|
835
|
-
distinct?: boolean | undefined;
|
|
836
|
-
}[] | undefined;
|
|
837
|
-
groupBy?: string[] | undefined;
|
|
838
|
-
having?: FilterCondition | undefined;
|
|
839
|
-
windowFunctions?: {
|
|
840
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
841
|
-
alias: string;
|
|
842
|
-
over: {
|
|
843
|
-
orderBy?: {
|
|
844
|
-
field: string;
|
|
845
|
-
order?: "asc" | "desc" | undefined;
|
|
846
|
-
}[] | undefined;
|
|
847
|
-
partitionBy?: string[] | undefined;
|
|
848
|
-
frame?: {
|
|
849
|
-
type?: "rows" | "range" | undefined;
|
|
850
|
-
start?: string | undefined;
|
|
851
|
-
end?: string | undefined;
|
|
852
|
-
} | undefined;
|
|
853
|
-
};
|
|
854
|
-
field?: string | undefined;
|
|
855
|
-
}[] | undefined;
|
|
856
|
-
}>;
|
|
857
|
-
type QueryAST = z.infer<typeof QuerySchema>;
|
|
858
|
-
type QueryInput = z.input<typeof QuerySchema>;
|
|
859
|
-
type SortNode = z.infer<typeof SortNodeSchema>;
|
|
860
|
-
type AggregationNode = z.infer<typeof AggregationNodeSchema>;
|
|
861
|
-
type JoinNode = z.infer<typeof JoinNodeSchema>;
|
|
862
|
-
type WindowFunctionNode = z.infer<typeof WindowFunctionNodeSchema>;
|
|
863
|
-
type WindowSpec = z.infer<typeof WindowSpecSchema>;
|
|
2
|
+
import { F as FilterCondition } from './filter.zod-BMWnz4HE.js';
|
|
3
|
+
import { Q as QueryAST, a as QueryInput } from './field.zod-B_lzVsuC.js';
|
|
864
4
|
|
|
865
5
|
/**
|
|
866
6
|
* API Operations Enum
|
|
@@ -4277,9 +3417,9 @@ declare const DataEngineQueryOptionsSchema: z.ZodObject<{
|
|
|
4277
3417
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4278
3418
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4279
3419
|
limit?: number | undefined;
|
|
3420
|
+
top?: number | undefined;
|
|
4280
3421
|
select?: string[] | undefined;
|
|
4281
3422
|
skip?: number | undefined;
|
|
4282
|
-
top?: number | undefined;
|
|
4283
3423
|
populate?: string[] | undefined;
|
|
4284
3424
|
}, {
|
|
4285
3425
|
sort?: {
|
|
@@ -4288,9 +3428,9 @@ declare const DataEngineQueryOptionsSchema: z.ZodObject<{
|
|
|
4288
3428
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4289
3429
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4290
3430
|
limit?: number | undefined;
|
|
3431
|
+
top?: number | undefined;
|
|
4291
3432
|
select?: string[] | undefined;
|
|
4292
3433
|
skip?: number | undefined;
|
|
4293
|
-
top?: number | undefined;
|
|
4294
3434
|
populate?: string[] | undefined;
|
|
4295
3435
|
}>;
|
|
4296
3436
|
declare const DataEngineInsertOptionsSchema: z.ZodObject<{
|
|
@@ -4436,9 +3576,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4436
3576
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4437
3577
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4438
3578
|
limit?: number | undefined;
|
|
3579
|
+
top?: number | undefined;
|
|
4439
3580
|
select?: string[] | undefined;
|
|
4440
3581
|
skip?: number | undefined;
|
|
4441
|
-
top?: number | undefined;
|
|
4442
3582
|
populate?: string[] | undefined;
|
|
4443
3583
|
}, {
|
|
4444
3584
|
sort?: {
|
|
@@ -4447,9 +3587,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4447
3587
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4448
3588
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4449
3589
|
limit?: number | undefined;
|
|
3590
|
+
top?: number | undefined;
|
|
4450
3591
|
select?: string[] | undefined;
|
|
4451
3592
|
skip?: number | undefined;
|
|
4452
|
-
top?: number | undefined;
|
|
4453
3593
|
populate?: string[] | undefined;
|
|
4454
3594
|
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodArray<z.ZodAny, "many">>>;
|
|
4455
3595
|
findOne: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodObject<{
|
|
@@ -4489,9 +3629,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4489
3629
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4490
3630
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4491
3631
|
limit?: number | undefined;
|
|
3632
|
+
top?: number | undefined;
|
|
4492
3633
|
select?: string[] | undefined;
|
|
4493
3634
|
skip?: number | undefined;
|
|
4494
|
-
top?: number | undefined;
|
|
4495
3635
|
populate?: string[] | undefined;
|
|
4496
3636
|
}, {
|
|
4497
3637
|
sort?: {
|
|
@@ -4500,9 +3640,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4500
3640
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4501
3641
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4502
3642
|
limit?: number | undefined;
|
|
3643
|
+
top?: number | undefined;
|
|
4503
3644
|
select?: string[] | undefined;
|
|
4504
3645
|
skip?: number | undefined;
|
|
4505
|
-
top?: number | undefined;
|
|
4506
3646
|
populate?: string[] | undefined;
|
|
4507
3647
|
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
4508
3648
|
insert: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>, z.ZodOptional<z.ZodObject<{
|
|
@@ -4618,9 +3758,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4618
3758
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4619
3759
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4620
3760
|
limit?: number | undefined;
|
|
3761
|
+
top?: number | undefined;
|
|
4621
3762
|
select?: string[] | undefined;
|
|
4622
3763
|
skip?: number | undefined;
|
|
4623
|
-
top?: number | undefined;
|
|
4624
3764
|
populate?: string[] | undefined;
|
|
4625
3765
|
} | undefined, ...args: unknown[]) => Promise<any[]>;
|
|
4626
3766
|
count: (args_0: string, args_1: {
|
|
@@ -4655,9 +3795,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4655
3795
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4656
3796
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4657
3797
|
limit?: number | undefined;
|
|
3798
|
+
top?: number | undefined;
|
|
4658
3799
|
select?: string[] | undefined;
|
|
4659
3800
|
skip?: number | undefined;
|
|
4660
|
-
top?: number | undefined;
|
|
4661
3801
|
populate?: string[] | undefined;
|
|
4662
3802
|
} | undefined, ...args: unknown[]) => Promise<any>;
|
|
4663
3803
|
}, {
|
|
@@ -4668,9 +3808,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4668
3808
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4669
3809
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4670
3810
|
limit?: number | undefined;
|
|
3811
|
+
top?: number | undefined;
|
|
4671
3812
|
select?: string[] | undefined;
|
|
4672
3813
|
skip?: number | undefined;
|
|
4673
|
-
top?: number | undefined;
|
|
4674
3814
|
populate?: string[] | undefined;
|
|
4675
3815
|
} | undefined, ...args: unknown[]) => Promise<any[]>;
|
|
4676
3816
|
count: (args_0: string, args_1: {
|
|
@@ -4705,9 +3845,9 @@ declare const DataEngineContractSchema: z.ZodObject<{
|
|
|
4705
3845
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4706
3846
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4707
3847
|
limit?: number | undefined;
|
|
3848
|
+
top?: number | undefined;
|
|
4708
3849
|
select?: string[] | undefined;
|
|
4709
3850
|
skip?: number | undefined;
|
|
4710
|
-
top?: number | undefined;
|
|
4711
3851
|
populate?: string[] | undefined;
|
|
4712
3852
|
} | undefined, ...args: unknown[]) => Promise<any>;
|
|
4713
3853
|
}>;
|
|
@@ -4760,9 +3900,9 @@ declare const DataEngineFindRequestSchema: z.ZodObject<{
|
|
|
4760
3900
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4761
3901
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4762
3902
|
limit?: number | undefined;
|
|
3903
|
+
top?: number | undefined;
|
|
4763
3904
|
select?: string[] | undefined;
|
|
4764
3905
|
skip?: number | undefined;
|
|
4765
|
-
top?: number | undefined;
|
|
4766
3906
|
populate?: string[] | undefined;
|
|
4767
3907
|
}, {
|
|
4768
3908
|
sort?: {
|
|
@@ -4771,9 +3911,9 @@ declare const DataEngineFindRequestSchema: z.ZodObject<{
|
|
|
4771
3911
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4772
3912
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4773
3913
|
limit?: number | undefined;
|
|
3914
|
+
top?: number | undefined;
|
|
4774
3915
|
select?: string[] | undefined;
|
|
4775
3916
|
skip?: number | undefined;
|
|
4776
|
-
top?: number | undefined;
|
|
4777
3917
|
populate?: string[] | undefined;
|
|
4778
3918
|
}>>;
|
|
4779
3919
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4786,9 +3926,9 @@ declare const DataEngineFindRequestSchema: z.ZodObject<{
|
|
|
4786
3926
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4787
3927
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4788
3928
|
limit?: number | undefined;
|
|
3929
|
+
top?: number | undefined;
|
|
4789
3930
|
select?: string[] | undefined;
|
|
4790
3931
|
skip?: number | undefined;
|
|
4791
|
-
top?: number | undefined;
|
|
4792
3932
|
populate?: string[] | undefined;
|
|
4793
3933
|
} | undefined;
|
|
4794
3934
|
}, {
|
|
@@ -4801,9 +3941,9 @@ declare const DataEngineFindRequestSchema: z.ZodObject<{
|
|
|
4801
3941
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4802
3942
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4803
3943
|
limit?: number | undefined;
|
|
3944
|
+
top?: number | undefined;
|
|
4804
3945
|
select?: string[] | undefined;
|
|
4805
3946
|
skip?: number | undefined;
|
|
4806
|
-
top?: number | undefined;
|
|
4807
3947
|
populate?: string[] | undefined;
|
|
4808
3948
|
} | undefined;
|
|
4809
3949
|
}>;
|
|
@@ -4847,9 +3987,9 @@ declare const DataEngineFindOneRequestSchema: z.ZodObject<{
|
|
|
4847
3987
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4848
3988
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4849
3989
|
limit?: number | undefined;
|
|
3990
|
+
top?: number | undefined;
|
|
4850
3991
|
select?: string[] | undefined;
|
|
4851
3992
|
skip?: number | undefined;
|
|
4852
|
-
top?: number | undefined;
|
|
4853
3993
|
populate?: string[] | undefined;
|
|
4854
3994
|
}, {
|
|
4855
3995
|
sort?: {
|
|
@@ -4858,9 +3998,9 @@ declare const DataEngineFindOneRequestSchema: z.ZodObject<{
|
|
|
4858
3998
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4859
3999
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4860
4000
|
limit?: number | undefined;
|
|
4001
|
+
top?: number | undefined;
|
|
4861
4002
|
select?: string[] | undefined;
|
|
4862
4003
|
skip?: number | undefined;
|
|
4863
|
-
top?: number | undefined;
|
|
4864
4004
|
populate?: string[] | undefined;
|
|
4865
4005
|
}>>;
|
|
4866
4006
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4873,9 +4013,9 @@ declare const DataEngineFindOneRequestSchema: z.ZodObject<{
|
|
|
4873
4013
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4874
4014
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4875
4015
|
limit?: number | undefined;
|
|
4016
|
+
top?: number | undefined;
|
|
4876
4017
|
select?: string[] | undefined;
|
|
4877
4018
|
skip?: number | undefined;
|
|
4878
|
-
top?: number | undefined;
|
|
4879
4019
|
populate?: string[] | undefined;
|
|
4880
4020
|
} | undefined;
|
|
4881
4021
|
}, {
|
|
@@ -4888,9 +4028,9 @@ declare const DataEngineFindOneRequestSchema: z.ZodObject<{
|
|
|
4888
4028
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
4889
4029
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
4890
4030
|
limit?: number | undefined;
|
|
4031
|
+
top?: number | undefined;
|
|
4891
4032
|
select?: string[] | undefined;
|
|
4892
4033
|
skip?: number | undefined;
|
|
4893
|
-
top?: number | undefined;
|
|
4894
4034
|
populate?: string[] | undefined;
|
|
4895
4035
|
} | undefined;
|
|
4896
4036
|
}>;
|
|
@@ -5210,9 +4350,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5210
4350
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5211
4351
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5212
4352
|
limit?: number | undefined;
|
|
4353
|
+
top?: number | undefined;
|
|
5213
4354
|
select?: string[] | undefined;
|
|
5214
4355
|
skip?: number | undefined;
|
|
5215
|
-
top?: number | undefined;
|
|
5216
4356
|
populate?: string[] | undefined;
|
|
5217
4357
|
}, {
|
|
5218
4358
|
sort?: {
|
|
@@ -5221,9 +4361,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5221
4361
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5222
4362
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5223
4363
|
limit?: number | undefined;
|
|
4364
|
+
top?: number | undefined;
|
|
5224
4365
|
select?: string[] | undefined;
|
|
5225
4366
|
skip?: number | undefined;
|
|
5226
|
-
top?: number | undefined;
|
|
5227
4367
|
populate?: string[] | undefined;
|
|
5228
4368
|
}>>;
|
|
5229
4369
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5236,9 +4376,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5236
4376
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5237
4377
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5238
4378
|
limit?: number | undefined;
|
|
4379
|
+
top?: number | undefined;
|
|
5239
4380
|
select?: string[] | undefined;
|
|
5240
4381
|
skip?: number | undefined;
|
|
5241
|
-
top?: number | undefined;
|
|
5242
4382
|
populate?: string[] | undefined;
|
|
5243
4383
|
} | undefined;
|
|
5244
4384
|
}, {
|
|
@@ -5251,9 +4391,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5251
4391
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5252
4392
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5253
4393
|
limit?: number | undefined;
|
|
4394
|
+
top?: number | undefined;
|
|
5254
4395
|
select?: string[] | undefined;
|
|
5255
4396
|
skip?: number | undefined;
|
|
5256
|
-
top?: number | undefined;
|
|
5257
4397
|
populate?: string[] | undefined;
|
|
5258
4398
|
} | undefined;
|
|
5259
4399
|
}>, z.ZodObject<{
|
|
@@ -5296,9 +4436,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5296
4436
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5297
4437
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5298
4438
|
limit?: number | undefined;
|
|
4439
|
+
top?: number | undefined;
|
|
5299
4440
|
select?: string[] | undefined;
|
|
5300
4441
|
skip?: number | undefined;
|
|
5301
|
-
top?: number | undefined;
|
|
5302
4442
|
populate?: string[] | undefined;
|
|
5303
4443
|
}, {
|
|
5304
4444
|
sort?: {
|
|
@@ -5307,9 +4447,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5307
4447
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5308
4448
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5309
4449
|
limit?: number | undefined;
|
|
4450
|
+
top?: number | undefined;
|
|
5310
4451
|
select?: string[] | undefined;
|
|
5311
4452
|
skip?: number | undefined;
|
|
5312
|
-
top?: number | undefined;
|
|
5313
4453
|
populate?: string[] | undefined;
|
|
5314
4454
|
}>>;
|
|
5315
4455
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5322,9 +4462,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5322
4462
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5323
4463
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5324
4464
|
limit?: number | undefined;
|
|
4465
|
+
top?: number | undefined;
|
|
5325
4466
|
select?: string[] | undefined;
|
|
5326
4467
|
skip?: number | undefined;
|
|
5327
|
-
top?: number | undefined;
|
|
5328
4468
|
populate?: string[] | undefined;
|
|
5329
4469
|
} | undefined;
|
|
5330
4470
|
}, {
|
|
@@ -5337,9 +4477,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5337
4477
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5338
4478
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5339
4479
|
limit?: number | undefined;
|
|
4480
|
+
top?: number | undefined;
|
|
5340
4481
|
select?: string[] | undefined;
|
|
5341
4482
|
skip?: number | undefined;
|
|
5342
|
-
top?: number | undefined;
|
|
5343
4483
|
populate?: string[] | undefined;
|
|
5344
4484
|
} | undefined;
|
|
5345
4485
|
}>, z.ZodObject<{
|
|
@@ -5616,9 +4756,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5616
4756
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5617
4757
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5618
4758
|
limit?: number | undefined;
|
|
4759
|
+
top?: number | undefined;
|
|
5619
4760
|
select?: string[] | undefined;
|
|
5620
4761
|
skip?: number | undefined;
|
|
5621
|
-
top?: number | undefined;
|
|
5622
4762
|
populate?: string[] | undefined;
|
|
5623
4763
|
} | undefined;
|
|
5624
4764
|
} | {
|
|
@@ -5631,9 +4771,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5631
4771
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5632
4772
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5633
4773
|
limit?: number | undefined;
|
|
4774
|
+
top?: number | undefined;
|
|
5634
4775
|
select?: string[] | undefined;
|
|
5635
4776
|
skip?: number | undefined;
|
|
5636
|
-
top?: number | undefined;
|
|
5637
4777
|
populate?: string[] | undefined;
|
|
5638
4778
|
} | undefined;
|
|
5639
4779
|
} | {
|
|
@@ -5706,9 +4846,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5706
4846
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5707
4847
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5708
4848
|
limit?: number | undefined;
|
|
4849
|
+
top?: number | undefined;
|
|
5709
4850
|
select?: string[] | undefined;
|
|
5710
4851
|
skip?: number | undefined;
|
|
5711
|
-
top?: number | undefined;
|
|
5712
4852
|
populate?: string[] | undefined;
|
|
5713
4853
|
} | undefined;
|
|
5714
4854
|
} | {
|
|
@@ -5721,9 +4861,9 @@ declare const DataEngineBatchRequestSchema: z.ZodObject<{
|
|
|
5721
4861
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5722
4862
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5723
4863
|
limit?: number | undefined;
|
|
4864
|
+
top?: number | undefined;
|
|
5724
4865
|
select?: string[] | undefined;
|
|
5725
4866
|
skip?: number | undefined;
|
|
5726
|
-
top?: number | undefined;
|
|
5727
4867
|
populate?: string[] | undefined;
|
|
5728
4868
|
} | undefined;
|
|
5729
4869
|
} | {
|
|
@@ -5829,9 +4969,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5829
4969
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5830
4970
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5831
4971
|
limit?: number | undefined;
|
|
4972
|
+
top?: number | undefined;
|
|
5832
4973
|
select?: string[] | undefined;
|
|
5833
4974
|
skip?: number | undefined;
|
|
5834
|
-
top?: number | undefined;
|
|
5835
4975
|
populate?: string[] | undefined;
|
|
5836
4976
|
}, {
|
|
5837
4977
|
sort?: {
|
|
@@ -5840,9 +4980,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5840
4980
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5841
4981
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5842
4982
|
limit?: number | undefined;
|
|
4983
|
+
top?: number | undefined;
|
|
5843
4984
|
select?: string[] | undefined;
|
|
5844
4985
|
skip?: number | undefined;
|
|
5845
|
-
top?: number | undefined;
|
|
5846
4986
|
populate?: string[] | undefined;
|
|
5847
4987
|
}>>;
|
|
5848
4988
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5855,9 +4995,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5855
4995
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5856
4996
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5857
4997
|
limit?: number | undefined;
|
|
4998
|
+
top?: number | undefined;
|
|
5858
4999
|
select?: string[] | undefined;
|
|
5859
5000
|
skip?: number | undefined;
|
|
5860
|
-
top?: number | undefined;
|
|
5861
5001
|
populate?: string[] | undefined;
|
|
5862
5002
|
} | undefined;
|
|
5863
5003
|
}, {
|
|
@@ -5870,9 +5010,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5870
5010
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5871
5011
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5872
5012
|
limit?: number | undefined;
|
|
5013
|
+
top?: number | undefined;
|
|
5873
5014
|
select?: string[] | undefined;
|
|
5874
5015
|
skip?: number | undefined;
|
|
5875
|
-
top?: number | undefined;
|
|
5876
5016
|
populate?: string[] | undefined;
|
|
5877
5017
|
} | undefined;
|
|
5878
5018
|
}>, z.ZodObject<{
|
|
@@ -5915,9 +5055,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5915
5055
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5916
5056
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5917
5057
|
limit?: number | undefined;
|
|
5058
|
+
top?: number | undefined;
|
|
5918
5059
|
select?: string[] | undefined;
|
|
5919
5060
|
skip?: number | undefined;
|
|
5920
|
-
top?: number | undefined;
|
|
5921
5061
|
populate?: string[] | undefined;
|
|
5922
5062
|
}, {
|
|
5923
5063
|
sort?: {
|
|
@@ -5926,9 +5066,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5926
5066
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5927
5067
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5928
5068
|
limit?: number | undefined;
|
|
5069
|
+
top?: number | undefined;
|
|
5929
5070
|
select?: string[] | undefined;
|
|
5930
5071
|
skip?: number | undefined;
|
|
5931
|
-
top?: number | undefined;
|
|
5932
5072
|
populate?: string[] | undefined;
|
|
5933
5073
|
}>>;
|
|
5934
5074
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5941,9 +5081,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5941
5081
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5942
5082
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5943
5083
|
limit?: number | undefined;
|
|
5084
|
+
top?: number | undefined;
|
|
5944
5085
|
select?: string[] | undefined;
|
|
5945
5086
|
skip?: number | undefined;
|
|
5946
|
-
top?: number | undefined;
|
|
5947
5087
|
populate?: string[] | undefined;
|
|
5948
5088
|
} | undefined;
|
|
5949
5089
|
}, {
|
|
@@ -5956,9 +5096,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
5956
5096
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
5957
5097
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
5958
5098
|
limit?: number | undefined;
|
|
5099
|
+
top?: number | undefined;
|
|
5959
5100
|
select?: string[] | undefined;
|
|
5960
5101
|
skip?: number | undefined;
|
|
5961
|
-
top?: number | undefined;
|
|
5962
5102
|
populate?: string[] | undefined;
|
|
5963
5103
|
} | undefined;
|
|
5964
5104
|
}>, z.ZodObject<{
|
|
@@ -6215,9 +5355,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6215
5355
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6216
5356
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6217
5357
|
limit?: number | undefined;
|
|
5358
|
+
top?: number | undefined;
|
|
6218
5359
|
select?: string[] | undefined;
|
|
6219
5360
|
skip?: number | undefined;
|
|
6220
|
-
top?: number | undefined;
|
|
6221
5361
|
populate?: string[] | undefined;
|
|
6222
5362
|
}, {
|
|
6223
5363
|
sort?: {
|
|
@@ -6226,9 +5366,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6226
5366
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6227
5367
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6228
5368
|
limit?: number | undefined;
|
|
5369
|
+
top?: number | undefined;
|
|
6229
5370
|
select?: string[] | undefined;
|
|
6230
5371
|
skip?: number | undefined;
|
|
6231
|
-
top?: number | undefined;
|
|
6232
5372
|
populate?: string[] | undefined;
|
|
6233
5373
|
}>>;
|
|
6234
5374
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6241,9 +5381,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6241
5381
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6242
5382
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6243
5383
|
limit?: number | undefined;
|
|
5384
|
+
top?: number | undefined;
|
|
6244
5385
|
select?: string[] | undefined;
|
|
6245
5386
|
skip?: number | undefined;
|
|
6246
|
-
top?: number | undefined;
|
|
6247
5387
|
populate?: string[] | undefined;
|
|
6248
5388
|
} | undefined;
|
|
6249
5389
|
}, {
|
|
@@ -6256,9 +5396,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6256
5396
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6257
5397
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6258
5398
|
limit?: number | undefined;
|
|
5399
|
+
top?: number | undefined;
|
|
6259
5400
|
select?: string[] | undefined;
|
|
6260
5401
|
skip?: number | undefined;
|
|
6261
|
-
top?: number | undefined;
|
|
6262
5402
|
populate?: string[] | undefined;
|
|
6263
5403
|
} | undefined;
|
|
6264
5404
|
}>, z.ZodObject<{
|
|
@@ -6301,9 +5441,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6301
5441
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6302
5442
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6303
5443
|
limit?: number | undefined;
|
|
5444
|
+
top?: number | undefined;
|
|
6304
5445
|
select?: string[] | undefined;
|
|
6305
5446
|
skip?: number | undefined;
|
|
6306
|
-
top?: number | undefined;
|
|
6307
5447
|
populate?: string[] | undefined;
|
|
6308
5448
|
}, {
|
|
6309
5449
|
sort?: {
|
|
@@ -6312,9 +5452,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6312
5452
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6313
5453
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6314
5454
|
limit?: number | undefined;
|
|
5455
|
+
top?: number | undefined;
|
|
6315
5456
|
select?: string[] | undefined;
|
|
6316
5457
|
skip?: number | undefined;
|
|
6317
|
-
top?: number | undefined;
|
|
6318
5458
|
populate?: string[] | undefined;
|
|
6319
5459
|
}>>;
|
|
6320
5460
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6327,9 +5467,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6327
5467
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6328
5468
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6329
5469
|
limit?: number | undefined;
|
|
5470
|
+
top?: number | undefined;
|
|
6330
5471
|
select?: string[] | undefined;
|
|
6331
5472
|
skip?: number | undefined;
|
|
6332
|
-
top?: number | undefined;
|
|
6333
5473
|
populate?: string[] | undefined;
|
|
6334
5474
|
} | undefined;
|
|
6335
5475
|
}, {
|
|
@@ -6342,9 +5482,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6342
5482
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6343
5483
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6344
5484
|
limit?: number | undefined;
|
|
5485
|
+
top?: number | undefined;
|
|
6345
5486
|
select?: string[] | undefined;
|
|
6346
5487
|
skip?: number | undefined;
|
|
6347
|
-
top?: number | undefined;
|
|
6348
5488
|
populate?: string[] | undefined;
|
|
6349
5489
|
} | undefined;
|
|
6350
5490
|
}>, z.ZodObject<{
|
|
@@ -6621,9 +5761,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6621
5761
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6622
5762
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6623
5763
|
limit?: number | undefined;
|
|
5764
|
+
top?: number | undefined;
|
|
6624
5765
|
select?: string[] | undefined;
|
|
6625
5766
|
skip?: number | undefined;
|
|
6626
|
-
top?: number | undefined;
|
|
6627
5767
|
populate?: string[] | undefined;
|
|
6628
5768
|
} | undefined;
|
|
6629
5769
|
} | {
|
|
@@ -6636,9 +5776,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6636
5776
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6637
5777
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6638
5778
|
limit?: number | undefined;
|
|
5779
|
+
top?: number | undefined;
|
|
6639
5780
|
select?: string[] | undefined;
|
|
6640
5781
|
skip?: number | undefined;
|
|
6641
|
-
top?: number | undefined;
|
|
6642
5782
|
populate?: string[] | undefined;
|
|
6643
5783
|
} | undefined;
|
|
6644
5784
|
} | {
|
|
@@ -6711,9 +5851,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6711
5851
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6712
5852
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6713
5853
|
limit?: number | undefined;
|
|
5854
|
+
top?: number | undefined;
|
|
6714
5855
|
select?: string[] | undefined;
|
|
6715
5856
|
skip?: number | undefined;
|
|
6716
|
-
top?: number | undefined;
|
|
6717
5857
|
populate?: string[] | undefined;
|
|
6718
5858
|
} | undefined;
|
|
6719
5859
|
} | {
|
|
@@ -6726,9 +5866,9 @@ declare const DataEngineRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodO
|
|
|
6726
5866
|
}[] | Record<string, "asc" | "desc"> | Record<string, 1 | -1> | undefined;
|
|
6727
5867
|
filter?: Record<string, any> | FilterCondition | undefined;
|
|
6728
5868
|
limit?: number | undefined;
|
|
5869
|
+
top?: number | undefined;
|
|
6729
5870
|
select?: string[] | undefined;
|
|
6730
5871
|
skip?: number | undefined;
|
|
6731
|
-
top?: number | undefined;
|
|
6732
5872
|
populate?: string[] | undefined;
|
|
6733
5873
|
} | undefined;
|
|
6734
5874
|
} | {
|
|
@@ -7538,287 +6678,36 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
7538
6678
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
7539
6679
|
}, "strip", z.ZodTypeAny, {
|
|
7540
6680
|
timeout?: number | undefined;
|
|
7541
|
-
tenantId?: string | undefined;
|
|
7542
|
-
transaction?: any;
|
|
7543
|
-
skipCache?: boolean | undefined;
|
|
7544
|
-
traceContext?: Record<string, string> | undefined;
|
|
7545
|
-
}, {
|
|
7546
|
-
timeout?: number | undefined;
|
|
7547
|
-
tenantId?: string | undefined;
|
|
7548
|
-
transaction?: any;
|
|
7549
|
-
skipCache?: boolean | undefined;
|
|
7550
|
-
traceContext?: Record<string, string> | undefined;
|
|
7551
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
7552
|
-
/**
|
|
7553
|
-
* Find multiple records matching the structured query.
|
|
7554
|
-
* Parsing the QueryAST is the responsibility of the driver implementation.
|
|
7555
|
-
*
|
|
7556
|
-
* @param object - The name of the object/table to query (e.g. 'account').
|
|
7557
|
-
* @param query - The structured QueryAST (filters, sorts, joins, pagination).
|
|
7558
|
-
* @param options - Driver options.
|
|
7559
|
-
* @returns Array of records.
|
|
7560
|
-
*
|
|
7561
|
-
* @example
|
|
7562
|
-
* await driver.find('account', {
|
|
7563
|
-
* filters: [['status', '=', 'active'], 'and', ['amount', '>', 500]],
|
|
7564
|
-
* sort: [{ field: 'created_at', order: 'desc' }],
|
|
7565
|
-
* top: 10
|
|
7566
|
-
* });
|
|
7567
|
-
* @returns Array of records.
|
|
7568
|
-
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
7569
|
-
*/
|
|
7570
|
-
find: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
7571
|
-
object: z.ZodString;
|
|
7572
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
7573
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
7574
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
7575
|
-
query: z.ZodString;
|
|
7576
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7577
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7578
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
7579
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
7580
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
7581
|
-
language: z.ZodOptional<z.ZodString>;
|
|
7582
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7583
|
-
}, "strip", z.ZodTypeAny, {
|
|
7584
|
-
query: string;
|
|
7585
|
-
fuzzy: boolean;
|
|
7586
|
-
operator: "and" | "or";
|
|
7587
|
-
highlight: boolean;
|
|
7588
|
-
fields?: string[] | undefined;
|
|
7589
|
-
boost?: Record<string, number> | undefined;
|
|
7590
|
-
minScore?: number | undefined;
|
|
7591
|
-
language?: string | undefined;
|
|
7592
|
-
}, {
|
|
7593
|
-
query: string;
|
|
7594
|
-
fields?: string[] | undefined;
|
|
7595
|
-
fuzzy?: boolean | undefined;
|
|
7596
|
-
operator?: "and" | "or" | undefined;
|
|
7597
|
-
boost?: Record<string, number> | undefined;
|
|
7598
|
-
minScore?: number | undefined;
|
|
7599
|
-
language?: string | undefined;
|
|
7600
|
-
highlight?: boolean | undefined;
|
|
7601
|
-
}>>;
|
|
7602
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7603
|
-
field: z.ZodString;
|
|
7604
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
7605
|
-
}, "strip", z.ZodTypeAny, {
|
|
7606
|
-
field: string;
|
|
7607
|
-
order: "asc" | "desc";
|
|
7608
|
-
}, {
|
|
7609
|
-
field: string;
|
|
7610
|
-
order?: "asc" | "desc" | undefined;
|
|
7611
|
-
}>, "many">>;
|
|
7612
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7613
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
7614
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7615
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
7616
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7617
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
7618
|
-
field: z.ZodOptional<z.ZodString>;
|
|
7619
|
-
alias: z.ZodString;
|
|
7620
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
7621
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
7622
|
-
}, "strip", z.ZodTypeAny, {
|
|
7623
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
7624
|
-
alias: string;
|
|
7625
|
-
filter?: FilterCondition | undefined;
|
|
7626
|
-
field?: string | undefined;
|
|
7627
|
-
distinct?: boolean | undefined;
|
|
7628
|
-
}, {
|
|
7629
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
7630
|
-
alias: string;
|
|
7631
|
-
filter?: FilterCondition | undefined;
|
|
7632
|
-
field?: string | undefined;
|
|
7633
|
-
distinct?: boolean | undefined;
|
|
7634
|
-
}>, "many">>;
|
|
7635
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7636
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
7637
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7638
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
7639
|
-
field: z.ZodOptional<z.ZodString>;
|
|
7640
|
-
alias: z.ZodString;
|
|
7641
|
-
over: z.ZodObject<{
|
|
7642
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7643
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7644
|
-
field: z.ZodString;
|
|
7645
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
7646
|
-
}, "strip", z.ZodTypeAny, {
|
|
7647
|
-
field: string;
|
|
7648
|
-
order: "asc" | "desc";
|
|
7649
|
-
}, {
|
|
7650
|
-
field: string;
|
|
7651
|
-
order?: "asc" | "desc" | undefined;
|
|
7652
|
-
}>, "many">>;
|
|
7653
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
7654
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
7655
|
-
start: z.ZodOptional<z.ZodString>;
|
|
7656
|
-
end: z.ZodOptional<z.ZodString>;
|
|
7657
|
-
}, "strip", z.ZodTypeAny, {
|
|
7658
|
-
type?: "rows" | "range" | undefined;
|
|
7659
|
-
start?: string | undefined;
|
|
7660
|
-
end?: string | undefined;
|
|
7661
|
-
}, {
|
|
7662
|
-
type?: "rows" | "range" | undefined;
|
|
7663
|
-
start?: string | undefined;
|
|
7664
|
-
end?: string | undefined;
|
|
7665
|
-
}>>;
|
|
7666
|
-
}, "strip", z.ZodTypeAny, {
|
|
7667
|
-
orderBy?: {
|
|
7668
|
-
field: string;
|
|
7669
|
-
order: "asc" | "desc";
|
|
7670
|
-
}[] | undefined;
|
|
7671
|
-
partitionBy?: string[] | undefined;
|
|
7672
|
-
frame?: {
|
|
7673
|
-
type?: "rows" | "range" | undefined;
|
|
7674
|
-
start?: string | undefined;
|
|
7675
|
-
end?: string | undefined;
|
|
7676
|
-
} | undefined;
|
|
7677
|
-
}, {
|
|
7678
|
-
orderBy?: {
|
|
7679
|
-
field: string;
|
|
7680
|
-
order?: "asc" | "desc" | undefined;
|
|
7681
|
-
}[] | undefined;
|
|
7682
|
-
partitionBy?: string[] | undefined;
|
|
7683
|
-
frame?: {
|
|
7684
|
-
type?: "rows" | "range" | undefined;
|
|
7685
|
-
start?: string | undefined;
|
|
7686
|
-
end?: string | undefined;
|
|
7687
|
-
} | undefined;
|
|
7688
|
-
}>;
|
|
7689
|
-
}, "strip", z.ZodTypeAny, {
|
|
7690
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
7691
|
-
alias: string;
|
|
7692
|
-
over: {
|
|
7693
|
-
orderBy?: {
|
|
7694
|
-
field: string;
|
|
7695
|
-
order: "asc" | "desc";
|
|
7696
|
-
}[] | undefined;
|
|
7697
|
-
partitionBy?: string[] | undefined;
|
|
7698
|
-
frame?: {
|
|
7699
|
-
type?: "rows" | "range" | undefined;
|
|
7700
|
-
start?: string | undefined;
|
|
7701
|
-
end?: string | undefined;
|
|
7702
|
-
} | undefined;
|
|
7703
|
-
};
|
|
7704
|
-
field?: string | undefined;
|
|
7705
|
-
}, {
|
|
7706
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
7707
|
-
alias: string;
|
|
7708
|
-
over: {
|
|
7709
|
-
orderBy?: {
|
|
7710
|
-
field: string;
|
|
7711
|
-
order?: "asc" | "desc" | undefined;
|
|
7712
|
-
}[] | undefined;
|
|
7713
|
-
partitionBy?: string[] | undefined;
|
|
7714
|
-
frame?: {
|
|
7715
|
-
type?: "rows" | "range" | undefined;
|
|
7716
|
-
start?: string | undefined;
|
|
7717
|
-
end?: string | undefined;
|
|
7718
|
-
} | undefined;
|
|
7719
|
-
};
|
|
7720
|
-
field?: string | undefined;
|
|
7721
|
-
}>, "many">>;
|
|
7722
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
7723
|
-
}, "strip", z.ZodTypeAny, {
|
|
7724
|
-
object: string;
|
|
7725
|
-
where?: FilterCondition | undefined;
|
|
7726
|
-
distinct?: boolean | undefined;
|
|
7727
|
-
fields?: any[] | undefined;
|
|
7728
|
-
search?: {
|
|
7729
|
-
query: string;
|
|
7730
|
-
fuzzy: boolean;
|
|
7731
|
-
operator: "and" | "or";
|
|
7732
|
-
highlight: boolean;
|
|
7733
|
-
fields?: string[] | undefined;
|
|
7734
|
-
boost?: Record<string, number> | undefined;
|
|
7735
|
-
minScore?: number | undefined;
|
|
7736
|
-
language?: string | undefined;
|
|
7737
|
-
} | undefined;
|
|
7738
|
-
orderBy?: {
|
|
7739
|
-
field: string;
|
|
7740
|
-
order: "asc" | "desc";
|
|
7741
|
-
}[] | undefined;
|
|
7742
|
-
limit?: number | undefined;
|
|
7743
|
-
offset?: number | undefined;
|
|
7744
|
-
cursor?: Record<string, any> | undefined;
|
|
7745
|
-
joins?: any[] | undefined;
|
|
7746
|
-
aggregations?: {
|
|
7747
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
7748
|
-
alias: string;
|
|
7749
|
-
filter?: FilterCondition | undefined;
|
|
7750
|
-
field?: string | undefined;
|
|
7751
|
-
distinct?: boolean | undefined;
|
|
7752
|
-
}[] | undefined;
|
|
7753
|
-
groupBy?: string[] | undefined;
|
|
7754
|
-
having?: FilterCondition | undefined;
|
|
7755
|
-
windowFunctions?: {
|
|
7756
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
7757
|
-
alias: string;
|
|
7758
|
-
over: {
|
|
7759
|
-
orderBy?: {
|
|
7760
|
-
field: string;
|
|
7761
|
-
order: "asc" | "desc";
|
|
7762
|
-
}[] | undefined;
|
|
7763
|
-
partitionBy?: string[] | undefined;
|
|
7764
|
-
frame?: {
|
|
7765
|
-
type?: "rows" | "range" | undefined;
|
|
7766
|
-
start?: string | undefined;
|
|
7767
|
-
end?: string | undefined;
|
|
7768
|
-
} | undefined;
|
|
7769
|
-
};
|
|
7770
|
-
field?: string | undefined;
|
|
7771
|
-
}[] | undefined;
|
|
6681
|
+
tenantId?: string | undefined;
|
|
6682
|
+
transaction?: any;
|
|
6683
|
+
skipCache?: boolean | undefined;
|
|
6684
|
+
traceContext?: Record<string, string> | undefined;
|
|
7772
6685
|
}, {
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
filter?: FilterCondition | undefined;
|
|
7799
|
-
field?: string | undefined;
|
|
7800
|
-
distinct?: boolean | undefined;
|
|
7801
|
-
}[] | undefined;
|
|
7802
|
-
groupBy?: string[] | undefined;
|
|
7803
|
-
having?: FilterCondition | undefined;
|
|
7804
|
-
windowFunctions?: {
|
|
7805
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
7806
|
-
alias: string;
|
|
7807
|
-
over: {
|
|
7808
|
-
orderBy?: {
|
|
7809
|
-
field: string;
|
|
7810
|
-
order?: "asc" | "desc" | undefined;
|
|
7811
|
-
}[] | undefined;
|
|
7812
|
-
partitionBy?: string[] | undefined;
|
|
7813
|
-
frame?: {
|
|
7814
|
-
type?: "rows" | "range" | undefined;
|
|
7815
|
-
start?: string | undefined;
|
|
7816
|
-
end?: string | undefined;
|
|
7817
|
-
} | undefined;
|
|
7818
|
-
};
|
|
7819
|
-
field?: string | undefined;
|
|
7820
|
-
}[] | undefined;
|
|
7821
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
6686
|
+
timeout?: number | undefined;
|
|
6687
|
+
tenantId?: string | undefined;
|
|
6688
|
+
transaction?: any;
|
|
6689
|
+
skipCache?: boolean | undefined;
|
|
6690
|
+
traceContext?: Record<string, string> | undefined;
|
|
6691
|
+
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
6692
|
+
/**
|
|
6693
|
+
* Find multiple records matching the structured query.
|
|
6694
|
+
* Parsing the QueryAST is the responsibility of the driver implementation.
|
|
6695
|
+
*
|
|
6696
|
+
* @param object - The name of the object/table to query (e.g. 'account').
|
|
6697
|
+
* @param query - The structured QueryAST (filters, sorts, joins, pagination).
|
|
6698
|
+
* @param options - Driver options.
|
|
6699
|
+
* @returns Array of records.
|
|
6700
|
+
*
|
|
6701
|
+
* @example
|
|
6702
|
+
* await driver.find('account', {
|
|
6703
|
+
* filters: [['status', '=', 'active'], 'and', ['amount', '>', 500]],
|
|
6704
|
+
* sort: [{ field: 'created_at', order: 'desc' }],
|
|
6705
|
+
* top: 10
|
|
6706
|
+
* });
|
|
6707
|
+
* @returns Array of records.
|
|
6708
|
+
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
6709
|
+
*/
|
|
6710
|
+
find: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodOptional<z.ZodObject<{
|
|
7822
6711
|
/**
|
|
7823
6712
|
* Transaction handle/identifier.
|
|
7824
6713
|
* If provided, the operation must run within this transaction.
|
|
@@ -7864,258 +6753,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
7864
6753
|
* @param options - Driver options.
|
|
7865
6754
|
* @returns AsyncIterable/ReadableStream of records.
|
|
7866
6755
|
*/
|
|
7867
|
-
findStream: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
7868
|
-
object: z.ZodString;
|
|
7869
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
7870
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
7871
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
7872
|
-
query: z.ZodString;
|
|
7873
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7874
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7875
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
7876
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
7877
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
7878
|
-
language: z.ZodOptional<z.ZodString>;
|
|
7879
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7880
|
-
}, "strip", z.ZodTypeAny, {
|
|
7881
|
-
query: string;
|
|
7882
|
-
fuzzy: boolean;
|
|
7883
|
-
operator: "and" | "or";
|
|
7884
|
-
highlight: boolean;
|
|
7885
|
-
fields?: string[] | undefined;
|
|
7886
|
-
boost?: Record<string, number> | undefined;
|
|
7887
|
-
minScore?: number | undefined;
|
|
7888
|
-
language?: string | undefined;
|
|
7889
|
-
}, {
|
|
7890
|
-
query: string;
|
|
7891
|
-
fields?: string[] | undefined;
|
|
7892
|
-
fuzzy?: boolean | undefined;
|
|
7893
|
-
operator?: "and" | "or" | undefined;
|
|
7894
|
-
boost?: Record<string, number> | undefined;
|
|
7895
|
-
minScore?: number | undefined;
|
|
7896
|
-
language?: string | undefined;
|
|
7897
|
-
highlight?: boolean | undefined;
|
|
7898
|
-
}>>;
|
|
7899
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7900
|
-
field: z.ZodString;
|
|
7901
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
7902
|
-
}, "strip", z.ZodTypeAny, {
|
|
7903
|
-
field: string;
|
|
7904
|
-
order: "asc" | "desc";
|
|
7905
|
-
}, {
|
|
7906
|
-
field: string;
|
|
7907
|
-
order?: "asc" | "desc" | undefined;
|
|
7908
|
-
}>, "many">>;
|
|
7909
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7910
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
7911
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7912
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
7913
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7914
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
7915
|
-
field: z.ZodOptional<z.ZodString>;
|
|
7916
|
-
alias: z.ZodString;
|
|
7917
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
7918
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
7919
|
-
}, "strip", z.ZodTypeAny, {
|
|
7920
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
7921
|
-
alias: string;
|
|
7922
|
-
filter?: FilterCondition | undefined;
|
|
7923
|
-
field?: string | undefined;
|
|
7924
|
-
distinct?: boolean | undefined;
|
|
7925
|
-
}, {
|
|
7926
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
7927
|
-
alias: string;
|
|
7928
|
-
filter?: FilterCondition | undefined;
|
|
7929
|
-
field?: string | undefined;
|
|
7930
|
-
distinct?: boolean | undefined;
|
|
7931
|
-
}>, "many">>;
|
|
7932
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7933
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
7934
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7935
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
7936
|
-
field: z.ZodOptional<z.ZodString>;
|
|
7937
|
-
alias: z.ZodString;
|
|
7938
|
-
over: z.ZodObject<{
|
|
7939
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7940
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7941
|
-
field: z.ZodString;
|
|
7942
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
7943
|
-
}, "strip", z.ZodTypeAny, {
|
|
7944
|
-
field: string;
|
|
7945
|
-
order: "asc" | "desc";
|
|
7946
|
-
}, {
|
|
7947
|
-
field: string;
|
|
7948
|
-
order?: "asc" | "desc" | undefined;
|
|
7949
|
-
}>, "many">>;
|
|
7950
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
7951
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
7952
|
-
start: z.ZodOptional<z.ZodString>;
|
|
7953
|
-
end: z.ZodOptional<z.ZodString>;
|
|
7954
|
-
}, "strip", z.ZodTypeAny, {
|
|
7955
|
-
type?: "rows" | "range" | undefined;
|
|
7956
|
-
start?: string | undefined;
|
|
7957
|
-
end?: string | undefined;
|
|
7958
|
-
}, {
|
|
7959
|
-
type?: "rows" | "range" | undefined;
|
|
7960
|
-
start?: string | undefined;
|
|
7961
|
-
end?: string | undefined;
|
|
7962
|
-
}>>;
|
|
7963
|
-
}, "strip", z.ZodTypeAny, {
|
|
7964
|
-
orderBy?: {
|
|
7965
|
-
field: string;
|
|
7966
|
-
order: "asc" | "desc";
|
|
7967
|
-
}[] | undefined;
|
|
7968
|
-
partitionBy?: string[] | undefined;
|
|
7969
|
-
frame?: {
|
|
7970
|
-
type?: "rows" | "range" | undefined;
|
|
7971
|
-
start?: string | undefined;
|
|
7972
|
-
end?: string | undefined;
|
|
7973
|
-
} | undefined;
|
|
7974
|
-
}, {
|
|
7975
|
-
orderBy?: {
|
|
7976
|
-
field: string;
|
|
7977
|
-
order?: "asc" | "desc" | undefined;
|
|
7978
|
-
}[] | undefined;
|
|
7979
|
-
partitionBy?: string[] | undefined;
|
|
7980
|
-
frame?: {
|
|
7981
|
-
type?: "rows" | "range" | undefined;
|
|
7982
|
-
start?: string | undefined;
|
|
7983
|
-
end?: string | undefined;
|
|
7984
|
-
} | undefined;
|
|
7985
|
-
}>;
|
|
7986
|
-
}, "strip", z.ZodTypeAny, {
|
|
7987
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
7988
|
-
alias: string;
|
|
7989
|
-
over: {
|
|
7990
|
-
orderBy?: {
|
|
7991
|
-
field: string;
|
|
7992
|
-
order: "asc" | "desc";
|
|
7993
|
-
}[] | undefined;
|
|
7994
|
-
partitionBy?: string[] | undefined;
|
|
7995
|
-
frame?: {
|
|
7996
|
-
type?: "rows" | "range" | undefined;
|
|
7997
|
-
start?: string | undefined;
|
|
7998
|
-
end?: string | undefined;
|
|
7999
|
-
} | undefined;
|
|
8000
|
-
};
|
|
8001
|
-
field?: string | undefined;
|
|
8002
|
-
}, {
|
|
8003
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8004
|
-
alias: string;
|
|
8005
|
-
over: {
|
|
8006
|
-
orderBy?: {
|
|
8007
|
-
field: string;
|
|
8008
|
-
order?: "asc" | "desc" | undefined;
|
|
8009
|
-
}[] | undefined;
|
|
8010
|
-
partitionBy?: string[] | undefined;
|
|
8011
|
-
frame?: {
|
|
8012
|
-
type?: "rows" | "range" | undefined;
|
|
8013
|
-
start?: string | undefined;
|
|
8014
|
-
end?: string | undefined;
|
|
8015
|
-
} | undefined;
|
|
8016
|
-
};
|
|
8017
|
-
field?: string | undefined;
|
|
8018
|
-
}>, "many">>;
|
|
8019
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
8020
|
-
}, "strip", z.ZodTypeAny, {
|
|
8021
|
-
object: string;
|
|
8022
|
-
where?: FilterCondition | undefined;
|
|
8023
|
-
distinct?: boolean | undefined;
|
|
8024
|
-
fields?: any[] | undefined;
|
|
8025
|
-
search?: {
|
|
8026
|
-
query: string;
|
|
8027
|
-
fuzzy: boolean;
|
|
8028
|
-
operator: "and" | "or";
|
|
8029
|
-
highlight: boolean;
|
|
8030
|
-
fields?: string[] | undefined;
|
|
8031
|
-
boost?: Record<string, number> | undefined;
|
|
8032
|
-
minScore?: number | undefined;
|
|
8033
|
-
language?: string | undefined;
|
|
8034
|
-
} | undefined;
|
|
8035
|
-
orderBy?: {
|
|
8036
|
-
field: string;
|
|
8037
|
-
order: "asc" | "desc";
|
|
8038
|
-
}[] | undefined;
|
|
8039
|
-
limit?: number | undefined;
|
|
8040
|
-
offset?: number | undefined;
|
|
8041
|
-
cursor?: Record<string, any> | undefined;
|
|
8042
|
-
joins?: any[] | undefined;
|
|
8043
|
-
aggregations?: {
|
|
8044
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8045
|
-
alias: string;
|
|
8046
|
-
filter?: FilterCondition | undefined;
|
|
8047
|
-
field?: string | undefined;
|
|
8048
|
-
distinct?: boolean | undefined;
|
|
8049
|
-
}[] | undefined;
|
|
8050
|
-
groupBy?: string[] | undefined;
|
|
8051
|
-
having?: FilterCondition | undefined;
|
|
8052
|
-
windowFunctions?: {
|
|
8053
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8054
|
-
alias: string;
|
|
8055
|
-
over: {
|
|
8056
|
-
orderBy?: {
|
|
8057
|
-
field: string;
|
|
8058
|
-
order: "asc" | "desc";
|
|
8059
|
-
}[] | undefined;
|
|
8060
|
-
partitionBy?: string[] | undefined;
|
|
8061
|
-
frame?: {
|
|
8062
|
-
type?: "rows" | "range" | undefined;
|
|
8063
|
-
start?: string | undefined;
|
|
8064
|
-
end?: string | undefined;
|
|
8065
|
-
} | undefined;
|
|
8066
|
-
};
|
|
8067
|
-
field?: string | undefined;
|
|
8068
|
-
}[] | undefined;
|
|
8069
|
-
}, {
|
|
8070
|
-
object: string;
|
|
8071
|
-
where?: FilterCondition | undefined;
|
|
8072
|
-
distinct?: boolean | undefined;
|
|
8073
|
-
fields?: any[] | undefined;
|
|
8074
|
-
search?: {
|
|
8075
|
-
query: string;
|
|
8076
|
-
fields?: string[] | undefined;
|
|
8077
|
-
fuzzy?: boolean | undefined;
|
|
8078
|
-
operator?: "and" | "or" | undefined;
|
|
8079
|
-
boost?: Record<string, number> | undefined;
|
|
8080
|
-
minScore?: number | undefined;
|
|
8081
|
-
language?: string | undefined;
|
|
8082
|
-
highlight?: boolean | undefined;
|
|
8083
|
-
} | undefined;
|
|
8084
|
-
orderBy?: {
|
|
8085
|
-
field: string;
|
|
8086
|
-
order?: "asc" | "desc" | undefined;
|
|
8087
|
-
}[] | undefined;
|
|
8088
|
-
limit?: number | undefined;
|
|
8089
|
-
offset?: number | undefined;
|
|
8090
|
-
cursor?: Record<string, any> | undefined;
|
|
8091
|
-
joins?: any[] | undefined;
|
|
8092
|
-
aggregations?: {
|
|
8093
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8094
|
-
alias: string;
|
|
8095
|
-
filter?: FilterCondition | undefined;
|
|
8096
|
-
field?: string | undefined;
|
|
8097
|
-
distinct?: boolean | undefined;
|
|
8098
|
-
}[] | undefined;
|
|
8099
|
-
groupBy?: string[] | undefined;
|
|
8100
|
-
having?: FilterCondition | undefined;
|
|
8101
|
-
windowFunctions?: {
|
|
8102
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8103
|
-
alias: string;
|
|
8104
|
-
over: {
|
|
8105
|
-
orderBy?: {
|
|
8106
|
-
field: string;
|
|
8107
|
-
order?: "asc" | "desc" | undefined;
|
|
8108
|
-
}[] | undefined;
|
|
8109
|
-
partitionBy?: string[] | undefined;
|
|
8110
|
-
frame?: {
|
|
8111
|
-
type?: "rows" | "range" | undefined;
|
|
8112
|
-
start?: string | undefined;
|
|
8113
|
-
end?: string | undefined;
|
|
8114
|
-
} | undefined;
|
|
8115
|
-
};
|
|
8116
|
-
field?: string | undefined;
|
|
8117
|
-
}[] | undefined;
|
|
8118
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
6756
|
+
findStream: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodOptional<z.ZodObject<{
|
|
8119
6757
|
/**
|
|
8120
6758
|
* Transaction handle/identifier.
|
|
8121
6759
|
* If provided, the operation must run within this transaction.
|
|
@@ -8162,258 +6800,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
8162
6800
|
* @returns The record or null.
|
|
8163
6801
|
* MUST return `id` as string. MUST NOT return implementation details like `_id`.
|
|
8164
6802
|
*/
|
|
8165
|
-
findOne: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
8166
|
-
object: z.ZodString;
|
|
8167
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
8168
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
8169
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
8170
|
-
query: z.ZodString;
|
|
8171
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8172
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8173
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
8174
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
8175
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
8176
|
-
language: z.ZodOptional<z.ZodString>;
|
|
8177
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8178
|
-
}, "strip", z.ZodTypeAny, {
|
|
8179
|
-
query: string;
|
|
8180
|
-
fuzzy: boolean;
|
|
8181
|
-
operator: "and" | "or";
|
|
8182
|
-
highlight: boolean;
|
|
8183
|
-
fields?: string[] | undefined;
|
|
8184
|
-
boost?: Record<string, number> | undefined;
|
|
8185
|
-
minScore?: number | undefined;
|
|
8186
|
-
language?: string | undefined;
|
|
8187
|
-
}, {
|
|
8188
|
-
query: string;
|
|
8189
|
-
fields?: string[] | undefined;
|
|
8190
|
-
fuzzy?: boolean | undefined;
|
|
8191
|
-
operator?: "and" | "or" | undefined;
|
|
8192
|
-
boost?: Record<string, number> | undefined;
|
|
8193
|
-
minScore?: number | undefined;
|
|
8194
|
-
language?: string | undefined;
|
|
8195
|
-
highlight?: boolean | undefined;
|
|
8196
|
-
}>>;
|
|
8197
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8198
|
-
field: z.ZodString;
|
|
8199
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
8200
|
-
}, "strip", z.ZodTypeAny, {
|
|
8201
|
-
field: string;
|
|
8202
|
-
order: "asc" | "desc";
|
|
8203
|
-
}, {
|
|
8204
|
-
field: string;
|
|
8205
|
-
order?: "asc" | "desc" | undefined;
|
|
8206
|
-
}>, "many">>;
|
|
8207
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
8208
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
8209
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8210
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
8211
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8212
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
8213
|
-
field: z.ZodOptional<z.ZodString>;
|
|
8214
|
-
alias: z.ZodString;
|
|
8215
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
8216
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
8217
|
-
}, "strip", z.ZodTypeAny, {
|
|
8218
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8219
|
-
alias: string;
|
|
8220
|
-
filter?: FilterCondition | undefined;
|
|
8221
|
-
field?: string | undefined;
|
|
8222
|
-
distinct?: boolean | undefined;
|
|
8223
|
-
}, {
|
|
8224
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8225
|
-
alias: string;
|
|
8226
|
-
filter?: FilterCondition | undefined;
|
|
8227
|
-
field?: string | undefined;
|
|
8228
|
-
distinct?: boolean | undefined;
|
|
8229
|
-
}>, "many">>;
|
|
8230
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8231
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
8232
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8233
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
8234
|
-
field: z.ZodOptional<z.ZodString>;
|
|
8235
|
-
alias: z.ZodString;
|
|
8236
|
-
over: z.ZodObject<{
|
|
8237
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8238
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8239
|
-
field: z.ZodString;
|
|
8240
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
8241
|
-
}, "strip", z.ZodTypeAny, {
|
|
8242
|
-
field: string;
|
|
8243
|
-
order: "asc" | "desc";
|
|
8244
|
-
}, {
|
|
8245
|
-
field: string;
|
|
8246
|
-
order?: "asc" | "desc" | undefined;
|
|
8247
|
-
}>, "many">>;
|
|
8248
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
8249
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
8250
|
-
start: z.ZodOptional<z.ZodString>;
|
|
8251
|
-
end: z.ZodOptional<z.ZodString>;
|
|
8252
|
-
}, "strip", z.ZodTypeAny, {
|
|
8253
|
-
type?: "rows" | "range" | undefined;
|
|
8254
|
-
start?: string | undefined;
|
|
8255
|
-
end?: string | undefined;
|
|
8256
|
-
}, {
|
|
8257
|
-
type?: "rows" | "range" | undefined;
|
|
8258
|
-
start?: string | undefined;
|
|
8259
|
-
end?: string | undefined;
|
|
8260
|
-
}>>;
|
|
8261
|
-
}, "strip", z.ZodTypeAny, {
|
|
8262
|
-
orderBy?: {
|
|
8263
|
-
field: string;
|
|
8264
|
-
order: "asc" | "desc";
|
|
8265
|
-
}[] | undefined;
|
|
8266
|
-
partitionBy?: string[] | undefined;
|
|
8267
|
-
frame?: {
|
|
8268
|
-
type?: "rows" | "range" | undefined;
|
|
8269
|
-
start?: string | undefined;
|
|
8270
|
-
end?: string | undefined;
|
|
8271
|
-
} | undefined;
|
|
8272
|
-
}, {
|
|
8273
|
-
orderBy?: {
|
|
8274
|
-
field: string;
|
|
8275
|
-
order?: "asc" | "desc" | undefined;
|
|
8276
|
-
}[] | undefined;
|
|
8277
|
-
partitionBy?: string[] | undefined;
|
|
8278
|
-
frame?: {
|
|
8279
|
-
type?: "rows" | "range" | undefined;
|
|
8280
|
-
start?: string | undefined;
|
|
8281
|
-
end?: string | undefined;
|
|
8282
|
-
} | undefined;
|
|
8283
|
-
}>;
|
|
8284
|
-
}, "strip", z.ZodTypeAny, {
|
|
8285
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8286
|
-
alias: string;
|
|
8287
|
-
over: {
|
|
8288
|
-
orderBy?: {
|
|
8289
|
-
field: string;
|
|
8290
|
-
order: "asc" | "desc";
|
|
8291
|
-
}[] | undefined;
|
|
8292
|
-
partitionBy?: string[] | undefined;
|
|
8293
|
-
frame?: {
|
|
8294
|
-
type?: "rows" | "range" | undefined;
|
|
8295
|
-
start?: string | undefined;
|
|
8296
|
-
end?: string | undefined;
|
|
8297
|
-
} | undefined;
|
|
8298
|
-
};
|
|
8299
|
-
field?: string | undefined;
|
|
8300
|
-
}, {
|
|
8301
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8302
|
-
alias: string;
|
|
8303
|
-
over: {
|
|
8304
|
-
orderBy?: {
|
|
8305
|
-
field: string;
|
|
8306
|
-
order?: "asc" | "desc" | undefined;
|
|
8307
|
-
}[] | undefined;
|
|
8308
|
-
partitionBy?: string[] | undefined;
|
|
8309
|
-
frame?: {
|
|
8310
|
-
type?: "rows" | "range" | undefined;
|
|
8311
|
-
start?: string | undefined;
|
|
8312
|
-
end?: string | undefined;
|
|
8313
|
-
} | undefined;
|
|
8314
|
-
};
|
|
8315
|
-
field?: string | undefined;
|
|
8316
|
-
}>, "many">>;
|
|
8317
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
8318
|
-
}, "strip", z.ZodTypeAny, {
|
|
8319
|
-
object: string;
|
|
8320
|
-
where?: FilterCondition | undefined;
|
|
8321
|
-
distinct?: boolean | undefined;
|
|
8322
|
-
fields?: any[] | undefined;
|
|
8323
|
-
search?: {
|
|
8324
|
-
query: string;
|
|
8325
|
-
fuzzy: boolean;
|
|
8326
|
-
operator: "and" | "or";
|
|
8327
|
-
highlight: boolean;
|
|
8328
|
-
fields?: string[] | undefined;
|
|
8329
|
-
boost?: Record<string, number> | undefined;
|
|
8330
|
-
minScore?: number | undefined;
|
|
8331
|
-
language?: string | undefined;
|
|
8332
|
-
} | undefined;
|
|
8333
|
-
orderBy?: {
|
|
8334
|
-
field: string;
|
|
8335
|
-
order: "asc" | "desc";
|
|
8336
|
-
}[] | undefined;
|
|
8337
|
-
limit?: number | undefined;
|
|
8338
|
-
offset?: number | undefined;
|
|
8339
|
-
cursor?: Record<string, any> | undefined;
|
|
8340
|
-
joins?: any[] | undefined;
|
|
8341
|
-
aggregations?: {
|
|
8342
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8343
|
-
alias: string;
|
|
8344
|
-
filter?: FilterCondition | undefined;
|
|
8345
|
-
field?: string | undefined;
|
|
8346
|
-
distinct?: boolean | undefined;
|
|
8347
|
-
}[] | undefined;
|
|
8348
|
-
groupBy?: string[] | undefined;
|
|
8349
|
-
having?: FilterCondition | undefined;
|
|
8350
|
-
windowFunctions?: {
|
|
8351
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8352
|
-
alias: string;
|
|
8353
|
-
over: {
|
|
8354
|
-
orderBy?: {
|
|
8355
|
-
field: string;
|
|
8356
|
-
order: "asc" | "desc";
|
|
8357
|
-
}[] | undefined;
|
|
8358
|
-
partitionBy?: string[] | undefined;
|
|
8359
|
-
frame?: {
|
|
8360
|
-
type?: "rows" | "range" | undefined;
|
|
8361
|
-
start?: string | undefined;
|
|
8362
|
-
end?: string | undefined;
|
|
8363
|
-
} | undefined;
|
|
8364
|
-
};
|
|
8365
|
-
field?: string | undefined;
|
|
8366
|
-
}[] | undefined;
|
|
8367
|
-
}, {
|
|
8368
|
-
object: string;
|
|
8369
|
-
where?: FilterCondition | undefined;
|
|
8370
|
-
distinct?: boolean | undefined;
|
|
8371
|
-
fields?: any[] | undefined;
|
|
8372
|
-
search?: {
|
|
8373
|
-
query: string;
|
|
8374
|
-
fields?: string[] | undefined;
|
|
8375
|
-
fuzzy?: boolean | undefined;
|
|
8376
|
-
operator?: "and" | "or" | undefined;
|
|
8377
|
-
boost?: Record<string, number> | undefined;
|
|
8378
|
-
minScore?: number | undefined;
|
|
8379
|
-
language?: string | undefined;
|
|
8380
|
-
highlight?: boolean | undefined;
|
|
8381
|
-
} | undefined;
|
|
8382
|
-
orderBy?: {
|
|
8383
|
-
field: string;
|
|
8384
|
-
order?: "asc" | "desc" | undefined;
|
|
8385
|
-
}[] | undefined;
|
|
8386
|
-
limit?: number | undefined;
|
|
8387
|
-
offset?: number | undefined;
|
|
8388
|
-
cursor?: Record<string, any> | undefined;
|
|
8389
|
-
joins?: any[] | undefined;
|
|
8390
|
-
aggregations?: {
|
|
8391
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8392
|
-
alias: string;
|
|
8393
|
-
filter?: FilterCondition | undefined;
|
|
8394
|
-
field?: string | undefined;
|
|
8395
|
-
distinct?: boolean | undefined;
|
|
8396
|
-
}[] | undefined;
|
|
8397
|
-
groupBy?: string[] | undefined;
|
|
8398
|
-
having?: FilterCondition | undefined;
|
|
8399
|
-
windowFunctions?: {
|
|
8400
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8401
|
-
alias: string;
|
|
8402
|
-
over: {
|
|
8403
|
-
orderBy?: {
|
|
8404
|
-
field: string;
|
|
8405
|
-
order?: "asc" | "desc" | undefined;
|
|
8406
|
-
}[] | undefined;
|
|
8407
|
-
partitionBy?: string[] | undefined;
|
|
8408
|
-
frame?: {
|
|
8409
|
-
type?: "rows" | "range" | undefined;
|
|
8410
|
-
start?: string | undefined;
|
|
8411
|
-
end?: string | undefined;
|
|
8412
|
-
} | undefined;
|
|
8413
|
-
};
|
|
8414
|
-
field?: string | undefined;
|
|
8415
|
-
}[] | undefined;
|
|
8416
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
6803
|
+
findOne: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodOptional<z.ZodObject<{
|
|
8417
6804
|
/**
|
|
8418
6805
|
* Transaction handle/identifier.
|
|
8419
6806
|
* If provided, the operation must run within this transaction.
|
|
@@ -8621,279 +7008,28 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
8621
7008
|
* For multi-tenant databases (row-level security or schema-per-tenant).
|
|
8622
7009
|
*/
|
|
8623
7010
|
tenantId: z.ZodOptional<z.ZodString>;
|
|
8624
|
-
}, "strip", z.ZodTypeAny, {
|
|
8625
|
-
timeout?: number | undefined;
|
|
8626
|
-
tenantId?: string | undefined;
|
|
8627
|
-
transaction?: any;
|
|
8628
|
-
skipCache?: boolean | undefined;
|
|
8629
|
-
traceContext?: Record<string, string> | undefined;
|
|
8630
|
-
}, {
|
|
8631
|
-
timeout?: number | undefined;
|
|
8632
|
-
tenantId?: string | undefined;
|
|
8633
|
-
transaction?: any;
|
|
8634
|
-
skipCache?: boolean | undefined;
|
|
8635
|
-
traceContext?: Record<string, string> | undefined;
|
|
8636
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodBoolean>>;
|
|
8637
|
-
/**
|
|
8638
|
-
* Count records matching a query.
|
|
8639
|
-
*
|
|
8640
|
-
* @param object - The object name.
|
|
8641
|
-
* @param query - Optional filtering criteria.
|
|
8642
|
-
* @param options - Driver options.
|
|
8643
|
-
* @returns Total count.
|
|
8644
|
-
*/
|
|
8645
|
-
count: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodObject<{
|
|
8646
|
-
object: z.ZodString;
|
|
8647
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
8648
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
8649
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
8650
|
-
query: z.ZodString;
|
|
8651
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8652
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8653
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
8654
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
8655
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
8656
|
-
language: z.ZodOptional<z.ZodString>;
|
|
8657
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8658
|
-
}, "strip", z.ZodTypeAny, {
|
|
8659
|
-
query: string;
|
|
8660
|
-
fuzzy: boolean;
|
|
8661
|
-
operator: "and" | "or";
|
|
8662
|
-
highlight: boolean;
|
|
8663
|
-
fields?: string[] | undefined;
|
|
8664
|
-
boost?: Record<string, number> | undefined;
|
|
8665
|
-
minScore?: number | undefined;
|
|
8666
|
-
language?: string | undefined;
|
|
8667
|
-
}, {
|
|
8668
|
-
query: string;
|
|
8669
|
-
fields?: string[] | undefined;
|
|
8670
|
-
fuzzy?: boolean | undefined;
|
|
8671
|
-
operator?: "and" | "or" | undefined;
|
|
8672
|
-
boost?: Record<string, number> | undefined;
|
|
8673
|
-
minScore?: number | undefined;
|
|
8674
|
-
language?: string | undefined;
|
|
8675
|
-
highlight?: boolean | undefined;
|
|
8676
|
-
}>>;
|
|
8677
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8678
|
-
field: z.ZodString;
|
|
8679
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
8680
|
-
}, "strip", z.ZodTypeAny, {
|
|
8681
|
-
field: string;
|
|
8682
|
-
order: "asc" | "desc";
|
|
8683
|
-
}, {
|
|
8684
|
-
field: string;
|
|
8685
|
-
order?: "asc" | "desc" | undefined;
|
|
8686
|
-
}>, "many">>;
|
|
8687
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
8688
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
8689
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8690
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
8691
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8692
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
8693
|
-
field: z.ZodOptional<z.ZodString>;
|
|
8694
|
-
alias: z.ZodString;
|
|
8695
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
8696
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
8697
|
-
}, "strip", z.ZodTypeAny, {
|
|
8698
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8699
|
-
alias: string;
|
|
8700
|
-
filter?: FilterCondition | undefined;
|
|
8701
|
-
field?: string | undefined;
|
|
8702
|
-
distinct?: boolean | undefined;
|
|
8703
|
-
}, {
|
|
8704
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8705
|
-
alias: string;
|
|
8706
|
-
filter?: FilterCondition | undefined;
|
|
8707
|
-
field?: string | undefined;
|
|
8708
|
-
distinct?: boolean | undefined;
|
|
8709
|
-
}>, "many">>;
|
|
8710
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8711
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
8712
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8713
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
8714
|
-
field: z.ZodOptional<z.ZodString>;
|
|
8715
|
-
alias: z.ZodString;
|
|
8716
|
-
over: z.ZodObject<{
|
|
8717
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8718
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8719
|
-
field: z.ZodString;
|
|
8720
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
8721
|
-
}, "strip", z.ZodTypeAny, {
|
|
8722
|
-
field: string;
|
|
8723
|
-
order: "asc" | "desc";
|
|
8724
|
-
}, {
|
|
8725
|
-
field: string;
|
|
8726
|
-
order?: "asc" | "desc" | undefined;
|
|
8727
|
-
}>, "many">>;
|
|
8728
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
8729
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
8730
|
-
start: z.ZodOptional<z.ZodString>;
|
|
8731
|
-
end: z.ZodOptional<z.ZodString>;
|
|
8732
|
-
}, "strip", z.ZodTypeAny, {
|
|
8733
|
-
type?: "rows" | "range" | undefined;
|
|
8734
|
-
start?: string | undefined;
|
|
8735
|
-
end?: string | undefined;
|
|
8736
|
-
}, {
|
|
8737
|
-
type?: "rows" | "range" | undefined;
|
|
8738
|
-
start?: string | undefined;
|
|
8739
|
-
end?: string | undefined;
|
|
8740
|
-
}>>;
|
|
8741
|
-
}, "strip", z.ZodTypeAny, {
|
|
8742
|
-
orderBy?: {
|
|
8743
|
-
field: string;
|
|
8744
|
-
order: "asc" | "desc";
|
|
8745
|
-
}[] | undefined;
|
|
8746
|
-
partitionBy?: string[] | undefined;
|
|
8747
|
-
frame?: {
|
|
8748
|
-
type?: "rows" | "range" | undefined;
|
|
8749
|
-
start?: string | undefined;
|
|
8750
|
-
end?: string | undefined;
|
|
8751
|
-
} | undefined;
|
|
8752
|
-
}, {
|
|
8753
|
-
orderBy?: {
|
|
8754
|
-
field: string;
|
|
8755
|
-
order?: "asc" | "desc" | undefined;
|
|
8756
|
-
}[] | undefined;
|
|
8757
|
-
partitionBy?: string[] | undefined;
|
|
8758
|
-
frame?: {
|
|
8759
|
-
type?: "rows" | "range" | undefined;
|
|
8760
|
-
start?: string | undefined;
|
|
8761
|
-
end?: string | undefined;
|
|
8762
|
-
} | undefined;
|
|
8763
|
-
}>;
|
|
8764
|
-
}, "strip", z.ZodTypeAny, {
|
|
8765
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8766
|
-
alias: string;
|
|
8767
|
-
over: {
|
|
8768
|
-
orderBy?: {
|
|
8769
|
-
field: string;
|
|
8770
|
-
order: "asc" | "desc";
|
|
8771
|
-
}[] | undefined;
|
|
8772
|
-
partitionBy?: string[] | undefined;
|
|
8773
|
-
frame?: {
|
|
8774
|
-
type?: "rows" | "range" | undefined;
|
|
8775
|
-
start?: string | undefined;
|
|
8776
|
-
end?: string | undefined;
|
|
8777
|
-
} | undefined;
|
|
8778
|
-
};
|
|
8779
|
-
field?: string | undefined;
|
|
8780
|
-
}, {
|
|
8781
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8782
|
-
alias: string;
|
|
8783
|
-
over: {
|
|
8784
|
-
orderBy?: {
|
|
8785
|
-
field: string;
|
|
8786
|
-
order?: "asc" | "desc" | undefined;
|
|
8787
|
-
}[] | undefined;
|
|
8788
|
-
partitionBy?: string[] | undefined;
|
|
8789
|
-
frame?: {
|
|
8790
|
-
type?: "rows" | "range" | undefined;
|
|
8791
|
-
start?: string | undefined;
|
|
8792
|
-
end?: string | undefined;
|
|
8793
|
-
} | undefined;
|
|
8794
|
-
};
|
|
8795
|
-
field?: string | undefined;
|
|
8796
|
-
}>, "many">>;
|
|
8797
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
8798
|
-
}, "strip", z.ZodTypeAny, {
|
|
8799
|
-
object: string;
|
|
8800
|
-
where?: FilterCondition | undefined;
|
|
8801
|
-
distinct?: boolean | undefined;
|
|
8802
|
-
fields?: any[] | undefined;
|
|
8803
|
-
search?: {
|
|
8804
|
-
query: string;
|
|
8805
|
-
fuzzy: boolean;
|
|
8806
|
-
operator: "and" | "or";
|
|
8807
|
-
highlight: boolean;
|
|
8808
|
-
fields?: string[] | undefined;
|
|
8809
|
-
boost?: Record<string, number> | undefined;
|
|
8810
|
-
minScore?: number | undefined;
|
|
8811
|
-
language?: string | undefined;
|
|
8812
|
-
} | undefined;
|
|
8813
|
-
orderBy?: {
|
|
8814
|
-
field: string;
|
|
8815
|
-
order: "asc" | "desc";
|
|
8816
|
-
}[] | undefined;
|
|
8817
|
-
limit?: number | undefined;
|
|
8818
|
-
offset?: number | undefined;
|
|
8819
|
-
cursor?: Record<string, any> | undefined;
|
|
8820
|
-
joins?: any[] | undefined;
|
|
8821
|
-
aggregations?: {
|
|
8822
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8823
|
-
alias: string;
|
|
8824
|
-
filter?: FilterCondition | undefined;
|
|
8825
|
-
field?: string | undefined;
|
|
8826
|
-
distinct?: boolean | undefined;
|
|
8827
|
-
}[] | undefined;
|
|
8828
|
-
groupBy?: string[] | undefined;
|
|
8829
|
-
having?: FilterCondition | undefined;
|
|
8830
|
-
windowFunctions?: {
|
|
8831
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8832
|
-
alias: string;
|
|
8833
|
-
over: {
|
|
8834
|
-
orderBy?: {
|
|
8835
|
-
field: string;
|
|
8836
|
-
order: "asc" | "desc";
|
|
8837
|
-
}[] | undefined;
|
|
8838
|
-
partitionBy?: string[] | undefined;
|
|
8839
|
-
frame?: {
|
|
8840
|
-
type?: "rows" | "range" | undefined;
|
|
8841
|
-
start?: string | undefined;
|
|
8842
|
-
end?: string | undefined;
|
|
8843
|
-
} | undefined;
|
|
8844
|
-
};
|
|
8845
|
-
field?: string | undefined;
|
|
8846
|
-
}[] | undefined;
|
|
7011
|
+
}, "strip", z.ZodTypeAny, {
|
|
7012
|
+
timeout?: number | undefined;
|
|
7013
|
+
tenantId?: string | undefined;
|
|
7014
|
+
transaction?: any;
|
|
7015
|
+
skipCache?: boolean | undefined;
|
|
7016
|
+
traceContext?: Record<string, string> | undefined;
|
|
8847
7017
|
}, {
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
|
|
8857
|
-
|
|
8858
|
-
|
|
8859
|
-
|
|
8860
|
-
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
field: string;
|
|
8864
|
-
order?: "asc" | "desc" | undefined;
|
|
8865
|
-
}[] | undefined;
|
|
8866
|
-
limit?: number | undefined;
|
|
8867
|
-
offset?: number | undefined;
|
|
8868
|
-
cursor?: Record<string, any> | undefined;
|
|
8869
|
-
joins?: any[] | undefined;
|
|
8870
|
-
aggregations?: {
|
|
8871
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
8872
|
-
alias: string;
|
|
8873
|
-
filter?: FilterCondition | undefined;
|
|
8874
|
-
field?: string | undefined;
|
|
8875
|
-
distinct?: boolean | undefined;
|
|
8876
|
-
}[] | undefined;
|
|
8877
|
-
groupBy?: string[] | undefined;
|
|
8878
|
-
having?: FilterCondition | undefined;
|
|
8879
|
-
windowFunctions?: {
|
|
8880
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
8881
|
-
alias: string;
|
|
8882
|
-
over: {
|
|
8883
|
-
orderBy?: {
|
|
8884
|
-
field: string;
|
|
8885
|
-
order?: "asc" | "desc" | undefined;
|
|
8886
|
-
}[] | undefined;
|
|
8887
|
-
partitionBy?: string[] | undefined;
|
|
8888
|
-
frame?: {
|
|
8889
|
-
type?: "rows" | "range" | undefined;
|
|
8890
|
-
start?: string | undefined;
|
|
8891
|
-
end?: string | undefined;
|
|
8892
|
-
} | undefined;
|
|
8893
|
-
};
|
|
8894
|
-
field?: string | undefined;
|
|
8895
|
-
}[] | undefined;
|
|
8896
|
-
}>>, z.ZodOptional<z.ZodObject<{
|
|
7018
|
+
timeout?: number | undefined;
|
|
7019
|
+
tenantId?: string | undefined;
|
|
7020
|
+
transaction?: any;
|
|
7021
|
+
skipCache?: boolean | undefined;
|
|
7022
|
+
traceContext?: Record<string, string> | undefined;
|
|
7023
|
+
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodBoolean>>;
|
|
7024
|
+
/**
|
|
7025
|
+
* Count records matching a query.
|
|
7026
|
+
*
|
|
7027
|
+
* @param object - The object name.
|
|
7028
|
+
* @param query - Optional filtering criteria.
|
|
7029
|
+
* @param options - Driver options.
|
|
7030
|
+
* @returns Total count.
|
|
7031
|
+
*/
|
|
7032
|
+
count: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>>, z.ZodOptional<z.ZodObject<{
|
|
8897
7033
|
/**
|
|
8898
7034
|
* Transaction handle/identifier.
|
|
8899
7035
|
* If provided, the operation must run within this transaction.
|
|
@@ -9080,258 +7216,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
9080
7216
|
* @param data - The data to update.
|
|
9081
7217
|
* @returns Count of modified records.
|
|
9082
7218
|
*/
|
|
9083
|
-
updateMany: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
9084
|
-
object: z.ZodString;
|
|
9085
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
9086
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9087
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
9088
|
-
query: z.ZodString;
|
|
9089
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9090
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9091
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
9092
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
9093
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
9094
|
-
language: z.ZodOptional<z.ZodString>;
|
|
9095
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9096
|
-
}, "strip", z.ZodTypeAny, {
|
|
9097
|
-
query: string;
|
|
9098
|
-
fuzzy: boolean;
|
|
9099
|
-
operator: "and" | "or";
|
|
9100
|
-
highlight: boolean;
|
|
9101
|
-
fields?: string[] | undefined;
|
|
9102
|
-
boost?: Record<string, number> | undefined;
|
|
9103
|
-
minScore?: number | undefined;
|
|
9104
|
-
language?: string | undefined;
|
|
9105
|
-
}, {
|
|
9106
|
-
query: string;
|
|
9107
|
-
fields?: string[] | undefined;
|
|
9108
|
-
fuzzy?: boolean | undefined;
|
|
9109
|
-
operator?: "and" | "or" | undefined;
|
|
9110
|
-
boost?: Record<string, number> | undefined;
|
|
9111
|
-
minScore?: number | undefined;
|
|
9112
|
-
language?: string | undefined;
|
|
9113
|
-
highlight?: boolean | undefined;
|
|
9114
|
-
}>>;
|
|
9115
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9116
|
-
field: z.ZodString;
|
|
9117
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
9118
|
-
}, "strip", z.ZodTypeAny, {
|
|
9119
|
-
field: string;
|
|
9120
|
-
order: "asc" | "desc";
|
|
9121
|
-
}, {
|
|
9122
|
-
field: string;
|
|
9123
|
-
order?: "asc" | "desc" | undefined;
|
|
9124
|
-
}>, "many">>;
|
|
9125
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
9126
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
9127
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9128
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
9129
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9130
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
9131
|
-
field: z.ZodOptional<z.ZodString>;
|
|
9132
|
-
alias: z.ZodString;
|
|
9133
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
9134
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9135
|
-
}, "strip", z.ZodTypeAny, {
|
|
9136
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9137
|
-
alias: string;
|
|
9138
|
-
filter?: FilterCondition | undefined;
|
|
9139
|
-
field?: string | undefined;
|
|
9140
|
-
distinct?: boolean | undefined;
|
|
9141
|
-
}, {
|
|
9142
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9143
|
-
alias: string;
|
|
9144
|
-
filter?: FilterCondition | undefined;
|
|
9145
|
-
field?: string | undefined;
|
|
9146
|
-
distinct?: boolean | undefined;
|
|
9147
|
-
}>, "many">>;
|
|
9148
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9149
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9150
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9151
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
9152
|
-
field: z.ZodOptional<z.ZodString>;
|
|
9153
|
-
alias: z.ZodString;
|
|
9154
|
-
over: z.ZodObject<{
|
|
9155
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9156
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9157
|
-
field: z.ZodString;
|
|
9158
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
9159
|
-
}, "strip", z.ZodTypeAny, {
|
|
9160
|
-
field: string;
|
|
9161
|
-
order: "asc" | "desc";
|
|
9162
|
-
}, {
|
|
9163
|
-
field: string;
|
|
9164
|
-
order?: "asc" | "desc" | undefined;
|
|
9165
|
-
}>, "many">>;
|
|
9166
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
9167
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
9168
|
-
start: z.ZodOptional<z.ZodString>;
|
|
9169
|
-
end: z.ZodOptional<z.ZodString>;
|
|
9170
|
-
}, "strip", z.ZodTypeAny, {
|
|
9171
|
-
type?: "rows" | "range" | undefined;
|
|
9172
|
-
start?: string | undefined;
|
|
9173
|
-
end?: string | undefined;
|
|
9174
|
-
}, {
|
|
9175
|
-
type?: "rows" | "range" | undefined;
|
|
9176
|
-
start?: string | undefined;
|
|
9177
|
-
end?: string | undefined;
|
|
9178
|
-
}>>;
|
|
9179
|
-
}, "strip", z.ZodTypeAny, {
|
|
9180
|
-
orderBy?: {
|
|
9181
|
-
field: string;
|
|
9182
|
-
order: "asc" | "desc";
|
|
9183
|
-
}[] | undefined;
|
|
9184
|
-
partitionBy?: string[] | undefined;
|
|
9185
|
-
frame?: {
|
|
9186
|
-
type?: "rows" | "range" | undefined;
|
|
9187
|
-
start?: string | undefined;
|
|
9188
|
-
end?: string | undefined;
|
|
9189
|
-
} | undefined;
|
|
9190
|
-
}, {
|
|
9191
|
-
orderBy?: {
|
|
9192
|
-
field: string;
|
|
9193
|
-
order?: "asc" | "desc" | undefined;
|
|
9194
|
-
}[] | undefined;
|
|
9195
|
-
partitionBy?: string[] | undefined;
|
|
9196
|
-
frame?: {
|
|
9197
|
-
type?: "rows" | "range" | undefined;
|
|
9198
|
-
start?: string | undefined;
|
|
9199
|
-
end?: string | undefined;
|
|
9200
|
-
} | undefined;
|
|
9201
|
-
}>;
|
|
9202
|
-
}, "strip", z.ZodTypeAny, {
|
|
9203
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9204
|
-
alias: string;
|
|
9205
|
-
over: {
|
|
9206
|
-
orderBy?: {
|
|
9207
|
-
field: string;
|
|
9208
|
-
order: "asc" | "desc";
|
|
9209
|
-
}[] | undefined;
|
|
9210
|
-
partitionBy?: string[] | undefined;
|
|
9211
|
-
frame?: {
|
|
9212
|
-
type?: "rows" | "range" | undefined;
|
|
9213
|
-
start?: string | undefined;
|
|
9214
|
-
end?: string | undefined;
|
|
9215
|
-
} | undefined;
|
|
9216
|
-
};
|
|
9217
|
-
field?: string | undefined;
|
|
9218
|
-
}, {
|
|
9219
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9220
|
-
alias: string;
|
|
9221
|
-
over: {
|
|
9222
|
-
orderBy?: {
|
|
9223
|
-
field: string;
|
|
9224
|
-
order?: "asc" | "desc" | undefined;
|
|
9225
|
-
}[] | undefined;
|
|
9226
|
-
partitionBy?: string[] | undefined;
|
|
9227
|
-
frame?: {
|
|
9228
|
-
type?: "rows" | "range" | undefined;
|
|
9229
|
-
start?: string | undefined;
|
|
9230
|
-
end?: string | undefined;
|
|
9231
|
-
} | undefined;
|
|
9232
|
-
};
|
|
9233
|
-
field?: string | undefined;
|
|
9234
|
-
}>, "many">>;
|
|
9235
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
9236
|
-
}, "strip", z.ZodTypeAny, {
|
|
9237
|
-
object: string;
|
|
9238
|
-
where?: FilterCondition | undefined;
|
|
9239
|
-
distinct?: boolean | undefined;
|
|
9240
|
-
fields?: any[] | undefined;
|
|
9241
|
-
search?: {
|
|
9242
|
-
query: string;
|
|
9243
|
-
fuzzy: boolean;
|
|
9244
|
-
operator: "and" | "or";
|
|
9245
|
-
highlight: boolean;
|
|
9246
|
-
fields?: string[] | undefined;
|
|
9247
|
-
boost?: Record<string, number> | undefined;
|
|
9248
|
-
minScore?: number | undefined;
|
|
9249
|
-
language?: string | undefined;
|
|
9250
|
-
} | undefined;
|
|
9251
|
-
orderBy?: {
|
|
9252
|
-
field: string;
|
|
9253
|
-
order: "asc" | "desc";
|
|
9254
|
-
}[] | undefined;
|
|
9255
|
-
limit?: number | undefined;
|
|
9256
|
-
offset?: number | undefined;
|
|
9257
|
-
cursor?: Record<string, any> | undefined;
|
|
9258
|
-
joins?: any[] | undefined;
|
|
9259
|
-
aggregations?: {
|
|
9260
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9261
|
-
alias: string;
|
|
9262
|
-
filter?: FilterCondition | undefined;
|
|
9263
|
-
field?: string | undefined;
|
|
9264
|
-
distinct?: boolean | undefined;
|
|
9265
|
-
}[] | undefined;
|
|
9266
|
-
groupBy?: string[] | undefined;
|
|
9267
|
-
having?: FilterCondition | undefined;
|
|
9268
|
-
windowFunctions?: {
|
|
9269
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9270
|
-
alias: string;
|
|
9271
|
-
over: {
|
|
9272
|
-
orderBy?: {
|
|
9273
|
-
field: string;
|
|
9274
|
-
order: "asc" | "desc";
|
|
9275
|
-
}[] | undefined;
|
|
9276
|
-
partitionBy?: string[] | undefined;
|
|
9277
|
-
frame?: {
|
|
9278
|
-
type?: "rows" | "range" | undefined;
|
|
9279
|
-
start?: string | undefined;
|
|
9280
|
-
end?: string | undefined;
|
|
9281
|
-
} | undefined;
|
|
9282
|
-
};
|
|
9283
|
-
field?: string | undefined;
|
|
9284
|
-
}[] | undefined;
|
|
9285
|
-
}, {
|
|
9286
|
-
object: string;
|
|
9287
|
-
where?: FilterCondition | undefined;
|
|
9288
|
-
distinct?: boolean | undefined;
|
|
9289
|
-
fields?: any[] | undefined;
|
|
9290
|
-
search?: {
|
|
9291
|
-
query: string;
|
|
9292
|
-
fields?: string[] | undefined;
|
|
9293
|
-
fuzzy?: boolean | undefined;
|
|
9294
|
-
operator?: "and" | "or" | undefined;
|
|
9295
|
-
boost?: Record<string, number> | undefined;
|
|
9296
|
-
minScore?: number | undefined;
|
|
9297
|
-
language?: string | undefined;
|
|
9298
|
-
highlight?: boolean | undefined;
|
|
9299
|
-
} | undefined;
|
|
9300
|
-
orderBy?: {
|
|
9301
|
-
field: string;
|
|
9302
|
-
order?: "asc" | "desc" | undefined;
|
|
9303
|
-
}[] | undefined;
|
|
9304
|
-
limit?: number | undefined;
|
|
9305
|
-
offset?: number | undefined;
|
|
9306
|
-
cursor?: Record<string, any> | undefined;
|
|
9307
|
-
joins?: any[] | undefined;
|
|
9308
|
-
aggregations?: {
|
|
9309
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9310
|
-
alias: string;
|
|
9311
|
-
filter?: FilterCondition | undefined;
|
|
9312
|
-
field?: string | undefined;
|
|
9313
|
-
distinct?: boolean | undefined;
|
|
9314
|
-
}[] | undefined;
|
|
9315
|
-
groupBy?: string[] | undefined;
|
|
9316
|
-
having?: FilterCondition | undefined;
|
|
9317
|
-
windowFunctions?: {
|
|
9318
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9319
|
-
alias: string;
|
|
9320
|
-
over: {
|
|
9321
|
-
orderBy?: {
|
|
9322
|
-
field: string;
|
|
9323
|
-
order?: "asc" | "desc" | undefined;
|
|
9324
|
-
}[] | undefined;
|
|
9325
|
-
partitionBy?: string[] | undefined;
|
|
9326
|
-
frame?: {
|
|
9327
|
-
type?: "rows" | "range" | undefined;
|
|
9328
|
-
start?: string | undefined;
|
|
9329
|
-
end?: string | undefined;
|
|
9330
|
-
} | undefined;
|
|
9331
|
-
};
|
|
9332
|
-
field?: string | undefined;
|
|
9333
|
-
}[] | undefined;
|
|
9334
|
-
}>, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodOptional<z.ZodObject<{
|
|
7219
|
+
updateMany: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodOptional<z.ZodObject<{
|
|
9335
7220
|
/**
|
|
9336
7221
|
* Transaction handle/identifier.
|
|
9337
7222
|
* If provided, the operation must run within this transaction.
|
|
@@ -9376,258 +7261,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
9376
7261
|
* @param query - The filtering criteria.
|
|
9377
7262
|
* @returns Count of deleted records.
|
|
9378
7263
|
*/
|
|
9379
|
-
deleteMany: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
9380
|
-
object: z.ZodString;
|
|
9381
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
9382
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9383
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
9384
|
-
query: z.ZodString;
|
|
9385
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9386
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9387
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
9388
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
9389
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
9390
|
-
language: z.ZodOptional<z.ZodString>;
|
|
9391
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9392
|
-
}, "strip", z.ZodTypeAny, {
|
|
9393
|
-
query: string;
|
|
9394
|
-
fuzzy: boolean;
|
|
9395
|
-
operator: "and" | "or";
|
|
9396
|
-
highlight: boolean;
|
|
9397
|
-
fields?: string[] | undefined;
|
|
9398
|
-
boost?: Record<string, number> | undefined;
|
|
9399
|
-
minScore?: number | undefined;
|
|
9400
|
-
language?: string | undefined;
|
|
9401
|
-
}, {
|
|
9402
|
-
query: string;
|
|
9403
|
-
fields?: string[] | undefined;
|
|
9404
|
-
fuzzy?: boolean | undefined;
|
|
9405
|
-
operator?: "and" | "or" | undefined;
|
|
9406
|
-
boost?: Record<string, number> | undefined;
|
|
9407
|
-
minScore?: number | undefined;
|
|
9408
|
-
language?: string | undefined;
|
|
9409
|
-
highlight?: boolean | undefined;
|
|
9410
|
-
}>>;
|
|
9411
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9412
|
-
field: z.ZodString;
|
|
9413
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
9414
|
-
}, "strip", z.ZodTypeAny, {
|
|
9415
|
-
field: string;
|
|
9416
|
-
order: "asc" | "desc";
|
|
9417
|
-
}, {
|
|
9418
|
-
field: string;
|
|
9419
|
-
order?: "asc" | "desc" | undefined;
|
|
9420
|
-
}>, "many">>;
|
|
9421
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
9422
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
9423
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9424
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
9425
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9426
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
9427
|
-
field: z.ZodOptional<z.ZodString>;
|
|
9428
|
-
alias: z.ZodString;
|
|
9429
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
9430
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9431
|
-
}, "strip", z.ZodTypeAny, {
|
|
9432
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9433
|
-
alias: string;
|
|
9434
|
-
filter?: FilterCondition | undefined;
|
|
9435
|
-
field?: string | undefined;
|
|
9436
|
-
distinct?: boolean | undefined;
|
|
9437
|
-
}, {
|
|
9438
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9439
|
-
alias: string;
|
|
9440
|
-
filter?: FilterCondition | undefined;
|
|
9441
|
-
field?: string | undefined;
|
|
9442
|
-
distinct?: boolean | undefined;
|
|
9443
|
-
}>, "many">>;
|
|
9444
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9445
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9446
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9447
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
9448
|
-
field: z.ZodOptional<z.ZodString>;
|
|
9449
|
-
alias: z.ZodString;
|
|
9450
|
-
over: z.ZodObject<{
|
|
9451
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9452
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9453
|
-
field: z.ZodString;
|
|
9454
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
9455
|
-
}, "strip", z.ZodTypeAny, {
|
|
9456
|
-
field: string;
|
|
9457
|
-
order: "asc" | "desc";
|
|
9458
|
-
}, {
|
|
9459
|
-
field: string;
|
|
9460
|
-
order?: "asc" | "desc" | undefined;
|
|
9461
|
-
}>, "many">>;
|
|
9462
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
9463
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
9464
|
-
start: z.ZodOptional<z.ZodString>;
|
|
9465
|
-
end: z.ZodOptional<z.ZodString>;
|
|
9466
|
-
}, "strip", z.ZodTypeAny, {
|
|
9467
|
-
type?: "rows" | "range" | undefined;
|
|
9468
|
-
start?: string | undefined;
|
|
9469
|
-
end?: string | undefined;
|
|
9470
|
-
}, {
|
|
9471
|
-
type?: "rows" | "range" | undefined;
|
|
9472
|
-
start?: string | undefined;
|
|
9473
|
-
end?: string | undefined;
|
|
9474
|
-
}>>;
|
|
9475
|
-
}, "strip", z.ZodTypeAny, {
|
|
9476
|
-
orderBy?: {
|
|
9477
|
-
field: string;
|
|
9478
|
-
order: "asc" | "desc";
|
|
9479
|
-
}[] | undefined;
|
|
9480
|
-
partitionBy?: string[] | undefined;
|
|
9481
|
-
frame?: {
|
|
9482
|
-
type?: "rows" | "range" | undefined;
|
|
9483
|
-
start?: string | undefined;
|
|
9484
|
-
end?: string | undefined;
|
|
9485
|
-
} | undefined;
|
|
9486
|
-
}, {
|
|
9487
|
-
orderBy?: {
|
|
9488
|
-
field: string;
|
|
9489
|
-
order?: "asc" | "desc" | undefined;
|
|
9490
|
-
}[] | undefined;
|
|
9491
|
-
partitionBy?: string[] | undefined;
|
|
9492
|
-
frame?: {
|
|
9493
|
-
type?: "rows" | "range" | undefined;
|
|
9494
|
-
start?: string | undefined;
|
|
9495
|
-
end?: string | undefined;
|
|
9496
|
-
} | undefined;
|
|
9497
|
-
}>;
|
|
9498
|
-
}, "strip", z.ZodTypeAny, {
|
|
9499
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9500
|
-
alias: string;
|
|
9501
|
-
over: {
|
|
9502
|
-
orderBy?: {
|
|
9503
|
-
field: string;
|
|
9504
|
-
order: "asc" | "desc";
|
|
9505
|
-
}[] | undefined;
|
|
9506
|
-
partitionBy?: string[] | undefined;
|
|
9507
|
-
frame?: {
|
|
9508
|
-
type?: "rows" | "range" | undefined;
|
|
9509
|
-
start?: string | undefined;
|
|
9510
|
-
end?: string | undefined;
|
|
9511
|
-
} | undefined;
|
|
9512
|
-
};
|
|
9513
|
-
field?: string | undefined;
|
|
9514
|
-
}, {
|
|
9515
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9516
|
-
alias: string;
|
|
9517
|
-
over: {
|
|
9518
|
-
orderBy?: {
|
|
9519
|
-
field: string;
|
|
9520
|
-
order?: "asc" | "desc" | undefined;
|
|
9521
|
-
}[] | undefined;
|
|
9522
|
-
partitionBy?: string[] | undefined;
|
|
9523
|
-
frame?: {
|
|
9524
|
-
type?: "rows" | "range" | undefined;
|
|
9525
|
-
start?: string | undefined;
|
|
9526
|
-
end?: string | undefined;
|
|
9527
|
-
} | undefined;
|
|
9528
|
-
};
|
|
9529
|
-
field?: string | undefined;
|
|
9530
|
-
}>, "many">>;
|
|
9531
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
9532
|
-
}, "strip", z.ZodTypeAny, {
|
|
9533
|
-
object: string;
|
|
9534
|
-
where?: FilterCondition | undefined;
|
|
9535
|
-
distinct?: boolean | undefined;
|
|
9536
|
-
fields?: any[] | undefined;
|
|
9537
|
-
search?: {
|
|
9538
|
-
query: string;
|
|
9539
|
-
fuzzy: boolean;
|
|
9540
|
-
operator: "and" | "or";
|
|
9541
|
-
highlight: boolean;
|
|
9542
|
-
fields?: string[] | undefined;
|
|
9543
|
-
boost?: Record<string, number> | undefined;
|
|
9544
|
-
minScore?: number | undefined;
|
|
9545
|
-
language?: string | undefined;
|
|
9546
|
-
} | undefined;
|
|
9547
|
-
orderBy?: {
|
|
9548
|
-
field: string;
|
|
9549
|
-
order: "asc" | "desc";
|
|
9550
|
-
}[] | undefined;
|
|
9551
|
-
limit?: number | undefined;
|
|
9552
|
-
offset?: number | undefined;
|
|
9553
|
-
cursor?: Record<string, any> | undefined;
|
|
9554
|
-
joins?: any[] | undefined;
|
|
9555
|
-
aggregations?: {
|
|
9556
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9557
|
-
alias: string;
|
|
9558
|
-
filter?: FilterCondition | undefined;
|
|
9559
|
-
field?: string | undefined;
|
|
9560
|
-
distinct?: boolean | undefined;
|
|
9561
|
-
}[] | undefined;
|
|
9562
|
-
groupBy?: string[] | undefined;
|
|
9563
|
-
having?: FilterCondition | undefined;
|
|
9564
|
-
windowFunctions?: {
|
|
9565
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9566
|
-
alias: string;
|
|
9567
|
-
over: {
|
|
9568
|
-
orderBy?: {
|
|
9569
|
-
field: string;
|
|
9570
|
-
order: "asc" | "desc";
|
|
9571
|
-
}[] | undefined;
|
|
9572
|
-
partitionBy?: string[] | undefined;
|
|
9573
|
-
frame?: {
|
|
9574
|
-
type?: "rows" | "range" | undefined;
|
|
9575
|
-
start?: string | undefined;
|
|
9576
|
-
end?: string | undefined;
|
|
9577
|
-
} | undefined;
|
|
9578
|
-
};
|
|
9579
|
-
field?: string | undefined;
|
|
9580
|
-
}[] | undefined;
|
|
9581
|
-
}, {
|
|
9582
|
-
object: string;
|
|
9583
|
-
where?: FilterCondition | undefined;
|
|
9584
|
-
distinct?: boolean | undefined;
|
|
9585
|
-
fields?: any[] | undefined;
|
|
9586
|
-
search?: {
|
|
9587
|
-
query: string;
|
|
9588
|
-
fields?: string[] | undefined;
|
|
9589
|
-
fuzzy?: boolean | undefined;
|
|
9590
|
-
operator?: "and" | "or" | undefined;
|
|
9591
|
-
boost?: Record<string, number> | undefined;
|
|
9592
|
-
minScore?: number | undefined;
|
|
9593
|
-
language?: string | undefined;
|
|
9594
|
-
highlight?: boolean | undefined;
|
|
9595
|
-
} | undefined;
|
|
9596
|
-
orderBy?: {
|
|
9597
|
-
field: string;
|
|
9598
|
-
order?: "asc" | "desc" | undefined;
|
|
9599
|
-
}[] | undefined;
|
|
9600
|
-
limit?: number | undefined;
|
|
9601
|
-
offset?: number | undefined;
|
|
9602
|
-
cursor?: Record<string, any> | undefined;
|
|
9603
|
-
joins?: any[] | undefined;
|
|
9604
|
-
aggregations?: {
|
|
9605
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9606
|
-
alias: string;
|
|
9607
|
-
filter?: FilterCondition | undefined;
|
|
9608
|
-
field?: string | undefined;
|
|
9609
|
-
distinct?: boolean | undefined;
|
|
9610
|
-
}[] | undefined;
|
|
9611
|
-
groupBy?: string[] | undefined;
|
|
9612
|
-
having?: FilterCondition | undefined;
|
|
9613
|
-
windowFunctions?: {
|
|
9614
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9615
|
-
alias: string;
|
|
9616
|
-
over: {
|
|
9617
|
-
orderBy?: {
|
|
9618
|
-
field: string;
|
|
9619
|
-
order?: "asc" | "desc" | undefined;
|
|
9620
|
-
}[] | undefined;
|
|
9621
|
-
partitionBy?: string[] | undefined;
|
|
9622
|
-
frame?: {
|
|
9623
|
-
type?: "rows" | "range" | undefined;
|
|
9624
|
-
start?: string | undefined;
|
|
9625
|
-
end?: string | undefined;
|
|
9626
|
-
} | undefined;
|
|
9627
|
-
};
|
|
9628
|
-
field?: string | undefined;
|
|
9629
|
-
}[] | undefined;
|
|
9630
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
7264
|
+
deleteMany: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodOptional<z.ZodObject<{
|
|
9631
7265
|
/**
|
|
9632
7266
|
* Transaction handle/identifier.
|
|
9633
7267
|
* If provided, the operation must run within this transaction.
|
|
@@ -9739,302 +7373,51 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
9739
7373
|
* @param object - The object name.
|
|
9740
7374
|
*/
|
|
9741
7375
|
dropTable: z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodOptional<z.ZodObject<{
|
|
9742
|
-
/**
|
|
9743
|
-
* Transaction handle/identifier.
|
|
9744
|
-
* If provided, the operation must run within this transaction.
|
|
9745
|
-
*/
|
|
9746
|
-
transaction: z.ZodOptional<z.ZodAny>;
|
|
9747
|
-
/**
|
|
9748
|
-
* Operation timeout in milliseconds.
|
|
9749
|
-
*/
|
|
9750
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
9751
|
-
/**
|
|
9752
|
-
* Whether to bypass cache and force a fresh read.
|
|
9753
|
-
*/
|
|
9754
|
-
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
9755
|
-
/**
|
|
9756
|
-
* Distributed Tracing Context.
|
|
9757
|
-
* Used for passing OpenTelemetry span context or request IDs for observability.
|
|
9758
|
-
*/
|
|
9759
|
-
traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9760
|
-
/**
|
|
9761
|
-
* Tenant Identifier.
|
|
9762
|
-
* For multi-tenant databases (row-level security or schema-per-tenant).
|
|
9763
|
-
*/
|
|
9764
|
-
tenantId: z.ZodOptional<z.ZodString>;
|
|
9765
|
-
}, "strip", z.ZodTypeAny, {
|
|
9766
|
-
timeout?: number | undefined;
|
|
9767
|
-
tenantId?: string | undefined;
|
|
9768
|
-
transaction?: any;
|
|
9769
|
-
skipCache?: boolean | undefined;
|
|
9770
|
-
traceContext?: Record<string, string> | undefined;
|
|
9771
|
-
}, {
|
|
9772
|
-
timeout?: number | undefined;
|
|
9773
|
-
tenantId?: string | undefined;
|
|
9774
|
-
transaction?: any;
|
|
9775
|
-
skipCache?: boolean | undefined;
|
|
9776
|
-
traceContext?: Record<string, string> | undefined;
|
|
9777
|
-
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
9778
|
-
/**
|
|
9779
|
-
* Analyze query performance.
|
|
9780
|
-
* Returns execution plan without executing the query (where possible).
|
|
9781
|
-
*
|
|
9782
|
-
* @param object - The object name.
|
|
9783
|
-
* @param query - The query to explain.
|
|
9784
|
-
* @returns The execution plan details.
|
|
9785
|
-
*/
|
|
9786
|
-
explain: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodObject<{
|
|
9787
|
-
object: z.ZodString;
|
|
9788
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
9789
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9790
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
9791
|
-
query: z.ZodString;
|
|
9792
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9793
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9794
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
9795
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
9796
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
9797
|
-
language: z.ZodOptional<z.ZodString>;
|
|
9798
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9799
|
-
}, "strip", z.ZodTypeAny, {
|
|
9800
|
-
query: string;
|
|
9801
|
-
fuzzy: boolean;
|
|
9802
|
-
operator: "and" | "or";
|
|
9803
|
-
highlight: boolean;
|
|
9804
|
-
fields?: string[] | undefined;
|
|
9805
|
-
boost?: Record<string, number> | undefined;
|
|
9806
|
-
minScore?: number | undefined;
|
|
9807
|
-
language?: string | undefined;
|
|
9808
|
-
}, {
|
|
9809
|
-
query: string;
|
|
9810
|
-
fields?: string[] | undefined;
|
|
9811
|
-
fuzzy?: boolean | undefined;
|
|
9812
|
-
operator?: "and" | "or" | undefined;
|
|
9813
|
-
boost?: Record<string, number> | undefined;
|
|
9814
|
-
minScore?: number | undefined;
|
|
9815
|
-
language?: string | undefined;
|
|
9816
|
-
highlight?: boolean | undefined;
|
|
9817
|
-
}>>;
|
|
9818
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9819
|
-
field: z.ZodString;
|
|
9820
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
9821
|
-
}, "strip", z.ZodTypeAny, {
|
|
9822
|
-
field: string;
|
|
9823
|
-
order: "asc" | "desc";
|
|
9824
|
-
}, {
|
|
9825
|
-
field: string;
|
|
9826
|
-
order?: "asc" | "desc" | undefined;
|
|
9827
|
-
}>, "many">>;
|
|
9828
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
9829
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
9830
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9831
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
9832
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9833
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
9834
|
-
field: z.ZodOptional<z.ZodString>;
|
|
9835
|
-
alias: z.ZodString;
|
|
9836
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
9837
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9838
|
-
}, "strip", z.ZodTypeAny, {
|
|
9839
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9840
|
-
alias: string;
|
|
9841
|
-
filter?: FilterCondition | undefined;
|
|
9842
|
-
field?: string | undefined;
|
|
9843
|
-
distinct?: boolean | undefined;
|
|
9844
|
-
}, {
|
|
9845
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9846
|
-
alias: string;
|
|
9847
|
-
filter?: FilterCondition | undefined;
|
|
9848
|
-
field?: string | undefined;
|
|
9849
|
-
distinct?: boolean | undefined;
|
|
9850
|
-
}>, "many">>;
|
|
9851
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9852
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
9853
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9854
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
9855
|
-
field: z.ZodOptional<z.ZodString>;
|
|
9856
|
-
alias: z.ZodString;
|
|
9857
|
-
over: z.ZodObject<{
|
|
9858
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9859
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9860
|
-
field: z.ZodString;
|
|
9861
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
9862
|
-
}, "strip", z.ZodTypeAny, {
|
|
9863
|
-
field: string;
|
|
9864
|
-
order: "asc" | "desc";
|
|
9865
|
-
}, {
|
|
9866
|
-
field: string;
|
|
9867
|
-
order?: "asc" | "desc" | undefined;
|
|
9868
|
-
}>, "many">>;
|
|
9869
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
9870
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
9871
|
-
start: z.ZodOptional<z.ZodString>;
|
|
9872
|
-
end: z.ZodOptional<z.ZodString>;
|
|
9873
|
-
}, "strip", z.ZodTypeAny, {
|
|
9874
|
-
type?: "rows" | "range" | undefined;
|
|
9875
|
-
start?: string | undefined;
|
|
9876
|
-
end?: string | undefined;
|
|
9877
|
-
}, {
|
|
9878
|
-
type?: "rows" | "range" | undefined;
|
|
9879
|
-
start?: string | undefined;
|
|
9880
|
-
end?: string | undefined;
|
|
9881
|
-
}>>;
|
|
9882
|
-
}, "strip", z.ZodTypeAny, {
|
|
9883
|
-
orderBy?: {
|
|
9884
|
-
field: string;
|
|
9885
|
-
order: "asc" | "desc";
|
|
9886
|
-
}[] | undefined;
|
|
9887
|
-
partitionBy?: string[] | undefined;
|
|
9888
|
-
frame?: {
|
|
9889
|
-
type?: "rows" | "range" | undefined;
|
|
9890
|
-
start?: string | undefined;
|
|
9891
|
-
end?: string | undefined;
|
|
9892
|
-
} | undefined;
|
|
9893
|
-
}, {
|
|
9894
|
-
orderBy?: {
|
|
9895
|
-
field: string;
|
|
9896
|
-
order?: "asc" | "desc" | undefined;
|
|
9897
|
-
}[] | undefined;
|
|
9898
|
-
partitionBy?: string[] | undefined;
|
|
9899
|
-
frame?: {
|
|
9900
|
-
type?: "rows" | "range" | undefined;
|
|
9901
|
-
start?: string | undefined;
|
|
9902
|
-
end?: string | undefined;
|
|
9903
|
-
} | undefined;
|
|
9904
|
-
}>;
|
|
9905
|
-
}, "strip", z.ZodTypeAny, {
|
|
9906
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9907
|
-
alias: string;
|
|
9908
|
-
over: {
|
|
9909
|
-
orderBy?: {
|
|
9910
|
-
field: string;
|
|
9911
|
-
order: "asc" | "desc";
|
|
9912
|
-
}[] | undefined;
|
|
9913
|
-
partitionBy?: string[] | undefined;
|
|
9914
|
-
frame?: {
|
|
9915
|
-
type?: "rows" | "range" | undefined;
|
|
9916
|
-
start?: string | undefined;
|
|
9917
|
-
end?: string | undefined;
|
|
9918
|
-
} | undefined;
|
|
9919
|
-
};
|
|
9920
|
-
field?: string | undefined;
|
|
9921
|
-
}, {
|
|
9922
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9923
|
-
alias: string;
|
|
9924
|
-
over: {
|
|
9925
|
-
orderBy?: {
|
|
9926
|
-
field: string;
|
|
9927
|
-
order?: "asc" | "desc" | undefined;
|
|
9928
|
-
}[] | undefined;
|
|
9929
|
-
partitionBy?: string[] | undefined;
|
|
9930
|
-
frame?: {
|
|
9931
|
-
type?: "rows" | "range" | undefined;
|
|
9932
|
-
start?: string | undefined;
|
|
9933
|
-
end?: string | undefined;
|
|
9934
|
-
} | undefined;
|
|
9935
|
-
};
|
|
9936
|
-
field?: string | undefined;
|
|
9937
|
-
}>, "many">>;
|
|
9938
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
7376
|
+
/**
|
|
7377
|
+
* Transaction handle/identifier.
|
|
7378
|
+
* If provided, the operation must run within this transaction.
|
|
7379
|
+
*/
|
|
7380
|
+
transaction: z.ZodOptional<z.ZodAny>;
|
|
7381
|
+
/**
|
|
7382
|
+
* Operation timeout in milliseconds.
|
|
7383
|
+
*/
|
|
7384
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
7385
|
+
/**
|
|
7386
|
+
* Whether to bypass cache and force a fresh read.
|
|
7387
|
+
*/
|
|
7388
|
+
skipCache: z.ZodOptional<z.ZodBoolean>;
|
|
7389
|
+
/**
|
|
7390
|
+
* Distributed Tracing Context.
|
|
7391
|
+
* Used for passing OpenTelemetry span context or request IDs for observability.
|
|
7392
|
+
*/
|
|
7393
|
+
traceContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7394
|
+
/**
|
|
7395
|
+
* Tenant Identifier.
|
|
7396
|
+
* For multi-tenant databases (row-level security or schema-per-tenant).
|
|
7397
|
+
*/
|
|
7398
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
9939
7399
|
}, "strip", z.ZodTypeAny, {
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
query: string;
|
|
9946
|
-
fuzzy: boolean;
|
|
9947
|
-
operator: "and" | "or";
|
|
9948
|
-
highlight: boolean;
|
|
9949
|
-
fields?: string[] | undefined;
|
|
9950
|
-
boost?: Record<string, number> | undefined;
|
|
9951
|
-
minScore?: number | undefined;
|
|
9952
|
-
language?: string | undefined;
|
|
9953
|
-
} | undefined;
|
|
9954
|
-
orderBy?: {
|
|
9955
|
-
field: string;
|
|
9956
|
-
order: "asc" | "desc";
|
|
9957
|
-
}[] | undefined;
|
|
9958
|
-
limit?: number | undefined;
|
|
9959
|
-
offset?: number | undefined;
|
|
9960
|
-
cursor?: Record<string, any> | undefined;
|
|
9961
|
-
joins?: any[] | undefined;
|
|
9962
|
-
aggregations?: {
|
|
9963
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
9964
|
-
alias: string;
|
|
9965
|
-
filter?: FilterCondition | undefined;
|
|
9966
|
-
field?: string | undefined;
|
|
9967
|
-
distinct?: boolean | undefined;
|
|
9968
|
-
}[] | undefined;
|
|
9969
|
-
groupBy?: string[] | undefined;
|
|
9970
|
-
having?: FilterCondition | undefined;
|
|
9971
|
-
windowFunctions?: {
|
|
9972
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
9973
|
-
alias: string;
|
|
9974
|
-
over: {
|
|
9975
|
-
orderBy?: {
|
|
9976
|
-
field: string;
|
|
9977
|
-
order: "asc" | "desc";
|
|
9978
|
-
}[] | undefined;
|
|
9979
|
-
partitionBy?: string[] | undefined;
|
|
9980
|
-
frame?: {
|
|
9981
|
-
type?: "rows" | "range" | undefined;
|
|
9982
|
-
start?: string | undefined;
|
|
9983
|
-
end?: string | undefined;
|
|
9984
|
-
} | undefined;
|
|
9985
|
-
};
|
|
9986
|
-
field?: string | undefined;
|
|
9987
|
-
}[] | undefined;
|
|
7400
|
+
timeout?: number | undefined;
|
|
7401
|
+
tenantId?: string | undefined;
|
|
7402
|
+
transaction?: any;
|
|
7403
|
+
skipCache?: boolean | undefined;
|
|
7404
|
+
traceContext?: Record<string, string> | undefined;
|
|
9988
7405
|
}, {
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
field: string;
|
|
10005
|
-
order?: "asc" | "desc" | undefined;
|
|
10006
|
-
}[] | undefined;
|
|
10007
|
-
limit?: number | undefined;
|
|
10008
|
-
offset?: number | undefined;
|
|
10009
|
-
cursor?: Record<string, any> | undefined;
|
|
10010
|
-
joins?: any[] | undefined;
|
|
10011
|
-
aggregations?: {
|
|
10012
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10013
|
-
alias: string;
|
|
10014
|
-
filter?: FilterCondition | undefined;
|
|
10015
|
-
field?: string | undefined;
|
|
10016
|
-
distinct?: boolean | undefined;
|
|
10017
|
-
}[] | undefined;
|
|
10018
|
-
groupBy?: string[] | undefined;
|
|
10019
|
-
having?: FilterCondition | undefined;
|
|
10020
|
-
windowFunctions?: {
|
|
10021
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10022
|
-
alias: string;
|
|
10023
|
-
over: {
|
|
10024
|
-
orderBy?: {
|
|
10025
|
-
field: string;
|
|
10026
|
-
order?: "asc" | "desc" | undefined;
|
|
10027
|
-
}[] | undefined;
|
|
10028
|
-
partitionBy?: string[] | undefined;
|
|
10029
|
-
frame?: {
|
|
10030
|
-
type?: "rows" | "range" | undefined;
|
|
10031
|
-
start?: string | undefined;
|
|
10032
|
-
end?: string | undefined;
|
|
10033
|
-
} | undefined;
|
|
10034
|
-
};
|
|
10035
|
-
field?: string | undefined;
|
|
10036
|
-
}[] | undefined;
|
|
10037
|
-
}>, z.ZodOptional<z.ZodObject<{
|
|
7406
|
+
timeout?: number | undefined;
|
|
7407
|
+
tenantId?: string | undefined;
|
|
7408
|
+
transaction?: any;
|
|
7409
|
+
skipCache?: boolean | undefined;
|
|
7410
|
+
traceContext?: Record<string, string> | undefined;
|
|
7411
|
+
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
7412
|
+
/**
|
|
7413
|
+
* Analyze query performance.
|
|
7414
|
+
* Returns execution plan without executing the query (where possible).
|
|
7415
|
+
*
|
|
7416
|
+
* @param object - The object name.
|
|
7417
|
+
* @param query - The query to explain.
|
|
7418
|
+
* @returns The execution plan details.
|
|
7419
|
+
*/
|
|
7420
|
+
explain: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodOptional<z.ZodObject<{
|
|
10038
7421
|
/**
|
|
10039
7422
|
* Transaction handle/identifier.
|
|
10040
7423
|
* If provided, the operation must run within this transaction.
|
|
@@ -10072,112 +7455,14 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10072
7455
|
traceContext?: Record<string, string> | undefined;
|
|
10073
7456
|
}>>], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>>;
|
|
10074
7457
|
}, "strip", z.ZodTypeAny, {
|
|
10075
|
-
find: (args_0: string, args_1: {
|
|
10076
|
-
object: string;
|
|
10077
|
-
where?: FilterCondition | undefined;
|
|
10078
|
-
distinct?: boolean | undefined;
|
|
10079
|
-
fields?: any[] | undefined;
|
|
10080
|
-
search?: {
|
|
10081
|
-
query: string;
|
|
10082
|
-
fields?: string[] | undefined;
|
|
10083
|
-
fuzzy?: boolean | undefined;
|
|
10084
|
-
operator?: "and" | "or" | undefined;
|
|
10085
|
-
boost?: Record<string, number> | undefined;
|
|
10086
|
-
minScore?: number | undefined;
|
|
10087
|
-
language?: string | undefined;
|
|
10088
|
-
highlight?: boolean | undefined;
|
|
10089
|
-
} | undefined;
|
|
10090
|
-
orderBy?: {
|
|
10091
|
-
field: string;
|
|
10092
|
-
order?: "asc" | "desc" | undefined;
|
|
10093
|
-
}[] | undefined;
|
|
10094
|
-
limit?: number | undefined;
|
|
10095
|
-
offset?: number | undefined;
|
|
10096
|
-
cursor?: Record<string, any> | undefined;
|
|
10097
|
-
joins?: any[] | undefined;
|
|
10098
|
-
aggregations?: {
|
|
10099
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10100
|
-
alias: string;
|
|
10101
|
-
filter?: FilterCondition | undefined;
|
|
10102
|
-
field?: string | undefined;
|
|
10103
|
-
distinct?: boolean | undefined;
|
|
10104
|
-
}[] | undefined;
|
|
10105
|
-
groupBy?: string[] | undefined;
|
|
10106
|
-
having?: FilterCondition | undefined;
|
|
10107
|
-
windowFunctions?: {
|
|
10108
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10109
|
-
alias: string;
|
|
10110
|
-
over: {
|
|
10111
|
-
orderBy?: {
|
|
10112
|
-
field: string;
|
|
10113
|
-
order?: "asc" | "desc" | undefined;
|
|
10114
|
-
}[] | undefined;
|
|
10115
|
-
partitionBy?: string[] | undefined;
|
|
10116
|
-
frame?: {
|
|
10117
|
-
type?: "rows" | "range" | undefined;
|
|
10118
|
-
start?: string | undefined;
|
|
10119
|
-
end?: string | undefined;
|
|
10120
|
-
} | undefined;
|
|
10121
|
-
};
|
|
10122
|
-
field?: string | undefined;
|
|
10123
|
-
}[] | undefined;
|
|
10124
|
-
}, args_2: {
|
|
7458
|
+
find: (args_0: string, args_1: QueryInput, args_2: {
|
|
10125
7459
|
timeout?: number | undefined;
|
|
10126
7460
|
tenantId?: string | undefined;
|
|
10127
7461
|
transaction?: any;
|
|
10128
7462
|
skipCache?: boolean | undefined;
|
|
10129
7463
|
traceContext?: Record<string, string> | undefined;
|
|
10130
7464
|
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
10131
|
-
count: (args_0: string, args_1: {
|
|
10132
|
-
object: string;
|
|
10133
|
-
where?: FilterCondition | undefined;
|
|
10134
|
-
distinct?: boolean | undefined;
|
|
10135
|
-
fields?: any[] | undefined;
|
|
10136
|
-
search?: {
|
|
10137
|
-
query: string;
|
|
10138
|
-
fields?: string[] | undefined;
|
|
10139
|
-
fuzzy?: boolean | undefined;
|
|
10140
|
-
operator?: "and" | "or" | undefined;
|
|
10141
|
-
boost?: Record<string, number> | undefined;
|
|
10142
|
-
minScore?: number | undefined;
|
|
10143
|
-
language?: string | undefined;
|
|
10144
|
-
highlight?: boolean | undefined;
|
|
10145
|
-
} | undefined;
|
|
10146
|
-
orderBy?: {
|
|
10147
|
-
field: string;
|
|
10148
|
-
order?: "asc" | "desc" | undefined;
|
|
10149
|
-
}[] | undefined;
|
|
10150
|
-
limit?: number | undefined;
|
|
10151
|
-
offset?: number | undefined;
|
|
10152
|
-
cursor?: Record<string, any> | undefined;
|
|
10153
|
-
joins?: any[] | undefined;
|
|
10154
|
-
aggregations?: {
|
|
10155
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10156
|
-
alias: string;
|
|
10157
|
-
filter?: FilterCondition | undefined;
|
|
10158
|
-
field?: string | undefined;
|
|
10159
|
-
distinct?: boolean | undefined;
|
|
10160
|
-
}[] | undefined;
|
|
10161
|
-
groupBy?: string[] | undefined;
|
|
10162
|
-
having?: FilterCondition | undefined;
|
|
10163
|
-
windowFunctions?: {
|
|
10164
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10165
|
-
alias: string;
|
|
10166
|
-
over: {
|
|
10167
|
-
orderBy?: {
|
|
10168
|
-
field: string;
|
|
10169
|
-
order?: "asc" | "desc" | undefined;
|
|
10170
|
-
}[] | undefined;
|
|
10171
|
-
partitionBy?: string[] | undefined;
|
|
10172
|
-
frame?: {
|
|
10173
|
-
type?: "rows" | "range" | undefined;
|
|
10174
|
-
start?: string | undefined;
|
|
10175
|
-
end?: string | undefined;
|
|
10176
|
-
} | undefined;
|
|
10177
|
-
};
|
|
10178
|
-
field?: string | undefined;
|
|
10179
|
-
}[] | undefined;
|
|
10180
|
-
} | undefined, args_2: {
|
|
7465
|
+
count: (args_0: string, args_1: QueryInput | undefined, args_2: {
|
|
10181
7466
|
timeout?: number | undefined;
|
|
10182
7467
|
tenantId?: string | undefined;
|
|
10183
7468
|
transaction?: any;
|
|
@@ -10214,56 +7499,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10214
7499
|
traceContext?: Record<string, string> | undefined;
|
|
10215
7500
|
} | undefined, ...args: unknown[]) => Promise<Record<string, any>>;
|
|
10216
7501
|
version: string;
|
|
10217
|
-
findOne: (args_0: string, args_1: {
|
|
10218
|
-
object: string;
|
|
10219
|
-
where?: FilterCondition | undefined;
|
|
10220
|
-
distinct?: boolean | undefined;
|
|
10221
|
-
fields?: any[] | undefined;
|
|
10222
|
-
search?: {
|
|
10223
|
-
query: string;
|
|
10224
|
-
fields?: string[] | undefined;
|
|
10225
|
-
fuzzy?: boolean | undefined;
|
|
10226
|
-
operator?: "and" | "or" | undefined;
|
|
10227
|
-
boost?: Record<string, number> | undefined;
|
|
10228
|
-
minScore?: number | undefined;
|
|
10229
|
-
language?: string | undefined;
|
|
10230
|
-
highlight?: boolean | undefined;
|
|
10231
|
-
} | undefined;
|
|
10232
|
-
orderBy?: {
|
|
10233
|
-
field: string;
|
|
10234
|
-
order?: "asc" | "desc" | undefined;
|
|
10235
|
-
}[] | undefined;
|
|
10236
|
-
limit?: number | undefined;
|
|
10237
|
-
offset?: number | undefined;
|
|
10238
|
-
cursor?: Record<string, any> | undefined;
|
|
10239
|
-
joins?: any[] | undefined;
|
|
10240
|
-
aggregations?: {
|
|
10241
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10242
|
-
alias: string;
|
|
10243
|
-
filter?: FilterCondition | undefined;
|
|
10244
|
-
field?: string | undefined;
|
|
10245
|
-
distinct?: boolean | undefined;
|
|
10246
|
-
}[] | undefined;
|
|
10247
|
-
groupBy?: string[] | undefined;
|
|
10248
|
-
having?: FilterCondition | undefined;
|
|
10249
|
-
windowFunctions?: {
|
|
10250
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10251
|
-
alias: string;
|
|
10252
|
-
over: {
|
|
10253
|
-
orderBy?: {
|
|
10254
|
-
field: string;
|
|
10255
|
-
order?: "asc" | "desc" | undefined;
|
|
10256
|
-
}[] | undefined;
|
|
10257
|
-
partitionBy?: string[] | undefined;
|
|
10258
|
-
frame?: {
|
|
10259
|
-
type?: "rows" | "range" | undefined;
|
|
10260
|
-
start?: string | undefined;
|
|
10261
|
-
end?: string | undefined;
|
|
10262
|
-
} | undefined;
|
|
10263
|
-
};
|
|
10264
|
-
field?: string | undefined;
|
|
10265
|
-
}[] | undefined;
|
|
10266
|
-
}, args_2: {
|
|
7502
|
+
findOne: (args_0: string, args_1: QueryInput, args_2: {
|
|
10267
7503
|
timeout?: number | undefined;
|
|
10268
7504
|
tenantId?: string | undefined;
|
|
10269
7505
|
transaction?: any;
|
|
@@ -10338,56 +7574,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10338
7574
|
connect: (...args: unknown[]) => Promise<void>;
|
|
10339
7575
|
disconnect: (...args: unknown[]) => Promise<void>;
|
|
10340
7576
|
checkHealth: (...args: unknown[]) => Promise<boolean>;
|
|
10341
|
-
findStream: (args_0: string, args_1: {
|
|
10342
|
-
object: string;
|
|
10343
|
-
where?: FilterCondition | undefined;
|
|
10344
|
-
distinct?: boolean | undefined;
|
|
10345
|
-
fields?: any[] | undefined;
|
|
10346
|
-
search?: {
|
|
10347
|
-
query: string;
|
|
10348
|
-
fields?: string[] | undefined;
|
|
10349
|
-
fuzzy?: boolean | undefined;
|
|
10350
|
-
operator?: "and" | "or" | undefined;
|
|
10351
|
-
boost?: Record<string, number> | undefined;
|
|
10352
|
-
minScore?: number | undefined;
|
|
10353
|
-
language?: string | undefined;
|
|
10354
|
-
highlight?: boolean | undefined;
|
|
10355
|
-
} | undefined;
|
|
10356
|
-
orderBy?: {
|
|
10357
|
-
field: string;
|
|
10358
|
-
order?: "asc" | "desc" | undefined;
|
|
10359
|
-
}[] | undefined;
|
|
10360
|
-
limit?: number | undefined;
|
|
10361
|
-
offset?: number | undefined;
|
|
10362
|
-
cursor?: Record<string, any> | undefined;
|
|
10363
|
-
joins?: any[] | undefined;
|
|
10364
|
-
aggregations?: {
|
|
10365
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10366
|
-
alias: string;
|
|
10367
|
-
filter?: FilterCondition | undefined;
|
|
10368
|
-
field?: string | undefined;
|
|
10369
|
-
distinct?: boolean | undefined;
|
|
10370
|
-
}[] | undefined;
|
|
10371
|
-
groupBy?: string[] | undefined;
|
|
10372
|
-
having?: FilterCondition | undefined;
|
|
10373
|
-
windowFunctions?: {
|
|
10374
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10375
|
-
alias: string;
|
|
10376
|
-
over: {
|
|
10377
|
-
orderBy?: {
|
|
10378
|
-
field: string;
|
|
10379
|
-
order?: "asc" | "desc" | undefined;
|
|
10380
|
-
}[] | undefined;
|
|
10381
|
-
partitionBy?: string[] | undefined;
|
|
10382
|
-
frame?: {
|
|
10383
|
-
type?: "rows" | "range" | undefined;
|
|
10384
|
-
start?: string | undefined;
|
|
10385
|
-
end?: string | undefined;
|
|
10386
|
-
} | undefined;
|
|
10387
|
-
};
|
|
10388
|
-
field?: string | undefined;
|
|
10389
|
-
}[] | undefined;
|
|
10390
|
-
}, args_2: {
|
|
7577
|
+
findStream: (args_0: string, args_1: QueryInput, args_2: {
|
|
10391
7578
|
timeout?: number | undefined;
|
|
10392
7579
|
tenantId?: string | undefined;
|
|
10393
7580
|
transaction?: any;
|
|
@@ -10419,168 +7606,21 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10419
7606
|
idle: number;
|
|
10420
7607
|
waiting: number;
|
|
10421
7608
|
} | undefined) | undefined;
|
|
10422
|
-
updateMany?: ((args_0: string, args_1: {
|
|
10423
|
-
object: string;
|
|
10424
|
-
where?: FilterCondition | undefined;
|
|
10425
|
-
distinct?: boolean | undefined;
|
|
10426
|
-
fields?: any[] | undefined;
|
|
10427
|
-
search?: {
|
|
10428
|
-
query: string;
|
|
10429
|
-
fields?: string[] | undefined;
|
|
10430
|
-
fuzzy?: boolean | undefined;
|
|
10431
|
-
operator?: "and" | "or" | undefined;
|
|
10432
|
-
boost?: Record<string, number> | undefined;
|
|
10433
|
-
minScore?: number | undefined;
|
|
10434
|
-
language?: string | undefined;
|
|
10435
|
-
highlight?: boolean | undefined;
|
|
10436
|
-
} | undefined;
|
|
10437
|
-
orderBy?: {
|
|
10438
|
-
field: string;
|
|
10439
|
-
order?: "asc" | "desc" | undefined;
|
|
10440
|
-
}[] | undefined;
|
|
10441
|
-
limit?: number | undefined;
|
|
10442
|
-
offset?: number | undefined;
|
|
10443
|
-
cursor?: Record<string, any> | undefined;
|
|
10444
|
-
joins?: any[] | undefined;
|
|
10445
|
-
aggregations?: {
|
|
10446
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10447
|
-
alias: string;
|
|
10448
|
-
filter?: FilterCondition | undefined;
|
|
10449
|
-
field?: string | undefined;
|
|
10450
|
-
distinct?: boolean | undefined;
|
|
10451
|
-
}[] | undefined;
|
|
10452
|
-
groupBy?: string[] | undefined;
|
|
10453
|
-
having?: FilterCondition | undefined;
|
|
10454
|
-
windowFunctions?: {
|
|
10455
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10456
|
-
alias: string;
|
|
10457
|
-
over: {
|
|
10458
|
-
orderBy?: {
|
|
10459
|
-
field: string;
|
|
10460
|
-
order?: "asc" | "desc" | undefined;
|
|
10461
|
-
}[] | undefined;
|
|
10462
|
-
partitionBy?: string[] | undefined;
|
|
10463
|
-
frame?: {
|
|
10464
|
-
type?: "rows" | "range" | undefined;
|
|
10465
|
-
start?: string | undefined;
|
|
10466
|
-
end?: string | undefined;
|
|
10467
|
-
} | undefined;
|
|
10468
|
-
};
|
|
10469
|
-
field?: string | undefined;
|
|
10470
|
-
}[] | undefined;
|
|
10471
|
-
}, args_2: Record<string, any>, args_3: {
|
|
7609
|
+
updateMany?: ((args_0: string, args_1: QueryInput, args_2: Record<string, any>, args_3: {
|
|
10472
7610
|
timeout?: number | undefined;
|
|
10473
7611
|
tenantId?: string | undefined;
|
|
10474
7612
|
transaction?: any;
|
|
10475
7613
|
skipCache?: boolean | undefined;
|
|
10476
7614
|
traceContext?: Record<string, string> | undefined;
|
|
10477
7615
|
} | undefined, ...args: unknown[]) => Promise<number>) | undefined;
|
|
10478
|
-
deleteMany?: ((args_0: string, args_1: {
|
|
10479
|
-
object: string;
|
|
10480
|
-
where?: FilterCondition | undefined;
|
|
10481
|
-
distinct?: boolean | undefined;
|
|
10482
|
-
fields?: any[] | undefined;
|
|
10483
|
-
search?: {
|
|
10484
|
-
query: string;
|
|
10485
|
-
fields?: string[] | undefined;
|
|
10486
|
-
fuzzy?: boolean | undefined;
|
|
10487
|
-
operator?: "and" | "or" | undefined;
|
|
10488
|
-
boost?: Record<string, number> | undefined;
|
|
10489
|
-
minScore?: number | undefined;
|
|
10490
|
-
language?: string | undefined;
|
|
10491
|
-
highlight?: boolean | undefined;
|
|
10492
|
-
} | undefined;
|
|
10493
|
-
orderBy?: {
|
|
10494
|
-
field: string;
|
|
10495
|
-
order?: "asc" | "desc" | undefined;
|
|
10496
|
-
}[] | undefined;
|
|
10497
|
-
limit?: number | undefined;
|
|
10498
|
-
offset?: number | undefined;
|
|
10499
|
-
cursor?: Record<string, any> | undefined;
|
|
10500
|
-
joins?: any[] | undefined;
|
|
10501
|
-
aggregations?: {
|
|
10502
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10503
|
-
alias: string;
|
|
10504
|
-
filter?: FilterCondition | undefined;
|
|
10505
|
-
field?: string | undefined;
|
|
10506
|
-
distinct?: boolean | undefined;
|
|
10507
|
-
}[] | undefined;
|
|
10508
|
-
groupBy?: string[] | undefined;
|
|
10509
|
-
having?: FilterCondition | undefined;
|
|
10510
|
-
windowFunctions?: {
|
|
10511
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10512
|
-
alias: string;
|
|
10513
|
-
over: {
|
|
10514
|
-
orderBy?: {
|
|
10515
|
-
field: string;
|
|
10516
|
-
order?: "asc" | "desc" | undefined;
|
|
10517
|
-
}[] | undefined;
|
|
10518
|
-
partitionBy?: string[] | undefined;
|
|
10519
|
-
frame?: {
|
|
10520
|
-
type?: "rows" | "range" | undefined;
|
|
10521
|
-
start?: string | undefined;
|
|
10522
|
-
end?: string | undefined;
|
|
10523
|
-
} | undefined;
|
|
10524
|
-
};
|
|
10525
|
-
field?: string | undefined;
|
|
10526
|
-
}[] | undefined;
|
|
10527
|
-
}, args_2: {
|
|
7616
|
+
deleteMany?: ((args_0: string, args_1: QueryInput, args_2: {
|
|
10528
7617
|
timeout?: number | undefined;
|
|
10529
7618
|
tenantId?: string | undefined;
|
|
10530
7619
|
transaction?: any;
|
|
10531
7620
|
skipCache?: boolean | undefined;
|
|
10532
7621
|
traceContext?: Record<string, string> | undefined;
|
|
10533
7622
|
} | undefined, ...args: unknown[]) => Promise<number>) | undefined;
|
|
10534
|
-
explain?: ((args_0: string, args_1: {
|
|
10535
|
-
object: string;
|
|
10536
|
-
where?: FilterCondition | undefined;
|
|
10537
|
-
distinct?: boolean | undefined;
|
|
10538
|
-
fields?: any[] | undefined;
|
|
10539
|
-
search?: {
|
|
10540
|
-
query: string;
|
|
10541
|
-
fields?: string[] | undefined;
|
|
10542
|
-
fuzzy?: boolean | undefined;
|
|
10543
|
-
operator?: "and" | "or" | undefined;
|
|
10544
|
-
boost?: Record<string, number> | undefined;
|
|
10545
|
-
minScore?: number | undefined;
|
|
10546
|
-
language?: string | undefined;
|
|
10547
|
-
highlight?: boolean | undefined;
|
|
10548
|
-
} | undefined;
|
|
10549
|
-
orderBy?: {
|
|
10550
|
-
field: string;
|
|
10551
|
-
order?: "asc" | "desc" | undefined;
|
|
10552
|
-
}[] | undefined;
|
|
10553
|
-
limit?: number | undefined;
|
|
10554
|
-
offset?: number | undefined;
|
|
10555
|
-
cursor?: Record<string, any> | undefined;
|
|
10556
|
-
joins?: any[] | undefined;
|
|
10557
|
-
aggregations?: {
|
|
10558
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10559
|
-
alias: string;
|
|
10560
|
-
filter?: FilterCondition | undefined;
|
|
10561
|
-
field?: string | undefined;
|
|
10562
|
-
distinct?: boolean | undefined;
|
|
10563
|
-
}[] | undefined;
|
|
10564
|
-
groupBy?: string[] | undefined;
|
|
10565
|
-
having?: FilterCondition | undefined;
|
|
10566
|
-
windowFunctions?: {
|
|
10567
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10568
|
-
alias: string;
|
|
10569
|
-
over: {
|
|
10570
|
-
orderBy?: {
|
|
10571
|
-
field: string;
|
|
10572
|
-
order?: "asc" | "desc" | undefined;
|
|
10573
|
-
}[] | undefined;
|
|
10574
|
-
partitionBy?: string[] | undefined;
|
|
10575
|
-
frame?: {
|
|
10576
|
-
type?: "rows" | "range" | undefined;
|
|
10577
|
-
start?: string | undefined;
|
|
10578
|
-
end?: string | undefined;
|
|
10579
|
-
} | undefined;
|
|
10580
|
-
};
|
|
10581
|
-
field?: string | undefined;
|
|
10582
|
-
}[] | undefined;
|
|
10583
|
-
}, args_2: {
|
|
7623
|
+
explain?: ((args_0: string, args_1: QueryInput, args_2: {
|
|
10584
7624
|
timeout?: number | undefined;
|
|
10585
7625
|
tenantId?: string | undefined;
|
|
10586
7626
|
transaction?: any;
|
|
@@ -10588,112 +7628,14 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10588
7628
|
traceContext?: Record<string, string> | undefined;
|
|
10589
7629
|
} | undefined, ...args: unknown[]) => Promise<any>) | undefined;
|
|
10590
7630
|
}, {
|
|
10591
|
-
find: (args_0: string, args_1: {
|
|
10592
|
-
object: string;
|
|
10593
|
-
where?: FilterCondition | undefined;
|
|
10594
|
-
distinct?: boolean | undefined;
|
|
10595
|
-
fields?: any[] | undefined;
|
|
10596
|
-
search?: {
|
|
10597
|
-
query: string;
|
|
10598
|
-
fuzzy: boolean;
|
|
10599
|
-
operator: "and" | "or";
|
|
10600
|
-
highlight: boolean;
|
|
10601
|
-
fields?: string[] | undefined;
|
|
10602
|
-
boost?: Record<string, number> | undefined;
|
|
10603
|
-
minScore?: number | undefined;
|
|
10604
|
-
language?: string | undefined;
|
|
10605
|
-
} | undefined;
|
|
10606
|
-
orderBy?: {
|
|
10607
|
-
field: string;
|
|
10608
|
-
order: "asc" | "desc";
|
|
10609
|
-
}[] | undefined;
|
|
10610
|
-
limit?: number | undefined;
|
|
10611
|
-
offset?: number | undefined;
|
|
10612
|
-
cursor?: Record<string, any> | undefined;
|
|
10613
|
-
joins?: any[] | undefined;
|
|
10614
|
-
aggregations?: {
|
|
10615
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10616
|
-
alias: string;
|
|
10617
|
-
filter?: FilterCondition | undefined;
|
|
10618
|
-
field?: string | undefined;
|
|
10619
|
-
distinct?: boolean | undefined;
|
|
10620
|
-
}[] | undefined;
|
|
10621
|
-
groupBy?: string[] | undefined;
|
|
10622
|
-
having?: FilterCondition | undefined;
|
|
10623
|
-
windowFunctions?: {
|
|
10624
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10625
|
-
alias: string;
|
|
10626
|
-
over: {
|
|
10627
|
-
orderBy?: {
|
|
10628
|
-
field: string;
|
|
10629
|
-
order: "asc" | "desc";
|
|
10630
|
-
}[] | undefined;
|
|
10631
|
-
partitionBy?: string[] | undefined;
|
|
10632
|
-
frame?: {
|
|
10633
|
-
type?: "rows" | "range" | undefined;
|
|
10634
|
-
start?: string | undefined;
|
|
10635
|
-
end?: string | undefined;
|
|
10636
|
-
} | undefined;
|
|
10637
|
-
};
|
|
10638
|
-
field?: string | undefined;
|
|
10639
|
-
}[] | undefined;
|
|
10640
|
-
}, args_2: {
|
|
7631
|
+
find: (args_0: string, args_1: QueryAST, args_2: {
|
|
10641
7632
|
timeout?: number | undefined;
|
|
10642
7633
|
tenantId?: string | undefined;
|
|
10643
7634
|
transaction?: any;
|
|
10644
7635
|
skipCache?: boolean | undefined;
|
|
10645
7636
|
traceContext?: Record<string, string> | undefined;
|
|
10646
7637
|
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
10647
|
-
count: (args_0: string, args_1: {
|
|
10648
|
-
object: string;
|
|
10649
|
-
where?: FilterCondition | undefined;
|
|
10650
|
-
distinct?: boolean | undefined;
|
|
10651
|
-
fields?: any[] | undefined;
|
|
10652
|
-
search?: {
|
|
10653
|
-
query: string;
|
|
10654
|
-
fuzzy: boolean;
|
|
10655
|
-
operator: "and" | "or";
|
|
10656
|
-
highlight: boolean;
|
|
10657
|
-
fields?: string[] | undefined;
|
|
10658
|
-
boost?: Record<string, number> | undefined;
|
|
10659
|
-
minScore?: number | undefined;
|
|
10660
|
-
language?: string | undefined;
|
|
10661
|
-
} | undefined;
|
|
10662
|
-
orderBy?: {
|
|
10663
|
-
field: string;
|
|
10664
|
-
order: "asc" | "desc";
|
|
10665
|
-
}[] | undefined;
|
|
10666
|
-
limit?: number | undefined;
|
|
10667
|
-
offset?: number | undefined;
|
|
10668
|
-
cursor?: Record<string, any> | undefined;
|
|
10669
|
-
joins?: any[] | undefined;
|
|
10670
|
-
aggregations?: {
|
|
10671
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10672
|
-
alias: string;
|
|
10673
|
-
filter?: FilterCondition | undefined;
|
|
10674
|
-
field?: string | undefined;
|
|
10675
|
-
distinct?: boolean | undefined;
|
|
10676
|
-
}[] | undefined;
|
|
10677
|
-
groupBy?: string[] | undefined;
|
|
10678
|
-
having?: FilterCondition | undefined;
|
|
10679
|
-
windowFunctions?: {
|
|
10680
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10681
|
-
alias: string;
|
|
10682
|
-
over: {
|
|
10683
|
-
orderBy?: {
|
|
10684
|
-
field: string;
|
|
10685
|
-
order: "asc" | "desc";
|
|
10686
|
-
}[] | undefined;
|
|
10687
|
-
partitionBy?: string[] | undefined;
|
|
10688
|
-
frame?: {
|
|
10689
|
-
type?: "rows" | "range" | undefined;
|
|
10690
|
-
start?: string | undefined;
|
|
10691
|
-
end?: string | undefined;
|
|
10692
|
-
} | undefined;
|
|
10693
|
-
};
|
|
10694
|
-
field?: string | undefined;
|
|
10695
|
-
}[] | undefined;
|
|
10696
|
-
} | undefined, args_2: {
|
|
7638
|
+
count: (args_0: string, args_1: QueryAST | undefined, args_2: {
|
|
10697
7639
|
timeout?: number | undefined;
|
|
10698
7640
|
tenantId?: string | undefined;
|
|
10699
7641
|
transaction?: any;
|
|
@@ -10730,56 +7672,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10730
7672
|
traceContext?: Record<string, string> | undefined;
|
|
10731
7673
|
} | undefined, ...args: unknown[]) => Promise<Record<string, any>>;
|
|
10732
7674
|
version: string;
|
|
10733
|
-
findOne: (args_0: string, args_1: {
|
|
10734
|
-
object: string;
|
|
10735
|
-
where?: FilterCondition | undefined;
|
|
10736
|
-
distinct?: boolean | undefined;
|
|
10737
|
-
fields?: any[] | undefined;
|
|
10738
|
-
search?: {
|
|
10739
|
-
query: string;
|
|
10740
|
-
fuzzy: boolean;
|
|
10741
|
-
operator: "and" | "or";
|
|
10742
|
-
highlight: boolean;
|
|
10743
|
-
fields?: string[] | undefined;
|
|
10744
|
-
boost?: Record<string, number> | undefined;
|
|
10745
|
-
minScore?: number | undefined;
|
|
10746
|
-
language?: string | undefined;
|
|
10747
|
-
} | undefined;
|
|
10748
|
-
orderBy?: {
|
|
10749
|
-
field: string;
|
|
10750
|
-
order: "asc" | "desc";
|
|
10751
|
-
}[] | undefined;
|
|
10752
|
-
limit?: number | undefined;
|
|
10753
|
-
offset?: number | undefined;
|
|
10754
|
-
cursor?: Record<string, any> | undefined;
|
|
10755
|
-
joins?: any[] | undefined;
|
|
10756
|
-
aggregations?: {
|
|
10757
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10758
|
-
alias: string;
|
|
10759
|
-
filter?: FilterCondition | undefined;
|
|
10760
|
-
field?: string | undefined;
|
|
10761
|
-
distinct?: boolean | undefined;
|
|
10762
|
-
}[] | undefined;
|
|
10763
|
-
groupBy?: string[] | undefined;
|
|
10764
|
-
having?: FilterCondition | undefined;
|
|
10765
|
-
windowFunctions?: {
|
|
10766
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10767
|
-
alias: string;
|
|
10768
|
-
over: {
|
|
10769
|
-
orderBy?: {
|
|
10770
|
-
field: string;
|
|
10771
|
-
order: "asc" | "desc";
|
|
10772
|
-
}[] | undefined;
|
|
10773
|
-
partitionBy?: string[] | undefined;
|
|
10774
|
-
frame?: {
|
|
10775
|
-
type?: "rows" | "range" | undefined;
|
|
10776
|
-
start?: string | undefined;
|
|
10777
|
-
end?: string | undefined;
|
|
10778
|
-
} | undefined;
|
|
10779
|
-
};
|
|
10780
|
-
field?: string | undefined;
|
|
10781
|
-
}[] | undefined;
|
|
10782
|
-
}, args_2: {
|
|
7675
|
+
findOne: (args_0: string, args_1: QueryAST, args_2: {
|
|
10783
7676
|
timeout?: number | undefined;
|
|
10784
7677
|
tenantId?: string | undefined;
|
|
10785
7678
|
transaction?: any;
|
|
@@ -10854,56 +7747,7 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10854
7747
|
connect: (...args: unknown[]) => Promise<void>;
|
|
10855
7748
|
disconnect: (...args: unknown[]) => Promise<void>;
|
|
10856
7749
|
checkHealth: (...args: unknown[]) => Promise<boolean>;
|
|
10857
|
-
findStream: (args_0: string, args_1: {
|
|
10858
|
-
object: string;
|
|
10859
|
-
where?: FilterCondition | undefined;
|
|
10860
|
-
distinct?: boolean | undefined;
|
|
10861
|
-
fields?: any[] | undefined;
|
|
10862
|
-
search?: {
|
|
10863
|
-
query: string;
|
|
10864
|
-
fuzzy: boolean;
|
|
10865
|
-
operator: "and" | "or";
|
|
10866
|
-
highlight: boolean;
|
|
10867
|
-
fields?: string[] | undefined;
|
|
10868
|
-
boost?: Record<string, number> | undefined;
|
|
10869
|
-
minScore?: number | undefined;
|
|
10870
|
-
language?: string | undefined;
|
|
10871
|
-
} | undefined;
|
|
10872
|
-
orderBy?: {
|
|
10873
|
-
field: string;
|
|
10874
|
-
order: "asc" | "desc";
|
|
10875
|
-
}[] | undefined;
|
|
10876
|
-
limit?: number | undefined;
|
|
10877
|
-
offset?: number | undefined;
|
|
10878
|
-
cursor?: Record<string, any> | undefined;
|
|
10879
|
-
joins?: any[] | undefined;
|
|
10880
|
-
aggregations?: {
|
|
10881
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10882
|
-
alias: string;
|
|
10883
|
-
filter?: FilterCondition | undefined;
|
|
10884
|
-
field?: string | undefined;
|
|
10885
|
-
distinct?: boolean | undefined;
|
|
10886
|
-
}[] | undefined;
|
|
10887
|
-
groupBy?: string[] | undefined;
|
|
10888
|
-
having?: FilterCondition | undefined;
|
|
10889
|
-
windowFunctions?: {
|
|
10890
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10891
|
-
alias: string;
|
|
10892
|
-
over: {
|
|
10893
|
-
orderBy?: {
|
|
10894
|
-
field: string;
|
|
10895
|
-
order: "asc" | "desc";
|
|
10896
|
-
}[] | undefined;
|
|
10897
|
-
partitionBy?: string[] | undefined;
|
|
10898
|
-
frame?: {
|
|
10899
|
-
type?: "rows" | "range" | undefined;
|
|
10900
|
-
start?: string | undefined;
|
|
10901
|
-
end?: string | undefined;
|
|
10902
|
-
} | undefined;
|
|
10903
|
-
};
|
|
10904
|
-
field?: string | undefined;
|
|
10905
|
-
}[] | undefined;
|
|
10906
|
-
}, args_2: {
|
|
7750
|
+
findStream: (args_0: string, args_1: QueryAST, args_2: {
|
|
10907
7751
|
timeout?: number | undefined;
|
|
10908
7752
|
tenantId?: string | undefined;
|
|
10909
7753
|
transaction?: any;
|
|
@@ -10935,168 +7779,21 @@ declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
10935
7779
|
idle: number;
|
|
10936
7780
|
waiting: number;
|
|
10937
7781
|
} | undefined) | undefined;
|
|
10938
|
-
updateMany?: ((args_0: string, args_1: {
|
|
10939
|
-
object: string;
|
|
10940
|
-
where?: FilterCondition | undefined;
|
|
10941
|
-
distinct?: boolean | undefined;
|
|
10942
|
-
fields?: any[] | undefined;
|
|
10943
|
-
search?: {
|
|
10944
|
-
query: string;
|
|
10945
|
-
fuzzy: boolean;
|
|
10946
|
-
operator: "and" | "or";
|
|
10947
|
-
highlight: boolean;
|
|
10948
|
-
fields?: string[] | undefined;
|
|
10949
|
-
boost?: Record<string, number> | undefined;
|
|
10950
|
-
minScore?: number | undefined;
|
|
10951
|
-
language?: string | undefined;
|
|
10952
|
-
} | undefined;
|
|
10953
|
-
orderBy?: {
|
|
10954
|
-
field: string;
|
|
10955
|
-
order: "asc" | "desc";
|
|
10956
|
-
}[] | undefined;
|
|
10957
|
-
limit?: number | undefined;
|
|
10958
|
-
offset?: number | undefined;
|
|
10959
|
-
cursor?: Record<string, any> | undefined;
|
|
10960
|
-
joins?: any[] | undefined;
|
|
10961
|
-
aggregations?: {
|
|
10962
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
10963
|
-
alias: string;
|
|
10964
|
-
filter?: FilterCondition | undefined;
|
|
10965
|
-
field?: string | undefined;
|
|
10966
|
-
distinct?: boolean | undefined;
|
|
10967
|
-
}[] | undefined;
|
|
10968
|
-
groupBy?: string[] | undefined;
|
|
10969
|
-
having?: FilterCondition | undefined;
|
|
10970
|
-
windowFunctions?: {
|
|
10971
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
10972
|
-
alias: string;
|
|
10973
|
-
over: {
|
|
10974
|
-
orderBy?: {
|
|
10975
|
-
field: string;
|
|
10976
|
-
order: "asc" | "desc";
|
|
10977
|
-
}[] | undefined;
|
|
10978
|
-
partitionBy?: string[] | undefined;
|
|
10979
|
-
frame?: {
|
|
10980
|
-
type?: "rows" | "range" | undefined;
|
|
10981
|
-
start?: string | undefined;
|
|
10982
|
-
end?: string | undefined;
|
|
10983
|
-
} | undefined;
|
|
10984
|
-
};
|
|
10985
|
-
field?: string | undefined;
|
|
10986
|
-
}[] | undefined;
|
|
10987
|
-
}, args_2: Record<string, any>, args_3: {
|
|
7782
|
+
updateMany?: ((args_0: string, args_1: QueryAST, args_2: Record<string, any>, args_3: {
|
|
10988
7783
|
timeout?: number | undefined;
|
|
10989
7784
|
tenantId?: string | undefined;
|
|
10990
7785
|
transaction?: any;
|
|
10991
7786
|
skipCache?: boolean | undefined;
|
|
10992
7787
|
traceContext?: Record<string, string> | undefined;
|
|
10993
7788
|
} | undefined, ...args: unknown[]) => Promise<number>) | undefined;
|
|
10994
|
-
deleteMany?: ((args_0: string, args_1: {
|
|
10995
|
-
object: string;
|
|
10996
|
-
where?: FilterCondition | undefined;
|
|
10997
|
-
distinct?: boolean | undefined;
|
|
10998
|
-
fields?: any[] | undefined;
|
|
10999
|
-
search?: {
|
|
11000
|
-
query: string;
|
|
11001
|
-
fuzzy: boolean;
|
|
11002
|
-
operator: "and" | "or";
|
|
11003
|
-
highlight: boolean;
|
|
11004
|
-
fields?: string[] | undefined;
|
|
11005
|
-
boost?: Record<string, number> | undefined;
|
|
11006
|
-
minScore?: number | undefined;
|
|
11007
|
-
language?: string | undefined;
|
|
11008
|
-
} | undefined;
|
|
11009
|
-
orderBy?: {
|
|
11010
|
-
field: string;
|
|
11011
|
-
order: "asc" | "desc";
|
|
11012
|
-
}[] | undefined;
|
|
11013
|
-
limit?: number | undefined;
|
|
11014
|
-
offset?: number | undefined;
|
|
11015
|
-
cursor?: Record<string, any> | undefined;
|
|
11016
|
-
joins?: any[] | undefined;
|
|
11017
|
-
aggregations?: {
|
|
11018
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
11019
|
-
alias: string;
|
|
11020
|
-
filter?: FilterCondition | undefined;
|
|
11021
|
-
field?: string | undefined;
|
|
11022
|
-
distinct?: boolean | undefined;
|
|
11023
|
-
}[] | undefined;
|
|
11024
|
-
groupBy?: string[] | undefined;
|
|
11025
|
-
having?: FilterCondition | undefined;
|
|
11026
|
-
windowFunctions?: {
|
|
11027
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
11028
|
-
alias: string;
|
|
11029
|
-
over: {
|
|
11030
|
-
orderBy?: {
|
|
11031
|
-
field: string;
|
|
11032
|
-
order: "asc" | "desc";
|
|
11033
|
-
}[] | undefined;
|
|
11034
|
-
partitionBy?: string[] | undefined;
|
|
11035
|
-
frame?: {
|
|
11036
|
-
type?: "rows" | "range" | undefined;
|
|
11037
|
-
start?: string | undefined;
|
|
11038
|
-
end?: string | undefined;
|
|
11039
|
-
} | undefined;
|
|
11040
|
-
};
|
|
11041
|
-
field?: string | undefined;
|
|
11042
|
-
}[] | undefined;
|
|
11043
|
-
}, args_2: {
|
|
7789
|
+
deleteMany?: ((args_0: string, args_1: QueryAST, args_2: {
|
|
11044
7790
|
timeout?: number | undefined;
|
|
11045
7791
|
tenantId?: string | undefined;
|
|
11046
7792
|
transaction?: any;
|
|
11047
7793
|
skipCache?: boolean | undefined;
|
|
11048
7794
|
traceContext?: Record<string, string> | undefined;
|
|
11049
7795
|
} | undefined, ...args: unknown[]) => Promise<number>) | undefined;
|
|
11050
|
-
explain?: ((args_0: string, args_1: {
|
|
11051
|
-
object: string;
|
|
11052
|
-
where?: FilterCondition | undefined;
|
|
11053
|
-
distinct?: boolean | undefined;
|
|
11054
|
-
fields?: any[] | undefined;
|
|
11055
|
-
search?: {
|
|
11056
|
-
query: string;
|
|
11057
|
-
fuzzy: boolean;
|
|
11058
|
-
operator: "and" | "or";
|
|
11059
|
-
highlight: boolean;
|
|
11060
|
-
fields?: string[] | undefined;
|
|
11061
|
-
boost?: Record<string, number> | undefined;
|
|
11062
|
-
minScore?: number | undefined;
|
|
11063
|
-
language?: string | undefined;
|
|
11064
|
-
} | undefined;
|
|
11065
|
-
orderBy?: {
|
|
11066
|
-
field: string;
|
|
11067
|
-
order: "asc" | "desc";
|
|
11068
|
-
}[] | undefined;
|
|
11069
|
-
limit?: number | undefined;
|
|
11070
|
-
offset?: number | undefined;
|
|
11071
|
-
cursor?: Record<string, any> | undefined;
|
|
11072
|
-
joins?: any[] | undefined;
|
|
11073
|
-
aggregations?: {
|
|
11074
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
11075
|
-
alias: string;
|
|
11076
|
-
filter?: FilterCondition | undefined;
|
|
11077
|
-
field?: string | undefined;
|
|
11078
|
-
distinct?: boolean | undefined;
|
|
11079
|
-
}[] | undefined;
|
|
11080
|
-
groupBy?: string[] | undefined;
|
|
11081
|
-
having?: FilterCondition | undefined;
|
|
11082
|
-
windowFunctions?: {
|
|
11083
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
11084
|
-
alias: string;
|
|
11085
|
-
over: {
|
|
11086
|
-
orderBy?: {
|
|
11087
|
-
field: string;
|
|
11088
|
-
order: "asc" | "desc";
|
|
11089
|
-
}[] | undefined;
|
|
11090
|
-
partitionBy?: string[] | undefined;
|
|
11091
|
-
frame?: {
|
|
11092
|
-
type?: "rows" | "range" | undefined;
|
|
11093
|
-
start?: string | undefined;
|
|
11094
|
-
end?: string | undefined;
|
|
11095
|
-
} | undefined;
|
|
11096
|
-
};
|
|
11097
|
-
field?: string | undefined;
|
|
11098
|
-
}[] | undefined;
|
|
11099
|
-
}, args_2: {
|
|
7796
|
+
explain?: ((args_0: string, args_1: QueryAST, args_2: {
|
|
11100
7797
|
timeout?: number | undefined;
|
|
11101
7798
|
tenantId?: string | undefined;
|
|
11102
7799
|
transaction?: any;
|
|
@@ -11523,4 +8220,4 @@ type DriverInterface = z.infer<typeof DriverInterfaceSchema>;
|
|
|
11523
8220
|
type DriverConfig = z.infer<typeof DriverConfigSchema>;
|
|
11524
8221
|
type PoolConfig = z.infer<typeof PoolConfigSchema>;
|
|
11525
8222
|
|
|
11526
|
-
export {
|
|
8223
|
+
export { TenancyConfigSchema as $, ApiMethod as A, DataEngineSortSchema as B, type CDCConfig as C, type DataEngineQueryOptions as D, DataEngineUpdateOptionsSchema as E, DataEngineUpdateRequestSchema as F, DataEngineVectorFindRequestSchema as G, type DriverCapabilities as H, DriverCapabilitiesSchema as I, type DriverConfig as J, DriverConfigSchema as K, type DriverInterface as L, DriverInterfaceSchema as M, DriverOptionsSchema as N, ObjectSchema as O, IndexSchema as P, ObjectCapabilities as Q, type ObjectIndex as R, type PartitioningConfig as S, PartitioningConfigSchema as T, type PoolConfig as U, PoolConfigSchema as V, SearchConfigSchema as W, type ServiceObject as X, type SoftDeleteConfig as Y, SoftDeleteConfigSchema as Z, type TenancyConfig as _, type DataEngineInsertOptions as a, type VersioningConfig as a0, VersioningConfigSchema as a1, type DataEngineUpdateOptions as b, type DataEngineDeleteOptions as c, type DataEngineCountOptions as d, type DataEngineAggregateOptions as e, type DataEngineRequest as f, type DriverOptions as g, CDCConfigSchema as h, DataEngineAggregateOptionsSchema as i, DataEngineAggregateRequestSchema as j, DataEngineBatchRequestSchema as k, DataEngineContractSchema as l, DataEngineCountOptionsSchema as m, DataEngineCountRequestSchema as n, DataEngineDeleteOptionsSchema as o, DataEngineDeleteRequestSchema as p, DataEngineExecuteRequestSchema as q, type DataEngineFilter as r, DataEngineFilterSchema as s, DataEngineFindOneRequestSchema as t, DataEngineFindRequestSchema as u, DataEngineInsertOptionsSchema as v, DataEngineInsertRequestSchema as w, DataEngineQueryOptionsSchema as x, DataEngineRequestSchema as y, type DataEngineSort as z };
|