Add extra types (from #463). No backing store for now

This commit is contained in:
Zoe Roux 2024-11-09 16:03:54 +01:00
parent 29d11720a5
commit 84ce544f4d
No known key found for this signature in database

View File

@ -75,12 +75,24 @@ export const Special = t.Intersect(
);
export type Special = typeof Special.static;
export const ExtraType = t.UnionEnum([
"other",
"trailers",
"interview",
"behind-the-scenes",
"deleted-scenes",
"bloopers",
"mini-story",
]);
export type ExtraType = typeof ExtraType.static;
export const Extra = t.Intersect(
[
BaseEntry,
t.Object({
kind: t.Literal("extra"),
number: t.Number({ minimum: 1 }),
extraType: ExtraType,
// not sure about this id type
externalId: EpisodeId,
}),