@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { ToonilyCdnChapterMeta, ToonilyCdnInfoMeta, ToonilyCdnSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a TooniClub 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 = TooniClub(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 TooniClub: (apiKey: string) => {
|
|
17
|
+
name: string;
|
|
18
|
+
} & {
|
|
19
|
+
search: (q: string) => Promise<import("../../types").Search<ToonilyCdnSearchMeta>[]>;
|
|
20
|
+
info: (id: string | number) => Promise<import("../../types").Info<ToonilyCdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
21
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<ToonilyCdnChapterMeta>[]>;
|
|
22
|
+
pages: (params: {
|
|
23
|
+
id: string | number;
|
|
24
|
+
chapterId: string | number;
|
|
25
|
+
lang?: string;
|
|
26
|
+
}) => Promise<import("../../types").Page[]>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Creates a TooniFab 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 = TooniFab(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 TooniFab: (apiKey: string) => {
|
|
43
|
+
name: string;
|
|
44
|
+
} & {
|
|
45
|
+
search: (q: string) => Promise<import("../../types").Search<ToonilyCdnSearchMeta>[]>;
|
|
46
|
+
info: (id: string | number) => Promise<import("../../types").Info<ToonilyCdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
47
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<ToonilyCdnChapterMeta>[]>;
|
|
48
|
+
pages: (params: {
|
|
49
|
+
id: string | number;
|
|
50
|
+
chapterId: string | number;
|
|
51
|
+
lang?: string;
|
|
52
|
+
}) => Promise<import("../../types").Page[]>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Creates a Toonily 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 = Toonily(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 Toonily: (apiKey: string) => {
|
|
69
|
+
name: string;
|
|
70
|
+
} & {
|
|
71
|
+
search: (q: string) => Promise<import("../../types").Search<ToonilyCdnSearchMeta>[]>;
|
|
72
|
+
info: (id: string | number) => Promise<import("../../types").Info<ToonilyCdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
73
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<ToonilyCdnChapterMeta>[]>;
|
|
74
|
+
pages: (params: {
|
|
75
|
+
id: string | number;
|
|
76
|
+
chapterId: string | number;
|
|
77
|
+
lang?: string;
|
|
78
|
+
}) => Promise<import("../../types").Page[]>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Creates a TooniTube 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 = TooniTube(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 TooniTube: (apiKey: string) => {
|
|
95
|
+
name: string;
|
|
96
|
+
} & {
|
|
97
|
+
search: (q: string) => Promise<import("../../types").Search<ToonilyCdnSearchMeta>[]>;
|
|
98
|
+
info: (id: string | number) => Promise<import("../../types").Info<ToonilyCdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
99
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<ToonilyCdnChapterMeta>[]>;
|
|
100
|
+
pages: (params: {
|
|
101
|
+
id: string | number;
|
|
102
|
+
chapterId: string | number;
|
|
103
|
+
lang?: string;
|
|
104
|
+
}) => Promise<import("../../types").Page[]>;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Creates a BeeHentai 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 = BeeHentai(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 BeeHentai: (apiKey: string) => {
|
|
121
|
+
name: string;
|
|
122
|
+
} & {
|
|
123
|
+
search: (q: string) => Promise<import("../../types").Search<ToonilyCdnSearchMeta>[]>;
|
|
124
|
+
info: (id: string | number) => Promise<import("../../types").Info<ToonilyCdnInfoMeta, import("../../types").Episode<unknown>>>;
|
|
125
|
+
chapters: (id: string | number) => Promise<import("../../types").Chapter<ToonilyCdnChapterMeta>[]>;
|
|
126
|
+
pages: (params: {
|
|
127
|
+
id: string | number;
|
|
128
|
+
chapterId: string | number;
|
|
129
|
+
lang?: string;
|
|
130
|
+
}) => Promise<import("../../types").Page[]>;
|
|
131
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { MangaFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a TooniClub 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 = TooniClub(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 TooniClub = (apiKey) => MangaFetch({
|
|
17
|
+
provider: 'tooniclub',
|
|
18
|
+
apiKey,
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Creates a TooniFab 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 = TooniFab(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 TooniFab = (apiKey) => MangaFetch({
|
|
35
|
+
provider: 'toonifab',
|
|
36
|
+
apiKey,
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Creates a Toonily 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 = Toonily(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 Toonily = (apiKey) => MangaFetch({
|
|
53
|
+
provider: 'toonily',
|
|
54
|
+
apiKey,
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Creates a TooniTube 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 = TooniTube(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 TooniTube = (apiKey) => MangaFetch({
|
|
71
|
+
provider: 'toonitube',
|
|
72
|
+
apiKey,
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* Creates a BeeHentai 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 = BeeHentai(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 BeeHentai = (apiKey) => MangaFetch({
|
|
89
|
+
provider: 'beehentai',
|
|
90
|
+
apiKey,
|
|
91
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ToonilyCdnSearchMeta {
|
|
2
|
+
slug: string;
|
|
3
|
+
latestChapter: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface ToonilyCdnInfoMeta {
|
|
6
|
+
slug: string;
|
|
7
|
+
bookId: number;
|
|
8
|
+
altTitles: string[];
|
|
9
|
+
latestChapter: string | null;
|
|
10
|
+
}
|
|
11
|
+
export interface ToonilyCdnChapterMeta {
|
|
12
|
+
chapterSlug: string;
|
|
13
|
+
chapterNum: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import type { WeebCentralInfoMeta, WeebCentralSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a WeebCentral 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 = WeebCentral(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 WeebCentral: (apiKey: string) => {
|
|
17
|
+
name: string;
|
|
18
|
+
} & {
|
|
19
|
+
search: (q: string) => Promise<import("../../types").Search<WeebCentralSearchMeta>[]>;
|
|
20
|
+
info: (id: string | number) => Promise<import("../../types").Info<WeebCentralInfoMeta, 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 WeebCentral 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 = WeebCentral(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 WeebCentral = (apiKey) => MangaFetch({
|
|
17
|
+
provider: 'weebcentral',
|
|
18
|
+
apiKey,
|
|
19
|
+
});
|
|
1
20
|
export * from './types';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface WeebCentralLink {
|
|
2
2
|
source: string | null;
|
|
3
3
|
id: string | null;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface WeebCentralSearchMeta {
|
|
6
6
|
year: number | null;
|
|
7
7
|
status: string | null;
|
|
8
8
|
type: string | null;
|
|
9
9
|
authors: string[] | null;
|
|
10
10
|
tags: string[] | null;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface WeebCentralInfoMeta {
|
|
13
13
|
year: number | null;
|
|
14
14
|
status: string | null;
|
|
15
15
|
type: string | null;
|
|
@@ -18,5 +18,5 @@ export interface WCInfoMeta {
|
|
|
18
18
|
adult: boolean | false;
|
|
19
19
|
authors: string[] | null;
|
|
20
20
|
tags: string[] | null;
|
|
21
|
-
links:
|
|
21
|
+
links: WeebCentralLink[] | null;
|
|
22
22
|
}
|
|
@@ -1 +1,21 @@
|
|
|
1
|
+
import type { AnilistInfoMeta, AnilistSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an Anilist API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = Anilist(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("alya");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const Anilist: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<AnilistSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<AnilistInfoMeta, import("../../types").Episode<unknown>>>;
|
|
20
|
+
};
|
|
1
21
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { MetaFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an Anilist API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = Anilist(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("alya");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const Anilist = (apiKey) => MetaFetch({
|
|
16
|
+
provider: 'anilist',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import type { MInfoMeta, MSearchMeta } from './myanimelist';
|
|
3
|
-
import type { MMLInfoMeta, MMSearchMeta } from './mymangalist';
|
|
4
|
-
declare const Meta: {
|
|
1
|
+
export declare const Meta: {
|
|
5
2
|
Anilist: (apiKey: string) => {
|
|
6
3
|
name: string;
|
|
7
4
|
} & {
|
|
8
|
-
search: (q: string) => Promise<import("../types").Search<AnilistSearchMeta>[]>;
|
|
9
|
-
info: (id: string | number) => Promise<import("../types").Info<AnilistInfoMeta, import("../types").Episode<unknown>>>;
|
|
5
|
+
search: (q: string) => Promise<import("../types").Search<import("./anilist").AnilistSearchMeta>[]>;
|
|
6
|
+
info: (id: string | number) => Promise<import("../types").Info<import("./anilist").AnilistInfoMeta, import("../types").Episode<unknown>>>;
|
|
10
7
|
};
|
|
11
8
|
MyAnimeList: (apiKey: string) => {
|
|
12
9
|
name: string;
|
|
13
10
|
} & {
|
|
14
|
-
search: (q: string) => Promise<import("../types").Search<
|
|
15
|
-
info: (id: string | number) => Promise<import("../types").Info<
|
|
11
|
+
search: (q: string) => Promise<import("../types").Search<import("./myanimelist").MyAnimeListSearchMeta>[]>;
|
|
12
|
+
info: (id: string | number) => Promise<import("../types").Info<import("./myanimelist").MyAnimeListInfoMeta, import("../types").Episode<unknown>>>;
|
|
16
13
|
};
|
|
17
14
|
MyMangaList: (apiKey: string) => {
|
|
18
15
|
name: string;
|
|
19
16
|
} & {
|
|
20
|
-
search: (q: string) => Promise<import("../types").Search<
|
|
21
|
-
info: (id: string | number) => Promise<import("../types").Info<
|
|
17
|
+
search: (q: string) => Promise<import("../types").Search<import("./mymangalist").MyMangaListSearchMeta>[]>;
|
|
18
|
+
info: (id: string | number) => Promise<import("../types").Info<import("./mymangalist").MyMangaListInfoMeta, import("../types").Episode<unknown>>>;
|
|
22
19
|
};
|
|
23
20
|
};
|
|
24
|
-
export { Meta };
|
|
25
21
|
export * from './anilist';
|
|
26
22
|
export * from './myanimelist';
|
|
27
23
|
export * from './mymangalist';
|
package/dist/core/meta/index.js
CHANGED
|
@@ -1,62 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
/**
|
|
7
|
-
* Creates a MyAnimeList API client for anime metadata.
|
|
8
|
-
*
|
|
9
|
-
* **Provides comprehensive anime information and statistics from MyAnimeList.**
|
|
10
|
-
*
|
|
11
|
-
* @param apiKey - Your API key for authentication
|
|
12
|
-
* @returns API client with methods: search, info
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const mal = MyAnimeList(process.env.API_KEY);
|
|
17
|
-
*
|
|
18
|
-
* // Search for anime
|
|
19
|
-
* const results = await mal.search("steins gate");
|
|
20
|
-
*
|
|
21
|
-
* // Get detailed info with MAL ratings, stats, and metadata
|
|
22
|
-
* const info = await mal.info(results[0].id);
|
|
23
|
-
* console.log(info.score, info.rank, info.popularity);
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
const MyAnimeList = (apiKey) => MetaFetch({
|
|
27
|
-
provider: 'myanimelist',
|
|
28
|
-
apiKey,
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Creates a MyMangaList API client for manga metadata.
|
|
32
|
-
*
|
|
33
|
-
* **Provides comprehensive manga information and statistics from MyAnimeList.**
|
|
34
|
-
*
|
|
35
|
-
* @param apiKey - Your API key for authentication
|
|
36
|
-
* @returns API client with methods: search, info
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const mml = MyMangaList(process.env.API_KEY);
|
|
41
|
-
*
|
|
42
|
-
* // Search for manga
|
|
43
|
-
* const results = await mml.search("berserk");
|
|
44
|
-
*
|
|
45
|
-
* // Get detailed info with MAL ratings, stats, and metadata
|
|
46
|
-
* const info = await mml.info(results[0].id);
|
|
47
|
-
* console.log(info.score, info.rank, info.members);
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
const MyMangaList = (apiKey) => MetaFetch({
|
|
51
|
-
provider: 'mymangalist',
|
|
52
|
-
apiKey,
|
|
53
|
-
});
|
|
54
|
-
const Meta = {
|
|
1
|
+
import { Anilist } from './anilist';
|
|
2
|
+
import { MyAnimeList } from './myanimelist';
|
|
3
|
+
import { MyMangaList } from './mymangalist';
|
|
4
|
+
export const Meta = {
|
|
55
5
|
Anilist,
|
|
56
6
|
MyAnimeList,
|
|
57
7
|
MyMangaList,
|
|
58
8
|
};
|
|
59
|
-
export { Meta };
|
|
60
9
|
export * from './anilist';
|
|
61
10
|
export * from './myanimelist';
|
|
62
11
|
export * from './mymangalist';
|
|
@@ -1 +1,21 @@
|
|
|
1
|
+
import type { MyAnimeListInfoMeta, MyAnimeListSearchMeta } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an MyAnimeList API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = MyAnimeList(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("alya");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const MyAnimeList: (apiKey: string) => {
|
|
16
|
+
name: string;
|
|
17
|
+
} & {
|
|
18
|
+
search: (q: string) => Promise<import("../../types").Search<MyAnimeListSearchMeta>[]>;
|
|
19
|
+
info: (id: string | number) => Promise<import("../../types").Info<MyAnimeListInfoMeta, import("../../types").Episode<unknown>>>;
|
|
20
|
+
};
|
|
1
21
|
export * from './types';
|
|
@@ -1 +1,19 @@
|
|
|
1
|
+
import { MetaFetch } from '../../../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an MyAnimeList API client.
|
|
4
|
+
*
|
|
5
|
+
* @param apiKey - Your API key for authentication
|
|
6
|
+
* @returns API client with methods: search, info
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const client = MyAnimeList(process.env.API_KEY);
|
|
11
|
+
* const results = await client.search("alya");
|
|
12
|
+
* const info = await client.info(results[0].id);
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export const MyAnimeList = (apiKey) => MetaFetch({
|
|
16
|
+
provider: 'myanimelist',
|
|
17
|
+
apiKey,
|
|
18
|
+
});
|
|
1
19
|
export * from './types';
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface MyAnimeListLink {
|
|
2
2
|
label: string | null;
|
|
3
3
|
url: string | null;
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface MyAnimeListRelation {
|
|
6
6
|
id: number | null;
|
|
7
7
|
image: string | null;
|
|
8
8
|
title: string | null;
|
|
9
9
|
relationType: string | null;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface MyAnimeListCharacter {
|
|
12
12
|
id: number | null;
|
|
13
13
|
image: string | null;
|
|
14
14
|
name: string | null;
|
|
15
15
|
role: string | null;
|
|
16
|
-
voiceActors:
|
|
16
|
+
voiceActors: MyAnimeListVoiceActor[] | null;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface MyAnimeListVoiceActor {
|
|
19
19
|
id: number | null;
|
|
20
20
|
image: string | null;
|
|
21
21
|
name: string | null;
|
|
22
22
|
language: string | null;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface MyAnimeListStaff {
|
|
25
25
|
id: number | null;
|
|
26
26
|
image: string | null;
|
|
27
27
|
name: string | null;
|
|
28
28
|
role: string | null;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface MyAnimeListVideo {
|
|
31
31
|
title: string;
|
|
32
32
|
url: string;
|
|
33
33
|
thumbnail: string | null;
|
|
34
34
|
artist?: string | null;
|
|
35
35
|
type: 'trailer' | 'music';
|
|
36
36
|
}
|
|
37
|
-
export interface
|
|
37
|
+
export interface MyAnimeListSearchMeta {
|
|
38
38
|
type: string | null;
|
|
39
39
|
score: string | null;
|
|
40
40
|
members: string | null;
|
|
41
41
|
}
|
|
42
|
-
export interface
|
|
42
|
+
export interface MyAnimeListInfoMeta {
|
|
43
43
|
moreInfo: string | null;
|
|
44
44
|
score: string | null;
|
|
45
45
|
rank: string | null;
|
|
@@ -60,10 +60,10 @@ export interface MInfoMeta {
|
|
|
60
60
|
duration: string | null;
|
|
61
61
|
rating: string | null;
|
|
62
62
|
favorites: string | null;
|
|
63
|
-
externalLinks:
|
|
64
|
-
streamingLinks:
|
|
65
|
-
relations:
|
|
66
|
-
characters:
|
|
67
|
-
videos:
|
|
68
|
-
staff:
|
|
63
|
+
externalLinks: MyAnimeListLink[] | null;
|
|
64
|
+
streamingLinks: MyAnimeListLink[] | null;
|
|
65
|
+
relations: MyAnimeListRelation[] | null;
|
|
66
|
+
characters: MyAnimeListCharacter[] | null;
|
|
67
|
+
videos: MyAnimeListVideo[] | null;
|
|
68
|
+
staff: MyAnimeListStaff[] | null;
|
|
69
69
|
}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
import type { MyMangaListInfoMeta, MyMangaListSearchMeta } from './types';
|
|
2
|
+
export declare const MyMangaList: (apiKey: string) => {
|
|
3
|
+
name: string;
|
|
4
|
+
} & {
|
|
5
|
+
search: (q: string) => Promise<import("../../types").Search<MyMangaListSearchMeta>[]>;
|
|
6
|
+
info: (id: string | number) => Promise<import("../../types").Info<MyMangaListInfoMeta, import("../../types").Episode<unknown>>>;
|
|
7
|
+
};
|
|
1
8
|
export * from './types';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface MyMangaListSearchMeta {
|
|
2
2
|
type: string | null;
|
|
3
3
|
score: string | null;
|
|
4
4
|
members: string | null;
|
|
5
5
|
volumes: string | null;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface MyMangaListLink {
|
|
8
8
|
label: string | null;
|
|
9
9
|
url: string | null;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface MyMangaListRelation {
|
|
12
12
|
id: number | null;
|
|
13
13
|
image: string | null;
|
|
14
14
|
title: string | null;
|
|
15
15
|
relationType: string | null;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface MyMangaListCharacter {
|
|
18
18
|
id: number | null;
|
|
19
19
|
image: string | null;
|
|
20
20
|
name: string | null;
|
|
21
21
|
role: string | null;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface MyMangaListVoiceActor {
|
|
24
24
|
id: number | null;
|
|
25
25
|
image: string | null;
|
|
26
26
|
name: string | null;
|
|
27
27
|
language: string | null;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface MyMangaListInfoMeta {
|
|
30
30
|
moreInfo: string | null;
|
|
31
31
|
score: string | null;
|
|
32
32
|
rank: string | null;
|
|
@@ -42,7 +42,7 @@ export interface MMLInfoMeta {
|
|
|
42
42
|
themes: string[] | null;
|
|
43
43
|
authors: string[] | null;
|
|
44
44
|
favorites: string | null;
|
|
45
|
-
externalLinks:
|
|
46
|
-
relations:
|
|
47
|
-
characters:
|
|
45
|
+
externalLinks: MyMangaListLink[] | null;
|
|
46
|
+
relations: MyMangaListRelation[] | null;
|
|
47
|
+
characters: MyMangaListCharacter[] | null;
|
|
48
48
|
}
|