rategame-shared 1.1.280 → 1.1.282
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/list.d.ts
CHANGED
|
@@ -1022,13 +1022,13 @@ export declare const listSchema: z.ZodObject<{
|
|
|
1022
1022
|
badge?: string | undefined;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
itemIds: z.ZodArray<z.ZodString, "many">;
|
|
1025
|
-
type: z.ZodEnum<["game", "rating"]>;
|
|
1025
|
+
type: z.ZodEnum<["game", "rating", "stadium"]>;
|
|
1026
1026
|
league: z.ZodOptional<z.ZodString>;
|
|
1027
1027
|
season: z.ZodOptional<z.ZodString>;
|
|
1028
1028
|
public: z.ZodBoolean;
|
|
1029
1029
|
likesCount: z.ZodOptional<z.ZodNumber>;
|
|
1030
1030
|
}, "strip", z.ZodTypeAny, {
|
|
1031
|
-
type: "rating" | "game";
|
|
1031
|
+
type: "rating" | "stadium" | "game";
|
|
1032
1032
|
id: string;
|
|
1033
1033
|
name: string;
|
|
1034
1034
|
public: boolean;
|
|
@@ -1047,7 +1047,7 @@ export declare const listSchema: z.ZodObject<{
|
|
|
1047
1047
|
season?: string | undefined;
|
|
1048
1048
|
likesCount?: number | undefined;
|
|
1049
1049
|
}, {
|
|
1050
|
-
type: "rating" | "game";
|
|
1050
|
+
type: "rating" | "stadium" | "game";
|
|
1051
1051
|
id: string;
|
|
1052
1052
|
name: string;
|
|
1053
1053
|
public: boolean;
|
|
@@ -2089,13 +2089,13 @@ export declare const listCreateSchema: z.ZodObject<Omit<{
|
|
|
2089
2089
|
badge?: string | undefined;
|
|
2090
2090
|
}>;
|
|
2091
2091
|
itemIds: z.ZodArray<z.ZodString, "many">;
|
|
2092
|
-
type: z.ZodEnum<["game", "rating"]>;
|
|
2092
|
+
type: z.ZodEnum<["game", "rating", "stadium"]>;
|
|
2093
2093
|
league: z.ZodOptional<z.ZodString>;
|
|
2094
2094
|
season: z.ZodOptional<z.ZodString>;
|
|
2095
2095
|
public: z.ZodBoolean;
|
|
2096
2096
|
likesCount: z.ZodOptional<z.ZodNumber>;
|
|
2097
2097
|
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
2098
|
-
type: "rating" | "game";
|
|
2098
|
+
type: "rating" | "stadium" | "game";
|
|
2099
2099
|
name: string;
|
|
2100
2100
|
public: boolean;
|
|
2101
2101
|
user: {
|
|
@@ -2111,7 +2111,7 @@ export declare const listCreateSchema: z.ZodObject<Omit<{
|
|
|
2111
2111
|
season?: string | undefined;
|
|
2112
2112
|
likesCount?: number | undefined;
|
|
2113
2113
|
}, {
|
|
2114
|
-
type: "rating" | "game";
|
|
2114
|
+
type: "rating" | "stadium" | "game";
|
|
2115
2115
|
name: string;
|
|
2116
2116
|
public: boolean;
|
|
2117
2117
|
user: {
|
package/dist/schemas/list.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.listSchema = zod_1.z.object({
|
|
|
11
11
|
updatedAt: zod_1.z.number().optional(),
|
|
12
12
|
user: user_1.reducedUserSchema,
|
|
13
13
|
itemIds: zod_1.z.array(zod_1.z.string()),
|
|
14
|
-
type: zod_1.z.enum(["game", "rating"]),
|
|
14
|
+
type: zod_1.z.enum(["game", "rating", "stadium"]),
|
|
15
15
|
league: zod_1.z.string().optional(),
|
|
16
16
|
season: zod_1.z.string().optional(),
|
|
17
17
|
public: zod_1.z.boolean(),
|
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const userEventSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
userId: z.ZodString;
|
|
5
|
-
eventType: z.ZodUnion<[z.ZodLiteral<"achievement">, z.ZodLiteral<"streak">]>;
|
|
5
|
+
eventType: z.ZodUnion<[z.ZodLiteral<"achievement">, z.ZodLiteral<"streak">, z.ZodLiteral<"rating_milestone">]>;
|
|
6
6
|
eventData: z.ZodUnion<[z.ZodObject<{
|
|
7
7
|
achievementId: z.ZodString;
|
|
8
8
|
achievementName: z.ZodString;
|
|
@@ -30,6 +30,12 @@ export declare const userEventSchema: z.ZodObject<{
|
|
|
30
30
|
}, {
|
|
31
31
|
streakNumber: number;
|
|
32
32
|
milestone: number;
|
|
33
|
+
}>, z.ZodObject<{
|
|
34
|
+
ratingCount: z.ZodNumber;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
ratingCount: number;
|
|
37
|
+
}, {
|
|
38
|
+
ratingCount: number;
|
|
33
39
|
}>]>;
|
|
34
40
|
user: z.ZodObject<{
|
|
35
41
|
id: z.ZodString;
|
|
@@ -63,7 +69,7 @@ export declare const userEventSchema: z.ZodObject<{
|
|
|
63
69
|
};
|
|
64
70
|
createdAt: number;
|
|
65
71
|
userId: string;
|
|
66
|
-
eventType: "streak" | "achievement";
|
|
72
|
+
eventType: "streak" | "achievement" | "rating_milestone";
|
|
67
73
|
eventData: {
|
|
68
74
|
progress: number;
|
|
69
75
|
achievementId: string;
|
|
@@ -73,6 +79,8 @@ export declare const userEventSchema: z.ZodObject<{
|
|
|
73
79
|
} | {
|
|
74
80
|
streakNumber: number;
|
|
75
81
|
milestone: number;
|
|
82
|
+
} | {
|
|
83
|
+
ratingCount: number;
|
|
76
84
|
};
|
|
77
85
|
likesCount?: number | undefined;
|
|
78
86
|
}, {
|
|
@@ -86,7 +94,7 @@ export declare const userEventSchema: z.ZodObject<{
|
|
|
86
94
|
};
|
|
87
95
|
createdAt: number;
|
|
88
96
|
userId: string;
|
|
89
|
-
eventType: "streak" | "achievement";
|
|
97
|
+
eventType: "streak" | "achievement" | "rating_milestone";
|
|
90
98
|
eventData: {
|
|
91
99
|
progress: number;
|
|
92
100
|
achievementId: string;
|
|
@@ -96,6 +104,8 @@ export declare const userEventSchema: z.ZodObject<{
|
|
|
96
104
|
} | {
|
|
97
105
|
streakNumber: number;
|
|
98
106
|
milestone: number;
|
|
107
|
+
} | {
|
|
108
|
+
ratingCount: number;
|
|
99
109
|
};
|
|
100
110
|
likesCount?: number | undefined;
|
|
101
111
|
}>;
|
|
@@ -6,7 +6,11 @@ const user_1 = require("./user");
|
|
|
6
6
|
exports.userEventSchema = zod_1.z.object({
|
|
7
7
|
id: zod_1.z.string(),
|
|
8
8
|
userId: zod_1.z.string(),
|
|
9
|
-
eventType: zod_1.z.union([
|
|
9
|
+
eventType: zod_1.z.union([
|
|
10
|
+
zod_1.z.literal("achievement"),
|
|
11
|
+
zod_1.z.literal("streak"),
|
|
12
|
+
zod_1.z.literal("rating_milestone"),
|
|
13
|
+
]),
|
|
10
14
|
eventData: zod_1.z.union([
|
|
11
15
|
// Achievement event data
|
|
12
16
|
zod_1.z.object({
|
|
@@ -21,6 +25,9 @@ exports.userEventSchema = zod_1.z.object({
|
|
|
21
25
|
streakNumber: zod_1.z.number(),
|
|
22
26
|
milestone: zod_1.z.number(),
|
|
23
27
|
}),
|
|
28
|
+
zod_1.z.object({
|
|
29
|
+
ratingCount: zod_1.z.number(),
|
|
30
|
+
}),
|
|
24
31
|
]),
|
|
25
32
|
user: zod_1.z.object({
|
|
26
33
|
id: zod_1.z.string(),
|