rategame-shared 1.1.422 → 1.1.424

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
@@ -23,6 +23,7 @@ export * from "./schemas/season";
23
23
  export * from "./schemas/trivia";
24
24
  export * from "./schemas/scorePrediction";
25
25
  export * from "./schemas/reactivation";
26
+ export * from "./schemas/standings";
26
27
  export * from "./models/user";
27
28
  export * from "./models/rating";
28
29
  export * from "./models/game";
@@ -48,4 +49,5 @@ export * from "./models/season";
48
49
  export * from "./models/trivia";
49
50
  export * from "./models/scorePrediction";
50
51
  export * from "./models/reactivation";
52
+ export * from "./models/standings";
51
53
  export * from "./constants";
package/dist/index.js CHANGED
@@ -39,6 +39,7 @@ __exportStar(require("./schemas/season"), exports);
39
39
  __exportStar(require("./schemas/trivia"), exports);
40
40
  __exportStar(require("./schemas/scorePrediction"), exports);
41
41
  __exportStar(require("./schemas/reactivation"), exports);
42
+ __exportStar(require("./schemas/standings"), exports);
42
43
  __exportStar(require("./models/user"), exports);
43
44
  __exportStar(require("./models/rating"), exports);
44
45
  __exportStar(require("./models/game"), exports);
@@ -64,4 +65,5 @@ __exportStar(require("./models/season"), exports);
64
65
  __exportStar(require("./models/trivia"), exports);
65
66
  __exportStar(require("./models/scorePrediction"), exports);
66
67
  __exportStar(require("./models/reactivation"), exports);
68
+ __exportStar(require("./models/standings"), exports);
67
69
  __exportStar(require("./constants"), exports);
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { pickSchema, miniPickSchema, pickSubmissionDtoSchema, pickSubmissionResponseDtoSchema, pickUpdateDtoSchema, pickDeleteDtoSchema, pickDeleteResponseDtoSchema, gamePickStatsResponseDtoSchema, userPickResponseDtoSchema, userPicksLeagueStatsSchema, userPicksStatsResponseDtoSchema, userPicksTeamStatsSchema, userPicksByTeamResponseDtoSchema, gamePickUsersResponseDtoSchema, gamePickUsersPaginatedResponseDtoSchema, marchMadnessRoundStatsSchema, marchMadnessPicksResponseDtoSchema, marchMadnessLeaderboardEntrySchema, marchMadnessLeaderboardResponseDtoSchema } from "../schemas/pick";
2
+ import { pickSchema, miniPickSchema, pickSubmissionDtoSchema, pickSubmissionResponseDtoSchema, pickUpdateDtoSchema, pickDeleteDtoSchema, pickDeleteResponseDtoSchema, gamePickStatsResponseDtoSchema, userPickResponseDtoSchema, userPicksLeagueStatsSchema, userPicksStatsResponseDtoSchema, userPicksTeamStatsSchema, userPicksByTeamResponseDtoSchema, gamePickUsersResponseDtoSchema, gamePickUsersPaginatedResponseDtoSchema, pickEmKindSchema, pickEmRoundStatsSchema, pickEmPicksResponseDtoSchema, pickEmLeaderboardEntrySchema, pickEmLeaderboardResponseDtoSchema } from "../schemas/pick";
3
3
  export type Pick = z.infer<typeof pickSchema>;
4
4
  export type MiniPick = z.infer<typeof miniPickSchema>;
5
5
  export type PickSubmissionDto = z.infer<typeof pickSubmissionDtoSchema>;
@@ -15,7 +15,8 @@ export type UserPicksByTeamResponseDto = z.infer<typeof userPicksByTeamResponseD
15
15
  export type GamePickUsersResponseDto = z.infer<typeof gamePickUsersResponseDtoSchema>;
16
16
  export type GamePickUsersPaginatedResponseDto = z.infer<typeof gamePickUsersPaginatedResponseDtoSchema>;
17
17
  export type PickDeleteResponseDto = z.infer<typeof pickDeleteResponseDtoSchema>;
18
- export type MarchMadnessRoundStats = z.infer<typeof marchMadnessRoundStatsSchema>;
19
- export type MarchMadnessPicksResponseDto = z.infer<typeof marchMadnessPicksResponseDtoSchema>;
20
- export type MarchMadnessLeaderboardEntry = z.infer<typeof marchMadnessLeaderboardEntrySchema>;
21
- export type MarchMadnessLeaderboardResponseDto = z.infer<typeof marchMadnessLeaderboardResponseDtoSchema>;
18
+ export type PickEmKind = z.infer<typeof pickEmKindSchema>;
19
+ export type PickEmRoundStats = z.infer<typeof pickEmRoundStatsSchema>;
20
+ export type PickEmPicksResponseDto = z.infer<typeof pickEmPicksResponseDtoSchema>;
21
+ export type PickEmLeaderboardEntry = z.infer<typeof pickEmLeaderboardEntrySchema>;
22
+ export type PickEmLeaderboardResponseDto = z.infer<typeof pickEmLeaderboardResponseDtoSchema>;
@@ -0,0 +1,5 @@
1
+ import { z } from "zod";
2
+ import { fifaStandingsTeamSchema, fifaStandingsGroupSchema, fifaStandingsResponseDtoSchema } from "../schemas/standings";
3
+ export type FifaStandingsTeam = z.infer<typeof fifaStandingsTeamSchema>;
4
+ export type FifaStandingsGroup = z.infer<typeof fifaStandingsGroupSchema>;
5
+ export type FifaStandingsResponseDto = z.infer<typeof fifaStandingsResponseDtoSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12798,6 +12798,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
12798
12798
  venueType: z.ZodString;
12799
12799
  attendance: z.ZodNumber;
12800
12800
  aggregateScore: z.ZodString;
12801
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12801
12802
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
12802
12803
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12803
12804
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -12977,6 +12978,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
12977
12978
  aggregateScore: string;
12978
12979
  hadExtraTime: boolean;
12979
12980
  id?: string | undefined;
12981
+ group?: string | null | undefined;
12980
12982
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
12981
12983
  league?: string | undefined;
12982
12984
  createdAt?: number | undefined;
@@ -13188,6 +13190,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
13188
13190
  aggregateScore: string;
13189
13191
  hadExtraTime: boolean;
13190
13192
  id?: string | undefined;
13193
+ group?: string | null | undefined;
13191
13194
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
13192
13195
  league?: string | undefined;
13193
13196
  createdAt?: number | undefined;
@@ -29537,6 +29540,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
29537
29540
  venueType: z.ZodString;
29538
29541
  attendance: z.ZodNumber;
29539
29542
  aggregateScore: z.ZodString;
29543
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29540
29544
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
29541
29545
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29542
29546
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -29716,6 +29720,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
29716
29720
  aggregateScore: string;
29717
29721
  hadExtraTime: boolean;
29718
29722
  id?: string | undefined;
29723
+ group?: string | null | undefined;
29719
29724
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
29720
29725
  league?: string | undefined;
29721
29726
  createdAt?: number | undefined;
@@ -29927,6 +29932,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
29927
29932
  aggregateScore: string;
29928
29933
  hadExtraTime: boolean;
29929
29934
  id?: string | undefined;
29935
+ group?: string | null | undefined;
29930
29936
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
29931
29937
  league?: string | undefined;
29932
29938
  createdAt?: number | undefined;
@@ -46347,6 +46353,7 @@ export declare const creatorPickSchema: z.ZodObject<{
46347
46353
  venueType: z.ZodString;
46348
46354
  attendance: z.ZodNumber;
46349
46355
  aggregateScore: z.ZodString;
46356
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46350
46357
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
46351
46358
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46352
46359
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -46526,6 +46533,7 @@ export declare const creatorPickSchema: z.ZodObject<{
46526
46533
  aggregateScore: string;
46527
46534
  hadExtraTime: boolean;
46528
46535
  id?: string | undefined;
46536
+ group?: string | null | undefined;
46529
46537
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
46530
46538
  league?: string | undefined;
46531
46539
  createdAt?: number | undefined;
@@ -46737,6 +46745,7 @@ export declare const creatorPickSchema: z.ZodObject<{
46737
46745
  aggregateScore: string;
46738
46746
  hadExtraTime: boolean;
46739
46747
  id?: string | undefined;
46748
+ group?: string | null | undefined;
46740
46749
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
46741
46750
  league?: string | undefined;
46742
46751
  createdAt?: number | undefined;
@@ -56913,6 +56922,7 @@ export declare const creatorPickSchema: z.ZodObject<{
56913
56922
  aggregateScore: string;
56914
56923
  hadExtraTime: boolean;
56915
56924
  id?: string | undefined;
56925
+ group?: string | null | undefined;
56916
56926
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
56917
56927
  league?: string | undefined;
56918
56928
  createdAt?: number | undefined;
@@ -58209,6 +58219,7 @@ export declare const creatorPickSchema: z.ZodObject<{
58209
58219
  aggregateScore: string;
58210
58220
  hadExtraTime: boolean;
58211
58221
  id?: string | undefined;
58222
+ group?: string | null | undefined;
58212
58223
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
58213
58224
  league?: string | undefined;
58214
58225
  createdAt?: number | undefined;
@@ -216,6 +216,8 @@ exports.footballGameSchema = exports.commonGameSchema.extend({
216
216
  venueType: zod_1.z.string(),
217
217
  attendance: zod_1.z.number(),
218
218
  aggregateScore: zod_1.z.string(),
219
+ // Group label from sportsdata (e.g. "Group A") for FIFA/CWC group-stage games
220
+ group: zod_1.z.string().nullable().optional(),
219
221
  homeTeam: exports.gameTeamSchema.extend({
220
222
  scorePeriod1: zod_1.z.number(),
221
223
  scorePeriod2: zod_1.z.number(),
@@ -9065,6 +9065,7 @@ export declare const pickSchema: z.ZodObject<{
9065
9065
  venueType: z.ZodString;
9066
9066
  attendance: z.ZodNumber;
9067
9067
  aggregateScore: z.ZodString;
9068
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9068
9069
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
9069
9070
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9070
9071
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -9244,6 +9245,7 @@ export declare const pickSchema: z.ZodObject<{
9244
9245
  aggregateScore: string;
9245
9246
  hadExtraTime: boolean;
9246
9247
  id?: string | undefined;
9248
+ group?: string | null | undefined;
9247
9249
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
9248
9250
  league?: string | undefined;
9249
9251
  createdAt?: number | undefined;
@@ -9455,6 +9457,7 @@ export declare const pickSchema: z.ZodObject<{
9455
9457
  aggregateScore: string;
9456
9458
  hadExtraTime: boolean;
9457
9459
  id?: string | undefined;
9460
+ group?: string | null | undefined;
9458
9461
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
9459
9462
  league?: string | undefined;
9460
9463
  createdAt?: number | undefined;
@@ -18460,6 +18463,7 @@ export declare const pickSchema: z.ZodObject<{
18460
18463
  aggregateScore: string;
18461
18464
  hadExtraTime: boolean;
18462
18465
  id?: string | undefined;
18466
+ group?: string | null | undefined;
18463
18467
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
18464
18468
  league?: string | undefined;
18465
18469
  createdAt?: number | undefined;
@@ -19777,6 +19781,7 @@ export declare const pickSchema: z.ZodObject<{
19777
19781
  aggregateScore: string;
19778
19782
  hadExtraTime: boolean;
19779
19783
  id?: string | undefined;
19784
+ group?: string | null | undefined;
19780
19785
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
19781
19786
  league?: string | undefined;
19782
19787
  createdAt?: number | undefined;
@@ -29762,6 +29767,7 @@ export declare const pickSubmissionDtoSchema: z.ZodObject<{
29762
29767
  venueType: z.ZodString;
29763
29768
  attendance: z.ZodNumber;
29764
29769
  aggregateScore: z.ZodString;
29770
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29765
29771
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
29766
29772
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29767
29773
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -29941,6 +29947,7 @@ export declare const pickSubmissionDtoSchema: z.ZodObject<{
29941
29947
  aggregateScore: string;
29942
29948
  hadExtraTime: boolean;
29943
29949
  id?: string | undefined;
29950
+ group?: string | null | undefined;
29944
29951
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
29945
29952
  league?: string | undefined;
29946
29953
  createdAt?: number | undefined;
@@ -30152,6 +30159,7 @@ export declare const pickSubmissionDtoSchema: z.ZodObject<{
30152
30159
  aggregateScore: string;
30153
30160
  hadExtraTime: boolean;
30154
30161
  id?: string | undefined;
30162
+ group?: string | null | undefined;
30155
30163
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
30156
30164
  league?: string | undefined;
30157
30165
  createdAt?: number | undefined;
@@ -39148,6 +39156,7 @@ export declare const pickSubmissionDtoSchema: z.ZodObject<{
39148
39156
  aggregateScore: string;
39149
39157
  hadExtraTime: boolean;
39150
39158
  id?: string | undefined;
39159
+ group?: string | null | undefined;
39151
39160
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
39152
39161
  league?: string | undefined;
39153
39162
  createdAt?: number | undefined;
@@ -40460,6 +40469,7 @@ export declare const pickSubmissionDtoSchema: z.ZodObject<{
40460
40469
  aggregateScore: string;
40461
40470
  hadExtraTime: boolean;
40462
40471
  id?: string | undefined;
40472
+ group?: string | null | undefined;
40463
40473
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
40464
40474
  league?: string | undefined;
40465
40475
  createdAt?: number | undefined;
@@ -50484,6 +50494,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
50484
50494
  venueType: z.ZodString;
50485
50495
  attendance: z.ZodNumber;
50486
50496
  aggregateScore: z.ZodString;
50497
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50487
50498
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
50488
50499
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50489
50500
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -50663,6 +50674,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
50663
50674
  aggregateScore: string;
50664
50675
  hadExtraTime: boolean;
50665
50676
  id?: string | undefined;
50677
+ group?: string | null | undefined;
50666
50678
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
50667
50679
  league?: string | undefined;
50668
50680
  createdAt?: number | undefined;
@@ -50874,6 +50886,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
50874
50886
  aggregateScore: string;
50875
50887
  hadExtraTime: boolean;
50876
50888
  id?: string | undefined;
50889
+ group?: string | null | undefined;
50877
50890
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
50878
50891
  league?: string | undefined;
50879
50892
  createdAt?: number | undefined;
@@ -59879,6 +59892,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
59879
59892
  aggregateScore: string;
59880
59893
  hadExtraTime: boolean;
59881
59894
  id?: string | undefined;
59895
+ group?: string | null | undefined;
59882
59896
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
59883
59897
  league?: string | undefined;
59884
59898
  createdAt?: number | undefined;
@@ -61196,6 +61210,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
61196
61210
  aggregateScore: string;
61197
61211
  hadExtraTime: boolean;
61198
61212
  id?: string | undefined;
61213
+ group?: string | null | undefined;
61199
61214
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
61200
61215
  league?: string | undefined;
61201
61216
  createdAt?: number | undefined;
@@ -62515,6 +62530,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
62515
62530
  aggregateScore: string;
62516
62531
  hadExtraTime: boolean;
62517
62532
  id?: string | undefined;
62533
+ group?: string | null | undefined;
62518
62534
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
62519
62535
  league?: string | undefined;
62520
62536
  createdAt?: number | undefined;
@@ -63834,6 +63850,7 @@ export declare const userPickResponseDtoSchema: z.ZodObject<{
63834
63850
  aggregateScore: string;
63835
63851
  hadExtraTime: boolean;
63836
63852
  id?: string | undefined;
63853
+ group?: string | null | undefined;
63837
63854
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
63838
63855
  league?: string | undefined;
63839
63856
  createdAt?: number | undefined;
@@ -68411,8 +68428,9 @@ export declare const gamePickUsersPaginatedResponseDtoSchema: z.ZodObject<{
68411
68428
  nextCursor: string | null;
68412
68429
  hasMore: boolean;
68413
68430
  }>;
68414
- export declare const marchMadnessRoundStatsSchema: z.ZodObject<{
68415
- round: z.ZodNumber;
68431
+ export declare const pickEmKindSchema: z.ZodUnion<[z.ZodLiteral<"marchMadness">, z.ZodLiteral<"fifa">]>;
68432
+ export declare const pickEmRoundStatsSchema: z.ZodObject<{
68433
+ roundKey: z.ZodString;
68416
68434
  roundName: z.ZodString;
68417
68435
  totalGames: z.ZodNumber;
68418
68436
  correctPicks: z.ZodNumber;
@@ -68420,28 +68438,28 @@ export declare const marchMadnessRoundStatsSchema: z.ZodObject<{
68420
68438
  pendingPicks: z.ZodNumber;
68421
68439
  totalPicks: z.ZodNumber;
68422
68440
  }, "strip", z.ZodTypeAny, {
68423
- round: number;
68424
68441
  roundName: string;
68425
68442
  totalGames: number;
68426
68443
  totalPicks: number;
68427
68444
  correctPicks: number;
68428
68445
  incorrectPicks: number;
68429
68446
  pendingPicks: number;
68447
+ roundKey: string;
68430
68448
  }, {
68431
- round: number;
68432
68449
  roundName: string;
68433
68450
  totalGames: number;
68434
68451
  totalPicks: number;
68435
68452
  correctPicks: number;
68436
68453
  incorrectPicks: number;
68437
68454
  pendingPicks: number;
68455
+ roundKey: string;
68438
68456
  }>;
68439
- export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
68457
+ export declare const pickEmPicksResponseDtoSchema: z.ZodObject<{
68440
68458
  totalCorrectPicks: z.ZodNumber;
68441
68459
  totalPicks: z.ZodNumber;
68442
68460
  totalGames: z.ZodNumber;
68443
68461
  rounds: z.ZodArray<z.ZodObject<{
68444
- round: z.ZodNumber;
68462
+ roundKey: z.ZodString;
68445
68463
  roundName: z.ZodString;
68446
68464
  totalGames: z.ZodNumber;
68447
68465
  correctPicks: z.ZodNumber;
@@ -68449,21 +68467,21 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
68449
68467
  pendingPicks: z.ZodNumber;
68450
68468
  totalPicks: z.ZodNumber;
68451
68469
  }, "strip", z.ZodTypeAny, {
68452
- round: number;
68453
68470
  roundName: string;
68454
68471
  totalGames: number;
68455
68472
  totalPicks: number;
68456
68473
  correctPicks: number;
68457
68474
  incorrectPicks: number;
68458
68475
  pendingPicks: number;
68476
+ roundKey: string;
68459
68477
  }, {
68460
- round: number;
68461
68478
  roundName: string;
68462
68479
  totalGames: number;
68463
68480
  totalPicks: number;
68464
68481
  correctPicks: number;
68465
68482
  incorrectPicks: number;
68466
68483
  pendingPicks: number;
68484
+ roundKey: string;
68467
68485
  }>, "many">;
68468
68486
  userPicks: z.ZodArray<z.ZodObject<{
68469
68487
  id: z.ZodString;
@@ -77531,6 +77549,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
77531
77549
  venueType: z.ZodString;
77532
77550
  attendance: z.ZodNumber;
77533
77551
  aggregateScore: z.ZodString;
77552
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77534
77553
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
77535
77554
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
77536
77555
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -77710,6 +77729,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
77710
77729
  aggregateScore: string;
77711
77730
  hadExtraTime: boolean;
77712
77731
  id?: string | undefined;
77732
+ group?: string | null | undefined;
77713
77733
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
77714
77734
  league?: string | undefined;
77715
77735
  createdAt?: number | undefined;
@@ -77921,6 +77941,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
77921
77941
  aggregateScore: string;
77922
77942
  hadExtraTime: boolean;
77923
77943
  id?: string | undefined;
77944
+ group?: string | null | undefined;
77924
77945
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
77925
77946
  league?: string | undefined;
77926
77947
  createdAt?: number | undefined;
@@ -86926,6 +86947,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
86926
86947
  aggregateScore: string;
86927
86948
  hadExtraTime: boolean;
86928
86949
  id?: string | undefined;
86950
+ group?: string | null | undefined;
86929
86951
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
86930
86952
  league?: string | undefined;
86931
86953
  createdAt?: number | undefined;
@@ -88243,6 +88265,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
88243
88265
  aggregateScore: string;
88244
88266
  hadExtraTime: boolean;
88245
88267
  id?: string | undefined;
88268
+ group?: string | null | undefined;
88246
88269
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
88247
88270
  league?: string | undefined;
88248
88271
  createdAt?: number | undefined;
@@ -89076,13 +89099,13 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
89076
89099
  totalPicks: number;
89077
89100
  totalCorrectPicks: number;
89078
89101
  rounds: {
89079
- round: number;
89080
89102
  roundName: string;
89081
89103
  totalGames: number;
89082
89104
  totalPicks: number;
89083
89105
  correctPicks: number;
89084
89106
  incorrectPicks: number;
89085
89107
  pendingPicks: number;
89108
+ roundKey: string;
89086
89109
  }[];
89087
89110
  userPicks: {
89088
89111
  id: string;
@@ -89574,6 +89597,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
89574
89597
  aggregateScore: string;
89575
89598
  hadExtraTime: boolean;
89576
89599
  id?: string | undefined;
89600
+ group?: string | null | undefined;
89577
89601
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
89578
89602
  league?: string | undefined;
89579
89603
  createdAt?: number | undefined;
@@ -90407,13 +90431,13 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
90407
90431
  totalPicks: number;
90408
90432
  totalCorrectPicks: number;
90409
90433
  rounds: {
90410
- round: number;
90411
90434
  roundName: string;
90412
90435
  totalGames: number;
90413
90436
  totalPicks: number;
90414
90437
  correctPicks: number;
90415
90438
  incorrectPicks: number;
90416
90439
  pendingPicks: number;
90440
+ roundKey: string;
90417
90441
  }[];
90418
90442
  userPicks: {
90419
90443
  id: string;
@@ -90905,6 +90929,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
90905
90929
  aggregateScore: string;
90906
90930
  hadExtraTime: boolean;
90907
90931
  id?: string | undefined;
90932
+ group?: string | null | undefined;
90908
90933
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
90909
90934
  league?: string | undefined;
90910
90935
  createdAt?: number | undefined;
@@ -91734,7 +91759,7 @@ export declare const marchMadnessPicksResponseDtoSchema: z.ZodObject<{
91734
91759
  isCorrect?: boolean | undefined;
91735
91760
  }[];
91736
91761
  }>;
91737
- export declare const marchMadnessLeaderboardEntrySchema: z.ZodObject<{
91762
+ export declare const pickEmLeaderboardEntrySchema: z.ZodObject<{
91738
91763
  id: z.ZodString;
91739
91764
  username: z.ZodString;
91740
91765
  avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -91762,7 +91787,7 @@ export declare const marchMadnessLeaderboardEntrySchema: z.ZodObject<{
91762
91787
  badge?: string | undefined;
91763
91788
  scorePredictionDiff?: number | null | undefined;
91764
91789
  }>;
91765
- export declare const marchMadnessLeaderboardResponseDtoSchema: z.ZodObject<{
91790
+ export declare const pickEmLeaderboardResponseDtoSchema: z.ZodObject<{
91766
91791
  leaderboard: z.ZodArray<z.ZodObject<{
91767
91792
  id: z.ZodString;
91768
91793
  username: z.ZodString;
@@ -100929,6 +100954,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
100929
100954
  venueType: z.ZodString;
100930
100955
  attendance: z.ZodNumber;
100931
100956
  aggregateScore: z.ZodString;
100957
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100932
100958
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
100933
100959
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100934
100960
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -101108,6 +101134,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
101108
101134
  aggregateScore: string;
101109
101135
  hadExtraTime: boolean;
101110
101136
  id?: string | undefined;
101137
+ group?: string | null | undefined;
101111
101138
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
101112
101139
  league?: string | undefined;
101113
101140
  createdAt?: number | undefined;
@@ -101319,6 +101346,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
101319
101346
  aggregateScore: string;
101320
101347
  hadExtraTime: boolean;
101321
101348
  id?: string | undefined;
101349
+ group?: string | null | undefined;
101322
101350
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
101323
101351
  league?: string | undefined;
101324
101352
  createdAt?: number | undefined;
@@ -110324,6 +110352,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
110324
110352
  aggregateScore: string;
110325
110353
  hadExtraTime: boolean;
110326
110354
  id?: string | undefined;
110355
+ group?: string | null | undefined;
110327
110356
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
110328
110357
  league?: string | undefined;
110329
110358
  createdAt?: number | undefined;
@@ -111641,6 +111670,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
111641
111670
  aggregateScore: string;
111642
111671
  hadExtraTime: boolean;
111643
111672
  id?: string | undefined;
111673
+ group?: string | null | undefined;
111644
111674
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
111645
111675
  league?: string | undefined;
111646
111676
  createdAt?: number | undefined;
@@ -112962,6 +112992,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
112962
112992
  aggregateScore: string;
112963
112993
  hadExtraTime: boolean;
112964
112994
  id?: string | undefined;
112995
+ group?: string | null | undefined;
112965
112996
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
112966
112997
  league?: string | undefined;
112967
112998
  createdAt?: number | undefined;
@@ -114283,6 +114314,7 @@ export declare const pickDeleteDtoSchema: z.ZodObject<{
114283
114314
  aggregateScore: string;
114284
114315
  hadExtraTime: boolean;
114285
114316
  id?: string | undefined;
114317
+ group?: string | null | undefined;
114286
114318
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
114287
114319
  league?: string | undefined;
114288
114320
  createdAt?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pickDeleteResponseDtoSchema = exports.pickDeleteDtoSchema = exports.marchMadnessLeaderboardResponseDtoSchema = exports.marchMadnessLeaderboardEntrySchema = exports.marchMadnessPicksResponseDtoSchema = exports.marchMadnessRoundStatsSchema = exports.gamePickUsersPaginatedResponseDtoSchema = exports.gamePickUsersResponseDtoSchema = exports.userPicksByTeamResponseDtoSchema = exports.userPicksTeamStatsSchema = exports.userPicksStatsResponseDtoSchema = exports.userPicksLeagueStatsSchema = exports.userPickResponseDtoSchema = exports.gamePickStatsResponseDtoSchema = exports.pickUpdateDtoSchema = exports.pickSubmissionResponseDtoSchema = exports.pickSubmissionDtoSchema = exports.miniPickSchema = exports.pickSchema = void 0;
3
+ exports.pickDeleteResponseDtoSchema = exports.pickDeleteDtoSchema = exports.pickEmLeaderboardResponseDtoSchema = exports.pickEmLeaderboardEntrySchema = exports.pickEmPicksResponseDtoSchema = exports.pickEmRoundStatsSchema = exports.pickEmKindSchema = exports.gamePickUsersPaginatedResponseDtoSchema = exports.gamePickUsersResponseDtoSchema = exports.userPicksByTeamResponseDtoSchema = exports.userPicksTeamStatsSchema = exports.userPicksStatsResponseDtoSchema = exports.userPicksLeagueStatsSchema = exports.userPickResponseDtoSchema = exports.gamePickStatsResponseDtoSchema = exports.pickUpdateDtoSchema = exports.pickSubmissionResponseDtoSchema = exports.pickSubmissionDtoSchema = exports.miniPickSchema = exports.pickSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const sharedTypes_1 = require("./sharedTypes");
6
6
  const user_1 = require("./user");
@@ -105,9 +105,16 @@ exports.gamePickUsersPaginatedResponseDtoSchema = zod_1.z.object({
105
105
  nextCursor: zod_1.z.string().nullable(),
106
106
  hasMore: zod_1.z.boolean(),
107
107
  });
108
- // March Madness round pick stats (per round)
109
- exports.marchMadnessRoundStatsSchema = zod_1.z.object({
110
- round: zod_1.z.number(),
108
+ // Pick'em kind discriminator (used in route params / configs)
109
+ exports.pickEmKindSchema = zod_1.z.union([
110
+ zod_1.z.literal("marchMadness"),
111
+ zod_1.z.literal("fifa"),
112
+ ]);
113
+ // Per-round pick stats. roundKey is a string so the same shape works for any
114
+ // pick'em (March Madness rounds 1..7 are stringified, FIFA uses
115
+ // "group-A".."group-L", "r32", "r16", "qf", "sf", "third", "final").
116
+ exports.pickEmRoundStatsSchema = zod_1.z.object({
117
+ roundKey: zod_1.z.string(),
111
118
  roundName: zod_1.z.string(),
112
119
  totalGames: zod_1.z.number(),
113
120
  correctPicks: zod_1.z.number(),
@@ -115,16 +122,16 @@ exports.marchMadnessRoundStatsSchema = zod_1.z.object({
115
122
  pendingPicks: zod_1.z.number(),
116
123
  totalPicks: zod_1.z.number(),
117
124
  });
118
- // March Madness user picks response (round-by-round)
119
- exports.marchMadnessPicksResponseDtoSchema = zod_1.z.object({
125
+ // User picks response (round-by-round)
126
+ exports.pickEmPicksResponseDtoSchema = zod_1.z.object({
120
127
  totalCorrectPicks: zod_1.z.number(),
121
128
  totalPicks: zod_1.z.number(),
122
129
  totalGames: zod_1.z.number(),
123
- rounds: zod_1.z.array(exports.marchMadnessRoundStatsSchema),
130
+ rounds: zod_1.z.array(exports.pickEmRoundStatsSchema),
124
131
  userPicks: zod_1.z.array(exports.pickSchema),
125
132
  });
126
- // March Madness leaderboard entry
127
- exports.marchMadnessLeaderboardEntrySchema = zod_1.z.object({
133
+ // Leaderboard entry
134
+ exports.pickEmLeaderboardEntrySchema = zod_1.z.object({
128
135
  id: zod_1.z.string(),
129
136
  username: zod_1.z.string(),
130
137
  avatarUrl: zod_1.z.string().nullable().optional(),
@@ -134,10 +141,10 @@ exports.marchMadnessLeaderboardEntrySchema = zod_1.z.object({
134
141
  rank: zod_1.z.number(),
135
142
  scorePredictionDiff: zod_1.z.number().nullable().optional(),
136
143
  });
137
- // March Madness leaderboard response
138
- exports.marchMadnessLeaderboardResponseDtoSchema = zod_1.z.object({
139
- leaderboard: zod_1.z.array(exports.marchMadnessLeaderboardEntrySchema),
140
- currentUserEntry: exports.marchMadnessLeaderboardEntrySchema.nullable().optional(),
144
+ // Leaderboard response
145
+ exports.pickEmLeaderboardResponseDtoSchema = zod_1.z.object({
146
+ leaderboard: zod_1.z.array(exports.pickEmLeaderboardEntrySchema),
147
+ currentUserEntry: exports.pickEmLeaderboardEntrySchema.nullable().optional(),
141
148
  });
142
149
  // Pick delete DTO (contains the existing pick and current RTDB pick counts)
143
150
  exports.pickDeleteDtoSchema = zod_1.z.object({
@@ -7839,6 +7839,7 @@ export declare const scorePredictionSchema: z.ZodObject<{
7839
7839
  venueType: z.ZodString;
7840
7840
  attendance: z.ZodNumber;
7841
7841
  aggregateScore: z.ZodString;
7842
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7842
7843
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
7843
7844
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7844
7845
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -8018,6 +8019,7 @@ export declare const scorePredictionSchema: z.ZodObject<{
8018
8019
  aggregateScore: string;
8019
8020
  hadExtraTime: boolean;
8020
8021
  id?: string | undefined;
8022
+ group?: string | null | undefined;
8021
8023
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
8022
8024
  league?: string | undefined;
8023
8025
  createdAt?: number | undefined;
@@ -8229,6 +8231,7 @@ export declare const scorePredictionSchema: z.ZodObject<{
8229
8231
  aggregateScore: string;
8230
8232
  hadExtraTime: boolean;
8231
8233
  id?: string | undefined;
8234
+ group?: string | null | undefined;
8232
8235
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
8233
8236
  league?: string | undefined;
8234
8237
  createdAt?: number | undefined;
@@ -18412,6 +18415,7 @@ export declare const scorePredictionSchema: z.ZodObject<{
18412
18415
  aggregateScore: string;
18413
18416
  hadExtraTime: boolean;
18414
18417
  id?: string | undefined;
18418
+ group?: string | null | undefined;
18415
18419
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
18416
18420
  league?: string | undefined;
18417
18421
  createdAt?: number | undefined;
@@ -19713,6 +19717,7 @@ export declare const scorePredictionSchema: z.ZodObject<{
19713
19717
  aggregateScore: string;
19714
19718
  hadExtraTime: boolean;
19715
19719
  id?: string | undefined;
19720
+ group?: string | null | undefined;
19716
19721
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
19717
19722
  league?: string | undefined;
19718
19723
  createdAt?: number | undefined;
@@ -28367,6 +28372,7 @@ export declare const scorePredictionSubmissionDtoSchema: z.ZodObject<{
28367
28372
  venueType: z.ZodString;
28368
28373
  attendance: z.ZodNumber;
28369
28374
  aggregateScore: z.ZodString;
28375
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28370
28376
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
28371
28377
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28372
28378
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -28546,6 +28552,7 @@ export declare const scorePredictionSubmissionDtoSchema: z.ZodObject<{
28546
28552
  aggregateScore: string;
28547
28553
  hadExtraTime: boolean;
28548
28554
  id?: string | undefined;
28555
+ group?: string | null | undefined;
28549
28556
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
28550
28557
  league?: string | undefined;
28551
28558
  createdAt?: number | undefined;
@@ -28757,6 +28764,7 @@ export declare const scorePredictionSubmissionDtoSchema: z.ZodObject<{
28757
28764
  aggregateScore: string;
28758
28765
  hadExtraTime: boolean;
28759
28766
  id?: string | undefined;
28767
+ group?: string | null | undefined;
28760
28768
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
28761
28769
  league?: string | undefined;
28762
28770
  createdAt?: number | undefined;
@@ -37746,6 +37754,7 @@ export declare const scorePredictionSubmissionDtoSchema: z.ZodObject<{
37746
37754
  aggregateScore: string;
37747
37755
  hadExtraTime: boolean;
37748
37756
  id?: string | undefined;
37757
+ group?: string | null | undefined;
37749
37758
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
37750
37759
  league?: string | undefined;
37751
37760
  createdAt?: number | undefined;
@@ -39036,6 +39045,7 @@ export declare const scorePredictionSubmissionDtoSchema: z.ZodObject<{
39036
39045
  aggregateScore: string;
39037
39046
  hadExtraTime: boolean;
39038
39047
  id?: string | undefined;
39048
+ group?: string | null | undefined;
39039
39049
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
39040
39050
  league?: string | undefined;
39041
39051
  createdAt?: number | undefined;
@@ -47711,6 +47721,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
47711
47721
  venueType: z.ZodString;
47712
47722
  attendance: z.ZodNumber;
47713
47723
  aggregateScore: z.ZodString;
47724
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47714
47725
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
47715
47726
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47716
47727
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -47890,6 +47901,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
47890
47901
  aggregateScore: string;
47891
47902
  hadExtraTime: boolean;
47892
47903
  id?: string | undefined;
47904
+ group?: string | null | undefined;
47893
47905
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
47894
47906
  league?: string | undefined;
47895
47907
  createdAt?: number | undefined;
@@ -48101,6 +48113,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
48101
48113
  aggregateScore: string;
48102
48114
  hadExtraTime: boolean;
48103
48115
  id?: string | undefined;
48116
+ group?: string | null | undefined;
48104
48117
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
48105
48118
  league?: string | undefined;
48106
48119
  createdAt?: number | undefined;
@@ -58284,6 +58297,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
58284
58297
  aggregateScore: string;
58285
58298
  hadExtraTime: boolean;
58286
58299
  id?: string | undefined;
58300
+ group?: string | null | undefined;
58287
58301
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
58288
58302
  league?: string | undefined;
58289
58303
  createdAt?: number | undefined;
@@ -59585,6 +59599,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
59585
59599
  aggregateScore: string;
59586
59600
  hadExtraTime: boolean;
59587
59601
  id?: string | undefined;
59602
+ group?: string | null | undefined;
59588
59603
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
59589
59604
  league?: string | undefined;
59590
59605
  createdAt?: number | undefined;
@@ -60888,6 +60903,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
60888
60903
  aggregateScore: string;
60889
60904
  hadExtraTime: boolean;
60890
60905
  id?: string | undefined;
60906
+ group?: string | null | undefined;
60891
60907
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
60892
60908
  league?: string | undefined;
60893
60909
  createdAt?: number | undefined;
@@ -62191,6 +62207,7 @@ export declare const userScorePredictionResponseDtoSchema: z.ZodObject<{
62191
62207
  aggregateScore: string;
62192
62208
  hadExtraTime: boolean;
62193
62209
  id?: string | undefined;
62210
+ group?: string | null | undefined;
62194
62211
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
62195
62212
  league?: string | undefined;
62196
62213
  createdAt?: number | undefined;
@@ -70846,6 +70863,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
70846
70863
  venueType: z.ZodString;
70847
70864
  attendance: z.ZodNumber;
70848
70865
  aggregateScore: z.ZodString;
70866
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70849
70867
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
70850
70868
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70851
70869
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -71025,6 +71043,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
71025
71043
  aggregateScore: string;
71026
71044
  hadExtraTime: boolean;
71027
71045
  id?: string | undefined;
71046
+ group?: string | null | undefined;
71028
71047
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
71029
71048
  league?: string | undefined;
71030
71049
  createdAt?: number | undefined;
@@ -71236,6 +71255,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
71236
71255
  aggregateScore: string;
71237
71256
  hadExtraTime: boolean;
71238
71257
  id?: string | undefined;
71258
+ group?: string | null | undefined;
71239
71259
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
71240
71260
  league?: string | undefined;
71241
71261
  createdAt?: number | undefined;
@@ -81419,6 +81439,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
81419
81439
  aggregateScore: string;
81420
81440
  hadExtraTime: boolean;
81421
81441
  id?: string | undefined;
81442
+ group?: string | null | undefined;
81422
81443
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
81423
81444
  league?: string | undefined;
81424
81445
  createdAt?: number | undefined;
@@ -82720,6 +82741,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
82720
82741
  aggregateScore: string;
82721
82742
  hadExtraTime: boolean;
82722
82743
  id?: string | undefined;
82744
+ group?: string | null | undefined;
82723
82745
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
82724
82746
  league?: string | undefined;
82725
82747
  createdAt?: number | undefined;
@@ -84024,6 +84046,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
84024
84046
  aggregateScore: string;
84025
84047
  hadExtraTime: boolean;
84026
84048
  id?: string | undefined;
84049
+ group?: string | null | undefined;
84027
84050
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
84028
84051
  league?: string | undefined;
84029
84052
  createdAt?: number | undefined;
@@ -85328,6 +85351,7 @@ export declare const gameScorePredictionsResponseDtoSchema: z.ZodObject<{
85328
85351
  aggregateScore: string;
85329
85352
  hadExtraTime: boolean;
85330
85353
  id?: string | undefined;
85354
+ group?: string | null | undefined;
85331
85355
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
85332
85356
  league?: string | undefined;
85333
85357
  createdAt?: number | undefined;
@@ -0,0 +1,306 @@
1
+ import { z } from "zod";
2
+ export declare const fifaStandingsTeamSchema: z.ZodObject<{
3
+ teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ apiTeamId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ name: z.ZodString;
6
+ shortName: z.ZodOptional<z.ZodString>;
7
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ teamCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ order: z.ZodNumber;
11
+ games: z.ZodNumber;
12
+ wins: z.ZodNumber;
13
+ losses: z.ZodNumber;
14
+ draws: z.ZodNumber;
15
+ goalsScored: z.ZodNumber;
16
+ goalsAgainst: z.ZodNumber;
17
+ goalsDifferential: z.ZodNumber;
18
+ points: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ name: string;
21
+ order: number;
22
+ games: number;
23
+ wins: number;
24
+ losses: number;
25
+ draws: number;
26
+ goalsScored: number;
27
+ goalsAgainst: number;
28
+ goalsDifferential: number;
29
+ points: number;
30
+ image?: string | null | undefined;
31
+ apiTeamId?: number | null | undefined;
32
+ teamCode?: string | null | undefined;
33
+ teamId?: string | null | undefined;
34
+ countryId?: string | null | undefined;
35
+ shortName?: string | undefined;
36
+ }, {
37
+ name: string;
38
+ order: number;
39
+ games: number;
40
+ wins: number;
41
+ losses: number;
42
+ draws: number;
43
+ goalsScored: number;
44
+ goalsAgainst: number;
45
+ goalsDifferential: number;
46
+ points: number;
47
+ image?: string | null | undefined;
48
+ apiTeamId?: number | null | undefined;
49
+ teamCode?: string | null | undefined;
50
+ teamId?: string | null | undefined;
51
+ countryId?: string | null | undefined;
52
+ shortName?: string | undefined;
53
+ }>;
54
+ export declare const fifaStandingsGroupSchema: z.ZodObject<{
55
+ groupKey: z.ZodString;
56
+ groupName: z.ZodString;
57
+ teams: z.ZodArray<z.ZodObject<{
58
+ teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ apiTeamId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ name: z.ZodString;
61
+ shortName: z.ZodOptional<z.ZodString>;
62
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ teamCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ order: z.ZodNumber;
66
+ games: z.ZodNumber;
67
+ wins: z.ZodNumber;
68
+ losses: z.ZodNumber;
69
+ draws: z.ZodNumber;
70
+ goalsScored: z.ZodNumber;
71
+ goalsAgainst: z.ZodNumber;
72
+ goalsDifferential: z.ZodNumber;
73
+ points: z.ZodNumber;
74
+ }, "strip", z.ZodTypeAny, {
75
+ name: string;
76
+ order: number;
77
+ games: number;
78
+ wins: number;
79
+ losses: number;
80
+ draws: number;
81
+ goalsScored: number;
82
+ goalsAgainst: number;
83
+ goalsDifferential: number;
84
+ points: number;
85
+ image?: string | null | undefined;
86
+ apiTeamId?: number | null | undefined;
87
+ teamCode?: string | null | undefined;
88
+ teamId?: string | null | undefined;
89
+ countryId?: string | null | undefined;
90
+ shortName?: string | undefined;
91
+ }, {
92
+ name: string;
93
+ order: number;
94
+ games: number;
95
+ wins: number;
96
+ losses: number;
97
+ draws: number;
98
+ goalsScored: number;
99
+ goalsAgainst: number;
100
+ goalsDifferential: number;
101
+ points: number;
102
+ image?: string | null | undefined;
103
+ apiTeamId?: number | null | undefined;
104
+ teamCode?: string | null | undefined;
105
+ teamId?: string | null | undefined;
106
+ countryId?: string | null | undefined;
107
+ shortName?: string | undefined;
108
+ }>, "many">;
109
+ }, "strip", z.ZodTypeAny, {
110
+ teams: {
111
+ name: string;
112
+ order: number;
113
+ games: number;
114
+ wins: number;
115
+ losses: number;
116
+ draws: number;
117
+ goalsScored: number;
118
+ goalsAgainst: number;
119
+ goalsDifferential: number;
120
+ points: number;
121
+ image?: string | null | undefined;
122
+ apiTeamId?: number | null | undefined;
123
+ teamCode?: string | null | undefined;
124
+ teamId?: string | null | undefined;
125
+ countryId?: string | null | undefined;
126
+ shortName?: string | undefined;
127
+ }[];
128
+ groupKey: string;
129
+ groupName: string;
130
+ }, {
131
+ teams: {
132
+ name: string;
133
+ order: number;
134
+ games: number;
135
+ wins: number;
136
+ losses: number;
137
+ draws: number;
138
+ goalsScored: number;
139
+ goalsAgainst: number;
140
+ goalsDifferential: number;
141
+ points: number;
142
+ image?: string | null | undefined;
143
+ apiTeamId?: number | null | undefined;
144
+ teamCode?: string | null | undefined;
145
+ teamId?: string | null | undefined;
146
+ countryId?: string | null | undefined;
147
+ shortName?: string | undefined;
148
+ }[];
149
+ groupKey: string;
150
+ groupName: string;
151
+ }>;
152
+ export declare const fifaStandingsResponseDtoSchema: z.ZodObject<{
153
+ 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<"fifa">, z.ZodUnion<[z.ZodLiteral<"global">, z.ZodString]>]>;
154
+ season: z.ZodNumber;
155
+ groups: z.ZodArray<z.ZodObject<{
156
+ groupKey: z.ZodString;
157
+ groupName: z.ZodString;
158
+ teams: z.ZodArray<z.ZodObject<{
159
+ teamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ apiTeamId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
161
+ name: z.ZodString;
162
+ shortName: z.ZodOptional<z.ZodString>;
163
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ teamCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ countryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ order: z.ZodNumber;
167
+ games: z.ZodNumber;
168
+ wins: z.ZodNumber;
169
+ losses: z.ZodNumber;
170
+ draws: z.ZodNumber;
171
+ goalsScored: z.ZodNumber;
172
+ goalsAgainst: z.ZodNumber;
173
+ goalsDifferential: z.ZodNumber;
174
+ points: z.ZodNumber;
175
+ }, "strip", z.ZodTypeAny, {
176
+ name: string;
177
+ order: number;
178
+ games: number;
179
+ wins: number;
180
+ losses: number;
181
+ draws: number;
182
+ goalsScored: number;
183
+ goalsAgainst: number;
184
+ goalsDifferential: number;
185
+ points: number;
186
+ image?: string | null | undefined;
187
+ apiTeamId?: number | null | undefined;
188
+ teamCode?: string | null | undefined;
189
+ teamId?: string | null | undefined;
190
+ countryId?: string | null | undefined;
191
+ shortName?: string | undefined;
192
+ }, {
193
+ name: string;
194
+ order: number;
195
+ games: number;
196
+ wins: number;
197
+ losses: number;
198
+ draws: number;
199
+ goalsScored: number;
200
+ goalsAgainst: number;
201
+ goalsDifferential: number;
202
+ points: number;
203
+ image?: string | null | undefined;
204
+ apiTeamId?: number | null | undefined;
205
+ teamCode?: string | null | undefined;
206
+ teamId?: string | null | undefined;
207
+ countryId?: string | null | undefined;
208
+ shortName?: string | undefined;
209
+ }>, "many">;
210
+ }, "strip", z.ZodTypeAny, {
211
+ teams: {
212
+ name: string;
213
+ order: number;
214
+ games: number;
215
+ wins: number;
216
+ losses: number;
217
+ draws: number;
218
+ goalsScored: number;
219
+ goalsAgainst: number;
220
+ goalsDifferential: number;
221
+ points: number;
222
+ image?: string | null | undefined;
223
+ apiTeamId?: number | null | undefined;
224
+ teamCode?: string | null | undefined;
225
+ teamId?: string | null | undefined;
226
+ countryId?: string | null | undefined;
227
+ shortName?: string | undefined;
228
+ }[];
229
+ groupKey: string;
230
+ groupName: string;
231
+ }, {
232
+ teams: {
233
+ name: string;
234
+ order: number;
235
+ games: number;
236
+ wins: number;
237
+ losses: number;
238
+ draws: number;
239
+ goalsScored: number;
240
+ goalsAgainst: number;
241
+ goalsDifferential: number;
242
+ points: number;
243
+ image?: string | null | undefined;
244
+ apiTeamId?: number | null | undefined;
245
+ teamCode?: string | null | undefined;
246
+ teamId?: string | null | undefined;
247
+ countryId?: string | null | undefined;
248
+ shortName?: string | undefined;
249
+ }[];
250
+ groupKey: string;
251
+ groupName: string;
252
+ }>, "many">;
253
+ updatedAt: z.ZodNumber;
254
+ }, "strip", z.ZodTypeAny, {
255
+ groups: {
256
+ teams: {
257
+ name: string;
258
+ order: number;
259
+ games: number;
260
+ wins: number;
261
+ losses: number;
262
+ draws: number;
263
+ goalsScored: number;
264
+ goalsAgainst: number;
265
+ goalsDifferential: number;
266
+ points: number;
267
+ image?: string | null | undefined;
268
+ apiTeamId?: number | null | undefined;
269
+ teamCode?: string | null | undefined;
270
+ teamId?: string | null | undefined;
271
+ countryId?: string | null | undefined;
272
+ shortName?: string | undefined;
273
+ }[];
274
+ groupKey: string;
275
+ groupName: string;
276
+ }[];
277
+ league: string;
278
+ updatedAt: number;
279
+ season: number;
280
+ }, {
281
+ groups: {
282
+ teams: {
283
+ name: string;
284
+ order: number;
285
+ games: number;
286
+ wins: number;
287
+ losses: number;
288
+ draws: number;
289
+ goalsScored: number;
290
+ goalsAgainst: number;
291
+ goalsDifferential: number;
292
+ points: number;
293
+ image?: string | null | undefined;
294
+ apiTeamId?: number | null | undefined;
295
+ teamCode?: string | null | undefined;
296
+ teamId?: string | null | undefined;
297
+ countryId?: string | null | undefined;
298
+ shortName?: string | undefined;
299
+ }[];
300
+ groupKey: string;
301
+ groupName: string;
302
+ }[];
303
+ league: string;
304
+ updatedAt: number;
305
+ season: number;
306
+ }>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fifaStandingsResponseDtoSchema = exports.fifaStandingsGroupSchema = exports.fifaStandingsTeamSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const sharedTypes_1 = require("./sharedTypes");
6
+ // One team's row inside a group standings table
7
+ exports.fifaStandingsTeamSchema = zod_1.z.object({
8
+ teamId: zod_1.z.string().nullable().optional(),
9
+ apiTeamId: zod_1.z.number().nullable().optional(),
10
+ name: zod_1.z.string(),
11
+ shortName: zod_1.z.string().optional(),
12
+ image: zod_1.z.string().nullable().optional(),
13
+ teamCode: zod_1.z.string().nullable().optional(),
14
+ countryId: zod_1.z.string().nullable().optional(),
15
+ order: zod_1.z.number(),
16
+ games: zod_1.z.number(),
17
+ wins: zod_1.z.number(),
18
+ losses: zod_1.z.number(),
19
+ draws: zod_1.z.number(),
20
+ goalsScored: zod_1.z.number(),
21
+ goalsAgainst: zod_1.z.number(),
22
+ goalsDifferential: zod_1.z.number(),
23
+ points: zod_1.z.number(),
24
+ });
25
+ exports.fifaStandingsGroupSchema = zod_1.z.object({
26
+ groupKey: zod_1.z.string(),
27
+ groupName: zod_1.z.string(),
28
+ teams: zod_1.z.array(exports.fifaStandingsTeamSchema),
29
+ });
30
+ exports.fifaStandingsResponseDtoSchema = zod_1.z.object({
31
+ league: sharedTypes_1.leagueSlug,
32
+ season: zod_1.z.number(),
33
+ groups: zod_1.z.array(exports.fifaStandingsGroupSchema),
34
+ updatedAt: zod_1.z.number(),
35
+ });
@@ -10694,6 +10694,7 @@ export declare const playerWithVotesAndGameSchema: z.ZodObject<{
10694
10694
  venueType: z.ZodString;
10695
10695
  attendance: z.ZodNumber;
10696
10696
  aggregateScore: z.ZodString;
10697
+ group: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10697
10698
  homeTeam: z.ZodObject<z.objectUtil.extendShape<{
10698
10699
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10699
10700
  apiTeamId: z.ZodNullable<z.ZodNumber>;
@@ -10873,6 +10874,7 @@ export declare const playerWithVotesAndGameSchema: z.ZodObject<{
10873
10874
  aggregateScore: string;
10874
10875
  hadExtraTime: boolean;
10875
10876
  id?: string | undefined;
10877
+ group?: string | null | undefined;
10876
10878
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
10877
10879
  league?: string | undefined;
10878
10880
  createdAt?: number | undefined;
@@ -11084,6 +11086,7 @@ export declare const playerWithVotesAndGameSchema: z.ZodObject<{
11084
11086
  aggregateScore: string;
11085
11087
  hadExtraTime: boolean;
11086
11088
  id?: string | undefined;
11089
+ group?: string | null | undefined;
11087
11090
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
11088
11091
  league?: string | undefined;
11089
11092
  createdAt?: number | undefined;
@@ -20084,6 +20087,7 @@ export declare const playerWithVotesAndGameSchema: z.ZodObject<{
20084
20087
  aggregateScore: string;
20085
20088
  hadExtraTime: boolean;
20086
20089
  id?: string | undefined;
20090
+ group?: string | null | undefined;
20087
20091
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
20088
20092
  league?: string | undefined;
20089
20093
  createdAt?: number | undefined;
@@ -21382,6 +21386,7 @@ export declare const playerWithVotesAndGameSchema: z.ZodObject<{
21382
21386
  aggregateScore: string;
21383
21387
  hadExtraTime: boolean;
21384
21388
  id?: string | undefined;
21389
+ group?: string | null | undefined;
21385
21390
  sport?: "basketball" | "football" | "soccer" | "baseball" | "hockey" | undefined;
21386
21391
  league?: string | undefined;
21387
21392
  createdAt?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rategame-shared",
3
- "version": "1.1.422",
3
+ "version": "1.1.424",
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",