rategame-shared 1.1.61 → 1.1.63
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/game.d.ts +10 -10
- package/dist/schemas/game.js +1 -1
- package/dist/schemas/notification.d.ts +22 -22
- package/dist/schemas/rating.d.ts +24 -24
- package/dist/schemas/rating.js +1 -1
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -2170,15 +2170,15 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
2170
2170
|
periods: z.ZodArray<z.ZodObject<{
|
|
2171
2171
|
awayScore: z.ZodNumber;
|
|
2172
2172
|
homeScore: z.ZodNumber;
|
|
2173
|
-
|
|
2173
|
+
periodName: z.ZodString;
|
|
2174
2174
|
}, "strip", z.ZodTypeAny, {
|
|
2175
2175
|
awayScore: number;
|
|
2176
2176
|
homeScore: number;
|
|
2177
|
-
|
|
2177
|
+
periodName: string;
|
|
2178
2178
|
}, {
|
|
2179
2179
|
awayScore: number;
|
|
2180
2180
|
homeScore: number;
|
|
2181
|
-
|
|
2181
|
+
periodName: string;
|
|
2182
2182
|
}>, "many">;
|
|
2183
2183
|
stadium: z.ZodOptional<z.ZodObject<{
|
|
2184
2184
|
StadiumID: z.ZodNumber;
|
|
@@ -2243,7 +2243,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
2243
2243
|
periods: {
|
|
2244
2244
|
awayScore: number;
|
|
2245
2245
|
homeScore: number;
|
|
2246
|
-
|
|
2246
|
+
periodName: string;
|
|
2247
2247
|
}[];
|
|
2248
2248
|
attendance: number;
|
|
2249
2249
|
possession: string | null;
|
|
@@ -2314,7 +2314,7 @@ export declare const cfbGameSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
2314
2314
|
periods: {
|
|
2315
2315
|
awayScore: number;
|
|
2316
2316
|
homeScore: number;
|
|
2317
|
-
|
|
2317
|
+
periodName: string;
|
|
2318
2318
|
}[];
|
|
2319
2319
|
attendance: number;
|
|
2320
2320
|
possession: string | null;
|
|
@@ -3650,15 +3650,15 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
3650
3650
|
periods: z.ZodArray<z.ZodObject<{
|
|
3651
3651
|
awayScore: z.ZodNumber;
|
|
3652
3652
|
homeScore: z.ZodNumber;
|
|
3653
|
-
|
|
3653
|
+
periodName: z.ZodString;
|
|
3654
3654
|
}, "strip", z.ZodTypeAny, {
|
|
3655
3655
|
awayScore: number;
|
|
3656
3656
|
homeScore: number;
|
|
3657
|
-
|
|
3657
|
+
periodName: string;
|
|
3658
3658
|
}, {
|
|
3659
3659
|
awayScore: number;
|
|
3660
3660
|
homeScore: number;
|
|
3661
|
-
|
|
3661
|
+
periodName: string;
|
|
3662
3662
|
}>, "many">;
|
|
3663
3663
|
stadium: z.ZodOptional<z.ZodObject<{
|
|
3664
3664
|
StadiumID: z.ZodNumber;
|
|
@@ -3723,7 +3723,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
3723
3723
|
periods: {
|
|
3724
3724
|
awayScore: number;
|
|
3725
3725
|
homeScore: number;
|
|
3726
|
-
|
|
3726
|
+
periodName: string;
|
|
3727
3727
|
}[];
|
|
3728
3728
|
attendance: number;
|
|
3729
3729
|
possession: string | null;
|
|
@@ -3794,7 +3794,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
3794
3794
|
periods: {
|
|
3795
3795
|
awayScore: number;
|
|
3796
3796
|
homeScore: number;
|
|
3797
|
-
|
|
3797
|
+
periodName: string;
|
|
3798
3798
|
}[];
|
|
3799
3799
|
attendance: number;
|
|
3800
3800
|
possession: string | null;
|
package/dist/schemas/game.js
CHANGED
|
@@ -228,7 +228,7 @@ exports.cfbGameSchema = americanFootballGameSchema.extend({
|
|
|
228
228
|
periods: zod_1.z.array(zod_1.z.object({
|
|
229
229
|
awayScore: zod_1.z.number(),
|
|
230
230
|
homeScore: zod_1.z.number(),
|
|
231
|
-
|
|
231
|
+
periodName: zod_1.z.string(),
|
|
232
232
|
})),
|
|
233
233
|
stadium: cfbStadiumSchema.optional(),
|
|
234
234
|
attendance: zod_1.z.number(),
|
|
@@ -203,7 +203,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
203
203
|
} | undefined;
|
|
204
204
|
}>;
|
|
205
205
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
206
|
-
ratings: z.ZodObject<{
|
|
206
|
+
ratings: z.ZodOptional<z.ZodObject<{
|
|
207
207
|
initialWindowRating: z.ZodOptional<z.ZodNumber>;
|
|
208
208
|
normalRating: z.ZodOptional<z.ZodNumber>;
|
|
209
209
|
weightedRating: z.ZodOptional<z.ZodNumber>;
|
|
@@ -215,7 +215,7 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
215
215
|
initialWindowRating?: number | undefined;
|
|
216
216
|
normalRating?: number | undefined;
|
|
217
217
|
weightedRating?: number | undefined;
|
|
218
|
-
}
|
|
218
|
+
}>>;
|
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
|
220
220
|
id: string;
|
|
221
221
|
user: {
|
|
@@ -227,11 +227,6 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
227
227
|
};
|
|
228
228
|
createdAt: number;
|
|
229
229
|
rating: number;
|
|
230
|
-
ratings: {
|
|
231
|
-
initialWindowRating?: number | undefined;
|
|
232
|
-
normalRating?: number | undefined;
|
|
233
|
-
weightedRating?: number | undefined;
|
|
234
|
-
};
|
|
235
230
|
game: {
|
|
236
231
|
id: string;
|
|
237
232
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -266,6 +261,11 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
266
261
|
gameNumber: number;
|
|
267
262
|
} | undefined;
|
|
268
263
|
};
|
|
264
|
+
ratings?: {
|
|
265
|
+
initialWindowRating?: number | undefined;
|
|
266
|
+
normalRating?: number | undefined;
|
|
267
|
+
weightedRating?: number | undefined;
|
|
268
|
+
} | undefined;
|
|
269
269
|
comment?: string | undefined;
|
|
270
270
|
userLikes?: number | undefined;
|
|
271
271
|
}, {
|
|
@@ -279,11 +279,6 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
279
279
|
};
|
|
280
280
|
createdAt: number;
|
|
281
281
|
rating: number;
|
|
282
|
-
ratings: {
|
|
283
|
-
initialWindowRating?: number | undefined;
|
|
284
|
-
normalRating?: number | undefined;
|
|
285
|
-
weightedRating?: number | undefined;
|
|
286
|
-
};
|
|
287
282
|
game: {
|
|
288
283
|
id: string;
|
|
289
284
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -318,6 +313,11 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
318
313
|
gameNumber: number;
|
|
319
314
|
} | undefined;
|
|
320
315
|
};
|
|
316
|
+
ratings?: {
|
|
317
|
+
initialWindowRating?: number | undefined;
|
|
318
|
+
normalRating?: number | undefined;
|
|
319
|
+
weightedRating?: number | undefined;
|
|
320
|
+
} | undefined;
|
|
321
321
|
comment?: string | undefined;
|
|
322
322
|
userLikes?: number | undefined;
|
|
323
323
|
}>>;
|
|
@@ -348,11 +348,6 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
348
348
|
};
|
|
349
349
|
createdAt: number;
|
|
350
350
|
rating: number;
|
|
351
|
-
ratings: {
|
|
352
|
-
initialWindowRating?: number | undefined;
|
|
353
|
-
normalRating?: number | undefined;
|
|
354
|
-
weightedRating?: number | undefined;
|
|
355
|
-
};
|
|
356
351
|
game: {
|
|
357
352
|
id: string;
|
|
358
353
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -387,6 +382,11 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
387
382
|
gameNumber: number;
|
|
388
383
|
} | undefined;
|
|
389
384
|
};
|
|
385
|
+
ratings?: {
|
|
386
|
+
initialWindowRating?: number | undefined;
|
|
387
|
+
normalRating?: number | undefined;
|
|
388
|
+
weightedRating?: number | undefined;
|
|
389
|
+
} | undefined;
|
|
390
390
|
comment?: string | undefined;
|
|
391
391
|
userLikes?: number | undefined;
|
|
392
392
|
} | undefined;
|
|
@@ -418,11 +418,6 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
418
418
|
};
|
|
419
419
|
createdAt: number;
|
|
420
420
|
rating: number;
|
|
421
|
-
ratings: {
|
|
422
|
-
initialWindowRating?: number | undefined;
|
|
423
|
-
normalRating?: number | undefined;
|
|
424
|
-
weightedRating?: number | undefined;
|
|
425
|
-
};
|
|
426
421
|
game: {
|
|
427
422
|
id: string;
|
|
428
423
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -457,6 +452,11 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
457
452
|
gameNumber: number;
|
|
458
453
|
} | undefined;
|
|
459
454
|
};
|
|
455
|
+
ratings?: {
|
|
456
|
+
initialWindowRating?: number | undefined;
|
|
457
|
+
normalRating?: number | undefined;
|
|
458
|
+
weightedRating?: number | undefined;
|
|
459
|
+
} | undefined;
|
|
460
460
|
comment?: string | undefined;
|
|
461
461
|
userLikes?: number | undefined;
|
|
462
462
|
} | undefined;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
173
173
|
} | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
176
|
-
ratings: import("zod").ZodObject<{
|
|
176
|
+
ratings: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
177
177
|
initialWindowRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
178
178
|
normalRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
179
179
|
weightedRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -185,7 +185,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
185
185
|
initialWindowRating?: number | undefined;
|
|
186
186
|
normalRating?: number | undefined;
|
|
187
187
|
weightedRating?: number | undefined;
|
|
188
|
-
}
|
|
188
|
+
}>>;
|
|
189
189
|
}, "strip", import("zod").ZodTypeAny, {
|
|
190
190
|
id: string;
|
|
191
191
|
user: {
|
|
@@ -197,11 +197,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
197
197
|
};
|
|
198
198
|
createdAt: number;
|
|
199
199
|
rating: number;
|
|
200
|
-
ratings: {
|
|
201
|
-
initialWindowRating?: number | undefined;
|
|
202
|
-
normalRating?: number | undefined;
|
|
203
|
-
weightedRating?: number | undefined;
|
|
204
|
-
};
|
|
205
200
|
game: {
|
|
206
201
|
id: string;
|
|
207
202
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -236,6 +231,11 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
236
231
|
gameNumber: number;
|
|
237
232
|
} | undefined;
|
|
238
233
|
};
|
|
234
|
+
ratings?: {
|
|
235
|
+
initialWindowRating?: number | undefined;
|
|
236
|
+
normalRating?: number | undefined;
|
|
237
|
+
weightedRating?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
239
|
comment?: string | undefined;
|
|
240
240
|
userLikes?: number | undefined;
|
|
241
241
|
}, {
|
|
@@ -249,11 +249,6 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
249
249
|
};
|
|
250
250
|
createdAt: number;
|
|
251
251
|
rating: number;
|
|
252
|
-
ratings: {
|
|
253
|
-
initialWindowRating?: number | undefined;
|
|
254
|
-
normalRating?: number | undefined;
|
|
255
|
-
weightedRating?: number | undefined;
|
|
256
|
-
};
|
|
257
252
|
game: {
|
|
258
253
|
id: string;
|
|
259
254
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -288,6 +283,11 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
288
283
|
gameNumber: number;
|
|
289
284
|
} | undefined;
|
|
290
285
|
};
|
|
286
|
+
ratings?: {
|
|
287
|
+
initialWindowRating?: number | undefined;
|
|
288
|
+
normalRating?: number | undefined;
|
|
289
|
+
weightedRating?: number | undefined;
|
|
290
|
+
} | undefined;
|
|
291
291
|
comment?: string | undefined;
|
|
292
292
|
userLikes?: number | undefined;
|
|
293
293
|
}>;
|
|
@@ -584,7 +584,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
584
584
|
} | undefined;
|
|
585
585
|
}>;
|
|
586
586
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
587
|
-
ratings: import("zod").ZodObject<{
|
|
587
|
+
ratings: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
588
588
|
initialWindowRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
589
589
|
normalRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
590
590
|
weightedRating: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -596,7 +596,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
596
596
|
initialWindowRating?: number | undefined;
|
|
597
597
|
normalRating?: number | undefined;
|
|
598
598
|
weightedRating?: number | undefined;
|
|
599
|
-
}
|
|
599
|
+
}>>;
|
|
600
600
|
}, "id" | "user" | "createdAt">, {
|
|
601
601
|
game: import("zod").ZodObject<Omit<{
|
|
602
602
|
id: import("zod").ZodString;
|
|
@@ -705,11 +705,6 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
705
705
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
706
706
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
707
707
|
rating: number;
|
|
708
|
-
ratings: {
|
|
709
|
-
initialWindowRating?: number | undefined;
|
|
710
|
-
normalRating?: number | undefined;
|
|
711
|
-
weightedRating?: number | undefined;
|
|
712
|
-
};
|
|
713
708
|
game: {
|
|
714
709
|
id: string;
|
|
715
710
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -722,15 +717,15 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
722
717
|
} | undefined;
|
|
723
718
|
};
|
|
724
719
|
id?: string | undefined;
|
|
720
|
+
ratings?: {
|
|
721
|
+
initialWindowRating?: number | undefined;
|
|
722
|
+
normalRating?: number | undefined;
|
|
723
|
+
weightedRating?: number | undefined;
|
|
724
|
+
} | undefined;
|
|
725
725
|
comment?: string | undefined;
|
|
726
726
|
userLikes?: number | undefined;
|
|
727
727
|
}, {
|
|
728
728
|
rating: number;
|
|
729
|
-
ratings: {
|
|
730
|
-
initialWindowRating?: number | undefined;
|
|
731
|
-
normalRating?: number | undefined;
|
|
732
|
-
weightedRating?: number | undefined;
|
|
733
|
-
};
|
|
734
729
|
game: {
|
|
735
730
|
id: string;
|
|
736
731
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -743,6 +738,11 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
743
738
|
} | undefined;
|
|
744
739
|
};
|
|
745
740
|
id?: string | undefined;
|
|
741
|
+
ratings?: {
|
|
742
|
+
initialWindowRating?: number | undefined;
|
|
743
|
+
normalRating?: number | undefined;
|
|
744
|
+
weightedRating?: number | undefined;
|
|
745
|
+
} | undefined;
|
|
746
746
|
comment?: string | undefined;
|
|
747
747
|
userLikes?: number | undefined;
|
|
748
748
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -40,7 +40,7 @@ exports.ratingSchema = (0, zod_1.object)({
|
|
|
40
40
|
initialWindowRating: (0, zod_1.number)().optional(),
|
|
41
41
|
normalRating: (0, zod_1.number)().optional(),
|
|
42
42
|
weightedRating: (0, zod_1.number)().optional(),
|
|
43
|
-
}),
|
|
43
|
+
}).optional(),
|
|
44
44
|
});
|
|
45
45
|
exports.searchRatingSchema = (0, zod_1.object)({
|
|
46
46
|
q: (0, zod_1.string)().optional(),
|