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,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Release = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами релизов
|
|
6
|
+
*/
|
|
7
|
+
class Release {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GET release/vote/delete/{r_id}
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.release.deleteVote(1, ...);
|
|
19
|
+
*/
|
|
20
|
+
async deleteVote(id2, options) {
|
|
21
|
+
return await this.client.call({ path: `/release/vote/delete/${id2}`, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GET release/random
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link IReleaseResponse}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.release.random(...);
|
|
31
|
+
*/
|
|
32
|
+
async random(query, options) {
|
|
33
|
+
return await this.client.call({ path: `/release/random`, queryParams: query, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET release/collection/{id}/random
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
39
|
+
* @returns {@link IReleaseResponse}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.release.randomCollection(1, ...);
|
|
43
|
+
*/
|
|
44
|
+
async randomCollection(collectionId, query, options) {
|
|
45
|
+
return await this.client.call({ path: `/release/collection/${collectionId}/random`, queryParams: query, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* GET release/random/favorite
|
|
49
|
+
*
|
|
50
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
51
|
+
* @returns {@link IReleaseResponse}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const result = await client.endpoints.release.randomFavorite(...);
|
|
55
|
+
*/
|
|
56
|
+
async randomFavorite(query, options) {
|
|
57
|
+
return await this.client.call({ path: `/release/random/favorite`, queryParams: query, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* GET release/random/profile/list/{p_id}/{status}
|
|
61
|
+
*
|
|
62
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
63
|
+
* @returns {@link IReleaseResponse}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const result = await client.endpoints.release.randomProfileList(1, 1, ...);
|
|
67
|
+
*/
|
|
68
|
+
async randomProfileList(profileId, status, query, options) {
|
|
69
|
+
return await this.client.call({ path: `/release/random/profile/list/${profileId}/${status}`, queryParams: query, ...options });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* GET release/{r_id}
|
|
73
|
+
*
|
|
74
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
75
|
+
* @returns {@link IReleaseResponse}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const result = await client.endpoints.release.release(1, ...);
|
|
79
|
+
*/
|
|
80
|
+
async release(id2, query, options) {
|
|
81
|
+
return await this.client.call({ path: `/release/${id2}`, queryParams: query, ...options });
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* GET release/vote/add/{r_id}/{vote}
|
|
85
|
+
*
|
|
86
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
87
|
+
* @returns {@link IResponse}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* const result = await client.endpoints.release.vote(1, 1, ...);
|
|
91
|
+
*/
|
|
92
|
+
async vote(id2, vote, options) {
|
|
93
|
+
return await this.client.call({ path: `/release/vote/add/${id2}/${vote}`, ...options });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Release = Release;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { CommentDeleteResult, CommentEditResult, IBaseApiParams, IBaseCommentAddRequest, ICommentEditRequest, ICommentProcessRequest, ICommentReleaseResponse, IPageableResponse, IProfileShort, IReleaseComment, IResponse } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами комментариев к релизам
|
|
5
|
+
*/
|
|
6
|
+
export declare class ReleaseComment {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* POST release/comment/add/{releaseId}
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link CommentAddResult}
|
|
13
|
+
* @returns {@link ICommentReleaseResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.releaseComment.add(1, ...);
|
|
17
|
+
*/
|
|
18
|
+
add(releaseId: number, body: IBaseCommentAddRequest, options?: IBaseApiParams): Promise<ICommentReleaseResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* GET release/comment/{releaseId}
|
|
21
|
+
*
|
|
22
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
23
|
+
* @returns {@link IReleaseComment}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const result = await client.endpoints.releaseComment.comment(1, ...);
|
|
27
|
+
*/
|
|
28
|
+
comment(releaseId: number, options?: IBaseApiParams): Promise<IReleaseComment>;
|
|
29
|
+
/**
|
|
30
|
+
* GET release/comment/all/{releaseId}/{page}
|
|
31
|
+
*
|
|
32
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
33
|
+
* @returns {@link IPageableResponse}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const result = await client.endpoints.releaseComment.comments(1, 1, ...);
|
|
37
|
+
*/
|
|
38
|
+
comments(releaseId: number, page: number, query?: Record<string, string | number | boolean | undefined>, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseComment>>;
|
|
39
|
+
/**
|
|
40
|
+
* GET release/comment/delete/{commentId}
|
|
41
|
+
*
|
|
42
|
+
* Возможные коды ответа: {@link CommentDeleteResult}
|
|
43
|
+
* @returns {@link IResponse}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* const result = await client.endpoints.releaseComment.delete(1, ...);
|
|
47
|
+
*/
|
|
48
|
+
delete(commentId: number, options?: IBaseApiParams): Promise<IResponse<CommentDeleteResult>>;
|
|
49
|
+
/**
|
|
50
|
+
* POST release/comment/edit/{commentId}
|
|
51
|
+
*
|
|
52
|
+
* Возможные коды ответа: {@link CommentEditResult}
|
|
53
|
+
* @returns {@link IResponse}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* const result = await client.endpoints.releaseComment.edit(1, ...);
|
|
57
|
+
*/
|
|
58
|
+
edit(commentId: number, body: ICommentEditRequest, options?: IBaseApiParams): Promise<IResponse<CommentEditResult>>;
|
|
59
|
+
/**
|
|
60
|
+
* POST release/comment/process/{commentId}
|
|
61
|
+
*
|
|
62
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
63
|
+
* @returns {@link IResponse}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const result = await client.endpoints.releaseComment.process(1, ...);
|
|
67
|
+
*/
|
|
68
|
+
process(commentId: number, body: ICommentProcessRequest, options?: IBaseApiParams): Promise<IResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* GET release/comment/all/profile/{p_id}/{page}
|
|
71
|
+
*
|
|
72
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
73
|
+
* @returns {@link IPageableResponse}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* const result = await client.endpoints.releaseComment.profileComments(1, 1, ...);
|
|
77
|
+
*/
|
|
78
|
+
profileComments(profileId: number, page: number, query?: Record<string, string | number | boolean | undefined>, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseComment>>;
|
|
79
|
+
/**
|
|
80
|
+
* POST release/comment/replies/{commentId}/{page}
|
|
81
|
+
*
|
|
82
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
83
|
+
* @returns {@link IPageableResponse}
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* const result = await client.endpoints.releaseComment.replies(1, 1, ...);
|
|
87
|
+
*/
|
|
88
|
+
replies(commentId: number, page: number, query?: Record<string, string | number | boolean | undefined>, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseComment>>;
|
|
89
|
+
/**
|
|
90
|
+
* GET release/comment/vote/{commentId}/{vote}
|
|
91
|
+
*
|
|
92
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
93
|
+
* @returns {@link IResponse}
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* const result = await client.endpoints.releaseComment.vote(1, 1, ...);
|
|
97
|
+
*/
|
|
98
|
+
vote(commentId: number, vote: number, options?: IBaseApiParams): Promise<IResponse>;
|
|
99
|
+
/**
|
|
100
|
+
* GET release/comment/votes/{commentId}/{page}
|
|
101
|
+
*
|
|
102
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
103
|
+
* @returns {@link IPageableResponse}
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* const result = await client.endpoints.releaseComment.votes(1, 1, ...);
|
|
107
|
+
*/
|
|
108
|
+
votes(commentId: number, page: number, query?: Record<string, string | number | boolean | undefined>, options?: IBaseApiParams): Promise<IPageableResponse<IProfileShort>>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReleaseComment = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами комментариев к релизам
|
|
6
|
+
*/
|
|
7
|
+
class ReleaseComment {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* POST release/comment/add/{releaseId}
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link CommentAddResult}
|
|
15
|
+
* @returns {@link ICommentReleaseResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.releaseComment.add(1, ...);
|
|
19
|
+
*/
|
|
20
|
+
async add(releaseId, body, options) {
|
|
21
|
+
return await this.client.call({ path: `/release/comment/add/${releaseId}`, method: 'POST', json: body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GET release/comment/{releaseId}
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link IReleaseComment}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.releaseComment.comment(1, ...);
|
|
31
|
+
*/
|
|
32
|
+
async comment(releaseId, options) {
|
|
33
|
+
return await this.client.call({ path: `/release/comment/${releaseId}`, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET release/comment/all/{releaseId}/{page}
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
39
|
+
* @returns {@link IPageableResponse}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.releaseComment.comments(1, 1, ...);
|
|
43
|
+
*/
|
|
44
|
+
async comments(releaseId, page, query, options) {
|
|
45
|
+
return await this.client.call({ path: `/release/comment/all/${releaseId}/${page}`, queryParams: query, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* GET release/comment/delete/{commentId}
|
|
49
|
+
*
|
|
50
|
+
* Возможные коды ответа: {@link CommentDeleteResult}
|
|
51
|
+
* @returns {@link IResponse}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const result = await client.endpoints.releaseComment.delete(1, ...);
|
|
55
|
+
*/
|
|
56
|
+
async delete(commentId, options) {
|
|
57
|
+
return await this.client.call({ path: `/release/comment/delete/${commentId}`, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* POST release/comment/edit/{commentId}
|
|
61
|
+
*
|
|
62
|
+
* Возможные коды ответа: {@link CommentEditResult}
|
|
63
|
+
* @returns {@link IResponse}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const result = await client.endpoints.releaseComment.edit(1, ...);
|
|
67
|
+
*/
|
|
68
|
+
async edit(commentId, body, options) {
|
|
69
|
+
return await this.client.call({ path: `/release/comment/edit/${commentId}`, method: 'POST', json: body, ...options });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* POST release/comment/process/{commentId}
|
|
73
|
+
*
|
|
74
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
75
|
+
* @returns {@link IResponse}
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* const result = await client.endpoints.releaseComment.process(1, ...);
|
|
79
|
+
*/
|
|
80
|
+
async process(commentId, body, options) {
|
|
81
|
+
return await this.client.call({ path: `/release/comment/process/${commentId}`, method: 'POST', json: body, ...options });
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* GET release/comment/all/profile/{p_id}/{page}
|
|
85
|
+
*
|
|
86
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
87
|
+
* @returns {@link IPageableResponse}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* const result = await client.endpoints.releaseComment.profileComments(1, 1, ...);
|
|
91
|
+
*/
|
|
92
|
+
async profileComments(profileId, page, query, options) {
|
|
93
|
+
return await this.client.call({ path: `/release/comment/all/profile/${profileId}/${page}`, queryParams: query, ...options });
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* POST release/comment/replies/{commentId}/{page}
|
|
97
|
+
*
|
|
98
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
99
|
+
* @returns {@link IPageableResponse}
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* const result = await client.endpoints.releaseComment.replies(1, 1, ...);
|
|
103
|
+
*/
|
|
104
|
+
async replies(commentId, page, query, options) {
|
|
105
|
+
return await this.client.call({ path: `/release/comment/replies/${commentId}/${page}`, method: 'POST', queryParams: query, ...options });
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* GET release/comment/vote/{commentId}/{vote}
|
|
109
|
+
*
|
|
110
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
111
|
+
* @returns {@link IResponse}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* const result = await client.endpoints.releaseComment.vote(1, 1, ...);
|
|
115
|
+
*/
|
|
116
|
+
async vote(commentId, vote, options) {
|
|
117
|
+
return await this.client.call({ path: `/release/comment/vote/${commentId}/${vote}`, ...options });
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* GET release/comment/votes/{commentId}/{page}
|
|
121
|
+
*
|
|
122
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
123
|
+
* @returns {@link IPageableResponse}
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* const result = await client.endpoints.releaseComment.votes(1, 1, ...);
|
|
127
|
+
*/
|
|
128
|
+
async votes(commentId, page, query, options) {
|
|
129
|
+
return await this.client.call({ path: `/release/comment/votes/${commentId}/${page}`, queryParams: query, ...options });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.ReleaseComment = ReleaseComment;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { IBaseApiParams, IPageableResponse, IReleaseStreamingPlatform } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами стриминговых платформ
|
|
5
|
+
*/
|
|
6
|
+
export declare class ReleaseStreamingPlatform {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* GET release/streaming/platform/{releaseId}
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IPageableResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.releaseStreamingPlatform.releaseStreamingPlatform(1, ...);
|
|
17
|
+
*/
|
|
18
|
+
releaseStreamingPlatform(releaseId: number, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseStreamingPlatform>>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReleaseStreamingPlatform = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами стриминговых платформ
|
|
6
|
+
*/
|
|
7
|
+
class ReleaseStreamingPlatform {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GET release/streaming/platform/{releaseId}
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IPageableResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.releaseStreamingPlatform.releaseStreamingPlatform(1, ...);
|
|
19
|
+
*/
|
|
20
|
+
async releaseStreamingPlatform(releaseId, options) {
|
|
21
|
+
return await this.client.call({ path: `/release/streaming/platform/${releaseId}`, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ReleaseStreamingPlatform = ReleaseStreamingPlatform;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { IBaseApiParams, IPageableResponse, IReleaseVideo, IReleaseVideoCategoriesResponse, IVideoResponse } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами видео релизов
|
|
5
|
+
*/
|
|
6
|
+
export declare class ReleaseVideo {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* GET /video/release/categories
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IReleaseVideoCategoriesResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.releaseVideo.categories(...);
|
|
17
|
+
*/
|
|
18
|
+
categories(options?: IBaseApiParams): Promise<IReleaseVideoCategoriesResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* GET /video/release/{releaseId}/category/{categoryId}/{page}
|
|
21
|
+
*
|
|
22
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
23
|
+
* @returns {@link IPageableResponse}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const result = await client.endpoints.releaseVideo.category(1, 1, 1, ...);
|
|
27
|
+
*/
|
|
28
|
+
category(releaseId: number, categoryId: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseVideo>>;
|
|
29
|
+
/**
|
|
30
|
+
* GET /video/release/{releaseId}
|
|
31
|
+
*
|
|
32
|
+
* Возможные коды ответа: {@link ReleaseVideoResult}
|
|
33
|
+
* @returns {@link IVideoResponse}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const result = await client.endpoints.releaseVideo.main(1, ...);
|
|
37
|
+
*/
|
|
38
|
+
main(releaseId: number, options?: IBaseApiParams): Promise<IVideoResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* GET /video/profile/{p_id}/{page}
|
|
41
|
+
*
|
|
42
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
43
|
+
* @returns {@link IPageableResponse}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* const result = await client.endpoints.releaseVideo.profileVideo(1, 1, ...);
|
|
47
|
+
*/
|
|
48
|
+
profileVideo(profileId: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseVideo>>;
|
|
49
|
+
/**
|
|
50
|
+
* GET /video/release/{releaseId}/{page}
|
|
51
|
+
*
|
|
52
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
53
|
+
* @returns {@link IPageableResponse}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* const result = await client.endpoints.releaseVideo.video(1, 1, ...);
|
|
57
|
+
*/
|
|
58
|
+
video(releaseId: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseVideo>>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReleaseVideo = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами видео релизов
|
|
6
|
+
*/
|
|
7
|
+
class ReleaseVideo {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* GET /video/release/categories
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IReleaseVideoCategoriesResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.releaseVideo.categories(...);
|
|
19
|
+
*/
|
|
20
|
+
async categories(options) {
|
|
21
|
+
return await this.client.call({ path: `/video/release/categories`, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GET /video/release/{releaseId}/category/{categoryId}/{page}
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link IPageableResponse}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.releaseVideo.category(1, 1, 1, ...);
|
|
31
|
+
*/
|
|
32
|
+
async category(releaseId, categoryId, page, options) {
|
|
33
|
+
return await this.client.call({ path: `/video/release/${releaseId}/category/${categoryId}/${page}`, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET /video/release/{releaseId}
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link ReleaseVideoResult}
|
|
39
|
+
* @returns {@link IVideoResponse}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.releaseVideo.main(1, ...);
|
|
43
|
+
*/
|
|
44
|
+
async main(releaseId, options) {
|
|
45
|
+
return await this.client.call({ path: `/video/release/${releaseId}`, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* GET /video/profile/{p_id}/{page}
|
|
49
|
+
*
|
|
50
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
51
|
+
* @returns {@link IPageableResponse}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const result = await client.endpoints.releaseVideo.profileVideo(1, 1, ...);
|
|
55
|
+
*/
|
|
56
|
+
async profileVideo(profileId, page, options) {
|
|
57
|
+
return await this.client.call({ path: `/video/profile/${profileId}/${page}`, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* GET /video/release/{releaseId}/{page}
|
|
61
|
+
*
|
|
62
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
63
|
+
* @returns {@link IPageableResponse}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const result = await client.endpoints.releaseVideo.video(1, 1, ...);
|
|
67
|
+
*/
|
|
68
|
+
async video(releaseId, page, options) {
|
|
69
|
+
return await this.client.call({ path: `/video/release/${releaseId}/${page}`, ...options });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.ReleaseVideo = ReleaseVideo;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { IBaseApiParams, IPageableResponse, IReleaseVideo, IReleaseVideoAppealRequest, IReleaseVideoAppealResponse } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами апелляций видео
|
|
5
|
+
*/
|
|
6
|
+
export declare class ReleaseVideoAppeal {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* POST /video/appeal/add
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IReleaseVideoAppealResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.releaseVideoAppeal.add(...);
|
|
17
|
+
*/
|
|
18
|
+
add(body: IReleaseVideoAppealRequest, options?: IBaseApiParams): Promise<IReleaseVideoAppealResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* GET /video/appeal/profile/{page}
|
|
21
|
+
*
|
|
22
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
23
|
+
* @returns {@link IPageableResponse}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const result = await client.endpoints.releaseVideoAppeal.appeals(1, ...);
|
|
27
|
+
*/
|
|
28
|
+
appeals(page: number, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseVideo>>;
|
|
29
|
+
/**
|
|
30
|
+
* GET /video/appeal/profile/last
|
|
31
|
+
*
|
|
32
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
33
|
+
* @returns {@link IPageableResponse}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const result = await client.endpoints.releaseVideoAppeal.appeals2(...);
|
|
37
|
+
*/
|
|
38
|
+
appeals2(options?: IBaseApiParams): Promise<IPageableResponse<IReleaseVideo>>;
|
|
39
|
+
/**
|
|
40
|
+
* POST /video/appeal/delete/{appealId}
|
|
41
|
+
*
|
|
42
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
43
|
+
* @returns {@link IReleaseVideoAppealResponse}
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* const result = await client.endpoints.releaseVideoAppeal.delete(1, ...);
|
|
47
|
+
*/
|
|
48
|
+
delete(appealId: number, options?: IBaseApiParams): Promise<IReleaseVideoAppealResponse>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReleaseVideoAppeal = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Класс с эндпоинтами апелляций видео
|
|
6
|
+
*/
|
|
7
|
+
class ReleaseVideoAppeal {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* POST /video/appeal/add
|
|
13
|
+
*
|
|
14
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
15
|
+
* @returns {@link IReleaseVideoAppealResponse}
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* const result = await client.endpoints.releaseVideoAppeal.add(...);
|
|
19
|
+
*/
|
|
20
|
+
async add(body, options) {
|
|
21
|
+
return await this.client.call({ path: `/video/appeal/add`, method: 'POST', json: body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* GET /video/appeal/profile/{page}
|
|
25
|
+
*
|
|
26
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
27
|
+
* @returns {@link IPageableResponse}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const result = await client.endpoints.releaseVideoAppeal.appeals(1, ...);
|
|
31
|
+
*/
|
|
32
|
+
async appeals(page, options) {
|
|
33
|
+
return await this.client.call({ path: `/video/appeal/profile/${page}`, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* GET /video/appeal/profile/last
|
|
37
|
+
*
|
|
38
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
39
|
+
* @returns {@link IPageableResponse}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* const result = await client.endpoints.releaseVideoAppeal.appeals2(...);
|
|
43
|
+
*/
|
|
44
|
+
async appeals2(options) {
|
|
45
|
+
return await this.client.call({ path: `/video/appeal/profile/last`, ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* POST /video/appeal/delete/{appealId}
|
|
49
|
+
*
|
|
50
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
51
|
+
* @returns {@link IReleaseVideoAppealResponse}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const result = await client.endpoints.releaseVideoAppeal.delete(1, ...);
|
|
55
|
+
*/
|
|
56
|
+
async delete(appealId, options) {
|
|
57
|
+
return await this.client.call({ path: `/video/appeal/delete/${appealId}`, method: 'POST', ...options });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.ReleaseVideoAppeal = ReleaseVideoAppeal;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Anixart } from "../../client";
|
|
2
|
+
import { IBaseApiParams, IFavoritesResponse, IPageableResponse, IReleaseVideo } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Класс с эндпоинтами избранных видео
|
|
5
|
+
*/
|
|
6
|
+
export declare class ReleaseVideoFavorite {
|
|
7
|
+
private readonly client;
|
|
8
|
+
constructor(client: Anixart);
|
|
9
|
+
/**
|
|
10
|
+
* GET releaseVideoFavorite/add/{r_id}
|
|
11
|
+
*
|
|
12
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
13
|
+
* @returns {@link IFavoritesResponse}
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const result = await client.endpoints.releaseVideoFavorite.add(1, ...);
|
|
17
|
+
*/
|
|
18
|
+
add(id2: number, options?: IBaseApiParams): Promise<IFavoritesResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* GET releaseVideoFavorite/delete/{r_id}
|
|
21
|
+
*
|
|
22
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
23
|
+
* @returns {@link IFavoritesResponse}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const result = await client.endpoints.releaseVideoFavorite.delete(1, ...);
|
|
27
|
+
*/
|
|
28
|
+
delete(id2: number, options?: IBaseApiParams): Promise<IFavoritesResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* GET /releaseVideoFavorite/all/{p_id}/{page}
|
|
31
|
+
*
|
|
32
|
+
* Возможные коды ответа: {@link DefaultResult}
|
|
33
|
+
* @returns {@link IPageableResponse}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* const result = await client.endpoints.releaseVideoFavorite.favorites(1, 1, ...);
|
|
37
|
+
*/
|
|
38
|
+
favorites(profileId: number, page: number, options?: IBaseApiParams): Promise<IPageableResponse<IReleaseVideo>>;
|
|
39
|
+
}
|