rategame-shared 1.1.512 → 1.1.513

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, miniLeagueUpcomingGamesResponseDtoSchema, 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, miniLeagueMeResponseDtoSchema, 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,6 +16,9 @@ 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>;
20
+ export type MiniLeagueMemberStanding = z.infer<typeof miniLeagueMemberStandingSchema>;
21
+ export type MiniLeagueMemberStandings = z.infer<typeof miniLeagueMemberStandingsSchema>;
19
22
  export type MiniLeagueUpcomingGamesResponseDto = z.infer<typeof miniLeagueUpcomingGamesResponseDtoSchema>;
20
23
  export type MiniLeagueMemberStats = z.infer<typeof miniLeagueMemberStatsSchema>;
21
24
  export type MiniLeagueRecapResponseDto = z.infer<typeof miniLeagueRecapResponseDtoSchema>;
@@ -16728,6 +16728,67 @@ export declare const miniLeagueLeaderboardResponseDtoSchema: z.ZodObject<{
16728
16728
  } | null | undefined;
16729
16729
  standingsUpdatedAt?: number | undefined;
16730
16730
  }>;
16731
+ /** Current user's materialized standings for a challenge (no full leaderboard). */
16732
+ export declare const miniLeagueMeResponseDtoSchema: z.ZodObject<{
16733
+ currentUserEntry: z.ZodNullable<z.ZodObject<{
16734
+ id: z.ZodString;
16735
+ username: z.ZodString;
16736
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16737
+ badge: z.ZodOptional<z.ZodString>;
16738
+ correctPicks: z.ZodNumber;
16739
+ totalPicks: z.ZodNumber;
16740
+ rank: z.ZodNumber;
16741
+ isTied: z.ZodOptional<z.ZodBoolean>;
16742
+ scorePredictionDiff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16743
+ }, "strip", z.ZodTypeAny, {
16744
+ id: string;
16745
+ username: string;
16746
+ rank: number;
16747
+ totalPicks: number;
16748
+ correctPicks: number;
16749
+ avatarUrl?: string | null | undefined;
16750
+ badge?: string | undefined;
16751
+ isTied?: boolean | undefined;
16752
+ scorePredictionDiff?: number | null | undefined;
16753
+ }, {
16754
+ id: string;
16755
+ username: string;
16756
+ rank: number;
16757
+ totalPicks: number;
16758
+ correctPicks: number;
16759
+ avatarUrl?: string | null | undefined;
16760
+ badge?: string | undefined;
16761
+ isTied?: boolean | undefined;
16762
+ scorePredictionDiff?: number | null | undefined;
16763
+ }>>;
16764
+ standingsUpdatedAt: z.ZodOptional<z.ZodNumber>;
16765
+ }, "strip", z.ZodTypeAny, {
16766
+ currentUserEntry: {
16767
+ id: string;
16768
+ username: string;
16769
+ rank: number;
16770
+ totalPicks: number;
16771
+ correctPicks: number;
16772
+ avatarUrl?: string | null | undefined;
16773
+ badge?: string | undefined;
16774
+ isTied?: boolean | undefined;
16775
+ scorePredictionDiff?: number | null | undefined;
16776
+ } | null;
16777
+ standingsUpdatedAt?: number | undefined;
16778
+ }, {
16779
+ currentUserEntry: {
16780
+ id: string;
16781
+ username: string;
16782
+ rank: number;
16783
+ totalPicks: number;
16784
+ correctPicks: number;
16785
+ avatarUrl?: string | null | undefined;
16786
+ badge?: string | undefined;
16787
+ isTied?: boolean | undefined;
16788
+ scorePredictionDiff?: number | null | undefined;
16789
+ } | null;
16790
+ standingsUpdatedAt?: number | undefined;
16791
+ }>;
16731
16792
  export declare const miniLeagueUpcomingGamesResponseDtoSchema: z.ZodObject<{
16732
16793
  games: z.ZodArray<z.ZodAny, "many">;
16733
16794
  pickedGameIds: z.ZodArray<z.ZodString, "many">;
@@ -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.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.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;
4
4
  const zod_1 = require("zod");
5
5
  const pick_1 = require("./pick");
6
6
  const sharedTypes_1 = require("./sharedTypes");
@@ -305,6 +305,11 @@ 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({
310
+ currentUserEntry: pick_1.pickEmLeaderboardEntrySchema.nullable(),
311
+ standingsUpdatedAt: zod_1.z.number().optional(),
312
+ });
308
313
  exports.miniLeagueUpcomingGamesResponseDtoSchema = zod_1.z.object({
309
314
  games: zod_1.z.array(zod_1.z.any()),
310
315
  pickedGameIds: zod_1.z.array(zod_1.z.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.512",
3
+ "version": "1.1.513",
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",