e621 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/Debug.js +4 -3
- package/dist/lib/errors.d.ts +3 -3
- package/dist/lib/errors.js +8 -3
- package/dist/lib/generated/client/client.js +108 -127
- package/dist/lib/generated/client/types.d.ts +6 -3
- package/dist/lib/generated/client/utils.d.ts +7 -3
- package/dist/lib/generated/client/utils.js +5 -5
- package/dist/lib/generated/core/params.js +5 -5
- package/dist/lib/generated/core/serverSentEvents.d.ts +1 -1
- package/dist/lib/generated/core/serverSentEvents.js +4 -5
- package/dist/lib/generated/core/types.d.ts +1 -1
- package/dist/lib/generated/core/utils.js +2 -2
- package/dist/lib/generated/schemas.d.ts +1273 -220
- package/dist/lib/generated/schemas.js +2005 -601
- package/dist/lib/generated/sdk.d.ts +624 -382
- package/dist/lib/generated/sdk.js +915 -552
- package/dist/lib/generated/source.json +13524 -9670
- package/dist/lib/generated/types.d.ts +6378 -4559
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +9 -9
- package/dist/lib/models/ApiKey.js +2 -2
- package/dist/lib/models/Appeal.d.ts +51 -0
- package/dist/lib/models/Appeal.js +77 -0
- package/dist/lib/models/Artist.d.ts +17 -17
- package/dist/lib/models/Artist.js +27 -27
- package/dist/lib/models/ArtistUrl.js +2 -2
- package/dist/lib/models/ArtistVersion.js +2 -2
- package/dist/lib/models/AvoidPosting.d.ts +16 -16
- package/dist/lib/models/AvoidPosting.js +27 -27
- package/dist/lib/models/AvoidPostingVersion.js +2 -2
- package/dist/lib/models/Ban.js +2 -2
- package/dist/lib/models/Base.d.ts +1 -1
- package/dist/lib/models/Base.js +4 -4
- package/dist/lib/models/BasicPost.d.ts +14 -0
- package/dist/lib/models/BasicPost.js +17 -0
- package/dist/lib/models/Blip.d.ts +28 -28
- package/dist/lib/models/Blip.js +42 -42
- package/dist/lib/models/BulkUpdateRequest.d.ts +11 -11
- package/dist/lib/models/BulkUpdateRequest.js +21 -21
- package/dist/lib/models/Comment.d.ts +29 -29
- package/dist/lib/models/Comment.js +43 -43
- package/dist/lib/models/CommentVote.d.ts +50 -0
- package/dist/lib/models/CommentVote.js +77 -0
- package/dist/lib/models/CurrentUser.d.ts +36 -1
- package/dist/lib/models/CurrentUser.js +57 -3
- package/dist/lib/models/DMail.d.ts +16 -6
- package/dist/lib/models/DMail.js +29 -11
- package/dist/lib/models/DbExport.d.ts +14 -0
- package/dist/lib/models/DbExport.js +17 -0
- package/dist/lib/models/EditHistory.js +2 -2
- package/dist/lib/models/EmailBlacklist.d.ts +2 -2
- package/dist/lib/models/EmailBlacklist.js +5 -5
- package/dist/lib/models/ExceptionLog.d.ts +14 -0
- package/dist/lib/models/ExceptionLog.js +17 -0
- package/dist/lib/models/ExtendedPost.d.ts +14 -0
- package/dist/lib/models/ExtendedPost.js +17 -0
- package/dist/lib/models/ForumPost.d.ts +41 -30
- package/dist/lib/models/ForumPost.js +60 -42
- package/dist/lib/models/ForumPostVote.d.ts +2 -2
- package/dist/lib/models/ForumPostVote.js +6 -6
- package/dist/lib/models/ForumTopic.d.ts +21 -21
- package/dist/lib/models/ForumTopic.js +35 -35
- package/dist/lib/models/FullCurrentUser.js +2 -2
- package/dist/lib/models/FullUser.js +2 -2
- package/dist/lib/models/HelpPage.d.ts +39 -0
- package/dist/lib/models/HelpPage.js +57 -0
- package/dist/lib/models/IpBan.d.ts +2 -2
- package/dist/lib/models/IpBan.js +5 -5
- package/dist/lib/models/IqdbPost.d.ts +1 -1
- package/dist/lib/models/IqdbPost.js +2 -2
- package/dist/lib/models/Mascot.d.ts +7 -7
- package/dist/lib/models/Mascot.js +12 -12
- package/dist/lib/models/MinimalUser.d.ts +14 -0
- package/dist/lib/models/MinimalUser.js +17 -0
- package/dist/lib/models/ModAction.js +2 -2
- package/dist/lib/models/NewsUpdate.d.ts +7 -7
- package/dist/lib/models/NewsUpdate.js +12 -12
- package/dist/lib/models/Note.d.ts +11 -11
- package/dist/lib/models/Note.js +21 -21
- package/dist/lib/models/NoteVersion.d.ts +2 -2
- package/dist/lib/models/NoteVersion.js +5 -5
- package/dist/lib/models/Pool.d.ts +18 -18
- package/dist/lib/models/Pool.js +32 -32
- package/dist/lib/models/PoolVersion.d.ts +2 -2
- package/dist/lib/models/PoolVersion.js +5 -5
- package/dist/lib/models/Post.d.ts +5 -166
- package/dist/lib/models/Post.js +8 -278
- package/dist/lib/models/PostApproval.d.ts +2 -2
- package/dist/lib/models/PostApproval.js +5 -5
- package/dist/lib/models/PostDisapproval.js +2 -2
- package/dist/lib/models/PostEvent.js +2 -2
- package/dist/lib/models/PostFlag.d.ts +4 -4
- package/dist/lib/models/PostFlag.js +9 -9
- package/dist/lib/models/PostReplacement.d.ts +10 -10
- package/dist/lib/models/PostReplacement.js +17 -17
- package/dist/lib/models/PostSet.d.ts +17 -17
- package/dist/lib/models/PostSet.js +29 -29
- package/dist/lib/models/PostVersion.d.ts +8 -8
- package/dist/lib/models/PostVersion.js +14 -14
- package/dist/lib/models/PostVote.d.ts +48 -0
- package/dist/lib/models/PostVote.js +75 -0
- package/dist/lib/models/RisingSearchTrend.js +2 -2
- package/dist/lib/models/SearchTrend.js +2 -2
- package/dist/lib/models/SearchTrendBlacklist.d.ts +25 -0
- package/dist/lib/models/SearchTrendBlacklist.js +43 -3
- package/dist/lib/models/StaffFile.d.ts +39 -0
- package/dist/lib/models/StaffFile.js +57 -0
- package/dist/lib/models/StaffNote.d.ts +12 -12
- package/dist/lib/models/StaffNote.js +22 -22
- package/dist/lib/models/StaffWiki.d.ts +63 -0
- package/dist/lib/models/StaffWiki.js +97 -0
- package/dist/lib/models/StaffWikiVersion.d.ts +14 -0
- package/dist/lib/models/StaffWikiVersion.js +17 -0
- package/dist/lib/models/Tag.d.ts +19 -19
- package/dist/lib/models/Tag.js +31 -31
- package/dist/lib/models/TagAlias.d.ts +13 -13
- package/dist/lib/models/TagAlias.js +23 -23
- package/dist/lib/models/TagCorrection.js +2 -2
- package/dist/lib/models/TagImplication.d.ts +13 -13
- package/dist/lib/models/TagImplication.js +23 -23
- package/dist/lib/models/TagPreview.js +2 -2
- package/dist/lib/models/TagTypeVersion.js +2 -2
- package/dist/lib/models/Takedown.d.ts +20 -20
- package/dist/lib/models/Takedown.js +30 -30
- package/dist/lib/models/ThumbnailPost.d.ts +14 -0
- package/dist/lib/models/ThumbnailPost.js +17 -0
- package/dist/lib/models/Ticket.d.ts +13 -13
- package/dist/lib/models/Ticket.js +23 -23
- package/dist/lib/models/Upload.js +2 -2
- package/dist/lib/models/UploadWhitelist.d.ts +7 -7
- package/dist/lib/models/UploadWhitelist.js +12 -12
- package/dist/lib/models/User.d.ts +28 -16
- package/dist/lib/models/User.js +46 -26
- package/dist/lib/models/UserFeedback.d.ts +13 -13
- package/dist/lib/models/UserFeedback.js +24 -24
- package/dist/lib/models/UserNameChangeRequest.d.ts +2 -2
- package/dist/lib/models/UserNameChangeRequest.js +5 -5
- package/dist/lib/models/WikiPage.d.ts +13 -13
- package/dist/lib/models/WikiPage.js +23 -23
- package/dist/lib/models/WikiPageVersion.d.ts +2 -2
- package/dist/lib/models/WikiPageVersion.js +5 -5
- package/dist/lib/models/index.d.ts +13 -1
- package/dist/lib/models/index.js +14 -2
- package/dist/lib/models/posts/Actions.d.ts +305 -0
- package/dist/lib/models/posts/Actions.js +502 -0
- package/dist/lib/modules/Appeals.d.ts +73 -0
- package/dist/lib/modules/Appeals.js +129 -0
- package/dist/lib/modules/ArtistUrls.d.ts +7 -7
- package/dist/lib/modules/ArtistUrls.js +10 -10
- package/dist/lib/modules/ArtistVersions.d.ts +7 -7
- package/dist/lib/modules/ArtistVersions.js +10 -10
- package/dist/lib/modules/Artists.d.ts +35 -35
- package/dist/lib/modules/Artists.js +59 -59
- package/dist/lib/modules/AvoidPostingVersions.d.ts +7 -7
- package/dist/lib/modules/AvoidPostingVersions.js +10 -10
- package/dist/lib/modules/AvoidPostings.d.ts +36 -56
- package/dist/lib/modules/AvoidPostings.js +63 -81
- package/dist/lib/modules/Bans.d.ts +9 -9
- package/dist/lib/modules/Bans.js +15 -15
- package/dist/lib/modules/Base.d.ts +2 -2
- package/dist/lib/modules/Base.js +4 -4
- package/dist/lib/modules/Blips.d.ts +43 -43
- package/dist/lib/modules/Blips.js +77 -75
- package/dist/lib/modules/BulkUpdateRequests.d.ts +29 -29
- package/dist/lib/modules/BulkUpdateRequests.js +54 -54
- package/dist/lib/modules/CommentVotes.d.ts +47 -4
- package/dist/lib/modules/CommentVotes.js +80 -13
- package/dist/lib/modules/Comments.d.ts +37 -39
- package/dist/lib/modules/Comments.js +65 -67
- package/dist/lib/modules/DMails.d.ts +27 -17
- package/dist/lib/modules/DMails.js +45 -35
- package/dist/lib/modules/DText.d.ts +6 -6
- package/dist/lib/modules/DText.js +8 -8
- package/dist/lib/modules/DbExports.d.ts +13 -0
- package/dist/lib/modules/DbExports.js +27 -0
- package/dist/lib/modules/EditHistories.d.ts +10 -10
- package/dist/lib/modules/EditHistories.js +15 -15
- package/dist/lib/modules/EmailBlacklists.d.ts +12 -12
- package/dist/lib/modules/EmailBlacklists.js +20 -20
- package/dist/lib/modules/Favorites.d.ts +18 -18
- package/dist/lib/modules/Favorites.js +27 -25
- package/dist/lib/modules/ForumPostVotes.d.ts +42 -0
- package/dist/lib/modules/ForumPostVotes.js +73 -0
- package/dist/lib/modules/ForumPosts.d.ts +35 -37
- package/dist/lib/modules/ForumPosts.js +63 -65
- package/dist/lib/modules/ForumTopics.d.ts +38 -43
- package/dist/lib/modules/ForumTopics.js +71 -85
- package/dist/lib/modules/Health.d.ts +12 -0
- package/dist/lib/modules/Health.js +26 -0
- package/dist/lib/modules/HelpPages.d.ts +31 -25
- package/dist/lib/modules/HelpPages.js +63 -47
- package/dist/lib/modules/IpBans.d.ts +12 -12
- package/dist/lib/modules/IpBans.js +20 -20
- package/dist/lib/modules/IqdbQueries.d.ts +14 -13
- package/dist/lib/modules/IqdbQueries.js +30 -22
- package/dist/lib/modules/Mascots.d.ts +22 -22
- package/dist/lib/modules/Mascots.js +39 -39
- package/dist/lib/modules/ModActions.d.ts +9 -9
- package/dist/lib/modules/ModActions.js +15 -15
- package/dist/lib/modules/NewsUpdates.d.ts +22 -22
- package/dist/lib/modules/NewsUpdates.js +39 -39
- package/dist/lib/modules/NoteVersions.d.ts +7 -7
- package/dist/lib/modules/NoteVersions.js +10 -10
- package/dist/lib/modules/Notes.d.ts +27 -27
- package/dist/lib/modules/Notes.js +51 -51
- package/dist/lib/modules/PoolVersions.d.ts +7 -7
- package/dist/lib/modules/PoolVersions.js +10 -10
- package/dist/lib/modules/Pools.d.ts +36 -36
- package/dist/lib/modules/Pools.js +67 -67
- package/dist/lib/modules/Popular.d.ts +8 -8
- package/dist/lib/modules/Popular.js +16 -14
- package/dist/lib/modules/PostApprovals.d.ts +11 -11
- package/dist/lib/modules/PostApprovals.js +21 -21
- package/dist/lib/modules/PostDisapprovals.d.ts +13 -10
- package/dist/lib/modules/PostDisapprovals.js +15 -15
- package/dist/lib/modules/PostEvents.d.ts +7 -7
- package/dist/lib/modules/PostEvents.js +15 -11
- package/dist/lib/modules/PostFlags.d.ts +29 -14
- package/dist/lib/modules/PostFlags.js +48 -25
- package/dist/lib/modules/PostReplacements.d.ts +23 -23
- package/dist/lib/modules/PostReplacements.js +46 -42
- package/dist/lib/modules/PostSets.d.ts +37 -37
- package/dist/lib/modules/PostSets.js +68 -68
- package/dist/lib/modules/PostVersions.d.ts +12 -12
- package/dist/lib/modules/PostVersions.js +24 -24
- package/dist/lib/modules/PostVotes.d.ts +48 -5
- package/dist/lib/modules/PostVotes.js +81 -14
- package/dist/lib/modules/Posts.d.ts +143 -52
- package/dist/lib/modules/Posts.js +257 -117
- package/dist/lib/modules/RelatedTags.d.ts +7 -7
- package/dist/lib/modules/RelatedTags.js +8 -8
- package/dist/lib/modules/SearchTrendBlacklists.d.ts +12 -27
- package/dist/lib/modules/SearchTrendBlacklists.js +20 -43
- package/dist/lib/modules/SearchTrends.d.ts +37 -19
- package/dist/lib/modules/SearchTrends.js +51 -28
- package/dist/lib/modules/StaffNotes.d.ts +29 -29
- package/dist/lib/modules/StaffNotes.js +54 -54
- package/dist/lib/modules/TagAliases.d.ts +29 -29
- package/dist/lib/modules/TagAliases.js +54 -54
- package/dist/lib/modules/TagCorrections.d.ts +6 -6
- package/dist/lib/modules/TagCorrections.js +15 -15
- package/dist/lib/modules/TagImplications.d.ts +28 -28
- package/dist/lib/modules/TagImplications.js +53 -53
- package/dist/lib/modules/TagTypeVersions.d.ts +6 -6
- package/dist/lib/modules/TagTypeVersions.js +9 -9
- package/dist/lib/modules/Tags.d.ts +26 -26
- package/dist/lib/modules/Tags.js +48 -48
- package/dist/lib/modules/Takedowns.d.ts +41 -41
- package/dist/lib/modules/Takedowns.js +68 -68
- package/dist/lib/modules/Tickets.d.ts +28 -28
- package/dist/lib/modules/Tickets.js +51 -51
- package/dist/lib/modules/UploadWhitelists.d.ts +24 -24
- package/dist/lib/modules/UploadWhitelists.js +42 -42
- package/dist/lib/modules/Uploads.d.ts +13 -13
- package/dist/lib/modules/Uploads.js +23 -23
- package/dist/lib/modules/UserFeedbacks.d.ts +32 -32
- package/dist/lib/modules/UserFeedbacks.js +59 -59
- package/dist/lib/modules/UserNameChangeRequests.d.ts +14 -14
- package/dist/lib/modules/UserNameChangeRequests.js +25 -25
- package/dist/lib/modules/Users.d.ts +61 -33
- package/dist/lib/modules/Users.js +113 -70
- package/dist/lib/modules/WikiPageVersions.d.ts +9 -9
- package/dist/lib/modules/WikiPageVersions.js +15 -15
- package/dist/lib/modules/WikiPages.d.ts +29 -29
- package/dist/lib/modules/WikiPages.js +53 -53
- package/dist/lib/modules/index.d.ts +53 -19
- package/dist/lib/modules/index.js +33 -6
- package/dist/lib/modules/posts/Format.d.ts +27 -0
- package/dist/lib/modules/posts/Format.js +17 -0
- package/dist/lib/modules/staff/AutomodDMails.d.ts +58 -0
- package/dist/lib/modules/staff/AutomodDMails.js +101 -0
- package/dist/lib/modules/{users → staff}/DMails.d.ts +5 -5
- package/dist/lib/modules/staff/DMails.js +55 -0
- package/dist/lib/modules/staff/ExceptionLogs.d.ts +34 -0
- package/dist/lib/modules/staff/ExceptionLogs.js +55 -0
- package/dist/lib/modules/staff/Files.d.ts +76 -0
- package/dist/lib/modules/staff/Files.js +125 -0
- package/dist/lib/modules/staff/UserCleanups.d.ts +64 -0
- package/dist/lib/modules/staff/UserCleanups.js +128 -0
- package/dist/lib/modules/{admin → staff}/Users.d.ts +10 -10
- package/dist/lib/modules/staff/Users.js +77 -0
- package/dist/lib/modules/staff/VoteTrends.d.ts +26 -0
- package/dist/lib/modules/staff/VoteTrends.js +39 -0
- package/dist/lib/modules/staff/WikiVersions.d.ts +34 -0
- package/dist/lib/modules/staff/WikiVersions.js +55 -0
- package/dist/lib/modules/staff/Wikis.d.ts +100 -0
- package/dist/lib/modules/staff/Wikis.js +171 -0
- package/dist/lib/util.d.ts +2 -6
- package/dist/lib/util.js +10 -9
- package/dist/package.json +19 -19
- package/package.json +19 -19
- package/tsconfig.json +2 -2
- package/dist/lib/models/Help.d.ts +0 -39
- package/dist/lib/models/Help.js +0 -57
- package/dist/lib/modules/admin/Users.js +0 -77
- package/dist/lib/modules/comments/Votes.d.ts +0 -31
- package/dist/lib/modules/comments/Votes.js +0 -51
- package/dist/lib/modules/forum_posts/Votes.d.ts +0 -29
- package/dist/lib/modules/forum_posts/Votes.js +0 -51
- package/dist/lib/modules/posts/Flag.d.ts +0 -16
- package/dist/lib/modules/posts/Flag.js +0 -31
- package/dist/lib/modules/posts/Votes.d.ts +0 -31
- package/dist/lib/modules/posts/Votes.js +0 -51
- package/dist/lib/modules/users/DMails.js +0 -55
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Comment as CommentData, CreateCommentVoteData, MarkCommentData } from "../generated/types.js";
|
|
1
|
+
import { CommentVotesCreateResponse } from "../modules/CommentVotes.js";
|
|
3
2
|
import { type ExtractValue } from "../util.js";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
3
|
+
import Base from "./Base.js";
|
|
4
|
+
import type { Comment as CommentData, CommentVotesCreateData, CommentsWarningData } from "../generated/types.js";
|
|
5
|
+
import type { UpdateCommentOptions, CommentsWarningResponse } from "../modules/Comments.js";
|
|
6
6
|
interface Comment extends CommentData {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -14,31 +14,28 @@ interface Comment extends CommentData {
|
|
|
14
14
|
*/
|
|
15
15
|
declare class Comment extends Base<CommentData> {
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* You must be Admin+.
|
|
20
|
-
|
|
17
|
+
* Create Comment Vote
|
|
21
18
|
*
|
|
22
19
|
* @requiresApiKeyAuth
|
|
23
20
|
*
|
|
24
|
-
* @operationId {@link https://e621.wiki/#operations-
|
|
21
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#create comment_votes#create}
|
|
25
22
|
*
|
|
26
|
-
* @see {@link https://e621.wiki/#operations-
|
|
23
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#create Documentation} for more details.
|
|
27
24
|
*/
|
|
28
|
-
|
|
25
|
+
createVote(score: ExtractValue<"score", CommentVotesCreateData>, no_unvote?: boolean): Promise<CommentVotesCreateResponse>;
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
27
|
+
* Delete Comment
|
|
31
28
|
*
|
|
32
|
-
* You must be
|
|
29
|
+
* You must be Admin+.
|
|
33
30
|
|
|
34
31
|
*
|
|
35
32
|
* @requiresApiKeyAuth
|
|
36
33
|
*
|
|
37
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
34
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#destroy comments#destroy}
|
|
38
35
|
*
|
|
39
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
36
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#destroy Documentation} for more details.
|
|
40
37
|
*/
|
|
41
|
-
|
|
38
|
+
delete(): Promise<null>;
|
|
42
39
|
/**
|
|
43
40
|
* Hide Comment
|
|
44
41
|
*
|
|
@@ -47,9 +44,9 @@ declare class Comment extends Base<CommentData> {
|
|
|
47
44
|
*
|
|
48
45
|
* @requiresApiKeyAuth
|
|
49
46
|
*
|
|
50
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
47
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#hide comments#hide}
|
|
51
48
|
*
|
|
52
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
49
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#hide Documentation} for more details.
|
|
53
50
|
*/
|
|
54
51
|
hide(): Promise<Comment>;
|
|
55
52
|
/**
|
|
@@ -59,11 +56,11 @@ declare class Comment extends Base<CommentData> {
|
|
|
59
56
|
*
|
|
60
57
|
* @requiresApiKeyAuth
|
|
61
58
|
*
|
|
62
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
59
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#warning comments#warning}
|
|
63
60
|
*
|
|
64
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
61
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#warning Documentation} for more details.
|
|
65
62
|
*/
|
|
66
|
-
mark(type: ExtractValue<"record_type",
|
|
63
|
+
mark(type: ExtractValue<"record_type", CommentsWarningData>): Promise<CommentsWarningResponse>;
|
|
67
64
|
/**
|
|
68
65
|
* Unhide Comment
|
|
69
66
|
*
|
|
@@ -72,9 +69,9 @@ declare class Comment extends Base<CommentData> {
|
|
|
72
69
|
*
|
|
73
70
|
* @requiresApiKeyAuth
|
|
74
71
|
*
|
|
75
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
72
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#unhide comments#unhide}
|
|
76
73
|
*
|
|
77
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
74
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#unhide Documentation} for more details.
|
|
78
75
|
*/
|
|
79
76
|
unhide(): Promise<Comment>;
|
|
80
77
|
/**
|
|
@@ -82,20 +79,23 @@ declare class Comment extends Base<CommentData> {
|
|
|
82
79
|
*
|
|
83
80
|
* @requiresApiKeyAuth
|
|
84
81
|
*
|
|
85
|
-
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-
|
|
82
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy comment_votes#destroy}
|
|
86
83
|
*
|
|
87
|
-
* @see {@link https://e621.wiki/#operations-Comment_Votes-
|
|
84
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy Documentation} for more details.
|
|
88
85
|
*/
|
|
89
86
|
unvote(): Promise<null>;
|
|
90
87
|
/**
|
|
91
|
-
*
|
|
88
|
+
* Update Comment
|
|
89
|
+
*
|
|
90
|
+
* You must be the creator of the comment, or Admin+ to edit. Marked comments cannot be edited.
|
|
91
|
+
|
|
92
92
|
*
|
|
93
93
|
* @requiresApiKeyAuth
|
|
94
94
|
*
|
|
95
|
-
* @operationId {@link https://e621.wiki/#operations-
|
|
95
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#update comments#update}
|
|
96
96
|
*
|
|
97
|
-
* @see {@link https://e621.wiki/#operations-
|
|
97
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#update Documentation} for more details.
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
update(options: UpdateCommentOptions): Promise<null>;
|
|
100
100
|
}
|
|
101
101
|
export default Comment;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import Base from "./Base.js";
|
|
3
2
|
import { OperationID, Schema } from "../util.js";
|
|
3
|
+
import Base from "./Base.js";
|
|
4
4
|
/**
|
|
5
5
|
* @category Models
|
|
6
6
|
*
|
|
@@ -10,34 +10,31 @@ import { OperationID, Schema } from "../util.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let Comment = class Comment extends Base {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* You must be Admin+.
|
|
16
|
-
|
|
13
|
+
* Create Comment Vote
|
|
17
14
|
*
|
|
18
15
|
* @requiresApiKeyAuth
|
|
19
16
|
*
|
|
20
|
-
* @operationId {@link https://e621.wiki/#operations-
|
|
17
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#create comment_votes#create}
|
|
21
18
|
*
|
|
22
|
-
* @see {@link https://e621.wiki/#operations-
|
|
19
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#create Documentation} for more details.
|
|
23
20
|
*/
|
|
24
|
-
async
|
|
25
|
-
return this.e621.
|
|
21
|
+
async createVote(score, no_unvote) {
|
|
22
|
+
return this.e621.commentVotes.create(this.id, score, no_unvote);
|
|
26
23
|
}
|
|
27
24
|
/**
|
|
28
|
-
*
|
|
25
|
+
* Delete Comment
|
|
29
26
|
*
|
|
30
|
-
* You must be
|
|
27
|
+
* You must be Admin+.
|
|
31
28
|
|
|
32
29
|
*
|
|
33
30
|
* @requiresApiKeyAuth
|
|
34
31
|
*
|
|
35
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
32
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#destroy comments#destroy}
|
|
36
33
|
*
|
|
37
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
34
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#destroy Documentation} for more details.
|
|
38
35
|
*/
|
|
39
|
-
async
|
|
40
|
-
return this.e621.comments.
|
|
36
|
+
async delete() {
|
|
37
|
+
return this.e621.comments.delete(this.id);
|
|
41
38
|
}
|
|
42
39
|
/**
|
|
43
40
|
* Hide Comment
|
|
@@ -47,9 +44,9 @@ let Comment = class Comment extends Base {
|
|
|
47
44
|
*
|
|
48
45
|
* @requiresApiKeyAuth
|
|
49
46
|
*
|
|
50
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
47
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#hide comments#hide}
|
|
51
48
|
*
|
|
52
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
49
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#hide Documentation} for more details.
|
|
53
50
|
*/
|
|
54
51
|
async hide() {
|
|
55
52
|
return this.e621.comments.hide(this.id);
|
|
@@ -61,9 +58,9 @@ let Comment = class Comment extends Base {
|
|
|
61
58
|
*
|
|
62
59
|
* @requiresApiKeyAuth
|
|
63
60
|
*
|
|
64
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
61
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#warning comments#warning}
|
|
65
62
|
*
|
|
66
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
63
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#warning Documentation} for more details.
|
|
67
64
|
*/
|
|
68
65
|
async mark(type) {
|
|
69
66
|
return this.e621.comments.mark(this.id, type);
|
|
@@ -76,9 +73,9 @@ let Comment = class Comment extends Base {
|
|
|
76
73
|
*
|
|
77
74
|
* @requiresApiKeyAuth
|
|
78
75
|
*
|
|
79
|
-
* @operationId {@link https://e621.wiki/#operations-Comments-
|
|
76
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#unhide comments#unhide}
|
|
80
77
|
*
|
|
81
|
-
* @see {@link https://e621.wiki/#operations-Comments-
|
|
78
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#unhide Documentation} for more details.
|
|
82
79
|
*/
|
|
83
80
|
async unhide() {
|
|
84
81
|
return this.e621.comments.unhide(this.id);
|
|
@@ -88,70 +85,73 @@ let Comment = class Comment extends Base {
|
|
|
88
85
|
*
|
|
89
86
|
* @requiresApiKeyAuth
|
|
90
87
|
*
|
|
91
|
-
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-
|
|
88
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy comment_votes#destroy}
|
|
92
89
|
*
|
|
93
|
-
* @see {@link https://e621.wiki/#operations-Comment_Votes-
|
|
90
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy Documentation} for more details.
|
|
94
91
|
*/
|
|
95
92
|
async unvote() {
|
|
96
|
-
return this.e621.
|
|
93
|
+
return this.e621.commentVotes.unvote(this.id);
|
|
97
94
|
}
|
|
98
95
|
/**
|
|
99
|
-
*
|
|
96
|
+
* Update Comment
|
|
97
|
+
*
|
|
98
|
+
* You must be the creator of the comment, or Admin+ to edit. Marked comments cannot be edited.
|
|
99
|
+
|
|
100
100
|
*
|
|
101
101
|
* @requiresApiKeyAuth
|
|
102
102
|
*
|
|
103
|
-
* @operationId {@link https://e621.wiki/#operations-
|
|
103
|
+
* @operationId {@link https://e621.wiki/#operations-Comments-comments#update comments#update}
|
|
104
104
|
*
|
|
105
|
-
* @see {@link https://e621.wiki/#operations-
|
|
105
|
+
* @see {@link https://e621.wiki/#operations-Comments-comments#update Documentation} for more details.
|
|
106
106
|
*/
|
|
107
|
-
async
|
|
108
|
-
return this.e621.comments.
|
|
107
|
+
async update(options) {
|
|
108
|
+
return this.e621.comments.update(this.id, options);
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
__decorate([
|
|
112
|
-
OperationID("
|
|
112
|
+
OperationID("comment_votes#create"),
|
|
113
113
|
__metadata("design:type", Function),
|
|
114
|
-
__metadata("design:paramtypes", []),
|
|
114
|
+
__metadata("design:paramtypes", [Object, Boolean]),
|
|
115
115
|
__metadata("design:returntype", Promise)
|
|
116
|
-
], Comment.prototype, "
|
|
116
|
+
], Comment.prototype, "createVote", null);
|
|
117
117
|
__decorate([
|
|
118
|
-
OperationID("
|
|
118
|
+
OperationID("comments#destroy"),
|
|
119
119
|
__metadata("design:type", Function),
|
|
120
|
-
__metadata("design:paramtypes", [
|
|
120
|
+
__metadata("design:paramtypes", []),
|
|
121
121
|
__metadata("design:returntype", Promise)
|
|
122
|
-
], Comment.prototype, "
|
|
122
|
+
], Comment.prototype, "delete", null);
|
|
123
123
|
__decorate([
|
|
124
|
-
OperationID("
|
|
124
|
+
OperationID("comments#hide"),
|
|
125
125
|
__metadata("design:type", Function),
|
|
126
126
|
__metadata("design:paramtypes", []),
|
|
127
127
|
__metadata("design:returntype", Promise)
|
|
128
128
|
], Comment.prototype, "hide", null);
|
|
129
129
|
__decorate([
|
|
130
|
-
OperationID("
|
|
130
|
+
OperationID("comments#warning"),
|
|
131
131
|
__metadata("design:type", Function),
|
|
132
132
|
__metadata("design:paramtypes", [Object]),
|
|
133
133
|
__metadata("design:returntype", Promise)
|
|
134
134
|
], Comment.prototype, "mark", null);
|
|
135
135
|
__decorate([
|
|
136
|
-
OperationID("
|
|
136
|
+
OperationID("comments#unhide"),
|
|
137
137
|
__metadata("design:type", Function),
|
|
138
138
|
__metadata("design:paramtypes", []),
|
|
139
139
|
__metadata("design:returntype", Promise)
|
|
140
140
|
], Comment.prototype, "unhide", null);
|
|
141
141
|
__decorate([
|
|
142
|
-
OperationID("
|
|
142
|
+
OperationID("comment_votes#destroy"),
|
|
143
143
|
__metadata("design:type", Function),
|
|
144
144
|
__metadata("design:paramtypes", []),
|
|
145
145
|
__metadata("design:returntype", Promise)
|
|
146
146
|
], Comment.prototype, "unvote", null);
|
|
147
147
|
__decorate([
|
|
148
|
-
OperationID("
|
|
148
|
+
OperationID("comments#update"),
|
|
149
149
|
__metadata("design:type", Function),
|
|
150
|
-
__metadata("design:paramtypes", [Object
|
|
150
|
+
__metadata("design:paramtypes", [Object]),
|
|
151
151
|
__metadata("design:returntype", Promise)
|
|
152
|
-
], Comment.prototype, "
|
|
152
|
+
], Comment.prototype, "update", null);
|
|
153
153
|
Comment = __decorate([
|
|
154
154
|
Schema("Comment")
|
|
155
155
|
], Comment);
|
|
156
156
|
export default Comment;
|
|
157
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
157
|
+
//# sourceMapping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7Ozs7cUNBRzNCO0FBL0dDLE9BQU87SUFEWixNQUFNLENBQUMsU0FBUyxDQUFDO0dBQ1osT0FBTyxDQWdIWjtBQUVELGVBQWUsT0FBTyxDQUFDIn0=
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import Base from "./Base.js";
|
|
2
|
+
import type { CommentVote as CommentVoteData } from "../generated/types.js";
|
|
3
|
+
interface CommentVote extends CommentVoteData {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @category Models
|
|
7
|
+
*
|
|
8
|
+
* @schema {@link https://e621.wiki/#model-CommentVote CommentVote}
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://e621.wiki/#model-CommentVote Documentation} for more details.
|
|
11
|
+
*/
|
|
12
|
+
declare class CommentVote extends Base<CommentVoteData> {
|
|
13
|
+
/**
|
|
14
|
+
* Delete Comment Vote
|
|
15
|
+
*
|
|
16
|
+
* @requiresApiKeyAuth
|
|
17
|
+
*
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy comment_votes#destroy}
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy Documentation} for more details.
|
|
21
|
+
*/
|
|
22
|
+
delete(): Promise<null>;
|
|
23
|
+
/**
|
|
24
|
+
* Lock Comment Votes
|
|
25
|
+
*
|
|
26
|
+
* You must be Moderator+. Errors if ids is not provided.
|
|
27
|
+
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#lock comment_votes#lock}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#lock Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
lock(): Promise<null>;
|
|
36
|
+
/**
|
|
37
|
+
* Delete Comment Votes
|
|
38
|
+
*
|
|
39
|
+
* You must be Admin+. Errors if ids is not provided.
|
|
40
|
+
|
|
41
|
+
*
|
|
42
|
+
* @requiresApiKeyAuth
|
|
43
|
+
*
|
|
44
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#delete comment_votes#delete}
|
|
45
|
+
*
|
|
46
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#delete Documentation} for more details.
|
|
47
|
+
*/
|
|
48
|
+
staffDelete(): Promise<null>;
|
|
49
|
+
}
|
|
50
|
+
export default CommentVote;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { OperationID, Schema } from "../util.js";
|
|
3
|
+
import Base from "./Base.js";
|
|
4
|
+
/**
|
|
5
|
+
* @category Models
|
|
6
|
+
*
|
|
7
|
+
* @schema {@link https://e621.wiki/#model-CommentVote CommentVote}
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://e621.wiki/#model-CommentVote Documentation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
let CommentVote = class CommentVote extends Base {
|
|
12
|
+
/**
|
|
13
|
+
* Delete Comment Vote
|
|
14
|
+
*
|
|
15
|
+
* @requiresApiKeyAuth
|
|
16
|
+
*
|
|
17
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy comment_votes#destroy}
|
|
18
|
+
*
|
|
19
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#destroy Documentation} for more details.
|
|
20
|
+
*/
|
|
21
|
+
async delete() {
|
|
22
|
+
return this.e621.commentVotes.unvote(this.comment_id);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lock Comment Votes
|
|
26
|
+
*
|
|
27
|
+
* You must be Moderator+. Errors if ids is not provided.
|
|
28
|
+
|
|
29
|
+
*
|
|
30
|
+
* @requiresApiKeyAuth
|
|
31
|
+
*
|
|
32
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#lock comment_votes#lock}
|
|
33
|
+
*
|
|
34
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#lock Documentation} for more details.
|
|
35
|
+
*/
|
|
36
|
+
async lock() {
|
|
37
|
+
return this.e621.commentVotes.lock([this.id]);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete Comment Votes
|
|
41
|
+
*
|
|
42
|
+
* You must be Admin+. Errors if ids is not provided.
|
|
43
|
+
|
|
44
|
+
*
|
|
45
|
+
* @requiresApiKeyAuth
|
|
46
|
+
*
|
|
47
|
+
* @operationId {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#delete comment_votes#delete}
|
|
48
|
+
*
|
|
49
|
+
* @see {@link https://e621.wiki/#operations-Comment_Votes-comment_votes#delete Documentation} for more details.
|
|
50
|
+
*/
|
|
51
|
+
async staffDelete() {
|
|
52
|
+
return this.e621.commentVotes.delete([this.id]);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
__decorate([
|
|
56
|
+
OperationID("comment_votes#destroy"),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", []),
|
|
59
|
+
__metadata("design:returntype", Promise)
|
|
60
|
+
], CommentVote.prototype, "delete", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
OperationID("comment_votes#lock"),
|
|
63
|
+
__metadata("design:type", Function),
|
|
64
|
+
__metadata("design:paramtypes", []),
|
|
65
|
+
__metadata("design:returntype", Promise)
|
|
66
|
+
], CommentVote.prototype, "lock", null);
|
|
67
|
+
__decorate([
|
|
68
|
+
OperationID("comment_votes#delete"),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", []),
|
|
71
|
+
__metadata("design:returntype", Promise)
|
|
72
|
+
], CommentVote.prototype, "staffDelete", null);
|
|
73
|
+
CommentVote = __decorate([
|
|
74
|
+
Schema("CommentVote")
|
|
75
|
+
], CommentVote);
|
|
76
|
+
export default CommentVote;
|
|
77
|
+
//# sourceMappingURL=data:application/json;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QURSLFdBQVcsQ0FBQyxzQkFBc0IsQ0FBQzs7Ozs4Q0FHaEM7QUEvQ0MsV0FBVztJQURoQixNQUFNLENBQUMsYUFBYSxDQUFDO0dBQ2hCLFdBQVcsQ0FnRGhCO0FBRUQsZUFBZSxXQUFXLENBQUMifQ==
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import User from "./User.js";
|
|
2
2
|
import type { CurrentUser as CurrentUserData } from "../generated/types.js";
|
|
3
|
-
|
|
3
|
+
import type { UpdateAvatarCropOptions, UpdateCurrentUserOptions, UsersAvatarMenuResponse } from "../modules/Users.js";
|
|
4
|
+
interface CurrentUser extends Omit<CurrentUserData, "last_logged_in_at"> {
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* @category Models
|
|
@@ -10,5 +11,39 @@ interface CurrentUser extends CurrentUserData {
|
|
|
10
11
|
* @see {@link https://e621.wiki/#model-CurrentUser Documentation} for more details.
|
|
11
12
|
*/
|
|
12
13
|
declare class CurrentUser<D extends CurrentUserData = CurrentUserData> extends User<D> {
|
|
14
|
+
/**
|
|
15
|
+
* Narrowed from {@link User.last_logged_in_at} - always present for the current user.
|
|
16
|
+
*/
|
|
17
|
+
last_logged_in_at: string;
|
|
18
|
+
/**
|
|
19
|
+
* Get Avatar Menu
|
|
20
|
+
*
|
|
21
|
+
* @requiresApiKeyAuth
|
|
22
|
+
*
|
|
23
|
+
* @operationId {@link https://e621.wiki/#operations-Users-users#avatar_menu users#avatar_menu}
|
|
24
|
+
*
|
|
25
|
+
* @see {@link https://e621.wiki/#operations-Users-users#avatar_menu Documentation} for more details.
|
|
26
|
+
*/
|
|
27
|
+
avatarMenu(): Promise<UsersAvatarMenuResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Update Current User
|
|
30
|
+
*
|
|
31
|
+
* @requiresApiKeyAuth
|
|
32
|
+
*
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Users-users#update users#update}
|
|
34
|
+
*
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Users-users#update Documentation} for more details.
|
|
36
|
+
*/
|
|
37
|
+
update(options: UpdateCurrentUserOptions): Promise<null>;
|
|
38
|
+
/**
|
|
39
|
+
* Update Avatar Crop
|
|
40
|
+
*
|
|
41
|
+
* @requiresApiKeyAuth
|
|
42
|
+
*
|
|
43
|
+
* @operationId {@link https://e621.wiki/#operations-Users-maintenance/user/avatars#update maintenance/user/avatars#update}
|
|
44
|
+
*
|
|
45
|
+
* @see {@link https://e621.wiki/#operations-Users-maintenance/user/avatars#update Documentation} for more details.
|
|
46
|
+
*/
|
|
47
|
+
updateAvatarCrop(options: UpdateAvatarCropOptions): Promise<string>;
|
|
13
48
|
}
|
|
14
49
|
export default CurrentUser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { OperationID, Schema } from "../util.js";
|
|
2
3
|
import User from "./User.js";
|
|
3
|
-
import { Schema } from "../util.js";
|
|
4
4
|
/**
|
|
5
5
|
* @category Models
|
|
6
6
|
*
|
|
@@ -9,9 +9,63 @@ import { Schema } from "../util.js";
|
|
|
9
9
|
* @see {@link https://e621.wiki/#model-CurrentUser Documentation} for more details.
|
|
10
10
|
*/
|
|
11
11
|
let CurrentUser = class CurrentUser extends User {
|
|
12
|
+
/**
|
|
13
|
+
* Get Avatar Menu
|
|
14
|
+
*
|
|
15
|
+
* @requiresApiKeyAuth
|
|
16
|
+
*
|
|
17
|
+
* @operationId {@link https://e621.wiki/#operations-Users-users#avatar_menu users#avatar_menu}
|
|
18
|
+
*
|
|
19
|
+
* @see {@link https://e621.wiki/#operations-Users-users#avatar_menu Documentation} for more details.
|
|
20
|
+
*/
|
|
21
|
+
async avatarMenu() {
|
|
22
|
+
return this.e621.users.avatarMenu();
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Update Current User
|
|
26
|
+
*
|
|
27
|
+
* @requiresApiKeyAuth
|
|
28
|
+
*
|
|
29
|
+
* @operationId {@link https://e621.wiki/#operations-Users-users#update users#update}
|
|
30
|
+
*
|
|
31
|
+
* @see {@link https://e621.wiki/#operations-Users-users#update Documentation} for more details.
|
|
32
|
+
*/
|
|
33
|
+
async update(options) {
|
|
34
|
+
return this.e621.users.update(this.id, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Update Avatar Crop
|
|
38
|
+
*
|
|
39
|
+
* @requiresApiKeyAuth
|
|
40
|
+
*
|
|
41
|
+
* @operationId {@link https://e621.wiki/#operations-Users-maintenance/user/avatars#update maintenance/user/avatars#update}
|
|
42
|
+
*
|
|
43
|
+
* @see {@link https://e621.wiki/#operations-Users-maintenance/user/avatars#update Documentation} for more details.
|
|
44
|
+
*/
|
|
45
|
+
async updateAvatarCrop(options) {
|
|
46
|
+
return this.e621.users.updateAvatarCrop(options);
|
|
47
|
+
}
|
|
12
48
|
};
|
|
49
|
+
__decorate([
|
|
50
|
+
OperationID("users#avatar_menu"),
|
|
51
|
+
__metadata("design:type", Function),
|
|
52
|
+
__metadata("design:paramtypes", []),
|
|
53
|
+
__metadata("design:returntype", Promise)
|
|
54
|
+
], CurrentUser.prototype, "avatarMenu", null);
|
|
55
|
+
__decorate([
|
|
56
|
+
OperationID("users#update"),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", [Object]),
|
|
59
|
+
__metadata("design:returntype", Promise)
|
|
60
|
+
], CurrentUser.prototype, "update", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
OperationID("maintenance/user/avatars#update"),
|
|
63
|
+
__metadata("design:type", Function),
|
|
64
|
+
__metadata("design:paramtypes", [Object]),
|
|
65
|
+
__metadata("design:returntype", Promise)
|
|
66
|
+
], CurrentUser.prototype, "updateAvatarCrop", null);
|
|
13
67
|
CurrentUser = __decorate([
|
|
14
68
|
Schema("CurrentUser")
|
|
15
69
|
], CurrentUser);
|
|
16
70
|
export default CurrentUser;
|
|
17
|
-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NBR3hCO0FBWUs7SUFEUixXQUFXLENBQUMsaUNBQWlDLENBQUM7Ozs7bURBRzNDO0FBOUNDLFdBQVc7SUFEaEIsTUFBTSxDQUFDLGFBQWEsQ0FBQztHQUNoQixXQUFXLENBK0NoQjtBQUVELGVBQWUsV0FBVyxDQUFDIn0=
|
|
@@ -17,9 +17,9 @@ declare class DMail extends Base<DMailData> {
|
|
|
17
17
|
*
|
|
18
18
|
* @requiresApiKeyAuth
|
|
19
19
|
*
|
|
20
|
-
* @operationId {@link https://e621.wiki/#operations-DMails-
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-DMails-dmails#destroy dmails#destroy}
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://e621.wiki/#operations-DMails-
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-DMails-dmails#destroy Documentation} for more details.
|
|
23
23
|
*/
|
|
24
24
|
delete(): Promise<null>;
|
|
25
25
|
/**
|
|
@@ -27,9 +27,9 @@ declare class DMail extends Base<DMailData> {
|
|
|
27
27
|
*
|
|
28
28
|
* @requiresApiKeyAuth
|
|
29
29
|
*
|
|
30
|
-
* @operationId {@link https://e621.wiki/#operations-DMails-
|
|
30
|
+
* @operationId {@link https://e621.wiki/#operations-DMails-dmails#mark_as_read dmails#mark_as_read}
|
|
31
31
|
*
|
|
32
|
-
* @see {@link https://e621.wiki/#operations-DMails-
|
|
32
|
+
* @see {@link https://e621.wiki/#operations-DMails-dmails#mark_as_read Documentation} for more details.
|
|
33
33
|
*/
|
|
34
34
|
markRead(): Promise<null>;
|
|
35
35
|
/**
|
|
@@ -37,10 +37,20 @@ declare class DMail extends Base<DMailData> {
|
|
|
37
37
|
*
|
|
38
38
|
* @requiresApiKeyAuth
|
|
39
39
|
*
|
|
40
|
-
* @operationId {@link https://e621.wiki/#operations-DMails-
|
|
40
|
+
* @operationId {@link https://e621.wiki/#operations-DMails-dmails#mark_as_unread dmails#mark_as_unread}
|
|
41
41
|
*
|
|
42
|
-
* @see {@link https://e621.wiki/#operations-DMails-
|
|
42
|
+
* @see {@link https://e621.wiki/#operations-DMails-dmails#mark_as_unread Documentation} for more details.
|
|
43
43
|
*/
|
|
44
44
|
markUnread(): Promise<null>;
|
|
45
|
+
/**
|
|
46
|
+
* Update User Dmail Filter
|
|
47
|
+
*
|
|
48
|
+
* @requiresApiKeyAuth
|
|
49
|
+
*
|
|
50
|
+
* @operationId {@link https://e621.wiki/#operations-DMails-maintenance/user/dmail_filters#update maintenance/user/dmail_filters#update}
|
|
51
|
+
*
|
|
52
|
+
* @see {@link https://e621.wiki/#operations-DMails-maintenance/user/dmail_filters#update Documentation} for more details.
|
|
53
|
+
*/
|
|
54
|
+
updateFilter(words: string): Promise<null>;
|
|
45
55
|
}
|
|
46
56
|
export default DMail;
|