rategame-shared 1.1.24 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  import { z } from "zod";
2
- import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema } from "../schemas/rating";
2
+ import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, threadCommentSchema } from "../schemas/rating";
3
3
  export type Rating = z.infer<typeof ratingSchema>;
4
4
  export type RatingLike = z.infer<typeof ratingLikeSchema>;
5
5
  export type CreateRating = z.infer<typeof createRatingSchema>;
6
6
  export type SearchRating = z.infer<typeof searchRatingSchema>;
7
7
  export type CreateAgreeRating = z.infer<typeof createAgreeRatingSchema>;
8
+ export type ThreadComment = z.infer<typeof threadCommentSchema>;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
- import { leagueStatsSchema, createUserSchema, userSchema } from "../schemas/user";
2
+ import { leagueStatsSchema, createUserSchema, userSchema, reducedUserSchema } from "../schemas/user";
3
3
  export type User = z.infer<typeof userSchema>;
4
4
  export type CreateUser = z.infer<typeof createUserSchema>;
5
5
  export type LeagueStats = z.infer<typeof leagueStatsSchema>;
6
+ export type ReducedUser = z.infer<typeof reducedUserSchema>;
@@ -25,7 +25,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
25
25
  game: import("zod").ZodObject<{
26
26
  id: import("zod").ZodString;
27
27
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
28
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
28
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">]>;
29
29
  homeTeam: import("zod").ZodObject<{
30
30
  id: import("zod").ZodOptional<import("zod").ZodString>;
31
31
  apiTeamId: import("zod").ZodNumber;
@@ -100,7 +100,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
100
100
  }>>;
101
101
  }, "strip", import("zod").ZodTypeAny, {
102
102
  id: string;
103
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
103
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
104
104
  homeTeam: {
105
105
  name: string;
106
106
  image: string;
@@ -130,7 +130,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
130
130
  } | undefined;
131
131
  }, {
132
132
  id: string;
133
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
133
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
134
134
  homeTeam: {
135
135
  name: string;
136
136
  image: string;
@@ -173,7 +173,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
173
173
  rating: number;
174
174
  game: {
175
175
  id: string;
176
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
176
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
177
177
  homeTeam: {
178
178
  name: string;
179
179
  image: string;
@@ -217,7 +217,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
217
217
  rating: number;
218
218
  game: {
219
219
  id: string;
220
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
220
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
221
221
  homeTeam: {
222
222
  name: string;
223
223
  image: string;
@@ -374,7 +374,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
374
374
  game: import("zod").ZodObject<Omit<{
375
375
  id: import("zod").ZodString;
376
376
  round: import("zod").ZodOptional<import("zod").ZodNumber>;
377
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">]>;
377
+ league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">]>;
378
378
  homeTeam: import("zod").ZodObject<{
379
379
  id: import("zod").ZodOptional<import("zod").ZodString>;
380
380
  apiTeamId: import("zod").ZodNumber;
@@ -449,7 +449,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
449
449
  }>>;
450
450
  }, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
451
451
  id: string;
452
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
452
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
453
453
  seriesInfo?: {
454
454
  maxLength: number;
455
455
  homeTeamWins: number;
@@ -458,7 +458,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
458
458
  } | undefined;
459
459
  }, {
460
460
  id: string;
461
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
461
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
462
462
  seriesInfo?: {
463
463
  maxLength: number;
464
464
  homeTeamWins: number;
@@ -471,7 +471,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
471
471
  rating: number;
472
472
  game: {
473
473
  id: string;
474
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
474
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
475
475
  seriesInfo?: {
476
476
  maxLength: number;
477
477
  homeTeamWins: number;
@@ -486,7 +486,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
486
486
  rating: number;
487
487
  game: {
488
488
  id: string;
489
- league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
489
+ league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb";
490
490
  seriesInfo?: {
491
491
  maxLength: number;
492
492
  homeTeamWins: number;
@@ -498,3 +498,570 @@ export declare const createRatingSchema: import("zod").ZodObject<{
498
498
  userLikes?: number | undefined;
499
499
  id?: string | undefined;
500
500
  }>;
501
+ export declare const threadCommentSchema: import("zod").ZodObject<{
502
+ id: import("zod").ZodString;
503
+ createdAt: import("zod").ZodNumber;
504
+ content: import("zod").ZodString;
505
+ user: import("zod").ZodObject<Pick<{
506
+ id: import("zod").ZodString;
507
+ email: import("zod").ZodString;
508
+ username: import("zod").ZodString;
509
+ avatarUrl: import("zod").ZodString;
510
+ createdAt: import("zod").ZodNumber;
511
+ updatedAt: import("zod").ZodNumber;
512
+ leagues: import("zod").ZodOptional<import("zod").ZodObject<{
513
+ nba: import("zod").ZodObject<{
514
+ totalRatedGames: import("zod").ZodNumber;
515
+ commentsLeft: import("zod").ZodNumber;
516
+ avgRating: import("zod").ZodNumber;
517
+ }, "strip", import("zod").ZodTypeAny, {
518
+ totalRatedGames: number;
519
+ commentsLeft: number;
520
+ avgRating: number;
521
+ }, {
522
+ totalRatedGames: number;
523
+ commentsLeft: number;
524
+ avgRating: number;
525
+ }>;
526
+ ncaa: import("zod").ZodObject<{
527
+ totalRatedGames: import("zod").ZodNumber;
528
+ commentsLeft: import("zod").ZodNumber;
529
+ avgRating: import("zod").ZodNumber;
530
+ }, "strip", import("zod").ZodTypeAny, {
531
+ totalRatedGames: number;
532
+ commentsLeft: number;
533
+ avgRating: number;
534
+ }, {
535
+ totalRatedGames: number;
536
+ commentsLeft: number;
537
+ avgRating: number;
538
+ }>;
539
+ mlb: import("zod").ZodObject<{
540
+ totalRatedGames: import("zod").ZodNumber;
541
+ commentsLeft: import("zod").ZodNumber;
542
+ avgRating: import("zod").ZodNumber;
543
+ }, "strip", import("zod").ZodTypeAny, {
544
+ totalRatedGames: number;
545
+ commentsLeft: number;
546
+ avgRating: number;
547
+ }, {
548
+ totalRatedGames: number;
549
+ commentsLeft: number;
550
+ avgRating: number;
551
+ }>;
552
+ nfl: import("zod").ZodObject<{
553
+ totalRatedGames: import("zod").ZodNumber;
554
+ commentsLeft: import("zod").ZodNumber;
555
+ avgRating: import("zod").ZodNumber;
556
+ }, "strip", import("zod").ZodTypeAny, {
557
+ totalRatedGames: number;
558
+ commentsLeft: number;
559
+ avgRating: number;
560
+ }, {
561
+ totalRatedGames: number;
562
+ commentsLeft: number;
563
+ avgRating: number;
564
+ }>;
565
+ nhl: import("zod").ZodObject<{
566
+ totalRatedGames: import("zod").ZodNumber;
567
+ commentsLeft: import("zod").ZodNumber;
568
+ avgRating: import("zod").ZodNumber;
569
+ }, "strip", import("zod").ZodTypeAny, {
570
+ totalRatedGames: number;
571
+ commentsLeft: number;
572
+ avgRating: number;
573
+ }, {
574
+ totalRatedGames: number;
575
+ commentsLeft: number;
576
+ avgRating: number;
577
+ }>;
578
+ mls: import("zod").ZodObject<{
579
+ totalRatedGames: import("zod").ZodNumber;
580
+ commentsLeft: import("zod").ZodNumber;
581
+ avgRating: import("zod").ZodNumber;
582
+ }, "strip", import("zod").ZodTypeAny, {
583
+ totalRatedGames: number;
584
+ commentsLeft: number;
585
+ avgRating: number;
586
+ }, {
587
+ totalRatedGames: number;
588
+ commentsLeft: number;
589
+ avgRating: number;
590
+ }>;
591
+ cfb: import("zod").ZodObject<{
592
+ totalRatedGames: import("zod").ZodNumber;
593
+ commentsLeft: import("zod").ZodNumber;
594
+ avgRating: import("zod").ZodNumber;
595
+ }, "strip", import("zod").ZodTypeAny, {
596
+ totalRatedGames: number;
597
+ commentsLeft: number;
598
+ avgRating: number;
599
+ }, {
600
+ totalRatedGames: number;
601
+ commentsLeft: number;
602
+ avgRating: number;
603
+ }>;
604
+ cbb: import("zod").ZodObject<{
605
+ totalRatedGames: import("zod").ZodNumber;
606
+ commentsLeft: import("zod").ZodNumber;
607
+ avgRating: import("zod").ZodNumber;
608
+ }, "strip", import("zod").ZodTypeAny, {
609
+ totalRatedGames: number;
610
+ commentsLeft: number;
611
+ avgRating: number;
612
+ }, {
613
+ totalRatedGames: number;
614
+ commentsLeft: number;
615
+ avgRating: number;
616
+ }>;
617
+ }, "strip", import("zod").ZodTypeAny, {
618
+ nba: {
619
+ totalRatedGames: number;
620
+ commentsLeft: number;
621
+ avgRating: number;
622
+ };
623
+ ncaa: {
624
+ totalRatedGames: number;
625
+ commentsLeft: number;
626
+ avgRating: number;
627
+ };
628
+ mlb: {
629
+ totalRatedGames: number;
630
+ commentsLeft: number;
631
+ avgRating: number;
632
+ };
633
+ nfl: {
634
+ totalRatedGames: number;
635
+ commentsLeft: number;
636
+ avgRating: number;
637
+ };
638
+ nhl: {
639
+ totalRatedGames: number;
640
+ commentsLeft: number;
641
+ avgRating: number;
642
+ };
643
+ mls: {
644
+ totalRatedGames: number;
645
+ commentsLeft: number;
646
+ avgRating: number;
647
+ };
648
+ cfb: {
649
+ totalRatedGames: number;
650
+ commentsLeft: number;
651
+ avgRating: number;
652
+ };
653
+ cbb: {
654
+ totalRatedGames: number;
655
+ commentsLeft: number;
656
+ avgRating: number;
657
+ };
658
+ }, {
659
+ nba: {
660
+ totalRatedGames: number;
661
+ commentsLeft: number;
662
+ avgRating: number;
663
+ };
664
+ ncaa: {
665
+ totalRatedGames: number;
666
+ commentsLeft: number;
667
+ avgRating: number;
668
+ };
669
+ mlb: {
670
+ totalRatedGames: number;
671
+ commentsLeft: number;
672
+ avgRating: number;
673
+ };
674
+ nfl: {
675
+ totalRatedGames: number;
676
+ commentsLeft: number;
677
+ avgRating: number;
678
+ };
679
+ nhl: {
680
+ totalRatedGames: number;
681
+ commentsLeft: number;
682
+ avgRating: number;
683
+ };
684
+ mls: {
685
+ totalRatedGames: number;
686
+ commentsLeft: number;
687
+ avgRating: number;
688
+ };
689
+ cfb: {
690
+ totalRatedGames: number;
691
+ commentsLeft: number;
692
+ avgRating: number;
693
+ };
694
+ cbb: {
695
+ totalRatedGames: number;
696
+ commentsLeft: number;
697
+ avgRating: number;
698
+ };
699
+ }>>;
700
+ totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
701
+ commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
702
+ avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
703
+ isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
704
+ deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
705
+ token: import("zod").ZodString;
706
+ usedAt: import("zod").ZodNumber;
707
+ }, "strip", import("zod").ZodTypeAny, {
708
+ token: string;
709
+ usedAt: number;
710
+ }, {
711
+ token: string;
712
+ usedAt: number;
713
+ }>>;
714
+ askedForPushNotifications: import("zod").ZodBoolean;
715
+ acceptedPushNotifications: import("zod").ZodBoolean;
716
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
717
+ registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
718
+ selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
719
+ selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
720
+ lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
721
+ bio: import("zod").ZodOptional<import("zod").ZodString>;
722
+ socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
723
+ instagram: import("zod").ZodOptional<import("zod").ZodString>;
724
+ x: import("zod").ZodOptional<import("zod").ZodString>;
725
+ youtube: import("zod").ZodOptional<import("zod").ZodString>;
726
+ tiktok: import("zod").ZodOptional<import("zod").ZodString>;
727
+ }, "strip", import("zod").ZodTypeAny, {
728
+ instagram?: string | undefined;
729
+ x?: string | undefined;
730
+ youtube?: string | undefined;
731
+ tiktok?: string | undefined;
732
+ }, {
733
+ instagram?: string | undefined;
734
+ x?: string | undefined;
735
+ youtube?: string | undefined;
736
+ tiktok?: string | undefined;
737
+ }>>;
738
+ platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
739
+ selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
740
+ notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
741
+ allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
742
+ favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
743
+ favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
744
+ }, "strip", import("zod").ZodTypeAny, {
745
+ allGames?: boolean | undefined;
746
+ favoriteLeagues?: boolean | undefined;
747
+ favoriteTeams?: boolean | undefined;
748
+ }, {
749
+ allGames?: boolean | undefined;
750
+ favoriteLeagues?: boolean | undefined;
751
+ favoriteTeams?: boolean | undefined;
752
+ }>>;
753
+ }, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
754
+ id: string;
755
+ email: string;
756
+ username: string;
757
+ avatarUrl: string;
758
+ }, {
759
+ id: string;
760
+ email: string;
761
+ username: string;
762
+ avatarUrl: string;
763
+ }>;
764
+ ratingId: import("zod").ZodString;
765
+ parentId: import("zod").ZodString;
766
+ isReply: import("zod").ZodOptional<import("zod").ZodBoolean>;
767
+ replyTo: import("zod").ZodOptional<import("zod").ZodObject<Pick<{
768
+ id: import("zod").ZodString;
769
+ email: import("zod").ZodString;
770
+ username: import("zod").ZodString;
771
+ avatarUrl: import("zod").ZodString;
772
+ createdAt: import("zod").ZodNumber;
773
+ updatedAt: import("zod").ZodNumber;
774
+ leagues: import("zod").ZodOptional<import("zod").ZodObject<{
775
+ nba: import("zod").ZodObject<{
776
+ totalRatedGames: import("zod").ZodNumber;
777
+ commentsLeft: import("zod").ZodNumber;
778
+ avgRating: import("zod").ZodNumber;
779
+ }, "strip", import("zod").ZodTypeAny, {
780
+ totalRatedGames: number;
781
+ commentsLeft: number;
782
+ avgRating: number;
783
+ }, {
784
+ totalRatedGames: number;
785
+ commentsLeft: number;
786
+ avgRating: number;
787
+ }>;
788
+ ncaa: import("zod").ZodObject<{
789
+ totalRatedGames: import("zod").ZodNumber;
790
+ commentsLeft: import("zod").ZodNumber;
791
+ avgRating: import("zod").ZodNumber;
792
+ }, "strip", import("zod").ZodTypeAny, {
793
+ totalRatedGames: number;
794
+ commentsLeft: number;
795
+ avgRating: number;
796
+ }, {
797
+ totalRatedGames: number;
798
+ commentsLeft: number;
799
+ avgRating: number;
800
+ }>;
801
+ mlb: import("zod").ZodObject<{
802
+ totalRatedGames: import("zod").ZodNumber;
803
+ commentsLeft: import("zod").ZodNumber;
804
+ avgRating: import("zod").ZodNumber;
805
+ }, "strip", import("zod").ZodTypeAny, {
806
+ totalRatedGames: number;
807
+ commentsLeft: number;
808
+ avgRating: number;
809
+ }, {
810
+ totalRatedGames: number;
811
+ commentsLeft: number;
812
+ avgRating: number;
813
+ }>;
814
+ nfl: import("zod").ZodObject<{
815
+ totalRatedGames: import("zod").ZodNumber;
816
+ commentsLeft: import("zod").ZodNumber;
817
+ avgRating: import("zod").ZodNumber;
818
+ }, "strip", import("zod").ZodTypeAny, {
819
+ totalRatedGames: number;
820
+ commentsLeft: number;
821
+ avgRating: number;
822
+ }, {
823
+ totalRatedGames: number;
824
+ commentsLeft: number;
825
+ avgRating: number;
826
+ }>;
827
+ nhl: import("zod").ZodObject<{
828
+ totalRatedGames: import("zod").ZodNumber;
829
+ commentsLeft: import("zod").ZodNumber;
830
+ avgRating: import("zod").ZodNumber;
831
+ }, "strip", import("zod").ZodTypeAny, {
832
+ totalRatedGames: number;
833
+ commentsLeft: number;
834
+ avgRating: number;
835
+ }, {
836
+ totalRatedGames: number;
837
+ commentsLeft: number;
838
+ avgRating: number;
839
+ }>;
840
+ mls: import("zod").ZodObject<{
841
+ totalRatedGames: import("zod").ZodNumber;
842
+ commentsLeft: import("zod").ZodNumber;
843
+ avgRating: import("zod").ZodNumber;
844
+ }, "strip", import("zod").ZodTypeAny, {
845
+ totalRatedGames: number;
846
+ commentsLeft: number;
847
+ avgRating: number;
848
+ }, {
849
+ totalRatedGames: number;
850
+ commentsLeft: number;
851
+ avgRating: number;
852
+ }>;
853
+ cfb: import("zod").ZodObject<{
854
+ totalRatedGames: import("zod").ZodNumber;
855
+ commentsLeft: import("zod").ZodNumber;
856
+ avgRating: import("zod").ZodNumber;
857
+ }, "strip", import("zod").ZodTypeAny, {
858
+ totalRatedGames: number;
859
+ commentsLeft: number;
860
+ avgRating: number;
861
+ }, {
862
+ totalRatedGames: number;
863
+ commentsLeft: number;
864
+ avgRating: number;
865
+ }>;
866
+ cbb: import("zod").ZodObject<{
867
+ totalRatedGames: import("zod").ZodNumber;
868
+ commentsLeft: import("zod").ZodNumber;
869
+ avgRating: import("zod").ZodNumber;
870
+ }, "strip", import("zod").ZodTypeAny, {
871
+ totalRatedGames: number;
872
+ commentsLeft: number;
873
+ avgRating: number;
874
+ }, {
875
+ totalRatedGames: number;
876
+ commentsLeft: number;
877
+ avgRating: number;
878
+ }>;
879
+ }, "strip", import("zod").ZodTypeAny, {
880
+ nba: {
881
+ totalRatedGames: number;
882
+ commentsLeft: number;
883
+ avgRating: number;
884
+ };
885
+ ncaa: {
886
+ totalRatedGames: number;
887
+ commentsLeft: number;
888
+ avgRating: number;
889
+ };
890
+ mlb: {
891
+ totalRatedGames: number;
892
+ commentsLeft: number;
893
+ avgRating: number;
894
+ };
895
+ nfl: {
896
+ totalRatedGames: number;
897
+ commentsLeft: number;
898
+ avgRating: number;
899
+ };
900
+ nhl: {
901
+ totalRatedGames: number;
902
+ commentsLeft: number;
903
+ avgRating: number;
904
+ };
905
+ mls: {
906
+ totalRatedGames: number;
907
+ commentsLeft: number;
908
+ avgRating: number;
909
+ };
910
+ cfb: {
911
+ totalRatedGames: number;
912
+ commentsLeft: number;
913
+ avgRating: number;
914
+ };
915
+ cbb: {
916
+ totalRatedGames: number;
917
+ commentsLeft: number;
918
+ avgRating: number;
919
+ };
920
+ }, {
921
+ nba: {
922
+ totalRatedGames: number;
923
+ commentsLeft: number;
924
+ avgRating: number;
925
+ };
926
+ ncaa: {
927
+ totalRatedGames: number;
928
+ commentsLeft: number;
929
+ avgRating: number;
930
+ };
931
+ mlb: {
932
+ totalRatedGames: number;
933
+ commentsLeft: number;
934
+ avgRating: number;
935
+ };
936
+ nfl: {
937
+ totalRatedGames: number;
938
+ commentsLeft: number;
939
+ avgRating: number;
940
+ };
941
+ nhl: {
942
+ totalRatedGames: number;
943
+ commentsLeft: number;
944
+ avgRating: number;
945
+ };
946
+ mls: {
947
+ totalRatedGames: number;
948
+ commentsLeft: number;
949
+ avgRating: number;
950
+ };
951
+ cfb: {
952
+ totalRatedGames: number;
953
+ commentsLeft: number;
954
+ avgRating: number;
955
+ };
956
+ cbb: {
957
+ totalRatedGames: number;
958
+ commentsLeft: number;
959
+ avgRating: number;
960
+ };
961
+ }>>;
962
+ totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
963
+ commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
964
+ avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
965
+ isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
966
+ deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
967
+ token: import("zod").ZodString;
968
+ usedAt: import("zod").ZodNumber;
969
+ }, "strip", import("zod").ZodTypeAny, {
970
+ token: string;
971
+ usedAt: number;
972
+ }, {
973
+ token: string;
974
+ usedAt: number;
975
+ }>>;
976
+ askedForPushNotifications: import("zod").ZodBoolean;
977
+ acceptedPushNotifications: import("zod").ZodBoolean;
978
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
979
+ registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
980
+ selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
981
+ selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
982
+ lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
983
+ bio: import("zod").ZodOptional<import("zod").ZodString>;
984
+ socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
985
+ instagram: import("zod").ZodOptional<import("zod").ZodString>;
986
+ x: import("zod").ZodOptional<import("zod").ZodString>;
987
+ youtube: import("zod").ZodOptional<import("zod").ZodString>;
988
+ tiktok: import("zod").ZodOptional<import("zod").ZodString>;
989
+ }, "strip", import("zod").ZodTypeAny, {
990
+ instagram?: string | undefined;
991
+ x?: string | undefined;
992
+ youtube?: string | undefined;
993
+ tiktok?: string | undefined;
994
+ }, {
995
+ instagram?: string | undefined;
996
+ x?: string | undefined;
997
+ youtube?: string | undefined;
998
+ tiktok?: string | undefined;
999
+ }>>;
1000
+ platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
1001
+ selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
1002
+ notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
1003
+ allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
1004
+ favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
1005
+ favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
1006
+ }, "strip", import("zod").ZodTypeAny, {
1007
+ allGames?: boolean | undefined;
1008
+ favoriteLeagues?: boolean | undefined;
1009
+ favoriteTeams?: boolean | undefined;
1010
+ }, {
1011
+ allGames?: boolean | undefined;
1012
+ favoriteLeagues?: boolean | undefined;
1013
+ favoriteTeams?: boolean | undefined;
1014
+ }>>;
1015
+ }, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
1016
+ id: string;
1017
+ email: string;
1018
+ username: string;
1019
+ avatarUrl: string;
1020
+ }, {
1021
+ id: string;
1022
+ email: string;
1023
+ username: string;
1024
+ avatarUrl: string;
1025
+ }>>;
1026
+ level: import("zod").ZodNumber;
1027
+ }, "strip", import("zod").ZodTypeAny, {
1028
+ id: string;
1029
+ content: string;
1030
+ user: {
1031
+ id: string;
1032
+ email: string;
1033
+ username: string;
1034
+ avatarUrl: string;
1035
+ };
1036
+ createdAt: number;
1037
+ ratingId: string;
1038
+ parentId: string;
1039
+ level: number;
1040
+ isReply?: boolean | undefined;
1041
+ replyTo?: {
1042
+ id: string;
1043
+ email: string;
1044
+ username: string;
1045
+ avatarUrl: string;
1046
+ } | undefined;
1047
+ }, {
1048
+ id: string;
1049
+ content: string;
1050
+ user: {
1051
+ id: string;
1052
+ email: string;
1053
+ username: string;
1054
+ avatarUrl: string;
1055
+ };
1056
+ createdAt: number;
1057
+ ratingId: string;
1058
+ parentId: string;
1059
+ level: number;
1060
+ isReply?: boolean | undefined;
1061
+ replyTo?: {
1062
+ id: string;
1063
+ email: string;
1064
+ username: string;
1065
+ avatarUrl: string;
1066
+ } | undefined;
1067
+ }>;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
3
+ exports.threadCommentSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const game_1 = require("./game");
6
+ const user_1 = require("./user");
6
7
  exports.ratingSchema = (0, zod_1.object)({
7
8
  id: (0, zod_1.string)(),
8
9
  createdAt: (0, zod_1.number)(),
@@ -25,6 +26,8 @@ exports.ratingSchema = (0, zod_1.object)({
25
26
  (0, zod_1.literal)("nfl"),
26
27
  (0, zod_1.literal)("nhl"),
27
28
  (0, zod_1.literal)("mls"),
29
+ (0, zod_1.literal)("cfb"),
30
+ (0, zod_1.literal)("cbb"),
28
31
  ]),
29
32
  homeTeam: game_1.gameTeamSchema,
30
33
  awayTeam: game_1.gameTeamSchema,
@@ -102,3 +105,14 @@ exports.createRatingSchema = exports.ratingSchema
102
105
  }),
103
106
  id: (0, zod_1.string)().optional(),
104
107
  });
108
+ exports.threadCommentSchema = (0, zod_1.object)({
109
+ id: (0, zod_1.string)(),
110
+ createdAt: (0, zod_1.number)(),
111
+ content: (0, zod_1.string)(),
112
+ user: user_1.reducedUserSchema,
113
+ ratingId: (0, zod_1.string)(),
114
+ parentId: (0, zod_1.string)(),
115
+ isReply: (0, zod_1.boolean)().optional(),
116
+ replyTo: user_1.reducedUserSchema.optional(),
117
+ level: (0, zod_1.number)(),
118
+ });
@@ -799,3 +799,262 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
799
799
  favoriteTeams?: boolean | undefined;
800
800
  } | undefined;
801
801
  }>;
802
+ export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
803
+ id: import("zod").ZodString;
804
+ email: import("zod").ZodString;
805
+ username: import("zod").ZodString;
806
+ avatarUrl: import("zod").ZodString;
807
+ createdAt: import("zod").ZodNumber;
808
+ updatedAt: import("zod").ZodNumber;
809
+ leagues: import("zod").ZodOptional<import("zod").ZodObject<{
810
+ nba: import("zod").ZodObject<{
811
+ totalRatedGames: import("zod").ZodNumber;
812
+ commentsLeft: import("zod").ZodNumber;
813
+ avgRating: import("zod").ZodNumber;
814
+ }, "strip", import("zod").ZodTypeAny, {
815
+ totalRatedGames: number;
816
+ commentsLeft: number;
817
+ avgRating: number;
818
+ }, {
819
+ totalRatedGames: number;
820
+ commentsLeft: number;
821
+ avgRating: number;
822
+ }>;
823
+ ncaa: import("zod").ZodObject<{
824
+ totalRatedGames: import("zod").ZodNumber;
825
+ commentsLeft: import("zod").ZodNumber;
826
+ avgRating: import("zod").ZodNumber;
827
+ }, "strip", import("zod").ZodTypeAny, {
828
+ totalRatedGames: number;
829
+ commentsLeft: number;
830
+ avgRating: number;
831
+ }, {
832
+ totalRatedGames: number;
833
+ commentsLeft: number;
834
+ avgRating: number;
835
+ }>;
836
+ mlb: import("zod").ZodObject<{
837
+ totalRatedGames: import("zod").ZodNumber;
838
+ commentsLeft: import("zod").ZodNumber;
839
+ avgRating: import("zod").ZodNumber;
840
+ }, "strip", import("zod").ZodTypeAny, {
841
+ totalRatedGames: number;
842
+ commentsLeft: number;
843
+ avgRating: number;
844
+ }, {
845
+ totalRatedGames: number;
846
+ commentsLeft: number;
847
+ avgRating: number;
848
+ }>;
849
+ nfl: import("zod").ZodObject<{
850
+ totalRatedGames: import("zod").ZodNumber;
851
+ commentsLeft: import("zod").ZodNumber;
852
+ avgRating: import("zod").ZodNumber;
853
+ }, "strip", import("zod").ZodTypeAny, {
854
+ totalRatedGames: number;
855
+ commentsLeft: number;
856
+ avgRating: number;
857
+ }, {
858
+ totalRatedGames: number;
859
+ commentsLeft: number;
860
+ avgRating: number;
861
+ }>;
862
+ nhl: import("zod").ZodObject<{
863
+ totalRatedGames: import("zod").ZodNumber;
864
+ commentsLeft: import("zod").ZodNumber;
865
+ avgRating: import("zod").ZodNumber;
866
+ }, "strip", import("zod").ZodTypeAny, {
867
+ totalRatedGames: number;
868
+ commentsLeft: number;
869
+ avgRating: number;
870
+ }, {
871
+ totalRatedGames: number;
872
+ commentsLeft: number;
873
+ avgRating: number;
874
+ }>;
875
+ mls: import("zod").ZodObject<{
876
+ totalRatedGames: import("zod").ZodNumber;
877
+ commentsLeft: import("zod").ZodNumber;
878
+ avgRating: import("zod").ZodNumber;
879
+ }, "strip", import("zod").ZodTypeAny, {
880
+ totalRatedGames: number;
881
+ commentsLeft: number;
882
+ avgRating: number;
883
+ }, {
884
+ totalRatedGames: number;
885
+ commentsLeft: number;
886
+ avgRating: number;
887
+ }>;
888
+ cfb: import("zod").ZodObject<{
889
+ totalRatedGames: import("zod").ZodNumber;
890
+ commentsLeft: import("zod").ZodNumber;
891
+ avgRating: import("zod").ZodNumber;
892
+ }, "strip", import("zod").ZodTypeAny, {
893
+ totalRatedGames: number;
894
+ commentsLeft: number;
895
+ avgRating: number;
896
+ }, {
897
+ totalRatedGames: number;
898
+ commentsLeft: number;
899
+ avgRating: number;
900
+ }>;
901
+ cbb: import("zod").ZodObject<{
902
+ totalRatedGames: import("zod").ZodNumber;
903
+ commentsLeft: import("zod").ZodNumber;
904
+ avgRating: import("zod").ZodNumber;
905
+ }, "strip", import("zod").ZodTypeAny, {
906
+ totalRatedGames: number;
907
+ commentsLeft: number;
908
+ avgRating: number;
909
+ }, {
910
+ totalRatedGames: number;
911
+ commentsLeft: number;
912
+ avgRating: number;
913
+ }>;
914
+ }, "strip", import("zod").ZodTypeAny, {
915
+ nba: {
916
+ totalRatedGames: number;
917
+ commentsLeft: number;
918
+ avgRating: number;
919
+ };
920
+ ncaa: {
921
+ totalRatedGames: number;
922
+ commentsLeft: number;
923
+ avgRating: number;
924
+ };
925
+ mlb: {
926
+ totalRatedGames: number;
927
+ commentsLeft: number;
928
+ avgRating: number;
929
+ };
930
+ nfl: {
931
+ totalRatedGames: number;
932
+ commentsLeft: number;
933
+ avgRating: number;
934
+ };
935
+ nhl: {
936
+ totalRatedGames: number;
937
+ commentsLeft: number;
938
+ avgRating: number;
939
+ };
940
+ mls: {
941
+ totalRatedGames: number;
942
+ commentsLeft: number;
943
+ avgRating: number;
944
+ };
945
+ cfb: {
946
+ totalRatedGames: number;
947
+ commentsLeft: number;
948
+ avgRating: number;
949
+ };
950
+ cbb: {
951
+ totalRatedGames: number;
952
+ commentsLeft: number;
953
+ avgRating: number;
954
+ };
955
+ }, {
956
+ nba: {
957
+ totalRatedGames: number;
958
+ commentsLeft: number;
959
+ avgRating: number;
960
+ };
961
+ ncaa: {
962
+ totalRatedGames: number;
963
+ commentsLeft: number;
964
+ avgRating: number;
965
+ };
966
+ mlb: {
967
+ totalRatedGames: number;
968
+ commentsLeft: number;
969
+ avgRating: number;
970
+ };
971
+ nfl: {
972
+ totalRatedGames: number;
973
+ commentsLeft: number;
974
+ avgRating: number;
975
+ };
976
+ nhl: {
977
+ totalRatedGames: number;
978
+ commentsLeft: number;
979
+ avgRating: number;
980
+ };
981
+ mls: {
982
+ totalRatedGames: number;
983
+ commentsLeft: number;
984
+ avgRating: number;
985
+ };
986
+ cfb: {
987
+ totalRatedGames: number;
988
+ commentsLeft: number;
989
+ avgRating: number;
990
+ };
991
+ cbb: {
992
+ totalRatedGames: number;
993
+ commentsLeft: number;
994
+ avgRating: number;
995
+ };
996
+ }>>;
997
+ totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
998
+ commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
999
+ avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
1000
+ isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
1001
+ deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
1002
+ token: import("zod").ZodString;
1003
+ usedAt: import("zod").ZodNumber;
1004
+ }, "strip", import("zod").ZodTypeAny, {
1005
+ token: string;
1006
+ usedAt: number;
1007
+ }, {
1008
+ token: string;
1009
+ usedAt: number;
1010
+ }>>;
1011
+ askedForPushNotifications: import("zod").ZodBoolean;
1012
+ acceptedPushNotifications: import("zod").ZodBoolean;
1013
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
1014
+ registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
1015
+ selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1016
+ selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1017
+ lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
1018
+ bio: import("zod").ZodOptional<import("zod").ZodString>;
1019
+ socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
1020
+ instagram: import("zod").ZodOptional<import("zod").ZodString>;
1021
+ x: import("zod").ZodOptional<import("zod").ZodString>;
1022
+ youtube: import("zod").ZodOptional<import("zod").ZodString>;
1023
+ tiktok: import("zod").ZodOptional<import("zod").ZodString>;
1024
+ }, "strip", import("zod").ZodTypeAny, {
1025
+ instagram?: string | undefined;
1026
+ x?: string | undefined;
1027
+ youtube?: string | undefined;
1028
+ tiktok?: string | undefined;
1029
+ }, {
1030
+ instagram?: string | undefined;
1031
+ x?: string | undefined;
1032
+ youtube?: string | undefined;
1033
+ tiktok?: string | undefined;
1034
+ }>>;
1035
+ platform: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ios">, import("zod").ZodLiteral<"android">, import("zod").ZodLiteral<"macos">, import("zod").ZodLiteral<"windows">, import("zod").ZodLiteral<"web">]>>;
1036
+ selectedTeamsPerLeague: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">>>;
1037
+ notificationSettings: import("zod").ZodOptional<import("zod").ZodObject<{
1038
+ allGames: import("zod").ZodOptional<import("zod").ZodBoolean>;
1039
+ favoriteLeagues: import("zod").ZodOptional<import("zod").ZodBoolean>;
1040
+ favoriteTeams: import("zod").ZodOptional<import("zod").ZodBoolean>;
1041
+ }, "strip", import("zod").ZodTypeAny, {
1042
+ allGames?: boolean | undefined;
1043
+ favoriteLeagues?: boolean | undefined;
1044
+ favoriteTeams?: boolean | undefined;
1045
+ }, {
1046
+ allGames?: boolean | undefined;
1047
+ favoriteLeagues?: boolean | undefined;
1048
+ favoriteTeams?: boolean | undefined;
1049
+ }>>;
1050
+ }, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
1051
+ id: string;
1052
+ email: string;
1053
+ username: string;
1054
+ avatarUrl: string;
1055
+ }, {
1056
+ id: string;
1057
+ email: string;
1058
+ username: string;
1059
+ avatarUrl: string;
1060
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createUserSchema = exports.userSchema = exports.leagueStatsSchema = void 0;
3
+ exports.reducedUserSchema = exports.createUserSchema = exports.userSchema = exports.leagueStatsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.leagueStatsSchema = (0, zod_1.object)({
6
6
  totalRatedGames: (0, zod_1.number)(),
@@ -70,3 +70,9 @@ exports.createUserSchema = exports.userSchema.omit({
70
70
  createdAt: true,
71
71
  updatedAt: true,
72
72
  });
73
+ exports.reducedUserSchema = exports.userSchema.pick({
74
+ id: true,
75
+ email: true,
76
+ username: true,
77
+ avatarUrl: true,
78
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",