cogsbox-shape 0.5.32 → 0.5.34
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 +1638 -598
- package/dist/example/user.d.ts +2494 -1454
- package/dist/example/user.js +22 -21
- package/dist/schema.d.ts +2235 -729
- package/dist/schema.js +10 -3
- package/package.json +1 -1
package/dist/example/schema.d.ts
CHANGED
|
@@ -147,39 +147,135 @@ declare const schemas: {
|
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
initialState:
|
|
151
|
-
|
|
152
|
-
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
153
|
-
config: {
|
|
154
|
-
sql: {
|
|
155
|
-
type: "int";
|
|
156
|
-
pk: true;
|
|
157
|
-
};
|
|
158
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
159
|
-
zodNewSchema: TNewNext;
|
|
160
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
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
|
-
};
|
|
164
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
165
|
-
sql: import("zod").ZodNumber;
|
|
166
|
-
initialState: TNewNext;
|
|
167
|
-
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
168
|
-
}) => TValidationNext)) => {
|
|
150
|
+
initialState: {
|
|
151
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
169
152
|
config: {
|
|
170
153
|
sql: {
|
|
171
154
|
type: "int";
|
|
172
155
|
pk: true;
|
|
173
156
|
};
|
|
174
157
|
zodSqlSchema: import("zod").ZodNumber;
|
|
175
|
-
zodNewSchema:
|
|
176
|
-
initialValue:
|
|
177
|
-
zodClientSchema: import("zod").
|
|
178
|
-
zodValidationSchema:
|
|
158
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
159
|
+
initialValue: TDefaultNext;
|
|
160
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
161
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
162
|
+
};
|
|
163
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
164
|
+
sql: import("zod").ZodNumber;
|
|
165
|
+
initialState: import("zod").ZodNumber;
|
|
166
|
+
client: import("zod").ZodNumber;
|
|
167
|
+
}) => TValidationNext)) => {
|
|
168
|
+
config: {
|
|
169
|
+
sql: {
|
|
170
|
+
type: "int";
|
|
171
|
+
pk: true;
|
|
172
|
+
};
|
|
173
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
174
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
175
|
+
initialValue: TDefaultNext;
|
|
176
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
177
|
+
zodValidationSchema: TValidationNext;
|
|
178
|
+
};
|
|
179
|
+
transform: (transforms: {
|
|
180
|
+
toClient: (dbValue: number) => number;
|
|
181
|
+
toDb: (clientValue: number) => number;
|
|
182
|
+
}) => {
|
|
183
|
+
config: {
|
|
184
|
+
sql: {
|
|
185
|
+
type: "int";
|
|
186
|
+
pk: true;
|
|
187
|
+
};
|
|
188
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
189
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
190
|
+
initialValue: TDefaultNext;
|
|
191
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
192
|
+
zodValidationSchema: TValidationNext;
|
|
193
|
+
} & {
|
|
194
|
+
transforms: {
|
|
195
|
+
toClient: (dbValue: number) => number;
|
|
196
|
+
toDb: (clientValue: number) => number;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
202
|
+
sql: import("zod").ZodNumber;
|
|
203
|
+
initialState: import("zod").ZodNumber;
|
|
204
|
+
}) => TClientNext)) => {
|
|
205
|
+
config: {
|
|
206
|
+
sql: {
|
|
207
|
+
type: "int";
|
|
208
|
+
pk: true;
|
|
209
|
+
};
|
|
210
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
211
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
212
|
+
initialValue: TDefaultNext;
|
|
213
|
+
zodClientSchema: TClientNext;
|
|
214
|
+
zodValidationSchema: TClientNext;
|
|
215
|
+
};
|
|
216
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
217
|
+
sql: import("zod").ZodNumber;
|
|
218
|
+
initialState: import("zod").ZodNumber;
|
|
219
|
+
client: TClientNext;
|
|
220
|
+
}) => TValidationNext)) => {
|
|
221
|
+
config: {
|
|
222
|
+
sql: {
|
|
223
|
+
type: "int";
|
|
224
|
+
pk: true;
|
|
225
|
+
};
|
|
226
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
227
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
228
|
+
initialValue: TDefaultNext;
|
|
229
|
+
zodClientSchema: TClientNext;
|
|
230
|
+
zodValidationSchema: TValidationNext;
|
|
231
|
+
};
|
|
232
|
+
transform: (transforms: {
|
|
233
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
234
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
235
|
+
}) => {
|
|
236
|
+
config: {
|
|
237
|
+
sql: {
|
|
238
|
+
type: "int";
|
|
239
|
+
pk: true;
|
|
240
|
+
};
|
|
241
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
242
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
243
|
+
initialValue: TDefaultNext;
|
|
244
|
+
zodClientSchema: TClientNext;
|
|
245
|
+
zodValidationSchema: TValidationNext;
|
|
246
|
+
} & {
|
|
247
|
+
transforms: {
|
|
248
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
249
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
transform: (transforms: {
|
|
255
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
256
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
257
|
+
}) => {
|
|
258
|
+
config: {
|
|
259
|
+
sql: {
|
|
260
|
+
type: "int";
|
|
261
|
+
pk: true;
|
|
262
|
+
};
|
|
263
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
264
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
265
|
+
initialValue: TDefaultNext;
|
|
266
|
+
zodClientSchema: TClientNext;
|
|
267
|
+
zodValidationSchema: TClientNext;
|
|
268
|
+
} & {
|
|
269
|
+
transforms: {
|
|
270
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
271
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
179
275
|
};
|
|
180
276
|
transform: (transforms: {
|
|
181
|
-
toClient: (dbValue: number) =>
|
|
182
|
-
toDb: (clientValue:
|
|
277
|
+
toClient: (dbValue: number) => number;
|
|
278
|
+
toDb: (clientValue: number) => number;
|
|
183
279
|
}) => {
|
|
184
280
|
config: {
|
|
185
281
|
sql: {
|
|
@@ -187,22 +283,21 @@ declare const schemas: {
|
|
|
187
283
|
pk: true;
|
|
188
284
|
};
|
|
189
285
|
zodSqlSchema: import("zod").ZodNumber;
|
|
190
|
-
zodNewSchema:
|
|
191
|
-
initialValue:
|
|
192
|
-
zodClientSchema: import("zod").
|
|
193
|
-
zodValidationSchema:
|
|
286
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
287
|
+
initialValue: TDefaultNext;
|
|
288
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
289
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
194
290
|
} & {
|
|
195
291
|
transforms: {
|
|
196
|
-
toClient: (dbValue: number) =>
|
|
197
|
-
toDb: (clientValue:
|
|
292
|
+
toClient: (dbValue: number) => number;
|
|
293
|
+
toDb: (clientValue: number) => number;
|
|
198
294
|
};
|
|
199
295
|
};
|
|
200
296
|
};
|
|
201
297
|
};
|
|
202
|
-
|
|
298
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
203
299
|
sql: import("zod").ZodNumber;
|
|
204
|
-
|
|
205
|
-
}) => TClientNext)) => {
|
|
300
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
206
301
|
config: {
|
|
207
302
|
sql: {
|
|
208
303
|
type: "int";
|
|
@@ -211,13 +306,13 @@ declare const schemas: {
|
|
|
211
306
|
zodSqlSchema: import("zod").ZodNumber;
|
|
212
307
|
zodNewSchema: TNewNext;
|
|
213
308
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
214
|
-
zodClientSchema:
|
|
215
|
-
zodValidationSchema:
|
|
309
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
310
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
216
311
|
};
|
|
217
312
|
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
218
313
|
sql: import("zod").ZodNumber;
|
|
219
314
|
initialState: TNewNext;
|
|
220
|
-
client:
|
|
315
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
221
316
|
}) => TValidationNext)) => {
|
|
222
317
|
config: {
|
|
223
318
|
sql: {
|
|
@@ -227,9 +322,84 @@ declare const schemas: {
|
|
|
227
322
|
zodSqlSchema: import("zod").ZodNumber;
|
|
228
323
|
zodNewSchema: TNewNext;
|
|
229
324
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
230
|
-
zodClientSchema:
|
|
325
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
231
326
|
zodValidationSchema: TValidationNext;
|
|
232
327
|
};
|
|
328
|
+
transform: (transforms: {
|
|
329
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
330
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
331
|
+
}) => {
|
|
332
|
+
config: {
|
|
333
|
+
sql: {
|
|
334
|
+
type: "int";
|
|
335
|
+
pk: true;
|
|
336
|
+
};
|
|
337
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
338
|
+
zodNewSchema: TNewNext;
|
|
339
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
340
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
341
|
+
zodValidationSchema: TValidationNext;
|
|
342
|
+
} & {
|
|
343
|
+
transforms: {
|
|
344
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
345
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
351
|
+
sql: import("zod").ZodNumber;
|
|
352
|
+
initialState: TNewNext;
|
|
353
|
+
}) => TClientNext)) => {
|
|
354
|
+
config: {
|
|
355
|
+
sql: {
|
|
356
|
+
type: "int";
|
|
357
|
+
pk: true;
|
|
358
|
+
};
|
|
359
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
360
|
+
zodNewSchema: TNewNext;
|
|
361
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
362
|
+
zodClientSchema: TClientNext;
|
|
363
|
+
zodValidationSchema: TClientNext;
|
|
364
|
+
};
|
|
365
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
366
|
+
sql: import("zod").ZodNumber;
|
|
367
|
+
initialState: TNewNext;
|
|
368
|
+
client: TClientNext;
|
|
369
|
+
}) => TValidationNext)) => {
|
|
370
|
+
config: {
|
|
371
|
+
sql: {
|
|
372
|
+
type: "int";
|
|
373
|
+
pk: true;
|
|
374
|
+
};
|
|
375
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
376
|
+
zodNewSchema: TNewNext;
|
|
377
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
378
|
+
zodClientSchema: TClientNext;
|
|
379
|
+
zodValidationSchema: TValidationNext;
|
|
380
|
+
};
|
|
381
|
+
transform: (transforms: {
|
|
382
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
383
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
384
|
+
}) => {
|
|
385
|
+
config: {
|
|
386
|
+
sql: {
|
|
387
|
+
type: "int";
|
|
388
|
+
pk: true;
|
|
389
|
+
};
|
|
390
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
391
|
+
zodNewSchema: TNewNext;
|
|
392
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
393
|
+
zodClientSchema: TClientNext;
|
|
394
|
+
zodValidationSchema: TValidationNext;
|
|
395
|
+
} & {
|
|
396
|
+
transforms: {
|
|
397
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
398
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
233
403
|
transform: (transforms: {
|
|
234
404
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
235
405
|
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
@@ -243,7 +413,7 @@ declare const schemas: {
|
|
|
243
413
|
zodNewSchema: TNewNext;
|
|
244
414
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
245
415
|
zodClientSchema: TClientNext;
|
|
246
|
-
zodValidationSchema:
|
|
416
|
+
zodValidationSchema: TClientNext;
|
|
247
417
|
} & {
|
|
248
418
|
transforms: {
|
|
249
419
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
@@ -253,8 +423,8 @@ declare const schemas: {
|
|
|
253
423
|
};
|
|
254
424
|
};
|
|
255
425
|
transform: (transforms: {
|
|
256
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
257
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
426
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
427
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
258
428
|
}) => {
|
|
259
429
|
config: {
|
|
260
430
|
sql: {
|
|
@@ -264,37 +434,16 @@ declare const schemas: {
|
|
|
264
434
|
zodSqlSchema: import("zod").ZodNumber;
|
|
265
435
|
zodNewSchema: TNewNext;
|
|
266
436
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
267
|
-
zodClientSchema:
|
|
268
|
-
zodValidationSchema:
|
|
437
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
438
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
269
439
|
} & {
|
|
270
440
|
transforms: {
|
|
271
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
272
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
441
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
442
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
273
443
|
};
|
|
274
444
|
};
|
|
275
445
|
};
|
|
276
446
|
};
|
|
277
|
-
transform: (transforms: {
|
|
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
|
-
}) => {
|
|
281
|
-
config: {
|
|
282
|
-
sql: {
|
|
283
|
-
type: "int";
|
|
284
|
-
pk: true;
|
|
285
|
-
};
|
|
286
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
287
|
-
zodNewSchema: TNewNext;
|
|
288
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
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
|
-
} & {
|
|
292
|
-
transforms: {
|
|
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
|
-
};
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
447
|
};
|
|
299
448
|
};
|
|
300
449
|
firstname: {
|
|
@@ -409,14 +558,14 @@ declare const schemas: {
|
|
|
409
558
|
pk: true;
|
|
410
559
|
};
|
|
411
560
|
zodSqlSchema: import("zod").ZodNumber;
|
|
412
|
-
zodNewSchema: import("zod").
|
|
561
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
413
562
|
initialValue: string;
|
|
414
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").
|
|
563
|
+
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
415
564
|
zodValidationSchema: import("zod").ZodString;
|
|
416
565
|
} & {
|
|
417
566
|
transforms: {
|
|
418
|
-
toClient: (dbValue: number) =>
|
|
419
|
-
toDb: (clientValue:
|
|
567
|
+
toClient: (dbValue: number) => number;
|
|
568
|
+
toDb: (clientValue: number) => number;
|
|
420
569
|
};
|
|
421
570
|
};
|
|
422
571
|
} | {
|
|
@@ -565,39 +714,135 @@ declare const schemas: {
|
|
|
565
714
|
};
|
|
566
715
|
};
|
|
567
716
|
};
|
|
568
|
-
initialState:
|
|
569
|
-
|
|
570
|
-
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
571
|
-
config: {
|
|
572
|
-
sql: {
|
|
573
|
-
type: "varchar";
|
|
574
|
-
length: number;
|
|
575
|
-
};
|
|
576
|
-
zodSqlSchema: import("zod").ZodString;
|
|
577
|
-
zodNewSchema: TNewNext;
|
|
578
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
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
|
-
};
|
|
582
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
583
|
-
sql: import("zod").ZodString;
|
|
584
|
-
initialState: TNewNext;
|
|
585
|
-
client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
586
|
-
}) => TValidationNext)) => {
|
|
717
|
+
initialState: {
|
|
718
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
587
719
|
config: {
|
|
588
720
|
sql: {
|
|
589
721
|
type: "varchar";
|
|
590
722
|
length: number;
|
|
591
723
|
};
|
|
592
724
|
zodSqlSchema: import("zod").ZodString;
|
|
593
|
-
zodNewSchema:
|
|
594
|
-
initialValue:
|
|
595
|
-
zodClientSchema: import("zod").
|
|
596
|
-
zodValidationSchema:
|
|
725
|
+
zodNewSchema: import("zod").ZodString;
|
|
726
|
+
initialValue: TDefaultNext;
|
|
727
|
+
zodClientSchema: import("zod").ZodString;
|
|
728
|
+
zodValidationSchema: import("zod").ZodString;
|
|
729
|
+
};
|
|
730
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
731
|
+
sql: import("zod").ZodString;
|
|
732
|
+
initialState: import("zod").ZodString;
|
|
733
|
+
client: import("zod").ZodString;
|
|
734
|
+
}) => TValidationNext)) => {
|
|
735
|
+
config: {
|
|
736
|
+
sql: {
|
|
737
|
+
type: "varchar";
|
|
738
|
+
length: number;
|
|
739
|
+
};
|
|
740
|
+
zodSqlSchema: import("zod").ZodString;
|
|
741
|
+
zodNewSchema: import("zod").ZodString;
|
|
742
|
+
initialValue: TDefaultNext;
|
|
743
|
+
zodClientSchema: import("zod").ZodString;
|
|
744
|
+
zodValidationSchema: TValidationNext;
|
|
745
|
+
};
|
|
746
|
+
transform: (transforms: {
|
|
747
|
+
toClient: (dbValue: string) => string;
|
|
748
|
+
toDb: (clientValue: string) => string;
|
|
749
|
+
}) => {
|
|
750
|
+
config: {
|
|
751
|
+
sql: {
|
|
752
|
+
type: "varchar";
|
|
753
|
+
length: number;
|
|
754
|
+
};
|
|
755
|
+
zodSqlSchema: import("zod").ZodString;
|
|
756
|
+
zodNewSchema: import("zod").ZodString;
|
|
757
|
+
initialValue: TDefaultNext;
|
|
758
|
+
zodClientSchema: import("zod").ZodString;
|
|
759
|
+
zodValidationSchema: TValidationNext;
|
|
760
|
+
} & {
|
|
761
|
+
transforms: {
|
|
762
|
+
toClient: (dbValue: string) => string;
|
|
763
|
+
toDb: (clientValue: string) => string;
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
769
|
+
sql: import("zod").ZodString;
|
|
770
|
+
initialState: import("zod").ZodString;
|
|
771
|
+
}) => TClientNext)) => {
|
|
772
|
+
config: {
|
|
773
|
+
sql: {
|
|
774
|
+
type: "varchar";
|
|
775
|
+
length: number;
|
|
776
|
+
};
|
|
777
|
+
zodSqlSchema: import("zod").ZodString;
|
|
778
|
+
zodNewSchema: import("zod").ZodString;
|
|
779
|
+
initialValue: TDefaultNext;
|
|
780
|
+
zodClientSchema: TClientNext;
|
|
781
|
+
zodValidationSchema: TClientNext;
|
|
782
|
+
};
|
|
783
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
784
|
+
sql: import("zod").ZodString;
|
|
785
|
+
initialState: import("zod").ZodString;
|
|
786
|
+
client: TClientNext;
|
|
787
|
+
}) => TValidationNext)) => {
|
|
788
|
+
config: {
|
|
789
|
+
sql: {
|
|
790
|
+
type: "varchar";
|
|
791
|
+
length: number;
|
|
792
|
+
};
|
|
793
|
+
zodSqlSchema: import("zod").ZodString;
|
|
794
|
+
zodNewSchema: import("zod").ZodString;
|
|
795
|
+
initialValue: TDefaultNext;
|
|
796
|
+
zodClientSchema: TClientNext;
|
|
797
|
+
zodValidationSchema: TValidationNext;
|
|
798
|
+
};
|
|
799
|
+
transform: (transforms: {
|
|
800
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
801
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
802
|
+
}) => {
|
|
803
|
+
config: {
|
|
804
|
+
sql: {
|
|
805
|
+
type: "varchar";
|
|
806
|
+
length: number;
|
|
807
|
+
};
|
|
808
|
+
zodSqlSchema: import("zod").ZodString;
|
|
809
|
+
zodNewSchema: import("zod").ZodString;
|
|
810
|
+
initialValue: TDefaultNext;
|
|
811
|
+
zodClientSchema: TClientNext;
|
|
812
|
+
zodValidationSchema: TValidationNext;
|
|
813
|
+
} & {
|
|
814
|
+
transforms: {
|
|
815
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
816
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
transform: (transforms: {
|
|
822
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
823
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
824
|
+
}) => {
|
|
825
|
+
config: {
|
|
826
|
+
sql: {
|
|
827
|
+
type: "varchar";
|
|
828
|
+
length: number;
|
|
829
|
+
};
|
|
830
|
+
zodSqlSchema: import("zod").ZodString;
|
|
831
|
+
zodNewSchema: import("zod").ZodString;
|
|
832
|
+
initialValue: TDefaultNext;
|
|
833
|
+
zodClientSchema: TClientNext;
|
|
834
|
+
zodValidationSchema: TClientNext;
|
|
835
|
+
} & {
|
|
836
|
+
transforms: {
|
|
837
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
838
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
};
|
|
597
842
|
};
|
|
598
843
|
transform: (transforms: {
|
|
599
|
-
toClient: (dbValue: string) =>
|
|
600
|
-
toDb: (clientValue:
|
|
844
|
+
toClient: (dbValue: string) => string;
|
|
845
|
+
toDb: (clientValue: string) => string;
|
|
601
846
|
}) => {
|
|
602
847
|
config: {
|
|
603
848
|
sql: {
|
|
@@ -605,22 +850,21 @@ declare const schemas: {
|
|
|
605
850
|
length: number;
|
|
606
851
|
};
|
|
607
852
|
zodSqlSchema: import("zod").ZodString;
|
|
608
|
-
zodNewSchema:
|
|
609
|
-
initialValue:
|
|
610
|
-
zodClientSchema: import("zod").
|
|
611
|
-
zodValidationSchema:
|
|
853
|
+
zodNewSchema: import("zod").ZodString;
|
|
854
|
+
initialValue: TDefaultNext;
|
|
855
|
+
zodClientSchema: import("zod").ZodString;
|
|
856
|
+
zodValidationSchema: import("zod").ZodString;
|
|
612
857
|
} & {
|
|
613
858
|
transforms: {
|
|
614
|
-
toClient: (dbValue: string) =>
|
|
615
|
-
toDb: (clientValue:
|
|
859
|
+
toClient: (dbValue: string) => string;
|
|
860
|
+
toDb: (clientValue: string) => string;
|
|
616
861
|
};
|
|
617
862
|
};
|
|
618
863
|
};
|
|
619
864
|
};
|
|
620
|
-
|
|
865
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
621
866
|
sql: import("zod").ZodString;
|
|
622
|
-
|
|
623
|
-
}) => TClientNext)) => {
|
|
867
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
624
868
|
config: {
|
|
625
869
|
sql: {
|
|
626
870
|
type: "varchar";
|
|
@@ -629,14 +873,51 @@ declare const schemas: {
|
|
|
629
873
|
zodSqlSchema: import("zod").ZodString;
|
|
630
874
|
zodNewSchema: TNewNext;
|
|
631
875
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
632
|
-
zodClientSchema:
|
|
633
|
-
zodValidationSchema:
|
|
876
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
877
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
634
878
|
};
|
|
635
879
|
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
636
880
|
sql: import("zod").ZodString;
|
|
637
881
|
initialState: TNewNext;
|
|
638
|
-
client:
|
|
882
|
+
client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
639
883
|
}) => TValidationNext)) => {
|
|
884
|
+
config: {
|
|
885
|
+
sql: {
|
|
886
|
+
type: "varchar";
|
|
887
|
+
length: number;
|
|
888
|
+
};
|
|
889
|
+
zodSqlSchema: import("zod").ZodString;
|
|
890
|
+
zodNewSchema: TNewNext;
|
|
891
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
892
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
893
|
+
zodValidationSchema: TValidationNext;
|
|
894
|
+
};
|
|
895
|
+
transform: (transforms: {
|
|
896
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
897
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
898
|
+
}) => {
|
|
899
|
+
config: {
|
|
900
|
+
sql: {
|
|
901
|
+
type: "varchar";
|
|
902
|
+
length: number;
|
|
903
|
+
};
|
|
904
|
+
zodSqlSchema: import("zod").ZodString;
|
|
905
|
+
zodNewSchema: TNewNext;
|
|
906
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
907
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
908
|
+
zodValidationSchema: TValidationNext;
|
|
909
|
+
} & {
|
|
910
|
+
transforms: {
|
|
911
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
912
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
918
|
+
sql: import("zod").ZodString;
|
|
919
|
+
initialState: TNewNext;
|
|
920
|
+
}) => TClientNext)) => {
|
|
640
921
|
config: {
|
|
641
922
|
sql: {
|
|
642
923
|
type: "varchar";
|
|
@@ -646,7 +927,45 @@ declare const schemas: {
|
|
|
646
927
|
zodNewSchema: TNewNext;
|
|
647
928
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
648
929
|
zodClientSchema: TClientNext;
|
|
649
|
-
zodValidationSchema:
|
|
930
|
+
zodValidationSchema: TClientNext;
|
|
931
|
+
};
|
|
932
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
933
|
+
sql: import("zod").ZodString;
|
|
934
|
+
initialState: TNewNext;
|
|
935
|
+
client: TClientNext;
|
|
936
|
+
}) => TValidationNext)) => {
|
|
937
|
+
config: {
|
|
938
|
+
sql: {
|
|
939
|
+
type: "varchar";
|
|
940
|
+
length: number;
|
|
941
|
+
};
|
|
942
|
+
zodSqlSchema: import("zod").ZodString;
|
|
943
|
+
zodNewSchema: TNewNext;
|
|
944
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
945
|
+
zodClientSchema: TClientNext;
|
|
946
|
+
zodValidationSchema: TValidationNext;
|
|
947
|
+
};
|
|
948
|
+
transform: (transforms: {
|
|
949
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
950
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
951
|
+
}) => {
|
|
952
|
+
config: {
|
|
953
|
+
sql: {
|
|
954
|
+
type: "varchar";
|
|
955
|
+
length: number;
|
|
956
|
+
};
|
|
957
|
+
zodSqlSchema: import("zod").ZodString;
|
|
958
|
+
zodNewSchema: TNewNext;
|
|
959
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
960
|
+
zodClientSchema: TClientNext;
|
|
961
|
+
zodValidationSchema: TValidationNext;
|
|
962
|
+
} & {
|
|
963
|
+
transforms: {
|
|
964
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
965
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
};
|
|
650
969
|
};
|
|
651
970
|
transform: (transforms: {
|
|
652
971
|
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
@@ -661,7 +980,7 @@ declare const schemas: {
|
|
|
661
980
|
zodNewSchema: TNewNext;
|
|
662
981
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
663
982
|
zodClientSchema: TClientNext;
|
|
664
|
-
zodValidationSchema:
|
|
983
|
+
zodValidationSchema: TClientNext;
|
|
665
984
|
} & {
|
|
666
985
|
transforms: {
|
|
667
986
|
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
@@ -671,8 +990,8 @@ declare const schemas: {
|
|
|
671
990
|
};
|
|
672
991
|
};
|
|
673
992
|
transform: (transforms: {
|
|
674
|
-
toClient: (dbValue: string) => import("zod").TypeOf<
|
|
675
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
993
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
994
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
676
995
|
}) => {
|
|
677
996
|
config: {
|
|
678
997
|
sql: {
|
|
@@ -682,42 +1001,20 @@ declare const schemas: {
|
|
|
682
1001
|
zodSqlSchema: import("zod").ZodString;
|
|
683
1002
|
zodNewSchema: TNewNext;
|
|
684
1003
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
685
|
-
zodClientSchema:
|
|
686
|
-
zodValidationSchema:
|
|
1004
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1005
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
687
1006
|
} & {
|
|
688
1007
|
transforms: {
|
|
689
|
-
toClient: (dbValue: string) => import("zod").TypeOf<
|
|
690
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
1008
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1009
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
691
1010
|
};
|
|
692
1011
|
};
|
|
693
1012
|
};
|
|
694
1013
|
};
|
|
695
|
-
transform: (transforms: {
|
|
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
|
-
}) => {
|
|
699
|
-
config: {
|
|
700
|
-
sql: {
|
|
701
|
-
type: "varchar";
|
|
702
|
-
length: number;
|
|
703
|
-
};
|
|
704
|
-
zodSqlSchema: import("zod").ZodString;
|
|
705
|
-
zodNewSchema: TNewNext;
|
|
706
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
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
|
-
} & {
|
|
710
|
-
transforms: {
|
|
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
|
-
};
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
1014
|
};
|
|
717
1015
|
} | {
|
|
718
|
-
field: import("zod").ZodNumber;
|
|
719
1016
|
type: "reference";
|
|
720
|
-
to: () =>
|
|
1017
|
+
to: () => {
|
|
721
1018
|
config: {
|
|
722
1019
|
sql: {
|
|
723
1020
|
type: "int";
|
|
@@ -863,39 +1160,135 @@ declare const schemas: {
|
|
|
863
1160
|
};
|
|
864
1161
|
};
|
|
865
1162
|
};
|
|
866
|
-
initialState:
|
|
867
|
-
|
|
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]>;
|
|
879
|
-
};
|
|
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)) => {
|
|
1163
|
+
initialState: {
|
|
1164
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
885
1165
|
config: {
|
|
886
1166
|
sql: {
|
|
887
1167
|
type: "int";
|
|
888
1168
|
pk: true;
|
|
889
1169
|
};
|
|
890
1170
|
zodSqlSchema: import("zod").ZodNumber;
|
|
891
|
-
zodNewSchema:
|
|
892
|
-
initialValue:
|
|
893
|
-
zodClientSchema: import("zod").
|
|
894
|
-
zodValidationSchema:
|
|
1171
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1172
|
+
initialValue: TDefaultNext;
|
|
1173
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1174
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
1175
|
+
};
|
|
1176
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1177
|
+
sql: import("zod").ZodNumber;
|
|
1178
|
+
initialState: import("zod").ZodNumber;
|
|
1179
|
+
client: import("zod").ZodNumber;
|
|
1180
|
+
}) => TValidationNext)) => {
|
|
1181
|
+
config: {
|
|
1182
|
+
sql: {
|
|
1183
|
+
type: "int";
|
|
1184
|
+
pk: true;
|
|
1185
|
+
};
|
|
1186
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1187
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1188
|
+
initialValue: TDefaultNext;
|
|
1189
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1190
|
+
zodValidationSchema: TValidationNext;
|
|
1191
|
+
};
|
|
1192
|
+
transform: (transforms: {
|
|
1193
|
+
toClient: (dbValue: number) => number;
|
|
1194
|
+
toDb: (clientValue: number) => number;
|
|
1195
|
+
}) => {
|
|
1196
|
+
config: {
|
|
1197
|
+
sql: {
|
|
1198
|
+
type: "int";
|
|
1199
|
+
pk: true;
|
|
1200
|
+
};
|
|
1201
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1202
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1203
|
+
initialValue: TDefaultNext;
|
|
1204
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1205
|
+
zodValidationSchema: TValidationNext;
|
|
1206
|
+
} & {
|
|
1207
|
+
transforms: {
|
|
1208
|
+
toClient: (dbValue: number) => number;
|
|
1209
|
+
toDb: (clientValue: number) => number;
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
1215
|
+
sql: import("zod").ZodNumber;
|
|
1216
|
+
initialState: import("zod").ZodNumber;
|
|
1217
|
+
}) => TClientNext)) => {
|
|
1218
|
+
config: {
|
|
1219
|
+
sql: {
|
|
1220
|
+
type: "int";
|
|
1221
|
+
pk: true;
|
|
1222
|
+
};
|
|
1223
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1224
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1225
|
+
initialValue: TDefaultNext;
|
|
1226
|
+
zodClientSchema: TClientNext;
|
|
1227
|
+
zodValidationSchema: TClientNext;
|
|
1228
|
+
};
|
|
1229
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1230
|
+
sql: import("zod").ZodNumber;
|
|
1231
|
+
initialState: import("zod").ZodNumber;
|
|
1232
|
+
client: TClientNext;
|
|
1233
|
+
}) => TValidationNext)) => {
|
|
1234
|
+
config: {
|
|
1235
|
+
sql: {
|
|
1236
|
+
type: "int";
|
|
1237
|
+
pk: true;
|
|
1238
|
+
};
|
|
1239
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1240
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1241
|
+
initialValue: TDefaultNext;
|
|
1242
|
+
zodClientSchema: TClientNext;
|
|
1243
|
+
zodValidationSchema: TValidationNext;
|
|
1244
|
+
};
|
|
1245
|
+
transform: (transforms: {
|
|
1246
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1247
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1248
|
+
}) => {
|
|
1249
|
+
config: {
|
|
1250
|
+
sql: {
|
|
1251
|
+
type: "int";
|
|
1252
|
+
pk: true;
|
|
1253
|
+
};
|
|
1254
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1255
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1256
|
+
initialValue: TDefaultNext;
|
|
1257
|
+
zodClientSchema: TClientNext;
|
|
1258
|
+
zodValidationSchema: TValidationNext;
|
|
1259
|
+
} & {
|
|
1260
|
+
transforms: {
|
|
1261
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1262
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
transform: (transforms: {
|
|
1268
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1269
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1270
|
+
}) => {
|
|
1271
|
+
config: {
|
|
1272
|
+
sql: {
|
|
1273
|
+
type: "int";
|
|
1274
|
+
pk: true;
|
|
1275
|
+
};
|
|
1276
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1277
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1278
|
+
initialValue: TDefaultNext;
|
|
1279
|
+
zodClientSchema: TClientNext;
|
|
1280
|
+
zodValidationSchema: TClientNext;
|
|
1281
|
+
} & {
|
|
1282
|
+
transforms: {
|
|
1283
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1284
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
895
1288
|
};
|
|
896
1289
|
transform: (transforms: {
|
|
897
|
-
toClient: (dbValue: number) =>
|
|
898
|
-
toDb: (clientValue:
|
|
1290
|
+
toClient: (dbValue: number) => number;
|
|
1291
|
+
toDb: (clientValue: number) => number;
|
|
899
1292
|
}) => {
|
|
900
1293
|
config: {
|
|
901
1294
|
sql: {
|
|
@@ -903,22 +1296,21 @@ declare const schemas: {
|
|
|
903
1296
|
pk: true;
|
|
904
1297
|
};
|
|
905
1298
|
zodSqlSchema: import("zod").ZodNumber;
|
|
906
|
-
zodNewSchema:
|
|
907
|
-
initialValue:
|
|
908
|
-
zodClientSchema: import("zod").
|
|
909
|
-
zodValidationSchema:
|
|
1299
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1300
|
+
initialValue: TDefaultNext;
|
|
1301
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
1302
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
910
1303
|
} & {
|
|
911
1304
|
transforms: {
|
|
912
|
-
toClient: (dbValue: number) =>
|
|
913
|
-
toDb: (clientValue:
|
|
1305
|
+
toClient: (dbValue: number) => number;
|
|
1306
|
+
toDb: (clientValue: number) => number;
|
|
914
1307
|
};
|
|
915
1308
|
};
|
|
916
1309
|
};
|
|
917
1310
|
};
|
|
918
|
-
|
|
1311
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
919
1312
|
sql: import("zod").ZodNumber;
|
|
920
|
-
|
|
921
|
-
}) => TClientNext)) => {
|
|
1313
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
922
1314
|
config: {
|
|
923
1315
|
sql: {
|
|
924
1316
|
type: "int";
|
|
@@ -927,14 +1319,51 @@ declare const schemas: {
|
|
|
927
1319
|
zodSqlSchema: import("zod").ZodNumber;
|
|
928
1320
|
zodNewSchema: TNewNext;
|
|
929
1321
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
930
|
-
zodClientSchema:
|
|
931
|
-
zodValidationSchema:
|
|
1322
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1323
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1324
|
+
};
|
|
1325
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1326
|
+
sql: import("zod").ZodNumber;
|
|
1327
|
+
initialState: TNewNext;
|
|
1328
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1329
|
+
}) => TValidationNext)) => {
|
|
1330
|
+
config: {
|
|
1331
|
+
sql: {
|
|
1332
|
+
type: "int";
|
|
1333
|
+
pk: true;
|
|
1334
|
+
};
|
|
1335
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1336
|
+
zodNewSchema: TNewNext;
|
|
1337
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1338
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1339
|
+
zodValidationSchema: TValidationNext;
|
|
1340
|
+
};
|
|
1341
|
+
transform: (transforms: {
|
|
1342
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1343
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1344
|
+
}) => {
|
|
1345
|
+
config: {
|
|
1346
|
+
sql: {
|
|
1347
|
+
type: "int";
|
|
1348
|
+
pk: true;
|
|
1349
|
+
};
|
|
1350
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1351
|
+
zodNewSchema: TNewNext;
|
|
1352
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1353
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1354
|
+
zodValidationSchema: TValidationNext;
|
|
1355
|
+
} & {
|
|
1356
|
+
transforms: {
|
|
1357
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1358
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
};
|
|
932
1362
|
};
|
|
933
|
-
|
|
1363
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
934
1364
|
sql: import("zod").ZodNumber;
|
|
935
1365
|
initialState: TNewNext;
|
|
936
|
-
|
|
937
|
-
}) => TValidationNext)) => {
|
|
1366
|
+
}) => TClientNext)) => {
|
|
938
1367
|
config: {
|
|
939
1368
|
sql: {
|
|
940
1369
|
type: "int";
|
|
@@ -944,7 +1373,45 @@ declare const schemas: {
|
|
|
944
1373
|
zodNewSchema: TNewNext;
|
|
945
1374
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
946
1375
|
zodClientSchema: TClientNext;
|
|
947
|
-
zodValidationSchema:
|
|
1376
|
+
zodValidationSchema: TClientNext;
|
|
1377
|
+
};
|
|
1378
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1379
|
+
sql: import("zod").ZodNumber;
|
|
1380
|
+
initialState: TNewNext;
|
|
1381
|
+
client: TClientNext;
|
|
1382
|
+
}) => TValidationNext)) => {
|
|
1383
|
+
config: {
|
|
1384
|
+
sql: {
|
|
1385
|
+
type: "int";
|
|
1386
|
+
pk: true;
|
|
1387
|
+
};
|
|
1388
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1389
|
+
zodNewSchema: TNewNext;
|
|
1390
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1391
|
+
zodClientSchema: TClientNext;
|
|
1392
|
+
zodValidationSchema: TValidationNext;
|
|
1393
|
+
};
|
|
1394
|
+
transform: (transforms: {
|
|
1395
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1396
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1397
|
+
}) => {
|
|
1398
|
+
config: {
|
|
1399
|
+
sql: {
|
|
1400
|
+
type: "int";
|
|
1401
|
+
pk: true;
|
|
1402
|
+
};
|
|
1403
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
1404
|
+
zodNewSchema: TNewNext;
|
|
1405
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1406
|
+
zodClientSchema: TClientNext;
|
|
1407
|
+
zodValidationSchema: TValidationNext;
|
|
1408
|
+
} & {
|
|
1409
|
+
transforms: {
|
|
1410
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1411
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
948
1415
|
};
|
|
949
1416
|
transform: (transforms: {
|
|
950
1417
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
@@ -959,7 +1426,7 @@ declare const schemas: {
|
|
|
959
1426
|
zodNewSchema: TNewNext;
|
|
960
1427
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
961
1428
|
zodClientSchema: TClientNext;
|
|
962
|
-
zodValidationSchema:
|
|
1429
|
+
zodValidationSchema: TClientNext;
|
|
963
1430
|
} & {
|
|
964
1431
|
transforms: {
|
|
965
1432
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
@@ -969,8 +1436,8 @@ declare const schemas: {
|
|
|
969
1436
|
};
|
|
970
1437
|
};
|
|
971
1438
|
transform: (transforms: {
|
|
972
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
973
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
1439
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1440
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
974
1441
|
}) => {
|
|
975
1442
|
config: {
|
|
976
1443
|
sql: {
|
|
@@ -980,37 +1447,16 @@ declare const schemas: {
|
|
|
980
1447
|
zodSqlSchema: import("zod").ZodNumber;
|
|
981
1448
|
zodNewSchema: TNewNext;
|
|
982
1449
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
983
|
-
zodClientSchema:
|
|
984
|
-
zodValidationSchema:
|
|
1450
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1451
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
985
1452
|
} & {
|
|
986
1453
|
transforms: {
|
|
987
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
988
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
1454
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
1455
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
989
1456
|
};
|
|
990
1457
|
};
|
|
991
1458
|
};
|
|
992
1459
|
};
|
|
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
|
-
};
|
|
1013
|
-
};
|
|
1014
1460
|
};
|
|
1015
1461
|
};
|
|
1016
1462
|
} | {
|
|
@@ -1055,14 +1501,14 @@ declare const schemas: {
|
|
|
1055
1501
|
pk: true;
|
|
1056
1502
|
};
|
|
1057
1503
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1058
|
-
zodNewSchema: import("zod").
|
|
1504
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1059
1505
|
initialValue: string;
|
|
1060
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").
|
|
1506
|
+
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
1061
1507
|
zodValidationSchema: import("zod").ZodString;
|
|
1062
1508
|
} & {
|
|
1063
1509
|
transforms: {
|
|
1064
|
-
toClient: (dbValue: number) =>
|
|
1065
|
-
toDb: (clientValue:
|
|
1510
|
+
toClient: (dbValue: number) => number;
|
|
1511
|
+
toDb: (clientValue: number) => number;
|
|
1066
1512
|
};
|
|
1067
1513
|
};
|
|
1068
1514
|
};
|
|
@@ -1141,15 +1587,206 @@ declare const schemas: {
|
|
|
1141
1587
|
type: "varchar";
|
|
1142
1588
|
length: number;
|
|
1143
1589
|
};
|
|
1144
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1145
|
-
zodNewSchema: import("zod").ZodString;
|
|
1146
|
-
initialValue: string;
|
|
1147
|
-
zodClientSchema: TClientNext;
|
|
1148
|
-
zodValidationSchema: TValidationNext;
|
|
1590
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1591
|
+
zodNewSchema: import("zod").ZodString;
|
|
1592
|
+
initialValue: string;
|
|
1593
|
+
zodClientSchema: TClientNext;
|
|
1594
|
+
zodValidationSchema: TValidationNext;
|
|
1595
|
+
};
|
|
1596
|
+
transform: (transforms: {
|
|
1597
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1598
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1599
|
+
}) => {
|
|
1600
|
+
config: {
|
|
1601
|
+
sql: {
|
|
1602
|
+
type: "varchar";
|
|
1603
|
+
length: number;
|
|
1604
|
+
};
|
|
1605
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1606
|
+
zodNewSchema: import("zod").ZodString;
|
|
1607
|
+
initialValue: string;
|
|
1608
|
+
zodClientSchema: TClientNext;
|
|
1609
|
+
zodValidationSchema: TValidationNext;
|
|
1610
|
+
} & {
|
|
1611
|
+
transforms: {
|
|
1612
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1613
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
transform: (transforms: {
|
|
1619
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1620
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1621
|
+
}) => {
|
|
1622
|
+
config: {
|
|
1623
|
+
sql: {
|
|
1624
|
+
type: "varchar";
|
|
1625
|
+
length: number;
|
|
1626
|
+
};
|
|
1627
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1628
|
+
zodNewSchema: import("zod").ZodString;
|
|
1629
|
+
initialValue: string;
|
|
1630
|
+
zodClientSchema: TClientNext;
|
|
1631
|
+
zodValidationSchema: TClientNext;
|
|
1632
|
+
} & {
|
|
1633
|
+
transforms: {
|
|
1634
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1635
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
transform: (transforms: {
|
|
1641
|
+
toClient: (dbValue: string) => string;
|
|
1642
|
+
toDb: (clientValue: string) => string;
|
|
1643
|
+
}) => {
|
|
1644
|
+
config: {
|
|
1645
|
+
sql: {
|
|
1646
|
+
type: "varchar";
|
|
1647
|
+
length: number;
|
|
1648
|
+
};
|
|
1649
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1650
|
+
zodNewSchema: import("zod").ZodString;
|
|
1651
|
+
initialValue: string;
|
|
1652
|
+
zodClientSchema: import("zod").ZodString;
|
|
1653
|
+
zodValidationSchema: import("zod").ZodString;
|
|
1654
|
+
} & {
|
|
1655
|
+
transforms: {
|
|
1656
|
+
toClient: (dbValue: string) => string;
|
|
1657
|
+
toDb: (clientValue: string) => string;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
initialState: {
|
|
1662
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
1663
|
+
config: {
|
|
1664
|
+
sql: {
|
|
1665
|
+
type: "varchar";
|
|
1666
|
+
length: number;
|
|
1667
|
+
};
|
|
1668
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1669
|
+
zodNewSchema: import("zod").ZodString;
|
|
1670
|
+
initialValue: TDefaultNext;
|
|
1671
|
+
zodClientSchema: import("zod").ZodString;
|
|
1672
|
+
zodValidationSchema: import("zod").ZodString;
|
|
1673
|
+
};
|
|
1674
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1675
|
+
sql: import("zod").ZodString;
|
|
1676
|
+
initialState: import("zod").ZodString;
|
|
1677
|
+
client: import("zod").ZodString;
|
|
1678
|
+
}) => TValidationNext)) => {
|
|
1679
|
+
config: {
|
|
1680
|
+
sql: {
|
|
1681
|
+
type: "varchar";
|
|
1682
|
+
length: number;
|
|
1683
|
+
};
|
|
1684
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1685
|
+
zodNewSchema: import("zod").ZodString;
|
|
1686
|
+
initialValue: TDefaultNext;
|
|
1687
|
+
zodClientSchema: import("zod").ZodString;
|
|
1688
|
+
zodValidationSchema: TValidationNext;
|
|
1689
|
+
};
|
|
1690
|
+
transform: (transforms: {
|
|
1691
|
+
toClient: (dbValue: string) => string;
|
|
1692
|
+
toDb: (clientValue: string) => string;
|
|
1693
|
+
}) => {
|
|
1694
|
+
config: {
|
|
1695
|
+
sql: {
|
|
1696
|
+
type: "varchar";
|
|
1697
|
+
length: number;
|
|
1698
|
+
};
|
|
1699
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1700
|
+
zodNewSchema: import("zod").ZodString;
|
|
1701
|
+
initialValue: TDefaultNext;
|
|
1702
|
+
zodClientSchema: import("zod").ZodString;
|
|
1703
|
+
zodValidationSchema: TValidationNext;
|
|
1704
|
+
} & {
|
|
1705
|
+
transforms: {
|
|
1706
|
+
toClient: (dbValue: string) => string;
|
|
1707
|
+
toDb: (clientValue: string) => string;
|
|
1708
|
+
};
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
1713
|
+
sql: import("zod").ZodString;
|
|
1714
|
+
initialState: import("zod").ZodString;
|
|
1715
|
+
}) => TClientNext)) => {
|
|
1716
|
+
config: {
|
|
1717
|
+
sql: {
|
|
1718
|
+
type: "varchar";
|
|
1719
|
+
length: number;
|
|
1720
|
+
};
|
|
1721
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1722
|
+
zodNewSchema: import("zod").ZodString;
|
|
1723
|
+
initialValue: TDefaultNext;
|
|
1724
|
+
zodClientSchema: TClientNext;
|
|
1725
|
+
zodValidationSchema: TClientNext;
|
|
1726
|
+
};
|
|
1727
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1728
|
+
sql: import("zod").ZodString;
|
|
1729
|
+
initialState: import("zod").ZodString;
|
|
1730
|
+
client: TClientNext;
|
|
1731
|
+
}) => TValidationNext)) => {
|
|
1732
|
+
config: {
|
|
1733
|
+
sql: {
|
|
1734
|
+
type: "varchar";
|
|
1735
|
+
length: number;
|
|
1736
|
+
};
|
|
1737
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1738
|
+
zodNewSchema: import("zod").ZodString;
|
|
1739
|
+
initialValue: TDefaultNext;
|
|
1740
|
+
zodClientSchema: TClientNext;
|
|
1741
|
+
zodValidationSchema: TValidationNext;
|
|
1742
|
+
};
|
|
1743
|
+
transform: (transforms: {
|
|
1744
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1745
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1746
|
+
}) => {
|
|
1747
|
+
config: {
|
|
1748
|
+
sql: {
|
|
1749
|
+
type: "varchar";
|
|
1750
|
+
length: number;
|
|
1751
|
+
};
|
|
1752
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1753
|
+
zodNewSchema: import("zod").ZodString;
|
|
1754
|
+
initialValue: TDefaultNext;
|
|
1755
|
+
zodClientSchema: TClientNext;
|
|
1756
|
+
zodValidationSchema: TValidationNext;
|
|
1757
|
+
} & {
|
|
1758
|
+
transforms: {
|
|
1759
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1760
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1761
|
+
};
|
|
1762
|
+
};
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
transform: (transforms: {
|
|
1766
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1767
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1768
|
+
}) => {
|
|
1769
|
+
config: {
|
|
1770
|
+
sql: {
|
|
1771
|
+
type: "varchar";
|
|
1772
|
+
length: number;
|
|
1773
|
+
};
|
|
1774
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1775
|
+
zodNewSchema: import("zod").ZodString;
|
|
1776
|
+
initialValue: TDefaultNext;
|
|
1777
|
+
zodClientSchema: TClientNext;
|
|
1778
|
+
zodValidationSchema: TClientNext;
|
|
1779
|
+
} & {
|
|
1780
|
+
transforms: {
|
|
1781
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1782
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1149
1786
|
};
|
|
1150
1787
|
transform: (transforms: {
|
|
1151
|
-
toClient: (dbValue: string) =>
|
|
1152
|
-
toDb: (clientValue:
|
|
1788
|
+
toClient: (dbValue: string) => string;
|
|
1789
|
+
toDb: (clientValue: string) => string;
|
|
1153
1790
|
}) => {
|
|
1154
1791
|
config: {
|
|
1155
1792
|
sql: {
|
|
@@ -1158,79 +1795,20 @@ declare const schemas: {
|
|
|
1158
1795
|
};
|
|
1159
1796
|
zodSqlSchema: import("zod").ZodString;
|
|
1160
1797
|
zodNewSchema: import("zod").ZodString;
|
|
1161
|
-
initialValue:
|
|
1162
|
-
zodClientSchema:
|
|
1163
|
-
zodValidationSchema:
|
|
1798
|
+
initialValue: TDefaultNext;
|
|
1799
|
+
zodClientSchema: import("zod").ZodString;
|
|
1800
|
+
zodValidationSchema: import("zod").ZodString;
|
|
1164
1801
|
} & {
|
|
1165
1802
|
transforms: {
|
|
1166
|
-
toClient: (dbValue: string) =>
|
|
1167
|
-
toDb: (clientValue:
|
|
1803
|
+
toClient: (dbValue: string) => string;
|
|
1804
|
+
toDb: (clientValue: string) => string;
|
|
1168
1805
|
};
|
|
1169
1806
|
};
|
|
1170
1807
|
};
|
|
1171
1808
|
};
|
|
1172
|
-
|
|
1173
|
-
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1174
|
-
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1175
|
-
}) => {
|
|
1176
|
-
config: {
|
|
1177
|
-
sql: {
|
|
1178
|
-
type: "varchar";
|
|
1179
|
-
length: number;
|
|
1180
|
-
};
|
|
1181
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1182
|
-
zodNewSchema: import("zod").ZodString;
|
|
1183
|
-
initialValue: string;
|
|
1184
|
-
zodClientSchema: TClientNext;
|
|
1185
|
-
zodValidationSchema: TClientNext;
|
|
1186
|
-
} & {
|
|
1187
|
-
transforms: {
|
|
1188
|
-
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1189
|
-
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
};
|
|
1193
|
-
};
|
|
1194
|
-
transform: (transforms: {
|
|
1195
|
-
toClient: (dbValue: string) => string;
|
|
1196
|
-
toDb: (clientValue: string) => string;
|
|
1197
|
-
}) => {
|
|
1198
|
-
config: {
|
|
1199
|
-
sql: {
|
|
1200
|
-
type: "varchar";
|
|
1201
|
-
length: number;
|
|
1202
|
-
};
|
|
1203
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1204
|
-
zodNewSchema: import("zod").ZodString;
|
|
1205
|
-
initialValue: string;
|
|
1206
|
-
zodClientSchema: import("zod").ZodString;
|
|
1207
|
-
zodValidationSchema: import("zod").ZodString;
|
|
1208
|
-
} & {
|
|
1209
|
-
transforms: {
|
|
1210
|
-
toClient: (dbValue: string) => string;
|
|
1211
|
-
toDb: (clientValue: string) => string;
|
|
1212
|
-
};
|
|
1213
|
-
};
|
|
1214
|
-
};
|
|
1215
|
-
initialState: <TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
1216
|
-
sql: import("zod").ZodString;
|
|
1217
|
-
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
1218
|
-
config: {
|
|
1219
|
-
sql: {
|
|
1220
|
-
type: "varchar";
|
|
1221
|
-
length: number;
|
|
1222
|
-
};
|
|
1223
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1224
|
-
zodNewSchema: TNewNext;
|
|
1225
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1226
|
-
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1227
|
-
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1228
|
-
};
|
|
1229
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1809
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
1230
1810
|
sql: import("zod").ZodString;
|
|
1231
|
-
|
|
1232
|
-
client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1233
|
-
}) => TValidationNext)) => {
|
|
1811
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
1234
1812
|
config: {
|
|
1235
1813
|
sql: {
|
|
1236
1814
|
type: "varchar";
|
|
@@ -1240,12 +1818,13 @@ declare const schemas: {
|
|
|
1240
1818
|
zodNewSchema: TNewNext;
|
|
1241
1819
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1242
1820
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1243
|
-
zodValidationSchema:
|
|
1821
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1244
1822
|
};
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1823
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1824
|
+
sql: import("zod").ZodString;
|
|
1825
|
+
initialState: TNewNext;
|
|
1826
|
+
client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1827
|
+
}) => TValidationNext)) => {
|
|
1249
1828
|
config: {
|
|
1250
1829
|
sql: {
|
|
1251
1830
|
type: "varchar";
|
|
@@ -1256,34 +1835,33 @@ declare const schemas: {
|
|
|
1256
1835
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1257
1836
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1258
1837
|
zodValidationSchema: TValidationNext;
|
|
1259
|
-
} & {
|
|
1260
|
-
transforms: {
|
|
1261
|
-
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1262
|
-
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1263
|
-
};
|
|
1264
1838
|
};
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1839
|
+
transform: (transforms: {
|
|
1840
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1841
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1842
|
+
}) => {
|
|
1843
|
+
config: {
|
|
1844
|
+
sql: {
|
|
1845
|
+
type: "varchar";
|
|
1846
|
+
length: number;
|
|
1847
|
+
};
|
|
1848
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1849
|
+
zodNewSchema: TNewNext;
|
|
1850
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1851
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1852
|
+
zodValidationSchema: TValidationNext;
|
|
1853
|
+
} & {
|
|
1854
|
+
transforms: {
|
|
1855
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1856
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1275
1859
|
};
|
|
1276
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1277
|
-
zodNewSchema: TNewNext;
|
|
1278
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1279
|
-
zodClientSchema: TClientNext;
|
|
1280
|
-
zodValidationSchema: TClientNext;
|
|
1281
1860
|
};
|
|
1282
|
-
|
|
1861
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
1283
1862
|
sql: import("zod").ZodString;
|
|
1284
1863
|
initialState: TNewNext;
|
|
1285
|
-
|
|
1286
|
-
}) => TValidationNext)) => {
|
|
1864
|
+
}) => TClientNext)) => {
|
|
1287
1865
|
config: {
|
|
1288
1866
|
sql: {
|
|
1289
1867
|
type: "varchar";
|
|
@@ -1293,7 +1871,45 @@ declare const schemas: {
|
|
|
1293
1871
|
zodNewSchema: TNewNext;
|
|
1294
1872
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1295
1873
|
zodClientSchema: TClientNext;
|
|
1296
|
-
zodValidationSchema:
|
|
1874
|
+
zodValidationSchema: TClientNext;
|
|
1875
|
+
};
|
|
1876
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1877
|
+
sql: import("zod").ZodString;
|
|
1878
|
+
initialState: TNewNext;
|
|
1879
|
+
client: TClientNext;
|
|
1880
|
+
}) => TValidationNext)) => {
|
|
1881
|
+
config: {
|
|
1882
|
+
sql: {
|
|
1883
|
+
type: "varchar";
|
|
1884
|
+
length: number;
|
|
1885
|
+
};
|
|
1886
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1887
|
+
zodNewSchema: TNewNext;
|
|
1888
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1889
|
+
zodClientSchema: TClientNext;
|
|
1890
|
+
zodValidationSchema: TValidationNext;
|
|
1891
|
+
};
|
|
1892
|
+
transform: (transforms: {
|
|
1893
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1894
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1895
|
+
}) => {
|
|
1896
|
+
config: {
|
|
1897
|
+
sql: {
|
|
1898
|
+
type: "varchar";
|
|
1899
|
+
length: number;
|
|
1900
|
+
};
|
|
1901
|
+
zodSqlSchema: import("zod").ZodString;
|
|
1902
|
+
zodNewSchema: TNewNext;
|
|
1903
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1904
|
+
zodClientSchema: TClientNext;
|
|
1905
|
+
zodValidationSchema: TValidationNext;
|
|
1906
|
+
} & {
|
|
1907
|
+
transforms: {
|
|
1908
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1909
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
};
|
|
1297
1913
|
};
|
|
1298
1914
|
transform: (transforms: {
|
|
1299
1915
|
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
@@ -1308,7 +1924,7 @@ declare const schemas: {
|
|
|
1308
1924
|
zodNewSchema: TNewNext;
|
|
1309
1925
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1310
1926
|
zodClientSchema: TClientNext;
|
|
1311
|
-
zodValidationSchema:
|
|
1927
|
+
zodValidationSchema: TClientNext;
|
|
1312
1928
|
} & {
|
|
1313
1929
|
transforms: {
|
|
1314
1930
|
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
@@ -1318,8 +1934,8 @@ declare const schemas: {
|
|
|
1318
1934
|
};
|
|
1319
1935
|
};
|
|
1320
1936
|
transform: (transforms: {
|
|
1321
|
-
toClient: (dbValue: string) => import("zod").TypeOf<
|
|
1322
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
1937
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1938
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1323
1939
|
}) => {
|
|
1324
1940
|
config: {
|
|
1325
1941
|
sql: {
|
|
@@ -1329,43 +1945,21 @@ declare const schemas: {
|
|
|
1329
1945
|
zodSqlSchema: import("zod").ZodString;
|
|
1330
1946
|
zodNewSchema: TNewNext;
|
|
1331
1947
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1332
|
-
zodClientSchema:
|
|
1333
|
-
zodValidationSchema:
|
|
1948
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1949
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1334
1950
|
} & {
|
|
1335
1951
|
transforms: {
|
|
1336
|
-
toClient: (dbValue: string) => import("zod").TypeOf<
|
|
1337
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
1952
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1953
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1338
1954
|
};
|
|
1339
1955
|
};
|
|
1340
1956
|
};
|
|
1341
1957
|
};
|
|
1342
|
-
transform: (transforms: {
|
|
1343
|
-
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1344
|
-
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1345
|
-
}) => {
|
|
1346
|
-
config: {
|
|
1347
|
-
sql: {
|
|
1348
|
-
type: "varchar";
|
|
1349
|
-
length: number;
|
|
1350
|
-
};
|
|
1351
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1352
|
-
zodNewSchema: TNewNext;
|
|
1353
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1354
|
-
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1355
|
-
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1356
|
-
} & {
|
|
1357
|
-
transforms: {
|
|
1358
|
-
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1359
|
-
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
};
|
|
1363
1958
|
};
|
|
1364
1959
|
};
|
|
1365
1960
|
userId: {
|
|
1366
|
-
field: import("zod").ZodNumber;
|
|
1367
1961
|
type: "reference";
|
|
1368
|
-
to: () =>
|
|
1962
|
+
to: () => {
|
|
1369
1963
|
config: {
|
|
1370
1964
|
sql: {
|
|
1371
1965
|
type: "int";
|
|
@@ -1511,39 +2105,135 @@ declare const schemas: {
|
|
|
1511
2105
|
};
|
|
1512
2106
|
};
|
|
1513
2107
|
};
|
|
1514
|
-
initialState:
|
|
1515
|
-
|
|
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]>;
|
|
1527
|
-
};
|
|
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)) => {
|
|
2108
|
+
initialState: {
|
|
2109
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
1533
2110
|
config: {
|
|
1534
2111
|
sql: {
|
|
1535
2112
|
type: "int";
|
|
1536
2113
|
pk: true;
|
|
1537
2114
|
};
|
|
1538
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
1539
|
-
zodNewSchema:
|
|
1540
|
-
initialValue:
|
|
1541
|
-
zodClientSchema: import("zod").
|
|
1542
|
-
zodValidationSchema:
|
|
2115
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2116
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2117
|
+
initialValue: TDefaultNext;
|
|
2118
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2119
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
2120
|
+
};
|
|
2121
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2122
|
+
sql: import("zod").ZodNumber;
|
|
2123
|
+
initialState: import("zod").ZodNumber;
|
|
2124
|
+
client: import("zod").ZodNumber;
|
|
2125
|
+
}) => TValidationNext)) => {
|
|
2126
|
+
config: {
|
|
2127
|
+
sql: {
|
|
2128
|
+
type: "int";
|
|
2129
|
+
pk: true;
|
|
2130
|
+
};
|
|
2131
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2132
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2133
|
+
initialValue: TDefaultNext;
|
|
2134
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2135
|
+
zodValidationSchema: TValidationNext;
|
|
2136
|
+
};
|
|
2137
|
+
transform: (transforms: {
|
|
2138
|
+
toClient: (dbValue: number) => number;
|
|
2139
|
+
toDb: (clientValue: number) => number;
|
|
2140
|
+
}) => {
|
|
2141
|
+
config: {
|
|
2142
|
+
sql: {
|
|
2143
|
+
type: "int";
|
|
2144
|
+
pk: true;
|
|
2145
|
+
};
|
|
2146
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2147
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2148
|
+
initialValue: TDefaultNext;
|
|
2149
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2150
|
+
zodValidationSchema: TValidationNext;
|
|
2151
|
+
} & {
|
|
2152
|
+
transforms: {
|
|
2153
|
+
toClient: (dbValue: number) => number;
|
|
2154
|
+
toDb: (clientValue: number) => number;
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
2158
|
+
};
|
|
2159
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2160
|
+
sql: import("zod").ZodNumber;
|
|
2161
|
+
initialState: import("zod").ZodNumber;
|
|
2162
|
+
}) => TClientNext)) => {
|
|
2163
|
+
config: {
|
|
2164
|
+
sql: {
|
|
2165
|
+
type: "int";
|
|
2166
|
+
pk: true;
|
|
2167
|
+
};
|
|
2168
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2169
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2170
|
+
initialValue: TDefaultNext;
|
|
2171
|
+
zodClientSchema: TClientNext;
|
|
2172
|
+
zodValidationSchema: TClientNext;
|
|
2173
|
+
};
|
|
2174
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2175
|
+
sql: import("zod").ZodNumber;
|
|
2176
|
+
initialState: import("zod").ZodNumber;
|
|
2177
|
+
client: TClientNext;
|
|
2178
|
+
}) => TValidationNext)) => {
|
|
2179
|
+
config: {
|
|
2180
|
+
sql: {
|
|
2181
|
+
type: "int";
|
|
2182
|
+
pk: true;
|
|
2183
|
+
};
|
|
2184
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2185
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2186
|
+
initialValue: TDefaultNext;
|
|
2187
|
+
zodClientSchema: TClientNext;
|
|
2188
|
+
zodValidationSchema: TValidationNext;
|
|
2189
|
+
};
|
|
2190
|
+
transform: (transforms: {
|
|
2191
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2192
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2193
|
+
}) => {
|
|
2194
|
+
config: {
|
|
2195
|
+
sql: {
|
|
2196
|
+
type: "int";
|
|
2197
|
+
pk: true;
|
|
2198
|
+
};
|
|
2199
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2200
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2201
|
+
initialValue: TDefaultNext;
|
|
2202
|
+
zodClientSchema: TClientNext;
|
|
2203
|
+
zodValidationSchema: TValidationNext;
|
|
2204
|
+
} & {
|
|
2205
|
+
transforms: {
|
|
2206
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2207
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
transform: (transforms: {
|
|
2213
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2214
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2215
|
+
}) => {
|
|
2216
|
+
config: {
|
|
2217
|
+
sql: {
|
|
2218
|
+
type: "int";
|
|
2219
|
+
pk: true;
|
|
2220
|
+
};
|
|
2221
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2222
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2223
|
+
initialValue: TDefaultNext;
|
|
2224
|
+
zodClientSchema: TClientNext;
|
|
2225
|
+
zodValidationSchema: TClientNext;
|
|
2226
|
+
} & {
|
|
2227
|
+
transforms: {
|
|
2228
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2229
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
};
|
|
1543
2233
|
};
|
|
1544
2234
|
transform: (transforms: {
|
|
1545
|
-
toClient: (dbValue: number) =>
|
|
1546
|
-
toDb: (clientValue:
|
|
2235
|
+
toClient: (dbValue: number) => number;
|
|
2236
|
+
toDb: (clientValue: number) => number;
|
|
1547
2237
|
}) => {
|
|
1548
2238
|
config: {
|
|
1549
2239
|
sql: {
|
|
@@ -1551,22 +2241,21 @@ declare const schemas: {
|
|
|
1551
2241
|
pk: true;
|
|
1552
2242
|
};
|
|
1553
2243
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1554
|
-
zodNewSchema:
|
|
1555
|
-
initialValue:
|
|
1556
|
-
zodClientSchema: import("zod").
|
|
1557
|
-
zodValidationSchema:
|
|
2244
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
2245
|
+
initialValue: TDefaultNext;
|
|
2246
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
2247
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
1558
2248
|
} & {
|
|
1559
2249
|
transforms: {
|
|
1560
|
-
toClient: (dbValue: number) =>
|
|
1561
|
-
toDb: (clientValue:
|
|
2250
|
+
toClient: (dbValue: number) => number;
|
|
2251
|
+
toDb: (clientValue: number) => number;
|
|
1562
2252
|
};
|
|
1563
2253
|
};
|
|
1564
2254
|
};
|
|
1565
2255
|
};
|
|
1566
|
-
|
|
2256
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
1567
2257
|
sql: import("zod").ZodNumber;
|
|
1568
|
-
|
|
1569
|
-
}) => TClientNext)) => {
|
|
2258
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
1570
2259
|
config: {
|
|
1571
2260
|
sql: {
|
|
1572
2261
|
type: "int";
|
|
@@ -1575,13 +2264,13 @@ declare const schemas: {
|
|
|
1575
2264
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1576
2265
|
zodNewSchema: TNewNext;
|
|
1577
2266
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1578
|
-
zodClientSchema:
|
|
1579
|
-
zodValidationSchema:
|
|
2267
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2268
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1580
2269
|
};
|
|
1581
2270
|
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1582
2271
|
sql: import("zod").ZodNumber;
|
|
1583
2272
|
initialState: TNewNext;
|
|
1584
|
-
client:
|
|
2273
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1585
2274
|
}) => TValidationNext)) => {
|
|
1586
2275
|
config: {
|
|
1587
2276
|
sql: {
|
|
@@ -1591,9 +2280,84 @@ declare const schemas: {
|
|
|
1591
2280
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1592
2281
|
zodNewSchema: TNewNext;
|
|
1593
2282
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1594
|
-
zodClientSchema:
|
|
2283
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1595
2284
|
zodValidationSchema: TValidationNext;
|
|
1596
2285
|
};
|
|
2286
|
+
transform: (transforms: {
|
|
2287
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2288
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2289
|
+
}) => {
|
|
2290
|
+
config: {
|
|
2291
|
+
sql: {
|
|
2292
|
+
type: "int";
|
|
2293
|
+
pk: true;
|
|
2294
|
+
};
|
|
2295
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2296
|
+
zodNewSchema: TNewNext;
|
|
2297
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2298
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2299
|
+
zodValidationSchema: TValidationNext;
|
|
2300
|
+
} & {
|
|
2301
|
+
transforms: {
|
|
2302
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2303
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2304
|
+
};
|
|
2305
|
+
};
|
|
2306
|
+
};
|
|
2307
|
+
};
|
|
2308
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2309
|
+
sql: import("zod").ZodNumber;
|
|
2310
|
+
initialState: TNewNext;
|
|
2311
|
+
}) => TClientNext)) => {
|
|
2312
|
+
config: {
|
|
2313
|
+
sql: {
|
|
2314
|
+
type: "int";
|
|
2315
|
+
pk: true;
|
|
2316
|
+
};
|
|
2317
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2318
|
+
zodNewSchema: TNewNext;
|
|
2319
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2320
|
+
zodClientSchema: TClientNext;
|
|
2321
|
+
zodValidationSchema: TClientNext;
|
|
2322
|
+
};
|
|
2323
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2324
|
+
sql: import("zod").ZodNumber;
|
|
2325
|
+
initialState: TNewNext;
|
|
2326
|
+
client: TClientNext;
|
|
2327
|
+
}) => TValidationNext)) => {
|
|
2328
|
+
config: {
|
|
2329
|
+
sql: {
|
|
2330
|
+
type: "int";
|
|
2331
|
+
pk: true;
|
|
2332
|
+
};
|
|
2333
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2334
|
+
zodNewSchema: TNewNext;
|
|
2335
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2336
|
+
zodClientSchema: TClientNext;
|
|
2337
|
+
zodValidationSchema: TValidationNext;
|
|
2338
|
+
};
|
|
2339
|
+
transform: (transforms: {
|
|
2340
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2341
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2342
|
+
}) => {
|
|
2343
|
+
config: {
|
|
2344
|
+
sql: {
|
|
2345
|
+
type: "int";
|
|
2346
|
+
pk: true;
|
|
2347
|
+
};
|
|
2348
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
2349
|
+
zodNewSchema: TNewNext;
|
|
2350
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2351
|
+
zodClientSchema: TClientNext;
|
|
2352
|
+
zodValidationSchema: TValidationNext;
|
|
2353
|
+
} & {
|
|
2354
|
+
transforms: {
|
|
2355
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2356
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
1597
2361
|
transform: (transforms: {
|
|
1598
2362
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
1599
2363
|
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
@@ -1607,7 +2371,7 @@ declare const schemas: {
|
|
|
1607
2371
|
zodNewSchema: TNewNext;
|
|
1608
2372
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1609
2373
|
zodClientSchema: TClientNext;
|
|
1610
|
-
zodValidationSchema:
|
|
2374
|
+
zodValidationSchema: TClientNext;
|
|
1611
2375
|
} & {
|
|
1612
2376
|
transforms: {
|
|
1613
2377
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
@@ -1617,8 +2381,8 @@ declare const schemas: {
|
|
|
1617
2381
|
};
|
|
1618
2382
|
};
|
|
1619
2383
|
transform: (transforms: {
|
|
1620
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
1621
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
2384
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2385
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1622
2386
|
}) => {
|
|
1623
2387
|
config: {
|
|
1624
2388
|
sql: {
|
|
@@ -1628,37 +2392,16 @@ declare const schemas: {
|
|
|
1628
2392
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1629
2393
|
zodNewSchema: TNewNext;
|
|
1630
2394
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1631
|
-
zodClientSchema:
|
|
1632
|
-
zodValidationSchema:
|
|
2395
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2396
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
1633
2397
|
} & {
|
|
1634
2398
|
transforms: {
|
|
1635
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
1636
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
2399
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
2400
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
1637
2401
|
};
|
|
1638
2402
|
};
|
|
1639
2403
|
};
|
|
1640
2404
|
};
|
|
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
|
-
};
|
|
1661
|
-
};
|
|
1662
2405
|
};
|
|
1663
2406
|
};
|
|
1664
2407
|
};
|
|
@@ -1709,14 +2452,14 @@ declare const schemas: {
|
|
|
1709
2452
|
pk: true;
|
|
1710
2453
|
};
|
|
1711
2454
|
zodSqlSchema: import("zod").ZodNumber;
|
|
1712
|
-
zodNewSchema: import("zod").
|
|
2455
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
1713
2456
|
initialValue: string;
|
|
1714
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").
|
|
2457
|
+
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
1715
2458
|
zodValidationSchema: import("zod").ZodString;
|
|
1716
2459
|
} & {
|
|
1717
2460
|
transforms: {
|
|
1718
|
-
toClient: (dbValue: number) =>
|
|
1719
|
-
toDb: (clientValue:
|
|
2461
|
+
toClient: (dbValue: number) => number;
|
|
2462
|
+
toDb: (clientValue: number) => number;
|
|
1720
2463
|
};
|
|
1721
2464
|
};
|
|
1722
2465
|
};
|
|
@@ -1866,39 +2609,135 @@ declare const schemas: {
|
|
|
1866
2609
|
};
|
|
1867
2610
|
};
|
|
1868
2611
|
};
|
|
1869
|
-
initialState:
|
|
1870
|
-
|
|
1871
|
-
}) => TNewNext), defaultValue: () => TDefaultNext) => {
|
|
1872
|
-
config: {
|
|
1873
|
-
sql: {
|
|
1874
|
-
type: "varchar";
|
|
1875
|
-
length: number;
|
|
1876
|
-
};
|
|
1877
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1878
|
-
zodNewSchema: TNewNext;
|
|
1879
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1880
|
-
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1881
|
-
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1882
|
-
};
|
|
1883
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1884
|
-
sql: import("zod").ZodString;
|
|
1885
|
-
initialState: TNewNext;
|
|
1886
|
-
client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1887
|
-
}) => TValidationNext)) => {
|
|
2612
|
+
initialState: {
|
|
2613
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
1888
2614
|
config: {
|
|
1889
2615
|
sql: {
|
|
1890
2616
|
type: "varchar";
|
|
1891
2617
|
length: number;
|
|
1892
2618
|
};
|
|
1893
|
-
zodSqlSchema: import("zod").ZodString;
|
|
1894
|
-
zodNewSchema:
|
|
1895
|
-
initialValue:
|
|
1896
|
-
zodClientSchema: import("zod").
|
|
1897
|
-
zodValidationSchema:
|
|
2619
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2620
|
+
zodNewSchema: import("zod").ZodString;
|
|
2621
|
+
initialValue: TDefaultNext;
|
|
2622
|
+
zodClientSchema: import("zod").ZodString;
|
|
2623
|
+
zodValidationSchema: import("zod").ZodString;
|
|
2624
|
+
};
|
|
2625
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2626
|
+
sql: import("zod").ZodString;
|
|
2627
|
+
initialState: import("zod").ZodString;
|
|
2628
|
+
client: import("zod").ZodString;
|
|
2629
|
+
}) => TValidationNext)) => {
|
|
2630
|
+
config: {
|
|
2631
|
+
sql: {
|
|
2632
|
+
type: "varchar";
|
|
2633
|
+
length: number;
|
|
2634
|
+
};
|
|
2635
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2636
|
+
zodNewSchema: import("zod").ZodString;
|
|
2637
|
+
initialValue: TDefaultNext;
|
|
2638
|
+
zodClientSchema: import("zod").ZodString;
|
|
2639
|
+
zodValidationSchema: TValidationNext;
|
|
2640
|
+
};
|
|
2641
|
+
transform: (transforms: {
|
|
2642
|
+
toClient: (dbValue: string) => string;
|
|
2643
|
+
toDb: (clientValue: string) => string;
|
|
2644
|
+
}) => {
|
|
2645
|
+
config: {
|
|
2646
|
+
sql: {
|
|
2647
|
+
type: "varchar";
|
|
2648
|
+
length: number;
|
|
2649
|
+
};
|
|
2650
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2651
|
+
zodNewSchema: import("zod").ZodString;
|
|
2652
|
+
initialValue: TDefaultNext;
|
|
2653
|
+
zodClientSchema: import("zod").ZodString;
|
|
2654
|
+
zodValidationSchema: TValidationNext;
|
|
2655
|
+
} & {
|
|
2656
|
+
transforms: {
|
|
2657
|
+
toClient: (dbValue: string) => string;
|
|
2658
|
+
toDb: (clientValue: string) => string;
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2663
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2664
|
+
sql: import("zod").ZodString;
|
|
2665
|
+
initialState: import("zod").ZodString;
|
|
2666
|
+
}) => TClientNext)) => {
|
|
2667
|
+
config: {
|
|
2668
|
+
sql: {
|
|
2669
|
+
type: "varchar";
|
|
2670
|
+
length: number;
|
|
2671
|
+
};
|
|
2672
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2673
|
+
zodNewSchema: import("zod").ZodString;
|
|
2674
|
+
initialValue: TDefaultNext;
|
|
2675
|
+
zodClientSchema: TClientNext;
|
|
2676
|
+
zodValidationSchema: TClientNext;
|
|
2677
|
+
};
|
|
2678
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2679
|
+
sql: import("zod").ZodString;
|
|
2680
|
+
initialState: import("zod").ZodString;
|
|
2681
|
+
client: TClientNext;
|
|
2682
|
+
}) => TValidationNext)) => {
|
|
2683
|
+
config: {
|
|
2684
|
+
sql: {
|
|
2685
|
+
type: "varchar";
|
|
2686
|
+
length: number;
|
|
2687
|
+
};
|
|
2688
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2689
|
+
zodNewSchema: import("zod").ZodString;
|
|
2690
|
+
initialValue: TDefaultNext;
|
|
2691
|
+
zodClientSchema: TClientNext;
|
|
2692
|
+
zodValidationSchema: TValidationNext;
|
|
2693
|
+
};
|
|
2694
|
+
transform: (transforms: {
|
|
2695
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
2696
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
2697
|
+
}) => {
|
|
2698
|
+
config: {
|
|
2699
|
+
sql: {
|
|
2700
|
+
type: "varchar";
|
|
2701
|
+
length: number;
|
|
2702
|
+
};
|
|
2703
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2704
|
+
zodNewSchema: import("zod").ZodString;
|
|
2705
|
+
initialValue: TDefaultNext;
|
|
2706
|
+
zodClientSchema: TClientNext;
|
|
2707
|
+
zodValidationSchema: TValidationNext;
|
|
2708
|
+
} & {
|
|
2709
|
+
transforms: {
|
|
2710
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
2711
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
};
|
|
2716
|
+
transform: (transforms: {
|
|
2717
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
2718
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
2719
|
+
}) => {
|
|
2720
|
+
config: {
|
|
2721
|
+
sql: {
|
|
2722
|
+
type: "varchar";
|
|
2723
|
+
length: number;
|
|
2724
|
+
};
|
|
2725
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2726
|
+
zodNewSchema: import("zod").ZodString;
|
|
2727
|
+
initialValue: TDefaultNext;
|
|
2728
|
+
zodClientSchema: TClientNext;
|
|
2729
|
+
zodValidationSchema: TClientNext;
|
|
2730
|
+
} & {
|
|
2731
|
+
transforms: {
|
|
2732
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
2733
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
1898
2737
|
};
|
|
1899
2738
|
transform: (transforms: {
|
|
1900
|
-
toClient: (dbValue: string) =>
|
|
1901
|
-
toDb: (clientValue:
|
|
2739
|
+
toClient: (dbValue: string) => string;
|
|
2740
|
+
toDb: (clientValue: string) => string;
|
|
1902
2741
|
}) => {
|
|
1903
2742
|
config: {
|
|
1904
2743
|
sql: {
|
|
@@ -1906,22 +2745,21 @@ declare const schemas: {
|
|
|
1906
2745
|
length: number;
|
|
1907
2746
|
};
|
|
1908
2747
|
zodSqlSchema: import("zod").ZodString;
|
|
1909
|
-
zodNewSchema:
|
|
1910
|
-
initialValue:
|
|
1911
|
-
zodClientSchema: import("zod").
|
|
1912
|
-
zodValidationSchema:
|
|
2748
|
+
zodNewSchema: import("zod").ZodString;
|
|
2749
|
+
initialValue: TDefaultNext;
|
|
2750
|
+
zodClientSchema: import("zod").ZodString;
|
|
2751
|
+
zodValidationSchema: import("zod").ZodString;
|
|
1913
2752
|
} & {
|
|
1914
2753
|
transforms: {
|
|
1915
|
-
toClient: (dbValue: string) =>
|
|
1916
|
-
toDb: (clientValue:
|
|
2754
|
+
toClient: (dbValue: string) => string;
|
|
2755
|
+
toDb: (clientValue: string) => string;
|
|
1917
2756
|
};
|
|
1918
2757
|
};
|
|
1919
2758
|
};
|
|
1920
2759
|
};
|
|
1921
|
-
|
|
2760
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
1922
2761
|
sql: import("zod").ZodString;
|
|
1923
|
-
|
|
1924
|
-
}) => TClientNext)) => {
|
|
2762
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
1925
2763
|
config: {
|
|
1926
2764
|
sql: {
|
|
1927
2765
|
type: "varchar";
|
|
@@ -1930,13 +2768,13 @@ declare const schemas: {
|
|
|
1930
2768
|
zodSqlSchema: import("zod").ZodString;
|
|
1931
2769
|
zodNewSchema: TNewNext;
|
|
1932
2770
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1933
|
-
zodClientSchema:
|
|
1934
|
-
zodValidationSchema:
|
|
2771
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
2772
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1935
2773
|
};
|
|
1936
2774
|
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
1937
2775
|
sql: import("zod").ZodString;
|
|
1938
2776
|
initialState: TNewNext;
|
|
1939
|
-
client:
|
|
2777
|
+
client: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1940
2778
|
}) => TValidationNext)) => {
|
|
1941
2779
|
config: {
|
|
1942
2780
|
sql: {
|
|
@@ -1946,9 +2784,84 @@ declare const schemas: {
|
|
|
1946
2784
|
zodSqlSchema: import("zod").ZodString;
|
|
1947
2785
|
zodNewSchema: TNewNext;
|
|
1948
2786
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1949
|
-
zodClientSchema:
|
|
2787
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1950
2788
|
zodValidationSchema: TValidationNext;
|
|
1951
2789
|
};
|
|
2790
|
+
transform: (transforms: {
|
|
2791
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
2792
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
2793
|
+
}) => {
|
|
2794
|
+
config: {
|
|
2795
|
+
sql: {
|
|
2796
|
+
type: "varchar";
|
|
2797
|
+
length: number;
|
|
2798
|
+
};
|
|
2799
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2800
|
+
zodNewSchema: TNewNext;
|
|
2801
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2802
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
2803
|
+
zodValidationSchema: TValidationNext;
|
|
2804
|
+
} & {
|
|
2805
|
+
transforms: {
|
|
2806
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
2807
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
2808
|
+
};
|
|
2809
|
+
};
|
|
2810
|
+
};
|
|
2811
|
+
};
|
|
2812
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2813
|
+
sql: import("zod").ZodString;
|
|
2814
|
+
initialState: TNewNext;
|
|
2815
|
+
}) => TClientNext)) => {
|
|
2816
|
+
config: {
|
|
2817
|
+
sql: {
|
|
2818
|
+
type: "varchar";
|
|
2819
|
+
length: number;
|
|
2820
|
+
};
|
|
2821
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2822
|
+
zodNewSchema: TNewNext;
|
|
2823
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2824
|
+
zodClientSchema: TClientNext;
|
|
2825
|
+
zodValidationSchema: TClientNext;
|
|
2826
|
+
};
|
|
2827
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
2828
|
+
sql: import("zod").ZodString;
|
|
2829
|
+
initialState: TNewNext;
|
|
2830
|
+
client: TClientNext;
|
|
2831
|
+
}) => TValidationNext)) => {
|
|
2832
|
+
config: {
|
|
2833
|
+
sql: {
|
|
2834
|
+
type: "varchar";
|
|
2835
|
+
length: number;
|
|
2836
|
+
};
|
|
2837
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2838
|
+
zodNewSchema: TNewNext;
|
|
2839
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2840
|
+
zodClientSchema: TClientNext;
|
|
2841
|
+
zodValidationSchema: TValidationNext;
|
|
2842
|
+
};
|
|
2843
|
+
transform: (transforms: {
|
|
2844
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
2845
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
2846
|
+
}) => {
|
|
2847
|
+
config: {
|
|
2848
|
+
sql: {
|
|
2849
|
+
type: "varchar";
|
|
2850
|
+
length: number;
|
|
2851
|
+
};
|
|
2852
|
+
zodSqlSchema: import("zod").ZodString;
|
|
2853
|
+
zodNewSchema: TNewNext;
|
|
2854
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2855
|
+
zodClientSchema: TClientNext;
|
|
2856
|
+
zodValidationSchema: TValidationNext;
|
|
2857
|
+
} & {
|
|
2858
|
+
transforms: {
|
|
2859
|
+
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
2860
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
2861
|
+
};
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2864
|
+
};
|
|
1952
2865
|
transform: (transforms: {
|
|
1953
2866
|
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
1954
2867
|
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => string;
|
|
@@ -1962,7 +2875,7 @@ declare const schemas: {
|
|
|
1962
2875
|
zodNewSchema: TNewNext;
|
|
1963
2876
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1964
2877
|
zodClientSchema: TClientNext;
|
|
1965
|
-
zodValidationSchema:
|
|
2878
|
+
zodValidationSchema: TClientNext;
|
|
1966
2879
|
} & {
|
|
1967
2880
|
transforms: {
|
|
1968
2881
|
toClient: (dbValue: string) => import("zod").TypeOf<TClientNext>;
|
|
@@ -1972,8 +2885,8 @@ declare const schemas: {
|
|
|
1972
2885
|
};
|
|
1973
2886
|
};
|
|
1974
2887
|
transform: (transforms: {
|
|
1975
|
-
toClient: (dbValue: string) => import("zod").TypeOf<
|
|
1976
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
2888
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
2889
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1977
2890
|
}) => {
|
|
1978
2891
|
config: {
|
|
1979
2892
|
sql: {
|
|
@@ -1983,43 +2896,21 @@ declare const schemas: {
|
|
|
1983
2896
|
zodSqlSchema: import("zod").ZodString;
|
|
1984
2897
|
zodNewSchema: TNewNext;
|
|
1985
2898
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
1986
|
-
zodClientSchema:
|
|
1987
|
-
zodValidationSchema:
|
|
2899
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
2900
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
1988
2901
|
} & {
|
|
1989
2902
|
transforms: {
|
|
1990
|
-
toClient: (dbValue: string) => import("zod").TypeOf<
|
|
1991
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
2903
|
+
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
2904
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1992
2905
|
};
|
|
1993
2906
|
};
|
|
1994
2907
|
};
|
|
1995
2908
|
};
|
|
1996
|
-
transform: (transforms: {
|
|
1997
|
-
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
1998
|
-
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
1999
|
-
}) => {
|
|
2000
|
-
config: {
|
|
2001
|
-
sql: {
|
|
2002
|
-
type: "varchar";
|
|
2003
|
-
length: number;
|
|
2004
|
-
};
|
|
2005
|
-
zodSqlSchema: import("zod").ZodString;
|
|
2006
|
-
zodNewSchema: TNewNext;
|
|
2007
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2008
|
-
zodClientSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
2009
|
-
zodValidationSchema: import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>;
|
|
2010
|
-
} & {
|
|
2011
|
-
transforms: {
|
|
2012
|
-
toClient: (dbValue: string) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>;
|
|
2013
|
-
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends string ? TNewNext : import("zod").ZodUnion<[import("zod").ZodString, TNewNext]>>) => string;
|
|
2014
|
-
};
|
|
2015
|
-
};
|
|
2016
|
-
};
|
|
2017
2909
|
};
|
|
2018
2910
|
};
|
|
2019
2911
|
userId: {
|
|
2020
|
-
field: import("zod").ZodNumber;
|
|
2021
2912
|
type: "reference";
|
|
2022
|
-
to: () =>
|
|
2913
|
+
to: () => {
|
|
2023
2914
|
config: {
|
|
2024
2915
|
sql: {
|
|
2025
2916
|
type: "int";
|
|
@@ -2111,79 +3002,211 @@ declare const schemas: {
|
|
|
2111
3002
|
};
|
|
2112
3003
|
zodSqlSchema: import("zod").ZodNumber;
|
|
2113
3004
|
zodNewSchema: import("zod").ZodNumber;
|
|
2114
|
-
initialValue: number;
|
|
3005
|
+
initialValue: number;
|
|
3006
|
+
zodClientSchema: TClientNext;
|
|
3007
|
+
zodValidationSchema: TValidationNext;
|
|
3008
|
+
} & {
|
|
3009
|
+
transforms: {
|
|
3010
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3011
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3012
|
+
};
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
};
|
|
3016
|
+
transform: (transforms: {
|
|
3017
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3018
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3019
|
+
}) => {
|
|
3020
|
+
config: {
|
|
3021
|
+
sql: {
|
|
3022
|
+
type: "int";
|
|
3023
|
+
pk: true;
|
|
3024
|
+
};
|
|
3025
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3026
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3027
|
+
initialValue: number;
|
|
3028
|
+
zodClientSchema: TClientNext;
|
|
3029
|
+
zodValidationSchema: TClientNext;
|
|
3030
|
+
} & {
|
|
3031
|
+
transforms: {
|
|
3032
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3033
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
};
|
|
3037
|
+
};
|
|
3038
|
+
transform: (transforms: {
|
|
3039
|
+
toClient: (dbValue: number) => number;
|
|
3040
|
+
toDb: (clientValue: number) => number;
|
|
3041
|
+
}) => {
|
|
3042
|
+
config: {
|
|
3043
|
+
sql: {
|
|
3044
|
+
type: "int";
|
|
3045
|
+
pk: true;
|
|
3046
|
+
};
|
|
3047
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3048
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3049
|
+
initialValue: number;
|
|
3050
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
3051
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
3052
|
+
} & {
|
|
3053
|
+
transforms: {
|
|
3054
|
+
toClient: (dbValue: number) => number;
|
|
3055
|
+
toDb: (clientValue: number) => number;
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
initialState: {
|
|
3060
|
+
<TDefaultNext>(defaultValue: () => TDefaultNext): {
|
|
3061
|
+
config: {
|
|
3062
|
+
sql: {
|
|
3063
|
+
type: "int";
|
|
3064
|
+
pk: true;
|
|
3065
|
+
};
|
|
3066
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3067
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3068
|
+
initialValue: TDefaultNext;
|
|
3069
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
3070
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
3071
|
+
};
|
|
3072
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
3073
|
+
sql: import("zod").ZodNumber;
|
|
3074
|
+
initialState: import("zod").ZodNumber;
|
|
3075
|
+
client: import("zod").ZodNumber;
|
|
3076
|
+
}) => TValidationNext)) => {
|
|
3077
|
+
config: {
|
|
3078
|
+
sql: {
|
|
3079
|
+
type: "int";
|
|
3080
|
+
pk: true;
|
|
3081
|
+
};
|
|
3082
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3083
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3084
|
+
initialValue: TDefaultNext;
|
|
3085
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
3086
|
+
zodValidationSchema: TValidationNext;
|
|
3087
|
+
};
|
|
3088
|
+
transform: (transforms: {
|
|
3089
|
+
toClient: (dbValue: number) => number;
|
|
3090
|
+
toDb: (clientValue: number) => number;
|
|
3091
|
+
}) => {
|
|
3092
|
+
config: {
|
|
3093
|
+
sql: {
|
|
3094
|
+
type: "int";
|
|
3095
|
+
pk: true;
|
|
3096
|
+
};
|
|
3097
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3098
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3099
|
+
initialValue: TDefaultNext;
|
|
3100
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
3101
|
+
zodValidationSchema: TValidationNext;
|
|
3102
|
+
} & {
|
|
3103
|
+
transforms: {
|
|
3104
|
+
toClient: (dbValue: number) => number;
|
|
3105
|
+
toDb: (clientValue: number) => number;
|
|
3106
|
+
};
|
|
3107
|
+
};
|
|
3108
|
+
};
|
|
3109
|
+
};
|
|
3110
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
3111
|
+
sql: import("zod").ZodNumber;
|
|
3112
|
+
initialState: import("zod").ZodNumber;
|
|
3113
|
+
}) => TClientNext)) => {
|
|
3114
|
+
config: {
|
|
3115
|
+
sql: {
|
|
3116
|
+
type: "int";
|
|
3117
|
+
pk: true;
|
|
3118
|
+
};
|
|
3119
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3120
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3121
|
+
initialValue: TDefaultNext;
|
|
2115
3122
|
zodClientSchema: TClientNext;
|
|
2116
|
-
zodValidationSchema:
|
|
2117
|
-
}
|
|
2118
|
-
|
|
3123
|
+
zodValidationSchema: TClientNext;
|
|
3124
|
+
};
|
|
3125
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
3126
|
+
sql: import("zod").ZodNumber;
|
|
3127
|
+
initialState: import("zod").ZodNumber;
|
|
3128
|
+
client: TClientNext;
|
|
3129
|
+
}) => TValidationNext)) => {
|
|
3130
|
+
config: {
|
|
3131
|
+
sql: {
|
|
3132
|
+
type: "int";
|
|
3133
|
+
pk: true;
|
|
3134
|
+
};
|
|
3135
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3136
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3137
|
+
initialValue: TDefaultNext;
|
|
3138
|
+
zodClientSchema: TClientNext;
|
|
3139
|
+
zodValidationSchema: TValidationNext;
|
|
3140
|
+
};
|
|
3141
|
+
transform: (transforms: {
|
|
2119
3142
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2120
3143
|
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3144
|
+
}) => {
|
|
3145
|
+
config: {
|
|
3146
|
+
sql: {
|
|
3147
|
+
type: "int";
|
|
3148
|
+
pk: true;
|
|
3149
|
+
};
|
|
3150
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3151
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3152
|
+
initialValue: TDefaultNext;
|
|
3153
|
+
zodClientSchema: TClientNext;
|
|
3154
|
+
zodValidationSchema: TValidationNext;
|
|
3155
|
+
} & {
|
|
3156
|
+
transforms: {
|
|
3157
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3158
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3159
|
+
};
|
|
3160
|
+
};
|
|
2121
3161
|
};
|
|
2122
3162
|
};
|
|
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: {
|
|
3163
|
+
transform: (transforms: {
|
|
2141
3164
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
2142
3165
|
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3166
|
+
}) => {
|
|
3167
|
+
config: {
|
|
3168
|
+
sql: {
|
|
3169
|
+
type: "int";
|
|
3170
|
+
pk: true;
|
|
3171
|
+
};
|
|
3172
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3173
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3174
|
+
initialValue: TDefaultNext;
|
|
3175
|
+
zodClientSchema: TClientNext;
|
|
3176
|
+
zodValidationSchema: TClientNext;
|
|
3177
|
+
} & {
|
|
3178
|
+
transforms: {
|
|
3179
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3180
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3181
|
+
};
|
|
3182
|
+
};
|
|
2143
3183
|
};
|
|
2144
3184
|
};
|
|
2145
|
-
|
|
2146
|
-
};
|
|
2147
|
-
transform: (transforms: {
|
|
2148
|
-
toClient: (dbValue: number) => number;
|
|
2149
|
-
toDb: (clientValue: number) => number;
|
|
2150
|
-
}) => {
|
|
2151
|
-
config: {
|
|
2152
|
-
sql: {
|
|
2153
|
-
type: "int";
|
|
2154
|
-
pk: true;
|
|
2155
|
-
};
|
|
2156
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
2157
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
2158
|
-
initialValue: number;
|
|
2159
|
-
zodClientSchema: import("zod").ZodNumber;
|
|
2160
|
-
zodValidationSchema: import("zod").ZodNumber;
|
|
2161
|
-
} & {
|
|
2162
|
-
transforms: {
|
|
3185
|
+
transform: (transforms: {
|
|
2163
3186
|
toClient: (dbValue: number) => number;
|
|
2164
3187
|
toDb: (clientValue: number) => number;
|
|
3188
|
+
}) => {
|
|
3189
|
+
config: {
|
|
3190
|
+
sql: {
|
|
3191
|
+
type: "int";
|
|
3192
|
+
pk: true;
|
|
3193
|
+
};
|
|
3194
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3195
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
3196
|
+
initialValue: TDefaultNext;
|
|
3197
|
+
zodClientSchema: import("zod").ZodNumber;
|
|
3198
|
+
zodValidationSchema: import("zod").ZodNumber;
|
|
3199
|
+
} & {
|
|
3200
|
+
transforms: {
|
|
3201
|
+
toClient: (dbValue: number) => number;
|
|
3202
|
+
toDb: (clientValue: number) => number;
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
2165
3205
|
};
|
|
2166
3206
|
};
|
|
2167
|
-
|
|
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]>;
|
|
2181
|
-
};
|
|
2182
|
-
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
3207
|
+
<TNewNext extends import("zod").ZodTypeAny, TDefaultNext>(schema: TNewNext | ((tools: {
|
|
2183
3208
|
sql: import("zod").ZodNumber;
|
|
2184
|
-
|
|
2185
|
-
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2186
|
-
}) => TValidationNext)) => {
|
|
3209
|
+
}) => TNewNext), defaultValue: () => TDefaultNext): {
|
|
2187
3210
|
config: {
|
|
2188
3211
|
sql: {
|
|
2189
3212
|
type: "int";
|
|
@@ -2193,12 +3216,13 @@ declare const schemas: {
|
|
|
2193
3216
|
zodNewSchema: TNewNext;
|
|
2194
3217
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2195
3218
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2196
|
-
zodValidationSchema:
|
|
3219
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2197
3220
|
};
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
3221
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
3222
|
+
sql: import("zod").ZodNumber;
|
|
3223
|
+
initialState: TNewNext;
|
|
3224
|
+
client: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
3225
|
+
}) => TValidationNext)) => {
|
|
2202
3226
|
config: {
|
|
2203
3227
|
sql: {
|
|
2204
3228
|
type: "int";
|
|
@@ -2209,34 +3233,33 @@ declare const schemas: {
|
|
|
2209
3233
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2210
3234
|
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2211
3235
|
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
3236
|
};
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
3237
|
+
transform: (transforms: {
|
|
3238
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
3239
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
3240
|
+
}) => {
|
|
3241
|
+
config: {
|
|
3242
|
+
sql: {
|
|
3243
|
+
type: "int";
|
|
3244
|
+
pk: true;
|
|
3245
|
+
};
|
|
3246
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3247
|
+
zodNewSchema: TNewNext;
|
|
3248
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
3249
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
3250
|
+
zodValidationSchema: TValidationNext;
|
|
3251
|
+
} & {
|
|
3252
|
+
transforms: {
|
|
3253
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
3254
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
3255
|
+
};
|
|
3256
|
+
};
|
|
2228
3257
|
};
|
|
2229
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
2230
|
-
zodNewSchema: TNewNext;
|
|
2231
|
-
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2232
|
-
zodClientSchema: TClientNext;
|
|
2233
|
-
zodValidationSchema: TClientNext;
|
|
2234
3258
|
};
|
|
2235
|
-
|
|
3259
|
+
client: <TClientNext extends import("zod").ZodTypeAny>(schema: TClientNext | ((tools: {
|
|
2236
3260
|
sql: import("zod").ZodNumber;
|
|
2237
3261
|
initialState: TNewNext;
|
|
2238
|
-
|
|
2239
|
-
}) => TValidationNext)) => {
|
|
3262
|
+
}) => TClientNext)) => {
|
|
2240
3263
|
config: {
|
|
2241
3264
|
sql: {
|
|
2242
3265
|
type: "int";
|
|
@@ -2246,7 +3269,45 @@ declare const schemas: {
|
|
|
2246
3269
|
zodNewSchema: TNewNext;
|
|
2247
3270
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2248
3271
|
zodClientSchema: TClientNext;
|
|
2249
|
-
zodValidationSchema:
|
|
3272
|
+
zodValidationSchema: TClientNext;
|
|
3273
|
+
};
|
|
3274
|
+
validation: <TValidationNext extends import("zod").ZodTypeAny>(schema: TValidationNext | ((tools: {
|
|
3275
|
+
sql: import("zod").ZodNumber;
|
|
3276
|
+
initialState: TNewNext;
|
|
3277
|
+
client: TClientNext;
|
|
3278
|
+
}) => TValidationNext)) => {
|
|
3279
|
+
config: {
|
|
3280
|
+
sql: {
|
|
3281
|
+
type: "int";
|
|
3282
|
+
pk: true;
|
|
3283
|
+
};
|
|
3284
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3285
|
+
zodNewSchema: TNewNext;
|
|
3286
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
3287
|
+
zodClientSchema: TClientNext;
|
|
3288
|
+
zodValidationSchema: TValidationNext;
|
|
3289
|
+
};
|
|
3290
|
+
transform: (transforms: {
|
|
3291
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3292
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3293
|
+
}) => {
|
|
3294
|
+
config: {
|
|
3295
|
+
sql: {
|
|
3296
|
+
type: "int";
|
|
3297
|
+
pk: true;
|
|
3298
|
+
};
|
|
3299
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
3300
|
+
zodNewSchema: TNewNext;
|
|
3301
|
+
initialValue: import("zod").TypeOf<TNewNext>;
|
|
3302
|
+
zodClientSchema: TClientNext;
|
|
3303
|
+
zodValidationSchema: TValidationNext;
|
|
3304
|
+
} & {
|
|
3305
|
+
transforms: {
|
|
3306
|
+
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
3307
|
+
toDb: (clientValue: import("zod").TypeOf<TClientNext>) => number;
|
|
3308
|
+
};
|
|
3309
|
+
};
|
|
3310
|
+
};
|
|
2250
3311
|
};
|
|
2251
3312
|
transform: (transforms: {
|
|
2252
3313
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
@@ -2261,7 +3322,7 @@ declare const schemas: {
|
|
|
2261
3322
|
zodNewSchema: TNewNext;
|
|
2262
3323
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2263
3324
|
zodClientSchema: TClientNext;
|
|
2264
|
-
zodValidationSchema:
|
|
3325
|
+
zodValidationSchema: TClientNext;
|
|
2265
3326
|
} & {
|
|
2266
3327
|
transforms: {
|
|
2267
3328
|
toClient: (dbValue: number) => import("zod").TypeOf<TClientNext>;
|
|
@@ -2271,8 +3332,8 @@ declare const schemas: {
|
|
|
2271
3332
|
};
|
|
2272
3333
|
};
|
|
2273
3334
|
transform: (transforms: {
|
|
2274
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
2275
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
3335
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
3336
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2276
3337
|
}) => {
|
|
2277
3338
|
config: {
|
|
2278
3339
|
sql: {
|
|
@@ -2282,37 +3343,16 @@ declare const schemas: {
|
|
|
2282
3343
|
zodSqlSchema: import("zod").ZodNumber;
|
|
2283
3344
|
zodNewSchema: TNewNext;
|
|
2284
3345
|
initialValue: import("zod").TypeOf<TNewNext>;
|
|
2285
|
-
zodClientSchema:
|
|
2286
|
-
zodValidationSchema:
|
|
3346
|
+
zodClientSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
3347
|
+
zodValidationSchema: import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>;
|
|
2287
3348
|
} & {
|
|
2288
3349
|
transforms: {
|
|
2289
|
-
toClient: (dbValue: number) => import("zod").TypeOf<
|
|
2290
|
-
toDb: (clientValue: import("zod").TypeOf<
|
|
3350
|
+
toClient: (dbValue: number) => import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>;
|
|
3351
|
+
toDb: (clientValue: import("zod").TypeOf<import("zod").TypeOf<TNewNext> extends number ? TNewNext : import("zod").ZodUnion<[import("zod").ZodNumber, TNewNext]>>) => number;
|
|
2291
3352
|
};
|
|
2292
3353
|
};
|
|
2293
3354
|
};
|
|
2294
3355
|
};
|
|
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
|
-
};
|
|
2315
|
-
};
|
|
2316
3356
|
};
|
|
2317
3357
|
};
|
|
2318
3358
|
};
|