rategame-shared 1.1.216 → 1.1.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -382,6 +382,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
382
382
|
mlbTeamLeague: import("zod").ZodOptional<import("zod").ZodString>;
|
|
383
383
|
division: import("zod").ZodOptional<import("zod").ZodString>;
|
|
384
384
|
fanCategory: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"winningTeam">, import("zod").ZodLiteral<"losingTeam">, import("zod").ZodLiteral<"neutral">, import("zod").ZodLiteral<"homeTeam">, import("zod").ZodLiteral<"awayTeam">]>>;
|
|
385
|
+
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>>;
|
|
385
386
|
}, "strip", import("zod").ZodTypeAny, {
|
|
386
387
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
387
388
|
offset?: string | undefined;
|
|
@@ -394,6 +395,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
394
395
|
teamId?: string | undefined;
|
|
395
396
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
396
397
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
398
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
397
399
|
gameId?: string | undefined;
|
|
398
400
|
showEmptyRatings?: string | undefined;
|
|
399
401
|
following?: string | undefined;
|
|
@@ -412,6 +414,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
412
414
|
teamId?: string | undefined;
|
|
413
415
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
414
416
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
417
|
+
category?: "watched" | "attended" | "highlights" | undefined;
|
|
415
418
|
gameId?: string | undefined;
|
|
416
419
|
showEmptyRatings?: string | undefined;
|
|
417
420
|
following?: string | undefined;
|
|
@@ -2664,15 +2667,15 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2664
2667
|
authorGameRating: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
2665
2668
|
id: import("zod").ZodString;
|
|
2666
2669
|
value: import("zod").ZodNumber;
|
|
2667
|
-
category: import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]
|
|
2670
|
+
category: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">]>>>;
|
|
2668
2671
|
}, "strip", import("zod").ZodTypeAny, {
|
|
2669
2672
|
id: string;
|
|
2670
2673
|
value: number;
|
|
2671
|
-
category
|
|
2674
|
+
category?: "watched" | "attended" | "highlights" | null | undefined;
|
|
2672
2675
|
}, {
|
|
2673
2676
|
id: string;
|
|
2674
2677
|
value: number;
|
|
2675
|
-
category
|
|
2678
|
+
category?: "watched" | "attended" | "highlights" | null | undefined;
|
|
2676
2679
|
}>>>;
|
|
2677
2680
|
gameId: import("zod").ZodString;
|
|
2678
2681
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -2701,7 +2704,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2701
2704
|
authorGameRating?: {
|
|
2702
2705
|
id: string;
|
|
2703
2706
|
value: number;
|
|
2704
|
-
category
|
|
2707
|
+
category?: "watched" | "attended" | "highlights" | null | undefined;
|
|
2705
2708
|
} | null | undefined;
|
|
2706
2709
|
}, {
|
|
2707
2710
|
id: string;
|
|
@@ -2729,7 +2732,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
2729
2732
|
authorGameRating?: {
|
|
2730
2733
|
id: string;
|
|
2731
2734
|
value: number;
|
|
2732
|
-
category
|
|
2735
|
+
category?: "watched" | "attended" | "highlights" | null | undefined;
|
|
2733
2736
|
} | null | undefined;
|
|
2734
2737
|
}>;
|
|
2735
2738
|
export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
package/dist/schemas/rating.js
CHANGED
|
@@ -74,6 +74,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
74
74
|
(0, zod_1.literal)("homeTeam"),
|
|
75
75
|
(0, zod_1.literal)("awayTeam"),
|
|
76
76
|
]).optional(),
|
|
77
|
+
category: exports.ratingCategorySchema.optional(),
|
|
77
78
|
});
|
|
78
79
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
79
80
|
ratingId: (0, zod_1.string)(),
|
|
@@ -122,7 +123,7 @@ exports.threadCommentSchema = (0, zod_1.object)({
|
|
|
122
123
|
authorGameRating: (0, zod_1.object)({
|
|
123
124
|
id: (0, zod_1.string)(),
|
|
124
125
|
value: (0, zod_1.number)(),
|
|
125
|
-
category: exports.ratingCategorySchema,
|
|
126
|
+
category: exports.ratingCategorySchema.optional().nullable(),
|
|
126
127
|
})
|
|
127
128
|
.nullable()
|
|
128
129
|
.optional(),
|