feat(api): expose updatedAt in watching titles

This commit is contained in:
2025-11-29 09:02:51 -05:00
parent 3bc1f9f2b7
commit 40fa0080b5
2 changed files with 3 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ const GetWatchingTitlesQuery = graphql(`
id id
progress progress
status status
updatedAt
} }
nextAiringEpisode { nextAiringEpisode {
timeUntilAiring timeUntilAiring
@@ -122,6 +123,7 @@ type GetWatchingTitles = {
| "DROPPED" | "DROPPED"
| "PAUSED" | "PAUSED"
| null; | null;
updatedAt: number;
} | null; } | null;
nextAiringEpisode: { nextAiringEpisode: {
timeUntilAiring: number; timeUntilAiring: number;

View File

@@ -18,6 +18,7 @@ export const Title = z.object({
status: z.nullable(WatchStatus), status: z.nullable(WatchStatus),
progress: NullableNumberSchema, progress: NullableNumberSchema,
id: z.number().int(), id: z.number().int(),
updatedAt: z.number().int().openapi({ format: "int64" }),
}), }),
), ),
countryOfOrigin: countryCodeSchema, countryOfOrigin: countryCodeSchema,