rategame-shared 1.0.74 → 1.0.76
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 +3 -1
- package/dist/schemas/team.d.ts +2 -0
- package/dist/schemas/team.js +12 -7
- package/dist/schemas/user.d.ts +52 -0
- package/dist/schemas/user.js +6 -0
- package/package.json +1 -1
- package/dist/models/nba/game.d.ts +0 -5
- package/dist/models/nba/game.js +0 -2
- package/dist/models/nba/team.d.ts +0 -3
- package/dist/models/nba/team.js +0 -2
- package/dist/schemas/nba/game.d.ts +0 -233
- package/dist/schemas/nba/game.js +0 -44
- package/dist/schemas/nba/team.d.ts +0 -23
- package/dist/schemas/nba/team.js +0 -12
package/dist/models/team.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { teamSchema, mlbTeamSchema } from "../schemas/team";
|
|
2
|
+
import { teamSchema, mlbTeamSchema, divisionSchema, conferenceSchema } from "../schemas/team";
|
|
3
3
|
export type Team = z.infer<typeof teamSchema>;
|
|
4
4
|
export type MLBTeam = z.infer<typeof mlbTeamSchema>;
|
|
5
|
+
export type Division = z.infer<typeof divisionSchema>;
|
|
6
|
+
export type Conference = z.infer<typeof conferenceSchema>;
|
package/dist/schemas/team.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export declare const teamSchema: z.ZodObject<{
|
|
|
24
24
|
city?: string | undefined;
|
|
25
25
|
conference?: string | undefined;
|
|
26
26
|
}>;
|
|
27
|
+
export declare const divisionSchema: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
|
|
28
|
+
export declare const conferenceSchema: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
|
|
27
29
|
export declare const mlbTeamSchema: z.ZodObject<{
|
|
28
30
|
id: z.ZodOptional<z.ZodString>;
|
|
29
31
|
apiTeamId: z.ZodNumber;
|
package/dist/schemas/team.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mlbTeamSchema = exports.teamSchema = void 0;
|
|
3
|
+
exports.mlbTeamSchema = exports.conferenceSchema = exports.divisionSchema = exports.teamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.teamSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string().optional(),
|
|
@@ -11,16 +11,21 @@ exports.teamSchema = zod_1.z.object({
|
|
|
11
11
|
city: zod_1.z.string().optional(),
|
|
12
12
|
conference: zod_1.z.string().optional(),
|
|
13
13
|
});
|
|
14
|
+
exports.divisionSchema = zod_1.z.union([
|
|
15
|
+
zod_1.z.literal("east"),
|
|
16
|
+
zod_1.z.literal("central"),
|
|
17
|
+
zod_1.z.literal("west"),
|
|
18
|
+
]);
|
|
19
|
+
exports.conferenceSchema = zod_1.z.union([
|
|
20
|
+
zod_1.z.literal("national"),
|
|
21
|
+
zod_1.z.literal("american"),
|
|
22
|
+
]);
|
|
14
23
|
exports.mlbTeamSchema = zod_1.z.object({
|
|
15
24
|
id: zod_1.z.string().optional(),
|
|
16
25
|
apiTeamId: zod_1.z.number(),
|
|
17
26
|
name: zod_1.z.string(),
|
|
18
27
|
image: zod_1.z.string(),
|
|
19
28
|
city: zod_1.z.string().optional(),
|
|
20
|
-
division:
|
|
21
|
-
|
|
22
|
-
zod_1.z.literal("central"),
|
|
23
|
-
zod_1.z.literal("west"),
|
|
24
|
-
]),
|
|
25
|
-
conference: zod_1.z.union([zod_1.z.literal("national"), zod_1.z.literal("american")]),
|
|
29
|
+
division: exports.divisionSchema,
|
|
30
|
+
conference: exports.conferenceSchema,
|
|
26
31
|
});
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -89,6 +89,20 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
89
89
|
selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
90
90
|
selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
91
91
|
lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
92
|
+
bio: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
94
|
+
instagram: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
x: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
+
youtube: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
98
|
+
instagram?: string | undefined;
|
|
99
|
+
x?: string | undefined;
|
|
100
|
+
youtube?: string | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
instagram?: string | undefined;
|
|
103
|
+
x?: string | undefined;
|
|
104
|
+
youtube?: string | undefined;
|
|
105
|
+
}>>;
|
|
92
106
|
}, "strip", import("zod").ZodTypeAny, {
|
|
93
107
|
id: string;
|
|
94
108
|
email: string;
|
|
@@ -123,6 +137,12 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
123
137
|
selectedLeagues?: string[] | undefined;
|
|
124
138
|
selectedTeams?: string[] | undefined;
|
|
125
139
|
lockedGameMessageSeen?: boolean | undefined;
|
|
140
|
+
bio?: string | undefined;
|
|
141
|
+
socialLinks?: {
|
|
142
|
+
instagram?: string | undefined;
|
|
143
|
+
x?: string | undefined;
|
|
144
|
+
youtube?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
126
146
|
}, {
|
|
127
147
|
id: string;
|
|
128
148
|
email: string;
|
|
@@ -157,6 +177,12 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
157
177
|
selectedLeagues?: string[] | undefined;
|
|
158
178
|
selectedTeams?: string[] | undefined;
|
|
159
179
|
lockedGameMessageSeen?: boolean | undefined;
|
|
180
|
+
bio?: string | undefined;
|
|
181
|
+
socialLinks?: {
|
|
182
|
+
instagram?: string | undefined;
|
|
183
|
+
x?: string | undefined;
|
|
184
|
+
youtube?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
160
186
|
}>;
|
|
161
187
|
export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
162
188
|
id: import("zod").ZodString;
|
|
@@ -236,6 +262,20 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
236
262
|
selectedLeagues: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
237
263
|
selectedTeams: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
238
264
|
lockedGameMessageSeen: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
265
|
+
bio: import("zod").ZodOptional<import("zod").ZodString>;
|
|
266
|
+
socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
267
|
+
instagram: import("zod").ZodOptional<import("zod").ZodString>;
|
|
268
|
+
x: import("zod").ZodOptional<import("zod").ZodString>;
|
|
269
|
+
youtube: import("zod").ZodOptional<import("zod").ZodString>;
|
|
270
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
271
|
+
instagram?: string | undefined;
|
|
272
|
+
x?: string | undefined;
|
|
273
|
+
youtube?: string | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
instagram?: string | undefined;
|
|
276
|
+
x?: string | undefined;
|
|
277
|
+
youtube?: string | undefined;
|
|
278
|
+
}>>;
|
|
239
279
|
}, "id" | "totalRatedGames" | "avgRating" | "createdAt" | "updatedAt" | "deviceTokens" | "askedForPushNotifications" | "acceptedPushNotifications">, "strip", import("zod").ZodTypeAny, {
|
|
240
280
|
email: string;
|
|
241
281
|
username: string;
|
|
@@ -259,6 +299,12 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
259
299
|
selectedLeagues?: string[] | undefined;
|
|
260
300
|
selectedTeams?: string[] | undefined;
|
|
261
301
|
lockedGameMessageSeen?: boolean | undefined;
|
|
302
|
+
bio?: string | undefined;
|
|
303
|
+
socialLinks?: {
|
|
304
|
+
instagram?: string | undefined;
|
|
305
|
+
x?: string | undefined;
|
|
306
|
+
youtube?: string | undefined;
|
|
307
|
+
} | undefined;
|
|
262
308
|
}, {
|
|
263
309
|
email: string;
|
|
264
310
|
username: string;
|
|
@@ -282,4 +328,10 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
282
328
|
selectedLeagues?: string[] | undefined;
|
|
283
329
|
selectedTeams?: string[] | undefined;
|
|
284
330
|
lockedGameMessageSeen?: boolean | undefined;
|
|
331
|
+
bio?: string | undefined;
|
|
332
|
+
socialLinks?: {
|
|
333
|
+
instagram?: string | undefined;
|
|
334
|
+
x?: string | undefined;
|
|
335
|
+
youtube?: string | undefined;
|
|
336
|
+
} | undefined;
|
|
285
337
|
}>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -33,6 +33,12 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
33
33
|
selectedLeagues: (0, zod_1.array)((0, zod_1.string)()).optional(),
|
|
34
34
|
selectedTeams: (0, zod_1.array)((0, zod_1.string)()).optional(),
|
|
35
35
|
lockedGameMessageSeen: (0, zod_1.boolean)().optional(),
|
|
36
|
+
bio: (0, zod_1.string)().optional(),
|
|
37
|
+
socialLinks: (0, zod_1.object)({
|
|
38
|
+
instagram: (0, zod_1.string)().optional(),
|
|
39
|
+
x: (0, zod_1.string)().optional(),
|
|
40
|
+
youtube: (0, zod_1.string)().optional(),
|
|
41
|
+
}).optional(),
|
|
36
42
|
});
|
|
37
43
|
exports.createUserSchema = exports.userSchema.omit({
|
|
38
44
|
id: true,
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { nbaGameSchema, quartersSchema, seriesInfoSchema } from "../../schemas/nba/game";
|
|
3
|
-
export type NBAGame = z.infer<typeof nbaGameSchema>;
|
|
4
|
-
export type SeriesInfo = z.infer<typeof seriesInfoSchema>;
|
|
5
|
-
export type Quarters = z.infer<typeof quartersSchema>;
|
package/dist/models/nba/game.js
DELETED
package/dist/models/nba/team.js
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const seriesInfoSchema: z.ZodObject<{
|
|
3
|
-
homeTeamWins: z.ZodNumber;
|
|
4
|
-
awayTeamWins: z.ZodNumber;
|
|
5
|
-
gameNumber: z.ZodNumber;
|
|
6
|
-
maxLength: z.ZodNumber;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
maxLength: number;
|
|
9
|
-
homeTeamWins: number;
|
|
10
|
-
awayTeamWins: number;
|
|
11
|
-
gameNumber: number;
|
|
12
|
-
}, {
|
|
13
|
-
maxLength: number;
|
|
14
|
-
homeTeamWins: number;
|
|
15
|
-
awayTeamWins: number;
|
|
16
|
-
gameNumber: number;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const quartersSchema: z.ZodArray<z.ZodObject<{
|
|
19
|
-
awayScore: z.ZodNumber;
|
|
20
|
-
homeScore: z.ZodNumber;
|
|
21
|
-
number: z.ZodNumber;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
number: number;
|
|
24
|
-
awayScore: number;
|
|
25
|
-
homeScore: number;
|
|
26
|
-
}, {
|
|
27
|
-
number: number;
|
|
28
|
-
awayScore: number;
|
|
29
|
-
homeScore: number;
|
|
30
|
-
}>, "many">;
|
|
31
|
-
export declare const nbaGameSchema: z.ZodObject<{
|
|
32
|
-
id: z.ZodOptional<z.ZodString>;
|
|
33
|
-
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
34
|
-
isClosed: z.ZodBoolean;
|
|
35
|
-
startedAt: z.ZodNumber;
|
|
36
|
-
finishedAt: z.ZodNumber;
|
|
37
|
-
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
apiGameId: z.ZodNumber;
|
|
39
|
-
homeTeam: z.ZodObject<{
|
|
40
|
-
id: z.ZodOptional<z.ZodString>;
|
|
41
|
-
apiTeamId: z.ZodNumber;
|
|
42
|
-
name: z.ZodString;
|
|
43
|
-
city: z.ZodString;
|
|
44
|
-
conference: z.ZodString;
|
|
45
|
-
image: z.ZodString;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
name: string;
|
|
48
|
-
image: string;
|
|
49
|
-
apiTeamId: number;
|
|
50
|
-
city: string;
|
|
51
|
-
conference: string;
|
|
52
|
-
id?: string | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
name: string;
|
|
55
|
-
image: string;
|
|
56
|
-
apiTeamId: number;
|
|
57
|
-
city: string;
|
|
58
|
-
conference: string;
|
|
59
|
-
id?: string | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
awayTeam: z.ZodObject<{
|
|
62
|
-
id: z.ZodOptional<z.ZodString>;
|
|
63
|
-
apiTeamId: z.ZodNumber;
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
city: z.ZodString;
|
|
66
|
-
conference: z.ZodString;
|
|
67
|
-
image: z.ZodString;
|
|
68
|
-
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
name: string;
|
|
70
|
-
image: string;
|
|
71
|
-
apiTeamId: number;
|
|
72
|
-
city: string;
|
|
73
|
-
conference: string;
|
|
74
|
-
id?: string | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
name: string;
|
|
77
|
-
image: string;
|
|
78
|
-
apiTeamId: number;
|
|
79
|
-
city: string;
|
|
80
|
-
conference: string;
|
|
81
|
-
id?: string | undefined;
|
|
82
|
-
}>;
|
|
83
|
-
timeRemainingMinutes: z.ZodNumber;
|
|
84
|
-
timeRemainingSeconds: z.ZodNumber;
|
|
85
|
-
round: z.ZodUnion<[z.ZodLiteral<"quarters">, z.ZodLiteral<"semis">, z.ZodLiteral<"conference">, z.ZodLiteral<"finals">]>;
|
|
86
|
-
quarters: z.ZodArray<z.ZodObject<{
|
|
87
|
-
awayScore: z.ZodNumber;
|
|
88
|
-
homeScore: z.ZodNumber;
|
|
89
|
-
number: z.ZodNumber;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
number: number;
|
|
92
|
-
awayScore: number;
|
|
93
|
-
homeScore: number;
|
|
94
|
-
}, {
|
|
95
|
-
number: number;
|
|
96
|
-
awayScore: number;
|
|
97
|
-
homeScore: number;
|
|
98
|
-
}>, "many">;
|
|
99
|
-
seriesInfo: z.ZodObject<{
|
|
100
|
-
homeTeamWins: z.ZodNumber;
|
|
101
|
-
awayTeamWins: z.ZodNumber;
|
|
102
|
-
gameNumber: z.ZodNumber;
|
|
103
|
-
maxLength: z.ZodNumber;
|
|
104
|
-
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
maxLength: number;
|
|
106
|
-
homeTeamWins: number;
|
|
107
|
-
awayTeamWins: number;
|
|
108
|
-
gameNumber: number;
|
|
109
|
-
}, {
|
|
110
|
-
maxLength: number;
|
|
111
|
-
homeTeamWins: number;
|
|
112
|
-
awayTeamWins: number;
|
|
113
|
-
gameNumber: number;
|
|
114
|
-
}>;
|
|
115
|
-
rating: z.ZodOptional<z.ZodObject<{
|
|
116
|
-
avg: z.ZodNumber;
|
|
117
|
-
votes: z.ZodObject<{
|
|
118
|
-
options: z.ZodRecord<z.ZodNumber, z.ZodNumber>;
|
|
119
|
-
total: z.ZodNumber;
|
|
120
|
-
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
total: number;
|
|
122
|
-
options: Record<number, number>;
|
|
123
|
-
}, {
|
|
124
|
-
total: number;
|
|
125
|
-
options: Record<number, number>;
|
|
126
|
-
}>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
avg: number;
|
|
129
|
-
votes: {
|
|
130
|
-
total: number;
|
|
131
|
-
options: Record<number, number>;
|
|
132
|
-
};
|
|
133
|
-
}, {
|
|
134
|
-
avg: number;
|
|
135
|
-
votes: {
|
|
136
|
-
total: number;
|
|
137
|
-
options: Record<number, number>;
|
|
138
|
-
};
|
|
139
|
-
}>>;
|
|
140
|
-
userIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
round: "quarters" | "conference" | "semis" | "finals";
|
|
143
|
-
status: "live" | "scheduled" | "final";
|
|
144
|
-
quarters: {
|
|
145
|
-
number: number;
|
|
146
|
-
awayScore: number;
|
|
147
|
-
homeScore: number;
|
|
148
|
-
}[];
|
|
149
|
-
isClosed: boolean;
|
|
150
|
-
startedAt: number;
|
|
151
|
-
finishedAt: number;
|
|
152
|
-
apiGameId: number;
|
|
153
|
-
homeTeam: {
|
|
154
|
-
name: string;
|
|
155
|
-
image: string;
|
|
156
|
-
apiTeamId: number;
|
|
157
|
-
city: string;
|
|
158
|
-
conference: string;
|
|
159
|
-
id?: string | undefined;
|
|
160
|
-
};
|
|
161
|
-
awayTeam: {
|
|
162
|
-
name: string;
|
|
163
|
-
image: string;
|
|
164
|
-
apiTeamId: number;
|
|
165
|
-
city: string;
|
|
166
|
-
conference: string;
|
|
167
|
-
id?: string | undefined;
|
|
168
|
-
};
|
|
169
|
-
timeRemainingMinutes: number;
|
|
170
|
-
timeRemainingSeconds: number;
|
|
171
|
-
seriesInfo: {
|
|
172
|
-
maxLength: number;
|
|
173
|
-
homeTeamWins: number;
|
|
174
|
-
awayTeamWins: number;
|
|
175
|
-
gameNumber: number;
|
|
176
|
-
};
|
|
177
|
-
id?: string | undefined;
|
|
178
|
-
ratingWindowClosedAt?: number | undefined;
|
|
179
|
-
rating?: {
|
|
180
|
-
avg: number;
|
|
181
|
-
votes: {
|
|
182
|
-
total: number;
|
|
183
|
-
options: Record<number, number>;
|
|
184
|
-
};
|
|
185
|
-
} | undefined;
|
|
186
|
-
userIds?: string[] | undefined;
|
|
187
|
-
}, {
|
|
188
|
-
round: "quarters" | "conference" | "semis" | "finals";
|
|
189
|
-
status: "live" | "scheduled" | "final";
|
|
190
|
-
quarters: {
|
|
191
|
-
number: number;
|
|
192
|
-
awayScore: number;
|
|
193
|
-
homeScore: number;
|
|
194
|
-
}[];
|
|
195
|
-
isClosed: boolean;
|
|
196
|
-
startedAt: number;
|
|
197
|
-
finishedAt: number;
|
|
198
|
-
apiGameId: number;
|
|
199
|
-
homeTeam: {
|
|
200
|
-
name: string;
|
|
201
|
-
image: string;
|
|
202
|
-
apiTeamId: number;
|
|
203
|
-
city: string;
|
|
204
|
-
conference: string;
|
|
205
|
-
id?: string | undefined;
|
|
206
|
-
};
|
|
207
|
-
awayTeam: {
|
|
208
|
-
name: string;
|
|
209
|
-
image: string;
|
|
210
|
-
apiTeamId: number;
|
|
211
|
-
city: string;
|
|
212
|
-
conference: string;
|
|
213
|
-
id?: string | undefined;
|
|
214
|
-
};
|
|
215
|
-
timeRemainingMinutes: number;
|
|
216
|
-
timeRemainingSeconds: number;
|
|
217
|
-
seriesInfo: {
|
|
218
|
-
maxLength: number;
|
|
219
|
-
homeTeamWins: number;
|
|
220
|
-
awayTeamWins: number;
|
|
221
|
-
gameNumber: number;
|
|
222
|
-
};
|
|
223
|
-
id?: string | undefined;
|
|
224
|
-
ratingWindowClosedAt?: number | undefined;
|
|
225
|
-
rating?: {
|
|
226
|
-
avg: number;
|
|
227
|
-
votes: {
|
|
228
|
-
total: number;
|
|
229
|
-
options: Record<number, number>;
|
|
230
|
-
};
|
|
231
|
-
} | undefined;
|
|
232
|
-
userIds?: string[] | undefined;
|
|
233
|
-
}>;
|
package/dist/schemas/nba/game.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nbaGameSchema = exports.quartersSchema = exports.seriesInfoSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const team_1 = require("./team");
|
|
6
|
-
const game_1 = require("../game");
|
|
7
|
-
exports.seriesInfoSchema = zod_1.z.object({
|
|
8
|
-
homeTeamWins: zod_1.z.number(),
|
|
9
|
-
awayTeamWins: zod_1.z.number(),
|
|
10
|
-
gameNumber: zod_1.z.number(),
|
|
11
|
-
maxLength: zod_1.z.number(),
|
|
12
|
-
});
|
|
13
|
-
exports.quartersSchema = zod_1.z.array(zod_1.z.object({
|
|
14
|
-
awayScore: zod_1.z.number(),
|
|
15
|
-
homeScore: zod_1.z.number(),
|
|
16
|
-
number: zod_1.z.number(),
|
|
17
|
-
}));
|
|
18
|
-
exports.nbaGameSchema = zod_1.z.object({
|
|
19
|
-
id: zod_1.z.string().optional(),
|
|
20
|
-
status: zod_1.z.union([
|
|
21
|
-
zod_1.z.literal("scheduled"),
|
|
22
|
-
zod_1.z.literal("live"),
|
|
23
|
-
zod_1.z.literal("final"),
|
|
24
|
-
]),
|
|
25
|
-
isClosed: zod_1.z.boolean(),
|
|
26
|
-
startedAt: zod_1.z.number(),
|
|
27
|
-
finishedAt: zod_1.z.number(),
|
|
28
|
-
ratingWindowClosedAt: zod_1.z.number().optional(),
|
|
29
|
-
apiGameId: zod_1.z.number(),
|
|
30
|
-
homeTeam: team_1.nbaTeamSchema,
|
|
31
|
-
awayTeam: team_1.nbaTeamSchema,
|
|
32
|
-
timeRemainingMinutes: zod_1.z.number(),
|
|
33
|
-
timeRemainingSeconds: zod_1.z.number(),
|
|
34
|
-
round: zod_1.z.union([
|
|
35
|
-
zod_1.z.literal("quarters"),
|
|
36
|
-
zod_1.z.literal("semis"),
|
|
37
|
-
zod_1.z.literal("conference"),
|
|
38
|
-
zod_1.z.literal("finals"),
|
|
39
|
-
]),
|
|
40
|
-
quarters: exports.quartersSchema,
|
|
41
|
-
seriesInfo: exports.seriesInfoSchema,
|
|
42
|
-
rating: game_1.gameRatingAggregateSchema.optional(),
|
|
43
|
-
userIds: zod_1.z.array(zod_1.z.string()).optional(),
|
|
44
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const nbaTeamSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodOptional<z.ZodString>;
|
|
4
|
-
apiTeamId: z.ZodNumber;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
city: z.ZodString;
|
|
7
|
-
conference: z.ZodString;
|
|
8
|
-
image: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
name: string;
|
|
11
|
-
image: string;
|
|
12
|
-
apiTeamId: number;
|
|
13
|
-
city: string;
|
|
14
|
-
conference: string;
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
name: string;
|
|
18
|
-
image: string;
|
|
19
|
-
apiTeamId: number;
|
|
20
|
-
city: string;
|
|
21
|
-
conference: string;
|
|
22
|
-
id?: string | undefined;
|
|
23
|
-
}>;
|
package/dist/schemas/nba/team.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nbaTeamSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.nbaTeamSchema = zod_1.z.object({
|
|
6
|
-
id: zod_1.z.string().optional(),
|
|
7
|
-
apiTeamId: zod_1.z.number(),
|
|
8
|
-
name: zod_1.z.string(),
|
|
9
|
-
city: zod_1.z.string(),
|
|
10
|
-
conference: zod_1.z.string(),
|
|
11
|
-
image: zod_1.z.string(),
|
|
12
|
-
});
|