rategame-shared 1.1.2 → 1.1.3
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/rating.d.ts +1 -3
- package/dist/schemas/game.d.ts +23 -35
- package/dist/schemas/game.js +4 -12
- package/dist/schemas/rating.d.ts +30 -511
- package/dist/schemas/rating.js +1 -37
- package/package.json +1 -1
package/dist/models/rating.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema
|
|
2
|
+
import { createAgreeRatingSchema, createRatingSchema, ratingLikeSchema, ratingSchema, searchRatingSchema } from "../schemas/rating";
|
|
3
3
|
export type Rating = z.infer<typeof ratingSchema>;
|
|
4
4
|
export type RatingLike = z.infer<typeof ratingLikeSchema>;
|
|
5
5
|
export type CreateRating = z.infer<typeof createRatingSchema>;
|
|
6
6
|
export type SearchRating = z.infer<typeof searchRatingSchema>;
|
|
7
7
|
export type CreateAgreeRating = z.infer<typeof createAgreeRatingSchema>;
|
|
8
|
-
export type CreateMLBRating = z.infer<typeof createMLBRatingSchema>;
|
|
9
|
-
export type MLBRating = z.infer<typeof mlbRatingSchema>;
|
package/dist/schemas/game.d.ts
CHANGED
|
@@ -6,31 +6,7 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
6
6
|
score: z.ZodNumber;
|
|
7
7
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
image: z.ZodString;
|
|
9
|
-
seed: z.ZodNumber
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
name: string;
|
|
12
|
-
image: string;
|
|
13
|
-
apiTeamId: number;
|
|
14
|
-
score: number;
|
|
15
|
-
seed: number;
|
|
16
|
-
id?: string | undefined;
|
|
17
|
-
isWinner?: boolean | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
name: string;
|
|
20
|
-
image: string;
|
|
21
|
-
apiTeamId: number;
|
|
22
|
-
score: number;
|
|
23
|
-
seed: number;
|
|
24
|
-
id?: string | undefined;
|
|
25
|
-
isWinner?: boolean | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
export declare const mlbGameTeamSchema: z.ZodObject<{
|
|
28
|
-
id: z.ZodOptional<z.ZodString>;
|
|
29
|
-
apiTeamId: z.ZodNumber;
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
score: z.ZodNumber;
|
|
32
|
-
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
image: z.ZodString;
|
|
9
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
34
10
|
}, "strip", z.ZodTypeAny, {
|
|
35
11
|
name: string;
|
|
36
12
|
image: string;
|
|
@@ -38,6 +14,7 @@ export declare const mlbGameTeamSchema: z.ZodObject<{
|
|
|
38
14
|
score: number;
|
|
39
15
|
id?: string | undefined;
|
|
40
16
|
isWinner?: boolean | undefined;
|
|
17
|
+
seed?: number | undefined;
|
|
41
18
|
}, {
|
|
42
19
|
name: string;
|
|
43
20
|
image: string;
|
|
@@ -45,6 +22,7 @@ export declare const mlbGameTeamSchema: z.ZodObject<{
|
|
|
45
22
|
score: number;
|
|
46
23
|
id?: string | undefined;
|
|
47
24
|
isWinner?: boolean | undefined;
|
|
25
|
+
seed?: number | undefined;
|
|
48
26
|
}>;
|
|
49
27
|
export declare const gameRatingAggregateSchema: z.ZodObject<{
|
|
50
28
|
avg: z.ZodNumber;
|
|
@@ -104,23 +82,23 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
104
82
|
score: z.ZodNumber;
|
|
105
83
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
106
84
|
image: z.ZodString;
|
|
107
|
-
seed: z.ZodNumber
|
|
85
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
108
86
|
}, "strip", z.ZodTypeAny, {
|
|
109
87
|
name: string;
|
|
110
88
|
image: string;
|
|
111
89
|
apiTeamId: number;
|
|
112
90
|
score: number;
|
|
113
|
-
seed: number;
|
|
114
91
|
id?: string | undefined;
|
|
115
92
|
isWinner?: boolean | undefined;
|
|
93
|
+
seed?: number | undefined;
|
|
116
94
|
}, {
|
|
117
95
|
name: string;
|
|
118
96
|
image: string;
|
|
119
97
|
apiTeamId: number;
|
|
120
98
|
score: number;
|
|
121
|
-
seed: number;
|
|
122
99
|
id?: string | undefined;
|
|
123
100
|
isWinner?: boolean | undefined;
|
|
101
|
+
seed?: number | undefined;
|
|
124
102
|
}>;
|
|
125
103
|
awayTeam: z.ZodObject<{
|
|
126
104
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -129,23 +107,23 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
129
107
|
score: z.ZodNumber;
|
|
130
108
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
131
109
|
image: z.ZodString;
|
|
132
|
-
seed: z.ZodNumber
|
|
110
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
133
111
|
}, "strip", z.ZodTypeAny, {
|
|
134
112
|
name: string;
|
|
135
113
|
image: string;
|
|
136
114
|
apiTeamId: number;
|
|
137
115
|
score: number;
|
|
138
|
-
seed: number;
|
|
139
116
|
id?: string | undefined;
|
|
140
117
|
isWinner?: boolean | undefined;
|
|
118
|
+
seed?: number | undefined;
|
|
141
119
|
}, {
|
|
142
120
|
name: string;
|
|
143
121
|
image: string;
|
|
144
122
|
apiTeamId: number;
|
|
145
123
|
score: number;
|
|
146
|
-
seed: number;
|
|
147
124
|
id?: string | undefined;
|
|
148
125
|
isWinner?: boolean | undefined;
|
|
126
|
+
seed?: number | undefined;
|
|
149
127
|
}>;
|
|
150
128
|
timeRemainingMinutes: z.ZodNumber;
|
|
151
129
|
timeRemainingSeconds: z.ZodNumber;
|
|
@@ -217,18 +195,18 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
217
195
|
image: string;
|
|
218
196
|
apiTeamId: number;
|
|
219
197
|
score: number;
|
|
220
|
-
seed: number;
|
|
221
198
|
id?: string | undefined;
|
|
222
199
|
isWinner?: boolean | undefined;
|
|
200
|
+
seed?: number | undefined;
|
|
223
201
|
};
|
|
224
202
|
awayTeam: {
|
|
225
203
|
name: string;
|
|
226
204
|
image: string;
|
|
227
205
|
apiTeamId: number;
|
|
228
206
|
score: number;
|
|
229
|
-
seed: number;
|
|
230
207
|
id?: string | undefined;
|
|
231
208
|
isWinner?: boolean | undefined;
|
|
209
|
+
seed?: number | undefined;
|
|
232
210
|
};
|
|
233
211
|
timeRemainingMinutes: number;
|
|
234
212
|
timeRemainingSeconds: number;
|
|
@@ -267,18 +245,18 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
267
245
|
image: string;
|
|
268
246
|
apiTeamId: number;
|
|
269
247
|
score: number;
|
|
270
|
-
seed: number;
|
|
271
248
|
id?: string | undefined;
|
|
272
249
|
isWinner?: boolean | undefined;
|
|
250
|
+
seed?: number | undefined;
|
|
273
251
|
};
|
|
274
252
|
awayTeam: {
|
|
275
253
|
name: string;
|
|
276
254
|
image: string;
|
|
277
255
|
apiTeamId: number;
|
|
278
256
|
score: number;
|
|
279
|
-
seed: number;
|
|
280
257
|
id?: string | undefined;
|
|
281
258
|
isWinner?: boolean | undefined;
|
|
259
|
+
seed?: number | undefined;
|
|
282
260
|
};
|
|
283
261
|
timeRemainingMinutes: number;
|
|
284
262
|
timeRemainingSeconds: number;
|
|
@@ -336,6 +314,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
336
314
|
score: z.ZodNumber;
|
|
337
315
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
338
316
|
image: z.ZodString;
|
|
317
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
339
318
|
}, "strip", z.ZodTypeAny, {
|
|
340
319
|
name: string;
|
|
341
320
|
image: string;
|
|
@@ -343,6 +322,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
343
322
|
score: number;
|
|
344
323
|
id?: string | undefined;
|
|
345
324
|
isWinner?: boolean | undefined;
|
|
325
|
+
seed?: number | undefined;
|
|
346
326
|
}, {
|
|
347
327
|
name: string;
|
|
348
328
|
image: string;
|
|
@@ -350,6 +330,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
350
330
|
score: number;
|
|
351
331
|
id?: string | undefined;
|
|
352
332
|
isWinner?: boolean | undefined;
|
|
333
|
+
seed?: number | undefined;
|
|
353
334
|
}>;
|
|
354
335
|
awayTeam: z.ZodObject<{
|
|
355
336
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -358,6 +339,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
358
339
|
score: z.ZodNumber;
|
|
359
340
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
360
341
|
image: z.ZodString;
|
|
342
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
361
343
|
}, "strip", z.ZodTypeAny, {
|
|
362
344
|
name: string;
|
|
363
345
|
image: string;
|
|
@@ -365,6 +347,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
365
347
|
score: number;
|
|
366
348
|
id?: string | undefined;
|
|
367
349
|
isWinner?: boolean | undefined;
|
|
350
|
+
seed?: number | undefined;
|
|
368
351
|
}, {
|
|
369
352
|
name: string;
|
|
370
353
|
image: string;
|
|
@@ -372,6 +355,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
372
355
|
score: number;
|
|
373
356
|
id?: string | undefined;
|
|
374
357
|
isWinner?: boolean | undefined;
|
|
358
|
+
seed?: number | undefined;
|
|
375
359
|
}>;
|
|
376
360
|
totalInningsRemaining: z.ZodNumber;
|
|
377
361
|
innings: z.ZodArray<z.ZodObject<{
|
|
@@ -500,6 +484,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
500
484
|
score: number;
|
|
501
485
|
id?: string | undefined;
|
|
502
486
|
isWinner?: boolean | undefined;
|
|
487
|
+
seed?: number | undefined;
|
|
503
488
|
};
|
|
504
489
|
awayTeam: {
|
|
505
490
|
name: string;
|
|
@@ -508,6 +493,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
508
493
|
score: number;
|
|
509
494
|
id?: string | undefined;
|
|
510
495
|
isWinner?: boolean | undefined;
|
|
496
|
+
seed?: number | undefined;
|
|
511
497
|
};
|
|
512
498
|
totalInningsRemaining: number;
|
|
513
499
|
innings: {
|
|
@@ -568,6 +554,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
568
554
|
score: number;
|
|
569
555
|
id?: string | undefined;
|
|
570
556
|
isWinner?: boolean | undefined;
|
|
557
|
+
seed?: number | undefined;
|
|
571
558
|
};
|
|
572
559
|
awayTeam: {
|
|
573
560
|
name: string;
|
|
@@ -576,6 +563,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
576
563
|
score: number;
|
|
577
564
|
id?: string | undefined;
|
|
578
565
|
isWinner?: boolean | undefined;
|
|
566
|
+
seed?: number | undefined;
|
|
579
567
|
};
|
|
580
568
|
totalInningsRemaining: number;
|
|
581
569
|
innings: {
|
package/dist/schemas/game.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.gameSchema = exports.seriesInfoSchema = exports.gameRatingAggregateSchema = exports.
|
|
3
|
+
exports.searchGameSchema = exports.mlbGameSchema = exports.inningSchema = exports.gameSchema = exports.seriesInfoSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const player_1 = require("./player");
|
|
6
6
|
exports.gameTeamSchema = zod_1.z.object({
|
|
@@ -10,15 +10,7 @@ exports.gameTeamSchema = zod_1.z.object({
|
|
|
10
10
|
score: zod_1.z.number(),
|
|
11
11
|
isWinner: zod_1.z.boolean().optional(),
|
|
12
12
|
image: zod_1.z.string(),
|
|
13
|
-
seed: zod_1.z.number(),
|
|
14
|
-
});
|
|
15
|
-
exports.mlbGameTeamSchema = zod_1.z.object({
|
|
16
|
-
id: zod_1.z.string().optional(),
|
|
17
|
-
apiTeamId: zod_1.z.number(),
|
|
18
|
-
name: zod_1.z.string(),
|
|
19
|
-
score: zod_1.z.number(),
|
|
20
|
-
isWinner: zod_1.z.boolean().optional(),
|
|
21
|
-
image: zod_1.z.string(),
|
|
13
|
+
seed: zod_1.z.number().optional(),
|
|
22
14
|
});
|
|
23
15
|
exports.gameRatingAggregateSchema = zod_1.z.object({
|
|
24
16
|
avg: zod_1.z.number(),
|
|
@@ -80,8 +72,8 @@ exports.mlbGameSchema = zod_1.z.object({
|
|
|
80
72
|
ratingWindowClosedAt: zod_1.z.number().optional(),
|
|
81
73
|
round: zod_1.z.number().optional(),
|
|
82
74
|
apiGameId: zod_1.z.number(),
|
|
83
|
-
homeTeam: exports.
|
|
84
|
-
awayTeam: exports.
|
|
75
|
+
homeTeam: exports.gameTeamSchema,
|
|
76
|
+
awayTeam: exports.gameTeamSchema,
|
|
85
77
|
totalInningsRemaining: zod_1.z.number(),
|
|
86
78
|
innings: zod_1.z.array(exports.inningSchema),
|
|
87
79
|
inningHalf: zod_1.z.union([zod_1.z.literal("T"), zod_1.z.literal("B")]).optional(),
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -33,23 +33,23 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
33
33
|
score: import("zod").ZodNumber;
|
|
34
34
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
35
35
|
image: import("zod").ZodString;
|
|
36
|
-
seed: import("zod").ZodNumber
|
|
36
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
37
37
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
38
|
name: string;
|
|
39
39
|
image: string;
|
|
40
40
|
apiTeamId: number;
|
|
41
41
|
score: number;
|
|
42
|
-
seed: number;
|
|
43
42
|
id?: string | undefined;
|
|
44
43
|
isWinner?: boolean | undefined;
|
|
44
|
+
seed?: number | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
name: string;
|
|
47
47
|
image: string;
|
|
48
48
|
apiTeamId: number;
|
|
49
49
|
score: number;
|
|
50
|
-
seed: number;
|
|
51
50
|
id?: string | undefined;
|
|
52
51
|
isWinner?: boolean | undefined;
|
|
52
|
+
seed?: number | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
awayTeam: import("zod").ZodObject<{
|
|
55
55
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -58,23 +58,23 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
58
58
|
score: import("zod").ZodNumber;
|
|
59
59
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
60
60
|
image: import("zod").ZodString;
|
|
61
|
-
seed: import("zod").ZodNumber
|
|
61
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
62
62
|
}, "strip", import("zod").ZodTypeAny, {
|
|
63
63
|
name: string;
|
|
64
64
|
image: string;
|
|
65
65
|
apiTeamId: number;
|
|
66
66
|
score: number;
|
|
67
|
-
seed: number;
|
|
68
67
|
id?: string | undefined;
|
|
69
68
|
isWinner?: boolean | undefined;
|
|
69
|
+
seed?: number | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
name: string;
|
|
72
72
|
image: string;
|
|
73
73
|
apiTeamId: number;
|
|
74
74
|
score: number;
|
|
75
|
-
seed: number;
|
|
76
75
|
id?: string | undefined;
|
|
77
76
|
isWinner?: boolean | undefined;
|
|
77
|
+
seed?: number | undefined;
|
|
78
78
|
}>;
|
|
79
79
|
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
80
80
|
homeTeamWins: import("zod").ZodNumber;
|
|
@@ -101,18 +101,18 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
101
101
|
image: string;
|
|
102
102
|
apiTeamId: number;
|
|
103
103
|
score: number;
|
|
104
|
-
seed: number;
|
|
105
104
|
id?: string | undefined;
|
|
106
105
|
isWinner?: boolean | undefined;
|
|
106
|
+
seed?: number | undefined;
|
|
107
107
|
};
|
|
108
108
|
awayTeam: {
|
|
109
109
|
name: string;
|
|
110
110
|
image: string;
|
|
111
111
|
apiTeamId: number;
|
|
112
112
|
score: number;
|
|
113
|
-
seed: number;
|
|
114
113
|
id?: string | undefined;
|
|
115
114
|
isWinner?: boolean | undefined;
|
|
115
|
+
seed?: number | undefined;
|
|
116
116
|
};
|
|
117
117
|
seriesInfo?: {
|
|
118
118
|
maxLength: number;
|
|
@@ -129,18 +129,18 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
129
129
|
image: string;
|
|
130
130
|
apiTeamId: number;
|
|
131
131
|
score: number;
|
|
132
|
-
seed: number;
|
|
133
132
|
id?: string | undefined;
|
|
134
133
|
isWinner?: boolean | undefined;
|
|
134
|
+
seed?: number | undefined;
|
|
135
135
|
};
|
|
136
136
|
awayTeam: {
|
|
137
137
|
name: string;
|
|
138
138
|
image: string;
|
|
139
139
|
apiTeamId: number;
|
|
140
140
|
score: number;
|
|
141
|
-
seed: number;
|
|
142
141
|
id?: string | undefined;
|
|
143
142
|
isWinner?: boolean | undefined;
|
|
143
|
+
seed?: number | undefined;
|
|
144
144
|
};
|
|
145
145
|
seriesInfo?: {
|
|
146
146
|
maxLength: number;
|
|
@@ -170,18 +170,18 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
170
170
|
image: string;
|
|
171
171
|
apiTeamId: number;
|
|
172
172
|
score: number;
|
|
173
|
-
seed: number;
|
|
174
173
|
id?: string | undefined;
|
|
175
174
|
isWinner?: boolean | undefined;
|
|
175
|
+
seed?: number | undefined;
|
|
176
176
|
};
|
|
177
177
|
awayTeam: {
|
|
178
178
|
name: string;
|
|
179
179
|
image: string;
|
|
180
180
|
apiTeamId: number;
|
|
181
181
|
score: number;
|
|
182
|
-
seed: number;
|
|
183
182
|
id?: string | undefined;
|
|
184
183
|
isWinner?: boolean | undefined;
|
|
184
|
+
seed?: number | undefined;
|
|
185
185
|
};
|
|
186
186
|
seriesInfo?: {
|
|
187
187
|
maxLength: number;
|
|
@@ -212,18 +212,18 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
212
212
|
image: string;
|
|
213
213
|
apiTeamId: number;
|
|
214
214
|
score: number;
|
|
215
|
-
seed: number;
|
|
216
215
|
id?: string | undefined;
|
|
217
216
|
isWinner?: boolean | undefined;
|
|
217
|
+
seed?: number | undefined;
|
|
218
218
|
};
|
|
219
219
|
awayTeam: {
|
|
220
220
|
name: string;
|
|
221
221
|
image: string;
|
|
222
222
|
apiTeamId: number;
|
|
223
223
|
score: number;
|
|
224
|
-
seed: number;
|
|
225
224
|
id?: string | undefined;
|
|
226
225
|
isWinner?: boolean | undefined;
|
|
226
|
+
seed?: number | undefined;
|
|
227
227
|
};
|
|
228
228
|
seriesInfo?: {
|
|
229
229
|
maxLength: number;
|
|
@@ -235,229 +235,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
235
235
|
comment?: string | undefined;
|
|
236
236
|
userLikes?: number | undefined;
|
|
237
237
|
}>;
|
|
238
|
-
export declare const mlbRatingSchema: import("zod").ZodObject<{
|
|
239
|
-
id: import("zod").ZodString;
|
|
240
|
-
createdAt: import("zod").ZodNumber;
|
|
241
|
-
rating: import("zod").ZodNumber;
|
|
242
|
-
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
243
|
-
user: import("zod").ZodObject<{
|
|
244
|
-
id: import("zod").ZodString;
|
|
245
|
-
username: import("zod").ZodString;
|
|
246
|
-
avatarUrl: import("zod").ZodString;
|
|
247
|
-
email: import("zod").ZodString;
|
|
248
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
250
|
-
id: string;
|
|
251
|
-
email: string;
|
|
252
|
-
username: string;
|
|
253
|
-
avatarUrl: string;
|
|
254
|
-
badge?: string | undefined;
|
|
255
|
-
}, {
|
|
256
|
-
id: string;
|
|
257
|
-
email: string;
|
|
258
|
-
username: string;
|
|
259
|
-
avatarUrl: string;
|
|
260
|
-
badge?: string | undefined;
|
|
261
|
-
}>;
|
|
262
|
-
game: import("zod").ZodObject<{
|
|
263
|
-
id: import("zod").ZodString;
|
|
264
|
-
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
265
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
266
|
-
homeTeam: import("zod").ZodObject<{
|
|
267
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
268
|
-
apiTeamId: import("zod").ZodNumber;
|
|
269
|
-
name: import("zod").ZodString;
|
|
270
|
-
score: import("zod").ZodNumber;
|
|
271
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
272
|
-
image: import("zod").ZodString;
|
|
273
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
274
|
-
name: string;
|
|
275
|
-
image: string;
|
|
276
|
-
apiTeamId: number;
|
|
277
|
-
score: number;
|
|
278
|
-
id?: string | undefined;
|
|
279
|
-
isWinner?: boolean | undefined;
|
|
280
|
-
}, {
|
|
281
|
-
name: string;
|
|
282
|
-
image: string;
|
|
283
|
-
apiTeamId: number;
|
|
284
|
-
score: number;
|
|
285
|
-
id?: string | undefined;
|
|
286
|
-
isWinner?: boolean | undefined;
|
|
287
|
-
}>;
|
|
288
|
-
awayTeam: import("zod").ZodObject<{
|
|
289
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
290
|
-
apiTeamId: import("zod").ZodNumber;
|
|
291
|
-
name: import("zod").ZodString;
|
|
292
|
-
score: import("zod").ZodNumber;
|
|
293
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
294
|
-
image: import("zod").ZodString;
|
|
295
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
296
|
-
name: string;
|
|
297
|
-
image: string;
|
|
298
|
-
apiTeamId: number;
|
|
299
|
-
score: number;
|
|
300
|
-
id?: string | undefined;
|
|
301
|
-
isWinner?: boolean | undefined;
|
|
302
|
-
}, {
|
|
303
|
-
name: string;
|
|
304
|
-
image: string;
|
|
305
|
-
apiTeamId: number;
|
|
306
|
-
score: number;
|
|
307
|
-
id?: string | undefined;
|
|
308
|
-
isWinner?: boolean | undefined;
|
|
309
|
-
}>;
|
|
310
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
311
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
312
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
313
|
-
gameNumber: import("zod").ZodNumber;
|
|
314
|
-
maxLength: import("zod").ZodNumber;
|
|
315
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
316
|
-
maxLength: number;
|
|
317
|
-
homeTeamWins: number;
|
|
318
|
-
awayTeamWins: number;
|
|
319
|
-
gameNumber: number;
|
|
320
|
-
}, {
|
|
321
|
-
maxLength: number;
|
|
322
|
-
homeTeamWins: number;
|
|
323
|
-
awayTeamWins: number;
|
|
324
|
-
gameNumber: number;
|
|
325
|
-
}>>;
|
|
326
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
327
|
-
id: string;
|
|
328
|
-
league: "nba" | "ncaa" | "mlb";
|
|
329
|
-
homeTeam: {
|
|
330
|
-
name: string;
|
|
331
|
-
image: string;
|
|
332
|
-
apiTeamId: number;
|
|
333
|
-
score: number;
|
|
334
|
-
id?: string | undefined;
|
|
335
|
-
isWinner?: boolean | undefined;
|
|
336
|
-
};
|
|
337
|
-
awayTeam: {
|
|
338
|
-
name: string;
|
|
339
|
-
image: string;
|
|
340
|
-
apiTeamId: number;
|
|
341
|
-
score: number;
|
|
342
|
-
id?: string | undefined;
|
|
343
|
-
isWinner?: boolean | undefined;
|
|
344
|
-
};
|
|
345
|
-
round?: number | undefined;
|
|
346
|
-
seriesInfo?: {
|
|
347
|
-
maxLength: number;
|
|
348
|
-
homeTeamWins: number;
|
|
349
|
-
awayTeamWins: number;
|
|
350
|
-
gameNumber: number;
|
|
351
|
-
} | undefined;
|
|
352
|
-
}, {
|
|
353
|
-
id: string;
|
|
354
|
-
league: "nba" | "ncaa" | "mlb";
|
|
355
|
-
homeTeam: {
|
|
356
|
-
name: string;
|
|
357
|
-
image: string;
|
|
358
|
-
apiTeamId: number;
|
|
359
|
-
score: number;
|
|
360
|
-
id?: string | undefined;
|
|
361
|
-
isWinner?: boolean | undefined;
|
|
362
|
-
};
|
|
363
|
-
awayTeam: {
|
|
364
|
-
name: string;
|
|
365
|
-
image: string;
|
|
366
|
-
apiTeamId: number;
|
|
367
|
-
score: number;
|
|
368
|
-
id?: string | undefined;
|
|
369
|
-
isWinner?: boolean | undefined;
|
|
370
|
-
};
|
|
371
|
-
round?: number | undefined;
|
|
372
|
-
seriesInfo?: {
|
|
373
|
-
maxLength: number;
|
|
374
|
-
homeTeamWins: number;
|
|
375
|
-
awayTeamWins: number;
|
|
376
|
-
gameNumber: number;
|
|
377
|
-
} | undefined;
|
|
378
|
-
}>;
|
|
379
|
-
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
380
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
381
|
-
id: string;
|
|
382
|
-
user: {
|
|
383
|
-
id: string;
|
|
384
|
-
email: string;
|
|
385
|
-
username: string;
|
|
386
|
-
avatarUrl: string;
|
|
387
|
-
badge?: string | undefined;
|
|
388
|
-
};
|
|
389
|
-
createdAt: number;
|
|
390
|
-
rating: number;
|
|
391
|
-
game: {
|
|
392
|
-
id: string;
|
|
393
|
-
league: "nba" | "ncaa" | "mlb";
|
|
394
|
-
homeTeam: {
|
|
395
|
-
name: string;
|
|
396
|
-
image: string;
|
|
397
|
-
apiTeamId: number;
|
|
398
|
-
score: number;
|
|
399
|
-
id?: string | undefined;
|
|
400
|
-
isWinner?: boolean | undefined;
|
|
401
|
-
};
|
|
402
|
-
awayTeam: {
|
|
403
|
-
name: string;
|
|
404
|
-
image: string;
|
|
405
|
-
apiTeamId: number;
|
|
406
|
-
score: number;
|
|
407
|
-
id?: string | undefined;
|
|
408
|
-
isWinner?: boolean | undefined;
|
|
409
|
-
};
|
|
410
|
-
round?: number | undefined;
|
|
411
|
-
seriesInfo?: {
|
|
412
|
-
maxLength: number;
|
|
413
|
-
homeTeamWins: number;
|
|
414
|
-
awayTeamWins: number;
|
|
415
|
-
gameNumber: number;
|
|
416
|
-
} | undefined;
|
|
417
|
-
};
|
|
418
|
-
comment?: string | undefined;
|
|
419
|
-
userLikes?: number | undefined;
|
|
420
|
-
}, {
|
|
421
|
-
id: string;
|
|
422
|
-
user: {
|
|
423
|
-
id: string;
|
|
424
|
-
email: string;
|
|
425
|
-
username: string;
|
|
426
|
-
avatarUrl: string;
|
|
427
|
-
badge?: string | undefined;
|
|
428
|
-
};
|
|
429
|
-
createdAt: number;
|
|
430
|
-
rating: number;
|
|
431
|
-
game: {
|
|
432
|
-
id: string;
|
|
433
|
-
league: "nba" | "ncaa" | "mlb";
|
|
434
|
-
homeTeam: {
|
|
435
|
-
name: string;
|
|
436
|
-
image: string;
|
|
437
|
-
apiTeamId: number;
|
|
438
|
-
score: number;
|
|
439
|
-
id?: string | undefined;
|
|
440
|
-
isWinner?: boolean | undefined;
|
|
441
|
-
};
|
|
442
|
-
awayTeam: {
|
|
443
|
-
name: string;
|
|
444
|
-
image: string;
|
|
445
|
-
apiTeamId: number;
|
|
446
|
-
score: number;
|
|
447
|
-
id?: string | undefined;
|
|
448
|
-
isWinner?: boolean | undefined;
|
|
449
|
-
};
|
|
450
|
-
round?: number | undefined;
|
|
451
|
-
seriesInfo?: {
|
|
452
|
-
maxLength: number;
|
|
453
|
-
homeTeamWins: number;
|
|
454
|
-
awayTeamWins: number;
|
|
455
|
-
gameNumber: number;
|
|
456
|
-
} | undefined;
|
|
457
|
-
};
|
|
458
|
-
comment?: string | undefined;
|
|
459
|
-
userLikes?: number | undefined;
|
|
460
|
-
}>;
|
|
461
238
|
export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
462
239
|
q: import("zod").ZodOptional<import("zod").ZodString>;
|
|
463
240
|
teamId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -605,23 +382,23 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
605
382
|
score: import("zod").ZodNumber;
|
|
606
383
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
607
384
|
image: import("zod").ZodString;
|
|
608
|
-
seed: import("zod").ZodNumber
|
|
385
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
609
386
|
}, "strip", import("zod").ZodTypeAny, {
|
|
610
387
|
name: string;
|
|
611
388
|
image: string;
|
|
612
389
|
apiTeamId: number;
|
|
613
390
|
score: number;
|
|
614
|
-
seed: number;
|
|
615
391
|
id?: string | undefined;
|
|
616
392
|
isWinner?: boolean | undefined;
|
|
393
|
+
seed?: number | undefined;
|
|
617
394
|
}, {
|
|
618
395
|
name: string;
|
|
619
396
|
image: string;
|
|
620
397
|
apiTeamId: number;
|
|
621
398
|
score: number;
|
|
622
|
-
seed: number;
|
|
623
399
|
id?: string | undefined;
|
|
624
400
|
isWinner?: boolean | undefined;
|
|
401
|
+
seed?: number | undefined;
|
|
625
402
|
}>;
|
|
626
403
|
awayTeam: import("zod").ZodObject<{
|
|
627
404
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -630,23 +407,23 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
630
407
|
score: import("zod").ZodNumber;
|
|
631
408
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
632
409
|
image: import("zod").ZodString;
|
|
633
|
-
seed: import("zod").ZodNumber
|
|
410
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
634
411
|
}, "strip", import("zod").ZodTypeAny, {
|
|
635
412
|
name: string;
|
|
636
413
|
image: string;
|
|
637
414
|
apiTeamId: number;
|
|
638
415
|
score: number;
|
|
639
|
-
seed: number;
|
|
640
416
|
id?: string | undefined;
|
|
641
417
|
isWinner?: boolean | undefined;
|
|
418
|
+
seed?: number | undefined;
|
|
642
419
|
}, {
|
|
643
420
|
name: string;
|
|
644
421
|
image: string;
|
|
645
422
|
apiTeamId: number;
|
|
646
423
|
score: number;
|
|
647
|
-
seed: number;
|
|
648
424
|
id?: string | undefined;
|
|
649
425
|
isWinner?: boolean | undefined;
|
|
426
|
+
seed?: number | undefined;
|
|
650
427
|
}>;
|
|
651
428
|
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
652
429
|
homeTeamWins: import("zod").ZodNumber;
|
|
@@ -673,18 +450,18 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
673
450
|
image: string;
|
|
674
451
|
apiTeamId: number;
|
|
675
452
|
score: number;
|
|
676
|
-
seed: number;
|
|
677
453
|
id?: string | undefined;
|
|
678
454
|
isWinner?: boolean | undefined;
|
|
455
|
+
seed?: number | undefined;
|
|
679
456
|
};
|
|
680
457
|
awayTeam: {
|
|
681
458
|
name: string;
|
|
682
459
|
image: string;
|
|
683
460
|
apiTeamId: number;
|
|
684
461
|
score: number;
|
|
685
|
-
seed: number;
|
|
686
462
|
id?: string | undefined;
|
|
687
463
|
isWinner?: boolean | undefined;
|
|
464
|
+
seed?: number | undefined;
|
|
688
465
|
};
|
|
689
466
|
seriesInfo?: {
|
|
690
467
|
maxLength: number;
|
|
@@ -701,18 +478,18 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
701
478
|
image: string;
|
|
702
479
|
apiTeamId: number;
|
|
703
480
|
score: number;
|
|
704
|
-
seed: number;
|
|
705
481
|
id?: string | undefined;
|
|
706
482
|
isWinner?: boolean | undefined;
|
|
483
|
+
seed?: number | undefined;
|
|
707
484
|
};
|
|
708
485
|
awayTeam: {
|
|
709
486
|
name: string;
|
|
710
487
|
image: string;
|
|
711
488
|
apiTeamId: number;
|
|
712
489
|
score: number;
|
|
713
|
-
seed: number;
|
|
714
490
|
id?: string | undefined;
|
|
715
491
|
isWinner?: boolean | undefined;
|
|
492
|
+
seed?: number | undefined;
|
|
716
493
|
};
|
|
717
494
|
seriesInfo?: {
|
|
718
495
|
maxLength: number;
|
|
@@ -734,270 +511,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
734
511
|
score: import("zod").ZodNumber;
|
|
735
512
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
736
513
|
image: import("zod").ZodString;
|
|
737
|
-
seed: import("zod").ZodNumber
|
|
738
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
739
|
-
name: string;
|
|
740
|
-
image: string;
|
|
741
|
-
apiTeamId: number;
|
|
742
|
-
score: number;
|
|
743
|
-
seed: number;
|
|
744
|
-
id?: string | undefined;
|
|
745
|
-
isWinner?: boolean | undefined;
|
|
746
|
-
}, {
|
|
747
|
-
name: string;
|
|
748
|
-
image: string;
|
|
749
|
-
apiTeamId: number;
|
|
750
|
-
score: number;
|
|
751
|
-
seed: number;
|
|
752
|
-
id?: string | undefined;
|
|
753
|
-
isWinner?: boolean | undefined;
|
|
754
|
-
}>;
|
|
755
|
-
awayTeam: import("zod").ZodObject<{
|
|
756
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
757
|
-
apiTeamId: import("zod").ZodNumber;
|
|
758
|
-
name: import("zod").ZodString;
|
|
759
|
-
score: import("zod").ZodNumber;
|
|
760
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
761
|
-
image: import("zod").ZodString;
|
|
762
|
-
seed: import("zod").ZodNumber;
|
|
763
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
764
|
-
name: string;
|
|
765
|
-
image: string;
|
|
766
|
-
apiTeamId: number;
|
|
767
|
-
score: number;
|
|
768
|
-
seed: number;
|
|
769
|
-
id?: string | undefined;
|
|
770
|
-
isWinner?: boolean | undefined;
|
|
771
|
-
}, {
|
|
772
|
-
name: string;
|
|
773
|
-
image: string;
|
|
774
|
-
apiTeamId: number;
|
|
775
|
-
score: number;
|
|
776
|
-
seed: number;
|
|
777
|
-
id?: string | undefined;
|
|
778
|
-
isWinner?: boolean | undefined;
|
|
779
|
-
}>;
|
|
780
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
781
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
782
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
783
|
-
gameNumber: import("zod").ZodNumber;
|
|
784
|
-
maxLength: import("zod").ZodNumber;
|
|
785
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
786
|
-
maxLength: number;
|
|
787
|
-
homeTeamWins: number;
|
|
788
|
-
awayTeamWins: number;
|
|
789
|
-
gameNumber: number;
|
|
790
|
-
}, {
|
|
791
|
-
maxLength: number;
|
|
792
|
-
homeTeamWins: number;
|
|
793
|
-
awayTeamWins: number;
|
|
794
|
-
gameNumber: number;
|
|
795
|
-
}>>;
|
|
796
|
-
}, "round" | "homeTeam" | "awayTeam">, "strip", import("zod").ZodTypeAny, {
|
|
797
|
-
id: string;
|
|
798
|
-
league: "nba" | "ncaa" | "mlb";
|
|
799
|
-
seriesInfo?: {
|
|
800
|
-
maxLength: number;
|
|
801
|
-
homeTeamWins: number;
|
|
802
|
-
awayTeamWins: number;
|
|
803
|
-
gameNumber: number;
|
|
804
|
-
} | undefined;
|
|
805
|
-
}, {
|
|
806
|
-
id: string;
|
|
807
|
-
league: "nba" | "ncaa" | "mlb";
|
|
808
|
-
seriesInfo?: {
|
|
809
|
-
maxLength: number;
|
|
810
|
-
homeTeamWins: number;
|
|
811
|
-
awayTeamWins: number;
|
|
812
|
-
gameNumber: number;
|
|
813
|
-
} | undefined;
|
|
814
|
-
}>;
|
|
815
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
816
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
817
|
-
rating: number;
|
|
818
|
-
game: {
|
|
819
|
-
id: string;
|
|
820
|
-
league: "nba" | "ncaa" | "mlb";
|
|
821
|
-
seriesInfo?: {
|
|
822
|
-
maxLength: number;
|
|
823
|
-
homeTeamWins: number;
|
|
824
|
-
awayTeamWins: number;
|
|
825
|
-
gameNumber: number;
|
|
826
|
-
} | undefined;
|
|
827
|
-
};
|
|
828
|
-
id?: string | undefined;
|
|
829
|
-
comment?: string | undefined;
|
|
830
|
-
userLikes?: number | undefined;
|
|
831
|
-
}, {
|
|
832
|
-
rating: number;
|
|
833
|
-
game: {
|
|
834
|
-
id: string;
|
|
835
|
-
league: "nba" | "ncaa" | "mlb";
|
|
836
|
-
seriesInfo?: {
|
|
837
|
-
maxLength: number;
|
|
838
|
-
homeTeamWins: number;
|
|
839
|
-
awayTeamWins: number;
|
|
840
|
-
gameNumber: number;
|
|
841
|
-
} | undefined;
|
|
842
|
-
};
|
|
843
|
-
id?: string | undefined;
|
|
844
|
-
comment?: string | undefined;
|
|
845
|
-
userLikes?: number | undefined;
|
|
846
|
-
}>;
|
|
847
|
-
export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
|
|
848
|
-
id: import("zod").ZodString;
|
|
849
|
-
createdAt: import("zod").ZodNumber;
|
|
850
|
-
rating: import("zod").ZodNumber;
|
|
851
|
-
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
852
|
-
user: import("zod").ZodObject<{
|
|
853
|
-
id: import("zod").ZodString;
|
|
854
|
-
username: import("zod").ZodString;
|
|
855
|
-
avatarUrl: import("zod").ZodString;
|
|
856
|
-
email: import("zod").ZodString;
|
|
857
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
858
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
859
|
-
id: string;
|
|
860
|
-
email: string;
|
|
861
|
-
username: string;
|
|
862
|
-
avatarUrl: string;
|
|
863
|
-
badge?: string | undefined;
|
|
864
|
-
}, {
|
|
865
|
-
id: string;
|
|
866
|
-
email: string;
|
|
867
|
-
username: string;
|
|
868
|
-
avatarUrl: string;
|
|
869
|
-
badge?: string | undefined;
|
|
870
|
-
}>;
|
|
871
|
-
game: import("zod").ZodObject<{
|
|
872
|
-
id: import("zod").ZodString;
|
|
873
|
-
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
874
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
875
|
-
homeTeam: import("zod").ZodObject<{
|
|
876
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
877
|
-
apiTeamId: import("zod").ZodNumber;
|
|
878
|
-
name: import("zod").ZodString;
|
|
879
|
-
score: import("zod").ZodNumber;
|
|
880
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
881
|
-
image: import("zod").ZodString;
|
|
882
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
883
|
-
name: string;
|
|
884
|
-
image: string;
|
|
885
|
-
apiTeamId: number;
|
|
886
|
-
score: number;
|
|
887
|
-
id?: string | undefined;
|
|
888
|
-
isWinner?: boolean | undefined;
|
|
889
|
-
}, {
|
|
890
|
-
name: string;
|
|
891
|
-
image: string;
|
|
892
|
-
apiTeamId: number;
|
|
893
|
-
score: number;
|
|
894
|
-
id?: string | undefined;
|
|
895
|
-
isWinner?: boolean | undefined;
|
|
896
|
-
}>;
|
|
897
|
-
awayTeam: import("zod").ZodObject<{
|
|
898
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
899
|
-
apiTeamId: import("zod").ZodNumber;
|
|
900
|
-
name: import("zod").ZodString;
|
|
901
|
-
score: import("zod").ZodNumber;
|
|
902
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
903
|
-
image: import("zod").ZodString;
|
|
904
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
905
|
-
name: string;
|
|
906
|
-
image: string;
|
|
907
|
-
apiTeamId: number;
|
|
908
|
-
score: number;
|
|
909
|
-
id?: string | undefined;
|
|
910
|
-
isWinner?: boolean | undefined;
|
|
911
|
-
}, {
|
|
912
|
-
name: string;
|
|
913
|
-
image: string;
|
|
914
|
-
apiTeamId: number;
|
|
915
|
-
score: number;
|
|
916
|
-
id?: string | undefined;
|
|
917
|
-
isWinner?: boolean | undefined;
|
|
918
|
-
}>;
|
|
919
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
920
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
921
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
922
|
-
gameNumber: import("zod").ZodNumber;
|
|
923
|
-
maxLength: import("zod").ZodNumber;
|
|
924
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
925
|
-
maxLength: number;
|
|
926
|
-
homeTeamWins: number;
|
|
927
|
-
awayTeamWins: number;
|
|
928
|
-
gameNumber: number;
|
|
929
|
-
}, {
|
|
930
|
-
maxLength: number;
|
|
931
|
-
homeTeamWins: number;
|
|
932
|
-
awayTeamWins: number;
|
|
933
|
-
gameNumber: number;
|
|
934
|
-
}>>;
|
|
935
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
936
|
-
id: string;
|
|
937
|
-
league: "nba" | "ncaa" | "mlb";
|
|
938
|
-
homeTeam: {
|
|
939
|
-
name: string;
|
|
940
|
-
image: string;
|
|
941
|
-
apiTeamId: number;
|
|
942
|
-
score: number;
|
|
943
|
-
id?: string | undefined;
|
|
944
|
-
isWinner?: boolean | undefined;
|
|
945
|
-
};
|
|
946
|
-
awayTeam: {
|
|
947
|
-
name: string;
|
|
948
|
-
image: string;
|
|
949
|
-
apiTeamId: number;
|
|
950
|
-
score: number;
|
|
951
|
-
id?: string | undefined;
|
|
952
|
-
isWinner?: boolean | undefined;
|
|
953
|
-
};
|
|
954
|
-
round?: number | undefined;
|
|
955
|
-
seriesInfo?: {
|
|
956
|
-
maxLength: number;
|
|
957
|
-
homeTeamWins: number;
|
|
958
|
-
awayTeamWins: number;
|
|
959
|
-
gameNumber: number;
|
|
960
|
-
} | undefined;
|
|
961
|
-
}, {
|
|
962
|
-
id: string;
|
|
963
|
-
league: "nba" | "ncaa" | "mlb";
|
|
964
|
-
homeTeam: {
|
|
965
|
-
name: string;
|
|
966
|
-
image: string;
|
|
967
|
-
apiTeamId: number;
|
|
968
|
-
score: number;
|
|
969
|
-
id?: string | undefined;
|
|
970
|
-
isWinner?: boolean | undefined;
|
|
971
|
-
};
|
|
972
|
-
awayTeam: {
|
|
973
|
-
name: string;
|
|
974
|
-
image: string;
|
|
975
|
-
apiTeamId: number;
|
|
976
|
-
score: number;
|
|
977
|
-
id?: string | undefined;
|
|
978
|
-
isWinner?: boolean | undefined;
|
|
979
|
-
};
|
|
980
|
-
round?: number | undefined;
|
|
981
|
-
seriesInfo?: {
|
|
982
|
-
maxLength: number;
|
|
983
|
-
homeTeamWins: number;
|
|
984
|
-
awayTeamWins: number;
|
|
985
|
-
gameNumber: number;
|
|
986
|
-
} | undefined;
|
|
987
|
-
}>;
|
|
988
|
-
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
989
|
-
}, "id" | "user" | "createdAt">, {
|
|
990
|
-
game: import("zod").ZodObject<Omit<{
|
|
991
|
-
id: import("zod").ZodString;
|
|
992
|
-
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
993
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">]>;
|
|
994
|
-
homeTeam: import("zod").ZodObject<{
|
|
995
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
996
|
-
apiTeamId: import("zod").ZodNumber;
|
|
997
|
-
name: import("zod").ZodString;
|
|
998
|
-
score: import("zod").ZodNumber;
|
|
999
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1000
|
-
image: import("zod").ZodString;
|
|
514
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1001
515
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1002
516
|
name: string;
|
|
1003
517
|
image: string;
|
|
@@ -1005,6 +519,7 @@ export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod"
|
|
|
1005
519
|
score: number;
|
|
1006
520
|
id?: string | undefined;
|
|
1007
521
|
isWinner?: boolean | undefined;
|
|
522
|
+
seed?: number | undefined;
|
|
1008
523
|
}, {
|
|
1009
524
|
name: string;
|
|
1010
525
|
image: string;
|
|
@@ -1012,6 +527,7 @@ export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod"
|
|
|
1012
527
|
score: number;
|
|
1013
528
|
id?: string | undefined;
|
|
1014
529
|
isWinner?: boolean | undefined;
|
|
530
|
+
seed?: number | undefined;
|
|
1015
531
|
}>;
|
|
1016
532
|
awayTeam: import("zod").ZodObject<{
|
|
1017
533
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1020,6 +536,7 @@ export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod"
|
|
|
1020
536
|
score: import("zod").ZodNumber;
|
|
1021
537
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1022
538
|
image: import("zod").ZodString;
|
|
539
|
+
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1023
540
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1024
541
|
name: string;
|
|
1025
542
|
image: string;
|
|
@@ -1027,6 +544,7 @@ export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod"
|
|
|
1027
544
|
score: number;
|
|
1028
545
|
id?: string | undefined;
|
|
1029
546
|
isWinner?: boolean | undefined;
|
|
547
|
+
seed?: number | undefined;
|
|
1030
548
|
}, {
|
|
1031
549
|
name: string;
|
|
1032
550
|
image: string;
|
|
@@ -1034,6 +552,7 @@ export declare const createMLBRatingSchema: import("zod").ZodObject<import("zod"
|
|
|
1034
552
|
score: number;
|
|
1035
553
|
id?: string | undefined;
|
|
1036
554
|
isWinner?: boolean | undefined;
|
|
555
|
+
seed?: number | undefined;
|
|
1037
556
|
}>;
|
|
1038
557
|
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1039
558
|
homeTeamWins: import("zod").ZodNumber;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createRatingSchema = exports.createAgreeRatingSchema = exports.ratingLikeSchema = exports.searchRatingSchema = exports.ratingSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const game_1 = require("./game");
|
|
6
6
|
exports.ratingSchema = (0, zod_1.object)({
|
|
@@ -25,28 +25,6 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
25
25
|
}),
|
|
26
26
|
userLikes: (0, zod_1.number)().optional(),
|
|
27
27
|
});
|
|
28
|
-
exports.mlbRatingSchema = (0, zod_1.object)({
|
|
29
|
-
id: (0, zod_1.string)(),
|
|
30
|
-
createdAt: (0, zod_1.number)(),
|
|
31
|
-
rating: (0, zod_1.number)(),
|
|
32
|
-
comment: (0, zod_1.string)().optional(),
|
|
33
|
-
user: (0, zod_1.object)({
|
|
34
|
-
id: (0, zod_1.string)(),
|
|
35
|
-
username: (0, zod_1.string)(),
|
|
36
|
-
avatarUrl: (0, zod_1.string)(),
|
|
37
|
-
email: (0, zod_1.string)(),
|
|
38
|
-
badge: (0, zod_1.string)().optional(),
|
|
39
|
-
}),
|
|
40
|
-
game: (0, zod_1.object)({
|
|
41
|
-
id: (0, zod_1.string)(),
|
|
42
|
-
round: (0, zod_1.number)().optional(),
|
|
43
|
-
league: (0, zod_1.union)([(0, zod_1.literal)("ncaa"), (0, zod_1.literal)("nba"), (0, zod_1.literal)("mlb")]),
|
|
44
|
-
homeTeam: game_1.mlbGameTeamSchema,
|
|
45
|
-
awayTeam: game_1.mlbGameTeamSchema,
|
|
46
|
-
seriesInfo: game_1.seriesInfoSchema.optional(),
|
|
47
|
-
}),
|
|
48
|
-
userLikes: (0, zod_1.number)().optional(),
|
|
49
|
-
});
|
|
50
28
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
51
29
|
q: (0, zod_1.string)().optional(),
|
|
52
30
|
teamId: (0, zod_1.string)().optional(),
|
|
@@ -106,17 +84,3 @@ exports.createRatingSchema = exports.ratingSchema
|
|
|
106
84
|
}),
|
|
107
85
|
id: (0, zod_1.string)().optional(),
|
|
108
86
|
});
|
|
109
|
-
exports.createMLBRatingSchema = exports.mlbRatingSchema
|
|
110
|
-
.omit({
|
|
111
|
-
id: true,
|
|
112
|
-
createdAt: true,
|
|
113
|
-
user: true,
|
|
114
|
-
})
|
|
115
|
-
.extend({
|
|
116
|
-
game: exports.mlbRatingSchema.shape.game.omit({
|
|
117
|
-
round: true,
|
|
118
|
-
homeTeam: true,
|
|
119
|
-
awayTeam: true,
|
|
120
|
-
}),
|
|
121
|
-
id: (0, zod_1.string)().optional(),
|
|
122
|
-
});
|