@sequenceholdings/orm 2.11.0 → 2.11.1
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/README.md +3 -4
- package/dist/authoring.d.cts +1 -1
- package/dist/authoring.d.ts +1 -1
- package/dist/canonical.d.cts +43 -43
- package/dist/canonical.d.ts +43 -43
- package/dist/cli.cjs +147 -195
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +148 -196
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +5 -10
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -13
- package/dist/client.d.ts +2 -13
- package/dist/client.js +6 -10
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +14 -67
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +6 -17
- package/dist/compiler.d.ts +6 -17
- package/dist/compiler.js +16 -66
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +242 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +541 -36
- package/dist/index.d.ts +541 -36
- package/dist/index.js +237 -189
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +6 -11
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +61 -64
- package/dist/ir.d.ts +61 -64
- package/dist/ir.js +6 -11
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +3 -8
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.js +3 -8
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +4 -11
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.d.cts +1 -5
- package/dist/sdl.d.ts +1 -5
- package/dist/sdl.js +4 -11
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
- package/src/codegen-gql/server-fns.cjs +1 -1
- package/dist/{definition-CevES7lM.d.cts → definition-B99BsOAO.d.cts} +2 -2
- package/dist/{definition-CevES7lM.d.ts → definition-B99BsOAO.d.ts} +2 -2
package/dist/predicate-v2.js
CHANGED
|
@@ -1912,9 +1912,6 @@ localDefinitionSchema.safeExtend({
|
|
|
1912
1912
|
imports: z.array(localDefinitionSchema).max(32).optional()
|
|
1913
1913
|
});
|
|
1914
1914
|
|
|
1915
|
-
// src/client/sql.ts
|
|
1916
|
-
var BUILTIN_SQL_READ_HASH = "sha256:a50c477c952a5e0fe68ed158a4530e4aab573c09bcbb1a8ac454dc88a39a6258";
|
|
1917
|
-
|
|
1918
1915
|
// src/ir/index.ts
|
|
1919
1916
|
var LEGACY_IR_VERSION = 1;
|
|
1920
1917
|
var GUARDED_IR_VERSION = 2;
|
|
@@ -2234,8 +2231,7 @@ var compiledOperationSchema = z.object({
|
|
|
2234
2231
|
maxRows: z.number().int().min(1).max(1e4)
|
|
2235
2232
|
}).strict().optional(),
|
|
2236
2233
|
irVersion: irVersionSchema,
|
|
2237
|
-
name: z.string(),
|
|
2238
|
-
opHash: z.string().regex(/^sha256:[0-9a-f]{64}$/),
|
|
2234
|
+
name: z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
|
|
2239
2235
|
kind: z.enum(["query", "mutation"]),
|
|
2240
2236
|
requires: z.object({
|
|
2241
2237
|
capability: z.string().optional(),
|
|
@@ -2251,7 +2247,7 @@ var compiledOperationSchema = z.object({
|
|
|
2251
2247
|
}
|
|
2252
2248
|
if (operation.language === "sql") {
|
|
2253
2249
|
const validPlan = operation.sqlQuery ? !operation.sql && operation.irVersion === RUNTIME_SQL_IR_VERSION : !!operation.sql && operation.irVersion === SQL_IR_VERSION;
|
|
2254
|
-
const builtin = operation.name === "BuiltinSqlRead" && operation.
|
|
2250
|
+
const builtin = operation.name === "BuiltinSqlRead" && operation.requires === null;
|
|
2255
2251
|
if (!validPlan || operation.kind !== "query" || operation.roots.length !== 0 || !builtin && !operation.requires?.capability) {
|
|
2256
2252
|
ctx.addIssue({ code: "custom", message: "SQL operations require a query-only v4 plan or v5 runtime contract, capability, and no GraphQL roots" });
|
|
2257
2253
|
}
|
|
@@ -2266,7 +2262,7 @@ var compiledOperationSchema = z.object({
|
|
|
2266
2262
|
}
|
|
2267
2263
|
});
|
|
2268
2264
|
var resolvedSourceIrSchema = z.object({
|
|
2269
|
-
name: z.string(),
|
|
2265
|
+
name: z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
|
|
2270
2266
|
kind: z.enum(["manual", "etl", "prefetch"]),
|
|
2271
2267
|
/** Logical table key of the backing relation. */
|
|
2272
2268
|
table: z.string(),
|
|
@@ -2380,7 +2376,6 @@ z.object({
|
|
|
2380
2376
|
ownSchemaHash: z.string().optional(),
|
|
2381
2377
|
dependencies: z.record(z.string(), z.string()).optional(),
|
|
2382
2378
|
readPolicies: z.record(z.string(), predIrSchema).optional(),
|
|
2383
|
-
opsHash: z.string(),
|
|
2384
2379
|
/** Apply-observed synced objects without a serving backing; not part of the authored schema hash. */
|
|
2385
2380
|
unbackedTables: z.array(z.string()).optional(),
|
|
2386
2381
|
tables: z.record(z.string(), tableMetaIrSchema),
|