rategame-shared 1.1.11 → 1.1.12

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
- import { teamSchema, mlbTeamSchema, divisionSchema, conferenceSchema } from "../schemas/team";
2
+ import { teamSchema, mlbTeamSchema, divisionSchema, leagueSchema } from "../schemas/team";
3
3
  export type Team = z.infer<typeof teamSchema>;
4
4
  export type MLBTeam = z.infer<typeof mlbTeamSchema>;
5
- export type Division = z.infer<typeof divisionSchema>;
6
- export type Conference = z.infer<typeof conferenceSchema>;
5
+ export type MLBDivision = z.infer<typeof divisionSchema>;
6
+ export type MLBLeague = z.infer<typeof leagueSchema>;
@@ -25,7 +25,7 @@ export declare const teamSchema: z.ZodObject<{
25
25
  conference?: string | undefined;
26
26
  }>;
27
27
  export declare const divisionSchema: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
28
- export declare const conferenceSchema: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
28
+ export declare const leagueSchema: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
29
29
  export declare const mlbTeamSchema: z.ZodObject<{
30
30
  id: z.ZodOptional<z.ZodString>;
31
31
  apiTeamId: z.ZodNumber;
@@ -33,12 +33,12 @@ export declare const mlbTeamSchema: z.ZodObject<{
33
33
  image: z.ZodString;
34
34
  city: z.ZodOptional<z.ZodString>;
35
35
  division: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
36
- conference: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
36
+ league: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
37
37
  }, "strip", z.ZodTypeAny, {
38
38
  name: string;
39
39
  image: string;
40
40
  apiTeamId: number;
41
- conference: "national" | "american";
41
+ league: "national" | "american";
42
42
  division: "east" | "central" | "west";
43
43
  id?: string | undefined;
44
44
  city?: string | undefined;
@@ -46,7 +46,7 @@ export declare const mlbTeamSchema: z.ZodObject<{
46
46
  name: string;
47
47
  image: string;
48
48
  apiTeamId: number;
49
- conference: "national" | "american";
49
+ league: "national" | "american";
50
50
  division: "east" | "central" | "west";
51
51
  id?: string | undefined;
52
52
  city?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mlbTeamSchema = exports.conferenceSchema = exports.divisionSchema = exports.teamSchema = void 0;
3
+ exports.mlbTeamSchema = exports.leagueSchema = exports.divisionSchema = 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(),
@@ -16,7 +16,7 @@ exports.divisionSchema = zod_1.z.union([
16
16
  zod_1.z.literal("central"),
17
17
  zod_1.z.literal("west"),
18
18
  ]);
19
- exports.conferenceSchema = zod_1.z.union([
19
+ exports.leagueSchema = zod_1.z.union([
20
20
  zod_1.z.literal("national"),
21
21
  zod_1.z.literal("american"),
22
22
  ]);
@@ -27,5 +27,5 @@ exports.mlbTeamSchema = zod_1.z.object({
27
27
  image: zod_1.z.string(),
28
28
  city: zod_1.z.string().optional(),
29
29
  division: exports.divisionSchema,
30
- conference: exports.conferenceSchema,
30
+ league: exports.leagueSchema,
31
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
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",