rategame-shared 1.0.22 → 1.0.24
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 +3 -3
- package/dist/schemas/rating.js +1 -1
- package/dist/schemas/user.d.ts +12 -12
- package/dist/schemas/user.js +2 -2
- package/package.json +1 -1
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -174,21 +174,21 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
174
174
|
}>;
|
|
175
175
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
176
176
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
177
|
-
|
|
177
|
+
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
178
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
179
179
|
sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"ranking">, import("zod").ZodLiteral<"date">]>>;
|
|
180
180
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
181
181
|
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
182
182
|
}, "strip", import("zod").ZodTypeAny, {
|
|
183
183
|
q?: string | undefined;
|
|
184
|
-
|
|
184
|
+
teamId?: string | undefined;
|
|
185
185
|
round?: number | undefined;
|
|
186
186
|
sortBy?: "date" | "ranking" | undefined;
|
|
187
187
|
limit?: number | undefined;
|
|
188
188
|
offset?: number | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
q?: string | undefined;
|
|
191
|
-
|
|
191
|
+
teamId?: string | undefined;
|
|
192
192
|
round?: number | undefined;
|
|
193
193
|
sortBy?: "date" | "ranking" | undefined;
|
|
194
194
|
limit?: number | undefined;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -21,7 +21,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
21
21
|
});
|
|
22
22
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
23
23
|
q: (0, zod_1.string)().optional(),
|
|
24
|
-
|
|
24
|
+
teamId: (0, zod_1.string)().optional(),
|
|
25
25
|
round: (0, zod_1.number)().optional(),
|
|
26
26
|
sortBy: (0, zod_1.union)([(0, zod_1.literal)("ranking"), (0, zod_1.literal)("date")]).optional(),
|
|
27
27
|
limit: (0, zod_1.number)().optional(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
5
5
|
avatarUrl: import("zod").ZodString;
|
|
6
6
|
createdAt: import("zod").ZodNumber;
|
|
7
7
|
updatedAt: import("zod").ZodNumber;
|
|
8
|
-
totalRatedGames: import("zod").ZodNumber
|
|
9
|
-
avgRating: import("zod").ZodNumber
|
|
8
|
+
totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
9
|
+
avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
10
10
|
isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
11
11
|
deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
12
12
|
token: import("zod").ZodString;
|
|
@@ -27,14 +27,14 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
27
27
|
avatarUrl: string;
|
|
28
28
|
createdAt: number;
|
|
29
29
|
updatedAt: number;
|
|
30
|
-
totalRatedGames: number;
|
|
31
|
-
avgRating: number;
|
|
32
30
|
deviceTokens: Record<string, {
|
|
33
31
|
token: string;
|
|
34
32
|
usedAt: number;
|
|
35
33
|
}>;
|
|
36
34
|
askedForPushNotifications: boolean;
|
|
37
35
|
acceptedPushNotifications: boolean;
|
|
36
|
+
totalRatedGames?: number | undefined;
|
|
37
|
+
avgRating?: number | undefined;
|
|
38
38
|
isRegistrationComplete?: boolean | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
id: string;
|
|
@@ -43,14 +43,14 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
43
43
|
avatarUrl: string;
|
|
44
44
|
createdAt: number;
|
|
45
45
|
updatedAt: number;
|
|
46
|
-
totalRatedGames: number;
|
|
47
|
-
avgRating: number;
|
|
48
46
|
deviceTokens: Record<string, {
|
|
49
47
|
token: string;
|
|
50
48
|
usedAt: number;
|
|
51
49
|
}>;
|
|
52
50
|
askedForPushNotifications: boolean;
|
|
53
51
|
acceptedPushNotifications: boolean;
|
|
52
|
+
totalRatedGames?: number | undefined;
|
|
53
|
+
avgRating?: number | undefined;
|
|
54
54
|
isRegistrationComplete?: boolean | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
@@ -60,8 +60,8 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
60
60
|
avatarUrl: import("zod").ZodString;
|
|
61
61
|
createdAt: import("zod").ZodNumber;
|
|
62
62
|
updatedAt: import("zod").ZodNumber;
|
|
63
|
-
totalRatedGames: import("zod").ZodNumber
|
|
64
|
-
avgRating: import("zod").ZodNumber
|
|
63
|
+
totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
64
|
+
avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
65
65
|
isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
66
66
|
deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
67
67
|
token: import("zod").ZodString;
|
|
@@ -82,8 +82,8 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
82
82
|
avatarUrl: string;
|
|
83
83
|
createdAt: number;
|
|
84
84
|
updatedAt: number;
|
|
85
|
-
totalRatedGames
|
|
86
|
-
avgRating
|
|
85
|
+
totalRatedGames?: number | undefined;
|
|
86
|
+
avgRating?: number | undefined;
|
|
87
87
|
isRegistrationComplete?: boolean | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
id: string;
|
|
@@ -92,7 +92,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
92
92
|
avatarUrl: string;
|
|
93
93
|
createdAt: number;
|
|
94
94
|
updatedAt: number;
|
|
95
|
-
totalRatedGames
|
|
96
|
-
avgRating
|
|
95
|
+
totalRatedGames?: number | undefined;
|
|
96
|
+
avgRating?: number | undefined;
|
|
97
97
|
isRegistrationComplete?: boolean | undefined;
|
|
98
98
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -9,8 +9,8 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
9
9
|
avatarUrl: (0, zod_1.string)(),
|
|
10
10
|
createdAt: (0, zod_1.number)(),
|
|
11
11
|
updatedAt: (0, zod_1.number)(),
|
|
12
|
-
totalRatedGames: (0, zod_1.number)(),
|
|
13
|
-
avgRating: (0, zod_1.number)(),
|
|
12
|
+
totalRatedGames: (0, zod_1.number)().optional(),
|
|
13
|
+
avgRating: (0, zod_1.number)().optional(),
|
|
14
14
|
isRegistrationComplete: (0, zod_1.boolean)().optional(),
|
|
15
15
|
deviceTokens: (0, zod_1.record)((0, zod_1.object)({
|
|
16
16
|
token: (0, zod_1.string)(),
|