cogsbox-shape 0.5.8 → 0.5.9
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/example/schema.d.ts +205 -436
- package/dist/example/user.d.ts +228 -459
- package/dist/example/user.js +2 -2
- package/dist/schema.d.ts +190 -190
- package/dist/schema.js +1 -1
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -71,25 +71,25 @@ export declare function createTransforms<TTransforms extends Record<string, Cust
|
|
|
71
71
|
zodDbSchema: SQLToZodType<T, false>;
|
|
72
72
|
zodClientSchema: SQLToZodType<T, true>;
|
|
73
73
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
74
|
-
zod:
|
|
74
|
+
zod: SQLToZodType<T, true>;
|
|
75
75
|
serverType?: never;
|
|
76
76
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
77
77
|
sql: T;
|
|
78
|
-
zodDbSchema:
|
|
79
|
-
zodClientSchema:
|
|
78
|
+
zodDbSchema: any;
|
|
79
|
+
zodClientSchema: ClientType;
|
|
80
80
|
jsonSchema: any;
|
|
81
81
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
82
82
|
transform: (transforms: {
|
|
83
|
-
toClient: (dbValue: z.infer<
|
|
84
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
83
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
84
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
85
85
|
}) => {
|
|
86
86
|
sql: T;
|
|
87
|
-
zodDbSchema:
|
|
88
|
-
zodClientSchema:
|
|
87
|
+
zodDbSchema: any;
|
|
88
|
+
zodClientSchema: ClientType;
|
|
89
89
|
jsonSchema: any;
|
|
90
90
|
defaultValue: DefaultValue;
|
|
91
|
-
toClient: (dbValue: z.infer<
|
|
92
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
91
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
92
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
93
93
|
transforms: {
|
|
94
94
|
toClient: string;
|
|
95
95
|
toDb: string;
|
|
@@ -100,25 +100,25 @@ export declare function createTransforms<TTransforms extends Record<string, Cust
|
|
|
100
100
|
zod: SQLToZodType<T, false>;
|
|
101
101
|
}) => ServerType) => {
|
|
102
102
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
103
|
-
zod:
|
|
103
|
+
zod: SQLToZodType<T, true>;
|
|
104
104
|
serverType?: ServerType;
|
|
105
105
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
106
106
|
sql: T;
|
|
107
|
-
zodDbSchema:
|
|
108
|
-
zodClientSchema:
|
|
107
|
+
zodDbSchema: any;
|
|
108
|
+
zodClientSchema: ClientType;
|
|
109
109
|
jsonSchema: any;
|
|
110
110
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
111
111
|
transform: (transforms: {
|
|
112
|
-
toClient: (dbValue: z.infer<
|
|
113
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
112
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
113
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
114
114
|
}) => {
|
|
115
115
|
sql: T;
|
|
116
|
-
zodDbSchema:
|
|
117
|
-
zodClientSchema:
|
|
116
|
+
zodDbSchema: any;
|
|
117
|
+
zodClientSchema: ClientType;
|
|
118
118
|
jsonSchema: any;
|
|
119
119
|
defaultValue: DefaultValue;
|
|
120
|
-
toClient: (dbValue: z.infer<
|
|
121
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
120
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
121
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
122
122
|
transforms: {
|
|
123
123
|
toClient: string;
|
|
124
124
|
toDb: string;
|
|
@@ -128,7 +128,7 @@ export declare function createTransforms<TTransforms extends Record<string, Cust
|
|
|
128
128
|
sql: T;
|
|
129
129
|
dbType: ServerType;
|
|
130
130
|
zodDbSchema: ServerType;
|
|
131
|
-
zodClientSchema:
|
|
131
|
+
zodClientSchema: SQLToZodType<T, true>;
|
|
132
132
|
jsonSchema: JsonSchema7Type & {
|
|
133
133
|
$schema?: string | undefined;
|
|
134
134
|
definitions?: {
|
|
@@ -159,7 +159,7 @@ export declare const shape: {
|
|
|
159
159
|
};
|
|
160
160
|
defaultValue: number;
|
|
161
161
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
162
|
-
zod: z.
|
|
162
|
+
zod: z.ZodNumber;
|
|
163
163
|
serverType?: never;
|
|
164
164
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
165
165
|
sql: {
|
|
@@ -169,13 +169,13 @@ export declare const shape: {
|
|
|
169
169
|
default?: number;
|
|
170
170
|
type: "int";
|
|
171
171
|
};
|
|
172
|
-
zodDbSchema:
|
|
173
|
-
zodClientSchema:
|
|
172
|
+
zodDbSchema: any;
|
|
173
|
+
zodClientSchema: ClientType;
|
|
174
174
|
jsonSchema: any;
|
|
175
175
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
176
176
|
transform: (transforms: {
|
|
177
|
-
toClient: (dbValue: z.infer<
|
|
178
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
177
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
178
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
179
179
|
}) => {
|
|
180
180
|
sql: {
|
|
181
181
|
nullable?: boolean;
|
|
@@ -184,12 +184,12 @@ export declare const shape: {
|
|
|
184
184
|
default?: number;
|
|
185
185
|
type: "int";
|
|
186
186
|
};
|
|
187
|
-
zodDbSchema:
|
|
188
|
-
zodClientSchema:
|
|
187
|
+
zodDbSchema: any;
|
|
188
|
+
zodClientSchema: ClientType;
|
|
189
189
|
jsonSchema: any;
|
|
190
190
|
defaultValue: DefaultValue;
|
|
191
|
-
toClient: (dbValue: z.infer<
|
|
192
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
191
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
192
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
193
193
|
transforms: {
|
|
194
194
|
toClient: string;
|
|
195
195
|
toDb: string;
|
|
@@ -208,7 +208,7 @@ export declare const shape: {
|
|
|
208
208
|
};
|
|
209
209
|
dbType: ServerType;
|
|
210
210
|
zodDbSchema: ServerType;
|
|
211
|
-
zodClientSchema:
|
|
211
|
+
zodClientSchema: z.ZodNumber;
|
|
212
212
|
jsonSchema: JsonSchema7Type & {
|
|
213
213
|
$schema?: string | undefined;
|
|
214
214
|
definitions?: {
|
|
@@ -217,7 +217,7 @@ export declare const shape: {
|
|
|
217
217
|
};
|
|
218
218
|
defaultValue: z.TypeOf<ServerType>;
|
|
219
219
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
220
|
-
zod: z.
|
|
220
|
+
zod: z.ZodNumber;
|
|
221
221
|
serverType?: ServerType;
|
|
222
222
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
223
223
|
sql: {
|
|
@@ -227,13 +227,13 @@ export declare const shape: {
|
|
|
227
227
|
default?: number;
|
|
228
228
|
type: "int";
|
|
229
229
|
};
|
|
230
|
-
zodDbSchema:
|
|
231
|
-
zodClientSchema:
|
|
230
|
+
zodDbSchema: any;
|
|
231
|
+
zodClientSchema: ClientType;
|
|
232
232
|
jsonSchema: any;
|
|
233
233
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
234
234
|
transform: (transforms: {
|
|
235
|
-
toClient: (dbValue: z.infer<
|
|
236
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
235
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
236
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
237
237
|
}) => {
|
|
238
238
|
sql: {
|
|
239
239
|
nullable?: boolean;
|
|
@@ -242,12 +242,12 @@ export declare const shape: {
|
|
|
242
242
|
default?: number;
|
|
243
243
|
type: "int";
|
|
244
244
|
};
|
|
245
|
-
zodDbSchema:
|
|
246
|
-
zodClientSchema:
|
|
245
|
+
zodDbSchema: any;
|
|
246
|
+
zodClientSchema: ClientType;
|
|
247
247
|
jsonSchema: any;
|
|
248
248
|
defaultValue: DefaultValue;
|
|
249
|
-
toClient: (dbValue: z.infer<
|
|
250
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
249
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
250
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
251
251
|
transforms: {
|
|
252
252
|
toClient: string;
|
|
253
253
|
toDb: string;
|
|
@@ -276,7 +276,7 @@ export declare const shape: {
|
|
|
276
276
|
};
|
|
277
277
|
defaultValue: string;
|
|
278
278
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
279
|
-
zod: z.
|
|
279
|
+
zod: z.ZodString;
|
|
280
280
|
serverType?: never;
|
|
281
281
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
282
282
|
sql: {
|
|
@@ -287,13 +287,13 @@ export declare const shape: {
|
|
|
287
287
|
field?: string;
|
|
288
288
|
type: "varchar";
|
|
289
289
|
};
|
|
290
|
-
zodDbSchema:
|
|
291
|
-
zodClientSchema:
|
|
290
|
+
zodDbSchema: any;
|
|
291
|
+
zodClientSchema: ClientType;
|
|
292
292
|
jsonSchema: any;
|
|
293
293
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
294
294
|
transform: (transforms: {
|
|
295
|
-
toClient: (dbValue: z.infer<
|
|
296
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
295
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
296
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
297
297
|
}) => {
|
|
298
298
|
sql: {
|
|
299
299
|
nullable?: boolean;
|
|
@@ -303,12 +303,12 @@ export declare const shape: {
|
|
|
303
303
|
field?: string;
|
|
304
304
|
type: "varchar";
|
|
305
305
|
};
|
|
306
|
-
zodDbSchema:
|
|
307
|
-
zodClientSchema:
|
|
306
|
+
zodDbSchema: any;
|
|
307
|
+
zodClientSchema: ClientType;
|
|
308
308
|
jsonSchema: any;
|
|
309
309
|
defaultValue: DefaultValue;
|
|
310
|
-
toClient: (dbValue: z.infer<
|
|
311
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
310
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
311
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
312
312
|
transforms: {
|
|
313
313
|
toClient: string;
|
|
314
314
|
toDb: string;
|
|
@@ -328,7 +328,7 @@ export declare const shape: {
|
|
|
328
328
|
};
|
|
329
329
|
dbType: ServerType;
|
|
330
330
|
zodDbSchema: ServerType;
|
|
331
|
-
zodClientSchema:
|
|
331
|
+
zodClientSchema: z.ZodString;
|
|
332
332
|
jsonSchema: JsonSchema7Type & {
|
|
333
333
|
$schema?: string | undefined;
|
|
334
334
|
definitions?: {
|
|
@@ -337,7 +337,7 @@ export declare const shape: {
|
|
|
337
337
|
};
|
|
338
338
|
defaultValue: z.TypeOf<ServerType>;
|
|
339
339
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
340
|
-
zod: z.
|
|
340
|
+
zod: z.ZodString;
|
|
341
341
|
serverType?: ServerType;
|
|
342
342
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
343
343
|
sql: {
|
|
@@ -348,13 +348,13 @@ export declare const shape: {
|
|
|
348
348
|
field?: string;
|
|
349
349
|
type: "varchar";
|
|
350
350
|
};
|
|
351
|
-
zodDbSchema:
|
|
352
|
-
zodClientSchema:
|
|
351
|
+
zodDbSchema: any;
|
|
352
|
+
zodClientSchema: ClientType;
|
|
353
353
|
jsonSchema: any;
|
|
354
354
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
355
355
|
transform: (transforms: {
|
|
356
|
-
toClient: (dbValue: z.infer<
|
|
357
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
356
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
357
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
358
358
|
}) => {
|
|
359
359
|
sql: {
|
|
360
360
|
nullable?: boolean;
|
|
@@ -364,12 +364,12 @@ export declare const shape: {
|
|
|
364
364
|
field?: string;
|
|
365
365
|
type: "varchar";
|
|
366
366
|
};
|
|
367
|
-
zodDbSchema:
|
|
368
|
-
zodClientSchema:
|
|
367
|
+
zodDbSchema: any;
|
|
368
|
+
zodClientSchema: ClientType;
|
|
369
369
|
jsonSchema: any;
|
|
370
370
|
defaultValue: DefaultValue;
|
|
371
|
-
toClient: (dbValue: z.infer<
|
|
372
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
371
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
372
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
373
373
|
transforms: {
|
|
374
374
|
toClient: string;
|
|
375
375
|
toDb: string;
|
|
@@ -398,7 +398,7 @@ export declare const shape: {
|
|
|
398
398
|
};
|
|
399
399
|
defaultValue: string;
|
|
400
400
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
401
|
-
zod: z.
|
|
401
|
+
zod: z.ZodString;
|
|
402
402
|
serverType?: never;
|
|
403
403
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
404
404
|
sql: {
|
|
@@ -409,13 +409,13 @@ export declare const shape: {
|
|
|
409
409
|
field?: string;
|
|
410
410
|
type: "char";
|
|
411
411
|
};
|
|
412
|
-
zodDbSchema:
|
|
413
|
-
zodClientSchema:
|
|
412
|
+
zodDbSchema: any;
|
|
413
|
+
zodClientSchema: ClientType;
|
|
414
414
|
jsonSchema: any;
|
|
415
415
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
416
416
|
transform: (transforms: {
|
|
417
|
-
toClient: (dbValue: z.infer<
|
|
418
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
417
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
418
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
419
419
|
}) => {
|
|
420
420
|
sql: {
|
|
421
421
|
nullable?: boolean;
|
|
@@ -425,12 +425,12 @@ export declare const shape: {
|
|
|
425
425
|
field?: string;
|
|
426
426
|
type: "char";
|
|
427
427
|
};
|
|
428
|
-
zodDbSchema:
|
|
429
|
-
zodClientSchema:
|
|
428
|
+
zodDbSchema: any;
|
|
429
|
+
zodClientSchema: ClientType;
|
|
430
430
|
jsonSchema: any;
|
|
431
431
|
defaultValue: DefaultValue;
|
|
432
|
-
toClient: (dbValue: z.infer<
|
|
433
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
432
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
433
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
434
434
|
transforms: {
|
|
435
435
|
toClient: string;
|
|
436
436
|
toDb: string;
|
|
@@ -450,7 +450,7 @@ export declare const shape: {
|
|
|
450
450
|
};
|
|
451
451
|
dbType: ServerType;
|
|
452
452
|
zodDbSchema: ServerType;
|
|
453
|
-
zodClientSchema:
|
|
453
|
+
zodClientSchema: z.ZodString;
|
|
454
454
|
jsonSchema: JsonSchema7Type & {
|
|
455
455
|
$schema?: string | undefined;
|
|
456
456
|
definitions?: {
|
|
@@ -459,7 +459,7 @@ export declare const shape: {
|
|
|
459
459
|
};
|
|
460
460
|
defaultValue: z.TypeOf<ServerType>;
|
|
461
461
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
462
|
-
zod: z.
|
|
462
|
+
zod: z.ZodString;
|
|
463
463
|
serverType?: ServerType;
|
|
464
464
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
465
465
|
sql: {
|
|
@@ -470,13 +470,13 @@ export declare const shape: {
|
|
|
470
470
|
field?: string;
|
|
471
471
|
type: "char";
|
|
472
472
|
};
|
|
473
|
-
zodDbSchema:
|
|
474
|
-
zodClientSchema:
|
|
473
|
+
zodDbSchema: any;
|
|
474
|
+
zodClientSchema: ClientType;
|
|
475
475
|
jsonSchema: any;
|
|
476
476
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
477
477
|
transform: (transforms: {
|
|
478
|
-
toClient: (dbValue: z.infer<
|
|
479
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
478
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
479
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
480
480
|
}) => {
|
|
481
481
|
sql: {
|
|
482
482
|
nullable?: boolean;
|
|
@@ -486,12 +486,12 @@ export declare const shape: {
|
|
|
486
486
|
field?: string;
|
|
487
487
|
type: "char";
|
|
488
488
|
};
|
|
489
|
-
zodDbSchema:
|
|
490
|
-
zodClientSchema:
|
|
489
|
+
zodDbSchema: any;
|
|
490
|
+
zodClientSchema: ClientType;
|
|
491
491
|
jsonSchema: any;
|
|
492
492
|
defaultValue: DefaultValue;
|
|
493
|
-
toClient: (dbValue: z.infer<
|
|
494
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
493
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
494
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
495
495
|
transforms: {
|
|
496
496
|
toClient: string;
|
|
497
497
|
toDb: string;
|
|
@@ -519,7 +519,7 @@ export declare const shape: {
|
|
|
519
519
|
};
|
|
520
520
|
defaultValue: string;
|
|
521
521
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
522
|
-
zod: z.
|
|
522
|
+
zod: z.ZodString;
|
|
523
523
|
serverType?: never;
|
|
524
524
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
525
525
|
sql: {
|
|
@@ -529,13 +529,13 @@ export declare const shape: {
|
|
|
529
529
|
field?: string;
|
|
530
530
|
type: "text";
|
|
531
531
|
};
|
|
532
|
-
zodDbSchema:
|
|
533
|
-
zodClientSchema:
|
|
532
|
+
zodDbSchema: any;
|
|
533
|
+
zodClientSchema: ClientType;
|
|
534
534
|
jsonSchema: any;
|
|
535
535
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
536
536
|
transform: (transforms: {
|
|
537
|
-
toClient: (dbValue: z.infer<
|
|
538
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
537
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
538
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
539
539
|
}) => {
|
|
540
540
|
sql: {
|
|
541
541
|
nullable?: boolean;
|
|
@@ -544,12 +544,12 @@ export declare const shape: {
|
|
|
544
544
|
field?: string;
|
|
545
545
|
type: "text";
|
|
546
546
|
};
|
|
547
|
-
zodDbSchema:
|
|
548
|
-
zodClientSchema:
|
|
547
|
+
zodDbSchema: any;
|
|
548
|
+
zodClientSchema: ClientType;
|
|
549
549
|
jsonSchema: any;
|
|
550
550
|
defaultValue: DefaultValue;
|
|
551
|
-
toClient: (dbValue: z.infer<
|
|
552
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
551
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
552
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
553
553
|
transforms: {
|
|
554
554
|
toClient: string;
|
|
555
555
|
toDb: string;
|
|
@@ -568,7 +568,7 @@ export declare const shape: {
|
|
|
568
568
|
};
|
|
569
569
|
dbType: ServerType;
|
|
570
570
|
zodDbSchema: ServerType;
|
|
571
|
-
zodClientSchema:
|
|
571
|
+
zodClientSchema: z.ZodString;
|
|
572
572
|
jsonSchema: JsonSchema7Type & {
|
|
573
573
|
$schema?: string | undefined;
|
|
574
574
|
definitions?: {
|
|
@@ -577,7 +577,7 @@ export declare const shape: {
|
|
|
577
577
|
};
|
|
578
578
|
defaultValue: z.TypeOf<ServerType>;
|
|
579
579
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
580
|
-
zod: z.
|
|
580
|
+
zod: z.ZodString;
|
|
581
581
|
serverType?: ServerType;
|
|
582
582
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
583
583
|
sql: {
|
|
@@ -587,13 +587,13 @@ export declare const shape: {
|
|
|
587
587
|
field?: string;
|
|
588
588
|
type: "text";
|
|
589
589
|
};
|
|
590
|
-
zodDbSchema:
|
|
591
|
-
zodClientSchema:
|
|
590
|
+
zodDbSchema: any;
|
|
591
|
+
zodClientSchema: ClientType;
|
|
592
592
|
jsonSchema: any;
|
|
593
593
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
594
594
|
transform: (transforms: {
|
|
595
|
-
toClient: (dbValue: z.infer<
|
|
596
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
595
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
596
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
597
597
|
}) => {
|
|
598
598
|
sql: {
|
|
599
599
|
nullable?: boolean;
|
|
@@ -602,12 +602,12 @@ export declare const shape: {
|
|
|
602
602
|
field?: string;
|
|
603
603
|
type: "text";
|
|
604
604
|
};
|
|
605
|
-
zodDbSchema:
|
|
606
|
-
zodClientSchema:
|
|
605
|
+
zodDbSchema: any;
|
|
606
|
+
zodClientSchema: ClientType;
|
|
607
607
|
jsonSchema: any;
|
|
608
608
|
defaultValue: DefaultValue;
|
|
609
|
-
toClient: (dbValue: z.infer<
|
|
610
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
609
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
610
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
611
611
|
transforms: {
|
|
612
612
|
toClient: string;
|
|
613
613
|
toDb: string;
|
|
@@ -635,7 +635,7 @@ export declare const shape: {
|
|
|
635
635
|
};
|
|
636
636
|
defaultValue: string;
|
|
637
637
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
638
|
-
zod: z.
|
|
638
|
+
zod: z.ZodString;
|
|
639
639
|
serverType?: never;
|
|
640
640
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
641
641
|
sql: {
|
|
@@ -645,13 +645,13 @@ export declare const shape: {
|
|
|
645
645
|
field?: string;
|
|
646
646
|
type: "longtext";
|
|
647
647
|
};
|
|
648
|
-
zodDbSchema:
|
|
649
|
-
zodClientSchema:
|
|
648
|
+
zodDbSchema: any;
|
|
649
|
+
zodClientSchema: ClientType;
|
|
650
650
|
jsonSchema: any;
|
|
651
651
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
652
652
|
transform: (transforms: {
|
|
653
|
-
toClient: (dbValue: z.infer<
|
|
654
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
653
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
654
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
655
655
|
}) => {
|
|
656
656
|
sql: {
|
|
657
657
|
nullable?: boolean;
|
|
@@ -660,12 +660,12 @@ export declare const shape: {
|
|
|
660
660
|
field?: string;
|
|
661
661
|
type: "longtext";
|
|
662
662
|
};
|
|
663
|
-
zodDbSchema:
|
|
664
|
-
zodClientSchema:
|
|
663
|
+
zodDbSchema: any;
|
|
664
|
+
zodClientSchema: ClientType;
|
|
665
665
|
jsonSchema: any;
|
|
666
666
|
defaultValue: DefaultValue;
|
|
667
|
-
toClient: (dbValue: z.infer<
|
|
668
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
667
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
668
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
669
669
|
transforms: {
|
|
670
670
|
toClient: string;
|
|
671
671
|
toDb: string;
|
|
@@ -684,7 +684,7 @@ export declare const shape: {
|
|
|
684
684
|
};
|
|
685
685
|
dbType: ServerType;
|
|
686
686
|
zodDbSchema: ServerType;
|
|
687
|
-
zodClientSchema:
|
|
687
|
+
zodClientSchema: z.ZodString;
|
|
688
688
|
jsonSchema: JsonSchema7Type & {
|
|
689
689
|
$schema?: string | undefined;
|
|
690
690
|
definitions?: {
|
|
@@ -693,7 +693,7 @@ export declare const shape: {
|
|
|
693
693
|
};
|
|
694
694
|
defaultValue: z.TypeOf<ServerType>;
|
|
695
695
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
696
|
-
zod: z.
|
|
696
|
+
zod: z.ZodString;
|
|
697
697
|
serverType?: ServerType;
|
|
698
698
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
699
699
|
sql: {
|
|
@@ -703,13 +703,13 @@ export declare const shape: {
|
|
|
703
703
|
field?: string;
|
|
704
704
|
type: "longtext";
|
|
705
705
|
};
|
|
706
|
-
zodDbSchema:
|
|
707
|
-
zodClientSchema:
|
|
706
|
+
zodDbSchema: any;
|
|
707
|
+
zodClientSchema: ClientType;
|
|
708
708
|
jsonSchema: any;
|
|
709
709
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
710
710
|
transform: (transforms: {
|
|
711
|
-
toClient: (dbValue: z.infer<
|
|
712
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
711
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
712
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
713
713
|
}) => {
|
|
714
714
|
sql: {
|
|
715
715
|
nullable?: boolean;
|
|
@@ -718,12 +718,12 @@ export declare const shape: {
|
|
|
718
718
|
field?: string;
|
|
719
719
|
type: "longtext";
|
|
720
720
|
};
|
|
721
|
-
zodDbSchema:
|
|
722
|
-
zodClientSchema:
|
|
721
|
+
zodDbSchema: any;
|
|
722
|
+
zodClientSchema: ClientType;
|
|
723
723
|
jsonSchema: any;
|
|
724
724
|
defaultValue: DefaultValue;
|
|
725
|
-
toClient: (dbValue: z.infer<
|
|
726
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
725
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
726
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
727
727
|
transforms: {
|
|
728
728
|
toClient: string;
|
|
729
729
|
toDb: string;
|
|
@@ -751,7 +751,7 @@ export declare const shape: {
|
|
|
751
751
|
};
|
|
752
752
|
defaultValue: boolean;
|
|
753
753
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
754
|
-
zod: z.
|
|
754
|
+
zod: z.ZodBoolean;
|
|
755
755
|
serverType?: never;
|
|
756
756
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
757
757
|
sql: {
|
|
@@ -761,13 +761,13 @@ export declare const shape: {
|
|
|
761
761
|
default?: boolean;
|
|
762
762
|
type: "boolean";
|
|
763
763
|
};
|
|
764
|
-
zodDbSchema:
|
|
765
|
-
zodClientSchema:
|
|
764
|
+
zodDbSchema: any;
|
|
765
|
+
zodClientSchema: ClientType;
|
|
766
766
|
jsonSchema: any;
|
|
767
767
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
768
768
|
transform: (transforms: {
|
|
769
|
-
toClient: (dbValue: z.infer<
|
|
770
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
769
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
770
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
771
771
|
}) => {
|
|
772
772
|
sql: {
|
|
773
773
|
nullable?: boolean;
|
|
@@ -776,12 +776,12 @@ export declare const shape: {
|
|
|
776
776
|
default?: boolean;
|
|
777
777
|
type: "boolean";
|
|
778
778
|
};
|
|
779
|
-
zodDbSchema:
|
|
780
|
-
zodClientSchema:
|
|
779
|
+
zodDbSchema: any;
|
|
780
|
+
zodClientSchema: ClientType;
|
|
781
781
|
jsonSchema: any;
|
|
782
782
|
defaultValue: DefaultValue;
|
|
783
|
-
toClient: (dbValue: z.infer<
|
|
784
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
783
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
784
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
785
785
|
transforms: {
|
|
786
786
|
toClient: string;
|
|
787
787
|
toDb: string;
|
|
@@ -800,7 +800,7 @@ export declare const shape: {
|
|
|
800
800
|
};
|
|
801
801
|
dbType: ServerType;
|
|
802
802
|
zodDbSchema: ServerType;
|
|
803
|
-
zodClientSchema:
|
|
803
|
+
zodClientSchema: z.ZodBoolean;
|
|
804
804
|
jsonSchema: JsonSchema7Type & {
|
|
805
805
|
$schema?: string | undefined;
|
|
806
806
|
definitions?: {
|
|
@@ -809,7 +809,7 @@ export declare const shape: {
|
|
|
809
809
|
};
|
|
810
810
|
defaultValue: z.TypeOf<ServerType>;
|
|
811
811
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
812
|
-
zod: z.
|
|
812
|
+
zod: z.ZodBoolean;
|
|
813
813
|
serverType?: ServerType;
|
|
814
814
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
815
815
|
sql: {
|
|
@@ -819,13 +819,13 @@ export declare const shape: {
|
|
|
819
819
|
default?: boolean;
|
|
820
820
|
type: "boolean";
|
|
821
821
|
};
|
|
822
|
-
zodDbSchema:
|
|
823
|
-
zodClientSchema:
|
|
822
|
+
zodDbSchema: any;
|
|
823
|
+
zodClientSchema: ClientType;
|
|
824
824
|
jsonSchema: any;
|
|
825
825
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
826
826
|
transform: (transforms: {
|
|
827
|
-
toClient: (dbValue: z.infer<
|
|
828
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
827
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
828
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
829
829
|
}) => {
|
|
830
830
|
sql: {
|
|
831
831
|
nullable?: boolean;
|
|
@@ -834,12 +834,12 @@ export declare const shape: {
|
|
|
834
834
|
default?: boolean;
|
|
835
835
|
type: "boolean";
|
|
836
836
|
};
|
|
837
|
-
zodDbSchema:
|
|
838
|
-
zodClientSchema:
|
|
837
|
+
zodDbSchema: any;
|
|
838
|
+
zodClientSchema: ClientType;
|
|
839
839
|
jsonSchema: any;
|
|
840
840
|
defaultValue: DefaultValue;
|
|
841
|
-
toClient: (dbValue: z.infer<
|
|
842
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
841
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
842
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
843
843
|
transforms: {
|
|
844
844
|
toClient: string;
|
|
845
845
|
toDb: string;
|
|
@@ -867,7 +867,7 @@ export declare const shape: {
|
|
|
867
867
|
};
|
|
868
868
|
defaultValue: Date;
|
|
869
869
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
870
|
-
zod: z.
|
|
870
|
+
zod: z.ZodDate;
|
|
871
871
|
serverType?: never;
|
|
872
872
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
873
873
|
sql: {
|
|
@@ -877,13 +877,13 @@ export declare const shape: {
|
|
|
877
877
|
field?: string;
|
|
878
878
|
type: "date";
|
|
879
879
|
};
|
|
880
|
-
zodDbSchema:
|
|
881
|
-
zodClientSchema:
|
|
880
|
+
zodDbSchema: any;
|
|
881
|
+
zodClientSchema: ClientType;
|
|
882
882
|
jsonSchema: any;
|
|
883
883
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
884
884
|
transform: (transforms: {
|
|
885
|
-
toClient: (dbValue: z.infer<
|
|
886
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
885
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
886
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
887
887
|
}) => {
|
|
888
888
|
sql: {
|
|
889
889
|
nullable?: boolean;
|
|
@@ -892,12 +892,12 @@ export declare const shape: {
|
|
|
892
892
|
field?: string;
|
|
893
893
|
type: "date";
|
|
894
894
|
};
|
|
895
|
-
zodDbSchema:
|
|
896
|
-
zodClientSchema:
|
|
895
|
+
zodDbSchema: any;
|
|
896
|
+
zodClientSchema: ClientType;
|
|
897
897
|
jsonSchema: any;
|
|
898
898
|
defaultValue: DefaultValue;
|
|
899
|
-
toClient: (dbValue: z.infer<
|
|
900
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
899
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
900
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
901
901
|
transforms: {
|
|
902
902
|
toClient: string;
|
|
903
903
|
toDb: string;
|
|
@@ -916,7 +916,7 @@ export declare const shape: {
|
|
|
916
916
|
};
|
|
917
917
|
dbType: ServerType;
|
|
918
918
|
zodDbSchema: ServerType;
|
|
919
|
-
zodClientSchema:
|
|
919
|
+
zodClientSchema: z.ZodDate;
|
|
920
920
|
jsonSchema: JsonSchema7Type & {
|
|
921
921
|
$schema?: string | undefined;
|
|
922
922
|
definitions?: {
|
|
@@ -925,7 +925,7 @@ export declare const shape: {
|
|
|
925
925
|
};
|
|
926
926
|
defaultValue: z.TypeOf<ServerType>;
|
|
927
927
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
928
|
-
zod: z.
|
|
928
|
+
zod: z.ZodDate;
|
|
929
929
|
serverType?: ServerType;
|
|
930
930
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
931
931
|
sql: {
|
|
@@ -935,13 +935,13 @@ export declare const shape: {
|
|
|
935
935
|
field?: string;
|
|
936
936
|
type: "date";
|
|
937
937
|
};
|
|
938
|
-
zodDbSchema:
|
|
939
|
-
zodClientSchema:
|
|
938
|
+
zodDbSchema: any;
|
|
939
|
+
zodClientSchema: ClientType;
|
|
940
940
|
jsonSchema: any;
|
|
941
941
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
942
942
|
transform: (transforms: {
|
|
943
|
-
toClient: (dbValue: z.infer<
|
|
944
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
943
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
944
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
945
945
|
}) => {
|
|
946
946
|
sql: {
|
|
947
947
|
nullable?: boolean;
|
|
@@ -950,12 +950,12 @@ export declare const shape: {
|
|
|
950
950
|
field?: string;
|
|
951
951
|
type: "date";
|
|
952
952
|
};
|
|
953
|
-
zodDbSchema:
|
|
954
|
-
zodClientSchema:
|
|
953
|
+
zodDbSchema: any;
|
|
954
|
+
zodClientSchema: ClientType;
|
|
955
955
|
jsonSchema: any;
|
|
956
956
|
defaultValue: DefaultValue;
|
|
957
|
-
toClient: (dbValue: z.infer<
|
|
958
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
957
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
958
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
959
959
|
transforms: {
|
|
960
960
|
toClient: string;
|
|
961
961
|
toDb: string;
|
|
@@ -983,7 +983,7 @@ export declare const shape: {
|
|
|
983
983
|
};
|
|
984
984
|
defaultValue: Date;
|
|
985
985
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
986
|
-
zod: z.
|
|
986
|
+
zod: z.ZodDate;
|
|
987
987
|
serverType?: never;
|
|
988
988
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
989
989
|
sql: {
|
|
@@ -993,13 +993,13 @@ export declare const shape: {
|
|
|
993
993
|
field?: string;
|
|
994
994
|
type: "datetime";
|
|
995
995
|
};
|
|
996
|
-
zodDbSchema:
|
|
997
|
-
zodClientSchema:
|
|
996
|
+
zodDbSchema: any;
|
|
997
|
+
zodClientSchema: ClientType;
|
|
998
998
|
jsonSchema: any;
|
|
999
999
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
1000
1000
|
transform: (transforms: {
|
|
1001
|
-
toClient: (dbValue: z.infer<
|
|
1002
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1001
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1002
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1003
1003
|
}) => {
|
|
1004
1004
|
sql: {
|
|
1005
1005
|
nullable?: boolean;
|
|
@@ -1008,12 +1008,12 @@ export declare const shape: {
|
|
|
1008
1008
|
field?: string;
|
|
1009
1009
|
type: "datetime";
|
|
1010
1010
|
};
|
|
1011
|
-
zodDbSchema:
|
|
1012
|
-
zodClientSchema:
|
|
1011
|
+
zodDbSchema: any;
|
|
1012
|
+
zodClientSchema: ClientType;
|
|
1013
1013
|
jsonSchema: any;
|
|
1014
1014
|
defaultValue: DefaultValue;
|
|
1015
|
-
toClient: (dbValue: z.infer<
|
|
1016
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1015
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1016
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1017
1017
|
transforms: {
|
|
1018
1018
|
toClient: string;
|
|
1019
1019
|
toDb: string;
|
|
@@ -1032,7 +1032,7 @@ export declare const shape: {
|
|
|
1032
1032
|
};
|
|
1033
1033
|
dbType: ServerType;
|
|
1034
1034
|
zodDbSchema: ServerType;
|
|
1035
|
-
zodClientSchema:
|
|
1035
|
+
zodClientSchema: z.ZodDate;
|
|
1036
1036
|
jsonSchema: JsonSchema7Type & {
|
|
1037
1037
|
$schema?: string | undefined;
|
|
1038
1038
|
definitions?: {
|
|
@@ -1041,7 +1041,7 @@ export declare const shape: {
|
|
|
1041
1041
|
};
|
|
1042
1042
|
defaultValue: z.TypeOf<ServerType>;
|
|
1043
1043
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
1044
|
-
zod: z.
|
|
1044
|
+
zod: z.ZodDate;
|
|
1045
1045
|
serverType?: ServerType;
|
|
1046
1046
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
1047
1047
|
sql: {
|
|
@@ -1051,13 +1051,13 @@ export declare const shape: {
|
|
|
1051
1051
|
field?: string;
|
|
1052
1052
|
type: "datetime";
|
|
1053
1053
|
};
|
|
1054
|
-
zodDbSchema:
|
|
1055
|
-
zodClientSchema:
|
|
1054
|
+
zodDbSchema: any;
|
|
1055
|
+
zodClientSchema: ClientType;
|
|
1056
1056
|
jsonSchema: any;
|
|
1057
1057
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
1058
1058
|
transform: (transforms: {
|
|
1059
|
-
toClient: (dbValue: z.infer<
|
|
1060
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1059
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1060
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1061
1061
|
}) => {
|
|
1062
1062
|
sql: {
|
|
1063
1063
|
nullable?: boolean;
|
|
@@ -1066,12 +1066,12 @@ export declare const shape: {
|
|
|
1066
1066
|
field?: string;
|
|
1067
1067
|
type: "datetime";
|
|
1068
1068
|
};
|
|
1069
|
-
zodDbSchema:
|
|
1070
|
-
zodClientSchema:
|
|
1069
|
+
zodDbSchema: any;
|
|
1070
|
+
zodClientSchema: ClientType;
|
|
1071
1071
|
jsonSchema: any;
|
|
1072
1072
|
defaultValue: DefaultValue;
|
|
1073
|
-
toClient: (dbValue: z.infer<
|
|
1074
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1073
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1074
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1075
1075
|
transforms: {
|
|
1076
1076
|
toClient: string;
|
|
1077
1077
|
toDb: string;
|
|
@@ -1093,25 +1093,25 @@ export declare const shape: {
|
|
|
1093
1093
|
};
|
|
1094
1094
|
defaultValue: SQLToDefaultType<T>;
|
|
1095
1095
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
1096
|
-
zod:
|
|
1096
|
+
zod: SQLToZodType<T, true>;
|
|
1097
1097
|
serverType?: never;
|
|
1098
1098
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
1099
1099
|
sql: T;
|
|
1100
|
-
zodDbSchema:
|
|
1101
|
-
zodClientSchema:
|
|
1100
|
+
zodDbSchema: any;
|
|
1101
|
+
zodClientSchema: ClientType;
|
|
1102
1102
|
jsonSchema: any;
|
|
1103
1103
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
1104
1104
|
transform: (transforms: {
|
|
1105
|
-
toClient: (dbValue: z.infer<
|
|
1106
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1105
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1106
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1107
1107
|
}) => {
|
|
1108
1108
|
sql: T;
|
|
1109
|
-
zodDbSchema:
|
|
1110
|
-
zodClientSchema:
|
|
1109
|
+
zodDbSchema: any;
|
|
1110
|
+
zodClientSchema: ClientType;
|
|
1111
1111
|
jsonSchema: any;
|
|
1112
1112
|
defaultValue: DefaultValue;
|
|
1113
|
-
toClient: (dbValue: z.infer<
|
|
1114
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1113
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1114
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1115
1115
|
transforms: {
|
|
1116
1116
|
toClient: string;
|
|
1117
1117
|
toDb: string;
|
|
@@ -1124,7 +1124,7 @@ export declare const shape: {
|
|
|
1124
1124
|
sql: T;
|
|
1125
1125
|
dbType: ServerType;
|
|
1126
1126
|
zodDbSchema: ServerType;
|
|
1127
|
-
zodClientSchema:
|
|
1127
|
+
zodClientSchema: SQLToZodType<T, true>;
|
|
1128
1128
|
jsonSchema: JsonSchema7Type & {
|
|
1129
1129
|
$schema?: string | undefined;
|
|
1130
1130
|
definitions?: {
|
|
@@ -1133,25 +1133,25 @@ export declare const shape: {
|
|
|
1133
1133
|
};
|
|
1134
1134
|
defaultValue: z.infer<ServerType>;
|
|
1135
1135
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
1136
|
-
zod:
|
|
1136
|
+
zod: SQLToZodType<T, true>;
|
|
1137
1137
|
serverType?: ServerType;
|
|
1138
1138
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never) | undefined) => {
|
|
1139
1139
|
sql: T;
|
|
1140
|
-
zodDbSchema:
|
|
1141
|
-
zodClientSchema:
|
|
1140
|
+
zodDbSchema: any;
|
|
1141
|
+
zodClientSchema: ClientType;
|
|
1142
1142
|
jsonSchema: any;
|
|
1143
1143
|
defaultValue: DefaultValue | (DefaultValue extends Date ? CurrentTimestampConfig : never);
|
|
1144
1144
|
transform: (transforms: {
|
|
1145
|
-
toClient: (dbValue: z.infer<
|
|
1146
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1145
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1146
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1147
1147
|
}) => {
|
|
1148
1148
|
sql: T;
|
|
1149
|
-
zodDbSchema:
|
|
1150
|
-
zodClientSchema:
|
|
1149
|
+
zodDbSchema: any;
|
|
1150
|
+
zodClientSchema: ClientType;
|
|
1151
1151
|
jsonSchema: any;
|
|
1152
1152
|
defaultValue: DefaultValue;
|
|
1153
|
-
toClient: (dbValue: z.infer<
|
|
1154
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
1153
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
1154
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
1155
1155
|
transforms: {
|
|
1156
1156
|
toClient: string;
|
|
1157
1157
|
toDb: string;
|