237 lines
No EOL
6.4 KiB
TypeScript
237 lines
No EOL
6.4 KiB
TypeScript
export interface Item {
|
|
// Added later
|
|
id: string,
|
|
id_split: (number|string)[]
|
|
// Added from the start
|
|
mostRecentSvodJpnUs: MostRecentSvodJpnUs;
|
|
synopsis: string;
|
|
mediaCategory: ContentType;
|
|
mostRecentSvodUsEndTimestamp: number;
|
|
quality: QualityClass;
|
|
genres: Genre[];
|
|
titleImages: TitleImages;
|
|
engAllTerritoryAvail: EngAllTerritoryAvail;
|
|
thumb: string;
|
|
mostRecentSvodJpnAllTerrStartTimestamp: number;
|
|
title: string;
|
|
starRating: number;
|
|
primaryAvail: PrimaryAvail;
|
|
access: Access[];
|
|
version: Version[];
|
|
mostRecentSvodJpnAllTerrEndTimestamp: number;
|
|
itemId: number;
|
|
versionAudio: VersionAudio;
|
|
contentType: ContentType;
|
|
mostRecentSvodUsStartTimestamp: number;
|
|
poster: string;
|
|
mostRecentSvodEngAllTerrEndTimestamp: number;
|
|
mostRecentSvodJpnUsStartTimestamp: number;
|
|
mostRecentSvodJpnUsEndTimestamp: number;
|
|
mostRecentSvodStartTimestamp: number;
|
|
mostRecentSvod: MostRecent;
|
|
altAvail: AltAvail;
|
|
ids: IDs;
|
|
mostRecentSvodUs: MostRecent;
|
|
item: Item;
|
|
mostRecentSvodEngAllTerrStartTimestamp: number;
|
|
audio: Audio[];
|
|
mostRecentAvod: MostRecent;
|
|
}
|
|
|
|
export enum Access {
|
|
AVODSimulcastEnglish = "A-VOD_Simulcast_English",
|
|
AVODUncutEnglish = "A-VOD_Uncut_English",
|
|
SVODSimulcastEnglish = "SVOD_Simulcast_English",
|
|
SVODUncutEnglish = "SVOD_Uncut_English",
|
|
}
|
|
|
|
export enum AltAvail {
|
|
MostRecentSvodJpnUs = "most_recent_svod_jpn_us",
|
|
}
|
|
|
|
export enum Audio {
|
|
English = "English",
|
|
}
|
|
|
|
export enum ContentType {
|
|
Episode = "episode",
|
|
Ova = "ova",
|
|
}
|
|
|
|
export enum EngAllTerritoryAvail {
|
|
MostRecentSvodEngAllTerr = "most_recent_svod_eng_all_terr",
|
|
}
|
|
|
|
export enum Genre {
|
|
ActionAdventure = "Action/Adventure",
|
|
Comedy = "Comedy",
|
|
Drama = "Drama",
|
|
Fantasy = "Fantasy",
|
|
}
|
|
|
|
export interface IDs {
|
|
externalShowId: ID;
|
|
externalSeasonId: ExternalSeasonID;
|
|
externalEpisodeId: string;
|
|
externalAsianId?: string
|
|
}
|
|
|
|
export enum ExternalSeasonID {
|
|
TrsS11 = "TRS-S1-1",
|
|
TrsS22 = "TRS-S2-2",
|
|
}
|
|
|
|
export enum ID {
|
|
Trs = "TRS",
|
|
}
|
|
|
|
export interface Item {
|
|
seasonTitle: SeasonTitle;
|
|
seasonId: number;
|
|
episodeOrder: number;
|
|
episodeSlug: string;
|
|
created: Date;
|
|
titleSlug: TitleSlug;
|
|
episodeNum: string;
|
|
episodeId: number;
|
|
titleId: number;
|
|
seasonNum: string;
|
|
ratings: Array<string[]>;
|
|
showImage: string;
|
|
titleName: TitleName;
|
|
runtime: string;
|
|
episodeName: string;
|
|
seasonOrder: number;
|
|
titleExternalId: ID;
|
|
}
|
|
|
|
export enum SeasonTitle {
|
|
Season1 = "Season 1",
|
|
Season2 = "Season 2",
|
|
}
|
|
|
|
export enum TitleName {
|
|
ThatTimeIGotReincarnatedAsASlime = "That Time I Got Reincarnated as a Slime",
|
|
}
|
|
|
|
export enum TitleSlug {
|
|
ThatTimeIGotReincarnatedAsASlime = "that-time-i-got-reincarnated-as-a-slime",
|
|
}
|
|
|
|
export interface MostRecent {
|
|
image?: string;
|
|
siblingStartTimestamp?: string;
|
|
devices?: Device[];
|
|
availId?: number;
|
|
distributor?: Distributor;
|
|
quality?: MostRecentAvodQuality;
|
|
endTimestamp?: string;
|
|
mediaCategory?: ContentType;
|
|
isPromo?: boolean;
|
|
siblingType?: Purchase;
|
|
version?: Version;
|
|
territory?: Territory;
|
|
startDate?: Date;
|
|
endDate?: Date;
|
|
versionId?: number;
|
|
tier?: Device | null;
|
|
purchase?: Purchase;
|
|
startTimestamp?: string;
|
|
language?: Audio;
|
|
itemTitle?: string;
|
|
ids?: MostRecentAvodIDS;
|
|
experience?: number;
|
|
siblingEndTimestamp?: string;
|
|
item?: Item;
|
|
subscriptionRequired?: boolean;
|
|
purchased?: boolean;
|
|
}
|
|
|
|
export enum Device {
|
|
All = "All",
|
|
}
|
|
|
|
export enum Distributor {
|
|
FunimationVenue = "FunimationVenue",
|
|
}
|
|
|
|
export interface MostRecentAvodIDS {
|
|
externalSeasonId: ExternalSeasonID;
|
|
externalAsianId: null;
|
|
externalShowId: ID;
|
|
externalEpisodeId: string;
|
|
externalEnglishId: string;
|
|
externalAlphaId: string;
|
|
}
|
|
|
|
export enum Purchase {
|
|
AVOD = "A-VOD",
|
|
Dfov = "DFOV",
|
|
Est = "EST",
|
|
Svod = "SVOD",
|
|
}
|
|
|
|
export enum MostRecentAvodQuality {
|
|
HD1080 = "HD 1080",
|
|
}
|
|
|
|
export enum Territory {
|
|
Usa = "USA",
|
|
}
|
|
|
|
export enum Version {
|
|
Simulcast = "Simulcast",
|
|
Uncut = "Uncut",
|
|
}
|
|
|
|
export interface MostRecentSvodJpnUs {
|
|
}
|
|
|
|
export enum PrimaryAvail {
|
|
MostRecentSvodUs = "most_recent_svod_us",
|
|
}
|
|
|
|
export interface QualityClass {
|
|
quality: QualityQuality;
|
|
height: number;
|
|
}
|
|
|
|
export enum QualityQuality {
|
|
HD = "HD",
|
|
SD = "SD",
|
|
}
|
|
|
|
export interface TitleImages {
|
|
showThumbnail: string;
|
|
showBackgroundSite: string;
|
|
showDetailHeaderDesktop: string;
|
|
continueWatchingDesktop: string;
|
|
showDetailHeroSite: string;
|
|
appleHorizontalBannerShow: string;
|
|
backgroundImageXbox_360: string;
|
|
applePosterCover: string;
|
|
showDetailBoxArtTablet: string;
|
|
featuredShowBackgroundTablet: string;
|
|
backgroundImageAppletvfiretv: string;
|
|
newShowDetailHero: string;
|
|
showDetailHeroDesktop: string;
|
|
showKeyart: string;
|
|
continueWatchingMobile: string;
|
|
featuredSpotlightShowPhone: string;
|
|
appleHorizontalBannerMovie: string;
|
|
featuredSpotlightShowTablet: string;
|
|
showDetailBoxArtPhone: string;
|
|
featuredShowBackgroundPhone: string;
|
|
appleSquareCover: string;
|
|
backgroundVideo: string;
|
|
showMasterKeyArt: string;
|
|
newShowDetailHeroPhone: string;
|
|
showDetailBoxArtXbox_360: string;
|
|
showDetailHeaderMobile: string;
|
|
showLogo: string;
|
|
}
|
|
|
|
export interface VersionAudio {
|
|
Uncut?: Audio[];
|
|
Simulcast: Audio[];
|
|
} |