cogsbox-shape 0.5.28 → 0.5.30
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 +898 -202
- package/dist/example/user.d.ts +898 -202
- package/dist/example/user.js +2 -2
- package/dist/schema.d.ts +174 -180
- package/dist/schema.js +25 -22
- package/package.json +1 -1
package/dist/example/schema.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const schemas: {
|
|
|
9
9
|
};
|
|
10
10
|
zodSqlSchema: import("zod").ZodNumber;
|
|
11
11
|
zodNewSchema: import("zod").ZodNumber;
|
|
12
|
-
initialValue:
|
|
12
|
+
initialValue: number;
|
|
13
13
|
zodClientSchema: import("zod").ZodNumber;
|
|
14
14
|
zodValidationSchema: import("zod").ZodNumber;
|
|
15
15
|
};
|
|
@@ -25,7 +25,7 @@ declare const schemas: {
|
|
|
25
25
|
};
|
|
26
26
|
zodSqlSchema: import("zod").ZodNumber;
|
|
27
27
|
zodNewSchema: import("zod").ZodNumber;
|
|
28
|
-
initialValue:
|
|
28
|
+
initialValue: number;
|
|
29
29
|
zodClientSchema: import("zod").ZodNumber;
|
|
30
30
|
zodValidationSchema: TValidationNext;
|
|
31
31
|
};
|
|
@@ -40,7 +40,7 @@ declare const schemas: {
|
|
|
40
40
|
};
|
|
41
41
|
zodSqlSchema: import("zod").ZodNumber;
|
|
42
42
|
zodNewSchema: import("zod").ZodNumber;
|
|
43
|
-
initialValue:
|
|
43
|
+
initialValue: number;
|
|
44
44
|
zodClientSchema: import("zod").ZodNumber;
|
|
45
45
|
zodValidationSchema: TValidationNext;
|
|
46
46
|
} & {
|
|
@@ -62,7 +62,7 @@ declare const schemas: {
|
|
|
62
62
|
};
|
|
63
63
|
zodSqlSchema: import("zod").ZodNumber;
|
|
64
64
|
zodNewSchema: import("zod").ZodNumber;
|
|
65
|
-
initialValue:
|
|
65
|
+
initialValue: number;
|
|
66
66
|
zodClientSchema: TClientNext;
|
|
67
67
|
zodValidationSchema: TClientNext;
|
|
68
68
|
};
|
|
@@ -78,7 +78,7 @@ declare const schemas: {
|
|
|
78
78
|
};
|
|
79
79
|
zodSqlSchema: import("zod").ZodNumber;
|
|
80
80
|
zodNewSchema: import("zod").ZodNumber;
|
|
81
|
-
initialValue:
|
|
81
|
+
initialValue: number;
|
|
82
82
|
zodClientSchema: TClientNext;
|
|
83
83
|
zodValidationSchema: TValidationNext;
|
|
84
84
|
};
|
|
@@ -93,7 +93,7 @@ declare const schemas: {
|
|
|
93
93
|
};
|
|
94
94
|
zodSqlSchema: import("zod").ZodNumber;
|
|
95
95
|
zodNewSchema: import("zod").ZodNumber;
|
|
96
|
-
initialValue:
|
|
96
|
+
initialValue: number;
|
|
97
97
|
zodClientSchema: TClientNext;
|
|
98
98
|
zodValidationSchema: TValidationNext;
|
|
99
99
|
} & {
|
|
@@ -115,7 +115,7 @@ declare const schemas: {
|
|
|
115
115
|
};
|
|
116
116
|
zodSqlSchema: import("zod").ZodNumber;
|
|
117
117
|
zodNewSchema: import("zod").ZodNumber;
|
|
118
|
-
initialValue:
|
|
118
|
+
initialValue: number;
|
|
119
119
|
zodClientSchema: TClientNext;
|
|
120
120
|
zodValidationSchema: TClientNext;
|
|
121
121
|
} & {
|
|
@@ -137,7 +137,7 @@ declare const schemas: {
|
|
|
137
137
|
};
|
|
138
138
|
zodSqlSchema: import("zod").ZodNumber;
|
|
139
139
|
zodNewSchema: import("zod").ZodNumber;
|
|
140
|
-
initialValue:
|
|
140
|
+
initialValue: number;
|
|
141
141
|
zodClientSchema: import("zod").ZodNumber;
|
|
142
142
|
zodValidationSchema: import("zod").ZodNumber;
|
|
143
143
|
} & {
|
|
@@ -157,7 +157,7 @@ declare const schemas: {
|
|
|
157
157
|
};
|
|
158
158
|
zodSqlSchema: import("zod").ZodNumber;
|
|
159
159
|
zodNewSchema: TNewNext;
|
|
160
|
-
initialValue:
|
|
160
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
161
161
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
162
162
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
163
163
|
};
|
|
@@ -173,7 +173,7 @@ declare const schemas: {
|
|
|
173
173
|
};
|
|
174
174
|
zodSqlSchema: import("zod").ZodNumber;
|
|
175
175
|
zodNewSchema: TNewNext;
|
|
176
|
-
initialValue:
|
|
176
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
177
177
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
178
178
|
zodValidationSchema: TValidationNext;
|
|
179
179
|
};
|
|
@@ -188,7 +188,7 @@ declare const schemas: {
|
|
|
188
188
|
};
|
|
189
189
|
zodSqlSchema: import("zod").ZodNumber;
|
|
190
190
|
zodNewSchema: TNewNext;
|
|
191
|
-
initialValue:
|
|
191
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
192
192
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
193
193
|
zodValidationSchema: TValidationNext;
|
|
194
194
|
} & {
|
|
@@ -210,7 +210,7 @@ declare const schemas: {
|
|
|
210
210
|
};
|
|
211
211
|
zodSqlSchema: import("zod").ZodNumber;
|
|
212
212
|
zodNewSchema: TNewNext;
|
|
213
|
-
initialValue:
|
|
213
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
214
214
|
zodClientSchema: TClientNext;
|
|
215
215
|
zodValidationSchema: TClientNext;
|
|
216
216
|
};
|
|
@@ -226,7 +226,7 @@ declare const schemas: {
|
|
|
226
226
|
};
|
|
227
227
|
zodSqlSchema: import("zod").ZodNumber;
|
|
228
228
|
zodNewSchema: TNewNext;
|
|
229
|
-
initialValue:
|
|
229
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
230
230
|
zodClientSchema: TClientNext;
|
|
231
231
|
zodValidationSchema: TValidationNext;
|
|
232
232
|
};
|
|
@@ -241,7 +241,7 @@ declare const schemas: {
|
|
|
241
241
|
};
|
|
242
242
|
zodSqlSchema: import("zod").ZodNumber;
|
|
243
243
|
zodNewSchema: TNewNext;
|
|
244
|
-
initialValue:
|
|
244
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
245
245
|
zodClientSchema: TClientNext;
|
|
246
246
|
zodValidationSchema: TValidationNext;
|
|
247
247
|
} & {
|
|
@@ -263,7 +263,7 @@ declare const schemas: {
|
|
|
263
263
|
};
|
|
264
264
|
zodSqlSchema: import("zod").ZodNumber;
|
|
265
265
|
zodNewSchema: TNewNext;
|
|
266
|
-
initialValue:
|
|
266
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
267
267
|
zodClientSchema: TClientNext;
|
|
268
268
|
zodValidationSchema: TClientNext;
|
|
269
269
|
} & {
|
|
@@ -285,7 +285,7 @@ declare const schemas: {
|
|
|
285
285
|
};
|
|
286
286
|
zodSqlSchema: import("zod").ZodNumber;
|
|
287
287
|
zodNewSchema: TNewNext;
|
|
288
|
-
initialValue:
|
|
288
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
289
289
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
290
290
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
291
291
|
} & {
|
|
@@ -305,7 +305,7 @@ declare const schemas: {
|
|
|
305
305
|
};
|
|
306
306
|
zodSqlSchema: import("zod").ZodString;
|
|
307
307
|
zodNewSchema: import("zod").ZodString;
|
|
308
|
-
initialValue:
|
|
308
|
+
initialValue: string;
|
|
309
309
|
zodClientSchema: import("zod").ZodString;
|
|
310
310
|
zodValidationSchema: import("zod").ZodString;
|
|
311
311
|
};
|
|
@@ -320,7 +320,7 @@ declare const schemas: {
|
|
|
320
320
|
};
|
|
321
321
|
zodSqlSchema: import("zod").ZodString;
|
|
322
322
|
zodNewSchema: import("zod").ZodString;
|
|
323
|
-
initialValue:
|
|
323
|
+
initialValue: string;
|
|
324
324
|
zodClientSchema: import("zod").ZodString;
|
|
325
325
|
zodValidationSchema: import("zod").ZodString;
|
|
326
326
|
} & {
|
|
@@ -339,7 +339,7 @@ declare const schemas: {
|
|
|
339
339
|
};
|
|
340
340
|
zodSqlSchema: import("zod").ZodString;
|
|
341
341
|
zodNewSchema: import("zod").ZodString;
|
|
342
|
-
initialValue:
|
|
342
|
+
initialValue: string;
|
|
343
343
|
zodClientSchema: import("zod").ZodString;
|
|
344
344
|
zodValidationSchema: import("zod").ZodString;
|
|
345
345
|
};
|
|
@@ -354,7 +354,7 @@ declare const schemas: {
|
|
|
354
354
|
};
|
|
355
355
|
zodSqlSchema: import("zod").ZodString;
|
|
356
356
|
zodNewSchema: import("zod").ZodString;
|
|
357
|
-
initialValue:
|
|
357
|
+
initialValue: string;
|
|
358
358
|
zodClientSchema: import("zod").ZodString;
|
|
359
359
|
zodValidationSchema: import("zod").ZodString;
|
|
360
360
|
} & {
|
|
@@ -373,7 +373,7 @@ declare const schemas: {
|
|
|
373
373
|
};
|
|
374
374
|
zodSqlSchema: import("zod").ZodString;
|
|
375
375
|
zodNewSchema: import("zod").ZodString;
|
|
376
|
-
initialValue:
|
|
376
|
+
initialValue: string;
|
|
377
377
|
zodClientSchema: import("zod").ZodString;
|
|
378
378
|
zodValidationSchema: import("zod").ZodString;
|
|
379
379
|
};
|
|
@@ -388,7 +388,7 @@ declare const schemas: {
|
|
|
388
388
|
};
|
|
389
389
|
zodSqlSchema: import("zod").ZodString;
|
|
390
390
|
zodNewSchema: import("zod").ZodString;
|
|
391
|
-
initialValue:
|
|
391
|
+
initialValue: string;
|
|
392
392
|
zodClientSchema: import("zod").ZodString;
|
|
393
393
|
zodValidationSchema: import("zod").ZodString;
|
|
394
394
|
} & {
|
|
@@ -427,7 +427,7 @@ declare const schemas: {
|
|
|
427
427
|
};
|
|
428
428
|
zodSqlSchema: import("zod").ZodString;
|
|
429
429
|
zodNewSchema: import("zod").ZodString;
|
|
430
|
-
initialValue:
|
|
430
|
+
initialValue: string;
|
|
431
431
|
zodClientSchema: import("zod").ZodString;
|
|
432
432
|
zodValidationSchema: import("zod").ZodString;
|
|
433
433
|
};
|
|
@@ -443,7 +443,7 @@ declare const schemas: {
|
|
|
443
443
|
};
|
|
444
444
|
zodSqlSchema: import("zod").ZodString;
|
|
445
445
|
zodNewSchema: import("zod").ZodString;
|
|
446
|
-
initialValue:
|
|
446
|
+
initialValue: string;
|
|
447
447
|
zodClientSchema: import("zod").ZodString;
|
|
448
448
|
zodValidationSchema: TValidationNext;
|
|
449
449
|
};
|
|
@@ -458,7 +458,7 @@ declare const schemas: {
|
|
|
458
458
|
};
|
|
459
459
|
zodSqlSchema: import("zod").ZodString;
|
|
460
460
|
zodNewSchema: import("zod").ZodString;
|
|
461
|
-
initialValue:
|
|
461
|
+
initialValue: string;
|
|
462
462
|
zodClientSchema: import("zod").ZodString;
|
|
463
463
|
zodValidationSchema: TValidationNext;
|
|
464
464
|
} & {
|
|
@@ -480,7 +480,7 @@ declare const schemas: {
|
|
|
480
480
|
};
|
|
481
481
|
zodSqlSchema: import("zod").ZodString;
|
|
482
482
|
zodNewSchema: import("zod").ZodString;
|
|
483
|
-
initialValue:
|
|
483
|
+
initialValue: string;
|
|
484
484
|
zodClientSchema: TClientNext;
|
|
485
485
|
zodValidationSchema: TClientNext;
|
|
486
486
|
};
|
|
@@ -496,7 +496,7 @@ declare const schemas: {
|
|
|
496
496
|
};
|
|
497
497
|
zodSqlSchema: import("zod").ZodString;
|
|
498
498
|
zodNewSchema: import("zod").ZodString;
|
|
499
|
-
initialValue:
|
|
499
|
+
initialValue: string;
|
|
500
500
|
zodClientSchema: TClientNext;
|
|
501
501
|
zodValidationSchema: TValidationNext;
|
|
502
502
|
};
|
|
@@ -511,7 +511,7 @@ declare const schemas: {
|
|
|
511
511
|
};
|
|
512
512
|
zodSqlSchema: import("zod").ZodString;
|
|
513
513
|
zodNewSchema: import("zod").ZodString;
|
|
514
|
-
initialValue:
|
|
514
|
+
initialValue: string;
|
|
515
515
|
zodClientSchema: TClientNext;
|
|
516
516
|
zodValidationSchema: TValidationNext;
|
|
517
517
|
} & {
|
|
@@ -533,7 +533,7 @@ declare const schemas: {
|
|
|
533
533
|
};
|
|
534
534
|
zodSqlSchema: import("zod").ZodString;
|
|
535
535
|
zodNewSchema: import("zod").ZodString;
|
|
536
|
-
initialValue:
|
|
536
|
+
initialValue: string;
|
|
537
537
|
zodClientSchema: TClientNext;
|
|
538
538
|
zodValidationSchema: TClientNext;
|
|
539
539
|
} & {
|
|
@@ -555,7 +555,7 @@ declare const schemas: {
|
|
|
555
555
|
};
|
|
556
556
|
zodSqlSchema: import("zod").ZodString;
|
|
557
557
|
zodNewSchema: import("zod").ZodString;
|
|
558
|
-
initialValue:
|
|
558
|
+
initialValue: string;
|
|
559
559
|
zodClientSchema: import("zod").ZodString;
|
|
560
560
|
zodValidationSchema: import("zod").ZodString;
|
|
561
561
|
} & {
|
|
@@ -575,7 +575,7 @@ declare const schemas: {
|
|
|
575
575
|
};
|
|
576
576
|
zodSqlSchema: import("zod").ZodString;
|
|
577
577
|
zodNewSchema: TNewNext;
|
|
578
|
-
initialValue:
|
|
578
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
579
579
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
580
580
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
581
581
|
};
|
|
@@ -591,7 +591,7 @@ declare const schemas: {
|
|
|
591
591
|
};
|
|
592
592
|
zodSqlSchema: import("zod").ZodString;
|
|
593
593
|
zodNewSchema: TNewNext;
|
|
594
|
-
initialValue:
|
|
594
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
595
595
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
596
596
|
zodValidationSchema: TValidationNext;
|
|
597
597
|
};
|
|
@@ -606,7 +606,7 @@ declare const schemas: {
|
|
|
606
606
|
};
|
|
607
607
|
zodSqlSchema: import("zod").ZodString;
|
|
608
608
|
zodNewSchema: TNewNext;
|
|
609
|
-
initialValue:
|
|
609
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
610
610
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
611
611
|
zodValidationSchema: TValidationNext;
|
|
612
612
|
} & {
|
|
@@ -628,7 +628,7 @@ declare const schemas: {
|
|
|
628
628
|
};
|
|
629
629
|
zodSqlSchema: import("zod").ZodString;
|
|
630
630
|
zodNewSchema: TNewNext;
|
|
631
|
-
initialValue:
|
|
631
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
632
632
|
zodClientSchema: TClientNext;
|
|
633
633
|
zodValidationSchema: TClientNext;
|
|
634
634
|
};
|
|
@@ -644,7 +644,7 @@ declare const schemas: {
|
|
|
644
644
|
};
|
|
645
645
|
zodSqlSchema: import("zod").ZodString;
|
|
646
646
|
zodNewSchema: TNewNext;
|
|
647
|
-
initialValue:
|
|
647
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
648
648
|
zodClientSchema: TClientNext;
|
|
649
649
|
zodValidationSchema: TValidationNext;
|
|
650
650
|
};
|
|
@@ -659,7 +659,7 @@ declare const schemas: {
|
|
|
659
659
|
};
|
|
660
660
|
zodSqlSchema: import("zod").ZodString;
|
|
661
661
|
zodNewSchema: TNewNext;
|
|
662
|
-
initialValue:
|
|
662
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
663
663
|
zodClientSchema: TClientNext;
|
|
664
664
|
zodValidationSchema: TValidationNext;
|
|
665
665
|
} & {
|
|
@@ -681,7 +681,7 @@ declare const schemas: {
|
|
|
681
681
|
};
|
|
682
682
|
zodSqlSchema: import("zod").ZodString;
|
|
683
683
|
zodNewSchema: TNewNext;
|
|
684
|
-
initialValue:
|
|
684
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
685
685
|
zodClientSchema: TClientNext;
|
|
686
686
|
zodValidationSchema: TClientNext;
|
|
687
687
|
} & {
|
|
@@ -703,7 +703,7 @@ declare const schemas: {
|
|
|
703
703
|
};
|
|
704
704
|
zodSqlSchema: import("zod").ZodString;
|
|
705
705
|
zodNewSchema: TNewNext;
|
|
706
|
-
initialValue:
|
|
706
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
707
707
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
708
708
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
709
709
|
} & {
|
|
@@ -715,69 +715,301 @@ declare const schemas: {
|
|
|
715
715
|
};
|
|
716
716
|
};
|
|
717
717
|
} | {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
};
|
|
722
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
723
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
724
|
-
initialValue: undefined;
|
|
725
|
-
zodClientSchema: import("zod").ZodString;
|
|
726
|
-
zodValidationSchema: import("zod").ZodString;
|
|
727
|
-
};
|
|
728
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
729
|
-
sql: import("zod").ZodNumber;
|
|
730
|
-
initialState: import("zod").ZodNumber;
|
|
731
|
-
client: import("zod").ZodString;
|
|
732
|
-
}) => TValidationNext)) => {
|
|
718
|
+
field: import("zod").ZodNumber;
|
|
719
|
+
type: "reference";
|
|
720
|
+
to: () => () => {
|
|
733
721
|
config: {
|
|
734
722
|
sql: {
|
|
735
723
|
type: "int";
|
|
724
|
+
pk: true;
|
|
736
725
|
};
|
|
737
726
|
zodSqlSchema: import("zod").ZodNumber;
|
|
738
727
|
zodNewSchema: import("zod").ZodNumber;
|
|
739
|
-
initialValue:
|
|
740
|
-
zodClientSchema: import("zod").
|
|
741
|
-
zodValidationSchema:
|
|
728
|
+
initialValue: number;
|
|
729
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
730
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
731
|
+
};
|
|
732
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
733
|
+
sql: import("zod").ZodNumber;
|
|
734
|
+
initialState: import("zod").ZodNumber;
|
|
735
|
+
client: import("zod").ZodNumber;
|
|
736
|
+
}) => TValidationNext)) => {
|
|
737
|
+
config: {
|
|
738
|
+
sql: {
|
|
739
|
+
type: "int";
|
|
740
|
+
pk: true;
|
|
741
|
+
};
|
|
742
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
743
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
744
|
+
initialValue: number;
|
|
745
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
746
|
+
zodValidationSchema: TValidationNext;
|
|
747
|
+
};
|
|
748
|
+
transform: (transforms: {
|
|
749
|
+
toClient: (dbValue: number) => number;
|
|
750
|
+
toDb: (clientValue: number) => number;
|
|
751
|
+
}) => {
|
|
752
|
+
config: {
|
|
753
|
+
sql: {
|
|
754
|
+
type: "int";
|
|
755
|
+
pk: true;
|
|
756
|
+
};
|
|
757
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
758
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
759
|
+
initialValue: number;
|
|
760
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
761
|
+
zodValidationSchema: TValidationNext;
|
|
762
|
+
} & {
|
|
763
|
+
transforms: {
|
|
764
|
+
toClient: (dbValue: number) => number;
|
|
765
|
+
toDb: (clientValue: number) => number;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
771
|
+
sql: import("zod").ZodNumber;
|
|
772
|
+
initialState: import("zod").ZodNumber;
|
|
773
|
+
}) => TClientNext)) => {
|
|
774
|
+
config: {
|
|
775
|
+
sql: {
|
|
776
|
+
type: "int";
|
|
777
|
+
pk: true;
|
|
778
|
+
};
|
|
779
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
780
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
781
|
+
initialValue: number;
|
|
782
|
+
zodClientSchema: TClientNext;
|
|
783
|
+
zodValidationSchema: TClientNext;
|
|
784
|
+
};
|
|
785
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
786
|
+
sql: import("zod").ZodNumber;
|
|
787
|
+
initialState: import("zod").ZodNumber;
|
|
788
|
+
client: TClientNext;
|
|
789
|
+
}) => TValidationNext)) => {
|
|
790
|
+
config: {
|
|
791
|
+
sql: {
|
|
792
|
+
type: "int";
|
|
793
|
+
pk: true;
|
|
794
|
+
};
|
|
795
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
796
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
797
|
+
initialValue: number;
|
|
798
|
+
zodClientSchema: TClientNext;
|
|
799
|
+
zodValidationSchema: TValidationNext;
|
|
800
|
+
};
|
|
801
|
+
transform: (transforms: {
|
|
802
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
803
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
804
|
+
}) => {
|
|
805
|
+
config: {
|
|
806
|
+
sql: {
|
|
807
|
+
type: "int";
|
|
808
|
+
pk: true;
|
|
809
|
+
};
|
|
810
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
811
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
812
|
+
initialValue: number;
|
|
813
|
+
zodClientSchema: TClientNext;
|
|
814
|
+
zodValidationSchema: TValidationNext;
|
|
815
|
+
} & {
|
|
816
|
+
transforms: {
|
|
817
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
818
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
transform: (transforms: {
|
|
824
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
825
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
826
|
+
}) => {
|
|
827
|
+
config: {
|
|
828
|
+
sql: {
|
|
829
|
+
type: "int";
|
|
830
|
+
pk: true;
|
|
831
|
+
};
|
|
832
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
833
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
834
|
+
initialValue: number;
|
|
835
|
+
zodClientSchema: TClientNext;
|
|
836
|
+
zodValidationSchema: TClientNext;
|
|
837
|
+
} & {
|
|
838
|
+
transforms: {
|
|
839
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
840
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
742
844
|
};
|
|
743
845
|
transform: (transforms: {
|
|
744
|
-
toClient: (dbValue: number) =>
|
|
745
|
-
toDb: (clientValue:
|
|
846
|
+
toClient: (dbValue: number) => number;
|
|
847
|
+
toDb: (clientValue: number) => number;
|
|
746
848
|
}) => {
|
|
747
849
|
config: {
|
|
748
850
|
sql: {
|
|
749
851
|
type: "int";
|
|
852
|
+
pk: true;
|
|
750
853
|
};
|
|
751
854
|
zodSqlSchema: import("zod").ZodNumber;
|
|
752
855
|
zodNewSchema: import("zod").ZodNumber;
|
|
753
|
-
initialValue:
|
|
754
|
-
zodClientSchema: import("zod").
|
|
755
|
-
zodValidationSchema:
|
|
856
|
+
initialValue: number;
|
|
857
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
858
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
756
859
|
} & {
|
|
757
860
|
transforms: {
|
|
758
|
-
toClient: (dbValue: number) =>
|
|
759
|
-
toDb: (clientValue:
|
|
861
|
+
toClient: (dbValue: number) => number;
|
|
862
|
+
toDb: (clientValue: number) => number;
|
|
760
863
|
};
|
|
761
864
|
};
|
|
762
865
|
};
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
866
|
+
initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
867
|
+
sql: import("zod").ZodNumber;
|
|
868
|
+
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
869
|
+
config: {
|
|
870
|
+
sql: {
|
|
871
|
+
type: "int";
|
|
872
|
+
pk: true;
|
|
873
|
+
};
|
|
874
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
875
|
+
zodNewSchema: TNewNext;
|
|
876
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
877
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
878
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
771
879
|
};
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
880
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
881
|
+
sql: import("zod").ZodNumber;
|
|
882
|
+
initialState: TNewNext;
|
|
883
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
884
|
+
}) => TValidationNext)) => {
|
|
885
|
+
config: {
|
|
886
|
+
sql: {
|
|
887
|
+
type: "int";
|
|
888
|
+
pk: true;
|
|
889
|
+
};
|
|
890
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
891
|
+
zodNewSchema: TNewNext;
|
|
892
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
893
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
894
|
+
zodValidationSchema: TValidationNext;
|
|
895
|
+
};
|
|
896
|
+
transform: (transforms: {
|
|
897
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
898
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
899
|
+
}) => {
|
|
900
|
+
config: {
|
|
901
|
+
sql: {
|
|
902
|
+
type: "int";
|
|
903
|
+
pk: true;
|
|
904
|
+
};
|
|
905
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
906
|
+
zodNewSchema: TNewNext;
|
|
907
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
908
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
909
|
+
zodValidationSchema: TValidationNext;
|
|
910
|
+
} & {
|
|
911
|
+
transforms: {
|
|
912
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
913
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
919
|
+
sql: import("zod").ZodNumber;
|
|
920
|
+
initialState: TNewNext;
|
|
921
|
+
}) => TClientNext)) => {
|
|
922
|
+
config: {
|
|
923
|
+
sql: {
|
|
924
|
+
type: "int";
|
|
925
|
+
pk: true;
|
|
926
|
+
};
|
|
927
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
928
|
+
zodNewSchema: TNewNext;
|
|
929
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
930
|
+
zodClientSchema: TClientNext;
|
|
931
|
+
zodValidationSchema: TClientNext;
|
|
932
|
+
};
|
|
933
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
934
|
+
sql: import("zod").ZodNumber;
|
|
935
|
+
initialState: TNewNext;
|
|
936
|
+
client: TClientNext;
|
|
937
|
+
}) => TValidationNext)) => {
|
|
938
|
+
config: {
|
|
939
|
+
sql: {
|
|
940
|
+
type: "int";
|
|
941
|
+
pk: true;
|
|
942
|
+
};
|
|
943
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
944
|
+
zodNewSchema: TNewNext;
|
|
945
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
946
|
+
zodClientSchema: TClientNext;
|
|
947
|
+
zodValidationSchema: TValidationNext;
|
|
948
|
+
};
|
|
949
|
+
transform: (transforms: {
|
|
950
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
951
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
952
|
+
}) => {
|
|
953
|
+
config: {
|
|
954
|
+
sql: {
|
|
955
|
+
type: "int";
|
|
956
|
+
pk: true;
|
|
957
|
+
};
|
|
958
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
959
|
+
zodNewSchema: TNewNext;
|
|
960
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
961
|
+
zodClientSchema: TClientNext;
|
|
962
|
+
zodValidationSchema: TValidationNext;
|
|
963
|
+
} & {
|
|
964
|
+
transforms: {
|
|
965
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
966
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
transform: (transforms: {
|
|
972
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
973
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
974
|
+
}) => {
|
|
975
|
+
config: {
|
|
976
|
+
sql: {
|
|
977
|
+
type: "int";
|
|
978
|
+
pk: true;
|
|
979
|
+
};
|
|
980
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
981
|
+
zodNewSchema: TNewNext;
|
|
982
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
983
|
+
zodClientSchema: TClientNext;
|
|
984
|
+
zodValidationSchema: TClientNext;
|
|
985
|
+
} & {
|
|
986
|
+
transforms: {
|
|
987
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
988
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
transform: (transforms: {
|
|
994
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
995
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
996
|
+
}) => {
|
|
997
|
+
config: {
|
|
998
|
+
sql: {
|
|
999
|
+
type: "int";
|
|
1000
|
+
pk: true;
|
|
1001
|
+
};
|
|
1002
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1003
|
+
zodNewSchema: TNewNext;
|
|
1004
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1005
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1006
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1007
|
+
} & {
|
|
1008
|
+
transforms: {
|
|
1009
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1010
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
781
1013
|
};
|
|
782
1014
|
};
|
|
783
1015
|
};
|
|
@@ -788,7 +1020,7 @@ declare const schemas: {
|
|
|
788
1020
|
};
|
|
789
1021
|
zodSqlSchema: import("zod").ZodString;
|
|
790
1022
|
zodNewSchema: import("zod").ZodString;
|
|
791
|
-
initialValue:
|
|
1023
|
+
initialValue: string;
|
|
792
1024
|
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
793
1025
|
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
794
1026
|
} & {
|
|
@@ -804,7 +1036,7 @@ declare const schemas: {
|
|
|
804
1036
|
};
|
|
805
1037
|
zodSqlSchema: import("zod").ZodNumber;
|
|
806
1038
|
zodNewSchema: import("zod").ZodNumber;
|
|
807
|
-
initialValue:
|
|
1039
|
+
initialValue: number;
|
|
808
1040
|
zodClientSchema: import("zod").ZodBoolean;
|
|
809
1041
|
zodValidationSchema: import("zod").ZodBoolean;
|
|
810
1042
|
} & {
|
|
@@ -842,7 +1074,7 @@ declare const schemas: {
|
|
|
842
1074
|
};
|
|
843
1075
|
zodSqlSchema: import("zod").ZodString;
|
|
844
1076
|
zodNewSchema: import("zod").ZodString;
|
|
845
|
-
initialValue:
|
|
1077
|
+
initialValue: string;
|
|
846
1078
|
zodClientSchema: import("zod").ZodString;
|
|
847
1079
|
zodValidationSchema: import("zod").ZodString;
|
|
848
1080
|
};
|
|
@@ -858,7 +1090,7 @@ declare const schemas: {
|
|
|
858
1090
|
};
|
|
859
1091
|
zodSqlSchema: import("zod").ZodString;
|
|
860
1092
|
zodNewSchema: import("zod").ZodString;
|
|
861
|
-
initialValue:
|
|
1093
|
+
initialValue: string;
|
|
862
1094
|
zodClientSchema: import("zod").ZodString;
|
|
863
1095
|
zodValidationSchema: TValidationNext;
|
|
864
1096
|
};
|
|
@@ -873,7 +1105,7 @@ declare const schemas: {
|
|
|
873
1105
|
};
|
|
874
1106
|
zodSqlSchema: import("zod").ZodString;
|
|
875
1107
|
zodNewSchema: import("zod").ZodString;
|
|
876
|
-
initialValue:
|
|
1108
|
+
initialValue: string;
|
|
877
1109
|
zodClientSchema: import("zod").ZodString;
|
|
878
1110
|
zodValidationSchema: TValidationNext;
|
|
879
1111
|
} & {
|
|
@@ -895,7 +1127,7 @@ declare const schemas: {
|
|
|
895
1127
|
};
|
|
896
1128
|
zodSqlSchema: import("zod").ZodString;
|
|
897
1129
|
zodNewSchema: import("zod").ZodString;
|
|
898
|
-
initialValue:
|
|
1130
|
+
initialValue: string;
|
|
899
1131
|
zodClientSchema: TClientNext;
|
|
900
1132
|
zodValidationSchema: TClientNext;
|
|
901
1133
|
};
|
|
@@ -911,7 +1143,7 @@ declare const schemas: {
|
|
|
911
1143
|
};
|
|
912
1144
|
zodSqlSchema: import("zod").ZodString;
|
|
913
1145
|
zodNewSchema: import("zod").ZodString;
|
|
914
|
-
initialValue:
|
|
1146
|
+
initialValue: string;
|
|
915
1147
|
zodClientSchema: TClientNext;
|
|
916
1148
|
zodValidationSchema: TValidationNext;
|
|
917
1149
|
};
|
|
@@ -926,7 +1158,7 @@ declare const schemas: {
|
|
|
926
1158
|
};
|
|
927
1159
|
zodSqlSchema: import("zod").ZodString;
|
|
928
1160
|
zodNewSchema: import("zod").ZodString;
|
|
929
|
-
initialValue:
|
|
1161
|
+
initialValue: string;
|
|
930
1162
|
zodClientSchema: TClientNext;
|
|
931
1163
|
zodValidationSchema: TValidationNext;
|
|
932
1164
|
} & {
|
|
@@ -948,7 +1180,7 @@ declare const schemas: {
|
|
|
948
1180
|
};
|
|
949
1181
|
zodSqlSchema: import("zod").ZodString;
|
|
950
1182
|
zodNewSchema: import("zod").ZodString;
|
|
951
|
-
initialValue:
|
|
1183
|
+
initialValue: string;
|
|
952
1184
|
zodClientSchema: TClientNext;
|
|
953
1185
|
zodValidationSchema: TClientNext;
|
|
954
1186
|
} & {
|
|
@@ -970,7 +1202,7 @@ declare const schemas: {
|
|
|
970
1202
|
};
|
|
971
1203
|
zodSqlSchema: import("zod").ZodString;
|
|
972
1204
|
zodNewSchema: import("zod").ZodString;
|
|
973
|
-
initialValue:
|
|
1205
|
+
initialValue: string;
|
|
974
1206
|
zodClientSchema: import("zod").ZodString;
|
|
975
1207
|
zodValidationSchema: import("zod").ZodString;
|
|
976
1208
|
} & {
|
|
@@ -990,7 +1222,7 @@ declare const schemas: {
|
|
|
990
1222
|
};
|
|
991
1223
|
zodSqlSchema: import("zod").ZodString;
|
|
992
1224
|
zodNewSchema: TNewNext;
|
|
993
|
-
initialValue:
|
|
1225
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
994
1226
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
995
1227
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
996
1228
|
};
|
|
@@ -1006,7 +1238,7 @@ declare const schemas: {
|
|
|
1006
1238
|
};
|
|
1007
1239
|
zodSqlSchema: import("zod").ZodString;
|
|
1008
1240
|
zodNewSchema: TNewNext;
|
|
1009
|
-
initialValue:
|
|
1241
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1010
1242
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1011
1243
|
zodValidationSchema: TValidationNext;
|
|
1012
1244
|
};
|
|
@@ -1021,7 +1253,7 @@ declare const schemas: {
|
|
|
1021
1253
|
};
|
|
1022
1254
|
zodSqlSchema: import("zod").ZodString;
|
|
1023
1255
|
zodNewSchema: TNewNext;
|
|
1024
|
-
initialValue:
|
|
1256
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1025
1257
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1026
1258
|
zodValidationSchema: TValidationNext;
|
|
1027
1259
|
} & {
|
|
@@ -1043,7 +1275,7 @@ declare const schemas: {
|
|
|
1043
1275
|
};
|
|
1044
1276
|
zodSqlSchema: import("zod").ZodString;
|
|
1045
1277
|
zodNewSchema: TNewNext;
|
|
1046
|
-
initialValue:
|
|
1278
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1047
1279
|
zodClientSchema: TClientNext;
|
|
1048
1280
|
zodValidationSchema: TClientNext;
|
|
1049
1281
|
};
|
|
@@ -1059,7 +1291,7 @@ declare const schemas: {
|
|
|
1059
1291
|
};
|
|
1060
1292
|
zodSqlSchema: import("zod").ZodString;
|
|
1061
1293
|
zodNewSchema: TNewNext;
|
|
1062
|
-
initialValue:
|
|
1294
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1063
1295
|
zodClientSchema: TClientNext;
|
|
1064
1296
|
zodValidationSchema: TValidationNext;
|
|
1065
1297
|
};
|
|
@@ -1074,7 +1306,7 @@ declare const schemas: {
|
|
|
1074
1306
|
};
|
|
1075
1307
|
zodSqlSchema: import("zod").ZodString;
|
|
1076
1308
|
zodNewSchema: TNewNext;
|
|
1077
|
-
initialValue:
|
|
1309
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1078
1310
|
zodClientSchema: TClientNext;
|
|
1079
1311
|
zodValidationSchema: TValidationNext;
|
|
1080
1312
|
} & {
|
|
@@ -1096,7 +1328,7 @@ declare const schemas: {
|
|
|
1096
1328
|
};
|
|
1097
1329
|
zodSqlSchema: import("zod").ZodString;
|
|
1098
1330
|
zodNewSchema: TNewNext;
|
|
1099
|
-
initialValue:
|
|
1331
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1100
1332
|
zodClientSchema: TClientNext;
|
|
1101
1333
|
zodValidationSchema: TClientNext;
|
|
1102
1334
|
} & {
|
|
@@ -1118,7 +1350,7 @@ declare const schemas: {
|
|
|
1118
1350
|
};
|
|
1119
1351
|
zodSqlSchema: import("zod").ZodString;
|
|
1120
1352
|
zodNewSchema: TNewNext;
|
|
1121
|
-
initialValue:
|
|
1353
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1122
1354
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1123
1355
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1124
1356
|
} & {
|
|
@@ -1131,69 +1363,301 @@ declare const schemas: {
|
|
|
1131
1363
|
};
|
|
1132
1364
|
};
|
|
1133
1365
|
userId: {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
};
|
|
1138
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
1139
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
1140
|
-
initialValue: undefined;
|
|
1141
|
-
zodClientSchema: import("zod").ZodString;
|
|
1142
|
-
zodValidationSchema: import("zod").ZodString;
|
|
1143
|
-
};
|
|
1144
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1145
|
-
sql: import("zod").ZodNumber;
|
|
1146
|
-
initialState: import("zod").ZodNumber;
|
|
1147
|
-
client: import("zod").ZodString;
|
|
1148
|
-
}) => TValidationNext)) => {
|
|
1366
|
+
field: import("zod").ZodNumber;
|
|
1367
|
+
type: "reference";
|
|
1368
|
+
to: () => () => {
|
|
1149
1369
|
config: {
|
|
1150
1370
|
sql: {
|
|
1151
1371
|
type: "int";
|
|
1372
|
+
pk: true;
|
|
1152
1373
|
};
|
|
1153
1374
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1154
1375
|
zodNewSchema: import("zod").ZodNumber;
|
|
1155
|
-
initialValue:
|
|
1156
|
-
zodClientSchema: import("zod").
|
|
1157
|
-
zodValidationSchema:
|
|
1376
|
+
initialValue: number;
|
|
1377
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1378
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
1379
|
+
};
|
|
1380
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1381
|
+
sql: import("zod").ZodNumber;
|
|
1382
|
+
initialState: import("zod").ZodNumber;
|
|
1383
|
+
client: import("zod").ZodNumber;
|
|
1384
|
+
}) => TValidationNext)) => {
|
|
1385
|
+
config: {
|
|
1386
|
+
sql: {
|
|
1387
|
+
type: "int";
|
|
1388
|
+
pk: true;
|
|
1389
|
+
};
|
|
1390
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1391
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1392
|
+
initialValue: number;
|
|
1393
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1394
|
+
zodValidationSchema: TValidationNext;
|
|
1395
|
+
};
|
|
1396
|
+
transform: (transforms: {
|
|
1397
|
+
toClient: (dbValue: number) => number;
|
|
1398
|
+
toDb: (clientValue: number) => number;
|
|
1399
|
+
}) => {
|
|
1400
|
+
config: {
|
|
1401
|
+
sql: {
|
|
1402
|
+
type: "int";
|
|
1403
|
+
pk: true;
|
|
1404
|
+
};
|
|
1405
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1406
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1407
|
+
initialValue: number;
|
|
1408
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1409
|
+
zodValidationSchema: TValidationNext;
|
|
1410
|
+
} & {
|
|
1411
|
+
transforms: {
|
|
1412
|
+
toClient: (dbValue: number) => number;
|
|
1413
|
+
toDb: (clientValue: number) => number;
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
};
|
|
1417
|
+
};
|
|
1418
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
1419
|
+
sql: import("zod").ZodNumber;
|
|
1420
|
+
initialState: import("zod").ZodNumber;
|
|
1421
|
+
}) => TClientNext)) => {
|
|
1422
|
+
config: {
|
|
1423
|
+
sql: {
|
|
1424
|
+
type: "int";
|
|
1425
|
+
pk: true;
|
|
1426
|
+
};
|
|
1427
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1428
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1429
|
+
initialValue: number;
|
|
1430
|
+
zodClientSchema: TClientNext;
|
|
1431
|
+
zodValidationSchema: TClientNext;
|
|
1432
|
+
};
|
|
1433
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1434
|
+
sql: import("zod").ZodNumber;
|
|
1435
|
+
initialState: import("zod").ZodNumber;
|
|
1436
|
+
client: TClientNext;
|
|
1437
|
+
}) => TValidationNext)) => {
|
|
1438
|
+
config: {
|
|
1439
|
+
sql: {
|
|
1440
|
+
type: "int";
|
|
1441
|
+
pk: true;
|
|
1442
|
+
};
|
|
1443
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1444
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1445
|
+
initialValue: number;
|
|
1446
|
+
zodClientSchema: TClientNext;
|
|
1447
|
+
zodValidationSchema: TValidationNext;
|
|
1448
|
+
};
|
|
1449
|
+
transform: (transforms: {
|
|
1450
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1451
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1452
|
+
}) => {
|
|
1453
|
+
config: {
|
|
1454
|
+
sql: {
|
|
1455
|
+
type: "int";
|
|
1456
|
+
pk: true;
|
|
1457
|
+
};
|
|
1458
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1459
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1460
|
+
initialValue: number;
|
|
1461
|
+
zodClientSchema: TClientNext;
|
|
1462
|
+
zodValidationSchema: TValidationNext;
|
|
1463
|
+
} & {
|
|
1464
|
+
transforms: {
|
|
1465
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1466
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
transform: (transforms: {
|
|
1472
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1473
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1474
|
+
}) => {
|
|
1475
|
+
config: {
|
|
1476
|
+
sql: {
|
|
1477
|
+
type: "int";
|
|
1478
|
+
pk: true;
|
|
1479
|
+
};
|
|
1480
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1481
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1482
|
+
initialValue: number;
|
|
1483
|
+
zodClientSchema: TClientNext;
|
|
1484
|
+
zodValidationSchema: TClientNext;
|
|
1485
|
+
} & {
|
|
1486
|
+
transforms: {
|
|
1487
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1488
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1158
1492
|
};
|
|
1159
1493
|
transform: (transforms: {
|
|
1160
|
-
toClient: (dbValue: number) =>
|
|
1161
|
-
toDb: (clientValue:
|
|
1494
|
+
toClient: (dbValue: number) => number;
|
|
1495
|
+
toDb: (clientValue: number) => number;
|
|
1162
1496
|
}) => {
|
|
1163
1497
|
config: {
|
|
1164
1498
|
sql: {
|
|
1165
1499
|
type: "int";
|
|
1500
|
+
pk: true;
|
|
1166
1501
|
};
|
|
1167
1502
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1168
1503
|
zodNewSchema: import("zod").ZodNumber;
|
|
1169
|
-
initialValue:
|
|
1170
|
-
zodClientSchema: import("zod").
|
|
1171
|
-
zodValidationSchema:
|
|
1504
|
+
initialValue: number;
|
|
1505
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1506
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
1172
1507
|
} & {
|
|
1173
1508
|
transforms: {
|
|
1174
|
-
toClient: (dbValue: number) =>
|
|
1175
|
-
toDb: (clientValue:
|
|
1509
|
+
toClient: (dbValue: number) => number;
|
|
1510
|
+
toDb: (clientValue: number) => number;
|
|
1176
1511
|
};
|
|
1177
1512
|
};
|
|
1178
1513
|
};
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1514
|
+
initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
1515
|
+
sql: import("zod").ZodNumber;
|
|
1516
|
+
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
1517
|
+
config: {
|
|
1518
|
+
sql: {
|
|
1519
|
+
type: "int";
|
|
1520
|
+
pk: true;
|
|
1521
|
+
};
|
|
1522
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1523
|
+
zodNewSchema: TNewNext;
|
|
1524
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1525
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1526
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1187
1527
|
};
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1528
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1529
|
+
sql: import("zod").ZodNumber;
|
|
1530
|
+
initialState: TNewNext;
|
|
1531
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1532
|
+
}) => TValidationNext)) => {
|
|
1533
|
+
config: {
|
|
1534
|
+
sql: {
|
|
1535
|
+
type: "int";
|
|
1536
|
+
pk: true;
|
|
1537
|
+
};
|
|
1538
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1539
|
+
zodNewSchema: TNewNext;
|
|
1540
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1541
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1542
|
+
zodValidationSchema: TValidationNext;
|
|
1543
|
+
};
|
|
1544
|
+
transform: (transforms: {
|
|
1545
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1546
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1547
|
+
}) => {
|
|
1548
|
+
config: {
|
|
1549
|
+
sql: {
|
|
1550
|
+
type: "int";
|
|
1551
|
+
pk: true;
|
|
1552
|
+
};
|
|
1553
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1554
|
+
zodNewSchema: TNewNext;
|
|
1555
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1556
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1557
|
+
zodValidationSchema: TValidationNext;
|
|
1558
|
+
} & {
|
|
1559
|
+
transforms: {
|
|
1560
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1561
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1566
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
1567
|
+
sql: import("zod").ZodNumber;
|
|
1568
|
+
initialState: TNewNext;
|
|
1569
|
+
}) => TClientNext)) => {
|
|
1570
|
+
config: {
|
|
1571
|
+
sql: {
|
|
1572
|
+
type: "int";
|
|
1573
|
+
pk: true;
|
|
1574
|
+
};
|
|
1575
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1576
|
+
zodNewSchema: TNewNext;
|
|
1577
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1578
|
+
zodClientSchema: TClientNext;
|
|
1579
|
+
zodValidationSchema: TClientNext;
|
|
1580
|
+
};
|
|
1581
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1582
|
+
sql: import("zod").ZodNumber;
|
|
1583
|
+
initialState: TNewNext;
|
|
1584
|
+
client: TClientNext;
|
|
1585
|
+
}) => TValidationNext)) => {
|
|
1586
|
+
config: {
|
|
1587
|
+
sql: {
|
|
1588
|
+
type: "int";
|
|
1589
|
+
pk: true;
|
|
1590
|
+
};
|
|
1591
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1592
|
+
zodNewSchema: TNewNext;
|
|
1593
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1594
|
+
zodClientSchema: TClientNext;
|
|
1595
|
+
zodValidationSchema: TValidationNext;
|
|
1596
|
+
};
|
|
1597
|
+
transform: (transforms: {
|
|
1598
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1599
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1600
|
+
}) => {
|
|
1601
|
+
config: {
|
|
1602
|
+
sql: {
|
|
1603
|
+
type: "int";
|
|
1604
|
+
pk: true;
|
|
1605
|
+
};
|
|
1606
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1607
|
+
zodNewSchema: TNewNext;
|
|
1608
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1609
|
+
zodClientSchema: TClientNext;
|
|
1610
|
+
zodValidationSchema: TValidationNext;
|
|
1611
|
+
} & {
|
|
1612
|
+
transforms: {
|
|
1613
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1614
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
transform: (transforms: {
|
|
1620
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1621
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1622
|
+
}) => {
|
|
1623
|
+
config: {
|
|
1624
|
+
sql: {
|
|
1625
|
+
type: "int";
|
|
1626
|
+
pk: true;
|
|
1627
|
+
};
|
|
1628
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1629
|
+
zodNewSchema: TNewNext;
|
|
1630
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1631
|
+
zodClientSchema: TClientNext;
|
|
1632
|
+
zodValidationSchema: TClientNext;
|
|
1633
|
+
} & {
|
|
1634
|
+
transforms: {
|
|
1635
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1636
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
transform: (transforms: {
|
|
1642
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1643
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1644
|
+
}) => {
|
|
1645
|
+
config: {
|
|
1646
|
+
sql: {
|
|
1647
|
+
type: "int";
|
|
1648
|
+
pk: true;
|
|
1649
|
+
};
|
|
1650
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1651
|
+
zodNewSchema: TNewNext;
|
|
1652
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1653
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1654
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1655
|
+
} & {
|
|
1656
|
+
transforms: {
|
|
1657
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1658
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1197
1661
|
};
|
|
1198
1662
|
};
|
|
1199
1663
|
};
|
|
@@ -1205,7 +1669,7 @@ declare const schemas: {
|
|
|
1205
1669
|
};
|
|
1206
1670
|
zodSqlSchema: import("zod").ZodString;
|
|
1207
1671
|
zodNewSchema: import("zod").ZodString;
|
|
1208
|
-
initialValue:
|
|
1672
|
+
initialValue: string;
|
|
1209
1673
|
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
1210
1674
|
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
1211
1675
|
} & {
|
|
@@ -1222,7 +1686,7 @@ declare const schemas: {
|
|
|
1222
1686
|
};
|
|
1223
1687
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1224
1688
|
zodNewSchema: import("zod").ZodNumber;
|
|
1225
|
-
initialValue:
|
|
1689
|
+
initialValue: number;
|
|
1226
1690
|
zodClientSchema: import("zod").ZodBoolean;
|
|
1227
1691
|
zodValidationSchema: import("zod").ZodBoolean;
|
|
1228
1692
|
} & {
|
|
@@ -1264,7 +1728,7 @@ declare const schemas: {
|
|
|
1264
1728
|
};
|
|
1265
1729
|
zodSqlSchema: import("zod").ZodString;
|
|
1266
1730
|
zodNewSchema: import("zod").ZodString;
|
|
1267
|
-
initialValue:
|
|
1731
|
+
initialValue: string;
|
|
1268
1732
|
zodClientSchema: import("zod").ZodString;
|
|
1269
1733
|
zodValidationSchema: import("zod").ZodString;
|
|
1270
1734
|
};
|
|
@@ -1280,7 +1744,7 @@ declare const schemas: {
|
|
|
1280
1744
|
};
|
|
1281
1745
|
zodSqlSchema: import("zod").ZodString;
|
|
1282
1746
|
zodNewSchema: import("zod").ZodString;
|
|
1283
|
-
initialValue:
|
|
1747
|
+
initialValue: string;
|
|
1284
1748
|
zodClientSchema: import("zod").ZodString;
|
|
1285
1749
|
zodValidationSchema: TValidationNext;
|
|
1286
1750
|
};
|
|
@@ -1295,7 +1759,7 @@ declare const schemas: {
|
|
|
1295
1759
|
};
|
|
1296
1760
|
zodSqlSchema: import("zod").ZodString;
|
|
1297
1761
|
zodNewSchema: import("zod").ZodString;
|
|
1298
|
-
initialValue:
|
|
1762
|
+
initialValue: string;
|
|
1299
1763
|
zodClientSchema: import("zod").ZodString;
|
|
1300
1764
|
zodValidationSchema: TValidationNext;
|
|
1301
1765
|
} & {
|
|
@@ -1317,7 +1781,7 @@ declare const schemas: {
|
|
|
1317
1781
|
};
|
|
1318
1782
|
zodSqlSchema: import("zod").ZodString;
|
|
1319
1783
|
zodNewSchema: import("zod").ZodString;
|
|
1320
|
-
initialValue:
|
|
1784
|
+
initialValue: string;
|
|
1321
1785
|
zodClientSchema: TClientNext;
|
|
1322
1786
|
zodValidationSchema: TClientNext;
|
|
1323
1787
|
};
|
|
@@ -1333,7 +1797,7 @@ declare const schemas: {
|
|
|
1333
1797
|
};
|
|
1334
1798
|
zodSqlSchema: import("zod").ZodString;
|
|
1335
1799
|
zodNewSchema: import("zod").ZodString;
|
|
1336
|
-
initialValue:
|
|
1800
|
+
initialValue: string;
|
|
1337
1801
|
zodClientSchema: TClientNext;
|
|
1338
1802
|
zodValidationSchema: TValidationNext;
|
|
1339
1803
|
};
|
|
@@ -1348,7 +1812,7 @@ declare const schemas: {
|
|
|
1348
1812
|
};
|
|
1349
1813
|
zodSqlSchema: import("zod").ZodString;
|
|
1350
1814
|
zodNewSchema: import("zod").ZodString;
|
|
1351
|
-
initialValue:
|
|
1815
|
+
initialValue: string;
|
|
1352
1816
|
zodClientSchema: TClientNext;
|
|
1353
1817
|
zodValidationSchema: TValidationNext;
|
|
1354
1818
|
} & {
|
|
@@ -1370,7 +1834,7 @@ declare const schemas: {
|
|
|
1370
1834
|
};
|
|
1371
1835
|
zodSqlSchema: import("zod").ZodString;
|
|
1372
1836
|
zodNewSchema: import("zod").ZodString;
|
|
1373
|
-
initialValue:
|
|
1837
|
+
initialValue: string;
|
|
1374
1838
|
zodClientSchema: TClientNext;
|
|
1375
1839
|
zodValidationSchema: TClientNext;
|
|
1376
1840
|
} & {
|
|
@@ -1392,7 +1856,7 @@ declare const schemas: {
|
|
|
1392
1856
|
};
|
|
1393
1857
|
zodSqlSchema: import("zod").ZodString;
|
|
1394
1858
|
zodNewSchema: import("zod").ZodString;
|
|
1395
|
-
initialValue:
|
|
1859
|
+
initialValue: string;
|
|
1396
1860
|
zodClientSchema: import("zod").ZodString;
|
|
1397
1861
|
zodValidationSchema: import("zod").ZodString;
|
|
1398
1862
|
} & {
|
|
@@ -1412,7 +1876,7 @@ declare const schemas: {
|
|
|
1412
1876
|
};
|
|
1413
1877
|
zodSqlSchema: import("zod").ZodString;
|
|
1414
1878
|
zodNewSchema: TNewNext;
|
|
1415
|
-
initialValue:
|
|
1879
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1416
1880
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1417
1881
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1418
1882
|
};
|
|
@@ -1428,7 +1892,7 @@ declare const schemas: {
|
|
|
1428
1892
|
};
|
|
1429
1893
|
zodSqlSchema: import("zod").ZodString;
|
|
1430
1894
|
zodNewSchema: TNewNext;
|
|
1431
|
-
initialValue:
|
|
1895
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1432
1896
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1433
1897
|
zodValidationSchema: TValidationNext;
|
|
1434
1898
|
};
|
|
@@ -1443,7 +1907,7 @@ declare const schemas: {
|
|
|
1443
1907
|
};
|
|
1444
1908
|
zodSqlSchema: import("zod").ZodString;
|
|
1445
1909
|
zodNewSchema: TNewNext;
|
|
1446
|
-
initialValue:
|
|
1910
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1447
1911
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1448
1912
|
zodValidationSchema: TValidationNext;
|
|
1449
1913
|
} & {
|
|
@@ -1465,7 +1929,7 @@ declare const schemas: {
|
|
|
1465
1929
|
};
|
|
1466
1930
|
zodSqlSchema: import("zod").ZodString;
|
|
1467
1931
|
zodNewSchema: TNewNext;
|
|
1468
|
-
initialValue:
|
|
1932
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1469
1933
|
zodClientSchema: TClientNext;
|
|
1470
1934
|
zodValidationSchema: TClientNext;
|
|
1471
1935
|
};
|
|
@@ -1481,7 +1945,7 @@ declare const schemas: {
|
|
|
1481
1945
|
};
|
|
1482
1946
|
zodSqlSchema: import("zod").ZodString;
|
|
1483
1947
|
zodNewSchema: TNewNext;
|
|
1484
|
-
initialValue:
|
|
1948
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1485
1949
|
zodClientSchema: TClientNext;
|
|
1486
1950
|
zodValidationSchema: TValidationNext;
|
|
1487
1951
|
};
|
|
@@ -1496,7 +1960,7 @@ declare const schemas: {
|
|
|
1496
1960
|
};
|
|
1497
1961
|
zodSqlSchema: import("zod").ZodString;
|
|
1498
1962
|
zodNewSchema: TNewNext;
|
|
1499
|
-
initialValue:
|
|
1963
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1500
1964
|
zodClientSchema: TClientNext;
|
|
1501
1965
|
zodValidationSchema: TValidationNext;
|
|
1502
1966
|
} & {
|
|
@@ -1518,7 +1982,7 @@ declare const schemas: {
|
|
|
1518
1982
|
};
|
|
1519
1983
|
zodSqlSchema: import("zod").ZodString;
|
|
1520
1984
|
zodNewSchema: TNewNext;
|
|
1521
|
-
initialValue:
|
|
1985
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1522
1986
|
zodClientSchema: TClientNext;
|
|
1523
1987
|
zodValidationSchema: TClientNext;
|
|
1524
1988
|
} & {
|
|
@@ -1540,7 +2004,7 @@ declare const schemas: {
|
|
|
1540
2004
|
};
|
|
1541
2005
|
zodSqlSchema: import("zod").ZodString;
|
|
1542
2006
|
zodNewSchema: TNewNext;
|
|
1543
|
-
initialValue:
|
|
2007
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1544
2008
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1545
2009
|
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1546
2010
|
} & {
|
|
@@ -1553,69 +2017,301 @@ declare const schemas: {
|
|
|
1553
2017
|
};
|
|
1554
2018
|
};
|
|
1555
2019
|
userId: {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
};
|
|
1560
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
1561
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
1562
|
-
initialValue: undefined;
|
|
1563
|
-
zodClientSchema: import("zod").ZodString;
|
|
1564
|
-
zodValidationSchema: import("zod").ZodString;
|
|
1565
|
-
};
|
|
1566
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1567
|
-
sql: import("zod").ZodNumber;
|
|
1568
|
-
initialState: import("zod").ZodNumber;
|
|
1569
|
-
client: import("zod").ZodString;
|
|
1570
|
-
}) => TValidationNext)) => {
|
|
2020
|
+
field: import("zod").ZodNumber;
|
|
2021
|
+
type: "reference";
|
|
2022
|
+
to: () => () => {
|
|
1571
2023
|
config: {
|
|
1572
2024
|
sql: {
|
|
1573
2025
|
type: "int";
|
|
2026
|
+
pk: true;
|
|
1574
2027
|
};
|
|
1575
2028
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1576
2029
|
zodNewSchema: import("zod").ZodNumber;
|
|
1577
|
-
initialValue:
|
|
1578
|
-
zodClientSchema: import("zod").
|
|
1579
|
-
zodValidationSchema:
|
|
2030
|
+
initialValue: number;
|
|
2031
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2032
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
2033
|
+
};
|
|
2034
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2035
|
+
sql: import("zod").ZodNumber;
|
|
2036
|
+
initialState: import("zod").ZodNumber;
|
|
2037
|
+
client: import("zod").ZodNumber;
|
|
2038
|
+
}) => TValidationNext)) => {
|
|
2039
|
+
config: {
|
|
2040
|
+
sql: {
|
|
2041
|
+
type: "int";
|
|
2042
|
+
pk: true;
|
|
2043
|
+
};
|
|
2044
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2045
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2046
|
+
initialValue: number;
|
|
2047
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2048
|
+
zodValidationSchema: TValidationNext;
|
|
2049
|
+
};
|
|
2050
|
+
transform: (transforms: {
|
|
2051
|
+
toClient: (dbValue: number) => number;
|
|
2052
|
+
toDb: (clientValue: number) => number;
|
|
2053
|
+
}) => {
|
|
2054
|
+
config: {
|
|
2055
|
+
sql: {
|
|
2056
|
+
type: "int";
|
|
2057
|
+
pk: true;
|
|
2058
|
+
};
|
|
2059
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2060
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2061
|
+
initialValue: number;
|
|
2062
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2063
|
+
zodValidationSchema: TValidationNext;
|
|
2064
|
+
} & {
|
|
2065
|
+
transforms: {
|
|
2066
|
+
toClient: (dbValue: number) => number;
|
|
2067
|
+
toDb: (clientValue: number) => number;
|
|
2068
|
+
};
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2073
|
+
sql: import("zod").ZodNumber;
|
|
2074
|
+
initialState: import("zod").ZodNumber;
|
|
2075
|
+
}) => TClientNext)) => {
|
|
2076
|
+
config: {
|
|
2077
|
+
sql: {
|
|
2078
|
+
type: "int";
|
|
2079
|
+
pk: true;
|
|
2080
|
+
};
|
|
2081
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2082
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2083
|
+
initialValue: number;
|
|
2084
|
+
zodClientSchema: TClientNext;
|
|
2085
|
+
zodValidationSchema: TClientNext;
|
|
2086
|
+
};
|
|
2087
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2088
|
+
sql: import("zod").ZodNumber;
|
|
2089
|
+
initialState: import("zod").ZodNumber;
|
|
2090
|
+
client: TClientNext;
|
|
2091
|
+
}) => TValidationNext)) => {
|
|
2092
|
+
config: {
|
|
2093
|
+
sql: {
|
|
2094
|
+
type: "int";
|
|
2095
|
+
pk: true;
|
|
2096
|
+
};
|
|
2097
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2098
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2099
|
+
initialValue: number;
|
|
2100
|
+
zodClientSchema: TClientNext;
|
|
2101
|
+
zodValidationSchema: TValidationNext;
|
|
2102
|
+
};
|
|
2103
|
+
transform: (transforms: {
|
|
2104
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2105
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2106
|
+
}) => {
|
|
2107
|
+
config: {
|
|
2108
|
+
sql: {
|
|
2109
|
+
type: "int";
|
|
2110
|
+
pk: true;
|
|
2111
|
+
};
|
|
2112
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2113
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2114
|
+
initialValue: number;
|
|
2115
|
+
zodClientSchema: TClientNext;
|
|
2116
|
+
zodValidationSchema: TValidationNext;
|
|
2117
|
+
} & {
|
|
2118
|
+
transforms: {
|
|
2119
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2120
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
};
|
|
2124
|
+
};
|
|
2125
|
+
transform: (transforms: {
|
|
2126
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2127
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2128
|
+
}) => {
|
|
2129
|
+
config: {
|
|
2130
|
+
sql: {
|
|
2131
|
+
type: "int";
|
|
2132
|
+
pk: true;
|
|
2133
|
+
};
|
|
2134
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2135
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2136
|
+
initialValue: number;
|
|
2137
|
+
zodClientSchema: TClientNext;
|
|
2138
|
+
zodValidationSchema: TClientNext;
|
|
2139
|
+
} & {
|
|
2140
|
+
transforms: {
|
|
2141
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2142
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
1580
2146
|
};
|
|
1581
2147
|
transform: (transforms: {
|
|
1582
|
-
toClient: (dbValue: number) =>
|
|
1583
|
-
toDb: (clientValue:
|
|
2148
|
+
toClient: (dbValue: number) => number;
|
|
2149
|
+
toDb: (clientValue: number) => number;
|
|
1584
2150
|
}) => {
|
|
1585
2151
|
config: {
|
|
1586
2152
|
sql: {
|
|
1587
2153
|
type: "int";
|
|
2154
|
+
pk: true;
|
|
1588
2155
|
};
|
|
1589
2156
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1590
2157
|
zodNewSchema: import("zod").ZodNumber;
|
|
1591
|
-
initialValue:
|
|
1592
|
-
zodClientSchema: import("zod").
|
|
1593
|
-
zodValidationSchema:
|
|
2158
|
+
initialValue: number;
|
|
2159
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2160
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
1594
2161
|
} & {
|
|
1595
2162
|
transforms: {
|
|
1596
|
-
toClient: (dbValue: number) =>
|
|
1597
|
-
toDb: (clientValue:
|
|
2163
|
+
toClient: (dbValue: number) => number;
|
|
2164
|
+
toDb: (clientValue: number) => number;
|
|
1598
2165
|
};
|
|
1599
2166
|
};
|
|
1600
2167
|
};
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
2168
|
+
initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
2169
|
+
sql: import("zod").ZodNumber;
|
|
2170
|
+
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
2171
|
+
config: {
|
|
2172
|
+
sql: {
|
|
2173
|
+
type: "int";
|
|
2174
|
+
pk: true;
|
|
2175
|
+
};
|
|
2176
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2177
|
+
zodNewSchema: TNewNext;
|
|
2178
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2179
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2180
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1609
2181
|
};
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
2182
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2183
|
+
sql: import("zod").ZodNumber;
|
|
2184
|
+
initialState: TNewNext;
|
|
2185
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2186
|
+
}) => TValidationNext)) => {
|
|
2187
|
+
config: {
|
|
2188
|
+
sql: {
|
|
2189
|
+
type: "int";
|
|
2190
|
+
pk: true;
|
|
2191
|
+
};
|
|
2192
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2193
|
+
zodNewSchema: TNewNext;
|
|
2194
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2195
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2196
|
+
zodValidationSchema: TValidationNext;
|
|
2197
|
+
};
|
|
2198
|
+
transform: (transforms: {
|
|
2199
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2200
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2201
|
+
}) => {
|
|
2202
|
+
config: {
|
|
2203
|
+
sql: {
|
|
2204
|
+
type: "int";
|
|
2205
|
+
pk: true;
|
|
2206
|
+
};
|
|
2207
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2208
|
+
zodNewSchema: TNewNext;
|
|
2209
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2210
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2211
|
+
zodValidationSchema: TValidationNext;
|
|
2212
|
+
} & {
|
|
2213
|
+
transforms: {
|
|
2214
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2215
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2216
|
+
};
|
|
2217
|
+
};
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2221
|
+
sql: import("zod").ZodNumber;
|
|
2222
|
+
initialState: TNewNext;
|
|
2223
|
+
}) => TClientNext)) => {
|
|
2224
|
+
config: {
|
|
2225
|
+
sql: {
|
|
2226
|
+
type: "int";
|
|
2227
|
+
pk: true;
|
|
2228
|
+
};
|
|
2229
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2230
|
+
zodNewSchema: TNewNext;
|
|
2231
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2232
|
+
zodClientSchema: TClientNext;
|
|
2233
|
+
zodValidationSchema: TClientNext;
|
|
2234
|
+
};
|
|
2235
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2236
|
+
sql: import("zod").ZodNumber;
|
|
2237
|
+
initialState: TNewNext;
|
|
2238
|
+
client: TClientNext;
|
|
2239
|
+
}) => TValidationNext)) => {
|
|
2240
|
+
config: {
|
|
2241
|
+
sql: {
|
|
2242
|
+
type: "int";
|
|
2243
|
+
pk: true;
|
|
2244
|
+
};
|
|
2245
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2246
|
+
zodNewSchema: TNewNext;
|
|
2247
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2248
|
+
zodClientSchema: TClientNext;
|
|
2249
|
+
zodValidationSchema: TValidationNext;
|
|
2250
|
+
};
|
|
2251
|
+
transform: (transforms: {
|
|
2252
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2253
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2254
|
+
}) => {
|
|
2255
|
+
config: {
|
|
2256
|
+
sql: {
|
|
2257
|
+
type: "int";
|
|
2258
|
+
pk: true;
|
|
2259
|
+
};
|
|
2260
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2261
|
+
zodNewSchema: TNewNext;
|
|
2262
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2263
|
+
zodClientSchema: TClientNext;
|
|
2264
|
+
zodValidationSchema: TValidationNext;
|
|
2265
|
+
} & {
|
|
2266
|
+
transforms: {
|
|
2267
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2268
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2269
|
+
};
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
|
+
};
|
|
2273
|
+
transform: (transforms: {
|
|
2274
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2275
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2276
|
+
}) => {
|
|
2277
|
+
config: {
|
|
2278
|
+
sql: {
|
|
2279
|
+
type: "int";
|
|
2280
|
+
pk: true;
|
|
2281
|
+
};
|
|
2282
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2283
|
+
zodNewSchema: TNewNext;
|
|
2284
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2285
|
+
zodClientSchema: TClientNext;
|
|
2286
|
+
zodValidationSchema: TClientNext;
|
|
2287
|
+
} & {
|
|
2288
|
+
transforms: {
|
|
2289
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2290
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2291
|
+
};
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
transform: (transforms: {
|
|
2296
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2297
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2298
|
+
}) => {
|
|
2299
|
+
config: {
|
|
2300
|
+
sql: {
|
|
2301
|
+
type: "int";
|
|
2302
|
+
pk: true;
|
|
2303
|
+
};
|
|
2304
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2305
|
+
zodNewSchema: TNewNext;
|
|
2306
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2307
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2308
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2309
|
+
} & {
|
|
2310
|
+
transforms: {
|
|
2311
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2312
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
1619
2315
|
};
|
|
1620
2316
|
};
|
|
1621
2317
|
};
|
|
@@ -1627,7 +2323,7 @@ declare const schemas: {
|
|
|
1627
2323
|
};
|
|
1628
2324
|
zodSqlSchema: import("zod").ZodString;
|
|
1629
2325
|
zodNewSchema: import("zod").ZodString;
|
|
1630
|
-
initialValue:
|
|
2326
|
+
initialValue: string;
|
|
1631
2327
|
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
1632
2328
|
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
1633
2329
|
} & {
|
|
@@ -1644,7 +2340,7 @@ declare const schemas: {
|
|
|
1644
2340
|
};
|
|
1645
2341
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1646
2342
|
zodNewSchema: import("zod").ZodNumber;
|
|
1647
|
-
initialValue:
|
|
2343
|
+
initialValue: number;
|
|
1648
2344
|
zodClientSchema: import("zod").ZodBoolean;
|
|
1649
2345
|
zodValidationSchema: import("zod").ZodBoolean;
|
|
1650
2346
|
} & {
|