rategame-shared 1.0.14 → 1.0.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 +16 -16
- package/dist/schemas/game.js +2 -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,7 +102,7 @@ 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;
|
|
@@ -140,11 +140,11 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
140
140
|
startedAt: number;
|
|
141
141
|
finishedAt: number;
|
|
142
142
|
ratingWindowClosedAt: number;
|
|
143
|
-
|
|
143
|
+
apiGameId: number;
|
|
144
144
|
homeTeam: {
|
|
145
145
|
name: string;
|
|
146
146
|
image: string;
|
|
147
|
-
|
|
147
|
+
apiTeamId: number;
|
|
148
148
|
score: number;
|
|
149
149
|
seed: number;
|
|
150
150
|
id?: string | undefined;
|
|
@@ -153,7 +153,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
153
153
|
awayTeam: {
|
|
154
154
|
name: string;
|
|
155
155
|
image: string;
|
|
156
|
-
|
|
156
|
+
apiTeamId: number;
|
|
157
157
|
score: number;
|
|
158
158
|
seed: number;
|
|
159
159
|
id?: string | undefined;
|
|
@@ -174,11 +174,11 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
174
174
|
startedAt: number;
|
|
175
175
|
finishedAt: number;
|
|
176
176
|
ratingWindowClosedAt: number;
|
|
177
|
-
|
|
177
|
+
apiGameId: number;
|
|
178
178
|
homeTeam: {
|
|
179
179
|
name: string;
|
|
180
180
|
image: string;
|
|
181
|
-
|
|
181
|
+
apiTeamId: number;
|
|
182
182
|
score: number;
|
|
183
183
|
seed: number;
|
|
184
184
|
id?: string | undefined;
|
|
@@ -187,7 +187,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
187
187
|
awayTeam: {
|
|
188
188
|
name: string;
|
|
189
189
|
image: string;
|
|
190
|
-
|
|
190
|
+
apiTeamId: number;
|
|
191
191
|
score: number;
|
|
192
192
|
seed: number;
|
|
193
193
|
id?: string | undefined;
|
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,7 +26,7 @@ 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
32
|
rating: exports.gameRatingAggregateSchema,
|
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
|
}>;
|