rategame-shared 1.1.449 → 1.1.450

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.
@@ -91397,6 +91397,7 @@ export declare const pickEmLeaderboardEntrySchema: z.ZodObject<{
91397
91397
  correctPicks: z.ZodNumber;
91398
91398
  totalPicks: z.ZodNumber;
91399
91399
  rank: z.ZodNumber;
91400
+ isTied: z.ZodOptional<z.ZodBoolean>;
91400
91401
  scorePredictionDiff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91401
91402
  }, "strip", z.ZodTypeAny, {
91402
91403
  id: string;
@@ -91406,6 +91407,7 @@ export declare const pickEmLeaderboardEntrySchema: z.ZodObject<{
91406
91407
  rank: number;
91407
91408
  avatarUrl?: string | null | undefined;
91408
91409
  badge?: string | undefined;
91410
+ isTied?: boolean | undefined;
91409
91411
  scorePredictionDiff?: number | null | undefined;
91410
91412
  }, {
91411
91413
  id: string;
@@ -91415,6 +91417,7 @@ export declare const pickEmLeaderboardEntrySchema: z.ZodObject<{
91415
91417
  rank: number;
91416
91418
  avatarUrl?: string | null | undefined;
91417
91419
  badge?: string | undefined;
91420
+ isTied?: boolean | undefined;
91418
91421
  scorePredictionDiff?: number | null | undefined;
91419
91422
  }>;
91420
91423
  export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
@@ -91426,6 +91429,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91426
91429
  correctPicks: z.ZodNumber;
91427
91430
  totalPicks: z.ZodNumber;
91428
91431
  rank: z.ZodNumber;
91432
+ isTied: z.ZodOptional<z.ZodBoolean>;
91429
91433
  scorePredictionDiff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91430
91434
  }, "strip", z.ZodTypeAny, {
91431
91435
  id: string;
@@ -91435,6 +91439,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91435
91439
  rank: number;
91436
91440
  avatarUrl?: string | null | undefined;
91437
91441
  badge?: string | undefined;
91442
+ isTied?: boolean | undefined;
91438
91443
  scorePredictionDiff?: number | null | undefined;
91439
91444
  }, {
91440
91445
  id: string;
@@ -91444,6 +91449,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91444
91449
  rank: number;
91445
91450
  avatarUrl?: string | null | undefined;
91446
91451
  badge?: string | undefined;
91452
+ isTied?: boolean | undefined;
91447
91453
  scorePredictionDiff?: number | null | undefined;
91448
91454
  }>, "many">;
91449
91455
  currentUserEntry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -91454,6 +91460,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91454
91460
  correctPicks: z.ZodNumber;
91455
91461
  totalPicks: z.ZodNumber;
91456
91462
  rank: z.ZodNumber;
91463
+ isTied: z.ZodOptional<z.ZodBoolean>;
91457
91464
  scorePredictionDiff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91458
91465
  }, "strip", z.ZodTypeAny, {
91459
91466
  id: string;
@@ -91463,6 +91470,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91463
91470
  rank: number;
91464
91471
  avatarUrl?: string | null | undefined;
91465
91472
  badge?: string | undefined;
91473
+ isTied?: boolean | undefined;
91466
91474
  scorePredictionDiff?: number | null | undefined;
91467
91475
  }, {
91468
91476
  id: string;
@@ -91472,6 +91480,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91472
91480
  rank: number;
91473
91481
  avatarUrl?: string | null | undefined;
91474
91482
  badge?: string | undefined;
91483
+ isTied?: boolean | undefined;
91475
91484
  scorePredictionDiff?: number | null | undefined;
91476
91485
  }>>>;
91477
91486
  }, "strip", z.ZodTypeAny, {
@@ -91483,6 +91492,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91483
91492
  rank: number;
91484
91493
  avatarUrl?: string | null | undefined;
91485
91494
  badge?: string | undefined;
91495
+ isTied?: boolean | undefined;
91486
91496
  scorePredictionDiff?: number | null | undefined;
91487
91497
  }[];
91488
91498
  currentUserEntry?: {
@@ -91493,6 +91503,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91493
91503
  rank: number;
91494
91504
  avatarUrl?: string | null | undefined;
91495
91505
  badge?: string | undefined;
91506
+ isTied?: boolean | undefined;
91496
91507
  scorePredictionDiff?: number | null | undefined;
91497
91508
  } | null | undefined;
91498
91509
  }, {
@@ -91504,6 +91515,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91504
91515
  rank: number;
91505
91516
  avatarUrl?: string | null | undefined;
91506
91517
  badge?: string | undefined;
91518
+ isTied?: boolean | undefined;
91507
91519
  scorePredictionDiff?: number | null | undefined;
91508
91520
  }[];
91509
91521
  currentUserEntry?: {
@@ -91514,6 +91526,7 @@ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91514
91526
  rank: number;
91515
91527
  avatarUrl?: string | null | undefined;
91516
91528
  badge?: string | undefined;
91529
+ isTied?: boolean | undefined;
91517
91530
  scorePredictionDiff?: number | null | undefined;
91518
91531
  } | null | undefined;
91519
91532
  }>;
@@ -130,7 +130,9 @@ exports.pickEmPicksResponseDtoSchema = zod_1.z.object({
130
130
  rounds: zod_1.z.array(exports.pickEmRoundStatsSchema),
131
131
  userPicks: zod_1.z.array(exports.pickSchema),
132
132
  });
133
- // Leaderboard entry
133
+ // Leaderboard entry. Ranks use standard competition ranking ("1224"): users
134
+ // tied on correctPicks share the same rank and each tied spot consumes a
135
+ // position, so the entry after two users tied at rank 1 gets rank 3.
134
136
  exports.pickEmLeaderboardEntrySchema = zod_1.z.object({
135
137
  id: zod_1.z.string(),
136
138
  username: zod_1.z.string(),
@@ -139,6 +141,7 @@ exports.pickEmLeaderboardEntrySchema = zod_1.z.object({
139
141
  correctPicks: zod_1.z.number(),
140
142
  totalPicks: zod_1.z.number(),
141
143
  rank: zod_1.z.number(),
144
+ isTied: zod_1.z.boolean().optional(),
142
145
  scorePredictionDiff: zod_1.z.number().nullable().optional(),
143
146
  });
144
147
  // Leaderboard response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.449",
3
+ "version": "1.1.450",
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",