rategame-shared 1.1.1 → 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 -10
- package/dist/schemas/rating.d.ts +688 -58
- package/dist/schemas/rating.js +37 -1
- package/dist/schemas/user.d.ts +8 -8
- package/package.json +1 -1
- package/dist/models/nba/game.d.ts +0 -5
- package/dist/models/nba/game.js +0 -2
- package/dist/models/nba/team.d.ts +0 -3
- package/dist/models/nba/team.js +0 -2
- package/dist/schemas/nba/game.d.ts +0 -233
- package/dist/schemas/nba/game.js +0 -44
- package/dist/schemas/nba/team.d.ts +0 -23
- package/dist/schemas/nba/team.js +0 -12
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
|
@@ -516,10 +516,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
516
516
|
inningNumber: number;
|
|
517
517
|
}[];
|
|
518
518
|
id?: string | undefined;
|
|
519
|
+
round?: number | undefined;
|
|
519
520
|
isClosed?: boolean | undefined;
|
|
520
521
|
ratingWindowClosedAt?: number | undefined;
|
|
521
|
-
round?: number | undefined;
|
|
522
|
-
inningHalf?: "T" | "B" | undefined;
|
|
523
522
|
seriesInfo?: {
|
|
524
523
|
maxLength: number;
|
|
525
524
|
homeTeamWins: number;
|
|
@@ -533,6 +532,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
533
532
|
options: Record<number, number>;
|
|
534
533
|
};
|
|
535
534
|
} | undefined;
|
|
535
|
+
inningHalf?: "T" | "B" | undefined;
|
|
536
536
|
losingPitcher?: {
|
|
537
537
|
name: string;
|
|
538
538
|
wins: number;
|
|
@@ -584,10 +584,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
584
584
|
inningNumber: number;
|
|
585
585
|
}[];
|
|
586
586
|
id?: string | undefined;
|
|
587
|
+
round?: number | undefined;
|
|
587
588
|
isClosed?: boolean | undefined;
|
|
588
589
|
ratingWindowClosedAt?: number | undefined;
|
|
589
|
-
round?: number | undefined;
|
|
590
|
-
inningHalf?: "T" | "B" | undefined;
|
|
591
590
|
seriesInfo?: {
|
|
592
591
|
maxLength: number;
|
|
593
592
|
homeTeamWins: number;
|
|
@@ -601,6 +600,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
601
600
|
options: Record<number, number>;
|
|
602
601
|
};
|
|
603
602
|
} | undefined;
|
|
603
|
+
inningHalf?: "T" | "B" | undefined;
|
|
604
604
|
losingPitcher?: {
|
|
605
605
|
name: string;
|
|
606
606
|
wins: number;
|
|
@@ -635,20 +635,20 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
635
635
|
offset: z.ZodOptional<z.ZodString>;
|
|
636
636
|
}, "strip", z.ZodTypeAny, {
|
|
637
637
|
league: "nba" | "ncaa" | "mlb";
|
|
638
|
-
|
|
639
|
-
teamId?: string | undefined;
|
|
638
|
+
offset?: string | undefined;
|
|
640
639
|
round?: string | undefined;
|
|
640
|
+
q?: string | undefined;
|
|
641
641
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
642
|
+
teamId?: string | undefined;
|
|
642
643
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
643
644
|
limit?: string | undefined;
|
|
644
|
-
offset?: string | undefined;
|
|
645
645
|
}, {
|
|
646
646
|
league: "nba" | "ncaa" | "mlb";
|
|
647
|
-
|
|
648
|
-
teamId?: string | undefined;
|
|
647
|
+
offset?: string | undefined;
|
|
649
648
|
round?: string | undefined;
|
|
649
|
+
q?: string | undefined;
|
|
650
650
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
651
|
+
teamId?: string | undefined;
|
|
651
652
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
652
653
|
limit?: string | undefined;
|
|
653
|
-
offset?: string | undefined;
|
|
654
654
|
}>;
|