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