rategame-shared 1.1.236 → 1.1.238
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/models/userEvent.d.ts +3 -1
- package/dist/schemas/user.js +0 -2
- package/dist/schemas/userEvent.d.ts +2819 -0
- package/dist/schemas/userEvent.js +24 -1
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { userEventSchema } from "../schemas/userEvent";
|
|
2
|
+
import { userEventSchema, userEventCommentSchema, userEventCommentLikeSchema } from "../schemas/userEvent";
|
|
3
3
|
export type UserEvent = z.infer<typeof userEventSchema>;
|
|
4
|
+
export type UserEventComment = z.infer<typeof userEventCommentSchema>;
|
|
5
|
+
export type UserEventCommentLike = z.infer<typeof userEventCommentLikeSchema>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -83,7 +83,6 @@ exports.achievementSchema = (0, zod_1.object)({
|
|
|
83
83
|
id: (0, zod_1.string)(),
|
|
84
84
|
name: (0, zod_1.string)(),
|
|
85
85
|
description: (0, zod_1.string)(),
|
|
86
|
-
// Existing fields for tiered achievements
|
|
87
86
|
progress: (0, zod_1.number)().optional(),
|
|
88
87
|
tiers: (0, zod_1.object)({
|
|
89
88
|
bronze: (0, zod_1.object)({
|
|
@@ -100,7 +99,6 @@ exports.achievementSchema = (0, zod_1.object)({
|
|
|
100
99
|
}),
|
|
101
100
|
}).optional(),
|
|
102
101
|
currentTier: (0, zod_1.number)().optional(),
|
|
103
|
-
// New field for one-time achievement progress
|
|
104
102
|
oneTimeProgress: (0, zod_1.record)((0, zod_1.string)(), exports.oneTimeProgressSchema).optional(),
|
|
105
103
|
seen: (0, zod_1.boolean)().optional(),
|
|
106
104
|
type: (0, zod_1.union)([
|