@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,6 +1,5 @@
|
|
|
1
|
-
import { F as
|
|
1
|
+
import { Q as QueryAST, a as QueryInput, F as FieldType } from './field.zod-dhbAw0SA.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { F as FieldType } from './field.zod-Da5S-hAo.js';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* Shared HTTP Schemas
|
|
@@ -265,262 +264,13 @@ declare const BulkRequestSchema: z.ZodObject<{
|
|
|
265
264
|
/**
|
|
266
265
|
* Export Request
|
|
267
266
|
*/
|
|
268
|
-
declare const ExportRequestSchema: z.ZodObject<{
|
|
269
|
-
object: z.ZodString;
|
|
270
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
271
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
272
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
273
|
-
query: z.ZodString;
|
|
274
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
275
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
276
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
277
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
278
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
279
|
-
language: z.ZodOptional<z.ZodString>;
|
|
280
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
281
|
-
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
query: string;
|
|
283
|
-
fuzzy: boolean;
|
|
284
|
-
operator: "and" | "or";
|
|
285
|
-
highlight: boolean;
|
|
286
|
-
fields?: string[] | undefined;
|
|
287
|
-
boost?: Record<string, number> | undefined;
|
|
288
|
-
minScore?: number | undefined;
|
|
289
|
-
language?: string | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
query: string;
|
|
292
|
-
fields?: string[] | undefined;
|
|
293
|
-
fuzzy?: boolean | undefined;
|
|
294
|
-
operator?: "and" | "or" | undefined;
|
|
295
|
-
boost?: Record<string, number> | undefined;
|
|
296
|
-
minScore?: number | undefined;
|
|
297
|
-
language?: string | undefined;
|
|
298
|
-
highlight?: boolean | undefined;
|
|
299
|
-
}>>;
|
|
300
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
301
|
-
field: z.ZodString;
|
|
302
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
field: string;
|
|
305
|
-
order: "asc" | "desc";
|
|
306
|
-
}, {
|
|
307
|
-
field: string;
|
|
308
|
-
order?: "asc" | "desc" | undefined;
|
|
309
|
-
}>, "many">>;
|
|
310
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
311
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
312
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
313
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
314
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
316
|
-
field: z.ZodOptional<z.ZodString>;
|
|
317
|
-
alias: z.ZodString;
|
|
318
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
320
|
-
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
322
|
-
alias: string;
|
|
323
|
-
filter?: FilterCondition | undefined;
|
|
324
|
-
field?: string | undefined;
|
|
325
|
-
distinct?: boolean | undefined;
|
|
326
|
-
}, {
|
|
327
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
328
|
-
alias: string;
|
|
329
|
-
filter?: FilterCondition | undefined;
|
|
330
|
-
field?: string | undefined;
|
|
331
|
-
distinct?: boolean | undefined;
|
|
332
|
-
}>, "many">>;
|
|
333
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
334
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
335
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
337
|
-
field: z.ZodOptional<z.ZodString>;
|
|
338
|
-
alias: z.ZodString;
|
|
339
|
-
over: z.ZodObject<{
|
|
340
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
341
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
342
|
-
field: z.ZodString;
|
|
343
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
344
|
-
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
field: string;
|
|
346
|
-
order: "asc" | "desc";
|
|
347
|
-
}, {
|
|
348
|
-
field: string;
|
|
349
|
-
order?: "asc" | "desc" | undefined;
|
|
350
|
-
}>, "many">>;
|
|
351
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
352
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
353
|
-
start: z.ZodOptional<z.ZodString>;
|
|
354
|
-
end: z.ZodOptional<z.ZodString>;
|
|
355
|
-
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
type?: "rows" | "range" | undefined;
|
|
357
|
-
start?: string | undefined;
|
|
358
|
-
end?: string | undefined;
|
|
359
|
-
}, {
|
|
360
|
-
type?: "rows" | "range" | undefined;
|
|
361
|
-
start?: string | undefined;
|
|
362
|
-
end?: string | undefined;
|
|
363
|
-
}>>;
|
|
364
|
-
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
orderBy?: {
|
|
366
|
-
field: string;
|
|
367
|
-
order: "asc" | "desc";
|
|
368
|
-
}[] | undefined;
|
|
369
|
-
partitionBy?: string[] | undefined;
|
|
370
|
-
frame?: {
|
|
371
|
-
type?: "rows" | "range" | undefined;
|
|
372
|
-
start?: string | undefined;
|
|
373
|
-
end?: string | undefined;
|
|
374
|
-
} | undefined;
|
|
375
|
-
}, {
|
|
376
|
-
orderBy?: {
|
|
377
|
-
field: string;
|
|
378
|
-
order?: "asc" | "desc" | undefined;
|
|
379
|
-
}[] | undefined;
|
|
380
|
-
partitionBy?: string[] | undefined;
|
|
381
|
-
frame?: {
|
|
382
|
-
type?: "rows" | "range" | undefined;
|
|
383
|
-
start?: string | undefined;
|
|
384
|
-
end?: string | undefined;
|
|
385
|
-
} | undefined;
|
|
386
|
-
}>;
|
|
387
|
-
}, "strip", z.ZodTypeAny, {
|
|
388
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
389
|
-
alias: string;
|
|
390
|
-
over: {
|
|
391
|
-
orderBy?: {
|
|
392
|
-
field: string;
|
|
393
|
-
order: "asc" | "desc";
|
|
394
|
-
}[] | undefined;
|
|
395
|
-
partitionBy?: string[] | undefined;
|
|
396
|
-
frame?: {
|
|
397
|
-
type?: "rows" | "range" | undefined;
|
|
398
|
-
start?: string | undefined;
|
|
399
|
-
end?: string | undefined;
|
|
400
|
-
} | undefined;
|
|
401
|
-
};
|
|
402
|
-
field?: string | undefined;
|
|
403
|
-
}, {
|
|
404
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
405
|
-
alias: string;
|
|
406
|
-
over: {
|
|
407
|
-
orderBy?: {
|
|
408
|
-
field: string;
|
|
409
|
-
order?: "asc" | "desc" | undefined;
|
|
410
|
-
}[] | undefined;
|
|
411
|
-
partitionBy?: string[] | undefined;
|
|
412
|
-
frame?: {
|
|
413
|
-
type?: "rows" | "range" | undefined;
|
|
414
|
-
start?: string | undefined;
|
|
415
|
-
end?: string | undefined;
|
|
416
|
-
} | undefined;
|
|
417
|
-
};
|
|
418
|
-
field?: string | undefined;
|
|
419
|
-
}>, "many">>;
|
|
420
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
-
} & {
|
|
267
|
+
declare const ExportRequestSchema: z.ZodIntersection<z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>, z.ZodObject<{
|
|
422
268
|
format: z.ZodDefault<z.ZodEnum<["csv", "json", "xlsx"]>>;
|
|
423
269
|
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
object: string;
|
|
425
270
|
format: "json" | "csv" | "xlsx";
|
|
426
|
-
where?: FilterCondition | undefined;
|
|
427
|
-
distinct?: boolean | undefined;
|
|
428
|
-
fields?: any[] | undefined;
|
|
429
|
-
search?: {
|
|
430
|
-
query: string;
|
|
431
|
-
fuzzy: boolean;
|
|
432
|
-
operator: "and" | "or";
|
|
433
|
-
highlight: boolean;
|
|
434
|
-
fields?: string[] | undefined;
|
|
435
|
-
boost?: Record<string, number> | undefined;
|
|
436
|
-
minScore?: number | undefined;
|
|
437
|
-
language?: string | undefined;
|
|
438
|
-
} | undefined;
|
|
439
|
-
orderBy?: {
|
|
440
|
-
field: string;
|
|
441
|
-
order: "asc" | "desc";
|
|
442
|
-
}[] | undefined;
|
|
443
|
-
limit?: number | undefined;
|
|
444
|
-
offset?: number | undefined;
|
|
445
|
-
cursor?: Record<string, any> | undefined;
|
|
446
|
-
joins?: any[] | undefined;
|
|
447
|
-
aggregations?: {
|
|
448
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
449
|
-
alias: string;
|
|
450
|
-
filter?: FilterCondition | undefined;
|
|
451
|
-
field?: string | undefined;
|
|
452
|
-
distinct?: boolean | undefined;
|
|
453
|
-
}[] | undefined;
|
|
454
|
-
groupBy?: string[] | undefined;
|
|
455
|
-
having?: FilterCondition | undefined;
|
|
456
|
-
windowFunctions?: {
|
|
457
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
458
|
-
alias: string;
|
|
459
|
-
over: {
|
|
460
|
-
orderBy?: {
|
|
461
|
-
field: string;
|
|
462
|
-
order: "asc" | "desc";
|
|
463
|
-
}[] | undefined;
|
|
464
|
-
partitionBy?: string[] | undefined;
|
|
465
|
-
frame?: {
|
|
466
|
-
type?: "rows" | "range" | undefined;
|
|
467
|
-
start?: string | undefined;
|
|
468
|
-
end?: string | undefined;
|
|
469
|
-
} | undefined;
|
|
470
|
-
};
|
|
471
|
-
field?: string | undefined;
|
|
472
|
-
}[] | undefined;
|
|
473
271
|
}, {
|
|
474
|
-
object: string;
|
|
475
|
-
where?: FilterCondition | undefined;
|
|
476
|
-
distinct?: boolean | undefined;
|
|
477
|
-
fields?: any[] | undefined;
|
|
478
|
-
search?: {
|
|
479
|
-
query: string;
|
|
480
|
-
fields?: string[] | undefined;
|
|
481
|
-
fuzzy?: boolean | undefined;
|
|
482
|
-
operator?: "and" | "or" | undefined;
|
|
483
|
-
boost?: Record<string, number> | undefined;
|
|
484
|
-
minScore?: number | undefined;
|
|
485
|
-
language?: string | undefined;
|
|
486
|
-
highlight?: boolean | undefined;
|
|
487
|
-
} | undefined;
|
|
488
|
-
orderBy?: {
|
|
489
|
-
field: string;
|
|
490
|
-
order?: "asc" | "desc" | undefined;
|
|
491
|
-
}[] | undefined;
|
|
492
|
-
limit?: number | undefined;
|
|
493
|
-
offset?: number | undefined;
|
|
494
|
-
cursor?: Record<string, any> | undefined;
|
|
495
|
-
joins?: any[] | undefined;
|
|
496
|
-
aggregations?: {
|
|
497
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
498
|
-
alias: string;
|
|
499
|
-
filter?: FilterCondition | undefined;
|
|
500
|
-
field?: string | undefined;
|
|
501
|
-
distinct?: boolean | undefined;
|
|
502
|
-
}[] | undefined;
|
|
503
|
-
groupBy?: string[] | undefined;
|
|
504
|
-
having?: FilterCondition | undefined;
|
|
505
|
-
windowFunctions?: {
|
|
506
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
507
|
-
alias: string;
|
|
508
|
-
over: {
|
|
509
|
-
orderBy?: {
|
|
510
|
-
field: string;
|
|
511
|
-
order?: "asc" | "desc" | undefined;
|
|
512
|
-
}[] | undefined;
|
|
513
|
-
partitionBy?: string[] | undefined;
|
|
514
|
-
frame?: {
|
|
515
|
-
type?: "rows" | "range" | undefined;
|
|
516
|
-
start?: string | undefined;
|
|
517
|
-
end?: string | undefined;
|
|
518
|
-
} | undefined;
|
|
519
|
-
};
|
|
520
|
-
field?: string | undefined;
|
|
521
|
-
}[] | undefined;
|
|
522
272
|
format?: "json" | "csv" | "xlsx" | undefined;
|
|
523
|
-
}
|
|
273
|
+
}>>;
|
|
524
274
|
/**
|
|
525
275
|
* Single Record Response (Get/Create/Update)
|
|
526
276
|
*/
|
|
@@ -1323,258 +1073,7 @@ declare const StandardApiContracts: {
|
|
|
1323
1073
|
}>;
|
|
1324
1074
|
};
|
|
1325
1075
|
list: {
|
|
1326
|
-
input: z.
|
|
1327
|
-
object: z.ZodString;
|
|
1328
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
1329
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
1330
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
1331
|
-
query: z.ZodString;
|
|
1332
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1333
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1334
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
1335
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1336
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
1337
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1338
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1339
|
-
}, "strip", z.ZodTypeAny, {
|
|
1340
|
-
query: string;
|
|
1341
|
-
fuzzy: boolean;
|
|
1342
|
-
operator: "and" | "or";
|
|
1343
|
-
highlight: boolean;
|
|
1344
|
-
fields?: string[] | undefined;
|
|
1345
|
-
boost?: Record<string, number> | undefined;
|
|
1346
|
-
minScore?: number | undefined;
|
|
1347
|
-
language?: string | undefined;
|
|
1348
|
-
}, {
|
|
1349
|
-
query: string;
|
|
1350
|
-
fields?: string[] | undefined;
|
|
1351
|
-
fuzzy?: boolean | undefined;
|
|
1352
|
-
operator?: "and" | "or" | undefined;
|
|
1353
|
-
boost?: Record<string, number> | undefined;
|
|
1354
|
-
minScore?: number | undefined;
|
|
1355
|
-
language?: string | undefined;
|
|
1356
|
-
highlight?: boolean | undefined;
|
|
1357
|
-
}>>;
|
|
1358
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1359
|
-
field: z.ZodString;
|
|
1360
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
1361
|
-
}, "strip", z.ZodTypeAny, {
|
|
1362
|
-
field: string;
|
|
1363
|
-
order: "asc" | "desc";
|
|
1364
|
-
}, {
|
|
1365
|
-
field: string;
|
|
1366
|
-
order?: "asc" | "desc" | undefined;
|
|
1367
|
-
}>, "many">>;
|
|
1368
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
1369
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
1370
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1371
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
1372
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1373
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
1374
|
-
field: z.ZodOptional<z.ZodString>;
|
|
1375
|
-
alias: z.ZodString;
|
|
1376
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
1377
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
1378
|
-
}, "strip", z.ZodTypeAny, {
|
|
1379
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
1380
|
-
alias: string;
|
|
1381
|
-
filter?: FilterCondition | undefined;
|
|
1382
|
-
field?: string | undefined;
|
|
1383
|
-
distinct?: boolean | undefined;
|
|
1384
|
-
}, {
|
|
1385
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
1386
|
-
alias: string;
|
|
1387
|
-
filter?: FilterCondition | undefined;
|
|
1388
|
-
field?: string | undefined;
|
|
1389
|
-
distinct?: boolean | undefined;
|
|
1390
|
-
}>, "many">>;
|
|
1391
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1392
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
1393
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1394
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
1395
|
-
field: z.ZodOptional<z.ZodString>;
|
|
1396
|
-
alias: z.ZodString;
|
|
1397
|
-
over: z.ZodObject<{
|
|
1398
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1399
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1400
|
-
field: z.ZodString;
|
|
1401
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
1402
|
-
}, "strip", z.ZodTypeAny, {
|
|
1403
|
-
field: string;
|
|
1404
|
-
order: "asc" | "desc";
|
|
1405
|
-
}, {
|
|
1406
|
-
field: string;
|
|
1407
|
-
order?: "asc" | "desc" | undefined;
|
|
1408
|
-
}>, "many">>;
|
|
1409
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
1410
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
1411
|
-
start: z.ZodOptional<z.ZodString>;
|
|
1412
|
-
end: z.ZodOptional<z.ZodString>;
|
|
1413
|
-
}, "strip", z.ZodTypeAny, {
|
|
1414
|
-
type?: "rows" | "range" | undefined;
|
|
1415
|
-
start?: string | undefined;
|
|
1416
|
-
end?: string | undefined;
|
|
1417
|
-
}, {
|
|
1418
|
-
type?: "rows" | "range" | undefined;
|
|
1419
|
-
start?: string | undefined;
|
|
1420
|
-
end?: string | undefined;
|
|
1421
|
-
}>>;
|
|
1422
|
-
}, "strip", z.ZodTypeAny, {
|
|
1423
|
-
orderBy?: {
|
|
1424
|
-
field: string;
|
|
1425
|
-
order: "asc" | "desc";
|
|
1426
|
-
}[] | undefined;
|
|
1427
|
-
partitionBy?: string[] | undefined;
|
|
1428
|
-
frame?: {
|
|
1429
|
-
type?: "rows" | "range" | undefined;
|
|
1430
|
-
start?: string | undefined;
|
|
1431
|
-
end?: string | undefined;
|
|
1432
|
-
} | undefined;
|
|
1433
|
-
}, {
|
|
1434
|
-
orderBy?: {
|
|
1435
|
-
field: string;
|
|
1436
|
-
order?: "asc" | "desc" | undefined;
|
|
1437
|
-
}[] | undefined;
|
|
1438
|
-
partitionBy?: string[] | undefined;
|
|
1439
|
-
frame?: {
|
|
1440
|
-
type?: "rows" | "range" | undefined;
|
|
1441
|
-
start?: string | undefined;
|
|
1442
|
-
end?: string | undefined;
|
|
1443
|
-
} | undefined;
|
|
1444
|
-
}>;
|
|
1445
|
-
}, "strip", z.ZodTypeAny, {
|
|
1446
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1447
|
-
alias: string;
|
|
1448
|
-
over: {
|
|
1449
|
-
orderBy?: {
|
|
1450
|
-
field: string;
|
|
1451
|
-
order: "asc" | "desc";
|
|
1452
|
-
}[] | undefined;
|
|
1453
|
-
partitionBy?: string[] | undefined;
|
|
1454
|
-
frame?: {
|
|
1455
|
-
type?: "rows" | "range" | undefined;
|
|
1456
|
-
start?: string | undefined;
|
|
1457
|
-
end?: string | undefined;
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
};
|
|
1460
|
-
field?: string | undefined;
|
|
1461
|
-
}, {
|
|
1462
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1463
|
-
alias: string;
|
|
1464
|
-
over: {
|
|
1465
|
-
orderBy?: {
|
|
1466
|
-
field: string;
|
|
1467
|
-
order?: "asc" | "desc" | undefined;
|
|
1468
|
-
}[] | undefined;
|
|
1469
|
-
partitionBy?: string[] | undefined;
|
|
1470
|
-
frame?: {
|
|
1471
|
-
type?: "rows" | "range" | undefined;
|
|
1472
|
-
start?: string | undefined;
|
|
1473
|
-
end?: string | undefined;
|
|
1474
|
-
} | undefined;
|
|
1475
|
-
};
|
|
1476
|
-
field?: string | undefined;
|
|
1477
|
-
}>, "many">>;
|
|
1478
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
1479
|
-
}, "strip", z.ZodTypeAny, {
|
|
1480
|
-
object: string;
|
|
1481
|
-
where?: FilterCondition | undefined;
|
|
1482
|
-
distinct?: boolean | undefined;
|
|
1483
|
-
fields?: any[] | undefined;
|
|
1484
|
-
search?: {
|
|
1485
|
-
query: string;
|
|
1486
|
-
fuzzy: boolean;
|
|
1487
|
-
operator: "and" | "or";
|
|
1488
|
-
highlight: boolean;
|
|
1489
|
-
fields?: string[] | undefined;
|
|
1490
|
-
boost?: Record<string, number> | undefined;
|
|
1491
|
-
minScore?: number | undefined;
|
|
1492
|
-
language?: string | undefined;
|
|
1493
|
-
} | undefined;
|
|
1494
|
-
orderBy?: {
|
|
1495
|
-
field: string;
|
|
1496
|
-
order: "asc" | "desc";
|
|
1497
|
-
}[] | undefined;
|
|
1498
|
-
limit?: number | undefined;
|
|
1499
|
-
offset?: number | undefined;
|
|
1500
|
-
cursor?: Record<string, any> | undefined;
|
|
1501
|
-
joins?: any[] | undefined;
|
|
1502
|
-
aggregations?: {
|
|
1503
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
1504
|
-
alias: string;
|
|
1505
|
-
filter?: FilterCondition | undefined;
|
|
1506
|
-
field?: string | undefined;
|
|
1507
|
-
distinct?: boolean | undefined;
|
|
1508
|
-
}[] | undefined;
|
|
1509
|
-
groupBy?: string[] | undefined;
|
|
1510
|
-
having?: FilterCondition | undefined;
|
|
1511
|
-
windowFunctions?: {
|
|
1512
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1513
|
-
alias: string;
|
|
1514
|
-
over: {
|
|
1515
|
-
orderBy?: {
|
|
1516
|
-
field: string;
|
|
1517
|
-
order: "asc" | "desc";
|
|
1518
|
-
}[] | undefined;
|
|
1519
|
-
partitionBy?: string[] | undefined;
|
|
1520
|
-
frame?: {
|
|
1521
|
-
type?: "rows" | "range" | undefined;
|
|
1522
|
-
start?: string | undefined;
|
|
1523
|
-
end?: string | undefined;
|
|
1524
|
-
} | undefined;
|
|
1525
|
-
};
|
|
1526
|
-
field?: string | undefined;
|
|
1527
|
-
}[] | undefined;
|
|
1528
|
-
}, {
|
|
1529
|
-
object: string;
|
|
1530
|
-
where?: FilterCondition | undefined;
|
|
1531
|
-
distinct?: boolean | undefined;
|
|
1532
|
-
fields?: any[] | undefined;
|
|
1533
|
-
search?: {
|
|
1534
|
-
query: string;
|
|
1535
|
-
fields?: string[] | undefined;
|
|
1536
|
-
fuzzy?: boolean | undefined;
|
|
1537
|
-
operator?: "and" | "or" | undefined;
|
|
1538
|
-
boost?: Record<string, number> | undefined;
|
|
1539
|
-
minScore?: number | undefined;
|
|
1540
|
-
language?: string | undefined;
|
|
1541
|
-
highlight?: boolean | undefined;
|
|
1542
|
-
} | undefined;
|
|
1543
|
-
orderBy?: {
|
|
1544
|
-
field: string;
|
|
1545
|
-
order?: "asc" | "desc" | undefined;
|
|
1546
|
-
}[] | undefined;
|
|
1547
|
-
limit?: number | undefined;
|
|
1548
|
-
offset?: number | undefined;
|
|
1549
|
-
cursor?: Record<string, any> | undefined;
|
|
1550
|
-
joins?: any[] | undefined;
|
|
1551
|
-
aggregations?: {
|
|
1552
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
1553
|
-
alias: string;
|
|
1554
|
-
filter?: FilterCondition | undefined;
|
|
1555
|
-
field?: string | undefined;
|
|
1556
|
-
distinct?: boolean | undefined;
|
|
1557
|
-
}[] | undefined;
|
|
1558
|
-
groupBy?: string[] | undefined;
|
|
1559
|
-
having?: FilterCondition | undefined;
|
|
1560
|
-
windowFunctions?: {
|
|
1561
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
1562
|
-
alias: string;
|
|
1563
|
-
over: {
|
|
1564
|
-
orderBy?: {
|
|
1565
|
-
field: string;
|
|
1566
|
-
order?: "asc" | "desc" | undefined;
|
|
1567
|
-
}[] | undefined;
|
|
1568
|
-
partitionBy?: string[] | undefined;
|
|
1569
|
-
frame?: {
|
|
1570
|
-
type?: "rows" | "range" | undefined;
|
|
1571
|
-
start?: string | undefined;
|
|
1572
|
-
end?: string | undefined;
|
|
1573
|
-
} | undefined;
|
|
1574
|
-
};
|
|
1575
|
-
field?: string | undefined;
|
|
1576
|
-
}[] | undefined;
|
|
1577
|
-
}>;
|
|
1076
|
+
input: z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>;
|
|
1578
1077
|
output: z.ZodObject<{
|
|
1579
1078
|
success: z.ZodBoolean;
|
|
1580
1079
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -46434,362 +45933,13 @@ declare const GetUiViewResponseSchema: z.ZodObject<{
|
|
|
46434
45933
|
*/
|
|
46435
45934
|
declare const FindDataRequestSchema: z.ZodObject<{
|
|
46436
45935
|
object: z.ZodString;
|
|
46437
|
-
query: z.ZodOptional<z.
|
|
46438
|
-
object: z.ZodString;
|
|
46439
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
46440
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
46441
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
46442
|
-
query: z.ZodString;
|
|
46443
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46444
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
46445
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
46446
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
46447
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
46448
|
-
language: z.ZodOptional<z.ZodString>;
|
|
46449
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
46450
|
-
}, "strip", z.ZodTypeAny, {
|
|
46451
|
-
query: string;
|
|
46452
|
-
fuzzy: boolean;
|
|
46453
|
-
operator: "and" | "or";
|
|
46454
|
-
highlight: boolean;
|
|
46455
|
-
fields?: string[] | undefined;
|
|
46456
|
-
boost?: Record<string, number> | undefined;
|
|
46457
|
-
minScore?: number | undefined;
|
|
46458
|
-
language?: string | undefined;
|
|
46459
|
-
}, {
|
|
46460
|
-
query: string;
|
|
46461
|
-
fields?: string[] | undefined;
|
|
46462
|
-
fuzzy?: boolean | undefined;
|
|
46463
|
-
operator?: "and" | "or" | undefined;
|
|
46464
|
-
boost?: Record<string, number> | undefined;
|
|
46465
|
-
minScore?: number | undefined;
|
|
46466
|
-
language?: string | undefined;
|
|
46467
|
-
highlight?: boolean | undefined;
|
|
46468
|
-
}>>;
|
|
46469
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46470
|
-
field: z.ZodString;
|
|
46471
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
46472
|
-
}, "strip", z.ZodTypeAny, {
|
|
46473
|
-
field: string;
|
|
46474
|
-
order: "asc" | "desc";
|
|
46475
|
-
}, {
|
|
46476
|
-
field: string;
|
|
46477
|
-
order?: "asc" | "desc" | undefined;
|
|
46478
|
-
}>, "many">>;
|
|
46479
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
46480
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
46481
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
46482
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
46483
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46484
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
46485
|
-
field: z.ZodOptional<z.ZodString>;
|
|
46486
|
-
alias: z.ZodString;
|
|
46487
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
46488
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
46489
|
-
}, "strip", z.ZodTypeAny, {
|
|
46490
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
46491
|
-
alias: string;
|
|
46492
|
-
filter?: FilterCondition | undefined;
|
|
46493
|
-
field?: string | undefined;
|
|
46494
|
-
distinct?: boolean | undefined;
|
|
46495
|
-
}, {
|
|
46496
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
46497
|
-
alias: string;
|
|
46498
|
-
filter?: FilterCondition | undefined;
|
|
46499
|
-
field?: string | undefined;
|
|
46500
|
-
distinct?: boolean | undefined;
|
|
46501
|
-
}>, "many">>;
|
|
46502
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46503
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
46504
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46505
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
46506
|
-
field: z.ZodOptional<z.ZodString>;
|
|
46507
|
-
alias: z.ZodString;
|
|
46508
|
-
over: z.ZodObject<{
|
|
46509
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46510
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46511
|
-
field: z.ZodString;
|
|
46512
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
46513
|
-
}, "strip", z.ZodTypeAny, {
|
|
46514
|
-
field: string;
|
|
46515
|
-
order: "asc" | "desc";
|
|
46516
|
-
}, {
|
|
46517
|
-
field: string;
|
|
46518
|
-
order?: "asc" | "desc" | undefined;
|
|
46519
|
-
}>, "many">>;
|
|
46520
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
46521
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
46522
|
-
start: z.ZodOptional<z.ZodString>;
|
|
46523
|
-
end: z.ZodOptional<z.ZodString>;
|
|
46524
|
-
}, "strip", z.ZodTypeAny, {
|
|
46525
|
-
type?: "rows" | "range" | undefined;
|
|
46526
|
-
start?: string | undefined;
|
|
46527
|
-
end?: string | undefined;
|
|
46528
|
-
}, {
|
|
46529
|
-
type?: "rows" | "range" | undefined;
|
|
46530
|
-
start?: string | undefined;
|
|
46531
|
-
end?: string | undefined;
|
|
46532
|
-
}>>;
|
|
46533
|
-
}, "strip", z.ZodTypeAny, {
|
|
46534
|
-
orderBy?: {
|
|
46535
|
-
field: string;
|
|
46536
|
-
order: "asc" | "desc";
|
|
46537
|
-
}[] | undefined;
|
|
46538
|
-
partitionBy?: string[] | undefined;
|
|
46539
|
-
frame?: {
|
|
46540
|
-
type?: "rows" | "range" | undefined;
|
|
46541
|
-
start?: string | undefined;
|
|
46542
|
-
end?: string | undefined;
|
|
46543
|
-
} | undefined;
|
|
46544
|
-
}, {
|
|
46545
|
-
orderBy?: {
|
|
46546
|
-
field: string;
|
|
46547
|
-
order?: "asc" | "desc" | undefined;
|
|
46548
|
-
}[] | undefined;
|
|
46549
|
-
partitionBy?: string[] | undefined;
|
|
46550
|
-
frame?: {
|
|
46551
|
-
type?: "rows" | "range" | undefined;
|
|
46552
|
-
start?: string | undefined;
|
|
46553
|
-
end?: string | undefined;
|
|
46554
|
-
} | undefined;
|
|
46555
|
-
}>;
|
|
46556
|
-
}, "strip", z.ZodTypeAny, {
|
|
46557
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
46558
|
-
alias: string;
|
|
46559
|
-
over: {
|
|
46560
|
-
orderBy?: {
|
|
46561
|
-
field: string;
|
|
46562
|
-
order: "asc" | "desc";
|
|
46563
|
-
}[] | undefined;
|
|
46564
|
-
partitionBy?: string[] | undefined;
|
|
46565
|
-
frame?: {
|
|
46566
|
-
type?: "rows" | "range" | undefined;
|
|
46567
|
-
start?: string | undefined;
|
|
46568
|
-
end?: string | undefined;
|
|
46569
|
-
} | undefined;
|
|
46570
|
-
};
|
|
46571
|
-
field?: string | undefined;
|
|
46572
|
-
}, {
|
|
46573
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
46574
|
-
alias: string;
|
|
46575
|
-
over: {
|
|
46576
|
-
orderBy?: {
|
|
46577
|
-
field: string;
|
|
46578
|
-
order?: "asc" | "desc" | undefined;
|
|
46579
|
-
}[] | undefined;
|
|
46580
|
-
partitionBy?: string[] | undefined;
|
|
46581
|
-
frame?: {
|
|
46582
|
-
type?: "rows" | "range" | undefined;
|
|
46583
|
-
start?: string | undefined;
|
|
46584
|
-
end?: string | undefined;
|
|
46585
|
-
} | undefined;
|
|
46586
|
-
};
|
|
46587
|
-
field?: string | undefined;
|
|
46588
|
-
}>, "many">>;
|
|
46589
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
46590
|
-
}, "strip", z.ZodTypeAny, {
|
|
46591
|
-
object: string;
|
|
46592
|
-
where?: FilterCondition | undefined;
|
|
46593
|
-
distinct?: boolean | undefined;
|
|
46594
|
-
fields?: any[] | undefined;
|
|
46595
|
-
search?: {
|
|
46596
|
-
query: string;
|
|
46597
|
-
fuzzy: boolean;
|
|
46598
|
-
operator: "and" | "or";
|
|
46599
|
-
highlight: boolean;
|
|
46600
|
-
fields?: string[] | undefined;
|
|
46601
|
-
boost?: Record<string, number> | undefined;
|
|
46602
|
-
minScore?: number | undefined;
|
|
46603
|
-
language?: string | undefined;
|
|
46604
|
-
} | undefined;
|
|
46605
|
-
orderBy?: {
|
|
46606
|
-
field: string;
|
|
46607
|
-
order: "asc" | "desc";
|
|
46608
|
-
}[] | undefined;
|
|
46609
|
-
limit?: number | undefined;
|
|
46610
|
-
offset?: number | undefined;
|
|
46611
|
-
cursor?: Record<string, any> | undefined;
|
|
46612
|
-
joins?: any[] | undefined;
|
|
46613
|
-
aggregations?: {
|
|
46614
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
46615
|
-
alias: string;
|
|
46616
|
-
filter?: FilterCondition | undefined;
|
|
46617
|
-
field?: string | undefined;
|
|
46618
|
-
distinct?: boolean | undefined;
|
|
46619
|
-
}[] | undefined;
|
|
46620
|
-
groupBy?: string[] | undefined;
|
|
46621
|
-
having?: FilterCondition | undefined;
|
|
46622
|
-
windowFunctions?: {
|
|
46623
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
46624
|
-
alias: string;
|
|
46625
|
-
over: {
|
|
46626
|
-
orderBy?: {
|
|
46627
|
-
field: string;
|
|
46628
|
-
order: "asc" | "desc";
|
|
46629
|
-
}[] | undefined;
|
|
46630
|
-
partitionBy?: string[] | undefined;
|
|
46631
|
-
frame?: {
|
|
46632
|
-
type?: "rows" | "range" | undefined;
|
|
46633
|
-
start?: string | undefined;
|
|
46634
|
-
end?: string | undefined;
|
|
46635
|
-
} | undefined;
|
|
46636
|
-
};
|
|
46637
|
-
field?: string | undefined;
|
|
46638
|
-
}[] | undefined;
|
|
46639
|
-
}, {
|
|
46640
|
-
object: string;
|
|
46641
|
-
where?: FilterCondition | undefined;
|
|
46642
|
-
distinct?: boolean | undefined;
|
|
46643
|
-
fields?: any[] | undefined;
|
|
46644
|
-
search?: {
|
|
46645
|
-
query: string;
|
|
46646
|
-
fields?: string[] | undefined;
|
|
46647
|
-
fuzzy?: boolean | undefined;
|
|
46648
|
-
operator?: "and" | "or" | undefined;
|
|
46649
|
-
boost?: Record<string, number> | undefined;
|
|
46650
|
-
minScore?: number | undefined;
|
|
46651
|
-
language?: string | undefined;
|
|
46652
|
-
highlight?: boolean | undefined;
|
|
46653
|
-
} | undefined;
|
|
46654
|
-
orderBy?: {
|
|
46655
|
-
field: string;
|
|
46656
|
-
order?: "asc" | "desc" | undefined;
|
|
46657
|
-
}[] | undefined;
|
|
46658
|
-
limit?: number | undefined;
|
|
46659
|
-
offset?: number | undefined;
|
|
46660
|
-
cursor?: Record<string, any> | undefined;
|
|
46661
|
-
joins?: any[] | undefined;
|
|
46662
|
-
aggregations?: {
|
|
46663
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
46664
|
-
alias: string;
|
|
46665
|
-
filter?: FilterCondition | undefined;
|
|
46666
|
-
field?: string | undefined;
|
|
46667
|
-
distinct?: boolean | undefined;
|
|
46668
|
-
}[] | undefined;
|
|
46669
|
-
groupBy?: string[] | undefined;
|
|
46670
|
-
having?: FilterCondition | undefined;
|
|
46671
|
-
windowFunctions?: {
|
|
46672
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
46673
|
-
alias: string;
|
|
46674
|
-
over: {
|
|
46675
|
-
orderBy?: {
|
|
46676
|
-
field: string;
|
|
46677
|
-
order?: "asc" | "desc" | undefined;
|
|
46678
|
-
}[] | undefined;
|
|
46679
|
-
partitionBy?: string[] | undefined;
|
|
46680
|
-
frame?: {
|
|
46681
|
-
type?: "rows" | "range" | undefined;
|
|
46682
|
-
start?: string | undefined;
|
|
46683
|
-
end?: string | undefined;
|
|
46684
|
-
} | undefined;
|
|
46685
|
-
};
|
|
46686
|
-
field?: string | undefined;
|
|
46687
|
-
}[] | undefined;
|
|
46688
|
-
}>>;
|
|
45936
|
+
query: z.ZodOptional<z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>>;
|
|
46689
45937
|
}, "strip", z.ZodTypeAny, {
|
|
46690
45938
|
object: string;
|
|
46691
|
-
query?:
|
|
46692
|
-
object: string;
|
|
46693
|
-
where?: FilterCondition | undefined;
|
|
46694
|
-
distinct?: boolean | undefined;
|
|
46695
|
-
fields?: any[] | undefined;
|
|
46696
|
-
search?: {
|
|
46697
|
-
query: string;
|
|
46698
|
-
fuzzy: boolean;
|
|
46699
|
-
operator: "and" | "or";
|
|
46700
|
-
highlight: boolean;
|
|
46701
|
-
fields?: string[] | undefined;
|
|
46702
|
-
boost?: Record<string, number> | undefined;
|
|
46703
|
-
minScore?: number | undefined;
|
|
46704
|
-
language?: string | undefined;
|
|
46705
|
-
} | undefined;
|
|
46706
|
-
orderBy?: {
|
|
46707
|
-
field: string;
|
|
46708
|
-
order: "asc" | "desc";
|
|
46709
|
-
}[] | undefined;
|
|
46710
|
-
limit?: number | undefined;
|
|
46711
|
-
offset?: number | undefined;
|
|
46712
|
-
cursor?: Record<string, any> | undefined;
|
|
46713
|
-
joins?: any[] | undefined;
|
|
46714
|
-
aggregations?: {
|
|
46715
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
46716
|
-
alias: string;
|
|
46717
|
-
filter?: FilterCondition | undefined;
|
|
46718
|
-
field?: string | undefined;
|
|
46719
|
-
distinct?: boolean | undefined;
|
|
46720
|
-
}[] | undefined;
|
|
46721
|
-
groupBy?: string[] | undefined;
|
|
46722
|
-
having?: FilterCondition | undefined;
|
|
46723
|
-
windowFunctions?: {
|
|
46724
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
46725
|
-
alias: string;
|
|
46726
|
-
over: {
|
|
46727
|
-
orderBy?: {
|
|
46728
|
-
field: string;
|
|
46729
|
-
order: "asc" | "desc";
|
|
46730
|
-
}[] | undefined;
|
|
46731
|
-
partitionBy?: string[] | undefined;
|
|
46732
|
-
frame?: {
|
|
46733
|
-
type?: "rows" | "range" | undefined;
|
|
46734
|
-
start?: string | undefined;
|
|
46735
|
-
end?: string | undefined;
|
|
46736
|
-
} | undefined;
|
|
46737
|
-
};
|
|
46738
|
-
field?: string | undefined;
|
|
46739
|
-
}[] | undefined;
|
|
46740
|
-
} | undefined;
|
|
45939
|
+
query?: QueryAST | undefined;
|
|
46741
45940
|
}, {
|
|
46742
45941
|
object: string;
|
|
46743
|
-
query?:
|
|
46744
|
-
object: string;
|
|
46745
|
-
where?: FilterCondition | undefined;
|
|
46746
|
-
distinct?: boolean | undefined;
|
|
46747
|
-
fields?: any[] | undefined;
|
|
46748
|
-
search?: {
|
|
46749
|
-
query: string;
|
|
46750
|
-
fields?: string[] | undefined;
|
|
46751
|
-
fuzzy?: boolean | undefined;
|
|
46752
|
-
operator?: "and" | "or" | undefined;
|
|
46753
|
-
boost?: Record<string, number> | undefined;
|
|
46754
|
-
minScore?: number | undefined;
|
|
46755
|
-
language?: string | undefined;
|
|
46756
|
-
highlight?: boolean | undefined;
|
|
46757
|
-
} | undefined;
|
|
46758
|
-
orderBy?: {
|
|
46759
|
-
field: string;
|
|
46760
|
-
order?: "asc" | "desc" | undefined;
|
|
46761
|
-
}[] | undefined;
|
|
46762
|
-
limit?: number | undefined;
|
|
46763
|
-
offset?: number | undefined;
|
|
46764
|
-
cursor?: Record<string, any> | undefined;
|
|
46765
|
-
joins?: any[] | undefined;
|
|
46766
|
-
aggregations?: {
|
|
46767
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
46768
|
-
alias: string;
|
|
46769
|
-
filter?: FilterCondition | undefined;
|
|
46770
|
-
field?: string | undefined;
|
|
46771
|
-
distinct?: boolean | undefined;
|
|
46772
|
-
}[] | undefined;
|
|
46773
|
-
groupBy?: string[] | undefined;
|
|
46774
|
-
having?: FilterCondition | undefined;
|
|
46775
|
-
windowFunctions?: {
|
|
46776
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
46777
|
-
alias: string;
|
|
46778
|
-
over: {
|
|
46779
|
-
orderBy?: {
|
|
46780
|
-
field: string;
|
|
46781
|
-
order?: "asc" | "desc" | undefined;
|
|
46782
|
-
}[] | undefined;
|
|
46783
|
-
partitionBy?: string[] | undefined;
|
|
46784
|
-
frame?: {
|
|
46785
|
-
type?: "rows" | "range" | undefined;
|
|
46786
|
-
start?: string | undefined;
|
|
46787
|
-
end?: string | undefined;
|
|
46788
|
-
} | undefined;
|
|
46789
|
-
};
|
|
46790
|
-
field?: string | undefined;
|
|
46791
|
-
}[] | undefined;
|
|
46792
|
-
} | undefined;
|
|
45942
|
+
query?: QueryInput | undefined;
|
|
46793
45943
|
}>;
|
|
46794
45944
|
/**
|
|
46795
45945
|
* Find Data Response
|
|
@@ -51506,362 +50656,13 @@ declare const ObjectStackProtocolSchema: z.ZodObject<{
|
|
|
51506
50656
|
}>>>;
|
|
51507
50657
|
findData: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
51508
50658
|
object: z.ZodString;
|
|
51509
|
-
query: z.ZodOptional<z.
|
|
51510
|
-
object: z.ZodString;
|
|
51511
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
51512
|
-
where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
51513
|
-
search: z.ZodOptional<z.ZodObject<{
|
|
51514
|
-
query: z.ZodString;
|
|
51515
|
-
fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51516
|
-
fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
51517
|
-
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
|
|
51518
|
-
boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
51519
|
-
minScore: z.ZodOptional<z.ZodNumber>;
|
|
51520
|
-
language: z.ZodOptional<z.ZodString>;
|
|
51521
|
-
highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
51522
|
-
}, "strip", z.ZodTypeAny, {
|
|
51523
|
-
query: string;
|
|
51524
|
-
fuzzy: boolean;
|
|
51525
|
-
operator: "and" | "or";
|
|
51526
|
-
highlight: boolean;
|
|
51527
|
-
fields?: string[] | undefined;
|
|
51528
|
-
boost?: Record<string, number> | undefined;
|
|
51529
|
-
minScore?: number | undefined;
|
|
51530
|
-
language?: string | undefined;
|
|
51531
|
-
}, {
|
|
51532
|
-
query: string;
|
|
51533
|
-
fields?: string[] | undefined;
|
|
51534
|
-
fuzzy?: boolean | undefined;
|
|
51535
|
-
operator?: "and" | "or" | undefined;
|
|
51536
|
-
boost?: Record<string, number> | undefined;
|
|
51537
|
-
minScore?: number | undefined;
|
|
51538
|
-
language?: string | undefined;
|
|
51539
|
-
highlight?: boolean | undefined;
|
|
51540
|
-
}>>;
|
|
51541
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51542
|
-
field: z.ZodString;
|
|
51543
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
51544
|
-
}, "strip", z.ZodTypeAny, {
|
|
51545
|
-
field: string;
|
|
51546
|
-
order: "asc" | "desc";
|
|
51547
|
-
}, {
|
|
51548
|
-
field: string;
|
|
51549
|
-
order?: "asc" | "desc" | undefined;
|
|
51550
|
-
}>, "many">>;
|
|
51551
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
51552
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
51553
|
-
cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
51554
|
-
joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
|
|
51555
|
-
aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51556
|
-
function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
|
|
51557
|
-
field: z.ZodOptional<z.ZodString>;
|
|
51558
|
-
alias: z.ZodString;
|
|
51559
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
51560
|
-
filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
51561
|
-
}, "strip", z.ZodTypeAny, {
|
|
51562
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
51563
|
-
alias: string;
|
|
51564
|
-
filter?: FilterCondition | undefined;
|
|
51565
|
-
field?: string | undefined;
|
|
51566
|
-
distinct?: boolean | undefined;
|
|
51567
|
-
}, {
|
|
51568
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
51569
|
-
alias: string;
|
|
51570
|
-
filter?: FilterCondition | undefined;
|
|
51571
|
-
field?: string | undefined;
|
|
51572
|
-
distinct?: boolean | undefined;
|
|
51573
|
-
}>, "many">>;
|
|
51574
|
-
groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51575
|
-
having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
|
|
51576
|
-
windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51577
|
-
function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
|
|
51578
|
-
field: z.ZodOptional<z.ZodString>;
|
|
51579
|
-
alias: z.ZodString;
|
|
51580
|
-
over: z.ZodObject<{
|
|
51581
|
-
partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
51582
|
-
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51583
|
-
field: z.ZodString;
|
|
51584
|
-
order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
51585
|
-
}, "strip", z.ZodTypeAny, {
|
|
51586
|
-
field: string;
|
|
51587
|
-
order: "asc" | "desc";
|
|
51588
|
-
}, {
|
|
51589
|
-
field: string;
|
|
51590
|
-
order?: "asc" | "desc" | undefined;
|
|
51591
|
-
}>, "many">>;
|
|
51592
|
-
frame: z.ZodOptional<z.ZodObject<{
|
|
51593
|
-
type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
|
|
51594
|
-
start: z.ZodOptional<z.ZodString>;
|
|
51595
|
-
end: z.ZodOptional<z.ZodString>;
|
|
51596
|
-
}, "strip", z.ZodTypeAny, {
|
|
51597
|
-
type?: "rows" | "range" | undefined;
|
|
51598
|
-
start?: string | undefined;
|
|
51599
|
-
end?: string | undefined;
|
|
51600
|
-
}, {
|
|
51601
|
-
type?: "rows" | "range" | undefined;
|
|
51602
|
-
start?: string | undefined;
|
|
51603
|
-
end?: string | undefined;
|
|
51604
|
-
}>>;
|
|
51605
|
-
}, "strip", z.ZodTypeAny, {
|
|
51606
|
-
orderBy?: {
|
|
51607
|
-
field: string;
|
|
51608
|
-
order: "asc" | "desc";
|
|
51609
|
-
}[] | undefined;
|
|
51610
|
-
partitionBy?: string[] | undefined;
|
|
51611
|
-
frame?: {
|
|
51612
|
-
type?: "rows" | "range" | undefined;
|
|
51613
|
-
start?: string | undefined;
|
|
51614
|
-
end?: string | undefined;
|
|
51615
|
-
} | undefined;
|
|
51616
|
-
}, {
|
|
51617
|
-
orderBy?: {
|
|
51618
|
-
field: string;
|
|
51619
|
-
order?: "asc" | "desc" | undefined;
|
|
51620
|
-
}[] | undefined;
|
|
51621
|
-
partitionBy?: string[] | undefined;
|
|
51622
|
-
frame?: {
|
|
51623
|
-
type?: "rows" | "range" | undefined;
|
|
51624
|
-
start?: string | undefined;
|
|
51625
|
-
end?: string | undefined;
|
|
51626
|
-
} | undefined;
|
|
51627
|
-
}>;
|
|
51628
|
-
}, "strip", z.ZodTypeAny, {
|
|
51629
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
51630
|
-
alias: string;
|
|
51631
|
-
over: {
|
|
51632
|
-
orderBy?: {
|
|
51633
|
-
field: string;
|
|
51634
|
-
order: "asc" | "desc";
|
|
51635
|
-
}[] | undefined;
|
|
51636
|
-
partitionBy?: string[] | undefined;
|
|
51637
|
-
frame?: {
|
|
51638
|
-
type?: "rows" | "range" | undefined;
|
|
51639
|
-
start?: string | undefined;
|
|
51640
|
-
end?: string | undefined;
|
|
51641
|
-
} | undefined;
|
|
51642
|
-
};
|
|
51643
|
-
field?: string | undefined;
|
|
51644
|
-
}, {
|
|
51645
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
51646
|
-
alias: string;
|
|
51647
|
-
over: {
|
|
51648
|
-
orderBy?: {
|
|
51649
|
-
field: string;
|
|
51650
|
-
order?: "asc" | "desc" | undefined;
|
|
51651
|
-
}[] | undefined;
|
|
51652
|
-
partitionBy?: string[] | undefined;
|
|
51653
|
-
frame?: {
|
|
51654
|
-
type?: "rows" | "range" | undefined;
|
|
51655
|
-
start?: string | undefined;
|
|
51656
|
-
end?: string | undefined;
|
|
51657
|
-
} | undefined;
|
|
51658
|
-
};
|
|
51659
|
-
field?: string | undefined;
|
|
51660
|
-
}>, "many">>;
|
|
51661
|
-
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
51662
|
-
}, "strip", z.ZodTypeAny, {
|
|
51663
|
-
object: string;
|
|
51664
|
-
where?: FilterCondition | undefined;
|
|
51665
|
-
distinct?: boolean | undefined;
|
|
51666
|
-
fields?: any[] | undefined;
|
|
51667
|
-
search?: {
|
|
51668
|
-
query: string;
|
|
51669
|
-
fuzzy: boolean;
|
|
51670
|
-
operator: "and" | "or";
|
|
51671
|
-
highlight: boolean;
|
|
51672
|
-
fields?: string[] | undefined;
|
|
51673
|
-
boost?: Record<string, number> | undefined;
|
|
51674
|
-
minScore?: number | undefined;
|
|
51675
|
-
language?: string | undefined;
|
|
51676
|
-
} | undefined;
|
|
51677
|
-
orderBy?: {
|
|
51678
|
-
field: string;
|
|
51679
|
-
order: "asc" | "desc";
|
|
51680
|
-
}[] | undefined;
|
|
51681
|
-
limit?: number | undefined;
|
|
51682
|
-
offset?: number | undefined;
|
|
51683
|
-
cursor?: Record<string, any> | undefined;
|
|
51684
|
-
joins?: any[] | undefined;
|
|
51685
|
-
aggregations?: {
|
|
51686
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
51687
|
-
alias: string;
|
|
51688
|
-
filter?: FilterCondition | undefined;
|
|
51689
|
-
field?: string | undefined;
|
|
51690
|
-
distinct?: boolean | undefined;
|
|
51691
|
-
}[] | undefined;
|
|
51692
|
-
groupBy?: string[] | undefined;
|
|
51693
|
-
having?: FilterCondition | undefined;
|
|
51694
|
-
windowFunctions?: {
|
|
51695
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
51696
|
-
alias: string;
|
|
51697
|
-
over: {
|
|
51698
|
-
orderBy?: {
|
|
51699
|
-
field: string;
|
|
51700
|
-
order: "asc" | "desc";
|
|
51701
|
-
}[] | undefined;
|
|
51702
|
-
partitionBy?: string[] | undefined;
|
|
51703
|
-
frame?: {
|
|
51704
|
-
type?: "rows" | "range" | undefined;
|
|
51705
|
-
start?: string | undefined;
|
|
51706
|
-
end?: string | undefined;
|
|
51707
|
-
} | undefined;
|
|
51708
|
-
};
|
|
51709
|
-
field?: string | undefined;
|
|
51710
|
-
}[] | undefined;
|
|
51711
|
-
}, {
|
|
51712
|
-
object: string;
|
|
51713
|
-
where?: FilterCondition | undefined;
|
|
51714
|
-
distinct?: boolean | undefined;
|
|
51715
|
-
fields?: any[] | undefined;
|
|
51716
|
-
search?: {
|
|
51717
|
-
query: string;
|
|
51718
|
-
fields?: string[] | undefined;
|
|
51719
|
-
fuzzy?: boolean | undefined;
|
|
51720
|
-
operator?: "and" | "or" | undefined;
|
|
51721
|
-
boost?: Record<string, number> | undefined;
|
|
51722
|
-
minScore?: number | undefined;
|
|
51723
|
-
language?: string | undefined;
|
|
51724
|
-
highlight?: boolean | undefined;
|
|
51725
|
-
} | undefined;
|
|
51726
|
-
orderBy?: {
|
|
51727
|
-
field: string;
|
|
51728
|
-
order?: "asc" | "desc" | undefined;
|
|
51729
|
-
}[] | undefined;
|
|
51730
|
-
limit?: number | undefined;
|
|
51731
|
-
offset?: number | undefined;
|
|
51732
|
-
cursor?: Record<string, any> | undefined;
|
|
51733
|
-
joins?: any[] | undefined;
|
|
51734
|
-
aggregations?: {
|
|
51735
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
51736
|
-
alias: string;
|
|
51737
|
-
filter?: FilterCondition | undefined;
|
|
51738
|
-
field?: string | undefined;
|
|
51739
|
-
distinct?: boolean | undefined;
|
|
51740
|
-
}[] | undefined;
|
|
51741
|
-
groupBy?: string[] | undefined;
|
|
51742
|
-
having?: FilterCondition | undefined;
|
|
51743
|
-
windowFunctions?: {
|
|
51744
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
51745
|
-
alias: string;
|
|
51746
|
-
over: {
|
|
51747
|
-
orderBy?: {
|
|
51748
|
-
field: string;
|
|
51749
|
-
order?: "asc" | "desc" | undefined;
|
|
51750
|
-
}[] | undefined;
|
|
51751
|
-
partitionBy?: string[] | undefined;
|
|
51752
|
-
frame?: {
|
|
51753
|
-
type?: "rows" | "range" | undefined;
|
|
51754
|
-
start?: string | undefined;
|
|
51755
|
-
end?: string | undefined;
|
|
51756
|
-
} | undefined;
|
|
51757
|
-
};
|
|
51758
|
-
field?: string | undefined;
|
|
51759
|
-
}[] | undefined;
|
|
51760
|
-
}>>;
|
|
50659
|
+
query: z.ZodOptional<z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>>;
|
|
51761
50660
|
}, "strip", z.ZodTypeAny, {
|
|
51762
50661
|
object: string;
|
|
51763
|
-
query?:
|
|
51764
|
-
object: string;
|
|
51765
|
-
where?: FilterCondition | undefined;
|
|
51766
|
-
distinct?: boolean | undefined;
|
|
51767
|
-
fields?: any[] | undefined;
|
|
51768
|
-
search?: {
|
|
51769
|
-
query: string;
|
|
51770
|
-
fuzzy: boolean;
|
|
51771
|
-
operator: "and" | "or";
|
|
51772
|
-
highlight: boolean;
|
|
51773
|
-
fields?: string[] | undefined;
|
|
51774
|
-
boost?: Record<string, number> | undefined;
|
|
51775
|
-
minScore?: number | undefined;
|
|
51776
|
-
language?: string | undefined;
|
|
51777
|
-
} | undefined;
|
|
51778
|
-
orderBy?: {
|
|
51779
|
-
field: string;
|
|
51780
|
-
order: "asc" | "desc";
|
|
51781
|
-
}[] | undefined;
|
|
51782
|
-
limit?: number | undefined;
|
|
51783
|
-
offset?: number | undefined;
|
|
51784
|
-
cursor?: Record<string, any> | undefined;
|
|
51785
|
-
joins?: any[] | undefined;
|
|
51786
|
-
aggregations?: {
|
|
51787
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
51788
|
-
alias: string;
|
|
51789
|
-
filter?: FilterCondition | undefined;
|
|
51790
|
-
field?: string | undefined;
|
|
51791
|
-
distinct?: boolean | undefined;
|
|
51792
|
-
}[] | undefined;
|
|
51793
|
-
groupBy?: string[] | undefined;
|
|
51794
|
-
having?: FilterCondition | undefined;
|
|
51795
|
-
windowFunctions?: {
|
|
51796
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
51797
|
-
alias: string;
|
|
51798
|
-
over: {
|
|
51799
|
-
orderBy?: {
|
|
51800
|
-
field: string;
|
|
51801
|
-
order: "asc" | "desc";
|
|
51802
|
-
}[] | undefined;
|
|
51803
|
-
partitionBy?: string[] | undefined;
|
|
51804
|
-
frame?: {
|
|
51805
|
-
type?: "rows" | "range" | undefined;
|
|
51806
|
-
start?: string | undefined;
|
|
51807
|
-
end?: string | undefined;
|
|
51808
|
-
} | undefined;
|
|
51809
|
-
};
|
|
51810
|
-
field?: string | undefined;
|
|
51811
|
-
}[] | undefined;
|
|
51812
|
-
} | undefined;
|
|
50662
|
+
query?: QueryAST | undefined;
|
|
51813
50663
|
}, {
|
|
51814
50664
|
object: string;
|
|
51815
|
-
query?:
|
|
51816
|
-
object: string;
|
|
51817
|
-
where?: FilterCondition | undefined;
|
|
51818
|
-
distinct?: boolean | undefined;
|
|
51819
|
-
fields?: any[] | undefined;
|
|
51820
|
-
search?: {
|
|
51821
|
-
query: string;
|
|
51822
|
-
fields?: string[] | undefined;
|
|
51823
|
-
fuzzy?: boolean | undefined;
|
|
51824
|
-
operator?: "and" | "or" | undefined;
|
|
51825
|
-
boost?: Record<string, number> | undefined;
|
|
51826
|
-
minScore?: number | undefined;
|
|
51827
|
-
language?: string | undefined;
|
|
51828
|
-
highlight?: boolean | undefined;
|
|
51829
|
-
} | undefined;
|
|
51830
|
-
orderBy?: {
|
|
51831
|
-
field: string;
|
|
51832
|
-
order?: "asc" | "desc" | undefined;
|
|
51833
|
-
}[] | undefined;
|
|
51834
|
-
limit?: number | undefined;
|
|
51835
|
-
offset?: number | undefined;
|
|
51836
|
-
cursor?: Record<string, any> | undefined;
|
|
51837
|
-
joins?: any[] | undefined;
|
|
51838
|
-
aggregations?: {
|
|
51839
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
51840
|
-
alias: string;
|
|
51841
|
-
filter?: FilterCondition | undefined;
|
|
51842
|
-
field?: string | undefined;
|
|
51843
|
-
distinct?: boolean | undefined;
|
|
51844
|
-
}[] | undefined;
|
|
51845
|
-
groupBy?: string[] | undefined;
|
|
51846
|
-
having?: FilterCondition | undefined;
|
|
51847
|
-
windowFunctions?: {
|
|
51848
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
51849
|
-
alias: string;
|
|
51850
|
-
over: {
|
|
51851
|
-
orderBy?: {
|
|
51852
|
-
field: string;
|
|
51853
|
-
order?: "asc" | "desc" | undefined;
|
|
51854
|
-
}[] | undefined;
|
|
51855
|
-
partitionBy?: string[] | undefined;
|
|
51856
|
-
frame?: {
|
|
51857
|
-
type?: "rows" | "range" | undefined;
|
|
51858
|
-
start?: string | undefined;
|
|
51859
|
-
end?: string | undefined;
|
|
51860
|
-
} | undefined;
|
|
51861
|
-
};
|
|
51862
|
-
field?: string | undefined;
|
|
51863
|
-
}[] | undefined;
|
|
51864
|
-
} | undefined;
|
|
50665
|
+
query?: QueryInput | undefined;
|
|
51865
50666
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodObject<{
|
|
51866
50667
|
object: z.ZodString;
|
|
51867
50668
|
records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
|
@@ -53275,56 +52076,7 @@ declare const ObjectStackProtocolSchema: z.ZodObject<{
|
|
|
53275
52076
|
}>;
|
|
53276
52077
|
findData: (args_0: {
|
|
53277
52078
|
object: string;
|
|
53278
|
-
query?:
|
|
53279
|
-
object: string;
|
|
53280
|
-
where?: FilterCondition | undefined;
|
|
53281
|
-
distinct?: boolean | undefined;
|
|
53282
|
-
fields?: any[] | undefined;
|
|
53283
|
-
search?: {
|
|
53284
|
-
query: string;
|
|
53285
|
-
fields?: string[] | undefined;
|
|
53286
|
-
fuzzy?: boolean | undefined;
|
|
53287
|
-
operator?: "and" | "or" | undefined;
|
|
53288
|
-
boost?: Record<string, number> | undefined;
|
|
53289
|
-
minScore?: number | undefined;
|
|
53290
|
-
language?: string | undefined;
|
|
53291
|
-
highlight?: boolean | undefined;
|
|
53292
|
-
} | undefined;
|
|
53293
|
-
orderBy?: {
|
|
53294
|
-
field: string;
|
|
53295
|
-
order?: "asc" | "desc" | undefined;
|
|
53296
|
-
}[] | undefined;
|
|
53297
|
-
limit?: number | undefined;
|
|
53298
|
-
offset?: number | undefined;
|
|
53299
|
-
cursor?: Record<string, any> | undefined;
|
|
53300
|
-
joins?: any[] | undefined;
|
|
53301
|
-
aggregations?: {
|
|
53302
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
53303
|
-
alias: string;
|
|
53304
|
-
filter?: FilterCondition | undefined;
|
|
53305
|
-
field?: string | undefined;
|
|
53306
|
-
distinct?: boolean | undefined;
|
|
53307
|
-
}[] | undefined;
|
|
53308
|
-
groupBy?: string[] | undefined;
|
|
53309
|
-
having?: FilterCondition | undefined;
|
|
53310
|
-
windowFunctions?: {
|
|
53311
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
53312
|
-
alias: string;
|
|
53313
|
-
over: {
|
|
53314
|
-
orderBy?: {
|
|
53315
|
-
field: string;
|
|
53316
|
-
order?: "asc" | "desc" | undefined;
|
|
53317
|
-
}[] | undefined;
|
|
53318
|
-
partitionBy?: string[] | undefined;
|
|
53319
|
-
frame?: {
|
|
53320
|
-
type?: "rows" | "range" | undefined;
|
|
53321
|
-
start?: string | undefined;
|
|
53322
|
-
end?: string | undefined;
|
|
53323
|
-
} | undefined;
|
|
53324
|
-
};
|
|
53325
|
-
field?: string | undefined;
|
|
53326
|
-
}[] | undefined;
|
|
53327
|
-
} | undefined;
|
|
52079
|
+
query?: QueryInput | undefined;
|
|
53328
52080
|
}, ...args: unknown[]) => Promise<{
|
|
53329
52081
|
object: string;
|
|
53330
52082
|
records: Record<string, any>[];
|
|
@@ -54134,56 +52886,7 @@ declare const ObjectStackProtocolSchema: z.ZodObject<{
|
|
|
54134
52886
|
}>;
|
|
54135
52887
|
findData: (args_0: {
|
|
54136
52888
|
object: string;
|
|
54137
|
-
query?:
|
|
54138
|
-
object: string;
|
|
54139
|
-
where?: FilterCondition | undefined;
|
|
54140
|
-
distinct?: boolean | undefined;
|
|
54141
|
-
fields?: any[] | undefined;
|
|
54142
|
-
search?: {
|
|
54143
|
-
query: string;
|
|
54144
|
-
fuzzy: boolean;
|
|
54145
|
-
operator: "and" | "or";
|
|
54146
|
-
highlight: boolean;
|
|
54147
|
-
fields?: string[] | undefined;
|
|
54148
|
-
boost?: Record<string, number> | undefined;
|
|
54149
|
-
minScore?: number | undefined;
|
|
54150
|
-
language?: string | undefined;
|
|
54151
|
-
} | undefined;
|
|
54152
|
-
orderBy?: {
|
|
54153
|
-
field: string;
|
|
54154
|
-
order: "asc" | "desc";
|
|
54155
|
-
}[] | undefined;
|
|
54156
|
-
limit?: number | undefined;
|
|
54157
|
-
offset?: number | undefined;
|
|
54158
|
-
cursor?: Record<string, any> | undefined;
|
|
54159
|
-
joins?: any[] | undefined;
|
|
54160
|
-
aggregations?: {
|
|
54161
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
|
|
54162
|
-
alias: string;
|
|
54163
|
-
filter?: FilterCondition | undefined;
|
|
54164
|
-
field?: string | undefined;
|
|
54165
|
-
distinct?: boolean | undefined;
|
|
54166
|
-
}[] | undefined;
|
|
54167
|
-
groupBy?: string[] | undefined;
|
|
54168
|
-
having?: FilterCondition | undefined;
|
|
54169
|
-
windowFunctions?: {
|
|
54170
|
-
function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
|
|
54171
|
-
alias: string;
|
|
54172
|
-
over: {
|
|
54173
|
-
orderBy?: {
|
|
54174
|
-
field: string;
|
|
54175
|
-
order: "asc" | "desc";
|
|
54176
|
-
}[] | undefined;
|
|
54177
|
-
partitionBy?: string[] | undefined;
|
|
54178
|
-
frame?: {
|
|
54179
|
-
type?: "rows" | "range" | undefined;
|
|
54180
|
-
start?: string | undefined;
|
|
54181
|
-
end?: string | undefined;
|
|
54182
|
-
} | undefined;
|
|
54183
|
-
};
|
|
54184
|
-
field?: string | undefined;
|
|
54185
|
-
}[] | undefined;
|
|
54186
|
-
} | undefined;
|
|
52889
|
+
query?: QueryAST | undefined;
|
|
54187
52890
|
}, ...args: unknown[]) => Promise<{
|
|
54188
52891
|
object: string;
|
|
54189
52892
|
records: Record<string, any>[];
|