cogsbox-shape 0.5.37 → 0.5.38

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/schema.d.ts CHANGED
@@ -4852,6 +4852,7 @@ export type InferSchemaTypes<T extends {
4852
4852
  export type ProcessedSyncSchemaEntry<T extends {
4853
4853
  _tableName: string;
4854
4854
  }> = {
4855
+ rawSchema: T;
4855
4856
  schemas: ReturnType<typeof createSchema<T>>;
4856
4857
  validate: (data: unknown) => z.SafeParseReturnType<T extends {
4857
4858
  validation: (s: any) => infer V extends z.ZodSchema;
package/dist/schema.js CHANGED
@@ -417,6 +417,7 @@ export function createSyncSchema(config) {
417
417
  : clientSchema;
418
418
  // 4. ASSIGN everything to the output object.
419
419
  processedOutput[key] = {
420
+ rawSchema: entry.schema,
420
421
  // Keep the generated schemas for reference or other uses
421
422
  schemas: {
422
423
  sql: sqlSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogsbox-shape",
3
- "version": "0.5.37",
3
+ "version": "0.5.38",
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",