@objectstack/spec 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/ai/index.d.mts +1 -1
  2. package/dist/ai/index.d.ts +1 -1
  3. package/dist/api/index.d.mts +2 -2
  4. package/dist/api/index.d.ts +2 -2
  5. package/dist/api/index.js +1880 -1784
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/index.mjs +1880 -1784
  8. package/dist/api/index.mjs.map +1 -1
  9. package/dist/automation/index.d.mts +1 -1
  10. package/dist/automation/index.d.ts +1 -1
  11. package/dist/contracts/index.d.mts +3 -3
  12. package/dist/contracts/index.d.ts +3 -3
  13. package/dist/data/index.d.mts +3 -3
  14. package/dist/data/index.d.ts +3 -3
  15. package/dist/data/index.js +5 -1
  16. package/dist/data/index.js.map +1 -1
  17. package/dist/data/index.mjs +5 -1
  18. package/dist/data/index.mjs.map +1 -1
  19. package/dist/{driver.zod-YoPJRbBk.d.mts → driver.zod-BOM_Etco.d.mts} +164 -3467
  20. package/dist/{driver.zod-B0DitHQ2.d.ts → driver.zod-lfi00zVT.d.ts} +164 -3467
  21. package/dist/{field.zod-Da5S-hAo.d.mts → field.zod-B_lzVsuC.d.ts} +871 -1
  22. package/dist/{field.zod-Da5S-hAo.d.ts → field.zod-dhbAw0SA.d.mts} +871 -1
  23. package/dist/hub/index.d.mts +1 -1
  24. package/dist/hub/index.d.ts +1 -1
  25. package/dist/hub/index.js +796 -707
  26. package/dist/hub/index.js.map +1 -1
  27. package/dist/hub/index.mjs +796 -707
  28. package/dist/hub/index.mjs.map +1 -1
  29. package/dist/{index-DSLwt2M_.d.ts → index-C67cfwmW.d.ts} +6 -355
  30. package/dist/{index-BMqjuD4e.d.ts → index-CH5zloR3.d.ts} +2 -2
  31. package/dist/{index-CIBOjiZG.d.mts → index-CU4m6noq.d.mts} +2 -2
  32. package/dist/{index-BeFe7iF_.d.mts → index-CyognKSZ.d.ts} +268 -1565
  33. package/dist/{index-CFaoWA3X.d.ts → index-DE_lJ11p.d.mts} +268 -1565
  34. package/dist/{index-C34qbBQr.d.mts → index-DLcySG7U.d.mts} +262 -241
  35. package/dist/{index-C34qbBQr.d.ts → index-DLcySG7U.d.ts} +262 -241
  36. package/dist/{index-BYtinxqf.d.mts → index-Dp7GFJ8V.d.mts} +6 -355
  37. package/dist/{index-D8XFyX0x.d.mts → index-Os7lItRe.d.mts} +108 -108
  38. package/dist/{index-D8XFyX0x.d.ts → index-Os7lItRe.d.ts} +108 -108
  39. package/dist/{index-CsF8m5Wj.d.mts → index-l6WIlmOD.d.mts} +39 -39
  40. package/dist/{index-CsF8m5Wj.d.ts → index-l6WIlmOD.d.ts} +39 -39
  41. package/dist/index.d.mts +162 -162
  42. package/dist/index.d.ts +162 -162
  43. package/dist/index.js +714 -672
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +714 -672
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/kernel/index.d.mts +1 -1
  48. package/dist/kernel/index.d.ts +1 -1
  49. package/dist/kernel/index.js +705 -669
  50. package/dist/kernel/index.js.map +1 -1
  51. package/dist/kernel/index.mjs +704 -669
  52. package/dist/kernel/index.mjs.map +1 -1
  53. package/json-schema/api/CompileManifestResponse.json +6 -2
  54. package/json-schema/api/ExportRequest.json +419 -758
  55. package/json-schema/api/FindDataRequest.json +9 -0
  56. package/json-schema/data/JoinNode.json +9 -0
  57. package/json-schema/data/Mapping.json +9 -0
  58. package/json-schema/data/Query.json +9 -0
  59. package/json-schema/hub/ComposerResponse.json +6 -2
  60. package/json-schema/kernel/Manifest.json +6 -2
  61. package/json-schema/kernel/Plugin.json +28 -0
  62. package/package.json +1 -1
  63. package/dist/{index-iGrpxfqq.d.mts → index-D12rNohm.d.mts} +1 -1
  64. package/dist/{index-iGrpxfqq.d.ts → index-D12rNohm.d.ts} +1 -1
@@ -1,6 +1,6 @@
1
- import { A as AggregationFunction, h as AggregationNode, i as AggregationNodeSchema, j as ApiMethod, C as CDCConfig, k as CDCConfigSchema, e as DataEngineAggregateOptions, l as DataEngineAggregateOptionsSchema, m as DataEngineAggregateRequestSchema, n as DataEngineBatchRequestSchema, o as DataEngineContractSchema, d as DataEngineCountOptions, p as DataEngineCountOptionsSchema, q as DataEngineCountRequestSchema, c as DataEngineDeleteOptions, r as DataEngineDeleteOptionsSchema, s as DataEngineDeleteRequestSchema, t as DataEngineExecuteRequestSchema, u as DataEngineFilter, v as DataEngineFilterSchema, w as DataEngineFindOneRequestSchema, x as DataEngineFindRequestSchema, a as DataEngineInsertOptions, y as DataEngineInsertOptionsSchema, z as DataEngineInsertRequestSchema, D as DataEngineQueryOptions, B as DataEngineQueryOptionsSchema, f as DataEngineRequest, E as DataEngineRequestSchema, F as DataEngineSort, G as DataEngineSortSchema, b as DataEngineUpdateOptions, H as DataEngineUpdateOptionsSchema, I as DataEngineUpdateRequestSchema, J as DataEngineVectorFindRequestSchema, K as DriverCapabilities, L as DriverCapabilitiesSchema, M as DriverConfig, N as DriverConfigSchema, P as DriverInterface, R as DriverInterfaceSchema, g as DriverOptions, S as DriverOptionsSchema, T as FieldNodeSchema, U as FullTextSearch, V as FullTextSearchSchema, W as IndexSchema, X as JoinNode, Y as JoinNodeSchema, Z as JoinStrategy, _ as JoinType, $ as ObjectCapabilities, a0 as ObjectIndex, O as ObjectSchema, a1 as PartitioningConfig, a2 as PartitioningConfigSchema, a3 as PoolConfig, a4 as PoolConfigSchema, Q as QueryAST, a5 as QueryInput, a6 as QuerySchema, a7 as SearchConfigSchema, a8 as ServiceObject, a9 as SoftDeleteConfig, aa as SoftDeleteConfigSchema, ab as SortNode, ac as SortNodeSchema, ad as TenancyConfig, ae as TenancyConfigSchema, af as VersioningConfig, ag as VersioningConfigSchema, ah as WindowFunction, ai as WindowFunctionNode, aj as WindowFunctionNodeSchema, ak as WindowSpec, al as WindowSpecSchema } from './driver.zod-YoPJRbBk.mjs';
2
- import { F as FilterCondition, A as ALL_OPERATORS, C as ComparisonOperatorSchema, E as EqualityOperatorSchema, a as FILTER_OPERATORS, b as FieldOperators, c as FieldOperatorsSchema, d as FieldReference, e as FieldReferenceSchema, f as Filter, g as FilterConditionSchema, h as FilterOperatorKey, L as LOGICAL_OPERATORS, i as LogicalOperatorKey, N as NormalizedFilter, j as NormalizedFilterSchema, O as OperatorKey, Q as QueryFilter, k as QueryFilterSchema, R as RangeOperatorSchema, S as Scalar, l as SetOperatorSchema, m as SpecialOperatorSchema, n as StringOperatorSchema } from './filter.zod-BMWnz4HE.mjs';
3
- import { A as Address, b as AddressSchema, C as ComputedFieldCache, c as ComputedFieldCacheSchema, d as CurrencyConfig, e as CurrencyConfigSchema, f as CurrencyValue, g as CurrencyValueSchema, D as DataQualityRules, h as DataQualityRulesSchema, i as Field, j as FieldInput, a as FieldSchema, F as FieldType, k as FileAttachmentConfig, l as FileAttachmentConfigSchema, L as LocationCoordinates, m as LocationCoordinatesSchema, S as SelectOption, n as SelectOptionSchema, V as VectorConfig, o as VectorConfigSchema } from './field.zod-Da5S-hAo.mjs';
1
+ import { Q as QueryAST, a as QueryInput, A as Address, c as AddressSchema, d as AggregationFunction, e as AggregationNode, f as AggregationNodeSchema, C as ComputedFieldCache, g as ComputedFieldCacheSchema, h as CurrencyConfig, i as CurrencyConfigSchema, j as CurrencyValue, k as CurrencyValueSchema, D as DataQualityRules, l as DataQualityRulesSchema, m as Field, n as FieldInput, o as FieldNodeSchema, b as FieldSchema, F as FieldType, p as FileAttachmentConfig, q as FileAttachmentConfigSchema, r as FullTextSearch, s as FullTextSearchSchema, J as JoinNode, t as JoinNodeSchema, u as JoinStrategy, v as JoinType, L as LocationCoordinates, w as LocationCoordinatesSchema, x as QuerySchema, S as SelectOption, y as SelectOptionSchema, z as SortNode, B as SortNodeSchema, V as VectorConfig, E as VectorConfigSchema, W as WindowFunction, G as WindowFunctionNode, H as WindowFunctionNodeSchema, I as WindowSpec, K as WindowSpecSchema } from './field.zod-dhbAw0SA.mjs';
2
+ import { A as ALL_OPERATORS, C as ComparisonOperatorSchema, E as EqualityOperatorSchema, a as FILTER_OPERATORS, b as FieldOperators, c as FieldOperatorsSchema, d as FieldReference, e as FieldReferenceSchema, f as Filter, F as FilterCondition, g as FilterConditionSchema, h as FilterOperatorKey, L as LOGICAL_OPERATORS, i as LogicalOperatorKey, N as NormalizedFilter, j as NormalizedFilterSchema, O as OperatorKey, Q as QueryFilter, k as QueryFilterSchema, R as RangeOperatorSchema, S as Scalar, l as SetOperatorSchema, m as SpecialOperatorSchema, n as StringOperatorSchema } from './filter.zod-BMWnz4HE.mjs';
3
+ import { A as ApiMethod, C as CDCConfig, h as CDCConfigSchema, e as DataEngineAggregateOptions, i as DataEngineAggregateOptionsSchema, j as DataEngineAggregateRequestSchema, k as DataEngineBatchRequestSchema, l as DataEngineContractSchema, d as DataEngineCountOptions, m as DataEngineCountOptionsSchema, n as DataEngineCountRequestSchema, c as DataEngineDeleteOptions, o as DataEngineDeleteOptionsSchema, p as DataEngineDeleteRequestSchema, q as DataEngineExecuteRequestSchema, r as DataEngineFilter, s as DataEngineFilterSchema, t as DataEngineFindOneRequestSchema, u as DataEngineFindRequestSchema, a as DataEngineInsertOptions, v as DataEngineInsertOptionsSchema, w as DataEngineInsertRequestSchema, D as DataEngineQueryOptions, x as DataEngineQueryOptionsSchema, f as DataEngineRequest, y as DataEngineRequestSchema, z as DataEngineSort, B as DataEngineSortSchema, b as DataEngineUpdateOptions, E as DataEngineUpdateOptionsSchema, F as DataEngineUpdateRequestSchema, G as DataEngineVectorFindRequestSchema, H as DriverCapabilities, I as DriverCapabilitiesSchema, J as DriverConfig, K as DriverConfigSchema, L as DriverInterface, M as DriverInterfaceSchema, g as DriverOptions, N as DriverOptionsSchema, P as IndexSchema, Q as ObjectCapabilities, R as ObjectIndex, O as ObjectSchema, S as PartitioningConfig, T as PartitioningConfigSchema, U as PoolConfig, V as PoolConfigSchema, W as SearchConfigSchema, X as ServiceObject, Y as SoftDeleteConfig, Z as SoftDeleteConfigSchema, _ as TenancyConfig, $ as TenancyConfigSchema, a0 as VersioningConfig, a1 as VersioningConfigSchema } from './driver.zod-BOM_Etco.mjs';
4
4
  import { z } from 'zod';
5
5
 
6
6
  /**
@@ -1113,258 +1113,7 @@ declare const MappingSchema: z.ZodObject<{
1113
1113
  mode: z.ZodDefault<z.ZodEnum<["insert", "update", "upsert"]>>;
1114
1114
  upsertKey: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1115
1115
  /** Extract Logic (For Export) */
1116
- extractQuery: z.ZodOptional<z.ZodObject<{
1117
- object: z.ZodString;
1118
- fields: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
1119
- where: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
1120
- search: z.ZodOptional<z.ZodObject<{
1121
- query: z.ZodString;
1122
- fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1123
- fuzzy: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1124
- operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["and", "or"]>>>;
1125
- boost: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1126
- minScore: z.ZodOptional<z.ZodNumber>;
1127
- language: z.ZodOptional<z.ZodString>;
1128
- highlight: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1129
- }, "strip", z.ZodTypeAny, {
1130
- query: string;
1131
- fuzzy: boolean;
1132
- operator: "and" | "or";
1133
- highlight: boolean;
1134
- fields?: string[] | undefined;
1135
- boost?: Record<string, number> | undefined;
1136
- minScore?: number | undefined;
1137
- language?: string | undefined;
1138
- }, {
1139
- query: string;
1140
- fields?: string[] | undefined;
1141
- fuzzy?: boolean | undefined;
1142
- operator?: "and" | "or" | undefined;
1143
- boost?: Record<string, number> | undefined;
1144
- minScore?: number | undefined;
1145
- language?: string | undefined;
1146
- highlight?: boolean | undefined;
1147
- }>>;
1148
- orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1149
- field: z.ZodString;
1150
- order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1151
- }, "strip", z.ZodTypeAny, {
1152
- field: string;
1153
- order: "asc" | "desc";
1154
- }, {
1155
- field: string;
1156
- order?: "asc" | "desc" | undefined;
1157
- }>, "many">>;
1158
- limit: z.ZodOptional<z.ZodNumber>;
1159
- offset: z.ZodOptional<z.ZodNumber>;
1160
- cursor: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1161
- joins: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
1162
- aggregations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1163
- function: z.ZodEnum<["count", "sum", "avg", "min", "max", "count_distinct", "array_agg", "string_agg"]>;
1164
- field: z.ZodOptional<z.ZodString>;
1165
- alias: z.ZodString;
1166
- distinct: z.ZodOptional<z.ZodBoolean>;
1167
- filter: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
1168
- }, "strip", z.ZodTypeAny, {
1169
- function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
1170
- alias: string;
1171
- filter?: FilterCondition | undefined;
1172
- field?: string | undefined;
1173
- distinct?: boolean | undefined;
1174
- }, {
1175
- function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
1176
- alias: string;
1177
- filter?: FilterCondition | undefined;
1178
- field?: string | undefined;
1179
- distinct?: boolean | undefined;
1180
- }>, "many">>;
1181
- groupBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1182
- having: z.ZodOptional<z.ZodType<FilterCondition, z.ZodTypeDef, FilterCondition>>;
1183
- windowFunctions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1184
- function: z.ZodEnum<["row_number", "rank", "dense_rank", "percent_rank", "lag", "lead", "first_value", "last_value", "sum", "avg", "count", "min", "max"]>;
1185
- field: z.ZodOptional<z.ZodString>;
1186
- alias: z.ZodString;
1187
- over: z.ZodObject<{
1188
- partitionBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1189
- orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1190
- field: z.ZodString;
1191
- order: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1192
- }, "strip", z.ZodTypeAny, {
1193
- field: string;
1194
- order: "asc" | "desc";
1195
- }, {
1196
- field: string;
1197
- order?: "asc" | "desc" | undefined;
1198
- }>, "many">>;
1199
- frame: z.ZodOptional<z.ZodObject<{
1200
- type: z.ZodOptional<z.ZodEnum<["rows", "range"]>>;
1201
- start: z.ZodOptional<z.ZodString>;
1202
- end: z.ZodOptional<z.ZodString>;
1203
- }, "strip", z.ZodTypeAny, {
1204
- type?: "rows" | "range" | undefined;
1205
- start?: string | undefined;
1206
- end?: string | undefined;
1207
- }, {
1208
- type?: "rows" | "range" | undefined;
1209
- start?: string | undefined;
1210
- end?: string | undefined;
1211
- }>>;
1212
- }, "strip", z.ZodTypeAny, {
1213
- orderBy?: {
1214
- field: string;
1215
- order: "asc" | "desc";
1216
- }[] | undefined;
1217
- partitionBy?: string[] | undefined;
1218
- frame?: {
1219
- type?: "rows" | "range" | undefined;
1220
- start?: string | undefined;
1221
- end?: string | undefined;
1222
- } | undefined;
1223
- }, {
1224
- orderBy?: {
1225
- field: string;
1226
- order?: "asc" | "desc" | undefined;
1227
- }[] | undefined;
1228
- partitionBy?: string[] | undefined;
1229
- frame?: {
1230
- type?: "rows" | "range" | undefined;
1231
- start?: string | undefined;
1232
- end?: string | undefined;
1233
- } | undefined;
1234
- }>;
1235
- }, "strip", z.ZodTypeAny, {
1236
- function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1237
- alias: string;
1238
- over: {
1239
- orderBy?: {
1240
- field: string;
1241
- order: "asc" | "desc";
1242
- }[] | undefined;
1243
- partitionBy?: string[] | undefined;
1244
- frame?: {
1245
- type?: "rows" | "range" | undefined;
1246
- start?: string | undefined;
1247
- end?: string | undefined;
1248
- } | undefined;
1249
- };
1250
- field?: string | undefined;
1251
- }, {
1252
- function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1253
- alias: string;
1254
- over: {
1255
- orderBy?: {
1256
- field: string;
1257
- order?: "asc" | "desc" | undefined;
1258
- }[] | undefined;
1259
- partitionBy?: string[] | undefined;
1260
- frame?: {
1261
- type?: "rows" | "range" | undefined;
1262
- start?: string | undefined;
1263
- end?: string | undefined;
1264
- } | undefined;
1265
- };
1266
- field?: string | undefined;
1267
- }>, "many">>;
1268
- distinct: z.ZodOptional<z.ZodBoolean>;
1269
- }, "strip", z.ZodTypeAny, {
1270
- object: string;
1271
- where?: FilterCondition | undefined;
1272
- distinct?: boolean | undefined;
1273
- fields?: any[] | undefined;
1274
- search?: {
1275
- query: string;
1276
- fuzzy: boolean;
1277
- operator: "and" | "or";
1278
- highlight: boolean;
1279
- fields?: string[] | undefined;
1280
- boost?: Record<string, number> | undefined;
1281
- minScore?: number | undefined;
1282
- language?: string | undefined;
1283
- } | undefined;
1284
- orderBy?: {
1285
- field: string;
1286
- order: "asc" | "desc";
1287
- }[] | undefined;
1288
- limit?: number | undefined;
1289
- offset?: number | undefined;
1290
- cursor?: Record<string, any> | undefined;
1291
- joins?: any[] | undefined;
1292
- aggregations?: {
1293
- function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
1294
- alias: string;
1295
- filter?: FilterCondition | undefined;
1296
- field?: string | undefined;
1297
- distinct?: boolean | undefined;
1298
- }[] | undefined;
1299
- groupBy?: string[] | undefined;
1300
- having?: FilterCondition | undefined;
1301
- windowFunctions?: {
1302
- function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1303
- alias: string;
1304
- over: {
1305
- orderBy?: {
1306
- field: string;
1307
- order: "asc" | "desc";
1308
- }[] | undefined;
1309
- partitionBy?: string[] | undefined;
1310
- frame?: {
1311
- type?: "rows" | "range" | undefined;
1312
- start?: string | undefined;
1313
- end?: string | undefined;
1314
- } | undefined;
1315
- };
1316
- field?: string | undefined;
1317
- }[] | undefined;
1318
- }, {
1319
- object: string;
1320
- where?: FilterCondition | undefined;
1321
- distinct?: boolean | undefined;
1322
- fields?: any[] | undefined;
1323
- search?: {
1324
- query: string;
1325
- fields?: string[] | undefined;
1326
- fuzzy?: boolean | undefined;
1327
- operator?: "and" | "or" | undefined;
1328
- boost?: Record<string, number> | undefined;
1329
- minScore?: number | undefined;
1330
- language?: string | undefined;
1331
- highlight?: boolean | undefined;
1332
- } | undefined;
1333
- orderBy?: {
1334
- field: string;
1335
- order?: "asc" | "desc" | undefined;
1336
- }[] | undefined;
1337
- limit?: number | undefined;
1338
- offset?: number | undefined;
1339
- cursor?: Record<string, any> | undefined;
1340
- joins?: any[] | undefined;
1341
- aggregations?: {
1342
- function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
1343
- alias: string;
1344
- filter?: FilterCondition | undefined;
1345
- field?: string | undefined;
1346
- distinct?: boolean | undefined;
1347
- }[] | undefined;
1348
- groupBy?: string[] | undefined;
1349
- having?: FilterCondition | undefined;
1350
- windowFunctions?: {
1351
- function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1352
- alias: string;
1353
- over: {
1354
- orderBy?: {
1355
- field: string;
1356
- order?: "asc" | "desc" | undefined;
1357
- }[] | undefined;
1358
- partitionBy?: string[] | undefined;
1359
- frame?: {
1360
- type?: "rows" | "range" | undefined;
1361
- start?: string | undefined;
1362
- end?: string | undefined;
1363
- } | undefined;
1364
- };
1365
- field?: string | undefined;
1366
- }[] | undefined;
1367
- }>>;
1116
+ extractQuery: z.ZodOptional<z.ZodType<QueryAST, z.ZodTypeDef, QueryInput>>;
1368
1117
  /** Error Handling */
1369
1118
  errorPolicy: z.ZodDefault<z.ZodEnum<["skip", "abort", "retry"]>>;
1370
1119
  batchSize: z.ZodDefault<z.ZodNumber>;
@@ -1391,56 +1140,7 @@ declare const MappingSchema: z.ZodObject<{
1391
1140
  batchSize: number;
1392
1141
  label?: string | undefined;
1393
1142
  upsertKey?: string[] | undefined;
1394
- extractQuery?: {
1395
- object: string;
1396
- where?: FilterCondition | undefined;
1397
- distinct?: boolean | undefined;
1398
- fields?: any[] | undefined;
1399
- search?: {
1400
- query: string;
1401
- fuzzy: boolean;
1402
- operator: "and" | "or";
1403
- highlight: boolean;
1404
- fields?: string[] | undefined;
1405
- boost?: Record<string, number> | undefined;
1406
- minScore?: number | undefined;
1407
- language?: string | undefined;
1408
- } | undefined;
1409
- orderBy?: {
1410
- field: string;
1411
- order: "asc" | "desc";
1412
- }[] | undefined;
1413
- limit?: number | undefined;
1414
- offset?: number | undefined;
1415
- cursor?: Record<string, any> | undefined;
1416
- joins?: any[] | undefined;
1417
- aggregations?: {
1418
- function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
1419
- alias: string;
1420
- filter?: FilterCondition | undefined;
1421
- field?: string | undefined;
1422
- distinct?: boolean | undefined;
1423
- }[] | undefined;
1424
- groupBy?: string[] | undefined;
1425
- having?: FilterCondition | undefined;
1426
- windowFunctions?: {
1427
- function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1428
- alias: string;
1429
- over: {
1430
- orderBy?: {
1431
- field: string;
1432
- order: "asc" | "desc";
1433
- }[] | undefined;
1434
- partitionBy?: string[] | undefined;
1435
- frame?: {
1436
- type?: "rows" | "range" | undefined;
1437
- start?: string | undefined;
1438
- end?: string | undefined;
1439
- } | undefined;
1440
- };
1441
- field?: string | undefined;
1442
- }[] | undefined;
1443
- } | undefined;
1143
+ extractQuery?: QueryAST | undefined;
1444
1144
  }, {
1445
1145
  name: string;
1446
1146
  targetObject: string;
@@ -1462,56 +1162,7 @@ declare const MappingSchema: z.ZodObject<{
1462
1162
  sourceFormat?: "json" | "csv" | "xml" | "sql" | undefined;
1463
1163
  mode?: "insert" | "update" | "upsert" | undefined;
1464
1164
  upsertKey?: string[] | undefined;
1465
- extractQuery?: {
1466
- object: string;
1467
- where?: FilterCondition | undefined;
1468
- distinct?: boolean | undefined;
1469
- fields?: any[] | undefined;
1470
- search?: {
1471
- query: string;
1472
- fields?: string[] | undefined;
1473
- fuzzy?: boolean | undefined;
1474
- operator?: "and" | "or" | undefined;
1475
- boost?: Record<string, number> | undefined;
1476
- minScore?: number | undefined;
1477
- language?: string | undefined;
1478
- highlight?: boolean | undefined;
1479
- } | undefined;
1480
- orderBy?: {
1481
- field: string;
1482
- order?: "asc" | "desc" | undefined;
1483
- }[] | undefined;
1484
- limit?: number | undefined;
1485
- offset?: number | undefined;
1486
- cursor?: Record<string, any> | undefined;
1487
- joins?: any[] | undefined;
1488
- aggregations?: {
1489
- function: "count" | "sum" | "avg" | "min" | "max" | "count_distinct" | "array_agg" | "string_agg";
1490
- alias: string;
1491
- filter?: FilterCondition | undefined;
1492
- field?: string | undefined;
1493
- distinct?: boolean | undefined;
1494
- }[] | undefined;
1495
- groupBy?: string[] | undefined;
1496
- having?: FilterCondition | undefined;
1497
- windowFunctions?: {
1498
- function: "count" | "sum" | "avg" | "min" | "max" | "row_number" | "rank" | "dense_rank" | "percent_rank" | "lag" | "lead" | "first_value" | "last_value";
1499
- alias: string;
1500
- over: {
1501
- orderBy?: {
1502
- field: string;
1503
- order?: "asc" | "desc" | undefined;
1504
- }[] | undefined;
1505
- partitionBy?: string[] | undefined;
1506
- frame?: {
1507
- type?: "rows" | "range" | undefined;
1508
- start?: string | undefined;
1509
- end?: string | undefined;
1510
- } | undefined;
1511
- };
1512
- field?: string | undefined;
1513
- }[] | undefined;
1514
- } | undefined;
1165
+ extractQuery?: QueryInput | undefined;
1515
1166
  errorPolicy?: "abort" | "skip" | "retry" | undefined;
1516
1167
  batchSize?: number | undefined;
1517
1168
  }>;