@sequenceholdings/orm 2.9.0 → 2.10.0
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/cli.cjs +30 -16
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +10 -1
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +29 -17
- package/dist/cli.js.map +1 -1
- package/dist/compiler.cjs +258 -17
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +181 -1
- package/dist/compiler.d.ts +181 -1
- package/dist/compiler.js +253 -18
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +9 -7
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +12 -1
- package/dist/ir.d.ts +12 -1
- package/dist/ir.js +9 -8
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +9 -7
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.d.cts +2 -0
- package/dist/predicate-v2.d.ts +2 -0
- package/dist/predicate-v2.js +9 -7
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +8 -7
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.js +8 -7
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
package/dist/ir.d.cts
CHANGED
|
@@ -708,6 +708,17 @@ declare const variableIrSchema: z.ZodObject<{
|
|
|
708
708
|
}, z.core.$strip>>;
|
|
709
709
|
}, z.core.$strip>;
|
|
710
710
|
type VariableIr = z.infer<typeof variableIrSchema>;
|
|
711
|
+
declare const sqlObjectIrSchema: z.ZodObject<{
|
|
712
|
+
ref: z.ZodString;
|
|
713
|
+
table: z.ZodString;
|
|
714
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
715
|
+
name: z.ZodString;
|
|
716
|
+
nullable: z.ZodBoolean;
|
|
717
|
+
type: z.ZodString;
|
|
718
|
+
}, z.core.$strip>>;
|
|
719
|
+
scan: z.ZodString;
|
|
720
|
+
read: z.ZodArray<z.ZodString>;
|
|
721
|
+
}, z.core.$strict>;
|
|
711
722
|
declare const compiledOperationSchema: z.ZodObject<{
|
|
712
723
|
language: z.ZodOptional<z.ZodLiteral<"sql">>;
|
|
713
724
|
sqlQuery: z.ZodOptional<z.ZodObject<{
|
|
@@ -2008,4 +2019,4 @@ declare function normalizeIr(raw: unknown): CompiledArtifact;
|
|
|
2008
2019
|
/** Index an artifact's operations by opHash (the wire selector). */
|
|
2009
2020
|
declare function indexByHash(artifact: CompiledArtifact): Map<string, CompiledOperation>;
|
|
2010
2021
|
|
|
2011
|
-
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, type ExternalPolicyClaimKey, GUARDED_IR_VERSION, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
|
2022
|
+
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, type ExternalPolicyClaimKey, GUARDED_IR_VERSION, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
package/dist/ir.d.ts
CHANGED
|
@@ -708,6 +708,17 @@ declare const variableIrSchema: z.ZodObject<{
|
|
|
708
708
|
}, z.core.$strip>>;
|
|
709
709
|
}, z.core.$strip>;
|
|
710
710
|
type VariableIr = z.infer<typeof variableIrSchema>;
|
|
711
|
+
declare const sqlObjectIrSchema: z.ZodObject<{
|
|
712
|
+
ref: z.ZodString;
|
|
713
|
+
table: z.ZodString;
|
|
714
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
715
|
+
name: z.ZodString;
|
|
716
|
+
nullable: z.ZodBoolean;
|
|
717
|
+
type: z.ZodString;
|
|
718
|
+
}, z.core.$strip>>;
|
|
719
|
+
scan: z.ZodString;
|
|
720
|
+
read: z.ZodArray<z.ZodString>;
|
|
721
|
+
}, z.core.$strict>;
|
|
711
722
|
declare const compiledOperationSchema: z.ZodObject<{
|
|
712
723
|
language: z.ZodOptional<z.ZodLiteral<"sql">>;
|
|
713
724
|
sqlQuery: z.ZodOptional<z.ZodObject<{
|
|
@@ -2008,4 +2019,4 @@ declare function normalizeIr(raw: unknown): CompiledArtifact;
|
|
|
2008
2019
|
/** Index an artifact's operations by opHash (the wire selector). */
|
|
2009
2020
|
declare function indexByHash(artifact: CompiledArtifact): Map<string, CompiledOperation>;
|
|
2010
2021
|
|
|
2011
|
-
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, type ExternalPolicyClaimKey, GUARDED_IR_VERSION, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
|
2022
|
+
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, type CellSelectionIr, type ClaimKey, type CmpOp, type CompiledArtifact, type CompiledOperation, DATE_BUCKETS, type DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, type ExternalPolicyClaimKey, GUARDED_IR_VERSION, type GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, type InputRefKind, IrVersionError, LEGACY_IR_VERSION, type LimitIr, type OrderIr, type PredIr, type PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, type ResolvedMetaIr, type ResolvedSourceIr, type RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, type SelectionIr, type TableMetaIr, type ValueIr, type VariableDefaultIr, type VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
package/dist/ir.js
CHANGED
|
@@ -1421,19 +1421,20 @@ var variableIrSchema = z.object({
|
|
|
1421
1421
|
defaultValue: variableDefaultIrSchema.optional()
|
|
1422
1422
|
});
|
|
1423
1423
|
var sqlColumnSchema = z.object({ name: z.string(), type: z.enum(["text", "boolean", "integer", "bigint", "numeric", "double", "uuid", "date", "timestamptz", "jsonb"]), nullable: z.boolean() });
|
|
1424
|
+
var sqlObjectIrSchema = z.object({
|
|
1425
|
+
ref: z.string(),
|
|
1426
|
+
table: z.string(),
|
|
1427
|
+
columns: z.array(sqlColumnSchema.extend({ type: z.string() })).min(1),
|
|
1428
|
+
scan: z.string().min(1),
|
|
1429
|
+
read: z.array(z.string()).min(1)
|
|
1430
|
+
}).strict();
|
|
1424
1431
|
var compiledOperationSchema = z.object({
|
|
1425
1432
|
language: z.literal("sql").optional(),
|
|
1426
1433
|
/** Server-compiled object catalog and permission ceiling, never caller SQL. */
|
|
1427
1434
|
sqlQuery: z.object({
|
|
1428
1435
|
catalog: z.object({
|
|
1429
1436
|
identity: z.string(),
|
|
1430
|
-
objects: z.array(
|
|
1431
|
-
ref: z.string(),
|
|
1432
|
-
table: z.string(),
|
|
1433
|
-
columns: z.array(sqlColumnSchema.extend({ type: z.string() })).min(1),
|
|
1434
|
-
scan: z.string().min(1),
|
|
1435
|
-
read: z.array(z.string()).min(1)
|
|
1436
|
-
}).strict()).min(1).max(256)
|
|
1437
|
+
objects: z.array(sqlObjectIrSchema).min(1).max(256)
|
|
1437
1438
|
}).strict(),
|
|
1438
1439
|
read: z.array(z.string()).min(1).max(256),
|
|
1439
1440
|
maxRows: z.number().int().min(1).max(1e4)
|
|
@@ -1628,6 +1629,6 @@ function indexByHash(artifact) {
|
|
|
1628
1629
|
return map;
|
|
1629
1630
|
}
|
|
1630
1631
|
|
|
1631
|
-
export { CELLS_FIELD, CELL_PARTS, CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, DATE_BUCKETS, EXTERNAL_POLICY_CLAIM_KEYS, GUARDED_IR_VERSION, INPUT_REF_KINDS, IR_VERSION, IrVersionError, LEGACY_IR_VERSION, RUNTIME_SQL_IR_VERSION, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, cellColumnName, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
|
1632
|
+
export { CELLS_FIELD, CELL_PARTS, CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, DATE_BUCKETS, EXTERNAL_POLICY_CLAIM_KEYS, GUARDED_IR_VERSION, INPUT_REF_KINDS, IR_VERSION, IrVersionError, LEGACY_IR_VERSION, RUNTIME_SQL_IR_VERSION, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, cellColumnName, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema };
|
|
1632
1633
|
//# sourceMappingURL=ir.js.map
|
|
1633
1634
|
//# sourceMappingURL=ir.js.map
|