rategame-shared 1.1.0 → 1.1.2
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/models/rating.d.ts +3 -1
- package/dist/schemas/game.d.ts +10 -79
- package/dist/schemas/game.js +0 -3
- package/dist/schemas/player.d.ts +0 -12
- package/dist/schemas/player.js +0 -4
- package/dist/schemas/rating.d.ts +503 -22
- package/dist/schemas/rating.js +37 -1
- package/package.json +1 -1
package/dist/models/rating.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema } from "../schemas/rating";
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema, createMLBRatingSchema, mlbRatingSchema } from "../schemas/rating";
|
|
3
3
|
export type Rating = z.infer<typeof ratingSchema>;
|
|
4
4
|
export type RatingLike = z.infer<typeof ratingLikeSchema>;
|
|
5
5
|
export type CreateRating = z.infer<typeof createRatingSchema>;
|
|
6
6
|
export type SearchRating = z.infer<typeof searchRatingSchema>;
|
|
7
7
|
export type CreateAgreeRating = z.infer<typeof createAgreeRatingSchema>;
|
|
8
|
+
export type CreateMLBRating = z.infer<typeof createMLBRatingSchema>;
|
|
9
|
+
export type MLBRating = z.infer<typeof mlbRatingSchema>;
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -11,16 +11,16 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
11
11
|
name: string;
|
|
12
12
|
image: string;
|
|
13
13
|
apiTeamId: number;
|
|
14
|
-
seed: number;
|
|
15
14
|
score: number;
|
|
15
|
+
seed: number;
|
|
16
16
|
id?: string | undefined;
|
|
17
17
|
isWinner?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
name: string;
|
|
20
20
|
image: string;
|
|
21
21
|
apiTeamId: number;
|
|
22
|
-
seed: number;
|
|
23
22
|
score: number;
|
|
23
|
+
seed: number;
|
|
24
24
|
id?: string | undefined;
|
|
25
25
|
isWinner?: boolean | undefined;
|
|
26
26
|
}>;
|
|
@@ -109,16 +109,16 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
109
109
|
name: string;
|
|
110
110
|
image: string;
|
|
111
111
|
apiTeamId: number;
|
|
112
|
-
seed: number;
|
|
113
112
|
score: number;
|
|
113
|
+
seed: number;
|
|
114
114
|
id?: string | undefined;
|
|
115
115
|
isWinner?: boolean | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
name: string;
|
|
118
118
|
image: string;
|
|
119
119
|
apiTeamId: number;
|
|
120
|
-
seed: number;
|
|
121
120
|
score: number;
|
|
121
|
+
seed: number;
|
|
122
122
|
id?: string | undefined;
|
|
123
123
|
isWinner?: boolean | undefined;
|
|
124
124
|
}>;
|
|
@@ -134,16 +134,16 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
134
134
|
name: string;
|
|
135
135
|
image: string;
|
|
136
136
|
apiTeamId: number;
|
|
137
|
-
seed: number;
|
|
138
137
|
score: number;
|
|
138
|
+
seed: number;
|
|
139
139
|
id?: string | undefined;
|
|
140
140
|
isWinner?: boolean | undefined;
|
|
141
141
|
}, {
|
|
142
142
|
name: string;
|
|
143
143
|
image: string;
|
|
144
144
|
apiTeamId: number;
|
|
145
|
-
seed: number;
|
|
146
145
|
score: number;
|
|
146
|
+
seed: number;
|
|
147
147
|
id?: string | undefined;
|
|
148
148
|
isWinner?: boolean | undefined;
|
|
149
149
|
}>;
|
|
@@ -216,8 +216,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
216
216
|
name: string;
|
|
217
217
|
image: string;
|
|
218
218
|
apiTeamId: number;
|
|
219
|
-
seed: number;
|
|
220
219
|
score: number;
|
|
220
|
+
seed: number;
|
|
221
221
|
id?: string | undefined;
|
|
222
222
|
isWinner?: boolean | undefined;
|
|
223
223
|
};
|
|
@@ -225,8 +225,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
225
225
|
name: string;
|
|
226
226
|
image: string;
|
|
227
227
|
apiTeamId: number;
|
|
228
|
-
seed: number;
|
|
229
228
|
score: number;
|
|
229
|
+
seed: number;
|
|
230
230
|
id?: string | undefined;
|
|
231
231
|
isWinner?: boolean | undefined;
|
|
232
232
|
};
|
|
@@ -266,8 +266,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
266
266
|
name: string;
|
|
267
267
|
image: string;
|
|
268
268
|
apiTeamId: number;
|
|
269
|
-
seed: number;
|
|
270
269
|
score: number;
|
|
270
|
+
seed: number;
|
|
271
271
|
id?: string | undefined;
|
|
272
272
|
isWinner?: boolean | undefined;
|
|
273
273
|
};
|
|
@@ -275,8 +275,8 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
275
275
|
name: string;
|
|
276
276
|
image: string;
|
|
277
277
|
apiTeamId: number;
|
|
278
|
-
seed: number;
|
|
279
278
|
score: number;
|
|
279
|
+
seed: number;
|
|
280
280
|
id?: string | undefined;
|
|
281
281
|
isWinner?: boolean | undefined;
|
|
282
282
|
};
|
|
@@ -429,101 +429,62 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
429
429
|
options: Record<number, number>;
|
|
430
430
|
};
|
|
431
431
|
}>>;
|
|
432
|
-
losingPitcherId: z.ZodOptional<z.ZodString>;
|
|
433
|
-
winningPitcherId: z.ZodOptional<z.ZodString>;
|
|
434
|
-
savingPitcherId: z.ZodOptional<z.ZodString>;
|
|
435
432
|
losingPitcher: z.ZodOptional<z.ZodObject<{
|
|
436
433
|
id: z.ZodOptional<z.ZodString>;
|
|
437
434
|
name: z.ZodString;
|
|
438
|
-
games: z.ZodNumber;
|
|
439
435
|
wins: z.ZodNumber;
|
|
440
436
|
losses: z.ZodNumber;
|
|
441
437
|
saves: z.ZodNumber;
|
|
442
|
-
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
-
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
-
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
445
438
|
}, "strip", z.ZodTypeAny, {
|
|
446
439
|
name: string;
|
|
447
|
-
games: number;
|
|
448
440
|
wins: number;
|
|
449
441
|
losses: number;
|
|
450
442
|
saves: number;
|
|
451
443
|
id?: string | undefined;
|
|
452
|
-
isWinningPitcher?: boolean | undefined;
|
|
453
|
-
isLosingPitcher?: boolean | undefined;
|
|
454
|
-
isSavingPitcher?: boolean | undefined;
|
|
455
444
|
}, {
|
|
456
445
|
name: string;
|
|
457
|
-
games: number;
|
|
458
446
|
wins: number;
|
|
459
447
|
losses: number;
|
|
460
448
|
saves: number;
|
|
461
449
|
id?: string | undefined;
|
|
462
|
-
isWinningPitcher?: boolean | undefined;
|
|
463
|
-
isLosingPitcher?: boolean | undefined;
|
|
464
|
-
isSavingPitcher?: boolean | undefined;
|
|
465
450
|
}>>;
|
|
466
451
|
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
467
452
|
id: z.ZodOptional<z.ZodString>;
|
|
468
453
|
name: z.ZodString;
|
|
469
|
-
games: z.ZodNumber;
|
|
470
454
|
wins: z.ZodNumber;
|
|
471
455
|
losses: z.ZodNumber;
|
|
472
456
|
saves: z.ZodNumber;
|
|
473
|
-
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
474
|
-
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
475
|
-
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
476
457
|
}, "strip", z.ZodTypeAny, {
|
|
477
458
|
name: string;
|
|
478
|
-
games: number;
|
|
479
459
|
wins: number;
|
|
480
460
|
losses: number;
|
|
481
461
|
saves: number;
|
|
482
462
|
id?: string | undefined;
|
|
483
|
-
isWinningPitcher?: boolean | undefined;
|
|
484
|
-
isLosingPitcher?: boolean | undefined;
|
|
485
|
-
isSavingPitcher?: boolean | undefined;
|
|
486
463
|
}, {
|
|
487
464
|
name: string;
|
|
488
|
-
games: number;
|
|
489
465
|
wins: number;
|
|
490
466
|
losses: number;
|
|
491
467
|
saves: number;
|
|
492
468
|
id?: string | undefined;
|
|
493
|
-
isWinningPitcher?: boolean | undefined;
|
|
494
|
-
isLosingPitcher?: boolean | undefined;
|
|
495
|
-
isSavingPitcher?: boolean | undefined;
|
|
496
469
|
}>>;
|
|
497
470
|
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
498
471
|
id: z.ZodOptional<z.ZodString>;
|
|
499
472
|
name: z.ZodString;
|
|
500
|
-
games: z.ZodNumber;
|
|
501
473
|
wins: z.ZodNumber;
|
|
502
474
|
losses: z.ZodNumber;
|
|
503
475
|
saves: z.ZodNumber;
|
|
504
|
-
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
-
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
-
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
507
476
|
}, "strip", z.ZodTypeAny, {
|
|
508
477
|
name: string;
|
|
509
|
-
games: number;
|
|
510
478
|
wins: number;
|
|
511
479
|
losses: number;
|
|
512
480
|
saves: number;
|
|
513
481
|
id?: string | undefined;
|
|
514
|
-
isWinningPitcher?: boolean | undefined;
|
|
515
|
-
isLosingPitcher?: boolean | undefined;
|
|
516
|
-
isSavingPitcher?: boolean | undefined;
|
|
517
482
|
}, {
|
|
518
483
|
name: string;
|
|
519
|
-
games: number;
|
|
520
484
|
wins: number;
|
|
521
485
|
losses: number;
|
|
522
486
|
saves: number;
|
|
523
487
|
id?: string | undefined;
|
|
524
|
-
isWinningPitcher?: boolean | undefined;
|
|
525
|
-
isLosingPitcher?: boolean | undefined;
|
|
526
|
-
isSavingPitcher?: boolean | undefined;
|
|
527
488
|
}>>;
|
|
528
489
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
529
490
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -572,41 +533,26 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
572
533
|
};
|
|
573
534
|
} | undefined;
|
|
574
535
|
inningHalf?: "T" | "B" | undefined;
|
|
575
|
-
losingPitcherId?: string | undefined;
|
|
576
|
-
winningPitcherId?: string | undefined;
|
|
577
|
-
savingPitcherId?: string | undefined;
|
|
578
536
|
losingPitcher?: {
|
|
579
537
|
name: string;
|
|
580
|
-
games: number;
|
|
581
538
|
wins: number;
|
|
582
539
|
losses: number;
|
|
583
540
|
saves: number;
|
|
584
541
|
id?: string | undefined;
|
|
585
|
-
isWinningPitcher?: boolean | undefined;
|
|
586
|
-
isLosingPitcher?: boolean | undefined;
|
|
587
|
-
isSavingPitcher?: boolean | undefined;
|
|
588
542
|
} | undefined;
|
|
589
543
|
winningPitcher?: {
|
|
590
544
|
name: string;
|
|
591
|
-
games: number;
|
|
592
545
|
wins: number;
|
|
593
546
|
losses: number;
|
|
594
547
|
saves: number;
|
|
595
548
|
id?: string | undefined;
|
|
596
|
-
isWinningPitcher?: boolean | undefined;
|
|
597
|
-
isLosingPitcher?: boolean | undefined;
|
|
598
|
-
isSavingPitcher?: boolean | undefined;
|
|
599
549
|
} | undefined;
|
|
600
550
|
savingPitcher?: {
|
|
601
551
|
name: string;
|
|
602
|
-
games: number;
|
|
603
552
|
wins: number;
|
|
604
553
|
losses: number;
|
|
605
554
|
saves: number;
|
|
606
555
|
id?: string | undefined;
|
|
607
|
-
isWinningPitcher?: boolean | undefined;
|
|
608
|
-
isLosingPitcher?: boolean | undefined;
|
|
609
|
-
isSavingPitcher?: boolean | undefined;
|
|
610
556
|
} | undefined;
|
|
611
557
|
outs?: number | undefined;
|
|
612
558
|
}, {
|
|
@@ -655,41 +601,26 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
655
601
|
};
|
|
656
602
|
} | undefined;
|
|
657
603
|
inningHalf?: "T" | "B" | undefined;
|
|
658
|
-
losingPitcherId?: string | undefined;
|
|
659
|
-
winningPitcherId?: string | undefined;
|
|
660
|
-
savingPitcherId?: string | undefined;
|
|
661
604
|
losingPitcher?: {
|
|
662
605
|
name: string;
|
|
663
|
-
games: number;
|
|
664
606
|
wins: number;
|
|
665
607
|
losses: number;
|
|
666
608
|
saves: number;
|
|
667
609
|
id?: string | undefined;
|
|
668
|
-
isWinningPitcher?: boolean | undefined;
|
|
669
|
-
isLosingPitcher?: boolean | undefined;
|
|
670
|
-
isSavingPitcher?: boolean | undefined;
|
|
671
610
|
} | undefined;
|
|
672
611
|
winningPitcher?: {
|
|
673
612
|
name: string;
|
|
674
|
-
games: number;
|
|
675
613
|
wins: number;
|
|
676
614
|
losses: number;
|
|
677
615
|
saves: number;
|
|
678
616
|
id?: string | undefined;
|
|
679
|
-
isWinningPitcher?: boolean | undefined;
|
|
680
|
-
isLosingPitcher?: boolean | undefined;
|
|
681
|
-
isSavingPitcher?: boolean | undefined;
|
|
682
617
|
} | undefined;
|
|
683
618
|
savingPitcher?: {
|
|
684
619
|
name: string;
|
|
685
|
-
games: number;
|
|
686
620
|
wins: number;
|
|
687
621
|
losses: number;
|
|
688
622
|
saves: number;
|
|
689
623
|
id?: string | undefined;
|
|
690
|
-
isWinningPitcher?: boolean | undefined;
|
|
691
|
-
isLosingPitcher?: boolean | undefined;
|
|
692
|
-
isSavingPitcher?: boolean | undefined;
|
|
693
624
|
} | undefined;
|
|
694
625
|
outs?: number | undefined;
|
|
695
626
|
}>;
|
package/dist/schemas/game.js
CHANGED
|
@@ -87,9 +87,6 @@ exports.mlbGameSchema = zod_1.z.object({
|
|
|
87
87
|
inningHalf: zod_1.z.union([zod_1.z.literal("T"), zod_1.z.literal("B")]).optional(),
|
|
88
88
|
seriesInfo: exports.seriesInfoSchema.optional(),
|
|
89
89
|
rating: exports.gameRatingAggregateSchema.optional(),
|
|
90
|
-
losingPitcherId: zod_1.z.string().optional(),
|
|
91
|
-
winningPitcherId: zod_1.z.string().optional(),
|
|
92
|
-
savingPitcherId: zod_1.z.string().optional(),
|
|
93
90
|
losingPitcher: player_1.mlbPlayerSchema.optional(),
|
|
94
91
|
winningPitcher: player_1.mlbPlayerSchema.optional(),
|
|
95
92
|
savingPitcher: player_1.mlbPlayerSchema.optional(),
|
package/dist/schemas/player.d.ts
CHANGED
|
@@ -2,31 +2,19 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const mlbPlayerSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodOptional<z.ZodString>;
|
|
4
4
|
name: z.ZodString;
|
|
5
|
-
games: z.ZodNumber;
|
|
6
5
|
wins: z.ZodNumber;
|
|
7
6
|
losses: z.ZodNumber;
|
|
8
7
|
saves: z.ZodNumber;
|
|
9
|
-
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
12
8
|
}, "strip", z.ZodTypeAny, {
|
|
13
9
|
name: string;
|
|
14
|
-
games: number;
|
|
15
10
|
wins: number;
|
|
16
11
|
losses: number;
|
|
17
12
|
saves: number;
|
|
18
13
|
id?: string | undefined;
|
|
19
|
-
isWinningPitcher?: boolean | undefined;
|
|
20
|
-
isLosingPitcher?: boolean | undefined;
|
|
21
|
-
isSavingPitcher?: boolean | undefined;
|
|
22
14
|
}, {
|
|
23
15
|
name: string;
|
|
24
|
-
games: number;
|
|
25
16
|
wins: number;
|
|
26
17
|
losses: number;
|
|
27
18
|
saves: number;
|
|
28
19
|
id?: string | undefined;
|
|
29
|
-
isWinningPitcher?: boolean | undefined;
|
|
30
|
-
isLosingPitcher?: boolean | undefined;
|
|
31
|
-
isSavingPitcher?: boolean | undefined;
|
|
32
20
|
}>;
|
package/dist/schemas/player.js
CHANGED
|
@@ -5,11 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.mlbPlayerSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string().optional(),
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
|
-
games: zod_1.z.number(),
|
|
9
8
|
wins: zod_1.z.number(),
|
|
10
9
|
losses: zod_1.z.number(),
|
|
11
10
|
saves: zod_1.z.number(),
|
|
12
|
-
isWinningPitcher: zod_1.z.boolean().optional(),
|
|
13
|
-
isLosingPitcher: zod_1.z.boolean().optional(),
|
|
14
|
-
isSavingPitcher: zod_1.z.boolean().optional(),
|
|
15
11
|
});
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -38,16 +38,16 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
38
38
|
name: string;
|
|
39
39
|
image: string;
|
|
40
40
|
apiTeamId: number;
|
|
41
|
-
seed: number;
|
|
42
41
|
score: number;
|
|
42
|
+
seed: number;
|
|
43
43
|
id?: string | undefined;
|
|
44
44
|
isWinner?: boolean | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
name: string;
|
|
47
47
|
image: string;
|
|
48
48
|
apiTeamId: number;
|
|
49
|
-
seed: number;
|
|
50
49
|
score: number;
|
|
50
|
+
seed: number;
|
|
51
51
|
id?: string | undefined;
|
|
52
52
|
isWinner?: boolean | undefined;
|
|
53
53
|
}>;
|
|
@@ -63,16 +63,16 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
63
63
|
name: string;
|
|
64
64
|
image: string;
|
|
65
65
|
apiTeamId: number;
|
|
66
|
-
seed: number;
|
|
67
66
|
score: number;
|
|
67
|
+
seed: number;
|
|
68
68
|
id?: string | undefined;
|
|
69
69
|
isWinner?: boolean | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
name: string;
|
|
72
72
|
image: string;
|
|
73
73
|
apiTeamId: number;
|
|
74
|
-
seed: number;
|
|
75
74
|
score: number;
|
|
75
|
+
seed: number;
|
|
76
76
|
id?: string | undefined;
|
|
77
77
|
isWinner?: boolean | undefined;
|
|
78
78
|
}>;
|
|
@@ -100,8 +100,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
100
100
|
name: string;
|
|
101
101
|
image: string;
|
|
102
102
|
apiTeamId: number;
|
|
103
|
-
seed: number;
|
|
104
103
|
score: number;
|
|
104
|
+
seed: number;
|
|
105
105
|
id?: string | undefined;
|
|
106
106
|
isWinner?: boolean | undefined;
|
|
107
107
|
};
|
|
@@ -109,8 +109,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
109
109
|
name: string;
|
|
110
110
|
image: string;
|
|
111
111
|
apiTeamId: number;
|
|
112
|
-
seed: number;
|
|
113
112
|
score: number;
|
|
113
|
+
seed: number;
|
|
114
114
|
id?: string | undefined;
|
|
115
115
|
isWinner?: boolean | undefined;
|
|
116
116
|
};
|
|
@@ -128,8 +128,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
128
128
|
name: string;
|
|
129
129
|
image: string;
|
|
130
130
|
apiTeamId: number;
|
|
131
|
-
seed: number;
|
|
132
131
|
score: number;
|
|
132
|
+
seed: number;
|
|
133
133
|
id?: string | undefined;
|
|
134
134
|
isWinner?: boolean | undefined;
|
|
135
135
|
};
|
|
@@ -137,8 +137,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
137
137
|
name: string;
|
|
138
138
|
image: string;
|
|
139
139
|
apiTeamId: number;
|
|
140
|
-
seed: number;
|
|
141
140
|
score: number;
|
|
141
|
+
seed: number;
|
|
142
142
|
id?: string | undefined;
|
|
143
143
|
isWinner?: boolean | undefined;
|
|
144
144
|
};
|
|
@@ -169,8 +169,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
169
169
|
name: string;
|
|
170
170
|
image: string;
|
|
171
171
|
apiTeamId: number;
|
|
172
|
-
seed: number;
|
|
173
172
|
score: number;
|
|
173
|
+
seed: number;
|
|
174
174
|
id?: string | undefined;
|
|
175
175
|
isWinner?: boolean | undefined;
|
|
176
176
|
};
|
|
@@ -178,8 +178,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
178
178
|
name: string;
|
|
179
179
|
image: string;
|
|
180
180
|
apiTeamId: number;
|
|
181
|
-
seed: number;
|
|
182
181
|
score: number;
|
|
182
|
+
seed: number;
|
|
183
183
|
id?: string | undefined;
|
|
184
184
|
isWinner?: boolean | undefined;
|
|
185
185
|
};
|
|
@@ -211,8 +211,8 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
211
211
|
name: string;
|
|
212
212
|
image: string;
|
|
213
213
|
apiTeamId: number;
|
|
214
|
-
seed: number;
|
|
215
214
|
score: number;
|
|
215
|
+
seed: number;
|
|
216
216
|
id?: string | undefined;
|
|
217
217
|
isWinner?: boolean | undefined;
|
|
218
218
|
};
|
|
@@ -220,11 +220,234 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
220
220
|
name: string;
|
|
221
221
|
image: string;
|
|
222
222
|
apiTeamId: number;
|
|
223
|
+
score: number;
|
|
223
224
|
seed: number;
|
|
225
|
+
id?: string | undefined;
|
|
226
|
+
isWinner?: boolean | undefined;
|
|
227
|
+
};
|
|
228
|
+
seriesInfo?: {
|
|
229
|
+
maxLength: number;
|
|
230
|
+
homeTeamWins: number;
|
|
231
|
+
awayTeamWins: number;
|
|
232
|
+
gameNumber: number;
|
|
233
|
+
} | undefined;
|
|
234
|
+
};
|
|
235
|
+
comment?: string | undefined;
|
|
236
|
+
userLikes?: number | undefined;
|
|
237
|
+
}>;
|
|
238
|
+
export declare const mlbRatingSchema: import("zod").ZodObject<{
|
|
239
|
+
id: import("zod").ZodString;
|
|
240
|
+
createdAt: import("zod").ZodNumber;
|
|
241
|
+
rating: import("zod").ZodNumber;
|
|
242
|
+
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
243
|
+
user: import("zod").ZodObject<{
|
|
244
|
+
id: import("zod").ZodString;
|
|
245
|
+
username: import("zod").ZodString;
|
|
246
|
+
avatarUrl: import("zod").ZodString;
|
|
247
|
+
email: import("zod").ZodString;
|
|
248
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
250
|
+
id: string;
|
|
251
|
+
email: string;
|
|
252
|
+
username: string;
|
|
253
|
+
avatarUrl: string;
|
|
254
|
+
badge?: string | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
id: string;
|
|
257
|
+
email: string;
|
|
258
|
+
username: string;
|
|
259
|
+
avatarUrl: string;
|
|
260
|
+
badge?: string | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
game: import("zod").ZodObject<{
|
|
263
|
+
id: import("zod").ZodString;
|
|
264
|
+
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
265
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
266
|
+
homeTeam: import("zod").ZodObject<{
|
|
267
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
268
|
+
apiTeamId: import("zod").ZodNumber;
|
|
269
|
+
name: import("zod").ZodString;
|
|
270
|
+
score: import("zod").ZodNumber;
|
|
271
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
272
|
+
image: import("zod").ZodString;
|
|
273
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
274
|
+
name: string;
|
|
275
|
+
image: string;
|
|
276
|
+
apiTeamId: number;
|
|
277
|
+
score: number;
|
|
278
|
+
id?: string | undefined;
|
|
279
|
+
isWinner?: boolean | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
name: string;
|
|
282
|
+
image: string;
|
|
283
|
+
apiTeamId: number;
|
|
284
|
+
score: number;
|
|
285
|
+
id?: string | undefined;
|
|
286
|
+
isWinner?: boolean | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
awayTeam: import("zod").ZodObject<{
|
|
289
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
290
|
+
apiTeamId: import("zod").ZodNumber;
|
|
291
|
+
name: import("zod").ZodString;
|
|
292
|
+
score: import("zod").ZodNumber;
|
|
293
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
294
|
+
image: import("zod").ZodString;
|
|
295
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
296
|
+
name: string;
|
|
297
|
+
image: string;
|
|
298
|
+
apiTeamId: number;
|
|
299
|
+
score: number;
|
|
300
|
+
id?: string | undefined;
|
|
301
|
+
isWinner?: boolean | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
name: string;
|
|
304
|
+
image: string;
|
|
305
|
+
apiTeamId: number;
|
|
306
|
+
score: number;
|
|
307
|
+
id?: string | undefined;
|
|
308
|
+
isWinner?: boolean | undefined;
|
|
309
|
+
}>;
|
|
310
|
+
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
311
|
+
homeTeamWins: import("zod").ZodNumber;
|
|
312
|
+
awayTeamWins: import("zod").ZodNumber;
|
|
313
|
+
gameNumber: import("zod").ZodNumber;
|
|
314
|
+
maxLength: import("zod").ZodNumber;
|
|
315
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
316
|
+
maxLength: number;
|
|
317
|
+
homeTeamWins: number;
|
|
318
|
+
awayTeamWins: number;
|
|
319
|
+
gameNumber: number;
|
|
320
|
+
}, {
|
|
321
|
+
maxLength: number;
|
|
322
|
+
homeTeamWins: number;
|
|
323
|
+
awayTeamWins: number;
|
|
324
|
+
gameNumber: number;
|
|
325
|
+
}>>;
|
|
326
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
327
|
+
id: string;
|
|
328
|
+
league: "nba" | "ncaa" | "mlb";
|
|
329
|
+
homeTeam: {
|
|
330
|
+
name: string;
|
|
331
|
+
image: string;
|
|
332
|
+
apiTeamId: number;
|
|
333
|
+
score: number;
|
|
334
|
+
id?: string | undefined;
|
|
335
|
+
isWinner?: boolean | undefined;
|
|
336
|
+
};
|
|
337
|
+
awayTeam: {
|
|
338
|
+
name: string;
|
|
339
|
+
image: string;
|
|
340
|
+
apiTeamId: number;
|
|
341
|
+
score: number;
|
|
342
|
+
id?: string | undefined;
|
|
343
|
+
isWinner?: boolean | undefined;
|
|
344
|
+
};
|
|
345
|
+
round?: number | undefined;
|
|
346
|
+
seriesInfo?: {
|
|
347
|
+
maxLength: number;
|
|
348
|
+
homeTeamWins: number;
|
|
349
|
+
awayTeamWins: number;
|
|
350
|
+
gameNumber: number;
|
|
351
|
+
} | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
id: string;
|
|
354
|
+
league: "nba" | "ncaa" | "mlb";
|
|
355
|
+
homeTeam: {
|
|
356
|
+
name: string;
|
|
357
|
+
image: string;
|
|
358
|
+
apiTeamId: number;
|
|
359
|
+
score: number;
|
|
360
|
+
id?: string | undefined;
|
|
361
|
+
isWinner?: boolean | undefined;
|
|
362
|
+
};
|
|
363
|
+
awayTeam: {
|
|
364
|
+
name: string;
|
|
365
|
+
image: string;
|
|
366
|
+
apiTeamId: number;
|
|
367
|
+
score: number;
|
|
368
|
+
id?: string | undefined;
|
|
369
|
+
isWinner?: boolean | undefined;
|
|
370
|
+
};
|
|
371
|
+
round?: number | undefined;
|
|
372
|
+
seriesInfo?: {
|
|
373
|
+
maxLength: number;
|
|
374
|
+
homeTeamWins: number;
|
|
375
|
+
awayTeamWins: number;
|
|
376
|
+
gameNumber: number;
|
|
377
|
+
} | undefined;
|
|
378
|
+
}>;
|
|
379
|
+
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
380
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
381
|
+
id: string;
|
|
382
|
+
user: {
|
|
383
|
+
id: string;
|
|
384
|
+
email: string;
|
|
385
|
+
username: string;
|
|
386
|
+
avatarUrl: string;
|
|
387
|
+
badge?: string | undefined;
|
|
388
|
+
};
|
|
389
|
+
createdAt: number;
|
|
390
|
+
rating: number;
|
|
391
|
+
game: {
|
|
392
|
+
id: string;
|
|
393
|
+
league: "nba" | "ncaa" | "mlb";
|
|
394
|
+
homeTeam: {
|
|
395
|
+
name: string;
|
|
396
|
+
image: string;
|
|
397
|
+
apiTeamId: number;
|
|
224
398
|
score: number;
|
|
225
399
|
id?: string | undefined;
|
|
226
400
|
isWinner?: boolean | undefined;
|
|
227
401
|
};
|
|
402
|
+
awayTeam: {
|
|
403
|
+
name: string;
|
|
404
|
+
image: string;
|
|
405
|
+
apiTeamId: number;
|
|
406
|
+
score: number;
|
|
407
|
+
id?: string | undefined;
|
|
408
|
+
isWinner?: boolean | undefined;
|
|
409
|
+
};
|
|
410
|
+
round?: number | undefined;
|
|
411
|
+
seriesInfo?: {
|
|
412
|
+
maxLength: number;
|
|
413
|
+
homeTeamWins: number;
|
|
414
|
+
awayTeamWins: number;
|
|
415
|
+
gameNumber: number;
|
|
416
|
+
} | undefined;
|
|
417
|
+
};
|
|
418
|
+
comment?: string | undefined;
|
|
419
|
+
userLikes?: number | undefined;
|
|
420
|
+
}, {
|
|
421
|
+
id: string;
|
|
422
|
+
user: {
|
|
423
|
+
id: string;
|
|
424
|
+
email: string;
|
|
425
|
+
username: string;
|
|
426
|
+
avatarUrl: string;
|
|
427
|
+
badge?: string | undefined;
|
|
428
|
+
};
|
|
429
|
+
createdAt: number;
|
|
430
|
+
rating: number;
|
|
431
|
+
game: {
|
|
432
|
+
id: string;
|
|
433
|
+
league: "nba" | "ncaa" | "mlb";
|
|
434
|
+
homeTeam: {
|
|
435
|
+
name: string;
|
|
436
|
+
image: string;
|
|
437
|
+
apiTeamId: number;
|
|
438
|
+
score: number;
|
|
439
|
+
id?: string | undefined;
|
|
440
|
+
isWinner?: boolean | undefined;
|
|
441
|
+
};
|
|
442
|
+
awayTeam: {
|
|
443
|
+
name: string;
|
|
444
|
+
image: string;
|
|
445
|
+
apiTeamId: number;
|
|
446
|
+
score: number;
|
|
447
|
+
id?: string | undefined;
|
|
448
|
+
isWinner?: boolean | undefined;
|
|
449
|
+
};
|
|
450
|
+
round?: number | undefined;
|
|
228
451
|
seriesInfo?: {
|
|
229
452
|
maxLength: number;
|
|
230
453
|
homeTeamWins: number;
|
|
@@ -387,16 +610,16 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
387
610
|
name: string;
|
|
388
611
|
image: string;
|
|
389
612
|
apiTeamId: number;
|
|
390
|
-
seed: number;
|
|
391
613
|
score: number;
|
|
614
|
+
seed: number;
|
|
392
615
|
id?: string | undefined;
|
|
393
616
|
isWinner?: boolean | undefined;
|
|
394
617
|
}, {
|
|
395
618
|
name: string;
|
|
396
619
|
image: string;
|
|
397
620
|
apiTeamId: number;
|
|
398
|
-
seed: number;
|
|
399
621
|
score: number;
|
|
622
|
+
seed: number;
|
|
400
623
|
id?: string | undefined;
|
|
401
624
|
isWinner?: boolean | undefined;
|
|
402
625
|
}>;
|
|
@@ -412,16 +635,16 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
412
635
|
name: string;
|
|
413
636
|
image: string;
|
|
414
637
|
apiTeamId: number;
|
|
415
|
-
seed: number;
|
|
416
638
|
score: number;
|
|
639
|
+
seed: number;
|
|
417
640
|
id?: string | undefined;
|
|
418
641
|
isWinner?: boolean | undefined;
|
|
419
642
|
}, {
|
|
420
643
|
name: string;
|
|
421
644
|
image: string;
|
|
422
645
|
apiTeamId: number;
|
|
423
|
-
seed: number;
|
|
424
646
|
score: number;
|
|
647
|
+
seed: number;
|
|
425
648
|
id?: string | undefined;
|
|
426
649
|
isWinner?: boolean | undefined;
|
|
427
650
|
}>;
|
|
@@ -449,8 +672,8 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
449
672
|
name: string;
|
|
450
673
|
image: string;
|
|
451
674
|
apiTeamId: number;
|
|
452
|
-
seed: number;
|
|
453
675
|
score: number;
|
|
676
|
+
seed: number;
|
|
454
677
|
id?: string | undefined;
|
|
455
678
|
isWinner?: boolean | undefined;
|
|
456
679
|
};
|
|
@@ -458,8 +681,8 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
458
681
|
name: string;
|
|
459
682
|
image: string;
|
|
460
683
|
apiTeamId: number;
|
|
461
|
-
seed: number;
|
|
462
684
|
score: number;
|
|
685
|
+
seed: number;
|
|
463
686
|
id?: string | undefined;
|
|
464
687
|
isWinner?: boolean | undefined;
|
|
465
688
|
};
|
|
@@ -477,8 +700,8 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
477
700
|
name: string;
|
|
478
701
|
image: string;
|
|
479
702
|
apiTeamId: number;
|
|
480
|
-
seed: number;
|
|
481
703
|
score: number;
|
|
704
|
+
seed: number;
|
|
482
705
|
id?: string | undefined;
|
|
483
706
|
isWinner?: boolean | undefined;
|
|
484
707
|
};
|
|
@@ -486,8 +709,8 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
486
709
|
name: string;
|
|
487
710
|
image: string;
|
|
488
711
|
apiTeamId: number;
|
|
489
|
-
seed: number;
|
|
490
712
|
score: number;
|
|
713
|
+
seed: number;
|
|
491
714
|
id?: string | undefined;
|
|
492
715
|
isWinner?: boolean | undefined;
|
|
493
716
|
};
|
|
@@ -516,16 +739,16 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
516
739
|
name: string;
|
|
517
740
|
image: string;
|
|
518
741
|
apiTeamId: number;
|
|
519
|
-
seed: number;
|
|
520
742
|
score: number;
|
|
743
|
+
seed: number;
|
|
521
744
|
id?: string | undefined;
|
|
522
745
|
isWinner?: boolean | undefined;
|
|
523
746
|
}, {
|
|
524
747
|
name: string;
|
|
525
748
|
image: string;
|
|
526
749
|
apiTeamId: number;
|
|
527
|
-
seed: number;
|
|
528
750
|
score: number;
|
|
751
|
+
seed: number;
|
|
529
752
|
id?: string | undefined;
|
|
530
753
|
isWinner?: boolean | undefined;
|
|
531
754
|
}>;
|
|
@@ -541,15 +764,273 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
541
764
|
name: string;
|
|
542
765
|
image: string;
|
|
543
766
|
apiTeamId: number;
|
|
544
|
-
seed: number;
|
|
545
767
|
score: number;
|
|
768
|
+
seed: number;
|
|
546
769
|
id?: string | undefined;
|
|
547
770
|
isWinner?: boolean | undefined;
|
|
548
771
|
}, {
|
|
549
772
|
name: string;
|
|
550
773
|
image: string;
|
|
551
774
|
apiTeamId: number;
|
|
775
|
+
score: number;
|
|
552
776
|
seed: number;
|
|
777
|
+
id?: string | undefined;
|
|
778
|
+
isWinner?: boolean | undefined;
|
|
779
|
+
}>;
|
|
780
|
+
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
781
|
+
homeTeamWins: import("zod").ZodNumber;
|
|
782
|
+
awayTeamWins: import("zod").ZodNumber;
|
|
783
|
+
gameNumber: import("zod").ZodNumber;
|
|
784
|
+
maxLength: import("zod").ZodNumber;
|
|
785
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
786
|
+
maxLength: number;
|
|
787
|
+
homeTeamWins: number;
|
|
788
|
+
awayTeamWins: number;
|
|
789
|
+
gameNumber: number;
|
|
790
|
+
}, {
|
|
791
|
+
maxLength: number;
|
|
792
|
+
homeTeamWins: number;
|
|
793
|
+
awayTeamWins: number;
|
|
794
|
+
gameNumber: number;
|
|
795
|
+
}>>;
|
|
796
|
+
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
797
|
+
id: string;
|
|
798
|
+
league: "nba" | "ncaa" | "mlb";
|
|
799
|
+
seriesInfo?: {
|
|
800
|
+
maxLength: number;
|
|
801
|
+
homeTeamWins: number;
|
|
802
|
+
awayTeamWins: number;
|
|
803
|
+
gameNumber: number;
|
|
804
|
+
} | undefined;
|
|
805
|
+
}, {
|
|
806
|
+
id: string;
|
|
807
|
+
league: "nba" | "ncaa" | "mlb";
|
|
808
|
+
seriesInfo?: {
|
|
809
|
+
maxLength: number;
|
|
810
|
+
homeTeamWins: number;
|
|
811
|
+
awayTeamWins: number;
|
|
812
|
+
gameNumber: number;
|
|
813
|
+
} | undefined;
|
|
814
|
+
}>;
|
|
815
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
816
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
817
|
+
rating: number;
|
|
818
|
+
game: {
|
|
819
|
+
id: string;
|
|
820
|
+
league: "nba" | "ncaa" | "mlb";
|
|
821
|
+
seriesInfo?: {
|
|
822
|
+
maxLength: number;
|
|
823
|
+
homeTeamWins: number;
|
|
824
|
+
awayTeamWins: number;
|
|
825
|
+
gameNumber: number;
|
|
826
|
+
} | undefined;
|
|
827
|
+
};
|
|
828
|
+
id?: string | undefined;
|
|
829
|
+
comment?: string | undefined;
|
|
830
|
+
userLikes?: number | undefined;
|
|
831
|
+
}, {
|
|
832
|
+
rating: number;
|
|
833
|
+
game: {
|
|
834
|
+
id: string;
|
|
835
|
+
league: "nba" | "ncaa" | "mlb";
|
|
836
|
+
seriesInfo?: {
|
|
837
|
+
maxLength: number;
|
|
838
|
+
homeTeamWins: number;
|
|
839
|
+
awayTeamWins: number;
|
|
840
|
+
gameNumber: number;
|
|
841
|
+
} | undefined;
|
|
842
|
+
};
|
|
843
|
+
id?: string | undefined;
|
|
844
|
+
comment?: string | undefined;
|
|
845
|
+
userLikes?: number | undefined;
|
|
846
|
+
}>;
|
|
847
|
+
export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
|
|
848
|
+
id: import("zod").ZodString;
|
|
849
|
+
createdAt: import("zod").ZodNumber;
|
|
850
|
+
rating: import("zod").ZodNumber;
|
|
851
|
+
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
852
|
+
user: import("zod").ZodObject<{
|
|
853
|
+
id: import("zod").ZodString;
|
|
854
|
+
username: import("zod").ZodString;
|
|
855
|
+
avatarUrl: import("zod").ZodString;
|
|
856
|
+
email: import("zod").ZodString;
|
|
857
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
858
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
859
|
+
id: string;
|
|
860
|
+
email: string;
|
|
861
|
+
username: string;
|
|
862
|
+
avatarUrl: string;
|
|
863
|
+
badge?: string | undefined;
|
|
864
|
+
}, {
|
|
865
|
+
id: string;
|
|
866
|
+
email: string;
|
|
867
|
+
username: string;
|
|
868
|
+
avatarUrl: string;
|
|
869
|
+
badge?: string | undefined;
|
|
870
|
+
}>;
|
|
871
|
+
game: import("zod").ZodObject<{
|
|
872
|
+
id: import("zod").ZodString;
|
|
873
|
+
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
874
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
875
|
+
homeTeam: import("zod").ZodObject<{
|
|
876
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
877
|
+
apiTeamId: import("zod").ZodNumber;
|
|
878
|
+
name: import("zod").ZodString;
|
|
879
|
+
score: import("zod").ZodNumber;
|
|
880
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
881
|
+
image: import("zod").ZodString;
|
|
882
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
883
|
+
name: string;
|
|
884
|
+
image: string;
|
|
885
|
+
apiTeamId: number;
|
|
886
|
+
score: number;
|
|
887
|
+
id?: string | undefined;
|
|
888
|
+
isWinner?: boolean | undefined;
|
|
889
|
+
}, {
|
|
890
|
+
name: string;
|
|
891
|
+
image: string;
|
|
892
|
+
apiTeamId: number;
|
|
893
|
+
score: number;
|
|
894
|
+
id?: string | undefined;
|
|
895
|
+
isWinner?: boolean | undefined;
|
|
896
|
+
}>;
|
|
897
|
+
awayTeam: import("zod").ZodObject<{
|
|
898
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
899
|
+
apiTeamId: import("zod").ZodNumber;
|
|
900
|
+
name: import("zod").ZodString;
|
|
901
|
+
score: import("zod").ZodNumber;
|
|
902
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
903
|
+
image: import("zod").ZodString;
|
|
904
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
905
|
+
name: string;
|
|
906
|
+
image: string;
|
|
907
|
+
apiTeamId: number;
|
|
908
|
+
score: number;
|
|
909
|
+
id?: string | undefined;
|
|
910
|
+
isWinner?: boolean | undefined;
|
|
911
|
+
}, {
|
|
912
|
+
name: string;
|
|
913
|
+
image: string;
|
|
914
|
+
apiTeamId: number;
|
|
915
|
+
score: number;
|
|
916
|
+
id?: string | undefined;
|
|
917
|
+
isWinner?: boolean | undefined;
|
|
918
|
+
}>;
|
|
919
|
+
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
920
|
+
homeTeamWins: import("zod").ZodNumber;
|
|
921
|
+
awayTeamWins: import("zod").ZodNumber;
|
|
922
|
+
gameNumber: import("zod").ZodNumber;
|
|
923
|
+
maxLength: import("zod").ZodNumber;
|
|
924
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
925
|
+
maxLength: number;
|
|
926
|
+
homeTeamWins: number;
|
|
927
|
+
awayTeamWins: number;
|
|
928
|
+
gameNumber: number;
|
|
929
|
+
}, {
|
|
930
|
+
maxLength: number;
|
|
931
|
+
homeTeamWins: number;
|
|
932
|
+
awayTeamWins: number;
|
|
933
|
+
gameNumber: number;
|
|
934
|
+
}>>;
|
|
935
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
936
|
+
id: string;
|
|
937
|
+
league: "nba" | "ncaa" | "mlb";
|
|
938
|
+
homeTeam: {
|
|
939
|
+
name: string;
|
|
940
|
+
image: string;
|
|
941
|
+
apiTeamId: number;
|
|
942
|
+
score: number;
|
|
943
|
+
id?: string | undefined;
|
|
944
|
+
isWinner?: boolean | undefined;
|
|
945
|
+
};
|
|
946
|
+
awayTeam: {
|
|
947
|
+
name: string;
|
|
948
|
+
image: string;
|
|
949
|
+
apiTeamId: number;
|
|
950
|
+
score: number;
|
|
951
|
+
id?: string | undefined;
|
|
952
|
+
isWinner?: boolean | undefined;
|
|
953
|
+
};
|
|
954
|
+
round?: number | undefined;
|
|
955
|
+
seriesInfo?: {
|
|
956
|
+
maxLength: number;
|
|
957
|
+
homeTeamWins: number;
|
|
958
|
+
awayTeamWins: number;
|
|
959
|
+
gameNumber: number;
|
|
960
|
+
} | undefined;
|
|
961
|
+
}, {
|
|
962
|
+
id: string;
|
|
963
|
+
league: "nba" | "ncaa" | "mlb";
|
|
964
|
+
homeTeam: {
|
|
965
|
+
name: string;
|
|
966
|
+
image: string;
|
|
967
|
+
apiTeamId: number;
|
|
968
|
+
score: number;
|
|
969
|
+
id?: string | undefined;
|
|
970
|
+
isWinner?: boolean | undefined;
|
|
971
|
+
};
|
|
972
|
+
awayTeam: {
|
|
973
|
+
name: string;
|
|
974
|
+
image: string;
|
|
975
|
+
apiTeamId: number;
|
|
976
|
+
score: number;
|
|
977
|
+
id?: string | undefined;
|
|
978
|
+
isWinner?: boolean | undefined;
|
|
979
|
+
};
|
|
980
|
+
round?: number | undefined;
|
|
981
|
+
seriesInfo?: {
|
|
982
|
+
maxLength: number;
|
|
983
|
+
homeTeamWins: number;
|
|
984
|
+
awayTeamWins: number;
|
|
985
|
+
gameNumber: number;
|
|
986
|
+
} | undefined;
|
|
987
|
+
}>;
|
|
988
|
+
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
989
|
+
}, "id" | "user" | "createdAt">, {
|
|
990
|
+
game: import("zod").ZodObject<Omit<{
|
|
991
|
+
id: import("zod").ZodString;
|
|
992
|
+
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
993
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
994
|
+
homeTeam: import("zod").ZodObject<{
|
|
995
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
996
|
+
apiTeamId: import("zod").ZodNumber;
|
|
997
|
+
name: import("zod").ZodString;
|
|
998
|
+
score: import("zod").ZodNumber;
|
|
999
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1000
|
+
image: import("zod").ZodString;
|
|
1001
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1002
|
+
name: string;
|
|
1003
|
+
image: string;
|
|
1004
|
+
apiTeamId: number;
|
|
1005
|
+
score: number;
|
|
1006
|
+
id?: string | undefined;
|
|
1007
|
+
isWinner?: boolean | undefined;
|
|
1008
|
+
}, {
|
|
1009
|
+
name: string;
|
|
1010
|
+
image: string;
|
|
1011
|
+
apiTeamId: number;
|
|
1012
|
+
score: number;
|
|
1013
|
+
id?: string | undefined;
|
|
1014
|
+
isWinner?: boolean | undefined;
|
|
1015
|
+
}>;
|
|
1016
|
+
awayTeam: import("zod").ZodObject<{
|
|
1017
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1018
|
+
apiTeamId: import("zod").ZodNumber;
|
|
1019
|
+
name: import("zod").ZodString;
|
|
1020
|
+
score: import("zod").ZodNumber;
|
|
1021
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1022
|
+
image: import("zod").ZodString;
|
|
1023
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1024
|
+
name: string;
|
|
1025
|
+
image: string;
|
|
1026
|
+
apiTeamId: number;
|
|
1027
|
+
score: number;
|
|
1028
|
+
id?: string | undefined;
|
|
1029
|
+
isWinner?: boolean | undefined;
|
|
1030
|
+
}, {
|
|
1031
|
+
name: string;
|
|
1032
|
+
image: string;
|
|
1033
|
+
apiTeamId: number;
|
|
553
1034
|
score: number;
|
|
554
1035
|
id?: string | undefined;
|
|
555
1036
|
isWinner?: boolean | undefined;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
|
|
3
|
+
exports.createMLBRatingSchema = exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.mlbRatingSchema = exports.ratingSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const game_1 = require("./game");
|
|
6
6
|
exports.ratingSchema = (0, zod_1.object)({
|
|
@@ -25,6 +25,28 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
25
25
|
}),
|
|
26
26
|
userLikes: (0, zod_1.number)().optional(),
|
|
27
27
|
});
|
|
28
|
+
exports.mlbRatingSchema = (0, zod_1.object)({
|
|
29
|
+
id: (0, zod_1.string)(),
|
|
30
|
+
createdAt: (0, zod_1.number)(),
|
|
31
|
+
rating: (0, zod_1.number)(),
|
|
32
|
+
comment: (0, zod_1.string)().optional(),
|
|
33
|
+
user: (0, zod_1.object)({
|
|
34
|
+
id: (0, zod_1.string)(),
|
|
35
|
+
username: (0, zod_1.string)(),
|
|
36
|
+
avatarUrl: (0, zod_1.string)(),
|
|
37
|
+
email: (0, zod_1.string)(),
|
|
38
|
+
badge: (0, zod_1.string)().optional(),
|
|
39
|
+
}),
|
|
40
|
+
game: (0, zod_1.object)({
|
|
41
|
+
id: (0, zod_1.string)(),
|
|
42
|
+
round: (0, zod_1.number)().optional(),
|
|
43
|
+
league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
|
|
44
|
+
homeTeam: game_1.mlbGameTeamSchema,
|
|
45
|
+
awayTeam: game_1.mlbGameTeamSchema,
|
|
46
|
+
seriesInfo: game_1.seriesInfoSchema.optional(),
|
|
47
|
+
}),
|
|
48
|
+
userLikes: (0, zod_1.number)().optional(),
|
|
49
|
+
});
|
|
28
50
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
29
51
|
q: (0, zod_1.string)().optional(),
|
|
30
52
|
teamId: (0, zod_1.string)().optional(),
|
|
@@ -84,3 +106,17 @@ exports.createRatingSchema = exports.ratingSchema
|
|
|
84
106
|
}),
|
|
85
107
|
id: (0, zod_1.string)().optional(),
|
|
86
108
|
});
|
|
109
|
+
exports.createMLBRatingSchema = exports.mlbRatingSchema
|
|
110
|
+
.omit({
|
|
111
|
+
id: true,
|
|
112
|
+
createdAt: true,
|
|
113
|
+
user: true,
|
|
114
|
+
})
|
|
115
|
+
.extend({
|
|
116
|
+
game: exports.mlbRatingSchema.shape.game.omit({
|
|
117
|
+
round: true,
|
|
118
|
+
homeTeam: true,
|
|
119
|
+
awayTeam: true,
|
|
120
|
+
}),
|
|
121
|
+
id: (0, zod_1.string)().optional(),
|
|
122
|
+
});
|