rategame-shared 1.1.87 → 1.1.88

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,6 +1,8 @@
1
1
  import { Timestamp } from "@firebase/firestore";
2
2
  import { z } from "zod";
3
+ import { timeFilterSchema } from "../schemas/sharedTypes";
3
4
  export declare const firestoreTimestampSchema: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
4
5
  type LeagueSlug = "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl";
5
6
  export declare const urlPrefixMap: Record<LeagueSlug, string>;
7
+ export type TimeFilter = z.infer<typeof timeFilterSchema>;
6
8
  export {};
@@ -7862,7 +7862,7 @@ export declare const searchGameSchema: z.ZodObject<{
7862
7862
  teamId: z.ZodOptional<z.ZodString>;
7863
7863
  round: z.ZodOptional<z.ZodString>;
7864
7864
  league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
7865
- createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Today">, z.ZodLiteral<"This Week">, z.ZodLiteral<"All">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
7865
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Today">, z.ZodLiteral<"This Week">, z.ZodLiteral<"This Season">, z.ZodLiteral<"All">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
7866
7866
  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">]>>;
7867
7867
  limit: z.ZodOptional<z.ZodString>;
7868
7868
  offset: z.ZodOptional<z.ZodString>;
@@ -7872,7 +7872,7 @@ export declare const searchGameSchema: z.ZodObject<{
7872
7872
  offset?: string | undefined;
7873
7873
  round?: string | undefined;
7874
7874
  q?: string | undefined;
7875
- createdAt?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
7875
+ createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
7876
7876
  teamId?: string | undefined;
7877
7877
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | "ratings.weightedRating.avg:asc" | "ratings.weightedRating.avg:desc" | undefined;
7878
7878
  limit?: string | undefined;
@@ -7882,7 +7882,7 @@ export declare const searchGameSchema: z.ZodObject<{
7882
7882
  offset?: string | undefined;
7883
7883
  round?: string | undefined;
7884
7884
  q?: string | undefined;
7885
- createdAt?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
7885
+ createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
7886
7886
  teamId?: string | undefined;
7887
7887
  sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | "ratings.weightedRating.avg:asc" | "ratings.weightedRating.avg:desc" | undefined;
7888
7888
  limit?: string | undefined;
@@ -301,7 +301,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
301
301
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
302
302
  round: import("zod").ZodOptional<import("zod").ZodString>;
303
303
  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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>;
304
- createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
304
+ createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
305
305
  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">]>>;
306
306
  limit: import("zod").ZodOptional<import("zod").ZodString>;
307
307
  offset: import("zod").ZodOptional<import("zod").ZodString>;
@@ -319,7 +319,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
319
319
  round?: string | undefined;
320
320
  q?: string | undefined;
321
321
  username?: string | undefined;
322
- createdAt?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
322
+ createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
323
323
  teamId?: string | undefined;
324
324
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
325
325
  limit?: string | undefined;
@@ -336,7 +336,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
336
336
  round?: string | undefined;
337
337
  q?: string | undefined;
338
338
  username?: string | undefined;
339
- createdAt?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
339
+ createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
340
340
  teamId?: string | undefined;
341
341
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
342
342
  limit?: string | undefined;
@@ -1336,7 +1336,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
1336
1336
  spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1337
1337
  viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
1338
1338
  lastSelectedLeague: import("zod").ZodOptional<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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
1339
- lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
1339
+ lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
1340
1340
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
1341
1341
  id: string;
1342
1342
  email: string;
@@ -1924,7 +1924,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
1924
1924
  spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1925
1925
  viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
1926
1926
  lastSelectedLeague: import("zod").ZodOptional<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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
1927
- lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
1927
+ lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
1928
1928
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
1929
1929
  id: string;
1930
1930
  email: string;
@@ -2578,7 +2578,7 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
2578
2578
  spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2579
2579
  viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
2580
2580
  lastSelectedLeague: import("zod").ZodOptional<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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
2581
- lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
2581
+ lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
2582
2582
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
2583
2583
  id: string;
2584
2584
  email: string;
@@ -1,2 +1,2 @@
1
- export declare const timeFilterSchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>;
1
+ export declare const timeFilterSchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>;
2
2
  export declare const leagueSlug: 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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  exports.timeFilterSchema = (0, zod_1.union)([
6
6
  (0, zod_1.literal)("Today"),
7
7
  (0, zod_1.literal)("This Week"),
8
+ (0, zod_1.literal)("This Season"),
8
9
  (0, zod_1.literal)("All"),
9
10
  (0, zod_1.literal)("12h"),
10
11
  (0, zod_1.literal)("daily"),
@@ -605,7 +605,7 @@ export declare const userSchema: import("zod").ZodObject<{
605
605
  spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
606
606
  viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
607
607
  lastSelectedLeague: import("zod").ZodOptional<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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
608
- lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
608
+ lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
609
609
  }, "strip", import("zod").ZodTypeAny, {
610
610
  id: string;
611
611
  email: string;
@@ -737,7 +737,7 @@ export declare const userSchema: import("zod").ZodObject<{
737
737
  spoilersEnabled?: boolean | undefined;
738
738
  viewedChangelogs?: Record<string, boolean> | undefined;
739
739
  lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
740
- lastSelectedFilter?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
740
+ lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
741
741
  }, {
742
742
  id: string;
743
743
  email: string;
@@ -869,7 +869,7 @@ export declare const userSchema: import("zod").ZodObject<{
869
869
  spoilersEnabled?: boolean | undefined;
870
870
  viewedChangelogs?: Record<string, boolean> | undefined;
871
871
  lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
872
- lastSelectedFilter?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
872
+ lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
873
873
  }>;
874
874
  export declare const createUserSchema: import("zod").ZodObject<Omit<{
875
875
  id: import("zod").ZodString;
@@ -1442,7 +1442,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
1442
1442
  spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1443
1443
  viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
1444
1444
  lastSelectedLeague: import("zod").ZodOptional<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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
1445
- lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
1445
+ lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
1446
1446
  }, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
1447
1447
  email: string;
1448
1448
  username: string;
@@ -1563,7 +1563,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
1563
1563
  spoilersEnabled?: boolean | undefined;
1564
1564
  viewedChangelogs?: Record<string, boolean> | undefined;
1565
1565
  lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
1566
- lastSelectedFilter?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
1566
+ lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
1567
1567
  }, {
1568
1568
  email: string;
1569
1569
  username: string;
@@ -1684,7 +1684,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
1684
1684
  spoilersEnabled?: boolean | undefined;
1685
1685
  viewedChangelogs?: Record<string, boolean> | undefined;
1686
1686
  lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
1687
- lastSelectedFilter?: "Today" | "This Week" | "All" | "12h" | "daily" | "weekly" | undefined;
1687
+ lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
1688
1688
  }>;
1689
1689
  export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
1690
1690
  id: import("zod").ZodString;
@@ -2257,7 +2257,7 @@ export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
2257
2257
  spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
2258
2258
  viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
2259
2259
  lastSelectedLeague: import("zod").ZodOptional<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<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
2260
- lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
2260
+ lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
2261
2261
  }, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
2262
2262
  id: string;
2263
2263
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.87",
3
+ "version": "1.1.88",
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",