rategame-shared 1.1.516 → 1.1.518
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/article.d.ts +101 -22
- package/dist/schemas/article.js +4 -0
- package/dist/schemas/chat.d.ts +55 -0
- package/dist/schemas/experience.d.ts +44 -0
- package/dist/schemas/game.d.ts +220 -0
- package/dist/schemas/list.d.ts +64 -9
- package/dist/schemas/list.js +4 -2
- package/dist/schemas/miniLeague.d.ts +571 -64
- package/dist/schemas/miniLeague.js +45 -2
- package/dist/schemas/moderation.d.ts +44 -0
- package/dist/schemas/pick.d.ts +418 -0
- package/dist/schemas/poll.d.ts +176 -0
- package/dist/schemas/rating.d.ts +33 -0
- package/dist/schemas/scorePrediction.d.ts +297 -0
- package/dist/schemas/stadium.d.ts +44 -0
- package/dist/schemas/trivia.d.ts +89 -15
- package/dist/schemas/trivia.js +4 -0
- package/dist/schemas/user.d.ts +48 -0
- package/dist/schemas/user.js +4 -0
- package/dist/schemas/userEvent.d.ts +33 -0
- package/dist/schemas/voting.d.ts +99 -0
- package/package.json +1 -1
|
@@ -5,19 +5,20 @@ import { z } from "zod";
|
|
|
5
5
|
* about the RateGame app itself; it carries no foreign id and links to the app
|
|
6
6
|
* home (Discover on web, the Games tab on mobile).
|
|
7
7
|
*/
|
|
8
|
-
export declare const articleEntityTypeSchema: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
|
|
8
|
+
export declare const articleEntityTypeSchema: z.ZodEnum<["team", "league", "stadium", "game", "player", "rategame"]>;
|
|
9
9
|
/**
|
|
10
10
|
* A single entity tag on an article. Reuses the trivia entity model so the
|
|
11
11
|
* existing entity pickers (league/team/stadium/game) can be shared. An article
|
|
12
12
|
* may be tagged with up to 10 of these.
|
|
13
13
|
*/
|
|
14
14
|
export declare const articleEntitySchema: z.ZodObject<{
|
|
15
|
-
type: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
|
|
15
|
+
type: z.ZodEnum<["team", "league", "stadium", "game", "player", "rategame"]>;
|
|
16
16
|
teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
17
17
|
league: z.ZodOptional<z.ZodString>;
|
|
18
18
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
19
19
|
stadiumLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20
20
|
gameId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
21
22
|
contentEntity: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
22
23
|
name: z.ZodString;
|
|
23
24
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -33,11 +34,12 @@ export declare const articleEntitySchema: z.ZodObject<{
|
|
|
33
34
|
}>>>;
|
|
34
35
|
gameEntity: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
37
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
37
38
|
league?: string | undefined;
|
|
38
39
|
gameId?: string | undefined;
|
|
39
40
|
stadiumId?: string | undefined;
|
|
40
41
|
teamId?: string | number | undefined;
|
|
42
|
+
playerId?: string | undefined;
|
|
41
43
|
stadiumLeagues?: string[] | undefined;
|
|
42
44
|
contentEntity?: {
|
|
43
45
|
name: string;
|
|
@@ -46,11 +48,12 @@ export declare const articleEntitySchema: z.ZodObject<{
|
|
|
46
48
|
} | null | undefined;
|
|
47
49
|
gameEntity?: any;
|
|
48
50
|
}, {
|
|
49
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
51
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
50
52
|
league?: string | undefined;
|
|
51
53
|
gameId?: string | undefined;
|
|
52
54
|
stadiumId?: string | undefined;
|
|
53
55
|
teamId?: string | number | undefined;
|
|
56
|
+
playerId?: string | undefined;
|
|
54
57
|
stadiumLeagues?: string[] | undefined;
|
|
55
58
|
contentEntity?: {
|
|
56
59
|
name: string;
|
|
@@ -73,12 +76,13 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
73
76
|
imageUrlMedium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
77
|
imageUrlSmall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
78
|
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
|
-
type: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
|
|
79
|
+
type: z.ZodEnum<["team", "league", "stadium", "game", "player", "rategame"]>;
|
|
77
80
|
teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
78
81
|
league: z.ZodOptional<z.ZodString>;
|
|
79
82
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
80
83
|
stadiumLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
81
84
|
gameId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
82
86
|
contentEntity: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
83
87
|
name: z.ZodString;
|
|
84
88
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -94,11 +98,12 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
94
98
|
}>>>;
|
|
95
99
|
gameEntity: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
96
100
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
101
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
98
102
|
league?: string | undefined;
|
|
99
103
|
gameId?: string | undefined;
|
|
100
104
|
stadiumId?: string | undefined;
|
|
101
105
|
teamId?: string | number | undefined;
|
|
106
|
+
playerId?: string | undefined;
|
|
102
107
|
stadiumLeagues?: string[] | undefined;
|
|
103
108
|
contentEntity?: {
|
|
104
109
|
name: string;
|
|
@@ -107,11 +112,12 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
107
112
|
} | null | undefined;
|
|
108
113
|
gameEntity?: any;
|
|
109
114
|
}, {
|
|
110
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
115
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
111
116
|
league?: string | undefined;
|
|
112
117
|
gameId?: string | undefined;
|
|
113
118
|
stadiumId?: string | undefined;
|
|
114
119
|
teamId?: string | number | undefined;
|
|
120
|
+
playerId?: string | undefined;
|
|
115
121
|
stadiumLeagues?: string[] | undefined;
|
|
116
122
|
contentEntity?: {
|
|
117
123
|
name: string;
|
|
@@ -124,6 +130,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
124
130
|
entityTeamIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
125
131
|
entityStadiumIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
126
132
|
entityGameIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
133
|
+
entityPlayerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
127
134
|
user: z.ZodObject<Pick<{
|
|
128
135
|
id: z.ZodString;
|
|
129
136
|
email: z.ZodString;
|
|
@@ -1200,6 +1207,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1200
1207
|
selectedLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1201
1208
|
selectedTeams: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1202
1209
|
joinedChallengeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1210
|
+
scorePredictionLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1203
1211
|
lockedGameMessageSeen: z.ZodOptional<z.ZodBoolean>;
|
|
1204
1212
|
bio: z.ZodOptional<z.ZodString>;
|
|
1205
1213
|
socialLinks: z.ZodOptional<z.ZodObject<{
|
|
@@ -1247,8 +1255,10 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1247
1255
|
mlb: z.ZodOptional<z.ZodBoolean>;
|
|
1248
1256
|
nba: z.ZodOptional<z.ZodBoolean>;
|
|
1249
1257
|
wnba: z.ZodOptional<z.ZodBoolean>;
|
|
1258
|
+
nhl: z.ZodOptional<z.ZodBoolean>;
|
|
1250
1259
|
nfl: z.ZodOptional<z.ZodBoolean>;
|
|
1251
1260
|
cfb: z.ZodOptional<z.ZodBoolean>;
|
|
1261
|
+
cbb: z.ZodOptional<z.ZodBoolean>;
|
|
1252
1262
|
mls: z.ZodOptional<z.ZodBoolean>;
|
|
1253
1263
|
epl: z.ZodOptional<z.ZodBoolean>;
|
|
1254
1264
|
clubhouse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1257,7 +1267,9 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1257
1267
|
global?: boolean | undefined;
|
|
1258
1268
|
nba?: boolean | undefined;
|
|
1259
1269
|
nfl?: boolean | undefined;
|
|
1270
|
+
nhl?: boolean | undefined;
|
|
1260
1271
|
mlb?: boolean | undefined;
|
|
1272
|
+
cbb?: boolean | undefined;
|
|
1261
1273
|
cfb?: boolean | undefined;
|
|
1262
1274
|
epl?: boolean | undefined;
|
|
1263
1275
|
mls?: boolean | undefined;
|
|
@@ -1268,7 +1280,9 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1268
1280
|
global?: boolean | undefined;
|
|
1269
1281
|
nba?: boolean | undefined;
|
|
1270
1282
|
nfl?: boolean | undefined;
|
|
1283
|
+
nhl?: boolean | undefined;
|
|
1271
1284
|
mlb?: boolean | undefined;
|
|
1285
|
+
cbb?: boolean | undefined;
|
|
1272
1286
|
cfb?: boolean | undefined;
|
|
1273
1287
|
epl?: boolean | undefined;
|
|
1274
1288
|
mls?: boolean | undefined;
|
|
@@ -1303,7 +1317,9 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1303
1317
|
global?: boolean | undefined;
|
|
1304
1318
|
nba?: boolean | undefined;
|
|
1305
1319
|
nfl?: boolean | undefined;
|
|
1320
|
+
nhl?: boolean | undefined;
|
|
1306
1321
|
mlb?: boolean | undefined;
|
|
1322
|
+
cbb?: boolean | undefined;
|
|
1307
1323
|
cfb?: boolean | undefined;
|
|
1308
1324
|
epl?: boolean | undefined;
|
|
1309
1325
|
mls?: boolean | undefined;
|
|
@@ -1338,7 +1354,9 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1338
1354
|
global?: boolean | undefined;
|
|
1339
1355
|
nba?: boolean | undefined;
|
|
1340
1356
|
nfl?: boolean | undefined;
|
|
1357
|
+
nhl?: boolean | undefined;
|
|
1341
1358
|
mlb?: boolean | undefined;
|
|
1359
|
+
cbb?: boolean | undefined;
|
|
1342
1360
|
cfb?: boolean | undefined;
|
|
1343
1361
|
epl?: boolean | undefined;
|
|
1344
1362
|
mls?: boolean | undefined;
|
|
@@ -1779,11 +1797,12 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1779
1797
|
imageUrlMedium?: string | null | undefined;
|
|
1780
1798
|
imageUrlSmall?: string | null | undefined;
|
|
1781
1799
|
entities?: {
|
|
1782
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
1800
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
1783
1801
|
league?: string | undefined;
|
|
1784
1802
|
gameId?: string | undefined;
|
|
1785
1803
|
stadiumId?: string | undefined;
|
|
1786
1804
|
teamId?: string | number | undefined;
|
|
1805
|
+
playerId?: string | undefined;
|
|
1787
1806
|
stadiumLeagues?: string[] | undefined;
|
|
1788
1807
|
contentEntity?: {
|
|
1789
1808
|
name: string;
|
|
@@ -1796,6 +1815,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1796
1815
|
entityTeamIds?: string[] | undefined;
|
|
1797
1816
|
entityStadiumIds?: string[] | undefined;
|
|
1798
1817
|
entityGameIds?: string[] | undefined;
|
|
1818
|
+
entityPlayerIds?: string[] | undefined;
|
|
1799
1819
|
}, {
|
|
1800
1820
|
id: string;
|
|
1801
1821
|
body: string;
|
|
@@ -1814,11 +1834,12 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1814
1834
|
imageUrlMedium?: string | null | undefined;
|
|
1815
1835
|
imageUrlSmall?: string | null | undefined;
|
|
1816
1836
|
entities?: {
|
|
1817
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
1837
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
1818
1838
|
league?: string | undefined;
|
|
1819
1839
|
gameId?: string | undefined;
|
|
1820
1840
|
stadiumId?: string | undefined;
|
|
1821
1841
|
teamId?: string | number | undefined;
|
|
1842
|
+
playerId?: string | undefined;
|
|
1822
1843
|
stadiumLeagues?: string[] | undefined;
|
|
1823
1844
|
contentEntity?: {
|
|
1824
1845
|
name: string;
|
|
@@ -1831,6 +1852,7 @@ export declare const articleSchema: z.ZodObject<{
|
|
|
1831
1852
|
entityTeamIds?: string[] | undefined;
|
|
1832
1853
|
entityStadiumIds?: string[] | undefined;
|
|
1833
1854
|
entityGameIds?: string[] | undefined;
|
|
1855
|
+
entityPlayerIds?: string[] | undefined;
|
|
1834
1856
|
}>;
|
|
1835
1857
|
/**
|
|
1836
1858
|
* Schema for creating a new article. `createdAt`, `slug`, and the denormalized
|
|
@@ -1847,12 +1869,13 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
1847
1869
|
body: z.ZodString;
|
|
1848
1870
|
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1849
1871
|
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1850
|
-
type: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
|
|
1872
|
+
type: z.ZodEnum<["team", "league", "stadium", "game", "player", "rategame"]>;
|
|
1851
1873
|
teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1852
1874
|
league: z.ZodOptional<z.ZodString>;
|
|
1853
1875
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
1854
1876
|
stadiumLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1855
1877
|
gameId: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
1856
1879
|
contentEntity: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1857
1880
|
name: z.ZodString;
|
|
1858
1881
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -1868,11 +1891,12 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
1868
1891
|
}>>>;
|
|
1869
1892
|
gameEntity: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
1870
1893
|
}, "strip", z.ZodTypeAny, {
|
|
1871
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
1894
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
1872
1895
|
league?: string | undefined;
|
|
1873
1896
|
gameId?: string | undefined;
|
|
1874
1897
|
stadiumId?: string | undefined;
|
|
1875
1898
|
teamId?: string | number | undefined;
|
|
1899
|
+
playerId?: string | undefined;
|
|
1876
1900
|
stadiumLeagues?: string[] | undefined;
|
|
1877
1901
|
contentEntity?: {
|
|
1878
1902
|
name: string;
|
|
@@ -1881,11 +1905,12 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
1881
1905
|
} | null | undefined;
|
|
1882
1906
|
gameEntity?: any;
|
|
1883
1907
|
}, {
|
|
1884
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
1908
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
1885
1909
|
league?: string | undefined;
|
|
1886
1910
|
gameId?: string | undefined;
|
|
1887
1911
|
stadiumId?: string | undefined;
|
|
1888
1912
|
teamId?: string | number | undefined;
|
|
1913
|
+
playerId?: string | undefined;
|
|
1889
1914
|
stadiumLeagues?: string[] | undefined;
|
|
1890
1915
|
contentEntity?: {
|
|
1891
1916
|
name: string;
|
|
@@ -2970,6 +2995,7 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
2970
2995
|
selectedLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2971
2996
|
selectedTeams: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2972
2997
|
joinedChallengeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2998
|
+
scorePredictionLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2973
2999
|
lockedGameMessageSeen: z.ZodOptional<z.ZodBoolean>;
|
|
2974
3000
|
bio: z.ZodOptional<z.ZodString>;
|
|
2975
3001
|
socialLinks: z.ZodOptional<z.ZodObject<{
|
|
@@ -3017,8 +3043,10 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3017
3043
|
mlb: z.ZodOptional<z.ZodBoolean>;
|
|
3018
3044
|
nba: z.ZodOptional<z.ZodBoolean>;
|
|
3019
3045
|
wnba: z.ZodOptional<z.ZodBoolean>;
|
|
3046
|
+
nhl: z.ZodOptional<z.ZodBoolean>;
|
|
3020
3047
|
nfl: z.ZodOptional<z.ZodBoolean>;
|
|
3021
3048
|
cfb: z.ZodOptional<z.ZodBoolean>;
|
|
3049
|
+
cbb: z.ZodOptional<z.ZodBoolean>;
|
|
3022
3050
|
mls: z.ZodOptional<z.ZodBoolean>;
|
|
3023
3051
|
epl: z.ZodOptional<z.ZodBoolean>;
|
|
3024
3052
|
clubhouse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3027,7 +3055,9 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3027
3055
|
global?: boolean | undefined;
|
|
3028
3056
|
nba?: boolean | undefined;
|
|
3029
3057
|
nfl?: boolean | undefined;
|
|
3058
|
+
nhl?: boolean | undefined;
|
|
3030
3059
|
mlb?: boolean | undefined;
|
|
3060
|
+
cbb?: boolean | undefined;
|
|
3031
3061
|
cfb?: boolean | undefined;
|
|
3032
3062
|
epl?: boolean | undefined;
|
|
3033
3063
|
mls?: boolean | undefined;
|
|
@@ -3038,7 +3068,9 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3038
3068
|
global?: boolean | undefined;
|
|
3039
3069
|
nba?: boolean | undefined;
|
|
3040
3070
|
nfl?: boolean | undefined;
|
|
3071
|
+
nhl?: boolean | undefined;
|
|
3041
3072
|
mlb?: boolean | undefined;
|
|
3073
|
+
cbb?: boolean | undefined;
|
|
3042
3074
|
cfb?: boolean | undefined;
|
|
3043
3075
|
epl?: boolean | undefined;
|
|
3044
3076
|
mls?: boolean | undefined;
|
|
@@ -3073,7 +3105,9 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3073
3105
|
global?: boolean | undefined;
|
|
3074
3106
|
nba?: boolean | undefined;
|
|
3075
3107
|
nfl?: boolean | undefined;
|
|
3108
|
+
nhl?: boolean | undefined;
|
|
3076
3109
|
mlb?: boolean | undefined;
|
|
3110
|
+
cbb?: boolean | undefined;
|
|
3077
3111
|
cfb?: boolean | undefined;
|
|
3078
3112
|
epl?: boolean | undefined;
|
|
3079
3113
|
mls?: boolean | undefined;
|
|
@@ -3108,7 +3142,9 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3108
3142
|
global?: boolean | undefined;
|
|
3109
3143
|
nba?: boolean | undefined;
|
|
3110
3144
|
nfl?: boolean | undefined;
|
|
3145
|
+
nhl?: boolean | undefined;
|
|
3111
3146
|
mlb?: boolean | undefined;
|
|
3147
|
+
cbb?: boolean | undefined;
|
|
3112
3148
|
cfb?: boolean | undefined;
|
|
3113
3149
|
epl?: boolean | undefined;
|
|
3114
3150
|
mls?: boolean | undefined;
|
|
@@ -3542,11 +3578,12 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3542
3578
|
id?: string | undefined;
|
|
3543
3579
|
imageUrl?: string | null | undefined;
|
|
3544
3580
|
entities?: {
|
|
3545
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
3581
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
3546
3582
|
league?: string | undefined;
|
|
3547
3583
|
gameId?: string | undefined;
|
|
3548
3584
|
stadiumId?: string | undefined;
|
|
3549
3585
|
teamId?: string | number | undefined;
|
|
3586
|
+
playerId?: string | undefined;
|
|
3550
3587
|
stadiumLeagues?: string[] | undefined;
|
|
3551
3588
|
contentEntity?: {
|
|
3552
3589
|
name: string;
|
|
@@ -3568,11 +3605,12 @@ export declare const createArticleSchema: z.ZodObject<{
|
|
|
3568
3605
|
id?: string | undefined;
|
|
3569
3606
|
imageUrl?: string | null | undefined;
|
|
3570
3607
|
entities?: {
|
|
3571
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
3608
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
3572
3609
|
league?: string | undefined;
|
|
3573
3610
|
gameId?: string | undefined;
|
|
3574
3611
|
stadiumId?: string | undefined;
|
|
3575
3612
|
teamId?: string | number | undefined;
|
|
3613
|
+
playerId?: string | undefined;
|
|
3576
3614
|
stadiumLeagues?: string[] | undefined;
|
|
3577
3615
|
contentEntity?: {
|
|
3578
3616
|
name: string;
|
|
@@ -3590,12 +3628,13 @@ export declare const updateArticleSchema: z.ZodObject<{
|
|
|
3590
3628
|
body: z.ZodOptional<z.ZodString>;
|
|
3591
3629
|
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3592
3630
|
entities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3593
|
-
type: z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>;
|
|
3631
|
+
type: z.ZodEnum<["team", "league", "stadium", "game", "player", "rategame"]>;
|
|
3594
3632
|
teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
3595
3633
|
league: z.ZodOptional<z.ZodString>;
|
|
3596
3634
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
3597
3635
|
stadiumLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3598
3636
|
gameId: z.ZodOptional<z.ZodString>;
|
|
3637
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
3599
3638
|
contentEntity: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
3600
3639
|
name: z.ZodString;
|
|
3601
3640
|
image: z.ZodOptional<z.ZodString>;
|
|
@@ -3611,11 +3650,12 @@ export declare const updateArticleSchema: z.ZodObject<{
|
|
|
3611
3650
|
}>>>;
|
|
3612
3651
|
gameEntity: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
3613
3652
|
}, "strip", z.ZodTypeAny, {
|
|
3614
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
3653
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
3615
3654
|
league?: string | undefined;
|
|
3616
3655
|
gameId?: string | undefined;
|
|
3617
3656
|
stadiumId?: string | undefined;
|
|
3618
3657
|
teamId?: string | number | undefined;
|
|
3658
|
+
playerId?: string | undefined;
|
|
3619
3659
|
stadiumLeagues?: string[] | undefined;
|
|
3620
3660
|
contentEntity?: {
|
|
3621
3661
|
name: string;
|
|
@@ -3624,11 +3664,12 @@ export declare const updateArticleSchema: z.ZodObject<{
|
|
|
3624
3664
|
} | null | undefined;
|
|
3625
3665
|
gameEntity?: any;
|
|
3626
3666
|
}, {
|
|
3627
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
3667
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
3628
3668
|
league?: string | undefined;
|
|
3629
3669
|
gameId?: string | undefined;
|
|
3630
3670
|
stadiumId?: string | undefined;
|
|
3631
3671
|
teamId?: string | number | undefined;
|
|
3672
|
+
playerId?: string | undefined;
|
|
3632
3673
|
stadiumLeagues?: string[] | undefined;
|
|
3633
3674
|
contentEntity?: {
|
|
3634
3675
|
name: string;
|
|
@@ -3642,11 +3683,12 @@ export declare const updateArticleSchema: z.ZodObject<{
|
|
|
3642
3683
|
title?: string | undefined;
|
|
3643
3684
|
imageUrl?: string | null | undefined;
|
|
3644
3685
|
entities?: {
|
|
3645
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
3686
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
3646
3687
|
league?: string | undefined;
|
|
3647
3688
|
gameId?: string | undefined;
|
|
3648
3689
|
stadiumId?: string | undefined;
|
|
3649
3690
|
teamId?: string | number | undefined;
|
|
3691
|
+
playerId?: string | undefined;
|
|
3650
3692
|
stadiumLeagues?: string[] | undefined;
|
|
3651
3693
|
contentEntity?: {
|
|
3652
3694
|
name: string;
|
|
@@ -3660,11 +3702,12 @@ export declare const updateArticleSchema: z.ZodObject<{
|
|
|
3660
3702
|
title?: string | undefined;
|
|
3661
3703
|
imageUrl?: string | null | undefined;
|
|
3662
3704
|
entities?: {
|
|
3663
|
-
type: "stadium" | "league" | "game" | "team" | "rategame";
|
|
3705
|
+
type: "stadium" | "league" | "game" | "team" | "player" | "rategame";
|
|
3664
3706
|
league?: string | undefined;
|
|
3665
3707
|
gameId?: string | undefined;
|
|
3666
3708
|
stadiumId?: string | undefined;
|
|
3667
3709
|
teamId?: string | number | undefined;
|
|
3710
|
+
playerId?: string | undefined;
|
|
3668
3711
|
stadiumLeagues?: string[] | undefined;
|
|
3669
3712
|
contentEntity?: {
|
|
3670
3713
|
name: string;
|
|
@@ -3680,11 +3723,12 @@ export declare const updateArticleSchema: z.ZodObject<{
|
|
|
3680
3723
|
export declare const searchArticleSchema: z.ZodObject<{
|
|
3681
3724
|
q: z.ZodOptional<z.ZodString>;
|
|
3682
3725
|
userId: z.ZodOptional<z.ZodString>;
|
|
3683
|
-
type: z.ZodOptional<z.ZodEnum<["team", "league", "stadium", "game", "rategame"]>>;
|
|
3726
|
+
type: z.ZodOptional<z.ZodEnum<["team", "league", "stadium", "game", "player", "rategame"]>>;
|
|
3684
3727
|
teamId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
3685
3728
|
league: z.ZodOptional<z.ZodString>;
|
|
3686
3729
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
3687
3730
|
gameId: z.ZodOptional<z.ZodString>;
|
|
3731
|
+
playerId: z.ZodOptional<z.ZodString>;
|
|
3688
3732
|
excludeArticleId: z.ZodOptional<z.ZodString>;
|
|
3689
3733
|
limit: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3690
3734
|
offset: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -3695,7 +3739,7 @@ export declare const searchArticleSchema: z.ZodObject<{
|
|
|
3695
3739
|
}, "strip", z.ZodTypeAny, {
|
|
3696
3740
|
offset: string;
|
|
3697
3741
|
limit: string;
|
|
3698
|
-
type?: "stadium" | "league" | "game" | "team" | "rategame" | undefined;
|
|
3742
|
+
type?: "stadium" | "league" | "game" | "team" | "player" | "rategame" | undefined;
|
|
3699
3743
|
q?: string | undefined;
|
|
3700
3744
|
league?: string | undefined;
|
|
3701
3745
|
createdAt?: "16hr" | "Today" | "Last 3 Days" | "This Week" | "This Season" | "This Month" | "This Year" | "2025" | "2024" | "All" | "All Time" | "12h" | "daily" | "weekly" | undefined;
|
|
@@ -3704,11 +3748,12 @@ export declare const searchArticleSchema: z.ZodObject<{
|
|
|
3704
3748
|
gameId?: string | undefined;
|
|
3705
3749
|
stadiumId?: string | undefined;
|
|
3706
3750
|
teamId?: string | number | undefined;
|
|
3751
|
+
playerId?: string | undefined;
|
|
3707
3752
|
sortBy?: "createdAt:desc" | "userLikes:desc" | undefined;
|
|
3708
3753
|
userId?: string | undefined;
|
|
3709
3754
|
excludeArticleId?: string | undefined;
|
|
3710
3755
|
}, {
|
|
3711
|
-
type?: "stadium" | "league" | "game" | "team" | "rategame" | undefined;
|
|
3756
|
+
type?: "stadium" | "league" | "game" | "team" | "player" | "rategame" | undefined;
|
|
3712
3757
|
offset?: string | undefined;
|
|
3713
3758
|
q?: string | undefined;
|
|
3714
3759
|
league?: string | undefined;
|
|
@@ -3719,6 +3764,7 @@ export declare const searchArticleSchema: z.ZodObject<{
|
|
|
3719
3764
|
gameId?: string | undefined;
|
|
3720
3765
|
stadiumId?: string | undefined;
|
|
3721
3766
|
teamId?: string | number | undefined;
|
|
3767
|
+
playerId?: string | undefined;
|
|
3722
3768
|
sortBy?: "createdAt:desc" | "userLikes:desc" | undefined;
|
|
3723
3769
|
userId?: string | undefined;
|
|
3724
3770
|
excludeArticleId?: string | undefined;
|
|
@@ -4806,6 +4852,7 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
4806
4852
|
selectedLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4807
4853
|
selectedTeams: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4808
4854
|
joinedChallengeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4855
|
+
scorePredictionLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4809
4856
|
lockedGameMessageSeen: z.ZodOptional<z.ZodBoolean>;
|
|
4810
4857
|
bio: z.ZodOptional<z.ZodString>;
|
|
4811
4858
|
socialLinks: z.ZodOptional<z.ZodObject<{
|
|
@@ -4853,8 +4900,10 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
4853
4900
|
mlb: z.ZodOptional<z.ZodBoolean>;
|
|
4854
4901
|
nba: z.ZodOptional<z.ZodBoolean>;
|
|
4855
4902
|
wnba: z.ZodOptional<z.ZodBoolean>;
|
|
4903
|
+
nhl: z.ZodOptional<z.ZodBoolean>;
|
|
4856
4904
|
nfl: z.ZodOptional<z.ZodBoolean>;
|
|
4857
4905
|
cfb: z.ZodOptional<z.ZodBoolean>;
|
|
4906
|
+
cbb: z.ZodOptional<z.ZodBoolean>;
|
|
4858
4907
|
mls: z.ZodOptional<z.ZodBoolean>;
|
|
4859
4908
|
epl: z.ZodOptional<z.ZodBoolean>;
|
|
4860
4909
|
clubhouse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4863,7 +4912,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
4863
4912
|
global?: boolean | undefined;
|
|
4864
4913
|
nba?: boolean | undefined;
|
|
4865
4914
|
nfl?: boolean | undefined;
|
|
4915
|
+
nhl?: boolean | undefined;
|
|
4866
4916
|
mlb?: boolean | undefined;
|
|
4917
|
+
cbb?: boolean | undefined;
|
|
4867
4918
|
cfb?: boolean | undefined;
|
|
4868
4919
|
epl?: boolean | undefined;
|
|
4869
4920
|
mls?: boolean | undefined;
|
|
@@ -4874,7 +4925,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
4874
4925
|
global?: boolean | undefined;
|
|
4875
4926
|
nba?: boolean | undefined;
|
|
4876
4927
|
nfl?: boolean | undefined;
|
|
4928
|
+
nhl?: boolean | undefined;
|
|
4877
4929
|
mlb?: boolean | undefined;
|
|
4930
|
+
cbb?: boolean | undefined;
|
|
4878
4931
|
cfb?: boolean | undefined;
|
|
4879
4932
|
epl?: boolean | undefined;
|
|
4880
4933
|
mls?: boolean | undefined;
|
|
@@ -4909,7 +4962,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
4909
4962
|
global?: boolean | undefined;
|
|
4910
4963
|
nba?: boolean | undefined;
|
|
4911
4964
|
nfl?: boolean | undefined;
|
|
4965
|
+
nhl?: boolean | undefined;
|
|
4912
4966
|
mlb?: boolean | undefined;
|
|
4967
|
+
cbb?: boolean | undefined;
|
|
4913
4968
|
cfb?: boolean | undefined;
|
|
4914
4969
|
epl?: boolean | undefined;
|
|
4915
4970
|
mls?: boolean | undefined;
|
|
@@ -4944,7 +4999,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
4944
4999
|
global?: boolean | undefined;
|
|
4945
5000
|
nba?: boolean | undefined;
|
|
4946
5001
|
nfl?: boolean | undefined;
|
|
5002
|
+
nhl?: boolean | undefined;
|
|
4947
5003
|
mlb?: boolean | undefined;
|
|
5004
|
+
cbb?: boolean | undefined;
|
|
4948
5005
|
cfb?: boolean | undefined;
|
|
4949
5006
|
epl?: boolean | undefined;
|
|
4950
5007
|
mls?: boolean | undefined;
|
|
@@ -6444,6 +6501,7 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
6444
6501
|
selectedLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6445
6502
|
selectedTeams: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6446
6503
|
joinedChallengeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6504
|
+
scorePredictionLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6447
6505
|
lockedGameMessageSeen: z.ZodOptional<z.ZodBoolean>;
|
|
6448
6506
|
bio: z.ZodOptional<z.ZodString>;
|
|
6449
6507
|
socialLinks: z.ZodOptional<z.ZodObject<{
|
|
@@ -6491,8 +6549,10 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
6491
6549
|
mlb: z.ZodOptional<z.ZodBoolean>;
|
|
6492
6550
|
nba: z.ZodOptional<z.ZodBoolean>;
|
|
6493
6551
|
wnba: z.ZodOptional<z.ZodBoolean>;
|
|
6552
|
+
nhl: z.ZodOptional<z.ZodBoolean>;
|
|
6494
6553
|
nfl: z.ZodOptional<z.ZodBoolean>;
|
|
6495
6554
|
cfb: z.ZodOptional<z.ZodBoolean>;
|
|
6555
|
+
cbb: z.ZodOptional<z.ZodBoolean>;
|
|
6496
6556
|
mls: z.ZodOptional<z.ZodBoolean>;
|
|
6497
6557
|
epl: z.ZodOptional<z.ZodBoolean>;
|
|
6498
6558
|
clubhouse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6501,7 +6561,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
6501
6561
|
global?: boolean | undefined;
|
|
6502
6562
|
nba?: boolean | undefined;
|
|
6503
6563
|
nfl?: boolean | undefined;
|
|
6564
|
+
nhl?: boolean | undefined;
|
|
6504
6565
|
mlb?: boolean | undefined;
|
|
6566
|
+
cbb?: boolean | undefined;
|
|
6505
6567
|
cfb?: boolean | undefined;
|
|
6506
6568
|
epl?: boolean | undefined;
|
|
6507
6569
|
mls?: boolean | undefined;
|
|
@@ -6512,7 +6574,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
6512
6574
|
global?: boolean | undefined;
|
|
6513
6575
|
nba?: boolean | undefined;
|
|
6514
6576
|
nfl?: boolean | undefined;
|
|
6577
|
+
nhl?: boolean | undefined;
|
|
6515
6578
|
mlb?: boolean | undefined;
|
|
6579
|
+
cbb?: boolean | undefined;
|
|
6516
6580
|
cfb?: boolean | undefined;
|
|
6517
6581
|
epl?: boolean | undefined;
|
|
6518
6582
|
mls?: boolean | undefined;
|
|
@@ -6547,7 +6611,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
6547
6611
|
global?: boolean | undefined;
|
|
6548
6612
|
nba?: boolean | undefined;
|
|
6549
6613
|
nfl?: boolean | undefined;
|
|
6614
|
+
nhl?: boolean | undefined;
|
|
6550
6615
|
mlb?: boolean | undefined;
|
|
6616
|
+
cbb?: boolean | undefined;
|
|
6551
6617
|
cfb?: boolean | undefined;
|
|
6552
6618
|
epl?: boolean | undefined;
|
|
6553
6619
|
mls?: boolean | undefined;
|
|
@@ -6582,7 +6648,9 @@ export declare const articleThreadCommentSchema: z.ZodObject<{
|
|
|
6582
6648
|
global?: boolean | undefined;
|
|
6583
6649
|
nba?: boolean | undefined;
|
|
6584
6650
|
nfl?: boolean | undefined;
|
|
6651
|
+
nhl?: boolean | undefined;
|
|
6585
6652
|
mlb?: boolean | undefined;
|
|
6653
|
+
cbb?: boolean | undefined;
|
|
6586
6654
|
cfb?: boolean | undefined;
|
|
6587
6655
|
epl?: boolean | undefined;
|
|
6588
6656
|
mls?: boolean | undefined;
|
|
@@ -8134,6 +8202,7 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
|
|
|
8134
8202
|
selectedLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8135
8203
|
selectedTeams: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8136
8204
|
joinedChallengeIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8205
|
+
scorePredictionLeagues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8137
8206
|
lockedGameMessageSeen: z.ZodOptional<z.ZodBoolean>;
|
|
8138
8207
|
bio: z.ZodOptional<z.ZodString>;
|
|
8139
8208
|
socialLinks: z.ZodOptional<z.ZodObject<{
|
|
@@ -8181,8 +8250,10 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
|
|
|
8181
8250
|
mlb: z.ZodOptional<z.ZodBoolean>;
|
|
8182
8251
|
nba: z.ZodOptional<z.ZodBoolean>;
|
|
8183
8252
|
wnba: z.ZodOptional<z.ZodBoolean>;
|
|
8253
|
+
nhl: z.ZodOptional<z.ZodBoolean>;
|
|
8184
8254
|
nfl: z.ZodOptional<z.ZodBoolean>;
|
|
8185
8255
|
cfb: z.ZodOptional<z.ZodBoolean>;
|
|
8256
|
+
cbb: z.ZodOptional<z.ZodBoolean>;
|
|
8186
8257
|
mls: z.ZodOptional<z.ZodBoolean>;
|
|
8187
8258
|
epl: z.ZodOptional<z.ZodBoolean>;
|
|
8188
8259
|
clubhouse: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8191,7 +8262,9 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
|
|
|
8191
8262
|
global?: boolean | undefined;
|
|
8192
8263
|
nba?: boolean | undefined;
|
|
8193
8264
|
nfl?: boolean | undefined;
|
|
8265
|
+
nhl?: boolean | undefined;
|
|
8194
8266
|
mlb?: boolean | undefined;
|
|
8267
|
+
cbb?: boolean | undefined;
|
|
8195
8268
|
cfb?: boolean | undefined;
|
|
8196
8269
|
epl?: boolean | undefined;
|
|
8197
8270
|
mls?: boolean | undefined;
|
|
@@ -8202,7 +8275,9 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
|
|
|
8202
8275
|
global?: boolean | undefined;
|
|
8203
8276
|
nba?: boolean | undefined;
|
|
8204
8277
|
nfl?: boolean | undefined;
|
|
8278
|
+
nhl?: boolean | undefined;
|
|
8205
8279
|
mlb?: boolean | undefined;
|
|
8280
|
+
cbb?: boolean | undefined;
|
|
8206
8281
|
cfb?: boolean | undefined;
|
|
8207
8282
|
epl?: boolean | undefined;
|
|
8208
8283
|
mls?: boolean | undefined;
|
|
@@ -8237,7 +8312,9 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
|
|
|
8237
8312
|
global?: boolean | undefined;
|
|
8238
8313
|
nba?: boolean | undefined;
|
|
8239
8314
|
nfl?: boolean | undefined;
|
|
8315
|
+
nhl?: boolean | undefined;
|
|
8240
8316
|
mlb?: boolean | undefined;
|
|
8317
|
+
cbb?: boolean | undefined;
|
|
8241
8318
|
cfb?: boolean | undefined;
|
|
8242
8319
|
epl?: boolean | undefined;
|
|
8243
8320
|
mls?: boolean | undefined;
|
|
@@ -8272,7 +8349,9 @@ export declare const articleThreadCommentLikeSchema: z.ZodObject<{
|
|
|
8272
8349
|
global?: boolean | undefined;
|
|
8273
8350
|
nba?: boolean | undefined;
|
|
8274
8351
|
nfl?: boolean | undefined;
|
|
8352
|
+
nhl?: boolean | undefined;
|
|
8275
8353
|
mlb?: boolean | undefined;
|
|
8354
|
+
cbb?: boolean | undefined;
|
|
8276
8355
|
cfb?: boolean | undefined;
|
|
8277
8356
|
epl?: boolean | undefined;
|
|
8278
8357
|
mls?: boolean | undefined;
|
package/dist/schemas/article.js
CHANGED
|
@@ -16,6 +16,7 @@ exports.articleEntityTypeSchema = zod_1.z.enum([
|
|
|
16
16
|
"league",
|
|
17
17
|
"stadium",
|
|
18
18
|
"game",
|
|
19
|
+
"player",
|
|
19
20
|
"rategame",
|
|
20
21
|
]);
|
|
21
22
|
/**
|
|
@@ -30,6 +31,7 @@ exports.articleEntitySchema = zod_1.z.object({
|
|
|
30
31
|
stadiumId: zod_1.z.string().optional(),
|
|
31
32
|
stadiumLeagues: zod_1.z.array(zod_1.z.string()).optional(),
|
|
32
33
|
gameId: zod_1.z.string().optional(),
|
|
34
|
+
playerId: zod_1.z.string().optional(),
|
|
33
35
|
// Mini display info for the tagged entity (name/image/league).
|
|
34
36
|
contentEntity: trivia_1.triviaContentEntitySchema.optional().nullable(),
|
|
35
37
|
// Full game document for game tags, typed as UnionGame on the consumer side.
|
|
@@ -61,6 +63,7 @@ exports.articleSchema = zod_1.z.object({
|
|
|
61
63
|
entityTeamIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
62
64
|
entityStadiumIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
63
65
|
entityGameIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
66
|
+
entityPlayerIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
64
67
|
// Metadata
|
|
65
68
|
user: user_1.reducedUserSchema,
|
|
66
69
|
createdAt: zod_1.z.number(),
|
|
@@ -104,6 +107,7 @@ exports.searchArticleSchema = zod_1.z.object({
|
|
|
104
107
|
league: zod_1.z.string().optional(),
|
|
105
108
|
stadiumId: zod_1.z.string().optional(),
|
|
106
109
|
gameId: zod_1.z.string().optional(),
|
|
110
|
+
playerId: zod_1.z.string().optional(),
|
|
107
111
|
excludeArticleId: zod_1.z.string().optional(),
|
|
108
112
|
limit: zod_1.z.string().optional().default("20"),
|
|
109
113
|
offset: zod_1.z.string().optional().default("0"),
|