rategame-shared 1.0.52 → 1.0.54
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 +2 -2
- package/dist/schemas/team.d.ts +22 -0
- package/dist/schemas/team.js +9 -1
- package/package.json +1 -1
package/dist/schemas/game.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
239
239
|
teamId: z.ZodOptional<z.ZodString>;
|
|
240
240
|
round: z.ZodOptional<z.ZodString>;
|
|
241
241
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"12h">, z.ZodLiteral<"daily">, z.ZodLiteral<"weekly">]>>;
|
|
242
|
-
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating:asc">, z.ZodLiteral<"rating:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
|
|
242
|
+
sortBy: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"rating.avg:asc">, z.ZodLiteral<"rating.avg:desc">, z.ZodLiteral<"startedAt:asc">, z.ZodLiteral<"startedAt:desc">]>>;
|
|
243
243
|
limit: z.ZodOptional<z.ZodString>;
|
|
244
244
|
offset: z.ZodOptional<z.ZodString>;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -247,7 +247,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
247
247
|
teamId?: string | undefined;
|
|
248
248
|
round?: string | undefined;
|
|
249
249
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
250
|
-
sortBy?: "rating:asc" | "rating:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
250
|
+
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
251
251
|
limit?: string | undefined;
|
|
252
252
|
offset?: string | undefined;
|
|
253
253
|
}, {
|
|
@@ -255,7 +255,7 @@ export declare const searchGameSchema: z.ZodObject<{
|
|
|
255
255
|
teamId?: string | undefined;
|
|
256
256
|
round?: string | undefined;
|
|
257
257
|
createdAt?: "12h" | "daily" | "weekly" | undefined;
|
|
258
|
-
sortBy?: "rating:asc" | "rating:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
258
|
+
sortBy?: "rating.avg:asc" | "rating.avg:desc" | "startedAt:asc" | "startedAt:desc" | undefined;
|
|
259
259
|
limit?: string | undefined;
|
|
260
260
|
offset?: string | undefined;
|
|
261
261
|
}>;
|
package/dist/schemas/game.js
CHANGED
|
@@ -52,8 +52,8 @@ exports.searchGameSchema = zod_1.z.object({
|
|
|
52
52
|
.optional(),
|
|
53
53
|
sortBy: zod_1.z
|
|
54
54
|
.union([
|
|
55
|
-
zod_1.z.literal("rating:asc"),
|
|
56
|
-
zod_1.z.literal("rating:desc"),
|
|
55
|
+
zod_1.z.literal("rating.avg:asc"),
|
|
56
|
+
zod_1.z.literal("rating.avg:desc"),
|
|
57
57
|
zod_1.z.literal("startedAt:asc"),
|
|
58
58
|
zod_1.z.literal("startedAt:desc"),
|
|
59
59
|
])
|
package/dist/schemas/team.d.ts
CHANGED
|
@@ -18,3 +18,25 @@ export declare const teamSchema: z.ZodObject<{
|
|
|
18
18
|
seed: number;
|
|
19
19
|
id?: string | undefined;
|
|
20
20
|
}>;
|
|
21
|
+
export declare const nbaTeamSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodOptional<z.ZodString>;
|
|
23
|
+
apiTeamId: z.ZodNumber;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
city: z.ZodString;
|
|
26
|
+
conference: z.ZodString;
|
|
27
|
+
image: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
name: string;
|
|
30
|
+
image: string;
|
|
31
|
+
apiTeamId: number;
|
|
32
|
+
city: string;
|
|
33
|
+
conference: string;
|
|
34
|
+
id?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
name: string;
|
|
37
|
+
image: string;
|
|
38
|
+
apiTeamId: number;
|
|
39
|
+
city: string;
|
|
40
|
+
conference: string;
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
}>;
|
package/dist/schemas/team.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.teamSchema = void 0;
|
|
3
|
+
exports.nbaTeamSchema = exports.teamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.teamSchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.string().optional(),
|
|
@@ -9,3 +9,11 @@ exports.teamSchema = zod_1.z.object({
|
|
|
9
9
|
image: zod_1.z.string(),
|
|
10
10
|
seed: zod_1.z.number(),
|
|
11
11
|
});
|
|
12
|
+
exports.nbaTeamSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string().optional(),
|
|
14
|
+
apiTeamId: zod_1.z.number(),
|
|
15
|
+
name: zod_1.z.string(),
|
|
16
|
+
city: zod_1.z.string(),
|
|
17
|
+
conference: zod_1.z.string(),
|
|
18
|
+
image: zod_1.z.string(),
|
|
19
|
+
});
|