mgbuild 1.8.5 → 1.8.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/lib/@types/index.d.ts +4 -4
- package/lib/index.js +18 -1
- package/lib/mgs/br/index.d.ts +2 -2
- package/lib/mgs/ma/index.d.ts +2 -2
- package/lib/mgs/md/core/scraper.d.ts +3 -3
- package/lib/mgs/md/core/utils.d.ts +2 -2
- package/lib/mgs/md/index.d.ts +1 -1
- package/lib/mgs/md/types/bulk-info.d.ts +12 -12
- package/lib/mgs/md/types/chapters.d.ts +5 -5
- package/lib/mgs/md/types/info.d.ts +12 -12
- package/lib/mgs/md/types/pages.d.ts +2 -2
- package/lib/mgs/md/types/recents.d.ts +12 -12
- package/lib/mgs/md/types/transform.d.ts +5 -5
- package/lib/mgs/mo/index.d.ts +2 -2
- package/lib/mgs/rm/index.d.ts +2 -2
- package/lib/mgs/sr/api/book.d.ts +14 -14
- package/lib/mgs/sr/api/chapter.d.ts +3 -3
- package/lib/mgs/sr/api/chapters.d.ts +1 -1
- package/lib/mgs/sr/api/index.d.ts +2 -2
- package/lib/mgs/sr/api/recents.d.ts +8 -8
- package/lib/mgs/sr/index.d.ts +2 -2
- package/lib/utils/type.d.ts +3 -3
- package/package.json +1 -1
package/lib/mgs/br/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
type Log = {
|
|
1
|
+
declare type Log = {
|
|
2
2
|
type: "ping" | "error";
|
|
3
3
|
method: string;
|
|
4
4
|
url: string;
|
|
5
5
|
time: string;
|
|
6
6
|
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
7
|
+
declare type Logger = (log: Log) => any;
|
|
8
8
|
export declare class Scraper {
|
|
9
9
|
private logger?;
|
|
10
10
|
constructor(logger?: Logger);
|
package/lib/mgs/ma/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
type Log = {
|
|
1
|
+
declare type Log = {
|
|
2
2
|
type: "ping" | "error";
|
|
3
3
|
method: string;
|
|
4
4
|
url: string;
|
|
5
5
|
time: string;
|
|
6
6
|
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
7
|
+
declare type Logger = (log: Log) => any;
|
|
8
8
|
export declare class Scraper {
|
|
9
9
|
private logger?;
|
|
10
10
|
constructor(logger?: Logger);
|
|
@@ -4,17 +4,17 @@ import type { GetMangaChaptersResponse } from "../types/chapters";
|
|
|
4
4
|
import type { GetRecentChaptersResponse } from "../types/recents";
|
|
5
5
|
import type { GetChapterPagesResponse } from "../types/pages";
|
|
6
6
|
import { Languages, MainLanguages } from "../../../utils/type";
|
|
7
|
-
export type Log = {
|
|
7
|
+
export declare type Log = {
|
|
8
8
|
type: "ping" | "error";
|
|
9
9
|
method: string;
|
|
10
10
|
url: string;
|
|
11
11
|
time: string;
|
|
12
12
|
};
|
|
13
|
-
export type ChapterConfig = {
|
|
13
|
+
export declare type ChapterConfig = {
|
|
14
14
|
page?: number;
|
|
15
15
|
order?: "asc" | "desc";
|
|
16
16
|
};
|
|
17
|
-
export type Logger = (log: Log) => any;
|
|
17
|
+
export declare type Logger = (log: Log) => any;
|
|
18
18
|
export declare class BruteScraper {
|
|
19
19
|
private logger?;
|
|
20
20
|
constructor(logger?: Logger);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LanguageItem, Languages } from "../../../utils/type";
|
|
2
2
|
export declare const CHAPTERS_PER_PAGE = 96;
|
|
3
3
|
export declare function getPage(targetChapterPage: number): number;
|
|
4
|
-
export type ChapterEndpointConfig = {
|
|
4
|
+
export declare type ChapterEndpointConfig = {
|
|
5
5
|
number: number;
|
|
6
6
|
language: Languages;
|
|
7
7
|
};
|
|
8
|
-
export type ChaptersEndpointConfig = {
|
|
8
|
+
export declare type ChaptersEndpointConfig = {
|
|
9
9
|
order: "asc" | "desc";
|
|
10
10
|
language: Languages;
|
|
11
11
|
page: number;
|
package/lib/mgs/md/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type GetBulkInfoResponse = {
|
|
1
|
+
export declare type GetBulkInfoResponse = {
|
|
2
2
|
result: string;
|
|
3
3
|
response: string;
|
|
4
4
|
data: Data[];
|
|
@@ -6,13 +6,13 @@ export type GetBulkInfoResponse = {
|
|
|
6
6
|
offset: number;
|
|
7
7
|
total: number;
|
|
8
8
|
};
|
|
9
|
-
type Data = {
|
|
9
|
+
declare type Data = {
|
|
10
10
|
id: string;
|
|
11
11
|
type: string;
|
|
12
12
|
attributes: Attributes;
|
|
13
13
|
relationships: Relationship[];
|
|
14
14
|
};
|
|
15
|
-
type Attributes = {
|
|
15
|
+
declare type Attributes = {
|
|
16
16
|
title: Title;
|
|
17
17
|
altTitles: AltTitle[];
|
|
18
18
|
description: Description;
|
|
@@ -34,10 +34,10 @@ type Attributes = {
|
|
|
34
34
|
availableTranslatedLanguages: string[];
|
|
35
35
|
latestUploadedChapter: string;
|
|
36
36
|
};
|
|
37
|
-
type Title = {
|
|
37
|
+
declare type Title = {
|
|
38
38
|
en: string;
|
|
39
39
|
};
|
|
40
|
-
type AltTitle = {
|
|
40
|
+
declare type AltTitle = {
|
|
41
41
|
en?: string;
|
|
42
42
|
"ko-ro"?: string;
|
|
43
43
|
ru?: string;
|
|
@@ -57,7 +57,7 @@ type AltTitle = {
|
|
|
57
57
|
sl?: string;
|
|
58
58
|
"ja-ro"?: string;
|
|
59
59
|
};
|
|
60
|
-
type Description = {
|
|
60
|
+
declare type Description = {
|
|
61
61
|
en: string;
|
|
62
62
|
pt?: string;
|
|
63
63
|
"es-la"?: string;
|
|
@@ -65,7 +65,7 @@ type Description = {
|
|
|
65
65
|
fr?: string;
|
|
66
66
|
ru?: string;
|
|
67
67
|
};
|
|
68
|
-
type Links = {
|
|
68
|
+
declare type Links = {
|
|
69
69
|
al: string;
|
|
70
70
|
ap: string;
|
|
71
71
|
bw?: string;
|
|
@@ -79,28 +79,28 @@ type Links = {
|
|
|
79
79
|
raw?: string;
|
|
80
80
|
engtl?: string;
|
|
81
81
|
};
|
|
82
|
-
type Tag = {
|
|
82
|
+
declare type Tag = {
|
|
83
83
|
id: string;
|
|
84
84
|
type: string;
|
|
85
85
|
attributes: Attributes2;
|
|
86
86
|
relationships: any[];
|
|
87
87
|
};
|
|
88
|
-
type Attributes2 = {
|
|
88
|
+
declare type Attributes2 = {
|
|
89
89
|
name: Name;
|
|
90
90
|
description: object;
|
|
91
91
|
group: string;
|
|
92
92
|
version: number;
|
|
93
93
|
};
|
|
94
|
-
type Name = {
|
|
94
|
+
declare type Name = {
|
|
95
95
|
en: string;
|
|
96
96
|
};
|
|
97
|
-
type Relationship = {
|
|
97
|
+
declare type Relationship = {
|
|
98
98
|
id: string;
|
|
99
99
|
type: string;
|
|
100
100
|
attributes?: Attributes3;
|
|
101
101
|
related?: string;
|
|
102
102
|
};
|
|
103
|
-
type Attributes3 = {
|
|
103
|
+
declare type Attributes3 = {
|
|
104
104
|
description: string;
|
|
105
105
|
volume: string;
|
|
106
106
|
fileName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type GetMangaChaptersResponse = {
|
|
1
|
+
export declare type GetMangaChaptersResponse = {
|
|
2
2
|
result: string;
|
|
3
3
|
response: string;
|
|
4
4
|
data: Data[];
|
|
@@ -8,13 +8,13 @@ export type GetMangaChaptersResponse = {
|
|
|
8
8
|
last_page: number;
|
|
9
9
|
invalid_page: boolean;
|
|
10
10
|
};
|
|
11
|
-
type Data = {
|
|
11
|
+
declare type Data = {
|
|
12
12
|
id: string;
|
|
13
13
|
type: string;
|
|
14
14
|
attributes: Attributes;
|
|
15
15
|
relationships: Relationship[];
|
|
16
16
|
};
|
|
17
|
-
type Attributes = {
|
|
17
|
+
declare type Attributes = {
|
|
18
18
|
volume?: string;
|
|
19
19
|
chapter: string;
|
|
20
20
|
title?: string;
|
|
@@ -27,12 +27,12 @@ type Attributes = {
|
|
|
27
27
|
pages: number;
|
|
28
28
|
version: number;
|
|
29
29
|
};
|
|
30
|
-
type Relationship = {
|
|
30
|
+
declare type Relationship = {
|
|
31
31
|
id: string;
|
|
32
32
|
type: string;
|
|
33
33
|
attributes?: Attributes2;
|
|
34
34
|
};
|
|
35
|
-
type Attributes2 = {
|
|
35
|
+
declare type Attributes2 = {
|
|
36
36
|
username?: string;
|
|
37
37
|
roles?: string[];
|
|
38
38
|
version: number;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { LanguageItem } from "../../../utils/type";
|
|
2
|
-
export type GetMangaInfoResponse = {
|
|
2
|
+
export declare type GetMangaInfoResponse = {
|
|
3
3
|
result: string;
|
|
4
4
|
response: string;
|
|
5
5
|
data: Data;
|
|
6
6
|
};
|
|
7
|
-
export type ListMangaResponse = {
|
|
7
|
+
export declare type ListMangaResponse = {
|
|
8
8
|
result: string;
|
|
9
9
|
response: string;
|
|
10
10
|
data: Data[];
|
|
11
11
|
};
|
|
12
|
-
type Data = {
|
|
12
|
+
declare type Data = {
|
|
13
13
|
id: string;
|
|
14
14
|
type: string;
|
|
15
15
|
attributes: Attributes;
|
|
16
16
|
relationships: Relationship[];
|
|
17
17
|
};
|
|
18
|
-
type Attributes = {
|
|
18
|
+
declare type Attributes = {
|
|
19
19
|
title: Title;
|
|
20
20
|
altTitles: AltTitle[];
|
|
21
21
|
description: Description;
|
|
@@ -37,10 +37,10 @@ type Attributes = {
|
|
|
37
37
|
availableTranslatedLanguages: string[];
|
|
38
38
|
latestUploadedChapter: string;
|
|
39
39
|
};
|
|
40
|
-
type Title = LanguageItem;
|
|
41
|
-
type AltTitle = LanguageItem;
|
|
42
|
-
type Description = LanguageItem;
|
|
43
|
-
type Links = {
|
|
40
|
+
declare type Title = LanguageItem;
|
|
41
|
+
declare type AltTitle = LanguageItem;
|
|
42
|
+
declare type Description = LanguageItem;
|
|
43
|
+
declare type Links = {
|
|
44
44
|
al: string;
|
|
45
45
|
ap: string;
|
|
46
46
|
bw: string;
|
|
@@ -52,22 +52,22 @@ type Links = {
|
|
|
52
52
|
raw: string;
|
|
53
53
|
engtl: string;
|
|
54
54
|
};
|
|
55
|
-
type Tag = {
|
|
55
|
+
declare type Tag = {
|
|
56
56
|
id: string;
|
|
57
57
|
type: string;
|
|
58
58
|
attributes: Attributes2;
|
|
59
59
|
relationships: any[];
|
|
60
60
|
};
|
|
61
|
-
type Attributes2 = {
|
|
61
|
+
declare type Attributes2 = {
|
|
62
62
|
name: Name;
|
|
63
63
|
description: object;
|
|
64
64
|
group: string;
|
|
65
65
|
version: number;
|
|
66
66
|
};
|
|
67
|
-
type Name = {
|
|
67
|
+
declare type Name = {
|
|
68
68
|
en: string;
|
|
69
69
|
};
|
|
70
|
-
type Relationship = {
|
|
70
|
+
declare type Relationship = {
|
|
71
71
|
id: string;
|
|
72
72
|
type: string;
|
|
73
73
|
related?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type GetRecentChaptersResponse = {
|
|
1
|
+
export declare type GetRecentChaptersResponse = {
|
|
2
2
|
result: string;
|
|
3
3
|
response: string;
|
|
4
4
|
data: Daum[];
|
|
@@ -6,13 +6,13 @@ export type GetRecentChaptersResponse = {
|
|
|
6
6
|
offset: number;
|
|
7
7
|
total: number;
|
|
8
8
|
};
|
|
9
|
-
type Daum = {
|
|
9
|
+
declare type Daum = {
|
|
10
10
|
id: string;
|
|
11
11
|
type: string;
|
|
12
12
|
attributes: Attributes;
|
|
13
13
|
relationships: Relationship[];
|
|
14
14
|
};
|
|
15
|
-
type Attributes = {
|
|
15
|
+
declare type Attributes = {
|
|
16
16
|
volume?: string;
|
|
17
17
|
chapter: string;
|
|
18
18
|
title?: string;
|
|
@@ -25,12 +25,12 @@ type Attributes = {
|
|
|
25
25
|
pages: number;
|
|
26
26
|
version: number;
|
|
27
27
|
};
|
|
28
|
-
type Relationship = {
|
|
28
|
+
declare type Relationship = {
|
|
29
29
|
id: string;
|
|
30
30
|
type: string;
|
|
31
31
|
attributes: Attributes2;
|
|
32
32
|
};
|
|
33
|
-
type Attributes2 = {
|
|
33
|
+
declare type Attributes2 = {
|
|
34
34
|
name?: string;
|
|
35
35
|
altNames?: AltName[];
|
|
36
36
|
locked?: boolean;
|
|
@@ -70,13 +70,13 @@ type Attributes2 = {
|
|
|
70
70
|
username?: string;
|
|
71
71
|
roles?: string[];
|
|
72
72
|
};
|
|
73
|
-
type AltName = {
|
|
73
|
+
declare type AltName = {
|
|
74
74
|
en: string;
|
|
75
75
|
};
|
|
76
|
-
type Title = {
|
|
76
|
+
declare type Title = {
|
|
77
77
|
en: string;
|
|
78
78
|
};
|
|
79
|
-
type AltTitle = {
|
|
79
|
+
declare type AltTitle = {
|
|
80
80
|
ja?: string;
|
|
81
81
|
en?: string;
|
|
82
82
|
fr?: string;
|
|
@@ -102,7 +102,7 @@ type AltTitle = {
|
|
|
102
102
|
tl?: string;
|
|
103
103
|
pl?: string;
|
|
104
104
|
};
|
|
105
|
-
type Links = {
|
|
105
|
+
declare type Links = {
|
|
106
106
|
al?: string;
|
|
107
107
|
ap?: string;
|
|
108
108
|
bw?: string;
|
|
@@ -116,19 +116,19 @@ type Links = {
|
|
|
116
116
|
raw?: string;
|
|
117
117
|
engtl?: string;
|
|
118
118
|
};
|
|
119
|
-
type Tag = {
|
|
119
|
+
declare type Tag = {
|
|
120
120
|
id: string;
|
|
121
121
|
type: string;
|
|
122
122
|
attributes: Attributes3;
|
|
123
123
|
relationships: any[];
|
|
124
124
|
};
|
|
125
|
-
type Attributes3 = {
|
|
125
|
+
declare type Attributes3 = {
|
|
126
126
|
name: Name;
|
|
127
127
|
description: object;
|
|
128
128
|
group: string;
|
|
129
129
|
version: number;
|
|
130
130
|
};
|
|
131
|
-
type Name = {
|
|
131
|
+
declare type Name = {
|
|
132
132
|
en: string;
|
|
133
133
|
};
|
|
134
134
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MainLanguages } from "../../../utils/type";
|
|
2
|
-
export type Chapter = {
|
|
2
|
+
export declare type Chapter = {
|
|
3
3
|
id: string;
|
|
4
4
|
number: number;
|
|
5
5
|
title: string;
|
|
6
6
|
geek: string;
|
|
7
7
|
};
|
|
8
|
-
export type Manga = {
|
|
8
|
+
export declare type Manga = {
|
|
9
9
|
id: number;
|
|
10
10
|
title: string;
|
|
11
11
|
slug: string;
|
|
@@ -18,18 +18,18 @@ export type Manga = {
|
|
|
18
18
|
chapters: Chapter[];
|
|
19
19
|
chapter_code?: string;
|
|
20
20
|
};
|
|
21
|
-
export type Recent = {
|
|
21
|
+
export declare type Recent = {
|
|
22
22
|
code: string;
|
|
23
23
|
chapters: number[];
|
|
24
24
|
title: string;
|
|
25
25
|
cover?: string;
|
|
26
26
|
};
|
|
27
|
-
export type MangaCoverInfo = {
|
|
27
|
+
export declare type MangaCoverInfo = {
|
|
28
28
|
id: string;
|
|
29
29
|
cover: string;
|
|
30
30
|
coverPath: string;
|
|
31
31
|
};
|
|
32
|
-
export type MangaInfo = {
|
|
32
|
+
export declare type MangaInfo = {
|
|
33
33
|
id: string;
|
|
34
34
|
title: string;
|
|
35
35
|
slug: string;
|
package/lib/mgs/mo/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
type Log = {
|
|
1
|
+
declare type Log = {
|
|
2
2
|
type: "ping" | "error";
|
|
3
3
|
method: string;
|
|
4
4
|
url: string;
|
|
5
5
|
time: string;
|
|
6
6
|
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
7
|
+
declare type Logger = (log: Log) => any;
|
|
8
8
|
export declare class Scraper {
|
|
9
9
|
private logger?;
|
|
10
10
|
constructor(logger?: Logger);
|
package/lib/mgs/rm/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
type Log = {
|
|
1
|
+
declare type Log = {
|
|
2
2
|
type: "ping" | "error";
|
|
3
3
|
method: string;
|
|
4
4
|
url: string;
|
|
5
5
|
time: string;
|
|
6
6
|
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
7
|
+
declare type Logger = (log: Log) => any;
|
|
8
8
|
export declare class Scraper {
|
|
9
9
|
private logger?;
|
|
10
10
|
constructor(logger?: Logger);
|
package/lib/mgs/sr/api/book.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Book = {
|
|
1
|
+
export declare type Book = {
|
|
2
2
|
book_name_original: string;
|
|
3
3
|
book_name: string;
|
|
4
4
|
book_image: string;
|
|
@@ -28,61 +28,61 @@ export type Book = {
|
|
|
28
28
|
events: any;
|
|
29
29
|
cached: boolean;
|
|
30
30
|
};
|
|
31
|
-
export type Scan = {
|
|
31
|
+
export declare type Scan = {
|
|
32
32
|
scan_id: number;
|
|
33
33
|
scan_name: string;
|
|
34
34
|
};
|
|
35
|
-
export type Genre = {
|
|
35
|
+
export declare type Genre = {
|
|
36
36
|
genre_name: string;
|
|
37
37
|
};
|
|
38
|
-
export type Author = {
|
|
38
|
+
export declare type Author = {
|
|
39
39
|
author_name: string;
|
|
40
40
|
author_id: number;
|
|
41
41
|
};
|
|
42
|
-
export type BookTag = {
|
|
42
|
+
export declare type BookTag = {
|
|
43
43
|
tag: Tag;
|
|
44
44
|
};
|
|
45
|
-
export type Tag = {
|
|
45
|
+
export declare type Tag = {
|
|
46
46
|
tag_name: string;
|
|
47
47
|
tag_id: number;
|
|
48
48
|
tag_name_ptBR: string;
|
|
49
49
|
tag_nsfw: boolean;
|
|
50
50
|
};
|
|
51
|
-
export type BookCategory = {
|
|
51
|
+
export declare type BookCategory = {
|
|
52
52
|
categories: Categories;
|
|
53
53
|
};
|
|
54
|
-
export type Categories = {
|
|
54
|
+
export declare type Categories = {
|
|
55
55
|
cat_name: string;
|
|
56
56
|
cat_id: number;
|
|
57
57
|
cat_name_ptBR: string;
|
|
58
58
|
cat_nsfw: boolean;
|
|
59
59
|
};
|
|
60
|
-
export type BookTemp = {
|
|
60
|
+
export declare type BookTemp = {
|
|
61
61
|
bt_id: number;
|
|
62
62
|
bt_season: number;
|
|
63
63
|
};
|
|
64
|
-
export type BookInfo = {
|
|
64
|
+
export declare type BookInfo = {
|
|
65
65
|
book_info_id: number;
|
|
66
66
|
book_info_book_id: number;
|
|
67
67
|
book_info_content: BookInfoContent;
|
|
68
68
|
book_info_date_created: string;
|
|
69
69
|
book_info_date_updated: string;
|
|
70
70
|
};
|
|
71
|
-
export type BookInfoContent = {
|
|
71
|
+
export declare type BookInfoContent = {
|
|
72
72
|
type: string;
|
|
73
73
|
mangadexId?: string;
|
|
74
74
|
avaiablesProviders?: AvaiablesProviders;
|
|
75
75
|
chapters?: Chapter[];
|
|
76
76
|
serielazationsManga?: SerielazationsManga[];
|
|
77
77
|
};
|
|
78
|
-
export type AvaiablesProviders = {
|
|
78
|
+
export declare type AvaiablesProviders = {
|
|
79
79
|
al: string;
|
|
80
80
|
mu: string;
|
|
81
81
|
mal: string;
|
|
82
82
|
raw: string;
|
|
83
83
|
engtl: string;
|
|
84
84
|
};
|
|
85
|
-
export type Chapter = {
|
|
85
|
+
export declare type Chapter = {
|
|
86
86
|
id: string;
|
|
87
87
|
src?: string;
|
|
88
88
|
name: string;
|
|
@@ -94,7 +94,7 @@ export type Chapter = {
|
|
|
94
94
|
scanlator?: string;
|
|
95
95
|
externalUrl: any;
|
|
96
96
|
};
|
|
97
|
-
export type SerielazationsManga = {
|
|
97
|
+
export declare type SerielazationsManga = {
|
|
98
98
|
url: string;
|
|
99
99
|
name: string;
|
|
100
100
|
type?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PageDetails = {
|
|
1
|
+
export declare type PageDetails = {
|
|
2
2
|
btc_id: number;
|
|
3
3
|
btc_cap: number;
|
|
4
4
|
btc_scan_id: number;
|
|
@@ -8,11 +8,11 @@ export type PageDetails = {
|
|
|
8
8
|
book_temp_caps_colab: any[];
|
|
9
9
|
book_temp_cap_unit: BookTempCapUnit[];
|
|
10
10
|
};
|
|
11
|
-
export type Scan = {
|
|
11
|
+
export declare type Scan = {
|
|
12
12
|
scan_name: string;
|
|
13
13
|
scan_id: number;
|
|
14
14
|
};
|
|
15
|
-
export type BookTempCapUnit = {
|
|
15
|
+
export declare type BookTempCapUnit = {
|
|
16
16
|
btcu_content?: string;
|
|
17
17
|
btcu_image: string;
|
|
18
18
|
btcu_provider_host: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Book } from "./book";
|
|
2
|
+
import type { RecentBook } from "./recents";
|
|
3
3
|
export declare class SlimeApi {
|
|
4
4
|
static getBook(bookId: string | number): Promise<Book>;
|
|
5
5
|
static getBookChapters(bookId: string | number): Promise<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type RecentBook = {
|
|
1
|
+
export declare type RecentBook = {
|
|
2
2
|
book_name_original: string;
|
|
3
3
|
book_name: string;
|
|
4
4
|
book_nsfw: number;
|
|
@@ -16,33 +16,33 @@ export type RecentBook = {
|
|
|
16
16
|
book_name_alternatives: string;
|
|
17
17
|
nsfw: boolean;
|
|
18
18
|
};
|
|
19
|
-
export type BookTag = {
|
|
19
|
+
export declare type BookTag = {
|
|
20
20
|
tag: Tag;
|
|
21
21
|
};
|
|
22
|
-
export type Tag = {
|
|
22
|
+
export declare type Tag = {
|
|
23
23
|
tag_nsfw: boolean;
|
|
24
24
|
tag_name: string;
|
|
25
25
|
tag_name_ptBR: string;
|
|
26
26
|
};
|
|
27
|
-
export type BookCategory = {
|
|
27
|
+
export declare type BookCategory = {
|
|
28
28
|
categories: Categories;
|
|
29
29
|
};
|
|
30
|
-
export type Categories = {
|
|
30
|
+
export declare type Categories = {
|
|
31
31
|
cat_name: string;
|
|
32
32
|
cat_nsfw: boolean;
|
|
33
33
|
cat_name_ptBR: string;
|
|
34
34
|
};
|
|
35
|
-
export type BookTemp = {
|
|
35
|
+
export declare type BookTemp = {
|
|
36
36
|
book_temp_caps: BookTempCap[];
|
|
37
37
|
};
|
|
38
|
-
export type BookTempCap = {
|
|
38
|
+
export declare type BookTempCap = {
|
|
39
39
|
btc_cap: number;
|
|
40
40
|
btc_date_created: string;
|
|
41
41
|
btc_date_updated: string;
|
|
42
42
|
btc_name: string;
|
|
43
43
|
scan: Scan;
|
|
44
44
|
};
|
|
45
|
-
export type Scan = {
|
|
45
|
+
export declare type Scan = {
|
|
46
46
|
scan_auto_update: boolean;
|
|
47
47
|
scan_id: number;
|
|
48
48
|
scan_name: string;
|
package/lib/mgs/sr/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
type Log = {
|
|
1
|
+
declare type Log = {
|
|
2
2
|
type: "ping" | "error";
|
|
3
3
|
method: string;
|
|
4
4
|
url: string;
|
|
5
5
|
time: string;
|
|
6
6
|
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
7
|
+
declare type Logger = (log: Log) => any;
|
|
8
8
|
export declare class Scraper {
|
|
9
9
|
private logger?;
|
|
10
10
|
constructor(logger?: Logger);
|
package/lib/utils/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type MainLanguages = "en" | "pt" | "es";
|
|
2
|
-
export type Languages = "en" | "pt" | "pt-br" | "es" | "es-la" | "ja-ro";
|
|
3
|
-
export type LanguageItem = {
|
|
1
|
+
export declare type MainLanguages = "en" | "pt" | "es";
|
|
2
|
+
export declare type Languages = "en" | "pt" | "pt-br" | "es" | "es-la" | "ja-ro";
|
|
3
|
+
export declare type LanguageItem = {
|
|
4
4
|
[key in Languages]?: string;
|
|
5
5
|
};
|