rategame-shared 1.0.7 → 1.0.8
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/rating.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const ratingSchema: import("zod").ZodObject<{
|
|
2
2
|
id: import("zod").ZodString;
|
|
3
3
|
comment: import("zod").ZodString;
|
|
4
|
-
gameId: import("zod").ZodString;
|
|
5
4
|
createdAt: import("zod").ZodNumber;
|
|
6
5
|
rating: import("zod").ZodNumber;
|
|
7
6
|
user: import("zod").ZodObject<{
|
|
@@ -16,6 +15,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
16
15
|
}>;
|
|
17
16
|
round: import("zod").ZodNumber;
|
|
18
17
|
game: import("zod").ZodObject<{
|
|
18
|
+
id: import("zod").ZodString;
|
|
19
19
|
homeTeam: import("zod").ZodObject<{
|
|
20
20
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
21
|
teamId: import("zod").ZodNumber;
|
|
@@ -61,6 +61,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
61
61
|
isWinner?: boolean | undefined;
|
|
62
62
|
}>;
|
|
63
63
|
}, "strip", import("zod").ZodTypeAny, {
|
|
64
|
+
id: string;
|
|
64
65
|
homeTeam: {
|
|
65
66
|
image: string;
|
|
66
67
|
teamId: number;
|
|
@@ -78,6 +79,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
78
79
|
isWinner?: boolean | undefined;
|
|
79
80
|
};
|
|
80
81
|
}, {
|
|
82
|
+
id: string;
|
|
81
83
|
homeTeam: {
|
|
82
84
|
image: string;
|
|
83
85
|
teamId: number;
|
|
@@ -103,10 +105,10 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
103
105
|
username: number;
|
|
104
106
|
};
|
|
105
107
|
createdAt: number;
|
|
106
|
-
gameId: string;
|
|
107
108
|
rating: number;
|
|
108
109
|
comment: string;
|
|
109
110
|
game: {
|
|
111
|
+
id: string;
|
|
110
112
|
homeTeam: {
|
|
111
113
|
image: string;
|
|
112
114
|
teamId: number;
|
|
@@ -132,10 +134,10 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
132
134
|
username: number;
|
|
133
135
|
};
|
|
134
136
|
createdAt: number;
|
|
135
|
-
gameId: string;
|
|
136
137
|
rating: number;
|
|
137
138
|
comment: string;
|
|
138
139
|
game: {
|
|
140
|
+
id: string;
|
|
139
141
|
homeTeam: {
|
|
140
142
|
image: string;
|
|
141
143
|
teamId: number;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -6,7 +6,6 @@ const game_1 = require("./game");
|
|
|
6
6
|
exports.ratingSchema = (0, zod_1.object)({
|
|
7
7
|
id: (0, zod_1.string)(),
|
|
8
8
|
comment: (0, zod_1.string)(),
|
|
9
|
-
gameId: (0, zod_1.string)(),
|
|
10
9
|
createdAt: (0, zod_1.number)(),
|
|
11
10
|
rating: (0, zod_1.number)(),
|
|
12
11
|
user: (0, zod_1.object)({
|
|
@@ -15,6 +14,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
15
14
|
}),
|
|
16
15
|
round: (0, zod_1.number)(),
|
|
17
16
|
game: (0, zod_1.object)({
|
|
17
|
+
id: (0, zod_1.string)(),
|
|
18
18
|
homeTeam: game_1.gameTeamSchema,
|
|
19
19
|
awayTeam: game_1.gameTeamSchema,
|
|
20
20
|
}),
|