rategame-shared 1.1.514 → 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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { miniLeagueSchema, miniLeagueMemberSchema, miniLeagueInvitationSchema, createMiniLeagueDtoSchema, updateMiniLeagueDtoSchema, createMiniLeagueInvitationDtoSchema, miniLeagueInviteLinkSchema, miniLeagueInviteLinkResponseDtoSchema, miniLeagueInviteLinkPreviewDtoSchema, miniLeagueInviteLinkClaimResponseDtoSchema, miniLeagueJoinResponseDtoSchema, miniLeagueInvitationActionResponseDtoSchema, miniLeagueListResponseDtoSchema, miniLeagueMembersResponseDtoSchema, miniLeagueInvitationsResponseDtoSchema, miniLeagueLeaderboardResponseDtoSchema, miniLeagueMeResponseDtoSchema, miniLeagueUpcomingGamesResponseDtoSchema, miniLeagueMemberStandingSchema, miniLeagueMemberStandingsSchema, miniLeagueMemberStatsSchema, miniLeagueRecapResponseDtoSchema, miniLeagueRecapLeagueBreakdownSchema, miniLeagueVisibilitySchema, miniLeagueStatusSchema, miniLeagueMemberRoleSchema, miniLeagueInvitationStatusSchema } from "../schemas/miniLeague";
2
+ import { miniLeagueSchema, miniLeagueMemberSchema, miniLeagueInvitationSchema, createMiniLeagueDtoSchema, updateMiniLeagueDtoSchema, createMiniLeagueInvitationDtoSchema, miniLeagueInviteLinkSchema, miniLeagueInviteLinkResponseDtoSchema, miniLeagueInviteLinkPreviewDtoSchema, miniLeagueInviteLinkClaimResponseDtoSchema, miniLeagueJoinResponseDtoSchema, miniLeagueInvitationActionResponseDtoSchema, miniLeagueListResponseDtoSchema, miniLeagueMembersResponseDtoSchema, miniLeagueInvitationsResponseDtoSchema, miniLeagueLeaderboardResponseDtoSchema, miniLeagueSingleUserResponseDtoSchema, miniLeagueUpcomingGamesResponseDtoSchema, miniLeagueMemberStandingSchema, miniLeagueMemberStandingsSchema, miniLeagueMemberStatsSchema, miniLeagueRecapResponseDtoSchema, miniLeagueRecapLeagueBreakdownSchema, miniLeagueVisibilitySchema, miniLeagueStatusSchema, miniLeagueMemberRoleSchema, miniLeagueInvitationStatusSchema } from "../schemas/miniLeague";
3
3
  export type MiniLeague = z.infer<typeof miniLeagueSchema>;
4
4
  export type MiniLeagueMember = z.infer<typeof miniLeagueMemberSchema>;
5
5
  export type MiniLeagueInvitation = z.infer<typeof miniLeagueInvitationSchema>;
@@ -16,7 +16,7 @@ export type MiniLeagueListResponseDto = z.infer<typeof miniLeagueListResponseDto
16
16
  export type MiniLeagueMembersResponseDto = z.infer<typeof miniLeagueMembersResponseDtoSchema>;
17
17
  export type MiniLeagueInvitationsResponseDto = z.infer<typeof miniLeagueInvitationsResponseDtoSchema>;
18
18
  export type MiniLeagueLeaderboardResponseDto = z.infer<typeof miniLeagueLeaderboardResponseDtoSchema>;
19
- export type MiniLeagueUserResponseDto = z.infer<typeof miniLeagueMeResponseDtoSchema>;
19
+ export type MiniLeagueSingleUserResponseDto = z.infer<typeof miniLeagueSingleUserResponseDtoSchema>;
20
20
  export type MiniLeagueMemberStanding = z.infer<typeof miniLeagueMemberStandingSchema>;
21
21
  export type MiniLeagueMemberStandings = z.infer<typeof miniLeagueMemberStandingsSchema>;
22
22
  export type MiniLeagueUpcomingGamesResponseDto = z.infer<typeof miniLeagueUpcomingGamesResponseDtoSchema>;
@@ -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",
@@ -16845,8 +16845,8 @@ export declare const miniLeagueLeaderboardResponseDtoSchema: z.ZodObject<{
16845
16845
  } | null | undefined;
16846
16846
  standingsUpdatedAt?: number | undefined;
16847
16847
  }>;
16848
- /** Current user's materialized standings for a challenge (no full leaderboard). */
16849
- export declare const miniLeagueMeResponseDtoSchema: z.ZodObject<{
16848
+ /** A single member's materialized standings for a challenge (no full leaderboard). */
16849
+ export declare const miniLeagueSingleUserResponseDtoSchema: z.ZodObject<{
16850
16850
  currentUserEntry: z.ZodNullable<z.ZodObject<{
16851
16851
  id: z.ZodString;
16852
16852
  username: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isMiniLeagueOngoing = exports.getMiniLeaguePlatformLeagues = exports.miniLeagueRecapResponseDtoSchema = exports.miniLeagueMemberStatsSchema = exports.miniLeagueRecapLeagueBreakdownSchema = exports.miniLeagueRecapAchievementSchema = exports.miniLeagueRecapDefiningPickSchema = exports.miniLeagueRecapChartPeriodSchema = exports.miniLeagueRecapPeriodBucketSchema = exports.miniLeagueRecapWeeklySchema = exports.miniLeagueUpcomingGamesResponseDtoSchema = exports.miniLeagueMeResponseDtoSchema = exports.miniLeagueLeaderboardResponseDtoSchema = exports.miniLeagueInvitationsResponseDtoSchema = exports.miniLeagueMembersResponseDtoSchema = exports.miniLeagueListResponseDtoSchema = exports.miniLeagueInvitationActionResponseDtoSchema = exports.miniLeagueJoinResponseDtoSchema = exports.miniLeagueInviteLinkClaimResponseDtoSchema = exports.miniLeagueInviteLinkPreviewDtoSchema = exports.miniLeagueInviteLinkResponseDtoSchema = exports.miniLeagueInviteLinkSchema = exports.createMiniLeagueInvitationDtoSchema = exports.updateMiniLeagueDtoSchema = exports.createMiniLeagueDtoSchema = exports.miniLeagueInvitationSchema = exports.miniLeagueMemberSchema = exports.miniLeagueSchema = exports.miniLeagueInvitationStatusSchema = exports.miniLeagueMemberStandingsSchema = exports.miniLeagueMemberStandingSchema = exports.miniLeagueMemberRoleSchema = exports.miniLeagueStatusSchema = exports.miniLeagueVisibilitySchema = exports.isAtMiniLeagueJoinLimit = exports.isAtMiniLeagueCreateLimit = exports.countMiniLeagueAllotments = exports.MINI_LEAGUE_MAX_MEMBERSHIPS_PER_USER = exports.MINI_LEAGUE_MAX_JOINED_PER_USER = exports.MINI_LEAGUE_MAX_CREATED_PER_USER = exports.MINI_LEAGUE_MAX_PLATFORM_LEAGUES = exports.CBB_CONFERENCES = exports.CFB_CONFERENCES = exports.isCollegePlatform = void 0;
3
+ exports.isMiniLeagueOngoing = exports.getMiniLeaguePlatformLeagues = exports.miniLeagueRecapResponseDtoSchema = exports.miniLeagueMemberStatsSchema = exports.miniLeagueRecapLeagueBreakdownSchema = exports.miniLeagueRecapAchievementSchema = exports.miniLeagueRecapDefiningPickSchema = exports.miniLeagueRecapChartPeriodSchema = exports.miniLeagueRecapPeriodBucketSchema = exports.miniLeagueRecapWeeklySchema = exports.miniLeagueUpcomingGamesResponseDtoSchema = exports.miniLeagueSingleUserResponseDtoSchema = exports.miniLeagueLeaderboardResponseDtoSchema = exports.miniLeagueInvitationsResponseDtoSchema = exports.miniLeagueMembersResponseDtoSchema = exports.miniLeagueListResponseDtoSchema = exports.miniLeagueInvitationActionResponseDtoSchema = exports.miniLeagueJoinResponseDtoSchema = exports.miniLeagueInviteLinkClaimResponseDtoSchema = exports.miniLeagueInviteLinkPreviewDtoSchema = exports.miniLeagueInviteLinkResponseDtoSchema = exports.miniLeagueInviteLinkSchema = exports.createMiniLeagueInvitationDtoSchema = exports.updateMiniLeagueDtoSchema = exports.createMiniLeagueDtoSchema = exports.miniLeagueInvitationSchema = exports.miniLeagueMemberSchema = exports.miniLeagueSchema = exports.miniLeagueInvitationStatusSchema = exports.miniLeagueMemberStandingsSchema = exports.miniLeagueMemberStandingSchema = exports.miniLeagueMemberRoleSchema = exports.miniLeagueStatusSchema = exports.miniLeagueVisibilitySchema = exports.isAtMiniLeagueJoinLimit = exports.isAtMiniLeagueCreateLimit = exports.countMiniLeagueAllotments = exports.MINI_LEAGUE_MAX_MEMBERSHIPS_PER_USER = exports.MINI_LEAGUE_MAX_JOINED_PER_USER = exports.MINI_LEAGUE_MAX_CREATED_PER_USER = exports.MINI_LEAGUE_MAX_PLATFORM_LEAGUES = exports.CBB_CONFERENCES = exports.CFB_CONFERENCES = exports.isCollegePlatform = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const pick_1 = require("./pick");
6
6
  const sharedTypes_1 = require("./sharedTypes");
@@ -305,8 +305,8 @@ exports.miniLeagueLeaderboardResponseDtoSchema = zod_1.z.object({
305
305
  currentUserEntry: pick_1.pickEmLeaderboardEntrySchema.nullable().optional(),
306
306
  standingsUpdatedAt: zod_1.z.number().optional(),
307
307
  });
308
- /** Current user's materialized standings for a challenge (no full leaderboard). */
309
- exports.miniLeagueMeResponseDtoSchema = zod_1.z.object({
308
+ /** A single member's materialized standings for a challenge (no full leaderboard). */
309
+ exports.miniLeagueSingleUserResponseDtoSchema = zod_1.z.object({
310
310
  currentUserEntry: pick_1.pickEmLeaderboardEntrySchema.nullable(),
311
311
  standingsUpdatedAt: zod_1.z.number().optional(),
312
312
  });
@@ -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.514",
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",