@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/ir.cjs
CHANGED
|
@@ -1889,9 +1889,6 @@ localDefinitionSchema.safeExtend({
|
|
|
1889
1889
|
imports: zod.z.array(localDefinitionSchema).max(32).optional()
|
|
1890
1890
|
});
|
|
1891
1891
|
|
|
1892
|
-
// src/client/sql.ts
|
|
1893
|
-
var BUILTIN_SQL_READ_HASH = "sha256:a50c477c952a5e0fe68ed158a4530e4aab573c09bcbb1a8ac454dc88a39a6258";
|
|
1894
|
-
|
|
1895
1892
|
// src/ir/index.ts
|
|
1896
1893
|
var IR_VERSION = 6;
|
|
1897
1894
|
var LEGACY_IR_VERSION = 1;
|
|
@@ -2220,8 +2217,7 @@ var compiledOperationSchema = zod.z.object({
|
|
|
2220
2217
|
maxRows: zod.z.number().int().min(1).max(1e4)
|
|
2221
2218
|
}).strict().optional(),
|
|
2222
2219
|
irVersion: irVersionSchema,
|
|
2223
|
-
name: zod.z.string(),
|
|
2224
|
-
opHash: zod.z.string().regex(/^sha256:[0-9a-f]{64}$/),
|
|
2220
|
+
name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
|
|
2225
2221
|
kind: zod.z.enum(["query", "mutation"]),
|
|
2226
2222
|
requires: zod.z.object({
|
|
2227
2223
|
capability: zod.z.string().optional(),
|
|
@@ -2237,7 +2233,7 @@ var compiledOperationSchema = zod.z.object({
|
|
|
2237
2233
|
}
|
|
2238
2234
|
if (operation.language === "sql") {
|
|
2239
2235
|
const validPlan = operation.sqlQuery ? !operation.sql && operation.irVersion === RUNTIME_SQL_IR_VERSION : !!operation.sql && operation.irVersion === SQL_IR_VERSION;
|
|
2240
|
-
const builtin = operation.name === "BuiltinSqlRead" && operation.
|
|
2236
|
+
const builtin = operation.name === "BuiltinSqlRead" && operation.requires === null;
|
|
2241
2237
|
if (!validPlan || operation.kind !== "query" || operation.roots.length !== 0 || !builtin && !operation.requires?.capability) {
|
|
2242
2238
|
ctx.addIssue({ code: "custom", message: "SQL operations require a query-only v4 plan or v5 runtime contract, capability, and no GraphQL roots" });
|
|
2243
2239
|
}
|
|
@@ -2252,7 +2248,7 @@ var compiledOperationSchema = zod.z.object({
|
|
|
2252
2248
|
}
|
|
2253
2249
|
});
|
|
2254
2250
|
var resolvedSourceIrSchema = zod.z.object({
|
|
2255
|
-
name: zod.z.string(),
|
|
2251
|
+
name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
|
|
2256
2252
|
kind: zod.z.enum(["manual", "etl", "prefetch"]),
|
|
2257
2253
|
/** Logical table key of the backing relation. */
|
|
2258
2254
|
table: zod.z.string(),
|
|
@@ -2366,7 +2362,6 @@ var compiledArtifactSchema = zod.z.object({
|
|
|
2366
2362
|
ownSchemaHash: zod.z.string().optional(),
|
|
2367
2363
|
dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional(),
|
|
2368
2364
|
readPolicies: zod.z.record(zod.z.string(), predIrSchema).optional(),
|
|
2369
|
-
opsHash: zod.z.string(),
|
|
2370
2365
|
/** Apply-observed synced objects without a serving backing; not part of the authored schema hash. */
|
|
2371
2366
|
unbackedTables: zod.z.array(zod.z.string()).optional(),
|
|
2372
2367
|
tables: zod.z.record(zod.z.string(), tableMetaIrSchema),
|
|
@@ -2396,9 +2391,9 @@ function normalizeIr(raw) {
|
|
|
2396
2391
|
if (!irVersionSchema.safeParse(version).success) throw new IrVersionError(version);
|
|
2397
2392
|
return compiledArtifactSchema.parse(raw);
|
|
2398
2393
|
}
|
|
2399
|
-
function
|
|
2394
|
+
function indexByName(artifact) {
|
|
2400
2395
|
const map = /* @__PURE__ */ new Map();
|
|
2401
|
-
for (const op of Object.values(artifact.operations)) map.set(op.
|
|
2396
|
+
for (const op of Object.values(artifact.operations)) map.set(op.name, op);
|
|
2402
2397
|
return map;
|
|
2403
2398
|
}
|
|
2404
2399
|
|
|
@@ -2420,7 +2415,7 @@ exports.SQL_IR_VERSION = SQL_IR_VERSION;
|
|
|
2420
2415
|
exports.cellColumnName = cellColumnName;
|
|
2421
2416
|
exports.compiledArtifactSchema = compiledArtifactSchema;
|
|
2422
2417
|
exports.compiledOperationSchema = compiledOperationSchema;
|
|
2423
|
-
exports.
|
|
2418
|
+
exports.indexByName = indexByName;
|
|
2424
2419
|
exports.isExternalPolicyClaimKey = isExternalPolicyClaimKey;
|
|
2425
2420
|
exports.limitIrSchema = limitIrSchema;
|
|
2426
2421
|
exports.normalizeIr = normalizeIr;
|