rategame-shared 1.1.5 → 1.1.6

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,7 +24,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
24
24
  }>;
25
25
  game: import("zod").ZodObject<{
26
26
  id: import("zod").ZodString;
27
- round: import("zod").ZodNumber;
27
+ round: import("zod").ZodOptional<import("zod").ZodNumber>;
28
28
  league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
29
29
  homeTeam: import("zod").ZodObject<{
30
30
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -94,7 +94,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
94
94
  }>>;
95
95
  }, "strip", import("zod").ZodTypeAny, {
96
96
  id: string;
97
- round: number;
98
97
  league: "nba" | "ncaa" | "mlb";
99
98
  homeTeam: {
100
99
  name: string;
@@ -114,6 +113,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
114
113
  isWinner?: boolean | undefined;
115
114
  seed?: number | undefined;
116
115
  };
116
+ round?: number | undefined;
117
117
  seriesInfo?: {
118
118
  maxLength: number;
119
119
  homeTeamWins: number;
@@ -122,7 +122,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
122
122
  } | undefined;
123
123
  }, {
124
124
  id: string;
125
- round: number;
126
125
  league: "nba" | "ncaa" | "mlb";
127
126
  homeTeam: {
128
127
  name: string;
@@ -142,6 +141,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
142
141
  isWinner?: boolean | undefined;
143
142
  seed?: number | undefined;
144
143
  };
144
+ round?: number | undefined;
145
145
  seriesInfo?: {
146
146
  maxLength: number;
147
147
  homeTeamWins: number;
@@ -163,7 +163,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
163
163
  rating: number;
164
164
  game: {
165
165
  id: string;
166
- round: number;
167
166
  league: "nba" | "ncaa" | "mlb";
168
167
  homeTeam: {
169
168
  name: string;
@@ -183,6 +182,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
183
182
  isWinner?: boolean | undefined;
184
183
  seed?: number | undefined;
185
184
  };
185
+ round?: number | undefined;
186
186
  seriesInfo?: {
187
187
  maxLength: number;
188
188
  homeTeamWins: number;
@@ -205,7 +205,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
205
205
  rating: number;
206
206
  game: {
207
207
  id: string;
208
- round: number;
209
208
  league: "nba" | "ncaa" | "mlb";
210
209
  homeTeam: {
211
210
  name: string;
@@ -225,6 +224,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
225
224
  isWinner?: boolean | undefined;
226
225
  seed?: number | undefined;
227
226
  };
227
+ round?: number | undefined;
228
228
  seriesInfo?: {
229
229
  maxLength: number;
230
230
  homeTeamWins: number;
@@ -373,7 +373,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
373
373
  }>;
374
374
  game: import("zod").ZodObject<{
375
375
  id: import("zod").ZodString;
376
- round: import("zod").ZodNumber;
376
+ round: import("zod").ZodOptional<import("zod").ZodNumber>;
377
377
  league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
378
378
  homeTeam: import("zod").ZodObject<{
379
379
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -443,7 +443,6 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
443
443
  }>>;
444
444
  }, "strip", import("zod").ZodTypeAny, {
445
445
  id: string;
446
- round: number;
447
446
  league: "nba" | "ncaa" | "mlb";
448
447
  homeTeam: {
449
448
  name: string;
@@ -463,6 +462,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
463
462
  isWinner?: boolean | undefined;
464
463
  seed?: number | undefined;
465
464
  };
465
+ round?: number | undefined;
466
466
  seriesInfo?: {
467
467
  maxLength: number;
468
468
  homeTeamWins: number;
@@ -471,7 +471,6 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
471
471
  } | undefined;
472
472
  }, {
473
473
  id: string;
474
- round: number;
475
474
  league: "nba" | "ncaa" | "mlb";
476
475
  homeTeam: {
477
476
  name: string;
@@ -491,6 +490,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
491
490
  isWinner?: boolean | undefined;
492
491
  seed?: number | undefined;
493
492
  };
493
+ round?: number | undefined;
494
494
  seriesInfo?: {
495
495
  maxLength: number;
496
496
  homeTeamWins: number;
@@ -502,7 +502,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
502
502
  }, "id" | "user" | "createdAt">, {
503
503
  game: import("zod").ZodObject<Omit<{
504
504
  id: import("zod").ZodString;
505
- round: import("zod").ZodNumber;
505
+ round: import("zod").ZodOptional<import("zod").ZodNumber>;
506
506
  league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
507
507
  homeTeam: import("zod").ZodObject<{
508
508
  id: import("zod").ZodOptional<import("zod").ZodString>;
@@ -17,7 +17,7 @@ exports.ratingSchema = (0, zod_1.object)({
17
17
  }),
18
18
  game: (0, zod_1.object)({
19
19
  id: (0, zod_1.string)(),
20
- round: (0, zod_1.number)(),
20
+ round: (0, zod_1.number)().optional(),
21
21
  league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
22
22
  homeTeam: game_1.gameTeamSchema,
23
23
  awayTeam: game_1.gameTeamSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
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",