rategame-shared 1.1.234 → 1.1.236
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/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/models/userEvent.d.ts +3 -0
- package/dist/models/userEvent.js +2 -0
- package/dist/schemas/chat.d.ts +150 -10
- package/dist/schemas/game.d.ts +600 -40
- package/dist/schemas/list.d.ts +150 -10
- package/dist/schemas/moderation.d.ts +120 -8
- package/dist/schemas/rating.d.ts +90 -6
- package/dist/schemas/user.d.ts +171 -10
- package/dist/schemas/user.js +10 -1
- package/dist/schemas/userEvent.d.ts +83 -0
- package/dist/schemas/userEvent.js +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const userEventSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
userId: z.ZodString;
|
|
5
|
+
eventType: z.ZodLiteral<"achievement">;
|
|
6
|
+
eventData: z.ZodObject<{
|
|
7
|
+
achievementId: z.ZodString;
|
|
8
|
+
achievementName: z.ZodString;
|
|
9
|
+
achievementDescription: z.ZodString;
|
|
10
|
+
tier: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
progress: z.ZodNumber;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
progress: number;
|
|
14
|
+
achievementId: string;
|
|
15
|
+
achievementName: string;
|
|
16
|
+
achievementDescription: string;
|
|
17
|
+
tier?: number | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
progress: number;
|
|
20
|
+
achievementId: string;
|
|
21
|
+
achievementName: string;
|
|
22
|
+
achievementDescription: string;
|
|
23
|
+
tier?: number | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
user: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
username: z.ZodString;
|
|
28
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
30
|
+
email: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
id: string;
|
|
33
|
+
username: string;
|
|
34
|
+
email?: string | undefined;
|
|
35
|
+
avatarUrl?: string | undefined;
|
|
36
|
+
badge?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
id: string;
|
|
39
|
+
username: string;
|
|
40
|
+
email?: string | undefined;
|
|
41
|
+
avatarUrl?: string | undefined;
|
|
42
|
+
badge?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
createdAt: z.ZodNumber;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
id: string;
|
|
47
|
+
user: {
|
|
48
|
+
id: string;
|
|
49
|
+
username: string;
|
|
50
|
+
email?: string | undefined;
|
|
51
|
+
avatarUrl?: string | undefined;
|
|
52
|
+
badge?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
createdAt: number;
|
|
55
|
+
userId: string;
|
|
56
|
+
eventType: "achievement";
|
|
57
|
+
eventData: {
|
|
58
|
+
progress: number;
|
|
59
|
+
achievementId: string;
|
|
60
|
+
achievementName: string;
|
|
61
|
+
achievementDescription: string;
|
|
62
|
+
tier?: number | undefined;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
66
|
+
user: {
|
|
67
|
+
id: string;
|
|
68
|
+
username: string;
|
|
69
|
+
email?: string | undefined;
|
|
70
|
+
avatarUrl?: string | undefined;
|
|
71
|
+
badge?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
createdAt: number;
|
|
74
|
+
userId: string;
|
|
75
|
+
eventType: "achievement";
|
|
76
|
+
eventData: {
|
|
77
|
+
progress: number;
|
|
78
|
+
achievementId: string;
|
|
79
|
+
achievementName: string;
|
|
80
|
+
achievementDescription: string;
|
|
81
|
+
tier?: number | undefined;
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userEventSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.userEventSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
userId: zod_1.z.string(),
|
|
8
|
+
eventType: (0, zod_1.literal)("achievement"),
|
|
9
|
+
eventData: zod_1.z.object({
|
|
10
|
+
achievementId: zod_1.z.string(),
|
|
11
|
+
achievementName: zod_1.z.string(),
|
|
12
|
+
achievementDescription: zod_1.z.string(),
|
|
13
|
+
tier: zod_1.z.number().optional(),
|
|
14
|
+
progress: zod_1.z.number(),
|
|
15
|
+
}),
|
|
16
|
+
user: zod_1.z.object({
|
|
17
|
+
id: zod_1.z.string(),
|
|
18
|
+
username: zod_1.z.string(),
|
|
19
|
+
avatarUrl: zod_1.z.string().optional(),
|
|
20
|
+
badge: zod_1.z.string().optional(),
|
|
21
|
+
email: zod_1.z.string().optional(),
|
|
22
|
+
}),
|
|
23
|
+
createdAt: zod_1.z.number(),
|
|
24
|
+
});
|