@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/ir.cjs CHANGED
@@ -1423,19 +1423,20 @@ var variableIrSchema = zod.z.object({
1423
1423
  defaultValue: variableDefaultIrSchema.optional()
1424
1424
  });
1425
1425
  var sqlColumnSchema = zod.z.object({ name: zod.z.string(), type: zod.z.enum(["text", "boolean", "integer", "bigint", "numeric", "double", "uuid", "date", "timestamptz", "jsonb"]), nullable: zod.z.boolean() });
1426
+ var sqlObjectIrSchema = zod.z.object({
1427
+ ref: zod.z.string(),
1428
+ table: zod.z.string(),
1429
+ columns: zod.z.array(sqlColumnSchema.extend({ type: zod.z.string() })).min(1),
1430
+ scan: zod.z.string().min(1),
1431
+ read: zod.z.array(zod.z.string()).min(1)
1432
+ }).strict();
1426
1433
  var compiledOperationSchema = zod.z.object({
1427
1434
  language: zod.z.literal("sql").optional(),
1428
1435
  /** Server-compiled object catalog and permission ceiling, never caller SQL. */
1429
1436
  sqlQuery: zod.z.object({
1430
1437
  catalog: zod.z.object({
1431
1438
  identity: zod.z.string(),
1432
- objects: zod.z.array(zod.z.object({
1433
- ref: zod.z.string(),
1434
- table: zod.z.string(),
1435
- columns: zod.z.array(sqlColumnSchema.extend({ type: zod.z.string() })).min(1),
1436
- scan: zod.z.string().min(1),
1437
- read: zod.z.array(zod.z.string()).min(1)
1438
- }).strict()).min(1).max(256)
1439
+ objects: zod.z.array(sqlObjectIrSchema).min(1).max(256)
1439
1440
  }).strict(),
1440
1441
  read: zod.z.array(zod.z.string()).min(1).max(256),
1441
1442
  maxRows: zod.z.number().int().min(1).max(1e4)
@@ -1660,6 +1661,7 @@ exports.resolvedMetaIrSchema = resolvedMetaIrSchema;
1660
1661
  exports.resolvedSourceIrSchema = resolvedSourceIrSchema;
1661
1662
  exports.rootIrSchema = rootIrSchema;
1662
1663
  exports.selectionIrSchema = selectionIrSchema;
1664
+ exports.sqlObjectIrSchema = sqlObjectIrSchema;
1663
1665
  exports.tableMetaIrSchema = tableMetaIrSchema;
1664
1666
  exports.usesServicePrincipal = usesServicePrincipal;
1665
1667
  exports.valueIrSchema = valueIrSchema;