@crysoline/lib 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/core/anime/123anime/index.d.ts +1 -0
- package/dist/core/anime/123anime/index.js +1 -0
- package/dist/core/anime/123anime/types.d.ts +11 -0
- package/dist/core/anime/123anime/types.js +1 -0
- package/dist/core/anime/animeheaven/index.d.ts +1 -0
- package/dist/core/anime/animeheaven/index.js +1 -0
- package/dist/core/anime/animeheaven/types.d.ts +6 -0
- package/dist/core/anime/animeheaven/types.js +1 -0
- package/dist/core/anime/animekai/index.d.ts +1 -0
- package/dist/core/anime/animekai/index.js +1 -0
- package/dist/core/anime/animekai/types.d.ts +36 -0
- package/dist/core/anime/animekai/types.js +1 -0
- package/dist/core/anime/animenexus/index.d.ts +1 -0
- package/dist/core/anime/animenexus/index.js +1 -0
- package/dist/core/anime/animenexus/types.d.ts +63 -0
- package/dist/core/anime/animenexus/types.js +1 -0
- package/dist/core/anime/animeonsen/index.d.ts +1 -0
- package/dist/core/anime/animeonsen/index.js +1 -0
- package/dist/core/anime/animeonsen/types.d.ts +23 -0
- package/dist/core/anime/animeonsen/types.js +1 -0
- package/dist/core/anime/animepahe/index.d.ts +1 -0
- package/dist/core/anime/animepahe/index.js +1 -0
- package/dist/core/anime/animepahe/types.d.ts +38 -0
- package/dist/core/anime/animepahe/types.js +1 -0
- package/dist/core/anime/anizone/index.d.ts +1 -0
- package/dist/core/anime/anizone/index.js +1 -0
- package/dist/core/anime/anizone/types.d.ts +19 -0
- package/dist/core/anime/anizone/types.js +1 -0
- package/dist/core/anime/hianime/index.d.ts +1 -0
- package/dist/core/anime/hianime/index.js +1 -0
- package/dist/core/anime/hianime/types.d.ts +40 -0
- package/dist/core/anime/hianime/types.js +1 -0
- package/dist/core/anime/index.d.ts +145 -0
- package/dist/core/anime/index.js +64 -0
- package/dist/core/anime/kickassanime/index.d.ts +1 -0
- package/dist/core/anime/kickassanime/index.js +1 -0
- package/dist/core/anime/kickassanime/types.d.ts +49 -0
- package/dist/core/anime/kickassanime/types.js +1 -0
- package/dist/core/anime/lunar/index.d.ts +1 -0
- package/dist/core/anime/lunar/index.js +1 -0
- package/dist/core/anime/lunar/types.d.ts +38 -0
- package/dist/core/anime/lunar/types.js +1 -0
- package/dist/core/anime/uniquestream/index.d.ts +1 -0
- package/dist/core/anime/uniquestream/index.js +1 -0
- package/dist/core/anime/uniquestream/types.d.ts +23 -0
- package/dist/core/anime/uniquestream/types.js +1 -0
- package/dist/core/hentai/hanime/index.d.ts +1 -0
- package/dist/core/hentai/hanime/index.js +1 -0
- package/dist/core/hentai/hanime/types.d.ts +23 -0
- package/dist/core/hentai/hanime/types.js +1 -0
- package/dist/core/hentai/hentaihaven/index.d.ts +1 -0
- package/dist/core/hentai/hentaihaven/index.js +1 -0
- package/dist/core/hentai/hentaihaven/types.d.ts +13 -0
- package/dist/core/hentai/hentaihaven/types.js +1 -0
- package/dist/core/hentai/hstream/index.d.ts +1 -0
- package/dist/core/hentai/hstream/index.js +1 -0
- package/dist/core/hentai/hstream/types.d.ts +6 -0
- package/dist/core/hentai/hstream/types.js +1 -0
- package/dist/core/hentai/index.d.ts +40 -0
- package/dist/core/hentai/index.js +19 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +5 -0
- package/dist/core/manga/index.d.ts +36 -0
- package/dist/core/manga/index.js +19 -0
- package/dist/core/manga/lunar/index.d.ts +1 -0
- package/dist/core/manga/lunar/index.js +1 -0
- package/dist/core/manga/lunar/types.d.ts +41 -0
- package/dist/core/manga/lunar/types.js +1 -0
- package/dist/core/manga/mangadex/index.d.ts +1 -0
- package/dist/core/manga/mangadex/index.js +1 -0
- package/dist/core/manga/mangadex/types.d.ts +33 -0
- package/dist/core/manga/mangadex/types.js +14 -0
- package/dist/core/manga/mangafire/index.d.ts +1 -0
- package/dist/core/manga/mangafire/index.js +1 -0
- package/dist/core/manga/mangafire/types.d.ts +22 -0
- package/dist/core/manga/mangafire/types.js +1 -0
- package/dist/core/mapper/index.d.ts +7 -0
- package/dist/core/mapper/index.js +6 -0
- package/dist/core/mapper/types.d.ts +8 -0
- package/dist/core/mapper/types.js +1 -0
- package/dist/core/meta/index.d.ts +13 -0
- package/dist/core/meta/index.js +14 -0
- package/dist/core/meta/myanimelist/index.d.ts +1 -0
- package/dist/core/meta/myanimelist/index.js +1 -0
- package/dist/core/meta/myanimelist/types.d.ts +69 -0
- package/dist/core/meta/myanimelist/types.js +1 -0
- package/dist/core/meta/mymangalist/index.d.ts +1 -0
- package/dist/core/meta/mymangalist/index.js +1 -0
- package/dist/core/meta/mymangalist/types.d.ts +48 -0
- package/dist/core/meta/mymangalist/types.js +1 -0
- package/dist/core/types.d.ts +101 -0
- package/dist/core/types.js +6 -0
- package/dist/helpers/fetch.d.ts +49 -0
- package/dist/helpers/fetch.js +161 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface KEpisodeLanguage {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export interface KFormatImage {
|
|
6
|
+
aspectRatio: number | null;
|
|
7
|
+
jpeg: {
|
|
8
|
+
sm: string;
|
|
9
|
+
hq: string;
|
|
10
|
+
};
|
|
11
|
+
webp: {
|
|
12
|
+
sm: string;
|
|
13
|
+
hq: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface KSearchMeta {
|
|
17
|
+
slug: string | null;
|
|
18
|
+
year: number | null;
|
|
19
|
+
status: string | null;
|
|
20
|
+
type: string | null;
|
|
21
|
+
episode_duration: number | null;
|
|
22
|
+
genres: string[];
|
|
23
|
+
locales: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface KInfoMeta {
|
|
26
|
+
slug: string | null;
|
|
27
|
+
year: number | null;
|
|
28
|
+
season: string | null;
|
|
29
|
+
status: string | null;
|
|
30
|
+
type: string | null;
|
|
31
|
+
rating: string | null;
|
|
32
|
+
start_date: string | null;
|
|
33
|
+
end_date: string | null;
|
|
34
|
+
episode_duration: number | null;
|
|
35
|
+
genres: string[];
|
|
36
|
+
locales: string[];
|
|
37
|
+
}
|
|
38
|
+
export interface KEpisodeMeta {
|
|
39
|
+
episode_string: string | null;
|
|
40
|
+
languages: KEpisodeLanguage[];
|
|
41
|
+
}
|
|
42
|
+
export interface KSourceMeta {
|
|
43
|
+
episode_number: number | null;
|
|
44
|
+
episode_title: string | null;
|
|
45
|
+
episode_synopsis: string | null;
|
|
46
|
+
language: string | null;
|
|
47
|
+
duration_ms: number | null;
|
|
48
|
+
thumbnail: KFormatImage | null;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface LLanguage {
|
|
2
|
+
poster_url: string;
|
|
3
|
+
description: string;
|
|
4
|
+
language: string;
|
|
5
|
+
}
|
|
6
|
+
export interface LHost {
|
|
7
|
+
hoster: string;
|
|
8
|
+
language: string;
|
|
9
|
+
owned: boolean;
|
|
10
|
+
redirect_uri: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LInfoMeta {
|
|
13
|
+
alt_titles: string[];
|
|
14
|
+
start_year: number;
|
|
15
|
+
end_year: number;
|
|
16
|
+
slug: string;
|
|
17
|
+
seasons: number;
|
|
18
|
+
genres: string[];
|
|
19
|
+
search: string;
|
|
20
|
+
}
|
|
21
|
+
export interface LSearchMeta {
|
|
22
|
+
alt_titles: string[];
|
|
23
|
+
start_year: number;
|
|
24
|
+
end_year: number;
|
|
25
|
+
slug: string;
|
|
26
|
+
genres: string[];
|
|
27
|
+
search: string;
|
|
28
|
+
}
|
|
29
|
+
export interface LEpisodeMeta {
|
|
30
|
+
season: number;
|
|
31
|
+
languages: LLanguage[];
|
|
32
|
+
}
|
|
33
|
+
export interface LSourcesMeta {
|
|
34
|
+
title: string;
|
|
35
|
+
episode: number;
|
|
36
|
+
season: number;
|
|
37
|
+
hoster: LHost;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface UniqueInfoMeta {
|
|
2
|
+
duration: string | null;
|
|
3
|
+
url: string | null;
|
|
4
|
+
audioLocales: string[];
|
|
5
|
+
subtitleLocales: string[];
|
|
6
|
+
seasons: Array<{
|
|
7
|
+
content_id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
season_number: number;
|
|
10
|
+
season_seq_number: number;
|
|
11
|
+
display_number: string;
|
|
12
|
+
episode_count: number;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export interface UniqueEpisodeMeta {
|
|
16
|
+
duration_ms: number | null;
|
|
17
|
+
}
|
|
18
|
+
export interface UniqueSearchMeta {
|
|
19
|
+
type: string | null;
|
|
20
|
+
subbed: boolean;
|
|
21
|
+
dubbed: boolean;
|
|
22
|
+
seasonsCount: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface HAnimeSearchMeta {
|
|
2
|
+
views: number | null;
|
|
3
|
+
rating: number | null;
|
|
4
|
+
likes: number | null;
|
|
5
|
+
dislikes: number | null;
|
|
6
|
+
url: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface HAnimeInfoMeta {
|
|
9
|
+
views?: number | null;
|
|
10
|
+
rating?: number | null;
|
|
11
|
+
likes?: number | null;
|
|
12
|
+
dislikes?: number | null;
|
|
13
|
+
url?: string | null;
|
|
14
|
+
genres?: string[] | null;
|
|
15
|
+
studios?: string[] | null;
|
|
16
|
+
brand?: string;
|
|
17
|
+
brandUploads?: string;
|
|
18
|
+
releaseDate?: string;
|
|
19
|
+
uploadDate?: string;
|
|
20
|
+
alternateTitles?: string[];
|
|
21
|
+
isUncensored?: boolean;
|
|
22
|
+
numericId?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface HavenInfoMeta {
|
|
2
|
+
genres: string[];
|
|
3
|
+
year: number | null;
|
|
4
|
+
}
|
|
5
|
+
export interface HavenEpisodeMeta {
|
|
6
|
+
released: {
|
|
7
|
+
utc: Date | null;
|
|
8
|
+
relative: string | null;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface HavenSourceMeta {
|
|
12
|
+
poster: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { HianimeEpisodeMeta } from '../anime/hianime';
|
|
2
|
+
import type { HAnimeInfoMeta, HAnimeSearchMeta } from './hanime';
|
|
3
|
+
import type { HavenEpisodeMeta, HavenInfoMeta, HavenSourceMeta } from './hentaihaven';
|
|
4
|
+
import type { HStreamSearchMeta } from './hstream';
|
|
5
|
+
declare const Hentai: {
|
|
6
|
+
HAnime: (apiKey: string) => {
|
|
7
|
+
search: (q: string) => Promise<import("../types").Search<HAnimeSearchMeta>[]>;
|
|
8
|
+
info: (id: string | number) => Promise<import("../types").Info<HAnimeInfoMeta, import("../types").Episode<HianimeEpisodeMeta>>>;
|
|
9
|
+
episodes: (id: string | number) => Promise<import("../types").Episode<HianimeEpisodeMeta>[]>;
|
|
10
|
+
sources: (params: {
|
|
11
|
+
id: string | number;
|
|
12
|
+
episodeId: string | number;
|
|
13
|
+
subType?: string;
|
|
14
|
+
server?: string;
|
|
15
|
+
}) => Promise<import("../types").Source<unknown>>;
|
|
16
|
+
};
|
|
17
|
+
HentaiHaven: (apiKey: string) => {
|
|
18
|
+
search: (q: string) => Promise<import("../types").Search<unknown>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../types").Info<HavenInfoMeta, import("../types").Episode<HavenEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../types").Episode<HavenEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../types").Source<HavenSourceMeta>>;
|
|
27
|
+
};
|
|
28
|
+
HStream: (apiKey: string) => {
|
|
29
|
+
search: (q: string) => Promise<import("../types").Search<HStreamSearchMeta>[]>;
|
|
30
|
+
info: (id: string | number) => Promise<import("../types").Info<unknown, import("../types").Episode<unknown>>>;
|
|
31
|
+
episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
|
|
32
|
+
sources: (params: {
|
|
33
|
+
id: string | number;
|
|
34
|
+
episodeId: string | number;
|
|
35
|
+
subType?: string;
|
|
36
|
+
server?: string;
|
|
37
|
+
}) => Promise<import("../types").Source<unknown>>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export { Hentai };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HentaiFetch } from '../../helpers/fetch';
|
|
2
|
+
const HAnime = (apiKey) => HentaiFetch({
|
|
3
|
+
provider: 'hanime',
|
|
4
|
+
apiKey,
|
|
5
|
+
});
|
|
6
|
+
const HentaiHaven = (apiKey) => HentaiFetch({
|
|
7
|
+
provider: 'hentaihaven',
|
|
8
|
+
apiKey,
|
|
9
|
+
});
|
|
10
|
+
const HStream = (apiKey) => HentaiFetch({
|
|
11
|
+
provider: 'hstream',
|
|
12
|
+
apiKey,
|
|
13
|
+
});
|
|
14
|
+
const Hentai = {
|
|
15
|
+
HAnime,
|
|
16
|
+
HentaiHaven,
|
|
17
|
+
HStream,
|
|
18
|
+
};
|
|
19
|
+
export { Hentai };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { LMangaInfoMeta, LMangaSearchMeta } from './lunar';
|
|
2
|
+
import type { MDXInfoMeta, MDXSearchMeta } from './mangadex';
|
|
3
|
+
import type { MFInfoMeta, MFSearchMeta } from './mangafire';
|
|
4
|
+
declare const Manga: {
|
|
5
|
+
LunarManga: (apiKey: string) => {
|
|
6
|
+
search: (q: string) => Promise<import("../types").Search<LMangaSearchMeta>[]>;
|
|
7
|
+
info: (id: string | number) => Promise<import("../types").Info<LMangaInfoMeta, unknown>>;
|
|
8
|
+
chapters: (id: string | number) => Promise<import("../types").Chapter<unknown>[]>;
|
|
9
|
+
pages: (params: {
|
|
10
|
+
id: string | number;
|
|
11
|
+
chapterId: string | number;
|
|
12
|
+
lang?: string;
|
|
13
|
+
}) => Promise<import("../types").Page[]>;
|
|
14
|
+
};
|
|
15
|
+
MangaDex: (apiKey: string) => {
|
|
16
|
+
search: (q: string) => Promise<import("../types").Search<MDXSearchMeta>[]>;
|
|
17
|
+
info: (id: string | number) => Promise<import("../types").Info<MDXInfoMeta, unknown>>;
|
|
18
|
+
chapters: (id: string | number) => Promise<import("../types").Chapter<unknown>[]>;
|
|
19
|
+
pages: (params: {
|
|
20
|
+
id: string | number;
|
|
21
|
+
chapterId: string | number;
|
|
22
|
+
lang?: string;
|
|
23
|
+
}) => Promise<import("../types").Page[]>;
|
|
24
|
+
};
|
|
25
|
+
MangaFire: (apiKey: string) => {
|
|
26
|
+
search: (q: string) => Promise<import("../types").Search<MFSearchMeta>[]>;
|
|
27
|
+
info: (id: string | number) => Promise<import("../types").Info<MFInfoMeta, unknown>>;
|
|
28
|
+
chapters: (id: string | number) => Promise<import("../types").Chapter<unknown>[]>;
|
|
29
|
+
pages: (params: {
|
|
30
|
+
id: string | number;
|
|
31
|
+
chapterId: string | number;
|
|
32
|
+
lang?: string;
|
|
33
|
+
}) => Promise<import("../types").Page[]>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export { Manga };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MangaFetch } from '../../helpers/fetch';
|
|
2
|
+
const LunarManga = (apiKey) => MangaFetch({
|
|
3
|
+
provider: 'lunarmanga',
|
|
4
|
+
apiKey,
|
|
5
|
+
});
|
|
6
|
+
const MangaDex = (apiKey) => MangaFetch({
|
|
7
|
+
provider: 'mangadex',
|
|
8
|
+
apiKey,
|
|
9
|
+
});
|
|
10
|
+
const MangaFire = (apiKey) => MangaFetch({
|
|
11
|
+
provider: 'mangafire',
|
|
12
|
+
apiKey,
|
|
13
|
+
});
|
|
14
|
+
const Manga = {
|
|
15
|
+
LunarManga,
|
|
16
|
+
MangaDex,
|
|
17
|
+
MangaFire,
|
|
18
|
+
};
|
|
19
|
+
export { Manga };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface LMangaSearchMeta {
|
|
2
|
+
format: string;
|
|
3
|
+
startDate: {
|
|
4
|
+
year: number;
|
|
5
|
+
month: number;
|
|
6
|
+
day: number;
|
|
7
|
+
};
|
|
8
|
+
chapters: number;
|
|
9
|
+
volumes: number;
|
|
10
|
+
averageScore: number;
|
|
11
|
+
status: string;
|
|
12
|
+
genres: string[];
|
|
13
|
+
type: string;
|
|
14
|
+
}
|
|
15
|
+
export interface LMangaInfoMeta {
|
|
16
|
+
format: string;
|
|
17
|
+
status: string;
|
|
18
|
+
chapters: number;
|
|
19
|
+
volumes: number;
|
|
20
|
+
startDate: {
|
|
21
|
+
year: number;
|
|
22
|
+
month: number;
|
|
23
|
+
day: number;
|
|
24
|
+
};
|
|
25
|
+
endDate: {
|
|
26
|
+
year: number;
|
|
27
|
+
month: number;
|
|
28
|
+
day: number;
|
|
29
|
+
};
|
|
30
|
+
genres: string[];
|
|
31
|
+
description: string;
|
|
32
|
+
averageScore: number;
|
|
33
|
+
meanScore: number;
|
|
34
|
+
popularity: number;
|
|
35
|
+
favourites: number;
|
|
36
|
+
tags: {
|
|
37
|
+
name: string;
|
|
38
|
+
isMediaSpoiler: boolean;
|
|
39
|
+
rank: number;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum MediaFormat {
|
|
2
|
+
TV = "TV",
|
|
3
|
+
TV_SHORT = "TV_SHORT",
|
|
4
|
+
MOVIE = "MOVIE",
|
|
5
|
+
SPECIAL = "SPECIAL",
|
|
6
|
+
OVA = "OVA",
|
|
7
|
+
ONA = "ONA",
|
|
8
|
+
MUSIC = "MUSIC",
|
|
9
|
+
MANGA = "MANGA",
|
|
10
|
+
NOVEL = "NOVEL",
|
|
11
|
+
ONE_SHOT = "ONE_SHOT",
|
|
12
|
+
UNKNOWN = "UNKNOWN"
|
|
13
|
+
}
|
|
14
|
+
export interface MDXSearchMeta {
|
|
15
|
+
synonyms?: (string | undefined)[] | null;
|
|
16
|
+
format: MediaFormat;
|
|
17
|
+
year?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface MDXInfoMeta {
|
|
20
|
+
format: string;
|
|
21
|
+
year: number | null;
|
|
22
|
+
artwork: Array<{
|
|
23
|
+
image: string;
|
|
24
|
+
providerId: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}>;
|
|
27
|
+
countryOfOrigin: string | null;
|
|
28
|
+
genres: string[];
|
|
29
|
+
totalVolumes: number | null;
|
|
30
|
+
status: string | null;
|
|
31
|
+
tags: string[];
|
|
32
|
+
type: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var MediaFormat;
|
|
2
|
+
(function (MediaFormat) {
|
|
3
|
+
MediaFormat["TV"] = "TV";
|
|
4
|
+
MediaFormat["TV_SHORT"] = "TV_SHORT";
|
|
5
|
+
MediaFormat["MOVIE"] = "MOVIE";
|
|
6
|
+
MediaFormat["SPECIAL"] = "SPECIAL";
|
|
7
|
+
MediaFormat["OVA"] = "OVA";
|
|
8
|
+
MediaFormat["ONA"] = "ONA";
|
|
9
|
+
MediaFormat["MUSIC"] = "MUSIC";
|
|
10
|
+
MediaFormat["MANGA"] = "MANGA";
|
|
11
|
+
MediaFormat["NOVEL"] = "NOVEL";
|
|
12
|
+
MediaFormat["ONE_SHOT"] = "ONE_SHOT";
|
|
13
|
+
MediaFormat["UNKNOWN"] = "UNKNOWN";
|
|
14
|
+
})(MediaFormat || (MediaFormat = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface MFLanguage {
|
|
2
|
+
id: string | null;
|
|
3
|
+
code: string | null;
|
|
4
|
+
title: string | null;
|
|
5
|
+
chapters: number | null;
|
|
6
|
+
}
|
|
7
|
+
export interface MFSearchMeta {
|
|
8
|
+
type?: string;
|
|
9
|
+
imageUrl?: string;
|
|
10
|
+
status?: string;
|
|
11
|
+
chapter?: string;
|
|
12
|
+
volume?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MFInfoMeta {
|
|
15
|
+
status: string | null;
|
|
16
|
+
type: string | null;
|
|
17
|
+
author: string | null;
|
|
18
|
+
published: string | null;
|
|
19
|
+
genres: string[] | null;
|
|
20
|
+
mangazines: string[] | null;
|
|
21
|
+
languages: MFLanguage[] | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MInfoMeta, MSearchMeta } from './myanimelist';
|
|
2
|
+
import type { MMLInfoMeta, MMSearchMeta } from './mymangalist';
|
|
3
|
+
declare const Meta: {
|
|
4
|
+
MyAnimeList: (apiKey: string) => {
|
|
5
|
+
search: (q: string) => Promise<import("../types").Search<MSearchMeta>[]>;
|
|
6
|
+
info: (id: string | number) => Promise<import("../types").Info<MInfoMeta, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
MyMangaList: (apiKey: string) => {
|
|
9
|
+
search: (q: string) => Promise<import("../types").Search<MMSearchMeta>[]>;
|
|
10
|
+
info: (id: string | number) => Promise<import("../types").Info<MMLInfoMeta, unknown>>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export { Meta };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MetaFetch } from '../../helpers/fetch';
|
|
2
|
+
const MyAnimeList = (apiKey) => MetaFetch({
|
|
3
|
+
provider: 'myanimelist',
|
|
4
|
+
apiKey,
|
|
5
|
+
});
|
|
6
|
+
const MyMangaList = (apiKey) => MetaFetch({
|
|
7
|
+
provider: 'mymangalist',
|
|
8
|
+
apiKey,
|
|
9
|
+
});
|
|
10
|
+
const Meta = {
|
|
11
|
+
MyAnimeList,
|
|
12
|
+
MyMangaList,
|
|
13
|
+
};
|
|
14
|
+
export { Meta };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export interface MLink {
|
|
2
|
+
label: string | null;
|
|
3
|
+
url: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface MRelation {
|
|
6
|
+
id: number | null;
|
|
7
|
+
image: string | null;
|
|
8
|
+
title: string | null;
|
|
9
|
+
relationType: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface MCharacter {
|
|
12
|
+
id: number | null;
|
|
13
|
+
image: string | null;
|
|
14
|
+
name: string | null;
|
|
15
|
+
role: string | null;
|
|
16
|
+
voiceActors: MVoiceActor[] | null;
|
|
17
|
+
}
|
|
18
|
+
export interface MVoiceActor {
|
|
19
|
+
id: number | null;
|
|
20
|
+
image: string | null;
|
|
21
|
+
name: string | null;
|
|
22
|
+
language: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface MStaff {
|
|
25
|
+
id: number | null;
|
|
26
|
+
image: string | null;
|
|
27
|
+
name: string | null;
|
|
28
|
+
role: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface MVideo {
|
|
31
|
+
title: string;
|
|
32
|
+
url: string;
|
|
33
|
+
thumbnail: string | null;
|
|
34
|
+
artist?: string | null;
|
|
35
|
+
type: 'trailer' | 'music';
|
|
36
|
+
}
|
|
37
|
+
export interface MSearchMeta {
|
|
38
|
+
type: string | null;
|
|
39
|
+
score: string | null;
|
|
40
|
+
members: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface MInfoMeta {
|
|
43
|
+
moreInfo: string | null;
|
|
44
|
+
score: string | null;
|
|
45
|
+
rank: string | null;
|
|
46
|
+
popularity: string | null;
|
|
47
|
+
members: string | null;
|
|
48
|
+
type: string | null;
|
|
49
|
+
episodes: string | null;
|
|
50
|
+
status: string | null;
|
|
51
|
+
aired: string | null;
|
|
52
|
+
premiered: string | null;
|
|
53
|
+
broadcast: string | null;
|
|
54
|
+
producers: string[] | null;
|
|
55
|
+
licensors: string[] | null;
|
|
56
|
+
studios: string[] | null;
|
|
57
|
+
source: string | null;
|
|
58
|
+
genres: string[] | null;
|
|
59
|
+
themes: string[] | null;
|
|
60
|
+
duration: string | null;
|
|
61
|
+
rating: string | null;
|
|
62
|
+
favorites: string | null;
|
|
63
|
+
externalLinks: MLink[] | null;
|
|
64
|
+
streamingLinks: MLink[] | null;
|
|
65
|
+
relations: MRelation[] | null;
|
|
66
|
+
characters: MCharacter[] | null;
|
|
67
|
+
videos: MVideo[] | null;
|
|
68
|
+
staff: MStaff[] | null;
|
|
69
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|