rategame-shared 1.0.42 → 1.0.44

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.
@@ -257,15 +257,28 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
257
257
  }, {
258
258
  id: string;
259
259
  }>;
260
+ game: import("zod").ZodObject<{
261
+ id: import("zod").ZodString;
262
+ }, "strip", import("zod").ZodTypeAny, {
263
+ id: string;
264
+ }, {
265
+ id: string;
266
+ }>;
260
267
  }, "strip", import("zod").ZodTypeAny, {
261
268
  user: {
262
269
  id: string;
263
270
  };
271
+ game: {
272
+ id: string;
273
+ };
264
274
  agree: boolean;
265
275
  }, {
266
276
  user: {
267
277
  id: string;
268
278
  };
279
+ game: {
280
+ id: string;
281
+ };
269
282
  agree: boolean;
270
283
  }>;
271
284
  export declare const createRatingSchema: import("zod").ZodObject<{
@@ -55,6 +55,9 @@ exports.createAgreeRatingSchema = (0, zod_1.object)({
55
55
  user: (0, zod_1.object)({
56
56
  id: (0, zod_1.string)(),
57
57
  }),
58
+ game: (0, zod_1.object)({
59
+ id: (0, zod_1.string)(),
60
+ }),
58
61
  });
59
62
  exports.createRatingSchema = exports.ratingSchema
60
63
  .omit({
@@ -6,6 +6,7 @@ export declare const userSchema: import("zod").ZodObject<{
6
6
  createdAt: import("zod").ZodNumber;
7
7
  updatedAt: import("zod").ZodNumber;
8
8
  totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
9
+ commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
9
10
  avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
10
11
  isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
11
12
  deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
@@ -35,6 +36,7 @@ export declare const userSchema: import("zod").ZodObject<{
35
36
  askedForPushNotifications: boolean;
36
37
  acceptedPushNotifications: boolean;
37
38
  totalRatedGames?: number | undefined;
39
+ commentsLeft?: number | undefined;
38
40
  avgRating?: number | undefined;
39
41
  isRegistrationComplete?: boolean | undefined;
40
42
  badge?: string | undefined;
@@ -52,6 +54,7 @@ export declare const userSchema: import("zod").ZodObject<{
52
54
  askedForPushNotifications: boolean;
53
55
  acceptedPushNotifications: boolean;
54
56
  totalRatedGames?: number | undefined;
57
+ commentsLeft?: number | undefined;
55
58
  avgRating?: number | undefined;
56
59
  isRegistrationComplete?: boolean | undefined;
57
60
  badge?: string | undefined;
@@ -64,6 +67,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
64
67
  createdAt: import("zod").ZodNumber;
65
68
  updatedAt: import("zod").ZodNumber;
66
69
  totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
70
+ commentsLeft: import("zod").ZodOptional<import("zod").ZodNumber>;
67
71
  avgRating: import("zod").ZodOptional<import("zod").ZodNumber>;
68
72
  isRegistrationComplete: import("zod").ZodOptional<import("zod").ZodBoolean>;
69
73
  deviceTokens: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
@@ -83,12 +87,14 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
83
87
  email: string;
84
88
  username: string;
85
89
  avatarUrl: string;
90
+ commentsLeft?: number | undefined;
86
91
  isRegistrationComplete?: boolean | undefined;
87
92
  badge?: string | undefined;
88
93
  }, {
89
94
  email: string;
90
95
  username: string;
91
96
  avatarUrl: string;
97
+ commentsLeft?: number | undefined;
92
98
  isRegistrationComplete?: boolean | undefined;
93
99
  badge?: string | undefined;
94
100
  }>;
@@ -10,6 +10,7 @@ exports.userSchema = (0, zod_1.object)({
10
10
  createdAt: (0, zod_1.number)(),
11
11
  updatedAt: (0, zod_1.number)(),
12
12
  totalRatedGames: (0, zod_1.number)().optional(),
13
+ commentsLeft: (0, zod_1.number)().optional(),
13
14
  avgRating: (0, zod_1.number)().optional(),
14
15
  isRegistrationComplete: (0, zod_1.boolean)().optional(),
15
16
  deviceTokens: (0, zod_1.record)((0, zod_1.object)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
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",