mgbuild 1.9.9 → 2.0.0

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.
Files changed (88) hide show
  1. package/lib/@types/index.d.ts +30 -30
  2. package/lib/data/tagMatcher.d.ts +7 -7
  3. package/lib/data/tagMatcherx.d.ts +7 -7
  4. package/lib/hqs/getHqAndChapters.d.ts +1 -1
  5. package/lib/hqs/getHqChapterById.d.ts +8 -8
  6. package/lib/hqs/getHqDetails.d.ts +1 -1
  7. package/lib/hqs/index.d.ts +5 -5
  8. package/lib/hqs/listHqIds.d.ts +5 -5
  9. package/lib/hqs/listUpdatedHqs.d.ts +6 -6
  10. package/lib/hqs/utils.d.ts +46 -46
  11. package/lib/index.d.ts +24 -24
  12. package/lib/index.js +3 -3
  13. package/lib/mgs/br/chapter.d.ts +4 -4
  14. package/lib/mgs/br/config.d.ts +6 -6
  15. package/lib/mgs/br/headers.d.ts +54 -54
  16. package/lib/mgs/br/index.d.ts +20 -20
  17. package/lib/mgs/br/manga.d.ts +3 -3
  18. package/lib/mgs/br/recent.d.ts +3 -3
  19. package/lib/mgs/fm/chapter.d.ts +4 -4
  20. package/lib/mgs/fm/config.d.ts +6 -6
  21. package/lib/mgs/fm/headers.d.ts +72 -72
  22. package/lib/mgs/fm/index.d.ts +17 -17
  23. package/lib/mgs/fm/manga.d.ts +3 -3
  24. package/lib/mgs/fm/recent.d.ts +3 -3
  25. package/lib/mgs/ma/chapter.d.ts +4 -4
  26. package/lib/mgs/ma/config.d.ts +6 -6
  27. package/lib/mgs/ma/headers.d.ts +48 -48
  28. package/lib/mgs/ma/index.d.ts +20 -20
  29. package/lib/mgs/ma/manga.d.ts +3 -3
  30. package/lib/mgs/ma/recent.d.ts +3 -3
  31. package/lib/mgs/md/core/predict.d.ts +3 -3
  32. package/lib/mgs/md/core/scraper.d.ts +36 -36
  33. package/lib/mgs/md/core/transform.d.ts +19 -19
  34. package/lib/mgs/md/core/utils.d.ts +39 -39
  35. package/lib/mgs/md/index.d.ts +27 -27
  36. package/lib/mgs/md/types/bulk-info.d.ts +112 -112
  37. package/lib/mgs/md/types/chapters.d.ts +59 -59
  38. package/lib/mgs/md/types/info.d.ts +82 -82
  39. package/lib/mgs/md/types/pages.d.ts +11 -11
  40. package/lib/mgs/md/types/recents.d.ts +134 -134
  41. package/lib/mgs/md/types/transform.d.ts +44 -44
  42. package/lib/mgs/ml/chapter.d.ts +3 -3
  43. package/lib/mgs/ml/config.d.ts +6 -6
  44. package/lib/mgs/ml/headers.d.ts +73 -75
  45. package/lib/mgs/ml/index.d.ts +18 -18
  46. package/lib/mgs/ml/manga.d.ts +3 -3
  47. package/lib/mgs/ml/recent.d.ts +3 -3
  48. package/lib/mgs/mo/chapter.d.ts +4 -4
  49. package/lib/mgs/mo/config.d.ts +6 -6
  50. package/lib/mgs/mo/headers.d.ts +73 -73
  51. package/lib/mgs/mo/index.d.ts +21 -21
  52. package/lib/mgs/mo/manga.d.ts +4 -4
  53. package/lib/mgs/mo/recent.d.ts +3 -3
  54. package/lib/mgs/rm/chapter.d.ts +4 -4
  55. package/lib/mgs/rm/config.d.ts +6 -6
  56. package/lib/mgs/rm/headers.d.ts +99 -99
  57. package/lib/mgs/rm/index.d.ts +24 -24
  58. package/lib/mgs/rm/manga.d.ts +3 -3
  59. package/lib/mgs/rm/recent.d.ts +3 -3
  60. package/lib/mgs/sc/chapter.d.ts +4 -4
  61. package/lib/mgs/sc/config.d.ts +6 -6
  62. package/lib/mgs/sc/headers.d.ts +70 -70
  63. package/lib/mgs/sc/index.d.ts +20 -20
  64. package/lib/mgs/sc/manga.d.ts +4 -4
  65. package/lib/mgs/sc/recent.d.ts +3 -3
  66. package/lib/mgs/sr/api/book.d.ts +101 -101
  67. package/lib/mgs/sr/api/chapter.d.ts +20 -20
  68. package/lib/mgs/sr/api/chapters.d.ts +12 -12
  69. package/lib/mgs/sr/api/index.d.ts +10 -10
  70. package/lib/mgs/sr/api/recents.d.ts +49 -49
  71. package/lib/mgs/sr/config.d.ts +6 -6
  72. package/lib/mgs/sr/headers.d.ts +65 -65
  73. package/lib/mgs/sr/index.d.ts +20 -20
  74. package/lib/mgs/sr/manga.d.ts +11 -11
  75. package/lib/mgs/sr/recent.d.ts +3 -3
  76. package/lib/mgs/st/chapter.d.ts +4 -4
  77. package/lib/mgs/st/config.d.ts +6 -6
  78. package/lib/mgs/st/headers.d.ts +70 -70
  79. package/lib/mgs/st/index.d.ts +21 -21
  80. package/lib/mgs/st/manga.d.ts +4 -4
  81. package/lib/mgs/st/recent.d.ts +58 -58
  82. package/lib/utils/graphQLRequest.d.ts +7 -7
  83. package/lib/utils/request.d.ts +1 -1
  84. package/lib/utils/tag.d.ts +3 -3
  85. package/lib/utils/tinyfetch.d.ts +12 -12
  86. package/lib/utils/tools.d.ts +29 -29
  87. package/lib/utils/type.d.ts +5 -5
  88. package/package.json +10 -10
@@ -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 {};
@@ -1,134 +1,134 @@
1
- export type GetRecentChaptersResponse = {
2
- result: string;
3
- response: string;
4
- data: Daum[];
5
- limit: number;
6
- offset: number;
7
- total: number;
8
- };
9
- type Daum = {
10
- id: string;
11
- type: string;
12
- attributes: Attributes;
13
- relationships: Relationship[];
14
- };
15
- type Attributes = {
16
- volume?: string;
17
- chapter: string;
18
- title?: string;
19
- translatedLanguage: string;
20
- externalUrl: any;
21
- publishAt: string;
22
- readableAt: string;
23
- createdAt: string;
24
- updatedAt: string;
25
- pages: number;
26
- version: number;
27
- };
28
- type Relationship = {
29
- id: string;
30
- type: string;
31
- attributes: Attributes2;
32
- };
33
- type Attributes2 = {
34
- name?: string;
35
- altNames?: AltName[];
36
- locked?: boolean;
37
- website?: string;
38
- ircServer: any;
39
- ircChannel: any;
40
- discord?: string;
41
- contactEmail?: string;
42
- description: any;
43
- twitter?: string;
44
- mangaUpdates?: string;
45
- focusedLanguages?: string[];
46
- official?: boolean;
47
- verified?: boolean;
48
- inactive?: boolean;
49
- publishDelay: any;
50
- createdAt?: string;
51
- updatedAt?: string;
52
- version: number;
53
- exLicensed?: boolean;
54
- title?: Title;
55
- altTitles?: AltTitle[];
56
- isLocked?: boolean;
57
- links?: Links;
58
- originalLanguage?: string;
59
- lastVolume?: string;
60
- lastChapter?: string;
61
- publicationDemographic?: string;
62
- status?: string;
63
- year?: number;
64
- contentRating?: "erotica" | "safe" | "suggestive";
65
- tags?: Tag[];
66
- state?: string;
67
- chapterNumbersResetOnNewVolume?: boolean;
68
- availableTranslatedLanguages?: string[];
69
- latestUploadedChapter?: string;
70
- username?: string;
71
- roles?: string[];
72
- };
73
- type AltName = {
74
- en: string;
75
- };
76
- type Title = {
77
- en: string;
78
- };
79
- type AltTitle = {
80
- ja?: string;
81
- en?: string;
82
- fr?: string;
83
- zh?: string;
84
- "zh-hk"?: string;
85
- ru?: string;
86
- ne?: string;
87
- ar?: string;
88
- th?: string;
89
- ko?: string;
90
- de?: string;
91
- it?: string;
92
- "zh-ro"?: string;
93
- vi?: string;
94
- es?: string;
95
- "pt-br"?: string;
96
- "ja-ro"?: string;
97
- "ko-ro"?: string;
98
- pt?: string;
99
- uk?: string;
100
- tr?: string;
101
- "es-la"?: string;
102
- tl?: string;
103
- pl?: string;
104
- };
105
- type Links = {
106
- al?: string;
107
- ap?: string;
108
- bw?: string;
109
- kt?: string;
110
- mu?: string;
111
- nu?: string;
112
- amz?: string;
113
- cdj?: string;
114
- ebj?: string;
115
- mal?: string;
116
- raw?: string;
117
- engtl?: string;
118
- };
119
- type Tag = {
120
- id: string;
121
- type: string;
122
- attributes: Attributes3;
123
- relationships: any[];
124
- };
125
- type Attributes3 = {
126
- name: Name;
127
- description: object;
128
- group: string;
129
- version: number;
130
- };
131
- type Name = {
132
- en: string;
133
- };
134
- export {};
1
+ export type GetRecentChaptersResponse = {
2
+ result: string;
3
+ response: string;
4
+ data: Daum[];
5
+ limit: number;
6
+ offset: number;
7
+ total: number;
8
+ };
9
+ type Daum = {
10
+ id: string;
11
+ type: string;
12
+ attributes: Attributes;
13
+ relationships: Relationship[];
14
+ };
15
+ type Attributes = {
16
+ volume?: string;
17
+ chapter: string;
18
+ title?: string;
19
+ translatedLanguage: string;
20
+ externalUrl: any;
21
+ publishAt: string;
22
+ readableAt: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ pages: number;
26
+ version: number;
27
+ };
28
+ type Relationship = {
29
+ id: string;
30
+ type: string;
31
+ attributes: Attributes2;
32
+ };
33
+ type Attributes2 = {
34
+ name?: string;
35
+ altNames?: AltName[];
36
+ locked?: boolean;
37
+ website?: string;
38
+ ircServer: any;
39
+ ircChannel: any;
40
+ discord?: string;
41
+ contactEmail?: string;
42
+ description: any;
43
+ twitter?: string;
44
+ mangaUpdates?: string;
45
+ focusedLanguages?: string[];
46
+ official?: boolean;
47
+ verified?: boolean;
48
+ inactive?: boolean;
49
+ publishDelay: any;
50
+ createdAt?: string;
51
+ updatedAt?: string;
52
+ version: number;
53
+ exLicensed?: boolean;
54
+ title?: Title;
55
+ altTitles?: AltTitle[];
56
+ isLocked?: boolean;
57
+ links?: Links;
58
+ originalLanguage?: string;
59
+ lastVolume?: string;
60
+ lastChapter?: string;
61
+ publicationDemographic?: string;
62
+ status?: string;
63
+ year?: number;
64
+ contentRating?: "erotica" | "safe" | "suggestive";
65
+ tags?: Tag[];
66
+ state?: string;
67
+ chapterNumbersResetOnNewVolume?: boolean;
68
+ availableTranslatedLanguages?: string[];
69
+ latestUploadedChapter?: string;
70
+ username?: string;
71
+ roles?: string[];
72
+ };
73
+ type AltName = {
74
+ en: string;
75
+ };
76
+ type Title = {
77
+ en: string;
78
+ };
79
+ type AltTitle = {
80
+ ja?: string;
81
+ en?: string;
82
+ fr?: string;
83
+ zh?: string;
84
+ "zh-hk"?: string;
85
+ ru?: string;
86
+ ne?: string;
87
+ ar?: string;
88
+ th?: string;
89
+ ko?: string;
90
+ de?: string;
91
+ it?: string;
92
+ "zh-ro"?: string;
93
+ vi?: string;
94
+ es?: string;
95
+ "pt-br"?: string;
96
+ "ja-ro"?: string;
97
+ "ko-ro"?: string;
98
+ pt?: string;
99
+ uk?: string;
100
+ tr?: string;
101
+ "es-la"?: string;
102
+ tl?: string;
103
+ pl?: string;
104
+ };
105
+ type Links = {
106
+ al?: string;
107
+ ap?: string;
108
+ bw?: string;
109
+ kt?: string;
110
+ mu?: string;
111
+ nu?: string;
112
+ amz?: string;
113
+ cdj?: string;
114
+ ebj?: string;
115
+ mal?: string;
116
+ raw?: string;
117
+ engtl?: string;
118
+ };
119
+ type Tag = {
120
+ id: string;
121
+ type: string;
122
+ attributes: Attributes3;
123
+ relationships: any[];
124
+ };
125
+ type Attributes3 = {
126
+ name: Name;
127
+ description: object;
128
+ group: string;
129
+ version: number;
130
+ };
131
+ type Name = {
132
+ en: string;
133
+ };
134
+ export {};
@@ -1,44 +1,44 @@
1
- import { MainLanguages } from "../../../utils/type";
2
- export type Chapter = {
3
- id: string;
4
- number: number;
5
- title: string;
6
- geek: string;
7
- };
8
- export type Manga = {
9
- id: number;
10
- title: string;
11
- slug: string;
12
- geek: string;
13
- description: string;
14
- cover: string;
15
- tags: string[];
16
- available: boolean;
17
- alternative_title?: string;
18
- chapters: Chapter[];
19
- chapter_code?: string;
20
- };
21
- export type Recent = {
22
- code: string;
23
- chapters: number[];
24
- title: string;
25
- cover?: string;
26
- };
27
- export type MangaCoverInfo = {
28
- id: string;
29
- cover: string;
30
- coverPath: string;
31
- };
32
- export type MangaInfo = {
33
- id: string;
34
- title: string;
35
- slug: string;
36
- geek: string;
37
- description?: string;
38
- cover: string;
39
- tags: string[];
40
- available: boolean;
41
- language: MainLanguages;
42
- alternative_title?: string;
43
- chapters?: Chapter[];
44
- };
1
+ import { MainLanguages } from "../../../utils/type";
2
+ export type Chapter = {
3
+ id: string;
4
+ number: number;
5
+ title: string;
6
+ geek: string;
7
+ };
8
+ export type Manga = {
9
+ id: number;
10
+ title: string;
11
+ slug: string;
12
+ geek: string;
13
+ description: string;
14
+ cover: string;
15
+ tags: string[];
16
+ available: boolean;
17
+ alternative_title?: string;
18
+ chapters: Chapter[];
19
+ chapter_code?: string;
20
+ };
21
+ export type Recent = {
22
+ code: string;
23
+ chapters: number[];
24
+ title: string;
25
+ cover?: string;
26
+ };
27
+ export type MangaCoverInfo = {
28
+ id: string;
29
+ cover: string;
30
+ coverPath: string;
31
+ };
32
+ export type MangaInfo = {
33
+ id: string;
34
+ title: string;
35
+ slug: string;
36
+ geek: string;
37
+ description?: string;
38
+ cover: string;
39
+ tags: string[];
40
+ available: boolean;
41
+ language: MainLanguages;
42
+ alternative_title?: string;
43
+ chapters?: Chapter[];
44
+ };
@@ -1,3 +1,3 @@
1
- export declare function getChapter(content: string): Promise<{
2
- pages: string[];
3
- } | undefined>;
1
+ export declare function getChapter(content: string): Promise<{
2
+ pages: string[];
3
+ } | undefined>;
@@ -1,6 +1,6 @@
1
- declare const _default: {
2
- manga: {
3
- SCRAPE_BASE_URL: string;
4
- };
5
- };
6
- export default _default;
1
+ declare const _default: {
2
+ manga: {
3
+ SCRAPE_BASE_URL: string;
4
+ };
5
+ };
6
+ export default _default;