mgbuild 2.1.54 → 2.1.55
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/index.js +2 -2
- package/lib/mgs/ms/index.d.ts +0 -1
- package/lib/mgs/st/api/v1/index.d.ts +16 -0
- package/lib/mgs/st/api/v1/types.d.ts +117 -0
- package/lib/mgs/st/api/v2/index.d.ts +16 -0
- package/lib/mgs/st/api/v2/types.d.ts +109 -0
- package/lib/mgs/st/index.d.ts +0 -1
- package/package.json +1 -1
package/lib/mgs/ms/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIChapterResponse, APIMangaResponse, APIRecentsResponse } from "./types";
|
|
2
|
+
type SussyOptions = {
|
|
3
|
+
scanId: string;
|
|
4
|
+
origin: string;
|
|
5
|
+
code: string;
|
|
6
|
+
genId: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class SussyAPI {
|
|
9
|
+
private options;
|
|
10
|
+
constructor(options: SussyOptions);
|
|
11
|
+
request: <T>(endpoint: string) => Promise<T>;
|
|
12
|
+
recents(): Promise<APIRecentsResponse>;
|
|
13
|
+
manga(id: string): Promise<APIMangaResponse>;
|
|
14
|
+
chapter(chapterId: string | number): Promise<APIChapterResponse>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export interface APIRecentsResponse {
|
|
2
|
+
tempo: number;
|
|
3
|
+
pagina: number;
|
|
4
|
+
limite: number;
|
|
5
|
+
total: number;
|
|
6
|
+
totalPaginas: number;
|
|
7
|
+
resultados: Resultado[];
|
|
8
|
+
}
|
|
9
|
+
export interface APIMangaResponse {
|
|
10
|
+
resultado: {
|
|
11
|
+
obr_id: number;
|
|
12
|
+
obr_nome: string;
|
|
13
|
+
obr_outros_nomes: any[];
|
|
14
|
+
obr_descricao: string;
|
|
15
|
+
obr_imagem: string;
|
|
16
|
+
obr_imagem_fundo: string;
|
|
17
|
+
obr_visualizacoes: number;
|
|
18
|
+
obr_criada_em: string;
|
|
19
|
+
obr_atualizado_em: string;
|
|
20
|
+
obr_slug: string | null;
|
|
21
|
+
obr_mais_18: boolean;
|
|
22
|
+
scan_id: number;
|
|
23
|
+
leitura_status: any;
|
|
24
|
+
parceira: any;
|
|
25
|
+
formato: Formato;
|
|
26
|
+
status: Status;
|
|
27
|
+
tags: Tag[];
|
|
28
|
+
total_capitulos: number;
|
|
29
|
+
capitulos: Capitulo[];
|
|
30
|
+
rating: string;
|
|
31
|
+
total_rating: number;
|
|
32
|
+
genero: Genero;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface APIChapterResponse {
|
|
36
|
+
resultado: {
|
|
37
|
+
cap_id: number;
|
|
38
|
+
cap_numero: number;
|
|
39
|
+
cap_paginas: CapPagina[];
|
|
40
|
+
obra: Obra;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface CapPagina {
|
|
44
|
+
src: string;
|
|
45
|
+
numero: number;
|
|
46
|
+
path: string;
|
|
47
|
+
}
|
|
48
|
+
export interface Obra {
|
|
49
|
+
obr_id: number;
|
|
50
|
+
obr_nome: string;
|
|
51
|
+
scan_id: number;
|
|
52
|
+
}
|
|
53
|
+
export interface Capitulo {
|
|
54
|
+
cap_id: number;
|
|
55
|
+
cap_nome: string;
|
|
56
|
+
cap_numero: number;
|
|
57
|
+
cap_lancado_em: string;
|
|
58
|
+
cap_new: boolean;
|
|
59
|
+
cap_lido: boolean;
|
|
60
|
+
cap_disponivel: boolean;
|
|
61
|
+
cap_visualizacoes: number;
|
|
62
|
+
}
|
|
63
|
+
export interface Resultado {
|
|
64
|
+
obr_id: number;
|
|
65
|
+
obr_nome: string;
|
|
66
|
+
obr_outros_nomes: string[];
|
|
67
|
+
obr_descricao: string;
|
|
68
|
+
formt_id: number;
|
|
69
|
+
stt_id: number;
|
|
70
|
+
obr_status: string;
|
|
71
|
+
obr_imagem: string;
|
|
72
|
+
obr_imagem_fundo?: string;
|
|
73
|
+
obr_visualizacoes: number;
|
|
74
|
+
obr_criada_em: string;
|
|
75
|
+
obr_atualizado_em: string;
|
|
76
|
+
obr_slug?: string;
|
|
77
|
+
obr_mais_18: boolean;
|
|
78
|
+
obr_vip: boolean;
|
|
79
|
+
scan_id: number;
|
|
80
|
+
parceira_id: any;
|
|
81
|
+
formato: Formato;
|
|
82
|
+
status: Status;
|
|
83
|
+
tags: Tag[];
|
|
84
|
+
total_capitulos: number;
|
|
85
|
+
ultimos_capitulos: UltimosCapitulo[];
|
|
86
|
+
favorito: boolean;
|
|
87
|
+
total_lidos: number;
|
|
88
|
+
genero: Genero;
|
|
89
|
+
rating: number;
|
|
90
|
+
total_rating: number;
|
|
91
|
+
}
|
|
92
|
+
export interface Formato {
|
|
93
|
+
formt_id: number;
|
|
94
|
+
formt_nome: string;
|
|
95
|
+
}
|
|
96
|
+
export interface Status {
|
|
97
|
+
stt_id: number;
|
|
98
|
+
stt_nome: string;
|
|
99
|
+
stt_cor: string;
|
|
100
|
+
}
|
|
101
|
+
export interface Tag {
|
|
102
|
+
tag_id: number;
|
|
103
|
+
tag_nome: string;
|
|
104
|
+
}
|
|
105
|
+
export interface UltimosCapitulo {
|
|
106
|
+
cap_id: number;
|
|
107
|
+
cap_nome: string;
|
|
108
|
+
cap_numero: number;
|
|
109
|
+
cap_lancado_em: string;
|
|
110
|
+
cap_new: boolean;
|
|
111
|
+
cap_lido: boolean;
|
|
112
|
+
cap_disponivel: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface Genero {
|
|
115
|
+
gen_id: number;
|
|
116
|
+
gen_nome: string;
|
|
117
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { APIChapterResponse, APIMangaResponse, APIRecentsResponse } from "./types";
|
|
2
|
+
type SussyOptions = {
|
|
3
|
+
scanId: string;
|
|
4
|
+
origin: string;
|
|
5
|
+
code: string;
|
|
6
|
+
genId: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class SussyAPI {
|
|
9
|
+
private options;
|
|
10
|
+
constructor(options: SussyOptions);
|
|
11
|
+
request: <T>(endpoint: string) => Promise<T>;
|
|
12
|
+
recents(): Promise<APIRecentsResponse>;
|
|
13
|
+
manga(id: string): Promise<APIMangaResponse>;
|
|
14
|
+
chapter(chapterId: string | number): Promise<APIChapterResponse>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export interface APIRecentsResponse {
|
|
2
|
+
pagina: number;
|
|
3
|
+
limite: number;
|
|
4
|
+
total: number;
|
|
5
|
+
totalPaginas: number;
|
|
6
|
+
obras: Resultado[];
|
|
7
|
+
}
|
|
8
|
+
export interface APIMangaResponse {
|
|
9
|
+
obr_id: number;
|
|
10
|
+
obr_nome: string;
|
|
11
|
+
obr_outros_nomes: any[];
|
|
12
|
+
obr_descricao: string;
|
|
13
|
+
obr_imagem: string;
|
|
14
|
+
obr_imagem_fundo: string;
|
|
15
|
+
obr_visualizacoes: number;
|
|
16
|
+
obr_criada_em: string;
|
|
17
|
+
obr_atualizado_em: string;
|
|
18
|
+
obr_slug: string | null;
|
|
19
|
+
obr_mais_18: boolean;
|
|
20
|
+
scan_id: number;
|
|
21
|
+
leitura_status: any;
|
|
22
|
+
parceira: any;
|
|
23
|
+
formato: Formato;
|
|
24
|
+
status: Status;
|
|
25
|
+
tags: Tag[];
|
|
26
|
+
total_capitulos: number;
|
|
27
|
+
capitulos: Capitulo[];
|
|
28
|
+
rating: string;
|
|
29
|
+
total_rating: number;
|
|
30
|
+
genero: Genero;
|
|
31
|
+
}
|
|
32
|
+
export interface APIChapterResponse {
|
|
33
|
+
cap_id: number;
|
|
34
|
+
cap_numero: number;
|
|
35
|
+
cap_paginas: CapPagina[];
|
|
36
|
+
obra: Obra;
|
|
37
|
+
}
|
|
38
|
+
export interface CapPagina {
|
|
39
|
+
src: string;
|
|
40
|
+
numero: number;
|
|
41
|
+
path: string;
|
|
42
|
+
}
|
|
43
|
+
export interface Obra {
|
|
44
|
+
obr_id: number;
|
|
45
|
+
obr_nome: string;
|
|
46
|
+
scan_id: number;
|
|
47
|
+
}
|
|
48
|
+
export interface Capitulo {
|
|
49
|
+
cap_id: number;
|
|
50
|
+
cap_nome: string;
|
|
51
|
+
cap_numero: number;
|
|
52
|
+
cap_lancado_em: string;
|
|
53
|
+
cap_new: boolean;
|
|
54
|
+
cap_lido: boolean;
|
|
55
|
+
cap_disponivel: boolean;
|
|
56
|
+
cap_visualizacoes: number;
|
|
57
|
+
}
|
|
58
|
+
export interface Resultado {
|
|
59
|
+
obr_id: number;
|
|
60
|
+
obr_nome: string;
|
|
61
|
+
obr_outros_nomes: string[];
|
|
62
|
+
obr_descricao: string;
|
|
63
|
+
formt_id: number;
|
|
64
|
+
stt_id: number;
|
|
65
|
+
obr_status: string;
|
|
66
|
+
obr_imagem: string;
|
|
67
|
+
obr_imagem_fundo?: string;
|
|
68
|
+
obr_visualizacoes: number;
|
|
69
|
+
obr_criada_em: string;
|
|
70
|
+
obr_atualizado_em: string;
|
|
71
|
+
obr_slug?: string;
|
|
72
|
+
obr_mais_18: boolean;
|
|
73
|
+
obr_vip: boolean;
|
|
74
|
+
scan_id: number;
|
|
75
|
+
parceira_id: any;
|
|
76
|
+
formato: Formato;
|
|
77
|
+
status: Status;
|
|
78
|
+
tags: Tag[];
|
|
79
|
+
total_capitulos: number;
|
|
80
|
+
capitulos: UltimosCapitulo[];
|
|
81
|
+
favorito: boolean;
|
|
82
|
+
total_lidos: number;
|
|
83
|
+
genero: Genero;
|
|
84
|
+
rating: number;
|
|
85
|
+
total_rating: number;
|
|
86
|
+
}
|
|
87
|
+
export interface Formato {
|
|
88
|
+
formt_id: number;
|
|
89
|
+
formt_nome: string;
|
|
90
|
+
}
|
|
91
|
+
export interface Status {
|
|
92
|
+
stt_id: number;
|
|
93
|
+
stt_nome: string;
|
|
94
|
+
stt_cor: string;
|
|
95
|
+
}
|
|
96
|
+
export interface Tag {
|
|
97
|
+
tag_id: number;
|
|
98
|
+
tag_nome: string;
|
|
99
|
+
}
|
|
100
|
+
export interface UltimosCapitulo {
|
|
101
|
+
cap_id: number;
|
|
102
|
+
cap_nome: string;
|
|
103
|
+
cap_numero: number;
|
|
104
|
+
cap_criado_em: string;
|
|
105
|
+
}
|
|
106
|
+
export interface Genero {
|
|
107
|
+
gen_id: number;
|
|
108
|
+
gen_nome: string;
|
|
109
|
+
}
|
package/lib/mgs/st/index.d.ts
CHANGED