rategame-shared 1.1.341 → 1.1.342

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.
@@ -36787,7 +36787,7 @@ export declare const searchGameSchema: z.ZodObject<{
36787
36787
  q: z.ZodOptional<z.ZodString>;
36788
36788
  teamId: z.ZodOptional<z.ZodString>;
36789
36789
  round: z.ZodOptional<z.ZodString>;
36790
- league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"global">]>;
36790
+ league: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"global">]>, z.ZodString]>;
36791
36791
  createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"16hr">, z.ZodLiteral<"Today">, z.ZodLiteral<"Last 3 Days">, z.ZodLiteral<"This Week">, z.ZodLiteral<"This Season">, z.ZodLiteral<"This Month">, z.ZodLiteral<"This Year">, z.ZodLiteral<"2025">, z.ZodLiteral<"2024">, z.ZodLiteral<"All">, z.ZodLiteral<"All Time">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
36792
36792
  feedType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"newest">, z.ZodLiteral<"forYou">]>>;
36793
36793
  sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">, z.ZodLiteral<"ratings.weightedRating.avg:asc">, z.ZodLiteral<"ratings.weightedRating.avg:desc">, z.ZodLiteral<"rating.votes.total:desc">]>>;
@@ -36799,8 +36799,9 @@ export declare const searchGameSchema: z.ZodObject<{
36799
36799
  gamesType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"topRated">, z.ZodLiteral<"mostRated">]>>;
36800
36800
  season: z.ZodOptional<z.ZodString>;
36801
36801
  userId: z.ZodOptional<z.ZodString>;
36802
+ includeCommunityGames: z.ZodOptional<z.ZodString>;
36802
36803
  }, "strip", z.ZodTypeAny, {
36803
- league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
36804
+ league: string;
36804
36805
  offset?: string | undefined;
36805
36806
  round?: string | undefined;
36806
36807
  q?: string | undefined;
@@ -36815,8 +36816,9 @@ export declare const searchGameSchema: z.ZodObject<{
36815
36816
  seasonGroup?: "combined" | "regularSeason" | "playoffs" | undefined;
36816
36817
  gamesType?: "topRated" | "mostRated" | undefined;
36817
36818
  userId?: string | undefined;
36819
+ includeCommunityGames?: string | undefined;
36818
36820
  }, {
36819
- league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
36821
+ league: string;
36820
36822
  offset?: string | undefined;
36821
36823
  round?: string | undefined;
36822
36824
  q?: string | undefined;
@@ -36831,6 +36833,7 @@ export declare const searchGameSchema: z.ZodObject<{
36831
36833
  seasonGroup?: "combined" | "regularSeason" | "playoffs" | undefined;
36832
36834
  gamesType?: "topRated" | "mostRated" | undefined;
36833
36835
  userId?: string | undefined;
36836
+ includeCommunityGames?: string | undefined;
36834
36837
  }>;
36835
36838
  export declare const creatorPickSchema: z.ZodObject<{
36836
36839
  game: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
@@ -299,7 +299,7 @@ exports.searchGameSchema = zod_1.z.object({
299
299
  q: zod_1.z.string().optional(),
300
300
  teamId: zod_1.z.string().optional(),
301
301
  round: zod_1.z.string().optional(),
302
- league: sharedTypes_1.leagueSlug,
302
+ league: sharedTypes_1.leagueSlug.or(zod_1.z.string()),
303
303
  createdAt: sharedTypes_1.timeFilterSchema.optional(),
304
304
  feedType: zod_1.z.union([zod_1.z.literal("newest"), zod_1.z.literal("forYou")]).optional(),
305
305
  sortBy: zod_1.z
@@ -323,6 +323,8 @@ exports.searchGameSchema = zod_1.z.object({
323
323
  .optional(),
324
324
  season: zod_1.z.string().optional(),
325
325
  userId: zod_1.z.string().optional(),
326
+ // Community games filter - "true" to include only community games, "false" to exclude, undefined to include all
327
+ includeCommunityGames: zod_1.z.string().optional(),
326
328
  });
327
329
  exports.creatorPickSchema = zod_1.z.object({
328
330
  game: exports.unionGameSchema,
@@ -716,7 +716,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
716
716
  q: import("zod").ZodOptional<import("zod").ZodString>;
717
717
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
718
718
  round: import("zod").ZodOptional<import("zod").ZodString>;
719
- league: import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"wnba">, import("zod").ZodLiteral<"cwc">, import("zod").ZodLiteral<"global">]>;
719
+ league: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"wnba">, import("zod").ZodLiteral<"cwc">, import("zod").ZodLiteral<"global">]>, import("zod").ZodString]>;
720
720
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"16hr">, import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"Last 3 Days">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"This Year">, import("zod").ZodLiteral<"2025">, import("zod").ZodLiteral<"2024">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"All Time">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
721
721
  sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">, import("zod").ZodLiteral<"game.startedAt:desc">]>>;
722
722
  limit: import("zod").ZodOptional<import("zod").ZodString>;
@@ -732,8 +732,9 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
732
732
  fanCategory: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"winningTeam">, import("zod").ZodLiteral<"losingTeam">, import("zod").ZodLiteral<"neutral">, import("zod").ZodLiteral<"homeTeam">, import("zod").ZodLiteral<"awayTeam">]>>;
733
733
  category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
734
734
  userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
735
+ includeCommunityGames: import("zod").ZodOptional<import("zod").ZodString>;
735
736
  }, "strip", import("zod").ZodTypeAny, {
736
- league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
737
+ league: string;
737
738
  offset?: string | undefined;
738
739
  round?: string | undefined;
739
740
  q?: string | undefined;
@@ -745,6 +746,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
745
746
  teamId?: string | undefined;
746
747
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | "game.startedAt:desc" | undefined;
747
748
  userId?: string | undefined;
749
+ includeCommunityGames?: string | undefined;
748
750
  fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
749
751
  category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
750
752
  userLocation?: string | null | undefined;
@@ -753,7 +755,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
753
755
  mlbTeamLeague?: string | undefined;
754
756
  division?: string | undefined;
755
757
  }, {
756
- league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
758
+ league: string;
757
759
  offset?: string | undefined;
758
760
  round?: string | undefined;
759
761
  q?: string | undefined;
@@ -765,6 +767,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
765
767
  teamId?: string | undefined;
766
768
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | "game.startedAt:desc" | undefined;
767
769
  userId?: string | undefined;
770
+ includeCommunityGames?: string | undefined;
768
771
  fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
769
772
  category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
770
773
  userLocation?: string | null | undefined;
@@ -87,7 +87,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
87
87
  q: (0, zod_1.string)().optional(),
88
88
  teamId: (0, zod_1.string)().optional(),
89
89
  round: (0, zod_1.string)().optional(),
90
- league: sharedTypes_1.leagueSlug,
90
+ league: sharedTypes_1.leagueSlug.or((0, zod_1.string)()),
91
91
  createdAt: sharedTypes_1.timeFilterSchema.optional(),
92
92
  sortBy: sharedTypes_1.ratingSortSchema.optional(),
93
93
  limit: (0, zod_1.string)().optional(),
@@ -109,6 +109,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
109
109
  ]).optional(),
110
110
  category: exports.ratingCategorySchema.optional(),
111
111
  userLocation: (0, zod_1.string)().optional().nullable(),
112
+ // Community games filter - "true" to include, "false" to exclude, undefined to include all
113
+ includeCommunityGames: (0, zod_1.string)().optional(),
112
114
  });
113
115
  exports.ratingLikeSchema = (0, zod_1.object)({
114
116
  ratingId: (0, zod_1.string)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.341",
3
+ "version": "1.1.342",
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",