rategame-shared 1.1.297 → 1.1.299
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.
- package/dist/schemas/voting.d.ts +11 -0
- package/dist/schemas/voting.js +2 -0
- package/package.json +1 -1
package/dist/schemas/voting.d.ts
CHANGED
|
@@ -1057,6 +1057,7 @@ export declare const playerVoteSchema: z.ZodObject<{
|
|
|
1057
1057
|
timestamp: z.ZodNumber;
|
|
1058
1058
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
1059
1059
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
1060
|
+
gameStartedAt: z.ZodOptional<z.ZodNumber>;
|
|
1060
1061
|
}, "strip", z.ZodTypeAny, {
|
|
1061
1062
|
id: string;
|
|
1062
1063
|
user: {
|
|
@@ -1082,6 +1083,7 @@ export declare const playerVoteSchema: z.ZodObject<{
|
|
|
1082
1083
|
timestamp: number;
|
|
1083
1084
|
updatedAt?: number | undefined;
|
|
1084
1085
|
edited?: boolean | undefined;
|
|
1086
|
+
gameStartedAt?: number | undefined;
|
|
1085
1087
|
}, {
|
|
1086
1088
|
id: string;
|
|
1087
1089
|
user: {
|
|
@@ -1107,6 +1109,7 @@ export declare const playerVoteSchema: z.ZodObject<{
|
|
|
1107
1109
|
timestamp: number;
|
|
1108
1110
|
updatedAt?: number | undefined;
|
|
1109
1111
|
edited?: boolean | undefined;
|
|
1112
|
+
gameStartedAt?: number | undefined;
|
|
1110
1113
|
}>;
|
|
1111
1114
|
export declare const voteSubmissionDtoSchema: z.ZodObject<{
|
|
1112
1115
|
gameId: z.ZodString;
|
|
@@ -2162,6 +2165,7 @@ export declare const voteSubmissionDtoSchema: z.ZodObject<{
|
|
|
2162
2165
|
avatarUrl?: string | null | undefined;
|
|
2163
2166
|
badge?: string | undefined;
|
|
2164
2167
|
}>;
|
|
2168
|
+
gameStartedAt: z.ZodOptional<z.ZodNumber>;
|
|
2165
2169
|
}, "strip", z.ZodTypeAny, {
|
|
2166
2170
|
user: {
|
|
2167
2171
|
id: string;
|
|
@@ -2183,6 +2187,7 @@ export declare const voteSubmissionDtoSchema: z.ZodObject<{
|
|
|
2183
2187
|
leagueId: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
2184
2188
|
id?: string | undefined;
|
|
2185
2189
|
};
|
|
2190
|
+
gameStartedAt?: number | undefined;
|
|
2186
2191
|
}, {
|
|
2187
2192
|
user: {
|
|
2188
2193
|
id: string;
|
|
@@ -2204,6 +2209,7 @@ export declare const voteSubmissionDtoSchema: z.ZodObject<{
|
|
|
2204
2209
|
leagueId: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
2205
2210
|
id?: string | undefined;
|
|
2206
2211
|
};
|
|
2212
|
+
gameStartedAt?: number | undefined;
|
|
2207
2213
|
}>;
|
|
2208
2214
|
export declare const voteSubmissionResponseDtoSchema: z.ZodObject<{
|
|
2209
2215
|
success: z.ZodBoolean;
|
|
@@ -21659,6 +21665,7 @@ export declare const userVoteResponseDtoSchema: z.ZodObject<{
|
|
|
21659
21665
|
timestamp: z.ZodNumber;
|
|
21660
21666
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
21661
21667
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
21668
|
+
gameStartedAt: z.ZodOptional<z.ZodNumber>;
|
|
21662
21669
|
}, "strip", z.ZodTypeAny, {
|
|
21663
21670
|
id: string;
|
|
21664
21671
|
user: {
|
|
@@ -21684,6 +21691,7 @@ export declare const userVoteResponseDtoSchema: z.ZodObject<{
|
|
|
21684
21691
|
timestamp: number;
|
|
21685
21692
|
updatedAt?: number | undefined;
|
|
21686
21693
|
edited?: boolean | undefined;
|
|
21694
|
+
gameStartedAt?: number | undefined;
|
|
21687
21695
|
}, {
|
|
21688
21696
|
id: string;
|
|
21689
21697
|
user: {
|
|
@@ -21709,6 +21717,7 @@ export declare const userVoteResponseDtoSchema: z.ZodObject<{
|
|
|
21709
21717
|
timestamp: number;
|
|
21710
21718
|
updatedAt?: number | undefined;
|
|
21711
21719
|
edited?: boolean | undefined;
|
|
21720
|
+
gameStartedAt?: number | undefined;
|
|
21712
21721
|
}>>;
|
|
21713
21722
|
}, "strip", z.ZodTypeAny, {
|
|
21714
21723
|
vote: {
|
|
@@ -21736,6 +21745,7 @@ export declare const userVoteResponseDtoSchema: z.ZodObject<{
|
|
|
21736
21745
|
timestamp: number;
|
|
21737
21746
|
updatedAt?: number | undefined;
|
|
21738
21747
|
edited?: boolean | undefined;
|
|
21748
|
+
gameStartedAt?: number | undefined;
|
|
21739
21749
|
} | null;
|
|
21740
21750
|
}, {
|
|
21741
21751
|
vote: {
|
|
@@ -21763,6 +21773,7 @@ export declare const userVoteResponseDtoSchema: z.ZodObject<{
|
|
|
21763
21773
|
timestamp: number;
|
|
21764
21774
|
updatedAt?: number | undefined;
|
|
21765
21775
|
edited?: boolean | undefined;
|
|
21776
|
+
gameStartedAt?: number | undefined;
|
|
21766
21777
|
} | null;
|
|
21767
21778
|
}>;
|
|
21768
21779
|
export declare const voteResultsResponseDtoSchema: z.ZodObject<{
|
package/dist/schemas/voting.js
CHANGED
|
@@ -16,6 +16,7 @@ exports.playerVoteSchema = zod_1.z.object({
|
|
|
16
16
|
timestamp: zod_1.z.number(),
|
|
17
17
|
updatedAt: zod_1.z.number().optional(),
|
|
18
18
|
edited: zod_1.z.boolean().optional(),
|
|
19
|
+
gameStartedAt: zod_1.z.number().optional(),
|
|
19
20
|
});
|
|
20
21
|
// Vote Submission DTO
|
|
21
22
|
exports.voteSubmissionDtoSchema = zod_1.z.object({
|
|
@@ -23,6 +24,7 @@ exports.voteSubmissionDtoSchema = zod_1.z.object({
|
|
|
23
24
|
league: sharedTypes_1.leagueSlug,
|
|
24
25
|
player: player_1.playerSchema,
|
|
25
26
|
user: user_1.reducedUserSchema,
|
|
27
|
+
gameStartedAt: zod_1.z.number().optional(),
|
|
26
28
|
});
|
|
27
29
|
// Vote Submission Response DTO
|
|
28
30
|
exports.voteSubmissionResponseDtoSchema = zod_1.z.object({
|