anixartjs 0.0.9 → 0.1.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/dist/api/auth.d.ts +95 -4
- package/dist/api/auth.js +91 -0
- package/dist/api/channel.d.ts +16 -12
- package/dist/api/channel.js +16 -4
- package/dist/api/collection.d.ts +8 -14
- package/dist/api/collection.js +3 -7
- package/dist/api/discover.d.ts +67 -0
- package/dist/api/discover.js +67 -0
- package/dist/api/feed.d.ts +28 -1
- package/dist/api/feed.js +28 -3
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +1 -0
- package/dist/api/notification.d.ts +3 -1
- package/dist/api/notification.js +6 -0
- package/dist/api/profile.d.ts +372 -11
- package/dist/api/profile.js +381 -6
- package/dist/api/release.d.ts +4 -4
- package/dist/api/release.js +3 -3
- package/dist/api/search.d.ts +230 -0
- package/dist/api/search.js +257 -0
- package/dist/api/settings.d.ts +6 -7
- package/dist/api/settings.js +9 -12
- package/dist/classes/Article.d.ts +3 -3
- package/dist/classes/Article.js +3 -2
- package/dist/classes/ArticleComment.d.ts +3 -3
- package/dist/classes/ArticleComment.js +2 -1
- package/dist/classes/BaseProfile.d.ts +4 -3
- package/dist/classes/BaseProfile.js +6 -2
- package/dist/classes/Channel.d.ts +4 -4
- package/dist/classes/Channel.js +7 -6
- package/dist/classes/Collection.d.ts +5 -5
- package/dist/classes/Collection.js +2 -1
- package/dist/classes/Episode.d.ts +3 -3
- package/dist/classes/Release.d.ts +7 -7
- package/dist/classes/Release.js +9 -8
- package/dist/classes/ReleaseComment.d.ts +4 -4
- package/dist/classes/ReleaseComment.js +3 -2
- package/dist/classes/SuggestionArticle.d.ts +2 -2
- package/dist/classes/SuggestionArticle.js +2 -1
- package/dist/client.d.ts +11 -3
- package/dist/client.js +10 -1
- package/dist/endpoints.d.ts +10 -1
- package/dist/endpoints.js +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/types/auth.d.ts +41 -2
- package/dist/types/auth.js +45 -0
- package/dist/types/channel.d.ts +107 -10
- package/dist/types/channel.js +95 -0
- package/dist/types/collection.d.ts +38 -4
- package/dist/types/collection.js +42 -0
- package/dist/types/notification.d.ts +4 -0
- package/dist/types/profile.d.ts +41 -3
- package/dist/types/profile.js +26 -1
- package/dist/types/release.d.ts +35 -5
- package/dist/types/release.js +10 -1
- package/dist/types/response.d.ts +26 -6
- package/dist/types/response.js +33 -10
- package/dist/types/settings.d.ts +30 -2
- package/dist/types/settings.js +35 -1
- package/package.json +1 -1
package/dist/types/channel.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IProfile } from "./profile";
|
|
2
|
-
import {
|
|
2
|
+
import { IBaseSearchRequest } from "./request";
|
|
3
|
+
import { IResponse, IBaseComment, CommentAddResult, IPageableResponse } from "./response";
|
|
3
4
|
export interface IChannel {
|
|
4
5
|
id: number;
|
|
5
6
|
title: string;
|
|
@@ -28,10 +29,10 @@ export interface IArticleUploadFileResponse extends IResponse {
|
|
|
28
29
|
file: IArticleImageItem;
|
|
29
30
|
success: number;
|
|
30
31
|
}
|
|
31
|
-
export interface IArticleSuggestionPublishResponse extends IResponse {
|
|
32
|
+
export interface IArticleSuggestionPublishResponse extends IResponse<ArticleSuggestionPublishResult> {
|
|
32
33
|
article_id: number;
|
|
33
34
|
}
|
|
34
|
-
export interface IChannelResponse extends IResponse {
|
|
35
|
+
export interface IChannelResponse<T extends number = ChannelResult> extends IResponse<T> {
|
|
35
36
|
channel: IChannel;
|
|
36
37
|
suggestion_count: number;
|
|
37
38
|
}
|
|
@@ -44,7 +45,7 @@ export interface IChannelCreateRequest {
|
|
|
44
45
|
export interface ISubsciptionCountResponse extends IResponse {
|
|
45
46
|
subscription_count: number;
|
|
46
47
|
}
|
|
47
|
-
export interface IArticleCommentResponce extends IResponse {
|
|
48
|
+
export interface IArticleCommentResponce extends IResponse<CommentAddResult> {
|
|
48
49
|
comment: IArticleComment;
|
|
49
50
|
}
|
|
50
51
|
export interface IArticleTextBlock {
|
|
@@ -120,10 +121,10 @@ export interface IEmbedData extends IResponse {
|
|
|
120
121
|
height: number;
|
|
121
122
|
url: string;
|
|
122
123
|
}
|
|
123
|
-
export interface IArticleResponse extends IResponse {
|
|
124
|
+
export interface IArticleResponse<T extends number = ArticleResult> extends IResponse<T> {
|
|
124
125
|
article: IArticle;
|
|
125
126
|
}
|
|
126
|
-
export interface IArticleCreateResponse extends IResponse {
|
|
127
|
+
export interface IArticleCreateResponse extends IResponse<ArticleCreateEditResult> {
|
|
127
128
|
article: IArticle;
|
|
128
129
|
}
|
|
129
130
|
export interface IArticle {
|
|
@@ -162,18 +163,114 @@ export interface IChannelBlockInfo {
|
|
|
162
163
|
is_reason_showing_enabled: boolean;
|
|
163
164
|
is_perm_blocked: boolean;
|
|
164
165
|
}
|
|
165
|
-
export interface IChannelBlockInfoResponse extends IResponse {
|
|
166
|
+
export interface IChannelBlockInfoResponse extends IResponse<ChannelBlockResult> {
|
|
166
167
|
channel_block: IChannelBlockInfo | null;
|
|
167
168
|
}
|
|
168
169
|
export interface IChannelSearchRequest {
|
|
169
170
|
query: string;
|
|
170
|
-
permission
|
|
171
|
+
permission?: number;
|
|
171
172
|
is_blog: boolean;
|
|
172
|
-
|
|
173
|
+
is_subscribed: boolean;
|
|
174
|
+
}
|
|
175
|
+
export interface IArticleSearchRequest extends Omit<IBaseSearchRequest, "searchBy"> {
|
|
176
|
+
channel_id: number;
|
|
173
177
|
}
|
|
174
178
|
export interface IArticleComment extends IBaseComment {
|
|
175
179
|
article: IArticle;
|
|
176
180
|
}
|
|
177
|
-
export interface IChannelMediaTokenResponse extends IResponse {
|
|
181
|
+
export interface IChannelMediaTokenResponse extends IResponse<EditorAvaliableResult> {
|
|
178
182
|
media_upload_token: string;
|
|
179
183
|
}
|
|
184
|
+
export interface IFeedSearchResponse extends IResponse {
|
|
185
|
+
articles: IPageableResponse<IArticle>;
|
|
186
|
+
channels: IPageableResponse<IChannel>;
|
|
187
|
+
tags: IPageableResponse<string>;
|
|
188
|
+
blogs: IPageableResponse<IChannel>;
|
|
189
|
+
}
|
|
190
|
+
export interface IChannelSubscribersSearchRequest extends IBaseSearchRequest {
|
|
191
|
+
channel_id: number;
|
|
192
|
+
}
|
|
193
|
+
export interface IChannelPermissionManageRequest {
|
|
194
|
+
target_profile_id: number;
|
|
195
|
+
permission: number;
|
|
196
|
+
}
|
|
197
|
+
export declare enum ArticleCreateEditResult {
|
|
198
|
+
InvalidRepostArticle = 2,
|
|
199
|
+
InvalidPayload = 3,
|
|
200
|
+
InvalidTags = 4,
|
|
201
|
+
TemporarilyDisabled = 5,
|
|
202
|
+
ArticleLimitReached = 6,
|
|
203
|
+
ChannelNotFound = 7,
|
|
204
|
+
ChannelNotOwned = 8,
|
|
205
|
+
ChannelCreatorBanned = 9,
|
|
206
|
+
ChannelBlocked = 10,
|
|
207
|
+
ArticleNotFound = 11,
|
|
208
|
+
ArticleDeleted = 12,
|
|
209
|
+
BlogNotCreated = 13
|
|
210
|
+
}
|
|
211
|
+
export declare enum ArticleDeleteResult {
|
|
212
|
+
ArticleNotFound = 2,
|
|
213
|
+
ArticleNotOwned = 3,
|
|
214
|
+
ArticleDeleted = 4
|
|
215
|
+
}
|
|
216
|
+
export declare enum ArticleResult {
|
|
217
|
+
ArticleDeleted = 2
|
|
218
|
+
}
|
|
219
|
+
export declare enum BlogCreateResult {
|
|
220
|
+
ReputationLevelTooLow = 2
|
|
221
|
+
}
|
|
222
|
+
export declare enum ChannelCreateEditResult {
|
|
223
|
+
InvalidTitle = 2,
|
|
224
|
+
InvalidDescription = 3,
|
|
225
|
+
ChannelLimitReached = 4,
|
|
226
|
+
ChannelNotFound = 5,
|
|
227
|
+
ChannelNotOwned = 6,
|
|
228
|
+
ChannelCreatorBanned = 7
|
|
229
|
+
}
|
|
230
|
+
export declare enum ChannelPermissionManageResult {
|
|
231
|
+
PermissionInvalid = 2,
|
|
232
|
+
TargetProfileNotFound = 3,
|
|
233
|
+
ChannelNotFound = 4,
|
|
234
|
+
ChannelNotOwned = 5
|
|
235
|
+
}
|
|
236
|
+
export declare enum ChannelResult {
|
|
237
|
+
ChannelNotFound = 2
|
|
238
|
+
}
|
|
239
|
+
export declare enum ChannelSubscribeResult {
|
|
240
|
+
SubscriptionExists = 2,
|
|
241
|
+
SubscriptionLimitReached = 3
|
|
242
|
+
}
|
|
243
|
+
export declare enum ChannelUnsubscribeResult {
|
|
244
|
+
SubscriptionNotExists = 2
|
|
245
|
+
}
|
|
246
|
+
export declare enum ChannelBlockResult {
|
|
247
|
+
ChannelNotFound = 2,
|
|
248
|
+
ChannelNotOwned = 3,
|
|
249
|
+
BlockNotFound = 4
|
|
250
|
+
}
|
|
251
|
+
export declare enum ChannelUploadCoverAvatarResult {
|
|
252
|
+
ChannelNotFound = 2,
|
|
253
|
+
ChannelNotOwned = 3
|
|
254
|
+
}
|
|
255
|
+
export declare enum EditorAvaliableResult {
|
|
256
|
+
TemporarilyDisabled = 2,
|
|
257
|
+
ArticleLimitReached = 3,
|
|
258
|
+
ChannelNotFound = 4,
|
|
259
|
+
ChannelNotOwned = 5,
|
|
260
|
+
ChannelCreatorBanned = 6,
|
|
261
|
+
BlogNotCreated = 7
|
|
262
|
+
}
|
|
263
|
+
export declare enum ArticleSuggestionPublishResult {
|
|
264
|
+
ArticleSuggestionNotFound = 2,
|
|
265
|
+
ChannelNotFound = 3,
|
|
266
|
+
ChannelNotOwned = 4,
|
|
267
|
+
InvalidPayload = 5,
|
|
268
|
+
InvalidTags = 6,
|
|
269
|
+
ChannelCreatorBanned = 7,
|
|
270
|
+
TemporarilyDisabled = 8,
|
|
271
|
+
BlogNotCreated = 9
|
|
272
|
+
}
|
|
273
|
+
export declare enum ArticleSuggestionDeleteResult {
|
|
274
|
+
ArticleSuggestionNotFound = 2,
|
|
275
|
+
ArticleSuggestionNotOwned = 3
|
|
276
|
+
}
|
package/dist/types/channel.js
CHANGED
|
@@ -1,2 +1,97 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArticleSuggestionDeleteResult = exports.ArticleSuggestionPublishResult = exports.EditorAvaliableResult = exports.ChannelUploadCoverAvatarResult = exports.ChannelBlockResult = exports.ChannelUnsubscribeResult = exports.ChannelSubscribeResult = exports.ChannelResult = exports.ChannelPermissionManageResult = exports.ChannelCreateEditResult = exports.BlogCreateResult = exports.ArticleResult = exports.ArticleDeleteResult = exports.ArticleCreateEditResult = void 0;
|
|
4
|
+
var ArticleCreateEditResult;
|
|
5
|
+
(function (ArticleCreateEditResult) {
|
|
6
|
+
ArticleCreateEditResult[ArticleCreateEditResult["InvalidRepostArticle"] = 2] = "InvalidRepostArticle";
|
|
7
|
+
ArticleCreateEditResult[ArticleCreateEditResult["InvalidPayload"] = 3] = "InvalidPayload";
|
|
8
|
+
ArticleCreateEditResult[ArticleCreateEditResult["InvalidTags"] = 4] = "InvalidTags";
|
|
9
|
+
ArticleCreateEditResult[ArticleCreateEditResult["TemporarilyDisabled"] = 5] = "TemporarilyDisabled";
|
|
10
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ArticleLimitReached"] = 6] = "ArticleLimitReached";
|
|
11
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ChannelNotFound"] = 7] = "ChannelNotFound";
|
|
12
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ChannelNotOwned"] = 8] = "ChannelNotOwned";
|
|
13
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ChannelCreatorBanned"] = 9] = "ChannelCreatorBanned";
|
|
14
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ChannelBlocked"] = 10] = "ChannelBlocked";
|
|
15
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ArticleNotFound"] = 11] = "ArticleNotFound";
|
|
16
|
+
ArticleCreateEditResult[ArticleCreateEditResult["ArticleDeleted"] = 12] = "ArticleDeleted";
|
|
17
|
+
ArticleCreateEditResult[ArticleCreateEditResult["BlogNotCreated"] = 13] = "BlogNotCreated";
|
|
18
|
+
})(ArticleCreateEditResult || (exports.ArticleCreateEditResult = ArticleCreateEditResult = {}));
|
|
19
|
+
var ArticleDeleteResult;
|
|
20
|
+
(function (ArticleDeleteResult) {
|
|
21
|
+
ArticleDeleteResult[ArticleDeleteResult["ArticleNotFound"] = 2] = "ArticleNotFound";
|
|
22
|
+
ArticleDeleteResult[ArticleDeleteResult["ArticleNotOwned"] = 3] = "ArticleNotOwned";
|
|
23
|
+
ArticleDeleteResult[ArticleDeleteResult["ArticleDeleted"] = 4] = "ArticleDeleted";
|
|
24
|
+
})(ArticleDeleteResult || (exports.ArticleDeleteResult = ArticleDeleteResult = {}));
|
|
25
|
+
var ArticleResult;
|
|
26
|
+
(function (ArticleResult) {
|
|
27
|
+
ArticleResult[ArticleResult["ArticleDeleted"] = 2] = "ArticleDeleted";
|
|
28
|
+
})(ArticleResult || (exports.ArticleResult = ArticleResult = {}));
|
|
29
|
+
var BlogCreateResult;
|
|
30
|
+
(function (BlogCreateResult) {
|
|
31
|
+
BlogCreateResult[BlogCreateResult["ReputationLevelTooLow"] = 2] = "ReputationLevelTooLow";
|
|
32
|
+
})(BlogCreateResult || (exports.BlogCreateResult = BlogCreateResult = {}));
|
|
33
|
+
var ChannelCreateEditResult;
|
|
34
|
+
(function (ChannelCreateEditResult) {
|
|
35
|
+
ChannelCreateEditResult[ChannelCreateEditResult["InvalidTitle"] = 2] = "InvalidTitle";
|
|
36
|
+
ChannelCreateEditResult[ChannelCreateEditResult["InvalidDescription"] = 3] = "InvalidDescription";
|
|
37
|
+
ChannelCreateEditResult[ChannelCreateEditResult["ChannelLimitReached"] = 4] = "ChannelLimitReached";
|
|
38
|
+
ChannelCreateEditResult[ChannelCreateEditResult["ChannelNotFound"] = 5] = "ChannelNotFound";
|
|
39
|
+
ChannelCreateEditResult[ChannelCreateEditResult["ChannelNotOwned"] = 6] = "ChannelNotOwned";
|
|
40
|
+
ChannelCreateEditResult[ChannelCreateEditResult["ChannelCreatorBanned"] = 7] = "ChannelCreatorBanned";
|
|
41
|
+
})(ChannelCreateEditResult || (exports.ChannelCreateEditResult = ChannelCreateEditResult = {}));
|
|
42
|
+
var ChannelPermissionManageResult;
|
|
43
|
+
(function (ChannelPermissionManageResult) {
|
|
44
|
+
ChannelPermissionManageResult[ChannelPermissionManageResult["PermissionInvalid"] = 2] = "PermissionInvalid";
|
|
45
|
+
ChannelPermissionManageResult[ChannelPermissionManageResult["TargetProfileNotFound"] = 3] = "TargetProfileNotFound";
|
|
46
|
+
ChannelPermissionManageResult[ChannelPermissionManageResult["ChannelNotFound"] = 4] = "ChannelNotFound";
|
|
47
|
+
ChannelPermissionManageResult[ChannelPermissionManageResult["ChannelNotOwned"] = 5] = "ChannelNotOwned";
|
|
48
|
+
})(ChannelPermissionManageResult || (exports.ChannelPermissionManageResult = ChannelPermissionManageResult = {}));
|
|
49
|
+
var ChannelResult;
|
|
50
|
+
(function (ChannelResult) {
|
|
51
|
+
ChannelResult[ChannelResult["ChannelNotFound"] = 2] = "ChannelNotFound";
|
|
52
|
+
})(ChannelResult || (exports.ChannelResult = ChannelResult = {}));
|
|
53
|
+
var ChannelSubscribeResult;
|
|
54
|
+
(function (ChannelSubscribeResult) {
|
|
55
|
+
ChannelSubscribeResult[ChannelSubscribeResult["SubscriptionExists"] = 2] = "SubscriptionExists";
|
|
56
|
+
ChannelSubscribeResult[ChannelSubscribeResult["SubscriptionLimitReached"] = 3] = "SubscriptionLimitReached";
|
|
57
|
+
})(ChannelSubscribeResult || (exports.ChannelSubscribeResult = ChannelSubscribeResult = {}));
|
|
58
|
+
var ChannelUnsubscribeResult;
|
|
59
|
+
(function (ChannelUnsubscribeResult) {
|
|
60
|
+
ChannelUnsubscribeResult[ChannelUnsubscribeResult["SubscriptionNotExists"] = 2] = "SubscriptionNotExists";
|
|
61
|
+
})(ChannelUnsubscribeResult || (exports.ChannelUnsubscribeResult = ChannelUnsubscribeResult = {}));
|
|
62
|
+
var ChannelBlockResult;
|
|
63
|
+
(function (ChannelBlockResult) {
|
|
64
|
+
ChannelBlockResult[ChannelBlockResult["ChannelNotFound"] = 2] = "ChannelNotFound";
|
|
65
|
+
ChannelBlockResult[ChannelBlockResult["ChannelNotOwned"] = 3] = "ChannelNotOwned";
|
|
66
|
+
ChannelBlockResult[ChannelBlockResult["BlockNotFound"] = 4] = "BlockNotFound";
|
|
67
|
+
})(ChannelBlockResult || (exports.ChannelBlockResult = ChannelBlockResult = {}));
|
|
68
|
+
var ChannelUploadCoverAvatarResult;
|
|
69
|
+
(function (ChannelUploadCoverAvatarResult) {
|
|
70
|
+
ChannelUploadCoverAvatarResult[ChannelUploadCoverAvatarResult["ChannelNotFound"] = 2] = "ChannelNotFound";
|
|
71
|
+
ChannelUploadCoverAvatarResult[ChannelUploadCoverAvatarResult["ChannelNotOwned"] = 3] = "ChannelNotOwned";
|
|
72
|
+
})(ChannelUploadCoverAvatarResult || (exports.ChannelUploadCoverAvatarResult = ChannelUploadCoverAvatarResult = {}));
|
|
73
|
+
var EditorAvaliableResult;
|
|
74
|
+
(function (EditorAvaliableResult) {
|
|
75
|
+
EditorAvaliableResult[EditorAvaliableResult["TemporarilyDisabled"] = 2] = "TemporarilyDisabled";
|
|
76
|
+
EditorAvaliableResult[EditorAvaliableResult["ArticleLimitReached"] = 3] = "ArticleLimitReached";
|
|
77
|
+
EditorAvaliableResult[EditorAvaliableResult["ChannelNotFound"] = 4] = "ChannelNotFound";
|
|
78
|
+
EditorAvaliableResult[EditorAvaliableResult["ChannelNotOwned"] = 5] = "ChannelNotOwned";
|
|
79
|
+
EditorAvaliableResult[EditorAvaliableResult["ChannelCreatorBanned"] = 6] = "ChannelCreatorBanned";
|
|
80
|
+
EditorAvaliableResult[EditorAvaliableResult["BlogNotCreated"] = 7] = "BlogNotCreated";
|
|
81
|
+
})(EditorAvaliableResult || (exports.EditorAvaliableResult = EditorAvaliableResult = {}));
|
|
82
|
+
var ArticleSuggestionPublishResult;
|
|
83
|
+
(function (ArticleSuggestionPublishResult) {
|
|
84
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["ArticleSuggestionNotFound"] = 2] = "ArticleSuggestionNotFound";
|
|
85
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["ChannelNotFound"] = 3] = "ChannelNotFound";
|
|
86
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["ChannelNotOwned"] = 4] = "ChannelNotOwned";
|
|
87
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["InvalidPayload"] = 5] = "InvalidPayload";
|
|
88
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["InvalidTags"] = 6] = "InvalidTags";
|
|
89
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["ChannelCreatorBanned"] = 7] = "ChannelCreatorBanned";
|
|
90
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["TemporarilyDisabled"] = 8] = "TemporarilyDisabled";
|
|
91
|
+
ArticleSuggestionPublishResult[ArticleSuggestionPublishResult["BlogNotCreated"] = 9] = "BlogNotCreated";
|
|
92
|
+
})(ArticleSuggestionPublishResult || (exports.ArticleSuggestionPublishResult = ArticleSuggestionPublishResult = {}));
|
|
93
|
+
var ArticleSuggestionDeleteResult;
|
|
94
|
+
(function (ArticleSuggestionDeleteResult) {
|
|
95
|
+
ArticleSuggestionDeleteResult[ArticleSuggestionDeleteResult["ArticleSuggestionNotFound"] = 2] = "ArticleSuggestionNotFound";
|
|
96
|
+
ArticleSuggestionDeleteResult[ArticleSuggestionDeleteResult["ArticleSuggestionNotOwned"] = 3] = "ArticleSuggestionNotOwned";
|
|
97
|
+
})(ArticleSuggestionDeleteResult || (exports.ArticleSuggestionDeleteResult = ArticleSuggestionDeleteResult = {}));
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IProfile } from "./profile";
|
|
2
2
|
import { IRelease } from "./release";
|
|
3
|
-
import { IResponse } from "./response";
|
|
3
|
+
import { IBaseComment, IResponse } from "./response";
|
|
4
4
|
import { IBaseRequestPageable } from "./request";
|
|
5
|
-
import { BaseComment } from "../classes/BaseComment";
|
|
6
5
|
export interface ICollection {
|
|
7
6
|
'@id': number;
|
|
8
7
|
id: number;
|
|
@@ -19,7 +18,7 @@ export interface ICollection {
|
|
|
19
18
|
is_favorite: boolean;
|
|
20
19
|
releases: IRelease[];
|
|
21
20
|
}
|
|
22
|
-
export interface ICollectionResponse extends IResponse {
|
|
21
|
+
export interface ICollectionResponse<T extends number = CollectionResult> extends IResponse<T> {
|
|
23
22
|
collection: ICollection;
|
|
24
23
|
watching_count: number;
|
|
25
24
|
plan_count: number;
|
|
@@ -37,6 +36,41 @@ export interface ICollectionCreateRequest {
|
|
|
37
36
|
releases: number[];
|
|
38
37
|
is_private: boolean;
|
|
39
38
|
}
|
|
40
|
-
export interface ICollectionComment extends
|
|
39
|
+
export interface ICollectionComment extends IBaseComment {
|
|
41
40
|
collection: ICollection;
|
|
42
41
|
}
|
|
42
|
+
export declare enum CollectionResult {
|
|
43
|
+
InvalidId = 2,
|
|
44
|
+
IsPrivate = 3,
|
|
45
|
+
IsDeleted = 4
|
|
46
|
+
}
|
|
47
|
+
export declare enum FavoriteCollectionAddResult {
|
|
48
|
+
CollectionNotFound = 2,
|
|
49
|
+
CollectionAlreadyInFavorite = 3
|
|
50
|
+
}
|
|
51
|
+
export declare enum FavoriteCollectionDeleteResult {
|
|
52
|
+
CollectionNotFound = 2
|
|
53
|
+
}
|
|
54
|
+
export declare enum CollectionCreateEditResult {
|
|
55
|
+
InvalidTitle = 2,
|
|
56
|
+
InvalidDescription = 3,
|
|
57
|
+
InvalidReleases = 4,
|
|
58
|
+
CollectionLimitReached = 5,
|
|
59
|
+
CollectionNotFound = 6,
|
|
60
|
+
CollectionNotOwned = 7,
|
|
61
|
+
CollectionDeleted = 8,
|
|
62
|
+
ReleaseLimitReached = 9
|
|
63
|
+
}
|
|
64
|
+
export declare enum ReleaseAddCollectionResult {
|
|
65
|
+
CollectionNotFound = 2,
|
|
66
|
+
CollectionNotOwned = 3,
|
|
67
|
+
InvalidRelease = 4,
|
|
68
|
+
ReleaseAlreadyInCollection = 5,
|
|
69
|
+
CollectionDeleted = 6,
|
|
70
|
+
ReleaseLimitReached = 7
|
|
71
|
+
}
|
|
72
|
+
export declare enum CollectionDeleteResult {
|
|
73
|
+
CollectionNotFound = 2,
|
|
74
|
+
CollectionNotOwned = 3,
|
|
75
|
+
CollectionDeleted = 4
|
|
76
|
+
}
|
package/dist/types/collection.js
CHANGED
|
@@ -1,2 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollectionDeleteResult = exports.ReleaseAddCollectionResult = exports.CollectionCreateEditResult = exports.FavoriteCollectionDeleteResult = exports.FavoriteCollectionAddResult = exports.CollectionResult = void 0;
|
|
4
|
+
var CollectionResult;
|
|
5
|
+
(function (CollectionResult) {
|
|
6
|
+
CollectionResult[CollectionResult["InvalidId"] = 2] = "InvalidId";
|
|
7
|
+
CollectionResult[CollectionResult["IsPrivate"] = 3] = "IsPrivate";
|
|
8
|
+
CollectionResult[CollectionResult["IsDeleted"] = 4] = "IsDeleted";
|
|
9
|
+
})(CollectionResult || (exports.CollectionResult = CollectionResult = {}));
|
|
10
|
+
var FavoriteCollectionAddResult;
|
|
11
|
+
(function (FavoriteCollectionAddResult) {
|
|
12
|
+
FavoriteCollectionAddResult[FavoriteCollectionAddResult["CollectionNotFound"] = 2] = "CollectionNotFound";
|
|
13
|
+
FavoriteCollectionAddResult[FavoriteCollectionAddResult["CollectionAlreadyInFavorite"] = 3] = "CollectionAlreadyInFavorite";
|
|
14
|
+
})(FavoriteCollectionAddResult || (exports.FavoriteCollectionAddResult = FavoriteCollectionAddResult = {}));
|
|
15
|
+
var FavoriteCollectionDeleteResult;
|
|
16
|
+
(function (FavoriteCollectionDeleteResult) {
|
|
17
|
+
FavoriteCollectionDeleteResult[FavoriteCollectionDeleteResult["CollectionNotFound"] = 2] = "CollectionNotFound";
|
|
18
|
+
})(FavoriteCollectionDeleteResult || (exports.FavoriteCollectionDeleteResult = FavoriteCollectionDeleteResult = {}));
|
|
19
|
+
var CollectionCreateEditResult;
|
|
20
|
+
(function (CollectionCreateEditResult) {
|
|
21
|
+
CollectionCreateEditResult[CollectionCreateEditResult["InvalidTitle"] = 2] = "InvalidTitle";
|
|
22
|
+
CollectionCreateEditResult[CollectionCreateEditResult["InvalidDescription"] = 3] = "InvalidDescription";
|
|
23
|
+
CollectionCreateEditResult[CollectionCreateEditResult["InvalidReleases"] = 4] = "InvalidReleases";
|
|
24
|
+
CollectionCreateEditResult[CollectionCreateEditResult["CollectionLimitReached"] = 5] = "CollectionLimitReached";
|
|
25
|
+
CollectionCreateEditResult[CollectionCreateEditResult["CollectionNotFound"] = 6] = "CollectionNotFound";
|
|
26
|
+
CollectionCreateEditResult[CollectionCreateEditResult["CollectionNotOwned"] = 7] = "CollectionNotOwned";
|
|
27
|
+
CollectionCreateEditResult[CollectionCreateEditResult["CollectionDeleted"] = 8] = "CollectionDeleted";
|
|
28
|
+
CollectionCreateEditResult[CollectionCreateEditResult["ReleaseLimitReached"] = 9] = "ReleaseLimitReached";
|
|
29
|
+
})(CollectionCreateEditResult || (exports.CollectionCreateEditResult = CollectionCreateEditResult = {}));
|
|
30
|
+
var ReleaseAddCollectionResult;
|
|
31
|
+
(function (ReleaseAddCollectionResult) {
|
|
32
|
+
ReleaseAddCollectionResult[ReleaseAddCollectionResult["CollectionNotFound"] = 2] = "CollectionNotFound";
|
|
33
|
+
ReleaseAddCollectionResult[ReleaseAddCollectionResult["CollectionNotOwned"] = 3] = "CollectionNotOwned";
|
|
34
|
+
ReleaseAddCollectionResult[ReleaseAddCollectionResult["InvalidRelease"] = 4] = "InvalidRelease";
|
|
35
|
+
ReleaseAddCollectionResult[ReleaseAddCollectionResult["ReleaseAlreadyInCollection"] = 5] = "ReleaseAlreadyInCollection";
|
|
36
|
+
ReleaseAddCollectionResult[ReleaseAddCollectionResult["CollectionDeleted"] = 6] = "CollectionDeleted";
|
|
37
|
+
ReleaseAddCollectionResult[ReleaseAddCollectionResult["ReleaseLimitReached"] = 7] = "ReleaseLimitReached";
|
|
38
|
+
})(ReleaseAddCollectionResult || (exports.ReleaseAddCollectionResult = ReleaseAddCollectionResult = {}));
|
|
39
|
+
var CollectionDeleteResult;
|
|
40
|
+
(function (CollectionDeleteResult) {
|
|
41
|
+
CollectionDeleteResult[CollectionDeleteResult["CollectionNotFound"] = 2] = "CollectionNotFound";
|
|
42
|
+
CollectionDeleteResult[CollectionDeleteResult["CollectionNotOwned"] = 3] = "CollectionNotOwned";
|
|
43
|
+
CollectionDeleteResult[CollectionDeleteResult["CollectionDeleted"] = 4] = "CollectionDeleted";
|
|
44
|
+
})(CollectionDeleteResult || (exports.CollectionDeleteResult = CollectionDeleteResult = {}));
|
|
@@ -16,6 +16,10 @@ export interface IFriendNotification extends IBaseNotification {
|
|
|
16
16
|
status: string;
|
|
17
17
|
by_profile: IProfile;
|
|
18
18
|
}
|
|
19
|
+
export interface IArticleNotification extends IBaseNotification {
|
|
20
|
+
'@id': number;
|
|
21
|
+
article: number;
|
|
22
|
+
}
|
|
19
23
|
export interface IRelatedReleaseNotification extends IBaseNotification {
|
|
20
24
|
'@id': number;
|
|
21
25
|
release: IRelease | number;
|
package/dist/types/profile.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface IBookmarkRequest extends IBaseRequestPageable {
|
|
|
21
21
|
id: number;
|
|
22
22
|
type: BookmarkType;
|
|
23
23
|
sort: BookmarkSortType;
|
|
24
|
-
filter
|
|
24
|
+
filter?: number;
|
|
25
25
|
}
|
|
26
26
|
export interface IProfileToken {
|
|
27
27
|
id: string;
|
|
@@ -137,6 +137,23 @@ export interface IProfileShort {
|
|
|
137
137
|
friend_status: number;
|
|
138
138
|
friend_count: number;
|
|
139
139
|
}
|
|
140
|
+
export interface IProfileChannel {
|
|
141
|
+
id: number;
|
|
142
|
+
login: string;
|
|
143
|
+
avatar: string;
|
|
144
|
+
permission_creation_date: number;
|
|
145
|
+
permission: number;
|
|
146
|
+
badge_name: string | null;
|
|
147
|
+
badge_type: number | null;
|
|
148
|
+
badge_url: string | null;
|
|
149
|
+
is_blocked: boolean;
|
|
150
|
+
is_sponsor: boolean;
|
|
151
|
+
is_verified: boolean;
|
|
152
|
+
is_perm_blocked: boolean;
|
|
153
|
+
channel_id: number;
|
|
154
|
+
block_reason: string | null;
|
|
155
|
+
block_expire_date: number | null;
|
|
156
|
+
}
|
|
140
157
|
export interface IProfileResponse extends IResponse {
|
|
141
158
|
profile: IProfile;
|
|
142
159
|
is_my_profile: boolean;
|
|
@@ -144,8 +161,8 @@ export interface IProfileResponse extends IResponse {
|
|
|
144
161
|
export interface IFriendsRequest extends IBaseRequestPageable {
|
|
145
162
|
id: number;
|
|
146
163
|
}
|
|
147
|
-
export interface IFriendRequestResponse extends IResponse {
|
|
148
|
-
friend_status:
|
|
164
|
+
export interface IFriendRequestResponse<T extends number = SendFriendRequestResult> extends IResponse {
|
|
165
|
+
friend_status: T | null;
|
|
149
166
|
}
|
|
150
167
|
export interface IBadge {
|
|
151
168
|
id: number;
|
|
@@ -168,3 +185,24 @@ export interface ISocialResponse extends IResponse {
|
|
|
168
185
|
tt_page: string;
|
|
169
186
|
discord_page: string;
|
|
170
187
|
}
|
|
188
|
+
export declare enum SendFriendRequestResult {
|
|
189
|
+
RequestConfirmed = 2,
|
|
190
|
+
RequestSent = 3,
|
|
191
|
+
ProfileWasBlocked = 4,
|
|
192
|
+
MyProfileWasBlocked = 5,
|
|
193
|
+
FriendLimitReached = 6,
|
|
194
|
+
TargetFriendLimitReached = 7,
|
|
195
|
+
TargetFriendRequestsDisallowed = 8,
|
|
196
|
+
FriendRequestLimitReached = 9
|
|
197
|
+
}
|
|
198
|
+
export declare enum RemoveFriendRequestResult {
|
|
199
|
+
RequestRemoved = 2,
|
|
200
|
+
FriendshipRemoved = 3
|
|
201
|
+
}
|
|
202
|
+
export declare enum AchivementResult {
|
|
203
|
+
AlreadyGranted = 2,
|
|
204
|
+
AchivementNotFound = 3
|
|
205
|
+
}
|
|
206
|
+
export declare enum BlocklistAddResult {
|
|
207
|
+
AlreadyInBlocklist = 2
|
|
208
|
+
}
|
package/dist/types/profile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//Thanks Nekonyx for this types (https://github.com/Nekonyx/anixart-api/blob/master/src/contracts/profile.ts)
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BookmarkSortType = exports.BookmarkType = void 0;
|
|
4
|
+
exports.BlocklistAddResult = exports.AchivementResult = exports.RemoveFriendRequestResult = exports.SendFriendRequestResult = exports.BookmarkSortType = exports.BookmarkType = void 0;
|
|
5
5
|
var BookmarkType;
|
|
6
6
|
(function (BookmarkType) {
|
|
7
7
|
BookmarkType[BookmarkType["Watching"] = 1] = "Watching";
|
|
@@ -19,3 +19,28 @@ var BookmarkSortType;
|
|
|
19
19
|
BookmarkSortType[BookmarkSortType["AlpabetInAToZ"] = 5] = "AlpabetInAToZ";
|
|
20
20
|
BookmarkSortType[BookmarkSortType["AlpabetInZToA"] = 6] = "AlpabetInZToA";
|
|
21
21
|
})(BookmarkSortType || (exports.BookmarkSortType = BookmarkSortType = {}));
|
|
22
|
+
var SendFriendRequestResult;
|
|
23
|
+
(function (SendFriendRequestResult) {
|
|
24
|
+
SendFriendRequestResult[SendFriendRequestResult["RequestConfirmed"] = 2] = "RequestConfirmed";
|
|
25
|
+
SendFriendRequestResult[SendFriendRequestResult["RequestSent"] = 3] = "RequestSent";
|
|
26
|
+
SendFriendRequestResult[SendFriendRequestResult["ProfileWasBlocked"] = 4] = "ProfileWasBlocked";
|
|
27
|
+
SendFriendRequestResult[SendFriendRequestResult["MyProfileWasBlocked"] = 5] = "MyProfileWasBlocked";
|
|
28
|
+
SendFriendRequestResult[SendFriendRequestResult["FriendLimitReached"] = 6] = "FriendLimitReached";
|
|
29
|
+
SendFriendRequestResult[SendFriendRequestResult["TargetFriendLimitReached"] = 7] = "TargetFriendLimitReached";
|
|
30
|
+
SendFriendRequestResult[SendFriendRequestResult["TargetFriendRequestsDisallowed"] = 8] = "TargetFriendRequestsDisallowed";
|
|
31
|
+
SendFriendRequestResult[SendFriendRequestResult["FriendRequestLimitReached"] = 9] = "FriendRequestLimitReached";
|
|
32
|
+
})(SendFriendRequestResult || (exports.SendFriendRequestResult = SendFriendRequestResult = {}));
|
|
33
|
+
var RemoveFriendRequestResult;
|
|
34
|
+
(function (RemoveFriendRequestResult) {
|
|
35
|
+
RemoveFriendRequestResult[RemoveFriendRequestResult["RequestRemoved"] = 2] = "RequestRemoved";
|
|
36
|
+
RemoveFriendRequestResult[RemoveFriendRequestResult["FriendshipRemoved"] = 3] = "FriendshipRemoved";
|
|
37
|
+
})(RemoveFriendRequestResult || (exports.RemoveFriendRequestResult = RemoveFriendRequestResult = {}));
|
|
38
|
+
var AchivementResult;
|
|
39
|
+
(function (AchivementResult) {
|
|
40
|
+
AchivementResult[AchivementResult["AlreadyGranted"] = 2] = "AlreadyGranted";
|
|
41
|
+
AchivementResult[AchivementResult["AchivementNotFound"] = 3] = "AchivementNotFound";
|
|
42
|
+
})(AchivementResult || (exports.AchivementResult = AchivementResult = {}));
|
|
43
|
+
var BlocklistAddResult;
|
|
44
|
+
(function (BlocklistAddResult) {
|
|
45
|
+
BlocklistAddResult[BlocklistAddResult["AlreadyInBlocklist"] = 2] = "AlreadyInBlocklist";
|
|
46
|
+
})(BlocklistAddResult || (exports.BlocklistAddResult = BlocklistAddResult = {}));
|
package/dist/types/release.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IPageableResponse, IResponse, IBaseComment } from './response';
|
|
2
|
-
import { IProfile } from './profile';
|
|
3
|
-
import { IBaseRequestPageable } from './request';
|
|
1
|
+
import { IPageableResponse, IResponse, IBaseComment, CommentAddResult } from './response';
|
|
2
|
+
import { IProfile, BookmarkType } from './profile';
|
|
3
|
+
import { IBaseRequestPageable, IBaseSearchRequest } from './request';
|
|
4
4
|
export declare enum ReleaseCategory {
|
|
5
5
|
Unknown = 0,
|
|
6
6
|
Series = 1,
|
|
@@ -18,6 +18,13 @@ export declare enum ReleaseStatus {
|
|
|
18
18
|
Airing = 2,
|
|
19
19
|
Announced = 3
|
|
20
20
|
}
|
|
21
|
+
export declare enum ReleaseVideoResult {
|
|
22
|
+
InvalidReleaseId = 2
|
|
23
|
+
}
|
|
24
|
+
export declare enum BookmarkExportResult {
|
|
25
|
+
InvalidProfileLists = 2,
|
|
26
|
+
InvalidExtraFields = 3
|
|
27
|
+
}
|
|
21
28
|
export interface ICommentRepliesRequest extends IBaseRequestPageable {
|
|
22
29
|
id: number;
|
|
23
30
|
sort: number;
|
|
@@ -201,7 +208,7 @@ export interface IVideo {
|
|
|
201
208
|
is_favorite: boolean;
|
|
202
209
|
favorites_count: number;
|
|
203
210
|
}
|
|
204
|
-
export interface IVideoResponse extends IResponse {
|
|
211
|
+
export interface IVideoResponse extends IResponse<ReleaseVideoResult> {
|
|
205
212
|
release: IRelease;
|
|
206
213
|
blocks: IVideo[];
|
|
207
214
|
streaming_platforms: IVideoStreamingPlatform[];
|
|
@@ -229,7 +236,7 @@ export interface ICommentReleaseRequest extends IBaseRequestPageable {
|
|
|
229
236
|
id: number;
|
|
230
237
|
sort: number;
|
|
231
238
|
}
|
|
232
|
-
export interface ICommentReleaseResponse extends IResponse {
|
|
239
|
+
export interface ICommentReleaseResponse extends IResponse<CommentAddResult> {
|
|
233
240
|
comment: ICommentRelease;
|
|
234
241
|
}
|
|
235
242
|
export interface ICommentRelease extends IBaseComment {
|
|
@@ -287,3 +294,26 @@ export interface IInterestingRelease {
|
|
|
287
294
|
action: string;
|
|
288
295
|
is_hidden: boolean;
|
|
289
296
|
}
|
|
297
|
+
export interface ILastEpisodeUpdate {
|
|
298
|
+
last_episode_update_date: number;
|
|
299
|
+
last_episode_update_name: string;
|
|
300
|
+
last_episode_source_update_id: number;
|
|
301
|
+
last_episode_source_update_name: string;
|
|
302
|
+
last_episode_type_update_id: number;
|
|
303
|
+
lastEpisodeTypeUpdateName: string;
|
|
304
|
+
}
|
|
305
|
+
export interface IExportBookmarksResponse extends IResponse<BookmarkExportResult> {
|
|
306
|
+
releases: IExportRelease[];
|
|
307
|
+
}
|
|
308
|
+
export interface IExportRelease {
|
|
309
|
+
id: number;
|
|
310
|
+
title_alt: string;
|
|
311
|
+
title_ru: string;
|
|
312
|
+
title_original: string;
|
|
313
|
+
your_vote: number | null;
|
|
314
|
+
profile_list_status: number;
|
|
315
|
+
is_favorite: boolean;
|
|
316
|
+
}
|
|
317
|
+
export interface IReleasesInBookmarksSearchRequest extends IBaseSearchRequest {
|
|
318
|
+
type: BookmarkType;
|
|
319
|
+
}
|
package/dist/types/release.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReleaseStatus = exports.VoteType = exports.ReleaseCategory = void 0;
|
|
3
|
+
exports.BookmarkExportResult = exports.ReleaseVideoResult = exports.ReleaseStatus = exports.VoteType = exports.ReleaseCategory = void 0;
|
|
4
4
|
var ReleaseCategory;
|
|
5
5
|
(function (ReleaseCategory) {
|
|
6
6
|
ReleaseCategory[ReleaseCategory["Unknown"] = 0] = "Unknown";
|
|
@@ -21,3 +21,12 @@ var ReleaseStatus;
|
|
|
21
21
|
ReleaseStatus[ReleaseStatus["Airing"] = 2] = "Airing";
|
|
22
22
|
ReleaseStatus[ReleaseStatus["Announced"] = 3] = "Announced";
|
|
23
23
|
})(ReleaseStatus || (exports.ReleaseStatus = ReleaseStatus = {}));
|
|
24
|
+
var ReleaseVideoResult;
|
|
25
|
+
(function (ReleaseVideoResult) {
|
|
26
|
+
ReleaseVideoResult[ReleaseVideoResult["InvalidReleaseId"] = 2] = "InvalidReleaseId";
|
|
27
|
+
})(ReleaseVideoResult || (exports.ReleaseVideoResult = ReleaseVideoResult = {}));
|
|
28
|
+
var BookmarkExportResult;
|
|
29
|
+
(function (BookmarkExportResult) {
|
|
30
|
+
BookmarkExportResult[BookmarkExportResult["InvalidProfileLists"] = 2] = "InvalidProfileLists";
|
|
31
|
+
BookmarkExportResult[BookmarkExportResult["InvalidExtraFields"] = 3] = "InvalidExtraFields";
|
|
32
|
+
})(BookmarkExportResult || (exports.BookmarkExportResult = BookmarkExportResult = {}));
|
package/dist/types/response.d.ts
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { IDubber, IRelease } from "./release";
|
|
2
2
|
import { IProfileShort } from "./profile";
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum DefaultResult {
|
|
4
4
|
Ok = 0,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
RateLimit = 401,
|
|
5
|
+
UnexpectedError = 1,
|
|
6
|
+
Unauthorized = 401,
|
|
8
7
|
Ban = 402,
|
|
9
8
|
PermBan = 403
|
|
10
9
|
}
|
|
11
|
-
export interface IResponse {
|
|
12
|
-
code:
|
|
10
|
+
export interface IResponse<T extends number = DefaultResult> {
|
|
11
|
+
code: DefaultResult | T;
|
|
12
|
+
}
|
|
13
|
+
export declare enum CommentAddResult {
|
|
14
|
+
EmbeddableNotFound = 2,
|
|
15
|
+
CommentNotFound = 3,
|
|
16
|
+
ProfileNotFound = 4,
|
|
17
|
+
CommentIsTooShort = 5,
|
|
18
|
+
CommentIsTooLong = 6,
|
|
19
|
+
CommentLimitReached = 7,
|
|
20
|
+
InBlocklist = 8
|
|
21
|
+
}
|
|
22
|
+
export declare enum CommentDeleteResult {
|
|
23
|
+
CommentNotFound = 2,
|
|
24
|
+
CommentNotOwned = 3
|
|
25
|
+
}
|
|
26
|
+
export declare enum CommentEditResult {
|
|
27
|
+
CommentNotFound = 2,
|
|
28
|
+
CommentIsTooShort = 3,
|
|
29
|
+
CommentIsTooLong = 4,
|
|
30
|
+
CommentNotOwned = 5,
|
|
31
|
+
CommentWasDeleted = 6,
|
|
32
|
+
EmbeddableNotFound = 7
|
|
13
33
|
}
|
|
14
34
|
export interface IPageableResponse<T> extends IResponse {
|
|
15
35
|
content: T[];
|
package/dist/types/response.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
exports.CommentEditResult = exports.CommentDeleteResult = exports.CommentAddResult = exports.DefaultResult = void 0;
|
|
4
|
+
var DefaultResult;
|
|
5
|
+
(function (DefaultResult) {
|
|
6
|
+
DefaultResult[DefaultResult["Ok"] = 0] = "Ok";
|
|
7
|
+
DefaultResult[DefaultResult["UnexpectedError"] = 1] = "UnexpectedError";
|
|
8
|
+
DefaultResult[DefaultResult["Unauthorized"] = 401] = "Unauthorized";
|
|
9
|
+
DefaultResult[DefaultResult["Ban"] = 402] = "Ban";
|
|
10
|
+
DefaultResult[DefaultResult["PermBan"] = 403] = "PermBan";
|
|
11
|
+
})(DefaultResult || (exports.DefaultResult = DefaultResult = {}));
|
|
12
|
+
var CommentAddResult;
|
|
13
|
+
(function (CommentAddResult) {
|
|
14
|
+
CommentAddResult[CommentAddResult["EmbeddableNotFound"] = 2] = "EmbeddableNotFound";
|
|
15
|
+
CommentAddResult[CommentAddResult["CommentNotFound"] = 3] = "CommentNotFound";
|
|
16
|
+
CommentAddResult[CommentAddResult["ProfileNotFound"] = 4] = "ProfileNotFound";
|
|
17
|
+
CommentAddResult[CommentAddResult["CommentIsTooShort"] = 5] = "CommentIsTooShort";
|
|
18
|
+
CommentAddResult[CommentAddResult["CommentIsTooLong"] = 6] = "CommentIsTooLong";
|
|
19
|
+
CommentAddResult[CommentAddResult["CommentLimitReached"] = 7] = "CommentLimitReached";
|
|
20
|
+
CommentAddResult[CommentAddResult["InBlocklist"] = 8] = "InBlocklist";
|
|
21
|
+
})(CommentAddResult || (exports.CommentAddResult = CommentAddResult = {}));
|
|
22
|
+
var CommentDeleteResult;
|
|
23
|
+
(function (CommentDeleteResult) {
|
|
24
|
+
CommentDeleteResult[CommentDeleteResult["CommentNotFound"] = 2] = "CommentNotFound";
|
|
25
|
+
CommentDeleteResult[CommentDeleteResult["CommentNotOwned"] = 3] = "CommentNotOwned";
|
|
26
|
+
})(CommentDeleteResult || (exports.CommentDeleteResult = CommentDeleteResult = {}));
|
|
27
|
+
var CommentEditResult;
|
|
28
|
+
(function (CommentEditResult) {
|
|
29
|
+
CommentEditResult[CommentEditResult["CommentNotFound"] = 2] = "CommentNotFound";
|
|
30
|
+
CommentEditResult[CommentEditResult["CommentIsTooShort"] = 3] = "CommentIsTooShort";
|
|
31
|
+
CommentEditResult[CommentEditResult["CommentIsTooLong"] = 4] = "CommentIsTooLong";
|
|
32
|
+
CommentEditResult[CommentEditResult["CommentNotOwned"] = 5] = "CommentNotOwned";
|
|
33
|
+
CommentEditResult[CommentEditResult["CommentWasDeleted"] = 6] = "CommentWasDeleted";
|
|
34
|
+
CommentEditResult[CommentEditResult["EmbeddableNotFound"] = 7] = "EmbeddableNotFound";
|
|
35
|
+
})(CommentEditResult || (exports.CommentEditResult = CommentEditResult = {}));
|