@ablanc/adn
Version:
Node.js unofficial api wrapper for adn (animedigitalnetwork)
109 lines (108 loc) • 2.84 kB
TypeScript
export declare namespace ADN {
enum Diffusion {
Simulcast = "simulcast",
Download = "download",
Free = "free"
}
enum Order {
Popular = "popular",
Alpha = "alpha"
}
enum Age {
Plus0 = "0+",
Plus10 = "10+",
Plus12 = "12+",
Plus16 = "16+"
}
enum Language {
Vf = "vf",
Vostf = "vostf"
}
enum Quality {
Fhd = "fhd",
HD = "hd",
Mobile = "mobile",
SD = "sd"
}
enum Type {
Eps = "EPS",
Ova = "OAV",
Movie = "MOV"
}
type Genres = [] | ["arts_martiaux" | "aventure--action" | "comedie" | "drame" | "ecchi--fan_service" | "fantastique--science-fiction" | "heroic_fantasy" | "historique" | "jeunesse" | "josei" | "mecha" | "musical" | "nostalgie" | "policier--thriller" | "psychologie" | "romance" | "scolaire" | "seinen" | "shojo" | "shonen" | "sport" | "violence"];
interface Catalog {
shows: Show[];
}
interface Show {
id: number;
title: string;
type: Type;
originalTitle: null | string;
shortTitle: null | string;
reference: string;
age: Age | null;
languages: Language[];
summary: null | string;
image: string;
image2x: string;
url: string;
urlPath: string;
episodeCount: number;
genres: string[];
copyright: null | string;
rating: number;
ratingsCount: number;
commentsCount: number;
qualities: Quality[];
simulcast: boolean;
free: boolean;
download: boolean;
nextVideoReleaseDate: null | string;
}
interface Calendar {
videos: Episode[];
}
interface Episodes {
videos: Episode[];
}
interface Episode {
id: number;
name: string;
number: string;
shortNumber: string;
season: string;
reference: string;
type: Type;
order: number;
image: string;
image2x: string;
summary: string;
releaseDate: string;
duration: number;
url: string;
urlPath: string;
embeddedUrl: string;
languages: Language[];
qualities: Quality[];
rating: number;
ratingsCount: number;
commentsCount: number;
available: boolean;
download: boolean;
free: boolean;
freeWithAds: boolean;
show: Show;
}
interface CatalogOptions {
offset?: number;
limit?: number;
diffusion?: Diffusion | [];
type?: Type | "";
language?: Language | "";
quality?: Quality | "";
age?: Age | "";
genres?: Genres | "";
search?: string;
order?: Order | "";
}
}