rategame-shared 1.0.94 → 1.0.95
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 +16 -16
- package/dist/schemas/rating.js +2 -2
- package/package.json +1 -1
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").ZodNumber;
|
|
28
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
28
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
29
29
|
homeTeam: import("zod").ZodObject<{
|
|
30
30
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
31
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -95,7 +95,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
95
95
|
}, "strip", import("zod").ZodTypeAny, {
|
|
96
96
|
id: string;
|
|
97
97
|
round: number;
|
|
98
|
-
league: "nba" | "ncaa";
|
|
98
|
+
league: "nba" | "ncaa" | "mlb";
|
|
99
99
|
homeTeam: {
|
|
100
100
|
name: string;
|
|
101
101
|
image: string;
|
|
@@ -123,7 +123,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
123
123
|
}, {
|
|
124
124
|
id: string;
|
|
125
125
|
round: number;
|
|
126
|
-
league: "nba" | "ncaa";
|
|
126
|
+
league: "nba" | "ncaa" | "mlb";
|
|
127
127
|
homeTeam: {
|
|
128
128
|
name: string;
|
|
129
129
|
image: string;
|
|
@@ -164,7 +164,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
164
164
|
game: {
|
|
165
165
|
id: string;
|
|
166
166
|
round: number;
|
|
167
|
-
league: "nba" | "ncaa";
|
|
167
|
+
league: "nba" | "ncaa" | "mlb";
|
|
168
168
|
homeTeam: {
|
|
169
169
|
name: string;
|
|
170
170
|
image: string;
|
|
@@ -206,7 +206,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
206
206
|
game: {
|
|
207
207
|
id: string;
|
|
208
208
|
round: number;
|
|
209
|
-
league: "nba" | "ncaa";
|
|
209
|
+
league: "nba" | "ncaa" | "mlb";
|
|
210
210
|
homeTeam: {
|
|
211
211
|
name: string;
|
|
212
212
|
image: string;
|
|
@@ -239,7 +239,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
239
239
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
240
240
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
241
241
|
round: import("zod").ZodOptional<import("zod").ZodString>;
|
|
242
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
242
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
243
243
|
createdAt: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"12h">, import("zod").ZodLiteral<"daily">, import("zod").ZodLiteral<"weekly">]>>;
|
|
244
244
|
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">]>>;
|
|
245
245
|
limit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -251,7 +251,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
251
251
|
following: import("zod").ZodOptional<import("zod").ZodString>;
|
|
252
252
|
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
253
253
|
}, "strip", import("zod").ZodTypeAny, {
|
|
254
|
-
league: "nba" | "ncaa";
|
|
254
|
+
league: "nba" | "ncaa" | "mlb";
|
|
255
255
|
offset?: string | undefined;
|
|
256
256
|
round?: string | undefined;
|
|
257
257
|
q?: string | undefined;
|
|
@@ -266,7 +266,7 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
266
266
|
following?: string | undefined;
|
|
267
267
|
userId?: string | undefined;
|
|
268
268
|
}, {
|
|
269
|
-
league: "nba" | "ncaa";
|
|
269
|
+
league: "nba" | "ncaa" | "mlb";
|
|
270
270
|
offset?: string | undefined;
|
|
271
271
|
round?: string | undefined;
|
|
272
272
|
q?: string | undefined;
|
|
@@ -374,7 +374,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
374
374
|
game: import("zod").ZodObject<{
|
|
375
375
|
id: import("zod").ZodString;
|
|
376
376
|
round: import("zod").ZodNumber;
|
|
377
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
377
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
378
378
|
homeTeam: import("zod").ZodObject<{
|
|
379
379
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
380
380
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -444,7 +444,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
444
444
|
}, "strip", import("zod").ZodTypeAny, {
|
|
445
445
|
id: string;
|
|
446
446
|
round: number;
|
|
447
|
-
league: "nba" | "ncaa";
|
|
447
|
+
league: "nba" | "ncaa" | "mlb";
|
|
448
448
|
homeTeam: {
|
|
449
449
|
name: string;
|
|
450
450
|
image: string;
|
|
@@ -472,7 +472,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
472
472
|
}, {
|
|
473
473
|
id: string;
|
|
474
474
|
round: number;
|
|
475
|
-
league: "nba" | "ncaa";
|
|
475
|
+
league: "nba" | "ncaa" | "mlb";
|
|
476
476
|
homeTeam: {
|
|
477
477
|
name: string;
|
|
478
478
|
image: string;
|
|
@@ -503,7 +503,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
503
503
|
game: import("zod").ZodObject<Omit<{
|
|
504
504
|
id: import("zod").ZodString;
|
|
505
505
|
round: import("zod").ZodNumber;
|
|
506
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
506
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
507
507
|
homeTeam: import("zod").ZodObject<{
|
|
508
508
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
509
509
|
apiTeamId: import("zod").ZodNumber;
|
|
@@ -572,7 +572,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
572
572
|
}>>;
|
|
573
573
|
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
574
574
|
id: string;
|
|
575
|
-
league: "nba" | "ncaa";
|
|
575
|
+
league: "nba" | "ncaa" | "mlb";
|
|
576
576
|
seriesInfo?: {
|
|
577
577
|
maxLength: number;
|
|
578
578
|
homeTeamWins: number;
|
|
@@ -581,7 +581,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
581
581
|
} | undefined;
|
|
582
582
|
}, {
|
|
583
583
|
id: string;
|
|
584
|
-
league: "nba" | "ncaa";
|
|
584
|
+
league: "nba" | "ncaa" | "mlb";
|
|
585
585
|
seriesInfo?: {
|
|
586
586
|
maxLength: number;
|
|
587
587
|
homeTeamWins: number;
|
|
@@ -594,7 +594,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
594
594
|
rating: number;
|
|
595
595
|
game: {
|
|
596
596
|
id: string;
|
|
597
|
-
league: "nba" | "ncaa";
|
|
597
|
+
league: "nba" | "ncaa" | "mlb";
|
|
598
598
|
seriesInfo?: {
|
|
599
599
|
maxLength: number;
|
|
600
600
|
homeTeamWins: number;
|
|
@@ -609,7 +609,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
609
609
|
rating: number;
|
|
610
610
|
game: {
|
|
611
611
|
id: string;
|
|
612
|
-
league: "nba" | "ncaa";
|
|
612
|
+
league: "nba" | "ncaa" | "mlb";
|
|
613
613
|
seriesInfo?: {
|
|
614
614
|
maxLength: number;
|
|
615
615
|
homeTeamWins: number;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
18
18
|
game: (0, zod_1.object)({
|
|
19
19
|
id: (0, zod_1.string)(),
|
|
20
20
|
round: (0, zod_1.number)(),
|
|
21
|
-
league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba")]),
|
|
21
|
+
league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
|
|
22
22
|
homeTeam: game_1.gameTeamSchema,
|
|
23
23
|
awayTeam: game_1.gameTeamSchema,
|
|
24
24
|
seriesInfo: game_1.seriesInfoSchema.optional(),
|
|
@@ -29,7 +29,7 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
29
29
|
q: (0, zod_1.string)().optional(),
|
|
30
30
|
teamId: (0, zod_1.string)().optional(),
|
|
31
31
|
round: (0, zod_1.string)().optional(),
|
|
32
|
-
league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba")]),
|
|
32
|
+
league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
|
|
33
33
|
createdAt: (0, zod_1.union)([
|
|
34
34
|
(0, zod_1.literal)("12h"),
|
|
35
35
|
(0, zod_1.literal)("daily"),
|