diff --git a/api/src/models/examples/dune-collection.ts b/api/src/models/examples/dune-collection.ts index 4c249975..4903f14b 100644 --- a/api/src/models/examples/dune-collection.ts +++ b/api/src/models/examples/dune-collection.ts @@ -5,7 +5,7 @@ export const duneCollection: SeedCollection = { translations: { en: { name: " Dune Collection", - tagline: "A mythic and emotionally charged hero's journey.", + tagline: "A mythic and emotionally charged hero journey.", description: "The saga of Paul Atreides and his rise to power on the deadly planet Arrakis.", aliases: [], diff --git a/api/src/models/examples/made-in-abyss.ts b/api/src/models/examples/made-in-abyss.ts index 36e16dd8..addcd277 100644 --- a/api/src/models/examples/made-in-abyss.ts +++ b/api/src/models/examples/made-in-abyss.ts @@ -295,4 +295,26 @@ export const madeInAbyss = { }, }, ], + staff: [ + { + kind: "actor", + character: { + name: "レグ", + latinName: "Reg", + image: "https://cdn.myanimelist.net/images/characters/4/326001.jpg", + }, + staff: { + slug: "mariya-ise", + name: "伊瀬茉莉也", + latinName: "Mariya Ise", + image: "https://cdn.myanimelist.net/images/voiceactors/2/65504.jpg", + externalId: { + themoviedatabase: { + dataId: "1250465", + link: "https://www.themoviedb.org/person/1250465", + }, + }, + }, + }, + ], } satisfies SeedSerie; diff --git a/api/src/models/staff.ts b/api/src/models/staff.ts index 0d5686c7..37aad31e 100644 --- a/api/src/models/staff.ts +++ b/api/src/models/staff.ts @@ -1,4 +1,5 @@ import { t } from "elysia"; +import { bubbleImages, madeInAbyss, registerExamples } from "./examples"; import { DbMetadata, ExternalId, Image, Resource, SeedImage } from "./utils"; export const Character = t.Object({ @@ -49,3 +50,25 @@ export const SeedStaff = t.Intersect([ }), ]); export type SeedStaff = typeof SeedStaff.static; + +const role = madeInAbyss.staff[0]; +registerExamples(SeedStaff, role); +registerExamples(Staff, { + ...role.staff, + image: { + id: bubbleImages.poster.id, + source: role.staff.image, + blurhash: bubbleImages.poster.blurhash, + }, +}); +registerExamples(Role, { + ...role, + character: { + ...role.character, + image: { + id: bubbleImages.poster.id, + source: role.character.image, + blurhash: bubbleImages.poster.blurhash, + }, + }, +});