rategame-shared 1.0.29 → 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.
@@ -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;
@@ -180,27 +175,27 @@ export declare const ratingSchema: import("zod").ZodObject<{
180
175
  export declare const searchRatingSchema: import("zod").ZodObject<{
181
176
  q: import("zod").ZodOptional<import("zod").ZodString>;
182
177
  teamId: import("zod").ZodOptional<import("zod").ZodString>;
183
- round: import("zod").ZodOptional<import("zod").ZodString>;
178
+ round: import("zod").ZodOptional<import("zod").ZodNumber>;
184
179
  createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
185
180
  sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">]>>;
186
- limit: import("zod").ZodOptional<import("zod").ZodString>;
187
- offset: import("zod").ZodOptional<import("zod").ZodString>;
181
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
182
+ offset: import("zod").ZodOptional<import("zod").ZodNumber>;
188
183
  }, "strip", import("zod").ZodTypeAny, {
189
184
  q?: string | undefined;
190
185
  teamId?: string | undefined;
191
- round?: string | undefined;
186
+ round?: number | undefined;
192
187
  createdAt?: "12h" | "daily" | "weekly" | undefined;
193
188
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
194
- limit?: string | undefined;
195
- offset?: string | undefined;
189
+ limit?: number | undefined;
190
+ offset?: number | undefined;
196
191
  }, {
197
192
  q?: string | undefined;
198
193
  teamId?: string | undefined;
199
- round?: string | undefined;
194
+ round?: number | undefined;
200
195
  createdAt?: "12h" | "daily" | "weekly" | undefined;
201
196
  sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
202
- limit?: string | undefined;
203
- offset?: string | undefined;
197
+ limit?: number | undefined;
198
+ offset?: number | undefined;
204
199
  }>;
205
200
  export declare const ratingLikeSchema: import("zod").ZodObject<{
206
201
  id: import("zod").ZodString;
@@ -11,7 +11,6 @@ exports.ratingSchema = (0, zod_1.object)({
11
11
  user: (0, zod_1.object)({
12
12
  id: (0, zod_1.string)(),
13
13
  username: (0, zod_1.string)(),
14
- avatarUrl: (0, zod_1.string)(),
15
14
  }),
16
15
  game: (0, zod_1.object)({
17
16
  id: (0, zod_1.string)(),
@@ -23,7 +22,7 @@ exports.ratingSchema = (0, zod_1.object)({
23
22
  exports.searchRatingSchema = (0, zod_1.object)({
24
23
  q: (0, zod_1.string)().optional(),
25
24
  teamId: (0, zod_1.string)().optional(),
26
- round: (0, zod_1.string)().optional(),
25
+ round: (0, zod_1.number)().optional(),
27
26
  createdAt: (0, zod_1.union)([
28
27
  (0, zod_1.literal)("12h"),
29
28
  (0, zod_1.literal)("daily"),
@@ -35,8 +34,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
35
34
  (0, zod_1.literal)("createdAt:asc"),
36
35
  (0, zod_1.literal)("createdAt:desc"),
37
36
  ]).optional(),
38
- limit: (0, zod_1.string)().optional(),
39
- offset: (0, zod_1.string)().optional(),
37
+ limit: (0, zod_1.number)().optional(),
38
+ offset: (0, zod_1.number)().optional(),
40
39
  });
41
40
  exports.ratingLikeSchema = (0, zod_1.object)({
42
41
  id: (0, zod_1.string)(),
@@ -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
  }>;
@@ -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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "This package contains shared resources for the Rate Game project.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",