rategame-shared 1.0.30 → 1.0.31
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 +28 -0
- package/dist/schemas/rating.js +6 -0
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -6,11 +6,14 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
6
6
|
user: import("zod").ZodObject<{
|
|
7
7
|
id: import("zod").ZodString;
|
|
8
8
|
username: import("zod").ZodString;
|
|
9
|
+
email: import("zod").ZodString;
|
|
9
10
|
}, "strip", import("zod").ZodTypeAny, {
|
|
10
11
|
id: string;
|
|
12
|
+
email: string;
|
|
11
13
|
username: string;
|
|
12
14
|
}, {
|
|
13
15
|
id: string;
|
|
16
|
+
email: string;
|
|
14
17
|
username: string;
|
|
15
18
|
}>;
|
|
16
19
|
game: import("zod").ZodObject<{
|
|
@@ -113,6 +116,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
113
116
|
id: string;
|
|
114
117
|
user: {
|
|
115
118
|
id: string;
|
|
119
|
+
email: string;
|
|
116
120
|
username: string;
|
|
117
121
|
};
|
|
118
122
|
createdAt: number;
|
|
@@ -144,6 +148,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
144
148
|
id: string;
|
|
145
149
|
user: {
|
|
146
150
|
id: string;
|
|
151
|
+
email: string;
|
|
147
152
|
username: string;
|
|
148
153
|
};
|
|
149
154
|
createdAt: number;
|
|
@@ -199,12 +204,35 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
199
204
|
}>;
|
|
200
205
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
201
206
|
id: import("zod").ZodString;
|
|
207
|
+
user: import("zod").ZodObject<{
|
|
208
|
+
id: import("zod").ZodString;
|
|
209
|
+
username: import("zod").ZodString;
|
|
210
|
+
email: import("zod").ZodString;
|
|
211
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
212
|
+
id: string;
|
|
213
|
+
email: string;
|
|
214
|
+
username: string;
|
|
215
|
+
}, {
|
|
216
|
+
id: string;
|
|
217
|
+
email: string;
|
|
218
|
+
username: string;
|
|
219
|
+
}>;
|
|
202
220
|
likedAt: import("zod").ZodNumber;
|
|
203
221
|
}, "strip", import("zod").ZodTypeAny, {
|
|
204
222
|
id: string;
|
|
223
|
+
user: {
|
|
224
|
+
id: string;
|
|
225
|
+
email: string;
|
|
226
|
+
username: string;
|
|
227
|
+
};
|
|
205
228
|
likedAt: number;
|
|
206
229
|
}, {
|
|
207
230
|
id: string;
|
|
231
|
+
user: {
|
|
232
|
+
id: string;
|
|
233
|
+
email: string;
|
|
234
|
+
username: string;
|
|
235
|
+
};
|
|
208
236
|
likedAt: number;
|
|
209
237
|
}>;
|
|
210
238
|
export declare const createRatingSchema: import("zod").ZodObject<{
|
package/dist/schemas/rating.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
11
11
|
user: (0, zod_1.object)({
|
|
12
12
|
id: (0, zod_1.string)(),
|
|
13
13
|
username: (0, zod_1.string)(),
|
|
14
|
+
email: (0, zod_1.string)(),
|
|
14
15
|
}),
|
|
15
16
|
game: (0, zod_1.object)({
|
|
16
17
|
id: (0, zod_1.string)(),
|
|
@@ -39,6 +40,11 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
39
40
|
});
|
|
40
41
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
41
42
|
id: (0, zod_1.string)(),
|
|
43
|
+
user: (0, zod_1.object)({
|
|
44
|
+
id: (0, zod_1.string)(),
|
|
45
|
+
username: (0, zod_1.string)(),
|
|
46
|
+
email: (0, zod_1.string)(),
|
|
47
|
+
}),
|
|
42
48
|
likedAt: (0, zod_1.number)(),
|
|
43
49
|
});
|
|
44
50
|
exports.createRatingSchema = exports.ratingSchema
|