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.
@@ -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;
@@ -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)(),
@@ -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.28",
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",