rategame-shared 1.1.161 → 1.1.163

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.
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { mlbPlayerSchema } from "../schemas/player";
3
+ export type MLBPlayer = z.infer<typeof mlbPlayerSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { z } from "zod";
2
+ export declare const mlbPlayerSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ name: z.ZodString;
5
+ wins: z.ZodNumber;
6
+ losses: z.ZodNumber;
7
+ saves: z.ZodNumber;
8
+ games: z.ZodNumber;
9
+ isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
10
+ isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
11
+ isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ name: string;
14
+ wins: number;
15
+ losses: number;
16
+ saves: number;
17
+ games: number;
18
+ id?: string | undefined;
19
+ isWinningPitcher?: boolean | undefined;
20
+ isLosingPitcher?: boolean | undefined;
21
+ isSavingPitcher?: boolean | undefined;
22
+ }, {
23
+ name: string;
24
+ wins: number;
25
+ losses: number;
26
+ saves: number;
27
+ games: number;
28
+ id?: string | undefined;
29
+ isWinningPitcher?: boolean | undefined;
30
+ isLosingPitcher?: boolean | undefined;
31
+ isSavingPitcher?: boolean | undefined;
32
+ }>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mlbPlayerSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.mlbPlayerSchema = zod_1.z.object({
6
+ id: zod_1.z.string().optional(),
7
+ name: zod_1.z.string(),
8
+ wins: zod_1.z.number(),
9
+ losses: zod_1.z.number(),
10
+ saves: zod_1.z.number(),
11
+ games: zod_1.z.number(),
12
+ isWinningPitcher: zod_1.z.boolean().optional(),
13
+ isLosingPitcher: zod_1.z.boolean().optional(),
14
+ isSavingPitcher: zod_1.z.boolean().optional(),
15
+ });
@@ -3195,20 +3195,24 @@ export declare const seasonStatsSchema: import("zod").ZodObject<{
3195
3195
  season: import("zod").ZodString;
3196
3196
  ratings: import("zod").ZodNumber;
3197
3197
  average: import("zod").ZodString;
3198
+ totalGames: import("zod").ZodNumber;
3198
3199
  }, "strip", import("zod").ZodTypeAny, {
3199
3200
  ratings: number;
3200
3201
  season: string;
3201
3202
  average: string;
3203
+ totalGames: number;
3202
3204
  }, {
3203
3205
  ratings: number;
3204
3206
  season: string;
3205
3207
  average: string;
3208
+ totalGames: number;
3206
3209
  }>;
3207
3210
  export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3208
3211
  season: import("zod").ZodString;
3209
3212
  ratings: import("zod").ZodNumber;
3210
3213
  average: import("zod").ZodString;
3211
3214
  type: import("zod").ZodUnion<[import("zod").ZodLiteral<"combined">, import("zod").ZodLiteral<"regularSeason">, import("zod").ZodLiteral<"playoffs">]>;
3215
+ totalGames: import("zod").ZodOptional<import("zod").ZodNumber>;
3212
3216
  earliestDate: import("zod").ZodOptional<import("zod").ZodNumber>;
3213
3217
  latestDate: import("zod").ZodOptional<import("zod").ZodNumber>;
3214
3218
  }, "strip", import("zod").ZodTypeAny, {
@@ -3216,6 +3220,7 @@ export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3216
3220
  ratings: number;
3217
3221
  season: string;
3218
3222
  average: string;
3223
+ totalGames?: number | undefined;
3219
3224
  earliestDate?: number | undefined;
3220
3225
  latestDate?: number | undefined;
3221
3226
  }, {
@@ -3223,6 +3228,7 @@ export declare const seasonGroupStatsSchema: import("zod").ZodObject<{
3223
3228
  ratings: number;
3224
3229
  season: string;
3225
3230
  average: string;
3231
+ totalGames?: number | undefined;
3226
3232
  earliestDate?: number | undefined;
3227
3233
  latestDate?: number | undefined;
3228
3234
  }>;
@@ -134,12 +134,14 @@ exports.seasonStatsSchema = (0, zod_1.object)({
134
134
  season: (0, zod_1.string)(),
135
135
  ratings: (0, zod_1.number)(),
136
136
  average: (0, zod_1.string)(),
137
+ totalGames: (0, zod_1.number)(),
137
138
  });
138
139
  exports.seasonGroupStatsSchema = (0, zod_1.object)({
139
140
  season: (0, zod_1.string)(),
140
141
  ratings: (0, zod_1.number)(),
141
142
  average: (0, zod_1.string)(),
142
143
  type: sharedTypes_1.seasonGroupingSchema,
144
+ totalGames: (0, zod_1.number)().optional(),
143
145
  earliestDate: (0, zod_1.number)().optional(),
144
146
  latestDate: (0, zod_1.number)().optional(),
145
147
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.161",
3
+ "version": "1.1.163",
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",