rategame-shared 1.1.80 → 1.1.81
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/notification.d.ts +7 -7
- package/dist/schemas/rating.d.ts +16 -16
- package/dist/schemas/rating.js +2 -22
- package/package.json +1 -1
|
@@ -55,7 +55,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
55
55
|
game: z.ZodObject<{
|
|
56
56
|
id: z.ZodString;
|
|
57
57
|
round: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
league: z.ZodUnion<[z.ZodLiteral<"
|
|
58
|
+
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">]>;
|
|
59
59
|
homeTeam: z.ZodObject<{
|
|
60
60
|
id: z.ZodOptional<z.ZodString>;
|
|
61
61
|
apiTeamId: z.ZodNumber;
|
|
@@ -144,7 +144,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
144
144
|
seasonType: z.ZodOptional<z.ZodNumber>;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
146
|
id: string;
|
|
147
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
147
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
148
148
|
homeTeam: {
|
|
149
149
|
name: string;
|
|
150
150
|
image: string;
|
|
@@ -180,7 +180,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
180
180
|
seasonType?: number | undefined;
|
|
181
181
|
}, {
|
|
182
182
|
id: string;
|
|
183
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
183
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
184
184
|
homeTeam: {
|
|
185
185
|
name: string;
|
|
186
186
|
image: string;
|
|
@@ -232,7 +232,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
232
232
|
rating: number;
|
|
233
233
|
game: {
|
|
234
234
|
id: string;
|
|
235
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
235
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
236
236
|
homeTeam: {
|
|
237
237
|
name: string;
|
|
238
238
|
image: string;
|
|
@@ -285,7 +285,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
285
285
|
rating: number;
|
|
286
286
|
game: {
|
|
287
287
|
id: string;
|
|
288
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
288
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
289
289
|
homeTeam: {
|
|
290
290
|
name: string;
|
|
291
291
|
image: string;
|
|
@@ -355,7 +355,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
355
355
|
rating: number;
|
|
356
356
|
game: {
|
|
357
357
|
id: string;
|
|
358
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
358
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
359
359
|
homeTeam: {
|
|
360
360
|
name: string;
|
|
361
361
|
image: string;
|
|
@@ -426,7 +426,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
426
426
|
rating: number;
|
|
427
427
|
game: {
|
|
428
428
|
id: string;
|
|
429
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
429
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
430
430
|
homeTeam: {
|
|
431
431
|
name: string;
|
|
432
432
|
image: string;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
25
25
|
game: import("zod").ZodObject<{
|
|
26
26
|
id: import("zod").ZodString;
|
|
27
27
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
28
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"
|
|
28
|
+
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">]>;
|
|
29
29
|
homeTeam: import("zod").ZodObject<{
|
|
30
30
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
31
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -114,7 +114,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
114
114
|
seasonType: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
115
115
|
}, "strip", import("zod").ZodTypeAny, {
|
|
116
116
|
id: string;
|
|
117
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
117
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
118
118
|
homeTeam: {
|
|
119
119
|
name: string;
|
|
120
120
|
image: string;
|
|
@@ -150,7 +150,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
150
150
|
seasonType?: number | undefined;
|
|
151
151
|
}, {
|
|
152
152
|
id: string;
|
|
153
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
153
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
154
154
|
homeTeam: {
|
|
155
155
|
name: string;
|
|
156
156
|
image: string;
|
|
@@ -202,7 +202,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
202
202
|
rating: number;
|
|
203
203
|
game: {
|
|
204
204
|
id: string;
|
|
205
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
205
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
206
206
|
homeTeam: {
|
|
207
207
|
name: string;
|
|
208
208
|
image: string;
|
|
@@ -255,7 +255,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
255
255
|
rating: number;
|
|
256
256
|
game: {
|
|
257
257
|
id: string;
|
|
258
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
258
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
259
259
|
homeTeam: {
|
|
260
260
|
name: string;
|
|
261
261
|
image: string;
|
|
@@ -300,7 +300,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
300
300
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
301
301
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
302
302
|
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
303
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"
|
|
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
304
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"Today">, import("zod").ZodLiteral<"This Week">, 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>;
|
|
@@ -314,7 +314,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
314
314
|
mlbTeamLeague: import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
315
|
division: import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
316
|
}, "strip", import("zod").ZodTypeAny, {
|
|
317
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
317
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
318
318
|
offset?: string | undefined;
|
|
319
319
|
round?: string | undefined;
|
|
320
320
|
q?: string | undefined;
|
|
@@ -331,7 +331,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
331
331
|
mlbTeamLeague?: string | undefined;
|
|
332
332
|
division?: string | undefined;
|
|
333
333
|
}, {
|
|
334
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
334
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
335
335
|
offset?: string | undefined;
|
|
336
336
|
round?: string | undefined;
|
|
337
337
|
q?: string | undefined;
|
|
@@ -441,7 +441,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
441
441
|
game: import("zod").ZodObject<{
|
|
442
442
|
id: import("zod").ZodString;
|
|
443
443
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
444
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"
|
|
444
|
+
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">]>;
|
|
445
445
|
homeTeam: import("zod").ZodObject<{
|
|
446
446
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
447
447
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -530,7 +530,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
530
530
|
seasonType: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
531
531
|
}, "strip", import("zod").ZodTypeAny, {
|
|
532
532
|
id: string;
|
|
533
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
533
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
534
534
|
homeTeam: {
|
|
535
535
|
name: string;
|
|
536
536
|
image: string;
|
|
@@ -566,7 +566,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
566
566
|
seasonType?: number | undefined;
|
|
567
567
|
}, {
|
|
568
568
|
id: string;
|
|
569
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
569
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
570
570
|
homeTeam: {
|
|
571
571
|
name: string;
|
|
572
572
|
image: string;
|
|
@@ -609,7 +609,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
609
609
|
game: import("zod").ZodObject<Omit<{
|
|
610
610
|
id: import("zod").ZodString;
|
|
611
611
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
612
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"
|
|
612
|
+
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">]>;
|
|
613
613
|
homeTeam: import("zod").ZodObject<{
|
|
614
614
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
615
615
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -698,7 +698,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
698
698
|
seasonType: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
699
699
|
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
700
700
|
id: string;
|
|
701
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
701
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
702
702
|
week?: number | undefined;
|
|
703
703
|
seriesInfo?: {
|
|
704
704
|
maxLength: number;
|
|
@@ -709,7 +709,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
709
709
|
seasonType?: number | undefined;
|
|
710
710
|
}, {
|
|
711
711
|
id: string;
|
|
712
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
712
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
713
713
|
week?: number | undefined;
|
|
714
714
|
seriesInfo?: {
|
|
715
715
|
maxLength: number;
|
|
@@ -724,7 +724,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
724
724
|
rating: number;
|
|
725
725
|
game: {
|
|
726
726
|
id: string;
|
|
727
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
727
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
728
728
|
week?: number | undefined;
|
|
729
729
|
seriesInfo?: {
|
|
730
730
|
maxLength: number;
|
|
@@ -744,7 +744,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
744
744
|
rating: number;
|
|
745
745
|
game: {
|
|
746
746
|
id: string;
|
|
747
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
747
|
+
league: "global" | "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
748
748
|
week?: number | undefined;
|
|
749
749
|
seriesInfo?: {
|
|
750
750
|
maxLength: number;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -19,17 +19,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
19
19
|
game: (0, zod_1.object)({
|
|
20
20
|
id: (0, zod_1.string)(),
|
|
21
21
|
round: (0, zod_1.number)().optional(),
|
|
22
|
-
league:
|
|
23
|
-
(0, zod_1.literal)("ncaa"),
|
|
24
|
-
(0, zod_1.literal)("nba"),
|
|
25
|
-
(0, zod_1.literal)("mlb"),
|
|
26
|
-
(0, zod_1.literal)("nfl"),
|
|
27
|
-
(0, zod_1.literal)("nhl"),
|
|
28
|
-
(0, zod_1.literal)("mls"),
|
|
29
|
-
(0, zod_1.literal)("cfb"),
|
|
30
|
-
(0, zod_1.literal)("cbb"),
|
|
31
|
-
(0, zod_1.literal)("epl"),
|
|
32
|
-
]),
|
|
22
|
+
league: game_1.leagueSlug,
|
|
33
23
|
homeTeam: game_1.gameTeamSchema,
|
|
34
24
|
awayTeam: game_1.gameTeamSchema,
|
|
35
25
|
seriesInfo: game_1.seriesInfoSchema.optional(),
|
|
@@ -45,17 +35,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
45
35
|
q: (0, zod_1.string)().optional(),
|
|
46
36
|
teamId: (0, zod_1.string)().optional(),
|
|
47
37
|
round: (0, zod_1.string)().optional(),
|
|
48
|
-
league:
|
|
49
|
-
(0, zod_1.literal)("ncaa"),
|
|
50
|
-
(0, zod_1.literal)("nba"),
|
|
51
|
-
(0, zod_1.literal)("mlb"),
|
|
52
|
-
(0, zod_1.literal)("nfl"),
|
|
53
|
-
(0, zod_1.literal)("nhl"),
|
|
54
|
-
(0, zod_1.literal)("mls"),
|
|
55
|
-
(0, zod_1.literal)("cfb"),
|
|
56
|
-
(0, zod_1.literal)("cbb"),
|
|
57
|
-
(0, zod_1.literal)("epl"),
|
|
58
|
-
]),
|
|
38
|
+
league: game_1.leagueSlug,
|
|
59
39
|
createdAt: (0, zod_1.union)([
|
|
60
40
|
(0, zod_1.literal)("Today"),
|
|
61
41
|
(0, zod_1.literal)("This Week"),
|