cogsbox-shape 0.5.26 → 0.5.28

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.
@@ -158,13 +158,13 @@ declare const schemas: {
158
158
  zodSqlSchema: import("zod").ZodNumber;
159
159
  zodNewSchema: TNewNext;
160
160
  initialValue: TDefaultNext;
161
- zodClientSchema: import("zod").ZodNumber;
162
- zodValidationSchema: import("zod").ZodNumber;
161
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
162
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
163
163
  };
164
164
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
165
165
  sql: import("zod").ZodNumber;
166
166
  initialState: TNewNext;
167
- client: import("zod").ZodNumber;
167
+ client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
168
168
  }) => TValidationNext)) => {
169
169
  config: {
170
170
  sql: {
@@ -174,12 +174,12 @@ declare const schemas: {
174
174
  zodSqlSchema: import("zod").ZodNumber;
175
175
  zodNewSchema: TNewNext;
176
176
  initialValue: TDefaultNext;
177
- zodClientSchema: import("zod").ZodNumber;
177
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
178
178
  zodValidationSchema: TValidationNext;
179
179
  };
180
180
  transform: (transforms: {
181
- toClient: (dbValue: number) => number;
182
- toDb: (clientValue: number) => number;
181
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
182
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
183
183
  }) => {
184
184
  config: {
185
185
  sql: {
@@ -189,12 +189,12 @@ declare const schemas: {
189
189
  zodSqlSchema: import("zod").ZodNumber;
190
190
  zodNewSchema: TNewNext;
191
191
  initialValue: TDefaultNext;
192
- zodClientSchema: import("zod").ZodNumber;
192
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
193
193
  zodValidationSchema: TValidationNext;
194
194
  } & {
195
195
  transforms: {
196
- toClient: (dbValue: number) => number;
197
- toDb: (clientValue: number) => number;
196
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
197
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
198
198
  };
199
199
  };
200
200
  };
@@ -275,8 +275,8 @@ declare const schemas: {
275
275
  };
276
276
  };
277
277
  transform: (transforms: {
278
- toClient: (dbValue: number) => number;
279
- toDb: (clientValue: number) => number;
278
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
279
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
280
280
  }) => {
281
281
  config: {
282
282
  sql: {
@@ -286,12 +286,12 @@ declare const schemas: {
286
286
  zodSqlSchema: import("zod").ZodNumber;
287
287
  zodNewSchema: TNewNext;
288
288
  initialValue: TDefaultNext;
289
- zodClientSchema: import("zod").ZodNumber;
290
- zodValidationSchema: import("zod").ZodNumber;
289
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
290
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
291
291
  } & {
292
292
  transforms: {
293
- toClient: (dbValue: number) => number;
294
- toDb: (clientValue: number) => number;
293
+ toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
294
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
295
295
  };
296
296
  };
297
297
  };
@@ -576,13 +576,13 @@ declare const schemas: {
576
576
  zodSqlSchema: import("zod").ZodString;
577
577
  zodNewSchema: TNewNext;
578
578
  initialValue: TDefaultNext;
579
- zodClientSchema: import("zod").ZodString;
580
- zodValidationSchema: import("zod").ZodString;
579
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
580
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
581
581
  };
582
582
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
583
583
  sql: import("zod").ZodString;
584
584
  initialState: TNewNext;
585
- client: import("zod").ZodString;
585
+ client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
586
586
  }) => TValidationNext)) => {
587
587
  config: {
588
588
  sql: {
@@ -592,12 +592,12 @@ declare const schemas: {
592
592
  zodSqlSchema: import("zod").ZodString;
593
593
  zodNewSchema: TNewNext;
594
594
  initialValue: TDefaultNext;
595
- zodClientSchema: import("zod").ZodString;
595
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
596
596
  zodValidationSchema: TValidationNext;
597
597
  };
598
598
  transform: (transforms: {
599
- toClient: (dbValue: string) => string;
600
- toDb: (clientValue: string) => string;
599
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
600
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
601
601
  }) => {
602
602
  config: {
603
603
  sql: {
@@ -607,12 +607,12 @@ declare const schemas: {
607
607
  zodSqlSchema: import("zod").ZodString;
608
608
  zodNewSchema: TNewNext;
609
609
  initialValue: TDefaultNext;
610
- zodClientSchema: import("zod").ZodString;
610
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
611
611
  zodValidationSchema: TValidationNext;
612
612
  } & {
613
613
  transforms: {
614
- toClient: (dbValue: string) => string;
615
- toDb: (clientValue: string) => string;
614
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
615
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
616
616
  };
617
617
  };
618
618
  };
@@ -693,8 +693,8 @@ declare const schemas: {
693
693
  };
694
694
  };
695
695
  transform: (transforms: {
696
- toClient: (dbValue: string) => string;
697
- toDb: (clientValue: string) => string;
696
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
697
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
698
698
  }) => {
699
699
  config: {
700
700
  sql: {
@@ -704,12 +704,12 @@ declare const schemas: {
704
704
  zodSqlSchema: import("zod").ZodString;
705
705
  zodNewSchema: TNewNext;
706
706
  initialValue: TDefaultNext;
707
- zodClientSchema: import("zod").ZodString;
708
- zodValidationSchema: import("zod").ZodString;
707
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
708
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
709
709
  } & {
710
710
  transforms: {
711
- toClient: (dbValue: string) => string;
712
- toDb: (clientValue: string) => string;
711
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
712
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
713
713
  };
714
714
  };
715
715
  };
@@ -991,13 +991,13 @@ declare const schemas: {
991
991
  zodSqlSchema: import("zod").ZodString;
992
992
  zodNewSchema: TNewNext;
993
993
  initialValue: TDefaultNext;
994
- zodClientSchema: import("zod").ZodString;
995
- zodValidationSchema: import("zod").ZodString;
994
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
995
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
996
996
  };
997
997
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
998
998
  sql: import("zod").ZodString;
999
999
  initialState: TNewNext;
1000
- client: import("zod").ZodString;
1000
+ client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1001
1001
  }) => TValidationNext)) => {
1002
1002
  config: {
1003
1003
  sql: {
@@ -1007,12 +1007,12 @@ declare const schemas: {
1007
1007
  zodSqlSchema: import("zod").ZodString;
1008
1008
  zodNewSchema: TNewNext;
1009
1009
  initialValue: TDefaultNext;
1010
- zodClientSchema: import("zod").ZodString;
1010
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1011
1011
  zodValidationSchema: TValidationNext;
1012
1012
  };
1013
1013
  transform: (transforms: {
1014
- toClient: (dbValue: string) => string;
1015
- toDb: (clientValue: string) => string;
1014
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1015
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1016
1016
  }) => {
1017
1017
  config: {
1018
1018
  sql: {
@@ -1022,12 +1022,12 @@ declare const schemas: {
1022
1022
  zodSqlSchema: import("zod").ZodString;
1023
1023
  zodNewSchema: TNewNext;
1024
1024
  initialValue: TDefaultNext;
1025
- zodClientSchema: import("zod").ZodString;
1025
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1026
1026
  zodValidationSchema: TValidationNext;
1027
1027
  } & {
1028
1028
  transforms: {
1029
- toClient: (dbValue: string) => string;
1030
- toDb: (clientValue: string) => string;
1029
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1030
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1031
1031
  };
1032
1032
  };
1033
1033
  };
@@ -1108,8 +1108,8 @@ declare const schemas: {
1108
1108
  };
1109
1109
  };
1110
1110
  transform: (transforms: {
1111
- toClient: (dbValue: string) => string;
1112
- toDb: (clientValue: string) => string;
1111
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1112
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1113
1113
  }) => {
1114
1114
  config: {
1115
1115
  sql: {
@@ -1119,12 +1119,12 @@ declare const schemas: {
1119
1119
  zodSqlSchema: import("zod").ZodString;
1120
1120
  zodNewSchema: TNewNext;
1121
1121
  initialValue: TDefaultNext;
1122
- zodClientSchema: import("zod").ZodString;
1123
- zodValidationSchema: import("zod").ZodString;
1122
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1123
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1124
1124
  } & {
1125
1125
  transforms: {
1126
- toClient: (dbValue: string) => string;
1127
- toDb: (clientValue: string) => string;
1126
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1127
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1128
1128
  };
1129
1129
  };
1130
1130
  };
@@ -1413,13 +1413,13 @@ declare const schemas: {
1413
1413
  zodSqlSchema: import("zod").ZodString;
1414
1414
  zodNewSchema: TNewNext;
1415
1415
  initialValue: TDefaultNext;
1416
- zodClientSchema: import("zod").ZodString;
1417
- zodValidationSchema: import("zod").ZodString;
1416
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1417
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1418
1418
  };
1419
1419
  validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
1420
1420
  sql: import("zod").ZodString;
1421
1421
  initialState: TNewNext;
1422
- client: import("zod").ZodString;
1422
+ client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1423
1423
  }) => TValidationNext)) => {
1424
1424
  config: {
1425
1425
  sql: {
@@ -1429,12 +1429,12 @@ declare const schemas: {
1429
1429
  zodSqlSchema: import("zod").ZodString;
1430
1430
  zodNewSchema: TNewNext;
1431
1431
  initialValue: TDefaultNext;
1432
- zodClientSchema: import("zod").ZodString;
1432
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1433
1433
  zodValidationSchema: TValidationNext;
1434
1434
  };
1435
1435
  transform: (transforms: {
1436
- toClient: (dbValue: string) => string;
1437
- toDb: (clientValue: string) => string;
1436
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1437
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1438
1438
  }) => {
1439
1439
  config: {
1440
1440
  sql: {
@@ -1444,12 +1444,12 @@ declare const schemas: {
1444
1444
  zodSqlSchema: import("zod").ZodString;
1445
1445
  zodNewSchema: TNewNext;
1446
1446
  initialValue: TDefaultNext;
1447
- zodClientSchema: import("zod").ZodString;
1447
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1448
1448
  zodValidationSchema: TValidationNext;
1449
1449
  } & {
1450
1450
  transforms: {
1451
- toClient: (dbValue: string) => string;
1452
- toDb: (clientValue: string) => string;
1451
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1452
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1453
1453
  };
1454
1454
  };
1455
1455
  };
@@ -1530,8 +1530,8 @@ declare const schemas: {
1530
1530
  };
1531
1531
  };
1532
1532
  transform: (transforms: {
1533
- toClient: (dbValue: string) => string;
1534
- toDb: (clientValue: string) => string;
1533
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1534
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1535
1535
  }) => {
1536
1536
  config: {
1537
1537
  sql: {
@@ -1541,12 +1541,12 @@ declare const schemas: {
1541
1541
  zodSqlSchema: import("zod").ZodString;
1542
1542
  zodNewSchema: TNewNext;
1543
1543
  initialValue: TDefaultNext;
1544
- zodClientSchema: import("zod").ZodString;
1545
- zodValidationSchema: import("zod").ZodString;
1544
+ zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1545
+ zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
1546
1546
  } & {
1547
1547
  transforms: {
1548
- toClient: (dbValue: string) => string;
1549
- toDb: (clientValue: string) => string;
1548
+ toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
1549
+ toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
1550
1550
  };
1551
1551
  };
1552
1552
  };
@@ -158,13 +158,13 @@ export declare const userSchema: {
158
158
  zodSqlSchema: z.ZodNumber;
159
159
  zodNewSchema: TNewNext;
160
160
  initialValue: TDefaultNext;
161
- zodClientSchema: z.ZodNumber;
162
- zodValidationSchema: z.ZodNumber;
161
+ zodClientSchema: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
162
+ zodValidationSchema: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
163
163
  };
164
164
  validation: <TValidationNext extends z.ZodTypeAny>(schema: TValidationNext | ((tools: {
165
165
  sql: z.ZodNumber;
166
166
  initialState: TNewNext;
167
- client: z.ZodNumber;
167
+ client: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
168
168
  }) => TValidationNext)) => {
169
169
  config: {
170
170
  sql: {
@@ -174,12 +174,12 @@ export declare const userSchema: {
174
174
  zodSqlSchema: z.ZodNumber;
175
175
  zodNewSchema: TNewNext;
176
176
  initialValue: TDefaultNext;
177
- zodClientSchema: z.ZodNumber;
177
+ zodClientSchema: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
178
178
  zodValidationSchema: TValidationNext;
179
179
  };
180
180
  transform: (transforms: {
181
- toClient: (dbValue: number) => number;
182
- toDb: (clientValue: number) => number;
181
+ toClient: (dbValue: number) => z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>;
182
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>) => number;
183
183
  }) => {
184
184
  config: {
185
185
  sql: {
@@ -189,12 +189,12 @@ export declare const userSchema: {
189
189
  zodSqlSchema: z.ZodNumber;
190
190
  zodNewSchema: TNewNext;
191
191
  initialValue: TDefaultNext;
192
- zodClientSchema: z.ZodNumber;
192
+ zodClientSchema: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
193
193
  zodValidationSchema: TValidationNext;
194
194
  } & {
195
195
  transforms: {
196
- toClient: (dbValue: number) => number;
197
- toDb: (clientValue: number) => number;
196
+ toClient: (dbValue: number) => z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>;
197
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>) => number;
198
198
  };
199
199
  };
200
200
  };
@@ -275,8 +275,8 @@ export declare const userSchema: {
275
275
  };
276
276
  };
277
277
  transform: (transforms: {
278
- toClient: (dbValue: number) => number;
279
- toDb: (clientValue: number) => number;
278
+ toClient: (dbValue: number) => z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>;
279
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>) => number;
280
280
  }) => {
281
281
  config: {
282
282
  sql: {
@@ -286,12 +286,12 @@ export declare const userSchema: {
286
286
  zodSqlSchema: z.ZodNumber;
287
287
  zodNewSchema: TNewNext;
288
288
  initialValue: TDefaultNext;
289
- zodClientSchema: z.ZodNumber;
290
- zodValidationSchema: z.ZodNumber;
289
+ zodClientSchema: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
290
+ zodValidationSchema: z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>;
291
291
  } & {
292
292
  transforms: {
293
- toClient: (dbValue: number) => number;
294
- toDb: (clientValue: number) => number;
293
+ toClient: (dbValue: number) => z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>;
294
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends number ? TNewNext : z.ZodUnion<[z.ZodNumber, TNewNext]>>) => number;
295
295
  };
296
296
  };
297
297
  };
@@ -576,13 +576,13 @@ export declare const userSchema: {
576
576
  zodSqlSchema: z.ZodString;
577
577
  zodNewSchema: TNewNext;
578
578
  initialValue: TDefaultNext;
579
- zodClientSchema: z.ZodString;
580
- zodValidationSchema: z.ZodString;
579
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
580
+ zodValidationSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
581
581
  };
582
582
  validation: <TValidationNext extends z.ZodTypeAny>(schema: TValidationNext | ((tools: {
583
583
  sql: z.ZodString;
584
584
  initialState: TNewNext;
585
- client: z.ZodString;
585
+ client: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
586
586
  }) => TValidationNext)) => {
587
587
  config: {
588
588
  sql: {
@@ -592,12 +592,12 @@ export declare const userSchema: {
592
592
  zodSqlSchema: z.ZodString;
593
593
  zodNewSchema: TNewNext;
594
594
  initialValue: TDefaultNext;
595
- zodClientSchema: z.ZodString;
595
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
596
596
  zodValidationSchema: TValidationNext;
597
597
  };
598
598
  transform: (transforms: {
599
- toClient: (dbValue: string) => string;
600
- toDb: (clientValue: string) => string;
599
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
600
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
601
601
  }) => {
602
602
  config: {
603
603
  sql: {
@@ -607,12 +607,12 @@ export declare const userSchema: {
607
607
  zodSqlSchema: z.ZodString;
608
608
  zodNewSchema: TNewNext;
609
609
  initialValue: TDefaultNext;
610
- zodClientSchema: z.ZodString;
610
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
611
611
  zodValidationSchema: TValidationNext;
612
612
  } & {
613
613
  transforms: {
614
- toClient: (dbValue: string) => string;
615
- toDb: (clientValue: string) => string;
614
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
615
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
616
616
  };
617
617
  };
618
618
  };
@@ -693,8 +693,8 @@ export declare const userSchema: {
693
693
  };
694
694
  };
695
695
  transform: (transforms: {
696
- toClient: (dbValue: string) => string;
697
- toDb: (clientValue: string) => string;
696
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
697
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
698
698
  }) => {
699
699
  config: {
700
700
  sql: {
@@ -704,12 +704,12 @@ export declare const userSchema: {
704
704
  zodSqlSchema: z.ZodString;
705
705
  zodNewSchema: TNewNext;
706
706
  initialValue: TDefaultNext;
707
- zodClientSchema: z.ZodString;
708
- zodValidationSchema: z.ZodString;
707
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
708
+ zodValidationSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
709
709
  } & {
710
710
  transforms: {
711
- toClient: (dbValue: string) => string;
712
- toDb: (clientValue: string) => string;
711
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
712
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
713
713
  };
714
714
  };
715
715
  };
@@ -991,13 +991,13 @@ export declare const userSchema: {
991
991
  zodSqlSchema: z.ZodString;
992
992
  zodNewSchema: TNewNext;
993
993
  initialValue: TDefaultNext;
994
- zodClientSchema: z.ZodString;
995
- zodValidationSchema: z.ZodString;
994
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
995
+ zodValidationSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
996
996
  };
997
997
  validation: <TValidationNext extends z.ZodTypeAny>(schema: TValidationNext | ((tools: {
998
998
  sql: z.ZodString;
999
999
  initialState: TNewNext;
1000
- client: z.ZodString;
1000
+ client: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1001
1001
  }) => TValidationNext)) => {
1002
1002
  config: {
1003
1003
  sql: {
@@ -1007,12 +1007,12 @@ export declare const userSchema: {
1007
1007
  zodSqlSchema: z.ZodString;
1008
1008
  zodNewSchema: TNewNext;
1009
1009
  initialValue: TDefaultNext;
1010
- zodClientSchema: z.ZodString;
1010
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1011
1011
  zodValidationSchema: TValidationNext;
1012
1012
  };
1013
1013
  transform: (transforms: {
1014
- toClient: (dbValue: string) => string;
1015
- toDb: (clientValue: string) => string;
1014
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1015
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1016
1016
  }) => {
1017
1017
  config: {
1018
1018
  sql: {
@@ -1022,12 +1022,12 @@ export declare const userSchema: {
1022
1022
  zodSqlSchema: z.ZodString;
1023
1023
  zodNewSchema: TNewNext;
1024
1024
  initialValue: TDefaultNext;
1025
- zodClientSchema: z.ZodString;
1025
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1026
1026
  zodValidationSchema: TValidationNext;
1027
1027
  } & {
1028
1028
  transforms: {
1029
- toClient: (dbValue: string) => string;
1030
- toDb: (clientValue: string) => string;
1029
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1030
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1031
1031
  };
1032
1032
  };
1033
1033
  };
@@ -1108,8 +1108,8 @@ export declare const userSchema: {
1108
1108
  };
1109
1109
  };
1110
1110
  transform: (transforms: {
1111
- toClient: (dbValue: string) => string;
1112
- toDb: (clientValue: string) => string;
1111
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1112
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1113
1113
  }) => {
1114
1114
  config: {
1115
1115
  sql: {
@@ -1119,12 +1119,12 @@ export declare const userSchema: {
1119
1119
  zodSqlSchema: z.ZodString;
1120
1120
  zodNewSchema: TNewNext;
1121
1121
  initialValue: TDefaultNext;
1122
- zodClientSchema: z.ZodString;
1123
- zodValidationSchema: z.ZodString;
1122
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1123
+ zodValidationSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1124
1124
  } & {
1125
1125
  transforms: {
1126
- toClient: (dbValue: string) => string;
1127
- toDb: (clientValue: string) => string;
1126
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1127
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1128
1128
  };
1129
1129
  };
1130
1130
  };
@@ -1413,13 +1413,13 @@ export declare const petSchema: {
1413
1413
  zodSqlSchema: z.ZodString;
1414
1414
  zodNewSchema: TNewNext;
1415
1415
  initialValue: TDefaultNext;
1416
- zodClientSchema: z.ZodString;
1417
- zodValidationSchema: z.ZodString;
1416
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1417
+ zodValidationSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1418
1418
  };
1419
1419
  validation: <TValidationNext extends z.ZodTypeAny>(schema: TValidationNext | ((tools: {
1420
1420
  sql: z.ZodString;
1421
1421
  initialState: TNewNext;
1422
- client: z.ZodString;
1422
+ client: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1423
1423
  }) => TValidationNext)) => {
1424
1424
  config: {
1425
1425
  sql: {
@@ -1429,12 +1429,12 @@ export declare const petSchema: {
1429
1429
  zodSqlSchema: z.ZodString;
1430
1430
  zodNewSchema: TNewNext;
1431
1431
  initialValue: TDefaultNext;
1432
- zodClientSchema: z.ZodString;
1432
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1433
1433
  zodValidationSchema: TValidationNext;
1434
1434
  };
1435
1435
  transform: (transforms: {
1436
- toClient: (dbValue: string) => string;
1437
- toDb: (clientValue: string) => string;
1436
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1437
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1438
1438
  }) => {
1439
1439
  config: {
1440
1440
  sql: {
@@ -1444,12 +1444,12 @@ export declare const petSchema: {
1444
1444
  zodSqlSchema: z.ZodString;
1445
1445
  zodNewSchema: TNewNext;
1446
1446
  initialValue: TDefaultNext;
1447
- zodClientSchema: z.ZodString;
1447
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1448
1448
  zodValidationSchema: TValidationNext;
1449
1449
  } & {
1450
1450
  transforms: {
1451
- toClient: (dbValue: string) => string;
1452
- toDb: (clientValue: string) => string;
1451
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1452
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1453
1453
  };
1454
1454
  };
1455
1455
  };
@@ -1530,8 +1530,8 @@ export declare const petSchema: {
1530
1530
  };
1531
1531
  };
1532
1532
  transform: (transforms: {
1533
- toClient: (dbValue: string) => string;
1534
- toDb: (clientValue: string) => string;
1533
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1534
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1535
1535
  }) => {
1536
1536
  config: {
1537
1537
  sql: {
@@ -1541,12 +1541,12 @@ export declare const petSchema: {
1541
1541
  zodSqlSchema: z.ZodString;
1542
1542
  zodNewSchema: TNewNext;
1543
1543
  initialValue: TDefaultNext;
1544
- zodClientSchema: z.ZodString;
1545
- zodValidationSchema: z.ZodString;
1544
+ zodClientSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1545
+ zodValidationSchema: z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>;
1546
1546
  } & {
1547
1547
  transforms: {
1548
- toClient: (dbValue: string) => string;
1549
- toDb: (clientValue: string) => string;
1548
+ toClient: (dbValue: string) => z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>;
1549
+ toDb: (clientValue: z.TypeOf<z.TypeOf<TNewNext> extends string ? TNewNext : z.ZodUnion<[z.ZodString, TNewNext]>>) => string;
1550
1550
  };
1551
1551
  };
1552
1552
  };