mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
23 lines
499 B
TypeScript
23 lines
499 B
TypeScript
import { t } from "elysia";
|
|
import { Image } from "../utils/image";
|
|
|
|
export const BaseEntry = () =>
|
|
t.Object({
|
|
airDate: t.Nullable(t.String({ format: "date" })),
|
|
runtime: t.Nullable(
|
|
t.Number({
|
|
minimum: 0,
|
|
description: "Runtime of the episode in minutes",
|
|
}),
|
|
),
|
|
thumbnail: t.Nullable(Image),
|
|
|
|
nextRefresh: t.String({ format: "date-time" }),
|
|
});
|
|
|
|
export const EntryTranslation = () =>
|
|
t.Object({
|
|
name: t.Nullable(t.String()),
|
|
description: t.Nullable(t.String()),
|
|
});
|