@crysoline/lib 0.1.6 → 0.1.7
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/dist/core/anime/123anime/index.d.ts +27 -0
- package/dist/core/anime/123anime/index.js +18 -0
- package/dist/core/anime/anicore/index.d.ts +27 -0
- package/dist/core/anime/anicore/index.js +18 -0
- package/dist/core/anime/anicore/types.d.ts +16 -0
- package/dist/core/anime/anicore/types.js +1 -0
- package/dist/core/anime/anidap/index.d.ts +27 -0
- package/dist/core/anime/anidap/index.js +18 -0
- package/dist/core/anime/aniliberty/index.d.ts +27 -0
- package/dist/core/anime/aniliberty/index.js +18 -0
- package/dist/core/anime/aniliberty/types.d.ts +3 -3
- package/dist/core/anime/anime3rb/index.d.ts +27 -0
- package/dist/core/anime/anime3rb/index.js +18 -0
- package/dist/core/anime/anime3rb/types.d.ts +2 -2
- package/dist/core/anime/animeav1/index.d.ts +27 -0
- package/dist/core/anime/animeav1/index.js +18 -0
- package/dist/core/anime/animeav1/types.d.ts +4 -4
- package/dist/core/anime/animegg/index.d.ts +27 -0
- package/dist/core/anime/animegg/index.js +18 -0
- package/dist/core/anime/animegg/types.d.ts +3 -3
- package/dist/core/anime/animeheaven/index.d.ts +27 -0
- package/dist/core/anime/animeheaven/index.js +18 -0
- package/dist/core/anime/animeheaven/types.d.ts +1 -1
- package/dist/core/anime/animekai/index.d.ts +27 -0
- package/dist/core/anime/animekai/index.js +18 -0
- package/dist/core/anime/animekai/types.d.ts +5 -5
- package/dist/core/anime/animelib/index.d.ts +31 -0
- package/dist/core/anime/animelib/index.js +18 -0
- package/dist/core/anime/animelib/types.d.ts +2 -2
- package/dist/core/anime/animemeow/index.d.ts +27 -0
- package/dist/core/anime/animemeow/index.js +18 -0
- package/dist/core/anime/animenexus/index.d.ts +27 -0
- package/dist/core/anime/animenexus/index.js +18 -0
- package/dist/core/anime/animenexus/types.d.ts +16 -16
- package/dist/core/anime/animenix/index.d.ts +27 -0
- package/dist/core/anime/animenix/index.js +18 -0
- package/dist/core/anime/animeonsen/index.d.ts +27 -0
- package/dist/core/anime/animeonsen/index.js +18 -0
- package/dist/core/anime/animeonsen/types.d.ts +8 -8
- package/dist/core/anime/animepahe/index.d.ts +27 -0
- package/dist/core/anime/animepahe/index.js +18 -0
- package/dist/core/anime/animeparadise/index.d.ts +26 -0
- package/dist/core/anime/animeparadise/index.js +18 -0
- package/dist/core/anime/anizone/index.d.ts +27 -0
- package/dist/core/anime/anizone/index.js +18 -0
- package/dist/core/anime/anizone/types.d.ts +5 -5
- package/dist/core/anime/hianime/index.d.ts +31 -0
- package/dist/core/anime/hianime/index.js +18 -0
- package/dist/core/anime/hianime/types.d.ts +8 -8
- package/dist/core/anime/index.d.ts +80 -69
- package/dist/core/anime/index.js +27 -261
- package/dist/core/anime/kickassanime/index.d.ts +27 -0
- package/dist/core/anime/kickassanime/index.js +18 -0
- package/dist/core/anime/kickassanime/types.d.ts +8 -8
- package/dist/core/anime/lunar/index.d.ts +28 -0
- package/dist/core/anime/lunar/index.js +19 -0
- package/dist/core/anime/lunar/types.d.ts +8 -8
- package/dist/core/anime/uniquestream/index.d.ts +27 -0
- package/dist/core/anime/uniquestream/index.js +18 -0
- package/dist/core/anime/uniquestream/types.d.ts +3 -3
- package/dist/core/hentai/hanime/index.d.ts +28 -0
- package/dist/core/hentai/hanime/index.js +19 -0
- package/dist/core/hentai/hentaigasm/index.d.ts +14 -0
- package/dist/core/hentai/hentaigasm/index.js +5 -0
- package/dist/core/hentai/hentaigasm/types.d.ts +15 -0
- package/dist/core/hentai/hentaigasm/types.js +1 -0
- package/dist/core/hentai/hentaihaven/index.d.ts +30 -0
- package/dist/core/hentai/hentaihaven/index.js +21 -0
- package/dist/core/hentai/hstream/index.d.ts +27 -0
- package/dist/core/hentai/hstream/index.js +18 -0
- package/dist/core/hentai/index.d.ts +25 -17
- package/dist/core/hentai/index.js +8 -62
- package/dist/core/hentai/watchhentai/index.d.ts +27 -0
- package/dist/core/hentai/watchhentai/index.js +18 -0
- package/dist/core/hentai/watchhentai/types.d.ts +3 -3
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/manga/1manga/index.d.ts +27 -0
- package/dist/core/manga/1manga/index.js +20 -0
- package/dist/core/manga/1manga/types.d.ts +17 -0
- package/dist/core/manga/1manga/types.js +1 -0
- package/dist/core/manga/comix/index.d.ts +27 -0
- package/dist/core/manga/comix/index.js +19 -0
- package/dist/core/manga/comix/types.d.ts +3 -3
- package/dist/core/manga/index.d.ts +219 -18
- package/dist/core/manga/index.js +29 -75
- package/dist/core/manga/lunar/index.d.ts +27 -0
- package/dist/core/manga/lunar/index.js +19 -0
- package/dist/core/manga/lunar/types.d.ts +2 -2
- package/dist/core/manga/mangadex/index.d.ts +28 -0
- package/dist/core/manga/mangadex/index.js +20 -0
- package/dist/core/manga/mangadex/types.d.ts +2 -2
- package/dist/core/manga/mangafire/index.d.ts +27 -0
- package/dist/core/manga/mangafire/index.js +19 -0
- package/dist/core/manga/mangafire/types.d.ts +4 -4
- package/dist/core/manga/mbbcdn/index.d.ts +288 -0
- package/dist/core/manga/mbbcdn/index.js +200 -0
- package/dist/core/manga/mbbcdn/types.d.ts +14 -0
- package/dist/core/manga/mbbcdn/types.js +1 -0
- package/dist/core/manga/toonilycdn/index.d.ts +131 -0
- package/dist/core/manga/toonilycdn/index.js +91 -0
- package/dist/core/manga/toonilycdn/types.d.ts +14 -0
- package/dist/core/manga/toonilycdn/types.js +1 -0
- package/dist/core/manga/weebcentral/index.d.ts +27 -0
- package/dist/core/manga/weebcentral/index.js +19 -0
- package/dist/core/manga/weebcentral/types.d.ts +4 -4
- package/dist/core/meta/anilist/index.d.ts +20 -0
- package/dist/core/meta/anilist/index.js +18 -0
- package/dist/core/meta/index.d.ts +7 -11
- package/dist/core/meta/index.js +4 -55
- package/dist/core/meta/myanimelist/index.d.ts +20 -0
- package/dist/core/meta/myanimelist/index.js +18 -0
- package/dist/core/meta/myanimelist/types.d.ts +15 -15
- package/dist/core/meta/mymangalist/index.d.ts +7 -0
- package/dist/core/meta/mymangalist/index.js +5 -0
- package/dist/core/meta/mymangalist/types.d.ts +9 -9
- package/dist/core/novels/index.d.ts +41 -0
- package/dist/core/novels/index.js +11 -0
- package/dist/core/novels/jnovels/index.d.ts +26 -0
- package/dist/core/novels/jnovels/index.js +19 -0
- package/dist/core/novels/novelfire/index.d.ts +28 -0
- package/dist/core/novels/novelfire/index.js +20 -0
- package/dist/core/novels/novelfire/types.d.ts +4 -0
- package/dist/core/novels/novelfire/types.js +1 -0
- package/dist/core/novels/novelhall/index.d.ts +26 -0
- package/dist/core/novels/novelhall/index.js +19 -0
- package/dist/helpers/fetch.d.ts +6 -0
- package/dist/helpers/fetch.js +16 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/package.json +2 -2
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { AnimeMeowSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a AnimeMeow API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeMeow(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("naruto");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const AnimeMeow: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<AnimeMeowSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<unknown, import("../../types").Episode<unknown>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<unknown>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a AnimeMeow API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeMeow(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("naruto");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AnimeMeow = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'animemeow',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { AnimeNexusEpisodeMeta, AnimeNexusInfoMeta, AnimeNexusSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimeNexus API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeNexus(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("jujutsu kaisen");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const AnimeNexus: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<AnimeNexusSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<AnimeNexusInfoMeta, import("../../types").Episode<AnimeNexusEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<AnimeNexusEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimeNexus API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeNexus(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("jujutsu kaisen");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AnimeNexus = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'animenexus',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface AnimeNexusGenre {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
code: string;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface AnimeNexusProducer {
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface AnimeNexusStudio {
|
|
11
11
|
id: string;
|
|
12
12
|
name: string;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface AnimeNexusDemographic {
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
17
|
code: string;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface AnimeNexusImage {
|
|
20
20
|
resized: Record<string, string>;
|
|
21
21
|
resized_blur: Record<string, string>;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface AnimeNexusRelationShow {
|
|
24
24
|
id: string;
|
|
25
25
|
name: string | null;
|
|
26
26
|
slug: string;
|
|
27
27
|
relation: string;
|
|
28
|
-
poster:
|
|
28
|
+
poster: AnimeNexusImage;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface AnimeNexusSearchMeta {
|
|
31
31
|
year: number | null;
|
|
32
32
|
type: string | null;
|
|
33
33
|
status: string | null;
|
|
34
34
|
rating: string | null;
|
|
35
35
|
slug: string | null;
|
|
36
|
-
genres:
|
|
36
|
+
genres: AnimeNexusGenre[];
|
|
37
37
|
}
|
|
38
|
-
export interface
|
|
38
|
+
export interface AnimeNexusInfoMeta {
|
|
39
39
|
year: number | null;
|
|
40
40
|
score: number | null;
|
|
41
41
|
season: string | null;
|
|
@@ -48,13 +48,13 @@ export interface NInfoMeta {
|
|
|
48
48
|
endDate: string | null;
|
|
49
49
|
releaseDay: string | null;
|
|
50
50
|
broadcast: string | null;
|
|
51
|
-
genres:
|
|
52
|
-
producers:
|
|
53
|
-
studios:
|
|
54
|
-
demographics:
|
|
55
|
-
relations:
|
|
51
|
+
genres: AnimeNexusGenre[];
|
|
52
|
+
producers: AnimeNexusProducer[];
|
|
53
|
+
studios: AnimeNexusStudio[];
|
|
54
|
+
demographics: AnimeNexusDemographic[];
|
|
55
|
+
relations: AnimeNexusRelationShow[];
|
|
56
56
|
}
|
|
57
|
-
export interface
|
|
57
|
+
export interface AnimeNexusEpisodeMeta {
|
|
58
58
|
subtitle_languages: string[];
|
|
59
59
|
audio_languages: string[];
|
|
60
60
|
status: string | null;
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { AnimeNixEpisodeMeta, AnimeNixSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a AnimeNix API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources, servers
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeNix(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("naruto");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const AnimeNix: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<AnimeNixSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<unknown, import("../../types").Episode<AnimeNixEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<AnimeNixEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a AnimeNix API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources, servers
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeNix(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("naruto");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AnimeNix = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'animenix',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { AnimeOnsenEpisodeMeta, AnimeOnsenInfoMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimeOnsen API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeOnsen(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("my hero academia");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const AnimeOnsen: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<unknown>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<AnimeOnsenInfoMeta, import("../../types").Episode<AnimeOnsenEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<AnimeOnsenEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimeOnsen API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeOnsen(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("my hero academia");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AnimeOnsen = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'animeonsen',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface AnimeOnsenBroadcast {
|
|
2
2
|
day_of_the_week: string;
|
|
3
3
|
start_time: string;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface AnimeOnsenGenre {
|
|
6
6
|
id: number;
|
|
7
7
|
name: string;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface AnimeOnsenStudio {
|
|
10
10
|
id: number;
|
|
11
11
|
name: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface AnimeOnsenEpisodeMeta {
|
|
14
14
|
title_jp: string | null;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface AnimeOnsenInfoMeta {
|
|
17
17
|
score: number | null;
|
|
18
18
|
rating: string | null;
|
|
19
19
|
type: string | null;
|
|
20
|
-
broadcast:
|
|
21
|
-
genres:
|
|
22
|
-
studios:
|
|
20
|
+
broadcast: AnimeOnsenBroadcast | null;
|
|
21
|
+
genres: AnimeOnsenGenre[] | null;
|
|
22
|
+
studios: AnimeOnsenStudio[] | null;
|
|
23
23
|
}
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { PaheEpisodeMeta, PaheInfoMeta, PaheSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimePahe API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimePahe(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("chainsaw man");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const AnimePahe: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<PaheSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<PaheInfoMeta, import("../../types").Episode<PaheEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<PaheEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimePahe API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimePahe(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("chainsaw man");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AnimePahe = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'animepahe',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates an AnimeParadise API client.
|
|
3
|
+
*
|
|
4
|
+
* @param apiKey - Your API key for authentication
|
|
5
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const client = AnimeParadise(process.env.API_KEY);
|
|
10
|
+
* const results = await client.search("one piece");
|
|
11
|
+
* const episodes = await client.episodes(results[0].id);
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const AnimeParadise: (apiKey: string) => {
|
|
15
|
+
name: string;
|
|
16
|
+
} & {
|
|
17
|
+
search: (q: string) => Promise<import("../../types").Search<unknown>[]>;
|
|
18
|
+
info: (id: string | number) => Promise<import("../../types").Info<unknown, import("../../types").Episode<unknown>>>;
|
|
19
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<unknown>[]>;
|
|
20
|
+
sources: (params: {
|
|
21
|
+
id: string | number;
|
|
22
|
+
episodeId: string | number;
|
|
23
|
+
subType?: string;
|
|
24
|
+
server?: string;
|
|
25
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AnimeParadise API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AnimeParadise(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("one piece");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AnimeParadise = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'animeparadise',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { AniZoneEpisodeMeta, AniZoneInfoMeta, AniZoneSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AniZone API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AniZone(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("spy x family");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const AniZone: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<AniZoneSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<AniZoneInfoMeta, import("../../types").Episode<AniZoneEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<AniZoneEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an AniZone API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = AniZone(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("spy x family");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const AniZone = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'anizone',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface AniZoneAirDate {
|
|
2
2
|
iso: string | null;
|
|
3
3
|
date: Date | null;
|
|
4
4
|
unix: number | null;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface AniZoneInfoMeta {
|
|
7
7
|
type: string | null;
|
|
8
8
|
status: string | null;
|
|
9
9
|
year: string | null;
|
|
10
10
|
officialSite: string | null;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
13
|
-
airDate:
|
|
12
|
+
export interface AniZoneEpisodeMeta {
|
|
13
|
+
airDate: AniZoneAirDate;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface AniZoneSearchMeta {
|
|
16
16
|
year: string | null;
|
|
17
17
|
genres: string[];
|
|
18
18
|
format: string | null;
|
|
@@ -1 +1,32 @@
|
|
|
1
|
+
import type { HiAnimeEpisodeMeta, HiAnimeInfoMeta, HiAnimeSearchMeta, HiAnimeServerMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an HiAnime API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources, servers
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = HiAnime(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("spy x family");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const HiAnime: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<HiAnimeSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<HiAnimeInfoMeta, import("../../types").Episode<HiAnimeEpisodeMeta>>>;
|
|
20
|
+
episodes: (id: string | number) => Promise<import("../../types").Episode<HiAnimeEpisodeMeta>[]>;
|
|
21
|
+
sources: (params: {
|
|
22
|
+
id: string | number;
|
|
23
|
+
episodeId: string | number;
|
|
24
|
+
subType?: string;
|
|
25
|
+
server?: string;
|
|
26
|
+
}) => Promise<import("../../types").Source<unknown>>;
|
|
27
|
+
servers: (params: {
|
|
28
|
+
id: string | number;
|
|
29
|
+
episodeId: string | number;
|
|
30
|
+
}) => Promise<import("../../types").Server<HiAnimeServerMeta>>;
|
|
31
|
+
};
|
|
1
32
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { AnimeFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an HiAnime API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, episodes, sources, servers
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = HiAnime(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("spy x family");
|
|
12
|
+
* const episodes = await client.episodes(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const HiAnime = (apiKey) => AnimeFetch({
|
|
16
|
+
provider: 'hianime',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface HiAnimeTvInfo {
|
|
2
2
|
rating: string | null;
|
|
3
3
|
quality: string | null;
|
|
4
4
|
sub: number | null;
|
|
@@ -6,7 +6,7 @@ export interface HianimeTvInfo {
|
|
|
6
6
|
showType: string | null;
|
|
7
7
|
duration: string | null;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface HiAnimeSeason {
|
|
10
10
|
id: string | null;
|
|
11
11
|
data_number: number | null;
|
|
12
12
|
data_id: number | null;
|
|
@@ -14,17 +14,17 @@ export interface HianimeSeason {
|
|
|
14
14
|
title: string | null;
|
|
15
15
|
image: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface HiAnimeSearchMeta {
|
|
18
18
|
duration: string | null;
|
|
19
|
-
tvInfo: Partial<
|
|
19
|
+
tvInfo: Partial<HiAnimeTvInfo>;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface HiAnimeEpisodeMeta {
|
|
22
22
|
title_jp: string | null;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface HiAnimeServerMeta {
|
|
25
25
|
data_id: number | null;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface HiAnimeInfoMeta {
|
|
28
28
|
year: number | null;
|
|
29
29
|
score: number | null;
|
|
30
30
|
season: string | null;
|
|
@@ -39,5 +39,5 @@ export interface HianimeInfoMeta {
|
|
|
39
39
|
genres: string[] | null;
|
|
40
40
|
studios: string[] | null;
|
|
41
41
|
producers: string[] | null;
|
|
42
|
-
seasons:
|
|
42
|
+
seasons: HiAnimeSeason[] | null;
|
|
43
43
|
}
|