rategame-shared 1.1.448 → 1.1.449
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 +20 -0
- package/dist/schemas/rating.js +6 -0
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -907,10 +907,22 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
907
907
|
agree: import("zod").ZodBoolean;
|
|
908
908
|
user: import("zod").ZodObject<{
|
|
909
909
|
id: import("zod").ZodString;
|
|
910
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
911
|
+
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
912
|
+
avatarUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
913
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
910
914
|
}, "strip", import("zod").ZodTypeAny, {
|
|
911
915
|
id: string;
|
|
916
|
+
email?: string | undefined;
|
|
917
|
+
username?: string | undefined;
|
|
918
|
+
avatarUrl?: string | null | undefined;
|
|
919
|
+
badge?: string | undefined;
|
|
912
920
|
}, {
|
|
913
921
|
id: string;
|
|
922
|
+
email?: string | undefined;
|
|
923
|
+
username?: string | undefined;
|
|
924
|
+
avatarUrl?: string | null | undefined;
|
|
925
|
+
badge?: string | undefined;
|
|
914
926
|
}>;
|
|
915
927
|
game: import("zod").ZodObject<{
|
|
916
928
|
id: import("zod").ZodString;
|
|
@@ -922,6 +934,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
922
934
|
}, "strip", import("zod").ZodTypeAny, {
|
|
923
935
|
user: {
|
|
924
936
|
id: string;
|
|
937
|
+
email?: string | undefined;
|
|
938
|
+
username?: string | undefined;
|
|
939
|
+
avatarUrl?: string | null | undefined;
|
|
940
|
+
badge?: string | undefined;
|
|
925
941
|
};
|
|
926
942
|
game: {
|
|
927
943
|
id: string;
|
|
@@ -930,6 +946,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
930
946
|
}, {
|
|
931
947
|
user: {
|
|
932
948
|
id: string;
|
|
949
|
+
email?: string | undefined;
|
|
950
|
+
username?: string | undefined;
|
|
951
|
+
avatarUrl?: string | null | undefined;
|
|
952
|
+
badge?: string | undefined;
|
|
933
953
|
};
|
|
934
954
|
game: {
|
|
935
955
|
id: string;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -146,8 +146,14 @@ exports.ratingLikeSchema = (0, zod_1.object)({
|
|
|
146
146
|
});
|
|
147
147
|
exports.createAgreeRatingSchema = (0, zod_1.object)({
|
|
148
148
|
agree: (0, zod_1.boolean)(),
|
|
149
|
+
// Minimal user payload lets the API skip the pre-transaction users fetch;
|
|
150
|
+
// only id is required so older clients keep working.
|
|
149
151
|
user: (0, zod_1.object)({
|
|
150
152
|
id: (0, zod_1.string)(),
|
|
153
|
+
email: (0, zod_1.string)().optional(),
|
|
154
|
+
username: (0, zod_1.string)().optional(),
|
|
155
|
+
avatarUrl: (0, zod_1.string)().nullable().optional(),
|
|
156
|
+
badge: (0, zod_1.string)().optional(),
|
|
151
157
|
}),
|
|
152
158
|
game: (0, zod_1.object)({
|
|
153
159
|
id: (0, zod_1.string)(),
|