rategame-shared 1.1.256 → 1.1.257

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.
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from "./schemas/moderation";
10
10
  export * from "./schemas/userEvent";
11
11
  export * from "./schemas/player";
12
12
  export * from "./schemas/voting";
13
+ export * from "./schemas/stadium";
13
14
  export * from "./models/user";
14
15
  export * from "./models/rating";
15
16
  export * from "./models/game";
@@ -23,4 +24,5 @@ export * from "./models/userEvent";
23
24
  export * from "./helpers/index";
24
25
  export * from "./models/player";
25
26
  export * from "./models/voting";
27
+ export * from "./models/stadium";
26
28
  export * from "./constants";
package/dist/index.js CHANGED
@@ -26,6 +26,7 @@ __exportStar(require("./schemas/moderation"), exports);
26
26
  __exportStar(require("./schemas/userEvent"), exports);
27
27
  __exportStar(require("./schemas/player"), exports);
28
28
  __exportStar(require("./schemas/voting"), exports);
29
+ __exportStar(require("./schemas/stadium"), exports);
29
30
  __exportStar(require("./models/user"), exports);
30
31
  __exportStar(require("./models/rating"), exports);
31
32
  __exportStar(require("./models/game"), exports);
@@ -39,4 +40,5 @@ __exportStar(require("./models/userEvent"), exports);
39
40
  __exportStar(require("./helpers/index"), exports);
40
41
  __exportStar(require("./models/player"), exports);
41
42
  __exportStar(require("./models/voting"), exports);
43
+ __exportStar(require("./models/stadium"), exports);
42
44
  __exportStar(require("./constants"), exports);
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ import { stadiumSchema } from "../schemas/stadium";
3
+ export type Stadium = z.infer<typeof stadiumSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const stadiumSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ venueName: z.ZodString;
5
+ city: z.ZodString;
6
+ teams: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodString>;
8
+ name: z.ZodString;
9
+ image: z.ZodString;
10
+ teamCode: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ image: string;
14
+ teamCode: string;
15
+ id?: string | undefined;
16
+ }, {
17
+ name: string;
18
+ image: string;
19
+ teamCode: string;
20
+ id?: string | undefined;
21
+ }>, "many">;
22
+ stadiumImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ city: string;
25
+ venueName: string;
26
+ teams: {
27
+ name: string;
28
+ image: string;
29
+ teamCode: string;
30
+ id?: string | undefined;
31
+ }[];
32
+ id?: string | undefined;
33
+ stadiumImages?: string[] | undefined;
34
+ }, {
35
+ city: string;
36
+ venueName: string;
37
+ teams: {
38
+ name: string;
39
+ image: string;
40
+ teamCode: string;
41
+ id?: string | undefined;
42
+ }[];
43
+ id?: string | undefined;
44
+ stadiumImages?: string[] | undefined;
45
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stadiumSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const reducedTeamSchema = zod_1.z.object({
6
+ id: zod_1.z.string().optional(),
7
+ name: zod_1.z.string(),
8
+ image: zod_1.z.string(),
9
+ teamCode: zod_1.z.string(),
10
+ });
11
+ exports.stadiumSchema = zod_1.z.object({
12
+ id: zod_1.z.string().optional(),
13
+ venueName: zod_1.z.string(),
14
+ city: zod_1.z.string(),
15
+ teams: zod_1.z.array(reducedTeamSchema),
16
+ stadiumImages: zod_1.z.array(zod_1.z.string()).optional(),
17
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.256",
3
+ "version": "1.1.257",
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",