rategame-shared 1.0.37 → 1.0.39
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/game.d.ts
CHANGED
|
@@ -108,6 +108,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
108
108
|
id?: string | undefined;
|
|
109
109
|
isWinner?: boolean | undefined;
|
|
110
110
|
}>;
|
|
111
|
+
timeRemainingMinutes: z.ZodNumber;
|
|
112
|
+
timeRemainingSeconds: z.ZodNumber;
|
|
111
113
|
periods: z.ZodArray<z.ZodObject<{
|
|
112
114
|
awayScore: z.ZodNumber;
|
|
113
115
|
homeScore: z.ZodNumber;
|
|
@@ -172,6 +174,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
172
174
|
id?: string | undefined;
|
|
173
175
|
isWinner?: boolean | undefined;
|
|
174
176
|
};
|
|
177
|
+
timeRemainingMinutes: number;
|
|
178
|
+
timeRemainingSeconds: number;
|
|
175
179
|
periods: {
|
|
176
180
|
awayScore: number;
|
|
177
181
|
homeScore: number;
|
|
@@ -211,6 +215,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
211
215
|
id?: string | undefined;
|
|
212
216
|
isWinner?: boolean | undefined;
|
|
213
217
|
};
|
|
218
|
+
timeRemainingMinutes: number;
|
|
219
|
+
timeRemainingSeconds: number;
|
|
214
220
|
periods: {
|
|
215
221
|
awayScore: number;
|
|
216
222
|
homeScore: number;
|
package/dist/schemas/game.js
CHANGED
|
@@ -29,6 +29,8 @@ exports.gameSchema = zod_1.z.object({
|
|
|
29
29
|
apiGameId: zod_1.z.number(),
|
|
30
30
|
homeTeam: exports.gameTeamSchema,
|
|
31
31
|
awayTeam: exports.gameTeamSchema,
|
|
32
|
+
timeRemainingMinutes: zod_1.z.number(),
|
|
33
|
+
timeRemainingSeconds: zod_1.z.number(),
|
|
32
34
|
periods: zod_1.z.array(zod_1.z.object({
|
|
33
35
|
awayScore: zod_1.z.number(),
|
|
34
36
|
homeScore: zod_1.z.number(),
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
115
115
|
isWinner?: boolean | undefined;
|
|
116
116
|
};
|
|
117
117
|
}>;
|
|
118
|
-
|
|
118
|
+
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
119
119
|
}, "strip", import("zod").ZodTypeAny, {
|
|
120
120
|
id: string;
|
|
121
121
|
user: {
|
|
@@ -149,7 +149,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
comment?: string | undefined;
|
|
152
|
-
|
|
152
|
+
userLikes?: number | undefined;
|
|
153
153
|
}, {
|
|
154
154
|
id: string;
|
|
155
155
|
user: {
|
|
@@ -183,7 +183,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
185
|
comment?: string | undefined;
|
|
186
|
-
|
|
186
|
+
userLikes?: number | undefined;
|
|
187
187
|
}>;
|
|
188
188
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
189
189
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -266,7 +266,7 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
266
266
|
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
267
267
|
rating: import("zod").ZodNumber;
|
|
268
268
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
269
|
-
|
|
269
|
+
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
270
270
|
game: import("zod").ZodObject<Omit<{
|
|
271
271
|
id: import("zod").ZodString;
|
|
272
272
|
round: import("zod").ZodNumber;
|
|
@@ -331,12 +331,12 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
331
331
|
id: string;
|
|
332
332
|
};
|
|
333
333
|
comment?: string | undefined;
|
|
334
|
-
|
|
334
|
+
userLikes?: number | undefined;
|
|
335
335
|
}, {
|
|
336
336
|
rating: number;
|
|
337
337
|
game: {
|
|
338
338
|
id: string;
|
|
339
339
|
};
|
|
340
340
|
comment?: string | undefined;
|
|
341
|
-
|
|
341
|
+
userLikes?: number | undefined;
|
|
342
342
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
20
20
|
homeTeam: game_1.gameTeamSchema,
|
|
21
21
|
awayTeam: game_1.gameTeamSchema,
|
|
22
22
|
}),
|
|
23
|
-
|
|
23
|
+
userLikes: (0, zod_1.number)().optional(),
|
|
24
24
|
});
|
|
25
25
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
26
26
|
q: (0, zod_1.string)().optional(),
|