mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 21:24:20 -04:00
Remove serieId & seasonId from entry response
This commit is contained in:
parent
34e145ab23
commit
ed19413576
@ -6,7 +6,6 @@ import { comment } from "../utils";
|
|||||||
const BaseEntry = t.Object({
|
const BaseEntry = t.Object({
|
||||||
id: t.String({ format: "uuid" }),
|
id: t.String({ format: "uuid" }),
|
||||||
slug: t.String(),
|
slug: t.String(),
|
||||||
serieId: t.String({ format: "uuid" }),
|
|
||||||
name: t.Nullable(t.String()),
|
name: t.Nullable(t.String()),
|
||||||
description: t.Nullable(t.String()),
|
description: t.Nullable(t.String()),
|
||||||
airDate: t.Nullable(t.String({ format: "data" })),
|
airDate: t.Nullable(t.String({ format: "data" })),
|
||||||
@ -23,7 +22,6 @@ export const Episode = t.Intersect([
|
|||||||
BaseEntry,
|
BaseEntry,
|
||||||
t.Object({
|
t.Object({
|
||||||
kind: t.Literal("episode"),
|
kind: t.Literal("episode"),
|
||||||
seasonId: t.String({ format: "uuid" }),
|
|
||||||
order: t.Number({ minimum: 1, description: "Absolute playback order." }),
|
order: t.Number({ minimum: 1, description: "Absolute playback order." }),
|
||||||
seasonNumber: t.Number(),
|
seasonNumber: t.Number(),
|
||||||
episodeNumber: t.Number(),
|
episodeNumber: t.Number(),
|
||||||
@ -108,7 +106,7 @@ export type Extra = typeof Extra.static;
|
|||||||
|
|
||||||
export const UnknownEntry = t.Intersect(
|
export const UnknownEntry = t.Intersect(
|
||||||
[
|
[
|
||||||
t.Omit(BaseEntry, ["serieId", "airDate", "description"]),
|
t.Omit(BaseEntry, ["airDate", "description"]),
|
||||||
t.Object({
|
t.Object({
|
||||||
kind: t.Literal("unknown"),
|
kind: t.Literal("unknown"),
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user