rategame-shared 1.1.515 → 1.1.516

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,9 +1,9 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * Tag types available on an article. Extends the trivia entity types
4
- * (team/league/stadium/game) with article-only tags. `rategame` marks an
5
- * article as being about the RateGame app itself; it carries no foreign id and
6
- * links to the app home (Discover on web, the Games tab on mobile).
3
+ * Tag types available on an article. Matches the trivia entity types
4
+ * (team/league/stadium/game/rategame). `rategame` marks an article as being
5
+ * about the RateGame app itself; it carries no foreign id and links to the app
6
+ * home (Discover on web, the Games tab on mobile).
7
7
  */
8
8
  export declare const articleEntityTypeSchema: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
9
9
  /**
@@ -3680,7 +3680,7 @@ export declare const updateArticleSchema: z.ZodObject<{
3680
3680
  export declare const searchArticleSchema: z.ZodObject<{
3681
3681
  q: z.ZodOptional<z.ZodString>;
3682
3682
  userId: z.ZodOptional<z.ZodString>;
3683
- type: z.ZodOptional<z.ZodEnum<["team", "league", "stadium", "game"]>>;
3683
+ type: z.ZodOptional<z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>>;
3684
3684
  teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
3685
3685
  league: z.ZodOptional<z.ZodString>;
3686
3686
  stadiumId: z.ZodOptional<z.ZodString>;
@@ -3695,7 +3695,7 @@ export declare const searchArticleSchema: z.ZodObject<{
3695
3695
  }, "strip", z.ZodTypeAny, {
3696
3696
  offset: string;
3697
3697
  limit: string;
3698
- type?: "stadium" | "league" | "game" | "team" | undefined;
3698
+ type?: "stadium" | "league" | "game" | "team" | "rategame" | undefined;
3699
3699
  q?: string | undefined;
3700
3700
  league?: string | undefined;
3701
3701
  createdAt?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | undefined;
@@ -3708,7 +3708,7 @@ export declare const searchArticleSchema: z.ZodObject<{
3708
3708
  userId?: string | undefined;
3709
3709
  excludeArticleId?: string | undefined;
3710
3710
  }, {
3711
- type?: "stadium" | "league" | "game" | "team" | undefined;
3711
+ type?: "stadium" | "league" | "game" | "team" | "rategame" | undefined;
3712
3712
  offset?: string | undefined;
3713
3713
  q?: string | undefined;
3714
3714
  league?: string | undefined;
@@ -6,10 +6,10 @@ const user_1 = require("./user");
6
6
  const trivia_1 = require("./trivia");
7
7
  const sharedTypes_1 = require("./sharedTypes");
8
8
  /**
9
- * Tag types available on an article. Extends the trivia entity types
10
- * (team/league/stadium/game) with article-only tags. `rategame` marks an
11
- * article as being about the RateGame app itself; it carries no foreign id and
12
- * links to the app home (Discover on web, the Games tab on mobile).
9
+ * Tag types available on an article. Matches the trivia entity types
10
+ * (team/league/stadium/game/rategame). `rategame` marks an article as being
11
+ * about the RateGame app itself; it carries no foreign id and links to the app
12
+ * home (Discover on web, the Games tab on mobile).
13
13
  */
14
14
  exports.articleEntityTypeSchema = zod_1.z.enum([
15
15
  "team",
@@ -2,8 +2,10 @@ import { z } from "zod";
2
2
  /**
3
3
  * Trivia type - identifies which entity this trivia is associated with.
4
4
  * Extensible: add new literals here to support additional entity types.
5
+ * `rategame` marks a shortie as being about the RateGame app itself; it
6
+ * carries no foreign id and links to the app home.
5
7
  */
6
- export declare const triviaTypeSchema: z.ZodEnum<["team", "league", "stadium", "game"]>;
8
+ export declare const triviaTypeSchema: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
7
9
  /**
8
10
  * Entity info schema - admin-curated content for teams, leagues, stadiums.
9
11
  * Displayed at the top of the trivia/teambook details page.
@@ -86,7 +88,8 @@ export declare const triviaContentEntitySchema: z.ZodObject<{
86
88
  }>;
87
89
  /**
88
90
  * Trivia document schema
89
- * Represents a user-submitted fan contribution (trivia) for a team, league, or stadium.
91
+ * Represents a user-submitted fan contribution (trivia) for a team, league,
92
+ * stadium, game, or the RateGame app itself.
90
93
  */
91
94
  export declare const triviaSchema: z.ZodObject<{
92
95
  id: z.ZodString;
@@ -96,7 +99,7 @@ export declare const triviaSchema: z.ZodObject<{
96
99
  imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
97
100
  imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
98
101
  imageUrlSmall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
99
- type: z.ZodEnum<["team", "league", "stadium", "game"]>;
102
+ type: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
100
103
  teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
101
104
  league: z.ZodOptional<z.ZodString>;
102
105
  stadiumId: z.ZodOptional<z.ZodString>;
@@ -1757,7 +1760,7 @@ export declare const triviaSchema: z.ZodObject<{
1757
1760
  createdAt: z.ZodNumber;
1758
1761
  userLikes: z.ZodOptional<z.ZodNumber>;
1759
1762
  }, "strip", z.ZodTypeAny, {
1760
- type: "stadium" | "league" | "game" | "team";
1763
+ type: "stadium" | "league" | "game" | "team" | "rategame";
1761
1764
  id: string;
1762
1765
  title: string;
1763
1766
  description: string;
@@ -1789,7 +1792,7 @@ export declare const triviaSchema: z.ZodObject<{
1789
1792
  thisDayInSportsDate?: string | null | undefined;
1790
1793
  thisDayInSportsDateFull?: string | null | undefined;
1791
1794
  }, {
1792
- type: "stadium" | "league" | "game" | "team";
1795
+ type: "stadium" | "league" | "game" | "team" | "rategame";
1793
1796
  id: string;
1794
1797
  title: string;
1795
1798
  description: string;
@@ -1835,7 +1838,7 @@ export declare const createTriviaSchema: z.ZodObject<{
1835
1838
  title: z.ZodString;
1836
1839
  description: z.ZodString;
1837
1840
  imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1838
- type: z.ZodEnum<["team", "league", "stadium", "game"]>;
1841
+ type: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
1839
1842
  teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1840
1843
  league: z.ZodOptional<z.ZodString>;
1841
1844
  stadiumId: z.ZodOptional<z.ZodString>;
@@ -3494,7 +3497,7 @@ export declare const createTriviaSchema: z.ZodObject<{
3494
3497
  badge?: string | undefined;
3495
3498
  }>;
3496
3499
  }, "strip", z.ZodTypeAny, {
3497
- type: "stadium" | "league" | "game" | "team";
3500
+ type: "stadium" | "league" | "game" | "team" | "rategame";
3498
3501
  title: string;
3499
3502
  description: string;
3500
3503
  user: {
@@ -3521,7 +3524,7 @@ export declare const createTriviaSchema: z.ZodObject<{
3521
3524
  thisDayInSportsDate?: string | null | undefined;
3522
3525
  thisDayInSportsDateFull?: string | null | undefined;
3523
3526
  }, {
3524
- type: "stadium" | "league" | "game" | "team";
3527
+ type: "stadium" | "league" | "game" | "team" | "rategame";
3525
3528
  title: string;
3526
3529
  description: string;
3527
3530
  user: {
@@ -3553,7 +3556,7 @@ export declare const createTriviaSchema: z.ZodObject<{
3553
3556
  */
3554
3557
  export declare const searchTriviaSchema: z.ZodObject<{
3555
3558
  q: z.ZodOptional<z.ZodString>;
3556
- type: z.ZodOptional<z.ZodEnum<["team", "league", "stadium", "game"]>>;
3559
+ type: z.ZodOptional<z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>>;
3557
3560
  teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
3558
3561
  league: z.ZodOptional<z.ZodString>;
3559
3562
  leagues: z.ZodOptional<z.ZodString>;
@@ -3572,7 +3575,7 @@ export declare const searchTriviaSchema: z.ZodObject<{
3572
3575
  }, "strip", z.ZodTypeAny, {
3573
3576
  offset: string;
3574
3577
  limit: string;
3575
- type?: "stadium" | "league" | "game" | "team" | undefined;
3578
+ type?: "stadium" | "league" | "game" | "team" | "rategame" | undefined;
3576
3579
  q?: string | undefined;
3577
3580
  league?: string | undefined;
3578
3581
  createdAt?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | undefined;
@@ -3588,7 +3591,7 @@ export declare const searchTriviaSchema: z.ZodObject<{
3588
3591
  thisDayInSportsDate?: string | undefined;
3589
3592
  leagueOrStadiumLeague?: string | undefined;
3590
3593
  }, {
3591
- type?: "stadium" | "league" | "game" | "team" | undefined;
3594
+ type?: "stadium" | "league" | "game" | "team" | "rategame" | undefined;
3592
3595
  offset?: string | undefined;
3593
3596
  q?: string | undefined;
3594
3597
  league?: string | undefined;
@@ -7,8 +7,16 @@ const sharedTypes_1 = require("./sharedTypes");
7
7
  /**
8
8
  * Trivia type - identifies which entity this trivia is associated with.
9
9
  * Extensible: add new literals here to support additional entity types.
10
+ * `rategame` marks a shortie as being about the RateGame app itself; it
11
+ * carries no foreign id and links to the app home.
10
12
  */
11
- exports.triviaTypeSchema = zod_1.z.enum(["team", "league", "stadium", "game"]);
13
+ exports.triviaTypeSchema = zod_1.z.enum([
14
+ "team",
15
+ "league",
16
+ "stadium",
17
+ "game",
18
+ "rategame",
19
+ ]);
12
20
  /**
13
21
  * Entity info schema - admin-curated content for teams, leagues, stadiums.
14
22
  * Displayed at the top of the trivia/teambook details page.
@@ -47,7 +55,8 @@ const thisDayInSportsDateSchema = zod_1.z.string().regex(/^\d{2}-\d{2}$/);
47
55
  const thisDayInSportsDateFullSchema = zod_1.z.string().regex(/^\d{4}-\d{2}-\d{2}$/);
48
56
  /**
49
57
  * Trivia document schema
50
- * Represents a user-submitted fan contribution (trivia) for a team, league, or stadium.
58
+ * Represents a user-submitted fan contribution (trivia) for a team, league,
59
+ * stadium, game, or the RateGame app itself.
51
60
  */
52
61
  exports.triviaSchema = zod_1.z.object({
53
62
  id: zod_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.515",
3
+ "version": "1.1.516",
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",