rategame-shared 1.1.410 → 1.1.412
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 +14 -8
- package/dist/schemas/rating.js +4 -2
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -751,29 +751,35 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
751
751
|
commentLanguage?: string | undefined;
|
|
752
752
|
}>;
|
|
753
753
|
export declare const translationRequestSchema: import("zod").ZodObject<{
|
|
754
|
-
|
|
754
|
+
entityId: import("zod").ZodString;
|
|
755
|
+
text: import("zod").ZodString;
|
|
755
756
|
targetLanguage: import("zod").ZodString;
|
|
757
|
+
sourceLanguage: import("zod").ZodOptional<import("zod").ZodString>;
|
|
756
758
|
}, "strip", import("zod").ZodTypeAny, {
|
|
757
|
-
|
|
759
|
+
text: string;
|
|
760
|
+
entityId: string;
|
|
758
761
|
targetLanguage: string;
|
|
762
|
+
sourceLanguage?: string | undefined;
|
|
759
763
|
}, {
|
|
760
|
-
|
|
764
|
+
text: string;
|
|
765
|
+
entityId: string;
|
|
761
766
|
targetLanguage: string;
|
|
767
|
+
sourceLanguage?: string | undefined;
|
|
762
768
|
}>;
|
|
763
769
|
export declare const translationResponseSchema: import("zod").ZodObject<{
|
|
764
|
-
|
|
770
|
+
entityId: import("zod").ZodString;
|
|
765
771
|
targetLanguage: import("zod").ZodString;
|
|
766
772
|
sourceLanguage: import("zod").ZodString;
|
|
767
773
|
translatedText: import("zod").ZodString;
|
|
768
774
|
cached: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
769
775
|
}, "strip", import("zod").ZodTypeAny, {
|
|
770
|
-
|
|
776
|
+
entityId: string;
|
|
771
777
|
targetLanguage: string;
|
|
772
778
|
sourceLanguage: string;
|
|
773
779
|
translatedText: string;
|
|
774
780
|
cached?: boolean | undefined;
|
|
775
781
|
}, {
|
|
776
|
-
|
|
782
|
+
entityId: string;
|
|
777
783
|
targetLanguage: string;
|
|
778
784
|
sourceLanguage: string;
|
|
779
785
|
translatedText: string;
|
|
@@ -3998,8 +4004,8 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
3998
4004
|
badge?: string | undefined;
|
|
3999
4005
|
};
|
|
4000
4006
|
createdAt: number;
|
|
4001
|
-
ratingId: string;
|
|
4002
4007
|
gameId: string;
|
|
4008
|
+
ratingId: string;
|
|
4003
4009
|
level: number;
|
|
4004
4010
|
parentId?: string | null | undefined;
|
|
4005
4011
|
isReply?: boolean | undefined;
|
|
@@ -4027,8 +4033,8 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
4027
4033
|
badge?: string | undefined;
|
|
4028
4034
|
};
|
|
4029
4035
|
createdAt: number;
|
|
4030
|
-
ratingId: string;
|
|
4031
4036
|
gameId: string;
|
|
4037
|
+
ratingId: string;
|
|
4032
4038
|
level: number;
|
|
4033
4039
|
parentId?: string | null | undefined;
|
|
4034
4040
|
isReply?: boolean | undefined;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -88,11 +88,13 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
88
88
|
commentLanguage: (0, zod_1.string)().optional(),
|
|
89
89
|
});
|
|
90
90
|
exports.translationRequestSchema = (0, zod_1.object)({
|
|
91
|
-
|
|
91
|
+
entityId: (0, zod_1.string)(),
|
|
92
|
+
text: (0, zod_1.string)().min(1).max(1000),
|
|
92
93
|
targetLanguage: (0, zod_1.string)(),
|
|
94
|
+
sourceLanguage: (0, zod_1.string)().optional(),
|
|
93
95
|
});
|
|
94
96
|
exports.translationResponseSchema = (0, zod_1.object)({
|
|
95
|
-
|
|
97
|
+
entityId: (0, zod_1.string)(),
|
|
96
98
|
targetLanguage: (0, zod_1.string)(),
|
|
97
99
|
sourceLanguage: (0, zod_1.string)(),
|
|
98
100
|
translatedText: (0, zod_1.string)(),
|