Added first

This commit is contained in:
2025-09-05 19:31:06 +02:00
parent 306ad1f146
commit 5bf00d513a
7 changed files with 238 additions and 2 deletions

View File

@@ -445,3 +445,22 @@ export const uhcSchema = z.looseObject({
ultimates_crafted_solo: z.number().default(0),
...uhcModesStats()
})
export const pitStats = z.looseObject({
pit_stats_ptl: z.looseObject({
kills: z.number().default(0),
deaths: z.number().default(0)
}),
profile: z.looseObject({
prestiges: z.array(z.looseObject({
index: z.number(),
xp_on_prestige: z.number(),
timestamp: z.number()
})),
xp: z.number().default(0)
})
}).transform(({ profile, pit_stats_ptl, ...rest }) => ({
profile,
...pit_stats_ptl,
...rest
}))