rategame-shared 1.1.400 → 1.1.402

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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { basketballGameSchema, cfbGameSchema, commonGameSchema, creatorPickSchema, footballGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, groupedRatingAggregateSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, overviewSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
2
+ import { basketballGameSchema, broadcastSchema, cfbGameSchema, commonGameSchema, creatorPickSchema, footballGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, groupedRatingAggregateSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, overviewSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
3
3
  import { sportType } from "../schemas/sharedTypes";
4
4
  export type Game = z.infer<typeof gameSchema>;
5
5
  export type BasketballGame = z.infer<typeof basketballGameSchema>;
@@ -12,6 +12,7 @@ export type FootballGame = z.infer<typeof footballGameSchema>;
12
12
  export type NFLGame = z.infer<typeof nflGameSchema>;
13
13
  export type CFBGame = z.infer<typeof cfbGameSchema>;
14
14
  export type NHLGame = z.infer<typeof nhlGameSchema>;
15
+ export type Broadcast = z.infer<typeof broadcastSchema>;
15
16
  export type CreatorPick = z.infer<typeof creatorPickSchema>;
16
17
  export type WeightedRatingAggregate = z.infer<typeof weightedRatingAggregateSchema>;
17
18
  export type WeightedRatingAggregateOptions = z.infer<typeof weightedRatingAggregateOptionsSchema>;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const chatMessageSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  content: z.ZodString;
5
5
  createdAt: z.ZodAny;
@@ -2325,9 +2325,9 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2325
2325
  avatarUrl?: string | null | undefined;
2326
2326
  badge?: string | undefined;
2327
2327
  }>>>;
2328
- }, {
2328
+ } & {
2329
2329
  replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
2330
- }>, "strip", z.ZodTypeAny, {
2330
+ }, "strip", z.ZodTypeAny, {
2331
2331
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
2332
2332
  id: string;
2333
2333
  content: string;
@@ -2382,7 +2382,7 @@ export declare const chatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2382
2382
  itemId?: string | undefined;
2383
2383
  replyToMessage?: any;
2384
2384
  }>;
2385
- export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extendShape<{
2385
+ export declare const communityChatMessageSchema: z.ZodObject<{
2386
2386
  id: z.ZodString;
2387
2387
  content: z.ZodOptional<z.ZodString>;
2388
2388
  createdAt: z.ZodAny;
@@ -4706,9 +4706,9 @@ export declare const communityChatMessageSchema: z.ZodObject<z.objectUtil.extend
4706
4706
  avatarUrl?: string | null | undefined;
4707
4707
  badge?: string | undefined;
4708
4708
  }>>>;
4709
- }, {
4709
+ } & {
4710
4710
  replyToMessage: z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>;
4711
- }>, "strip", z.ZodTypeAny, {
4711
+ }, "strip", z.ZodTypeAny, {
4712
4712
  type: "text" | "rating" | "game" | "profile" | "list" | "gif" | "trivia";
4713
4713
  id: string;
4714
4714
  user: {
@@ -1560,11 +1560,8 @@ export declare const searchExperienceRatingSchema: z.ZodObject<{
1560
1560
  /**
1561
1561
  * Schema for creating a new experience rating
1562
1562
  */
1563
- export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1563
+ export declare const createExperienceRatingSchema: z.ZodObject<{
1564
1564
  id: z.ZodString;
1565
- createdAt: z.ZodNumber;
1566
- rating: z.ZodNumber;
1567
- comment: z.ZodOptional<z.ZodString>;
1568
1565
  user: z.ZodObject<Pick<{
1569
1566
  id: z.ZodString;
1570
1567
  email: z.ZodString;
@@ -2722,81 +2719,10 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2722
2719
  avatarUrl?: string | null | undefined;
2723
2720
  badge?: string | undefined;
2724
2721
  }>;
2725
- experience: z.ZodObject<{
2726
- id: z.ZodString;
2727
- name: z.ZodString;
2728
- description: z.ZodString;
2729
- thumbnailUrl: z.ZodString;
2730
- gameId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2731
- stadiumId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2732
- stadiumVenueName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2733
- stadiumUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2734
- rating: z.ZodOptional<z.ZodObject<{
2735
- avg: z.ZodNumber;
2736
- votes: z.ZodObject<{
2737
- options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
2738
- total: z.ZodNumber;
2739
- }, "strip", z.ZodTypeAny, {
2740
- total: number;
2741
- options: Record<number, number>;
2742
- }, {
2743
- total: number;
2744
- options: Record<number, number>;
2745
- }>;
2746
- }, "strip", z.ZodTypeAny, {
2747
- avg: number;
2748
- votes: {
2749
- total: number;
2750
- options: Record<number, number>;
2751
- };
2752
- }, {
2753
- avg: number;
2754
- votes: {
2755
- total: number;
2756
- options: Record<number, number>;
2757
- };
2758
- }>>;
2759
- createdAt: z.ZodNumber;
2760
- happenedAt: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2761
- }, "strip", z.ZodTypeAny, {
2762
- id: string;
2763
- name: string;
2764
- description: string;
2765
- createdAt: number;
2766
- thumbnailUrl: string;
2767
- stadiumUrl?: string | null | undefined;
2768
- rating?: {
2769
- avg: number;
2770
- votes: {
2771
- total: number;
2772
- options: Record<number, number>;
2773
- };
2774
- } | undefined;
2775
- stadiumId?: string | null | undefined;
2776
- gameId?: string | null | undefined;
2777
- stadiumVenueName?: string | null | undefined;
2778
- happenedAt?: number | null | undefined;
2779
- }, {
2780
- id: string;
2781
- name: string;
2782
- description: string;
2783
- createdAt: number;
2784
- thumbnailUrl: string;
2785
- stadiumUrl?: string | null | undefined;
2786
- rating?: {
2787
- avg: number;
2788
- votes: {
2789
- total: number;
2790
- options: Record<number, number>;
2791
- };
2792
- } | undefined;
2793
- stadiumId?: string | null | undefined;
2794
- gameId?: string | null | undefined;
2795
- stadiumVenueName?: string | null | undefined;
2796
- happenedAt?: number | null | undefined;
2797
- }>;
2798
- userLikes: z.ZodOptional<z.ZodNumber>;
2799
2722
  updatedAt: z.ZodOptional<z.ZodNumber>;
2723
+ rating: z.ZodNumber;
2724
+ comment: z.ZodOptional<z.ZodString>;
2725
+ userLikes: z.ZodOptional<z.ZodNumber>;
2800
2726
  edited: z.ZodOptional<z.ZodBoolean>;
2801
2727
  userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2802
2728
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2842,7 +2768,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2842
2768
  ratingCount?: number | undefined;
2843
2769
  };
2844
2770
  }>, "many">>;
2845
- }, "createdAt">, {
2771
+ } & {
2846
2772
  experience: z.ZodObject<Omit<{
2847
2773
  id: z.ZodString;
2848
2774
  name: z.ZodString;
@@ -2902,7 +2828,7 @@ export declare const createExperienceRatingSchema: z.ZodObject<z.objectUtil.exte
2902
2828
  stadiumVenueName?: string | null | undefined;
2903
2829
  happenedAt?: number | null | undefined;
2904
2830
  }>;
2905
- }>, "strip", z.ZodTypeAny, {
2831
+ }, "strip", z.ZodTypeAny, {
2906
2832
  id: string;
2907
2833
  user: {
2908
2834
  id: string;