rategame-shared 1.0.41 → 1.0.43
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 +18 -0
- package/dist/schemas/rating.js +4 -0
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -8,16 +8,19 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
8
8
|
username: import("zod").ZodString;
|
|
9
9
|
avatarUrl: import("zod").ZodString;
|
|
10
10
|
email: import("zod").ZodString;
|
|
11
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
12
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
13
|
id: string;
|
|
13
14
|
email: string;
|
|
14
15
|
username: string;
|
|
15
16
|
avatarUrl: string;
|
|
17
|
+
badge?: string | undefined;
|
|
16
18
|
}, {
|
|
17
19
|
id: string;
|
|
18
20
|
email: string;
|
|
19
21
|
username: string;
|
|
20
22
|
avatarUrl: string;
|
|
23
|
+
badge?: string | undefined;
|
|
21
24
|
}>;
|
|
22
25
|
game: import("zod").ZodObject<{
|
|
23
26
|
id: import("zod").ZodString;
|
|
@@ -123,6 +126,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
123
126
|
email: string;
|
|
124
127
|
username: string;
|
|
125
128
|
avatarUrl: string;
|
|
129
|
+
badge?: string | undefined;
|
|
126
130
|
};
|
|
127
131
|
createdAt: number;
|
|
128
132
|
rating: number;
|
|
@@ -157,6 +161,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
157
161
|
email: string;
|
|
158
162
|
username: string;
|
|
159
163
|
avatarUrl: string;
|
|
164
|
+
badge?: string | undefined;
|
|
160
165
|
};
|
|
161
166
|
createdAt: number;
|
|
162
167
|
rating: number;
|
|
@@ -252,15 +257,28 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
252
257
|
}, {
|
|
253
258
|
id: string;
|
|
254
259
|
}>;
|
|
260
|
+
game: import("zod").ZodObject<{
|
|
261
|
+
id: import("zod").ZodString;
|
|
262
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
263
|
+
id: string;
|
|
264
|
+
}, {
|
|
265
|
+
id: string;
|
|
266
|
+
}>;
|
|
255
267
|
}, "strip", import("zod").ZodTypeAny, {
|
|
256
268
|
user: {
|
|
257
269
|
id: string;
|
|
258
270
|
};
|
|
271
|
+
game: {
|
|
272
|
+
id: string;
|
|
273
|
+
};
|
|
259
274
|
agree: boolean;
|
|
260
275
|
}, {
|
|
261
276
|
user: {
|
|
262
277
|
id: string;
|
|
263
278
|
};
|
|
279
|
+
game: {
|
|
280
|
+
id: string;
|
|
281
|
+
};
|
|
264
282
|
agree: boolean;
|
|
265
283
|
}>;
|
|
266
284
|
export declare const createRatingSchema: import("zod").ZodObject<{
|
package/dist/schemas/rating.js
CHANGED
|
@@ -13,6 +13,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
13
13
|
username: (0, zod_1.string)(),
|
|
14
14
|
avatarUrl: (0, zod_1.string)(),
|
|
15
15
|
email: (0, zod_1.string)(),
|
|
16
|
+
badge: (0, zod_1.string)().optional(),
|
|
16
17
|
}),
|
|
17
18
|
game: (0, zod_1.object)({
|
|
18
19
|
id: (0, zod_1.string)(),
|
|
@@ -54,6 +55,9 @@ exports.createAgreeRatingSchema = (0, zod_1.object)({
|
|
|
54
55
|
user: (0, zod_1.object)({
|
|
55
56
|
id: (0, zod_1.string)(),
|
|
56
57
|
}),
|
|
58
|
+
game: (0, zod_1.object)({
|
|
59
|
+
id: (0, zod_1.string)(),
|
|
60
|
+
}),
|
|
57
61
|
});
|
|
58
62
|
exports.createRatingSchema = exports.ratingSchema
|
|
59
63
|
.omit({
|