rategame-shared 1.1.270 → 1.1.271
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/schemas/stadium.d.ts +10 -10
- package/dist/schemas/stadium.js +9 -8
- package/package.json +1 -1
|
@@ -1279,7 +1279,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1279
1279
|
gamesAttended: z.ZodOptional<z.ZodNumber>;
|
|
1280
1280
|
type: z.ZodUnion<[z.ZodLiteral<"stadium">, z.ZodLiteral<"game">]>;
|
|
1281
1281
|
game: z.ZodOptional<z.ZodObject<{
|
|
1282
|
-
id: z.
|
|
1282
|
+
id: z.ZodString;
|
|
1283
1283
|
round: z.ZodOptional<z.ZodNumber>;
|
|
1284
1284
|
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">]>;
|
|
1285
1285
|
homeTeam: z.ZodObject<{
|
|
@@ -1389,6 +1389,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1389
1389
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
1390
1390
|
roundName: z.ZodOptional<z.ZodString>;
|
|
1391
1391
|
}, "strip", z.ZodTypeAny, {
|
|
1392
|
+
id: string;
|
|
1392
1393
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
1393
1394
|
homeTeam: {
|
|
1394
1395
|
name: string;
|
|
@@ -1420,7 +1421,6 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1420
1421
|
city?: string | undefined;
|
|
1421
1422
|
venueName?: string | undefined;
|
|
1422
1423
|
};
|
|
1423
|
-
id?: string | undefined;
|
|
1424
1424
|
round?: number | undefined;
|
|
1425
1425
|
week?: number | undefined;
|
|
1426
1426
|
startedAt?: number | undefined;
|
|
@@ -1433,6 +1433,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1433
1433
|
seasonType?: number | undefined;
|
|
1434
1434
|
roundName?: string | undefined;
|
|
1435
1435
|
}, {
|
|
1436
|
+
id: string;
|
|
1436
1437
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
1437
1438
|
homeTeam: {
|
|
1438
1439
|
name: string;
|
|
@@ -1464,7 +1465,6 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1464
1465
|
city?: string | undefined;
|
|
1465
1466
|
venueName?: string | undefined;
|
|
1466
1467
|
};
|
|
1467
|
-
id?: string | undefined;
|
|
1468
1468
|
round?: number | undefined;
|
|
1469
1469
|
week?: number | undefined;
|
|
1470
1470
|
startedAt?: number | undefined;
|
|
@@ -1521,6 +1521,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1521
1521
|
updatedAt?: number | undefined;
|
|
1522
1522
|
comment?: string | undefined;
|
|
1523
1523
|
game?: {
|
|
1524
|
+
id: string;
|
|
1524
1525
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
1525
1526
|
homeTeam: {
|
|
1526
1527
|
name: string;
|
|
@@ -1552,7 +1553,6 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1552
1553
|
city?: string | undefined;
|
|
1553
1554
|
venueName?: string | undefined;
|
|
1554
1555
|
};
|
|
1555
|
-
id?: string | undefined;
|
|
1556
1556
|
round?: number | undefined;
|
|
1557
1557
|
week?: number | undefined;
|
|
1558
1558
|
startedAt?: number | undefined;
|
|
@@ -1609,6 +1609,7 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1609
1609
|
updatedAt?: number | undefined;
|
|
1610
1610
|
comment?: string | undefined;
|
|
1611
1611
|
game?: {
|
|
1612
|
+
id: string;
|
|
1612
1613
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
1613
1614
|
homeTeam: {
|
|
1614
1615
|
name: string;
|
|
@@ -1640,7 +1641,6 @@ export declare const stadiumRatingSchema: z.ZodObject<{
|
|
|
1640
1641
|
city?: string | undefined;
|
|
1641
1642
|
venueName?: string | undefined;
|
|
1642
1643
|
};
|
|
1643
|
-
id?: string | undefined;
|
|
1644
1644
|
round?: number | undefined;
|
|
1645
1645
|
week?: number | undefined;
|
|
1646
1646
|
startedAt?: number | undefined;
|
|
@@ -2734,7 +2734,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
2734
2734
|
gamesAttended: z.ZodOptional<z.ZodNumber>;
|
|
2735
2735
|
type: z.ZodUnion<[z.ZodLiteral<"stadium">, z.ZodLiteral<"game">]>;
|
|
2736
2736
|
game: z.ZodOptional<z.ZodObject<{
|
|
2737
|
-
id: z.
|
|
2737
|
+
id: z.ZodString;
|
|
2738
2738
|
round: z.ZodOptional<z.ZodNumber>;
|
|
2739
2739
|
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">]>;
|
|
2740
2740
|
homeTeam: z.ZodObject<{
|
|
@@ -2844,6 +2844,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
2844
2844
|
startedAt: z.ZodOptional<z.ZodNumber>;
|
|
2845
2845
|
roundName: z.ZodOptional<z.ZodString>;
|
|
2846
2846
|
}, "strip", z.ZodTypeAny, {
|
|
2847
|
+
id: string;
|
|
2847
2848
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
2848
2849
|
homeTeam: {
|
|
2849
2850
|
name: string;
|
|
@@ -2875,7 +2876,6 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
2875
2876
|
city?: string | undefined;
|
|
2876
2877
|
venueName?: string | undefined;
|
|
2877
2878
|
};
|
|
2878
|
-
id?: string | undefined;
|
|
2879
2879
|
round?: number | undefined;
|
|
2880
2880
|
week?: number | undefined;
|
|
2881
2881
|
startedAt?: number | undefined;
|
|
@@ -2888,6 +2888,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
2888
2888
|
seasonType?: number | undefined;
|
|
2889
2889
|
roundName?: string | undefined;
|
|
2890
2890
|
}, {
|
|
2891
|
+
id: string;
|
|
2891
2892
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
2892
2893
|
homeTeam: {
|
|
2893
2894
|
name: string;
|
|
@@ -2919,7 +2920,6 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
2919
2920
|
city?: string | undefined;
|
|
2920
2921
|
venueName?: string | undefined;
|
|
2921
2922
|
};
|
|
2922
|
-
id?: string | undefined;
|
|
2923
2923
|
round?: number | undefined;
|
|
2924
2924
|
week?: number | undefined;
|
|
2925
2925
|
startedAt?: number | undefined;
|
|
@@ -3064,6 +3064,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
3064
3064
|
updatedAt?: number | undefined;
|
|
3065
3065
|
comment?: string | undefined;
|
|
3066
3066
|
game?: {
|
|
3067
|
+
id: string;
|
|
3067
3068
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
3068
3069
|
homeTeam: {
|
|
3069
3070
|
name: string;
|
|
@@ -3095,7 +3096,6 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
3095
3096
|
city?: string | undefined;
|
|
3096
3097
|
venueName?: string | undefined;
|
|
3097
3098
|
};
|
|
3098
|
-
id?: string | undefined;
|
|
3099
3099
|
round?: number | undefined;
|
|
3100
3100
|
week?: number | undefined;
|
|
3101
3101
|
startedAt?: number | undefined;
|
|
@@ -3144,6 +3144,7 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
3144
3144
|
updatedAt?: number | undefined;
|
|
3145
3145
|
comment?: string | undefined;
|
|
3146
3146
|
game?: {
|
|
3147
|
+
id: string;
|
|
3147
3148
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
3148
3149
|
homeTeam: {
|
|
3149
3150
|
name: string;
|
|
@@ -3175,7 +3176,6 @@ export declare const createStadiumRatingSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
3175
3176
|
city?: string | undefined;
|
|
3176
3177
|
venueName?: string | undefined;
|
|
3177
3178
|
};
|
|
3178
|
-
id?: string | undefined;
|
|
3179
3179
|
round?: number | undefined;
|
|
3180
3180
|
week?: number | undefined;
|
|
3181
3181
|
startedAt?: number | undefined;
|
package/dist/schemas/stadium.js
CHANGED
|
@@ -6,6 +6,7 @@ const sharedTypes_1 = require("./sharedTypes");
|
|
|
6
6
|
const user_1 = require("./user");
|
|
7
7
|
const game_1 = require("./game");
|
|
8
8
|
const game_2 = require("./game");
|
|
9
|
+
const zod_2 = require("zod");
|
|
9
10
|
const reducedTeamSchema = zod_1.z.object({
|
|
10
11
|
id: zod_1.z.string().optional(),
|
|
11
12
|
name: zod_1.z.string(),
|
|
@@ -23,17 +24,17 @@ exports.stadiumRatingAggregateSchema = zod_1.z.object({
|
|
|
23
24
|
total: zod_1.z.number(),
|
|
24
25
|
}),
|
|
25
26
|
});
|
|
26
|
-
const
|
|
27
|
-
id:
|
|
28
|
-
round:
|
|
27
|
+
const gameForStadiumRatingSchema = (0, zod_2.object)({
|
|
28
|
+
id: (0, zod_2.string)(),
|
|
29
|
+
round: (0, zod_2.number)().optional(),
|
|
29
30
|
league: sharedTypes_1.leagueSlug,
|
|
30
31
|
homeTeam: game_1.gameTeamSchema,
|
|
31
32
|
awayTeam: game_1.gameTeamSchema,
|
|
32
33
|
seriesInfo: game_2.seriesInfoSchema.optional(),
|
|
33
|
-
week:
|
|
34
|
-
seasonType:
|
|
35
|
-
startedAt:
|
|
36
|
-
roundName:
|
|
34
|
+
week: (0, zod_2.number)().optional(),
|
|
35
|
+
seasonType: (0, zod_2.number)().optional(),
|
|
36
|
+
startedAt: (0, zod_2.number)().optional(),
|
|
37
|
+
roundName: (0, zod_2.string)().optional(),
|
|
37
38
|
});
|
|
38
39
|
exports.stadiumSchema = zod_1.z.object({
|
|
39
40
|
id: zod_1.z.string().optional(),
|
|
@@ -58,7 +59,7 @@ exports.stadiumRatingSchema = zod_1.z.object({
|
|
|
58
59
|
stadium: exports.stadiumSchema,
|
|
59
60
|
gamesAttended: zod_1.z.number().optional(),
|
|
60
61
|
type: zod_1.z.union([zod_1.z.literal("stadium"), zod_1.z.literal("game")]),
|
|
61
|
-
game:
|
|
62
|
+
game: gameForStadiumRatingSchema.optional(),
|
|
62
63
|
userLikes: zod_1.z.number().optional(),
|
|
63
64
|
updatedAt: zod_1.z.number().optional(),
|
|
64
65
|
edited: zod_1.z.boolean().optional(),
|