rategame-shared 1.1.13 → 1.1.15
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
CHANGED
|
@@ -862,6 +862,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
862
862
|
games: z.ZodNumber;
|
|
863
863
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
864
864
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
865
866
|
}, "strip", z.ZodTypeAny, {
|
|
866
867
|
name: string;
|
|
867
868
|
wins: number;
|
|
@@ -871,6 +872,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
871
872
|
id?: string | undefined;
|
|
872
873
|
isWinningPitcher?: boolean | undefined;
|
|
873
874
|
isLosingPitcher?: boolean | undefined;
|
|
875
|
+
isSavingPitcher?: boolean | undefined;
|
|
874
876
|
}, {
|
|
875
877
|
name: string;
|
|
876
878
|
wins: number;
|
|
@@ -880,6 +882,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
880
882
|
id?: string | undefined;
|
|
881
883
|
isWinningPitcher?: boolean | undefined;
|
|
882
884
|
isLosingPitcher?: boolean | undefined;
|
|
885
|
+
isSavingPitcher?: boolean | undefined;
|
|
883
886
|
}>>;
|
|
884
887
|
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
885
888
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -890,6 +893,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
890
893
|
games: z.ZodNumber;
|
|
891
894
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
892
895
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
896
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
893
897
|
}, "strip", z.ZodTypeAny, {
|
|
894
898
|
name: string;
|
|
895
899
|
wins: number;
|
|
@@ -899,6 +903,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
899
903
|
id?: string | undefined;
|
|
900
904
|
isWinningPitcher?: boolean | undefined;
|
|
901
905
|
isLosingPitcher?: boolean | undefined;
|
|
906
|
+
isSavingPitcher?: boolean | undefined;
|
|
902
907
|
}, {
|
|
903
908
|
name: string;
|
|
904
909
|
wins: number;
|
|
@@ -908,6 +913,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
908
913
|
id?: string | undefined;
|
|
909
914
|
isWinningPitcher?: boolean | undefined;
|
|
910
915
|
isLosingPitcher?: boolean | undefined;
|
|
916
|
+
isSavingPitcher?: boolean | undefined;
|
|
911
917
|
}>>;
|
|
912
918
|
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
913
919
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -918,6 +924,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
918
924
|
games: z.ZodNumber;
|
|
919
925
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
920
926
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
927
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
921
928
|
}, "strip", z.ZodTypeAny, {
|
|
922
929
|
name: string;
|
|
923
930
|
wins: number;
|
|
@@ -927,6 +934,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
927
934
|
id?: string | undefined;
|
|
928
935
|
isWinningPitcher?: boolean | undefined;
|
|
929
936
|
isLosingPitcher?: boolean | undefined;
|
|
937
|
+
isSavingPitcher?: boolean | undefined;
|
|
930
938
|
}, {
|
|
931
939
|
name: string;
|
|
932
940
|
wins: number;
|
|
@@ -936,6 +944,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
936
944
|
id?: string | undefined;
|
|
937
945
|
isWinningPitcher?: boolean | undefined;
|
|
938
946
|
isLosingPitcher?: boolean | undefined;
|
|
947
|
+
isSavingPitcher?: boolean | undefined;
|
|
939
948
|
}>>;
|
|
940
949
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
941
950
|
awayTeamRuns: z.ZodNumber;
|
|
@@ -1008,6 +1017,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1008
1017
|
id?: string | undefined;
|
|
1009
1018
|
isWinningPitcher?: boolean | undefined;
|
|
1010
1019
|
isLosingPitcher?: boolean | undefined;
|
|
1020
|
+
isSavingPitcher?: boolean | undefined;
|
|
1011
1021
|
} | undefined;
|
|
1012
1022
|
winningPitcher?: {
|
|
1013
1023
|
name: string;
|
|
@@ -1018,6 +1028,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1018
1028
|
id?: string | undefined;
|
|
1019
1029
|
isWinningPitcher?: boolean | undefined;
|
|
1020
1030
|
isLosingPitcher?: boolean | undefined;
|
|
1031
|
+
isSavingPitcher?: boolean | undefined;
|
|
1021
1032
|
} | undefined;
|
|
1022
1033
|
savingPitcher?: {
|
|
1023
1034
|
name: string;
|
|
@@ -1028,6 +1039,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1028
1039
|
id?: string | undefined;
|
|
1029
1040
|
isWinningPitcher?: boolean | undefined;
|
|
1030
1041
|
isLosingPitcher?: boolean | undefined;
|
|
1042
|
+
isSavingPitcher?: boolean | undefined;
|
|
1031
1043
|
} | undefined;
|
|
1032
1044
|
outs?: number | undefined;
|
|
1033
1045
|
}, {
|
|
@@ -1094,6 +1106,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1094
1106
|
id?: string | undefined;
|
|
1095
1107
|
isWinningPitcher?: boolean | undefined;
|
|
1096
1108
|
isLosingPitcher?: boolean | undefined;
|
|
1109
|
+
isSavingPitcher?: boolean | undefined;
|
|
1097
1110
|
} | undefined;
|
|
1098
1111
|
winningPitcher?: {
|
|
1099
1112
|
name: string;
|
|
@@ -1104,6 +1117,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1104
1117
|
id?: string | undefined;
|
|
1105
1118
|
isWinningPitcher?: boolean | undefined;
|
|
1106
1119
|
isLosingPitcher?: boolean | undefined;
|
|
1120
|
+
isSavingPitcher?: boolean | undefined;
|
|
1107
1121
|
} | undefined;
|
|
1108
1122
|
savingPitcher?: {
|
|
1109
1123
|
name: string;
|
|
@@ -1114,6 +1128,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1114
1128
|
id?: string | undefined;
|
|
1115
1129
|
isWinningPitcher?: boolean | undefined;
|
|
1116
1130
|
isLosingPitcher?: boolean | undefined;
|
|
1131
|
+
isSavingPitcher?: boolean | undefined;
|
|
1117
1132
|
} | undefined;
|
|
1118
1133
|
outs?: number | undefined;
|
|
1119
1134
|
}>;
|
|
@@ -1477,6 +1492,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1477
1492
|
games: z.ZodNumber;
|
|
1478
1493
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1479
1494
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1495
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1480
1496
|
}, "strip", z.ZodTypeAny, {
|
|
1481
1497
|
name: string;
|
|
1482
1498
|
wins: number;
|
|
@@ -1486,6 +1502,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1486
1502
|
id?: string | undefined;
|
|
1487
1503
|
isWinningPitcher?: boolean | undefined;
|
|
1488
1504
|
isLosingPitcher?: boolean | undefined;
|
|
1505
|
+
isSavingPitcher?: boolean | undefined;
|
|
1489
1506
|
}, {
|
|
1490
1507
|
name: string;
|
|
1491
1508
|
wins: number;
|
|
@@ -1495,6 +1512,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1495
1512
|
id?: string | undefined;
|
|
1496
1513
|
isWinningPitcher?: boolean | undefined;
|
|
1497
1514
|
isLosingPitcher?: boolean | undefined;
|
|
1515
|
+
isSavingPitcher?: boolean | undefined;
|
|
1498
1516
|
}>>;
|
|
1499
1517
|
winningPitcher: z.ZodOptional<z.ZodObject<{
|
|
1500
1518
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1505,6 +1523,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1505
1523
|
games: z.ZodNumber;
|
|
1506
1524
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1507
1525
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1526
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1508
1527
|
}, "strip", z.ZodTypeAny, {
|
|
1509
1528
|
name: string;
|
|
1510
1529
|
wins: number;
|
|
@@ -1514,6 +1533,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1514
1533
|
id?: string | undefined;
|
|
1515
1534
|
isWinningPitcher?: boolean | undefined;
|
|
1516
1535
|
isLosingPitcher?: boolean | undefined;
|
|
1536
|
+
isSavingPitcher?: boolean | undefined;
|
|
1517
1537
|
}, {
|
|
1518
1538
|
name: string;
|
|
1519
1539
|
wins: number;
|
|
@@ -1523,6 +1543,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1523
1543
|
id?: string | undefined;
|
|
1524
1544
|
isWinningPitcher?: boolean | undefined;
|
|
1525
1545
|
isLosingPitcher?: boolean | undefined;
|
|
1546
|
+
isSavingPitcher?: boolean | undefined;
|
|
1526
1547
|
}>>;
|
|
1527
1548
|
savingPitcher: z.ZodOptional<z.ZodObject<{
|
|
1528
1549
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1533,6 +1554,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1533
1554
|
games: z.ZodNumber;
|
|
1534
1555
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1535
1556
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1557
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
1536
1558
|
}, "strip", z.ZodTypeAny, {
|
|
1537
1559
|
name: string;
|
|
1538
1560
|
wins: number;
|
|
@@ -1542,6 +1564,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1542
1564
|
id?: string | undefined;
|
|
1543
1565
|
isWinningPitcher?: boolean | undefined;
|
|
1544
1566
|
isLosingPitcher?: boolean | undefined;
|
|
1567
|
+
isSavingPitcher?: boolean | undefined;
|
|
1545
1568
|
}, {
|
|
1546
1569
|
name: string;
|
|
1547
1570
|
wins: number;
|
|
@@ -1551,6 +1574,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1551
1574
|
id?: string | undefined;
|
|
1552
1575
|
isWinningPitcher?: boolean | undefined;
|
|
1553
1576
|
isLosingPitcher?: boolean | undefined;
|
|
1577
|
+
isSavingPitcher?: boolean | undefined;
|
|
1554
1578
|
}>>;
|
|
1555
1579
|
outs: z.ZodOptional<z.ZodNumber>;
|
|
1556
1580
|
awayTeamRuns: z.ZodNumber;
|
|
@@ -1623,6 +1647,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1623
1647
|
id?: string | undefined;
|
|
1624
1648
|
isWinningPitcher?: boolean | undefined;
|
|
1625
1649
|
isLosingPitcher?: boolean | undefined;
|
|
1650
|
+
isSavingPitcher?: boolean | undefined;
|
|
1626
1651
|
} | undefined;
|
|
1627
1652
|
winningPitcher?: {
|
|
1628
1653
|
name: string;
|
|
@@ -1633,6 +1658,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1633
1658
|
id?: string | undefined;
|
|
1634
1659
|
isWinningPitcher?: boolean | undefined;
|
|
1635
1660
|
isLosingPitcher?: boolean | undefined;
|
|
1661
|
+
isSavingPitcher?: boolean | undefined;
|
|
1636
1662
|
} | undefined;
|
|
1637
1663
|
savingPitcher?: {
|
|
1638
1664
|
name: string;
|
|
@@ -1643,6 +1669,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1643
1669
|
id?: string | undefined;
|
|
1644
1670
|
isWinningPitcher?: boolean | undefined;
|
|
1645
1671
|
isLosingPitcher?: boolean | undefined;
|
|
1672
|
+
isSavingPitcher?: boolean | undefined;
|
|
1646
1673
|
} | undefined;
|
|
1647
1674
|
outs?: number | undefined;
|
|
1648
1675
|
}, {
|
|
@@ -1709,6 +1736,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1709
1736
|
id?: string | undefined;
|
|
1710
1737
|
isWinningPitcher?: boolean | undefined;
|
|
1711
1738
|
isLosingPitcher?: boolean | undefined;
|
|
1739
|
+
isSavingPitcher?: boolean | undefined;
|
|
1712
1740
|
} | undefined;
|
|
1713
1741
|
winningPitcher?: {
|
|
1714
1742
|
name: string;
|
|
@@ -1719,6 +1747,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1719
1747
|
id?: string | undefined;
|
|
1720
1748
|
isWinningPitcher?: boolean | undefined;
|
|
1721
1749
|
isLosingPitcher?: boolean | undefined;
|
|
1750
|
+
isSavingPitcher?: boolean | undefined;
|
|
1722
1751
|
} | undefined;
|
|
1723
1752
|
savingPitcher?: {
|
|
1724
1753
|
name: string;
|
|
@@ -1729,6 +1758,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1729
1758
|
id?: string | undefined;
|
|
1730
1759
|
isWinningPitcher?: boolean | undefined;
|
|
1731
1760
|
isLosingPitcher?: boolean | undefined;
|
|
1761
|
+
isSavingPitcher?: boolean | undefined;
|
|
1732
1762
|
} | undefined;
|
|
1733
1763
|
outs?: number | undefined;
|
|
1734
1764
|
}>]>;
|
package/dist/schemas/player.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
8
8
|
games: z.ZodNumber;
|
|
9
9
|
isWinningPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
isLosingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
isSavingPitcher: z.ZodOptional<z.ZodBoolean>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
13
|
name: string;
|
|
13
14
|
wins: number;
|
|
@@ -17,6 +18,7 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
17
18
|
id?: string | undefined;
|
|
18
19
|
isWinningPitcher?: boolean | undefined;
|
|
19
20
|
isLosingPitcher?: boolean | undefined;
|
|
21
|
+
isSavingPitcher?: boolean | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
name: string;
|
|
22
24
|
wins: number;
|
|
@@ -26,4 +28,5 @@ export declare const mlbPlayerSchema: z.ZodObject<{
|
|
|
26
28
|
id?: string | undefined;
|
|
27
29
|
isWinningPitcher?: boolean | undefined;
|
|
28
30
|
isLosingPitcher?: boolean | undefined;
|
|
31
|
+
isSavingPitcher?: boolean | undefined;
|
|
29
32
|
}>;
|
package/dist/schemas/player.js
CHANGED
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -264,6 +264,8 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
264
264
|
username: import("zod").ZodOptional<import("zod").ZodString>;
|
|
265
265
|
following: import("zod").ZodOptional<import("zod").ZodString>;
|
|
266
266
|
userId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
267
|
+
mlbTeamLeague: import("zod").ZodOptional<import("zod").ZodString>;
|
|
268
|
+
division: import("zod").ZodOptional<import("zod").ZodString>;
|
|
267
269
|
}, "strip", import("zod").ZodTypeAny, {
|
|
268
270
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
269
271
|
offset?: string | undefined;
|
|
@@ -279,6 +281,8 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
279
281
|
showEmptyRatings?: string | undefined;
|
|
280
282
|
following?: string | undefined;
|
|
281
283
|
userId?: string | undefined;
|
|
284
|
+
mlbTeamLeague?: string | undefined;
|
|
285
|
+
division?: string | undefined;
|
|
282
286
|
}, {
|
|
283
287
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls";
|
|
284
288
|
offset?: string | undefined;
|
|
@@ -294,6 +298,8 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
294
298
|
showEmptyRatings?: string | undefined;
|
|
295
299
|
following?: string | undefined;
|
|
296
300
|
userId?: string | undefined;
|
|
301
|
+
mlbTeamLeague?: string | undefined;
|
|
302
|
+
division?: string | undefined;
|
|
297
303
|
}>;
|
|
298
304
|
export declare const ratingLikeSchema: import("zod").ZodObject<{
|
|
299
305
|
ratingId: import("zod").ZodString;
|
package/dist/schemas/rating.js
CHANGED
|
@@ -65,6 +65,8 @@ exports.searchRatingSchema = (0, zod_1.object)({
|
|
|
65
65
|
username: (0, zod_1.string)().optional(),
|
|
66
66
|
following: (0, zod_1.string)().optional(),
|
|
67
67
|
userId: (0, zod_1.string)().optional(),
|
|
68
|
+
mlbTeamLeague: (0, zod_1.string)().optional(),
|
|
69
|
+
division: (0, zod_1.string)().optional(),
|
|
68
70
|
});
|
|
69
71
|
exports.ratingLikeSchema = (0, zod_1.object)({
|
|
70
72
|
ratingId: (0, zod_1.string)(),
|