cogsbox-shape 0.5.9 → 0.5.11
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 +128 -128
- package/dist/example/user.d.ts +148 -148
- package/dist/schema.d.ts +138 -138
- package/dist/schema.js +3 -1
- package/package.json +1 -1
package/dist/example/schema.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const schemas: {
|
|
|
27
27
|
type: "int";
|
|
28
28
|
pk: true;
|
|
29
29
|
};
|
|
30
|
-
zodDbSchema:
|
|
30
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
31
31
|
zodClientSchema: ClientType;
|
|
32
32
|
jsonSchema: any;
|
|
33
33
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -35,28 +35,28 @@ declare const schemas: {
|
|
|
35
35
|
defaultValue: Date;
|
|
36
36
|
} : never);
|
|
37
37
|
transform: (transforms: {
|
|
38
|
-
toClient: (dbValue:
|
|
39
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
38
|
+
toClient: (dbValue: number) => import("zod").TypeOf<ClientType>;
|
|
39
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => number;
|
|
40
40
|
}) => {
|
|
41
41
|
sql: {
|
|
42
42
|
type: "int";
|
|
43
43
|
pk: true;
|
|
44
44
|
};
|
|
45
|
-
zodDbSchema:
|
|
45
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
46
46
|
zodClientSchema: ClientType;
|
|
47
47
|
jsonSchema: any;
|
|
48
48
|
defaultValue: DefaultValue;
|
|
49
|
-
toClient: (dbValue:
|
|
50
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
49
|
+
toClient: (dbValue: number) => import("zod").TypeOf<ClientType>;
|
|
50
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => number;
|
|
51
51
|
transforms: {
|
|
52
52
|
toClient: string;
|
|
53
53
|
toDb: string;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
|
|
57
|
+
db: <ServerType extends import("zod").ZodTypeAny>(assert: ServerType | ((tools: {
|
|
58
58
|
zod: import("zod").ZodNumber;
|
|
59
|
-
}) => ServerType) => {
|
|
59
|
+
}) => ServerType)) => {
|
|
60
60
|
sql: {
|
|
61
61
|
type: "int";
|
|
62
62
|
pk: true;
|
|
@@ -82,7 +82,7 @@ declare const schemas: {
|
|
|
82
82
|
type: "int";
|
|
83
83
|
pk: true;
|
|
84
84
|
};
|
|
85
|
-
zodDbSchema:
|
|
85
|
+
zodDbSchema: import("zod").ZodNumber | ServerType;
|
|
86
86
|
zodClientSchema: ClientType;
|
|
87
87
|
jsonSchema: any;
|
|
88
88
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -90,19 +90,19 @@ declare const schemas: {
|
|
|
90
90
|
defaultValue: Date;
|
|
91
91
|
} : never);
|
|
92
92
|
transform: (transforms: {
|
|
93
|
-
toClient: (dbValue:
|
|
94
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
93
|
+
toClient: (dbValue: number) => import("zod").TypeOf<ClientType>;
|
|
94
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => number;
|
|
95
95
|
}) => {
|
|
96
96
|
sql: {
|
|
97
97
|
type: "int";
|
|
98
98
|
pk: true;
|
|
99
99
|
};
|
|
100
|
-
zodDbSchema:
|
|
100
|
+
zodDbSchema: import("zod").ZodNumber | ServerType;
|
|
101
101
|
zodClientSchema: ClientType;
|
|
102
102
|
jsonSchema: any;
|
|
103
103
|
defaultValue: DefaultValue;
|
|
104
|
-
toClient: (dbValue:
|
|
105
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
104
|
+
toClient: (dbValue: number) => import("zod").TypeOf<ClientType>;
|
|
105
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => number;
|
|
106
106
|
transforms: {
|
|
107
107
|
toClient: string;
|
|
108
108
|
toDb: string;
|
|
@@ -137,7 +137,7 @@ declare const schemas: {
|
|
|
137
137
|
type: "varchar";
|
|
138
138
|
length: number;
|
|
139
139
|
};
|
|
140
|
-
zodDbSchema:
|
|
140
|
+
zodDbSchema: import("zod").ZodString;
|
|
141
141
|
zodClientSchema: ClientType;
|
|
142
142
|
jsonSchema: any;
|
|
143
143
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -145,19 +145,19 @@ declare const schemas: {
|
|
|
145
145
|
defaultValue: Date;
|
|
146
146
|
} : never);
|
|
147
147
|
transform: (transforms: {
|
|
148
|
-
toClient: (dbValue:
|
|
149
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
148
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
149
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
150
150
|
}) => {
|
|
151
151
|
sql: {
|
|
152
152
|
type: "varchar";
|
|
153
153
|
length: number;
|
|
154
154
|
};
|
|
155
|
-
zodDbSchema:
|
|
155
|
+
zodDbSchema: import("zod").ZodString;
|
|
156
156
|
zodClientSchema: ClientType;
|
|
157
157
|
jsonSchema: any;
|
|
158
158
|
defaultValue: DefaultValue;
|
|
159
|
-
toClient: (dbValue:
|
|
160
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
159
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
160
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
161
161
|
transforms: {
|
|
162
162
|
toClient: string;
|
|
163
163
|
toDb: string;
|
|
@@ -191,7 +191,7 @@ declare const schemas: {
|
|
|
191
191
|
type: "varchar";
|
|
192
192
|
length: number;
|
|
193
193
|
};
|
|
194
|
-
zodDbSchema:
|
|
194
|
+
zodDbSchema: import("zod").ZodString;
|
|
195
195
|
zodClientSchema: ClientType;
|
|
196
196
|
jsonSchema: any;
|
|
197
197
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -199,19 +199,19 @@ declare const schemas: {
|
|
|
199
199
|
defaultValue: Date;
|
|
200
200
|
} : never);
|
|
201
201
|
transform: (transforms: {
|
|
202
|
-
toClient: (dbValue:
|
|
203
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
202
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
203
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
204
204
|
}) => {
|
|
205
205
|
sql: {
|
|
206
206
|
type: "varchar";
|
|
207
207
|
length: number;
|
|
208
208
|
};
|
|
209
|
-
zodDbSchema:
|
|
209
|
+
zodDbSchema: import("zod").ZodString;
|
|
210
210
|
zodClientSchema: ClientType;
|
|
211
211
|
jsonSchema: any;
|
|
212
212
|
defaultValue: DefaultValue;
|
|
213
|
-
toClient: (dbValue:
|
|
214
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
213
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
214
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
215
215
|
transforms: {
|
|
216
216
|
toClient: string;
|
|
217
217
|
toDb: string;
|
|
@@ -245,7 +245,7 @@ declare const schemas: {
|
|
|
245
245
|
type: "varchar";
|
|
246
246
|
length: number;
|
|
247
247
|
};
|
|
248
|
-
zodDbSchema:
|
|
248
|
+
zodDbSchema: import("zod").ZodString;
|
|
249
249
|
zodClientSchema: ClientType;
|
|
250
250
|
jsonSchema: any;
|
|
251
251
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -253,19 +253,19 @@ declare const schemas: {
|
|
|
253
253
|
defaultValue: Date;
|
|
254
254
|
} : never);
|
|
255
255
|
transform: (transforms: {
|
|
256
|
-
toClient: (dbValue:
|
|
257
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
256
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
257
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
258
258
|
}) => {
|
|
259
259
|
sql: {
|
|
260
260
|
type: "varchar";
|
|
261
261
|
length: number;
|
|
262
262
|
};
|
|
263
|
-
zodDbSchema:
|
|
263
|
+
zodDbSchema: import("zod").ZodString;
|
|
264
264
|
zodClientSchema: ClientType;
|
|
265
265
|
jsonSchema: any;
|
|
266
266
|
defaultValue: DefaultValue;
|
|
267
|
-
toClient: (dbValue:
|
|
268
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
267
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
268
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
269
269
|
transforms: {
|
|
270
270
|
toClient: string;
|
|
271
271
|
toDb: string;
|
|
@@ -281,24 +281,24 @@ declare const schemas: {
|
|
|
281
281
|
type: "int";
|
|
282
282
|
pk: true;
|
|
283
283
|
};
|
|
284
|
-
zodDbSchema:
|
|
284
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
285
285
|
zodClientSchema: import("zod").ZodString;
|
|
286
286
|
jsonSchema: any;
|
|
287
287
|
defaultValue: string;
|
|
288
288
|
transform: (transforms: {
|
|
289
|
-
toClient: (dbValue:
|
|
290
|
-
toDb: (clientValue: string) =>
|
|
289
|
+
toClient: (dbValue: number) => string;
|
|
290
|
+
toDb: (clientValue: string) => number;
|
|
291
291
|
}) => {
|
|
292
292
|
sql: {
|
|
293
293
|
type: "int";
|
|
294
294
|
pk: true;
|
|
295
295
|
};
|
|
296
|
-
zodDbSchema:
|
|
296
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
297
297
|
zodClientSchema: import("zod").ZodString;
|
|
298
298
|
jsonSchema: any;
|
|
299
299
|
defaultValue: string;
|
|
300
|
-
toClient: (dbValue:
|
|
301
|
-
toDb: (clientValue: string) =>
|
|
300
|
+
toClient: (dbValue: number) => string;
|
|
301
|
+
toDb: (clientValue: string) => number;
|
|
302
302
|
transforms: {
|
|
303
303
|
toClient: string;
|
|
304
304
|
toDb: string;
|
|
@@ -330,7 +330,7 @@ declare const schemas: {
|
|
|
330
330
|
type: "varchar";
|
|
331
331
|
length: number;
|
|
332
332
|
};
|
|
333
|
-
zodDbSchema:
|
|
333
|
+
zodDbSchema: import("zod").ZodString;
|
|
334
334
|
zodClientSchema: ClientType;
|
|
335
335
|
jsonSchema: any;
|
|
336
336
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -338,28 +338,28 @@ declare const schemas: {
|
|
|
338
338
|
defaultValue: Date;
|
|
339
339
|
} : never);
|
|
340
340
|
transform: (transforms: {
|
|
341
|
-
toClient: (dbValue:
|
|
342
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
341
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
342
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
343
343
|
}) => {
|
|
344
344
|
sql: {
|
|
345
345
|
type: "varchar";
|
|
346
346
|
length: number;
|
|
347
347
|
};
|
|
348
|
-
zodDbSchema:
|
|
348
|
+
zodDbSchema: import("zod").ZodString;
|
|
349
349
|
zodClientSchema: ClientType;
|
|
350
350
|
jsonSchema: any;
|
|
351
351
|
defaultValue: DefaultValue;
|
|
352
|
-
toClient: (dbValue:
|
|
353
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
352
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
353
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
354
354
|
transforms: {
|
|
355
355
|
toClient: string;
|
|
356
356
|
toDb: string;
|
|
357
357
|
};
|
|
358
358
|
};
|
|
359
359
|
};
|
|
360
|
-
db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
|
|
360
|
+
db: <ServerType extends import("zod").ZodTypeAny>(assert: ServerType | ((tools: {
|
|
361
361
|
zod: import("zod").ZodString;
|
|
362
|
-
}) => ServerType) => {
|
|
362
|
+
}) => ServerType)) => {
|
|
363
363
|
sql: {
|
|
364
364
|
type: "varchar";
|
|
365
365
|
length: number;
|
|
@@ -385,7 +385,7 @@ declare const schemas: {
|
|
|
385
385
|
type: "varchar";
|
|
386
386
|
length: number;
|
|
387
387
|
};
|
|
388
|
-
zodDbSchema:
|
|
388
|
+
zodDbSchema: import("zod").ZodString | ServerType;
|
|
389
389
|
zodClientSchema: ClientType;
|
|
390
390
|
jsonSchema: any;
|
|
391
391
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -393,19 +393,19 @@ declare const schemas: {
|
|
|
393
393
|
defaultValue: Date;
|
|
394
394
|
} : never);
|
|
395
395
|
transform: (transforms: {
|
|
396
|
-
toClient: (dbValue:
|
|
397
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
396
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
397
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
398
398
|
}) => {
|
|
399
399
|
sql: {
|
|
400
400
|
type: "varchar";
|
|
401
401
|
length: number;
|
|
402
402
|
};
|
|
403
|
-
zodDbSchema:
|
|
403
|
+
zodDbSchema: import("zod").ZodString | ServerType;
|
|
404
404
|
zodClientSchema: ClientType;
|
|
405
405
|
jsonSchema: any;
|
|
406
406
|
defaultValue: DefaultValue;
|
|
407
|
-
toClient: (dbValue:
|
|
408
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
407
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
408
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
409
409
|
transforms: {
|
|
410
410
|
toClient: string;
|
|
411
411
|
toDb: string;
|
|
@@ -417,23 +417,23 @@ declare const schemas: {
|
|
|
417
417
|
sql: {
|
|
418
418
|
type: "int";
|
|
419
419
|
};
|
|
420
|
-
zodDbSchema:
|
|
420
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
421
421
|
zodClientSchema: import("zod").ZodString;
|
|
422
422
|
jsonSchema: any;
|
|
423
423
|
defaultValue: string;
|
|
424
424
|
transform: (transforms: {
|
|
425
|
-
toClient: (dbValue:
|
|
426
|
-
toDb: (clientValue: string) =>
|
|
425
|
+
toClient: (dbValue: number) => string;
|
|
426
|
+
toDb: (clientValue: string) => number;
|
|
427
427
|
}) => {
|
|
428
428
|
sql: {
|
|
429
429
|
type: "int";
|
|
430
430
|
};
|
|
431
|
-
zodDbSchema:
|
|
431
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
432
432
|
zodClientSchema: import("zod").ZodString;
|
|
433
433
|
jsonSchema: any;
|
|
434
434
|
defaultValue: string;
|
|
435
|
-
toClient: (dbValue:
|
|
436
|
-
toDb: (clientValue: string) =>
|
|
435
|
+
toClient: (dbValue: number) => string;
|
|
436
|
+
toDb: (clientValue: string) => number;
|
|
437
437
|
transforms: {
|
|
438
438
|
toClient: string;
|
|
439
439
|
toDb: string;
|
|
@@ -443,12 +443,12 @@ declare const schemas: {
|
|
|
443
443
|
sql: {
|
|
444
444
|
type: "text";
|
|
445
445
|
};
|
|
446
|
-
zodDbSchema:
|
|
446
|
+
zodDbSchema: import("zod").ZodString;
|
|
447
447
|
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
448
448
|
jsonSchema: any;
|
|
449
449
|
defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
450
|
-
toClient: (dbValue:
|
|
451
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) =>
|
|
450
|
+
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
451
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
452
452
|
transforms: {
|
|
453
453
|
toClient: string;
|
|
454
454
|
toDb: string;
|
|
@@ -457,12 +457,12 @@ declare const schemas: {
|
|
|
457
457
|
sql: {
|
|
458
458
|
type: "int";
|
|
459
459
|
};
|
|
460
|
-
zodDbSchema:
|
|
460
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
461
461
|
zodClientSchema: import("zod").ZodBoolean;
|
|
462
462
|
jsonSchema: any;
|
|
463
463
|
defaultValue: boolean;
|
|
464
|
-
toClient: (dbValue:
|
|
465
|
-
toDb: (clientValue: boolean) =>
|
|
464
|
+
toClient: (dbValue: number) => boolean;
|
|
465
|
+
toDb: (clientValue: boolean) => number;
|
|
466
466
|
transforms: {
|
|
467
467
|
toClient: string;
|
|
468
468
|
toDb: string;
|
|
@@ -475,24 +475,24 @@ declare const schemas: {
|
|
|
475
475
|
type: "int";
|
|
476
476
|
pk: true;
|
|
477
477
|
};
|
|
478
|
-
zodDbSchema:
|
|
478
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
479
479
|
zodClientSchema: import("zod").ZodString;
|
|
480
480
|
jsonSchema: any;
|
|
481
481
|
defaultValue: string;
|
|
482
482
|
transform: (transforms: {
|
|
483
|
-
toClient: (dbValue:
|
|
484
|
-
toDb: (clientValue: string) =>
|
|
483
|
+
toClient: (dbValue: number) => string;
|
|
484
|
+
toDb: (clientValue: string) => number;
|
|
485
485
|
}) => {
|
|
486
486
|
sql: {
|
|
487
487
|
type: "int";
|
|
488
488
|
pk: true;
|
|
489
489
|
};
|
|
490
|
-
zodDbSchema:
|
|
490
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
491
491
|
zodClientSchema: import("zod").ZodString;
|
|
492
492
|
jsonSchema: any;
|
|
493
493
|
defaultValue: string;
|
|
494
|
-
toClient: (dbValue:
|
|
495
|
-
toDb: (clientValue: string) =>
|
|
494
|
+
toClient: (dbValue: number) => string;
|
|
495
|
+
toDb: (clientValue: string) => number;
|
|
496
496
|
transforms: {
|
|
497
497
|
toClient: string;
|
|
498
498
|
toDb: string;
|
|
@@ -525,7 +525,7 @@ declare const schemas: {
|
|
|
525
525
|
type: "varchar";
|
|
526
526
|
length: number;
|
|
527
527
|
};
|
|
528
|
-
zodDbSchema:
|
|
528
|
+
zodDbSchema: import("zod").ZodString;
|
|
529
529
|
zodClientSchema: ClientType;
|
|
530
530
|
jsonSchema: any;
|
|
531
531
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -533,28 +533,28 @@ declare const schemas: {
|
|
|
533
533
|
defaultValue: Date;
|
|
534
534
|
} : never);
|
|
535
535
|
transform: (transforms: {
|
|
536
|
-
toClient: (dbValue:
|
|
537
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
536
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
537
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
538
538
|
}) => {
|
|
539
539
|
sql: {
|
|
540
540
|
type: "varchar";
|
|
541
541
|
length: number;
|
|
542
542
|
};
|
|
543
|
-
zodDbSchema:
|
|
543
|
+
zodDbSchema: import("zod").ZodString;
|
|
544
544
|
zodClientSchema: ClientType;
|
|
545
545
|
jsonSchema: any;
|
|
546
546
|
defaultValue: DefaultValue;
|
|
547
|
-
toClient: (dbValue:
|
|
548
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
547
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
548
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
549
549
|
transforms: {
|
|
550
550
|
toClient: string;
|
|
551
551
|
toDb: string;
|
|
552
552
|
};
|
|
553
553
|
};
|
|
554
554
|
};
|
|
555
|
-
db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
|
|
555
|
+
db: <ServerType extends import("zod").ZodTypeAny>(assert: ServerType | ((tools: {
|
|
556
556
|
zod: import("zod").ZodString;
|
|
557
|
-
}) => ServerType) => {
|
|
557
|
+
}) => ServerType)) => {
|
|
558
558
|
sql: {
|
|
559
559
|
type: "varchar";
|
|
560
560
|
length: number;
|
|
@@ -580,7 +580,7 @@ declare const schemas: {
|
|
|
580
580
|
type: "varchar";
|
|
581
581
|
length: number;
|
|
582
582
|
};
|
|
583
|
-
zodDbSchema:
|
|
583
|
+
zodDbSchema: import("zod").ZodString | ServerType;
|
|
584
584
|
zodClientSchema: ClientType;
|
|
585
585
|
jsonSchema: any;
|
|
586
586
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -588,19 +588,19 @@ declare const schemas: {
|
|
|
588
588
|
defaultValue: Date;
|
|
589
589
|
} : never);
|
|
590
590
|
transform: (transforms: {
|
|
591
|
-
toClient: (dbValue:
|
|
592
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
591
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
592
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
593
593
|
}) => {
|
|
594
594
|
sql: {
|
|
595
595
|
type: "varchar";
|
|
596
596
|
length: number;
|
|
597
597
|
};
|
|
598
|
-
zodDbSchema:
|
|
598
|
+
zodDbSchema: import("zod").ZodString | ServerType;
|
|
599
599
|
zodClientSchema: ClientType;
|
|
600
600
|
jsonSchema: any;
|
|
601
601
|
defaultValue: DefaultValue;
|
|
602
|
-
toClient: (dbValue:
|
|
603
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
602
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
603
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
604
604
|
transforms: {
|
|
605
605
|
toClient: string;
|
|
606
606
|
toDb: string;
|
|
@@ -613,23 +613,23 @@ declare const schemas: {
|
|
|
613
613
|
sql: {
|
|
614
614
|
type: "int";
|
|
615
615
|
};
|
|
616
|
-
zodDbSchema:
|
|
616
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
617
617
|
zodClientSchema: import("zod").ZodString;
|
|
618
618
|
jsonSchema: any;
|
|
619
619
|
defaultValue: string;
|
|
620
620
|
transform: (transforms: {
|
|
621
|
-
toClient: (dbValue:
|
|
622
|
-
toDb: (clientValue: string) =>
|
|
621
|
+
toClient: (dbValue: number) => string;
|
|
622
|
+
toDb: (clientValue: string) => number;
|
|
623
623
|
}) => {
|
|
624
624
|
sql: {
|
|
625
625
|
type: "int";
|
|
626
626
|
};
|
|
627
|
-
zodDbSchema:
|
|
627
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
628
628
|
zodClientSchema: import("zod").ZodString;
|
|
629
629
|
jsonSchema: any;
|
|
630
630
|
defaultValue: string;
|
|
631
|
-
toClient: (dbValue:
|
|
632
|
-
toDb: (clientValue: string) =>
|
|
631
|
+
toClient: (dbValue: number) => string;
|
|
632
|
+
toDb: (clientValue: string) => number;
|
|
633
633
|
transforms: {
|
|
634
634
|
toClient: string;
|
|
635
635
|
toDb: string;
|
|
@@ -640,12 +640,12 @@ declare const schemas: {
|
|
|
640
640
|
sql: {
|
|
641
641
|
type: "text";
|
|
642
642
|
};
|
|
643
|
-
zodDbSchema:
|
|
643
|
+
zodDbSchema: import("zod").ZodString;
|
|
644
644
|
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
645
645
|
jsonSchema: any;
|
|
646
646
|
defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
647
|
-
toClient: (dbValue:
|
|
648
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) =>
|
|
647
|
+
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
648
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
649
649
|
transforms: {
|
|
650
650
|
toClient: string;
|
|
651
651
|
toDb: string;
|
|
@@ -655,12 +655,12 @@ declare const schemas: {
|
|
|
655
655
|
sql: {
|
|
656
656
|
type: "int";
|
|
657
657
|
};
|
|
658
|
-
zodDbSchema:
|
|
658
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
659
659
|
zodClientSchema: import("zod").ZodBoolean;
|
|
660
660
|
jsonSchema: any;
|
|
661
661
|
defaultValue: boolean;
|
|
662
|
-
toClient: (dbValue:
|
|
663
|
-
toDb: (clientValue: boolean) =>
|
|
662
|
+
toClient: (dbValue: number) => boolean;
|
|
663
|
+
toDb: (clientValue: boolean) => number;
|
|
664
664
|
transforms: {
|
|
665
665
|
toClient: string;
|
|
666
666
|
toDb: string;
|
|
@@ -677,24 +677,24 @@ declare const schemas: {
|
|
|
677
677
|
type: "int";
|
|
678
678
|
pk: true;
|
|
679
679
|
};
|
|
680
|
-
zodDbSchema:
|
|
680
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
681
681
|
zodClientSchema: import("zod").ZodString;
|
|
682
682
|
jsonSchema: any;
|
|
683
683
|
defaultValue: string;
|
|
684
684
|
transform: (transforms: {
|
|
685
|
-
toClient: (dbValue:
|
|
686
|
-
toDb: (clientValue: string) =>
|
|
685
|
+
toClient: (dbValue: number) => string;
|
|
686
|
+
toDb: (clientValue: string) => number;
|
|
687
687
|
}) => {
|
|
688
688
|
sql: {
|
|
689
689
|
type: "int";
|
|
690
690
|
pk: true;
|
|
691
691
|
};
|
|
692
|
-
zodDbSchema:
|
|
692
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
693
693
|
zodClientSchema: import("zod").ZodString;
|
|
694
694
|
jsonSchema: any;
|
|
695
695
|
defaultValue: string;
|
|
696
|
-
toClient: (dbValue:
|
|
697
|
-
toDb: (clientValue: string) =>
|
|
696
|
+
toClient: (dbValue: number) => string;
|
|
697
|
+
toDb: (clientValue: string) => number;
|
|
698
698
|
transforms: {
|
|
699
699
|
toClient: string;
|
|
700
700
|
toDb: string;
|
|
@@ -727,7 +727,7 @@ declare const schemas: {
|
|
|
727
727
|
type: "varchar";
|
|
728
728
|
length: number;
|
|
729
729
|
};
|
|
730
|
-
zodDbSchema:
|
|
730
|
+
zodDbSchema: import("zod").ZodString;
|
|
731
731
|
zodClientSchema: ClientType;
|
|
732
732
|
jsonSchema: any;
|
|
733
733
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -735,28 +735,28 @@ declare const schemas: {
|
|
|
735
735
|
defaultValue: Date;
|
|
736
736
|
} : never);
|
|
737
737
|
transform: (transforms: {
|
|
738
|
-
toClient: (dbValue:
|
|
739
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
738
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
739
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
740
740
|
}) => {
|
|
741
741
|
sql: {
|
|
742
742
|
type: "varchar";
|
|
743
743
|
length: number;
|
|
744
744
|
};
|
|
745
|
-
zodDbSchema:
|
|
745
|
+
zodDbSchema: import("zod").ZodString;
|
|
746
746
|
zodClientSchema: ClientType;
|
|
747
747
|
jsonSchema: any;
|
|
748
748
|
defaultValue: DefaultValue;
|
|
749
|
-
toClient: (dbValue:
|
|
750
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
749
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
750
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
751
751
|
transforms: {
|
|
752
752
|
toClient: string;
|
|
753
753
|
toDb: string;
|
|
754
754
|
};
|
|
755
755
|
};
|
|
756
756
|
};
|
|
757
|
-
db: <ServerType extends import("zod").ZodTypeAny>(assert: (tools: {
|
|
757
|
+
db: <ServerType extends import("zod").ZodTypeAny>(assert: ServerType | ((tools: {
|
|
758
758
|
zod: import("zod").ZodString;
|
|
759
|
-
}) => ServerType) => {
|
|
759
|
+
}) => ServerType)) => {
|
|
760
760
|
sql: {
|
|
761
761
|
type: "varchar";
|
|
762
762
|
length: number;
|
|
@@ -782,7 +782,7 @@ declare const schemas: {
|
|
|
782
782
|
type: "varchar";
|
|
783
783
|
length: number;
|
|
784
784
|
};
|
|
785
|
-
zodDbSchema:
|
|
785
|
+
zodDbSchema: import("zod").ZodString | ServerType;
|
|
786
786
|
zodClientSchema: ClientType;
|
|
787
787
|
jsonSchema: any;
|
|
788
788
|
defaultValue: DefaultValue | (DefaultValue extends Date ? {
|
|
@@ -790,19 +790,19 @@ declare const schemas: {
|
|
|
790
790
|
defaultValue: Date;
|
|
791
791
|
} : never);
|
|
792
792
|
transform: (transforms: {
|
|
793
|
-
toClient: (dbValue:
|
|
794
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
793
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
794
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
795
795
|
}) => {
|
|
796
796
|
sql: {
|
|
797
797
|
type: "varchar";
|
|
798
798
|
length: number;
|
|
799
799
|
};
|
|
800
|
-
zodDbSchema:
|
|
800
|
+
zodDbSchema: import("zod").ZodString | ServerType;
|
|
801
801
|
zodClientSchema: ClientType;
|
|
802
802
|
jsonSchema: any;
|
|
803
803
|
defaultValue: DefaultValue;
|
|
804
|
-
toClient: (dbValue:
|
|
805
|
-
toDb: (clientValue: import("zod").TypeOf<ClientType>) =>
|
|
804
|
+
toClient: (dbValue: string) => import("zod").TypeOf<ClientType>;
|
|
805
|
+
toDb: (clientValue: import("zod").TypeOf<ClientType>) => string;
|
|
806
806
|
transforms: {
|
|
807
807
|
toClient: string;
|
|
808
808
|
toDb: string;
|
|
@@ -815,23 +815,23 @@ declare const schemas: {
|
|
|
815
815
|
sql: {
|
|
816
816
|
type: "int";
|
|
817
817
|
};
|
|
818
|
-
zodDbSchema:
|
|
818
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
819
819
|
zodClientSchema: import("zod").ZodString;
|
|
820
820
|
jsonSchema: any;
|
|
821
821
|
defaultValue: string;
|
|
822
822
|
transform: (transforms: {
|
|
823
|
-
toClient: (dbValue:
|
|
824
|
-
toDb: (clientValue: string) =>
|
|
823
|
+
toClient: (dbValue: number) => string;
|
|
824
|
+
toDb: (clientValue: string) => number;
|
|
825
825
|
}) => {
|
|
826
826
|
sql: {
|
|
827
827
|
type: "int";
|
|
828
828
|
};
|
|
829
|
-
zodDbSchema:
|
|
829
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
830
830
|
zodClientSchema: import("zod").ZodString;
|
|
831
831
|
jsonSchema: any;
|
|
832
832
|
defaultValue: string;
|
|
833
|
-
toClient: (dbValue:
|
|
834
|
-
toDb: (clientValue: string) =>
|
|
833
|
+
toClient: (dbValue: number) => string;
|
|
834
|
+
toDb: (clientValue: string) => number;
|
|
835
835
|
transforms: {
|
|
836
836
|
toClient: string;
|
|
837
837
|
toDb: string;
|
|
@@ -842,12 +842,12 @@ declare const schemas: {
|
|
|
842
842
|
sql: {
|
|
843
843
|
type: "text";
|
|
844
844
|
};
|
|
845
|
-
zodDbSchema:
|
|
845
|
+
zodDbSchema: import("zod").ZodString;
|
|
846
846
|
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
847
847
|
jsonSchema: any;
|
|
848
848
|
defaultValue: ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
849
|
-
toClient: (dbValue:
|
|
850
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) =>
|
|
849
|
+
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
850
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
851
851
|
transforms: {
|
|
852
852
|
toClient: string;
|
|
853
853
|
toDb: string;
|
|
@@ -857,12 +857,12 @@ declare const schemas: {
|
|
|
857
857
|
sql: {
|
|
858
858
|
type: "int";
|
|
859
859
|
};
|
|
860
|
-
zodDbSchema:
|
|
860
|
+
zodDbSchema: import("zod").ZodNumber;
|
|
861
861
|
zodClientSchema: import("zod").ZodBoolean;
|
|
862
862
|
jsonSchema: any;
|
|
863
863
|
defaultValue: boolean;
|
|
864
|
-
toClient: (dbValue:
|
|
865
|
-
toDb: (clientValue: boolean) =>
|
|
864
|
+
toClient: (dbValue: number) => boolean;
|
|
865
|
+
toDb: (clientValue: boolean) => number;
|
|
866
866
|
transforms: {
|
|
867
867
|
toClient: string;
|
|
868
868
|
toDb: string;
|