rategame-shared 1.0.28 → 1.0.30
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 +0 -5
- package/dist/schemas/rating.js +0 -1
- package/dist/schemas/user.d.ts +1 -11
- package/dist/schemas/user.js +5 -0
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -6,15 +6,12 @@ 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
|
-
avatarUrl: import("zod").ZodString;
|
|
10
9
|
}, "strip", import("zod").ZodTypeAny, {
|
|
11
10
|
id: string;
|
|
12
11
|
username: string;
|
|
13
|
-
avatarUrl: string;
|
|
14
12
|
}, {
|
|
15
13
|
id: string;
|
|
16
14
|
username: string;
|
|
17
|
-
avatarUrl: string;
|
|
18
15
|
}>;
|
|
19
16
|
game: import("zod").ZodObject<{
|
|
20
17
|
id: import("zod").ZodString;
|
|
@@ -117,7 +114,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
117
114
|
user: {
|
|
118
115
|
id: string;
|
|
119
116
|
username: string;
|
|
120
|
-
avatarUrl: string;
|
|
121
117
|
};
|
|
122
118
|
createdAt: number;
|
|
123
119
|
rating: number;
|
|
@@ -149,7 +145,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
149
145
|
user: {
|
|
150
146
|
id: string;
|
|
151
147
|
username: string;
|
|
152
|
-
avatarUrl: string;
|
|
153
148
|
};
|
|
154
149
|
createdAt: number;
|
|
155
150
|
rating: number;
|
package/dist/schemas/rating.js
CHANGED
package/dist/schemas/user.d.ts
CHANGED
|
@@ -75,24 +75,14 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
75
75
|
}>>;
|
|
76
76
|
askedForPushNotifications: import("zod").ZodBoolean;
|
|
77
77
|
acceptedPushNotifications: import("zod").ZodBoolean;
|
|
78
|
-
}, "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
79
|
-
id: string;
|
|
78
|
+
}, "id" | "createdAt" | "updatedAt" | "totalRatedGames" | "avgRating" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
80
79
|
email: string;
|
|
81
80
|
username: string;
|
|
82
81
|
avatarUrl: string;
|
|
83
|
-
createdAt: number;
|
|
84
|
-
updatedAt: number;
|
|
85
|
-
totalRatedGames?: number | undefined;
|
|
86
|
-
avgRating?: number | undefined;
|
|
87
82
|
isRegistrationComplete?: boolean | undefined;
|
|
88
83
|
}, {
|
|
89
|
-
id: string;
|
|
90
84
|
email: string;
|
|
91
85
|
username: string;
|
|
92
86
|
avatarUrl: string;
|
|
93
|
-
createdAt: number;
|
|
94
|
-
updatedAt: number;
|
|
95
|
-
totalRatedGames?: number | undefined;
|
|
96
|
-
avgRating?: number | undefined;
|
|
97
87
|
isRegistrationComplete?: boolean | undefined;
|
|
98
88
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -20,7 +20,12 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
20
20
|
acceptedPushNotifications: (0, zod_1.boolean)(),
|
|
21
21
|
});
|
|
22
22
|
exports.createUserSchema = exports.userSchema.omit({
|
|
23
|
+
id: true,
|
|
23
24
|
deviceTokens: true,
|
|
24
25
|
askedForPushNotifications: true,
|
|
25
26
|
acceptedPushNotifications: true,
|
|
27
|
+
avgRating: true,
|
|
28
|
+
totalRatedGames: true,
|
|
29
|
+
createdAt: true,
|
|
30
|
+
updatedAt: true,
|
|
26
31
|
});
|