swallowkit 0.1.0-alpha.1

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.
Files changed (91) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +563 -0
  3. package/dist/api/rpc-handler.d.ts +71 -0
  4. package/dist/api/rpc-handler.d.ts.map +1 -0
  5. package/dist/api/rpc-handler.js +205 -0
  6. package/dist/api/rpc-handler.js.map +1 -0
  7. package/dist/cli/commands/build.d.ts +6 -0
  8. package/dist/cli/commands/build.d.ts.map +1 -0
  9. package/dist/cli/commands/build.js +193 -0
  10. package/dist/cli/commands/build.js.map +1 -0
  11. package/dist/cli/commands/dev.d.ts +3 -0
  12. package/dist/cli/commands/dev.d.ts.map +1 -0
  13. package/dist/cli/commands/dev.js +305 -0
  14. package/dist/cli/commands/dev.js.map +1 -0
  15. package/dist/cli/commands/generate.d.ts +4 -0
  16. package/dist/cli/commands/generate.d.ts.map +1 -0
  17. package/dist/cli/commands/generate.js +238 -0
  18. package/dist/cli/commands/generate.js.map +1 -0
  19. package/dist/cli/commands/index.d.ts +9 -0
  20. package/dist/cli/commands/index.d.ts.map +1 -0
  21. package/dist/cli/commands/index.js +18 -0
  22. package/dist/cli/commands/index.js.map +1 -0
  23. package/dist/cli/commands/init.d.ts +7 -0
  24. package/dist/cli/commands/init.d.ts.map +1 -0
  25. package/dist/cli/commands/init.js +383 -0
  26. package/dist/cli/commands/init.js.map +1 -0
  27. package/dist/cli/commands/setup.d.ts +6 -0
  28. package/dist/cli/commands/setup.d.ts.map +1 -0
  29. package/dist/cli/commands/setup.js +254 -0
  30. package/dist/cli/commands/setup.js.map +1 -0
  31. package/dist/cli/index.d.ts +3 -0
  32. package/dist/cli/index.d.ts.map +1 -0
  33. package/dist/cli/index.js +32 -0
  34. package/dist/cli/index.js.map +1 -0
  35. package/dist/core/config.d.ts +25 -0
  36. package/dist/core/config.d.ts.map +1 -0
  37. package/dist/core/config.js +204 -0
  38. package/dist/core/config.js.map +1 -0
  39. package/dist/database/client.d.ts +46 -0
  40. package/dist/database/client.d.ts.map +1 -0
  41. package/dist/database/client.js +156 -0
  42. package/dist/database/client.js.map +1 -0
  43. package/dist/database/repository.d.ts +71 -0
  44. package/dist/database/repository.d.ts.map +1 -0
  45. package/dist/database/repository.js +89 -0
  46. package/dist/database/repository.js.map +1 -0
  47. package/dist/generator/api-generator.d.ts +53 -0
  48. package/dist/generator/api-generator.d.ts.map +1 -0
  49. package/dist/generator/api-generator.js +284 -0
  50. package/dist/generator/api-generator.js.map +1 -0
  51. package/dist/generator/schema-parser.d.ts +45 -0
  52. package/dist/generator/schema-parser.d.ts.map +1 -0
  53. package/dist/generator/schema-parser.js +198 -0
  54. package/dist/generator/schema-parser.js.map +1 -0
  55. package/dist/generator/templates/azure-functions.d.ts +15 -0
  56. package/dist/generator/templates/azure-functions.d.ts.map +1 -0
  57. package/dist/generator/templates/azure-functions.js +274 -0
  58. package/dist/generator/templates/azure-functions.js.map +1 -0
  59. package/dist/generator/templates/default-server-functions.d.ts +2 -0
  60. package/dist/generator/templates/default-server-functions.d.ts.map +1 -0
  61. package/dist/generator/templates/default-server-functions.js +67 -0
  62. package/dist/generator/templates/default-server-functions.js.map +1 -0
  63. package/dist/hooks/server-function-registry.d.ts +67 -0
  64. package/dist/hooks/server-function-registry.d.ts.map +1 -0
  65. package/dist/hooks/server-function-registry.js +153 -0
  66. package/dist/hooks/server-function-registry.js.map +1 -0
  67. package/dist/hooks/useQuery.d.ts +61 -0
  68. package/dist/hooks/useQuery.d.ts.map +1 -0
  69. package/dist/hooks/useQuery.js +147 -0
  70. package/dist/hooks/useQuery.js.map +1 -0
  71. package/dist/hooks/useServerFn.d.ts +27 -0
  72. package/dist/hooks/useServerFn.d.ts.map +1 -0
  73. package/dist/hooks/useServerFn.js +119 -0
  74. package/dist/hooks/useServerFn.js.map +1 -0
  75. package/dist/index.d.ts +17 -0
  76. package/dist/index.d.ts.map +1 -0
  77. package/dist/index.js +73 -0
  78. package/dist/index.js.map +1 -0
  79. package/dist/schemas/example.d.ts +657 -0
  80. package/dist/schemas/example.d.ts.map +1 -0
  81. package/dist/schemas/example.js +133 -0
  82. package/dist/schemas/example.js.map +1 -0
  83. package/dist/server/todo-functions.d.ts +21 -0
  84. package/dist/server/todo-functions.d.ts.map +1 -0
  85. package/dist/server/todo-functions.js +121 -0
  86. package/dist/server/todo-functions.js.map +1 -0
  87. package/dist/types/index.d.ts +53 -0
  88. package/dist/types/index.d.ts.map +1 -0
  89. package/dist/types/index.js +6 -0
  90. package/dist/types/index.js.map +1 -0
  91. package/package.json +68 -0
@@ -0,0 +1,657 @@
1
+ import { z } from 'zod';
2
+ export declare const TodoSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ text: z.ZodString;
5
+ completed: z.ZodDefault<z.ZodBoolean>;
6
+ priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
7
+ dueDate: z.ZodOptional<z.ZodString>;
8
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
9
+ createdAt: z.ZodString;
10
+ updatedAt: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ text: string;
14
+ completed: boolean;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ priority: "low" | "medium" | "high";
18
+ tags: string[];
19
+ dueDate?: string | undefined;
20
+ }, {
21
+ id: string;
22
+ text: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ completed?: boolean | undefined;
26
+ priority?: "low" | "medium" | "high" | undefined;
27
+ dueDate?: string | undefined;
28
+ tags?: string[] | undefined;
29
+ }>;
30
+ export type Todo = z.infer<typeof TodoSchema>;
31
+ export declare const UserSchema: z.ZodObject<{
32
+ id: z.ZodString;
33
+ email: z.ZodString;
34
+ name: z.ZodString;
35
+ avatar: z.ZodOptional<z.ZodString>;
36
+ role: z.ZodDefault<z.ZodEnum<["user", "admin"]>>;
37
+ preferences: z.ZodDefault<z.ZodObject<{
38
+ theme: z.ZodDefault<z.ZodEnum<["light", "dark"]>>;
39
+ language: z.ZodDefault<z.ZodString>;
40
+ notifications: z.ZodDefault<z.ZodBoolean>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ theme: "light" | "dark";
43
+ language: string;
44
+ notifications: boolean;
45
+ }, {
46
+ theme?: "light" | "dark" | undefined;
47
+ language?: string | undefined;
48
+ notifications?: boolean | undefined;
49
+ }>>;
50
+ createdAt: z.ZodString;
51
+ updatedAt: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ name: string;
54
+ id: string;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ email: string;
58
+ role: "user" | "admin";
59
+ preferences: {
60
+ theme: "light" | "dark";
61
+ language: string;
62
+ notifications: boolean;
63
+ };
64
+ avatar?: string | undefined;
65
+ }, {
66
+ name: string;
67
+ id: string;
68
+ createdAt: string;
69
+ updatedAt: string;
70
+ email: string;
71
+ avatar?: string | undefined;
72
+ role?: "user" | "admin" | undefined;
73
+ preferences?: {
74
+ theme?: "light" | "dark" | undefined;
75
+ language?: string | undefined;
76
+ notifications?: boolean | undefined;
77
+ } | undefined;
78
+ }>;
79
+ export type User = z.infer<typeof UserSchema>;
80
+ export declare const ProjectSchema: z.ZodObject<{
81
+ id: z.ZodString;
82
+ name: z.ZodString;
83
+ description: z.ZodOptional<z.ZodString>;
84
+ status: z.ZodDefault<z.ZodEnum<["active", "completed", "archived"]>>;
85
+ ownerId: z.ZodString;
86
+ memberIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
87
+ settings: z.ZodDefault<z.ZodObject<{
88
+ isPublic: z.ZodDefault<z.ZodBoolean>;
89
+ allowComments: z.ZodDefault<z.ZodBoolean>;
90
+ autoArchive: z.ZodDefault<z.ZodBoolean>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ isPublic: boolean;
93
+ allowComments: boolean;
94
+ autoArchive: boolean;
95
+ }, {
96
+ isPublic?: boolean | undefined;
97
+ allowComments?: boolean | undefined;
98
+ autoArchive?: boolean | undefined;
99
+ }>>;
100
+ metrics: z.ZodDefault<z.ZodObject<{
101
+ totalTasks: z.ZodDefault<z.ZodNumber>;
102
+ completedTasks: z.ZodDefault<z.ZodNumber>;
103
+ activeMembers: z.ZodDefault<z.ZodNumber>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ totalTasks: number;
106
+ completedTasks: number;
107
+ activeMembers: number;
108
+ }, {
109
+ totalTasks?: number | undefined;
110
+ completedTasks?: number | undefined;
111
+ activeMembers?: number | undefined;
112
+ }>>;
113
+ createdAt: z.ZodString;
114
+ updatedAt: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ name: string;
117
+ id: string;
118
+ status: "completed" | "active" | "archived";
119
+ createdAt: string;
120
+ updatedAt: string;
121
+ ownerId: string;
122
+ memberIds: string[];
123
+ settings: {
124
+ isPublic: boolean;
125
+ allowComments: boolean;
126
+ autoArchive: boolean;
127
+ };
128
+ metrics: {
129
+ totalTasks: number;
130
+ completedTasks: number;
131
+ activeMembers: number;
132
+ };
133
+ description?: string | undefined;
134
+ }, {
135
+ name: string;
136
+ id: string;
137
+ createdAt: string;
138
+ updatedAt: string;
139
+ ownerId: string;
140
+ status?: "completed" | "active" | "archived" | undefined;
141
+ description?: string | undefined;
142
+ memberIds?: string[] | undefined;
143
+ settings?: {
144
+ isPublic?: boolean | undefined;
145
+ allowComments?: boolean | undefined;
146
+ autoArchive?: boolean | undefined;
147
+ } | undefined;
148
+ metrics?: {
149
+ totalTasks?: number | undefined;
150
+ completedTasks?: number | undefined;
151
+ activeMembers?: number | undefined;
152
+ } | undefined;
153
+ }>;
154
+ export type Project = z.infer<typeof ProjectSchema>;
155
+ export declare const CreateTodoRequestSchema: z.ZodObject<{
156
+ text: z.ZodString;
157
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
158
+ dueDate: z.ZodOptional<z.ZodString>;
159
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ text: string;
162
+ priority?: "low" | "medium" | "high" | undefined;
163
+ dueDate?: string | undefined;
164
+ tags?: string[] | undefined;
165
+ }, {
166
+ text: string;
167
+ priority?: "low" | "medium" | "high" | undefined;
168
+ dueDate?: string | undefined;
169
+ tags?: string[] | undefined;
170
+ }>;
171
+ export declare const UpdateTodoRequestSchema: z.ZodObject<{
172
+ text: z.ZodOptional<z.ZodString>;
173
+ completed: z.ZodOptional<z.ZodBoolean>;
174
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
175
+ dueDate: z.ZodOptional<z.ZodString>;
176
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ text?: string | undefined;
179
+ completed?: boolean | undefined;
180
+ priority?: "low" | "medium" | "high" | undefined;
181
+ dueDate?: string | undefined;
182
+ tags?: string[] | undefined;
183
+ }, {
184
+ text?: string | undefined;
185
+ completed?: boolean | undefined;
186
+ priority?: "low" | "medium" | "high" | undefined;
187
+ dueDate?: string | undefined;
188
+ tags?: string[] | undefined;
189
+ }>;
190
+ export declare const ListTodosRequestSchema: z.ZodObject<{
191
+ page: z.ZodDefault<z.ZodNumber>;
192
+ limit: z.ZodDefault<z.ZodNumber>;
193
+ status: z.ZodDefault<z.ZodEnum<["all", "active", "completed"]>>;
194
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
195
+ sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "dueDate", "priority"]>>;
196
+ sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ status: "completed" | "active" | "all";
199
+ page: number;
200
+ limit: number;
201
+ sortBy: "createdAt" | "updatedAt" | "priority" | "dueDate";
202
+ sortOrder: "asc" | "desc";
203
+ priority?: "low" | "medium" | "high" | undefined;
204
+ }, {
205
+ status?: "completed" | "active" | "all" | undefined;
206
+ priority?: "low" | "medium" | "high" | undefined;
207
+ page?: number | undefined;
208
+ limit?: number | undefined;
209
+ sortBy?: "createdAt" | "updatedAt" | "priority" | "dueDate" | undefined;
210
+ sortOrder?: "asc" | "desc" | undefined;
211
+ }>;
212
+ export declare const ListTodosResponseSchema: z.ZodObject<{
213
+ items: z.ZodArray<z.ZodObject<{
214
+ id: z.ZodString;
215
+ text: z.ZodString;
216
+ completed: z.ZodDefault<z.ZodBoolean>;
217
+ priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
218
+ dueDate: z.ZodOptional<z.ZodString>;
219
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
220
+ createdAt: z.ZodString;
221
+ updatedAt: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ id: string;
224
+ text: string;
225
+ completed: boolean;
226
+ createdAt: string;
227
+ updatedAt: string;
228
+ priority: "low" | "medium" | "high";
229
+ tags: string[];
230
+ dueDate?: string | undefined;
231
+ }, {
232
+ id: string;
233
+ text: string;
234
+ createdAt: string;
235
+ updatedAt: string;
236
+ completed?: boolean | undefined;
237
+ priority?: "low" | "medium" | "high" | undefined;
238
+ dueDate?: string | undefined;
239
+ tags?: string[] | undefined;
240
+ }>, "many">;
241
+ pagination: z.ZodObject<{
242
+ page: z.ZodNumber;
243
+ limit: z.ZodNumber;
244
+ total: z.ZodNumber;
245
+ totalPages: z.ZodNumber;
246
+ hasNext: z.ZodBoolean;
247
+ hasPrev: z.ZodBoolean;
248
+ }, "strip", z.ZodTypeAny, {
249
+ page: number;
250
+ limit: number;
251
+ total: number;
252
+ totalPages: number;
253
+ hasNext: boolean;
254
+ hasPrev: boolean;
255
+ }, {
256
+ page: number;
257
+ limit: number;
258
+ total: number;
259
+ totalPages: number;
260
+ hasNext: boolean;
261
+ hasPrev: boolean;
262
+ }>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ items: {
265
+ id: string;
266
+ text: string;
267
+ completed: boolean;
268
+ createdAt: string;
269
+ updatedAt: string;
270
+ priority: "low" | "medium" | "high";
271
+ tags: string[];
272
+ dueDate?: string | undefined;
273
+ }[];
274
+ pagination: {
275
+ page: number;
276
+ limit: number;
277
+ total: number;
278
+ totalPages: number;
279
+ hasNext: boolean;
280
+ hasPrev: boolean;
281
+ };
282
+ }, {
283
+ items: {
284
+ id: string;
285
+ text: string;
286
+ createdAt: string;
287
+ updatedAt: string;
288
+ completed?: boolean | undefined;
289
+ priority?: "low" | "medium" | "high" | undefined;
290
+ dueDate?: string | undefined;
291
+ tags?: string[] | undefined;
292
+ }[];
293
+ pagination: {
294
+ page: number;
295
+ limit: number;
296
+ total: number;
297
+ totalPages: number;
298
+ hasNext: boolean;
299
+ hasPrev: boolean;
300
+ };
301
+ }>;
302
+ export declare function validateCreateTodoRequest(data: unknown): {
303
+ text: string;
304
+ priority?: "low" | "medium" | "high" | undefined;
305
+ dueDate?: string | undefined;
306
+ tags?: string[] | undefined;
307
+ };
308
+ export declare function validateTodo(data: unknown): {
309
+ id: string;
310
+ text: string;
311
+ completed: boolean;
312
+ createdAt: string;
313
+ updatedAt: string;
314
+ priority: "low" | "medium" | "high";
315
+ tags: string[];
316
+ dueDate?: string | undefined;
317
+ };
318
+ export declare const SCHEMA_METADATA: {
319
+ readonly Todo: {
320
+ readonly schema: z.ZodObject<{
321
+ id: z.ZodString;
322
+ text: z.ZodString;
323
+ completed: z.ZodDefault<z.ZodBoolean>;
324
+ priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
325
+ dueDate: z.ZodOptional<z.ZodString>;
326
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
327
+ createdAt: z.ZodString;
328
+ updatedAt: z.ZodString;
329
+ }, "strip", z.ZodTypeAny, {
330
+ id: string;
331
+ text: string;
332
+ completed: boolean;
333
+ createdAt: string;
334
+ updatedAt: string;
335
+ priority: "low" | "medium" | "high";
336
+ tags: string[];
337
+ dueDate?: string | undefined;
338
+ }, {
339
+ id: string;
340
+ text: string;
341
+ createdAt: string;
342
+ updatedAt: string;
343
+ completed?: boolean | undefined;
344
+ priority?: "low" | "medium" | "high" | undefined;
345
+ dueDate?: string | undefined;
346
+ tags?: string[] | undefined;
347
+ }>;
348
+ readonly tableName: "todos";
349
+ readonly partitionKey: "id";
350
+ readonly searchableFields: readonly ["text", "tags"];
351
+ readonly sortableFields: readonly ["createdAt", "updatedAt", "dueDate", "priority"];
352
+ readonly filterableFields: readonly ["completed", "priority", "tags"];
353
+ readonly operations: {
354
+ readonly create: {
355
+ readonly requestSchema: z.ZodObject<{
356
+ text: z.ZodString;
357
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
358
+ dueDate: z.ZodOptional<z.ZodString>;
359
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ text: string;
362
+ priority?: "low" | "medium" | "high" | undefined;
363
+ dueDate?: string | undefined;
364
+ tags?: string[] | undefined;
365
+ }, {
366
+ text: string;
367
+ priority?: "low" | "medium" | "high" | undefined;
368
+ dueDate?: string | undefined;
369
+ tags?: string[] | undefined;
370
+ }>;
371
+ };
372
+ readonly update: {
373
+ readonly requestSchema: z.ZodObject<{
374
+ text: z.ZodOptional<z.ZodString>;
375
+ completed: z.ZodOptional<z.ZodBoolean>;
376
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
377
+ dueDate: z.ZodOptional<z.ZodString>;
378
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ text?: string | undefined;
381
+ completed?: boolean | undefined;
382
+ priority?: "low" | "medium" | "high" | undefined;
383
+ dueDate?: string | undefined;
384
+ tags?: string[] | undefined;
385
+ }, {
386
+ text?: string | undefined;
387
+ completed?: boolean | undefined;
388
+ priority?: "low" | "medium" | "high" | undefined;
389
+ dueDate?: string | undefined;
390
+ tags?: string[] | undefined;
391
+ }>;
392
+ };
393
+ readonly list: {
394
+ readonly requestSchema: z.ZodObject<{
395
+ page: z.ZodDefault<z.ZodNumber>;
396
+ limit: z.ZodDefault<z.ZodNumber>;
397
+ status: z.ZodDefault<z.ZodEnum<["all", "active", "completed"]>>;
398
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
399
+ sortBy: z.ZodDefault<z.ZodEnum<["createdAt", "updatedAt", "dueDate", "priority"]>>;
400
+ sortOrder: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ status: "completed" | "active" | "all";
403
+ page: number;
404
+ limit: number;
405
+ sortBy: "createdAt" | "updatedAt" | "priority" | "dueDate";
406
+ sortOrder: "asc" | "desc";
407
+ priority?: "low" | "medium" | "high" | undefined;
408
+ }, {
409
+ status?: "completed" | "active" | "all" | undefined;
410
+ priority?: "low" | "medium" | "high" | undefined;
411
+ page?: number | undefined;
412
+ limit?: number | undefined;
413
+ sortBy?: "createdAt" | "updatedAt" | "priority" | "dueDate" | undefined;
414
+ sortOrder?: "asc" | "desc" | undefined;
415
+ }>;
416
+ readonly responseSchema: z.ZodObject<{
417
+ items: z.ZodArray<z.ZodObject<{
418
+ id: z.ZodString;
419
+ text: z.ZodString;
420
+ completed: z.ZodDefault<z.ZodBoolean>;
421
+ priority: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
422
+ dueDate: z.ZodOptional<z.ZodString>;
423
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
424
+ createdAt: z.ZodString;
425
+ updatedAt: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ id: string;
428
+ text: string;
429
+ completed: boolean;
430
+ createdAt: string;
431
+ updatedAt: string;
432
+ priority: "low" | "medium" | "high";
433
+ tags: string[];
434
+ dueDate?: string | undefined;
435
+ }, {
436
+ id: string;
437
+ text: string;
438
+ createdAt: string;
439
+ updatedAt: string;
440
+ completed?: boolean | undefined;
441
+ priority?: "low" | "medium" | "high" | undefined;
442
+ dueDate?: string | undefined;
443
+ tags?: string[] | undefined;
444
+ }>, "many">;
445
+ pagination: z.ZodObject<{
446
+ page: z.ZodNumber;
447
+ limit: z.ZodNumber;
448
+ total: z.ZodNumber;
449
+ totalPages: z.ZodNumber;
450
+ hasNext: z.ZodBoolean;
451
+ hasPrev: z.ZodBoolean;
452
+ }, "strip", z.ZodTypeAny, {
453
+ page: number;
454
+ limit: number;
455
+ total: number;
456
+ totalPages: number;
457
+ hasNext: boolean;
458
+ hasPrev: boolean;
459
+ }, {
460
+ page: number;
461
+ limit: number;
462
+ total: number;
463
+ totalPages: number;
464
+ hasNext: boolean;
465
+ hasPrev: boolean;
466
+ }>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ items: {
469
+ id: string;
470
+ text: string;
471
+ completed: boolean;
472
+ createdAt: string;
473
+ updatedAt: string;
474
+ priority: "low" | "medium" | "high";
475
+ tags: string[];
476
+ dueDate?: string | undefined;
477
+ }[];
478
+ pagination: {
479
+ page: number;
480
+ limit: number;
481
+ total: number;
482
+ totalPages: number;
483
+ hasNext: boolean;
484
+ hasPrev: boolean;
485
+ };
486
+ }, {
487
+ items: {
488
+ id: string;
489
+ text: string;
490
+ createdAt: string;
491
+ updatedAt: string;
492
+ completed?: boolean | undefined;
493
+ priority?: "low" | "medium" | "high" | undefined;
494
+ dueDate?: string | undefined;
495
+ tags?: string[] | undefined;
496
+ }[];
497
+ pagination: {
498
+ page: number;
499
+ limit: number;
500
+ total: number;
501
+ totalPages: number;
502
+ hasNext: boolean;
503
+ hasPrev: boolean;
504
+ };
505
+ }>;
506
+ };
507
+ };
508
+ };
509
+ readonly User: {
510
+ readonly schema: z.ZodObject<{
511
+ id: z.ZodString;
512
+ email: z.ZodString;
513
+ name: z.ZodString;
514
+ avatar: z.ZodOptional<z.ZodString>;
515
+ role: z.ZodDefault<z.ZodEnum<["user", "admin"]>>;
516
+ preferences: z.ZodDefault<z.ZodObject<{
517
+ theme: z.ZodDefault<z.ZodEnum<["light", "dark"]>>;
518
+ language: z.ZodDefault<z.ZodString>;
519
+ notifications: z.ZodDefault<z.ZodBoolean>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ theme: "light" | "dark";
522
+ language: string;
523
+ notifications: boolean;
524
+ }, {
525
+ theme?: "light" | "dark" | undefined;
526
+ language?: string | undefined;
527
+ notifications?: boolean | undefined;
528
+ }>>;
529
+ createdAt: z.ZodString;
530
+ updatedAt: z.ZodString;
531
+ }, "strip", z.ZodTypeAny, {
532
+ name: string;
533
+ id: string;
534
+ createdAt: string;
535
+ updatedAt: string;
536
+ email: string;
537
+ role: "user" | "admin";
538
+ preferences: {
539
+ theme: "light" | "dark";
540
+ language: string;
541
+ notifications: boolean;
542
+ };
543
+ avatar?: string | undefined;
544
+ }, {
545
+ name: string;
546
+ id: string;
547
+ createdAt: string;
548
+ updatedAt: string;
549
+ email: string;
550
+ avatar?: string | undefined;
551
+ role?: "user" | "admin" | undefined;
552
+ preferences?: {
553
+ theme?: "light" | "dark" | undefined;
554
+ language?: string | undefined;
555
+ notifications?: boolean | undefined;
556
+ } | undefined;
557
+ }>;
558
+ readonly tableName: "users";
559
+ readonly partitionKey: "id";
560
+ readonly searchableFields: readonly ["name", "email"];
561
+ readonly sortableFields: readonly ["createdAt", "updatedAt", "name"];
562
+ readonly filterableFields: readonly ["role"];
563
+ };
564
+ readonly Project: {
565
+ readonly schema: z.ZodObject<{
566
+ id: z.ZodString;
567
+ name: z.ZodString;
568
+ description: z.ZodOptional<z.ZodString>;
569
+ status: z.ZodDefault<z.ZodEnum<["active", "completed", "archived"]>>;
570
+ ownerId: z.ZodString;
571
+ memberIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
572
+ settings: z.ZodDefault<z.ZodObject<{
573
+ isPublic: z.ZodDefault<z.ZodBoolean>;
574
+ allowComments: z.ZodDefault<z.ZodBoolean>;
575
+ autoArchive: z.ZodDefault<z.ZodBoolean>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ isPublic: boolean;
578
+ allowComments: boolean;
579
+ autoArchive: boolean;
580
+ }, {
581
+ isPublic?: boolean | undefined;
582
+ allowComments?: boolean | undefined;
583
+ autoArchive?: boolean | undefined;
584
+ }>>;
585
+ metrics: z.ZodDefault<z.ZodObject<{
586
+ totalTasks: z.ZodDefault<z.ZodNumber>;
587
+ completedTasks: z.ZodDefault<z.ZodNumber>;
588
+ activeMembers: z.ZodDefault<z.ZodNumber>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ totalTasks: number;
591
+ completedTasks: number;
592
+ activeMembers: number;
593
+ }, {
594
+ totalTasks?: number | undefined;
595
+ completedTasks?: number | undefined;
596
+ activeMembers?: number | undefined;
597
+ }>>;
598
+ createdAt: z.ZodString;
599
+ updatedAt: z.ZodString;
600
+ }, "strip", z.ZodTypeAny, {
601
+ name: string;
602
+ id: string;
603
+ status: "completed" | "active" | "archived";
604
+ createdAt: string;
605
+ updatedAt: string;
606
+ ownerId: string;
607
+ memberIds: string[];
608
+ settings: {
609
+ isPublic: boolean;
610
+ allowComments: boolean;
611
+ autoArchive: boolean;
612
+ };
613
+ metrics: {
614
+ totalTasks: number;
615
+ completedTasks: number;
616
+ activeMembers: number;
617
+ };
618
+ description?: string | undefined;
619
+ }, {
620
+ name: string;
621
+ id: string;
622
+ createdAt: string;
623
+ updatedAt: string;
624
+ ownerId: string;
625
+ status?: "completed" | "active" | "archived" | undefined;
626
+ description?: string | undefined;
627
+ memberIds?: string[] | undefined;
628
+ settings?: {
629
+ isPublic?: boolean | undefined;
630
+ allowComments?: boolean | undefined;
631
+ autoArchive?: boolean | undefined;
632
+ } | undefined;
633
+ metrics?: {
634
+ totalTasks?: number | undefined;
635
+ completedTasks?: number | undefined;
636
+ activeMembers?: number | undefined;
637
+ } | undefined;
638
+ }>;
639
+ readonly tableName: "projects";
640
+ readonly partitionKey: "ownerId";
641
+ readonly searchableFields: readonly ["name", "description"];
642
+ readonly sortableFields: readonly ["createdAt", "updatedAt", "name"];
643
+ readonly filterableFields: readonly ["status", "ownerId"];
644
+ readonly relationships: {
645
+ readonly owner: {
646
+ readonly schema: "User";
647
+ readonly field: "ownerId";
648
+ };
649
+ readonly members: {
650
+ readonly schema: "User";
651
+ readonly field: "memberIds";
652
+ readonly type: "array";
653
+ };
654
+ };
655
+ };
656
+ };
657
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../src/schemas/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;EASrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAG9C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAG9C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlC,CAAC;AAGH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO;;;;;EAEtD;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO;;;;;;;;;EAEzC;AAGD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClB,CAAC"}