rategame-shared 1.1.136 → 1.1.138
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/team.d.ts +2 -2
- package/dist/schemas/game.d.ts +11 -11
- package/dist/schemas/game.js +1 -1
- package/dist/schemas/team.d.ts +1 -1
- package/dist/schemas/team.js +2 -2
- package/package.json +1 -1
package/dist/models/team.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { teamSchema, mlbTeamSchema, divisionSchema, leagueSchema,
|
|
2
|
+
import { teamSchema, mlbTeamSchema, divisionSchema, leagueSchema, nflTeamSchema, cfbTeamSchema, nhlTeamSchema, cbbTeamSchema, footballTeamSchema } from "../schemas/team";
|
|
3
3
|
export type Team = z.infer<typeof teamSchema>;
|
|
4
4
|
export type CBBTeam = z.infer<typeof cbbTeamSchema>;
|
|
5
5
|
export type MLBTeam = z.infer<typeof mlbTeamSchema>;
|
|
6
6
|
export type MLBDivision = z.infer<typeof divisionSchema>;
|
|
7
7
|
export type MLBLeague = z.infer<typeof leagueSchema>;
|
|
8
|
-
export type
|
|
8
|
+
export type FootballTeam = z.infer<typeof footballTeamSchema>;
|
|
9
9
|
export type NFLTeam = z.infer<typeof nflTeamSchema>;
|
|
10
10
|
export type CFBTeam = z.infer<typeof cfbTeamSchema>;
|
|
11
11
|
export type NHLTeam = z.infer<typeof nhlTeamSchema>;
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -9440,7 +9440,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9440
9440
|
chatEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
9441
9441
|
lastPlay: z.ZodOptional<z.ZodString>;
|
|
9442
9442
|
}, {
|
|
9443
|
-
league: z.ZodLiteral<"epl">;
|
|
9443
|
+
league: z.ZodUnion<[z.ZodLiteral<"epl">, z.ZodLiteral<"mls">]>;
|
|
9444
9444
|
week: z.ZodNumber;
|
|
9445
9445
|
period: z.ZodString;
|
|
9446
9446
|
clock: z.ZodString;
|
|
@@ -9558,7 +9558,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9558
9558
|
startedAt: number;
|
|
9559
9559
|
finishedAt: number;
|
|
9560
9560
|
apiGameId: number;
|
|
9561
|
-
league: "epl";
|
|
9561
|
+
league: "epl" | "mls";
|
|
9562
9562
|
homeTeam: {
|
|
9563
9563
|
name: string;
|
|
9564
9564
|
image: string;
|
|
@@ -9745,7 +9745,7 @@ export declare const footballGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9745
9745
|
startedAt: number;
|
|
9746
9746
|
finishedAt: number;
|
|
9747
9747
|
apiGameId: number;
|
|
9748
|
-
league: "epl";
|
|
9748
|
+
league: "epl" | "mls";
|
|
9749
9749
|
homeTeam: {
|
|
9750
9750
|
name: string;
|
|
9751
9751
|
image: string;
|
|
@@ -22032,7 +22032,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
22032
22032
|
chatEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
22033
22033
|
lastPlay: z.ZodOptional<z.ZodString>;
|
|
22034
22034
|
}, {
|
|
22035
|
-
league: z.ZodLiteral<"epl">;
|
|
22035
|
+
league: z.ZodUnion<[z.ZodLiteral<"epl">, z.ZodLiteral<"mls">]>;
|
|
22036
22036
|
week: z.ZodNumber;
|
|
22037
22037
|
period: z.ZodString;
|
|
22038
22038
|
clock: z.ZodString;
|
|
@@ -22150,7 +22150,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
22150
22150
|
startedAt: number;
|
|
22151
22151
|
finishedAt: number;
|
|
22152
22152
|
apiGameId: number;
|
|
22153
|
-
league: "epl";
|
|
22153
|
+
league: "epl" | "mls";
|
|
22154
22154
|
homeTeam: {
|
|
22155
22155
|
name: string;
|
|
22156
22156
|
image: string;
|
|
@@ -22337,7 +22337,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
22337
22337
|
startedAt: number;
|
|
22338
22338
|
finishedAt: number;
|
|
22339
22339
|
apiGameId: number;
|
|
22340
|
-
league: "epl";
|
|
22340
|
+
league: "epl" | "mls";
|
|
22341
22341
|
homeTeam: {
|
|
22342
22342
|
name: string;
|
|
22343
22343
|
image: string;
|
|
@@ -34656,7 +34656,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
34656
34656
|
chatEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
34657
34657
|
lastPlay: z.ZodOptional<z.ZodString>;
|
|
34658
34658
|
}, {
|
|
34659
|
-
league: z.ZodLiteral<"epl">;
|
|
34659
|
+
league: z.ZodUnion<[z.ZodLiteral<"epl">, z.ZodLiteral<"mls">]>;
|
|
34660
34660
|
week: z.ZodNumber;
|
|
34661
34661
|
period: z.ZodString;
|
|
34662
34662
|
clock: z.ZodString;
|
|
@@ -34774,7 +34774,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
34774
34774
|
startedAt: number;
|
|
34775
34775
|
finishedAt: number;
|
|
34776
34776
|
apiGameId: number;
|
|
34777
|
-
league: "epl";
|
|
34777
|
+
league: "epl" | "mls";
|
|
34778
34778
|
homeTeam: {
|
|
34779
34779
|
name: string;
|
|
34780
34780
|
image: string;
|
|
@@ -34961,7 +34961,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
34961
34961
|
startedAt: number;
|
|
34962
34962
|
finishedAt: number;
|
|
34963
34963
|
apiGameId: number;
|
|
34964
|
-
league: "epl";
|
|
34964
|
+
league: "epl" | "mls";
|
|
34965
34965
|
homeTeam: {
|
|
34966
34966
|
name: string;
|
|
34967
34967
|
image: string;
|
|
@@ -42413,7 +42413,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
42413
42413
|
startedAt: number;
|
|
42414
42414
|
finishedAt: number;
|
|
42415
42415
|
apiGameId: number;
|
|
42416
|
-
league: "epl";
|
|
42416
|
+
league: "epl" | "mls";
|
|
42417
42417
|
homeTeam: {
|
|
42418
42418
|
name: string;
|
|
42419
42419
|
image: string;
|
|
@@ -43559,7 +43559,7 @@ export declare const creatorPickSchema: z.ZodObject<{
|
|
|
43559
43559
|
startedAt: number;
|
|
43560
43560
|
finishedAt: number;
|
|
43561
43561
|
apiGameId: number;
|
|
43562
|
-
league: "epl";
|
|
43562
|
+
league: "epl" | "mls";
|
|
43563
43563
|
homeTeam: {
|
|
43564
43564
|
name: string;
|
|
43565
43565
|
image: string;
|
package/dist/schemas/game.js
CHANGED
|
@@ -176,7 +176,7 @@ exports.mlbGameSchema = exports.commonGameSchema.extend({
|
|
|
176
176
|
runnerOnThird: zod_1.z.boolean().optional(),
|
|
177
177
|
});
|
|
178
178
|
exports.footballGameSchema = exports.commonGameSchema.extend({
|
|
179
|
-
league: zod_1.z.literal("epl"),
|
|
179
|
+
league: zod_1.z.union([zod_1.z.literal("epl"), zod_1.z.literal("mls")]),
|
|
180
180
|
week: zod_1.z.number(),
|
|
181
181
|
period: zod_1.z.string(),
|
|
182
182
|
clock: zod_1.z.string(),
|
package/dist/schemas/team.d.ts
CHANGED
|
@@ -1285,7 +1285,7 @@ export declare const mlbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1285
1285
|
}[] | undefined;
|
|
1286
1286
|
totalFans?: number | undefined;
|
|
1287
1287
|
}>;
|
|
1288
|
-
export declare const
|
|
1288
|
+
export declare const footballTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1289
1289
|
id: z.ZodOptional<z.ZodString>;
|
|
1290
1290
|
apiTeamId: z.ZodNumber;
|
|
1291
1291
|
name: z.ZodString;
|
package/dist/schemas/team.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nhlTeamSchema = exports.cbbTeamSchema = exports.cfbTeamSchema = exports.nflTeamSchema = exports.
|
|
3
|
+
exports.nhlTeamSchema = exports.cbbTeamSchema = exports.cfbTeamSchema = exports.nflTeamSchema = exports.footballTeamSchema = exports.mlbTeamSchema = exports.leagueSchema = exports.divisionSchema = exports.teamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const user_1 = require("./user");
|
|
6
6
|
const baseTeamSchema = zod_1.z.object({
|
|
@@ -32,7 +32,7 @@ exports.mlbTeamSchema = baseTeamSchema.extend({
|
|
|
32
32
|
league: exports.leagueSchema,
|
|
33
33
|
teamCode: zod_1.z.string().optional(),
|
|
34
34
|
});
|
|
35
|
-
exports.
|
|
35
|
+
exports.footballTeamSchema = baseTeamSchema.extend({
|
|
36
36
|
teamCode: zod_1.z.string().optional(),
|
|
37
37
|
venueName: zod_1.z.string().optional(),
|
|
38
38
|
});
|