rategame-shared 1.1.524 → 1.1.526
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/communityGame.d.ts +3 -0
- package/dist/schemas/communityGame.js +1 -0
- package/dist/schemas/game.d.ts +72 -0
- package/dist/schemas/game.js +3 -0
- package/dist/schemas/miniLeague.d.ts +63 -53
- package/dist/schemas/miniLeague.js +0 -1
- package/dist/schemas/pick.d.ts +186 -0
- package/dist/schemas/poll.d.ts +128 -0
- package/dist/schemas/poll.js +1 -0
- package/dist/schemas/scorePrediction.d.ts +144 -0
- package/dist/schemas/voting.d.ts +30 -0
- package/package.json +1 -1
|
@@ -1150,6 +1150,7 @@ export declare const createCommunityGameSchema: z.ZodObject<{
|
|
|
1150
1150
|
}>>>;
|
|
1151
1151
|
seasonType: z.ZodOptional<z.ZodNumber>;
|
|
1152
1152
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
1153
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1153
1154
|
rosters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1154
1155
|
teamSide: z.ZodEnum<["home", "away"]>;
|
|
1155
1156
|
players: z.ZodArray<z.ZodObject<{
|
|
@@ -1325,6 +1326,7 @@ export declare const createCommunityGameSchema: z.ZodObject<{
|
|
|
1325
1326
|
}[];
|
|
1326
1327
|
isOvertime: boolean;
|
|
1327
1328
|
};
|
|
1329
|
+
description?: string | undefined;
|
|
1328
1330
|
stadium?: {
|
|
1329
1331
|
existingStadiumId?: string | undefined;
|
|
1330
1332
|
newStadium?: {
|
|
@@ -1478,6 +1480,7 @@ export declare const createCommunityGameSchema: z.ZodObject<{
|
|
|
1478
1480
|
}[];
|
|
1479
1481
|
isOvertime: boolean;
|
|
1480
1482
|
};
|
|
1483
|
+
description?: string | undefined;
|
|
1481
1484
|
stadium?: {
|
|
1482
1485
|
existingStadiumId?: string | undefined;
|
|
1483
1486
|
newStadium?: {
|
|
@@ -123,6 +123,7 @@ exports.createCommunityGameSchema = zod_1.z.object({
|
|
|
123
123
|
seriesInfo: game_1.seriesInfoSchema.optional().nullable(),
|
|
124
124
|
seasonType: zod_1.z.number().optional(),
|
|
125
125
|
classicGame: zod_1.z.boolean().optional(),
|
|
126
|
+
description: zod_1.z.string().optional(),
|
|
126
127
|
// Player rosters (optional - uploaded via CSV or copied from existing team roster)
|
|
127
128
|
rosters: zod_1.z.array(player_1.teamRosterUploadSchema).optional(),
|
|
128
129
|
});
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -1967,6 +1967,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
1967
1967
|
seasonGroup: "combined" | "regularSeason" | "playoffs";
|
|
1968
1968
|
}>>>;
|
|
1969
1969
|
rankedTagLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1970
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1970
1971
|
quarter: z.ZodOptional<z.ZodString>;
|
|
1971
1972
|
}, "strip", z.ZodTypeAny, {
|
|
1972
1973
|
round: number;
|
|
@@ -2024,6 +2025,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
2024
2025
|
periodType: "quarter" | "half";
|
|
2025
2026
|
periodDuration: number;
|
|
2026
2027
|
id?: string | undefined;
|
|
2028
|
+
description?: string | undefined;
|
|
2027
2029
|
quarter?: string | undefined;
|
|
2028
2030
|
rating?: {
|
|
2029
2031
|
avg: number;
|
|
@@ -2228,6 +2230,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
2228
2230
|
periodType: "quarter" | "half";
|
|
2229
2231
|
periodDuration: number;
|
|
2230
2232
|
id?: string | undefined;
|
|
2233
|
+
description?: string | undefined;
|
|
2231
2234
|
quarter?: string | undefined;
|
|
2232
2235
|
rating?: {
|
|
2233
2236
|
avg: number;
|
|
@@ -5224,6 +5227,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
5224
5227
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
5225
5228
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
5226
5229
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
5230
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5227
5231
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
5228
5232
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
5229
5233
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -5288,6 +5292,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
5288
5292
|
pickCount?: number | undefined;
|
|
5289
5293
|
};
|
|
5290
5294
|
id?: string | undefined;
|
|
5295
|
+
description?: string | undefined;
|
|
5291
5296
|
rating?: {
|
|
5292
5297
|
avg: number;
|
|
5293
5298
|
votes: {
|
|
@@ -5513,6 +5518,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
5513
5518
|
pickCount?: number | undefined;
|
|
5514
5519
|
};
|
|
5515
5520
|
id?: string | undefined;
|
|
5521
|
+
description?: string | undefined;
|
|
5516
5522
|
rating?: {
|
|
5517
5523
|
avg: number;
|
|
5518
5524
|
votes: {
|
|
@@ -8524,6 +8530,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
8524
8530
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
8525
8531
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
8526
8532
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
8533
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8527
8534
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
8528
8535
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
8529
8536
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -8620,6 +8627,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
8620
8627
|
periodType: "quarter" | "half";
|
|
8621
8628
|
periodDuration: number;
|
|
8622
8629
|
id?: string | undefined;
|
|
8630
|
+
description?: string | undefined;
|
|
8623
8631
|
quarter?: string | undefined;
|
|
8624
8632
|
rating?: {
|
|
8625
8633
|
avg: number;
|
|
@@ -8858,6 +8866,7 @@ export declare const basketballGameSchema: z.ZodObject<{
|
|
|
8858
8866
|
periodType: "quarter" | "half";
|
|
8859
8867
|
periodDuration: number;
|
|
8860
8868
|
id?: string | undefined;
|
|
8869
|
+
description?: string | undefined;
|
|
8861
8870
|
quarter?: string | undefined;
|
|
8862
8871
|
rating?: {
|
|
8863
8872
|
avg: number;
|
|
@@ -11885,6 +11894,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
11885
11894
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
11886
11895
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
11887
11896
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
11897
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11888
11898
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
11889
11899
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
11890
11900
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -11992,6 +12002,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
11992
12002
|
awayTeamErrors: number;
|
|
11993
12003
|
homeTeamErrors: number;
|
|
11994
12004
|
id?: string | undefined;
|
|
12005
|
+
description?: string | undefined;
|
|
11995
12006
|
rating?: {
|
|
11996
12007
|
avg: number;
|
|
11997
12008
|
votes: {
|
|
@@ -12237,6 +12248,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
12237
12248
|
awayTeamErrors: number;
|
|
12238
12249
|
homeTeamErrors: number;
|
|
12239
12250
|
id?: string | undefined;
|
|
12251
|
+
description?: string | undefined;
|
|
12240
12252
|
rating?: {
|
|
12241
12253
|
avg: number;
|
|
12242
12254
|
votes: {
|
|
@@ -15137,6 +15149,7 @@ export declare const footballGameSchema: z.ZodObject<{
|
|
|
15137
15149
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
15138
15150
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
15139
15151
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
15152
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15140
15153
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
15141
15154
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
15142
15155
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -15365,6 +15378,7 @@ export declare const footballGameSchema: z.ZodObject<{
|
|
|
15365
15378
|
aggregateScore: string;
|
|
15366
15379
|
hadExtraTime: boolean;
|
|
15367
15380
|
id?: string | undefined;
|
|
15381
|
+
description?: string | undefined;
|
|
15368
15382
|
group?: string | null | undefined;
|
|
15369
15383
|
rating?: {
|
|
15370
15384
|
avg: number;
|
|
@@ -15607,6 +15621,7 @@ export declare const footballGameSchema: z.ZodObject<{
|
|
|
15607
15621
|
aggregateScore: string;
|
|
15608
15622
|
hadExtraTime: boolean;
|
|
15609
15623
|
id?: string | undefined;
|
|
15624
|
+
description?: string | undefined;
|
|
15610
15625
|
group?: string | null | undefined;
|
|
15611
15626
|
rating?: {
|
|
15612
15627
|
avg: number;
|
|
@@ -18618,6 +18633,7 @@ export declare const nflGameSchema: z.ZodObject<{
|
|
|
18618
18633
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
18619
18634
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
18620
18635
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
18636
|
+
description: z.ZodOptional<z.ZodString>;
|
|
18621
18637
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
18622
18638
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
18623
18639
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -18761,6 +18777,7 @@ export declare const nflGameSchema: z.ZodObject<{
|
|
|
18761
18777
|
homeScoreOvertime: number | null;
|
|
18762
18778
|
isOverTime: boolean;
|
|
18763
18779
|
id?: string | undefined;
|
|
18780
|
+
description?: string | undefined;
|
|
18764
18781
|
week?: number | undefined;
|
|
18765
18782
|
rating?: {
|
|
18766
18783
|
avg: number;
|
|
@@ -19019,6 +19036,7 @@ export declare const nflGameSchema: z.ZodObject<{
|
|
|
19019
19036
|
homeScoreOvertime: number | null;
|
|
19020
19037
|
isOverTime: boolean;
|
|
19021
19038
|
id?: string | undefined;
|
|
19039
|
+
description?: string | undefined;
|
|
19022
19040
|
week?: number | undefined;
|
|
19023
19041
|
rating?: {
|
|
19024
19042
|
avg: number;
|
|
@@ -22041,6 +22059,7 @@ export declare const cfbGameSchema: z.ZodObject<{
|
|
|
22041
22059
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
22042
22060
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
22043
22061
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
22062
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22044
22063
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
22045
22064
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
22046
22065
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -22176,6 +22195,7 @@ export declare const cfbGameSchema: z.ZodObject<{
|
|
|
22176
22195
|
yardLine: number | null;
|
|
22177
22196
|
yardLineTerritory: string | null;
|
|
22178
22197
|
id?: string | undefined;
|
|
22198
|
+
description?: string | undefined;
|
|
22179
22199
|
week?: number | undefined;
|
|
22180
22200
|
rating?: {
|
|
22181
22201
|
avg: number;
|
|
@@ -22427,6 +22447,7 @@ export declare const cfbGameSchema: z.ZodObject<{
|
|
|
22427
22447
|
yardLine: number | null;
|
|
22428
22448
|
yardLineTerritory: string | null;
|
|
22429
22449
|
id?: string | undefined;
|
|
22450
|
+
description?: string | undefined;
|
|
22430
22451
|
week?: number | undefined;
|
|
22431
22452
|
rating?: {
|
|
22432
22453
|
avg: number;
|
|
@@ -25447,6 +25468,7 @@ export declare const nhlGameSchema: z.ZodObject<{
|
|
|
25447
25468
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
25448
25469
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
25449
25470
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
25471
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25450
25472
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
25451
25473
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
25452
25474
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -25526,6 +25548,7 @@ export declare const nhlGameSchema: z.ZodObject<{
|
|
|
25526
25548
|
period: string;
|
|
25527
25549
|
hadShootout: boolean;
|
|
25528
25550
|
id?: string | undefined;
|
|
25551
|
+
description?: string | undefined;
|
|
25529
25552
|
rating?: {
|
|
25530
25553
|
avg: number;
|
|
25531
25554
|
votes: {
|
|
@@ -25757,6 +25780,7 @@ export declare const nhlGameSchema: z.ZodObject<{
|
|
|
25757
25780
|
period: string;
|
|
25758
25781
|
hadShootout: boolean;
|
|
25759
25782
|
id?: string | undefined;
|
|
25783
|
+
description?: string | undefined;
|
|
25760
25784
|
rating?: {
|
|
25761
25785
|
avg: number;
|
|
25762
25786
|
votes: {
|
|
@@ -28767,6 +28791,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
28767
28791
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
28768
28792
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
28769
28793
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
28794
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28770
28795
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
28771
28796
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
28772
28797
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -28863,6 +28888,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
28863
28888
|
periodType: "quarter" | "half";
|
|
28864
28889
|
periodDuration: number;
|
|
28865
28890
|
id?: string | undefined;
|
|
28891
|
+
description?: string | undefined;
|
|
28866
28892
|
quarter?: string | undefined;
|
|
28867
28893
|
rating?: {
|
|
28868
28894
|
avg: number;
|
|
@@ -29101,6 +29127,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
29101
29127
|
periodType: "quarter" | "half";
|
|
29102
29128
|
periodDuration: number;
|
|
29103
29129
|
id?: string | undefined;
|
|
29130
|
+
description?: string | undefined;
|
|
29104
29131
|
quarter?: string | undefined;
|
|
29105
29132
|
rating?: {
|
|
29106
29133
|
avg: number;
|
|
@@ -32114,6 +32141,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
32114
32141
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
32115
32142
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
32116
32143
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
32144
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32117
32145
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
32118
32146
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
32119
32147
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -32221,6 +32249,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
32221
32249
|
awayTeamErrors: number;
|
|
32222
32250
|
homeTeamErrors: number;
|
|
32223
32251
|
id?: string | undefined;
|
|
32252
|
+
description?: string | undefined;
|
|
32224
32253
|
rating?: {
|
|
32225
32254
|
avg: number;
|
|
32226
32255
|
votes: {
|
|
@@ -32466,6 +32495,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
32466
32495
|
awayTeamErrors: number;
|
|
32467
32496
|
homeTeamErrors: number;
|
|
32468
32497
|
id?: string | undefined;
|
|
32498
|
+
description?: string | undefined;
|
|
32469
32499
|
rating?: {
|
|
32470
32500
|
avg: number;
|
|
32471
32501
|
votes: {
|
|
@@ -35365,6 +35395,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
35365
35395
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
35366
35396
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
35367
35397
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
35398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35368
35399
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
35369
35400
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
35370
35401
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -35593,6 +35624,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
35593
35624
|
aggregateScore: string;
|
|
35594
35625
|
hadExtraTime: boolean;
|
|
35595
35626
|
id?: string | undefined;
|
|
35627
|
+
description?: string | undefined;
|
|
35596
35628
|
group?: string | null | undefined;
|
|
35597
35629
|
rating?: {
|
|
35598
35630
|
avg: number;
|
|
@@ -35835,6 +35867,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
35835
35867
|
aggregateScore: string;
|
|
35836
35868
|
hadExtraTime: boolean;
|
|
35837
35869
|
id?: string | undefined;
|
|
35870
|
+
description?: string | undefined;
|
|
35838
35871
|
group?: string | null | undefined;
|
|
35839
35872
|
rating?: {
|
|
35840
35873
|
avg: number;
|
|
@@ -38845,6 +38878,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
38845
38878
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
38846
38879
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
38847
38880
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
38881
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38848
38882
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
38849
38883
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
38850
38884
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -38988,6 +39022,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
38988
39022
|
homeScoreOvertime: number | null;
|
|
38989
39023
|
isOverTime: boolean;
|
|
38990
39024
|
id?: string | undefined;
|
|
39025
|
+
description?: string | undefined;
|
|
38991
39026
|
week?: number | undefined;
|
|
38992
39027
|
rating?: {
|
|
38993
39028
|
avg: number;
|
|
@@ -39246,6 +39281,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
39246
39281
|
homeScoreOvertime: number | null;
|
|
39247
39282
|
isOverTime: boolean;
|
|
39248
39283
|
id?: string | undefined;
|
|
39284
|
+
description?: string | undefined;
|
|
39249
39285
|
week?: number | undefined;
|
|
39250
39286
|
rating?: {
|
|
39251
39287
|
avg: number;
|
|
@@ -42267,6 +42303,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
42267
42303
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
42268
42304
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
42269
42305
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
42306
|
+
description: z.ZodOptional<z.ZodString>;
|
|
42270
42307
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
42271
42308
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
42272
42309
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -42402,6 +42439,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
42402
42439
|
yardLine: number | null;
|
|
42403
42440
|
yardLineTerritory: string | null;
|
|
42404
42441
|
id?: string | undefined;
|
|
42442
|
+
description?: string | undefined;
|
|
42405
42443
|
week?: number | undefined;
|
|
42406
42444
|
rating?: {
|
|
42407
42445
|
avg: number;
|
|
@@ -42653,6 +42691,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
42653
42691
|
yardLine: number | null;
|
|
42654
42692
|
yardLineTerritory: string | null;
|
|
42655
42693
|
id?: string | undefined;
|
|
42694
|
+
description?: string | undefined;
|
|
42656
42695
|
week?: number | undefined;
|
|
42657
42696
|
rating?: {
|
|
42658
42697
|
avg: number;
|
|
@@ -45672,6 +45711,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
45672
45711
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
45673
45712
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
45674
45713
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
45714
|
+
description: z.ZodOptional<z.ZodString>;
|
|
45675
45715
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
45676
45716
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
45677
45717
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -45751,6 +45791,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
45751
45791
|
period: string;
|
|
45752
45792
|
hadShootout: boolean;
|
|
45753
45793
|
id?: string | undefined;
|
|
45794
|
+
description?: string | undefined;
|
|
45754
45795
|
rating?: {
|
|
45755
45796
|
avg: number;
|
|
45756
45797
|
votes: {
|
|
@@ -45982,6 +46023,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
45982
46023
|
period: string;
|
|
45983
46024
|
hadShootout: boolean;
|
|
45984
46025
|
id?: string | undefined;
|
|
46026
|
+
description?: string | undefined;
|
|
45985
46027
|
rating?: {
|
|
45986
46028
|
avg: number;
|
|
45987
46029
|
votes: {
|
|
@@ -49075,6 +49117,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
49075
49117
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
49076
49118
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
49077
49119
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
49120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
49078
49121
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
49079
49122
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
49080
49123
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -49171,6 +49214,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
49171
49214
|
periodType: "quarter" | "half";
|
|
49172
49215
|
periodDuration: number;
|
|
49173
49216
|
id?: string | undefined;
|
|
49217
|
+
description?: string | undefined;
|
|
49174
49218
|
quarter?: string | undefined;
|
|
49175
49219
|
rating?: {
|
|
49176
49220
|
avg: number;
|
|
@@ -49409,6 +49453,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
49409
49453
|
periodType: "quarter" | "half";
|
|
49410
49454
|
periodDuration: number;
|
|
49411
49455
|
id?: string | undefined;
|
|
49456
|
+
description?: string | undefined;
|
|
49412
49457
|
quarter?: string | undefined;
|
|
49413
49458
|
rating?: {
|
|
49414
49459
|
avg: number;
|
|
@@ -52422,6 +52467,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
52422
52467
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
52423
52468
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
52424
52469
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
52470
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52425
52471
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
52426
52472
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
52427
52473
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -52529,6 +52575,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
52529
52575
|
awayTeamErrors: number;
|
|
52530
52576
|
homeTeamErrors: number;
|
|
52531
52577
|
id?: string | undefined;
|
|
52578
|
+
description?: string | undefined;
|
|
52532
52579
|
rating?: {
|
|
52533
52580
|
avg: number;
|
|
52534
52581
|
votes: {
|
|
@@ -52774,6 +52821,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
52774
52821
|
awayTeamErrors: number;
|
|
52775
52822
|
homeTeamErrors: number;
|
|
52776
52823
|
id?: string | undefined;
|
|
52824
|
+
description?: string | undefined;
|
|
52777
52825
|
rating?: {
|
|
52778
52826
|
avg: number;
|
|
52779
52827
|
votes: {
|
|
@@ -55673,6 +55721,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
55673
55721
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
55674
55722
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
55675
55723
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
55724
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55676
55725
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
55677
55726
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
55678
55727
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -55901,6 +55950,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
55901
55950
|
aggregateScore: string;
|
|
55902
55951
|
hadExtraTime: boolean;
|
|
55903
55952
|
id?: string | undefined;
|
|
55953
|
+
description?: string | undefined;
|
|
55904
55954
|
group?: string | null | undefined;
|
|
55905
55955
|
rating?: {
|
|
55906
55956
|
avg: number;
|
|
@@ -56143,6 +56193,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
56143
56193
|
aggregateScore: string;
|
|
56144
56194
|
hadExtraTime: boolean;
|
|
56145
56195
|
id?: string | undefined;
|
|
56196
|
+
description?: string | undefined;
|
|
56146
56197
|
group?: string | null | undefined;
|
|
56147
56198
|
rating?: {
|
|
56148
56199
|
avg: number;
|
|
@@ -59153,6 +59204,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
59153
59204
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
59154
59205
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
59155
59206
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
59207
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59156
59208
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
59157
59209
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
59158
59210
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -59296,6 +59348,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
59296
59348
|
homeScoreOvertime: number | null;
|
|
59297
59349
|
isOverTime: boolean;
|
|
59298
59350
|
id?: string | undefined;
|
|
59351
|
+
description?: string | undefined;
|
|
59299
59352
|
week?: number | undefined;
|
|
59300
59353
|
rating?: {
|
|
59301
59354
|
avg: number;
|
|
@@ -59554,6 +59607,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
59554
59607
|
homeScoreOvertime: number | null;
|
|
59555
59608
|
isOverTime: boolean;
|
|
59556
59609
|
id?: string | undefined;
|
|
59610
|
+
description?: string | undefined;
|
|
59557
59611
|
week?: number | undefined;
|
|
59558
59612
|
rating?: {
|
|
59559
59613
|
avg: number;
|
|
@@ -62575,6 +62629,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
62575
62629
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
62576
62630
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
62577
62631
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
62632
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62578
62633
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
62579
62634
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
62580
62635
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -62710,6 +62765,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
62710
62765
|
yardLine: number | null;
|
|
62711
62766
|
yardLineTerritory: string | null;
|
|
62712
62767
|
id?: string | undefined;
|
|
62768
|
+
description?: string | undefined;
|
|
62713
62769
|
week?: number | undefined;
|
|
62714
62770
|
rating?: {
|
|
62715
62771
|
avg: number;
|
|
@@ -62961,6 +63017,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
62961
63017
|
yardLine: number | null;
|
|
62962
63018
|
yardLineTerritory: string | null;
|
|
62963
63019
|
id?: string | undefined;
|
|
63020
|
+
description?: string | undefined;
|
|
62964
63021
|
week?: number | undefined;
|
|
62965
63022
|
rating?: {
|
|
62966
63023
|
avg: number;
|
|
@@ -65980,6 +66037,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
65980
66037
|
stadiumId: z.ZodOptional<z.ZodString>;
|
|
65981
66038
|
communityGame: z.ZodOptional<z.ZodBoolean>;
|
|
65982
66039
|
classicGame: z.ZodOptional<z.ZodBoolean>;
|
|
66040
|
+
description: z.ZodOptional<z.ZodString>;
|
|
65983
66041
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
65984
66042
|
sport: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"basketball">, z.ZodLiteral<"football">, z.ZodLiteral<"soccer">, z.ZodLiteral<"baseball">, z.ZodLiteral<"hockey">]>>;
|
|
65985
66043
|
broadcast: z.ZodOptional<z.ZodObject<{
|
|
@@ -66059,6 +66117,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
66059
66117
|
period: string;
|
|
66060
66118
|
hadShootout: boolean;
|
|
66061
66119
|
id?: string | undefined;
|
|
66120
|
+
description?: string | undefined;
|
|
66062
66121
|
rating?: {
|
|
66063
66122
|
avg: number;
|
|
66064
66123
|
votes: {
|
|
@@ -66290,6 +66349,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
66290
66349
|
period: string;
|
|
66291
66350
|
hadShootout: boolean;
|
|
66292
66351
|
id?: string | undefined;
|
|
66352
|
+
description?: string | undefined;
|
|
66293
66353
|
rating?: {
|
|
66294
66354
|
avg: number;
|
|
66295
66355
|
votes: {
|
|
@@ -68191,6 +68251,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
68191
68251
|
periodType: "quarter" | "half";
|
|
68192
68252
|
periodDuration: number;
|
|
68193
68253
|
id?: string | undefined;
|
|
68254
|
+
description?: string | undefined;
|
|
68194
68255
|
quarter?: string | undefined;
|
|
68195
68256
|
rating?: {
|
|
68196
68257
|
avg: number;
|
|
@@ -68433,6 +68494,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
68433
68494
|
awayTeamErrors: number;
|
|
68434
68495
|
homeTeamErrors: number;
|
|
68435
68496
|
id?: string | undefined;
|
|
68497
|
+
description?: string | undefined;
|
|
68436
68498
|
rating?: {
|
|
68437
68499
|
avg: number;
|
|
68438
68500
|
votes: {
|
|
@@ -68679,6 +68741,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
68679
68741
|
aggregateScore: string;
|
|
68680
68742
|
hadExtraTime: boolean;
|
|
68681
68743
|
id?: string | undefined;
|
|
68744
|
+
description?: string | undefined;
|
|
68682
68745
|
group?: string | null | undefined;
|
|
68683
68746
|
rating?: {
|
|
68684
68747
|
avg: number;
|
|
@@ -68927,6 +68990,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
68927
68990
|
homeScoreOvertime: number | null;
|
|
68928
68991
|
isOverTime: boolean;
|
|
68929
68992
|
id?: string | undefined;
|
|
68993
|
+
description?: string | undefined;
|
|
68930
68994
|
week?: number | undefined;
|
|
68931
68995
|
rating?: {
|
|
68932
68996
|
avg: number;
|
|
@@ -69180,6 +69244,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
69180
69244
|
yardLine: number | null;
|
|
69181
69245
|
yardLineTerritory: string | null;
|
|
69182
69246
|
id?: string | undefined;
|
|
69247
|
+
description?: string | undefined;
|
|
69183
69248
|
week?: number | undefined;
|
|
69184
69249
|
rating?: {
|
|
69185
69250
|
avg: number;
|
|
@@ -69422,6 +69487,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
69422
69487
|
period: string;
|
|
69423
69488
|
hadShootout: boolean;
|
|
69424
69489
|
id?: string | undefined;
|
|
69490
|
+
description?: string | undefined;
|
|
69425
69491
|
rating?: {
|
|
69426
69492
|
avg: number;
|
|
69427
69493
|
votes: {
|
|
@@ -69668,6 +69734,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
69668
69734
|
periodType: "quarter" | "half";
|
|
69669
69735
|
periodDuration: number;
|
|
69670
69736
|
id?: string | undefined;
|
|
69737
|
+
description?: string | undefined;
|
|
69671
69738
|
quarter?: string | undefined;
|
|
69672
69739
|
rating?: {
|
|
69673
69740
|
avg: number;
|
|
@@ -69910,6 +69977,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
69910
69977
|
awayTeamErrors: number;
|
|
69911
69978
|
homeTeamErrors: number;
|
|
69912
69979
|
id?: string | undefined;
|
|
69980
|
+
description?: string | undefined;
|
|
69913
69981
|
rating?: {
|
|
69914
69982
|
avg: number;
|
|
69915
69983
|
votes: {
|
|
@@ -70156,6 +70224,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
70156
70224
|
aggregateScore: string;
|
|
70157
70225
|
hadExtraTime: boolean;
|
|
70158
70226
|
id?: string | undefined;
|
|
70227
|
+
description?: string | undefined;
|
|
70159
70228
|
group?: string | null | undefined;
|
|
70160
70229
|
rating?: {
|
|
70161
70230
|
avg: number;
|
|
@@ -70404,6 +70473,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
70404
70473
|
homeScoreOvertime: number | null;
|
|
70405
70474
|
isOverTime: boolean;
|
|
70406
70475
|
id?: string | undefined;
|
|
70476
|
+
description?: string | undefined;
|
|
70407
70477
|
week?: number | undefined;
|
|
70408
70478
|
rating?: {
|
|
70409
70479
|
avg: number;
|
|
@@ -70657,6 +70727,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
70657
70727
|
yardLine: number | null;
|
|
70658
70728
|
yardLineTerritory: string | null;
|
|
70659
70729
|
id?: string | undefined;
|
|
70730
|
+
description?: string | undefined;
|
|
70660
70731
|
week?: number | undefined;
|
|
70661
70732
|
rating?: {
|
|
70662
70733
|
avg: number;
|
|
@@ -70899,6 +70970,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
70899
70970
|
period: string;
|
|
70900
70971
|
hadShootout: boolean;
|
|
70901
70972
|
id?: string | undefined;
|
|
70973
|
+
description?: string | undefined;
|
|
70902
70974
|
rating?: {
|
|
70903
70975
|
avg: number;
|
|
70904
70976
|
votes: {
|
package/dist/schemas/game.js
CHANGED
|
@@ -117,6 +117,7 @@ exports.gameSchema = zod_1.z.object({
|
|
|
117
117
|
earnedTags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
118
118
|
rankedTags: rankedTags_1.rankedTagsSchema.optional(),
|
|
119
119
|
rankedTagLabels: zod_1.z.array(zod_1.z.string()).optional(),
|
|
120
|
+
description: zod_1.z.string().optional(),
|
|
120
121
|
quarter: zod_1.z.string().optional(),
|
|
121
122
|
});
|
|
122
123
|
exports.broadcastSchema = zod_1.z.object({
|
|
@@ -195,6 +196,8 @@ exports.commonGameSchema = zod_1.z.object({
|
|
|
195
196
|
communityGame: zod_1.z.boolean().optional(),
|
|
196
197
|
// Classic game flag - for admin-curated classic games
|
|
197
198
|
classicGame: zod_1.z.boolean().optional(),
|
|
199
|
+
// Editorial explanation of what makes the game great
|
|
200
|
+
description: zod_1.z.string().optional(),
|
|
198
201
|
// Timestamp when the game document was created (unix ms)
|
|
199
202
|
createdAt: zod_1.z.number().optional(),
|
|
200
203
|
// Sport type for component selection (maps to existing league-specific components)
|