rategame-shared 1.0.14 → 1.0.16
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 +39 -16
- package/dist/schemas/game.js +7 -2
- package/dist/schemas/rating.d.ts +20 -20
- package/dist/schemas/team.d.ts +2 -2
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const gameTeamSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodOptional<z.ZodString>;
|
|
4
|
-
|
|
4
|
+
apiTeamId: z.ZodNumber;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
score: z.ZodNumber;
|
|
7
7
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -10,7 +10,7 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
name: string;
|
|
12
12
|
image: string;
|
|
13
|
-
|
|
13
|
+
apiTeamId: number;
|
|
14
14
|
score: number;
|
|
15
15
|
seed: number;
|
|
16
16
|
id?: string | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const gameTeamSchema: z.ZodObject<{
|
|
|
18
18
|
}, {
|
|
19
19
|
name: string;
|
|
20
20
|
image: string;
|
|
21
|
-
|
|
21
|
+
apiTeamId: number;
|
|
22
22
|
score: number;
|
|
23
23
|
seed: number;
|
|
24
24
|
id?: string | undefined;
|
|
@@ -57,10 +57,10 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
57
57
|
finishedAt: z.ZodNumber;
|
|
58
58
|
ratingWindowClosedAt: z.ZodNumber;
|
|
59
59
|
round: z.ZodNumber;
|
|
60
|
-
|
|
60
|
+
apiGameId: z.ZodNumber;
|
|
61
61
|
homeTeam: z.ZodObject<{
|
|
62
62
|
id: z.ZodOptional<z.ZodString>;
|
|
63
|
-
|
|
63
|
+
apiTeamId: z.ZodNumber;
|
|
64
64
|
name: z.ZodString;
|
|
65
65
|
score: z.ZodNumber;
|
|
66
66
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -69,7 +69,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
name: string;
|
|
71
71
|
image: string;
|
|
72
|
-
|
|
72
|
+
apiTeamId: number;
|
|
73
73
|
score: number;
|
|
74
74
|
seed: number;
|
|
75
75
|
id?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
77
77
|
}, {
|
|
78
78
|
name: string;
|
|
79
79
|
image: string;
|
|
80
|
-
|
|
80
|
+
apiTeamId: number;
|
|
81
81
|
score: number;
|
|
82
82
|
seed: number;
|
|
83
83
|
id?: string | undefined;
|
|
@@ -85,7 +85,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
85
85
|
}>;
|
|
86
86
|
awayTeam: z.ZodObject<{
|
|
87
87
|
id: z.ZodOptional<z.ZodString>;
|
|
88
|
-
|
|
88
|
+
apiTeamId: z.ZodNumber;
|
|
89
89
|
name: z.ZodString;
|
|
90
90
|
score: z.ZodNumber;
|
|
91
91
|
isWinner: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -94,7 +94,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
name: string;
|
|
96
96
|
image: string;
|
|
97
|
-
|
|
97
|
+
apiTeamId: number;
|
|
98
98
|
score: number;
|
|
99
99
|
seed: number;
|
|
100
100
|
id?: string | undefined;
|
|
@@ -102,12 +102,25 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
102
102
|
}, {
|
|
103
103
|
name: string;
|
|
104
104
|
image: string;
|
|
105
|
-
|
|
105
|
+
apiTeamId: number;
|
|
106
106
|
score: number;
|
|
107
107
|
seed: number;
|
|
108
108
|
id?: string | undefined;
|
|
109
109
|
isWinner?: boolean | undefined;
|
|
110
110
|
}>;
|
|
111
|
+
periods: z.ZodArray<z.ZodObject<{
|
|
112
|
+
awayScore: z.ZodNumber;
|
|
113
|
+
homeScore: z.ZodNumber;
|
|
114
|
+
periodNumber: z.ZodNumber;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
awayScore: number;
|
|
117
|
+
homeScore: number;
|
|
118
|
+
periodNumber: number;
|
|
119
|
+
}, {
|
|
120
|
+
awayScore: number;
|
|
121
|
+
homeScore: number;
|
|
122
|
+
periodNumber: number;
|
|
123
|
+
}>, "many">;
|
|
111
124
|
rating: z.ZodObject<{
|
|
112
125
|
avg: z.ZodNumber;
|
|
113
126
|
votes: z.ZodObject<{
|
|
@@ -140,11 +153,11 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
140
153
|
startedAt: number;
|
|
141
154
|
finishedAt: number;
|
|
142
155
|
ratingWindowClosedAt: number;
|
|
143
|
-
|
|
156
|
+
apiGameId: number;
|
|
144
157
|
homeTeam: {
|
|
145
158
|
name: string;
|
|
146
159
|
image: string;
|
|
147
|
-
|
|
160
|
+
apiTeamId: number;
|
|
148
161
|
score: number;
|
|
149
162
|
seed: number;
|
|
150
163
|
id?: string | undefined;
|
|
@@ -153,12 +166,17 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
153
166
|
awayTeam: {
|
|
154
167
|
name: string;
|
|
155
168
|
image: string;
|
|
156
|
-
|
|
169
|
+
apiTeamId: number;
|
|
157
170
|
score: number;
|
|
158
171
|
seed: number;
|
|
159
172
|
id?: string | undefined;
|
|
160
173
|
isWinner?: boolean | undefined;
|
|
161
174
|
};
|
|
175
|
+
periods: {
|
|
176
|
+
awayScore: number;
|
|
177
|
+
homeScore: number;
|
|
178
|
+
periodNumber: number;
|
|
179
|
+
}[];
|
|
162
180
|
rating: {
|
|
163
181
|
avg: number;
|
|
164
182
|
votes: {
|
|
@@ -174,11 +192,11 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
174
192
|
startedAt: number;
|
|
175
193
|
finishedAt: number;
|
|
176
194
|
ratingWindowClosedAt: number;
|
|
177
|
-
|
|
195
|
+
apiGameId: number;
|
|
178
196
|
homeTeam: {
|
|
179
197
|
name: string;
|
|
180
198
|
image: string;
|
|
181
|
-
|
|
199
|
+
apiTeamId: number;
|
|
182
200
|
score: number;
|
|
183
201
|
seed: number;
|
|
184
202
|
id?: string | undefined;
|
|
@@ -187,12 +205,17 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
187
205
|
awayTeam: {
|
|
188
206
|
name: string;
|
|
189
207
|
image: string;
|
|
190
|
-
|
|
208
|
+
apiTeamId: number;
|
|
191
209
|
score: number;
|
|
192
210
|
seed: number;
|
|
193
211
|
id?: string | undefined;
|
|
194
212
|
isWinner?: boolean | undefined;
|
|
195
213
|
};
|
|
214
|
+
periods: {
|
|
215
|
+
awayScore: number;
|
|
216
|
+
homeScore: number;
|
|
217
|
+
periodNumber: number;
|
|
218
|
+
}[];
|
|
196
219
|
rating: {
|
|
197
220
|
avg: number;
|
|
198
221
|
votes: {
|
package/dist/schemas/game.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.gameSchema = exports.gameRatingAggregateSchema = exports.gameTeamSchema
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.gameTeamSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string().optional(),
|
|
7
|
-
|
|
7
|
+
apiTeamId: zod_1.z.number(),
|
|
8
8
|
name: zod_1.z.string(),
|
|
9
9
|
score: zod_1.z.number(),
|
|
10
10
|
isWinner: zod_1.z.boolean().optional(),
|
|
@@ -26,8 +26,13 @@ exports.gameSchema = zod_1.z.object({
|
|
|
26
26
|
finishedAt: zod_1.z.number(),
|
|
27
27
|
ratingWindowClosedAt: zod_1.z.number(),
|
|
28
28
|
round: zod_1.z.number(),
|
|
29
|
-
|
|
29
|
+
apiGameId: zod_1.z.number(),
|
|
30
30
|
homeTeam: exports.gameTeamSchema,
|
|
31
31
|
awayTeam: exports.gameTeamSchema,
|
|
32
|
+
periods: zod_1.z.array(zod_1.z.object({
|
|
33
|
+
awayScore: zod_1.z.number(),
|
|
34
|
+
homeScore: zod_1.z.number(),
|
|
35
|
+
periodNumber: zod_1.z.number(),
|
|
36
|
+
})),
|
|
32
37
|
rating: exports.gameRatingAggregateSchema,
|
|
33
38
|
});
|
package/dist/schemas/rating.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
18
18
|
round: import("zod").ZodNumber;
|
|
19
19
|
homeTeam: import("zod").ZodObject<{
|
|
20
20
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
-
|
|
21
|
+
apiTeamId: import("zod").ZodNumber;
|
|
22
22
|
name: import("zod").ZodString;
|
|
23
23
|
score: import("zod").ZodNumber;
|
|
24
24
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -27,7 +27,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
27
27
|
}, "strip", import("zod").ZodTypeAny, {
|
|
28
28
|
name: string;
|
|
29
29
|
image: string;
|
|
30
|
-
|
|
30
|
+
apiTeamId: number;
|
|
31
31
|
score: number;
|
|
32
32
|
seed: number;
|
|
33
33
|
id?: string | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
35
35
|
}, {
|
|
36
36
|
name: string;
|
|
37
37
|
image: string;
|
|
38
|
-
|
|
38
|
+
apiTeamId: number;
|
|
39
39
|
score: number;
|
|
40
40
|
seed: number;
|
|
41
41
|
id?: string | undefined;
|
|
@@ -43,7 +43,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
43
43
|
}>;
|
|
44
44
|
awayTeam: import("zod").ZodObject<{
|
|
45
45
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
-
|
|
46
|
+
apiTeamId: import("zod").ZodNumber;
|
|
47
47
|
name: import("zod").ZodString;
|
|
48
48
|
score: import("zod").ZodNumber;
|
|
49
49
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -52,7 +52,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
52
52
|
}, "strip", import("zod").ZodTypeAny, {
|
|
53
53
|
name: string;
|
|
54
54
|
image: string;
|
|
55
|
-
|
|
55
|
+
apiTeamId: number;
|
|
56
56
|
score: number;
|
|
57
57
|
seed: number;
|
|
58
58
|
id?: string | undefined;
|
|
@@ -60,7 +60,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
60
60
|
}, {
|
|
61
61
|
name: string;
|
|
62
62
|
image: string;
|
|
63
|
-
|
|
63
|
+
apiTeamId: number;
|
|
64
64
|
score: number;
|
|
65
65
|
seed: number;
|
|
66
66
|
id?: string | undefined;
|
|
@@ -72,7 +72,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
72
72
|
homeTeam: {
|
|
73
73
|
name: string;
|
|
74
74
|
image: string;
|
|
75
|
-
|
|
75
|
+
apiTeamId: number;
|
|
76
76
|
score: number;
|
|
77
77
|
seed: number;
|
|
78
78
|
id?: string | undefined;
|
|
@@ -81,7 +81,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
81
81
|
awayTeam: {
|
|
82
82
|
name: string;
|
|
83
83
|
image: string;
|
|
84
|
-
|
|
84
|
+
apiTeamId: number;
|
|
85
85
|
score: number;
|
|
86
86
|
seed: number;
|
|
87
87
|
id?: string | undefined;
|
|
@@ -93,7 +93,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
93
93
|
homeTeam: {
|
|
94
94
|
name: string;
|
|
95
95
|
image: string;
|
|
96
|
-
|
|
96
|
+
apiTeamId: number;
|
|
97
97
|
score: number;
|
|
98
98
|
seed: number;
|
|
99
99
|
id?: string | undefined;
|
|
@@ -102,7 +102,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
102
102
|
awayTeam: {
|
|
103
103
|
name: string;
|
|
104
104
|
image: string;
|
|
105
|
-
|
|
105
|
+
apiTeamId: number;
|
|
106
106
|
score: number;
|
|
107
107
|
seed: number;
|
|
108
108
|
id?: string | undefined;
|
|
@@ -123,7 +123,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
123
123
|
homeTeam: {
|
|
124
124
|
name: string;
|
|
125
125
|
image: string;
|
|
126
|
-
|
|
126
|
+
apiTeamId: number;
|
|
127
127
|
score: number;
|
|
128
128
|
seed: number;
|
|
129
129
|
id?: string | undefined;
|
|
@@ -132,7 +132,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
132
132
|
awayTeam: {
|
|
133
133
|
name: string;
|
|
134
134
|
image: string;
|
|
135
|
-
|
|
135
|
+
apiTeamId: number;
|
|
136
136
|
score: number;
|
|
137
137
|
seed: number;
|
|
138
138
|
id?: string | undefined;
|
|
@@ -154,7 +154,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
154
154
|
homeTeam: {
|
|
155
155
|
name: string;
|
|
156
156
|
image: string;
|
|
157
|
-
|
|
157
|
+
apiTeamId: number;
|
|
158
158
|
score: number;
|
|
159
159
|
seed: number;
|
|
160
160
|
id?: string | undefined;
|
|
@@ -163,7 +163,7 @@ export declare const ratingSchema: import("zod").ZodObject<{
|
|
|
163
163
|
awayTeam: {
|
|
164
164
|
name: string;
|
|
165
165
|
image: string;
|
|
166
|
-
|
|
166
|
+
apiTeamId: number;
|
|
167
167
|
score: number;
|
|
168
168
|
seed: number;
|
|
169
169
|
id?: string | undefined;
|
|
@@ -180,7 +180,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
180
180
|
round: import("zod").ZodNumber;
|
|
181
181
|
homeTeam: import("zod").ZodObject<{
|
|
182
182
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
-
|
|
183
|
+
apiTeamId: import("zod").ZodNumber;
|
|
184
184
|
name: import("zod").ZodString;
|
|
185
185
|
score: import("zod").ZodNumber;
|
|
186
186
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -189,7 +189,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
189
189
|
}, "strip", import("zod").ZodTypeAny, {
|
|
190
190
|
name: string;
|
|
191
191
|
image: string;
|
|
192
|
-
|
|
192
|
+
apiTeamId: number;
|
|
193
193
|
score: number;
|
|
194
194
|
seed: number;
|
|
195
195
|
id?: string | undefined;
|
|
@@ -197,7 +197,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
197
197
|
}, {
|
|
198
198
|
name: string;
|
|
199
199
|
image: string;
|
|
200
|
-
|
|
200
|
+
apiTeamId: number;
|
|
201
201
|
score: number;
|
|
202
202
|
seed: number;
|
|
203
203
|
id?: string | undefined;
|
|
@@ -205,7 +205,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
205
205
|
}>;
|
|
206
206
|
awayTeam: import("zod").ZodObject<{
|
|
207
207
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
208
|
-
|
|
208
|
+
apiTeamId: import("zod").ZodNumber;
|
|
209
209
|
name: import("zod").ZodString;
|
|
210
210
|
score: import("zod").ZodNumber;
|
|
211
211
|
isWinner: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -214,7 +214,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
214
214
|
}, "strip", import("zod").ZodTypeAny, {
|
|
215
215
|
name: string;
|
|
216
216
|
image: string;
|
|
217
|
-
|
|
217
|
+
apiTeamId: number;
|
|
218
218
|
score: number;
|
|
219
219
|
seed: number;
|
|
220
220
|
id?: string | undefined;
|
|
@@ -222,7 +222,7 @@ export declare const createRatingSchema: import("zod").ZodObject<{
|
|
|
222
222
|
}, {
|
|
223
223
|
name: string;
|
|
224
224
|
image: string;
|
|
225
|
-
|
|
225
|
+
apiTeamId: number;
|
|
226
226
|
score: number;
|
|
227
227
|
seed: number;
|
|
228
228
|
id?: string | undefined;
|
package/dist/schemas/team.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ export declare const teamSchema: z.ZodObject<{
|
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
10
|
image: string;
|
|
11
|
-
seed: number;
|
|
12
11
|
apiTeamId: number;
|
|
12
|
+
seed: number;
|
|
13
13
|
id?: string | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
name: string;
|
|
16
16
|
image: string;
|
|
17
|
-
seed: number;
|
|
18
17
|
apiTeamId: number;
|
|
18
|
+
seed: number;
|
|
19
19
|
id?: string | undefined;
|
|
20
20
|
}>;
|