rategame-shared 1.0.39 → 1.0.41

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.
@@ -51,7 +51,7 @@ export declare const gameRatingAggregateSchema: z.ZodObject<{
51
51
  }>;
52
52
  export declare const gameSchema: z.ZodObject<{
53
53
  id: z.ZodOptional<z.ZodString>;
54
- status: z.ZodUnion<[z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
54
+ status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
55
55
  isClosed: z.ZodBoolean;
56
56
  startedAt: z.ZodNumber;
57
57
  finishedAt: z.ZodNumber;
@@ -150,7 +150,7 @@ export declare const gameSchema: z.ZodObject<{
150
150
  }>;
151
151
  }, "strip", z.ZodTypeAny, {
152
152
  round: number;
153
- status: "live" | "final";
153
+ status: "live" | "scheduled" | "final";
154
154
  isClosed: boolean;
155
155
  startedAt: number;
156
156
  finishedAt: number;
@@ -191,7 +191,7 @@ export declare const gameSchema: z.ZodObject<{
191
191
  id?: string | undefined;
192
192
  }, {
193
193
  round: number;
194
- status: "live" | "final";
194
+ status: "live" | "scheduled" | "final";
195
195
  isClosed: boolean;
196
196
  startedAt: number;
197
197
  finishedAt: number;
@@ -20,7 +20,11 @@ exports.gameRatingAggregateSchema = zod_1.z.object({
20
20
  });
21
21
  exports.gameSchema = zod_1.z.object({
22
22
  id: zod_1.z.string().optional(),
23
- status: zod_1.z.union([zod_1.z.literal("live"), zod_1.z.literal("final")]),
23
+ status: zod_1.z.union([
24
+ zod_1.z.literal("scheduled"),
25
+ zod_1.z.literal("live"),
26
+ zod_1.z.literal("final"),
27
+ ]),
24
28
  isClosed: zod_1.z.boolean(),
25
29
  startedAt: zod_1.z.number(),
26
30
  finishedAt: zod_1.z.number(),
@@ -20,6 +20,7 @@ export declare const userSchema: import("zod").ZodObject<{
20
20
  }>>;
21
21
  askedForPushNotifications: import("zod").ZodBoolean;
22
22
  acceptedPushNotifications: import("zod").ZodBoolean;
23
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
23
24
  }, "strip", import("zod").ZodTypeAny, {
24
25
  id: string;
25
26
  email: string;
@@ -36,6 +37,7 @@ export declare const userSchema: import("zod").ZodObject<{
36
37
  totalRatedGames?: number | undefined;
37
38
  avgRating?: number | undefined;
38
39
  isRegistrationComplete?: boolean | undefined;
40
+ badge?: string | undefined;
39
41
  }, {
40
42
  id: string;
41
43
  email: string;
@@ -52,6 +54,7 @@ export declare const userSchema: import("zod").ZodObject<{
52
54
  totalRatedGames?: number | undefined;
53
55
  avgRating?: number | undefined;
54
56
  isRegistrationComplete?: boolean | undefined;
57
+ badge?: string | undefined;
55
58
  }>;
56
59
  export declare const createUserSchema: import("zod").ZodObject<Omit<{
57
60
  id: import("zod").ZodString;
@@ -75,14 +78,17 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
75
78
  }>>;
76
79
  askedForPushNotifications: import("zod").ZodBoolean;
77
80
  acceptedPushNotifications: import("zod").ZodBoolean;
81
+ badge: import("zod").ZodOptional<import("zod").ZodString>;
78
82
  }, "id" | "createdAt" | "updatedAt" | "totalRatedGames" | "avgRating" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
79
83
  email: string;
80
84
  username: string;
81
85
  avatarUrl: string;
82
86
  isRegistrationComplete?: boolean | undefined;
87
+ badge?: string | undefined;
83
88
  }, {
84
89
  email: string;
85
90
  username: string;
86
91
  avatarUrl: string;
87
92
  isRegistrationComplete?: boolean | undefined;
93
+ badge?: string | undefined;
88
94
  }>;
@@ -18,6 +18,7 @@ exports.userSchema = (0, zod_1.object)({
18
18
  })),
19
19
  askedForPushNotifications: (0, zod_1.boolean)(),
20
20
  acceptedPushNotifications: (0, zod_1.boolean)(),
21
+ badge: (0, zod_1.string)().optional(),
21
22
  });
22
23
  exports.createUserSchema = exports.userSchema.omit({
23
24
  id: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
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",