rategame-shared 1.1.91 → 1.1.93
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/game.d.ts +2 -1
- package/dist/schemas/game.d.ts +3 -3
- package/dist/schemas/rating.d.ts +6 -6
- package/dist/schemas/sharedTypes.d.ts +1 -1
- package/dist/schemas/sharedTypes.js +1 -0
- package/dist/schemas/user.d.ts +7 -7
- package/package.json +1 -1
- package/dist/models/player.d.ts +0 -3
- package/dist/models/player.js +0 -2
- package/dist/schemas/player.d.ts +0 -32
- package/dist/schemas/player.js +0 -15
package/dist/models/game.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { cfbGameSchema, eplGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
|
|
2
|
+
import { basketballGameSchema, cfbGameSchema, eplGameSchema, gameRatingAggregateSchema, gameSchema, gameTeamSchema, mlbGameSchema, nflGameSchema, nhlGameSchema, searchGameSchema, unionGameSchema, weightedRatingAggregateOptionsSchema, weightedRatingAggregateSchema } from "../schemas/game";
|
|
3
3
|
export type Game = z.infer<typeof gameSchema>;
|
|
4
|
+
export type BasketballGame = z.infer<typeof basketballGameSchema>;
|
|
4
5
|
export type MLBGame = z.infer<typeof mlbGameSchema>;
|
|
5
6
|
export type GameRatingAggregate = z.infer<typeof gameRatingAggregateSchema>;
|
|
6
7
|
export type GameTeam = z.infer<typeof gameTeamSchema>;
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -7868,7 +7868,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
7868
7868
|
teamId: z.ZodOptional<z.ZodString>;
|
|
7869
7869
|
round: z.ZodOptional<z.ZodString>;
|
|
7870
7870
|
league: z.ZodUnion<[z.ZodLiteral<"nba">, z.ZodLiteral<"ncaa">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mlb">, z.ZodLiteral<"mls">, z.ZodLiteral<"cbb">, z.ZodLiteral<"cfb">, z.ZodLiteral<"epl">, z.ZodLiteral<"global">]>;
|
|
7871
|
-
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Today">, z.ZodLiteral<"This Week">, z.ZodLiteral<"This Season">, z.ZodLiteral<"All">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
|
|
7871
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Today">, z.ZodLiteral<"This Week">, z.ZodLiteral<"This Season">, z.ZodLiteral<"This Month">, z.ZodLiteral<"All">, z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
|
|
7872
7872
|
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">, z.ZodLiteral<"ratings.weightedRating.avg:asc">, z.ZodLiteral<"ratings.weightedRating.avg:desc">]>>;
|
|
7873
7873
|
limit: z.ZodOptional<z.ZodString>;
|
|
7874
7874
|
offset: z.ZodOptional<z.ZodString>;
|
|
@@ -7878,7 +7878,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
7878
7878
|
offset?: string | undefined;
|
|
7879
7879
|
round?: string | undefined;
|
|
7880
7880
|
q?: string | undefined;
|
|
7881
|
-
createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
7881
|
+
createdAt?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
7882
7882
|
teamId?: string | undefined;
|
|
7883
7883
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | "ratings.weightedRating.avg:asc" | "ratings.weightedRating.avg:desc" | undefined;
|
|
7884
7884
|
limit?: string | undefined;
|
|
@@ -7888,7 +7888,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
7888
7888
|
offset?: string | undefined;
|
|
7889
7889
|
round?: string | undefined;
|
|
7890
7890
|
q?: string | undefined;
|
|
7891
|
-
createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
7891
|
+
createdAt?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
7892
7892
|
teamId?: string | undefined;
|
|
7893
7893
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | "ratings.weightedRating.avg:asc" | "ratings.weightedRating.avg:desc" | undefined;
|
|
7894
7894
|
limit?: string | undefined;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -301,7 +301,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
301
301
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
302
302
|
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
303
303
|
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>;
|
|
304
|
-
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
304
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
305
305
|
sortBy: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
306
306
|
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
307
307
|
offset: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -319,7 +319,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
319
319
|
round?: string | undefined;
|
|
320
320
|
q?: string | undefined;
|
|
321
321
|
username?: string | undefined;
|
|
322
|
-
createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
322
|
+
createdAt?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
323
323
|
teamId?: string | undefined;
|
|
324
324
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
325
325
|
limit?: string | undefined;
|
|
@@ -336,7 +336,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
336
336
|
round?: string | undefined;
|
|
337
337
|
q?: string | undefined;
|
|
338
338
|
username?: string | undefined;
|
|
339
|
-
createdAt?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
339
|
+
createdAt?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
340
340
|
teamId?: string | undefined;
|
|
341
341
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
342
342
|
limit?: string | undefined;
|
|
@@ -1336,7 +1336,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1336
1336
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1337
1337
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
1338
1338
|
lastSelectedLeague: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
|
|
1339
|
-
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
1339
|
+
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
1340
1340
|
lastSelectedRatingFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
1341
1341
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
1342
1342
|
id: string;
|
|
@@ -1925,7 +1925,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1925
1925
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1926
1926
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
1927
1927
|
lastSelectedLeague: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
|
|
1928
|
-
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
1928
|
+
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
1929
1929
|
lastSelectedRatingFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
1930
1930
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
1931
1931
|
id: string;
|
|
@@ -2580,7 +2580,7 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
|
|
2580
2580
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2581
2581
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
2582
2582
|
lastSelectedLeague: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
|
|
2583
|
-
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
2583
|
+
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
2584
2584
|
lastSelectedRatingFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
2585
2585
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
2586
2586
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const timeFilterSchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>;
|
|
1
|
+
export declare const timeFilterSchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>;
|
|
2
2
|
export declare const ratingSortSchema: import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>;
|
|
3
3
|
export declare const leagueSlug: import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>;
|
|
@@ -6,6 +6,7 @@ exports.timeFilterSchema = (0, zod_1.union)([
|
|
|
6
6
|
(0, zod_1.literal)("Today"),
|
|
7
7
|
(0, zod_1.literal)("This Week"),
|
|
8
8
|
(0, zod_1.literal)("This Season"),
|
|
9
|
+
(0, zod_1.literal)("This Month"),
|
|
9
10
|
(0, zod_1.literal)("All"),
|
|
10
11
|
(0, zod_1.literal)("12h"),
|
|
11
12
|
(0, zod_1.literal)("daily"),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -605,7 +605,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
605
605
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
606
606
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
607
607
|
lastSelectedLeague: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
|
|
608
|
-
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
608
|
+
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
609
609
|
lastSelectedRatingFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
610
610
|
}, "strip", import("zod").ZodTypeAny, {
|
|
611
611
|
id: string;
|
|
@@ -738,7 +738,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
738
738
|
spoilersEnabled?: boolean | undefined;
|
|
739
739
|
viewedChangelogs?: Record<string, boolean> | undefined;
|
|
740
740
|
lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
|
|
741
|
-
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
741
|
+
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
742
742
|
lastSelectedRatingFilter?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
743
743
|
}, {
|
|
744
744
|
id: string;
|
|
@@ -871,7 +871,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
871
871
|
spoilersEnabled?: boolean | undefined;
|
|
872
872
|
viewedChangelogs?: Record<string, boolean> | undefined;
|
|
873
873
|
lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
|
|
874
|
-
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
874
|
+
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
875
875
|
lastSelectedRatingFilter?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
876
876
|
}>;
|
|
877
877
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
@@ -1445,7 +1445,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
1445
1445
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1446
1446
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
1447
1447
|
lastSelectedLeague: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
|
|
1448
|
-
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
1448
|
+
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
1449
1449
|
lastSelectedRatingFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
1450
1450
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
1451
1451
|
email: string;
|
|
@@ -1567,7 +1567,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
1567
1567
|
spoilersEnabled?: boolean | undefined;
|
|
1568
1568
|
viewedChangelogs?: Record<string, boolean> | undefined;
|
|
1569
1569
|
lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
|
|
1570
|
-
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
1570
|
+
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
1571
1571
|
lastSelectedRatingFilter?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
1572
1572
|
}, {
|
|
1573
1573
|
email: string;
|
|
@@ -1689,7 +1689,7 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
1689
1689
|
spoilersEnabled?: boolean | undefined;
|
|
1690
1690
|
viewedChangelogs?: Record<string, boolean> | undefined;
|
|
1691
1691
|
lastSelectedLeague?: "global" | "nba" | "ncaa" | "nfl" | "nhl" | "mlb" | "mls" | "cbb" | "cfb" | "epl" | undefined;
|
|
1692
|
-
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
1692
|
+
lastSelectedFilter?: "Today" | "This Week" | "This Season" | "This Month" | "All" | "12h" | "daily" | "weekly" | undefined;
|
|
1693
1693
|
lastSelectedRatingFilter?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
1694
1694
|
}>;
|
|
1695
1695
|
export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
|
|
@@ -2263,7 +2263,7 @@ export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
|
|
|
2263
2263
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2264
2264
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
2265
2265
|
lastSelectedLeague: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"epl">, import("zod").ZodLiteral<"global">]>>;
|
|
2266
|
-
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
2266
|
+
lastSelectedFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, import("zod").ZodLiteral<"This Season">, import("zod").ZodLiteral<"This Month">, import("zod").ZodLiteral<"All">, import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
2267
2267
|
lastSelectedRatingFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"rating:asc">, import("zod").ZodLiteral<"rating:desc">, import("zod").ZodLiteral<"createdAt:asc">, import("zod").ZodLiteral<"createdAt:desc">, import("zod").ZodLiteral<"userLikes:asc">, import("zod").ZodLiteral<"userLikes:desc">]>>;
|
|
2268
2268
|
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
2269
2269
|
id: string;
|
package/package.json
CHANGED
package/dist/models/player.d.ts
DELETED
package/dist/models/player.js
DELETED
package/dist/schemas/player.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const mlbPlayerSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodString>;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
wins: z.ZodNumber;
|
|
6
|
-
losses: z.ZodNumber;
|
|
7
|
-
saves: z.ZodNumber;
|
|
8
|
-
games: z.ZodNumber;
|
|
9
|
-
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
name: string;
|
|
14
|
-
wins: number;
|
|
15
|
-
losses: number;
|
|
16
|
-
saves: number;
|
|
17
|
-
games: number;
|
|
18
|
-
id?: string | undefined;
|
|
19
|
-
isWinningPitcher?: boolean | undefined;
|
|
20
|
-
isLosingPitcher?: boolean | undefined;
|
|
21
|
-
isSavingPitcher?: boolean | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
name: string;
|
|
24
|
-
wins: number;
|
|
25
|
-
losses: number;
|
|
26
|
-
saves: number;
|
|
27
|
-
games: number;
|
|
28
|
-
id?: string | undefined;
|
|
29
|
-
isWinningPitcher?: boolean | undefined;
|
|
30
|
-
isLosingPitcher?: boolean | undefined;
|
|
31
|
-
isSavingPitcher?: boolean | undefined;
|
|
32
|
-
}>;
|
package/dist/schemas/player.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mlbPlayerSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.mlbPlayerSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string().optional(),
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
wins: zod_1.z.number(),
|
|
9
|
-
losses: zod_1.z.number(),
|
|
10
|
-
saves: zod_1.z.number(),
|
|
11
|
-
games: 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
|
-
});
|