rategame-shared 1.1.51 → 1.1.52
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 +34 -158
- package/dist/schemas/notification.d.ts +12 -12
- package/dist/schemas/rating.d.ts +33 -183
- package/dist/schemas/team.d.ts +13 -16
- package/dist/schemas/user.d.ts +11 -9
- package/dist/schemas/user.js +1 -0
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ export declare const commonGameSchema: z.ZodObject<{
|
|
|
488
488
|
};
|
|
489
489
|
} | undefined;
|
|
490
490
|
}>;
|
|
491
|
-
export declare const basketballGameSchema: z.ZodObject<
|
|
491
|
+
export declare const basketballGameSchema: z.ZodObject<{
|
|
492
492
|
id: z.ZodOptional<z.ZodString>;
|
|
493
493
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
494
494
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -594,7 +594,6 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
594
594
|
options: Record<number, number>;
|
|
595
595
|
};
|
|
596
596
|
}>>;
|
|
597
|
-
}, {
|
|
598
597
|
round: z.ZodNumber;
|
|
599
598
|
timeRemainingMinutes: z.ZodNumber;
|
|
600
599
|
timeRemainingSeconds: z.ZodNumber;
|
|
@@ -613,7 +612,7 @@ export declare const basketballGameSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
613
612
|
}>, "many">;
|
|
614
613
|
periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
|
|
615
614
|
periodDuration: z.ZodNumber;
|
|
616
|
-
}
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
617
616
|
round: number;
|
|
618
617
|
status: "live" | "scheduled" | "final";
|
|
619
618
|
startedAt: number;
|
|
@@ -731,7 +730,7 @@ export declare const inningSchema: z.ZodObject<{
|
|
|
731
730
|
homeScore: number;
|
|
732
731
|
inningNumber: number;
|
|
733
732
|
}>;
|
|
734
|
-
export declare const mlbGameSchema: z.ZodObject<
|
|
733
|
+
export declare const mlbGameSchema: z.ZodObject<{
|
|
735
734
|
id: z.ZodOptional<z.ZodString>;
|
|
736
735
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
737
736
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -837,7 +836,6 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
837
836
|
options: Record<number, number>;
|
|
838
837
|
};
|
|
839
838
|
}>>;
|
|
840
|
-
}, {
|
|
841
839
|
totalInningsRemaining: z.ZodNumber;
|
|
842
840
|
innings: z.ZodArray<z.ZodObject<{
|
|
843
841
|
inningNumber: z.ZodNumber;
|
|
@@ -866,7 +864,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
866
864
|
runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
|
|
867
865
|
runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
|
|
868
866
|
runnerOnThird: z.ZodOptional<z.ZodBoolean>;
|
|
869
|
-
}
|
|
867
|
+
}, "strip", z.ZodTypeAny, {
|
|
870
868
|
status: "live" | "scheduled" | "final";
|
|
871
869
|
startedAt: number;
|
|
872
870
|
finishedAt: number;
|
|
@@ -991,7 +989,7 @@ export declare const mlbGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
991
989
|
runnerOnSecond?: boolean | undefined;
|
|
992
990
|
runnerOnThird?: boolean | undefined;
|
|
993
991
|
}>;
|
|
994
|
-
export declare const eplGameSchema: z.ZodObject<
|
|
992
|
+
export declare const eplGameSchema: z.ZodObject<{
|
|
995
993
|
id: z.ZodOptional<z.ZodString>;
|
|
996
994
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
997
995
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -999,63 +997,6 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
999
997
|
finishedAt: z.ZodNumber;
|
|
1000
998
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
1001
999
|
apiGameId: z.ZodNumber;
|
|
1002
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"epl">]>;
|
|
1003
|
-
homeTeam: z.ZodObject<{
|
|
1004
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1005
|
-
apiTeamId: z.ZodNumber;
|
|
1006
|
-
name: z.ZodString;
|
|
1007
|
-
score: z.ZodNumber;
|
|
1008
|
-
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1009
|
-
image: z.ZodString;
|
|
1010
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
-
teamCode: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
name: string;
|
|
1014
|
-
image: string;
|
|
1015
|
-
apiTeamId: number;
|
|
1016
|
-
score: number;
|
|
1017
|
-
id?: string | undefined;
|
|
1018
|
-
isWinner?: boolean | undefined;
|
|
1019
|
-
seed?: number | undefined;
|
|
1020
|
-
teamCode?: string | undefined;
|
|
1021
|
-
}, {
|
|
1022
|
-
name: string;
|
|
1023
|
-
image: string;
|
|
1024
|
-
apiTeamId: number;
|
|
1025
|
-
score: number;
|
|
1026
|
-
id?: string | undefined;
|
|
1027
|
-
isWinner?: boolean | undefined;
|
|
1028
|
-
seed?: number | undefined;
|
|
1029
|
-
teamCode?: string | undefined;
|
|
1030
|
-
}>;
|
|
1031
|
-
awayTeam: z.ZodObject<{
|
|
1032
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1033
|
-
apiTeamId: z.ZodNumber;
|
|
1034
|
-
name: z.ZodString;
|
|
1035
|
-
score: z.ZodNumber;
|
|
1036
|
-
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1037
|
-
image: z.ZodString;
|
|
1038
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1039
|
-
teamCode: z.ZodOptional<z.ZodString>;
|
|
1040
|
-
}, "strip", z.ZodTypeAny, {
|
|
1041
|
-
name: string;
|
|
1042
|
-
image: string;
|
|
1043
|
-
apiTeamId: number;
|
|
1044
|
-
score: number;
|
|
1045
|
-
id?: string | undefined;
|
|
1046
|
-
isWinner?: boolean | undefined;
|
|
1047
|
-
seed?: number | undefined;
|
|
1048
|
-
teamCode?: string | undefined;
|
|
1049
|
-
}, {
|
|
1050
|
-
name: string;
|
|
1051
|
-
image: string;
|
|
1052
|
-
apiTeamId: number;
|
|
1053
|
-
score: number;
|
|
1054
|
-
id?: string | undefined;
|
|
1055
|
-
isWinner?: boolean | undefined;
|
|
1056
|
-
seed?: number | undefined;
|
|
1057
|
-
teamCode?: string | undefined;
|
|
1058
|
-
}>;
|
|
1059
1000
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
1060
1001
|
homeTeamWins: z.ZodNumber;
|
|
1061
1002
|
awayTeamWins: z.ZodNumber;
|
|
@@ -1097,7 +1038,6 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1097
1038
|
options: Record<number, number>;
|
|
1098
1039
|
};
|
|
1099
1040
|
}>>;
|
|
1100
|
-
}, {
|
|
1101
1041
|
league: z.ZodLiteral<"epl">;
|
|
1102
1042
|
week: z.ZodNumber;
|
|
1103
1043
|
period: z.ZodString;
|
|
@@ -1107,22 +1047,21 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1107
1047
|
venueType: z.ZodString;
|
|
1108
1048
|
attendance: z.ZodNumber;
|
|
1109
1049
|
aggregateScore: z.ZodString;
|
|
1110
|
-
homeTeam: z.ZodObject<
|
|
1050
|
+
homeTeam: z.ZodObject<{
|
|
1111
1051
|
id: z.ZodOptional<z.ZodString>;
|
|
1112
|
-
apiTeamId: z.ZodNumber;
|
|
1113
1052
|
name: z.ZodString;
|
|
1053
|
+
image: z.ZodString;
|
|
1054
|
+
apiTeamId: z.ZodNumber;
|
|
1114
1055
|
score: z.ZodNumber;
|
|
1115
1056
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1116
|
-
image: z.ZodString;
|
|
1117
1057
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1118
1058
|
teamCode: z.ZodOptional<z.ZodString>;
|
|
1119
|
-
}, {
|
|
1120
1059
|
scorePeriod1: z.ZodNumber;
|
|
1121
1060
|
scorePeriod2: z.ZodNumber;
|
|
1122
1061
|
scoreExtraTime: z.ZodNumber;
|
|
1123
1062
|
scorePenalty: z.ZodNumber;
|
|
1124
1063
|
venueName: z.ZodOptional<z.ZodString>;
|
|
1125
|
-
}
|
|
1064
|
+
}, "strip", z.ZodTypeAny, {
|
|
1126
1065
|
name: string;
|
|
1127
1066
|
image: string;
|
|
1128
1067
|
apiTeamId: number;
|
|
@@ -1151,22 +1090,21 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1151
1090
|
teamCode?: string | undefined;
|
|
1152
1091
|
venueName?: string | undefined;
|
|
1153
1092
|
}>;
|
|
1154
|
-
awayTeam: z.ZodObject<
|
|
1093
|
+
awayTeam: z.ZodObject<{
|
|
1155
1094
|
id: z.ZodOptional<z.ZodString>;
|
|
1156
|
-
apiTeamId: z.ZodNumber;
|
|
1157
1095
|
name: z.ZodString;
|
|
1096
|
+
image: z.ZodString;
|
|
1097
|
+
apiTeamId: z.ZodNumber;
|
|
1158
1098
|
score: z.ZodNumber;
|
|
1159
1099
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1160
|
-
image: z.ZodString;
|
|
1161
1100
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1162
1101
|
teamCode: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
}, {
|
|
1164
1102
|
scorePeriod1: z.ZodNumber;
|
|
1165
1103
|
scorePeriod2: z.ZodNumber;
|
|
1166
1104
|
scoreExtraTime: z.ZodNumber;
|
|
1167
1105
|
scorePenalty: z.ZodNumber;
|
|
1168
1106
|
venueName: z.ZodOptional<z.ZodString>;
|
|
1169
|
-
}
|
|
1107
|
+
}, "strip", z.ZodTypeAny, {
|
|
1170
1108
|
name: string;
|
|
1171
1109
|
image: string;
|
|
1172
1110
|
apiTeamId: number;
|
|
@@ -1196,7 +1134,7 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1196
1134
|
venueName?: string | undefined;
|
|
1197
1135
|
}>;
|
|
1198
1136
|
hadExtraTime: z.ZodBoolean;
|
|
1199
|
-
}
|
|
1137
|
+
}, "strip", z.ZodTypeAny, {
|
|
1200
1138
|
status: "live" | "scheduled" | "final";
|
|
1201
1139
|
week: number;
|
|
1202
1140
|
startedAt: number;
|
|
@@ -1319,7 +1257,7 @@ export declare const eplGameSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1319
1257
|
};
|
|
1320
1258
|
} | undefined;
|
|
1321
1259
|
}>;
|
|
1322
|
-
export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<
|
|
1260
|
+
export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<{
|
|
1323
1261
|
id: z.ZodOptional<z.ZodString>;
|
|
1324
1262
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1325
1263
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1425,7 +1363,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1425
1363
|
options: Record<number, number>;
|
|
1426
1364
|
};
|
|
1427
1365
|
}>>;
|
|
1428
|
-
}, {
|
|
1429
1366
|
round: z.ZodNumber;
|
|
1430
1367
|
timeRemainingMinutes: z.ZodNumber;
|
|
1431
1368
|
timeRemainingSeconds: z.ZodNumber;
|
|
@@ -1444,7 +1381,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1444
1381
|
}>, "many">;
|
|
1445
1382
|
periodType: z.ZodUnion<[z.ZodLiteral<"half">, z.ZodLiteral<"quarter">]>;
|
|
1446
1383
|
periodDuration: z.ZodNumber;
|
|
1447
|
-
}
|
|
1384
|
+
}, "strip", z.ZodTypeAny, {
|
|
1448
1385
|
round: number;
|
|
1449
1386
|
status: "live" | "scheduled" | "final";
|
|
1450
1387
|
startedAt: number;
|
|
@@ -1548,7 +1485,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1548
1485
|
options: Record<number, number>;
|
|
1549
1486
|
};
|
|
1550
1487
|
} | undefined;
|
|
1551
|
-
}>, z.ZodObject<
|
|
1488
|
+
}>, z.ZodObject<{
|
|
1552
1489
|
id: z.ZodOptional<z.ZodString>;
|
|
1553
1490
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1554
1491
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1654,7 +1591,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1654
1591
|
options: Record<number, number>;
|
|
1655
1592
|
};
|
|
1656
1593
|
}>>;
|
|
1657
|
-
}, {
|
|
1658
1594
|
totalInningsRemaining: z.ZodNumber;
|
|
1659
1595
|
innings: z.ZodArray<z.ZodObject<{
|
|
1660
1596
|
inningNumber: z.ZodNumber;
|
|
@@ -1683,7 +1619,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1683
1619
|
runnerOnFirst: z.ZodOptional<z.ZodBoolean>;
|
|
1684
1620
|
runnerOnSecond: z.ZodOptional<z.ZodBoolean>;
|
|
1685
1621
|
runnerOnThird: z.ZodOptional<z.ZodBoolean>;
|
|
1686
|
-
}
|
|
1622
|
+
}, "strip", z.ZodTypeAny, {
|
|
1687
1623
|
status: "live" | "scheduled" | "final";
|
|
1688
1624
|
startedAt: number;
|
|
1689
1625
|
finishedAt: number;
|
|
@@ -1807,7 +1743,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1807
1743
|
runnerOnFirst?: boolean | undefined;
|
|
1808
1744
|
runnerOnSecond?: boolean | undefined;
|
|
1809
1745
|
runnerOnThird?: boolean | undefined;
|
|
1810
|
-
}>, z.ZodObject<
|
|
1746
|
+
}>, z.ZodObject<{
|
|
1811
1747
|
id: z.ZodOptional<z.ZodString>;
|
|
1812
1748
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
1813
1749
|
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1815,63 +1751,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1815
1751
|
finishedAt: z.ZodNumber;
|
|
1816
1752
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
1817
1753
|
apiGameId: z.ZodNumber;
|
|
1818
|
-
league: z.ZodUnion<[z.ZodLiteral<"ncaa">, z.ZodLiteral<"nba">, z.ZodLiteral<"mlb">, z.ZodLiteral<"nfl">, z.ZodLiteral<"nhl">, z.ZodLiteral<"mls">, z.ZodLiteral<"cfb">, z.ZodLiteral<"cbb">, z.ZodLiteral<"epl">]>;
|
|
1819
|
-
homeTeam: z.ZodObject<{
|
|
1820
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1821
|
-
apiTeamId: z.ZodNumber;
|
|
1822
|
-
name: z.ZodString;
|
|
1823
|
-
score: z.ZodNumber;
|
|
1824
|
-
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1825
|
-
image: z.ZodString;
|
|
1826
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1827
|
-
teamCode: z.ZodOptional<z.ZodString>;
|
|
1828
|
-
}, "strip", z.ZodTypeAny, {
|
|
1829
|
-
name: string;
|
|
1830
|
-
image: string;
|
|
1831
|
-
apiTeamId: number;
|
|
1832
|
-
score: number;
|
|
1833
|
-
id?: string | undefined;
|
|
1834
|
-
isWinner?: boolean | undefined;
|
|
1835
|
-
seed?: number | undefined;
|
|
1836
|
-
teamCode?: string | undefined;
|
|
1837
|
-
}, {
|
|
1838
|
-
name: string;
|
|
1839
|
-
image: string;
|
|
1840
|
-
apiTeamId: number;
|
|
1841
|
-
score: number;
|
|
1842
|
-
id?: string | undefined;
|
|
1843
|
-
isWinner?: boolean | undefined;
|
|
1844
|
-
seed?: number | undefined;
|
|
1845
|
-
teamCode?: string | undefined;
|
|
1846
|
-
}>;
|
|
1847
|
-
awayTeam: z.ZodObject<{
|
|
1848
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1849
|
-
apiTeamId: z.ZodNumber;
|
|
1850
|
-
name: z.ZodString;
|
|
1851
|
-
score: z.ZodNumber;
|
|
1852
|
-
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1853
|
-
image: z.ZodString;
|
|
1854
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
|
1855
|
-
teamCode: z.ZodOptional<z.ZodString>;
|
|
1856
|
-
}, "strip", z.ZodTypeAny, {
|
|
1857
|
-
name: string;
|
|
1858
|
-
image: string;
|
|
1859
|
-
apiTeamId: number;
|
|
1860
|
-
score: number;
|
|
1861
|
-
id?: string | undefined;
|
|
1862
|
-
isWinner?: boolean | undefined;
|
|
1863
|
-
seed?: number | undefined;
|
|
1864
|
-
teamCode?: string | undefined;
|
|
1865
|
-
}, {
|
|
1866
|
-
name: string;
|
|
1867
|
-
image: string;
|
|
1868
|
-
apiTeamId: number;
|
|
1869
|
-
score: number;
|
|
1870
|
-
id?: string | undefined;
|
|
1871
|
-
isWinner?: boolean | undefined;
|
|
1872
|
-
seed?: number | undefined;
|
|
1873
|
-
teamCode?: string | undefined;
|
|
1874
|
-
}>;
|
|
1875
1754
|
seriesInfo: z.ZodOptional<z.ZodObject<{
|
|
1876
1755
|
homeTeamWins: z.ZodNumber;
|
|
1877
1756
|
awayTeamWins: z.ZodNumber;
|
|
@@ -1913,7 +1792,6 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1913
1792
|
options: Record<number, number>;
|
|
1914
1793
|
};
|
|
1915
1794
|
}>>;
|
|
1916
|
-
}, {
|
|
1917
1795
|
league: z.ZodLiteral<"epl">;
|
|
1918
1796
|
week: z.ZodNumber;
|
|
1919
1797
|
period: z.ZodString;
|
|
@@ -1923,22 +1801,21 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1923
1801
|
venueType: z.ZodString;
|
|
1924
1802
|
attendance: z.ZodNumber;
|
|
1925
1803
|
aggregateScore: z.ZodString;
|
|
1926
|
-
homeTeam: z.ZodObject<
|
|
1804
|
+
homeTeam: z.ZodObject<{
|
|
1927
1805
|
id: z.ZodOptional<z.ZodString>;
|
|
1928
|
-
apiTeamId: z.ZodNumber;
|
|
1929
1806
|
name: z.ZodString;
|
|
1807
|
+
image: z.ZodString;
|
|
1808
|
+
apiTeamId: z.ZodNumber;
|
|
1930
1809
|
score: z.ZodNumber;
|
|
1931
1810
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1932
|
-
image: z.ZodString;
|
|
1933
1811
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1934
1812
|
teamCode: z.ZodOptional<z.ZodString>;
|
|
1935
|
-
}, {
|
|
1936
1813
|
scorePeriod1: z.ZodNumber;
|
|
1937
1814
|
scorePeriod2: z.ZodNumber;
|
|
1938
1815
|
scoreExtraTime: z.ZodNumber;
|
|
1939
1816
|
scorePenalty: z.ZodNumber;
|
|
1940
1817
|
venueName: z.ZodOptional<z.ZodString>;
|
|
1941
|
-
}
|
|
1818
|
+
}, "strip", z.ZodTypeAny, {
|
|
1942
1819
|
name: string;
|
|
1943
1820
|
image: string;
|
|
1944
1821
|
apiTeamId: number;
|
|
@@ -1967,22 +1844,21 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
1967
1844
|
teamCode?: string | undefined;
|
|
1968
1845
|
venueName?: string | undefined;
|
|
1969
1846
|
}>;
|
|
1970
|
-
awayTeam: z.ZodObject<
|
|
1847
|
+
awayTeam: z.ZodObject<{
|
|
1971
1848
|
id: z.ZodOptional<z.ZodString>;
|
|
1972
|
-
apiTeamId: z.ZodNumber;
|
|
1973
1849
|
name: z.ZodString;
|
|
1850
|
+
image: z.ZodString;
|
|
1851
|
+
apiTeamId: z.ZodNumber;
|
|
1974
1852
|
score: z.ZodNumber;
|
|
1975
1853
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
1976
|
-
image: z.ZodString;
|
|
1977
1854
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1978
1855
|
teamCode: z.ZodOptional<z.ZodString>;
|
|
1979
|
-
}, {
|
|
1980
1856
|
scorePeriod1: z.ZodNumber;
|
|
1981
1857
|
scorePeriod2: z.ZodNumber;
|
|
1982
1858
|
scoreExtraTime: z.ZodNumber;
|
|
1983
1859
|
scorePenalty: z.ZodNumber;
|
|
1984
1860
|
venueName: z.ZodOptional<z.ZodString>;
|
|
1985
|
-
}
|
|
1861
|
+
}, "strip", z.ZodTypeAny, {
|
|
1986
1862
|
name: string;
|
|
1987
1863
|
image: string;
|
|
1988
1864
|
apiTeamId: number;
|
|
@@ -2012,7 +1888,7 @@ export declare const unionGameSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.exten
|
|
|
2012
1888
|
venueName?: string | undefined;
|
|
2013
1889
|
}>;
|
|
2014
1890
|
hadExtraTime: z.ZodBoolean;
|
|
2015
|
-
}
|
|
1891
|
+
}, "strip", z.ZodTypeAny, {
|
|
2016
1892
|
status: "live" | "scheduled" | "final";
|
|
2017
1893
|
week: number;
|
|
2018
1894
|
startedAt: number;
|
|
@@ -2146,20 +2022,20 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
2146
2022
|
offset: z.ZodOptional<z.ZodString>;
|
|
2147
2023
|
}, "strip", z.ZodTypeAny, {
|
|
2148
2024
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
2149
|
-
offset?: string | undefined;
|
|
2150
|
-
round?: string | undefined;
|
|
2151
2025
|
q?: string | undefined;
|
|
2152
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
2153
2026
|
teamId?: string | undefined;
|
|
2027
|
+
round?: string | undefined;
|
|
2028
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
2154
2029
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
2155
2030
|
limit?: string | undefined;
|
|
2031
|
+
offset?: string | undefined;
|
|
2156
2032
|
}, {
|
|
2157
2033
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
2158
|
-
offset?: string | undefined;
|
|
2159
|
-
round?: string | undefined;
|
|
2160
2034
|
q?: string | undefined;
|
|
2161
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
2162
2035
|
teamId?: string | undefined;
|
|
2036
|
+
round?: string | undefined;
|
|
2037
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
2163
2038
|
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
2164
2039
|
limit?: string | undefined;
|
|
2040
|
+
offset?: string | undefined;
|
|
2165
2041
|
}>;
|
|
@@ -153,13 +153,13 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
153
153
|
teamCode?: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
round?: number | undefined;
|
|
156
|
-
week?: number | undefined;
|
|
157
156
|
seriesInfo?: {
|
|
158
157
|
maxLength: number;
|
|
159
158
|
homeTeamWins: number;
|
|
160
159
|
awayTeamWins: number;
|
|
161
160
|
gameNumber: number;
|
|
162
161
|
} | undefined;
|
|
162
|
+
week?: number | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
id: string;
|
|
165
165
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -184,13 +184,13 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
184
184
|
teamCode?: string | undefined;
|
|
185
185
|
};
|
|
186
186
|
round?: number | undefined;
|
|
187
|
-
week?: number | undefined;
|
|
188
187
|
seriesInfo?: {
|
|
189
188
|
maxLength: number;
|
|
190
189
|
homeTeamWins: number;
|
|
191
190
|
awayTeamWins: number;
|
|
192
191
|
gameNumber: number;
|
|
193
192
|
} | undefined;
|
|
193
|
+
week?: number | undefined;
|
|
194
194
|
}>;
|
|
195
195
|
userLikes: z.ZodOptional<z.ZodNumber>;
|
|
196
196
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -228,13 +228,13 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
228
228
|
teamCode?: string | undefined;
|
|
229
229
|
};
|
|
230
230
|
round?: number | undefined;
|
|
231
|
-
week?: number | undefined;
|
|
232
231
|
seriesInfo?: {
|
|
233
232
|
maxLength: number;
|
|
234
233
|
homeTeamWins: number;
|
|
235
234
|
awayTeamWins: number;
|
|
236
235
|
gameNumber: number;
|
|
237
236
|
} | undefined;
|
|
237
|
+
week?: number | undefined;
|
|
238
238
|
};
|
|
239
239
|
comment?: string | undefined;
|
|
240
240
|
userLikes?: number | undefined;
|
|
@@ -273,13 +273,13 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
273
273
|
teamCode?: string | undefined;
|
|
274
274
|
};
|
|
275
275
|
round?: number | undefined;
|
|
276
|
-
week?: number | undefined;
|
|
277
276
|
seriesInfo?: {
|
|
278
277
|
maxLength: number;
|
|
279
278
|
homeTeamWins: number;
|
|
280
279
|
awayTeamWins: number;
|
|
281
280
|
gameNumber: number;
|
|
282
281
|
} | undefined;
|
|
282
|
+
week?: number | undefined;
|
|
283
283
|
};
|
|
284
284
|
comment?: string | undefined;
|
|
285
285
|
userLikes?: number | undefined;
|
|
@@ -297,9 +297,10 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
297
297
|
badge?: string | undefined;
|
|
298
298
|
};
|
|
299
299
|
category: string;
|
|
300
|
-
link?: string | undefined;
|
|
301
|
-
data?: any;
|
|
302
300
|
createdAt?: any;
|
|
301
|
+
data?: any;
|
|
302
|
+
link?: string | undefined;
|
|
303
|
+
linkText?: string | undefined;
|
|
303
304
|
rating?: {
|
|
304
305
|
id: string;
|
|
305
306
|
user: {
|
|
@@ -335,18 +336,17 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
335
336
|
teamCode?: string | undefined;
|
|
336
337
|
};
|
|
337
338
|
round?: number | undefined;
|
|
338
|
-
week?: number | undefined;
|
|
339
339
|
seriesInfo?: {
|
|
340
340
|
maxLength: number;
|
|
341
341
|
homeTeamWins: number;
|
|
342
342
|
awayTeamWins: number;
|
|
343
343
|
gameNumber: number;
|
|
344
344
|
} | undefined;
|
|
345
|
+
week?: number | undefined;
|
|
345
346
|
};
|
|
346
347
|
comment?: string | undefined;
|
|
347
348
|
userLikes?: number | undefined;
|
|
348
349
|
} | undefined;
|
|
349
|
-
linkText?: string | undefined;
|
|
350
350
|
}, {
|
|
351
351
|
id: string;
|
|
352
352
|
source: string;
|
|
@@ -360,9 +360,10 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
360
360
|
badge?: string | undefined;
|
|
361
361
|
};
|
|
362
362
|
category: string;
|
|
363
|
-
link?: string | undefined;
|
|
364
|
-
data?: any;
|
|
365
363
|
createdAt?: any;
|
|
364
|
+
data?: any;
|
|
365
|
+
link?: string | undefined;
|
|
366
|
+
linkText?: string | undefined;
|
|
366
367
|
rating?: {
|
|
367
368
|
id: string;
|
|
368
369
|
user: {
|
|
@@ -398,16 +399,15 @@ export declare const internalNotification: z.ZodObject<{
|
|
|
398
399
|
teamCode?: string | undefined;
|
|
399
400
|
};
|
|
400
401
|
round?: number | undefined;
|
|
401
|
-
week?: number | undefined;
|
|
402
402
|
seriesInfo?: {
|
|
403
403
|
maxLength: number;
|
|
404
404
|
homeTeamWins: number;
|
|
405
405
|
awayTeamWins: number;
|
|
406
406
|
gameNumber: number;
|
|
407
407
|
} | undefined;
|
|
408
|
+
week?: number | undefined;
|
|
408
409
|
};
|
|
409
410
|
comment?: string | undefined;
|
|
410
411
|
userLikes?: number | undefined;
|
|
411
412
|
} | undefined;
|
|
412
|
-
linkText?: string | undefined;
|
|
413
413
|
}>;
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -123,13 +123,13 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
123
123
|
teamCode?: string | undefined;
|
|
124
124
|
};
|
|
125
125
|
round?: number | undefined;
|
|
126
|
-
week?: number | undefined;
|
|
127
126
|
seriesInfo?: {
|
|
128
127
|
maxLength: number;
|
|
129
128
|
homeTeamWins: number;
|
|
130
129
|
awayTeamWins: number;
|
|
131
130
|
gameNumber: number;
|
|
132
131
|
} | undefined;
|
|
132
|
+
week?: number | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
id: string;
|
|
135
135
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
@@ -154,13 +154,13 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
154
154
|
teamCode?: string | undefined;
|
|
155
155
|
};
|
|
156
156
|
round?: number | undefined;
|
|
157
|
-
week?: number | undefined;
|
|
158
157
|
seriesInfo?: {
|
|
159
158
|
maxLength: number;
|
|
160
159
|
homeTeamWins: number;
|
|
161
160
|
awayTeamWins: number;
|
|
162
161
|
gameNumber: number;
|
|
163
162
|
} | undefined;
|
|
163
|
+
week?: number | undefined;
|
|
164
164
|
}>;
|
|
165
165
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
166
166
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -198,13 +198,13 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
198
198
|
teamCode?: string | undefined;
|
|
199
199
|
};
|
|
200
200
|
round?: number | undefined;
|
|
201
|
-
week?: number | undefined;
|
|
202
201
|
seriesInfo?: {
|
|
203
202
|
maxLength: number;
|
|
204
203
|
homeTeamWins: number;
|
|
205
204
|
awayTeamWins: number;
|
|
206
205
|
gameNumber: number;
|
|
207
206
|
} | undefined;
|
|
207
|
+
week?: number | undefined;
|
|
208
208
|
};
|
|
209
209
|
comment?: string | undefined;
|
|
210
210
|
userLikes?: number | undefined;
|
|
@@ -243,13 +243,13 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
243
243
|
teamCode?: string | undefined;
|
|
244
244
|
};
|
|
245
245
|
round?: number | undefined;
|
|
246
|
-
week?: number | undefined;
|
|
247
246
|
seriesInfo?: {
|
|
248
247
|
maxLength: number;
|
|
249
248
|
homeTeamWins: number;
|
|
250
249
|
awayTeamWins: number;
|
|
251
250
|
gameNumber: number;
|
|
252
251
|
} | undefined;
|
|
252
|
+
week?: number | undefined;
|
|
253
253
|
};
|
|
254
254
|
comment?: string | undefined;
|
|
255
255
|
userLikes?: number | undefined;
|
|
@@ -273,34 +273,34 @@ export declare const searchRatingSchema: import("zod").ZodObject<{
|
|
|
273
273
|
division: import("zod").ZodOptional<import("zod").ZodString>;
|
|
274
274
|
}, "strip", import("zod").ZodTypeAny, {
|
|
275
275
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
276
|
-
offset?: string | undefined;
|
|
277
|
-
round?: string | undefined;
|
|
278
276
|
q?: string | undefined;
|
|
279
|
-
username?: string | undefined;
|
|
280
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
281
277
|
teamId?: string | undefined;
|
|
278
|
+
round?: string | undefined;
|
|
279
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
282
280
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
283
281
|
limit?: string | undefined;
|
|
284
|
-
|
|
282
|
+
offset?: string | undefined;
|
|
285
283
|
gameId?: string | undefined;
|
|
286
284
|
showEmptyRatings?: string | undefined;
|
|
285
|
+
comment?: string | undefined;
|
|
286
|
+
username?: string | undefined;
|
|
287
287
|
following?: string | undefined;
|
|
288
288
|
userId?: string | undefined;
|
|
289
289
|
mlbTeamLeague?: string | undefined;
|
|
290
290
|
division?: string | undefined;
|
|
291
291
|
}, {
|
|
292
292
|
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
293
|
-
offset?: string | undefined;
|
|
294
|
-
round?: string | undefined;
|
|
295
293
|
q?: string | undefined;
|
|
296
|
-
username?: string | undefined;
|
|
297
|
-
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
298
294
|
teamId?: string | undefined;
|
|
295
|
+
round?: string | undefined;
|
|
296
|
+
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
299
297
|
sortBy?: "rating:asc" | "rating:desc" | "createdAt:asc" | "createdAt:desc" | "userLikes:asc" | "userLikes:desc" | undefined;
|
|
300
298
|
limit?: string | undefined;
|
|
301
|
-
|
|
299
|
+
offset?: string | undefined;
|
|
302
300
|
gameId?: string | undefined;
|
|
303
301
|
showEmptyRatings?: string | undefined;
|
|
302
|
+
comment?: string | undefined;
|
|
303
|
+
username?: string | undefined;
|
|
304
304
|
following?: string | undefined;
|
|
305
305
|
userId?: string | undefined;
|
|
306
306
|
mlbTeamLeague?: string | undefined;
|
|
@@ -372,172 +372,10 @@ export declare const createAgreeRatingSchema: import("zod").ZodObject<{
|
|
|
372
372
|
};
|
|
373
373
|
agree: boolean;
|
|
374
374
|
}>;
|
|
375
|
-
export declare const createRatingSchema: import("zod").ZodObject<
|
|
376
|
-
id: import("zod").ZodString;
|
|
377
|
-
createdAt: import("zod").ZodNumber;
|
|
375
|
+
export declare const createRatingSchema: import("zod").ZodObject<{
|
|
378
376
|
rating: import("zod").ZodNumber;
|
|
379
377
|
comment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
380
|
-
user: import("zod").ZodObject<{
|
|
381
|
-
id: import("zod").ZodString;
|
|
382
|
-
username: import("zod").ZodString;
|
|
383
|
-
avatarUrl: import("zod").ZodString;
|
|
384
|
-
email: import("zod").ZodString;
|
|
385
|
-
badge: import("zod").ZodOptional<import("zod").ZodString>;
|
|
386
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
387
|
-
id: string;
|
|
388
|
-
email: string;
|
|
389
|
-
username: string;
|
|
390
|
-
avatarUrl: string;
|
|
391
|
-
badge?: string | undefined;
|
|
392
|
-
}, {
|
|
393
|
-
id: string;
|
|
394
|
-
email: string;
|
|
395
|
-
username: string;
|
|
396
|
-
avatarUrl: string;
|
|
397
|
-
badge?: string | undefined;
|
|
398
|
-
}>;
|
|
399
|
-
game: import("zod").ZodObject<{
|
|
400
|
-
id: import("zod").ZodString;
|
|
401
|
-
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
402
|
-
league: import("zod").ZodUnion<[import("zod").ZodLiteral<"ncaa">, import("zod").ZodLiteral<"nba">, import("zod").ZodLiteral<"mlb">, import("zod").ZodLiteral<"nfl">, import("zod").ZodLiteral<"nhl">, import("zod").ZodLiteral<"mls">, import("zod").ZodLiteral<"cfb">, import("zod").ZodLiteral<"cbb">, import("zod").ZodLiteral<"epl">]>;
|
|
403
|
-
homeTeam: import("zod").ZodObject<{
|
|
404
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
405
|
-
apiTeamId: import("zod").ZodNumber;
|
|
406
|
-
name: import("zod").ZodString;
|
|
407
|
-
score: import("zod").ZodNumber;
|
|
408
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
409
|
-
image: import("zod").ZodString;
|
|
410
|
-
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
411
|
-
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
412
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
413
|
-
name: string;
|
|
414
|
-
image: string;
|
|
415
|
-
apiTeamId: number;
|
|
416
|
-
score: number;
|
|
417
|
-
id?: string | undefined;
|
|
418
|
-
isWinner?: boolean | undefined;
|
|
419
|
-
seed?: number | undefined;
|
|
420
|
-
teamCode?: string | undefined;
|
|
421
|
-
}, {
|
|
422
|
-
name: string;
|
|
423
|
-
image: string;
|
|
424
|
-
apiTeamId: number;
|
|
425
|
-
score: number;
|
|
426
|
-
id?: string | undefined;
|
|
427
|
-
isWinner?: boolean | undefined;
|
|
428
|
-
seed?: number | undefined;
|
|
429
|
-
teamCode?: string | undefined;
|
|
430
|
-
}>;
|
|
431
|
-
awayTeam: import("zod").ZodObject<{
|
|
432
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
433
|
-
apiTeamId: import("zod").ZodNumber;
|
|
434
|
-
name: import("zod").ZodString;
|
|
435
|
-
score: import("zod").ZodNumber;
|
|
436
|
-
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
437
|
-
image: import("zod").ZodString;
|
|
438
|
-
seed: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
439
|
-
teamCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
440
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
441
|
-
name: string;
|
|
442
|
-
image: string;
|
|
443
|
-
apiTeamId: number;
|
|
444
|
-
score: number;
|
|
445
|
-
id?: string | undefined;
|
|
446
|
-
isWinner?: boolean | undefined;
|
|
447
|
-
seed?: number | undefined;
|
|
448
|
-
teamCode?: string | undefined;
|
|
449
|
-
}, {
|
|
450
|
-
name: string;
|
|
451
|
-
image: string;
|
|
452
|
-
apiTeamId: number;
|
|
453
|
-
score: number;
|
|
454
|
-
id?: string | undefined;
|
|
455
|
-
isWinner?: boolean | undefined;
|
|
456
|
-
seed?: number | undefined;
|
|
457
|
-
teamCode?: string | undefined;
|
|
458
|
-
}>;
|
|
459
|
-
seriesInfo: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
460
|
-
homeTeamWins: import("zod").ZodNumber;
|
|
461
|
-
awayTeamWins: import("zod").ZodNumber;
|
|
462
|
-
gameNumber: import("zod").ZodNumber;
|
|
463
|
-
maxLength: import("zod").ZodNumber;
|
|
464
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
465
|
-
maxLength: number;
|
|
466
|
-
homeTeamWins: number;
|
|
467
|
-
awayTeamWins: number;
|
|
468
|
-
gameNumber: number;
|
|
469
|
-
}, {
|
|
470
|
-
maxLength: number;
|
|
471
|
-
homeTeamWins: number;
|
|
472
|
-
awayTeamWins: number;
|
|
473
|
-
gameNumber: number;
|
|
474
|
-
}>>;
|
|
475
|
-
week: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
476
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
477
|
-
id: string;
|
|
478
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
479
|
-
homeTeam: {
|
|
480
|
-
name: string;
|
|
481
|
-
image: string;
|
|
482
|
-
apiTeamId: number;
|
|
483
|
-
score: number;
|
|
484
|
-
id?: string | undefined;
|
|
485
|
-
isWinner?: boolean | undefined;
|
|
486
|
-
seed?: number | undefined;
|
|
487
|
-
teamCode?: string | undefined;
|
|
488
|
-
};
|
|
489
|
-
awayTeam: {
|
|
490
|
-
name: string;
|
|
491
|
-
image: string;
|
|
492
|
-
apiTeamId: number;
|
|
493
|
-
score: number;
|
|
494
|
-
id?: string | undefined;
|
|
495
|
-
isWinner?: boolean | undefined;
|
|
496
|
-
seed?: number | undefined;
|
|
497
|
-
teamCode?: string | undefined;
|
|
498
|
-
};
|
|
499
|
-
round?: number | undefined;
|
|
500
|
-
week?: number | undefined;
|
|
501
|
-
seriesInfo?: {
|
|
502
|
-
maxLength: number;
|
|
503
|
-
homeTeamWins: number;
|
|
504
|
-
awayTeamWins: number;
|
|
505
|
-
gameNumber: number;
|
|
506
|
-
} | undefined;
|
|
507
|
-
}, {
|
|
508
|
-
id: string;
|
|
509
|
-
league: "nba" | "ncaa" | "mlb" | "nfl" | "nhl" | "mls" | "cfb" | "cbb" | "epl";
|
|
510
|
-
homeTeam: {
|
|
511
|
-
name: string;
|
|
512
|
-
image: string;
|
|
513
|
-
apiTeamId: number;
|
|
514
|
-
score: number;
|
|
515
|
-
id?: string | undefined;
|
|
516
|
-
isWinner?: boolean | undefined;
|
|
517
|
-
seed?: number | undefined;
|
|
518
|
-
teamCode?: string | undefined;
|
|
519
|
-
};
|
|
520
|
-
awayTeam: {
|
|
521
|
-
name: string;
|
|
522
|
-
image: string;
|
|
523
|
-
apiTeamId: number;
|
|
524
|
-
score: number;
|
|
525
|
-
id?: string | undefined;
|
|
526
|
-
isWinner?: boolean | undefined;
|
|
527
|
-
seed?: number | undefined;
|
|
528
|
-
teamCode?: string | undefined;
|
|
529
|
-
};
|
|
530
|
-
round?: number | undefined;
|
|
531
|
-
week?: number | undefined;
|
|
532
|
-
seriesInfo?: {
|
|
533
|
-
maxLength: number;
|
|
534
|
-
homeTeamWins: number;
|
|
535
|
-
awayTeamWins: number;
|
|
536
|
-
gameNumber: number;
|
|
537
|
-
} | undefined;
|
|
538
|
-
}>;
|
|
539
378
|
userLikes: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
540
|
-
}, "id" | "user" | "createdAt">, {
|
|
541
379
|
game: import("zod").ZodObject<Omit<{
|
|
542
380
|
id: import("zod").ZodString;
|
|
543
381
|
round: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -637,7 +475,7 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
637
475
|
} | undefined;
|
|
638
476
|
}>;
|
|
639
477
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
640
|
-
}
|
|
478
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
641
479
|
rating: number;
|
|
642
480
|
game: {
|
|
643
481
|
id: string;
|
|
@@ -650,9 +488,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
650
488
|
gameNumber: number;
|
|
651
489
|
} | undefined;
|
|
652
490
|
};
|
|
653
|
-
id?: string | undefined;
|
|
654
491
|
comment?: string | undefined;
|
|
655
492
|
userLikes?: number | undefined;
|
|
493
|
+
id?: string | undefined;
|
|
656
494
|
}, {
|
|
657
495
|
rating: number;
|
|
658
496
|
game: {
|
|
@@ -666,9 +504,9 @@ export declare const createRatingSchema: import("zod").ZodObject<import("zod").o
|
|
|
666
504
|
gameNumber: number;
|
|
667
505
|
} | undefined;
|
|
668
506
|
};
|
|
669
|
-
id?: string | undefined;
|
|
670
507
|
comment?: string | undefined;
|
|
671
508
|
userLikes?: number | undefined;
|
|
509
|
+
id?: string | undefined;
|
|
672
510
|
}>;
|
|
673
511
|
export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
674
512
|
id: import("zod").ZodString;
|
|
@@ -947,16 +785,18 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
947
785
|
}>>;
|
|
948
786
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
949
787
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
950
|
-
}, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
|
|
788
|
+
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
951
789
|
id: string;
|
|
952
790
|
email: string;
|
|
953
791
|
username: string;
|
|
954
792
|
avatarUrl?: string | null | undefined;
|
|
793
|
+
badge?: string | undefined;
|
|
955
794
|
}, {
|
|
956
795
|
id: string;
|
|
957
796
|
email: string;
|
|
958
797
|
username: string;
|
|
959
798
|
avatarUrl?: string | null | undefined;
|
|
799
|
+
badge?: string | undefined;
|
|
960
800
|
}>;
|
|
961
801
|
ratingId: import("zod").ZodString;
|
|
962
802
|
parentId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
@@ -1234,16 +1074,18 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1234
1074
|
}>>;
|
|
1235
1075
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1236
1076
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
1237
|
-
}, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
|
|
1077
|
+
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
1238
1078
|
id: string;
|
|
1239
1079
|
email: string;
|
|
1240
1080
|
username: string;
|
|
1241
1081
|
avatarUrl?: string | null | undefined;
|
|
1082
|
+
badge?: string | undefined;
|
|
1242
1083
|
}, {
|
|
1243
1084
|
id: string;
|
|
1244
1085
|
email: string;
|
|
1245
1086
|
username: string;
|
|
1246
1087
|
avatarUrl?: string | null | undefined;
|
|
1088
|
+
badge?: string | undefined;
|
|
1247
1089
|
}>>>;
|
|
1248
1090
|
level: import("zod").ZodNumber;
|
|
1249
1091
|
authorGameRating: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -1265,6 +1107,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1265
1107
|
email: string;
|
|
1266
1108
|
username: string;
|
|
1267
1109
|
avatarUrl?: string | null | undefined;
|
|
1110
|
+
badge?: string | undefined;
|
|
1268
1111
|
};
|
|
1269
1112
|
createdAt: number;
|
|
1270
1113
|
gameId: string;
|
|
@@ -1277,6 +1120,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1277
1120
|
email: string;
|
|
1278
1121
|
username: string;
|
|
1279
1122
|
avatarUrl?: string | null | undefined;
|
|
1123
|
+
badge?: string | undefined;
|
|
1280
1124
|
} | null | undefined;
|
|
1281
1125
|
authorGameRating?: {
|
|
1282
1126
|
id: string;
|
|
@@ -1290,6 +1134,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1290
1134
|
email: string;
|
|
1291
1135
|
username: string;
|
|
1292
1136
|
avatarUrl?: string | null | undefined;
|
|
1137
|
+
badge?: string | undefined;
|
|
1293
1138
|
};
|
|
1294
1139
|
createdAt: number;
|
|
1295
1140
|
gameId: string;
|
|
@@ -1302,6 +1147,7 @@ export declare const threadCommentSchema: import("zod").ZodObject<{
|
|
|
1302
1147
|
email: string;
|
|
1303
1148
|
username: string;
|
|
1304
1149
|
avatarUrl?: string | null | undefined;
|
|
1150
|
+
badge?: string | undefined;
|
|
1305
1151
|
} | null | undefined;
|
|
1306
1152
|
authorGameRating?: {
|
|
1307
1153
|
id: string;
|
|
@@ -1583,16 +1429,18 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
|
|
1583
1429
|
}>>;
|
|
1584
1430
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1585
1431
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
1586
|
-
}, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
|
|
1432
|
+
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
1587
1433
|
id: string;
|
|
1588
1434
|
email: string;
|
|
1589
1435
|
username: string;
|
|
1590
1436
|
avatarUrl?: string | null | undefined;
|
|
1437
|
+
badge?: string | undefined;
|
|
1591
1438
|
}, {
|
|
1592
1439
|
id: string;
|
|
1593
1440
|
email: string;
|
|
1594
1441
|
username: string;
|
|
1595
1442
|
avatarUrl?: string | null | undefined;
|
|
1443
|
+
badge?: string | undefined;
|
|
1596
1444
|
}>;
|
|
1597
1445
|
ratingId: import("zod").ZodString;
|
|
1598
1446
|
likedAt: import("zod").ZodNumber;
|
|
@@ -1605,6 +1453,7 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
|
|
1605
1453
|
email: string;
|
|
1606
1454
|
username: string;
|
|
1607
1455
|
avatarUrl?: string | null | undefined;
|
|
1456
|
+
badge?: string | undefined;
|
|
1608
1457
|
};
|
|
1609
1458
|
ratingId: string;
|
|
1610
1459
|
likedAt: number;
|
|
@@ -1617,6 +1466,7 @@ export declare const threadCommentLikeSchema: import("zod").ZodObject<{
|
|
|
1617
1466
|
email: string;
|
|
1618
1467
|
username: string;
|
|
1619
1468
|
avatarUrl?: string | null | undefined;
|
|
1469
|
+
badge?: string | undefined;
|
|
1620
1470
|
};
|
|
1621
1471
|
ratingId: string;
|
|
1622
1472
|
likedAt: number;
|
package/dist/schemas/team.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const teamSchema: z.ZodObject<
|
|
2
|
+
export declare const teamSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodOptional<z.ZodString>;
|
|
4
|
-
apiTeamId: z.ZodNumber;
|
|
5
4
|
name: z.ZodString;
|
|
6
5
|
image: z.ZodString;
|
|
6
|
+
apiTeamId: z.ZodNumber;
|
|
7
7
|
city: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, {
|
|
9
8
|
seed: z.ZodNumber;
|
|
10
9
|
conference: z.ZodOptional<z.ZodString>;
|
|
11
10
|
school: z.ZodOptional<z.ZodString>;
|
|
12
|
-
}
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
12
|
name: string;
|
|
14
13
|
image: string;
|
|
15
14
|
apiTeamId: number;
|
|
@@ -30,25 +29,24 @@ export declare const teamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
30
29
|
}>;
|
|
31
30
|
export declare const divisionSchema: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
|
|
32
31
|
export declare const leagueSchema: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
|
|
33
|
-
export declare const mlbTeamSchema: z.ZodObject<
|
|
32
|
+
export declare const mlbTeamSchema: z.ZodObject<{
|
|
34
33
|
id: z.ZodOptional<z.ZodString>;
|
|
35
|
-
apiTeamId: z.ZodNumber;
|
|
36
34
|
name: z.ZodString;
|
|
37
35
|
image: z.ZodString;
|
|
36
|
+
apiTeamId: z.ZodNumber;
|
|
38
37
|
city: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, {
|
|
40
38
|
division: z.ZodUnion<[z.ZodLiteral<"east">, z.ZodLiteral<"central">, z.ZodLiteral<"west">]>;
|
|
41
39
|
league: z.ZodUnion<[z.ZodLiteral<"national">, z.ZodLiteral<"american">]>;
|
|
42
40
|
teamCode: z.ZodOptional<z.ZodString>;
|
|
43
|
-
}
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
42
|
name: string;
|
|
45
43
|
image: string;
|
|
46
44
|
apiTeamId: number;
|
|
47
45
|
league: "national" | "american";
|
|
48
46
|
division: "east" | "central" | "west";
|
|
49
47
|
id?: string | undefined;
|
|
50
|
-
teamCode?: string | undefined;
|
|
51
48
|
city?: string | undefined;
|
|
49
|
+
teamCode?: string | undefined;
|
|
52
50
|
}, {
|
|
53
51
|
name: string;
|
|
54
52
|
image: string;
|
|
@@ -56,32 +54,31 @@ export declare const mlbTeamSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
56
54
|
league: "national" | "american";
|
|
57
55
|
division: "east" | "central" | "west";
|
|
58
56
|
id?: string | undefined;
|
|
59
|
-
teamCode?: string | undefined;
|
|
60
57
|
city?: string | undefined;
|
|
58
|
+
teamCode?: string | undefined;
|
|
61
59
|
}>;
|
|
62
|
-
export declare const eplTeamSchema: z.ZodObject<
|
|
60
|
+
export declare const eplTeamSchema: z.ZodObject<{
|
|
63
61
|
id: z.ZodOptional<z.ZodString>;
|
|
64
|
-
apiTeamId: z.ZodNumber;
|
|
65
62
|
name: z.ZodString;
|
|
66
63
|
image: z.ZodString;
|
|
64
|
+
apiTeamId: z.ZodNumber;
|
|
67
65
|
city: z.ZodOptional<z.ZodString>;
|
|
68
|
-
}, {
|
|
69
66
|
teamCode: z.ZodOptional<z.ZodString>;
|
|
70
67
|
venueName: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
69
|
name: string;
|
|
73
70
|
image: string;
|
|
74
71
|
apiTeamId: number;
|
|
75
72
|
id?: string | undefined;
|
|
73
|
+
city?: string | undefined;
|
|
76
74
|
teamCode?: string | undefined;
|
|
77
75
|
venueName?: string | undefined;
|
|
78
|
-
city?: string | undefined;
|
|
79
76
|
}, {
|
|
80
77
|
name: string;
|
|
81
78
|
image: string;
|
|
82
79
|
apiTeamId: number;
|
|
83
80
|
id?: string | undefined;
|
|
81
|
+
city?: string | undefined;
|
|
84
82
|
teamCode?: string | undefined;
|
|
85
83
|
venueName?: string | undefined;
|
|
86
|
-
city?: string | undefined;
|
|
87
84
|
}>;
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -296,10 +296,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
296
296
|
}>;
|
|
297
297
|
askedForPushNotifications: boolean;
|
|
298
298
|
acceptedPushNotifications: boolean;
|
|
299
|
-
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
300
|
-
totalRatedGames?: number | undefined;
|
|
301
|
-
commentsLeft?: number | undefined;
|
|
302
|
-
avgRating?: number | undefined;
|
|
303
299
|
avatarUrl?: string | null | undefined;
|
|
304
300
|
leagues?: {
|
|
305
301
|
nba: {
|
|
@@ -348,6 +344,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
348
344
|
avgRating: number;
|
|
349
345
|
};
|
|
350
346
|
} | undefined;
|
|
347
|
+
totalRatedGames?: number | undefined;
|
|
348
|
+
commentsLeft?: number | undefined;
|
|
349
|
+
avgRating?: number | undefined;
|
|
351
350
|
isRegistrationComplete?: boolean | undefined;
|
|
352
351
|
badge?: string | undefined;
|
|
353
352
|
registrationStep?: number | undefined;
|
|
@@ -361,6 +360,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
361
360
|
youtube?: string | undefined;
|
|
362
361
|
tiktok?: string | undefined;
|
|
363
362
|
} | undefined;
|
|
363
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
364
364
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
365
365
|
notificationSettings?: {
|
|
366
366
|
allGames?: boolean | undefined;
|
|
@@ -381,10 +381,6 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
381
381
|
}>;
|
|
382
382
|
askedForPushNotifications: boolean;
|
|
383
383
|
acceptedPushNotifications: boolean;
|
|
384
|
-
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
385
|
-
totalRatedGames?: number | undefined;
|
|
386
|
-
commentsLeft?: number | undefined;
|
|
387
|
-
avgRating?: number | undefined;
|
|
388
384
|
avatarUrl?: string | null | undefined;
|
|
389
385
|
leagues?: {
|
|
390
386
|
nba: {
|
|
@@ -433,6 +429,9 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
433
429
|
avgRating: number;
|
|
434
430
|
};
|
|
435
431
|
} | undefined;
|
|
432
|
+
totalRatedGames?: number | undefined;
|
|
433
|
+
commentsLeft?: number | undefined;
|
|
434
|
+
avgRating?: number | undefined;
|
|
436
435
|
isRegistrationComplete?: boolean | undefined;
|
|
437
436
|
badge?: string | undefined;
|
|
438
437
|
registrationStep?: number | undefined;
|
|
@@ -446,6 +445,7 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
446
445
|
youtube?: string | undefined;
|
|
447
446
|
tiktok?: string | undefined;
|
|
448
447
|
} | undefined;
|
|
448
|
+
platform?: "ios" | "android" | "macos" | "windows" | "web" | undefined;
|
|
449
449
|
selectedTeamsPerLeague?: Record<string, string[]> | undefined;
|
|
450
450
|
notificationSettings?: {
|
|
451
451
|
allGames?: boolean | undefined;
|
|
@@ -1150,14 +1150,16 @@ export declare const reducedUserSchema: import("zod").ZodObject<Pick<{
|
|
|
1150
1150
|
}>>;
|
|
1151
1151
|
spoilersEnabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1152
1152
|
viewedChangelogs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodBoolean>>;
|
|
1153
|
-
}, "id" | "email" | "username" | "avatarUrl">, "strip", import("zod").ZodTypeAny, {
|
|
1153
|
+
}, "id" | "email" | "username" | "avatarUrl" | "badge">, "strip", import("zod").ZodTypeAny, {
|
|
1154
1154
|
id: string;
|
|
1155
1155
|
email: string;
|
|
1156
1156
|
username: string;
|
|
1157
1157
|
avatarUrl?: string | null | undefined;
|
|
1158
|
+
badge?: string | undefined;
|
|
1158
1159
|
}, {
|
|
1159
1160
|
id: string;
|
|
1160
1161
|
email: string;
|
|
1161
1162
|
username: string;
|
|
1162
1163
|
avatarUrl?: string | null | undefined;
|
|
1164
|
+
badge?: string | undefined;
|
|
1163
1165
|
}>;
|
package/dist/schemas/user.js
CHANGED