cogsbox-shape 0.5.63 → 0.5.65
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 +112 -594
- package/dist/example/user.d.ts +112 -594
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +18 -16
- package/package.json +1 -1
package/dist/example/schema.d.ts
CHANGED
|
@@ -115,319 +115,78 @@ declare const schemas: {
|
|
|
115
115
|
};
|
|
116
116
|
pets: {
|
|
117
117
|
config: {
|
|
118
|
-
sql: ({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
id: {
|
|
124
|
-
config: {
|
|
125
|
-
sql: {
|
|
126
|
-
type: "int";
|
|
127
|
-
pk: true;
|
|
128
|
-
};
|
|
129
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
130
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
131
|
-
initialValue: string;
|
|
132
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
133
|
-
zodValidationSchema: import("zod").ZodString;
|
|
134
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
135
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
136
|
-
} & {
|
|
137
|
-
transforms: {
|
|
138
|
-
toClient: (dbValue: number) => number;
|
|
139
|
-
toDb: (clientValue: number) => number;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
name: import("..").Builder<"sql", {
|
|
144
|
-
type: "varchar";
|
|
145
|
-
length: number;
|
|
146
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
147
|
-
userId: {
|
|
148
|
-
type: "reference";
|
|
149
|
-
to: () => import("..").Builder<"sql", {
|
|
118
|
+
sql: import("..").RelationConfig<{
|
|
119
|
+
_tableName: string;
|
|
120
|
+
id: {
|
|
121
|
+
config: {
|
|
122
|
+
sql: {
|
|
150
123
|
type: "int";
|
|
151
124
|
pk: true;
|
|
152
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
153
|
-
};
|
|
154
|
-
fluffynessScale: {
|
|
155
|
-
config: {
|
|
156
|
-
sql: {
|
|
157
|
-
type: "text";
|
|
158
|
-
};
|
|
159
|
-
zodSqlSchema: import("zod").ZodString;
|
|
160
|
-
zodNewSchema: import("zod").ZodString;
|
|
161
|
-
initialValue: string;
|
|
162
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
163
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
164
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
165
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
166
|
-
} & {
|
|
167
|
-
transforms: {
|
|
168
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
169
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
170
|
-
};
|
|
171
125
|
};
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
184
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
185
|
-
} & {
|
|
186
|
-
transforms: {
|
|
187
|
-
toClient: (dbValue: number) => boolean;
|
|
188
|
-
toDb: (clientValue: boolean) => number;
|
|
189
|
-
};
|
|
126
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
127
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
128
|
+
initialValue: string;
|
|
129
|
+
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
130
|
+
zodValidationSchema: import("zod").ZodString;
|
|
131
|
+
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
132
|
+
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
133
|
+
} & {
|
|
134
|
+
transforms: {
|
|
135
|
+
toClient: (dbValue: number) => number;
|
|
136
|
+
toDb: (clientValue: number) => number;
|
|
190
137
|
};
|
|
191
138
|
};
|
|
192
139
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
sql: {
|
|
204
|
-
type: "int";
|
|
205
|
-
pk: true;
|
|
206
|
-
};
|
|
207
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
208
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
209
|
-
initialValue: string;
|
|
210
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
211
|
-
zodValidationSchema: import("zod").ZodString;
|
|
212
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
213
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
214
|
-
} & {
|
|
215
|
-
transforms: {
|
|
216
|
-
toClient: (dbValue: number) => number;
|
|
217
|
-
toDb: (clientValue: number) => number;
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
name: import("..").Builder<"sql", {
|
|
222
|
-
type: "varchar";
|
|
223
|
-
length: number;
|
|
224
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
225
|
-
userId: {
|
|
226
|
-
type: "reference";
|
|
227
|
-
to: () => import("..").Builder<"sql", {
|
|
228
|
-
type: "int";
|
|
229
|
-
pk: true;
|
|
230
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
231
|
-
};
|
|
232
|
-
fluffynessScale: {
|
|
233
|
-
config: {
|
|
234
|
-
sql: {
|
|
235
|
-
type: "text";
|
|
236
|
-
};
|
|
237
|
-
zodSqlSchema: import("zod").ZodString;
|
|
238
|
-
zodNewSchema: import("zod").ZodString;
|
|
239
|
-
initialValue: string;
|
|
240
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
241
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
242
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
243
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
244
|
-
} & {
|
|
245
|
-
transforms: {
|
|
246
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
247
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
favourite: {
|
|
252
|
-
config: {
|
|
253
|
-
sql: {
|
|
254
|
-
type: "int";
|
|
255
|
-
};
|
|
256
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
257
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
258
|
-
initialValue: number;
|
|
259
|
-
zodClientSchema: import("zod").ZodBoolean;
|
|
260
|
-
zodValidationSchema: import("zod").ZodBoolean;
|
|
261
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
262
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
263
|
-
} & {
|
|
264
|
-
transforms: {
|
|
265
|
-
toClient: (dbValue: number) => boolean;
|
|
266
|
-
toDb: (clientValue: boolean) => number;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
};
|
|
140
|
+
name: import("..").Builder<"sql", {
|
|
141
|
+
type: "varchar";
|
|
142
|
+
length: number;
|
|
143
|
+
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
144
|
+
userId: {
|
|
145
|
+
type: "reference";
|
|
146
|
+
to: () => import("..").Builder<"sql", {
|
|
147
|
+
type: "int";
|
|
148
|
+
pk: true;
|
|
149
|
+
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
270
150
|
};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
fromKey: string;
|
|
276
|
-
toKey: () => any;
|
|
277
|
-
schema: () => {
|
|
278
|
-
_tableName: string;
|
|
279
|
-
id: {
|
|
280
|
-
config: {
|
|
281
|
-
sql: {
|
|
282
|
-
type: "int";
|
|
283
|
-
pk: true;
|
|
284
|
-
};
|
|
285
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
286
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
287
|
-
initialValue: string;
|
|
288
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
289
|
-
zodValidationSchema: import("zod").ZodString;
|
|
290
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
291
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
292
|
-
} & {
|
|
293
|
-
transforms: {
|
|
294
|
-
toClient: (dbValue: number) => number;
|
|
295
|
-
toDb: (clientValue: number) => number;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
name: import("..").Builder<"sql", {
|
|
300
|
-
type: "varchar";
|
|
301
|
-
length: number;
|
|
302
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
303
|
-
userId: {
|
|
304
|
-
type: "reference";
|
|
305
|
-
to: () => import("..").Builder<"sql", {
|
|
306
|
-
type: "int";
|
|
307
|
-
pk: true;
|
|
308
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
309
|
-
};
|
|
310
|
-
fluffynessScale: {
|
|
311
|
-
config: {
|
|
312
|
-
sql: {
|
|
313
|
-
type: "text";
|
|
314
|
-
};
|
|
315
|
-
zodSqlSchema: import("zod").ZodString;
|
|
316
|
-
zodNewSchema: import("zod").ZodString;
|
|
317
|
-
initialValue: string;
|
|
318
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
319
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
320
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
321
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
322
|
-
} & {
|
|
323
|
-
transforms: {
|
|
324
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
325
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
326
|
-
};
|
|
151
|
+
fluffynessScale: {
|
|
152
|
+
config: {
|
|
153
|
+
sql: {
|
|
154
|
+
type: "text";
|
|
327
155
|
};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
340
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
341
|
-
} & {
|
|
342
|
-
transforms: {
|
|
343
|
-
toClient: (dbValue: number) => boolean;
|
|
344
|
-
toDb: (clientValue: boolean) => number;
|
|
345
|
-
};
|
|
156
|
+
zodSqlSchema: import("zod").ZodString;
|
|
157
|
+
zodNewSchema: import("zod").ZodString;
|
|
158
|
+
initialValue: string;
|
|
159
|
+
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
160
|
+
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
161
|
+
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
162
|
+
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
163
|
+
} & {
|
|
164
|
+
transforms: {
|
|
165
|
+
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
166
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
346
167
|
};
|
|
347
168
|
};
|
|
348
169
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}) | ({
|
|
353
|
-
fromKey: string;
|
|
354
|
-
toKey: () => any;
|
|
355
|
-
schema: () => {
|
|
356
|
-
_tableName: string;
|
|
357
|
-
id: {
|
|
358
|
-
config: {
|
|
359
|
-
sql: {
|
|
360
|
-
type: "int";
|
|
361
|
-
pk: true;
|
|
362
|
-
};
|
|
363
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
364
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
365
|
-
initialValue: string;
|
|
366
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
367
|
-
zodValidationSchema: import("zod").ZodString;
|
|
368
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
369
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
370
|
-
} & {
|
|
371
|
-
transforms: {
|
|
372
|
-
toClient: (dbValue: number) => number;
|
|
373
|
-
toDb: (clientValue: number) => number;
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
name: import("..").Builder<"sql", {
|
|
378
|
-
type: "varchar";
|
|
379
|
-
length: number;
|
|
380
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
381
|
-
userId: {
|
|
382
|
-
type: "reference";
|
|
383
|
-
to: () => import("..").Builder<"sql", {
|
|
170
|
+
favourite: {
|
|
171
|
+
config: {
|
|
172
|
+
sql: {
|
|
384
173
|
type: "int";
|
|
385
|
-
pk: true;
|
|
386
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
387
|
-
};
|
|
388
|
-
fluffynessScale: {
|
|
389
|
-
config: {
|
|
390
|
-
sql: {
|
|
391
|
-
type: "text";
|
|
392
|
-
};
|
|
393
|
-
zodSqlSchema: import("zod").ZodString;
|
|
394
|
-
zodNewSchema: import("zod").ZodString;
|
|
395
|
-
initialValue: string;
|
|
396
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
397
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
398
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
399
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
400
|
-
} & {
|
|
401
|
-
transforms: {
|
|
402
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
403
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
404
|
-
};
|
|
405
174
|
};
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
418
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
419
|
-
} & {
|
|
420
|
-
transforms: {
|
|
421
|
-
toClient: (dbValue: number) => boolean;
|
|
422
|
-
toDb: (clientValue: boolean) => number;
|
|
423
|
-
};
|
|
175
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
176
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
177
|
+
initialValue: number;
|
|
178
|
+
zodClientSchema: import("zod").ZodBoolean;
|
|
179
|
+
zodValidationSchema: import("zod").ZodBoolean;
|
|
180
|
+
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
181
|
+
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
182
|
+
} & {
|
|
183
|
+
transforms: {
|
|
184
|
+
toClient: (dbValue: number) => boolean;
|
|
185
|
+
toDb: (clientValue: boolean) => number;
|
|
424
186
|
};
|
|
425
187
|
};
|
|
426
188
|
};
|
|
427
|
-
|
|
428
|
-
} & {
|
|
429
|
-
type: "manyToMany";
|
|
430
|
-
});
|
|
189
|
+
}>;
|
|
431
190
|
zodSqlSchema: import("zod").ZodArray<import("zod").ZodObject<{
|
|
432
191
|
id: import("zod").ZodNumber;
|
|
433
192
|
name: import("zod").ZodString;
|
|
@@ -535,319 +294,78 @@ declare const schemas: {
|
|
|
535
294
|
}[];
|
|
536
295
|
}) => {
|
|
537
296
|
config: {
|
|
538
|
-
sql: ({
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
id: {
|
|
544
|
-
config: {
|
|
545
|
-
sql: {
|
|
546
|
-
type: "int";
|
|
547
|
-
pk: true;
|
|
548
|
-
};
|
|
549
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
550
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
551
|
-
initialValue: string;
|
|
552
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
553
|
-
zodValidationSchema: import("zod").ZodString;
|
|
554
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
555
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
556
|
-
} & {
|
|
557
|
-
transforms: {
|
|
558
|
-
toClient: (dbValue: number) => number;
|
|
559
|
-
toDb: (clientValue: number) => number;
|
|
560
|
-
};
|
|
561
|
-
};
|
|
562
|
-
};
|
|
563
|
-
name: import("..").Builder<"sql", {
|
|
564
|
-
type: "varchar";
|
|
565
|
-
length: number;
|
|
566
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
567
|
-
userId: {
|
|
568
|
-
type: "reference";
|
|
569
|
-
to: () => import("..").Builder<"sql", {
|
|
297
|
+
sql: import("..").RelationConfig<{
|
|
298
|
+
_tableName: string;
|
|
299
|
+
id: {
|
|
300
|
+
config: {
|
|
301
|
+
sql: {
|
|
570
302
|
type: "int";
|
|
571
303
|
pk: true;
|
|
572
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
573
|
-
};
|
|
574
|
-
fluffynessScale: {
|
|
575
|
-
config: {
|
|
576
|
-
sql: {
|
|
577
|
-
type: "text";
|
|
578
|
-
};
|
|
579
|
-
zodSqlSchema: import("zod").ZodString;
|
|
580
|
-
zodNewSchema: import("zod").ZodString;
|
|
581
|
-
initialValue: string;
|
|
582
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
583
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
584
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
585
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
586
|
-
} & {
|
|
587
|
-
transforms: {
|
|
588
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
589
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
590
|
-
};
|
|
591
304
|
};
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
604
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
605
|
-
} & {
|
|
606
|
-
transforms: {
|
|
607
|
-
toClient: (dbValue: number) => boolean;
|
|
608
|
-
toDb: (clientValue: boolean) => number;
|
|
609
|
-
};
|
|
305
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
306
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
307
|
+
initialValue: string;
|
|
308
|
+
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
309
|
+
zodValidationSchema: import("zod").ZodString;
|
|
310
|
+
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
311
|
+
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
312
|
+
} & {
|
|
313
|
+
transforms: {
|
|
314
|
+
toClient: (dbValue: number) => number;
|
|
315
|
+
toDb: (clientValue: number) => number;
|
|
610
316
|
};
|
|
611
317
|
};
|
|
612
318
|
};
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
sql: {
|
|
624
|
-
type: "int";
|
|
625
|
-
pk: true;
|
|
626
|
-
};
|
|
627
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
628
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
629
|
-
initialValue: string;
|
|
630
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
631
|
-
zodValidationSchema: import("zod").ZodString;
|
|
632
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
633
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
634
|
-
} & {
|
|
635
|
-
transforms: {
|
|
636
|
-
toClient: (dbValue: number) => number;
|
|
637
|
-
toDb: (clientValue: number) => number;
|
|
638
|
-
};
|
|
639
|
-
};
|
|
640
|
-
};
|
|
641
|
-
name: import("..").Builder<"sql", {
|
|
642
|
-
type: "varchar";
|
|
643
|
-
length: number;
|
|
644
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
645
|
-
userId: {
|
|
646
|
-
type: "reference";
|
|
647
|
-
to: () => import("..").Builder<"sql", {
|
|
648
|
-
type: "int";
|
|
649
|
-
pk: true;
|
|
650
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
651
|
-
};
|
|
652
|
-
fluffynessScale: {
|
|
653
|
-
config: {
|
|
654
|
-
sql: {
|
|
655
|
-
type: "text";
|
|
656
|
-
};
|
|
657
|
-
zodSqlSchema: import("zod").ZodString;
|
|
658
|
-
zodNewSchema: import("zod").ZodString;
|
|
659
|
-
initialValue: string;
|
|
660
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
661
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
662
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
663
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
664
|
-
} & {
|
|
665
|
-
transforms: {
|
|
666
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
667
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
};
|
|
671
|
-
favourite: {
|
|
672
|
-
config: {
|
|
673
|
-
sql: {
|
|
674
|
-
type: "int";
|
|
675
|
-
};
|
|
676
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
677
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
678
|
-
initialValue: number;
|
|
679
|
-
zodClientSchema: import("zod").ZodBoolean;
|
|
680
|
-
zodValidationSchema: import("zod").ZodBoolean;
|
|
681
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
682
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
683
|
-
} & {
|
|
684
|
-
transforms: {
|
|
685
|
-
toClient: (dbValue: number) => boolean;
|
|
686
|
-
toDb: (clientValue: boolean) => number;
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
};
|
|
319
|
+
name: import("..").Builder<"sql", {
|
|
320
|
+
type: "varchar";
|
|
321
|
+
length: number;
|
|
322
|
+
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
323
|
+
userId: {
|
|
324
|
+
type: "reference";
|
|
325
|
+
to: () => import("..").Builder<"sql", {
|
|
326
|
+
type: "int";
|
|
327
|
+
pk: true;
|
|
328
|
+
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
690
329
|
};
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
fromKey: string;
|
|
696
|
-
toKey: () => any;
|
|
697
|
-
schema: () => {
|
|
698
|
-
_tableName: string;
|
|
699
|
-
id: {
|
|
700
|
-
config: {
|
|
701
|
-
sql: {
|
|
702
|
-
type: "int";
|
|
703
|
-
pk: true;
|
|
704
|
-
};
|
|
705
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
706
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
707
|
-
initialValue: string;
|
|
708
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
709
|
-
zodValidationSchema: import("zod").ZodString;
|
|
710
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
711
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
712
|
-
} & {
|
|
713
|
-
transforms: {
|
|
714
|
-
toClient: (dbValue: number) => number;
|
|
715
|
-
toDb: (clientValue: number) => number;
|
|
716
|
-
};
|
|
717
|
-
};
|
|
718
|
-
};
|
|
719
|
-
name: import("..").Builder<"sql", {
|
|
720
|
-
type: "varchar";
|
|
721
|
-
length: number;
|
|
722
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
723
|
-
userId: {
|
|
724
|
-
type: "reference";
|
|
725
|
-
to: () => import("..").Builder<"sql", {
|
|
726
|
-
type: "int";
|
|
727
|
-
pk: true;
|
|
728
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
729
|
-
};
|
|
730
|
-
fluffynessScale: {
|
|
731
|
-
config: {
|
|
732
|
-
sql: {
|
|
733
|
-
type: "text";
|
|
734
|
-
};
|
|
735
|
-
zodSqlSchema: import("zod").ZodString;
|
|
736
|
-
zodNewSchema: import("zod").ZodString;
|
|
737
|
-
initialValue: string;
|
|
738
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
739
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
740
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
741
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
742
|
-
} & {
|
|
743
|
-
transforms: {
|
|
744
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
745
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
746
|
-
};
|
|
330
|
+
fluffynessScale: {
|
|
331
|
+
config: {
|
|
332
|
+
sql: {
|
|
333
|
+
type: "text";
|
|
747
334
|
};
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
760
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
761
|
-
} & {
|
|
762
|
-
transforms: {
|
|
763
|
-
toClient: (dbValue: number) => boolean;
|
|
764
|
-
toDb: (clientValue: boolean) => number;
|
|
765
|
-
};
|
|
335
|
+
zodSqlSchema: import("zod").ZodString;
|
|
336
|
+
zodNewSchema: import("zod").ZodString;
|
|
337
|
+
initialValue: string;
|
|
338
|
+
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
339
|
+
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
340
|
+
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
341
|
+
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
342
|
+
} & {
|
|
343
|
+
transforms: {
|
|
344
|
+
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
345
|
+
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
766
346
|
};
|
|
767
347
|
};
|
|
768
348
|
};
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}) | ({
|
|
773
|
-
fromKey: string;
|
|
774
|
-
toKey: () => any;
|
|
775
|
-
schema: () => {
|
|
776
|
-
_tableName: string;
|
|
777
|
-
id: {
|
|
778
|
-
config: {
|
|
779
|
-
sql: {
|
|
780
|
-
type: "int";
|
|
781
|
-
pk: true;
|
|
782
|
-
};
|
|
783
|
-
zodSqlSchema: import("zod").ZodNumber;
|
|
784
|
-
zodNewSchema: import("zod").ZodNumber;
|
|
785
|
-
initialValue: string;
|
|
786
|
-
zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
|
|
787
|
-
zodValidationSchema: import("zod").ZodString;
|
|
788
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
789
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
790
|
-
} & {
|
|
791
|
-
transforms: {
|
|
792
|
-
toClient: (dbValue: number) => number;
|
|
793
|
-
toDb: (clientValue: number) => number;
|
|
794
|
-
};
|
|
795
|
-
};
|
|
796
|
-
};
|
|
797
|
-
name: import("..").Builder<"sql", {
|
|
798
|
-
type: "varchar";
|
|
799
|
-
length: number;
|
|
800
|
-
}, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
|
|
801
|
-
userId: {
|
|
802
|
-
type: "reference";
|
|
803
|
-
to: () => import("..").Builder<"sql", {
|
|
349
|
+
favourite: {
|
|
350
|
+
config: {
|
|
351
|
+
sql: {
|
|
804
352
|
type: "int";
|
|
805
|
-
pk: true;
|
|
806
|
-
}, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
|
|
807
|
-
};
|
|
808
|
-
fluffynessScale: {
|
|
809
|
-
config: {
|
|
810
|
-
sql: {
|
|
811
|
-
type: "text";
|
|
812
|
-
};
|
|
813
|
-
zodSqlSchema: import("zod").ZodString;
|
|
814
|
-
zodNewSchema: import("zod").ZodString;
|
|
815
|
-
initialValue: string;
|
|
816
|
-
zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
817
|
-
zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
|
|
818
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
819
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
820
|
-
} & {
|
|
821
|
-
transforms: {
|
|
822
|
-
toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
|
|
823
|
-
toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
|
|
824
|
-
};
|
|
825
353
|
};
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
838
|
-
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
839
|
-
} & {
|
|
840
|
-
transforms: {
|
|
841
|
-
toClient: (dbValue: number) => boolean;
|
|
842
|
-
toDb: (clientValue: boolean) => number;
|
|
843
|
-
};
|
|
354
|
+
zodSqlSchema: import("zod").ZodNumber;
|
|
355
|
+
zodNewSchema: import("zod").ZodNumber;
|
|
356
|
+
initialValue: number;
|
|
357
|
+
zodClientSchema: import("zod").ZodBoolean;
|
|
358
|
+
zodValidationSchema: import("zod").ZodBoolean;
|
|
359
|
+
clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
360
|
+
validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
|
|
361
|
+
} & {
|
|
362
|
+
transforms: {
|
|
363
|
+
toClient: (dbValue: number) => boolean;
|
|
364
|
+
toDb: (clientValue: boolean) => number;
|
|
844
365
|
};
|
|
845
366
|
};
|
|
846
367
|
};
|
|
847
|
-
|
|
848
|
-
} & {
|
|
849
|
-
type: "manyToMany";
|
|
850
|
-
});
|
|
368
|
+
}>;
|
|
851
369
|
zodSqlSchema: import("zod").ZodArray<import("zod").ZodObject<{
|
|
852
370
|
id: import("zod").ZodNumber;
|
|
853
371
|
name: import("zod").ZodString;
|