rategame-shared 1.1.47 → 1.1.49
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/helpers/index.js
CHANGED
|
@@ -6,12 +6,12 @@ const zod_1 = require("zod");
|
|
|
6
6
|
exports.firestoreTimestampSchema = zod_1.z.instanceof(firestore_1.Timestamp);
|
|
7
7
|
exports.urlPrefixMap = {
|
|
8
8
|
nba: "",
|
|
9
|
-
mlb: "leagues/mlb",
|
|
10
|
-
epl: "leagues/epl",
|
|
9
|
+
mlb: "leagues/mlb/",
|
|
10
|
+
epl: "leagues/epl/",
|
|
11
11
|
ncaa: "",
|
|
12
|
-
nfl: "leagues/nfl",
|
|
13
|
-
nhl: "leagues/nhl",
|
|
14
|
-
mls: "leagues/mls",
|
|
15
|
-
cbb: "leagues/cbb",
|
|
16
|
-
cfb: "leagues/cfb",
|
|
12
|
+
nfl: "leagues/nfl/",
|
|
13
|
+
nhl: "leagues/nhl/",
|
|
14
|
+
mls: "leagues/mls/",
|
|
15
|
+
cbb: "leagues/cbb/",
|
|
16
|
+
cfb: "leagues/cfb/",
|
|
17
17
|
};
|
|
@@ -128,6 +128,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
128
128
|
awayTeamWins: number;
|
|
129
129
|
gameNumber: number;
|
|
130
130
|
}>>;
|
|
131
|
+
week: z.ZodOptional<z.ZodNumber>;
|
|
131
132
|
}, "strip", z.ZodTypeAny, {
|
|
132
133
|
id: string;
|
|
133
134
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -152,6 +153,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
152
153
|
teamCode?: string | undefined;
|
|
153
154
|
};
|
|
154
155
|
round?: number | undefined;
|
|
156
|
+
week?: number | undefined;
|
|
155
157
|
seriesInfo?: {
|
|
156
158
|
maxLength: number;
|
|
157
159
|
homeTeamWins: number;
|
|
@@ -182,6 +184,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
182
184
|
teamCode?: string | undefined;
|
|
183
185
|
};
|
|
184
186
|
round?: number | undefined;
|
|
187
|
+
week?: number | undefined;
|
|
185
188
|
seriesInfo?: {
|
|
186
189
|
maxLength: number;
|
|
187
190
|
homeTeamWins: number;
|
|
@@ -225,6 +228,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
225
228
|
teamCode?: string | undefined;
|
|
226
229
|
};
|
|
227
230
|
round?: number | undefined;
|
|
231
|
+
week?: number | undefined;
|
|
228
232
|
seriesInfo?: {
|
|
229
233
|
maxLength: number;
|
|
230
234
|
homeTeamWins: number;
|
|
@@ -269,6 +273,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
269
273
|
teamCode?: string | undefined;
|
|
270
274
|
};
|
|
271
275
|
round?: number | undefined;
|
|
276
|
+
week?: number | undefined;
|
|
272
277
|
seriesInfo?: {
|
|
273
278
|
maxLength: number;
|
|
274
279
|
homeTeamWins: number;
|
|
@@ -330,6 +335,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
330
335
|
teamCode?: string | undefined;
|
|
331
336
|
};
|
|
332
337
|
round?: number | undefined;
|
|
338
|
+
week?: number | undefined;
|
|
333
339
|
seriesInfo?: {
|
|
334
340
|
maxLength: number;
|
|
335
341
|
homeTeamWins: number;
|
|
@@ -392,6 +398,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
392
398
|
teamCode?: string | undefined;
|
|
393
399
|
};
|
|
394
400
|
round?: number | undefined;
|
|
401
|
+
week?: number | undefined;
|
|
395
402
|
seriesInfo?: {
|
|
396
403
|
maxLength: number;
|
|
397
404
|
homeTeamWins: number;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
98
98
|
awayTeamWins: number;
|
|
99
99
|
gameNumber: number;
|
|
100
100
|
}>>;
|
|
101
|
+
week: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
101
102
|
}, "strip", import("zod").ZodTypeAny, {
|
|
102
103
|
id: string;
|
|
103
104
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -122,6 +123,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
122
123
|
teamCode?: string | undefined;
|
|
123
124
|
};
|
|
124
125
|
round?: number | undefined;
|
|
126
|
+
week?: number | undefined;
|
|
125
127
|
seriesInfo?: {
|
|
126
128
|
maxLength: number;
|
|
127
129
|
homeTeamWins: number;
|
|
@@ -152,6 +154,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
152
154
|
teamCode?: string | undefined;
|
|
153
155
|
};
|
|
154
156
|
round?: number | undefined;
|
|
157
|
+
week?: number | undefined;
|
|
155
158
|
seriesInfo?: {
|
|
156
159
|
maxLength: number;
|
|
157
160
|
homeTeamWins: number;
|
|
@@ -195,6 +198,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
195
198
|
teamCode?: string | undefined;
|
|
196
199
|
};
|
|
197
200
|
round?: number | undefined;
|
|
201
|
+
week?: number | undefined;
|
|
198
202
|
seriesInfo?: {
|
|
199
203
|
maxLength: number;
|
|
200
204
|
homeTeamWins: number;
|
|
@@ -239,6 +243,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
239
243
|
teamCode?: string | undefined;
|
|
240
244
|
};
|
|
241
245
|
round?: number | undefined;
|
|
246
|
+
week?: number | undefined;
|
|
242
247
|
seriesInfo?: {
|
|
243
248
|
maxLength: number;
|
|
244
249
|
homeTeamWins: number;
|
|
@@ -467,6 +472,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
467
472
|
awayTeamWins: number;
|
|
468
473
|
gameNumber: number;
|
|
469
474
|
}>>;
|
|
475
|
+
week: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
470
476
|
}, "strip", import("zod").ZodTypeAny, {
|
|
471
477
|
id: string;
|
|
472
478
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -491,6 +497,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
491
497
|
teamCode?: string | undefined;
|
|
492
498
|
};
|
|
493
499
|
round?: number | undefined;
|
|
500
|
+
week?: number | undefined;
|
|
494
501
|
seriesInfo?: {
|
|
495
502
|
maxLength: number;
|
|
496
503
|
homeTeamWins: number;
|
|
@@ -521,6 +528,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
521
528
|
teamCode?: string | undefined;
|
|
522
529
|
};
|
|
523
530
|
round?: number | undefined;
|
|
531
|
+
week?: number | undefined;
|
|
524
532
|
seriesInfo?: {
|
|
525
533
|
maxLength: number;
|
|
526
534
|
homeTeamWins: number;
|
|
@@ -606,9 +614,11 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
606
614
|
awayTeamWins: number;
|
|
607
615
|
gameNumber: number;
|
|
608
616
|
}>>;
|
|
617
|
+
week: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
609
618
|
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
610
619
|
id: string;
|
|
611
620
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
621
|
+
week?: number | undefined;
|
|
612
622
|
seriesInfo?: {
|
|
613
623
|
maxLength: number;
|
|
614
624
|
homeTeamWins: number;
|
|
@@ -618,6 +628,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
618
628
|
}, {
|
|
619
629
|
id: string;
|
|
620
630
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
631
|
+
week?: number | undefined;
|
|
621
632
|
seriesInfo?: {
|
|
622
633
|
maxLength: number;
|
|
623
634
|
homeTeamWins: number;
|
|
@@ -631,6 +642,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
631
642
|
game: {
|
|
632
643
|
id: string;
|
|
633
644
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
645
|
+
week?: number | undefined;
|
|
634
646
|
seriesInfo?: {
|
|
635
647
|
maxLength: number;
|
|
636
648
|
homeTeamWins: number;
|
|
@@ -646,6 +658,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
646
658
|
game: {
|
|
647
659
|
id: string;
|
|
648
660
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
661
|
+
week?: number | undefined;
|
|
649
662
|
seriesInfo?: {
|
|
650
663
|
maxLength: number;
|
|
651
664
|
homeTeamWins: number;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
33
33
|
homeTeam: game_1.gameTeamSchema,
|
|
34
34
|
awayTeam: game_1.gameTeamSchema,
|
|
35
35
|
seriesInfo: game_1.seriesInfoSchema.optional(),
|
|
36
|
+
week: (0, zod_1.number)().optional(),
|
|
36
37
|
}),
|
|
37
38
|
userLikes: (0, zod_1.number)().optional(),
|
|
38
39
|
});
|