@vestcards/server-types 0.2.0 → 0.4.0
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/apps/server/src/app.d.ts +79 -231
- package/dist/apps/server/src/config/env.d.ts +2 -0
- package/dist/apps/server/src/db/schema/deck.d.ts +130 -0
- package/dist/apps/server/src/db/schema/entity.d.ts +1 -2
- package/dist/apps/server/src/middleware/errorHandler.d.ts +10 -16
- package/dist/apps/server/src/modules/auth/index.d.ts +2 -2
- package/dist/apps/server/src/modules/auth/lib.d.ts +4 -0
- package/dist/apps/server/src/modules/card/card.test.d.ts +1 -0
- package/dist/apps/server/src/modules/card/index.d.ts +398 -0
- package/dist/apps/server/src/modules/card/model.d.ts +8 -0
- package/dist/apps/server/src/modules/card/service.d.ts +4 -0
- package/dist/apps/server/src/modules/deck/index.d.ts +10 -53
- package/dist/apps/server/src/modules/deck/model.d.ts +1 -0
- package/dist/apps/server/src/modules/lead/index.d.ts +9 -37
- package/dist/apps/server/src/modules/library/index.d.ts +15 -103
- package/dist/apps/server/src/modules/study/index.d.ts +15 -67
- package/dist/apps/server/src/modules/study/service.d.ts +7 -0
- package/dist/apps/server/src/modules/study/utils.d.ts +4 -0
- package/dist/apps/server/src/modules/topic/index.d.ts +9 -37
- package/dist/apps/server/src/modules/user/index.d.ts +4 -17
- package/dist/apps/server/src/tests/helpers/fixtures.d.ts +5 -1
- package/dist/apps/server/src/types/study.d.ts +1 -1
- package/dist/packages/shared/src/types/deck.d.ts +4 -1
- package/dist/packages/shared/src/types/study.d.ts +1 -0
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ declare const app: Elysia<"", {
|
|
|
65
65
|
route: string;
|
|
66
66
|
request: Request;
|
|
67
67
|
store: {};
|
|
68
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 |
|
|
68
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
69
69
|
readonly 100: "Continue";
|
|
70
70
|
readonly 101: "Switching Protocols";
|
|
71
71
|
readonly 102: "Processing";
|
|
@@ -237,7 +237,7 @@ declare const app: Elysia<"", {
|
|
|
237
237
|
route: string;
|
|
238
238
|
request: Request;
|
|
239
239
|
store: {};
|
|
240
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 |
|
|
240
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
241
241
|
readonly 100: "Continue";
|
|
242
242
|
readonly 101: "Switching Protocols";
|
|
243
243
|
readonly 102: "Processing";
|
|
@@ -374,6 +374,41 @@ declare const app: Elysia<"", {
|
|
|
374
374
|
macroFn: {};
|
|
375
375
|
parser: {};
|
|
376
376
|
}, {
|
|
377
|
+
v1: {
|
|
378
|
+
card: {};
|
|
379
|
+
};
|
|
380
|
+
} & {
|
|
381
|
+
v1: {
|
|
382
|
+
card: {
|
|
383
|
+
report: {
|
|
384
|
+
post: {
|
|
385
|
+
body: {
|
|
386
|
+
type: string;
|
|
387
|
+
cardId: string;
|
|
388
|
+
content: string;
|
|
389
|
+
};
|
|
390
|
+
params: {};
|
|
391
|
+
query: {};
|
|
392
|
+
headers: {};
|
|
393
|
+
response: {
|
|
394
|
+
200: {
|
|
395
|
+
success: boolean;
|
|
396
|
+
};
|
|
397
|
+
422: {
|
|
398
|
+
type: "validation";
|
|
399
|
+
on: string;
|
|
400
|
+
summary?: string;
|
|
401
|
+
message?: string;
|
|
402
|
+
found?: unknown;
|
|
403
|
+
property?: string;
|
|
404
|
+
expected?: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
} & {
|
|
377
412
|
v1: {
|
|
378
413
|
decks: {};
|
|
379
414
|
};
|
|
@@ -395,6 +430,11 @@ declare const app: Elysia<"", {
|
|
|
395
430
|
};
|
|
396
431
|
headers: unknown;
|
|
397
432
|
response: {
|
|
433
|
+
200: {
|
|
434
|
+
data: import("@vestcards/shared").IDeck[];
|
|
435
|
+
pageCount: number;
|
|
436
|
+
total: number;
|
|
437
|
+
};
|
|
398
438
|
422: {
|
|
399
439
|
type: "validation";
|
|
400
440
|
on: string;
|
|
@@ -404,26 +444,6 @@ declare const app: Elysia<"", {
|
|
|
404
444
|
property?: string;
|
|
405
445
|
expected?: string;
|
|
406
446
|
};
|
|
407
|
-
200: {
|
|
408
|
-
error: string;
|
|
409
|
-
message: string;
|
|
410
|
-
path: any;
|
|
411
|
-
details?: undefined;
|
|
412
|
-
} | {
|
|
413
|
-
error: string;
|
|
414
|
-
message: string;
|
|
415
|
-
details: any;
|
|
416
|
-
path?: undefined;
|
|
417
|
-
} | {
|
|
418
|
-
error: string;
|
|
419
|
-
message: string;
|
|
420
|
-
path?: undefined;
|
|
421
|
-
details?: undefined;
|
|
422
|
-
} | {
|
|
423
|
-
data: import("@vestcards/shared").IDeck[];
|
|
424
|
-
pageCount: number;
|
|
425
|
-
total: number;
|
|
426
|
-
};
|
|
427
447
|
};
|
|
428
448
|
};
|
|
429
449
|
};
|
|
@@ -440,6 +460,7 @@ declare const app: Elysia<"", {
|
|
|
440
460
|
query: {};
|
|
441
461
|
headers: {};
|
|
442
462
|
response: {
|
|
463
|
+
200: import("@vestcards/shared").IDeckDetail;
|
|
443
464
|
422: {
|
|
444
465
|
type: "validation";
|
|
445
466
|
on: string;
|
|
@@ -449,22 +470,6 @@ declare const app: Elysia<"", {
|
|
|
449
470
|
property?: string;
|
|
450
471
|
expected?: string;
|
|
451
472
|
};
|
|
452
|
-
200: {
|
|
453
|
-
error: string;
|
|
454
|
-
message: string;
|
|
455
|
-
path: any;
|
|
456
|
-
details?: undefined;
|
|
457
|
-
} | {
|
|
458
|
-
error: string;
|
|
459
|
-
message: string;
|
|
460
|
-
details: any;
|
|
461
|
-
path?: undefined;
|
|
462
|
-
} | {
|
|
463
|
-
error: string;
|
|
464
|
-
message: string;
|
|
465
|
-
path?: undefined;
|
|
466
|
-
details?: undefined;
|
|
467
|
-
} | import("@vestcards/shared").IDeckDetail;
|
|
468
473
|
};
|
|
469
474
|
};
|
|
470
475
|
};
|
|
@@ -490,6 +495,11 @@ declare const app: Elysia<"", {
|
|
|
490
495
|
};
|
|
491
496
|
headers: unknown;
|
|
492
497
|
response: {
|
|
498
|
+
200: {
|
|
499
|
+
data: import("@vestcards/shared").Topic[];
|
|
500
|
+
pageCount: number;
|
|
501
|
+
total: number;
|
|
502
|
+
};
|
|
493
503
|
422: {
|
|
494
504
|
type: "validation";
|
|
495
505
|
on: string;
|
|
@@ -499,26 +509,6 @@ declare const app: Elysia<"", {
|
|
|
499
509
|
property?: string;
|
|
500
510
|
expected?: string;
|
|
501
511
|
};
|
|
502
|
-
200: {
|
|
503
|
-
error: string;
|
|
504
|
-
message: string;
|
|
505
|
-
path: any;
|
|
506
|
-
details?: undefined;
|
|
507
|
-
} | {
|
|
508
|
-
error: string;
|
|
509
|
-
message: string;
|
|
510
|
-
details: any;
|
|
511
|
-
path?: undefined;
|
|
512
|
-
} | {
|
|
513
|
-
error: string;
|
|
514
|
-
message: string;
|
|
515
|
-
path?: undefined;
|
|
516
|
-
details?: undefined;
|
|
517
|
-
} | {
|
|
518
|
-
data: import("@vestcards/shared").Topic[];
|
|
519
|
-
pageCount: number;
|
|
520
|
-
total: number;
|
|
521
|
-
};
|
|
522
512
|
};
|
|
523
513
|
};
|
|
524
514
|
};
|
|
@@ -540,6 +530,7 @@ declare const app: Elysia<"", {
|
|
|
540
530
|
};
|
|
541
531
|
headers: {};
|
|
542
532
|
response: {
|
|
533
|
+
200: import("./types/study").SessionData;
|
|
543
534
|
422: {
|
|
544
535
|
type: "validation";
|
|
545
536
|
on: string;
|
|
@@ -549,22 +540,6 @@ declare const app: Elysia<"", {
|
|
|
549
540
|
property?: string;
|
|
550
541
|
expected?: string;
|
|
551
542
|
};
|
|
552
|
-
200: {
|
|
553
|
-
error: string;
|
|
554
|
-
message: string;
|
|
555
|
-
path: any;
|
|
556
|
-
details?: undefined;
|
|
557
|
-
} | {
|
|
558
|
-
error: string;
|
|
559
|
-
message: string;
|
|
560
|
-
details: any;
|
|
561
|
-
path?: undefined;
|
|
562
|
-
} | {
|
|
563
|
-
error: string;
|
|
564
|
-
message: string;
|
|
565
|
-
path?: undefined;
|
|
566
|
-
details?: undefined;
|
|
567
|
-
} | import("./types/study").SessionData;
|
|
568
543
|
};
|
|
569
544
|
};
|
|
570
545
|
};
|
|
@@ -583,6 +558,13 @@ declare const app: Elysia<"", {
|
|
|
583
558
|
};
|
|
584
559
|
headers: {};
|
|
585
560
|
response: {
|
|
561
|
+
200: import("@vestcards/shared").SessionStats | {
|
|
562
|
+
status: import("@vestcards/shared").StudyStatus;
|
|
563
|
+
review: number;
|
|
564
|
+
learning: number;
|
|
565
|
+
new: number;
|
|
566
|
+
total: number;
|
|
567
|
+
};
|
|
586
568
|
422: {
|
|
587
569
|
type: "validation";
|
|
588
570
|
on: string;
|
|
@@ -592,22 +574,6 @@ declare const app: Elysia<"", {
|
|
|
592
574
|
property?: string;
|
|
593
575
|
expected?: string;
|
|
594
576
|
};
|
|
595
|
-
200: {
|
|
596
|
-
error: string;
|
|
597
|
-
message: string;
|
|
598
|
-
path: any;
|
|
599
|
-
details?: undefined;
|
|
600
|
-
} | {
|
|
601
|
-
error: string;
|
|
602
|
-
message: string;
|
|
603
|
-
details: any;
|
|
604
|
-
path?: undefined;
|
|
605
|
-
} | {
|
|
606
|
-
error: string;
|
|
607
|
-
message: string;
|
|
608
|
-
path?: undefined;
|
|
609
|
-
details?: undefined;
|
|
610
|
-
} | import("@vestcards/shared").SessionStats;
|
|
611
577
|
};
|
|
612
578
|
};
|
|
613
579
|
};
|
|
@@ -628,6 +594,9 @@ declare const app: Elysia<"", {
|
|
|
628
594
|
query: {};
|
|
629
595
|
headers: {};
|
|
630
596
|
response: {
|
|
597
|
+
200: {
|
|
598
|
+
success: boolean;
|
|
599
|
+
};
|
|
631
600
|
422: {
|
|
632
601
|
type: "validation";
|
|
633
602
|
on: string;
|
|
@@ -637,24 +606,6 @@ declare const app: Elysia<"", {
|
|
|
637
606
|
property?: string;
|
|
638
607
|
expected?: string;
|
|
639
608
|
};
|
|
640
|
-
200: {
|
|
641
|
-
error: string;
|
|
642
|
-
message: string;
|
|
643
|
-
path: any;
|
|
644
|
-
details?: undefined;
|
|
645
|
-
} | {
|
|
646
|
-
error: string;
|
|
647
|
-
message: string;
|
|
648
|
-
details: any;
|
|
649
|
-
path?: undefined;
|
|
650
|
-
} | {
|
|
651
|
-
error: string;
|
|
652
|
-
message: string;
|
|
653
|
-
path?: undefined;
|
|
654
|
-
details?: undefined;
|
|
655
|
-
} | {
|
|
656
|
-
success: boolean;
|
|
657
|
-
};
|
|
658
609
|
};
|
|
659
610
|
};
|
|
660
611
|
};
|
|
@@ -673,22 +624,7 @@ declare const app: Elysia<"", {
|
|
|
673
624
|
query: {};
|
|
674
625
|
headers: {};
|
|
675
626
|
response: {
|
|
676
|
-
200:
|
|
677
|
-
error: string;
|
|
678
|
-
message: string;
|
|
679
|
-
path: any;
|
|
680
|
-
details?: undefined;
|
|
681
|
-
} | {
|
|
682
|
-
error: string;
|
|
683
|
-
message: string;
|
|
684
|
-
details: any;
|
|
685
|
-
path?: undefined;
|
|
686
|
-
} | {
|
|
687
|
-
error: string;
|
|
688
|
-
message: string;
|
|
689
|
-
path?: undefined;
|
|
690
|
-
details?: undefined;
|
|
691
|
-
} | import("@vestcards/shared").GroupedLibraryData;
|
|
627
|
+
200: import("@vestcards/shared").GroupedLibraryData;
|
|
692
628
|
};
|
|
693
629
|
};
|
|
694
630
|
};
|
|
@@ -703,22 +639,7 @@ declare const app: Elysia<"", {
|
|
|
703
639
|
query: {};
|
|
704
640
|
headers: {};
|
|
705
641
|
response: {
|
|
706
|
-
200:
|
|
707
|
-
error: string;
|
|
708
|
-
message: string;
|
|
709
|
-
path: any;
|
|
710
|
-
details?: undefined;
|
|
711
|
-
} | {
|
|
712
|
-
error: string;
|
|
713
|
-
message: string;
|
|
714
|
-
details: any;
|
|
715
|
-
path?: undefined;
|
|
716
|
-
} | {
|
|
717
|
-
error: string;
|
|
718
|
-
message: string;
|
|
719
|
-
path?: undefined;
|
|
720
|
-
details?: undefined;
|
|
721
|
-
} | import("@vestcards/shared").ArchivedLibraryItem[];
|
|
642
|
+
200: import("@vestcards/shared").ArchivedLibraryItem[];
|
|
722
643
|
};
|
|
723
644
|
};
|
|
724
645
|
};
|
|
@@ -737,6 +658,9 @@ declare const app: Elysia<"", {
|
|
|
737
658
|
query: {};
|
|
738
659
|
headers: {};
|
|
739
660
|
response: {
|
|
661
|
+
200: {
|
|
662
|
+
success: boolean;
|
|
663
|
+
};
|
|
740
664
|
422: {
|
|
741
665
|
type: "validation";
|
|
742
666
|
on: string;
|
|
@@ -746,24 +670,6 @@ declare const app: Elysia<"", {
|
|
|
746
670
|
property?: string;
|
|
747
671
|
expected?: string;
|
|
748
672
|
};
|
|
749
|
-
200: {
|
|
750
|
-
error: string;
|
|
751
|
-
message: string;
|
|
752
|
-
path: any;
|
|
753
|
-
details?: undefined;
|
|
754
|
-
} | {
|
|
755
|
-
error: string;
|
|
756
|
-
message: string;
|
|
757
|
-
details: any;
|
|
758
|
-
path?: undefined;
|
|
759
|
-
} | {
|
|
760
|
-
error: string;
|
|
761
|
-
message: string;
|
|
762
|
-
path?: undefined;
|
|
763
|
-
details?: undefined;
|
|
764
|
-
} | {
|
|
765
|
-
success: boolean;
|
|
766
|
-
};
|
|
767
673
|
};
|
|
768
674
|
};
|
|
769
675
|
};
|
|
@@ -783,6 +689,9 @@ declare const app: Elysia<"", {
|
|
|
783
689
|
query: {};
|
|
784
690
|
headers: {};
|
|
785
691
|
response: {
|
|
692
|
+
200: {
|
|
693
|
+
success: boolean;
|
|
694
|
+
};
|
|
786
695
|
422: {
|
|
787
696
|
type: "validation";
|
|
788
697
|
on: string;
|
|
@@ -792,24 +701,6 @@ declare const app: Elysia<"", {
|
|
|
792
701
|
property?: string;
|
|
793
702
|
expected?: string;
|
|
794
703
|
};
|
|
795
|
-
200: {
|
|
796
|
-
error: string;
|
|
797
|
-
message: string;
|
|
798
|
-
path: any;
|
|
799
|
-
details?: undefined;
|
|
800
|
-
} | {
|
|
801
|
-
error: string;
|
|
802
|
-
message: string;
|
|
803
|
-
details: any;
|
|
804
|
-
path?: undefined;
|
|
805
|
-
} | {
|
|
806
|
-
error: string;
|
|
807
|
-
message: string;
|
|
808
|
-
path?: undefined;
|
|
809
|
-
details?: undefined;
|
|
810
|
-
} | {
|
|
811
|
-
success: boolean;
|
|
812
|
-
};
|
|
813
704
|
};
|
|
814
705
|
};
|
|
815
706
|
};
|
|
@@ -831,6 +722,9 @@ declare const app: Elysia<"", {
|
|
|
831
722
|
query: {};
|
|
832
723
|
headers: {};
|
|
833
724
|
response: {
|
|
725
|
+
200: {
|
|
726
|
+
success: boolean;
|
|
727
|
+
};
|
|
834
728
|
422: {
|
|
835
729
|
type: "validation";
|
|
836
730
|
on: string;
|
|
@@ -840,24 +734,6 @@ declare const app: Elysia<"", {
|
|
|
840
734
|
property?: string;
|
|
841
735
|
expected?: string;
|
|
842
736
|
};
|
|
843
|
-
200: {
|
|
844
|
-
error: string;
|
|
845
|
-
message: string;
|
|
846
|
-
path: any;
|
|
847
|
-
details?: undefined;
|
|
848
|
-
} | {
|
|
849
|
-
error: string;
|
|
850
|
-
message: string;
|
|
851
|
-
details: any;
|
|
852
|
-
path?: undefined;
|
|
853
|
-
} | {
|
|
854
|
-
error: string;
|
|
855
|
-
message: string;
|
|
856
|
-
path?: undefined;
|
|
857
|
-
details?: undefined;
|
|
858
|
-
} | {
|
|
859
|
-
success: boolean;
|
|
860
|
-
};
|
|
861
737
|
};
|
|
862
738
|
};
|
|
863
739
|
};
|
|
@@ -878,6 +754,13 @@ declare const app: Elysia<"", {
|
|
|
878
754
|
query: unknown;
|
|
879
755
|
headers: unknown;
|
|
880
756
|
response: {
|
|
757
|
+
200: {
|
|
758
|
+
id: number;
|
|
759
|
+
name: string;
|
|
760
|
+
email: string;
|
|
761
|
+
createdInPage: string;
|
|
762
|
+
createdAt: Date;
|
|
763
|
+
};
|
|
881
764
|
422: {
|
|
882
765
|
type: "validation";
|
|
883
766
|
on: string;
|
|
@@ -887,28 +770,6 @@ declare const app: Elysia<"", {
|
|
|
887
770
|
property?: string;
|
|
888
771
|
expected?: string;
|
|
889
772
|
};
|
|
890
|
-
200: {
|
|
891
|
-
error: string;
|
|
892
|
-
message: string;
|
|
893
|
-
path: any;
|
|
894
|
-
details?: undefined;
|
|
895
|
-
} | {
|
|
896
|
-
error: string;
|
|
897
|
-
message: string;
|
|
898
|
-
details: any;
|
|
899
|
-
path?: undefined;
|
|
900
|
-
} | {
|
|
901
|
-
error: string;
|
|
902
|
-
message: string;
|
|
903
|
-
path?: undefined;
|
|
904
|
-
details?: undefined;
|
|
905
|
-
} | {
|
|
906
|
-
id: number;
|
|
907
|
-
name: string;
|
|
908
|
-
email: string;
|
|
909
|
-
createdInPage: string;
|
|
910
|
-
createdAt: Date;
|
|
911
|
-
};
|
|
912
773
|
};
|
|
913
774
|
};
|
|
914
775
|
};
|
|
@@ -940,21 +801,8 @@ declare const app: Elysia<"", {
|
|
|
940
801
|
schema: {};
|
|
941
802
|
standaloneSchema: {};
|
|
942
803
|
response: {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
message: string;
|
|
946
|
-
path: any;
|
|
947
|
-
details?: undefined;
|
|
948
|
-
} | {
|
|
949
|
-
error: string;
|
|
950
|
-
message: string;
|
|
951
|
-
details: any;
|
|
952
|
-
path?: undefined;
|
|
953
|
-
} | {
|
|
954
|
-
error: string;
|
|
955
|
-
message: string;
|
|
956
|
-
path?: undefined;
|
|
957
|
-
details?: undefined;
|
|
804
|
+
[x: string]: {
|
|
805
|
+
[x: string]: any;
|
|
958
806
|
};
|
|
959
807
|
};
|
|
960
808
|
}>;
|
|
@@ -1206,3 +1206,133 @@ export declare const reviewLogs: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
1206
1206
|
}>;
|
|
1207
1207
|
export type ReviewLog = InferSelectModel<typeof reviewLogs>;
|
|
1208
1208
|
export type NewReviewLog = InferInsertModel<typeof reviewLogs>;
|
|
1209
|
+
export declare const cardDemand: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
1210
|
+
name: "card_demand";
|
|
1211
|
+
schema: undefined;
|
|
1212
|
+
columns: {
|
|
1213
|
+
cardId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1214
|
+
name: "card_id";
|
|
1215
|
+
tableName: "card_demand";
|
|
1216
|
+
dataType: "string";
|
|
1217
|
+
columnType: "PgText";
|
|
1218
|
+
data: string;
|
|
1219
|
+
driverParam: string;
|
|
1220
|
+
notNull: true;
|
|
1221
|
+
hasDefault: false;
|
|
1222
|
+
isPrimaryKey: false;
|
|
1223
|
+
isAutoincrement: false;
|
|
1224
|
+
hasRuntimeDefault: false;
|
|
1225
|
+
enumValues: [string, ...string[]];
|
|
1226
|
+
baseColumn: never;
|
|
1227
|
+
identity: undefined;
|
|
1228
|
+
generated: undefined;
|
|
1229
|
+
}, {}, {}>;
|
|
1230
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1231
|
+
name: "user_id";
|
|
1232
|
+
tableName: "card_demand";
|
|
1233
|
+
dataType: "string";
|
|
1234
|
+
columnType: "PgText";
|
|
1235
|
+
data: string;
|
|
1236
|
+
driverParam: string;
|
|
1237
|
+
notNull: true;
|
|
1238
|
+
hasDefault: false;
|
|
1239
|
+
isPrimaryKey: false;
|
|
1240
|
+
isAutoincrement: false;
|
|
1241
|
+
hasRuntimeDefault: false;
|
|
1242
|
+
enumValues: [string, ...string[]];
|
|
1243
|
+
baseColumn: never;
|
|
1244
|
+
identity: undefined;
|
|
1245
|
+
generated: undefined;
|
|
1246
|
+
}, {}, {}>;
|
|
1247
|
+
content: import("drizzle-orm/pg-core").PgColumn<{
|
|
1248
|
+
name: "content";
|
|
1249
|
+
tableName: "card_demand";
|
|
1250
|
+
dataType: "string";
|
|
1251
|
+
columnType: "PgText";
|
|
1252
|
+
data: string;
|
|
1253
|
+
driverParam: string;
|
|
1254
|
+
notNull: true;
|
|
1255
|
+
hasDefault: false;
|
|
1256
|
+
isPrimaryKey: false;
|
|
1257
|
+
isAutoincrement: false;
|
|
1258
|
+
hasRuntimeDefault: false;
|
|
1259
|
+
enumValues: [string, ...string[]];
|
|
1260
|
+
baseColumn: never;
|
|
1261
|
+
identity: undefined;
|
|
1262
|
+
generated: undefined;
|
|
1263
|
+
}, {}, {}>;
|
|
1264
|
+
type: import("drizzle-orm/pg-core").PgColumn<{
|
|
1265
|
+
name: "type";
|
|
1266
|
+
tableName: "card_demand";
|
|
1267
|
+
dataType: "string";
|
|
1268
|
+
columnType: "PgText";
|
|
1269
|
+
data: string;
|
|
1270
|
+
driverParam: string;
|
|
1271
|
+
notNull: true;
|
|
1272
|
+
hasDefault: false;
|
|
1273
|
+
isPrimaryKey: false;
|
|
1274
|
+
isAutoincrement: false;
|
|
1275
|
+
hasRuntimeDefault: false;
|
|
1276
|
+
enumValues: [string, ...string[]];
|
|
1277
|
+
baseColumn: never;
|
|
1278
|
+
identity: undefined;
|
|
1279
|
+
generated: undefined;
|
|
1280
|
+
}, {}, {}>;
|
|
1281
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
1282
|
+
name: "status";
|
|
1283
|
+
tableName: "card_demand";
|
|
1284
|
+
dataType: "string";
|
|
1285
|
+
columnType: "PgText";
|
|
1286
|
+
data: "not-reviewed" | "card-updated" | "demand-rejected" | "card-removed";
|
|
1287
|
+
driverParam: string;
|
|
1288
|
+
notNull: true;
|
|
1289
|
+
hasDefault: true;
|
|
1290
|
+
isPrimaryKey: false;
|
|
1291
|
+
isAutoincrement: false;
|
|
1292
|
+
hasRuntimeDefault: false;
|
|
1293
|
+
enumValues: [string, ...string[]];
|
|
1294
|
+
baseColumn: never;
|
|
1295
|
+
identity: undefined;
|
|
1296
|
+
generated: undefined;
|
|
1297
|
+
}, {}, {
|
|
1298
|
+
$type: "not-reviewed" | "card-updated" | "demand-rejected" | "card-removed";
|
|
1299
|
+
}>;
|
|
1300
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1301
|
+
name: "created_at";
|
|
1302
|
+
tableName: "card_demand";
|
|
1303
|
+
dataType: "date";
|
|
1304
|
+
columnType: "PgTimestamp";
|
|
1305
|
+
data: Date;
|
|
1306
|
+
driverParam: string;
|
|
1307
|
+
notNull: true;
|
|
1308
|
+
hasDefault: true;
|
|
1309
|
+
isPrimaryKey: false;
|
|
1310
|
+
isAutoincrement: false;
|
|
1311
|
+
hasRuntimeDefault: false;
|
|
1312
|
+
enumValues: undefined;
|
|
1313
|
+
baseColumn: never;
|
|
1314
|
+
identity: undefined;
|
|
1315
|
+
generated: undefined;
|
|
1316
|
+
}, {}, {}>;
|
|
1317
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1318
|
+
name: "updated_at";
|
|
1319
|
+
tableName: "card_demand";
|
|
1320
|
+
dataType: "date";
|
|
1321
|
+
columnType: "PgTimestamp";
|
|
1322
|
+
data: Date;
|
|
1323
|
+
driverParam: string;
|
|
1324
|
+
notNull: true;
|
|
1325
|
+
hasDefault: true;
|
|
1326
|
+
isPrimaryKey: false;
|
|
1327
|
+
isAutoincrement: false;
|
|
1328
|
+
hasRuntimeDefault: false;
|
|
1329
|
+
enumValues: undefined;
|
|
1330
|
+
baseColumn: never;
|
|
1331
|
+
identity: undefined;
|
|
1332
|
+
generated: undefined;
|
|
1333
|
+
}, {}, {}>;
|
|
1334
|
+
};
|
|
1335
|
+
dialect: "pg";
|
|
1336
|
+
}>;
|
|
1337
|
+
export type CardDemand = InferSelectModel<typeof cardDemand>;
|
|
1338
|
+
export type NewCardDemand = InferInsertModel<typeof cardDemand>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { EntityType } from '@vestcards/shared';
|
|
1
2
|
import type { InferInsertModel, InferSelectModel } from 'drizzle-orm/table';
|
|
2
|
-
type EntityType = 'user' | 'organization' | 'system';
|
|
3
3
|
export declare const entity: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
4
|
name: "entity";
|
|
5
5
|
schema: undefined;
|
|
@@ -45,4 +45,3 @@ export declare const entity: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
45
45
|
}>;
|
|
46
46
|
export type Entity = InferSelectModel<typeof entity>;
|
|
47
47
|
export type NewEntity = InferInsertModel<typeof entity>;
|
|
48
|
-
export {};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} | {
|
|
12
|
-
error: string;
|
|
13
|
-
message: string;
|
|
14
|
-
path?: undefined;
|
|
15
|
-
details?: undefined;
|
|
16
|
-
};
|
|
1
|
+
import type { ErrorHandler } from 'elysia';
|
|
2
|
+
/**
|
|
3
|
+
* Global error handler returning Response.json() so the return type
|
|
4
|
+
* is NOT merged into Eden treaty's success union — errors stay in
|
|
5
|
+
* React Query's `error` field, not `data`.
|
|
6
|
+
*
|
|
7
|
+
* `set.status` is still needed because Elysia ignores the status
|
|
8
|
+
* from a returned Response object in onError.
|
|
9
|
+
*/
|
|
10
|
+
export declare const errorHandler: ErrorHandler;
|
|
@@ -41,7 +41,7 @@ export declare const authModule: Elysia<"/v1", {
|
|
|
41
41
|
route: string;
|
|
42
42
|
request: Request;
|
|
43
43
|
store: {};
|
|
44
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 |
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
45
45
|
readonly 100: "Continue";
|
|
46
46
|
readonly 101: "Switching Protocols";
|
|
47
47
|
readonly 102: "Processing";
|
|
@@ -213,7 +213,7 @@ export declare const authModule: Elysia<"/v1", {
|
|
|
213
213
|
route: string;
|
|
214
214
|
request: Request;
|
|
215
215
|
store: {};
|
|
216
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 |
|
|
216
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 403 | 404 | 409 | 429 | 500 | 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
217
217
|
readonly 100: "Continue";
|
|
218
218
|
readonly 101: "Switching Protocols";
|
|
219
219
|
readonly 102: "Processing";
|