@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
package/dist/data/index.mjs
CHANGED
|
@@ -218,7 +218,7 @@ var FullTextSearchSchema = z2.object({
|
|
|
218
218
|
language: z2.string().optional().describe('Language for text analysis (e.g., "en", "zh", "es")'),
|
|
219
219
|
highlight: z2.boolean().optional().default(false).describe("Enable search result highlighting")
|
|
220
220
|
});
|
|
221
|
-
var
|
|
221
|
+
var BaseQuerySchema = z2.object({
|
|
222
222
|
/** Target Entity */
|
|
223
223
|
object: z2.string().describe("Object name (e.g. account)"),
|
|
224
224
|
/** Select Clause */
|
|
@@ -232,6 +232,7 @@ var QuerySchema = z2.object({
|
|
|
232
232
|
/** Pagination */
|
|
233
233
|
limit: z2.number().optional().describe("Max records to return (LIMIT)"),
|
|
234
234
|
offset: z2.number().optional().describe("Records to skip (OFFSET)"),
|
|
235
|
+
top: z2.number().optional().describe("Alias for limit (OData compatibility)"),
|
|
235
236
|
cursor: z2.record(z2.string(), z2.any()).optional().describe("Cursor for keyset pagination"),
|
|
236
237
|
/** Joins */
|
|
237
238
|
joins: z2.array(JoinNodeSchema).optional().describe("Explicit Table Joins"),
|
|
@@ -246,6 +247,9 @@ var QuerySchema = z2.object({
|
|
|
246
247
|
/** Subquery flag */
|
|
247
248
|
distinct: z2.boolean().optional().describe("SELECT DISTINCT flag")
|
|
248
249
|
});
|
|
250
|
+
var QuerySchema = BaseQuerySchema.extend({
|
|
251
|
+
expand: z2.lazy(() => z2.record(z2.string(), QuerySchema)).optional().describe("Recursive relation loading (nested queries)")
|
|
252
|
+
});
|
|
249
253
|
|
|
250
254
|
// src/data/object.zod.ts
|
|
251
255
|
import { z as z8 } from "zod";
|