rategame-shared 1.1.537 → 1.1.538
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 { pollPredictionLeagueSchema,
|
|
2
|
+
import { pollPredictionLeagueSchema, pollPredictionBallotSchema, pollPredictionBallotScoreSchema, pollPredictionBallotTeamResultSchema, pollPredictionHomeResponseSchema, pollPredictionLeaderboardEntrySchema, pollPredictionLeaderboardResponseSchema, pollPredictionRoundSchema, pollPredictionRoundStatusSchema, pollPredictionSubmitBallotDtoSchema, pollPredictionTeamSchema, pollPredictionUserBallotsResponseSchema } from "../schemas/pollPrediction";
|
|
3
3
|
export type PollPredictionLeague = z.infer<typeof pollPredictionLeagueSchema>;
|
|
4
4
|
export type PollPredictionTeam = z.infer<typeof pollPredictionTeamSchema>;
|
|
5
5
|
export type PollPredictionRoundStatus = z.infer<typeof pollPredictionRoundStatusSchema>;
|
|
@@ -12,6 +12,3 @@ export type PollPredictionHomeResponse = z.infer<typeof pollPredictionHomeRespon
|
|
|
12
12
|
export type PollPredictionLeaderboardEntry = z.infer<typeof pollPredictionLeaderboardEntrySchema>;
|
|
13
13
|
export type PollPredictionLeaderboardResponse = z.infer<typeof pollPredictionLeaderboardResponseSchema>;
|
|
14
14
|
export type PollPredictionUserBallotsResponse = z.infer<typeof pollPredictionUserBallotsResponseSchema>;
|
|
15
|
-
export type PollPredictionInviteLinkResponse = z.infer<typeof pollPredictionInviteLinkResponseSchema>;
|
|
16
|
-
export type PollPredictionInvitePreview = z.infer<typeof pollPredictionInvitePreviewSchema>;
|
|
17
|
-
export type PollPredictionInviteLink = z.infer<typeof pollPredictionInviteLinkSchema>;
|
|
@@ -12911,189 +12911,3 @@ export declare const pollPredictionUserBallotsResponseSchema: z.ZodObject<{
|
|
|
12911
12911
|
chalkDelta?: number | undefined;
|
|
12912
12912
|
}[];
|
|
12913
12913
|
}>;
|
|
12914
|
-
export declare const pollPredictionInviteLinkResponseSchema: z.ZodObject<{
|
|
12915
|
-
token: z.ZodString;
|
|
12916
|
-
url: z.ZodString;
|
|
12917
|
-
}, "strip", z.ZodTypeAny, {
|
|
12918
|
-
url: string;
|
|
12919
|
-
token: string;
|
|
12920
|
-
}, {
|
|
12921
|
-
url: string;
|
|
12922
|
-
token: string;
|
|
12923
|
-
}>;
|
|
12924
|
-
export declare const pollPredictionInvitePreviewSchema: z.ZodObject<Pick<{
|
|
12925
|
-
id: z.ZodString;
|
|
12926
|
-
league: z.ZodEnum<["cfb", "cbb"]>;
|
|
12927
|
-
season: z.ZodNumber;
|
|
12928
|
-
week: z.ZodNumber;
|
|
12929
|
-
status: z.ZodUnion<[z.ZodLiteral<"waiting">, z.ZodLiteral<"open">, z.ZodLiteral<"locked">, z.ZodLiteral<"scored">]>;
|
|
12930
|
-
opensAt: z.ZodNumber;
|
|
12931
|
-
locksAt: z.ZodNumber;
|
|
12932
|
-
resultsAt: z.ZodNumber;
|
|
12933
|
-
baselineTeams: z.ZodArray<z.ZodObject<{
|
|
12934
|
-
id: z.ZodString;
|
|
12935
|
-
league: z.ZodEnum<["cfb", "cbb"]>;
|
|
12936
|
-
name: z.ZodString;
|
|
12937
|
-
wins: z.ZodOptional<z.ZodNumber>;
|
|
12938
|
-
losses: z.ZodOptional<z.ZodNumber>;
|
|
12939
|
-
rank: z.ZodNumber;
|
|
12940
|
-
tieEndRank: z.ZodOptional<z.ZodNumber>;
|
|
12941
|
-
}, "strip", z.ZodTypeAny, {
|
|
12942
|
-
id: string;
|
|
12943
|
-
name: string;
|
|
12944
|
-
league: "cbb" | "cfb";
|
|
12945
|
-
rank: number;
|
|
12946
|
-
wins?: number | undefined;
|
|
12947
|
-
losses?: number | undefined;
|
|
12948
|
-
tieEndRank?: number | undefined;
|
|
12949
|
-
}, {
|
|
12950
|
-
id: string;
|
|
12951
|
-
name: string;
|
|
12952
|
-
league: "cbb" | "cfb";
|
|
12953
|
-
rank: number;
|
|
12954
|
-
wins?: number | undefined;
|
|
12955
|
-
losses?: number | undefined;
|
|
12956
|
-
tieEndRank?: number | undefined;
|
|
12957
|
-
}>, "many">;
|
|
12958
|
-
teamRecords: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
12959
|
-
wins: z.ZodNumber;
|
|
12960
|
-
losses: z.ZodNumber;
|
|
12961
|
-
}, "strip", z.ZodTypeAny, {
|
|
12962
|
-
wins: number;
|
|
12963
|
-
losses: number;
|
|
12964
|
-
}, {
|
|
12965
|
-
wins: number;
|
|
12966
|
-
losses: number;
|
|
12967
|
-
}>>;
|
|
12968
|
-
actualTeams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12969
|
-
id: z.ZodString;
|
|
12970
|
-
league: z.ZodEnum<["cfb", "cbb"]>;
|
|
12971
|
-
name: z.ZodString;
|
|
12972
|
-
wins: z.ZodOptional<z.ZodNumber>;
|
|
12973
|
-
losses: z.ZodOptional<z.ZodNumber>;
|
|
12974
|
-
rank: z.ZodNumber;
|
|
12975
|
-
tieEndRank: z.ZodOptional<z.ZodNumber>;
|
|
12976
|
-
}, "strip", z.ZodTypeAny, {
|
|
12977
|
-
id: string;
|
|
12978
|
-
name: string;
|
|
12979
|
-
league: "cbb" | "cfb";
|
|
12980
|
-
rank: number;
|
|
12981
|
-
wins?: number | undefined;
|
|
12982
|
-
losses?: number | undefined;
|
|
12983
|
-
tieEndRank?: number | undefined;
|
|
12984
|
-
}, {
|
|
12985
|
-
id: string;
|
|
12986
|
-
name: string;
|
|
12987
|
-
league: "cbb" | "cfb";
|
|
12988
|
-
rank: number;
|
|
12989
|
-
wins?: number | undefined;
|
|
12990
|
-
losses?: number | undefined;
|
|
12991
|
-
tieEndRank?: number | undefined;
|
|
12992
|
-
}>, "many">>;
|
|
12993
|
-
chalkScore: z.ZodOptional<z.ZodNumber>;
|
|
12994
|
-
participantCount: z.ZodOptional<z.ZodNumber>;
|
|
12995
|
-
createdAt: z.ZodNumber;
|
|
12996
|
-
updatedAt: z.ZodNumber;
|
|
12997
|
-
scoredAt: z.ZodOptional<z.ZodNumber>;
|
|
12998
|
-
}, "week" | "league" | "season">, "strip", z.ZodTypeAny, {
|
|
12999
|
-
week: number;
|
|
13000
|
-
league: "cbb" | "cfb";
|
|
13001
|
-
season: number;
|
|
13002
|
-
}, {
|
|
13003
|
-
week: number;
|
|
13004
|
-
league: "cbb" | "cfb";
|
|
13005
|
-
season: number;
|
|
13006
|
-
}>;
|
|
13007
|
-
export declare const pollPredictionInviteLinkSchema: z.ZodObject<Pick<{
|
|
13008
|
-
id: z.ZodString;
|
|
13009
|
-
league: z.ZodEnum<["cfb", "cbb"]>;
|
|
13010
|
-
season: z.ZodNumber;
|
|
13011
|
-
week: z.ZodNumber;
|
|
13012
|
-
status: z.ZodUnion<[z.ZodLiteral<"waiting">, z.ZodLiteral<"open">, z.ZodLiteral<"locked">, z.ZodLiteral<"scored">]>;
|
|
13013
|
-
opensAt: z.ZodNumber;
|
|
13014
|
-
locksAt: z.ZodNumber;
|
|
13015
|
-
resultsAt: z.ZodNumber;
|
|
13016
|
-
baselineTeams: z.ZodArray<z.ZodObject<{
|
|
13017
|
-
id: z.ZodString;
|
|
13018
|
-
league: z.ZodEnum<["cfb", "cbb"]>;
|
|
13019
|
-
name: z.ZodString;
|
|
13020
|
-
wins: z.ZodOptional<z.ZodNumber>;
|
|
13021
|
-
losses: z.ZodOptional<z.ZodNumber>;
|
|
13022
|
-
rank: z.ZodNumber;
|
|
13023
|
-
tieEndRank: z.ZodOptional<z.ZodNumber>;
|
|
13024
|
-
}, "strip", z.ZodTypeAny, {
|
|
13025
|
-
id: string;
|
|
13026
|
-
name: string;
|
|
13027
|
-
league: "cbb" | "cfb";
|
|
13028
|
-
rank: number;
|
|
13029
|
-
wins?: number | undefined;
|
|
13030
|
-
losses?: number | undefined;
|
|
13031
|
-
tieEndRank?: number | undefined;
|
|
13032
|
-
}, {
|
|
13033
|
-
id: string;
|
|
13034
|
-
name: string;
|
|
13035
|
-
league: "cbb" | "cfb";
|
|
13036
|
-
rank: number;
|
|
13037
|
-
wins?: number | undefined;
|
|
13038
|
-
losses?: number | undefined;
|
|
13039
|
-
tieEndRank?: number | undefined;
|
|
13040
|
-
}>, "many">;
|
|
13041
|
-
teamRecords: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13042
|
-
wins: z.ZodNumber;
|
|
13043
|
-
losses: z.ZodNumber;
|
|
13044
|
-
}, "strip", z.ZodTypeAny, {
|
|
13045
|
-
wins: number;
|
|
13046
|
-
losses: number;
|
|
13047
|
-
}, {
|
|
13048
|
-
wins: number;
|
|
13049
|
-
losses: number;
|
|
13050
|
-
}>>;
|
|
13051
|
-
actualTeams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13052
|
-
id: z.ZodString;
|
|
13053
|
-
league: z.ZodEnum<["cfb", "cbb"]>;
|
|
13054
|
-
name: z.ZodString;
|
|
13055
|
-
wins: z.ZodOptional<z.ZodNumber>;
|
|
13056
|
-
losses: z.ZodOptional<z.ZodNumber>;
|
|
13057
|
-
rank: z.ZodNumber;
|
|
13058
|
-
tieEndRank: z.ZodOptional<z.ZodNumber>;
|
|
13059
|
-
}, "strip", z.ZodTypeAny, {
|
|
13060
|
-
id: string;
|
|
13061
|
-
name: string;
|
|
13062
|
-
league: "cbb" | "cfb";
|
|
13063
|
-
rank: number;
|
|
13064
|
-
wins?: number | undefined;
|
|
13065
|
-
losses?: number | undefined;
|
|
13066
|
-
tieEndRank?: number | undefined;
|
|
13067
|
-
}, {
|
|
13068
|
-
id: string;
|
|
13069
|
-
name: string;
|
|
13070
|
-
league: "cbb" | "cfb";
|
|
13071
|
-
rank: number;
|
|
13072
|
-
wins?: number | undefined;
|
|
13073
|
-
losses?: number | undefined;
|
|
13074
|
-
tieEndRank?: number | undefined;
|
|
13075
|
-
}>, "many">>;
|
|
13076
|
-
chalkScore: z.ZodOptional<z.ZodNumber>;
|
|
13077
|
-
participantCount: z.ZodOptional<z.ZodNumber>;
|
|
13078
|
-
createdAt: z.ZodNumber;
|
|
13079
|
-
updatedAt: z.ZodNumber;
|
|
13080
|
-
scoredAt: z.ZodOptional<z.ZodNumber>;
|
|
13081
|
-
}, "week" | "league" | "season"> & {
|
|
13082
|
-
token: z.ZodString;
|
|
13083
|
-
roundId: z.ZodString;
|
|
13084
|
-
createdAt: z.ZodNumber;
|
|
13085
|
-
}, "strip", z.ZodTypeAny, {
|
|
13086
|
-
week: number;
|
|
13087
|
-
league: "cbb" | "cfb";
|
|
13088
|
-
createdAt: number;
|
|
13089
|
-
token: string;
|
|
13090
|
-
season: number;
|
|
13091
|
-
roundId: string;
|
|
13092
|
-
}, {
|
|
13093
|
-
week: number;
|
|
13094
|
-
league: "cbb" | "cfb";
|
|
13095
|
-
createdAt: number;
|
|
13096
|
-
token: string;
|
|
13097
|
-
season: number;
|
|
13098
|
-
roundId: string;
|
|
13099
|
-
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.pollPredictionUserBallotsResponseSchema = exports.pollPredictionLeaderboardResponseSchema = exports.pollPredictionUserSummarySchema = exports.pollPredictionLeaderboardEntrySchema = exports.pollPredictionHomeResponseSchema = exports.pollPredictionSubmitBallotDtoSchema = exports.pollPredictionBallotSchema = exports.pollPredictionBallotScoreSchema = exports.pollPredictionBallotTeamResultSchema = exports.pollPredictionRoundSchema = exports.pollPredictionRoundStatusSchema = exports.pollPredictionTeamSchema = exports.pollPredictionLeagueSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const user_1 = require("./user");
|
|
6
6
|
exports.pollPredictionLeagueSchema = zod_1.z.enum(["cfb", "cbb"]);
|
|
@@ -202,17 +202,3 @@ exports.pollPredictionUserBallotsResponseSchema = zod_1.z.object({
|
|
|
202
202
|
// Actual submitted ballots only; skipped weeks appear in totals but not in this feed.
|
|
203
203
|
ballots: zod_1.z.array(exports.pollPredictionBallotSchema),
|
|
204
204
|
});
|
|
205
|
-
exports.pollPredictionInviteLinkResponseSchema = zod_1.z.object({
|
|
206
|
-
token: zod_1.z.string(),
|
|
207
|
-
url: zod_1.z.string(),
|
|
208
|
-
});
|
|
209
|
-
exports.pollPredictionInvitePreviewSchema = exports.pollPredictionRoundSchema.pick({
|
|
210
|
-
league: true,
|
|
211
|
-
season: true,
|
|
212
|
-
week: true,
|
|
213
|
-
});
|
|
214
|
-
exports.pollPredictionInviteLinkSchema = exports.pollPredictionInvitePreviewSchema.extend({
|
|
215
|
-
token: zod_1.z.string(),
|
|
216
|
-
roundId: zod_1.z.string(),
|
|
217
|
-
createdAt: zod_1.z.number(),
|
|
218
|
-
});
|