rategame-shared 1.0.97 → 1.0.99

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.
@@ -104,10 +104,12 @@ export declare const gameSchema: z.ZodObject<{
104
104
  score: z.ZodNumber;
105
105
  isWinner: z.ZodOptional<z.ZodBoolean>;
106
106
  image: z.ZodString;
107
+ seed: z.ZodNumber;
107
108
  }, "strip", z.ZodTypeAny, {
108
109
  name: string;
109
110
  image: string;
110
111
  apiTeamId: number;
112
+ seed: number;
111
113
  score: number;
112
114
  id?: string | undefined;
113
115
  isWinner?: boolean | undefined;
@@ -115,6 +117,7 @@ export declare const gameSchema: z.ZodObject<{
115
117
  name: string;
116
118
  image: string;
117
119
  apiTeamId: number;
120
+ seed: number;
118
121
  score: number;
119
122
  id?: string | undefined;
120
123
  isWinner?: boolean | undefined;
@@ -126,10 +129,12 @@ export declare const gameSchema: z.ZodObject<{
126
129
  score: z.ZodNumber;
127
130
  isWinner: z.ZodOptional<z.ZodBoolean>;
128
131
  image: z.ZodString;
132
+ seed: z.ZodNumber;
129
133
  }, "strip", z.ZodTypeAny, {
130
134
  name: string;
131
135
  image: string;
132
136
  apiTeamId: number;
137
+ seed: number;
133
138
  score: number;
134
139
  id?: string | undefined;
135
140
  isWinner?: boolean | undefined;
@@ -137,6 +142,7 @@ export declare const gameSchema: z.ZodObject<{
137
142
  name: string;
138
143
  image: string;
139
144
  apiTeamId: number;
145
+ seed: number;
140
146
  score: number;
141
147
  id?: string | undefined;
142
148
  isWinner?: boolean | undefined;
@@ -210,6 +216,7 @@ export declare const gameSchema: z.ZodObject<{
210
216
  name: string;
211
217
  image: string;
212
218
  apiTeamId: number;
219
+ seed: number;
213
220
  score: number;
214
221
  id?: string | undefined;
215
222
  isWinner?: boolean | undefined;
@@ -218,6 +225,7 @@ export declare const gameSchema: z.ZodObject<{
218
225
  name: string;
219
226
  image: string;
220
227
  apiTeamId: number;
228
+ seed: number;
221
229
  score: number;
222
230
  id?: string | undefined;
223
231
  isWinner?: boolean | undefined;
@@ -258,6 +266,7 @@ export declare const gameSchema: z.ZodObject<{
258
266
  name: string;
259
267
  image: string;
260
268
  apiTeamId: number;
269
+ seed: number;
261
270
  score: number;
262
271
  id?: string | undefined;
263
272
  isWinner?: boolean | undefined;
@@ -266,6 +275,7 @@ export declare const gameSchema: z.ZodObject<{
266
275
  name: string;
267
276
  image: string;
268
277
  apiTeamId: number;
278
+ seed: number;
269
279
  score: number;
270
280
  id?: string | undefined;
271
281
  isWinner?: boolean | undefined;
@@ -326,12 +336,10 @@ export declare const mlbGameSchema: z.ZodObject<{
326
336
  score: z.ZodNumber;
327
337
  isWinner: z.ZodOptional<z.ZodBoolean>;
328
338
  image: z.ZodString;
329
- seed: z.ZodNumber;
330
339
  }, "strip", z.ZodTypeAny, {
331
340
  name: string;
332
341
  image: string;
333
342
  apiTeamId: number;
334
- seed: number;
335
343
  score: number;
336
344
  id?: string | undefined;
337
345
  isWinner?: boolean | undefined;
@@ -339,7 +347,6 @@ export declare const mlbGameSchema: z.ZodObject<{
339
347
  name: string;
340
348
  image: string;
341
349
  apiTeamId: number;
342
- seed: number;
343
350
  score: number;
344
351
  id?: string | undefined;
345
352
  isWinner?: boolean | undefined;
@@ -351,12 +358,10 @@ export declare const mlbGameSchema: z.ZodObject<{
351
358
  score: z.ZodNumber;
352
359
  isWinner: z.ZodOptional<z.ZodBoolean>;
353
360
  image: z.ZodString;
354
- seed: z.ZodNumber;
355
361
  }, "strip", z.ZodTypeAny, {
356
362
  name: string;
357
363
  image: string;
358
364
  apiTeamId: number;
359
- seed: number;
360
365
  score: number;
361
366
  id?: string | undefined;
362
367
  isWinner?: boolean | undefined;
@@ -364,7 +369,6 @@ export declare const mlbGameSchema: z.ZodObject<{
364
369
  name: string;
365
370
  image: string;
366
371
  apiTeamId: number;
367
- seed: number;
368
372
  score: number;
369
373
  id?: string | undefined;
370
374
  isWinner?: boolean | undefined;
@@ -521,6 +525,7 @@ export declare const mlbGameSchema: z.ZodObject<{
521
525
  isLosingPitcher?: boolean | undefined;
522
526
  isSavingPitcher?: boolean | undefined;
523
527
  }>>;
528
+ outs: z.ZodOptional<z.ZodNumber>;
524
529
  }, "strip", z.ZodTypeAny, {
525
530
  status: "live" | "scheduled" | "final";
526
531
  startedAt: number;
@@ -531,7 +536,6 @@ export declare const mlbGameSchema: z.ZodObject<{
531
536
  name: string;
532
537
  image: string;
533
538
  apiTeamId: number;
534
- seed: number;
535
539
  score: number;
536
540
  id?: string | undefined;
537
541
  isWinner?: boolean | undefined;
@@ -540,7 +544,6 @@ export declare const mlbGameSchema: z.ZodObject<{
540
544
  name: string;
541
545
  image: string;
542
546
  apiTeamId: number;
543
- seed: number;
544
547
  score: number;
545
548
  id?: string | undefined;
546
549
  isWinner?: boolean | undefined;
@@ -605,6 +608,7 @@ export declare const mlbGameSchema: z.ZodObject<{
605
608
  isLosingPitcher?: boolean | undefined;
606
609
  isSavingPitcher?: boolean | undefined;
607
610
  } | undefined;
611
+ outs?: number | undefined;
608
612
  }, {
609
613
  status: "live" | "scheduled" | "final";
610
614
  startedAt: number;
@@ -615,7 +619,6 @@ export declare const mlbGameSchema: z.ZodObject<{
615
619
  name: string;
616
620
  image: string;
617
621
  apiTeamId: number;
618
- seed: number;
619
622
  score: number;
620
623
  id?: string | undefined;
621
624
  isWinner?: boolean | undefined;
@@ -624,7 +627,6 @@ export declare const mlbGameSchema: z.ZodObject<{
624
627
  name: string;
625
628
  image: string;
626
629
  apiTeamId: number;
627
- seed: number;
628
630
  score: number;
629
631
  id?: string | undefined;
630
632
  isWinner?: boolean | undefined;
@@ -689,6 +691,7 @@ export declare const mlbGameSchema: z.ZodObject<{
689
691
  isLosingPitcher?: boolean | undefined;
690
692
  isSavingPitcher?: boolean | undefined;
691
693
  } | undefined;
694
+ outs?: number | undefined;
692
695
  }>;
693
696
  export declare const searchGameSchema: z.ZodObject<{
694
697
  q: z.ZodOptional<z.ZodString>;
@@ -47,8 +47,8 @@ exports.gameSchema = zod_1.z.object({
47
47
  round: zod_1.z.number(),
48
48
  apiGameId: zod_1.z.number(),
49
49
  league: zod_1.z.union([zod_1.z.literal("ncaa"), zod_1.z.literal("nba"), zod_1.z.literal("mlb")]),
50
- homeTeam: exports.mlbGameTeamSchema,
51
- awayTeam: exports.mlbGameTeamSchema,
50
+ homeTeam: exports.gameTeamSchema,
51
+ awayTeam: exports.gameTeamSchema,
52
52
  timeRemainingMinutes: zod_1.z.number(),
53
53
  timeRemainingSeconds: zod_1.z.number(),
54
54
  periods: zod_1.z.array(zod_1.z.object({
@@ -80,8 +80,8 @@ exports.mlbGameSchema = zod_1.z.object({
80
80
  ratingWindowClosedAt: zod_1.z.number().optional(),
81
81
  round: zod_1.z.number().optional(),
82
82
  apiGameId: zod_1.z.number(),
83
- homeTeam: exports.gameTeamSchema,
84
- awayTeam: exports.gameTeamSchema,
83
+ homeTeam: exports.mlbGameTeamSchema,
84
+ awayTeam: exports.mlbGameTeamSchema,
85
85
  totalInningsRemaining: zod_1.z.number(),
86
86
  innings: zod_1.z.array(exports.inningSchema),
87
87
  inningHalf: zod_1.z.union([zod_1.z.literal("T"), zod_1.z.literal("B")]).optional(),
@@ -93,6 +93,7 @@ exports.mlbGameSchema = zod_1.z.object({
93
93
  losingPitcher: player_1.mlbPlayerSchema.optional(),
94
94
  winningPitcher: player_1.mlbPlayerSchema.optional(),
95
95
  savingPitcher: player_1.mlbPlayerSchema.optional(),
96
+ outs: zod_1.z.number().optional(),
96
97
  });
97
98
  exports.searchGameSchema = zod_1.z.object({
98
99
  q: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
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",