@restura/core 1.0.0-beta.6 → 1.0.0-beta.8

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/index.d.ts CHANGED
@@ -3,7 +3,6 @@ import { z } from 'zod/v4';
3
3
  import { UUID } from 'crypto';
4
4
  import * as express from 'express';
5
5
  import { IncomingHttpHeaders } from 'http2';
6
- import { z as z$1 } from 'zod';
7
6
  import { QueryResultRow, QueryConfigValues, QueryResult, PoolConfig, Pool, ClientConfig, Client } from 'pg';
8
7
  import peg from 'pegjs';
9
8
 
@@ -187,2374 +186,731 @@ declare class EventManager {
187
186
  }
188
187
  declare const eventManager: EventManager;
189
188
 
190
- declare const whereDataSchema: z$1.ZodObject<{
191
- tableName: z$1.ZodOptional<z$1.ZodString>;
192
- columnName: z$1.ZodOptional<z$1.ZodString>;
193
- operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
194
- value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
195
- custom: z$1.ZodOptional<z$1.ZodString>;
196
- conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
197
- }, "strict", z$1.ZodTypeAny, {
198
- custom?: string | undefined;
199
- value?: string | number | undefined;
200
- tableName?: string | undefined;
201
- columnName?: string | undefined;
202
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
203
- conjunction?: "AND" | "OR" | undefined;
204
- }, {
205
- custom?: string | undefined;
206
- value?: string | number | undefined;
207
- tableName?: string | undefined;
208
- columnName?: string | undefined;
209
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
210
- conjunction?: "AND" | "OR" | undefined;
211
- }>;
212
- type WhereData = z$1.infer<typeof whereDataSchema>;
213
- declare const joinDataSchema: z$1.ZodObject<{
214
- table: z$1.ZodString;
215
- localTable: z$1.ZodOptional<z$1.ZodString>;
216
- localTableAlias: z$1.ZodOptional<z$1.ZodString>;
217
- localColumnName: z$1.ZodOptional<z$1.ZodString>;
218
- foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
219
- custom: z$1.ZodOptional<z$1.ZodString>;
220
- type: z$1.ZodEnum<["LEFT", "INNER", "RIGHT"]>;
221
- alias: z$1.ZodString;
222
- }, "strict", z$1.ZodTypeAny, {
223
- type: "LEFT" | "INNER" | "RIGHT";
224
- table: string;
225
- alias: string;
226
- custom?: string | undefined;
227
- localTable?: string | undefined;
228
- localTableAlias?: string | undefined;
229
- localColumnName?: string | undefined;
230
- foreignColumnName?: string | undefined;
231
- }, {
232
- type: "LEFT" | "INNER" | "RIGHT";
233
- table: string;
234
- alias: string;
235
- custom?: string | undefined;
236
- localTable?: string | undefined;
237
- localTableAlias?: string | undefined;
238
- localColumnName?: string | undefined;
239
- foreignColumnName?: string | undefined;
240
- }>;
241
- type JoinData = z$1.infer<typeof joinDataSchema>;
242
- declare const responseDataSchema: z$1.ZodObject<{
243
- name: z$1.ZodString;
244
- selector: z$1.ZodOptional<z$1.ZodString>;
245
- subquery: z$1.ZodOptional<z$1.ZodObject<{
246
- table: z$1.ZodString;
247
- joins: z$1.ZodArray<z$1.ZodObject<{
248
- table: z$1.ZodString;
249
- localTable: z$1.ZodOptional<z$1.ZodString>;
250
- localTableAlias: z$1.ZodOptional<z$1.ZodString>;
251
- localColumnName: z$1.ZodOptional<z$1.ZodString>;
252
- foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
253
- custom: z$1.ZodOptional<z$1.ZodString>;
254
- type: z$1.ZodEnum<["LEFT", "INNER", "RIGHT"]>;
255
- alias: z$1.ZodString;
256
- }, "strict", z$1.ZodTypeAny, {
257
- type: "LEFT" | "INNER" | "RIGHT";
258
- table: string;
259
- alias: string;
260
- custom?: string | undefined;
261
- localTable?: string | undefined;
262
- localTableAlias?: string | undefined;
263
- localColumnName?: string | undefined;
264
- foreignColumnName?: string | undefined;
265
- }, {
266
- type: "LEFT" | "INNER" | "RIGHT";
267
- table: string;
268
- alias: string;
269
- custom?: string | undefined;
270
- localTable?: string | undefined;
271
- localTableAlias?: string | undefined;
272
- localColumnName?: string | undefined;
273
- foreignColumnName?: string | undefined;
274
- }>, "many">;
275
- where: z$1.ZodArray<z$1.ZodObject<{
276
- tableName: z$1.ZodOptional<z$1.ZodString>;
277
- columnName: z$1.ZodOptional<z$1.ZodString>;
278
- operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
279
- value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
280
- custom: z$1.ZodOptional<z$1.ZodString>;
281
- conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
282
- }, "strict", z$1.ZodTypeAny, {
283
- custom?: string | undefined;
284
- value?: string | number | undefined;
285
- tableName?: string | undefined;
286
- columnName?: string | undefined;
287
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
288
- conjunction?: "AND" | "OR" | undefined;
289
- }, {
290
- custom?: string | undefined;
291
- value?: string | number | undefined;
292
- tableName?: string | undefined;
293
- columnName?: string | undefined;
294
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
295
- conjunction?: "AND" | "OR" | undefined;
296
- }>, "many">;
297
- properties: z$1.ZodArray<z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>, "many">;
298
- groupBy: z$1.ZodOptional<z$1.ZodObject<{
299
- columnName: z$1.ZodString;
300
- tableName: z$1.ZodString;
301
- }, "strict", z$1.ZodTypeAny, {
302
- tableName: string;
303
- columnName: string;
304
- }, {
305
- tableName: string;
306
- columnName: string;
307
- }>>;
308
- orderBy: z$1.ZodOptional<z$1.ZodObject<{
309
- columnName: z$1.ZodString;
310
- order: z$1.ZodEnum<["ASC", "DESC"]>;
311
- tableName: z$1.ZodString;
312
- }, "strict", z$1.ZodTypeAny, {
313
- tableName: string;
314
- columnName: string;
315
- order: "ASC" | "DESC";
316
- }, {
317
- tableName: string;
318
- columnName: string;
319
- order: "ASC" | "DESC";
320
- }>>;
321
- }, "strip", z$1.ZodTypeAny, {
322
- table: string;
323
- joins: {
324
- type: "LEFT" | "INNER" | "RIGHT";
325
- table: string;
326
- alias: string;
327
- custom?: string | undefined;
328
- localTable?: string | undefined;
329
- localTableAlias?: string | undefined;
330
- localColumnName?: string | undefined;
331
- foreignColumnName?: string | undefined;
332
- }[];
333
- where: {
334
- custom?: string | undefined;
335
- value?: string | number | undefined;
336
- tableName?: string | undefined;
337
- columnName?: string | undefined;
338
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
339
- conjunction?: "AND" | "OR" | undefined;
340
- }[];
341
- properties: any[];
342
- groupBy?: {
343
- tableName: string;
344
- columnName: string;
345
- } | undefined;
346
- orderBy?: {
347
- tableName: string;
348
- columnName: string;
349
- order: "ASC" | "DESC";
350
- } | undefined;
351
- }, {
352
- table: string;
353
- joins: {
354
- type: "LEFT" | "INNER" | "RIGHT";
355
- table: string;
356
- alias: string;
357
- custom?: string | undefined;
358
- localTable?: string | undefined;
359
- localTableAlias?: string | undefined;
360
- localColumnName?: string | undefined;
361
- foreignColumnName?: string | undefined;
362
- }[];
363
- where: {
364
- custom?: string | undefined;
365
- value?: string | number | undefined;
366
- tableName?: string | undefined;
367
- columnName?: string | undefined;
368
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
369
- conjunction?: "AND" | "OR" | undefined;
370
- }[];
371
- properties: any[];
372
- groupBy?: {
373
- tableName: string;
374
- columnName: string;
375
- } | undefined;
376
- orderBy?: {
377
- tableName: string;
378
- columnName: string;
379
- order: "ASC" | "DESC";
380
- } | undefined;
189
+ declare const whereDataSchema: z.ZodObject<{
190
+ tableName: z.ZodOptional<z.ZodString>;
191
+ columnName: z.ZodOptional<z.ZodString>;
192
+ operator: z.ZodOptional<z.ZodEnum<{
193
+ "=": "=";
194
+ "<": "<";
195
+ ">": ">";
196
+ "<=": "<=";
197
+ ">=": ">=";
198
+ "!=": "!=";
199
+ LIKE: "LIKE";
200
+ "NOT LIKE": "NOT LIKE";
201
+ IN: "IN";
202
+ "NOT IN": "NOT IN";
203
+ "STARTS WITH": "STARTS WITH";
204
+ "ENDS WITH": "ENDS WITH";
205
+ IS: "IS";
206
+ "IS NOT": "IS NOT";
381
207
  }>>;
382
- type: z$1.ZodOptional<z$1.ZodString>;
383
- }, "strict", z$1.ZodTypeAny, {
384
- name: string;
385
- type?: string | undefined;
386
- selector?: string | undefined;
387
- subquery?: {
388
- table: string;
389
- joins: {
390
- type: "LEFT" | "INNER" | "RIGHT";
391
- table: string;
392
- alias: string;
393
- custom?: string | undefined;
394
- localTable?: string | undefined;
395
- localTableAlias?: string | undefined;
396
- localColumnName?: string | undefined;
397
- foreignColumnName?: string | undefined;
398
- }[];
399
- where: {
400
- custom?: string | undefined;
401
- value?: string | number | undefined;
402
- tableName?: string | undefined;
403
- columnName?: string | undefined;
404
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
405
- conjunction?: "AND" | "OR" | undefined;
406
- }[];
407
- properties: any[];
408
- groupBy?: {
409
- tableName: string;
410
- columnName: string;
411
- } | undefined;
412
- orderBy?: {
413
- tableName: string;
414
- columnName: string;
415
- order: "ASC" | "DESC";
416
- } | undefined;
417
- } | undefined;
418
- }, {
419
- name: string;
420
- type?: string | undefined;
421
- selector?: string | undefined;
422
- subquery?: {
423
- table: string;
424
- joins: {
425
- type: "LEFT" | "INNER" | "RIGHT";
426
- table: string;
427
- alias: string;
428
- custom?: string | undefined;
429
- localTable?: string | undefined;
430
- localTableAlias?: string | undefined;
431
- localColumnName?: string | undefined;
432
- foreignColumnName?: string | undefined;
433
- }[];
434
- where: {
435
- custom?: string | undefined;
436
- value?: string | number | undefined;
437
- tableName?: string | undefined;
438
- columnName?: string | undefined;
439
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
440
- conjunction?: "AND" | "OR" | undefined;
441
- }[];
442
- properties: any[];
443
- groupBy?: {
444
- tableName: string;
445
- columnName: string;
446
- } | undefined;
447
- orderBy?: {
448
- tableName: string;
449
- columnName: string;
450
- order: "ASC" | "DESC";
451
- } | undefined;
452
- } | undefined;
453
- }>;
454
- type ResponseData = z$1.infer<typeof responseDataSchema>;
455
- declare const standardRouteSchema: z$1.ZodObject<{
456
- method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
457
- name: z$1.ZodString;
458
- description: z$1.ZodString;
459
- path: z$1.ZodString;
460
- roles: z$1.ZodArray<z$1.ZodString, "many">;
461
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
462
- } & {
463
- type: z$1.ZodEnum<["ONE", "ARRAY", "PAGED"]>;
464
- table: z$1.ZodString;
465
- joins: z$1.ZodArray<z$1.ZodObject<{
466
- table: z$1.ZodString;
467
- localTable: z$1.ZodOptional<z$1.ZodString>;
468
- localTableAlias: z$1.ZodOptional<z$1.ZodString>;
469
- localColumnName: z$1.ZodOptional<z$1.ZodString>;
470
- foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
471
- custom: z$1.ZodOptional<z$1.ZodString>;
472
- type: z$1.ZodEnum<["LEFT", "INNER", "RIGHT"]>;
473
- alias: z$1.ZodString;
474
- }, "strict", z$1.ZodTypeAny, {
475
- type: "LEFT" | "INNER" | "RIGHT";
476
- table: string;
477
- alias: string;
478
- custom?: string | undefined;
479
- localTable?: string | undefined;
480
- localTableAlias?: string | undefined;
481
- localColumnName?: string | undefined;
482
- foreignColumnName?: string | undefined;
483
- }, {
484
- type: "LEFT" | "INNER" | "RIGHT";
485
- table: string;
486
- alias: string;
487
- custom?: string | undefined;
488
- localTable?: string | undefined;
489
- localTableAlias?: string | undefined;
490
- localColumnName?: string | undefined;
491
- foreignColumnName?: string | undefined;
492
- }>, "many">;
493
- assignments: z$1.ZodArray<z$1.ZodObject<{
494
- name: z$1.ZodString;
495
- value: z$1.ZodString;
496
- }, "strict", z$1.ZodTypeAny, {
497
- value: string;
498
- name: string;
499
- }, {
500
- value: string;
501
- name: string;
502
- }>, "many">;
503
- where: z$1.ZodArray<z$1.ZodObject<{
504
- tableName: z$1.ZodOptional<z$1.ZodString>;
505
- columnName: z$1.ZodOptional<z$1.ZodString>;
506
- operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
507
- value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
508
- custom: z$1.ZodOptional<z$1.ZodString>;
509
- conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
510
- }, "strict", z$1.ZodTypeAny, {
511
- custom?: string | undefined;
512
- value?: string | number | undefined;
513
- tableName?: string | undefined;
514
- columnName?: string | undefined;
515
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
516
- conjunction?: "AND" | "OR" | undefined;
517
- }, {
518
- custom?: string | undefined;
519
- value?: string | number | undefined;
520
- tableName?: string | undefined;
521
- columnName?: string | undefined;
522
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
523
- conjunction?: "AND" | "OR" | undefined;
524
- }>, "many">;
525
- request: z$1.ZodArray<z$1.ZodObject<{
526
- name: z$1.ZodString;
527
- required: z$1.ZodBoolean;
528
- isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
529
- validator: z$1.ZodArray<z$1.ZodObject<{
530
- type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
531
- value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
532
- }, "strict", z$1.ZodTypeAny, {
533
- value: string | number | string[] | number[];
534
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
535
- }, {
536
- value: string | number | string[] | number[];
537
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
538
- }>, "many">;
539
- }, "strict", z$1.ZodTypeAny, {
540
- name: string;
541
- required: boolean;
542
- validator: {
543
- value: string | number | string[] | number[];
544
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
545
- }[];
546
- isNullable?: boolean | undefined;
547
- }, {
548
- name: string;
549
- required: boolean;
550
- validator: {
551
- value: string | number | string[] | number[];
552
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
553
- }[];
554
- isNullable?: boolean | undefined;
555
- }>, "many">;
556
- response: z$1.ZodArray<z$1.ZodObject<{
557
- name: z$1.ZodString;
558
- selector: z$1.ZodOptional<z$1.ZodString>;
559
- subquery: z$1.ZodOptional<z$1.ZodObject<{
560
- table: z$1.ZodString;
561
- joins: z$1.ZodArray<z$1.ZodObject<{
562
- table: z$1.ZodString;
563
- localTable: z$1.ZodOptional<z$1.ZodString>;
564
- localTableAlias: z$1.ZodOptional<z$1.ZodString>;
565
- localColumnName: z$1.ZodOptional<z$1.ZodString>;
566
- foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
567
- custom: z$1.ZodOptional<z$1.ZodString>;
568
- type: z$1.ZodEnum<["LEFT", "INNER", "RIGHT"]>;
569
- alias: z$1.ZodString;
570
- }, "strict", z$1.ZodTypeAny, {
571
- type: "LEFT" | "INNER" | "RIGHT";
572
- table: string;
573
- alias: string;
574
- custom?: string | undefined;
575
- localTable?: string | undefined;
576
- localTableAlias?: string | undefined;
577
- localColumnName?: string | undefined;
578
- foreignColumnName?: string | undefined;
579
- }, {
580
- type: "LEFT" | "INNER" | "RIGHT";
581
- table: string;
582
- alias: string;
583
- custom?: string | undefined;
584
- localTable?: string | undefined;
585
- localTableAlias?: string | undefined;
586
- localColumnName?: string | undefined;
587
- foreignColumnName?: string | undefined;
588
- }>, "many">;
589
- where: z$1.ZodArray<z$1.ZodObject<{
590
- tableName: z$1.ZodOptional<z$1.ZodString>;
591
- columnName: z$1.ZodOptional<z$1.ZodString>;
592
- operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
593
- value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
594
- custom: z$1.ZodOptional<z$1.ZodString>;
595
- conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
596
- }, "strict", z$1.ZodTypeAny, {
597
- custom?: string | undefined;
598
- value?: string | number | undefined;
599
- tableName?: string | undefined;
600
- columnName?: string | undefined;
601
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
602
- conjunction?: "AND" | "OR" | undefined;
603
- }, {
604
- custom?: string | undefined;
605
- value?: string | number | undefined;
606
- tableName?: string | undefined;
607
- columnName?: string | undefined;
608
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
609
- conjunction?: "AND" | "OR" | undefined;
610
- }>, "many">;
611
- properties: z$1.ZodArray<z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>, "many">;
612
- groupBy: z$1.ZodOptional<z$1.ZodObject<{
613
- columnName: z$1.ZodString;
614
- tableName: z$1.ZodString;
615
- }, "strict", z$1.ZodTypeAny, {
616
- tableName: string;
617
- columnName: string;
618
- }, {
619
- tableName: string;
620
- columnName: string;
208
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
209
+ custom: z.ZodOptional<z.ZodString>;
210
+ conjunction: z.ZodOptional<z.ZodEnum<{
211
+ AND: "AND";
212
+ OR: "OR";
213
+ }>>;
214
+ }, z.core.$strict>;
215
+ type WhereData = z.infer<typeof whereDataSchema>;
216
+ declare const joinDataSchema: z.ZodObject<{
217
+ table: z.ZodString;
218
+ localTable: z.ZodOptional<z.ZodString>;
219
+ localTableAlias: z.ZodOptional<z.ZodString>;
220
+ localColumnName: z.ZodOptional<z.ZodString>;
221
+ foreignColumnName: z.ZodOptional<z.ZodString>;
222
+ custom: z.ZodOptional<z.ZodString>;
223
+ type: z.ZodEnum<{
224
+ LEFT: "LEFT";
225
+ INNER: "INNER";
226
+ RIGHT: "RIGHT";
227
+ }>;
228
+ alias: z.ZodString;
229
+ }, z.core.$strict>;
230
+ type JoinData = z.infer<typeof joinDataSchema>;
231
+ declare const responseDataSchema: z.ZodObject<{
232
+ name: z.ZodString;
233
+ selector: z.ZodOptional<z.ZodString>;
234
+ subquery: z.ZodOptional<z.ZodObject<{
235
+ table: z.ZodString;
236
+ joins: z.ZodArray<z.ZodObject<{
237
+ table: z.ZodString;
238
+ localTable: z.ZodOptional<z.ZodString>;
239
+ localTableAlias: z.ZodOptional<z.ZodString>;
240
+ localColumnName: z.ZodOptional<z.ZodString>;
241
+ foreignColumnName: z.ZodOptional<z.ZodString>;
242
+ custom: z.ZodOptional<z.ZodString>;
243
+ type: z.ZodEnum<{
244
+ LEFT: "LEFT";
245
+ INNER: "INNER";
246
+ RIGHT: "RIGHT";
247
+ }>;
248
+ alias: z.ZodString;
249
+ }, z.core.$strict>>;
250
+ where: z.ZodArray<z.ZodObject<{
251
+ tableName: z.ZodOptional<z.ZodString>;
252
+ columnName: z.ZodOptional<z.ZodString>;
253
+ operator: z.ZodOptional<z.ZodEnum<{
254
+ "=": "=";
255
+ "<": "<";
256
+ ">": ">";
257
+ "<=": "<=";
258
+ ">=": ">=";
259
+ "!=": "!=";
260
+ LIKE: "LIKE";
261
+ "NOT LIKE": "NOT LIKE";
262
+ IN: "IN";
263
+ "NOT IN": "NOT IN";
264
+ "STARTS WITH": "STARTS WITH";
265
+ "ENDS WITH": "ENDS WITH";
266
+ IS: "IS";
267
+ "IS NOT": "IS NOT";
621
268
  }>>;
622
- orderBy: z$1.ZodOptional<z$1.ZodObject<{
623
- columnName: z$1.ZodString;
624
- order: z$1.ZodEnum<["ASC", "DESC"]>;
625
- tableName: z$1.ZodString;
626
- }, "strict", z$1.ZodTypeAny, {
627
- tableName: string;
628
- columnName: string;
629
- order: "ASC" | "DESC";
630
- }, {
631
- tableName: string;
632
- columnName: string;
633
- order: "ASC" | "DESC";
269
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
270
+ custom: z.ZodOptional<z.ZodString>;
271
+ conjunction: z.ZodOptional<z.ZodEnum<{
272
+ AND: "AND";
273
+ OR: "OR";
634
274
  }>>;
635
- }, "strip", z$1.ZodTypeAny, {
636
- table: string;
637
- joins: {
638
- type: "LEFT" | "INNER" | "RIGHT";
639
- table: string;
640
- alias: string;
641
- custom?: string | undefined;
642
- localTable?: string | undefined;
643
- localTableAlias?: string | undefined;
644
- localColumnName?: string | undefined;
645
- foreignColumnName?: string | undefined;
646
- }[];
647
- where: {
648
- custom?: string | undefined;
649
- value?: string | number | undefined;
650
- tableName?: string | undefined;
651
- columnName?: string | undefined;
652
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
653
- conjunction?: "AND" | "OR" | undefined;
654
- }[];
655
- properties: any[];
656
- groupBy?: {
657
- tableName: string;
658
- columnName: string;
659
- } | undefined;
660
- orderBy?: {
661
- tableName: string;
662
- columnName: string;
663
- order: "ASC" | "DESC";
664
- } | undefined;
665
- }, {
666
- table: string;
667
- joins: {
668
- type: "LEFT" | "INNER" | "RIGHT";
669
- table: string;
670
- alias: string;
671
- custom?: string | undefined;
672
- localTable?: string | undefined;
673
- localTableAlias?: string | undefined;
674
- localColumnName?: string | undefined;
675
- foreignColumnName?: string | undefined;
676
- }[];
677
- where: {
678
- custom?: string | undefined;
679
- value?: string | number | undefined;
680
- tableName?: string | undefined;
681
- columnName?: string | undefined;
682
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
683
- conjunction?: "AND" | "OR" | undefined;
684
- }[];
685
- properties: any[];
686
- groupBy?: {
687
- tableName: string;
688
- columnName: string;
689
- } | undefined;
690
- orderBy?: {
691
- tableName: string;
692
- columnName: string;
693
- order: "ASC" | "DESC";
694
- } | undefined;
275
+ }, z.core.$strict>>;
276
+ properties: z.ZodArray<z.ZodObject<any, z.core.$strict>>;
277
+ groupBy: z.ZodOptional<z.ZodObject<{
278
+ columnName: z.ZodString;
279
+ tableName: z.ZodString;
280
+ }, z.core.$strict>>;
281
+ orderBy: z.ZodOptional<z.ZodObject<{
282
+ columnName: z.ZodString;
283
+ order: z.ZodEnum<{
284
+ ASC: "ASC";
285
+ DESC: "DESC";
286
+ }>;
287
+ tableName: z.ZodString;
288
+ }, z.core.$strict>>;
289
+ }, z.core.$strip>>;
290
+ type: z.ZodOptional<z.ZodString>;
291
+ }, z.core.$strict>;
292
+ type ResponseData = z.infer<typeof responseDataSchema>;
293
+ declare const standardRouteSchema: z.ZodObject<{
294
+ method: z.ZodEnum<{
295
+ GET: "GET";
296
+ POST: "POST";
297
+ PUT: "PUT";
298
+ PATCH: "PATCH";
299
+ DELETE: "DELETE";
300
+ }>;
301
+ name: z.ZodString;
302
+ description: z.ZodString;
303
+ path: z.ZodString;
304
+ roles: z.ZodArray<z.ZodString>;
305
+ scopes: z.ZodArray<z.ZodString>;
306
+ type: z.ZodEnum<{
307
+ ONE: "ONE";
308
+ ARRAY: "ARRAY";
309
+ PAGED: "PAGED";
310
+ }>;
311
+ table: z.ZodString;
312
+ joins: z.ZodArray<z.ZodObject<{
313
+ table: z.ZodString;
314
+ localTable: z.ZodOptional<z.ZodString>;
315
+ localTableAlias: z.ZodOptional<z.ZodString>;
316
+ localColumnName: z.ZodOptional<z.ZodString>;
317
+ foreignColumnName: z.ZodOptional<z.ZodString>;
318
+ custom: z.ZodOptional<z.ZodString>;
319
+ type: z.ZodEnum<{
320
+ LEFT: "LEFT";
321
+ INNER: "INNER";
322
+ RIGHT: "RIGHT";
323
+ }>;
324
+ alias: z.ZodString;
325
+ }, z.core.$strict>>;
326
+ assignments: z.ZodArray<z.ZodObject<{
327
+ name: z.ZodString;
328
+ value: z.ZodString;
329
+ }, z.core.$strict>>;
330
+ where: z.ZodArray<z.ZodObject<{
331
+ tableName: z.ZodOptional<z.ZodString>;
332
+ columnName: z.ZodOptional<z.ZodString>;
333
+ operator: z.ZodOptional<z.ZodEnum<{
334
+ "=": "=";
335
+ "<": "<";
336
+ ">": ">";
337
+ "<=": "<=";
338
+ ">=": ">=";
339
+ "!=": "!=";
340
+ LIKE: "LIKE";
341
+ "NOT LIKE": "NOT LIKE";
342
+ IN: "IN";
343
+ "NOT IN": "NOT IN";
344
+ "STARTS WITH": "STARTS WITH";
345
+ "ENDS WITH": "ENDS WITH";
346
+ IS: "IS";
347
+ "IS NOT": "IS NOT";
695
348
  }>>;
696
- type: z$1.ZodOptional<z$1.ZodString>;
697
- }, "strict", z$1.ZodTypeAny, {
698
- name: string;
699
- type?: string | undefined;
700
- selector?: string | undefined;
701
- subquery?: {
702
- table: string;
703
- joins: {
704
- type: "LEFT" | "INNER" | "RIGHT";
705
- table: string;
706
- alias: string;
707
- custom?: string | undefined;
708
- localTable?: string | undefined;
709
- localTableAlias?: string | undefined;
710
- localColumnName?: string | undefined;
711
- foreignColumnName?: string | undefined;
712
- }[];
713
- where: {
714
- custom?: string | undefined;
715
- value?: string | number | undefined;
716
- tableName?: string | undefined;
717
- columnName?: string | undefined;
718
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
719
- conjunction?: "AND" | "OR" | undefined;
720
- }[];
721
- properties: any[];
722
- groupBy?: {
723
- tableName: string;
724
- columnName: string;
725
- } | undefined;
726
- orderBy?: {
727
- tableName: string;
728
- columnName: string;
729
- order: "ASC" | "DESC";
730
- } | undefined;
731
- } | undefined;
732
- }, {
733
- name: string;
734
- type?: string | undefined;
735
- selector?: string | undefined;
736
- subquery?: {
737
- table: string;
738
- joins: {
739
- type: "LEFT" | "INNER" | "RIGHT";
740
- table: string;
741
- alias: string;
742
- custom?: string | undefined;
743
- localTable?: string | undefined;
744
- localTableAlias?: string | undefined;
745
- localColumnName?: string | undefined;
746
- foreignColumnName?: string | undefined;
747
- }[];
748
- where: {
749
- custom?: string | undefined;
750
- value?: string | number | undefined;
751
- tableName?: string | undefined;
752
- columnName?: string | undefined;
753
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
754
- conjunction?: "AND" | "OR" | undefined;
755
- }[];
756
- properties: any[];
757
- groupBy?: {
758
- tableName: string;
759
- columnName: string;
760
- } | undefined;
761
- orderBy?: {
762
- tableName: string;
763
- columnName: string;
764
- order: "ASC" | "DESC";
765
- } | undefined;
766
- } | undefined;
767
- }>, "many">;
768
- groupBy: z$1.ZodOptional<z$1.ZodObject<{
769
- columnName: z$1.ZodString;
770
- tableName: z$1.ZodString;
771
- }, "strict", z$1.ZodTypeAny, {
772
- tableName: string;
773
- columnName: string;
774
- }, {
775
- tableName: string;
776
- columnName: string;
777
- }>>;
778
- orderBy: z$1.ZodOptional<z$1.ZodObject<{
779
- columnName: z$1.ZodString;
780
- order: z$1.ZodEnum<["ASC", "DESC"]>;
781
- tableName: z$1.ZodString;
782
- }, "strict", z$1.ZodTypeAny, {
783
- tableName: string;
784
- columnName: string;
785
- order: "ASC" | "DESC";
786
- }, {
787
- tableName: string;
788
- columnName: string;
789
- order: "ASC" | "DESC";
349
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
350
+ custom: z.ZodOptional<z.ZodString>;
351
+ conjunction: z.ZodOptional<z.ZodEnum<{
352
+ AND: "AND";
353
+ OR: "OR";
354
+ }>>;
355
+ }, z.core.$strict>>;
356
+ request: z.ZodArray<z.ZodObject<{
357
+ name: z.ZodString;
358
+ required: z.ZodBoolean;
359
+ isNullable: z.ZodOptional<z.ZodBoolean>;
360
+ validator: z.ZodArray<z.ZodObject<{
361
+ type: z.ZodEnum<{
362
+ TYPE_CHECK: "TYPE_CHECK";
363
+ MIN: "MIN";
364
+ MAX: "MAX";
365
+ ONE_OF: "ONE_OF";
366
+ }>;
367
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
368
+ }, z.core.$strict>>;
369
+ }, z.core.$strict>>;
370
+ response: z.ZodArray<z.ZodObject<{
371
+ name: z.ZodString;
372
+ selector: z.ZodOptional<z.ZodString>;
373
+ subquery: z.ZodOptional<z.ZodObject<{
374
+ table: z.ZodString;
375
+ joins: z.ZodArray<z.ZodObject<{
376
+ table: z.ZodString;
377
+ localTable: z.ZodOptional<z.ZodString>;
378
+ localTableAlias: z.ZodOptional<z.ZodString>;
379
+ localColumnName: z.ZodOptional<z.ZodString>;
380
+ foreignColumnName: z.ZodOptional<z.ZodString>;
381
+ custom: z.ZodOptional<z.ZodString>;
382
+ type: z.ZodEnum<{
383
+ LEFT: "LEFT";
384
+ INNER: "INNER";
385
+ RIGHT: "RIGHT";
386
+ }>;
387
+ alias: z.ZodString;
388
+ }, z.core.$strict>>;
389
+ where: z.ZodArray<z.ZodObject<{
390
+ tableName: z.ZodOptional<z.ZodString>;
391
+ columnName: z.ZodOptional<z.ZodString>;
392
+ operator: z.ZodOptional<z.ZodEnum<{
393
+ "=": "=";
394
+ "<": "<";
395
+ ">": ">";
396
+ "<=": "<=";
397
+ ">=": ">=";
398
+ "!=": "!=";
399
+ LIKE: "LIKE";
400
+ "NOT LIKE": "NOT LIKE";
401
+ IN: "IN";
402
+ "NOT IN": "NOT IN";
403
+ "STARTS WITH": "STARTS WITH";
404
+ "ENDS WITH": "ENDS WITH";
405
+ IS: "IS";
406
+ "IS NOT": "IS NOT";
407
+ }>>;
408
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
409
+ custom: z.ZodOptional<z.ZodString>;
410
+ conjunction: z.ZodOptional<z.ZodEnum<{
411
+ AND: "AND";
412
+ OR: "OR";
413
+ }>>;
414
+ }, z.core.$strict>>;
415
+ properties: z.ZodArray<z.ZodObject<any, z.core.$strict>>;
416
+ groupBy: z.ZodOptional<z.ZodObject<{
417
+ columnName: z.ZodString;
418
+ tableName: z.ZodString;
419
+ }, z.core.$strict>>;
420
+ orderBy: z.ZodOptional<z.ZodObject<{
421
+ columnName: z.ZodString;
422
+ order: z.ZodEnum<{
423
+ ASC: "ASC";
424
+ DESC: "DESC";
425
+ }>;
426
+ tableName: z.ZodString;
427
+ }, z.core.$strict>>;
428
+ }, z.core.$strip>>;
429
+ type: z.ZodOptional<z.ZodString>;
430
+ }, z.core.$strict>>;
431
+ groupBy: z.ZodOptional<z.ZodObject<{
432
+ columnName: z.ZodString;
433
+ tableName: z.ZodString;
434
+ }, z.core.$strict>>;
435
+ orderBy: z.ZodOptional<z.ZodObject<{
436
+ columnName: z.ZodString;
437
+ order: z.ZodEnum<{
438
+ ASC: "ASC";
439
+ DESC: "DESC";
440
+ }>;
441
+ tableName: z.ZodString;
442
+ }, z.core.$strict>>;
443
+ }, z.core.$strict>;
444
+ type StandardRouteData = z.infer<typeof standardRouteSchema>;
445
+ declare const customRouteSchema: z.ZodObject<{
446
+ method: z.ZodEnum<{
447
+ GET: "GET";
448
+ POST: "POST";
449
+ PUT: "PUT";
450
+ PATCH: "PATCH";
451
+ DELETE: "DELETE";
452
+ }>;
453
+ name: z.ZodString;
454
+ description: z.ZodString;
455
+ path: z.ZodString;
456
+ roles: z.ZodArray<z.ZodString>;
457
+ scopes: z.ZodArray<z.ZodString>;
458
+ type: z.ZodEnum<{
459
+ CUSTOM_ONE: "CUSTOM_ONE";
460
+ CUSTOM_ARRAY: "CUSTOM_ARRAY";
461
+ CUSTOM_PAGED: "CUSTOM_PAGED";
462
+ }>;
463
+ responseType: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
464
+ string: "string";
465
+ number: "number";
466
+ boolean: "boolean";
467
+ }>]>;
468
+ requestType: z.ZodOptional<z.ZodString>;
469
+ request: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
+ name: z.ZodString;
471
+ required: z.ZodBoolean;
472
+ isNullable: z.ZodOptional<z.ZodBoolean>;
473
+ validator: z.ZodArray<z.ZodObject<{
474
+ type: z.ZodEnum<{
475
+ TYPE_CHECK: "TYPE_CHECK";
476
+ MIN: "MIN";
477
+ MAX: "MAX";
478
+ ONE_OF: "ONE_OF";
479
+ }>;
480
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
481
+ }, z.core.$strict>>;
482
+ }, z.core.$strict>>>;
483
+ table: z.ZodUndefined;
484
+ joins: z.ZodUndefined;
485
+ assignments: z.ZodUndefined;
486
+ fileUploadType: z.ZodOptional<z.ZodEnum<{
487
+ SINGLE: "SINGLE";
488
+ MULTIPLE: "MULTIPLE";
790
489
  }>>;
791
- }, "strict", z$1.ZodTypeAny, {
792
- scopes: string[];
793
- path: string;
794
- type: "ONE" | "ARRAY" | "PAGED";
795
- name: string;
796
- table: string;
797
- joins: {
798
- type: "LEFT" | "INNER" | "RIGHT";
799
- table: string;
800
- alias: string;
801
- custom?: string | undefined;
802
- localTable?: string | undefined;
803
- localTableAlias?: string | undefined;
804
- localColumnName?: string | undefined;
805
- foreignColumnName?: string | undefined;
806
- }[];
807
- where: {
808
- custom?: string | undefined;
809
- value?: string | number | undefined;
810
- tableName?: string | undefined;
811
- columnName?: string | undefined;
812
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
813
- conjunction?: "AND" | "OR" | undefined;
814
- }[];
815
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
816
- description: string;
817
- roles: string[];
818
- assignments: {
819
- value: string;
820
- name: string;
821
- }[];
822
- request: {
823
- name: string;
824
- required: boolean;
825
- validator: {
826
- value: string | number | string[] | number[];
827
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
828
- }[];
829
- isNullable?: boolean | undefined;
830
- }[];
831
- response: {
832
- name: string;
833
- type?: string | undefined;
834
- selector?: string | undefined;
835
- subquery?: {
836
- table: string;
837
- joins: {
838
- type: "LEFT" | "INNER" | "RIGHT";
839
- table: string;
840
- alias: string;
841
- custom?: string | undefined;
842
- localTable?: string | undefined;
843
- localTableAlias?: string | undefined;
844
- localColumnName?: string | undefined;
845
- foreignColumnName?: string | undefined;
846
- }[];
847
- where: {
848
- custom?: string | undefined;
849
- value?: string | number | undefined;
850
- tableName?: string | undefined;
851
- columnName?: string | undefined;
852
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
853
- conjunction?: "AND" | "OR" | undefined;
854
- }[];
855
- properties: any[];
856
- groupBy?: {
857
- tableName: string;
858
- columnName: string;
859
- } | undefined;
860
- orderBy?: {
861
- tableName: string;
862
- columnName: string;
863
- order: "ASC" | "DESC";
864
- } | undefined;
865
- } | undefined;
866
- }[];
867
- groupBy?: {
868
- tableName: string;
869
- columnName: string;
870
- } | undefined;
871
- orderBy?: {
872
- tableName: string;
873
- columnName: string;
874
- order: "ASC" | "DESC";
875
- } | undefined;
876
- }, {
877
- scopes: string[];
878
- path: string;
879
- type: "ONE" | "ARRAY" | "PAGED";
880
- name: string;
881
- table: string;
882
- joins: {
883
- type: "LEFT" | "INNER" | "RIGHT";
884
- table: string;
885
- alias: string;
886
- custom?: string | undefined;
887
- localTable?: string | undefined;
888
- localTableAlias?: string | undefined;
889
- localColumnName?: string | undefined;
890
- foreignColumnName?: string | undefined;
891
- }[];
892
- where: {
893
- custom?: string | undefined;
894
- value?: string | number | undefined;
895
- tableName?: string | undefined;
896
- columnName?: string | undefined;
897
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
898
- conjunction?: "AND" | "OR" | undefined;
899
- }[];
900
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
901
- description: string;
902
- roles: string[];
903
- assignments: {
904
- value: string;
905
- name: string;
906
- }[];
907
- request: {
908
- name: string;
909
- required: boolean;
910
- validator: {
911
- value: string | number | string[] | number[];
912
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
913
- }[];
914
- isNullable?: boolean | undefined;
915
- }[];
916
- response: {
917
- name: string;
918
- type?: string | undefined;
919
- selector?: string | undefined;
920
- subquery?: {
921
- table: string;
922
- joins: {
923
- type: "LEFT" | "INNER" | "RIGHT";
924
- table: string;
925
- alias: string;
926
- custom?: string | undefined;
927
- localTable?: string | undefined;
928
- localTableAlias?: string | undefined;
929
- localColumnName?: string | undefined;
930
- foreignColumnName?: string | undefined;
931
- }[];
932
- where: {
933
- custom?: string | undefined;
934
- value?: string | number | undefined;
935
- tableName?: string | undefined;
936
- columnName?: string | undefined;
937
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
938
- conjunction?: "AND" | "OR" | undefined;
939
- }[];
940
- properties: any[];
941
- groupBy?: {
942
- tableName: string;
943
- columnName: string;
944
- } | undefined;
945
- orderBy?: {
946
- tableName: string;
947
- columnName: string;
948
- order: "ASC" | "DESC";
949
- } | undefined;
950
- } | undefined;
951
- }[];
952
- groupBy?: {
953
- tableName: string;
954
- columnName: string;
955
- } | undefined;
956
- orderBy?: {
957
- tableName: string;
958
- columnName: string;
959
- order: "ASC" | "DESC";
960
- } | undefined;
961
- }>;
962
- type StandardRouteData = z$1.infer<typeof standardRouteSchema>;
963
- declare const customRouteSchema: z$1.ZodObject<{
964
- method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
965
- name: z$1.ZodString;
966
- description: z$1.ZodString;
967
- path: z$1.ZodString;
968
- roles: z$1.ZodArray<z$1.ZodString, "many">;
969
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
970
- } & {
971
- type: z$1.ZodEnum<["CUSTOM_ONE", "CUSTOM_ARRAY", "CUSTOM_PAGED"]>;
972
- responseType: z$1.ZodUnion<[z$1.ZodString, z$1.ZodEnum<["string", "number", "boolean"]>]>;
973
- requestType: z$1.ZodOptional<z$1.ZodString>;
974
- request: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
975
- name: z$1.ZodString;
976
- required: z$1.ZodBoolean;
977
- isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
978
- validator: z$1.ZodArray<z$1.ZodObject<{
979
- type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
980
- value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
981
- }, "strict", z$1.ZodTypeAny, {
982
- value: string | number | string[] | number[];
983
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
984
- }, {
985
- value: string | number | string[] | number[];
986
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
987
- }>, "many">;
988
- }, "strict", z$1.ZodTypeAny, {
989
- name: string;
990
- required: boolean;
991
- validator: {
992
- value: string | number | string[] | number[];
993
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
994
- }[];
995
- isNullable?: boolean | undefined;
996
- }, {
997
- name: string;
998
- required: boolean;
999
- validator: {
1000
- value: string | number | string[] | number[];
1001
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1002
- }[];
1003
- isNullable?: boolean | undefined;
1004
- }>, "many">>;
1005
- table: z$1.ZodUndefined;
1006
- joins: z$1.ZodUndefined;
1007
- assignments: z$1.ZodUndefined;
1008
- fileUploadType: z$1.ZodOptional<z$1.ZodEnum<["SINGLE", "MULTIPLE"]>>;
1009
- }, "strict", z$1.ZodTypeAny, {
1010
- scopes: string[];
1011
- path: string;
1012
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
1013
- name: string;
1014
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1015
- description: string;
1016
- roles: string[];
1017
- responseType: string;
1018
- table?: undefined;
1019
- joins?: undefined;
1020
- assignments?: undefined;
1021
- request?: {
1022
- name: string;
1023
- required: boolean;
1024
- validator: {
1025
- value: string | number | string[] | number[];
1026
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1027
- }[];
1028
- isNullable?: boolean | undefined;
1029
- }[] | undefined;
1030
- requestType?: string | undefined;
1031
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
1032
- }, {
1033
- scopes: string[];
1034
- path: string;
1035
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
1036
- name: string;
1037
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1038
- description: string;
1039
- roles: string[];
1040
- responseType: string;
1041
- table?: undefined;
1042
- joins?: undefined;
1043
- assignments?: undefined;
1044
- request?: {
1045
- name: string;
1046
- required: boolean;
1047
- validator: {
1048
- value: string | number | string[] | number[];
1049
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1050
- }[];
1051
- isNullable?: boolean | undefined;
1052
- }[] | undefined;
1053
- requestType?: string | undefined;
1054
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
1055
- }>;
1056
- type CustomRouteData = z$1.infer<typeof customRouteSchema>;
490
+ }, z.core.$strict>;
491
+ type CustomRouteData = z.infer<typeof customRouteSchema>;
1057
492
  type RouteData = CustomRouteData | StandardRouteData;
1058
- declare const tableDataSchema: z$1.ZodObject<{
1059
- name: z$1.ZodString;
1060
- columns: z$1.ZodArray<z$1.ZodObject<{
1061
- name: z$1.ZodString;
1062
- type: z$1.ZodUnion<[z$1.ZodEnum<["SMALLINT", "INTEGER", "BIGINT", "DECIMAL", "NUMERIC", "REAL", "DOUBLE PRECISION", "SERIAL", "BIGSERIAL"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TEXT", "BYTEA"]>, z$1.ZodEnum<["DATE", "TIMESTAMP", "TIMESTAMPTZ", "TIME", "INTERVAL"]>, z$1.ZodEnum<["JSON", "JSONB"]>, z$1.ZodEnum<["BOOLEAN", "TINYINT", "SMALLINT", "MEDIUMINT", "INTEGER", "BIGINT", "DECIMAL", "FLOAT", "DOUBLE"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TINYTEXT", "TINYBLOB", "TEXT", "BLOB", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "JSON", "LONGBLOB", "ENUM"]>, z$1.ZodEnum<["DATE", "DATETIME", "TIME", "TIMESTAMP"]>]>;
1063
- isNullable: z$1.ZodBoolean;
1064
- roles: z$1.ZodArray<z$1.ZodString, "many">;
1065
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
1066
- comment: z$1.ZodOptional<z$1.ZodString>;
1067
- default: z$1.ZodOptional<z$1.ZodString>;
1068
- value: z$1.ZodOptional<z$1.ZodString>;
1069
- isPrimary: z$1.ZodOptional<z$1.ZodBoolean>;
1070
- isUnique: z$1.ZodOptional<z$1.ZodBoolean>;
1071
- hasAutoIncrement: z$1.ZodOptional<z$1.ZodBoolean>;
1072
- length: z$1.ZodOptional<z$1.ZodNumber>;
1073
- }, "strict", z$1.ZodTypeAny, {
1074
- scopes: string[];
1075
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1076
- name: string;
1077
- isNullable: boolean;
1078
- roles: string[];
1079
- default?: string | undefined;
1080
- value?: string | undefined;
1081
- length?: number | undefined;
1082
- comment?: string | undefined;
1083
- isPrimary?: boolean | undefined;
1084
- isUnique?: boolean | undefined;
1085
- hasAutoIncrement?: boolean | undefined;
1086
- }, {
1087
- scopes: string[];
1088
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1089
- name: string;
1090
- isNullable: boolean;
1091
- roles: string[];
1092
- default?: string | undefined;
1093
- value?: string | undefined;
1094
- length?: number | undefined;
1095
- comment?: string | undefined;
1096
- isPrimary?: boolean | undefined;
1097
- isUnique?: boolean | undefined;
1098
- hasAutoIncrement?: boolean | undefined;
1099
- }>, "many">;
1100
- indexes: z$1.ZodArray<z$1.ZodObject<{
1101
- name: z$1.ZodString;
1102
- columns: z$1.ZodArray<z$1.ZodString, "many">;
1103
- isUnique: z$1.ZodBoolean;
1104
- isPrimaryKey: z$1.ZodBoolean;
1105
- order: z$1.ZodEnum<["ASC", "DESC"]>;
1106
- }, "strict", z$1.ZodTypeAny, {
1107
- order: "ASC" | "DESC";
1108
- name: string;
1109
- isUnique: boolean;
1110
- columns: string[];
1111
- isPrimaryKey: boolean;
1112
- }, {
1113
- order: "ASC" | "DESC";
1114
- name: string;
1115
- isUnique: boolean;
1116
- columns: string[];
1117
- isPrimaryKey: boolean;
1118
- }>, "many">;
1119
- foreignKeys: z$1.ZodArray<z$1.ZodObject<{
1120
- name: z$1.ZodString;
1121
- column: z$1.ZodString;
1122
- refTable: z$1.ZodString;
1123
- refColumn: z$1.ZodString;
1124
- onDelete: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
1125
- onUpdate: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
1126
- }, "strict", z$1.ZodTypeAny, {
1127
- name: string;
1128
- column: string;
1129
- refTable: string;
1130
- refColumn: string;
1131
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1132
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1133
- }, {
1134
- name: string;
1135
- column: string;
1136
- refTable: string;
1137
- refColumn: string;
1138
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1139
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1140
- }>, "many">;
1141
- checkConstraints: z$1.ZodArray<z$1.ZodObject<{
1142
- name: z$1.ZodString;
1143
- check: z$1.ZodString;
1144
- }, "strict", z$1.ZodTypeAny, {
1145
- name: string;
1146
- check: string;
1147
- }, {
1148
- name: string;
1149
- check: string;
1150
- }>, "many">;
1151
- roles: z$1.ZodArray<z$1.ZodString, "many">;
1152
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
1153
- notify: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodLiteral<"ALL">, z$1.ZodArray<z$1.ZodString, "many">]>>;
1154
- }, "strict", z$1.ZodTypeAny, {
1155
- scopes: string[];
1156
- name: string;
1157
- roles: string[];
1158
- columns: {
1159
- scopes: string[];
1160
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1161
- name: string;
1162
- isNullable: boolean;
1163
- roles: string[];
1164
- default?: string | undefined;
1165
- value?: string | undefined;
1166
- length?: number | undefined;
1167
- comment?: string | undefined;
1168
- isPrimary?: boolean | undefined;
1169
- isUnique?: boolean | undefined;
1170
- hasAutoIncrement?: boolean | undefined;
1171
- }[];
1172
- indexes: {
1173
- order: "ASC" | "DESC";
1174
- name: string;
1175
- isUnique: boolean;
1176
- columns: string[];
1177
- isPrimaryKey: boolean;
1178
- }[];
1179
- foreignKeys: {
1180
- name: string;
1181
- column: string;
1182
- refTable: string;
1183
- refColumn: string;
1184
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1185
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1186
- }[];
1187
- checkConstraints: {
1188
- name: string;
1189
- check: string;
1190
- }[];
1191
- notify?: string[] | "ALL" | undefined;
1192
- }, {
1193
- scopes: string[];
1194
- name: string;
1195
- roles: string[];
1196
- columns: {
1197
- scopes: string[];
1198
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1199
- name: string;
1200
- isNullable: boolean;
1201
- roles: string[];
1202
- default?: string | undefined;
1203
- value?: string | undefined;
1204
- length?: number | undefined;
1205
- comment?: string | undefined;
1206
- isPrimary?: boolean | undefined;
1207
- isUnique?: boolean | undefined;
1208
- hasAutoIncrement?: boolean | undefined;
1209
- }[];
1210
- indexes: {
1211
- order: "ASC" | "DESC";
1212
- name: string;
1213
- isUnique: boolean;
1214
- columns: string[];
1215
- isPrimaryKey: boolean;
1216
- }[];
1217
- foreignKeys: {
1218
- name: string;
1219
- column: string;
1220
- refTable: string;
1221
- refColumn: string;
1222
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1223
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1224
- }[];
1225
- checkConstraints: {
1226
- name: string;
1227
- check: string;
1228
- }[];
1229
- notify?: string[] | "ALL" | undefined;
1230
- }>;
1231
- type TableData = z$1.infer<typeof tableDataSchema>;
1232
- declare const resturaSchema: z$1.ZodObject<{
1233
- database: z$1.ZodArray<z$1.ZodObject<{
1234
- name: z$1.ZodString;
1235
- columns: z$1.ZodArray<z$1.ZodObject<{
1236
- name: z$1.ZodString;
1237
- type: z$1.ZodUnion<[z$1.ZodEnum<["SMALLINT", "INTEGER", "BIGINT", "DECIMAL", "NUMERIC", "REAL", "DOUBLE PRECISION", "SERIAL", "BIGSERIAL"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TEXT", "BYTEA"]>, z$1.ZodEnum<["DATE", "TIMESTAMP", "TIMESTAMPTZ", "TIME", "INTERVAL"]>, z$1.ZodEnum<["JSON", "JSONB"]>, z$1.ZodEnum<["BOOLEAN", "TINYINT", "SMALLINT", "MEDIUMINT", "INTEGER", "BIGINT", "DECIMAL", "FLOAT", "DOUBLE"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TINYTEXT", "TINYBLOB", "TEXT", "BLOB", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "JSON", "LONGBLOB", "ENUM"]>, z$1.ZodEnum<["DATE", "DATETIME", "TIME", "TIMESTAMP"]>]>;
1238
- isNullable: z$1.ZodBoolean;
1239
- roles: z$1.ZodArray<z$1.ZodString, "many">;
1240
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
1241
- comment: z$1.ZodOptional<z$1.ZodString>;
1242
- default: z$1.ZodOptional<z$1.ZodString>;
1243
- value: z$1.ZodOptional<z$1.ZodString>;
1244
- isPrimary: z$1.ZodOptional<z$1.ZodBoolean>;
1245
- isUnique: z$1.ZodOptional<z$1.ZodBoolean>;
1246
- hasAutoIncrement: z$1.ZodOptional<z$1.ZodBoolean>;
1247
- length: z$1.ZodOptional<z$1.ZodNumber>;
1248
- }, "strict", z$1.ZodTypeAny, {
1249
- scopes: string[];
1250
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1251
- name: string;
1252
- isNullable: boolean;
1253
- roles: string[];
1254
- default?: string | undefined;
1255
- value?: string | undefined;
1256
- length?: number | undefined;
1257
- comment?: string | undefined;
1258
- isPrimary?: boolean | undefined;
1259
- isUnique?: boolean | undefined;
1260
- hasAutoIncrement?: boolean | undefined;
1261
- }, {
1262
- scopes: string[];
1263
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1264
- name: string;
1265
- isNullable: boolean;
1266
- roles: string[];
1267
- default?: string | undefined;
1268
- value?: string | undefined;
1269
- length?: number | undefined;
1270
- comment?: string | undefined;
1271
- isPrimary?: boolean | undefined;
1272
- isUnique?: boolean | undefined;
1273
- hasAutoIncrement?: boolean | undefined;
1274
- }>, "many">;
1275
- indexes: z$1.ZodArray<z$1.ZodObject<{
1276
- name: z$1.ZodString;
1277
- columns: z$1.ZodArray<z$1.ZodString, "many">;
1278
- isUnique: z$1.ZodBoolean;
1279
- isPrimaryKey: z$1.ZodBoolean;
1280
- order: z$1.ZodEnum<["ASC", "DESC"]>;
1281
- }, "strict", z$1.ZodTypeAny, {
1282
- order: "ASC" | "DESC";
1283
- name: string;
1284
- isUnique: boolean;
1285
- columns: string[];
1286
- isPrimaryKey: boolean;
1287
- }, {
1288
- order: "ASC" | "DESC";
1289
- name: string;
1290
- isUnique: boolean;
1291
- columns: string[];
1292
- isPrimaryKey: boolean;
1293
- }>, "many">;
1294
- foreignKeys: z$1.ZodArray<z$1.ZodObject<{
1295
- name: z$1.ZodString;
1296
- column: z$1.ZodString;
1297
- refTable: z$1.ZodString;
1298
- refColumn: z$1.ZodString;
1299
- onDelete: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
1300
- onUpdate: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
1301
- }, "strict", z$1.ZodTypeAny, {
1302
- name: string;
1303
- column: string;
1304
- refTable: string;
1305
- refColumn: string;
1306
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1307
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1308
- }, {
1309
- name: string;
1310
- column: string;
1311
- refTable: string;
1312
- refColumn: string;
1313
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1314
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1315
- }>, "many">;
1316
- checkConstraints: z$1.ZodArray<z$1.ZodObject<{
1317
- name: z$1.ZodString;
1318
- check: z$1.ZodString;
1319
- }, "strict", z$1.ZodTypeAny, {
1320
- name: string;
1321
- check: string;
1322
- }, {
1323
- name: string;
1324
- check: string;
1325
- }>, "many">;
1326
- roles: z$1.ZodArray<z$1.ZodString, "many">;
1327
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
1328
- notify: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodLiteral<"ALL">, z$1.ZodArray<z$1.ZodString, "many">]>>;
1329
- }, "strict", z$1.ZodTypeAny, {
1330
- scopes: string[];
1331
- name: string;
1332
- roles: string[];
1333
- columns: {
1334
- scopes: string[];
1335
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1336
- name: string;
1337
- isNullable: boolean;
1338
- roles: string[];
1339
- default?: string | undefined;
1340
- value?: string | undefined;
1341
- length?: number | undefined;
1342
- comment?: string | undefined;
1343
- isPrimary?: boolean | undefined;
1344
- isUnique?: boolean | undefined;
1345
- hasAutoIncrement?: boolean | undefined;
1346
- }[];
1347
- indexes: {
1348
- order: "ASC" | "DESC";
1349
- name: string;
1350
- isUnique: boolean;
1351
- columns: string[];
1352
- isPrimaryKey: boolean;
1353
- }[];
1354
- foreignKeys: {
1355
- name: string;
1356
- column: string;
1357
- refTable: string;
1358
- refColumn: string;
1359
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1360
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1361
- }[];
1362
- checkConstraints: {
1363
- name: string;
1364
- check: string;
1365
- }[];
1366
- notify?: string[] | "ALL" | undefined;
1367
- }, {
1368
- scopes: string[];
1369
- name: string;
1370
- roles: string[];
1371
- columns: {
1372
- scopes: string[];
1373
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
1374
- name: string;
1375
- isNullable: boolean;
1376
- roles: string[];
1377
- default?: string | undefined;
1378
- value?: string | undefined;
1379
- length?: number | undefined;
1380
- comment?: string | undefined;
1381
- isPrimary?: boolean | undefined;
1382
- isUnique?: boolean | undefined;
1383
- hasAutoIncrement?: boolean | undefined;
1384
- }[];
1385
- indexes: {
1386
- order: "ASC" | "DESC";
1387
- name: string;
1388
- isUnique: boolean;
1389
- columns: string[];
1390
- isPrimaryKey: boolean;
1391
- }[];
1392
- foreignKeys: {
1393
- name: string;
1394
- column: string;
1395
- refTable: string;
1396
- refColumn: string;
1397
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1398
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
1399
- }[];
1400
- checkConstraints: {
1401
- name: string;
1402
- check: string;
1403
- }[];
1404
- notify?: string[] | "ALL" | undefined;
1405
- }>, "many">;
1406
- endpoints: z$1.ZodArray<z$1.ZodObject<{
1407
- name: z$1.ZodString;
1408
- description: z$1.ZodString;
1409
- baseUrl: z$1.ZodString;
1410
- routes: z$1.ZodArray<z$1.ZodUnion<[z$1.ZodObject<{
1411
- method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
1412
- name: z$1.ZodString;
1413
- description: z$1.ZodString;
1414
- path: z$1.ZodString;
1415
- roles: z$1.ZodArray<z$1.ZodString, "many">;
1416
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
1417
- } & {
1418
- type: z$1.ZodEnum<["ONE", "ARRAY", "PAGED"]>;
1419
- table: z$1.ZodString;
1420
- joins: z$1.ZodArray<z$1.ZodObject<{
1421
- table: z$1.ZodString;
1422
- localTable: z$1.ZodOptional<z$1.ZodString>;
1423
- localTableAlias: z$1.ZodOptional<z$1.ZodString>;
1424
- localColumnName: z$1.ZodOptional<z$1.ZodString>;
1425
- foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
1426
- custom: z$1.ZodOptional<z$1.ZodString>;
1427
- type: z$1.ZodEnum<["LEFT", "INNER", "RIGHT"]>;
1428
- alias: z$1.ZodString;
1429
- }, "strict", z$1.ZodTypeAny, {
1430
- type: "LEFT" | "INNER" | "RIGHT";
1431
- table: string;
1432
- alias: string;
1433
- custom?: string | undefined;
1434
- localTable?: string | undefined;
1435
- localTableAlias?: string | undefined;
1436
- localColumnName?: string | undefined;
1437
- foreignColumnName?: string | undefined;
1438
- }, {
1439
- type: "LEFT" | "INNER" | "RIGHT";
1440
- table: string;
1441
- alias: string;
1442
- custom?: string | undefined;
1443
- localTable?: string | undefined;
1444
- localTableAlias?: string | undefined;
1445
- localColumnName?: string | undefined;
1446
- foreignColumnName?: string | undefined;
1447
- }>, "many">;
1448
- assignments: z$1.ZodArray<z$1.ZodObject<{
1449
- name: z$1.ZodString;
1450
- value: z$1.ZodString;
1451
- }, "strict", z$1.ZodTypeAny, {
1452
- value: string;
1453
- name: string;
1454
- }, {
1455
- value: string;
1456
- name: string;
1457
- }>, "many">;
1458
- where: z$1.ZodArray<z$1.ZodObject<{
1459
- tableName: z$1.ZodOptional<z$1.ZodString>;
1460
- columnName: z$1.ZodOptional<z$1.ZodString>;
1461
- operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
1462
- value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
1463
- custom: z$1.ZodOptional<z$1.ZodString>;
1464
- conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
1465
- }, "strict", z$1.ZodTypeAny, {
1466
- custom?: string | undefined;
1467
- value?: string | number | undefined;
1468
- tableName?: string | undefined;
1469
- columnName?: string | undefined;
1470
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1471
- conjunction?: "AND" | "OR" | undefined;
1472
- }, {
1473
- custom?: string | undefined;
1474
- value?: string | number | undefined;
1475
- tableName?: string | undefined;
1476
- columnName?: string | undefined;
1477
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1478
- conjunction?: "AND" | "OR" | undefined;
1479
- }>, "many">;
1480
- request: z$1.ZodArray<z$1.ZodObject<{
1481
- name: z$1.ZodString;
1482
- required: z$1.ZodBoolean;
1483
- isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
1484
- validator: z$1.ZodArray<z$1.ZodObject<{
1485
- type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
1486
- value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
1487
- }, "strict", z$1.ZodTypeAny, {
1488
- value: string | number | string[] | number[];
1489
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1490
- }, {
1491
- value: string | number | string[] | number[];
1492
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1493
- }>, "many">;
1494
- }, "strict", z$1.ZodTypeAny, {
1495
- name: string;
1496
- required: boolean;
1497
- validator: {
1498
- value: string | number | string[] | number[];
1499
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1500
- }[];
1501
- isNullable?: boolean | undefined;
1502
- }, {
1503
- name: string;
1504
- required: boolean;
1505
- validator: {
1506
- value: string | number | string[] | number[];
1507
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1508
- }[];
1509
- isNullable?: boolean | undefined;
1510
- }>, "many">;
1511
- response: z$1.ZodArray<z$1.ZodObject<{
1512
- name: z$1.ZodString;
1513
- selector: z$1.ZodOptional<z$1.ZodString>;
1514
- subquery: z$1.ZodOptional<z$1.ZodObject<{
1515
- table: z$1.ZodString;
1516
- joins: z$1.ZodArray<z$1.ZodObject<{
1517
- table: z$1.ZodString;
1518
- localTable: z$1.ZodOptional<z$1.ZodString>;
1519
- localTableAlias: z$1.ZodOptional<z$1.ZodString>;
1520
- localColumnName: z$1.ZodOptional<z$1.ZodString>;
1521
- foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
1522
- custom: z$1.ZodOptional<z$1.ZodString>;
1523
- type: z$1.ZodEnum<["LEFT", "INNER", "RIGHT"]>;
1524
- alias: z$1.ZodString;
1525
- }, "strict", z$1.ZodTypeAny, {
1526
- type: "LEFT" | "INNER" | "RIGHT";
1527
- table: string;
1528
- alias: string;
1529
- custom?: string | undefined;
1530
- localTable?: string | undefined;
1531
- localTableAlias?: string | undefined;
1532
- localColumnName?: string | undefined;
1533
- foreignColumnName?: string | undefined;
1534
- }, {
1535
- type: "LEFT" | "INNER" | "RIGHT";
1536
- table: string;
1537
- alias: string;
1538
- custom?: string | undefined;
1539
- localTable?: string | undefined;
1540
- localTableAlias?: string | undefined;
1541
- localColumnName?: string | undefined;
1542
- foreignColumnName?: string | undefined;
1543
- }>, "many">;
1544
- where: z$1.ZodArray<z$1.ZodObject<{
1545
- tableName: z$1.ZodOptional<z$1.ZodString>;
1546
- columnName: z$1.ZodOptional<z$1.ZodString>;
1547
- operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "NOT LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
1548
- value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
1549
- custom: z$1.ZodOptional<z$1.ZodString>;
1550
- conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
1551
- }, "strict", z$1.ZodTypeAny, {
1552
- custom?: string | undefined;
1553
- value?: string | number | undefined;
1554
- tableName?: string | undefined;
1555
- columnName?: string | undefined;
1556
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1557
- conjunction?: "AND" | "OR" | undefined;
1558
- }, {
1559
- custom?: string | undefined;
1560
- value?: string | number | undefined;
1561
- tableName?: string | undefined;
1562
- columnName?: string | undefined;
1563
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1564
- conjunction?: "AND" | "OR" | undefined;
1565
- }>, "many">;
1566
- properties: z$1.ZodArray<z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>, "many">;
1567
- groupBy: z$1.ZodOptional<z$1.ZodObject<{
1568
- columnName: z$1.ZodString;
1569
- tableName: z$1.ZodString;
1570
- }, "strict", z$1.ZodTypeAny, {
1571
- tableName: string;
1572
- columnName: string;
1573
- }, {
1574
- tableName: string;
1575
- columnName: string;
1576
- }>>;
1577
- orderBy: z$1.ZodOptional<z$1.ZodObject<{
1578
- columnName: z$1.ZodString;
1579
- order: z$1.ZodEnum<["ASC", "DESC"]>;
1580
- tableName: z$1.ZodString;
1581
- }, "strict", z$1.ZodTypeAny, {
1582
- tableName: string;
1583
- columnName: string;
1584
- order: "ASC" | "DESC";
1585
- }, {
1586
- tableName: string;
1587
- columnName: string;
1588
- order: "ASC" | "DESC";
1589
- }>>;
1590
- }, "strip", z$1.ZodTypeAny, {
1591
- table: string;
1592
- joins: {
1593
- type: "LEFT" | "INNER" | "RIGHT";
1594
- table: string;
1595
- alias: string;
1596
- custom?: string | undefined;
1597
- localTable?: string | undefined;
1598
- localTableAlias?: string | undefined;
1599
- localColumnName?: string | undefined;
1600
- foreignColumnName?: string | undefined;
1601
- }[];
1602
- where: {
1603
- custom?: string | undefined;
1604
- value?: string | number | undefined;
1605
- tableName?: string | undefined;
1606
- columnName?: string | undefined;
1607
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1608
- conjunction?: "AND" | "OR" | undefined;
1609
- }[];
1610
- properties: any[];
1611
- groupBy?: {
1612
- tableName: string;
1613
- columnName: string;
1614
- } | undefined;
1615
- orderBy?: {
1616
- tableName: string;
1617
- columnName: string;
1618
- order: "ASC" | "DESC";
1619
- } | undefined;
1620
- }, {
1621
- table: string;
1622
- joins: {
1623
- type: "LEFT" | "INNER" | "RIGHT";
1624
- table: string;
1625
- alias: string;
1626
- custom?: string | undefined;
1627
- localTable?: string | undefined;
1628
- localTableAlias?: string | undefined;
1629
- localColumnName?: string | undefined;
1630
- foreignColumnName?: string | undefined;
1631
- }[];
1632
- where: {
1633
- custom?: string | undefined;
1634
- value?: string | number | undefined;
1635
- tableName?: string | undefined;
1636
- columnName?: string | undefined;
1637
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1638
- conjunction?: "AND" | "OR" | undefined;
1639
- }[];
1640
- properties: any[];
1641
- groupBy?: {
1642
- tableName: string;
1643
- columnName: string;
1644
- } | undefined;
1645
- orderBy?: {
1646
- tableName: string;
1647
- columnName: string;
1648
- order: "ASC" | "DESC";
1649
- } | undefined;
493
+ declare const tableDataSchema: z.ZodObject<{
494
+ name: z.ZodString;
495
+ columns: z.ZodArray<z.ZodObject<{
496
+ name: z.ZodString;
497
+ type: z.ZodUnion<readonly [z.ZodEnum<{
498
+ SMALLINT: "SMALLINT";
499
+ INTEGER: "INTEGER";
500
+ BIGINT: "BIGINT";
501
+ DECIMAL: "DECIMAL";
502
+ NUMERIC: "NUMERIC";
503
+ REAL: "REAL";
504
+ "DOUBLE PRECISION": "DOUBLE PRECISION";
505
+ SERIAL: "SERIAL";
506
+ BIGSERIAL: "BIGSERIAL";
507
+ }>, z.ZodEnum<{
508
+ CHAR: "CHAR";
509
+ VARCHAR: "VARCHAR";
510
+ TEXT: "TEXT";
511
+ BYTEA: "BYTEA";
512
+ }>, z.ZodEnum<{
513
+ DATE: "DATE";
514
+ TIMESTAMP: "TIMESTAMP";
515
+ TIMESTAMPTZ: "TIMESTAMPTZ";
516
+ TIME: "TIME";
517
+ INTERVAL: "INTERVAL";
518
+ }>, z.ZodEnum<{
519
+ JSON: "JSON";
520
+ JSONB: "JSONB";
521
+ }>, z.ZodEnum<{
522
+ SMALLINT: "SMALLINT";
523
+ INTEGER: "INTEGER";
524
+ BIGINT: "BIGINT";
525
+ DECIMAL: "DECIMAL";
526
+ BOOLEAN: "BOOLEAN";
527
+ TINYINT: "TINYINT";
528
+ MEDIUMINT: "MEDIUMINT";
529
+ FLOAT: "FLOAT";
530
+ DOUBLE: "DOUBLE";
531
+ }>, z.ZodEnum<{
532
+ CHAR: "CHAR";
533
+ VARCHAR: "VARCHAR";
534
+ TEXT: "TEXT";
535
+ JSON: "JSON";
536
+ TINYTEXT: "TINYTEXT";
537
+ TINYBLOB: "TINYBLOB";
538
+ BLOB: "BLOB";
539
+ MEDIUMTEXT: "MEDIUMTEXT";
540
+ MEDIUMBLOB: "MEDIUMBLOB";
541
+ LONGTEXT: "LONGTEXT";
542
+ LONGBLOB: "LONGBLOB";
543
+ ENUM: "ENUM";
544
+ }>, z.ZodEnum<{
545
+ DATE: "DATE";
546
+ TIMESTAMP: "TIMESTAMP";
547
+ TIME: "TIME";
548
+ DATETIME: "DATETIME";
549
+ }>]>;
550
+ isNullable: z.ZodBoolean;
551
+ roles: z.ZodArray<z.ZodString>;
552
+ scopes: z.ZodArray<z.ZodString>;
553
+ comment: z.ZodOptional<z.ZodString>;
554
+ default: z.ZodOptional<z.ZodString>;
555
+ value: z.ZodOptional<z.ZodString>;
556
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
557
+ isUnique: z.ZodOptional<z.ZodBoolean>;
558
+ hasAutoIncrement: z.ZodOptional<z.ZodBoolean>;
559
+ length: z.ZodOptional<z.ZodNumber>;
560
+ }, z.core.$strict>>;
561
+ indexes: z.ZodArray<z.ZodObject<{
562
+ name: z.ZodString;
563
+ columns: z.ZodArray<z.ZodString>;
564
+ isUnique: z.ZodBoolean;
565
+ isPrimaryKey: z.ZodBoolean;
566
+ order: z.ZodEnum<{
567
+ ASC: "ASC";
568
+ DESC: "DESC";
569
+ }>;
570
+ }, z.core.$strict>>;
571
+ foreignKeys: z.ZodArray<z.ZodObject<{
572
+ name: z.ZodString;
573
+ column: z.ZodString;
574
+ refTable: z.ZodString;
575
+ refColumn: z.ZodString;
576
+ onDelete: z.ZodEnum<{
577
+ CASCADE: "CASCADE";
578
+ "SET NULL": "SET NULL";
579
+ RESTRICT: "RESTRICT";
580
+ "NO ACTION": "NO ACTION";
581
+ "SET DEFAULT": "SET DEFAULT";
582
+ }>;
583
+ onUpdate: z.ZodEnum<{
584
+ CASCADE: "CASCADE";
585
+ "SET NULL": "SET NULL";
586
+ RESTRICT: "RESTRICT";
587
+ "NO ACTION": "NO ACTION";
588
+ "SET DEFAULT": "SET DEFAULT";
589
+ }>;
590
+ }, z.core.$strict>>;
591
+ checkConstraints: z.ZodArray<z.ZodObject<{
592
+ name: z.ZodString;
593
+ check: z.ZodString;
594
+ }, z.core.$strict>>;
595
+ roles: z.ZodArray<z.ZodString>;
596
+ scopes: z.ZodArray<z.ZodString>;
597
+ notify: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>>;
598
+ }, z.core.$strict>;
599
+ type TableData = z.infer<typeof tableDataSchema>;
600
+ declare const resturaSchema: z.ZodObject<{
601
+ database: z.ZodArray<z.ZodObject<{
602
+ name: z.ZodString;
603
+ columns: z.ZodArray<z.ZodObject<{
604
+ name: z.ZodString;
605
+ type: z.ZodUnion<readonly [z.ZodEnum<{
606
+ SMALLINT: "SMALLINT";
607
+ INTEGER: "INTEGER";
608
+ BIGINT: "BIGINT";
609
+ DECIMAL: "DECIMAL";
610
+ NUMERIC: "NUMERIC";
611
+ REAL: "REAL";
612
+ "DOUBLE PRECISION": "DOUBLE PRECISION";
613
+ SERIAL: "SERIAL";
614
+ BIGSERIAL: "BIGSERIAL";
615
+ }>, z.ZodEnum<{
616
+ CHAR: "CHAR";
617
+ VARCHAR: "VARCHAR";
618
+ TEXT: "TEXT";
619
+ BYTEA: "BYTEA";
620
+ }>, z.ZodEnum<{
621
+ DATE: "DATE";
622
+ TIMESTAMP: "TIMESTAMP";
623
+ TIMESTAMPTZ: "TIMESTAMPTZ";
624
+ TIME: "TIME";
625
+ INTERVAL: "INTERVAL";
626
+ }>, z.ZodEnum<{
627
+ JSON: "JSON";
628
+ JSONB: "JSONB";
629
+ }>, z.ZodEnum<{
630
+ SMALLINT: "SMALLINT";
631
+ INTEGER: "INTEGER";
632
+ BIGINT: "BIGINT";
633
+ DECIMAL: "DECIMAL";
634
+ BOOLEAN: "BOOLEAN";
635
+ TINYINT: "TINYINT";
636
+ MEDIUMINT: "MEDIUMINT";
637
+ FLOAT: "FLOAT";
638
+ DOUBLE: "DOUBLE";
639
+ }>, z.ZodEnum<{
640
+ CHAR: "CHAR";
641
+ VARCHAR: "VARCHAR";
642
+ TEXT: "TEXT";
643
+ JSON: "JSON";
644
+ TINYTEXT: "TINYTEXT";
645
+ TINYBLOB: "TINYBLOB";
646
+ BLOB: "BLOB";
647
+ MEDIUMTEXT: "MEDIUMTEXT";
648
+ MEDIUMBLOB: "MEDIUMBLOB";
649
+ LONGTEXT: "LONGTEXT";
650
+ LONGBLOB: "LONGBLOB";
651
+ ENUM: "ENUM";
652
+ }>, z.ZodEnum<{
653
+ DATE: "DATE";
654
+ TIMESTAMP: "TIMESTAMP";
655
+ TIME: "TIME";
656
+ DATETIME: "DATETIME";
657
+ }>]>;
658
+ isNullable: z.ZodBoolean;
659
+ roles: z.ZodArray<z.ZodString>;
660
+ scopes: z.ZodArray<z.ZodString>;
661
+ comment: z.ZodOptional<z.ZodString>;
662
+ default: z.ZodOptional<z.ZodString>;
663
+ value: z.ZodOptional<z.ZodString>;
664
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
665
+ isUnique: z.ZodOptional<z.ZodBoolean>;
666
+ hasAutoIncrement: z.ZodOptional<z.ZodBoolean>;
667
+ length: z.ZodOptional<z.ZodNumber>;
668
+ }, z.core.$strict>>;
669
+ indexes: z.ZodArray<z.ZodObject<{
670
+ name: z.ZodString;
671
+ columns: z.ZodArray<z.ZodString>;
672
+ isUnique: z.ZodBoolean;
673
+ isPrimaryKey: z.ZodBoolean;
674
+ order: z.ZodEnum<{
675
+ ASC: "ASC";
676
+ DESC: "DESC";
677
+ }>;
678
+ }, z.core.$strict>>;
679
+ foreignKeys: z.ZodArray<z.ZodObject<{
680
+ name: z.ZodString;
681
+ column: z.ZodString;
682
+ refTable: z.ZodString;
683
+ refColumn: z.ZodString;
684
+ onDelete: z.ZodEnum<{
685
+ CASCADE: "CASCADE";
686
+ "SET NULL": "SET NULL";
687
+ RESTRICT: "RESTRICT";
688
+ "NO ACTION": "NO ACTION";
689
+ "SET DEFAULT": "SET DEFAULT";
690
+ }>;
691
+ onUpdate: z.ZodEnum<{
692
+ CASCADE: "CASCADE";
693
+ "SET NULL": "SET NULL";
694
+ RESTRICT: "RESTRICT";
695
+ "NO ACTION": "NO ACTION";
696
+ "SET DEFAULT": "SET DEFAULT";
697
+ }>;
698
+ }, z.core.$strict>>;
699
+ checkConstraints: z.ZodArray<z.ZodObject<{
700
+ name: z.ZodString;
701
+ check: z.ZodString;
702
+ }, z.core.$strict>>;
703
+ roles: z.ZodArray<z.ZodString>;
704
+ scopes: z.ZodArray<z.ZodString>;
705
+ notify: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>>;
706
+ }, z.core.$strict>>;
707
+ endpoints: z.ZodArray<z.ZodObject<{
708
+ name: z.ZodString;
709
+ description: z.ZodString;
710
+ baseUrl: z.ZodString;
711
+ routes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
712
+ method: z.ZodEnum<{
713
+ GET: "GET";
714
+ POST: "POST";
715
+ PUT: "PUT";
716
+ PATCH: "PATCH";
717
+ DELETE: "DELETE";
718
+ }>;
719
+ name: z.ZodString;
720
+ description: z.ZodString;
721
+ path: z.ZodString;
722
+ roles: z.ZodArray<z.ZodString>;
723
+ scopes: z.ZodArray<z.ZodString>;
724
+ type: z.ZodEnum<{
725
+ ONE: "ONE";
726
+ ARRAY: "ARRAY";
727
+ PAGED: "PAGED";
728
+ }>;
729
+ table: z.ZodString;
730
+ joins: z.ZodArray<z.ZodObject<{
731
+ table: z.ZodString;
732
+ localTable: z.ZodOptional<z.ZodString>;
733
+ localTableAlias: z.ZodOptional<z.ZodString>;
734
+ localColumnName: z.ZodOptional<z.ZodString>;
735
+ foreignColumnName: z.ZodOptional<z.ZodString>;
736
+ custom: z.ZodOptional<z.ZodString>;
737
+ type: z.ZodEnum<{
738
+ LEFT: "LEFT";
739
+ INNER: "INNER";
740
+ RIGHT: "RIGHT";
741
+ }>;
742
+ alias: z.ZodString;
743
+ }, z.core.$strict>>;
744
+ assignments: z.ZodArray<z.ZodObject<{
745
+ name: z.ZodString;
746
+ value: z.ZodString;
747
+ }, z.core.$strict>>;
748
+ where: z.ZodArray<z.ZodObject<{
749
+ tableName: z.ZodOptional<z.ZodString>;
750
+ columnName: z.ZodOptional<z.ZodString>;
751
+ operator: z.ZodOptional<z.ZodEnum<{
752
+ "=": "=";
753
+ "<": "<";
754
+ ">": ">";
755
+ "<=": "<=";
756
+ ">=": ">=";
757
+ "!=": "!=";
758
+ LIKE: "LIKE";
759
+ "NOT LIKE": "NOT LIKE";
760
+ IN: "IN";
761
+ "NOT IN": "NOT IN";
762
+ "STARTS WITH": "STARTS WITH";
763
+ "ENDS WITH": "ENDS WITH";
764
+ IS: "IS";
765
+ "IS NOT": "IS NOT";
1650
766
  }>>;
1651
- type: z$1.ZodOptional<z$1.ZodString>;
1652
- }, "strict", z$1.ZodTypeAny, {
1653
- name: string;
1654
- type?: string | undefined;
1655
- selector?: string | undefined;
1656
- subquery?: {
1657
- table: string;
1658
- joins: {
1659
- type: "LEFT" | "INNER" | "RIGHT";
1660
- table: string;
1661
- alias: string;
1662
- custom?: string | undefined;
1663
- localTable?: string | undefined;
1664
- localTableAlias?: string | undefined;
1665
- localColumnName?: string | undefined;
1666
- foreignColumnName?: string | undefined;
1667
- }[];
1668
- where: {
1669
- custom?: string | undefined;
1670
- value?: string | number | undefined;
1671
- tableName?: string | undefined;
1672
- columnName?: string | undefined;
1673
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1674
- conjunction?: "AND" | "OR" | undefined;
1675
- }[];
1676
- properties: any[];
1677
- groupBy?: {
1678
- tableName: string;
1679
- columnName: string;
1680
- } | undefined;
1681
- orderBy?: {
1682
- tableName: string;
1683
- columnName: string;
1684
- order: "ASC" | "DESC";
1685
- } | undefined;
1686
- } | undefined;
1687
- }, {
1688
- name: string;
1689
- type?: string | undefined;
1690
- selector?: string | undefined;
1691
- subquery?: {
1692
- table: string;
1693
- joins: {
1694
- type: "LEFT" | "INNER" | "RIGHT";
1695
- table: string;
1696
- alias: string;
1697
- custom?: string | undefined;
1698
- localTable?: string | undefined;
1699
- localTableAlias?: string | undefined;
1700
- localColumnName?: string | undefined;
1701
- foreignColumnName?: string | undefined;
1702
- }[];
1703
- where: {
1704
- custom?: string | undefined;
1705
- value?: string | number | undefined;
1706
- tableName?: string | undefined;
1707
- columnName?: string | undefined;
1708
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1709
- conjunction?: "AND" | "OR" | undefined;
1710
- }[];
1711
- properties: any[];
1712
- groupBy?: {
1713
- tableName: string;
1714
- columnName: string;
1715
- } | undefined;
1716
- orderBy?: {
1717
- tableName: string;
1718
- columnName: string;
1719
- order: "ASC" | "DESC";
1720
- } | undefined;
1721
- } | undefined;
1722
- }>, "many">;
1723
- groupBy: z$1.ZodOptional<z$1.ZodObject<{
1724
- columnName: z$1.ZodString;
1725
- tableName: z$1.ZodString;
1726
- }, "strict", z$1.ZodTypeAny, {
1727
- tableName: string;
1728
- columnName: string;
1729
- }, {
1730
- tableName: string;
1731
- columnName: string;
1732
- }>>;
1733
- orderBy: z$1.ZodOptional<z$1.ZodObject<{
1734
- columnName: z$1.ZodString;
1735
- order: z$1.ZodEnum<["ASC", "DESC"]>;
1736
- tableName: z$1.ZodString;
1737
- }, "strict", z$1.ZodTypeAny, {
1738
- tableName: string;
1739
- columnName: string;
1740
- order: "ASC" | "DESC";
1741
- }, {
1742
- tableName: string;
1743
- columnName: string;
1744
- order: "ASC" | "DESC";
767
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
768
+ custom: z.ZodOptional<z.ZodString>;
769
+ conjunction: z.ZodOptional<z.ZodEnum<{
770
+ AND: "AND";
771
+ OR: "OR";
772
+ }>>;
773
+ }, z.core.$strict>>;
774
+ request: z.ZodArray<z.ZodObject<{
775
+ name: z.ZodString;
776
+ required: z.ZodBoolean;
777
+ isNullable: z.ZodOptional<z.ZodBoolean>;
778
+ validator: z.ZodArray<z.ZodObject<{
779
+ type: z.ZodEnum<{
780
+ TYPE_CHECK: "TYPE_CHECK";
781
+ MIN: "MIN";
782
+ MAX: "MAX";
783
+ ONE_OF: "ONE_OF";
784
+ }>;
785
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
786
+ }, z.core.$strict>>;
787
+ }, z.core.$strict>>;
788
+ response: z.ZodArray<z.ZodObject<{
789
+ name: z.ZodString;
790
+ selector: z.ZodOptional<z.ZodString>;
791
+ subquery: z.ZodOptional<z.ZodObject<{
792
+ table: z.ZodString;
793
+ joins: z.ZodArray<z.ZodObject<{
794
+ table: z.ZodString;
795
+ localTable: z.ZodOptional<z.ZodString>;
796
+ localTableAlias: z.ZodOptional<z.ZodString>;
797
+ localColumnName: z.ZodOptional<z.ZodString>;
798
+ foreignColumnName: z.ZodOptional<z.ZodString>;
799
+ custom: z.ZodOptional<z.ZodString>;
800
+ type: z.ZodEnum<{
801
+ LEFT: "LEFT";
802
+ INNER: "INNER";
803
+ RIGHT: "RIGHT";
804
+ }>;
805
+ alias: z.ZodString;
806
+ }, z.core.$strict>>;
807
+ where: z.ZodArray<z.ZodObject<{
808
+ tableName: z.ZodOptional<z.ZodString>;
809
+ columnName: z.ZodOptional<z.ZodString>;
810
+ operator: z.ZodOptional<z.ZodEnum<{
811
+ "=": "=";
812
+ "<": "<";
813
+ ">": ">";
814
+ "<=": "<=";
815
+ ">=": ">=";
816
+ "!=": "!=";
817
+ LIKE: "LIKE";
818
+ "NOT LIKE": "NOT LIKE";
819
+ IN: "IN";
820
+ "NOT IN": "NOT IN";
821
+ "STARTS WITH": "STARTS WITH";
822
+ "ENDS WITH": "ENDS WITH";
823
+ IS: "IS";
824
+ "IS NOT": "IS NOT";
825
+ }>>;
826
+ value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
827
+ custom: z.ZodOptional<z.ZodString>;
828
+ conjunction: z.ZodOptional<z.ZodEnum<{
829
+ AND: "AND";
830
+ OR: "OR";
831
+ }>>;
832
+ }, z.core.$strict>>;
833
+ properties: z.ZodArray<z.ZodObject<any, z.core.$strict>>;
834
+ groupBy: z.ZodOptional<z.ZodObject<{
835
+ columnName: z.ZodString;
836
+ tableName: z.ZodString;
837
+ }, z.core.$strict>>;
838
+ orderBy: z.ZodOptional<z.ZodObject<{
839
+ columnName: z.ZodString;
840
+ order: z.ZodEnum<{
841
+ ASC: "ASC";
842
+ DESC: "DESC";
843
+ }>;
844
+ tableName: z.ZodString;
845
+ }, z.core.$strict>>;
846
+ }, z.core.$strip>>;
847
+ type: z.ZodOptional<z.ZodString>;
848
+ }, z.core.$strict>>;
849
+ groupBy: z.ZodOptional<z.ZodObject<{
850
+ columnName: z.ZodString;
851
+ tableName: z.ZodString;
852
+ }, z.core.$strict>>;
853
+ orderBy: z.ZodOptional<z.ZodObject<{
854
+ columnName: z.ZodString;
855
+ order: z.ZodEnum<{
856
+ ASC: "ASC";
857
+ DESC: "DESC";
858
+ }>;
859
+ tableName: z.ZodString;
860
+ }, z.core.$strict>>;
861
+ }, z.core.$strict>, z.ZodObject<{
862
+ method: z.ZodEnum<{
863
+ GET: "GET";
864
+ POST: "POST";
865
+ PUT: "PUT";
866
+ PATCH: "PATCH";
867
+ DELETE: "DELETE";
868
+ }>;
869
+ name: z.ZodString;
870
+ description: z.ZodString;
871
+ path: z.ZodString;
872
+ roles: z.ZodArray<z.ZodString>;
873
+ scopes: z.ZodArray<z.ZodString>;
874
+ type: z.ZodEnum<{
875
+ CUSTOM_ONE: "CUSTOM_ONE";
876
+ CUSTOM_ARRAY: "CUSTOM_ARRAY";
877
+ CUSTOM_PAGED: "CUSTOM_PAGED";
878
+ }>;
879
+ responseType: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
880
+ string: "string";
881
+ number: "number";
882
+ boolean: "boolean";
883
+ }>]>;
884
+ requestType: z.ZodOptional<z.ZodString>;
885
+ request: z.ZodOptional<z.ZodArray<z.ZodObject<{
886
+ name: z.ZodString;
887
+ required: z.ZodBoolean;
888
+ isNullable: z.ZodOptional<z.ZodBoolean>;
889
+ validator: z.ZodArray<z.ZodObject<{
890
+ type: z.ZodEnum<{
891
+ TYPE_CHECK: "TYPE_CHECK";
892
+ MIN: "MIN";
893
+ MAX: "MAX";
894
+ ONE_OF: "ONE_OF";
895
+ }>;
896
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
897
+ }, z.core.$strict>>;
898
+ }, z.core.$strict>>>;
899
+ table: z.ZodUndefined;
900
+ joins: z.ZodUndefined;
901
+ assignments: z.ZodUndefined;
902
+ fileUploadType: z.ZodOptional<z.ZodEnum<{
903
+ SINGLE: "SINGLE";
904
+ MULTIPLE: "MULTIPLE";
1745
905
  }>>;
1746
- }, "strict", z$1.ZodTypeAny, {
1747
- scopes: string[];
1748
- path: string;
1749
- type: "ONE" | "ARRAY" | "PAGED";
1750
- name: string;
1751
- table: string;
1752
- joins: {
1753
- type: "LEFT" | "INNER" | "RIGHT";
1754
- table: string;
1755
- alias: string;
1756
- custom?: string | undefined;
1757
- localTable?: string | undefined;
1758
- localTableAlias?: string | undefined;
1759
- localColumnName?: string | undefined;
1760
- foreignColumnName?: string | undefined;
1761
- }[];
1762
- where: {
1763
- custom?: string | undefined;
1764
- value?: string | number | undefined;
1765
- tableName?: string | undefined;
1766
- columnName?: string | undefined;
1767
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1768
- conjunction?: "AND" | "OR" | undefined;
1769
- }[];
1770
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1771
- description: string;
1772
- roles: string[];
1773
- assignments: {
1774
- value: string;
1775
- name: string;
1776
- }[];
1777
- request: {
1778
- name: string;
1779
- required: boolean;
1780
- validator: {
1781
- value: string | number | string[] | number[];
1782
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1783
- }[];
1784
- isNullable?: boolean | undefined;
1785
- }[];
1786
- response: {
1787
- name: string;
1788
- type?: string | undefined;
1789
- selector?: string | undefined;
1790
- subquery?: {
1791
- table: string;
1792
- joins: {
1793
- type: "LEFT" | "INNER" | "RIGHT";
1794
- table: string;
1795
- alias: string;
1796
- custom?: string | undefined;
1797
- localTable?: string | undefined;
1798
- localTableAlias?: string | undefined;
1799
- localColumnName?: string | undefined;
1800
- foreignColumnName?: string | undefined;
1801
- }[];
1802
- where: {
1803
- custom?: string | undefined;
1804
- value?: string | number | undefined;
1805
- tableName?: string | undefined;
1806
- columnName?: string | undefined;
1807
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1808
- conjunction?: "AND" | "OR" | undefined;
1809
- }[];
1810
- properties: any[];
1811
- groupBy?: {
1812
- tableName: string;
1813
- columnName: string;
1814
- } | undefined;
1815
- orderBy?: {
1816
- tableName: string;
1817
- columnName: string;
1818
- order: "ASC" | "DESC";
1819
- } | undefined;
1820
- } | undefined;
1821
- }[];
1822
- groupBy?: {
1823
- tableName: string;
1824
- columnName: string;
1825
- } | undefined;
1826
- orderBy?: {
1827
- tableName: string;
1828
- columnName: string;
1829
- order: "ASC" | "DESC";
1830
- } | undefined;
1831
- }, {
1832
- scopes: string[];
1833
- path: string;
1834
- type: "ONE" | "ARRAY" | "PAGED";
1835
- name: string;
1836
- table: string;
1837
- joins: {
1838
- type: "LEFT" | "INNER" | "RIGHT";
1839
- table: string;
1840
- alias: string;
1841
- custom?: string | undefined;
1842
- localTable?: string | undefined;
1843
- localTableAlias?: string | undefined;
1844
- localColumnName?: string | undefined;
1845
- foreignColumnName?: string | undefined;
1846
- }[];
1847
- where: {
1848
- custom?: string | undefined;
1849
- value?: string | number | undefined;
1850
- tableName?: string | undefined;
1851
- columnName?: string | undefined;
1852
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1853
- conjunction?: "AND" | "OR" | undefined;
1854
- }[];
1855
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1856
- description: string;
1857
- roles: string[];
1858
- assignments: {
1859
- value: string;
1860
- name: string;
1861
- }[];
1862
- request: {
1863
- name: string;
1864
- required: boolean;
1865
- validator: {
1866
- value: string | number | string[] | number[];
1867
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1868
- }[];
1869
- isNullable?: boolean | undefined;
1870
- }[];
1871
- response: {
1872
- name: string;
1873
- type?: string | undefined;
1874
- selector?: string | undefined;
1875
- subquery?: {
1876
- table: string;
1877
- joins: {
1878
- type: "LEFT" | "INNER" | "RIGHT";
1879
- table: string;
1880
- alias: string;
1881
- custom?: string | undefined;
1882
- localTable?: string | undefined;
1883
- localTableAlias?: string | undefined;
1884
- localColumnName?: string | undefined;
1885
- foreignColumnName?: string | undefined;
1886
- }[];
1887
- where: {
1888
- custom?: string | undefined;
1889
- value?: string | number | undefined;
1890
- tableName?: string | undefined;
1891
- columnName?: string | undefined;
1892
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
1893
- conjunction?: "AND" | "OR" | undefined;
1894
- }[];
1895
- properties: any[];
1896
- groupBy?: {
1897
- tableName: string;
1898
- columnName: string;
1899
- } | undefined;
1900
- orderBy?: {
1901
- tableName: string;
1902
- columnName: string;
1903
- order: "ASC" | "DESC";
1904
- } | undefined;
1905
- } | undefined;
1906
- }[];
1907
- groupBy?: {
1908
- tableName: string;
1909
- columnName: string;
1910
- } | undefined;
1911
- orderBy?: {
1912
- tableName: string;
1913
- columnName: string;
1914
- order: "ASC" | "DESC";
1915
- } | undefined;
1916
- }>, z$1.ZodObject<{
1917
- method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
1918
- name: z$1.ZodString;
1919
- description: z$1.ZodString;
1920
- path: z$1.ZodString;
1921
- roles: z$1.ZodArray<z$1.ZodString, "many">;
1922
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
1923
- } & {
1924
- type: z$1.ZodEnum<["CUSTOM_ONE", "CUSTOM_ARRAY", "CUSTOM_PAGED"]>;
1925
- responseType: z$1.ZodUnion<[z$1.ZodString, z$1.ZodEnum<["string", "number", "boolean"]>]>;
1926
- requestType: z$1.ZodOptional<z$1.ZodString>;
1927
- request: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1928
- name: z$1.ZodString;
1929
- required: z$1.ZodBoolean;
1930
- isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
1931
- validator: z$1.ZodArray<z$1.ZodObject<{
1932
- type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
1933
- value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
1934
- }, "strict", z$1.ZodTypeAny, {
1935
- value: string | number | string[] | number[];
1936
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1937
- }, {
1938
- value: string | number | string[] | number[];
1939
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1940
- }>, "many">;
1941
- }, "strict", z$1.ZodTypeAny, {
1942
- name: string;
1943
- required: boolean;
1944
- validator: {
1945
- value: string | number | string[] | number[];
1946
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1947
- }[];
1948
- isNullable?: boolean | undefined;
1949
- }, {
1950
- name: string;
1951
- required: boolean;
1952
- validator: {
1953
- value: string | number | string[] | number[];
1954
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1955
- }[];
1956
- isNullable?: boolean | undefined;
1957
- }>, "many">>;
1958
- table: z$1.ZodUndefined;
1959
- joins: z$1.ZodUndefined;
1960
- assignments: z$1.ZodUndefined;
1961
- fileUploadType: z$1.ZodOptional<z$1.ZodEnum<["SINGLE", "MULTIPLE"]>>;
1962
- }, "strict", z$1.ZodTypeAny, {
1963
- scopes: string[];
1964
- path: string;
1965
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
1966
- name: string;
1967
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1968
- description: string;
1969
- roles: string[];
1970
- responseType: string;
1971
- table?: undefined;
1972
- joins?: undefined;
1973
- assignments?: undefined;
1974
- request?: {
1975
- name: string;
1976
- required: boolean;
1977
- validator: {
1978
- value: string | number | string[] | number[];
1979
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
1980
- }[];
1981
- isNullable?: boolean | undefined;
1982
- }[] | undefined;
1983
- requestType?: string | undefined;
1984
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
1985
- }, {
1986
- scopes: string[];
1987
- path: string;
1988
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
1989
- name: string;
1990
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1991
- description: string;
1992
- roles: string[];
1993
- responseType: string;
1994
- table?: undefined;
1995
- joins?: undefined;
1996
- assignments?: undefined;
1997
- request?: {
1998
- name: string;
1999
- required: boolean;
2000
- validator: {
2001
- value: string | number | string[] | number[];
2002
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2003
- }[];
2004
- isNullable?: boolean | undefined;
2005
- }[] | undefined;
2006
- requestType?: string | undefined;
2007
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
2008
- }>]>, "many">;
2009
- }, "strict", z$1.ZodTypeAny, {
2010
- name: string;
2011
- description: string;
2012
- baseUrl: string;
2013
- routes: ({
2014
- scopes: string[];
2015
- path: string;
2016
- type: "ONE" | "ARRAY" | "PAGED";
2017
- name: string;
2018
- table: string;
2019
- joins: {
2020
- type: "LEFT" | "INNER" | "RIGHT";
2021
- table: string;
2022
- alias: string;
2023
- custom?: string | undefined;
2024
- localTable?: string | undefined;
2025
- localTableAlias?: string | undefined;
2026
- localColumnName?: string | undefined;
2027
- foreignColumnName?: string | undefined;
2028
- }[];
2029
- where: {
2030
- custom?: string | undefined;
2031
- value?: string | number | undefined;
2032
- tableName?: string | undefined;
2033
- columnName?: string | undefined;
2034
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2035
- conjunction?: "AND" | "OR" | undefined;
2036
- }[];
2037
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2038
- description: string;
2039
- roles: string[];
2040
- assignments: {
2041
- value: string;
2042
- name: string;
2043
- }[];
2044
- request: {
2045
- name: string;
2046
- required: boolean;
2047
- validator: {
2048
- value: string | number | string[] | number[];
2049
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2050
- }[];
2051
- isNullable?: boolean | undefined;
2052
- }[];
2053
- response: {
2054
- name: string;
2055
- type?: string | undefined;
2056
- selector?: string | undefined;
2057
- subquery?: {
2058
- table: string;
2059
- joins: {
2060
- type: "LEFT" | "INNER" | "RIGHT";
2061
- table: string;
2062
- alias: string;
2063
- custom?: string | undefined;
2064
- localTable?: string | undefined;
2065
- localTableAlias?: string | undefined;
2066
- localColumnName?: string | undefined;
2067
- foreignColumnName?: string | undefined;
2068
- }[];
2069
- where: {
2070
- custom?: string | undefined;
2071
- value?: string | number | undefined;
2072
- tableName?: string | undefined;
2073
- columnName?: string | undefined;
2074
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2075
- conjunction?: "AND" | "OR" | undefined;
2076
- }[];
2077
- properties: any[];
2078
- groupBy?: {
2079
- tableName: string;
2080
- columnName: string;
2081
- } | undefined;
2082
- orderBy?: {
2083
- tableName: string;
2084
- columnName: string;
2085
- order: "ASC" | "DESC";
2086
- } | undefined;
2087
- } | undefined;
2088
- }[];
2089
- groupBy?: {
2090
- tableName: string;
2091
- columnName: string;
2092
- } | undefined;
2093
- orderBy?: {
2094
- tableName: string;
2095
- columnName: string;
2096
- order: "ASC" | "DESC";
2097
- } | undefined;
2098
- } | {
2099
- scopes: string[];
2100
- path: string;
2101
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
2102
- name: string;
2103
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2104
- description: string;
2105
- roles: string[];
2106
- responseType: string;
2107
- table?: undefined;
2108
- joins?: undefined;
2109
- assignments?: undefined;
2110
- request?: {
2111
- name: string;
2112
- required: boolean;
2113
- validator: {
2114
- value: string | number | string[] | number[];
2115
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2116
- }[];
2117
- isNullable?: boolean | undefined;
2118
- }[] | undefined;
2119
- requestType?: string | undefined;
2120
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
2121
- })[];
2122
- }, {
2123
- name: string;
2124
- description: string;
2125
- baseUrl: string;
2126
- routes: ({
2127
- scopes: string[];
2128
- path: string;
2129
- type: "ONE" | "ARRAY" | "PAGED";
2130
- name: string;
2131
- table: string;
2132
- joins: {
2133
- type: "LEFT" | "INNER" | "RIGHT";
2134
- table: string;
2135
- alias: string;
2136
- custom?: string | undefined;
2137
- localTable?: string | undefined;
2138
- localTableAlias?: string | undefined;
2139
- localColumnName?: string | undefined;
2140
- foreignColumnName?: string | undefined;
2141
- }[];
2142
- where: {
2143
- custom?: string | undefined;
2144
- value?: string | number | undefined;
2145
- tableName?: string | undefined;
2146
- columnName?: string | undefined;
2147
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2148
- conjunction?: "AND" | "OR" | undefined;
2149
- }[];
2150
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2151
- description: string;
2152
- roles: string[];
2153
- assignments: {
2154
- value: string;
2155
- name: string;
2156
- }[];
2157
- request: {
2158
- name: string;
2159
- required: boolean;
2160
- validator: {
2161
- value: string | number | string[] | number[];
2162
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2163
- }[];
2164
- isNullable?: boolean | undefined;
2165
- }[];
2166
- response: {
2167
- name: string;
2168
- type?: string | undefined;
2169
- selector?: string | undefined;
2170
- subquery?: {
2171
- table: string;
2172
- joins: {
2173
- type: "LEFT" | "INNER" | "RIGHT";
2174
- table: string;
2175
- alias: string;
2176
- custom?: string | undefined;
2177
- localTable?: string | undefined;
2178
- localTableAlias?: string | undefined;
2179
- localColumnName?: string | undefined;
2180
- foreignColumnName?: string | undefined;
2181
- }[];
2182
- where: {
2183
- custom?: string | undefined;
2184
- value?: string | number | undefined;
2185
- tableName?: string | undefined;
2186
- columnName?: string | undefined;
2187
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2188
- conjunction?: "AND" | "OR" | undefined;
2189
- }[];
2190
- properties: any[];
2191
- groupBy?: {
2192
- tableName: string;
2193
- columnName: string;
2194
- } | undefined;
2195
- orderBy?: {
2196
- tableName: string;
2197
- columnName: string;
2198
- order: "ASC" | "DESC";
2199
- } | undefined;
2200
- } | undefined;
2201
- }[];
2202
- groupBy?: {
2203
- tableName: string;
2204
- columnName: string;
2205
- } | undefined;
2206
- orderBy?: {
2207
- tableName: string;
2208
- columnName: string;
2209
- order: "ASC" | "DESC";
2210
- } | undefined;
2211
- } | {
2212
- scopes: string[];
2213
- path: string;
2214
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
2215
- name: string;
2216
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2217
- description: string;
2218
- roles: string[];
2219
- responseType: string;
2220
- table?: undefined;
2221
- joins?: undefined;
2222
- assignments?: undefined;
2223
- request?: {
2224
- name: string;
2225
- required: boolean;
2226
- validator: {
2227
- value: string | number | string[] | number[];
2228
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2229
- }[];
2230
- isNullable?: boolean | undefined;
2231
- }[] | undefined;
2232
- requestType?: string | undefined;
2233
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
2234
- })[];
2235
- }>, "many">;
2236
- globalParams: z$1.ZodArray<z$1.ZodString, "many">;
2237
- roles: z$1.ZodArray<z$1.ZodString, "many">;
2238
- scopes: z$1.ZodArray<z$1.ZodString, "many">;
2239
- customTypes: z$1.ZodArray<z$1.ZodString, "many">;
2240
- }, "strict", z$1.ZodTypeAny, {
2241
- scopes: string[];
2242
- roles: string[];
2243
- database: {
2244
- scopes: string[];
2245
- name: string;
2246
- roles: string[];
2247
- columns: {
2248
- scopes: string[];
2249
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
2250
- name: string;
2251
- isNullable: boolean;
2252
- roles: string[];
2253
- default?: string | undefined;
2254
- value?: string | undefined;
2255
- length?: number | undefined;
2256
- comment?: string | undefined;
2257
- isPrimary?: boolean | undefined;
2258
- isUnique?: boolean | undefined;
2259
- hasAutoIncrement?: boolean | undefined;
2260
- }[];
2261
- indexes: {
2262
- order: "ASC" | "DESC";
2263
- name: string;
2264
- isUnique: boolean;
2265
- columns: string[];
2266
- isPrimaryKey: boolean;
2267
- }[];
2268
- foreignKeys: {
2269
- name: string;
2270
- column: string;
2271
- refTable: string;
2272
- refColumn: string;
2273
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
2274
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
2275
- }[];
2276
- checkConstraints: {
2277
- name: string;
2278
- check: string;
2279
- }[];
2280
- notify?: string[] | "ALL" | undefined;
2281
- }[];
2282
- endpoints: {
2283
- name: string;
2284
- description: string;
2285
- baseUrl: string;
2286
- routes: ({
2287
- scopes: string[];
2288
- path: string;
2289
- type: "ONE" | "ARRAY" | "PAGED";
2290
- name: string;
2291
- table: string;
2292
- joins: {
2293
- type: "LEFT" | "INNER" | "RIGHT";
2294
- table: string;
2295
- alias: string;
2296
- custom?: string | undefined;
2297
- localTable?: string | undefined;
2298
- localTableAlias?: string | undefined;
2299
- localColumnName?: string | undefined;
2300
- foreignColumnName?: string | undefined;
2301
- }[];
2302
- where: {
2303
- custom?: string | undefined;
2304
- value?: string | number | undefined;
2305
- tableName?: string | undefined;
2306
- columnName?: string | undefined;
2307
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2308
- conjunction?: "AND" | "OR" | undefined;
2309
- }[];
2310
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2311
- description: string;
2312
- roles: string[];
2313
- assignments: {
2314
- value: string;
2315
- name: string;
2316
- }[];
2317
- request: {
2318
- name: string;
2319
- required: boolean;
2320
- validator: {
2321
- value: string | number | string[] | number[];
2322
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2323
- }[];
2324
- isNullable?: boolean | undefined;
2325
- }[];
2326
- response: {
2327
- name: string;
2328
- type?: string | undefined;
2329
- selector?: string | undefined;
2330
- subquery?: {
2331
- table: string;
2332
- joins: {
2333
- type: "LEFT" | "INNER" | "RIGHT";
2334
- table: string;
2335
- alias: string;
2336
- custom?: string | undefined;
2337
- localTable?: string | undefined;
2338
- localTableAlias?: string | undefined;
2339
- localColumnName?: string | undefined;
2340
- foreignColumnName?: string | undefined;
2341
- }[];
2342
- where: {
2343
- custom?: string | undefined;
2344
- value?: string | number | undefined;
2345
- tableName?: string | undefined;
2346
- columnName?: string | undefined;
2347
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2348
- conjunction?: "AND" | "OR" | undefined;
2349
- }[];
2350
- properties: any[];
2351
- groupBy?: {
2352
- tableName: string;
2353
- columnName: string;
2354
- } | undefined;
2355
- orderBy?: {
2356
- tableName: string;
2357
- columnName: string;
2358
- order: "ASC" | "DESC";
2359
- } | undefined;
2360
- } | undefined;
2361
- }[];
2362
- groupBy?: {
2363
- tableName: string;
2364
- columnName: string;
2365
- } | undefined;
2366
- orderBy?: {
2367
- tableName: string;
2368
- columnName: string;
2369
- order: "ASC" | "DESC";
2370
- } | undefined;
2371
- } | {
2372
- scopes: string[];
2373
- path: string;
2374
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
2375
- name: string;
2376
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2377
- description: string;
2378
- roles: string[];
2379
- responseType: string;
2380
- table?: undefined;
2381
- joins?: undefined;
2382
- assignments?: undefined;
2383
- request?: {
2384
- name: string;
2385
- required: boolean;
2386
- validator: {
2387
- value: string | number | string[] | number[];
2388
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2389
- }[];
2390
- isNullable?: boolean | undefined;
2391
- }[] | undefined;
2392
- requestType?: string | undefined;
2393
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
2394
- })[];
2395
- }[];
2396
- globalParams: string[];
2397
- customTypes: string[];
2398
- }, {
2399
- scopes: string[];
2400
- roles: string[];
2401
- database: {
2402
- scopes: string[];
2403
- name: string;
2404
- roles: string[];
2405
- columns: {
2406
- scopes: string[];
2407
- type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
2408
- name: string;
2409
- isNullable: boolean;
2410
- roles: string[];
2411
- default?: string | undefined;
2412
- value?: string | undefined;
2413
- length?: number | undefined;
2414
- comment?: string | undefined;
2415
- isPrimary?: boolean | undefined;
2416
- isUnique?: boolean | undefined;
2417
- hasAutoIncrement?: boolean | undefined;
2418
- }[];
2419
- indexes: {
2420
- order: "ASC" | "DESC";
2421
- name: string;
2422
- isUnique: boolean;
2423
- columns: string[];
2424
- isPrimaryKey: boolean;
2425
- }[];
2426
- foreignKeys: {
2427
- name: string;
2428
- column: string;
2429
- refTable: string;
2430
- refColumn: string;
2431
- onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
2432
- onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
2433
- }[];
2434
- checkConstraints: {
2435
- name: string;
2436
- check: string;
2437
- }[];
2438
- notify?: string[] | "ALL" | undefined;
2439
- }[];
2440
- endpoints: {
2441
- name: string;
2442
- description: string;
2443
- baseUrl: string;
2444
- routes: ({
2445
- scopes: string[];
2446
- path: string;
2447
- type: "ONE" | "ARRAY" | "PAGED";
2448
- name: string;
2449
- table: string;
2450
- joins: {
2451
- type: "LEFT" | "INNER" | "RIGHT";
2452
- table: string;
2453
- alias: string;
2454
- custom?: string | undefined;
2455
- localTable?: string | undefined;
2456
- localTableAlias?: string | undefined;
2457
- localColumnName?: string | undefined;
2458
- foreignColumnName?: string | undefined;
2459
- }[];
2460
- where: {
2461
- custom?: string | undefined;
2462
- value?: string | number | undefined;
2463
- tableName?: string | undefined;
2464
- columnName?: string | undefined;
2465
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2466
- conjunction?: "AND" | "OR" | undefined;
2467
- }[];
2468
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2469
- description: string;
2470
- roles: string[];
2471
- assignments: {
2472
- value: string;
2473
- name: string;
2474
- }[];
2475
- request: {
2476
- name: string;
2477
- required: boolean;
2478
- validator: {
2479
- value: string | number | string[] | number[];
2480
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2481
- }[];
2482
- isNullable?: boolean | undefined;
2483
- }[];
2484
- response: {
2485
- name: string;
2486
- type?: string | undefined;
2487
- selector?: string | undefined;
2488
- subquery?: {
2489
- table: string;
2490
- joins: {
2491
- type: "LEFT" | "INNER" | "RIGHT";
2492
- table: string;
2493
- alias: string;
2494
- custom?: string | undefined;
2495
- localTable?: string | undefined;
2496
- localTableAlias?: string | undefined;
2497
- localColumnName?: string | undefined;
2498
- foreignColumnName?: string | undefined;
2499
- }[];
2500
- where: {
2501
- custom?: string | undefined;
2502
- value?: string | number | undefined;
2503
- tableName?: string | undefined;
2504
- columnName?: string | undefined;
2505
- operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "NOT LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
2506
- conjunction?: "AND" | "OR" | undefined;
2507
- }[];
2508
- properties: any[];
2509
- groupBy?: {
2510
- tableName: string;
2511
- columnName: string;
2512
- } | undefined;
2513
- orderBy?: {
2514
- tableName: string;
2515
- columnName: string;
2516
- order: "ASC" | "DESC";
2517
- } | undefined;
2518
- } | undefined;
2519
- }[];
2520
- groupBy?: {
2521
- tableName: string;
2522
- columnName: string;
2523
- } | undefined;
2524
- orderBy?: {
2525
- tableName: string;
2526
- columnName: string;
2527
- order: "ASC" | "DESC";
2528
- } | undefined;
2529
- } | {
2530
- scopes: string[];
2531
- path: string;
2532
- type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
2533
- name: string;
2534
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2535
- description: string;
2536
- roles: string[];
2537
- responseType: string;
2538
- table?: undefined;
2539
- joins?: undefined;
2540
- assignments?: undefined;
2541
- request?: {
2542
- name: string;
2543
- required: boolean;
2544
- validator: {
2545
- value: string | number | string[] | number[];
2546
- type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
2547
- }[];
2548
- isNullable?: boolean | undefined;
2549
- }[] | undefined;
2550
- requestType?: string | undefined;
2551
- fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
2552
- })[];
2553
- }[];
2554
- globalParams: string[];
2555
- customTypes: string[];
2556
- }>;
2557
- type ResturaSchema = z$1.infer<typeof resturaSchema>;
906
+ }, z.core.$strict>]>>;
907
+ }, z.core.$strict>>;
908
+ globalParams: z.ZodArray<z.ZodString>;
909
+ roles: z.ZodArray<z.ZodString>;
910
+ scopes: z.ZodArray<z.ZodString>;
911
+ customTypes: z.ZodArray<z.ZodString>;
912
+ }, z.core.$strict>;
913
+ type ResturaSchema = z.infer<typeof resturaSchema>;
2558
914
  declare function isSchemaValid(schemaToCheck: unknown): Promise<boolean>;
2559
915
 
2560
916
  declare function apiGenerator(schema: ResturaSchema): Promise<string>;