rategame-shared 1.0.79 → 1.0.80
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
|
@@ -336,7 +336,6 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
336
336
|
agree: boolean;
|
|
337
337
|
}>;
|
|
338
338
|
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
339
|
-
id: import("zod").ZodString;
|
|
340
339
|
rating: import("zod").ZodNumber;
|
|
341
340
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
341
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -429,8 +428,8 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
429
428
|
gameNumber: number;
|
|
430
429
|
} | undefined;
|
|
431
430
|
}>;
|
|
431
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
432
432
|
}, "strip", import("zod").ZodTypeAny, {
|
|
433
|
-
id: string;
|
|
434
433
|
rating: number;
|
|
435
434
|
game: {
|
|
436
435
|
id: string;
|
|
@@ -444,8 +443,8 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
444
443
|
};
|
|
445
444
|
comment?: string | undefined;
|
|
446
445
|
userLikes?: number | undefined;
|
|
446
|
+
id?: string | undefined;
|
|
447
447
|
}, {
|
|
448
|
-
id: string;
|
|
449
448
|
rating: number;
|
|
450
449
|
game: {
|
|
451
450
|
id: string;
|
|
@@ -459,4 +458,5 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
459
458
|
};
|
|
460
459
|
comment?: string | undefined;
|
|
461
460
|
userLikes?: number | undefined;
|
|
461
|
+
id?: string | undefined;
|
|
462
462
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.createAgreeRatingSchema = (0, zod_1.object)({
|
|
|
66
66
|
});
|
|
67
67
|
exports.createRatingSchema = exports.ratingSchema
|
|
68
68
|
.omit({
|
|
69
|
-
|
|
69
|
+
id: true,
|
|
70
70
|
createdAt: true,
|
|
71
71
|
user: true,
|
|
72
72
|
})
|
|
@@ -76,4 +76,5 @@ exports.createRatingSchema = exports.ratingSchema
|
|
|
76
76
|
homeTeam: true,
|
|
77
77
|
awayTeam: true,
|
|
78
78
|
}),
|
|
79
|
+
id: (0, zod_1.string)().optional(),
|
|
79
80
|
});
|