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/example/user.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const userSchema: {
|
|
|
17
17
|
};
|
|
18
18
|
defaultValue: number;
|
|
19
19
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
20
|
-
zod: z.
|
|
20
|
+
zod: z.ZodString;
|
|
21
21
|
serverType?: never;
|
|
22
22
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
23
23
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -27,27 +27,27 @@ export declare const userSchema: {
|
|
|
27
27
|
type: "int";
|
|
28
28
|
pk: true;
|
|
29
29
|
};
|
|
30
|
-
zodDbSchema:
|
|
31
|
-
zodClientSchema:
|
|
30
|
+
zodDbSchema: any;
|
|
31
|
+
zodClientSchema: ClientType;
|
|
32
32
|
jsonSchema: any;
|
|
33
33
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
34
34
|
default: "CURRENT_TIMESTAMP";
|
|
35
35
|
defaultValue: Date;
|
|
36
36
|
} : never);
|
|
37
37
|
transform: (transforms: {
|
|
38
|
-
toClient: (dbValue: z.infer<
|
|
39
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
38
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
39
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
40
40
|
}) => {
|
|
41
41
|
sql: {
|
|
42
42
|
type: "int";
|
|
43
43
|
pk: true;
|
|
44
44
|
};
|
|
45
|
-
zodDbSchema:
|
|
46
|
-
zodClientSchema:
|
|
45
|
+
zodDbSchema: any;
|
|
46
|
+
zodClientSchema: ClientType;
|
|
47
47
|
jsonSchema: any;
|
|
48
48
|
defaultValue: DefaultValue;
|
|
49
|
-
toClient: (dbValue: z.infer<
|
|
50
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
49
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
50
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
51
51
|
transforms: {
|
|
52
52
|
toClient: string;
|
|
53
53
|
toDb: string;
|
|
@@ -63,7 +63,7 @@ export declare const userSchema: {
|
|
|
63
63
|
};
|
|
64
64
|
dbType: ServerType;
|
|
65
65
|
zodDbSchema: ServerType;
|
|
66
|
-
zodClientSchema:
|
|
66
|
+
zodClientSchema: z.ZodString;
|
|
67
67
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
68
68
|
$schema?: string | undefined;
|
|
69
69
|
definitions?: {
|
|
@@ -72,7 +72,7 @@ export declare const userSchema: {
|
|
|
72
72
|
};
|
|
73
73
|
defaultValue: z.TypeOf<ServerType>;
|
|
74
74
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
75
|
-
zod: z.
|
|
75
|
+
zod: z.ZodString;
|
|
76
76
|
serverType?: ServerType;
|
|
77
77
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
78
78
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -82,27 +82,27 @@ export declare const userSchema: {
|
|
|
82
82
|
type: "int";
|
|
83
83
|
pk: true;
|
|
84
84
|
};
|
|
85
|
-
zodDbSchema:
|
|
86
|
-
zodClientSchema:
|
|
85
|
+
zodDbSchema: any;
|
|
86
|
+
zodClientSchema: ClientType;
|
|
87
87
|
jsonSchema: any;
|
|
88
88
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
89
89
|
default: "CURRENT_TIMESTAMP";
|
|
90
90
|
defaultValue: Date;
|
|
91
91
|
} : never);
|
|
92
92
|
transform: (transforms: {
|
|
93
|
-
toClient: (dbValue: z.infer<
|
|
94
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
93
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
94
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
95
95
|
}) => {
|
|
96
96
|
sql: {
|
|
97
97
|
type: "int";
|
|
98
98
|
pk: true;
|
|
99
99
|
};
|
|
100
|
-
zodDbSchema:
|
|
101
|
-
zodClientSchema:
|
|
100
|
+
zodDbSchema: any;
|
|
101
|
+
zodClientSchema: ClientType;
|
|
102
102
|
jsonSchema: any;
|
|
103
103
|
defaultValue: DefaultValue;
|
|
104
|
-
toClient: (dbValue: z.infer<
|
|
105
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
104
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
105
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
106
106
|
transforms: {
|
|
107
107
|
toClient: string;
|
|
108
108
|
toDb: string;
|
|
@@ -127,7 +127,7 @@ export declare const userSchema: {
|
|
|
127
127
|
};
|
|
128
128
|
defaultValue: string;
|
|
129
129
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
130
|
-
zod: z.
|
|
130
|
+
zod: z.ZodString;
|
|
131
131
|
serverType?: z.ZodString;
|
|
132
132
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
133
133
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -137,27 +137,27 @@ export declare const userSchema: {
|
|
|
137
137
|
type: "varchar";
|
|
138
138
|
length: number;
|
|
139
139
|
};
|
|
140
|
-
zodDbSchema:
|
|
141
|
-
zodClientSchema:
|
|
140
|
+
zodDbSchema: any;
|
|
141
|
+
zodClientSchema: ClientType;
|
|
142
142
|
jsonSchema: any;
|
|
143
143
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
144
144
|
default: "CURRENT_TIMESTAMP";
|
|
145
145
|
defaultValue: Date;
|
|
146
146
|
} : never);
|
|
147
147
|
transform: (transforms: {
|
|
148
|
-
toClient: (dbValue: z.infer<
|
|
149
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
148
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
149
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
150
150
|
}) => {
|
|
151
151
|
sql: {
|
|
152
152
|
type: "varchar";
|
|
153
153
|
length: number;
|
|
154
154
|
};
|
|
155
|
-
zodDbSchema:
|
|
156
|
-
zodClientSchema:
|
|
155
|
+
zodDbSchema: any;
|
|
156
|
+
zodClientSchema: ClientType;
|
|
157
157
|
jsonSchema: any;
|
|
158
158
|
defaultValue: DefaultValue;
|
|
159
|
-
toClient: (dbValue: z.infer<
|
|
160
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
159
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
160
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
161
161
|
transforms: {
|
|
162
162
|
toClient: string;
|
|
163
163
|
toDb: string;
|
|
@@ -181,7 +181,7 @@ export declare const userSchema: {
|
|
|
181
181
|
};
|
|
182
182
|
defaultValue: string;
|
|
183
183
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
184
|
-
zod: z.
|
|
184
|
+
zod: z.ZodString;
|
|
185
185
|
serverType?: z.ZodString;
|
|
186
186
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
187
187
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -191,27 +191,27 @@ export declare const userSchema: {
|
|
|
191
191
|
type: "varchar";
|
|
192
192
|
length: number;
|
|
193
193
|
};
|
|
194
|
-
zodDbSchema:
|
|
195
|
-
zodClientSchema:
|
|
194
|
+
zodDbSchema: any;
|
|
195
|
+
zodClientSchema: ClientType;
|
|
196
196
|
jsonSchema: any;
|
|
197
197
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
198
198
|
default: "CURRENT_TIMESTAMP";
|
|
199
199
|
defaultValue: Date;
|
|
200
200
|
} : never);
|
|
201
201
|
transform: (transforms: {
|
|
202
|
-
toClient: (dbValue: z.infer<
|
|
203
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
202
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
203
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
204
204
|
}) => {
|
|
205
205
|
sql: {
|
|
206
206
|
type: "varchar";
|
|
207
207
|
length: number;
|
|
208
208
|
};
|
|
209
|
-
zodDbSchema:
|
|
210
|
-
zodClientSchema:
|
|
209
|
+
zodDbSchema: any;
|
|
210
|
+
zodClientSchema: ClientType;
|
|
211
211
|
jsonSchema: any;
|
|
212
212
|
defaultValue: DefaultValue;
|
|
213
|
-
toClient: (dbValue: z.infer<
|
|
214
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
213
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
214
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
215
215
|
transforms: {
|
|
216
216
|
toClient: string;
|
|
217
217
|
toDb: string;
|
|
@@ -235,7 +235,7 @@ export declare const userSchema: {
|
|
|
235
235
|
};
|
|
236
236
|
defaultValue: string;
|
|
237
237
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
238
|
-
zod: z.
|
|
238
|
+
zod: z.ZodString;
|
|
239
239
|
serverType?: z.ZodString;
|
|
240
240
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
241
241
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -245,27 +245,27 @@ export declare const userSchema: {
|
|
|
245
245
|
type: "varchar";
|
|
246
246
|
length: number;
|
|
247
247
|
};
|
|
248
|
-
zodDbSchema:
|
|
249
|
-
zodClientSchema:
|
|
248
|
+
zodDbSchema: any;
|
|
249
|
+
zodClientSchema: ClientType;
|
|
250
250
|
jsonSchema: any;
|
|
251
251
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
252
252
|
default: "CURRENT_TIMESTAMP";
|
|
253
253
|
defaultValue: Date;
|
|
254
254
|
} : never);
|
|
255
255
|
transform: (transforms: {
|
|
256
|
-
toClient: (dbValue: z.infer<
|
|
257
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
256
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
257
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
258
258
|
}) => {
|
|
259
259
|
sql: {
|
|
260
260
|
type: "varchar";
|
|
261
261
|
length: number;
|
|
262
262
|
};
|
|
263
|
-
zodDbSchema:
|
|
264
|
-
zodClientSchema:
|
|
263
|
+
zodDbSchema: any;
|
|
264
|
+
zodClientSchema: ClientType;
|
|
265
265
|
jsonSchema: any;
|
|
266
266
|
defaultValue: DefaultValue;
|
|
267
|
-
toClient: (dbValue: z.infer<
|
|
268
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
267
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
268
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
269
269
|
transforms: {
|
|
270
270
|
toClient: string;
|
|
271
271
|
toDb: string;
|
|
@@ -281,24 +281,24 @@ export declare const userSchema: {
|
|
|
281
281
|
type: "int";
|
|
282
282
|
pk: true;
|
|
283
283
|
};
|
|
284
|
-
zodDbSchema:
|
|
285
|
-
zodClientSchema: z.
|
|
284
|
+
zodDbSchema: any;
|
|
285
|
+
zodClientSchema: z.ZodString;
|
|
286
286
|
jsonSchema: any;
|
|
287
|
-
defaultValue:
|
|
287
|
+
defaultValue: string;
|
|
288
288
|
transform: (transforms: {
|
|
289
|
-
toClient: (dbValue: z.infer<
|
|
290
|
-
toDb: (clientValue:
|
|
289
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
290
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
291
291
|
}) => {
|
|
292
292
|
sql: {
|
|
293
293
|
type: "int";
|
|
294
294
|
pk: true;
|
|
295
295
|
};
|
|
296
|
-
zodDbSchema:
|
|
297
|
-
zodClientSchema: z.
|
|
296
|
+
zodDbSchema: any;
|
|
297
|
+
zodClientSchema: z.ZodString;
|
|
298
298
|
jsonSchema: any;
|
|
299
|
-
defaultValue:
|
|
300
|
-
toClient: (dbValue: z.infer<
|
|
301
|
-
toDb: (clientValue:
|
|
299
|
+
defaultValue: string;
|
|
300
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
301
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
302
302
|
transforms: {
|
|
303
303
|
toClient: string;
|
|
304
304
|
toDb: string;
|
|
@@ -320,7 +320,7 @@ export declare const userSchema: {
|
|
|
320
320
|
};
|
|
321
321
|
defaultValue: string;
|
|
322
322
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
323
|
-
zod: z.
|
|
323
|
+
zod: z.ZodString;
|
|
324
324
|
serverType?: never;
|
|
325
325
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
326
326
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -330,27 +330,27 @@ export declare const userSchema: {
|
|
|
330
330
|
type: "varchar";
|
|
331
331
|
length: number;
|
|
332
332
|
};
|
|
333
|
-
zodDbSchema:
|
|
334
|
-
zodClientSchema:
|
|
333
|
+
zodDbSchema: any;
|
|
334
|
+
zodClientSchema: ClientType;
|
|
335
335
|
jsonSchema: any;
|
|
336
336
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
337
337
|
default: "CURRENT_TIMESTAMP";
|
|
338
338
|
defaultValue: Date;
|
|
339
339
|
} : never);
|
|
340
340
|
transform: (transforms: {
|
|
341
|
-
toClient: (dbValue: z.infer<
|
|
342
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
341
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
342
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
343
343
|
}) => {
|
|
344
344
|
sql: {
|
|
345
345
|
type: "varchar";
|
|
346
346
|
length: number;
|
|
347
347
|
};
|
|
348
|
-
zodDbSchema:
|
|
349
|
-
zodClientSchema:
|
|
348
|
+
zodDbSchema: any;
|
|
349
|
+
zodClientSchema: ClientType;
|
|
350
350
|
jsonSchema: any;
|
|
351
351
|
defaultValue: DefaultValue;
|
|
352
|
-
toClient: (dbValue: z.infer<
|
|
353
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
352
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
353
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
354
354
|
transforms: {
|
|
355
355
|
toClient: string;
|
|
356
356
|
toDb: string;
|
|
@@ -366,7 +366,7 @@ export declare const userSchema: {
|
|
|
366
366
|
};
|
|
367
367
|
dbType: ServerType;
|
|
368
368
|
zodDbSchema: ServerType;
|
|
369
|
-
zodClientSchema:
|
|
369
|
+
zodClientSchema: z.ZodString;
|
|
370
370
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
371
371
|
$schema?: string | undefined;
|
|
372
372
|
definitions?: {
|
|
@@ -375,7 +375,7 @@ export declare const userSchema: {
|
|
|
375
375
|
};
|
|
376
376
|
defaultValue: z.TypeOf<ServerType>;
|
|
377
377
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
378
|
-
zod: z.
|
|
378
|
+
zod: z.ZodString;
|
|
379
379
|
serverType?: ServerType;
|
|
380
380
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
381
381
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -385,27 +385,27 @@ export declare const userSchema: {
|
|
|
385
385
|
type: "varchar";
|
|
386
386
|
length: number;
|
|
387
387
|
};
|
|
388
|
-
zodDbSchema:
|
|
389
|
-
zodClientSchema:
|
|
388
|
+
zodDbSchema: any;
|
|
389
|
+
zodClientSchema: ClientType;
|
|
390
390
|
jsonSchema: any;
|
|
391
391
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
392
392
|
default: "CURRENT_TIMESTAMP";
|
|
393
393
|
defaultValue: Date;
|
|
394
394
|
} : never);
|
|
395
395
|
transform: (transforms: {
|
|
396
|
-
toClient: (dbValue: z.infer<
|
|
397
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
396
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
397
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
398
398
|
}) => {
|
|
399
399
|
sql: {
|
|
400
400
|
type: "varchar";
|
|
401
401
|
length: number;
|
|
402
402
|
};
|
|
403
|
-
zodDbSchema:
|
|
404
|
-
zodClientSchema:
|
|
403
|
+
zodDbSchema: any;
|
|
404
|
+
zodClientSchema: ClientType;
|
|
405
405
|
jsonSchema: any;
|
|
406
406
|
defaultValue: DefaultValue;
|
|
407
|
-
toClient: (dbValue: z.infer<
|
|
408
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
407
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
408
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
409
409
|
transforms: {
|
|
410
410
|
toClient: string;
|
|
411
411
|
toDb: string;
|
|
@@ -417,115 +417,38 @@ export declare const userSchema: {
|
|
|
417
417
|
sql: {
|
|
418
418
|
type: "int";
|
|
419
419
|
};
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
};
|
|
429
|
-
defaultValue: number;
|
|
430
|
-
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
431
|
-
zod: z.ZodTypeAny;
|
|
432
|
-
serverType?: never;
|
|
433
|
-
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
434
|
-
default: "CURRENT_TIMESTAMP";
|
|
435
|
-
defaultValue: Date;
|
|
436
|
-
} : never) | undefined) => {
|
|
420
|
+
zodDbSchema: any;
|
|
421
|
+
zodClientSchema: z.ZodString;
|
|
422
|
+
jsonSchema: any;
|
|
423
|
+
defaultValue: string;
|
|
424
|
+
transform: (transforms: {
|
|
425
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
426
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
427
|
+
}) => {
|
|
437
428
|
sql: {
|
|
438
429
|
type: "int";
|
|
439
430
|
};
|
|
440
|
-
zodDbSchema:
|
|
441
|
-
zodClientSchema: z.
|
|
431
|
+
zodDbSchema: any;
|
|
432
|
+
zodClientSchema: z.ZodString;
|
|
442
433
|
jsonSchema: any;
|
|
443
|
-
defaultValue:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
450
|
-
}) => {
|
|
451
|
-
sql: {
|
|
452
|
-
type: "int";
|
|
453
|
-
};
|
|
454
|
-
zodDbSchema: z.ZodTypeAny;
|
|
455
|
-
zodClientSchema: z.ZodTypeAny;
|
|
456
|
-
jsonSchema: any;
|
|
457
|
-
defaultValue: DefaultValue;
|
|
458
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
459
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
460
|
-
transforms: {
|
|
461
|
-
toClient: string;
|
|
462
|
-
toDb: string;
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
db: <ServerType extends z.ZodTypeAny>(assert: (tools: {
|
|
467
|
-
zod: z.ZodNumber;
|
|
468
|
-
}) => ServerType) => {
|
|
469
|
-
sql: {
|
|
470
|
-
type: "int";
|
|
471
|
-
};
|
|
472
|
-
dbType: ServerType;
|
|
473
|
-
zodDbSchema: ServerType;
|
|
474
|
-
zodClientSchema: ServerType;
|
|
475
|
-
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
476
|
-
$schema?: string | undefined;
|
|
477
|
-
definitions?: {
|
|
478
|
-
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
479
|
-
} | undefined;
|
|
480
|
-
};
|
|
481
|
-
defaultValue: z.TypeOf<ServerType>;
|
|
482
|
-
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
483
|
-
zod: z.ZodTypeAny;
|
|
484
|
-
serverType?: ServerType;
|
|
485
|
-
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
486
|
-
default: "CURRENT_TIMESTAMP";
|
|
487
|
-
defaultValue: Date;
|
|
488
|
-
} : never) | undefined) => {
|
|
489
|
-
sql: {
|
|
490
|
-
type: "int";
|
|
491
|
-
};
|
|
492
|
-
zodDbSchema: z.ZodTypeAny;
|
|
493
|
-
zodClientSchema: z.ZodTypeAny;
|
|
494
|
-
jsonSchema: any;
|
|
495
|
-
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
496
|
-
default: "CURRENT_TIMESTAMP";
|
|
497
|
-
defaultValue: Date;
|
|
498
|
-
} : never);
|
|
499
|
-
transform: (transforms: {
|
|
500
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
501
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
502
|
-
}) => {
|
|
503
|
-
sql: {
|
|
504
|
-
type: "int";
|
|
505
|
-
};
|
|
506
|
-
zodDbSchema: z.ZodTypeAny;
|
|
507
|
-
zodClientSchema: z.ZodTypeAny;
|
|
508
|
-
jsonSchema: any;
|
|
509
|
-
defaultValue: DefaultValue;
|
|
510
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
511
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
512
|
-
transforms: {
|
|
513
|
-
toClient: string;
|
|
514
|
-
toDb: string;
|
|
515
|
-
};
|
|
516
|
-
};
|
|
434
|
+
defaultValue: string;
|
|
435
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
436
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
437
|
+
transforms: {
|
|
438
|
+
toClient: string;
|
|
439
|
+
toDb: string;
|
|
517
440
|
};
|
|
518
441
|
};
|
|
519
442
|
} | {
|
|
520
443
|
sql: {
|
|
521
444
|
type: "text";
|
|
522
445
|
};
|
|
523
|
-
zodDbSchema:
|
|
524
|
-
zodClientSchema: z.
|
|
446
|
+
zodDbSchema: any;
|
|
447
|
+
zodClientSchema: z.ZodArray<z.ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
525
448
|
jsonSchema: any;
|
|
526
449
|
defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
527
|
-
toClient: (dbValue: z.infer<
|
|
528
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => z.infer<
|
|
450
|
+
toClient: (dbValue: z.infer<any>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
451
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => z.infer<any>;
|
|
529
452
|
transforms: {
|
|
530
453
|
toClient: string;
|
|
531
454
|
toDb: string;
|
|
@@ -534,12 +457,12 @@ export declare const userSchema: {
|
|
|
534
457
|
sql: {
|
|
535
458
|
type: "int";
|
|
536
459
|
};
|
|
537
|
-
zodDbSchema:
|
|
538
|
-
zodClientSchema: z.
|
|
460
|
+
zodDbSchema: any;
|
|
461
|
+
zodClientSchema: z.ZodBoolean;
|
|
539
462
|
jsonSchema: any;
|
|
540
463
|
defaultValue: boolean;
|
|
541
|
-
toClient: (dbValue: z.infer<
|
|
542
|
-
toDb: (clientValue: boolean) => z.infer<
|
|
464
|
+
toClient: (dbValue: z.infer<any>) => boolean;
|
|
465
|
+
toDb: (clientValue: boolean) => z.infer<any>;
|
|
543
466
|
transforms: {
|
|
544
467
|
toClient: string;
|
|
545
468
|
toDb: string;
|
|
@@ -552,24 +475,24 @@ export declare const userSchema: {
|
|
|
552
475
|
type: "int";
|
|
553
476
|
pk: true;
|
|
554
477
|
};
|
|
555
|
-
zodDbSchema:
|
|
556
|
-
zodClientSchema: z.
|
|
478
|
+
zodDbSchema: any;
|
|
479
|
+
zodClientSchema: z.ZodString;
|
|
557
480
|
jsonSchema: any;
|
|
558
|
-
defaultValue:
|
|
481
|
+
defaultValue: string;
|
|
559
482
|
transform: (transforms: {
|
|
560
|
-
toClient: (dbValue: z.infer<
|
|
561
|
-
toDb: (clientValue:
|
|
483
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
484
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
562
485
|
}) => {
|
|
563
486
|
sql: {
|
|
564
487
|
type: "int";
|
|
565
488
|
pk: true;
|
|
566
489
|
};
|
|
567
|
-
zodDbSchema:
|
|
568
|
-
zodClientSchema: z.
|
|
490
|
+
zodDbSchema: any;
|
|
491
|
+
zodClientSchema: z.ZodString;
|
|
569
492
|
jsonSchema: any;
|
|
570
|
-
defaultValue:
|
|
571
|
-
toClient: (dbValue: z.infer<
|
|
572
|
-
toDb: (clientValue:
|
|
493
|
+
defaultValue: string;
|
|
494
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
495
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
573
496
|
transforms: {
|
|
574
497
|
toClient: string;
|
|
575
498
|
toDb: string;
|
|
@@ -592,7 +515,7 @@ export declare const userSchema: {
|
|
|
592
515
|
};
|
|
593
516
|
defaultValue: string;
|
|
594
517
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
595
|
-
zod: z.
|
|
518
|
+
zod: z.ZodString;
|
|
596
519
|
serverType?: never;
|
|
597
520
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
598
521
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -602,27 +525,27 @@ export declare const userSchema: {
|
|
|
602
525
|
type: "varchar";
|
|
603
526
|
length: number;
|
|
604
527
|
};
|
|
605
|
-
zodDbSchema:
|
|
606
|
-
zodClientSchema:
|
|
528
|
+
zodDbSchema: any;
|
|
529
|
+
zodClientSchema: ClientType;
|
|
607
530
|
jsonSchema: any;
|
|
608
531
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
609
532
|
default: "CURRENT_TIMESTAMP";
|
|
610
533
|
defaultValue: Date;
|
|
611
534
|
} : never);
|
|
612
535
|
transform: (transforms: {
|
|
613
|
-
toClient: (dbValue: z.infer<
|
|
614
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
536
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
537
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
615
538
|
}) => {
|
|
616
539
|
sql: {
|
|
617
540
|
type: "varchar";
|
|
618
541
|
length: number;
|
|
619
542
|
};
|
|
620
|
-
zodDbSchema:
|
|
621
|
-
zodClientSchema:
|
|
543
|
+
zodDbSchema: any;
|
|
544
|
+
zodClientSchema: ClientType;
|
|
622
545
|
jsonSchema: any;
|
|
623
546
|
defaultValue: DefaultValue;
|
|
624
|
-
toClient: (dbValue: z.infer<
|
|
625
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
547
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
548
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
626
549
|
transforms: {
|
|
627
550
|
toClient: string;
|
|
628
551
|
toDb: string;
|
|
@@ -638,7 +561,7 @@ export declare const userSchema: {
|
|
|
638
561
|
};
|
|
639
562
|
dbType: ServerType;
|
|
640
563
|
zodDbSchema: ServerType;
|
|
641
|
-
zodClientSchema:
|
|
564
|
+
zodClientSchema: z.ZodString;
|
|
642
565
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
643
566
|
$schema?: string | undefined;
|
|
644
567
|
definitions?: {
|
|
@@ -647,7 +570,7 @@ export declare const userSchema: {
|
|
|
647
570
|
};
|
|
648
571
|
defaultValue: z.TypeOf<ServerType>;
|
|
649
572
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
650
|
-
zod: z.
|
|
573
|
+
zod: z.ZodString;
|
|
651
574
|
serverType?: ServerType;
|
|
652
575
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
653
576
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -657,27 +580,27 @@ export declare const userSchema: {
|
|
|
657
580
|
type: "varchar";
|
|
658
581
|
length: number;
|
|
659
582
|
};
|
|
660
|
-
zodDbSchema:
|
|
661
|
-
zodClientSchema:
|
|
583
|
+
zodDbSchema: any;
|
|
584
|
+
zodClientSchema: ClientType;
|
|
662
585
|
jsonSchema: any;
|
|
663
586
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
664
587
|
default: "CURRENT_TIMESTAMP";
|
|
665
588
|
defaultValue: Date;
|
|
666
589
|
} : never);
|
|
667
590
|
transform: (transforms: {
|
|
668
|
-
toClient: (dbValue: z.infer<
|
|
669
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
591
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
592
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
670
593
|
}) => {
|
|
671
594
|
sql: {
|
|
672
595
|
type: "varchar";
|
|
673
596
|
length: number;
|
|
674
597
|
};
|
|
675
|
-
zodDbSchema:
|
|
676
|
-
zodClientSchema:
|
|
598
|
+
zodDbSchema: any;
|
|
599
|
+
zodClientSchema: ClientType;
|
|
677
600
|
jsonSchema: any;
|
|
678
601
|
defaultValue: DefaultValue;
|
|
679
|
-
toClient: (dbValue: z.infer<
|
|
680
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
602
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
603
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
681
604
|
transforms: {
|
|
682
605
|
toClient: string;
|
|
683
606
|
toDb: string;
|
|
@@ -690,103 +613,26 @@ export declare const userSchema: {
|
|
|
690
613
|
sql: {
|
|
691
614
|
type: "int";
|
|
692
615
|
};
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
};
|
|
702
|
-
defaultValue: number;
|
|
703
|
-
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
704
|
-
zod: z.ZodTypeAny;
|
|
705
|
-
serverType?: never;
|
|
706
|
-
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
707
|
-
default: "CURRENT_TIMESTAMP";
|
|
708
|
-
defaultValue: Date;
|
|
709
|
-
} : never) | undefined) => {
|
|
616
|
+
zodDbSchema: any;
|
|
617
|
+
zodClientSchema: z.ZodString;
|
|
618
|
+
jsonSchema: any;
|
|
619
|
+
defaultValue: string;
|
|
620
|
+
transform: (transforms: {
|
|
621
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
622
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
623
|
+
}) => {
|
|
710
624
|
sql: {
|
|
711
625
|
type: "int";
|
|
712
626
|
};
|
|
713
|
-
zodDbSchema:
|
|
714
|
-
zodClientSchema: z.
|
|
627
|
+
zodDbSchema: any;
|
|
628
|
+
zodClientSchema: z.ZodString;
|
|
715
629
|
jsonSchema: any;
|
|
716
|
-
defaultValue:
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
723
|
-
}) => {
|
|
724
|
-
sql: {
|
|
725
|
-
type: "int";
|
|
726
|
-
};
|
|
727
|
-
zodDbSchema: z.ZodTypeAny;
|
|
728
|
-
zodClientSchema: z.ZodTypeAny;
|
|
729
|
-
jsonSchema: any;
|
|
730
|
-
defaultValue: DefaultValue;
|
|
731
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
732
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
733
|
-
transforms: {
|
|
734
|
-
toClient: string;
|
|
735
|
-
toDb: string;
|
|
736
|
-
};
|
|
737
|
-
};
|
|
738
|
-
};
|
|
739
|
-
db: <ServerType extends z.ZodTypeAny>(assert: (tools: {
|
|
740
|
-
zod: z.ZodNumber;
|
|
741
|
-
}) => ServerType) => {
|
|
742
|
-
sql: {
|
|
743
|
-
type: "int";
|
|
744
|
-
};
|
|
745
|
-
dbType: ServerType;
|
|
746
|
-
zodDbSchema: ServerType;
|
|
747
|
-
zodClientSchema: ServerType;
|
|
748
|
-
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
749
|
-
$schema?: string | undefined;
|
|
750
|
-
definitions?: {
|
|
751
|
-
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
752
|
-
} | undefined;
|
|
753
|
-
};
|
|
754
|
-
defaultValue: z.TypeOf<ServerType>;
|
|
755
|
-
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
756
|
-
zod: z.ZodTypeAny;
|
|
757
|
-
serverType?: ServerType;
|
|
758
|
-
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
759
|
-
default: "CURRENT_TIMESTAMP";
|
|
760
|
-
defaultValue: Date;
|
|
761
|
-
} : never) | undefined) => {
|
|
762
|
-
sql: {
|
|
763
|
-
type: "int";
|
|
764
|
-
};
|
|
765
|
-
zodDbSchema: z.ZodTypeAny;
|
|
766
|
-
zodClientSchema: z.ZodTypeAny;
|
|
767
|
-
jsonSchema: any;
|
|
768
|
-
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
769
|
-
default: "CURRENT_TIMESTAMP";
|
|
770
|
-
defaultValue: Date;
|
|
771
|
-
} : never);
|
|
772
|
-
transform: (transforms: {
|
|
773
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
774
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
775
|
-
}) => {
|
|
776
|
-
sql: {
|
|
777
|
-
type: "int";
|
|
778
|
-
};
|
|
779
|
-
zodDbSchema: z.ZodTypeAny;
|
|
780
|
-
zodClientSchema: z.ZodTypeAny;
|
|
781
|
-
jsonSchema: any;
|
|
782
|
-
defaultValue: DefaultValue;
|
|
783
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
784
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
785
|
-
transforms: {
|
|
786
|
-
toClient: string;
|
|
787
|
-
toDb: string;
|
|
788
|
-
};
|
|
789
|
-
};
|
|
630
|
+
defaultValue: string;
|
|
631
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
632
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
633
|
+
transforms: {
|
|
634
|
+
toClient: string;
|
|
635
|
+
toDb: string;
|
|
790
636
|
};
|
|
791
637
|
};
|
|
792
638
|
};
|
|
@@ -794,12 +640,12 @@ export declare const userSchema: {
|
|
|
794
640
|
sql: {
|
|
795
641
|
type: "text";
|
|
796
642
|
};
|
|
797
|
-
zodDbSchema:
|
|
798
|
-
zodClientSchema: z.
|
|
643
|
+
zodDbSchema: any;
|
|
644
|
+
zodClientSchema: z.ZodArray<z.ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
799
645
|
jsonSchema: any;
|
|
800
646
|
defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
801
|
-
toClient: (dbValue: z.infer<
|
|
802
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => z.infer<
|
|
647
|
+
toClient: (dbValue: z.infer<any>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
648
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => z.infer<any>;
|
|
803
649
|
transforms: {
|
|
804
650
|
toClient: string;
|
|
805
651
|
toDb: string;
|
|
@@ -809,12 +655,12 @@ export declare const userSchema: {
|
|
|
809
655
|
sql: {
|
|
810
656
|
type: "int";
|
|
811
657
|
};
|
|
812
|
-
zodDbSchema:
|
|
813
|
-
zodClientSchema: z.
|
|
658
|
+
zodDbSchema: any;
|
|
659
|
+
zodClientSchema: z.ZodBoolean;
|
|
814
660
|
jsonSchema: any;
|
|
815
661
|
defaultValue: boolean;
|
|
816
|
-
toClient: (dbValue: z.infer<
|
|
817
|
-
toDb: (clientValue: boolean) => z.infer<
|
|
662
|
+
toClient: (dbValue: z.infer<any>) => boolean;
|
|
663
|
+
toDb: (clientValue: boolean) => z.infer<any>;
|
|
818
664
|
transforms: {
|
|
819
665
|
toClient: string;
|
|
820
666
|
toDb: string;
|
|
@@ -831,24 +677,24 @@ export declare const petSchema: {
|
|
|
831
677
|
type: "int";
|
|
832
678
|
pk: true;
|
|
833
679
|
};
|
|
834
|
-
zodDbSchema:
|
|
835
|
-
zodClientSchema: z.
|
|
680
|
+
zodDbSchema: any;
|
|
681
|
+
zodClientSchema: z.ZodString;
|
|
836
682
|
jsonSchema: any;
|
|
837
|
-
defaultValue:
|
|
683
|
+
defaultValue: string;
|
|
838
684
|
transform: (transforms: {
|
|
839
|
-
toClient: (dbValue: z.infer<
|
|
840
|
-
toDb: (clientValue:
|
|
685
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
686
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
841
687
|
}) => {
|
|
842
688
|
sql: {
|
|
843
689
|
type: "int";
|
|
844
690
|
pk: true;
|
|
845
691
|
};
|
|
846
|
-
zodDbSchema:
|
|
847
|
-
zodClientSchema: z.
|
|
692
|
+
zodDbSchema: any;
|
|
693
|
+
zodClientSchema: z.ZodString;
|
|
848
694
|
jsonSchema: any;
|
|
849
|
-
defaultValue:
|
|
850
|
-
toClient: (dbValue: z.infer<
|
|
851
|
-
toDb: (clientValue:
|
|
695
|
+
defaultValue: string;
|
|
696
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
697
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
852
698
|
transforms: {
|
|
853
699
|
toClient: string;
|
|
854
700
|
toDb: string;
|
|
@@ -871,7 +717,7 @@ export declare const petSchema: {
|
|
|
871
717
|
};
|
|
872
718
|
defaultValue: string;
|
|
873
719
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
874
|
-
zod: z.
|
|
720
|
+
zod: z.ZodString;
|
|
875
721
|
serverType?: never;
|
|
876
722
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
877
723
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -881,27 +727,27 @@ export declare const petSchema: {
|
|
|
881
727
|
type: "varchar";
|
|
882
728
|
length: number;
|
|
883
729
|
};
|
|
884
|
-
zodDbSchema:
|
|
885
|
-
zodClientSchema:
|
|
730
|
+
zodDbSchema: any;
|
|
731
|
+
zodClientSchema: ClientType;
|
|
886
732
|
jsonSchema: any;
|
|
887
733
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
888
734
|
default: "CURRENT_TIMESTAMP";
|
|
889
735
|
defaultValue: Date;
|
|
890
736
|
} : never);
|
|
891
737
|
transform: (transforms: {
|
|
892
|
-
toClient: (dbValue: z.infer<
|
|
893
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
738
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
739
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
894
740
|
}) => {
|
|
895
741
|
sql: {
|
|
896
742
|
type: "varchar";
|
|
897
743
|
length: number;
|
|
898
744
|
};
|
|
899
|
-
zodDbSchema:
|
|
900
|
-
zodClientSchema:
|
|
745
|
+
zodDbSchema: any;
|
|
746
|
+
zodClientSchema: ClientType;
|
|
901
747
|
jsonSchema: any;
|
|
902
748
|
defaultValue: DefaultValue;
|
|
903
|
-
toClient: (dbValue: z.infer<
|
|
904
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
749
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
750
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
905
751
|
transforms: {
|
|
906
752
|
toClient: string;
|
|
907
753
|
toDb: string;
|
|
@@ -917,7 +763,7 @@ export declare const petSchema: {
|
|
|
917
763
|
};
|
|
918
764
|
dbType: ServerType;
|
|
919
765
|
zodDbSchema: ServerType;
|
|
920
|
-
zodClientSchema:
|
|
766
|
+
zodClientSchema: z.ZodString;
|
|
921
767
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
922
768
|
$schema?: string | undefined;
|
|
923
769
|
definitions?: {
|
|
@@ -926,7 +772,7 @@ export declare const petSchema: {
|
|
|
926
772
|
};
|
|
927
773
|
defaultValue: z.TypeOf<ServerType>;
|
|
928
774
|
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
929
|
-
zod: z.
|
|
775
|
+
zod: z.ZodString;
|
|
930
776
|
serverType?: ServerType;
|
|
931
777
|
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
932
778
|
default: "CURRENT_TIMESTAMP";
|
|
@@ -936,27 +782,27 @@ export declare const petSchema: {
|
|
|
936
782
|
type: "varchar";
|
|
937
783
|
length: number;
|
|
938
784
|
};
|
|
939
|
-
zodDbSchema:
|
|
940
|
-
zodClientSchema:
|
|
785
|
+
zodDbSchema: any;
|
|
786
|
+
zodClientSchema: ClientType;
|
|
941
787
|
jsonSchema: any;
|
|
942
788
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
943
789
|
default: "CURRENT_TIMESTAMP";
|
|
944
790
|
defaultValue: Date;
|
|
945
791
|
} : never);
|
|
946
792
|
transform: (transforms: {
|
|
947
|
-
toClient: (dbValue: z.infer<
|
|
948
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
793
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
794
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
949
795
|
}) => {
|
|
950
796
|
sql: {
|
|
951
797
|
type: "varchar";
|
|
952
798
|
length: number;
|
|
953
799
|
};
|
|
954
|
-
zodDbSchema:
|
|
955
|
-
zodClientSchema:
|
|
800
|
+
zodDbSchema: any;
|
|
801
|
+
zodClientSchema: ClientType;
|
|
956
802
|
jsonSchema: any;
|
|
957
803
|
defaultValue: DefaultValue;
|
|
958
|
-
toClient: (dbValue: z.infer<
|
|
959
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<
|
|
804
|
+
toClient: (dbValue: z.infer<any>) => z.TypeOf<ClientType>;
|
|
805
|
+
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<any>;
|
|
960
806
|
transforms: {
|
|
961
807
|
toClient: string;
|
|
962
808
|
toDb: string;
|
|
@@ -969,103 +815,26 @@ export declare const petSchema: {
|
|
|
969
815
|
sql: {
|
|
970
816
|
type: "int";
|
|
971
817
|
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
};
|
|
981
|
-
defaultValue: number;
|
|
982
|
-
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
983
|
-
zod: z.ZodTypeAny;
|
|
984
|
-
serverType?: never;
|
|
985
|
-
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
986
|
-
default: "CURRENT_TIMESTAMP";
|
|
987
|
-
defaultValue: Date;
|
|
988
|
-
} : never) | undefined) => {
|
|
818
|
+
zodDbSchema: any;
|
|
819
|
+
zodClientSchema: z.ZodString;
|
|
820
|
+
jsonSchema: any;
|
|
821
|
+
defaultValue: string;
|
|
822
|
+
transform: (transforms: {
|
|
823
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
824
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
825
|
+
}) => {
|
|
989
826
|
sql: {
|
|
990
827
|
type: "int";
|
|
991
828
|
};
|
|
992
|
-
zodDbSchema:
|
|
993
|
-
zodClientSchema: z.
|
|
829
|
+
zodDbSchema: any;
|
|
830
|
+
zodClientSchema: z.ZodString;
|
|
994
831
|
jsonSchema: any;
|
|
995
|
-
defaultValue:
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
1002
|
-
}) => {
|
|
1003
|
-
sql: {
|
|
1004
|
-
type: "int";
|
|
1005
|
-
};
|
|
1006
|
-
zodDbSchema: z.ZodTypeAny;
|
|
1007
|
-
zodClientSchema: z.ZodTypeAny;
|
|
1008
|
-
jsonSchema: any;
|
|
1009
|
-
defaultValue: DefaultValue;
|
|
1010
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
1011
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
1012
|
-
transforms: {
|
|
1013
|
-
toClient: string;
|
|
1014
|
-
toDb: string;
|
|
1015
|
-
};
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
db: <ServerType extends z.ZodTypeAny>(assert: (tools: {
|
|
1019
|
-
zod: z.ZodNumber;
|
|
1020
|
-
}) => ServerType) => {
|
|
1021
|
-
sql: {
|
|
1022
|
-
type: "int";
|
|
1023
|
-
};
|
|
1024
|
-
dbType: ServerType;
|
|
1025
|
-
zodDbSchema: ServerType;
|
|
1026
|
-
zodClientSchema: ServerType;
|
|
1027
|
-
jsonSchema: import("zod-to-json-schema").JsonSchema7Type & {
|
|
1028
|
-
$schema?: string | undefined;
|
|
1029
|
-
definitions?: {
|
|
1030
|
-
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
1031
|
-
} | undefined;
|
|
1032
|
-
};
|
|
1033
|
-
defaultValue: z.TypeOf<ServerType>;
|
|
1034
|
-
client: <ClientType extends z.ZodTypeAny, DefaultValue extends z.TypeOf<ClientType>>(assert?: ClientType | ((tools: {
|
|
1035
|
-
zod: z.ZodTypeAny;
|
|
1036
|
-
serverType?: ServerType;
|
|
1037
|
-
}) => ClientType) | undefined, defaultValue?: DefaultValue | (DefaultValue extends Date ? {
|
|
1038
|
-
default: "CURRENT_TIMESTAMP";
|
|
1039
|
-
defaultValue: Date;
|
|
1040
|
-
} : never) | undefined) => {
|
|
1041
|
-
sql: {
|
|
1042
|
-
type: "int";
|
|
1043
|
-
};
|
|
1044
|
-
zodDbSchema: z.ZodTypeAny;
|
|
1045
|
-
zodClientSchema: z.ZodTypeAny;
|
|
1046
|
-
jsonSchema: any;
|
|
1047
|
-
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
1048
|
-
default: "CURRENT_TIMESTAMP";
|
|
1049
|
-
defaultValue: Date;
|
|
1050
|
-
} : never);
|
|
1051
|
-
transform: (transforms: {
|
|
1052
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
1053
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
1054
|
-
}) => {
|
|
1055
|
-
sql: {
|
|
1056
|
-
type: "int";
|
|
1057
|
-
};
|
|
1058
|
-
zodDbSchema: z.ZodTypeAny;
|
|
1059
|
-
zodClientSchema: z.ZodTypeAny;
|
|
1060
|
-
jsonSchema: any;
|
|
1061
|
-
defaultValue: DefaultValue;
|
|
1062
|
-
toClient: (dbValue: z.infer<z.ZodTypeAny>) => z.TypeOf<ClientType>;
|
|
1063
|
-
toDb: (clientValue: z.TypeOf<ClientType>) => z.infer<z.ZodTypeAny>;
|
|
1064
|
-
transforms: {
|
|
1065
|
-
toClient: string;
|
|
1066
|
-
toDb: string;
|
|
1067
|
-
};
|
|
1068
|
-
};
|
|
832
|
+
defaultValue: string;
|
|
833
|
+
toClient: (dbValue: z.infer<any>) => string;
|
|
834
|
+
toDb: (clientValue: string) => z.infer<any>;
|
|
835
|
+
transforms: {
|
|
836
|
+
toClient: string;
|
|
837
|
+
toDb: string;
|
|
1069
838
|
};
|
|
1070
839
|
};
|
|
1071
840
|
};
|
|
@@ -1073,12 +842,12 @@ export declare const petSchema: {
|
|
|
1073
842
|
sql: {
|
|
1074
843
|
type: "text";
|
|
1075
844
|
};
|
|
1076
|
-
zodDbSchema:
|
|
1077
|
-
zodClientSchema: z.
|
|
845
|
+
zodDbSchema: any;
|
|
846
|
+
zodClientSchema: z.ZodArray<z.ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
1078
847
|
jsonSchema: any;
|
|
1079
848
|
defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
1080
|
-
toClient: (dbValue: z.infer<
|
|
1081
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => z.infer<
|
|
849
|
+
toClient: (dbValue: z.infer<any>) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
850
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => z.infer<any>;
|
|
1082
851
|
transforms: {
|
|
1083
852
|
toClient: string;
|
|
1084
853
|
toDb: string;
|
|
@@ -1088,12 +857,12 @@ export declare const petSchema: {
|
|
|
1088
857
|
sql: {
|
|
1089
858
|
type: "int";
|
|
1090
859
|
};
|
|
1091
|
-
zodDbSchema:
|
|
1092
|
-
zodClientSchema: z.
|
|
860
|
+
zodDbSchema: any;
|
|
861
|
+
zodClientSchema: z.ZodBoolean;
|
|
1093
862
|
jsonSchema: any;
|
|
1094
863
|
defaultValue: boolean;
|
|
1095
|
-
toClient: (dbValue: z.infer<
|
|
1096
|
-
toDb: (clientValue: boolean) => z.infer<
|
|
864
|
+
toClient: (dbValue: z.infer<any>) => boolean;
|
|
865
|
+
toDb: (clientValue: boolean) => z.infer<any>;
|
|
1097
866
|
transforms: {
|
|
1098
867
|
toClient: string;
|
|
1099
868
|
toDb: string;
|
|
@@ -1106,21 +875,21 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1106
875
|
surname: z.ZodString;
|
|
1107
876
|
email: z.ZodString;
|
|
1108
877
|
pets: z.ZodArray<z.ZodObject<{
|
|
1109
|
-
id:
|
|
878
|
+
id: any;
|
|
1110
879
|
name: z.ZodString;
|
|
1111
|
-
userId:
|
|
1112
|
-
fluffynessScale:
|
|
1113
|
-
favourite:
|
|
880
|
+
userId: any;
|
|
881
|
+
fluffynessScale: any;
|
|
882
|
+
favourite: any;
|
|
1114
883
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1115
884
|
name: string;
|
|
1116
|
-
userId: number;
|
|
1117
885
|
id?: any;
|
|
886
|
+
userId?: any;
|
|
1118
887
|
fluffynessScale?: any;
|
|
1119
888
|
favourite?: any;
|
|
1120
889
|
}, {
|
|
1121
890
|
name: string;
|
|
1122
|
-
userId: number;
|
|
1123
891
|
id?: any;
|
|
892
|
+
userId?: any;
|
|
1124
893
|
fluffynessScale?: any;
|
|
1125
894
|
favourite?: any;
|
|
1126
895
|
}>, "many">;
|
|
@@ -1128,8 +897,8 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1128
897
|
id: number;
|
|
1129
898
|
pets: {
|
|
1130
899
|
name: string;
|
|
1131
|
-
userId: number;
|
|
1132
900
|
id?: any;
|
|
901
|
+
userId?: any;
|
|
1133
902
|
fluffynessScale?: any;
|
|
1134
903
|
favourite?: any;
|
|
1135
904
|
}[];
|
|
@@ -1140,8 +909,8 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1140
909
|
id: number;
|
|
1141
910
|
pets: {
|
|
1142
911
|
name: string;
|
|
1143
|
-
userId: number;
|
|
1144
912
|
id?: any;
|
|
913
|
+
userId?: any;
|
|
1145
914
|
fluffynessScale?: any;
|
|
1146
915
|
favourite?: any;
|
|
1147
916
|
}[];
|
|
@@ -1154,32 +923,32 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1154
923
|
surname: z.ZodString;
|
|
1155
924
|
email: z.ZodString;
|
|
1156
925
|
pets: z.ZodArray<z.ZodObject<{
|
|
1157
|
-
id: z.
|
|
926
|
+
id: z.ZodString;
|
|
1158
927
|
name: z.ZodString;
|
|
1159
|
-
userId: z.
|
|
928
|
+
userId: z.ZodString;
|
|
1160
929
|
fluffynessScale: z.ZodType<("bald" | "fuzzy" | "fluffy" | "poof")[], z.ZodTypeDef, ("bald" | "fuzzy" | "fluffy" | "poof")[]>;
|
|
1161
930
|
favourite: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
1162
931
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1163
932
|
name: string;
|
|
1164
|
-
|
|
933
|
+
id: string;
|
|
934
|
+
userId: string;
|
|
1165
935
|
fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
1166
936
|
favourite: boolean;
|
|
1167
|
-
id?: any;
|
|
1168
937
|
}, {
|
|
1169
938
|
name: string;
|
|
1170
|
-
|
|
939
|
+
id: string;
|
|
940
|
+
userId: string;
|
|
1171
941
|
fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
1172
942
|
favourite: boolean;
|
|
1173
|
-
id?: any;
|
|
1174
943
|
}>, "many">;
|
|
1175
944
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1176
945
|
id: string;
|
|
1177
946
|
pets: {
|
|
1178
947
|
name: string;
|
|
1179
|
-
|
|
948
|
+
id: string;
|
|
949
|
+
userId: string;
|
|
1180
950
|
fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
1181
951
|
favourite: boolean;
|
|
1182
|
-
id?: any;
|
|
1183
952
|
}[];
|
|
1184
953
|
firstname: string;
|
|
1185
954
|
surname: string;
|
|
@@ -1188,10 +957,10 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1188
957
|
id: string;
|
|
1189
958
|
pets: {
|
|
1190
959
|
name: string;
|
|
1191
|
-
|
|
960
|
+
id: string;
|
|
961
|
+
userId: string;
|
|
1192
962
|
fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
1193
963
|
favourite: boolean;
|
|
1194
|
-
id?: any;
|
|
1195
964
|
}[];
|
|
1196
965
|
firstname: string;
|
|
1197
966
|
surname: string;
|
|
@@ -1204,7 +973,7 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1204
973
|
pets: {
|
|
1205
974
|
id: string;
|
|
1206
975
|
name: string;
|
|
1207
|
-
userId:
|
|
976
|
+
userId: string;
|
|
1208
977
|
fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
1209
978
|
favourite: boolean;
|
|
1210
979
|
}[];
|
|
@@ -1267,7 +1036,7 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1267
1036
|
pk: true;
|
|
1268
1037
|
};
|
|
1269
1038
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type;
|
|
1270
|
-
defaultValue:
|
|
1039
|
+
defaultValue: string;
|
|
1271
1040
|
transforms?: {
|
|
1272
1041
|
toClient: string;
|
|
1273
1042
|
toDb: string;
|
|
@@ -1288,7 +1057,7 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1288
1057
|
type: "int";
|
|
1289
1058
|
};
|
|
1290
1059
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type;
|
|
1291
|
-
defaultValue:
|
|
1060
|
+
defaultValue: string;
|
|
1292
1061
|
transforms?: {
|
|
1293
1062
|
toClient: string;
|
|
1294
1063
|
toDb: string;
|
|
@@ -1321,7 +1090,7 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1321
1090
|
pk: true;
|
|
1322
1091
|
};
|
|
1323
1092
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type;
|
|
1324
|
-
defaultValue:
|
|
1093
|
+
defaultValue: string;
|
|
1325
1094
|
transforms?: {
|
|
1326
1095
|
toClient: string;
|
|
1327
1096
|
toDb: string;
|
|
@@ -1344,7 +1113,7 @@ export declare const dbSchema: z.ZodObject<{
|
|
|
1344
1113
|
type: "int";
|
|
1345
1114
|
};
|
|
1346
1115
|
jsonSchema: import("zod-to-json-schema").JsonSchema7Type;
|
|
1347
|
-
defaultValue:
|
|
1116
|
+
defaultValue: string;
|
|
1348
1117
|
transforms?: {
|
|
1349
1118
|
toClient: string;
|
|
1350
1119
|
toDb: string;
|