@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/sdl.d.cts
CHANGED
|
@@ -64,7 +64,7 @@ declare const manifestOperationSchema: z.ZodObject<{
|
|
|
64
64
|
}, z.core.$strip>>;
|
|
65
65
|
}, z.core.$strip>;
|
|
66
66
|
declare const operationsManifestSchema: z.ZodObject<{
|
|
67
|
-
manifestVersion: z.
|
|
67
|
+
manifestVersion: z.ZodLiteral<2>;
|
|
68
68
|
operations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
69
|
kind: z.ZodEnum<{
|
|
70
70
|
query: "query";
|
|
@@ -81,8 +81,6 @@ type ManifestOperation = z.infer<typeof manifestOperationSchema>;
|
|
|
81
81
|
interface ManifestOperationInput {
|
|
82
82
|
/** Operation name as authored in the document (the registry identity). */
|
|
83
83
|
name: string;
|
|
84
|
-
/** Legacy generator input; ignored in the client registry. */
|
|
85
|
-
hash?: string;
|
|
86
84
|
kind: 'query' | 'mutation';
|
|
87
85
|
/** `@requires` gate; absent/empty normalizes to null. */
|
|
88
86
|
requires?: {
|
|
@@ -91,8 +89,6 @@ interface ManifestOperationInput {
|
|
|
91
89
|
} | null;
|
|
92
90
|
}
|
|
93
91
|
declare function buildOperationsManifest({ operations, }: {
|
|
94
|
-
/** Accepted from older generator callers, never emitted. */
|
|
95
|
-
schemaHash?: string;
|
|
96
92
|
operations: ManifestOperationInput[];
|
|
97
93
|
}): OperationsManifest;
|
|
98
94
|
|
package/dist/sdl.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ declare const manifestOperationSchema: z.ZodObject<{
|
|
|
64
64
|
}, z.core.$strip>>;
|
|
65
65
|
}, z.core.$strip>;
|
|
66
66
|
declare const operationsManifestSchema: z.ZodObject<{
|
|
67
|
-
manifestVersion: z.
|
|
67
|
+
manifestVersion: z.ZodLiteral<2>;
|
|
68
68
|
operations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
69
|
kind: z.ZodEnum<{
|
|
70
70
|
query: "query";
|
|
@@ -81,8 +81,6 @@ type ManifestOperation = z.infer<typeof manifestOperationSchema>;
|
|
|
81
81
|
interface ManifestOperationInput {
|
|
82
82
|
/** Operation name as authored in the document (the registry identity). */
|
|
83
83
|
name: string;
|
|
84
|
-
/** Legacy generator input; ignored in the client registry. */
|
|
85
|
-
hash?: string;
|
|
86
84
|
kind: 'query' | 'mutation';
|
|
87
85
|
/** `@requires` gate; absent/empty normalizes to null. */
|
|
88
86
|
requires?: {
|
|
@@ -91,8 +89,6 @@ interface ManifestOperationInput {
|
|
|
91
89
|
} | null;
|
|
92
90
|
}
|
|
93
91
|
declare function buildOperationsManifest({ operations, }: {
|
|
94
|
-
/** Accepted from older generator callers, never emitted. */
|
|
95
|
-
schemaHash?: string;
|
|
96
92
|
operations: ManifestOperationInput[];
|
|
97
93
|
}): OperationsManifest;
|
|
98
94
|
|
package/dist/sdl.js
CHANGED
|
@@ -2072,11 +2072,6 @@ var CELL_TYPENAMES = {
|
|
|
2072
2072
|
function cellsTypename(typename) {
|
|
2073
2073
|
return `${typename}Cells`;
|
|
2074
2074
|
}
|
|
2075
|
-
|
|
2076
|
-
// src/client/sql.ts
|
|
2077
|
-
var BUILTIN_SQL_READ_HASH = "sha256:a50c477c952a5e0fe68ed158a4530e4aab573c09bcbb1a8ac454dc88a39a6258";
|
|
2078
|
-
|
|
2079
|
-
// src/ir/index.ts
|
|
2080
2075
|
var LEGACY_IR_VERSION = 1;
|
|
2081
2076
|
var GUARDED_IR_VERSION = 2;
|
|
2082
2077
|
var COMPOSED_IR_VERSION = 3;
|
|
@@ -2384,8 +2379,7 @@ var compiledOperationSchema = z.object({
|
|
|
2384
2379
|
maxRows: z.number().int().min(1).max(1e4)
|
|
2385
2380
|
}).strict().optional(),
|
|
2386
2381
|
irVersion: irVersionSchema,
|
|
2387
|
-
name: z.string(),
|
|
2388
|
-
opHash: z.string().regex(/^sha256:[0-9a-f]{64}$/),
|
|
2382
|
+
name: z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
|
|
2389
2383
|
kind: z.enum(["query", "mutation"]),
|
|
2390
2384
|
requires: z.object({
|
|
2391
2385
|
capability: z.string().optional(),
|
|
@@ -2401,7 +2395,7 @@ var compiledOperationSchema = z.object({
|
|
|
2401
2395
|
}
|
|
2402
2396
|
if (operation.language === "sql") {
|
|
2403
2397
|
const validPlan = operation.sqlQuery ? !operation.sql && operation.irVersion === RUNTIME_SQL_IR_VERSION : !!operation.sql && operation.irVersion === SQL_IR_VERSION;
|
|
2404
|
-
const builtin = operation.name === "BuiltinSqlRead" && operation.
|
|
2398
|
+
const builtin = operation.name === "BuiltinSqlRead" && operation.requires === null;
|
|
2405
2399
|
if (!validPlan || operation.kind !== "query" || operation.roots.length !== 0 || !builtin && !operation.requires?.capability) {
|
|
2406
2400
|
ctx.addIssue({ code: "custom", message: "SQL operations require a query-only v4 plan or v5 runtime contract, capability, and no GraphQL roots" });
|
|
2407
2401
|
}
|
|
@@ -2416,7 +2410,7 @@ var compiledOperationSchema = z.object({
|
|
|
2416
2410
|
}
|
|
2417
2411
|
});
|
|
2418
2412
|
var resolvedSourceIrSchema = z.object({
|
|
2419
|
-
name: z.string(),
|
|
2413
|
+
name: z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
|
|
2420
2414
|
kind: z.enum(["manual", "etl", "prefetch"]),
|
|
2421
2415
|
/** Logical table key of the backing relation. */
|
|
2422
2416
|
table: z.string(),
|
|
@@ -2530,7 +2524,6 @@ z.object({
|
|
|
2530
2524
|
ownSchemaHash: z.string().optional(),
|
|
2531
2525
|
dependencies: z.record(z.string(), z.string()).optional(),
|
|
2532
2526
|
readPolicies: z.record(z.string(), predIrSchema).optional(),
|
|
2533
|
-
opsHash: z.string(),
|
|
2534
2527
|
/** Apply-observed synced objects without a serving backing; not part of the authored schema hash. */
|
|
2535
2528
|
unbackedTables: z.array(z.string()).optional(),
|
|
2536
2529
|
tables: z.record(z.string(), tableMetaIrSchema),
|
|
@@ -3293,7 +3286,7 @@ var manifestOperationSchema = z.object({
|
|
|
3293
3286
|
requires: manifestRequiresSchema
|
|
3294
3287
|
});
|
|
3295
3288
|
var operationsManifestSchema = z.object({
|
|
3296
|
-
manifestVersion: z.
|
|
3289
|
+
manifestVersion: z.literal(MANIFEST_VERSION),
|
|
3297
3290
|
operations: z.record(z.string().regex(GRAPHQL_NAME_RE2), manifestOperationSchema)
|
|
3298
3291
|
});
|
|
3299
3292
|
function buildOperationsManifest({
|