feat: favorite actors top-5 stat in profile trends
All checks were successful
CI / Check / Test (push) Successful in 1h5m14s

This commit is contained in:
2026-08-09 20:59:18 +02:00
parent d282e8ea7e
commit 4d221e60de
13 changed files with 297 additions and 10 deletions

View File

@@ -48,6 +48,14 @@ export const directorStatDtoSchema = z.object({
})
export type DirectorStatDto = z.infer<typeof directorStatDtoSchema>
export const actorStatDtoSchema = z.object({
name: z.string(),
profile_path: z.string().optional(),
movie_count: z.number(),
score: z.number(),
})
export type ActorStatDto = z.infer<typeof actorStatDtoSchema>
export const genreStatDtoSchema = z.object({
genre: z.string(),
count: z.number(),
@@ -64,6 +72,7 @@ export const userTrendsDtoSchema = z.object({
monthly_ratings: z.array(monthlyRatingDtoSchema),
top_directors: z.array(directorStatDtoSchema),
max_director_count: z.number(),
top_actors: z.array(actorStatDtoSchema).default([]),
top_genres: z.array(genreStatDtoSchema).default([]),
rating_distribution: z.array(z.number()).default([]),
watch_medium_distribution: z.array(watchMediumStatDtoSchema).default([]),