rategame-shared 1.0.71 → 1.0.73

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.
@@ -24,3 +24,28 @@ export declare const teamSchema: z.ZodObject<{
24
24
  city?: string | undefined;
25
25
  conference?: string | undefined;
26
26
  }>;
27
+ export declare const mlbTeamSchema: z.ZodObject<{
28
+ id: z.ZodOptional<z.ZodString>;
29
+ apiTeamId: z.ZodNumber;
30
+ name: z.ZodString;
31
+ image: z.ZodString;
32
+ city: z.ZodOptional<z.ZodString>;
33
+ division: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
34
+ conference: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ name: string;
37
+ image: string;
38
+ apiTeamId: number;
39
+ conference: "national" | "american";
40
+ division: "east" | "central" | "west";
41
+ id?: string | undefined;
42
+ city?: string | undefined;
43
+ }, {
44
+ name: string;
45
+ image: string;
46
+ apiTeamId: number;
47
+ conference: "national" | "american";
48
+ division: "east" | "central" | "west";
49
+ id?: string | undefined;
50
+ city?: string | undefined;
51
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.teamSchema = void 0;
3
+ exports.mlbTeamSchema = exports.teamSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.teamSchema = zod_1.z.object({
6
6
  id: zod_1.z.string().optional(),
@@ -11,3 +11,16 @@ exports.teamSchema = zod_1.z.object({
11
11
  city: zod_1.z.string().optional(),
12
12
  conference: zod_1.z.string().optional(),
13
13
  });
14
+ exports.mlbTeamSchema = zod_1.z.object({
15
+ id: zod_1.z.string().optional(),
16
+ apiTeamId: zod_1.z.number(),
17
+ name: zod_1.z.string(),
18
+ image: zod_1.z.string(),
19
+ city: zod_1.z.string().optional(),
20
+ division: zod_1.z.union([
21
+ zod_1.z.literal("east"),
22
+ zod_1.z.literal("central"),
23
+ zod_1.z.literal("west"),
24
+ ]),
25
+ conference: zod_1.z.union([zod_1.z.literal("national"), zod_1.z.literal("american")]),
26
+ });
@@ -88,6 +88,7 @@ export declare const userSchema: import("zod").ZodObject<{
88
88
  registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
89
89
  selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
90
90
  selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
91
+ lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
91
92
  }, "strip", import("zod").ZodTypeAny, {
92
93
  id: string;
93
94
  email: string;
@@ -121,6 +122,7 @@ export declare const userSchema: import("zod").ZodObject<{
121
122
  registrationStep?: number | undefined;
122
123
  selectedLeagues?: string[] | undefined;
123
124
  selectedTeams?: string[] | undefined;
125
+ lockedGameMessageSeen?: boolean | undefined;
124
126
  }, {
125
127
  id: string;
126
128
  email: string;
@@ -154,6 +156,7 @@ export declare const userSchema: import("zod").ZodObject<{
154
156
  registrationStep?: number | undefined;
155
157
  selectedLeagues?: string[] | undefined;
156
158
  selectedTeams?: string[] | undefined;
159
+ lockedGameMessageSeen?: boolean | undefined;
157
160
  }>;
158
161
  export declare const createUserSchema: import("zod").ZodObject<Omit<{
159
162
  id: import("zod").ZodString;
@@ -232,6 +235,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
232
235
  registrationStep: import("zod").ZodOptional<import("zod").ZodNumber>;
233
236
  selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
234
237
  selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
238
+ lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
235
239
  }, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
236
240
  email: string;
237
241
  username: string;
@@ -254,6 +258,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
254
258
  registrationStep?: number | undefined;
255
259
  selectedLeagues?: string[] | undefined;
256
260
  selectedTeams?: string[] | undefined;
261
+ lockedGameMessageSeen?: boolean | undefined;
257
262
  }, {
258
263
  email: string;
259
264
  username: string;
@@ -276,4 +281,5 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
276
281
  registrationStep?: number | undefined;
277
282
  selectedLeagues?: string[] | undefined;
278
283
  selectedTeams?: string[] | undefined;
284
+ lockedGameMessageSeen?: boolean | undefined;
279
285
  }>;
@@ -32,6 +32,7 @@ exports.userSchema = (0, zod_1.object)({
32
32
  registrationStep: (0, zod_1.number)().optional(),
33
33
  selectedLeagues: (0, zod_1.array)((0, zod_1.string)()).optional(),
34
34
  selectedTeams: (0, zod_1.array)((0, zod_1.string)()).optional(),
35
+ lockedGameMessageSeen: (0, zod_1.boolean)().optional(),
35
36
  });
36
37
  exports.createUserSchema = exports.userSchema.omit({
37
38
  id: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
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",