cogsbox-shape 0.5.65 → 0.5.66

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.
@@ -1,554 +0,0 @@
1
- declare const schemas: {
2
- user: {
3
- _tableName: string;
4
- id: import("..").Builder<"sql", {
5
- type: "int";
6
- pk: true;
7
- }, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
8
- firstname: {
9
- config: {
10
- sql: {
11
- type: "varchar";
12
- length: number;
13
- };
14
- zodSqlSchema: import("zod").ZodString;
15
- zodNewSchema: import("zod").ZodString;
16
- initialValue: string;
17
- zodClientSchema: import("zod").ZodString;
18
- zodValidationSchema: import("zod").ZodString;
19
- };
20
- transform: (transforms: {
21
- toClient: (dbValue: string) => string;
22
- toDb: (clientValue: string) => string;
23
- }) => {
24
- config: {
25
- sql: {
26
- type: "varchar";
27
- length: number;
28
- };
29
- zodSqlSchema: import("zod").ZodString;
30
- zodNewSchema: import("zod").ZodString;
31
- initialValue: string;
32
- zodClientSchema: import("zod").ZodString;
33
- zodValidationSchema: import("zod").ZodString;
34
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
35
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
36
- } & {
37
- transforms: {
38
- toClient: (dbValue: string) => string;
39
- toDb: (clientValue: string) => string;
40
- };
41
- };
42
- };
43
- };
44
- surname: {
45
- config: {
46
- sql: {
47
- type: "varchar";
48
- length: number;
49
- };
50
- zodSqlSchema: import("zod").ZodString;
51
- zodNewSchema: import("zod").ZodString;
52
- initialValue: string;
53
- zodClientSchema: import("zod").ZodString;
54
- zodValidationSchema: import("zod").ZodString;
55
- };
56
- transform: (transforms: {
57
- toClient: (dbValue: string) => string;
58
- toDb: (clientValue: string) => string;
59
- }) => {
60
- config: {
61
- sql: {
62
- type: "varchar";
63
- length: number;
64
- };
65
- zodSqlSchema: import("zod").ZodString;
66
- zodNewSchema: import("zod").ZodString;
67
- initialValue: string;
68
- zodClientSchema: import("zod").ZodString;
69
- zodValidationSchema: import("zod").ZodString;
70
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
71
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
72
- } & {
73
- transforms: {
74
- toClient: (dbValue: string) => string;
75
- toDb: (clientValue: string) => string;
76
- };
77
- };
78
- };
79
- };
80
- email: {
81
- config: {
82
- sql: {
83
- type: "varchar";
84
- length: number;
85
- };
86
- zodSqlSchema: import("zod").ZodString;
87
- zodNewSchema: import("zod").ZodString;
88
- initialValue: string;
89
- zodClientSchema: import("zod").ZodString;
90
- zodValidationSchema: import("zod").ZodString;
91
- };
92
- transform: (transforms: {
93
- toClient: (dbValue: string) => string;
94
- toDb: (clientValue: string) => string;
95
- }) => {
96
- config: {
97
- sql: {
98
- type: "varchar";
99
- length: number;
100
- };
101
- zodSqlSchema: import("zod").ZodString;
102
- zodNewSchema: import("zod").ZodString;
103
- initialValue: string;
104
- zodClientSchema: import("zod").ZodString;
105
- zodValidationSchema: import("zod").ZodString;
106
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
107
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
108
- } & {
109
- transforms: {
110
- toClient: (dbValue: string) => string;
111
- toDb: (clientValue: string) => string;
112
- };
113
- };
114
- };
115
- };
116
- pets: {
117
- config: {
118
- sql: import("..").RelationConfig<{
119
- _tableName: string;
120
- id: {
121
- config: {
122
- sql: {
123
- type: "int";
124
- pk: true;
125
- };
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;
137
- };
138
- };
139
- };
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>;
150
- };
151
- fluffynessScale: {
152
- config: {
153
- sql: {
154
- type: "text";
155
- };
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;
167
- };
168
- };
169
- };
170
- favourite: {
171
- config: {
172
- sql: {
173
- type: "int";
174
- };
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;
186
- };
187
- };
188
- };
189
- }>;
190
- zodSqlSchema: import("zod").ZodArray<import("zod").ZodObject<{
191
- id: import("zod").ZodNumber;
192
- name: import("zod").ZodString;
193
- userId: import("zod").ZodAny;
194
- fluffynessScale: import("zod").ZodString;
195
- favourite: import("zod").ZodNumber;
196
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
197
- name: string;
198
- id: number;
199
- fluffynessScale: string;
200
- favourite: number;
201
- userId?: any;
202
- }, {
203
- name: string;
204
- id: number;
205
- fluffynessScale: string;
206
- favourite: number;
207
- userId?: any;
208
- }>, "many">;
209
- zodNewSchema: import("zod").ZodArray<import("zod").ZodObject<{
210
- id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
211
- name: import("zod").ZodString;
212
- userId: import("zod").ZodAny;
213
- fluffynessScale: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
214
- favourite: import("zod").ZodBoolean;
215
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
216
- name: string;
217
- id: number;
218
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
219
- favourite: boolean;
220
- userId?: any;
221
- }, {
222
- name: string;
223
- id: number;
224
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
225
- favourite: boolean;
226
- userId?: any;
227
- }>, "many">;
228
- initialValue: any[];
229
- zodClientSchema: import("zod").ZodArray<import("zod").ZodObject<{
230
- id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
231
- name: import("zod").ZodString;
232
- userId: import("zod").ZodAny;
233
- fluffynessScale: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
234
- favourite: import("zod").ZodBoolean;
235
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
236
- name: string;
237
- id: number;
238
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
239
- favourite: boolean;
240
- userId?: any;
241
- }, {
242
- name: string;
243
- id: number;
244
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
245
- favourite: boolean;
246
- userId?: any;
247
- }>, "many">;
248
- zodValidationSchema: import("zod").ZodArray<import("zod").ZodObject<{
249
- id: import("zod").ZodNumber;
250
- name: import("zod").ZodString;
251
- userId: import("zod").ZodAny;
252
- fluffynessScale: import("zod").ZodString;
253
- favourite: import("zod").ZodNumber;
254
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
255
- name: string;
256
- id: number;
257
- fluffynessScale: string;
258
- favourite: number;
259
- userId?: any;
260
- }, {
261
- name: string;
262
- id: number;
263
- fluffynessScale: string;
264
- favourite: number;
265
- userId?: any;
266
- }>, "many">;
267
- };
268
- transform: (transforms: {
269
- toClient: (dbValue: {
270
- name: string;
271
- id: number;
272
- fluffynessScale: string;
273
- favourite: number;
274
- userId?: any;
275
- }[]) => {
276
- name: string;
277
- id: number;
278
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
279
- favourite: boolean;
280
- userId?: any;
281
- }[];
282
- toDb: (clientValue: {
283
- name: string;
284
- id: number;
285
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
286
- favourite: boolean;
287
- userId?: any;
288
- }[]) => {
289
- name: string;
290
- id: number;
291
- fluffynessScale: string;
292
- favourite: number;
293
- userId?: any;
294
- }[];
295
- }) => {
296
- config: {
297
- sql: import("..").RelationConfig<{
298
- _tableName: string;
299
- id: {
300
- config: {
301
- sql: {
302
- type: "int";
303
- pk: true;
304
- };
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;
316
- };
317
- };
318
- };
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>;
329
- };
330
- fluffynessScale: {
331
- config: {
332
- sql: {
333
- type: "text";
334
- };
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;
346
- };
347
- };
348
- };
349
- favourite: {
350
- config: {
351
- sql: {
352
- type: "int";
353
- };
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;
365
- };
366
- };
367
- };
368
- }>;
369
- zodSqlSchema: import("zod").ZodArray<import("zod").ZodObject<{
370
- id: import("zod").ZodNumber;
371
- name: import("zod").ZodString;
372
- userId: import("zod").ZodAny;
373
- fluffynessScale: import("zod").ZodString;
374
- favourite: import("zod").ZodNumber;
375
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
376
- name: string;
377
- id: number;
378
- fluffynessScale: string;
379
- favourite: number;
380
- userId?: any;
381
- }, {
382
- name: string;
383
- id: number;
384
- fluffynessScale: string;
385
- favourite: number;
386
- userId?: any;
387
- }>, "many">;
388
- zodNewSchema: import("zod").ZodArray<import("zod").ZodObject<{
389
- id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
390
- name: import("zod").ZodString;
391
- userId: import("zod").ZodAny;
392
- fluffynessScale: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
393
- favourite: import("zod").ZodBoolean;
394
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
395
- name: string;
396
- id: number;
397
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
398
- favourite: boolean;
399
- userId?: any;
400
- }, {
401
- name: string;
402
- id: number;
403
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
404
- favourite: boolean;
405
- userId?: any;
406
- }>, "many">;
407
- initialValue: any[];
408
- zodClientSchema: import("zod").ZodArray<import("zod").ZodObject<{
409
- id: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
410
- name: import("zod").ZodString;
411
- userId: import("zod").ZodAny;
412
- fluffynessScale: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
413
- favourite: import("zod").ZodBoolean;
414
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
415
- name: string;
416
- id: number;
417
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
418
- favourite: boolean;
419
- userId?: any;
420
- }, {
421
- name: string;
422
- id: number;
423
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
424
- favourite: boolean;
425
- userId?: any;
426
- }>, "many">;
427
- zodValidationSchema: import("zod").ZodArray<import("zod").ZodObject<{
428
- id: import("zod").ZodNumber;
429
- name: import("zod").ZodString;
430
- userId: import("zod").ZodAny;
431
- fluffynessScale: import("zod").ZodString;
432
- favourite: import("zod").ZodNumber;
433
- }, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
434
- name: string;
435
- id: number;
436
- fluffynessScale: string;
437
- favourite: number;
438
- userId?: any;
439
- }, {
440
- name: string;
441
- id: number;
442
- fluffynessScale: string;
443
- favourite: number;
444
- userId?: any;
445
- }>, "many">;
446
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
447
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
448
- } & {
449
- transforms: {
450
- toClient: (dbValue: {
451
- name: string;
452
- id: number;
453
- fluffynessScale: string;
454
- favourite: number;
455
- userId?: any;
456
- }[]) => {
457
- name: string;
458
- id: number;
459
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
460
- favourite: boolean;
461
- userId?: any;
462
- }[];
463
- toDb: (clientValue: {
464
- name: string;
465
- id: number;
466
- fluffynessScale: ("bald" | "fuzzy" | "fluffy" | "poof")[];
467
- favourite: boolean;
468
- userId?: any;
469
- }[]) => {
470
- name: string;
471
- id: number;
472
- fluffynessScale: string;
473
- favourite: number;
474
- userId?: any;
475
- }[];
476
- };
477
- };
478
- };
479
- };
480
- };
481
- pet: {
482
- _tableName: string;
483
- id: {
484
- config: {
485
- sql: {
486
- type: "int";
487
- pk: true;
488
- };
489
- zodSqlSchema: import("zod").ZodNumber;
490
- zodNewSchema: import("zod").ZodNumber;
491
- initialValue: string;
492
- zodClientSchema: import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodNumber]>;
493
- zodValidationSchema: import("zod").ZodString;
494
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
495
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
496
- } & {
497
- transforms: {
498
- toClient: (dbValue: number) => number;
499
- toDb: (clientValue: number) => number;
500
- };
501
- };
502
- };
503
- name: import("..").Builder<"sql", {
504
- type: "varchar";
505
- length: number;
506
- }, import("zod").ZodString, import("zod").ZodString, string, import("zod").ZodString, import("zod").ZodString>;
507
- userId: {
508
- type: "reference";
509
- to: () => import("..").Builder<"sql", {
510
- type: "int";
511
- pk: true;
512
- }, import("zod").ZodNumber, import("zod").ZodNumber, number, import("zod").ZodNumber, import("zod").ZodNumber>;
513
- };
514
- fluffynessScale: {
515
- config: {
516
- sql: {
517
- type: "text";
518
- };
519
- zodSqlSchema: import("zod").ZodString;
520
- zodNewSchema: import("zod").ZodString;
521
- initialValue: string;
522
- zodClientSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
523
- zodValidationSchema: import("zod").ZodArray<import("zod").ZodEnum<["bald", "fuzzy", "fluffy", "poof"]>, "many">;
524
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
525
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
526
- } & {
527
- transforms: {
528
- toClient: (dbValue: string) => ("bald" | "fuzzy" | "fluffy" | "poof")[];
529
- toDb: (clientValue: ("bald" | "fuzzy" | "fluffy" | "poof")[]) => string;
530
- };
531
- };
532
- };
533
- favourite: {
534
- config: {
535
- sql: {
536
- type: "int";
537
- };
538
- zodSqlSchema: import("zod").ZodNumber;
539
- zodNewSchema: import("zod").ZodNumber;
540
- initialValue: number;
541
- zodClientSchema: import("zod").ZodBoolean;
542
- zodValidationSchema: import("zod").ZodBoolean;
543
- clientTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
544
- validationTransform?: (schema: import("zod").ZodTypeAny) => import("zod").ZodTypeAny;
545
- } & {
546
- transforms: {
547
- toClient: (dbValue: number) => boolean;
548
- toDb: (clientValue: boolean) => number;
549
- };
550
- };
551
- };
552
- };
553
- };
554
- export { schemas };
@@ -1,6 +0,0 @@
1
- import { petSchema, userSchema } from "./user";
2
- const schemas = {
3
- user: userSchema,
4
- pet: petSchema,
5
- };
6
- export { schemas };