rategame-shared 1.1.232 → 1.1.234
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.
|
@@ -260,7 +260,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
260
260
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
261
261
|
edited: z.ZodOptional<z.ZodBoolean>;
|
|
262
262
|
category: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"watched">, z.ZodLiteral<"attended">, z.ZodLiteral<"highlights">, z.ZodLiteral<"listened">, z.ZodLiteral<"partiallyWatched">]>>;
|
|
263
|
-
userLocation: z.ZodOptional<z.ZodString
|
|
263
|
+
userLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
264
264
|
}, "strip", z.ZodTypeAny, {
|
|
265
265
|
id: string;
|
|
266
266
|
user: {
|
|
@@ -327,7 +327,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
327
327
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
328
328
|
edited?: boolean | undefined;
|
|
329
329
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
330
|
-
userLocation?: string | undefined;
|
|
330
|
+
userLocation?: string | null | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
id: string;
|
|
333
333
|
user: {
|
|
@@ -394,7 +394,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
394
394
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
395
395
|
edited?: boolean | undefined;
|
|
396
396
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
397
|
-
userLocation?: string | undefined;
|
|
397
|
+
userLocation?: string | null | undefined;
|
|
398
398
|
}>>;
|
|
399
399
|
}, "strip", z.ZodTypeAny, {
|
|
400
400
|
id: string;
|
|
@@ -478,7 +478,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
478
478
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
479
479
|
edited?: boolean | undefined;
|
|
480
480
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
481
|
-
userLocation?: string | undefined;
|
|
481
|
+
userLocation?: string | null | undefined;
|
|
482
482
|
} | undefined;
|
|
483
483
|
linkText?: string | undefined;
|
|
484
484
|
}, {
|
|
@@ -563,7 +563,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
563
563
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
564
564
|
edited?: boolean | undefined;
|
|
565
565
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
566
|
-
userLocation?: string | undefined;
|
|
566
|
+
userLocation?: string | null | undefined;
|
|
567
567
|
} | undefined;
|
|
568
568
|
linkText?: string | undefined;
|
|
569
569
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -231,7 +231,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
231
231
|
updatedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
232
232
|
edited: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
233
233
|
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
|
|
234
|
-
userLocation: import("zod").ZodOptional<import("zod").ZodString
|
|
234
|
+
userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
235
235
|
}, "strip", import("zod").ZodTypeAny, {
|
|
236
236
|
id: string;
|
|
237
237
|
user: {
|
|
@@ -298,7 +298,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
298
298
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
299
299
|
edited?: boolean | undefined;
|
|
300
300
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
301
|
-
userLocation?: string | undefined;
|
|
301
|
+
userLocation?: string | null | undefined;
|
|
302
302
|
}, {
|
|
303
303
|
id: string;
|
|
304
304
|
user: {
|
|
@@ -365,7 +365,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
365
365
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
366
366
|
edited?: boolean | undefined;
|
|
367
367
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
368
|
-
userLocation?: string | undefined;
|
|
368
|
+
userLocation?: string | null | undefined;
|
|
369
369
|
}>;
|
|
370
370
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
371
371
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -386,11 +386,10 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
386
386
|
division: import("zod").ZodOptional<import("zod").ZodString>;
|
|
387
387
|
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">]>>;
|
|
388
388
|
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
|
|
389
|
-
|
|
389
|
+
userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
390
390
|
}, "strip", import("zod").ZodTypeAny, {
|
|
391
391
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
392
392
|
offset?: string | undefined;
|
|
393
|
-
location?: string | undefined;
|
|
394
393
|
round?: string | undefined;
|
|
395
394
|
q?: string | undefined;
|
|
396
395
|
username?: string | undefined;
|
|
@@ -401,6 +400,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
401
400
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
402
401
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
403
402
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
403
|
+
userLocation?: string | null | undefined;
|
|
404
404
|
gameId?: string | undefined;
|
|
405
405
|
showEmptyRatings?: string | undefined;
|
|
406
406
|
following?: string | undefined;
|
|
@@ -410,7 +410,6 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
410
410
|
}, {
|
|
411
411
|
league: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "cbb" | "cfb" | "epl" | "mls" | "wnba" | "cwc";
|
|
412
412
|
offset?: string | undefined;
|
|
413
|
-
location?: string | undefined;
|
|
414
413
|
round?: string | undefined;
|
|
415
414
|
q?: string | undefined;
|
|
416
415
|
username?: string | undefined;
|
|
@@ -421,6 +420,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
421
420
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
422
421
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
423
422
|
category?: "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | undefined;
|
|
423
|
+
userLocation?: string | null | undefined;
|
|
424
424
|
gameId?: string | undefined;
|
|
425
425
|
showEmptyRatings?: string | undefined;
|
|
426
426
|
following?: string | undefined;
|
|
@@ -726,7 +726,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
726
726
|
updatedAt: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
727
727
|
edited: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
728
728
|
category: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>>;
|
|
729
|
-
userLocation: import("zod").ZodOptional<import("zod").ZodString
|
|
729
|
+
userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
730
730
|
}, "id" | "user" | "createdAt">, {
|
|
731
731
|
game: import("zod").ZodObject<Omit<{
|
|
732
732
|
id: import("zod").ZodString;
|
|
@@ -863,7 +863,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
863
863
|
}>;
|
|
864
864
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
865
865
|
category: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"watched">, import("zod").ZodLiteral<"attended">, import("zod").ZodLiteral<"highlights">, import("zod").ZodLiteral<"listened">, import("zod").ZodLiteral<"partiallyWatched">]>, import("zod").ZodLiteral<"">]>>>;
|
|
866
|
-
|
|
866
|
+
userLocation: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
867
867
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
868
868
|
rating: number;
|
|
869
869
|
game: {
|
|
@@ -878,7 +878,6 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
878
878
|
} | undefined;
|
|
879
879
|
seasonType?: number | undefined;
|
|
880
880
|
};
|
|
881
|
-
location?: string | undefined;
|
|
882
881
|
id?: string | undefined;
|
|
883
882
|
weightedRating?: number | undefined;
|
|
884
883
|
updatedAt?: number | undefined;
|
|
@@ -890,7 +889,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
890
889
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
891
890
|
edited?: boolean | undefined;
|
|
892
891
|
category?: "" | "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | null | undefined;
|
|
893
|
-
userLocation?: string | undefined;
|
|
892
|
+
userLocation?: string | null | undefined;
|
|
894
893
|
}, {
|
|
895
894
|
rating: number;
|
|
896
895
|
game: {
|
|
@@ -905,7 +904,6 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
905
904
|
} | undefined;
|
|
906
905
|
seasonType?: number | undefined;
|
|
907
906
|
};
|
|
908
|
-
location?: string | undefined;
|
|
909
907
|
id?: string | undefined;
|
|
910
908
|
weightedRating?: number | undefined;
|
|
911
909
|
updatedAt?: number | undefined;
|
|
@@ -917,7 +915,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
917
915
|
fanCategory?: "homeTeam" | "awayTeam" | "winningTeam" | "losingTeam" | "neutral" | undefined;
|
|
918
916
|
edited?: boolean | undefined;
|
|
919
917
|
category?: "" | "watched" | "attended" | "highlights" | "listened" | "partiallyWatched" | null | undefined;
|
|
920
|
-
userLocation?: string | undefined;
|
|
918
|
+
userLocation?: string | null | undefined;
|
|
921
919
|
}>;
|
|
922
920
|
export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
923
921
|
id: import("zod").ZodString;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -51,7 +51,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
51
51
|
updatedAt: (0, zod_1.number)().optional(),
|
|
52
52
|
edited: (0, zod_1.boolean)().optional(),
|
|
53
53
|
category: exports.ratingCategorySchema.optional(),
|
|
54
|
-
userLocation: (0, zod_1.string)().optional(),
|
|
54
|
+
userLocation: (0, zod_1.string)().optional().nullable(),
|
|
55
55
|
});
|
|
56
56
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
57
57
|
q: (0, zod_1.string)().optional(),
|
|
@@ -78,7 +78,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
78
78
|
(0, zod_1.literal)("awayTeam"),
|
|
79
79
|
]).optional(),
|
|
80
80
|
category: exports.ratingCategorySchema.optional(),
|
|
81
|
-
|
|
81
|
+
userLocation: (0, zod_1.string)().optional().nullable(),
|
|
82
82
|
});
|
|
83
83
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
84
84
|
ratingId: (0, zod_1.string)(),
|
|
@@ -116,7 +116,7 @@ exports.createRatingSchema = exports.ratingSchema
|
|
|
116
116
|
category: (0, zod_1.union)([exports.ratingCategorySchema, (0, zod_1.literal)("")])
|
|
117
117
|
.nullable()
|
|
118
118
|
.optional(),
|
|
119
|
-
|
|
119
|
+
userLocation: (0, zod_1.string)().optional().nullable(),
|
|
120
120
|
});
|
|
121
121
|
exports.threadCommentSchema = (0, zod_1.object)({
|
|
122
122
|
id: (0, zod_1.string)(),
|