rategame-shared 1.0.79 → 1.0.81
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/schemas/game.d.ts +10 -10
- package/dist/schemas/rating.d.ts +159 -10
- package/dist/schemas/rating.js +2 -1
- package/dist/schemas/user.d.ts +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/schemas/game.d.ts
CHANGED
|
@@ -511,10 +511,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
511
511
|
inningNumber: number;
|
|
512
512
|
}[];
|
|
513
513
|
id?: string | undefined;
|
|
514
|
+
round?: number | undefined;
|
|
514
515
|
isClosed?: boolean | undefined;
|
|
515
516
|
ratingWindowClosedAt?: number | undefined;
|
|
516
|
-
round?: number | undefined;
|
|
517
|
-
inningHalf?: "T" | "B" | undefined;
|
|
518
517
|
seriesInfo?: {
|
|
519
518
|
maxLength: number;
|
|
520
519
|
homeTeamWins: number;
|
|
@@ -528,6 +527,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
528
527
|
options: Record<number, number>;
|
|
529
528
|
};
|
|
530
529
|
} | undefined;
|
|
530
|
+
inningHalf?: "T" | "B" | undefined;
|
|
531
531
|
losingPitcherId?: string | undefined;
|
|
532
532
|
winningPitcherId?: string | undefined;
|
|
533
533
|
savingPitcherId?: string | undefined;
|
|
@@ -585,10 +585,9 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
585
585
|
inningNumber: number;
|
|
586
586
|
}[];
|
|
587
587
|
id?: string | undefined;
|
|
588
|
+
round?: number | undefined;
|
|
588
589
|
isClosed?: boolean | undefined;
|
|
589
590
|
ratingWindowClosedAt?: number | undefined;
|
|
590
|
-
round?: number | undefined;
|
|
591
|
-
inningHalf?: "T" | "B" | undefined;
|
|
592
591
|
seriesInfo?: {
|
|
593
592
|
maxLength: number;
|
|
594
593
|
homeTeamWins: number;
|
|
@@ -602,6 +601,7 @@ export declare const mlbGameSchema: z.ZodObject<{
|
|
|
602
601
|
options: Record<number, number>;
|
|
603
602
|
};
|
|
604
603
|
} | undefined;
|
|
604
|
+
inningHalf?: "T" | "B" | undefined;
|
|
605
605
|
losingPitcherId?: string | undefined;
|
|
606
606
|
winningPitcherId?: string | undefined;
|
|
607
607
|
savingPitcherId?: string | undefined;
|
|
@@ -641,20 +641,20 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
641
641
|
offset: z.ZodOptional<z.ZodString>;
|
|
642
642
|
}, "strip", z.ZodTypeAny, {
|
|
643
643
|
league: "nba" | "ncaa";
|
|
644
|
-
|
|
645
|
-
teamId?: string | undefined;
|
|
644
|
+
offset?: string | undefined;
|
|
646
645
|
round?: string | undefined;
|
|
646
|
+
q?: string | undefined;
|
|
647
647
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
648
|
+
teamId?: string | undefined;
|
|
648
649
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
649
650
|
limit?: string | undefined;
|
|
650
|
-
offset?: string | undefined;
|
|
651
651
|
}, {
|
|
652
652
|
league: "nba" | "ncaa";
|
|
653
|
-
|
|
654
|
-
teamId?: string | undefined;
|
|
653
|
+
offset?: string | undefined;
|
|
655
654
|
round?: string | undefined;
|
|
655
|
+
q?: string | undefined;
|
|
656
656
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
657
|
+
teamId?: string | undefined;
|
|
657
658
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
658
659
|
limit?: string | undefined;
|
|
659
|
-
offset?: string | undefined;
|
|
660
660
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -248,24 +248,24 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
248
248
|
showEmptyRatings: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
249
|
}, "strip", import("zod").ZodTypeAny, {
|
|
250
250
|
league: "nba" | "ncaa";
|
|
251
|
-
|
|
252
|
-
teamId?: string | undefined;
|
|
251
|
+
offset?: string | undefined;
|
|
253
252
|
round?: string | undefined;
|
|
253
|
+
q?: string | undefined;
|
|
254
254
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
255
|
+
teamId?: string | undefined;
|
|
255
256
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
256
257
|
limit?: string | undefined;
|
|
257
|
-
offset?: string | undefined;
|
|
258
258
|
gameId?: string | undefined;
|
|
259
259
|
showEmptyRatings?: string | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
league: "nba" | "ncaa";
|
|
262
|
-
|
|
263
|
-
teamId?: string | undefined;
|
|
262
|
+
offset?: string | undefined;
|
|
264
263
|
round?: string | undefined;
|
|
264
|
+
q?: string | undefined;
|
|
265
265
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
266
|
+
teamId?: string | undefined;
|
|
266
267
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | undefined;
|
|
267
268
|
limit?: string | undefined;
|
|
268
|
-
offset?: string | undefined;
|
|
269
269
|
gameId?: string | undefined;
|
|
270
270
|
showEmptyRatings?: string | undefined;
|
|
271
271
|
}>;
|
|
@@ -335,11 +335,159 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
335
335
|
};
|
|
336
336
|
agree: boolean;
|
|
337
337
|
}>;
|
|
338
|
-
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
338
|
+
export declare const createRatingSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<Omit<{
|
|
339
339
|
id: import("zod").ZodString;
|
|
340
|
+
createdAt: import("zod").ZodNumber;
|
|
340
341
|
rating: import("zod").ZodNumber;
|
|
341
342
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
343
|
+
user: import("zod").ZodObject<{
|
|
344
|
+
id: import("zod").ZodString;
|
|
345
|
+
username: import("zod").ZodString;
|
|
346
|
+
avatarUrl: import("zod").ZodString;
|
|
347
|
+
email: import("zod").ZodString;
|
|
348
|
+
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
349
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
350
|
+
id: string;
|
|
351
|
+
email: string;
|
|
352
|
+
username: string;
|
|
353
|
+
avatarUrl: string;
|
|
354
|
+
badge?: string | undefined;
|
|
355
|
+
}, {
|
|
356
|
+
id: string;
|
|
357
|
+
email: string;
|
|
358
|
+
username: string;
|
|
359
|
+
avatarUrl: string;
|
|
360
|
+
badge?: string | undefined;
|
|
361
|
+
}>;
|
|
362
|
+
game: import("zod").ZodObject<{
|
|
363
|
+
id: import("zod").ZodString;
|
|
364
|
+
round: import("zod").ZodNumber;
|
|
365
|
+
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">]>;
|
|
366
|
+
homeTeam: import("zod").ZodObject<{
|
|
367
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
368
|
+
apiTeamId: import("zod").ZodNumber;
|
|
369
|
+
name: import("zod").ZodString;
|
|
370
|
+
score: import("zod").ZodNumber;
|
|
371
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
372
|
+
image: import("zod").ZodString;
|
|
373
|
+
seed: import("zod").ZodNumber;
|
|
374
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
375
|
+
name: string;
|
|
376
|
+
image: string;
|
|
377
|
+
apiTeamId: number;
|
|
378
|
+
seed: number;
|
|
379
|
+
score: number;
|
|
380
|
+
id?: string | undefined;
|
|
381
|
+
isWinner?: boolean | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
name: string;
|
|
384
|
+
image: string;
|
|
385
|
+
apiTeamId: number;
|
|
386
|
+
seed: number;
|
|
387
|
+
score: number;
|
|
388
|
+
id?: string | undefined;
|
|
389
|
+
isWinner?: boolean | undefined;
|
|
390
|
+
}>;
|
|
391
|
+
awayTeam: import("zod").ZodObject<{
|
|
392
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
393
|
+
apiTeamId: import("zod").ZodNumber;
|
|
394
|
+
name: import("zod").ZodString;
|
|
395
|
+
score: import("zod").ZodNumber;
|
|
396
|
+
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
397
|
+
image: import("zod").ZodString;
|
|
398
|
+
seed: import("zod").ZodNumber;
|
|
399
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
400
|
+
name: string;
|
|
401
|
+
image: string;
|
|
402
|
+
apiTeamId: number;
|
|
403
|
+
seed: number;
|
|
404
|
+
score: number;
|
|
405
|
+
id?: string | undefined;
|
|
406
|
+
isWinner?: boolean | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
name: string;
|
|
409
|
+
image: string;
|
|
410
|
+
apiTeamId: number;
|
|
411
|
+
seed: number;
|
|
412
|
+
score: number;
|
|
413
|
+
id?: string | undefined;
|
|
414
|
+
isWinner?: boolean | undefined;
|
|
415
|
+
}>;
|
|
416
|
+
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
417
|
+
homeTeamWins: import("zod").ZodNumber;
|
|
418
|
+
awayTeamWins: import("zod").ZodNumber;
|
|
419
|
+
gameNumber: import("zod").ZodNumber;
|
|
420
|
+
maxLength: import("zod").ZodNumber;
|
|
421
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
422
|
+
maxLength: number;
|
|
423
|
+
homeTeamWins: number;
|
|
424
|
+
awayTeamWins: number;
|
|
425
|
+
gameNumber: number;
|
|
426
|
+
}, {
|
|
427
|
+
maxLength: number;
|
|
428
|
+
homeTeamWins: number;
|
|
429
|
+
awayTeamWins: number;
|
|
430
|
+
gameNumber: number;
|
|
431
|
+
}>>;
|
|
432
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
433
|
+
id: string;
|
|
434
|
+
round: number;
|
|
435
|
+
league: "nba" | "ncaa";
|
|
436
|
+
homeTeam: {
|
|
437
|
+
name: string;
|
|
438
|
+
image: string;
|
|
439
|
+
apiTeamId: number;
|
|
440
|
+
seed: number;
|
|
441
|
+
score: number;
|
|
442
|
+
id?: string | undefined;
|
|
443
|
+
isWinner?: boolean | undefined;
|
|
444
|
+
};
|
|
445
|
+
awayTeam: {
|
|
446
|
+
name: string;
|
|
447
|
+
image: string;
|
|
448
|
+
apiTeamId: number;
|
|
449
|
+
seed: number;
|
|
450
|
+
score: number;
|
|
451
|
+
id?: string | undefined;
|
|
452
|
+
isWinner?: boolean | undefined;
|
|
453
|
+
};
|
|
454
|
+
seriesInfo?: {
|
|
455
|
+
maxLength: number;
|
|
456
|
+
homeTeamWins: number;
|
|
457
|
+
awayTeamWins: number;
|
|
458
|
+
gameNumber: number;
|
|
459
|
+
} | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
id: string;
|
|
462
|
+
round: number;
|
|
463
|
+
league: "nba" | "ncaa";
|
|
464
|
+
homeTeam: {
|
|
465
|
+
name: string;
|
|
466
|
+
image: string;
|
|
467
|
+
apiTeamId: number;
|
|
468
|
+
seed: number;
|
|
469
|
+
score: number;
|
|
470
|
+
id?: string | undefined;
|
|
471
|
+
isWinner?: boolean | undefined;
|
|
472
|
+
};
|
|
473
|
+
awayTeam: {
|
|
474
|
+
name: string;
|
|
475
|
+
image: string;
|
|
476
|
+
apiTeamId: number;
|
|
477
|
+
seed: number;
|
|
478
|
+
score: number;
|
|
479
|
+
id?: string | undefined;
|
|
480
|
+
isWinner?: boolean | undefined;
|
|
481
|
+
};
|
|
482
|
+
seriesInfo?: {
|
|
483
|
+
maxLength: number;
|
|
484
|
+
homeTeamWins: number;
|
|
485
|
+
awayTeamWins: number;
|
|
486
|
+
gameNumber: number;
|
|
487
|
+
} | undefined;
|
|
488
|
+
}>;
|
|
342
489
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
490
|
+
}, "id" | "user" | "createdAt">, {
|
|
343
491
|
game: import("zod").ZodObject<Omit<{
|
|
344
492
|
id: import("zod").ZodString;
|
|
345
493
|
round: import("zod").ZodNumber;
|
|
@@ -429,8 +577,8 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
429
577
|
gameNumber: number;
|
|
430
578
|
} | undefined;
|
|
431
579
|
}>;
|
|
432
|
-
|
|
433
|
-
|
|
580
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
581
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
434
582
|
rating: number;
|
|
435
583
|
game: {
|
|
436
584
|
id: string;
|
|
@@ -442,10 +590,10 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
442
590
|
gameNumber: number;
|
|
443
591
|
} | undefined;
|
|
444
592
|
};
|
|
593
|
+
id?: string | undefined;
|
|
445
594
|
comment?: string | undefined;
|
|
446
595
|
userLikes?: number | undefined;
|
|
447
596
|
}, {
|
|
448
|
-
id: string;
|
|
449
597
|
rating: number;
|
|
450
598
|
game: {
|
|
451
599
|
id: string;
|
|
@@ -457,6 +605,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
457
605
|
gameNumber: number;
|
|
458
606
|
} | undefined;
|
|
459
607
|
};
|
|
608
|
+
id?: string | undefined;
|
|
460
609
|
comment?: string | undefined;
|
|
461
610
|
userLikes?: number | undefined;
|
|
462
611
|
}>;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.createAgreeRatingSchema = (0, zod_1.object)({
|
|
|
66
66
|
});
|
|
67
67
|
exports.createRatingSchema = exports.ratingSchema
|
|
68
68
|
.omit({
|
|
69
|
-
|
|
69
|
+
id: true,
|
|
70
70
|
createdAt: true,
|
|
71
71
|
user: true,
|
|
72
72
|
})
|
|
@@ -76,4 +76,5 @@ exports.createRatingSchema = exports.ratingSchema
|
|
|
76
76
|
homeTeam: true,
|
|
77
77
|
awayTeam: true,
|
|
78
78
|
}),
|
|
79
|
+
id: (0, zod_1.string)().optional(),
|
|
79
80
|
});
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -119,6 +119,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
119
119
|
}>;
|
|
120
120
|
askedForPushNotifications: boolean;
|
|
121
121
|
acceptedPushNotifications: boolean;
|
|
122
|
+
totalRatedGames?: number | undefined;
|
|
123
|
+
commentsLeft?: number | undefined;
|
|
124
|
+
avgRating?: number | undefined;
|
|
122
125
|
leagues?: {
|
|
123
126
|
nba: {
|
|
124
127
|
totalRatedGames: number;
|
|
@@ -131,9 +134,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
131
134
|
avgRating: number;
|
|
132
135
|
};
|
|
133
136
|
} | undefined;
|
|
134
|
-
totalRatedGames?: number | undefined;
|
|
135
|
-
commentsLeft?: number | undefined;
|
|
136
|
-
avgRating?: number | undefined;
|
|
137
137
|
isRegistrationComplete?: boolean | undefined;
|
|
138
138
|
badge?: string | undefined;
|
|
139
139
|
registrationStep?: number | undefined;
|
|
@@ -160,6 +160,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
160
160
|
}>;
|
|
161
161
|
askedForPushNotifications: boolean;
|
|
162
162
|
acceptedPushNotifications: boolean;
|
|
163
|
+
totalRatedGames?: number | undefined;
|
|
164
|
+
commentsLeft?: number | undefined;
|
|
165
|
+
avgRating?: number | undefined;
|
|
163
166
|
leagues?: {
|
|
164
167
|
nba: {
|
|
165
168
|
totalRatedGames: number;
|
|
@@ -172,9 +175,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
172
175
|
avgRating: number;
|
|
173
176
|
};
|
|
174
177
|
} | undefined;
|
|
175
|
-
totalRatedGames?: number | undefined;
|
|
176
|
-
commentsLeft?: number | undefined;
|
|
177
|
-
avgRating?: number | undefined;
|
|
178
178
|
isRegistrationComplete?: boolean | undefined;
|
|
179
179
|
badge?: string | undefined;
|
|
180
180
|
registrationStep?: number | undefined;
|