@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 +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +0 -1
- package/package.json +1 -1
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,
|
|
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'>]
|
|
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'>]
|
|
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,
|
|
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'>]
|
|
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'>]
|
|
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