@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/sdl.js CHANGED
@@ -1580,19 +1580,20 @@ var variableIrSchema = z.object({
1580
1580
  defaultValue: variableDefaultIrSchema.optional()
1581
1581
  });
1582
1582
  var sqlColumnSchema = z.object({ name: z.string(), type: z.enum(["text", "boolean", "integer", "bigint", "numeric", "double", "uuid", "date", "timestamptz", "jsonb"]), nullable: z.boolean() });
1583
+ var sqlObjectIrSchema = z.object({
1584
+ ref: z.string(),
1585
+ table: z.string(),
1586
+ columns: z.array(sqlColumnSchema.extend({ type: z.string() })).min(1),
1587
+ scan: z.string().min(1),
1588
+ read: z.array(z.string()).min(1)
1589
+ }).strict();
1583
1590
  var compiledOperationSchema = z.object({
1584
1591
  language: z.literal("sql").optional(),
1585
1592
  /** Server-compiled object catalog and permission ceiling, never caller SQL. */
1586
1593
  sqlQuery: z.object({
1587
1594
  catalog: z.object({
1588
1595
  identity: z.string(),
1589
- objects: z.array(z.object({
1590
- ref: z.string(),
1591
- table: z.string(),
1592
- columns: z.array(sqlColumnSchema.extend({ type: z.string() })).min(1),
1593
- scan: z.string().min(1),
1594
- read: z.array(z.string()).min(1)
1595
- }).strict()).min(1).max(256)
1596
+ objects: z.array(sqlObjectIrSchema).min(1).max(256)
1596
1597
  }).strict(),
1597
1598
  read: z.array(z.string()).min(1).max(256),
1598
1599
  maxRows: z.number().int().min(1).max(1e4)