rategame-shared 1.0.69 → 1.0.71
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 +3 -3
- package/dist/schemas/game.js +1 -1
- package/dist/schemas/user.d.ts +93 -93
- package/dist/schemas/user.js +3 -3
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export declare const seriesInfoSchema: z.ZodObject<{
|
|
|
68
68
|
export declare const gameSchema: z.ZodObject<{
|
|
69
69
|
id: z.ZodOptional<z.ZodString>;
|
|
70
70
|
status: z.ZodUnion<[z.ZodLiteral<"scheduled">, z.ZodLiteral<"live">, z.ZodLiteral<"final">]>;
|
|
71
|
-
isClosed: z.ZodBoolean
|
|
71
|
+
isClosed: z.ZodOptional<z.ZodBoolean>;
|
|
72
72
|
startedAt: z.ZodNumber;
|
|
73
73
|
finishedAt: z.ZodNumber;
|
|
74
74
|
ratingWindowClosedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -186,7 +186,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
187
|
round: number;
|
|
188
188
|
status: "live" | "scheduled" | "final";
|
|
189
|
-
isClosed: boolean;
|
|
190
189
|
startedAt: number;
|
|
191
190
|
finishedAt: number;
|
|
192
191
|
apiGameId: number;
|
|
@@ -219,6 +218,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
219
218
|
periodType: "quarter" | "half";
|
|
220
219
|
periodDuration: number;
|
|
221
220
|
id?: string | undefined;
|
|
221
|
+
isClosed?: boolean | undefined;
|
|
222
222
|
ratingWindowClosedAt?: number | undefined;
|
|
223
223
|
seriesInfo?: {
|
|
224
224
|
maxLength: number;
|
|
@@ -236,7 +236,6 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
236
236
|
}, {
|
|
237
237
|
round: number;
|
|
238
238
|
status: "live" | "scheduled" | "final";
|
|
239
|
-
isClosed: boolean;
|
|
240
239
|
startedAt: number;
|
|
241
240
|
finishedAt: number;
|
|
242
241
|
apiGameId: number;
|
|
@@ -269,6 +268,7 @@ export declare const gameSchema: z.ZodObject<{
|
|
|
269
268
|
periodType: "quarter" | "half";
|
|
270
269
|
periodDuration: number;
|
|
271
270
|
id?: string | undefined;
|
|
271
|
+
isClosed?: boolean | undefined;
|
|
272
272
|
ratingWindowClosedAt?: number | undefined;
|
|
273
273
|
seriesInfo?: {
|
|
274
274
|
maxLength: number;
|
package/dist/schemas/game.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.gameSchema = zod_1.z.object({
|
|
|
31
31
|
zod_1.z.literal("live"),
|
|
32
32
|
zod_1.z.literal("final"),
|
|
33
33
|
]),
|
|
34
|
-
isClosed: zod_1.z.boolean(),
|
|
34
|
+
isClosed: zod_1.z.boolean().optional(),
|
|
35
35
|
startedAt: zod_1.z.number(),
|
|
36
36
|
finishedAt: zod_1.z.number(),
|
|
37
37
|
ratingWindowClosedAt: zod_1.z.number().optional(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const leagueStatsSchema: import("zod").ZodObject<{
|
|
2
|
-
totalRatedGames: import("zod").
|
|
3
|
-
commentsLeft: import("zod").
|
|
4
|
-
avgRating: import("zod").
|
|
2
|
+
totalRatedGames: import("zod").ZodNumber;
|
|
3
|
+
commentsLeft: import("zod").ZodNumber;
|
|
4
|
+
avgRating: import("zod").ZodNumber;
|
|
5
5
|
}, "strip", import("zod").ZodTypeAny, {
|
|
6
|
-
totalRatedGames
|
|
7
|
-
commentsLeft
|
|
8
|
-
avgRating
|
|
6
|
+
totalRatedGames: number;
|
|
7
|
+
commentsLeft: number;
|
|
8
|
+
avgRating: number;
|
|
9
9
|
}, {
|
|
10
|
-
totalRatedGames
|
|
11
|
-
commentsLeft
|
|
12
|
-
avgRating
|
|
10
|
+
totalRatedGames: number;
|
|
11
|
+
commentsLeft: number;
|
|
12
|
+
avgRating: number;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const userSchema: import("zod").ZodObject<{
|
|
15
15
|
id: import("zod").ZodString;
|
|
@@ -20,52 +20,52 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
20
20
|
updatedAt: import("zod").ZodNumber;
|
|
21
21
|
leagues: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
22
22
|
nba: import("zod").ZodObject<{
|
|
23
|
-
totalRatedGames: import("zod").
|
|
24
|
-
commentsLeft: import("zod").
|
|
25
|
-
avgRating: import("zod").
|
|
23
|
+
totalRatedGames: import("zod").ZodNumber;
|
|
24
|
+
commentsLeft: import("zod").ZodNumber;
|
|
25
|
+
avgRating: import("zod").ZodNumber;
|
|
26
26
|
}, "strip", import("zod").ZodTypeAny, {
|
|
27
|
-
totalRatedGames
|
|
28
|
-
commentsLeft
|
|
29
|
-
avgRating
|
|
27
|
+
totalRatedGames: number;
|
|
28
|
+
commentsLeft: number;
|
|
29
|
+
avgRating: number;
|
|
30
30
|
}, {
|
|
31
|
-
totalRatedGames
|
|
32
|
-
commentsLeft
|
|
33
|
-
avgRating
|
|
31
|
+
totalRatedGames: number;
|
|
32
|
+
commentsLeft: number;
|
|
33
|
+
avgRating: number;
|
|
34
34
|
}>;
|
|
35
35
|
ncaa: import("zod").ZodObject<{
|
|
36
|
-
totalRatedGames: import("zod").
|
|
37
|
-
commentsLeft: import("zod").
|
|
38
|
-
avgRating: import("zod").
|
|
36
|
+
totalRatedGames: import("zod").ZodNumber;
|
|
37
|
+
commentsLeft: import("zod").ZodNumber;
|
|
38
|
+
avgRating: import("zod").ZodNumber;
|
|
39
39
|
}, "strip", import("zod").ZodTypeAny, {
|
|
40
|
-
totalRatedGames
|
|
41
|
-
commentsLeft
|
|
42
|
-
avgRating
|
|
40
|
+
totalRatedGames: number;
|
|
41
|
+
commentsLeft: number;
|
|
42
|
+
avgRating: number;
|
|
43
43
|
}, {
|
|
44
|
-
totalRatedGames
|
|
45
|
-
commentsLeft
|
|
46
|
-
avgRating
|
|
44
|
+
totalRatedGames: number;
|
|
45
|
+
commentsLeft: number;
|
|
46
|
+
avgRating: number;
|
|
47
47
|
}>;
|
|
48
48
|
}, "strip", import("zod").ZodTypeAny, {
|
|
49
49
|
nba: {
|
|
50
|
-
totalRatedGames
|
|
51
|
-
commentsLeft
|
|
52
|
-
avgRating
|
|
50
|
+
totalRatedGames: number;
|
|
51
|
+
commentsLeft: number;
|
|
52
|
+
avgRating: number;
|
|
53
53
|
};
|
|
54
54
|
ncaa: {
|
|
55
|
-
totalRatedGames
|
|
56
|
-
commentsLeft
|
|
57
|
-
avgRating
|
|
55
|
+
totalRatedGames: number;
|
|
56
|
+
commentsLeft: number;
|
|
57
|
+
avgRating: number;
|
|
58
58
|
};
|
|
59
59
|
}, {
|
|
60
60
|
nba: {
|
|
61
|
-
totalRatedGames
|
|
62
|
-
commentsLeft
|
|
63
|
-
avgRating
|
|
61
|
+
totalRatedGames: number;
|
|
62
|
+
commentsLeft: number;
|
|
63
|
+
avgRating: number;
|
|
64
64
|
};
|
|
65
65
|
ncaa: {
|
|
66
|
-
totalRatedGames
|
|
67
|
-
commentsLeft
|
|
68
|
-
avgRating
|
|
66
|
+
totalRatedGames: number;
|
|
67
|
+
commentsLeft: number;
|
|
68
|
+
avgRating: number;
|
|
69
69
|
};
|
|
70
70
|
}>>;
|
|
71
71
|
totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -103,14 +103,14 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
103
103
|
acceptedPushNotifications: boolean;
|
|
104
104
|
leagues?: {
|
|
105
105
|
nba: {
|
|
106
|
-
totalRatedGames
|
|
107
|
-
commentsLeft
|
|
108
|
-
avgRating
|
|
106
|
+
totalRatedGames: number;
|
|
107
|
+
commentsLeft: number;
|
|
108
|
+
avgRating: number;
|
|
109
109
|
};
|
|
110
110
|
ncaa: {
|
|
111
|
-
totalRatedGames
|
|
112
|
-
commentsLeft
|
|
113
|
-
avgRating
|
|
111
|
+
totalRatedGames: number;
|
|
112
|
+
commentsLeft: number;
|
|
113
|
+
avgRating: number;
|
|
114
114
|
};
|
|
115
115
|
} | undefined;
|
|
116
116
|
totalRatedGames?: number | undefined;
|
|
@@ -136,14 +136,14 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
136
136
|
acceptedPushNotifications: boolean;
|
|
137
137
|
leagues?: {
|
|
138
138
|
nba: {
|
|
139
|
-
totalRatedGames
|
|
140
|
-
commentsLeft
|
|
141
|
-
avgRating
|
|
139
|
+
totalRatedGames: number;
|
|
140
|
+
commentsLeft: number;
|
|
141
|
+
avgRating: number;
|
|
142
142
|
};
|
|
143
143
|
ncaa: {
|
|
144
|
-
totalRatedGames
|
|
145
|
-
commentsLeft
|
|
146
|
-
avgRating
|
|
144
|
+
totalRatedGames: number;
|
|
145
|
+
commentsLeft: number;
|
|
146
|
+
avgRating: number;
|
|
147
147
|
};
|
|
148
148
|
} | undefined;
|
|
149
149
|
totalRatedGames?: number | undefined;
|
|
@@ -164,52 +164,52 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
164
164
|
updatedAt: import("zod").ZodNumber;
|
|
165
165
|
leagues: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
166
166
|
nba: import("zod").ZodObject<{
|
|
167
|
-
totalRatedGames: import("zod").
|
|
168
|
-
commentsLeft: import("zod").
|
|
169
|
-
avgRating: import("zod").
|
|
167
|
+
totalRatedGames: import("zod").ZodNumber;
|
|
168
|
+
commentsLeft: import("zod").ZodNumber;
|
|
169
|
+
avgRating: import("zod").ZodNumber;
|
|
170
170
|
}, "strip", import("zod").ZodTypeAny, {
|
|
171
|
-
totalRatedGames
|
|
172
|
-
commentsLeft
|
|
173
|
-
avgRating
|
|
171
|
+
totalRatedGames: number;
|
|
172
|
+
commentsLeft: number;
|
|
173
|
+
avgRating: number;
|
|
174
174
|
}, {
|
|
175
|
-
totalRatedGames
|
|
176
|
-
commentsLeft
|
|
177
|
-
avgRating
|
|
175
|
+
totalRatedGames: number;
|
|
176
|
+
commentsLeft: number;
|
|
177
|
+
avgRating: number;
|
|
178
178
|
}>;
|
|
179
179
|
ncaa: import("zod").ZodObject<{
|
|
180
|
-
totalRatedGames: import("zod").
|
|
181
|
-
commentsLeft: import("zod").
|
|
182
|
-
avgRating: import("zod").
|
|
180
|
+
totalRatedGames: import("zod").ZodNumber;
|
|
181
|
+
commentsLeft: import("zod").ZodNumber;
|
|
182
|
+
avgRating: import("zod").ZodNumber;
|
|
183
183
|
}, "strip", import("zod").ZodTypeAny, {
|
|
184
|
-
totalRatedGames
|
|
185
|
-
commentsLeft
|
|
186
|
-
avgRating
|
|
184
|
+
totalRatedGames: number;
|
|
185
|
+
commentsLeft: number;
|
|
186
|
+
avgRating: number;
|
|
187
187
|
}, {
|
|
188
|
-
totalRatedGames
|
|
189
|
-
commentsLeft
|
|
190
|
-
avgRating
|
|
188
|
+
totalRatedGames: number;
|
|
189
|
+
commentsLeft: number;
|
|
190
|
+
avgRating: number;
|
|
191
191
|
}>;
|
|
192
192
|
}, "strip", import("zod").ZodTypeAny, {
|
|
193
193
|
nba: {
|
|
194
|
-
totalRatedGames
|
|
195
|
-
commentsLeft
|
|
196
|
-
avgRating
|
|
194
|
+
totalRatedGames: number;
|
|
195
|
+
commentsLeft: number;
|
|
196
|
+
avgRating: number;
|
|
197
197
|
};
|
|
198
198
|
ncaa: {
|
|
199
|
-
totalRatedGames
|
|
200
|
-
commentsLeft
|
|
201
|
-
avgRating
|
|
199
|
+
totalRatedGames: number;
|
|
200
|
+
commentsLeft: number;
|
|
201
|
+
avgRating: number;
|
|
202
202
|
};
|
|
203
203
|
}, {
|
|
204
204
|
nba: {
|
|
205
|
-
totalRatedGames
|
|
206
|
-
commentsLeft
|
|
207
|
-
avgRating
|
|
205
|
+
totalRatedGames: number;
|
|
206
|
+
commentsLeft: number;
|
|
207
|
+
avgRating: number;
|
|
208
208
|
};
|
|
209
209
|
ncaa: {
|
|
210
|
-
totalRatedGames
|
|
211
|
-
commentsLeft
|
|
212
|
-
avgRating
|
|
210
|
+
totalRatedGames: number;
|
|
211
|
+
commentsLeft: number;
|
|
212
|
+
avgRating: number;
|
|
213
213
|
};
|
|
214
214
|
}>>;
|
|
215
215
|
totalRatedGames: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -239,14 +239,14 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
239
239
|
commentsLeft?: number | undefined;
|
|
240
240
|
leagues?: {
|
|
241
241
|
nba: {
|
|
242
|
-
totalRatedGames
|
|
243
|
-
commentsLeft
|
|
244
|
-
avgRating
|
|
242
|
+
totalRatedGames: number;
|
|
243
|
+
commentsLeft: number;
|
|
244
|
+
avgRating: number;
|
|
245
245
|
};
|
|
246
246
|
ncaa: {
|
|
247
|
-
totalRatedGames
|
|
248
|
-
commentsLeft
|
|
249
|
-
avgRating
|
|
247
|
+
totalRatedGames: number;
|
|
248
|
+
commentsLeft: number;
|
|
249
|
+
avgRating: number;
|
|
250
250
|
};
|
|
251
251
|
} | undefined;
|
|
252
252
|
isRegistrationComplete?: boolean | undefined;
|
|
@@ -261,14 +261,14 @@ export declare const createUserSchema: import("zod").ZodObject<Omit<{
|
|
|
261
261
|
commentsLeft?: number | undefined;
|
|
262
262
|
leagues?: {
|
|
263
263
|
nba: {
|
|
264
|
-
totalRatedGames
|
|
265
|
-
commentsLeft
|
|
266
|
-
avgRating
|
|
264
|
+
totalRatedGames: number;
|
|
265
|
+
commentsLeft: number;
|
|
266
|
+
avgRating: number;
|
|
267
267
|
};
|
|
268
268
|
ncaa: {
|
|
269
|
-
totalRatedGames
|
|
270
|
-
commentsLeft
|
|
271
|
-
avgRating
|
|
269
|
+
totalRatedGames: number;
|
|
270
|
+
commentsLeft: number;
|
|
271
|
+
avgRating: number;
|
|
272
272
|
};
|
|
273
273
|
} | undefined;
|
|
274
274
|
isRegistrationComplete?: boolean | undefined;
|
package/dist/schemas/user.js
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createUserSchema = exports.userSchema = exports.leagueStatsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.leagueStatsSchema = (0, zod_1.object)({
|
|
6
|
-
totalRatedGames: (0, zod_1.number)()
|
|
7
|
-
commentsLeft: (0, zod_1.number)()
|
|
8
|
-
avgRating: (0, zod_1.number)()
|
|
6
|
+
totalRatedGames: (0, zod_1.number)(),
|
|
7
|
+
commentsLeft: (0, zod_1.number)(),
|
|
8
|
+
avgRating: (0, zod_1.number)(),
|
|
9
9
|
});
|
|
10
10
|
exports.userSchema = (0, zod_1.object)({
|
|
11
11
|
id: (0, zod_1.string)(),
|