mgbuild 1.9.7 → 1.9.9
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/lib/@types/index.d.ts +30 -30
- package/lib/data/tagMatcher.d.ts +7 -7
- package/lib/data/tagMatcherx.d.ts +7 -7
- package/lib/hqs/getHqAndChapters.d.ts +1 -1
- package/lib/hqs/getHqChapterById.d.ts +8 -8
- package/lib/hqs/getHqDetails.d.ts +1 -1
- package/lib/hqs/index.d.ts +5 -5
- package/lib/hqs/listHqIds.d.ts +5 -5
- package/lib/hqs/listUpdatedHqs.d.ts +6 -6
- package/lib/hqs/utils.d.ts +46 -46
- package/lib/index.d.ts +24 -20
- package/lib/index.js +3 -3
- package/lib/mgs/br/chapter.d.ts +4 -4
- package/lib/mgs/br/config.d.ts +6 -6
- package/lib/mgs/br/headers.d.ts +54 -54
- package/lib/mgs/br/index.d.ts +20 -20
- package/lib/mgs/br/manga.d.ts +3 -3
- package/lib/mgs/br/recent.d.ts +3 -3
- package/lib/mgs/fm/chapter.d.ts +4 -0
- package/lib/mgs/fm/config.d.ts +6 -0
- package/lib/mgs/fm/headers.d.ts +72 -0
- package/lib/mgs/fm/index.d.ts +17 -0
- package/lib/mgs/fm/manga.d.ts +3 -0
- package/lib/mgs/fm/recent.d.ts +3 -0
- package/lib/mgs/ma/chapter.d.ts +4 -4
- package/lib/mgs/ma/config.d.ts +6 -6
- package/lib/mgs/ma/headers.d.ts +48 -48
- package/lib/mgs/ma/index.d.ts +20 -20
- package/lib/mgs/ma/manga.d.ts +3 -3
- package/lib/mgs/ma/recent.d.ts +3 -3
- package/lib/mgs/md/core/predict.d.ts +3 -3
- package/lib/mgs/md/core/scraper.d.ts +36 -36
- package/lib/mgs/md/core/transform.d.ts +19 -19
- package/lib/mgs/md/core/utils.d.ts +39 -39
- package/lib/mgs/md/index.d.ts +27 -27
- package/lib/mgs/md/types/bulk-info.d.ts +112 -112
- package/lib/mgs/md/types/chapters.d.ts +59 -59
- package/lib/mgs/md/types/info.d.ts +82 -82
- package/lib/mgs/md/types/pages.d.ts +11 -11
- package/lib/mgs/md/types/recents.d.ts +134 -134
- package/lib/mgs/md/types/transform.d.ts +44 -44
- package/lib/mgs/ml/chapter.d.ts +3 -3
- package/lib/mgs/ml/config.d.ts +6 -6
- package/lib/mgs/ml/headers.d.ts +75 -75
- package/lib/mgs/ml/index.d.ts +18 -18
- package/lib/mgs/ml/manga.d.ts +3 -3
- package/lib/mgs/ml/recent.d.ts +3 -3
- package/lib/mgs/mo/chapter.d.ts +4 -4
- package/lib/mgs/mo/config.d.ts +6 -6
- package/lib/mgs/mo/headers.d.ts +73 -73
- package/lib/mgs/mo/index.d.ts +21 -21
- package/lib/mgs/mo/manga.d.ts +4 -4
- package/lib/mgs/mo/recent.d.ts +3 -3
- package/lib/mgs/rm/chapter.d.ts +4 -4
- package/lib/mgs/rm/config.d.ts +6 -6
- package/lib/mgs/rm/headers.d.ts +99 -99
- package/lib/mgs/rm/index.d.ts +24 -24
- package/lib/mgs/rm/manga.d.ts +3 -3
- package/lib/mgs/rm/recent.d.ts +3 -3
- package/lib/mgs/sc/chapter.d.ts +4 -0
- package/lib/mgs/sc/config.d.ts +6 -0
- package/lib/mgs/sc/headers.d.ts +70 -0
- package/lib/mgs/sc/index.d.ts +20 -0
- package/lib/mgs/sc/manga.d.ts +4 -0
- package/lib/mgs/sc/recent.d.ts +3 -0
- package/lib/mgs/sr/api/book.d.ts +101 -101
- package/lib/mgs/sr/api/chapter.d.ts +20 -20
- package/lib/mgs/sr/api/chapters.d.ts +12 -12
- package/lib/mgs/sr/api/index.d.ts +10 -10
- package/lib/mgs/sr/api/recents.d.ts +49 -49
- package/lib/mgs/sr/config.d.ts +6 -6
- package/lib/mgs/sr/headers.d.ts +65 -65
- package/lib/mgs/sr/index.d.ts +20 -20
- package/lib/mgs/sr/manga.d.ts +11 -11
- package/lib/mgs/sr/recent.d.ts +3 -3
- package/lib/mgs/st/chapter.d.ts +4 -4
- package/lib/mgs/st/config.d.ts +6 -6
- package/lib/mgs/st/headers.d.ts +70 -70
- package/lib/mgs/st/index.d.ts +21 -21
- package/lib/mgs/st/manga.d.ts +4 -4
- package/lib/mgs/st/recent.d.ts +58 -58
- package/lib/utils/graphQLRequest.d.ts +7 -7
- package/lib/utils/request.d.ts +1 -1
- package/lib/utils/tag.d.ts +3 -3
- package/lib/utils/tinyfetch.d.ts +12 -12
- package/lib/utils/tools.d.ts +29 -29
- package/lib/utils/type.d.ts +5 -5
- package/package.json +10 -10
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { LanguageItem, Languages } from "../../../utils/type";
|
|
2
|
-
export declare const CHAPTERS_PER_PAGE = 96;
|
|
3
|
-
export declare function getPage(targetChapterPage: number): number;
|
|
4
|
-
export type ChapterEndpointConfig = {
|
|
5
|
-
number: number;
|
|
6
|
-
language: Languages;
|
|
7
|
-
};
|
|
8
|
-
export type ChaptersEndpointConfig = {
|
|
9
|
-
order: "asc" | "desc";
|
|
10
|
-
language: Languages;
|
|
11
|
-
page: number;
|
|
12
|
-
};
|
|
13
|
-
export declare const endpoints: {
|
|
14
|
-
info: (manga_id: string) => string;
|
|
15
|
-
chapters: (manga_id: string, config: ChaptersEndpointConfig) => string;
|
|
16
|
-
chapter: (manga_id: string, config: ChapterEndpointConfig) => string;
|
|
17
|
-
pages: (chapter_id: string) => string;
|
|
18
|
-
recents: (language: Languages) => string;
|
|
19
|
-
bulkInfo: (manga_ids: string[]) => string;
|
|
20
|
-
list: (language: Languages, page: number) => string;
|
|
21
|
-
};
|
|
22
|
-
export declare const headers: {
|
|
23
|
-
accept: string;
|
|
24
|
-
"accept-language": string;
|
|
25
|
-
origin: string;
|
|
26
|
-
priority: string;
|
|
27
|
-
referer: string;
|
|
28
|
-
"sec-ch-ua": string;
|
|
29
|
-
"sec-ch-ua-mobile": string;
|
|
30
|
-
"sec-ch-ua-platform": string;
|
|
31
|
-
"sec-fetch-dest": string;
|
|
32
|
-
"sec-fetch-mode": string;
|
|
33
|
-
"sec-fetch-site": string;
|
|
34
|
-
"sec-gpc": string;
|
|
35
|
-
"user-agent": string;
|
|
36
|
-
};
|
|
37
|
-
export declare function request<T>(url: string): Promise<T>;
|
|
38
|
-
export declare function getLanguageItem(data: LanguageItem, language: Languages): string;
|
|
39
|
-
export declare function cleanDescription(description: string): string | undefined;
|
|
1
|
+
import { LanguageItem, Languages } from "../../../utils/type";
|
|
2
|
+
export declare const CHAPTERS_PER_PAGE = 96;
|
|
3
|
+
export declare function getPage(targetChapterPage: number): number;
|
|
4
|
+
export type ChapterEndpointConfig = {
|
|
5
|
+
number: number;
|
|
6
|
+
language: Languages;
|
|
7
|
+
};
|
|
8
|
+
export type ChaptersEndpointConfig = {
|
|
9
|
+
order: "asc" | "desc";
|
|
10
|
+
language: Languages;
|
|
11
|
+
page: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const endpoints: {
|
|
14
|
+
info: (manga_id: string) => string;
|
|
15
|
+
chapters: (manga_id: string, config: ChaptersEndpointConfig) => string;
|
|
16
|
+
chapter: (manga_id: string, config: ChapterEndpointConfig) => string;
|
|
17
|
+
pages: (chapter_id: string) => string;
|
|
18
|
+
recents: (language: Languages) => string;
|
|
19
|
+
bulkInfo: (manga_ids: string[]) => string;
|
|
20
|
+
list: (language: Languages, page: number) => string;
|
|
21
|
+
};
|
|
22
|
+
export declare const headers: {
|
|
23
|
+
accept: string;
|
|
24
|
+
"accept-language": string;
|
|
25
|
+
origin: string;
|
|
26
|
+
priority: string;
|
|
27
|
+
referer: string;
|
|
28
|
+
"sec-ch-ua": string;
|
|
29
|
+
"sec-ch-ua-mobile": string;
|
|
30
|
+
"sec-ch-ua-platform": string;
|
|
31
|
+
"sec-fetch-dest": string;
|
|
32
|
+
"sec-fetch-mode": string;
|
|
33
|
+
"sec-fetch-site": string;
|
|
34
|
+
"sec-gpc": string;
|
|
35
|
+
"user-agent": string;
|
|
36
|
+
};
|
|
37
|
+
export declare function request<T>(url: string): Promise<T>;
|
|
38
|
+
export declare function getLanguageItem(data: LanguageItem, language: Languages): string;
|
|
39
|
+
export declare function cleanDescription(description: string): string | undefined;
|
package/lib/mgs/md/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Logger } from "./core/scraper";
|
|
2
|
-
import { Languages, MainLanguages } from "../../utils/type";
|
|
3
|
-
type MangaConfig = {
|
|
4
|
-
full?: boolean;
|
|
5
|
-
last?: boolean;
|
|
6
|
-
language: MainLanguages;
|
|
7
|
-
};
|
|
8
|
-
export declare class Scraper {
|
|
9
|
-
private bruteScraper;
|
|
10
|
-
private transform;
|
|
11
|
-
constructor(logger?: Logger);
|
|
12
|
-
private chapters;
|
|
13
|
-
allChapters(manga_id: string, config: {
|
|
14
|
-
slug: string;
|
|
15
|
-
language: MainLanguages;
|
|
16
|
-
}): Promise<import("./types/transform").Chapter[]>;
|
|
17
|
-
manga(manga_id: string, config: MangaConfig): Promise<import("./types/transform").MangaInfo | undefined>;
|
|
18
|
-
mangas(language: MainLanguages, page: number): Promise<import("./types/transform").MangaInfo[] | undefined>;
|
|
19
|
-
chapter(manga_id: string, number: number, language: Languages): Promise<{
|
|
20
|
-
pages: string[];
|
|
21
|
-
} | undefined>;
|
|
22
|
-
chapterById(chapter_id: string): Promise<{
|
|
23
|
-
pages: string[];
|
|
24
|
-
}>;
|
|
25
|
-
recents(language: Languages): Promise<import("../..").RecentScrapeList[]>;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
import { Logger } from "./core/scraper";
|
|
2
|
+
import { Languages, MainLanguages } from "../../utils/type";
|
|
3
|
+
type MangaConfig = {
|
|
4
|
+
full?: boolean;
|
|
5
|
+
last?: boolean;
|
|
6
|
+
language: MainLanguages;
|
|
7
|
+
};
|
|
8
|
+
export declare class Scraper {
|
|
9
|
+
private bruteScraper;
|
|
10
|
+
private transform;
|
|
11
|
+
constructor(logger?: Logger);
|
|
12
|
+
private chapters;
|
|
13
|
+
allChapters(manga_id: string, config: {
|
|
14
|
+
slug: string;
|
|
15
|
+
language: MainLanguages;
|
|
16
|
+
}): Promise<import("./types/transform").Chapter[]>;
|
|
17
|
+
manga(manga_id: string, config: MangaConfig): Promise<import("./types/transform").MangaInfo | undefined>;
|
|
18
|
+
mangas(language: MainLanguages, page: number): Promise<import("./types/transform").MangaInfo[] | undefined>;
|
|
19
|
+
chapter(manga_id: string, number: number, language: Languages): Promise<{
|
|
20
|
+
pages: string[];
|
|
21
|
+
} | undefined>;
|
|
22
|
+
chapterById(chapter_id: string): Promise<{
|
|
23
|
+
pages: string[];
|
|
24
|
+
}>;
|
|
25
|
+
recents(language: Languages): Promise<import("../..").RecentScrapeList[]>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
export type GetBulkInfoResponse = {
|
|
2
|
-
result: string;
|
|
3
|
-
response: string;
|
|
4
|
-
data: Data[];
|
|
5
|
-
limit: number;
|
|
6
|
-
offset: number;
|
|
7
|
-
total: number;
|
|
8
|
-
};
|
|
9
|
-
type Data = {
|
|
10
|
-
id: string;
|
|
11
|
-
type: string;
|
|
12
|
-
attributes: Attributes;
|
|
13
|
-
relationships: Relationship[];
|
|
14
|
-
};
|
|
15
|
-
type Attributes = {
|
|
16
|
-
title: Title;
|
|
17
|
-
altTitles: AltTitle[];
|
|
18
|
-
description: Description;
|
|
19
|
-
isLocked: boolean;
|
|
20
|
-
links: Links;
|
|
21
|
-
originalLanguage: string;
|
|
22
|
-
lastVolume: string;
|
|
23
|
-
lastChapter: string;
|
|
24
|
-
publicationDemographic?: string;
|
|
25
|
-
status: string;
|
|
26
|
-
year: number;
|
|
27
|
-
contentRating: "erotica" | "safe" | "suggestive";
|
|
28
|
-
tags: Tag[];
|
|
29
|
-
state: string;
|
|
30
|
-
chapterNumbersResetOnNewVolume: boolean;
|
|
31
|
-
createdAt: string;
|
|
32
|
-
updatedAt: string;
|
|
33
|
-
version: number;
|
|
34
|
-
availableTranslatedLanguages: string[];
|
|
35
|
-
latestUploadedChapter: string;
|
|
36
|
-
};
|
|
37
|
-
type Title = {
|
|
38
|
-
en: string;
|
|
39
|
-
};
|
|
40
|
-
type AltTitle = {
|
|
41
|
-
en?: string;
|
|
42
|
-
"ko-ro"?: string;
|
|
43
|
-
ru?: string;
|
|
44
|
-
ja?: string;
|
|
45
|
-
ko?: string;
|
|
46
|
-
id?: string;
|
|
47
|
-
zh?: string;
|
|
48
|
-
th?: string;
|
|
49
|
-
"zh-hk"?: string;
|
|
50
|
-
el?: string;
|
|
51
|
-
"zh-ro"?: string;
|
|
52
|
-
vi?: string;
|
|
53
|
-
uk?: string;
|
|
54
|
-
tr?: string;
|
|
55
|
-
kk?: string;
|
|
56
|
-
bg?: string;
|
|
57
|
-
sl?: string;
|
|
58
|
-
"ja-ro"?: string;
|
|
59
|
-
};
|
|
60
|
-
type Description = {
|
|
61
|
-
en: string;
|
|
62
|
-
pt?: string;
|
|
63
|
-
"es-la"?: string;
|
|
64
|
-
"pt-br"?: string;
|
|
65
|
-
fr?: string;
|
|
66
|
-
ru?: string;
|
|
67
|
-
};
|
|
68
|
-
type Links = {
|
|
69
|
-
al: string;
|
|
70
|
-
ap: string;
|
|
71
|
-
bw?: string;
|
|
72
|
-
kt?: string;
|
|
73
|
-
mu: string;
|
|
74
|
-
nu?: string;
|
|
75
|
-
amz?: string;
|
|
76
|
-
cdj?: string;
|
|
77
|
-
ebj?: string;
|
|
78
|
-
mal?: string;
|
|
79
|
-
raw?: string;
|
|
80
|
-
engtl?: string;
|
|
81
|
-
};
|
|
82
|
-
type Tag = {
|
|
83
|
-
id: string;
|
|
84
|
-
type: string;
|
|
85
|
-
attributes: Attributes2;
|
|
86
|
-
relationships: any[];
|
|
87
|
-
};
|
|
88
|
-
type Attributes2 = {
|
|
89
|
-
name: Name;
|
|
90
|
-
description: object;
|
|
91
|
-
group: string;
|
|
92
|
-
version: number;
|
|
93
|
-
};
|
|
94
|
-
type Name = {
|
|
95
|
-
en: string;
|
|
96
|
-
};
|
|
97
|
-
type Relationship = {
|
|
98
|
-
id: string;
|
|
99
|
-
type: string;
|
|
100
|
-
attributes?: Attributes3;
|
|
101
|
-
related?: string;
|
|
102
|
-
};
|
|
103
|
-
type Attributes3 = {
|
|
104
|
-
description: string;
|
|
105
|
-
volume: string;
|
|
106
|
-
fileName: string;
|
|
107
|
-
locale: string;
|
|
108
|
-
createdAt: string;
|
|
109
|
-
updatedAt: string;
|
|
110
|
-
version: number;
|
|
111
|
-
};
|
|
112
|
-
export {};
|
|
1
|
+
export type GetBulkInfoResponse = {
|
|
2
|
+
result: string;
|
|
3
|
+
response: string;
|
|
4
|
+
data: Data[];
|
|
5
|
+
limit: number;
|
|
6
|
+
offset: number;
|
|
7
|
+
total: number;
|
|
8
|
+
};
|
|
9
|
+
type Data = {
|
|
10
|
+
id: string;
|
|
11
|
+
type: string;
|
|
12
|
+
attributes: Attributes;
|
|
13
|
+
relationships: Relationship[];
|
|
14
|
+
};
|
|
15
|
+
type Attributes = {
|
|
16
|
+
title: Title;
|
|
17
|
+
altTitles: AltTitle[];
|
|
18
|
+
description: Description;
|
|
19
|
+
isLocked: boolean;
|
|
20
|
+
links: Links;
|
|
21
|
+
originalLanguage: string;
|
|
22
|
+
lastVolume: string;
|
|
23
|
+
lastChapter: string;
|
|
24
|
+
publicationDemographic?: string;
|
|
25
|
+
status: string;
|
|
26
|
+
year: number;
|
|
27
|
+
contentRating: "erotica" | "safe" | "suggestive";
|
|
28
|
+
tags: Tag[];
|
|
29
|
+
state: string;
|
|
30
|
+
chapterNumbersResetOnNewVolume: boolean;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
version: number;
|
|
34
|
+
availableTranslatedLanguages: string[];
|
|
35
|
+
latestUploadedChapter: string;
|
|
36
|
+
};
|
|
37
|
+
type Title = {
|
|
38
|
+
en: string;
|
|
39
|
+
};
|
|
40
|
+
type AltTitle = {
|
|
41
|
+
en?: string;
|
|
42
|
+
"ko-ro"?: string;
|
|
43
|
+
ru?: string;
|
|
44
|
+
ja?: string;
|
|
45
|
+
ko?: string;
|
|
46
|
+
id?: string;
|
|
47
|
+
zh?: string;
|
|
48
|
+
th?: string;
|
|
49
|
+
"zh-hk"?: string;
|
|
50
|
+
el?: string;
|
|
51
|
+
"zh-ro"?: string;
|
|
52
|
+
vi?: string;
|
|
53
|
+
uk?: string;
|
|
54
|
+
tr?: string;
|
|
55
|
+
kk?: string;
|
|
56
|
+
bg?: string;
|
|
57
|
+
sl?: string;
|
|
58
|
+
"ja-ro"?: string;
|
|
59
|
+
};
|
|
60
|
+
type Description = {
|
|
61
|
+
en: string;
|
|
62
|
+
pt?: string;
|
|
63
|
+
"es-la"?: string;
|
|
64
|
+
"pt-br"?: string;
|
|
65
|
+
fr?: string;
|
|
66
|
+
ru?: string;
|
|
67
|
+
};
|
|
68
|
+
type Links = {
|
|
69
|
+
al: string;
|
|
70
|
+
ap: string;
|
|
71
|
+
bw?: string;
|
|
72
|
+
kt?: string;
|
|
73
|
+
mu: string;
|
|
74
|
+
nu?: string;
|
|
75
|
+
amz?: string;
|
|
76
|
+
cdj?: string;
|
|
77
|
+
ebj?: string;
|
|
78
|
+
mal?: string;
|
|
79
|
+
raw?: string;
|
|
80
|
+
engtl?: string;
|
|
81
|
+
};
|
|
82
|
+
type Tag = {
|
|
83
|
+
id: string;
|
|
84
|
+
type: string;
|
|
85
|
+
attributes: Attributes2;
|
|
86
|
+
relationships: any[];
|
|
87
|
+
};
|
|
88
|
+
type Attributes2 = {
|
|
89
|
+
name: Name;
|
|
90
|
+
description: object;
|
|
91
|
+
group: string;
|
|
92
|
+
version: number;
|
|
93
|
+
};
|
|
94
|
+
type Name = {
|
|
95
|
+
en: string;
|
|
96
|
+
};
|
|
97
|
+
type Relationship = {
|
|
98
|
+
id: string;
|
|
99
|
+
type: string;
|
|
100
|
+
attributes?: Attributes3;
|
|
101
|
+
related?: string;
|
|
102
|
+
};
|
|
103
|
+
type Attributes3 = {
|
|
104
|
+
description: string;
|
|
105
|
+
volume: string;
|
|
106
|
+
fileName: string;
|
|
107
|
+
locale: string;
|
|
108
|
+
createdAt: string;
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
version: number;
|
|
111
|
+
};
|
|
112
|
+
export {};
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
export type GetMangaChaptersResponse = {
|
|
2
|
-
result: string;
|
|
3
|
-
response: string;
|
|
4
|
-
data: Data[];
|
|
5
|
-
limit: number;
|
|
6
|
-
offset: number;
|
|
7
|
-
total: number;
|
|
8
|
-
last_page: number;
|
|
9
|
-
invalid_page: boolean;
|
|
10
|
-
};
|
|
11
|
-
type Data = {
|
|
12
|
-
id: string;
|
|
13
|
-
type: string;
|
|
14
|
-
attributes: Attributes;
|
|
15
|
-
relationships: Relationship[];
|
|
16
|
-
};
|
|
17
|
-
type Attributes = {
|
|
18
|
-
volume?: string;
|
|
19
|
-
chapter: string;
|
|
20
|
-
title?: string;
|
|
21
|
-
translatedLanguage: string;
|
|
22
|
-
externalUrl?: string;
|
|
23
|
-
publishAt: string;
|
|
24
|
-
readableAt: string;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
updatedAt: string;
|
|
27
|
-
pages: number;
|
|
28
|
-
version: number;
|
|
29
|
-
};
|
|
30
|
-
type Relationship = {
|
|
31
|
-
id: string;
|
|
32
|
-
type: string;
|
|
33
|
-
attributes?: Attributes2;
|
|
34
|
-
};
|
|
35
|
-
type Attributes2 = {
|
|
36
|
-
username?: string;
|
|
37
|
-
roles?: string[];
|
|
38
|
-
version: number;
|
|
39
|
-
name?: string;
|
|
40
|
-
altNames?: any[];
|
|
41
|
-
locked?: boolean;
|
|
42
|
-
website?: string;
|
|
43
|
-
ircServer: any;
|
|
44
|
-
ircChannel: any;
|
|
45
|
-
discord?: string;
|
|
46
|
-
contactEmail?: string;
|
|
47
|
-
description?: string;
|
|
48
|
-
twitter?: string;
|
|
49
|
-
mangaUpdates?: string;
|
|
50
|
-
focusedLanguages?: string[];
|
|
51
|
-
official?: boolean;
|
|
52
|
-
verified?: boolean;
|
|
53
|
-
inactive?: boolean;
|
|
54
|
-
publishDelay: any;
|
|
55
|
-
exLicensed?: boolean;
|
|
56
|
-
createdAt?: string;
|
|
57
|
-
updatedAt?: string;
|
|
58
|
-
};
|
|
59
|
-
export {};
|
|
1
|
+
export type GetMangaChaptersResponse = {
|
|
2
|
+
result: string;
|
|
3
|
+
response: string;
|
|
4
|
+
data: Data[];
|
|
5
|
+
limit: number;
|
|
6
|
+
offset: number;
|
|
7
|
+
total: number;
|
|
8
|
+
last_page: number;
|
|
9
|
+
invalid_page: boolean;
|
|
10
|
+
};
|
|
11
|
+
type Data = {
|
|
12
|
+
id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
attributes: Attributes;
|
|
15
|
+
relationships: Relationship[];
|
|
16
|
+
};
|
|
17
|
+
type Attributes = {
|
|
18
|
+
volume?: string;
|
|
19
|
+
chapter: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
translatedLanguage: string;
|
|
22
|
+
externalUrl?: string;
|
|
23
|
+
publishAt: string;
|
|
24
|
+
readableAt: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
pages: number;
|
|
28
|
+
version: number;
|
|
29
|
+
};
|
|
30
|
+
type Relationship = {
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
attributes?: Attributes2;
|
|
34
|
+
};
|
|
35
|
+
type Attributes2 = {
|
|
36
|
+
username?: string;
|
|
37
|
+
roles?: string[];
|
|
38
|
+
version: number;
|
|
39
|
+
name?: string;
|
|
40
|
+
altNames?: any[];
|
|
41
|
+
locked?: boolean;
|
|
42
|
+
website?: string;
|
|
43
|
+
ircServer: any;
|
|
44
|
+
ircChannel: any;
|
|
45
|
+
discord?: string;
|
|
46
|
+
contactEmail?: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
twitter?: string;
|
|
49
|
+
mangaUpdates?: string;
|
|
50
|
+
focusedLanguages?: string[];
|
|
51
|
+
official?: boolean;
|
|
52
|
+
verified?: boolean;
|
|
53
|
+
inactive?: boolean;
|
|
54
|
+
publishDelay: any;
|
|
55
|
+
exLicensed?: boolean;
|
|
56
|
+
createdAt?: string;
|
|
57
|
+
updatedAt?: string;
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { LanguageItem } from "../../../utils/type";
|
|
2
|
-
export type GetMangaInfoResponse = {
|
|
3
|
-
result: string;
|
|
4
|
-
response: string;
|
|
5
|
-
data: Data;
|
|
6
|
-
};
|
|
7
|
-
export type ListMangaResponse = {
|
|
8
|
-
result: string;
|
|
9
|
-
response: string;
|
|
10
|
-
data: Data[];
|
|
11
|
-
};
|
|
12
|
-
type Data = {
|
|
13
|
-
id: string;
|
|
14
|
-
type: string;
|
|
15
|
-
attributes: Attributes;
|
|
16
|
-
relationships: Relationship[];
|
|
17
|
-
};
|
|
18
|
-
type Attributes = {
|
|
19
|
-
title: Title;
|
|
20
|
-
altTitles: AltTitle[];
|
|
21
|
-
description: Description;
|
|
22
|
-
isLocked: boolean;
|
|
23
|
-
links: Links;
|
|
24
|
-
originalLanguage: string;
|
|
25
|
-
lastVolume: string;
|
|
26
|
-
lastChapter: string;
|
|
27
|
-
publicationDemographic: any;
|
|
28
|
-
status: string;
|
|
29
|
-
year: number;
|
|
30
|
-
contentRating: "erotica" | "safe" | "suggestive";
|
|
31
|
-
tags: Tag[];
|
|
32
|
-
state: string;
|
|
33
|
-
chapterNumbersResetOnNewVolume: boolean;
|
|
34
|
-
createdAt: string;
|
|
35
|
-
updatedAt: string;
|
|
36
|
-
version: number;
|
|
37
|
-
availableTranslatedLanguages: string[];
|
|
38
|
-
latestUploadedChapter: string;
|
|
39
|
-
};
|
|
40
|
-
type Title = LanguageItem;
|
|
41
|
-
type AltTitle = LanguageItem;
|
|
42
|
-
type Description = LanguageItem;
|
|
43
|
-
type Links = {
|
|
44
|
-
al: string;
|
|
45
|
-
ap: string;
|
|
46
|
-
bw: string;
|
|
47
|
-
kt: string;
|
|
48
|
-
mu: string;
|
|
49
|
-
amz: string;
|
|
50
|
-
ebj: string;
|
|
51
|
-
mal: string;
|
|
52
|
-
raw: string;
|
|
53
|
-
engtl: string;
|
|
54
|
-
};
|
|
55
|
-
type Tag = {
|
|
56
|
-
id: string;
|
|
57
|
-
type: string;
|
|
58
|
-
attributes: Attributes2;
|
|
59
|
-
relationships: any[];
|
|
60
|
-
};
|
|
61
|
-
type Attributes2 = {
|
|
62
|
-
name: Name;
|
|
63
|
-
description: object;
|
|
64
|
-
group: string;
|
|
65
|
-
version: number;
|
|
66
|
-
};
|
|
67
|
-
type Name = {
|
|
68
|
-
en: string;
|
|
69
|
-
};
|
|
70
|
-
type Relationship = {
|
|
71
|
-
id: string;
|
|
72
|
-
type: string;
|
|
73
|
-
related?: string;
|
|
74
|
-
attributes: {
|
|
75
|
-
volume: string;
|
|
76
|
-
fileName: string;
|
|
77
|
-
locale: string;
|
|
78
|
-
createdAt: string;
|
|
79
|
-
updatedAt: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export {};
|
|
1
|
+
import { LanguageItem } from "../../../utils/type";
|
|
2
|
+
export type GetMangaInfoResponse = {
|
|
3
|
+
result: string;
|
|
4
|
+
response: string;
|
|
5
|
+
data: Data;
|
|
6
|
+
};
|
|
7
|
+
export type ListMangaResponse = {
|
|
8
|
+
result: string;
|
|
9
|
+
response: string;
|
|
10
|
+
data: Data[];
|
|
11
|
+
};
|
|
12
|
+
type Data = {
|
|
13
|
+
id: string;
|
|
14
|
+
type: string;
|
|
15
|
+
attributes: Attributes;
|
|
16
|
+
relationships: Relationship[];
|
|
17
|
+
};
|
|
18
|
+
type Attributes = {
|
|
19
|
+
title: Title;
|
|
20
|
+
altTitles: AltTitle[];
|
|
21
|
+
description: Description;
|
|
22
|
+
isLocked: boolean;
|
|
23
|
+
links: Links;
|
|
24
|
+
originalLanguage: string;
|
|
25
|
+
lastVolume: string;
|
|
26
|
+
lastChapter: string;
|
|
27
|
+
publicationDemographic: any;
|
|
28
|
+
status: string;
|
|
29
|
+
year: number;
|
|
30
|
+
contentRating: "erotica" | "safe" | "suggestive";
|
|
31
|
+
tags: Tag[];
|
|
32
|
+
state: string;
|
|
33
|
+
chapterNumbersResetOnNewVolume: boolean;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
version: number;
|
|
37
|
+
availableTranslatedLanguages: string[];
|
|
38
|
+
latestUploadedChapter: string;
|
|
39
|
+
};
|
|
40
|
+
type Title = LanguageItem;
|
|
41
|
+
type AltTitle = LanguageItem;
|
|
42
|
+
type Description = LanguageItem;
|
|
43
|
+
type Links = {
|
|
44
|
+
al: string;
|
|
45
|
+
ap: string;
|
|
46
|
+
bw: string;
|
|
47
|
+
kt: string;
|
|
48
|
+
mu: string;
|
|
49
|
+
amz: string;
|
|
50
|
+
ebj: string;
|
|
51
|
+
mal: string;
|
|
52
|
+
raw: string;
|
|
53
|
+
engtl: string;
|
|
54
|
+
};
|
|
55
|
+
type Tag = {
|
|
56
|
+
id: string;
|
|
57
|
+
type: string;
|
|
58
|
+
attributes: Attributes2;
|
|
59
|
+
relationships: any[];
|
|
60
|
+
};
|
|
61
|
+
type Attributes2 = {
|
|
62
|
+
name: Name;
|
|
63
|
+
description: object;
|
|
64
|
+
group: string;
|
|
65
|
+
version: number;
|
|
66
|
+
};
|
|
67
|
+
type Name = {
|
|
68
|
+
en: string;
|
|
69
|
+
};
|
|
70
|
+
type Relationship = {
|
|
71
|
+
id: string;
|
|
72
|
+
type: string;
|
|
73
|
+
related?: string;
|
|
74
|
+
attributes: {
|
|
75
|
+
volume: string;
|
|
76
|
+
fileName: string;
|
|
77
|
+
locale: string;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type GetChapterPagesResponse = {
|
|
2
|
-
result: string;
|
|
3
|
-
baseUrl: string;
|
|
4
|
-
chapter: Chapter;
|
|
5
|
-
};
|
|
6
|
-
type Chapter = {
|
|
7
|
-
hash: string;
|
|
8
|
-
data: string[];
|
|
9
|
-
dataSaver: string[];
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
1
|
+
export type GetChapterPagesResponse = {
|
|
2
|
+
result: string;
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
chapter: Chapter;
|
|
5
|
+
};
|
|
6
|
+
type Chapter = {
|
|
7
|
+
hash: string;
|
|
8
|
+
data: string[];
|
|
9
|
+
dataSaver: string[];
|
|
10
|
+
};
|
|
11
|
+
export {};
|