rategame-shared 1.1.291 → 1.1.293
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/models/voting.d.ts +2 -1
- package/dist/schemas/rating.d.ts +3 -0
- package/dist/schemas/rating.js +1 -0
- package/dist/schemas/voting.d.ts +17830 -0
- package/dist/schemas/voting.js +8 -1
- package/package.json +1 -1
package/dist/schemas/voting.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.apiErrorResponseSchema = exports.leagueSupportErrorSchema = exports.voteUpdateDtoSchema = exports.voteResultsResponseDtoSchema = exports.userVoteResponseDtoSchema = exports.gamePlayersResponseDtoSchema = exports.playerWithVotesSchema = exports.teamPlayersResponseDtoSchema = exports.gameVoteResultsSchema = exports.mostVotedPlayerSchema = exports.voteSubmissionResponseDtoSchema = exports.voteSubmissionDtoSchema = exports.playerVoteSchema = void 0;
|
|
3
|
+
exports.apiErrorResponseSchema = exports.leagueSupportErrorSchema = exports.voteUpdateDtoSchema = exports.voteResultsResponseDtoSchema = exports.userVoteResponseDtoSchema = exports.gamePlayersResponseDtoSchema = exports.playerWithVotesAndGameSchema = exports.playerWithVotesSchema = exports.teamPlayersResponseDtoSchema = exports.gameVoteResultsSchema = exports.mostVotedPlayerSchema = exports.voteSubmissionResponseDtoSchema = exports.voteSubmissionDtoSchema = exports.playerVoteSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const sharedTypes_1 = require("./sharedTypes");
|
|
6
6
|
const player_1 = require("./player");
|
|
7
7
|
const user_1 = require("./user");
|
|
8
|
+
const game_1 = require("./game");
|
|
8
9
|
// Player Vote Schema
|
|
9
10
|
exports.playerVoteSchema = zod_1.z.object({
|
|
10
11
|
id: zod_1.z.string(),
|
|
@@ -52,6 +53,12 @@ exports.playerWithVotesSchema = zod_1.z.object({
|
|
|
52
53
|
player: player_1.playerSchema,
|
|
53
54
|
votes: zod_1.z.number(),
|
|
54
55
|
});
|
|
56
|
+
// Player with votes and most voted game
|
|
57
|
+
exports.playerWithVotesAndGameSchema = zod_1.z.object({
|
|
58
|
+
player: player_1.playerSchema,
|
|
59
|
+
votes: zod_1.z.number(),
|
|
60
|
+
mostVotedGame: game_1.unionGameSchema.nullable(),
|
|
61
|
+
});
|
|
55
62
|
// Game Players Response DTO
|
|
56
63
|
exports.gamePlayersResponseDtoSchema = zod_1.z.object({
|
|
57
64
|
homeTeam: zod_1.z.object({
|