cogsbox-shape 0.5.95 → 0.5.96

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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +3 -2
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -285,15 +285,16 @@ type DeriveSchemaByKey<T, Key extends "zodSqlSchema" | "zodClientSchema" | "zodV
285
285
  schema: () => infer S;
286
286
  };
287
287
  };
288
- } ? S extends {
288
+ } ? Key extends "zodSqlSchema" ? never : S extends {
289
289
  _tableName: string;
290
290
  } ? z.ZodArray<z.ZodObject<Prettify<DeriveSchemaByKey<S, Key, [...Depth, 1]>>>> : never : T[K] extends {
291
291
  config: {
292
292
  sql: {
293
+ type: "hasOne" | "belongsTo";
293
294
  schema: () => infer S;
294
295
  };
295
296
  };
296
- } ? S extends {
297
+ } ? Key extends "zodSqlSchema" ? never : S extends {
297
298
  _tableName: string;
298
299
  } ? z.ZodObject<Prettify<DeriveSchemaByKey<S, Key, [...Depth, 1]>>> : z.ZodObject<any> : T[K] extends {
299
300
  type: "reference";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-shape",
3
- "version": "0.5.95",
3
+ "version": "0.5.96",
4
4
  "description": "A TypeScript library for creating type-safe database schemas with Zod validation, SQL type definitions, and automatic client/server transformations. Unifies client, server, and database types through a single schema definition, with built-in support for relationships and serialization.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",