anixapi 0.2.1
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/LICENSE +339 -0
- package/README.md +165 -0
- package/dist/api/auth.d.ts +129 -0
- package/dist/api/auth.js +156 -0
- package/dist/api/bookmarks/export.d.ts +19 -0
- package/dist/api/bookmarks/export.js +24 -0
- package/dist/api/bookmarks/import.d.ts +29 -0
- package/dist/api/bookmarks/import.js +36 -0
- package/dist/api/bookmarks/index.d.ts +2 -0
- package/dist/api/bookmarks/index.js +18 -0
- package/dist/api/channel/article.d.ts +119 -0
- package/dist/api/channel/article.js +144 -0
- package/dist/api/channel/articleComment.d.ts +119 -0
- package/dist/api/channel/articleComment.js +144 -0
- package/dist/api/channel/articleSuggestion.d.ts +69 -0
- package/dist/api/channel/articleSuggestion.js +84 -0
- package/dist/api/channel/channel.d.ts +249 -0
- package/dist/api/channel/channel.js +300 -0
- package/dist/api/channel/index.d.ts +4 -0
- package/dist/api/channel/index.js +20 -0
- package/dist/api/collection/collection.d.ts +59 -0
- package/dist/api/collection/collection.js +72 -0
- package/dist/api/collection/collectionComment.d.ts +109 -0
- package/dist/api/collection/collectionComment.js +132 -0
- package/dist/api/collection/collectionFavorite.d.ts +39 -0
- package/dist/api/collection/collectionFavorite.js +48 -0
- package/dist/api/collection/collectionMy.d.ts +69 -0
- package/dist/api/collection/collectionMy.js +84 -0
- package/dist/api/collection/index.d.ts +4 -0
- package/dist/api/collection/index.js +20 -0
- package/dist/api/config.d.ts +29 -0
- package/dist/api/config.js +36 -0
- package/dist/api/discover.d.ts +59 -0
- package/dist/api/discover.js +72 -0
- package/dist/api/feed.d.ts +39 -0
- package/dist/api/feed.js +48 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/index.js +28 -0
- package/dist/api/notification/index.d.ts +2 -0
- package/dist/api/notification/index.js +18 -0
- package/dist/api/notification/notification.d.ts +199 -0
- package/dist/api/notification/notification.js +240 -0
- package/dist/api/notification/notificationPreference.d.ts +159 -0
- package/dist/api/notification/notificationPreference.js +192 -0
- package/dist/api/profile/index.d.ts +10 -0
- package/dist/api/profile/index.js +26 -0
- package/dist/api/profile/profile.d.ts +65 -0
- package/dist/api/profile/profile.js +80 -0
- package/dist/api/profile/profileBadge.d.ts +39 -0
- package/dist/api/profile/profileBadge.js +48 -0
- package/dist/api/profile/profileBlockList.d.ts +39 -0
- package/dist/api/profile/profileBlockList.js +48 -0
- package/dist/api/profile/profileDeletion.d.ts +39 -0
- package/dist/api/profile/profileDeletion.js +48 -0
- package/dist/api/profile/profileFriend.d.ts +99 -0
- package/dist/api/profile/profileFriend.js +120 -0
- package/dist/api/profile/profileHealth.d.ts +59 -0
- package/dist/api/profile/profileHealth.js +72 -0
- package/dist/api/profile/profileList.d.ts +49 -0
- package/dist/api/profile/profileList.js +60 -0
- package/dist/api/profile/profilePreference.d.ts +239 -0
- package/dist/api/profile/profilePreference.js +288 -0
- package/dist/api/profile/profileReleaseVote.d.ts +39 -0
- package/dist/api/profile/profileReleaseVote.js +48 -0
- package/dist/api/profile/profileRoleList.d.ts +19 -0
- package/dist/api/profile/profileRoleList.js +24 -0
- package/dist/api/release/episode.d.ts +99 -0
- package/dist/api/release/episode.js +120 -0
- package/dist/api/release/favorite.d.ts +39 -0
- package/dist/api/release/favorite.js +48 -0
- package/dist/api/release/filter.d.ts +19 -0
- package/dist/api/release/filter.js +24 -0
- package/dist/api/release/history.d.ts +39 -0
- package/dist/api/release/history.js +48 -0
- package/dist/api/release/index.d.ts +13 -0
- package/dist/api/release/index.js +29 -0
- package/dist/api/release/related.d.ts +19 -0
- package/dist/api/release/related.js +24 -0
- package/dist/api/release/release.d.ts +79 -0
- package/dist/api/release/release.js +96 -0
- package/dist/api/release/releaseComment.d.ts +109 -0
- package/dist/api/release/releaseComment.js +132 -0
- package/dist/api/release/releaseStreamingPlatform.d.ts +19 -0
- package/dist/api/release/releaseStreamingPlatform.js +24 -0
- package/dist/api/release/releaseVideo.d.ts +59 -0
- package/dist/api/release/releaseVideo.js +72 -0
- package/dist/api/release/releaseVideoAppeal.d.ts +49 -0
- package/dist/api/release/releaseVideoAppeal.js +60 -0
- package/dist/api/release/releaseVideoFavorite.d.ts +39 -0
- package/dist/api/release/releaseVideoFavorite.js +48 -0
- package/dist/api/release/schedule.d.ts +19 -0
- package/dist/api/release/schedule.js +24 -0
- package/dist/api/release/type.d.ts +39 -0
- package/dist/api/release/type.js +48 -0
- package/dist/api/report.d.ts +189 -0
- package/dist/api/report.js +228 -0
- package/dist/api/search.d.ts +129 -0
- package/dist/api/search.js +156 -0
- package/dist/classes/Article.d.ts +18 -0
- package/dist/classes/Article.js +44 -0
- package/dist/classes/ArticleComment.d.ts +15 -0
- package/dist/classes/ArticleComment.js +37 -0
- package/dist/classes/BaseArticle.d.ts +21 -0
- package/dist/classes/BaseArticle.js +23 -0
- package/dist/classes/BaseComment.d.ts +22 -0
- package/dist/classes/BaseComment.js +25 -0
- package/dist/classes/BaseProfile.d.ts +29 -0
- package/dist/classes/BaseProfile.js +52 -0
- package/dist/classes/Channel.d.ts +47 -0
- package/dist/classes/Channel.js +108 -0
- package/dist/classes/Collection.d.ts +29 -0
- package/dist/classes/Collection.js +58 -0
- package/dist/classes/Dubber.d.ts +19 -0
- package/dist/classes/Dubber.js +24 -0
- package/dist/classes/Episode.d.ts +20 -0
- package/dist/classes/Episode.js +30 -0
- package/dist/classes/FullProfile.d.ts +70 -0
- package/dist/classes/FullProfile.js +92 -0
- package/dist/classes/Release.d.ts +91 -0
- package/dist/classes/Release.js +150 -0
- package/dist/classes/ReleaseComment.d.ts +16 -0
- package/dist/classes/ReleaseComment.js +45 -0
- package/dist/classes/Source.d.ts +15 -0
- package/dist/classes/Source.js +20 -0
- package/dist/classes/SuggestionArticle.d.ts +14 -0
- package/dist/classes/SuggestionArticle.js +30 -0
- package/dist/client.d.ts +49 -0
- package/dist/client.js +183 -0
- package/dist/endpoints.d.ts +63 -0
- package/dist/endpoints.js +67 -0
- package/dist/errors.d.ts +37 -0
- package/dist/errors.js +122 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +23 -0
- package/dist/types/auth.d.ts +127 -0
- package/dist/types/auth.js +47 -0
- package/dist/types/channel.d.ts +350 -0
- package/dist/types/channel.js +104 -0
- package/dist/types/collection.d.ts +105 -0
- package/dist/types/collection.js +44 -0
- package/dist/types/config.d.ts +41 -0
- package/dist/types/config.js +4 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.js +26 -0
- package/dist/types/notification.d.ts +81 -0
- package/dist/types/notification.js +2 -0
- package/dist/types/profile.d.ts +339 -0
- package/dist/types/profile.js +46 -0
- package/dist/types/release.d.ts +467 -0
- package/dist/types/release.js +39 -0
- package/dist/types/request.d.ts +138 -0
- package/dist/types/request.js +2 -0
- package/dist/types/response.d.ts +104 -0
- package/dist/types/response.js +35 -0
- package/dist/types/settings.d.ts +119 -0
- package/dist/types/settings.js +48 -0
- package/dist/utils/ArticleBuilder.d.ts +38 -0
- package/dist/utils/ArticleBuilder.js +144 -0
- package/dist/utils/LinkParser.d.ts +253 -0
- package/dist/utils/LinkParser.js +253 -0
- package/dist/utils/Utils.d.ts +3 -0
- package/dist/utils/Utils.js +11 -0
- package/docs/DOCUMENTATION.md +290 -0
- package/package.json +55 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReleaseVideoFavorite = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами избранных видео
|
|
6
|
+
*/
|
|
7
|
+
class ReleaseVideoFavorite {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GET releaseVideoFavorite/add/{r_id}
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IFavoritesResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.releaseVideoFavorite.add(1, ...);
|
|
19
|
+
*/
|
|
20
|
+
async add(id2, options) {
|
|
21
|
+
return await this.client.call({ path: `/releaseVideoFavorite/add/${id2}`, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GET releaseVideoFavorite/delete/{r_id}
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link IFavoritesResponse}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.releaseVideoFavorite.delete(1, ...);
|
|
31
|
+
*/
|
|
32
|
+
async delete(id2, options) {
|
|
33
|
+
return await this.client.call({ path: `/releaseVideoFavorite/delete/${id2}`, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET /releaseVideoFavorite/all/{p_id}/{page}
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
39
|
+
* @returns {@link IPageableResponse}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.releaseVideoFavorite.favorites(1, 1, ...);
|
|
43
|
+
*/
|
|
44
|
+
async favorites(profileId, page, options) {
|
|
45
|
+
return await this.client.call({ path: `/releaseVideoFavorite/all/${profileId}/${page}`, ...options });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.ReleaseVideoFavorite = ReleaseVideoFavorite;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { IBaseApiParams, IScheduleResponse } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами расписания
|
|
5
|
+
*/
|
|
6
|
+
export declare class Schedule {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* GET schedule
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IScheduleResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.schedule.schedule(...);
|
|
17
|
+
*/
|
|
18
|
+
schedule(options?: IBaseApiParams): Promise<IScheduleResponse>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Schedule = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами расписания
|
|
6
|
+
*/
|
|
7
|
+
class Schedule {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GET schedule
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IScheduleResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.schedule.schedule(...);
|
|
19
|
+
*/
|
|
20
|
+
async schedule(options) {
|
|
21
|
+
return await this.client.call({ path: `/schedule`, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Schedule = Schedule;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { IBaseApiParams, IResponse, ITypeResponse } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами типов озвучки
|
|
5
|
+
*/
|
|
6
|
+
export declare class Type {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* GET type/pin/{releaseId}/{typeId}
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.type.pin(1, 1, ...);
|
|
17
|
+
*/
|
|
18
|
+
pin(releaseId: number, typeId: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* GET type/all
|
|
21
|
+
*
|
|
22
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
23
|
+
* @returns {@link ITypeResponse}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const result = await client.endpoints.type.types(...);
|
|
27
|
+
*/
|
|
28
|
+
types(options?: IBaseApiParams): Promise<ITypeResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* GET type/unpin/{releaseId}/{typeId}
|
|
31
|
+
*
|
|
32
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
33
|
+
* @returns {@link IResponse}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const result = await client.endpoints.type.unpin(1, 1, ...);
|
|
37
|
+
*/
|
|
38
|
+
unpin(releaseId: number, typeId: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами типов озвучки
|
|
6
|
+
*/
|
|
7
|
+
class Type {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GET type/pin/{releaseId}/{typeId}
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.type.pin(1, 1, ...);
|
|
19
|
+
*/
|
|
20
|
+
async pin(releaseId, typeId, options) {
|
|
21
|
+
return await this.client.call({ path: `/type/pin/${releaseId}/${typeId}`, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GET type/all
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link ITypeResponse}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.type.types(...);
|
|
31
|
+
*/
|
|
32
|
+
async types(options) {
|
|
33
|
+
return await this.client.call({ path: `/type/all`, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET type/unpin/{releaseId}/{typeId}
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
39
|
+
* @returns {@link IResponse}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.type.unpin(1, 1, ...);
|
|
43
|
+
*/
|
|
44
|
+
async unpin(releaseId, typeId, options) {
|
|
45
|
+
return await this.client.call({ path: `/type/unpin/${releaseId}/${typeId}`, ...options });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.Type = Type;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { Anixart } from "../client";
|
|
2
|
+
import { IBaseApiParams, IReportReason, IReportRequest, IReportResponse } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами жалоб
|
|
5
|
+
*/
|
|
6
|
+
export declare class Report {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* POST report/article
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IReportResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.report.article(...);
|
|
17
|
+
*/
|
|
18
|
+
article(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* POST report/comment/article
|
|
21
|
+
*
|
|
22
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
23
|
+
* @returns {@link IReportResponse}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const result = await client.endpoints.report.articleComment(...);
|
|
27
|
+
*/
|
|
28
|
+
articleComment(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* GET report/comment/article/reasons
|
|
31
|
+
*
|
|
32
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
33
|
+
* @returns {@link IReportReason[]}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const result = await client.endpoints.report.articleCommentsReasons(...);
|
|
37
|
+
*/
|
|
38
|
+
articleCommentsReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
39
|
+
/**
|
|
40
|
+
* GET report/article/reasons
|
|
41
|
+
*
|
|
42
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
43
|
+
* @returns {@link IReportReason[]}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* const result = await client.endpoints.report.articleReasons(...);
|
|
47
|
+
*/
|
|
48
|
+
articleReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
49
|
+
/**
|
|
50
|
+
* POST report/channel
|
|
51
|
+
*
|
|
52
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
53
|
+
* @returns {@link IReportResponse}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* const result = await client.endpoints.report.channel(...);
|
|
57
|
+
*/
|
|
58
|
+
channel(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* GET report/channel/reasons
|
|
61
|
+
*
|
|
62
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
63
|
+
* @returns {@link IReportReason[]}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const result = await client.endpoints.report.channelReasons(...);
|
|
67
|
+
*/
|
|
68
|
+
channelReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
69
|
+
/**
|
|
70
|
+
* POST report/collection
|
|
71
|
+
*
|
|
72
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
73
|
+
* @returns {@link IReportResponse}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* const result = await client.endpoints.report.collection(...);
|
|
77
|
+
*/
|
|
78
|
+
collection(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* POST report/comment/collection
|
|
81
|
+
*
|
|
82
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
83
|
+
* @returns {@link IReportResponse}
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* const result = await client.endpoints.report.collectionComment(...);
|
|
87
|
+
*/
|
|
88
|
+
collectionComment(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* GET report/comment/collection/reasons
|
|
91
|
+
*
|
|
92
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
93
|
+
* @returns {@link IReportReason[]}
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* const result = await client.endpoints.report.collectionCommentsReasons(...);
|
|
97
|
+
*/
|
|
98
|
+
collectionCommentsReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
99
|
+
/**
|
|
100
|
+
* GET report/collection/reasons
|
|
101
|
+
*
|
|
102
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
103
|
+
* @returns {@link IReportReason[]}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* const result = await client.endpoints.report.collectionReasons(...);
|
|
107
|
+
*/
|
|
108
|
+
collectionReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
109
|
+
/**
|
|
110
|
+
* POST report/episode
|
|
111
|
+
*
|
|
112
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
113
|
+
* @returns {@link IReportResponse}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* const result = await client.endpoints.report.episode(...);
|
|
117
|
+
*/
|
|
118
|
+
episode(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* GET report/episode/reasons
|
|
121
|
+
*
|
|
122
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
123
|
+
* @returns {@link IReportReason[]}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* const result = await client.endpoints.report.episodeReasons(...);
|
|
127
|
+
*/
|
|
128
|
+
episodeReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
129
|
+
/**
|
|
130
|
+
* POST report/profile
|
|
131
|
+
*
|
|
132
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
133
|
+
* @returns {@link IReportResponse}
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* const result = await client.endpoints.report.profile(...);
|
|
137
|
+
*/
|
|
138
|
+
profile(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* GET report/profile/reasons
|
|
141
|
+
*
|
|
142
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
143
|
+
* @returns {@link IReportReason[]}
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* const result = await client.endpoints.report.profileReasons(...);
|
|
147
|
+
*/
|
|
148
|
+
profileReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
149
|
+
/**
|
|
150
|
+
* POST report/release
|
|
151
|
+
*
|
|
152
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
153
|
+
* @returns {@link IReportResponse}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* const result = await client.endpoints.report.release(...);
|
|
157
|
+
*/
|
|
158
|
+
release(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* POST report/comment/release
|
|
161
|
+
*
|
|
162
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
163
|
+
* @returns {@link IReportResponse}
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* const result = await client.endpoints.report.releaseComment(...);
|
|
167
|
+
*/
|
|
168
|
+
releaseComment(body: IReportRequest, options?: IBaseApiParams): Promise<IReportResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* GET report/comment/release/reasons
|
|
171
|
+
*
|
|
172
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
173
|
+
* @returns {@link IReportReason[]}
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* const result = await client.endpoints.report.releaseCommentsReasons(...);
|
|
177
|
+
*/
|
|
178
|
+
releaseCommentsReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
179
|
+
/**
|
|
180
|
+
* GET report/release/reasons
|
|
181
|
+
*
|
|
182
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
183
|
+
* @returns {@link IReportReason[]}
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* const result = await client.endpoints.report.releaseReasons(...);
|
|
187
|
+
*/
|
|
188
|
+
releaseReasons(options?: IBaseApiParams): Promise<IReportReason[]>;
|
|
189
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Report = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами жалоб
|
|
6
|
+
*/
|
|
7
|
+
class Report {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* POST report/article
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IReportResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.report.article(...);
|
|
19
|
+
*/
|
|
20
|
+
async article(body, options) {
|
|
21
|
+
return await this.client.call({ path: `/report/article`, method: 'POST', json: body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* POST report/comment/article
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link IReportResponse}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.report.articleComment(...);
|
|
31
|
+
*/
|
|
32
|
+
async articleComment(body, options) {
|
|
33
|
+
return await this.client.call({ path: `/report/comment/article`, method: 'POST', json: body, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET report/comment/article/reasons
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
39
|
+
* @returns {@link IReportReason[]}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.report.articleCommentsReasons(...);
|
|
43
|
+
*/
|
|
44
|
+
async articleCommentsReasons(options) {
|
|
45
|
+
return await this.client.call({ path: `/report/comment/article/reasons`, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* GET report/article/reasons
|
|
49
|
+
*
|
|
50
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
51
|
+
* @returns {@link IReportReason[]}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const result = await client.endpoints.report.articleReasons(...);
|
|
55
|
+
*/
|
|
56
|
+
async articleReasons(options) {
|
|
57
|
+
return await this.client.call({ path: `/report/article/reasons`, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* POST report/channel
|
|
61
|
+
*
|
|
62
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
63
|
+
* @returns {@link IReportResponse}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const result = await client.endpoints.report.channel(...);
|
|
67
|
+
*/
|
|
68
|
+
async channel(body, options) {
|
|
69
|
+
return await this.client.call({ path: `/report/channel`, method: 'POST', json: body, ...options });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* GET report/channel/reasons
|
|
73
|
+
*
|
|
74
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
75
|
+
* @returns {@link IReportReason[]}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const result = await client.endpoints.report.channelReasons(...);
|
|
79
|
+
*/
|
|
80
|
+
async channelReasons(options) {
|
|
81
|
+
return await this.client.call({ path: `/report/channel/reasons`, ...options });
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* POST report/collection
|
|
85
|
+
*
|
|
86
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
87
|
+
* @returns {@link IReportResponse}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* const result = await client.endpoints.report.collection(...);
|
|
91
|
+
*/
|
|
92
|
+
async collection(body, options) {
|
|
93
|
+
return await this.client.call({ path: `/report/collection`, method: 'POST', json: body, ...options });
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* POST report/comment/collection
|
|
97
|
+
*
|
|
98
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
99
|
+
* @returns {@link IReportResponse}
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* const result = await client.endpoints.report.collectionComment(...);
|
|
103
|
+
*/
|
|
104
|
+
async collectionComment(body, options) {
|
|
105
|
+
return await this.client.call({ path: `/report/comment/collection`, method: 'POST', json: body, ...options });
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* GET report/comment/collection/reasons
|
|
109
|
+
*
|
|
110
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
111
|
+
* @returns {@link IReportReason[]}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* const result = await client.endpoints.report.collectionCommentsReasons(...);
|
|
115
|
+
*/
|
|
116
|
+
async collectionCommentsReasons(options) {
|
|
117
|
+
return await this.client.call({ path: `/report/comment/collection/reasons`, ...options });
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* GET report/collection/reasons
|
|
121
|
+
*
|
|
122
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
123
|
+
* @returns {@link IReportReason[]}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* const result = await client.endpoints.report.collectionReasons(...);
|
|
127
|
+
*/
|
|
128
|
+
async collectionReasons(options) {
|
|
129
|
+
return await this.client.call({ path: `/report/collection/reasons`, ...options });
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* POST report/episode
|
|
133
|
+
*
|
|
134
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
135
|
+
* @returns {@link IReportResponse}
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* const result = await client.endpoints.report.episode(...);
|
|
139
|
+
*/
|
|
140
|
+
async episode(body, options) {
|
|
141
|
+
return await this.client.call({ path: `/report/episode`, method: 'POST', json: body, ...options });
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* GET report/episode/reasons
|
|
145
|
+
*
|
|
146
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
147
|
+
* @returns {@link IReportReason[]}
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* const result = await client.endpoints.report.episodeReasons(...);
|
|
151
|
+
*/
|
|
152
|
+
async episodeReasons(options) {
|
|
153
|
+
return await this.client.call({ path: `/report/episode/reasons`, ...options });
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* POST report/profile
|
|
157
|
+
*
|
|
158
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
159
|
+
* @returns {@link IReportResponse}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* const result = await client.endpoints.report.profile(...);
|
|
163
|
+
*/
|
|
164
|
+
async profile(body, options) {
|
|
165
|
+
return await this.client.call({ path: `/report/profile`, method: 'POST', json: body, ...options });
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* GET report/profile/reasons
|
|
169
|
+
*
|
|
170
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
171
|
+
* @returns {@link IReportReason[]}
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* const result = await client.endpoints.report.profileReasons(...);
|
|
175
|
+
*/
|
|
176
|
+
async profileReasons(options) {
|
|
177
|
+
return await this.client.call({ path: `/report/profile/reasons`, ...options });
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* POST report/release
|
|
181
|
+
*
|
|
182
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
183
|
+
* @returns {@link IReportResponse}
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* const result = await client.endpoints.report.release(...);
|
|
187
|
+
*/
|
|
188
|
+
async release(body, options) {
|
|
189
|
+
return await this.client.call({ path: `/report/release`, method: 'POST', json: body, ...options });
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* POST report/comment/release
|
|
193
|
+
*
|
|
194
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
195
|
+
* @returns {@link IReportResponse}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* const result = await client.endpoints.report.releaseComment(...);
|
|
199
|
+
*/
|
|
200
|
+
async releaseComment(body, options) {
|
|
201
|
+
return await this.client.call({ path: `/report/comment/release`, method: 'POST', json: body, ...options });
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* GET report/comment/release/reasons
|
|
205
|
+
*
|
|
206
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
207
|
+
* @returns {@link IReportReason[]}
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* const result = await client.endpoints.report.releaseCommentsReasons(...);
|
|
211
|
+
*/
|
|
212
|
+
async releaseCommentsReasons(options) {
|
|
213
|
+
return await this.client.call({ path: `/report/comment/release/reasons`, ...options });
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* GET report/release/reasons
|
|
217
|
+
*
|
|
218
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
219
|
+
* @returns {@link IReportReason[]}
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* const result = await client.endpoints.report.releaseReasons(...);
|
|
223
|
+
*/
|
|
224
|
+
async releaseReasons(options) {
|
|
225
|
+
return await this.client.call({ path: `/report/release/reasons`, ...options });
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.Report = Report;
|