Files
NwaifuWeb/apps/NwaifuAnime/src/app/services/parsers/rulib/rulib.dto.ts

80 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export interface IRulibSearchResult {
data: Datum[];
links: Links;
meta: Meta;
}
//TODO: Make normal namings
export interface Datum {
id: number;
name: string;
rus_name: string;
eng_name: string;
slug: string;
slug_url: string;
cover: Cover;
ageRestriction: AgeRestriction;
site: number;
type: AgeRestriction;
rating: Rating;
is_licensed: boolean;
model: Model;
status: AgeRestriction;
releaseDateString: string;
}
export interface AgeRestriction {
id: number;
label: Label;
}
export enum Label {
The12 = "12+",
The6 = "6+",
Завершён = "Завершён",
КомиксЗападный = "Комикс западный",
Манга = "Манга",
Манхва = "Манхва",
Маньхуа = "Маньхуа",
Нет = "Нет",
Онгоинг = "Онгоинг",
Приостановлен = "Приостановлен",
}
export interface Cover {
filename: string;
thumbnail: string;
default: string;
md: string;
}
export enum Model {
Manga = "manga",
}
export interface Rating {
average: string;
averageFormated: string;
votes: number;
votesFormated: string;
user: number;
}
export interface Links {
first: string;
last: null;
prev: null;
next: string;
}
export interface Meta {
current_page: number;
from: number;
path: string;
per_page: number;
to: number;
page: number;
has_next_page: boolean;
seed: string;
}