Type: defineTVEpisode(input?: TVEpisode)
Describes an individual TV episode.
stringnumberNodeRelation<TVSeason>NodeRelation<TVSeries>NodeRelations<VideoObject | string>stringTVEpisodedefineTVEpisode({
name: 'Pilot',
episodeNumber: 1,
})
defineTVEpisode({
name: 'Pilot',
description: 'The first episode of Breaking Bad',
episodeNumber: 1,
partOfSeason: {
seasonNumber: 1,
},
partOfSeries: {
name: 'Breaking Bad',
},
url: 'https://example.com/shows/breaking-bad/s1/e1',
duration: 'PT58M',
datePublished: new Date(2008, 0, 20),
image: 'https://example.com/shows/breaking-bad-s1e1.jpg',
video: {
name: 'Pilot',
url: 'https://example.com/videos/breaking-bad-s1e1.mp4',
uploadDate: new Date(2008, 0, 20),
},
actor: [
{ name: 'Bryan Cranston' },
{ name: 'Aaron Paul' },
],
director: {
name: 'Vince Gilligan',
},
aggregateRating: {
ratingValue: 9.0,
ratingCount: 50000,
},
})
export interface TVEpisodeSimple extends Thing {
name: string
description?: string
episodeNumber?: number | string
partOfSeason?: NodeRelation<any>
partOfSeries?: NodeRelation<any>
actor?: NodeRelations<Person | string>
director?: NodeRelations<Person | string>
datePublished?: ResolvableDate
uploadDate?: ResolvableDate
duration?: string
video?: NodeRelation<VideoObject | string>
image?: NodeRelations<string | ImageObject>
thumbnailUrl?: string
url?: string
aggregateRating?: NodeRelation<AggregateRating>
review?: NodeRelations<Review>
contentRating?: string
musicBy?: NodeRelations<Person | string>
}