rategame-shared 1.1.175 → 1.1.177

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.
@@ -59,7 +59,7 @@ exports.achievementsMap = {
59
59
  loyal_till_the_end: {
60
60
  id: "loyal_till_the_end",
61
61
  name: "Loyal Till the End",
62
- description: "Rate games where your favorite team losses.",
62
+ description: "Rate games where your favorite team loses.",
63
63
  tiers: {
64
64
  bronze: { threshold: 10 },
65
65
  silver: { threshold: 25 },
@@ -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
+ });