rategame-shared 1.1.534 → 1.1.535
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.
|
@@ -96,6 +96,7 @@ export declare const pollPredictionRoundSchema: z.ZodObject<{
|
|
|
96
96
|
tieEndRank?: number | undefined;
|
|
97
97
|
}>, "many">>;
|
|
98
98
|
chalkScore: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
participantCount: z.ZodOptional<z.ZodNumber>;
|
|
99
100
|
createdAt: z.ZodNumber;
|
|
100
101
|
updatedAt: z.ZodNumber;
|
|
101
102
|
scoredAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -133,6 +134,7 @@ export declare const pollPredictionRoundSchema: z.ZodObject<{
|
|
|
133
134
|
tieEndRank?: number | undefined;
|
|
134
135
|
}[] | undefined;
|
|
135
136
|
chalkScore?: number | undefined;
|
|
137
|
+
participantCount?: number | undefined;
|
|
136
138
|
scoredAt?: number | undefined;
|
|
137
139
|
}, {
|
|
138
140
|
id: string;
|
|
@@ -168,6 +170,7 @@ export declare const pollPredictionRoundSchema: z.ZodObject<{
|
|
|
168
170
|
tieEndRank?: number | undefined;
|
|
169
171
|
}[] | undefined;
|
|
170
172
|
chalkScore?: number | undefined;
|
|
173
|
+
participantCount?: number | undefined;
|
|
171
174
|
scoredAt?: number | undefined;
|
|
172
175
|
}>;
|
|
173
176
|
export declare const pollPredictionBallotTeamResultSchema: z.ZodObject<{
|
|
@@ -2319,9 +2322,9 @@ export declare const pollPredictionBallotSchema: z.ZodObject<{
|
|
|
2319
2322
|
}[];
|
|
2320
2323
|
} | undefined;
|
|
2321
2324
|
chalkScore?: number | undefined;
|
|
2325
|
+
participantCount?: number | undefined;
|
|
2322
2326
|
scoredAt?: number | undefined;
|
|
2323
2327
|
chalkDelta?: number | undefined;
|
|
2324
|
-
participantCount?: number | undefined;
|
|
2325
2328
|
}, {
|
|
2326
2329
|
id: string;
|
|
2327
2330
|
user: {
|
|
@@ -2397,9 +2400,9 @@ export declare const pollPredictionBallotSchema: z.ZodObject<{
|
|
|
2397
2400
|
}[];
|
|
2398
2401
|
} | undefined;
|
|
2399
2402
|
chalkScore?: number | undefined;
|
|
2403
|
+
participantCount?: number | undefined;
|
|
2400
2404
|
scoredAt?: number | undefined;
|
|
2401
2405
|
chalkDelta?: number | undefined;
|
|
2402
|
-
participantCount?: number | undefined;
|
|
2403
2406
|
}>;
|
|
2404
2407
|
export declare const pollPredictionSubmitBallotDtoSchema: z.ZodObject<{
|
|
2405
2408
|
teamIds: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
@@ -2479,6 +2482,7 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
2479
2482
|
tieEndRank?: number | undefined;
|
|
2480
2483
|
}>, "many">>;
|
|
2481
2484
|
chalkScore: z.ZodOptional<z.ZodNumber>;
|
|
2485
|
+
participantCount: z.ZodOptional<z.ZodNumber>;
|
|
2482
2486
|
createdAt: z.ZodNumber;
|
|
2483
2487
|
updatedAt: z.ZodNumber;
|
|
2484
2488
|
scoredAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2516,6 +2520,7 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
2516
2520
|
tieEndRank?: number | undefined;
|
|
2517
2521
|
}[] | undefined;
|
|
2518
2522
|
chalkScore?: number | undefined;
|
|
2523
|
+
participantCount?: number | undefined;
|
|
2519
2524
|
scoredAt?: number | undefined;
|
|
2520
2525
|
}, {
|
|
2521
2526
|
id: string;
|
|
@@ -2551,6 +2556,7 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
2551
2556
|
tieEndRank?: number | undefined;
|
|
2552
2557
|
}[] | undefined;
|
|
2553
2558
|
chalkScore?: number | undefined;
|
|
2559
|
+
participantCount?: number | undefined;
|
|
2554
2560
|
scoredAt?: number | undefined;
|
|
2555
2561
|
}>;
|
|
2556
2562
|
ballot: z.ZodNullable<z.ZodObject<{
|
|
@@ -4509,9 +4515,9 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
4509
4515
|
}[];
|
|
4510
4516
|
} | undefined;
|
|
4511
4517
|
chalkScore?: number | undefined;
|
|
4518
|
+
participantCount?: number | undefined;
|
|
4512
4519
|
scoredAt?: number | undefined;
|
|
4513
4520
|
chalkDelta?: number | undefined;
|
|
4514
|
-
participantCount?: number | undefined;
|
|
4515
4521
|
}, {
|
|
4516
4522
|
id: string;
|
|
4517
4523
|
user: {
|
|
@@ -4587,9 +4593,9 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
4587
4593
|
}[];
|
|
4588
4594
|
} | undefined;
|
|
4589
4595
|
chalkScore?: number | undefined;
|
|
4596
|
+
participantCount?: number | undefined;
|
|
4590
4597
|
scoredAt?: number | undefined;
|
|
4591
4598
|
chalkDelta?: number | undefined;
|
|
4592
|
-
participantCount?: number | undefined;
|
|
4593
4599
|
}>>;
|
|
4594
4600
|
}, "strip", z.ZodTypeAny, {
|
|
4595
4601
|
round: {
|
|
@@ -4626,6 +4632,7 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
4626
4632
|
tieEndRank?: number | undefined;
|
|
4627
4633
|
}[] | undefined;
|
|
4628
4634
|
chalkScore?: number | undefined;
|
|
4635
|
+
participantCount?: number | undefined;
|
|
4629
4636
|
scoredAt?: number | undefined;
|
|
4630
4637
|
};
|
|
4631
4638
|
ballot: {
|
|
@@ -4703,9 +4710,9 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
4703
4710
|
}[];
|
|
4704
4711
|
} | undefined;
|
|
4705
4712
|
chalkScore?: number | undefined;
|
|
4713
|
+
participantCount?: number | undefined;
|
|
4706
4714
|
scoredAt?: number | undefined;
|
|
4707
4715
|
chalkDelta?: number | undefined;
|
|
4708
|
-
participantCount?: number | undefined;
|
|
4709
4716
|
} | null;
|
|
4710
4717
|
}, {
|
|
4711
4718
|
round: {
|
|
@@ -4742,6 +4749,7 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
4742
4749
|
tieEndRank?: number | undefined;
|
|
4743
4750
|
}[] | undefined;
|
|
4744
4751
|
chalkScore?: number | undefined;
|
|
4752
|
+
participantCount?: number | undefined;
|
|
4745
4753
|
scoredAt?: number | undefined;
|
|
4746
4754
|
};
|
|
4747
4755
|
ballot: {
|
|
@@ -4819,9 +4827,9 @@ export declare const pollPredictionHomeResponseSchema: z.ZodObject<{
|
|
|
4819
4827
|
}[];
|
|
4820
4828
|
} | undefined;
|
|
4821
4829
|
chalkScore?: number | undefined;
|
|
4830
|
+
participantCount?: number | undefined;
|
|
4822
4831
|
scoredAt?: number | undefined;
|
|
4823
4832
|
chalkDelta?: number | undefined;
|
|
4824
|
-
participantCount?: number | undefined;
|
|
4825
4833
|
} | null;
|
|
4826
4834
|
}>;
|
|
4827
4835
|
export declare const pollPredictionLeaderboardEntrySchema: z.ZodObject<Pick<{
|
|
@@ -12606,9 +12614,9 @@ export declare const pollPredictionUserBallotsResponseSchema: z.ZodObject<{
|
|
|
12606
12614
|
}[];
|
|
12607
12615
|
} | undefined;
|
|
12608
12616
|
chalkScore?: number | undefined;
|
|
12617
|
+
participantCount?: number | undefined;
|
|
12609
12618
|
scoredAt?: number | undefined;
|
|
12610
12619
|
chalkDelta?: number | undefined;
|
|
12611
|
-
participantCount?: number | undefined;
|
|
12612
12620
|
}, {
|
|
12613
12621
|
id: string;
|
|
12614
12622
|
user: {
|
|
@@ -12684,9 +12692,9 @@ export declare const pollPredictionUserBallotsResponseSchema: z.ZodObject<{
|
|
|
12684
12692
|
}[];
|
|
12685
12693
|
} | undefined;
|
|
12686
12694
|
chalkScore?: number | undefined;
|
|
12695
|
+
participantCount?: number | undefined;
|
|
12687
12696
|
scoredAt?: number | undefined;
|
|
12688
12697
|
chalkDelta?: number | undefined;
|
|
12689
|
-
participantCount?: number | undefined;
|
|
12690
12698
|
}>, "many">;
|
|
12691
12699
|
}, "strip", z.ZodTypeAny, {
|
|
12692
12700
|
summary: {
|
|
@@ -12776,9 +12784,9 @@ export declare const pollPredictionUserBallotsResponseSchema: z.ZodObject<{
|
|
|
12776
12784
|
}[];
|
|
12777
12785
|
} | undefined;
|
|
12778
12786
|
chalkScore?: number | undefined;
|
|
12787
|
+
participantCount?: number | undefined;
|
|
12779
12788
|
scoredAt?: number | undefined;
|
|
12780
12789
|
chalkDelta?: number | undefined;
|
|
12781
|
-
participantCount?: number | undefined;
|
|
12782
12790
|
}[];
|
|
12783
12791
|
}, {
|
|
12784
12792
|
summary: {
|
|
@@ -12868,8 +12876,8 @@ export declare const pollPredictionUserBallotsResponseSchema: z.ZodObject<{
|
|
|
12868
12876
|
}[];
|
|
12869
12877
|
} | undefined;
|
|
12870
12878
|
chalkScore?: number | undefined;
|
|
12879
|
+
participantCount?: number | undefined;
|
|
12871
12880
|
scoredAt?: number | undefined;
|
|
12872
12881
|
chalkDelta?: number | undefined;
|
|
12873
|
-
participantCount?: number | undefined;
|
|
12874
12882
|
}[];
|
|
12875
12883
|
}>;
|
|
@@ -45,8 +45,10 @@ exports.pollPredictionRoundSchema = zod_1.z.object({
|
|
|
45
45
|
})),
|
|
46
46
|
// Complete official AP poll captured during refresh and used to grade this round.
|
|
47
47
|
actualTeams: zod_1.z.array(exports.pollPredictionTeamSchema).optional(),
|
|
48
|
-
//
|
|
48
|
+
// Rank delta of the unchanged previous poll's first 25 teams, before bonuses; the points baseline.
|
|
49
49
|
chalkScore: zod_1.z.number().optional(),
|
|
50
|
+
// Ranked users for this week, including prior participants with zero-point skipped weeks.
|
|
51
|
+
participantCount: zod_1.z.number().int().min(0).optional(),
|
|
50
52
|
createdAt: zod_1.z.number(),
|
|
51
53
|
updatedAt: zod_1.z.number(),
|
|
52
54
|
// Unix milliseconds when results were scored and materialized.
|
|
@@ -69,19 +71,19 @@ exports.pollPredictionBallotTeamResultSchema = zod_1.z.object({
|
|
|
69
71
|
exports.pollPredictionBallotScoreSchema = zod_1.z.object({
|
|
70
72
|
// Sum of rank distances over every team on either list, before bonuses.
|
|
71
73
|
totalDelta: zod_1.z.number().int().min(0),
|
|
72
|
-
// Number of zero-delta picks; each earns
|
|
74
|
+
// Number of zero-delta picks; each earns +1 and this is the first points tiebreaker.
|
|
73
75
|
bullseyes: zod_1.z.number().int().min(0),
|
|
74
|
-
// Previous-poll teams omitted by both the user and the new AP poll; each earns
|
|
76
|
+
// Previous-poll teams omitted by both the user and the new AP poll; each earns +3.
|
|
75
77
|
calledDrops: zod_1.z.number().int().min(0),
|
|
76
|
-
// New AP entrants absent from the previous poll that the user included; each earns
|
|
78
|
+
// New AP entrants absent from the previous poll that the user included; each earns +3.
|
|
77
79
|
calledClimbs: zod_1.z.number().int().min(0),
|
|
78
|
-
// First five picks all occupy accepted AP slots; earns
|
|
80
|
+
// First five picks all occupy accepted AP slots; earns +5.
|
|
79
81
|
perfectTopFive: zod_1.z.boolean(),
|
|
80
|
-
// User picked the new AP #1 at #1 and it differs from the previous #1; earns
|
|
82
|
+
// User picked the new AP #1 at #1 and it differs from the previous #1; earns +3.
|
|
81
83
|
calledNewNumberOne: zod_1.z.boolean(),
|
|
82
|
-
// Sum of
|
|
83
|
-
bonus: zod_1.z.number().int().
|
|
84
|
-
//
|
|
84
|
+
// Sum of positive bonus points, including bullseyes.
|
|
85
|
+
bonus: zod_1.z.number().int().min(0),
|
|
86
|
+
// Weekly points: chalk's rank delta - totalDelta + bonus. Higher wins; negative points are allowed.
|
|
85
87
|
total: zod_1.z.number().int(),
|
|
86
88
|
// Sum of deltas for teams in either top 10; smaller wins the second score tiebreaker.
|
|
87
89
|
topTenMiss: zod_1.z.number().int().min(0),
|
|
@@ -95,7 +97,7 @@ exports.pollPredictionBallotScoreSchema = zod_1.z.object({
|
|
|
95
97
|
label: zod_1.z.string(),
|
|
96
98
|
// Number of awards in this category; boolean awards are represented as 0 or 1.
|
|
97
99
|
count: zod_1.z.number().int(),
|
|
98
|
-
// Total
|
|
100
|
+
// Total bonus points for this category, not its per-award value.
|
|
99
101
|
points: zod_1.z.number().int(),
|
|
100
102
|
})),
|
|
101
103
|
});
|
|
@@ -113,11 +115,11 @@ exports.pollPredictionBallotSchema = zod_1.z.object({
|
|
|
113
115
|
addedTeams: zod_1.z.array(exports.pollPredictionTeamSchema),
|
|
114
116
|
// Previous AP teams not picked, materialized for the "Out" summary; not additional picks.
|
|
115
117
|
removedTeams: zod_1.z.array(exports.pollPredictionTeamSchema),
|
|
116
|
-
// This round's chalk
|
|
118
|
+
// This round's chalk rank delta, before bonuses, copied for standalone results/feed cards.
|
|
117
119
|
chalkScore: zod_1.z.number().optional(),
|
|
118
|
-
// chalkScore - score.
|
|
120
|
+
// chalkScore - score.totalDelta: rank improvement over chalk, before adding bonuses.
|
|
119
121
|
chalkDelta: zod_1.z.number().optional(),
|
|
120
|
-
// Weekly leaderboard size, including prior participants
|
|
122
|
+
// Weekly leaderboard size, including prior participants with zero-point skipped weeks.
|
|
121
123
|
participantCount: zod_1.z.number().int().optional(),
|
|
122
124
|
// Materialized grading details, available after the rankings refresh scores the ballot.
|
|
123
125
|
score: exports.pollPredictionBallotScoreSchema.optional(),
|
|
@@ -156,7 +158,7 @@ exports.pollPredictionLeaderboardEntrySchema = exports.pollPredictionBallotSchem
|
|
|
156
158
|
tiebreakAt: true,
|
|
157
159
|
})
|
|
158
160
|
.extend({
|
|
159
|
-
// Weekly entry origin; chalk
|
|
161
|
+
// Weekly entry origin; chalk marks a skipped week with zero points and no bonuses, not a ballot. Omitted on aggregates.
|
|
160
162
|
source: zod_1.z.enum(["submitted", "chalk"]).optional(),
|
|
161
163
|
// Lightweight score totals for leaderboard rows; detailed results stay on actual ballots.
|
|
162
164
|
score: exports.pollPredictionBallotScoreSchema
|
|
@@ -168,26 +170,26 @@ exports.pollPredictionLeaderboardEntrySchema = exports.pollPredictionBallotSchem
|
|
|
168
170
|
.optional(),
|
|
169
171
|
});
|
|
170
172
|
exports.pollPredictionUserSummarySchema = zod_1.z.object({
|
|
171
|
-
// User's leaderboard position in the requested season
|
|
173
|
+
// User's leaderboard position in the requested season.
|
|
172
174
|
rank: zod_1.z.number().int(),
|
|
173
|
-
// Sum of
|
|
175
|
+
// Sum of weekly points this season; skipped weeks contribute zero.
|
|
174
176
|
total: zod_1.z.number().int(),
|
|
175
177
|
// Sum of bullseyes across the graded weeks in this scope.
|
|
176
178
|
bullseyes: zod_1.z.number().int(),
|
|
177
|
-
// Graded weeks, including skipped weeks
|
|
179
|
+
// Graded weeks since first participation, including skipped weeks with zero points; not the ballot count.
|
|
178
180
|
weekCount: zod_1.z.number().int(),
|
|
179
181
|
});
|
|
180
182
|
exports.pollPredictionLeaderboardResponseSchema = zod_1.z.object({
|
|
181
183
|
// Materialized leaderboard rows in final ranking order.
|
|
182
184
|
entries: zod_1.z.array(exports.pollPredictionLeaderboardEntrySchema),
|
|
183
|
-
// Chalk
|
|
185
|
+
// Chalk rank delta before bonuses for the requested week, not points for a submitted chalk ballot.
|
|
184
186
|
chalkScore: zod_1.z.number().optional(),
|
|
185
187
|
// Scored week numbers available in the leaderboard's week selector.
|
|
186
188
|
availableWeeks: zod_1.z.array(zod_1.z.number().int()).optional(),
|
|
187
189
|
});
|
|
188
190
|
exports.pollPredictionUserBallotsResponseSchema = zod_1.z.object({
|
|
189
191
|
user: user_1.reducedUserSchema.omit({ email: true }),
|
|
190
|
-
// Materialized season
|
|
192
|
+
// Materialized season totals; skipped weeks contribute zero points.
|
|
191
193
|
summary: exports.pollPredictionUserSummarySchema,
|
|
192
194
|
// Actual submitted ballots only; skipped weeks appear in totals but not in this feed.
|
|
193
195
|
ballots: zod_1.z.array(exports.pollPredictionBallotSchema),
|