@develit-io/backend-sdk 11.0.3 → 11.0.5

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/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import * as drizzle_orm from 'drizzle-orm';
2
2
  import { Table, InferInsertModel, AnyColumn } from 'drizzle-orm';
3
3
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
4
4
  import { AnySQLiteTable } from 'drizzle-orm/sqlite-core';
5
- import { z as z$1, ZodObject, ZodType, ZodOptional } from 'zod';
5
+ import { z as z$1, ZodObject, ZodOptional, ZodType } from 'zod';
6
6
  import * as z from 'zod/v4/core';
7
7
  import { ContentfulStatusCode, SuccessStatusCode } from 'hono/utils/http-status';
8
8
  export { ContentfulStatusCode as InternalResponseStatus } from 'hono/utils/http-status';
@@ -838,13 +838,14 @@ declare const bankAccount: {
838
838
 
839
839
  declare const auditFieldKeys: readonly ["createdAt", "createdBy", "updatedAt", "updatedBy", "deletedAt", "deletedBy"];
840
840
  type AuditKey = (typeof auditFieldKeys)[number];
841
+ type FieldSchema<T> = undefined extends T ? ZodOptional<ZodType<Exclude<T, undefined>>> : ZodType<T>;
841
842
  type InsertSchemaOf<TTable extends Table> = ZodObject<{
842
- [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]: ZodType<InferInsertModel<TTable>[K]>;
843
+ [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]-?: FieldSchema<InferInsertModel<TTable>[K]>;
843
844
  } & {
844
845
  id: ZodOptional<ZodType<string>>;
845
846
  }>;
846
847
  type UpdateSchemaOf<TTable extends Table> = ZodObject<{
847
- [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]: ZodOptional<ZodType<InferInsertModel<TTable>[K]>>;
848
+ [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]-?: ZodOptional<ZodType<Exclude<InferInsertModel<TTable>[K], undefined>>>;
848
849
  } & {
849
850
  id: ZodType<string>;
850
851
  }>;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as drizzle_orm from 'drizzle-orm';
2
2
  import { Table, InferInsertModel, AnyColumn } from 'drizzle-orm';
3
3
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
4
4
  import { AnySQLiteTable } from 'drizzle-orm/sqlite-core';
5
- import { z as z$1, ZodObject, ZodType, ZodOptional } from 'zod';
5
+ import { z as z$1, ZodObject, ZodOptional, ZodType } from 'zod';
6
6
  import * as z from 'zod/v4/core';
7
7
  import { ContentfulStatusCode, SuccessStatusCode } from 'hono/utils/http-status';
8
8
  export { ContentfulStatusCode as InternalResponseStatus } from 'hono/utils/http-status';
@@ -838,13 +838,14 @@ declare const bankAccount: {
838
838
 
839
839
  declare const auditFieldKeys: readonly ["createdAt", "createdBy", "updatedAt", "updatedBy", "deletedAt", "deletedBy"];
840
840
  type AuditKey = (typeof auditFieldKeys)[number];
841
+ type FieldSchema<T> = undefined extends T ? ZodOptional<ZodType<Exclude<T, undefined>>> : ZodType<T>;
841
842
  type InsertSchemaOf<TTable extends Table> = ZodObject<{
842
- [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]: ZodType<InferInsertModel<TTable>[K]>;
843
+ [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]-?: FieldSchema<InferInsertModel<TTable>[K]>;
843
844
  } & {
844
845
  id: ZodOptional<ZodType<string>>;
845
846
  }>;
846
847
  type UpdateSchemaOf<TTable extends Table> = ZodObject<{
847
- [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]: ZodOptional<ZodType<InferInsertModel<TTable>[K]>>;
848
+ [K in keyof Omit<InferInsertModel<TTable>, AuditKey | 'id'>]-?: ZodOptional<ZodType<Exclude<InferInsertModel<TTable>[K], undefined>>>;
848
849
  } & {
849
850
  id: ZodType<string>;
850
851
  }>;
package/dist/index.mjs CHANGED
@@ -801,7 +801,6 @@ function develitWorker(Worker) {
801
801
  input,
802
802
  schema
803
803
  }) {
804
- this.logInput({ input });
805
804
  const parseResult = z.safeParse(schema, input);
806
805
  if (!parseResult.success) {
807
806
  const parseError = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "11.0.3",
3
+ "version": "11.0.5",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",