@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,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
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-B_lzVsuC.js';
|
|
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.js';
|
|
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-lfi00zVT.js';
|
|
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.
|
|
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
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as QueryAST, b as FieldSchema } from './field.zod-B_lzVsuC.js';
|
|
2
|
+
import { D as DataEngineQueryOptions, a as DataEngineInsertOptions, b as DataEngineUpdateOptions, c as DataEngineDeleteOptions, d as DataEngineCountOptions, e as DataEngineAggregateOptions, f as DataEngineRequest, g as DriverOptions, O as ObjectSchema } from './driver.zod-lfi00zVT.js';
|
|
2
3
|
import { z } from 'zod';
|
|
3
|
-
import { a as FieldSchema } from './field.zod-Da5S-hAo.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Logger Contract
|