@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
|
@@ -11,12 +11,12 @@ export declare enum MediaFormat {
|
|
|
11
11
|
ONE_SHOT = "ONE_SHOT",
|
|
12
12
|
UNKNOWN = "UNKNOWN"
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface MangaDexSearchMeta {
|
|
15
15
|
synonyms?: (string | undefined)[] | null;
|
|
16
16
|
format: MediaFormat;
|
|
17
17
|
year?: number;
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface MangaDexInfoMeta {
|
|
20
20
|
format: string;
|
|
21
21
|
year: number | null;
|
|
22
22
|
artwork: Array<{
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { MangaFireInfoMeta, MangaFireSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a MangaFire API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = MangaFire(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("berserk");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* const chapters = await client.chapters(results[0].id);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const MangaFire: (apiKey: string) => {
|
|
17
|
+
name: string;
|
|
18
|
+
} & {
|
|
19
|
+
search: (q: string) => Promise<import("../../types").Search<MangaFireSearchMeta>[]>;
|
|
20
|
+
info: (id: string | number) => Promise<import("../../types").Info<MangaFireInfoMeta, import("../../types").Episode<unknown>>>;
|
|
21
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<unknown>[]>;
|
|
22
|
+
pages: (params: {
|
|
23
|
+
id: string | number;
|
|
24
|
+
chapterId: string | number;
|
|
25
|
+
lang?: string;
|
|
26
|
+
}) => Promise<import("../../types").Page[]>;
|
|
27
|
+
};
|
|
1
28
|
export * from './types';
|
|
@@ -1 +1,20 @@
|
|
|
1
|
+
import { MangaFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a MangaFire API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = MangaFire(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("berserk");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* const chapters = await client.chapters(results[0].id);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export const MangaFire = (apiKey) => MangaFetch({
|
|
17
|
+
provider: 'mangafire',
|
|
18
|
+
apiKey,
|
|
19
|
+
});
|
|
1
20
|
export * from './types';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface MangaFireLanguage {
|
|
2
2
|
id: string | null;
|
|
3
3
|
code: string | null;
|
|
4
4
|
title: string | null;
|
|
5
5
|
chapters: number | null;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface MangaFireSearchMeta {
|
|
8
8
|
type?: string;
|
|
9
9
|
imageUrl?: string;
|
|
10
10
|
status?: string;
|
|
11
11
|
chapter?: string;
|
|
12
12
|
volume?: string;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface MangaFireInfoMeta {
|
|
15
15
|
status: string | null;
|
|
16
16
|
type: string | null;
|
|
17
17
|
author: string | null;
|
|
18
18
|
published: string | null;
|
|
19
19
|
genres: string[] | null;
|
|
20
20
|
mangazines: string[] | null;
|
|
21
|
-
languages:
|
|
21
|
+
languages: MangaFireLanguage[] | null;
|
|
22
22
|
}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import type { MbbcdnChapterMeta, MbbcdnInfoMeta, MbbcdnSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a BoxManhwa API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = BoxManhwa(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("one piece");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* const chapters = await client.chapters(results[0].id);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const BoxManhwa: (apiKey: string) => {
|
|
17
|
+
name: string;
|
|
18
|
+
} & {
|
|
19
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
20
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
21
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
22
|
+
pages: (params: {
|
|
23
|
+
id: string | number;
|
|
24
|
+
chapterId: string | number;
|
|
25
|
+
lang?: string;
|
|
26
|
+
}) => Promise<import("../../types").Page[]>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Creates a MangaCute API client.
|
|
30
|
+
*
|
|
31
|
+
* @param apiKey - Your API key for authentication
|
|
32
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const client = MangaCute(process.env.API_KEY);
|
|
37
|
+
* const results = await client.search("one piece");
|
|
38
|
+
* const info = await client.info(results[0].id);
|
|
39
|
+
* const chapters = await client.chapters(results[0].id);
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare const MangaCute: (apiKey: string) => {
|
|
43
|
+
name: string;
|
|
44
|
+
} & {
|
|
45
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
46
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
47
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
48
|
+
pages: (params: {
|
|
49
|
+
id: string | number;
|
|
50
|
+
chapterId: string | number;
|
|
51
|
+
lang?: string;
|
|
52
|
+
}) => Promise<import("../../types").Page[]>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Creates a MangaFab API client.
|
|
56
|
+
*
|
|
57
|
+
* @param apiKey - Your API key for authentication
|
|
58
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const client = MangaFab(process.env.API_KEY);
|
|
63
|
+
* const results = await client.search("one piece");
|
|
64
|
+
* const info = await client.info(results[0].id);
|
|
65
|
+
* const chapters = await client.chapters(results[0].id);
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare const MangaFab: (apiKey: string) => {
|
|
69
|
+
name: string;
|
|
70
|
+
} & {
|
|
71
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
72
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
73
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
74
|
+
pages: (params: {
|
|
75
|
+
id: string | number;
|
|
76
|
+
chapterId: string | number;
|
|
77
|
+
lang?: string;
|
|
78
|
+
}) => Promise<import("../../types").Page[]>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Creates a MangaForest API client.
|
|
82
|
+
*
|
|
83
|
+
* @param apiKey - Your API key for authentication
|
|
84
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* const client = MangaForest(process.env.API_KEY);
|
|
89
|
+
* const results = await client.search("one piece");
|
|
90
|
+
* const info = await client.info(results[0].id);
|
|
91
|
+
* const chapters = await client.chapters(results[0].id);
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export declare const MangaForest: (apiKey: string) => {
|
|
95
|
+
name: string;
|
|
96
|
+
} & {
|
|
97
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
98
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
99
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
100
|
+
pages: (params: {
|
|
101
|
+
id: string | number;
|
|
102
|
+
chapterId: string | number;
|
|
103
|
+
lang?: string;
|
|
104
|
+
}) => Promise<import("../../types").Page[]>;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Creates a MangaPuma API client.
|
|
108
|
+
*
|
|
109
|
+
* @param apiKey - Your API key for authentication
|
|
110
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const client = MangaPuma(process.env.API_KEY);
|
|
115
|
+
* const results = await client.search("one piece");
|
|
116
|
+
* const info = await client.info(results[0].id);
|
|
117
|
+
* const chapters = await client.chapters(results[0].id);
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
export declare const MangaPuma: (apiKey: string) => {
|
|
121
|
+
name: string;
|
|
122
|
+
} & {
|
|
123
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
124
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
125
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
126
|
+
pages: (params: {
|
|
127
|
+
id: string | number;
|
|
128
|
+
chapterId: string | number;
|
|
129
|
+
lang?: string;
|
|
130
|
+
}) => Promise<import("../../types").Page[]>;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Creates a MangaSaga API client.
|
|
134
|
+
*
|
|
135
|
+
* @param apiKey - Your API key for authentication
|
|
136
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* const client = MangaSaga(process.env.API_KEY);
|
|
141
|
+
* const results = await client.search("one piece");
|
|
142
|
+
* const info = await client.info(results[0].id);
|
|
143
|
+
* const chapters = await client.chapters(results[0].id);
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
export declare const MangaSaga: (apiKey: string) => {
|
|
147
|
+
name: string;
|
|
148
|
+
} & {
|
|
149
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
150
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
151
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
152
|
+
pages: (params: {
|
|
153
|
+
id: string | number;
|
|
154
|
+
chapterId: string | number;
|
|
155
|
+
lang?: string;
|
|
156
|
+
}) => Promise<import("../../types").Page[]>;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Creates a MangaSpin API client.
|
|
160
|
+
*
|
|
161
|
+
* @param apiKey - Your API key for authentication
|
|
162
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```ts
|
|
166
|
+
* const client = MangaSpin(process.env.API_KEY);
|
|
167
|
+
* const results = await client.search("one piece");
|
|
168
|
+
* const info = await client.info(results[0].id);
|
|
169
|
+
* const chapters = await client.chapters(results[0].id);
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
export declare const MangaSpin: (apiKey: string) => {
|
|
173
|
+
name: string;
|
|
174
|
+
} & {
|
|
175
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
176
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
177
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
178
|
+
pages: (params: {
|
|
179
|
+
id: string | number;
|
|
180
|
+
chapterId: string | number;
|
|
181
|
+
lang?: string;
|
|
182
|
+
}) => Promise<import("../../types").Page[]>;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Creates a MangaXYZ API client.
|
|
186
|
+
*
|
|
187
|
+
* @param apiKey - Your API key for authentication
|
|
188
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```ts
|
|
192
|
+
* const client = MangaXYZ(process.env.API_KEY);
|
|
193
|
+
* const results = await client.search("one piece");
|
|
194
|
+
* const info = await client.info(results[0].id);
|
|
195
|
+
* const chapters = await client.chapters(results[0].id);
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
export declare const MangaXYZ: (apiKey: string) => {
|
|
199
|
+
name: string;
|
|
200
|
+
} & {
|
|
201
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
202
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
203
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
204
|
+
pages: (params: {
|
|
205
|
+
id: string | number;
|
|
206
|
+
chapterId: string | number;
|
|
207
|
+
lang?: string;
|
|
208
|
+
}) => Promise<import("../../types").Page[]>;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Creates a ManhuaNow API client.
|
|
212
|
+
*
|
|
213
|
+
* @param apiKey - Your API key for authentication
|
|
214
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```ts
|
|
218
|
+
* const client = ManhuaNow(process.env.API_KEY);
|
|
219
|
+
* const results = await client.search("one piece");
|
|
220
|
+
* const info = await client.info(results[0].id);
|
|
221
|
+
* const chapters = await client.chapters(results[0].id);
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
export declare const ManhuaNow: (apiKey: string) => {
|
|
225
|
+
name: string;
|
|
226
|
+
} & {
|
|
227
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
228
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
229
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
230
|
+
pages: (params: {
|
|
231
|
+
id: string | number;
|
|
232
|
+
chapterId: string | number;
|
|
233
|
+
lang?: string;
|
|
234
|
+
}) => Promise<import("../../types").Page[]>;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Creates a ManhuaSite API client.
|
|
238
|
+
*
|
|
239
|
+
* @param apiKey - Your API key for authentication
|
|
240
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* ```ts
|
|
244
|
+
* const client = ManhuaSite(process.env.API_KEY);
|
|
245
|
+
* const results = await client.search("one piece");
|
|
246
|
+
* const info = await client.info(results[0].id);
|
|
247
|
+
* const chapters = await client.chapters(results[0].id);
|
|
248
|
+
* ```
|
|
249
|
+
*/
|
|
250
|
+
export declare const ManhuaSite: (apiKey: string) => {
|
|
251
|
+
name: string;
|
|
252
|
+
} & {
|
|
253
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
254
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
255
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
256
|
+
pages: (params: {
|
|
257
|
+
id: string | number;
|
|
258
|
+
chapterId: string | number;
|
|
259
|
+
lang?: string;
|
|
260
|
+
}) => Promise<import("../../types").Page[]>;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Creates a TrueManga API client.
|
|
264
|
+
*
|
|
265
|
+
* @param apiKey - Your API key for authentication
|
|
266
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* ```ts
|
|
270
|
+
* const client = TrueManga(process.env.API_KEY);
|
|
271
|
+
* const results = await client.search("one piece");
|
|
272
|
+
* const info = await client.info(results[0].id);
|
|
273
|
+
* const chapters = await client.chapters(results[0].id);
|
|
274
|
+
* ```
|
|
275
|
+
*/
|
|
276
|
+
export declare const TrueManga: (apiKey: string) => {
|
|
277
|
+
name: string;
|
|
278
|
+
} & {
|
|
279
|
+
search: (q: string) => Promise<import("../../types").Search<MbbcdnSearchMeta>[]>;
|
|
280
|
+
info: (id: string | number) => Promise<import("../../types").Info<MbbcdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
281
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<MbbcdnChapterMeta>[]>;
|
|
282
|
+
pages: (params: {
|
|
283
|
+
id: string | number;
|
|
284
|
+
chapterId: string | number;
|
|
285
|
+
lang?: string;
|
|
286
|
+
}) => Promise<import("../../types").Page[]>;
|
|
287
|
+
};
|
|
288
|
+
export * from './types';
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { MangaFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a BoxManhwa API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = BoxManhwa(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("one piece");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* const chapters = await client.chapters(results[0].id);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export const BoxManhwa = (apiKey) => MangaFetch({
|
|
17
|
+
provider: 'boxmanhwa',
|
|
18
|
+
apiKey,
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Creates a MangaCute API client.
|
|
22
|
+
*
|
|
23
|
+
* @param apiKey - Your API key for authentication
|
|
24
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const client = MangaCute(process.env.API_KEY);
|
|
29
|
+
* const results = await client.search("one piece");
|
|
30
|
+
* const info = await client.info(results[0].id);
|
|
31
|
+
* const chapters = await client.chapters(results[0].id);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export const MangaCute = (apiKey) => MangaFetch({
|
|
35
|
+
provider: 'mangacute',
|
|
36
|
+
apiKey,
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Creates a MangaFab API client.
|
|
40
|
+
*
|
|
41
|
+
* @param apiKey - Your API key for authentication
|
|
42
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const client = MangaFab(process.env.API_KEY);
|
|
47
|
+
* const results = await client.search("one piece");
|
|
48
|
+
* const info = await client.info(results[0].id);
|
|
49
|
+
* const chapters = await client.chapters(results[0].id);
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export const MangaFab = (apiKey) => MangaFetch({
|
|
53
|
+
provider: 'mangafab',
|
|
54
|
+
apiKey,
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Creates a MangaForest API client.
|
|
58
|
+
*
|
|
59
|
+
* @param apiKey - Your API key for authentication
|
|
60
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const client = MangaForest(process.env.API_KEY);
|
|
65
|
+
* const results = await client.search("one piece");
|
|
66
|
+
* const info = await client.info(results[0].id);
|
|
67
|
+
* const chapters = await client.chapters(results[0].id);
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export const MangaForest = (apiKey) => MangaFetch({
|
|
71
|
+
provider: 'mangaforest',
|
|
72
|
+
apiKey,
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* Creates a MangaPuma API client.
|
|
76
|
+
*
|
|
77
|
+
* @param apiKey - Your API key for authentication
|
|
78
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const client = MangaPuma(process.env.API_KEY);
|
|
83
|
+
* const results = await client.search("one piece");
|
|
84
|
+
* const info = await client.info(results[0].id);
|
|
85
|
+
* const chapters = await client.chapters(results[0].id);
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
export const MangaPuma = (apiKey) => MangaFetch({
|
|
89
|
+
provider: 'mangapuma',
|
|
90
|
+
apiKey,
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Creates a MangaSaga API client.
|
|
94
|
+
*
|
|
95
|
+
* @param apiKey - Your API key for authentication
|
|
96
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const client = MangaSaga(process.env.API_KEY);
|
|
101
|
+
* const results = await client.search("one piece");
|
|
102
|
+
* const info = await client.info(results[0].id);
|
|
103
|
+
* const chapters = await client.chapters(results[0].id);
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export const MangaSaga = (apiKey) => MangaFetch({
|
|
107
|
+
provider: 'mangasaga',
|
|
108
|
+
apiKey,
|
|
109
|
+
});
|
|
110
|
+
/**
|
|
111
|
+
* Creates a MangaSpin API client.
|
|
112
|
+
*
|
|
113
|
+
* @param apiKey - Your API key for authentication
|
|
114
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* const client = MangaSpin(process.env.API_KEY);
|
|
119
|
+
* const results = await client.search("one piece");
|
|
120
|
+
* const info = await client.info(results[0].id);
|
|
121
|
+
* const chapters = await client.chapters(results[0].id);
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
export const MangaSpin = (apiKey) => MangaFetch({
|
|
125
|
+
provider: 'mangaspin',
|
|
126
|
+
apiKey,
|
|
127
|
+
});
|
|
128
|
+
/**
|
|
129
|
+
* Creates a MangaXYZ API client.
|
|
130
|
+
*
|
|
131
|
+
* @param apiKey - Your API key for authentication
|
|
132
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const client = MangaXYZ(process.env.API_KEY);
|
|
137
|
+
* const results = await client.search("one piece");
|
|
138
|
+
* const info = await client.info(results[0].id);
|
|
139
|
+
* const chapters = await client.chapters(results[0].id);
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
export const MangaXYZ = (apiKey) => MangaFetch({
|
|
143
|
+
provider: 'mangaxyz',
|
|
144
|
+
apiKey,
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* Creates a ManhuaNow API client.
|
|
148
|
+
*
|
|
149
|
+
* @param apiKey - Your API key for authentication
|
|
150
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```ts
|
|
154
|
+
* const client = ManhuaNow(process.env.API_KEY);
|
|
155
|
+
* const results = await client.search("one piece");
|
|
156
|
+
* const info = await client.info(results[0].id);
|
|
157
|
+
* const chapters = await client.chapters(results[0].id);
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
export const ManhuaNow = (apiKey) => MangaFetch({
|
|
161
|
+
provider: 'manhuanow',
|
|
162
|
+
apiKey,
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* Creates a ManhuaSite API client.
|
|
166
|
+
*
|
|
167
|
+
* @param apiKey - Your API key for authentication
|
|
168
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```ts
|
|
172
|
+
* const client = ManhuaSite(process.env.API_KEY);
|
|
173
|
+
* const results = await client.search("one piece");
|
|
174
|
+
* const info = await client.info(results[0].id);
|
|
175
|
+
* const chapters = await client.chapters(results[0].id);
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
export const ManhuaSite = (apiKey) => MangaFetch({
|
|
179
|
+
provider: 'manhuasite',
|
|
180
|
+
apiKey,
|
|
181
|
+
});
|
|
182
|
+
/**
|
|
183
|
+
* Creates a TrueManga API client.
|
|
184
|
+
*
|
|
185
|
+
* @param apiKey - Your API key for authentication
|
|
186
|
+
* @returns API client with methods: search, info, chapters, pages
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* const client = TrueManga(process.env.API_KEY);
|
|
191
|
+
* const results = await client.search("one piece");
|
|
192
|
+
* const info = await client.info(results[0].id);
|
|
193
|
+
* const chapters = await client.chapters(results[0].id);
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
export const TrueManga = (apiKey) => MangaFetch({
|
|
197
|
+
provider: 'truemanga',
|
|
198
|
+
apiKey,
|
|
199
|
+
});
|
|
200
|
+
export * from './types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface MbbcdnSearchMeta {
|
|
2
|
+
slug: string;
|
|
3
|
+
latestChapter: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface MbbcdnInfoMeta {
|
|
6
|
+
slug: string;
|
|
7
|
+
bookId: number;
|
|
8
|
+
altTitles: string[];
|
|
9
|
+
latestChapter: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface MbbcdnChapterMeta {
|
|
12
|
+
chapterSlug: string;
|
|
13
|
+
chapterNum: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|