rategame-shared 1.1.256 → 1.1.258
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 +2 -0
- package/dist/index.js +2 -0
- package/dist/models/stadium.d.ts +3 -0
- package/dist/models/stadium.js +2 -0
- package/dist/schemas/stadium.d.ts +60 -0
- package/dist/schemas/stadium.js +21 -0
- package/package.json +1 -1
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,60 @@
|
|
|
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
|
+
league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"mls">, z.ZodLiteral<"wnba">, z.ZodLiteral<"cwc">, z.ZodLiteral<"global">]>;
|
|
12
|
+
school: z.ZodOptional<z.ZodString>;
|
|
13
|
+
city: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
name: string;
|
|
16
|
+
image: string;
|
|
17
|
+
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
18
|
+
teamCode: string;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
school?: string | undefined;
|
|
21
|
+
city?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
name: string;
|
|
24
|
+
image: string;
|
|
25
|
+
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
26
|
+
teamCode: string;
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
school?: string | undefined;
|
|
29
|
+
city?: string | undefined;
|
|
30
|
+
}>, "many">;
|
|
31
|
+
stadiumImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
city: string;
|
|
34
|
+
venueName: string;
|
|
35
|
+
teams: {
|
|
36
|
+
name: string;
|
|
37
|
+
image: string;
|
|
38
|
+
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
39
|
+
teamCode: string;
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
school?: string | undefined;
|
|
42
|
+
city?: string | undefined;
|
|
43
|
+
}[];
|
|
44
|
+
id?: string | undefined;
|
|
45
|
+
stadiumImages?: string[] | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
city: string;
|
|
48
|
+
venueName: string;
|
|
49
|
+
teams: {
|
|
50
|
+
name: string;
|
|
51
|
+
image: string;
|
|
52
|
+
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
53
|
+
teamCode: string;
|
|
54
|
+
id?: string | undefined;
|
|
55
|
+
school?: string | undefined;
|
|
56
|
+
city?: string | undefined;
|
|
57
|
+
}[];
|
|
58
|
+
id?: string | undefined;
|
|
59
|
+
stadiumImages?: string[] | undefined;
|
|
60
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stadiumSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const sharedTypes_1 = require("./sharedTypes");
|
|
6
|
+
const reducedTeamSchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.string().optional(),
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
image: zod_1.z.string(),
|
|
10
|
+
teamCode: zod_1.z.string(),
|
|
11
|
+
league: sharedTypes_1.leagueSlug,
|
|
12
|
+
school: zod_1.z.string().optional(),
|
|
13
|
+
city: zod_1.z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
exports.stadiumSchema = zod_1.z.object({
|
|
16
|
+
id: zod_1.z.string().optional(),
|
|
17
|
+
venueName: zod_1.z.string(),
|
|
18
|
+
city: zod_1.z.string(),
|
|
19
|
+
teams: zod_1.z.array(reducedTeamSchema),
|
|
20
|
+
stadiumImages: zod_1.z.array(zod_1.z.string()).optional(),
|
|
21
|
+
});
|