e621 3.0.3 → 3.2.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/README.md +52 -0
- package/dist/browser/e621.d.ts +2 -0
- package/dist/browser/e621.js +19289 -0
- package/dist/browser/e621.js.map +7 -0
- package/dist/lib/Debug.browser.d.ts +6 -0
- package/dist/lib/Debug.browser.js +8 -0
- package/dist/lib/client.d.ts +59 -0
- package/dist/lib/client.js +72 -0
- package/dist/lib/errors.d.ts +3 -3
- package/dist/lib/errors.js +6 -2
- package/dist/lib/generated/client/client.js +105 -124
- 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 +4 -4
- 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/schemas.d.ts +1192 -219
- package/dist/lib/generated/schemas.js +1780 -483
- package/dist/lib/generated/sdk.d.ts +612 -380
- package/dist/lib/generated/sdk.js +895 -546
- package/dist/lib/generated/types.d.ts +6241 -4549
- package/dist/lib/index.d.ts +2 -43
- package/dist/lib/index.js +5 -61
- package/dist/lib/models/Appeal.d.ts +48 -0
- package/dist/lib/models/Appeal.js +74 -0
- package/dist/lib/models/Artist.d.ts +15 -18
- package/dist/lib/models/Artist.js +24 -27
- package/dist/lib/models/AvoidPosting.d.ts +11 -15
- package/dist/lib/models/AvoidPosting.js +21 -25
- package/dist/lib/models/Base.browser.d.ts +14 -0
- package/dist/lib/models/Base.browser.js +22 -0
- package/dist/lib/models/BasicPost.d.ts +14 -0
- package/dist/lib/models/BasicPost.js +17 -0
- package/dist/lib/models/Blip.d.ts +19 -24
- package/dist/lib/models/Blip.js +30 -35
- package/dist/lib/models/BulkUpdateRequest.d.ts +9 -12
- package/dist/lib/models/BulkUpdateRequest.js +18 -21
- package/dist/lib/models/Comment.d.ts +25 -32
- package/dist/lib/models/Comment.js +39 -46
- package/dist/lib/models/CommentVote.d.ts +47 -0
- package/dist/lib/models/CommentVote.js +74 -0
- package/dist/lib/models/CurrentUser.d.ts +33 -1
- package/dist/lib/models/CurrentUser.js +54 -3
- package/dist/lib/models/DMail.d.ts +15 -9
- package/dist/lib/models/DMail.js +27 -13
- package/dist/lib/models/DbExport.d.ts +14 -0
- package/dist/lib/models/DbExport.js +17 -0
- package/dist/lib/models/EmailBlacklist.d.ts +2 -3
- package/dist/lib/models/EmailBlacklist.js +4 -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 +37 -34
- package/dist/lib/models/ForumPost.js +57 -47
- package/dist/lib/models/ForumPostVote.d.ts +2 -3
- package/dist/lib/models/ForumPostVote.js +5 -6
- package/dist/lib/models/ForumTopic.d.ts +20 -26
- package/dist/lib/models/ForumTopic.js +33 -39
- package/dist/lib/models/HelpPage.d.ts +37 -0
- package/dist/lib/models/HelpPage.js +55 -0
- package/dist/lib/models/IpBan.d.ts +2 -3
- package/dist/lib/models/IpBan.js +4 -5
- package/dist/lib/models/Mascot.d.ts +6 -8
- package/dist/lib/models/Mascot.js +10 -12
- package/dist/lib/models/MinimalUser.d.ts +14 -0
- package/dist/lib/models/MinimalUser.js +17 -0
- package/dist/lib/models/NewsUpdate.d.ts +6 -8
- package/dist/lib/models/NewsUpdate.js +10 -12
- package/dist/lib/models/Note.d.ts +9 -12
- package/dist/lib/models/Note.js +18 -21
- package/dist/lib/models/NoteVersion.d.ts +2 -3
- package/dist/lib/models/NoteVersion.js +4 -5
- package/dist/lib/models/Pool.d.ts +15 -20
- package/dist/lib/models/Pool.js +28 -33
- package/dist/lib/models/PoolVersion.d.ts +2 -3
- package/dist/lib/models/PoolVersion.js +4 -5
- package/dist/lib/models/Post.d.ts +5 -174
- package/dist/lib/models/Post.js +8 -294
- package/dist/lib/models/PostApproval.d.ts +2 -3
- package/dist/lib/models/PostApproval.js +4 -5
- package/dist/lib/models/PostFlag.d.ts +4 -6
- package/dist/lib/models/PostFlag.js +8 -10
- package/dist/lib/models/PostReplacement.d.ts +10 -15
- package/dist/lib/models/PostReplacement.js +16 -21
- package/dist/lib/models/PostSet.d.ts +15 -20
- package/dist/lib/models/PostSet.js +26 -31
- package/dist/lib/models/PostVersion.d.ts +8 -12
- package/dist/lib/models/PostVersion.js +13 -17
- package/dist/lib/models/PostVote.d.ts +6 -9
- package/dist/lib/models/PostVote.js +11 -14
- package/dist/lib/models/SearchTrendBlacklist.d.ts +23 -0
- package/dist/lib/models/SearchTrendBlacklist.js +41 -3
- package/dist/lib/models/StaffFile.d.ts +37 -0
- package/dist/lib/models/StaffFile.js +55 -0
- package/dist/lib/models/StaffNote.d.ts +10 -13
- package/dist/lib/models/StaffNote.js +19 -22
- package/dist/lib/models/StaffWiki.d.ts +59 -0
- package/dist/lib/models/StaffWiki.js +93 -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 +16 -20
- package/dist/lib/models/Tag.js +28 -32
- package/dist/lib/models/TagAlias.d.ts +11 -14
- package/dist/lib/models/TagAlias.js +20 -23
- package/dist/lib/models/TagImplication.d.ts +11 -14
- package/dist/lib/models/TagImplication.js +20 -23
- package/dist/lib/models/Takedown.d.ts +18 -24
- package/dist/lib/models/Takedown.js +27 -33
- package/dist/lib/models/ThumbnailPost.d.ts +14 -0
- package/dist/lib/models/ThumbnailPost.js +17 -0
- package/dist/lib/models/Ticket.d.ts +11 -14
- package/dist/lib/models/Ticket.js +20 -23
- package/dist/lib/models/UploadWhitelist.d.ts +6 -8
- package/dist/lib/models/UploadWhitelist.js +10 -12
- package/dist/lib/models/User.d.ts +27 -23
- package/dist/lib/models/User.js +43 -31
- package/dist/lib/models/UserFeedback.d.ts +11 -15
- package/dist/lib/models/UserFeedback.js +21 -25
- package/dist/lib/models/UserNameChangeRequest.d.ts +2 -3
- package/dist/lib/models/UserNameChangeRequest.js +4 -5
- package/dist/lib/models/WikiPage.d.ts +11 -14
- package/dist/lib/models/WikiPage.js +20 -23
- package/dist/lib/models/WikiPageVersion.d.ts +2 -3
- package/dist/lib/models/WikiPageVersion.js +4 -5
- package/dist/lib/models/index.d.ts +12 -1
- package/dist/lib/models/index.js +13 -2
- package/dist/lib/models/posts/Actions.d.ts +279 -0
- package/dist/lib/models/posts/Actions.js +476 -0
- package/dist/lib/modules/Appeals.d.ts +69 -0
- package/dist/lib/modules/Appeals.js +125 -0
- package/dist/lib/modules/ArtistUrls.d.ts +5 -5
- package/dist/lib/modules/ArtistUrls.js +7 -7
- package/dist/lib/modules/ArtistVersions.d.ts +5 -5
- package/dist/lib/modules/ArtistVersions.js +7 -7
- package/dist/lib/modules/Artists.d.ts +31 -36
- package/dist/lib/modules/Artists.js +53 -58
- package/dist/lib/modules/AvoidPostingVersions.d.ts +5 -5
- package/dist/lib/modules/AvoidPostingVersions.js +7 -7
- package/dist/lib/modules/AvoidPostings.d.ts +29 -55
- package/dist/lib/modules/AvoidPostings.js +51 -75
- package/dist/lib/modules/Bans.d.ts +7 -8
- package/dist/lib/modules/Bans.js +11 -12
- package/dist/lib/modules/Base.d.ts +15 -4
- package/dist/lib/modules/Base.js +15 -4
- package/dist/lib/modules/Blips.d.ts +34 -41
- package/dist/lib/modules/Blips.js +59 -64
- package/dist/lib/modules/BulkUpdateRequests.d.ts +25 -30
- package/dist/lib/modules/BulkUpdateRequests.js +47 -52
- package/dist/lib/modules/CommentVotes.d.ts +45 -6
- package/dist/lib/modules/CommentVotes.js +75 -12
- package/dist/lib/modules/Comments.d.ts +34 -43
- package/dist/lib/modules/Comments.js +57 -66
- package/dist/lib/modules/DMails.d.ts +25 -20
- package/dist/lib/modules/DMails.js +37 -32
- package/dist/lib/modules/DText.d.ts +6 -6
- package/dist/lib/modules/DText.js +7 -7
- package/dist/lib/modules/DbExports.d.ts +13 -0
- package/dist/lib/modules/DbExports.js +27 -0
- package/dist/lib/modules/EditHistories.d.ts +8 -9
- package/dist/lib/modules/EditHistories.js +11 -12
- package/dist/lib/modules/EmailBlacklists.d.ts +10 -12
- package/dist/lib/modules/EmailBlacklists.js +16 -18
- package/dist/lib/modules/Favorites.d.ts +15 -17
- package/dist/lib/modules/Favorites.js +20 -20
- package/dist/lib/modules/ForumPostVotes.d.ts +40 -0
- package/dist/lib/modules/ForumPostVotes.js +71 -0
- package/dist/lib/modules/ForumPosts.d.ts +32 -41
- package/dist/lib/modules/ForumPosts.js +55 -64
- package/dist/lib/modules/ForumTopics.d.ts +36 -50
- package/dist/lib/modules/ForumTopics.js +61 -84
- package/dist/lib/modules/Health.d.ts +12 -0
- package/dist/lib/modules/Health.js +26 -0
- package/dist/lib/modules/HelpPages.d.ts +27 -26
- package/dist/lib/modules/HelpPages.js +58 -47
- package/dist/lib/modules/IpBans.d.ts +10 -12
- package/dist/lib/modules/IpBans.js +16 -18
- package/dist/lib/modules/IqdbQueries.d.ts +14 -14
- package/dist/lib/modules/IqdbQueries.js +25 -18
- package/dist/lib/modules/Mascots.d.ts +19 -22
- package/dist/lib/modules/Mascots.js +33 -36
- package/dist/lib/modules/ModActions.d.ts +7 -8
- package/dist/lib/modules/ModActions.js +11 -12
- package/dist/lib/modules/NewsUpdates.d.ts +19 -22
- package/dist/lib/modules/NewsUpdates.js +35 -38
- package/dist/lib/modules/NoteVersions.d.ts +5 -5
- package/dist/lib/modules/NoteVersions.js +7 -7
- package/dist/lib/modules/Notes.d.ts +24 -29
- package/dist/lib/modules/Notes.js +45 -50
- package/dist/lib/modules/PoolVersions.d.ts +5 -5
- package/dist/lib/modules/PoolVersions.js +7 -7
- package/dist/lib/modules/Pools.d.ts +33 -41
- package/dist/lib/modules/Pools.js +58 -66
- package/dist/lib/modules/Popular.d.ts +7 -7
- package/dist/lib/modules/Popular.js +13 -11
- package/dist/lib/modules/PostApprovals.d.ts +9 -11
- package/dist/lib/modules/PostApprovals.js +15 -17
- package/dist/lib/modules/PostDisapprovals.d.ts +11 -9
- package/dist/lib/modules/PostDisapprovals.js +12 -13
- package/dist/lib/modules/PostEvents.d.ts +5 -5
- package/dist/lib/modules/PostEvents.js +13 -9
- package/dist/lib/modules/PostFlags.d.ts +26 -15
- package/dist/lib/modules/PostFlags.js +42 -23
- package/dist/lib/modules/PostReplacements.d.ts +20 -26
- package/dist/lib/modules/PostReplacements.js +36 -38
- package/dist/lib/modules/PostSets.d.ts +34 -42
- package/dist/lib/modules/PostSets.js +60 -68
- package/dist/lib/modules/PostVersions.d.ts +11 -14
- package/dist/lib/modules/PostVersions.js +19 -22
- package/dist/lib/modules/PostVotes.d.ts +33 -12
- package/dist/lib/modules/PostVotes.js +56 -17
- package/dist/lib/modules/Posts.d.ts +130 -70
- package/dist/lib/modules/Posts.js +215 -115
- package/dist/lib/modules/RelatedTags.d.ts +7 -7
- package/dist/lib/modules/RelatedTags.js +7 -7
- package/dist/lib/modules/SearchTrendBlacklists.d.ts +11 -28
- package/dist/lib/modules/SearchTrendBlacklists.js +15 -40
- package/dist/lib/modules/SearchTrends.d.ts +30 -19
- package/dist/lib/modules/SearchTrends.js +41 -22
- package/dist/lib/modules/StaffAutomodDMails.d.ts +55 -0
- package/dist/lib/modules/StaffAutomodDMails.js +98 -0
- package/dist/lib/modules/{users/DMails.d.ts → StaffDMails.d.ts} +8 -9
- package/dist/lib/modules/StaffDMails.js +54 -0
- package/dist/lib/modules/StaffExceptionLogs.d.ts +33 -0
- package/dist/lib/modules/StaffExceptionLogs.js +54 -0
- package/dist/lib/modules/StaffFiles.d.ts +72 -0
- package/dist/lib/modules/StaffFiles.js +121 -0
- package/dist/lib/modules/StaffNotes.d.ts +26 -31
- package/dist/lib/modules/StaffNotes.js +47 -52
- package/dist/lib/modules/StaffUserCleanups.d.ts +60 -0
- package/dist/lib/modules/StaffUserCleanups.js +124 -0
- package/dist/lib/modules/StaffUsers.d.ts +43 -0
- package/dist/lib/modules/StaffUsers.js +75 -0
- package/dist/lib/modules/StaffVoteTrends.d.ts +26 -0
- package/dist/lib/modules/StaffVoteTrends.js +39 -0
- package/dist/lib/modules/StaffWikiVersions.d.ts +33 -0
- package/dist/lib/modules/StaffWikiVersions.js +54 -0
- package/dist/lib/modules/StaffWikis.d.ts +94 -0
- package/dist/lib/modules/StaffWikis.js +165 -0
- package/dist/lib/modules/TagAliases.d.ts +26 -31
- package/dist/lib/modules/TagAliases.js +47 -52
- package/dist/lib/modules/TagCorrections.d.ts +6 -7
- package/dist/lib/modules/TagCorrections.js +12 -13
- package/dist/lib/modules/TagImplications.d.ts +26 -31
- package/dist/lib/modules/TagImplications.js +47 -52
- package/dist/lib/modules/TagTypeVersions.d.ts +5 -5
- package/dist/lib/modules/TagTypeVersions.js +7 -7
- package/dist/lib/modules/Tags.d.ts +23 -27
- package/dist/lib/modules/Tags.js +42 -46
- package/dist/lib/modules/Takedowns.d.ts +37 -45
- package/dist/lib/modules/Takedowns.js +59 -67
- package/dist/lib/modules/Tickets.d.ts +24 -28
- package/dist/lib/modules/Tickets.js +44 -48
- package/dist/lib/modules/UploadWhitelists.d.ts +21 -25
- package/dist/lib/modules/UploadWhitelists.js +37 -41
- package/dist/lib/modules/Uploads.d.ts +11 -13
- package/dist/lib/modules/Uploads.js +16 -18
- package/dist/lib/modules/UserFeedbacks.d.ts +28 -34
- package/dist/lib/modules/UserFeedbacks.js +52 -58
- package/dist/lib/modules/UserNameChangeRequests.d.ts +12 -15
- package/dist/lib/modules/UserNameChangeRequests.js +20 -23
- package/dist/lib/modules/Users.d.ts +56 -40
- package/dist/lib/modules/Users.js +91 -63
- package/dist/lib/modules/WikiPageVersions.d.ts +7 -8
- package/dist/lib/modules/WikiPageVersions.js +11 -12
- package/dist/lib/modules/WikiPages.d.ts +26 -31
- package/dist/lib/modules/WikiPages.js +47 -52
- package/dist/lib/modules/index.d.ts +39 -10
- package/dist/lib/modules/index.js +27 -5
- package/dist/lib/modules/posts/Format.d.ts +27 -0
- package/dist/lib/modules/posts/Format.js +17 -0
- package/dist/lib/standalone.d.ts +20 -0
- package/dist/lib/standalone.js +17 -0
- package/dist/lib/util.js +4 -10
- package/dist/lib/version.d.ts +2 -0
- package/dist/lib/version.js +3 -0
- package/package.json +34 -10
- package/tsconfig.json +2 -2
- package/dist/lib/generated/source.json +0 -19075
- package/dist/lib/models/Help.d.ts +0 -39
- package/dist/lib/models/Help.js +0 -57
- package/dist/lib/modules/admin/Users.d.ts +0 -45
- 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
- package/dist/package.json +0 -73
|
@@ -10,102 +10,97 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let PostReplacement = class PostReplacement extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Approve Post Replacement
|
|
14
13
|
*
|
|
15
14
|
* You must have the "Approve Posts" permission.
|
|
16
15
|
*
|
|
17
16
|
* @requiresApiKeyAuth
|
|
18
17
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#approve post_replacements#approve}
|
|
20
19
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#approve Documentation} for more details.
|
|
22
21
|
*/
|
|
23
22
|
async approve() {
|
|
24
23
|
return this.e621.postReplacements.approve(this.id);
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
|
-
* Delete Post Replacement
|
|
28
26
|
*
|
|
29
27
|
* You must be Admin+.
|
|
30
28
|
*
|
|
31
29
|
* @requiresApiKeyAuth
|
|
32
30
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#destroy post_replacements#destroy}
|
|
34
32
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#destroy Documentation} for more details.
|
|
36
34
|
*/
|
|
37
35
|
async delete() {
|
|
38
36
|
return this.e621.postReplacements.delete(this.id);
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
41
|
-
* Promote Post Replacement
|
|
42
39
|
*
|
|
43
40
|
* You must have the "Approve Posts" permission.
|
|
44
41
|
*
|
|
45
42
|
* @requiresApiKeyAuth
|
|
46
43
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
44
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#promote post_replacements#promote}
|
|
48
45
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
46
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#promote Documentation} for more details.
|
|
50
47
|
*/
|
|
51
48
|
async promote() {
|
|
52
49
|
return this.e621.postReplacements.promote(this.id);
|
|
53
50
|
}
|
|
54
51
|
/**
|
|
55
|
-
* Reject Post Replacement
|
|
56
52
|
*
|
|
57
53
|
* You must have the "Approve Posts" permission.
|
|
58
54
|
*
|
|
59
55
|
* @requiresApiKeyAuth
|
|
60
56
|
*
|
|
61
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#reject post_replacements#reject}
|
|
62
58
|
*
|
|
63
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#reject Documentation} for more details.
|
|
64
60
|
*/
|
|
65
61
|
async reject() {
|
|
66
62
|
return this.e621.postReplacements.reject(this.id);
|
|
67
63
|
}
|
|
68
64
|
/**
|
|
69
|
-
* Toggle Post Replacement Penalty
|
|
70
65
|
*
|
|
71
66
|
* You must have the "Approve Posts" permission.
|
|
72
67
|
*
|
|
73
68
|
* @requiresApiKeyAuth
|
|
74
69
|
*
|
|
75
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
70
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#toggle_penalize post_replacements#toggle_penalize}
|
|
76
71
|
*
|
|
77
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
72
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements\#toggle_penalize Documentation} for more details.
|
|
78
73
|
*/
|
|
79
74
|
async togglePenalize() {
|
|
80
75
|
return this.e621.postReplacements.togglePenalize(this.id);
|
|
81
76
|
}
|
|
82
77
|
};
|
|
83
78
|
__decorate([
|
|
84
|
-
OperationID("
|
|
79
|
+
OperationID("post_replacements#approve"),
|
|
85
80
|
__metadata("design:type", Function),
|
|
86
81
|
__metadata("design:paramtypes", []),
|
|
87
82
|
__metadata("design:returntype", Promise)
|
|
88
83
|
], PostReplacement.prototype, "approve", null);
|
|
89
84
|
__decorate([
|
|
90
|
-
OperationID("
|
|
85
|
+
OperationID("post_replacements#destroy"),
|
|
91
86
|
__metadata("design:type", Function),
|
|
92
87
|
__metadata("design:paramtypes", []),
|
|
93
88
|
__metadata("design:returntype", Promise)
|
|
94
89
|
], PostReplacement.prototype, "delete", null);
|
|
95
90
|
__decorate([
|
|
96
|
-
OperationID("
|
|
91
|
+
OperationID("post_replacements#promote"),
|
|
97
92
|
__metadata("design:type", Function),
|
|
98
93
|
__metadata("design:paramtypes", []),
|
|
99
94
|
__metadata("design:returntype", Promise)
|
|
100
95
|
], PostReplacement.prototype, "promote", null);
|
|
101
96
|
__decorate([
|
|
102
|
-
OperationID("
|
|
97
|
+
OperationID("post_replacements#reject"),
|
|
103
98
|
__metadata("design:type", Function),
|
|
104
99
|
__metadata("design:paramtypes", []),
|
|
105
100
|
__metadata("design:returntype", Promise)
|
|
106
101
|
], PostReplacement.prototype, "reject", null);
|
|
107
102
|
__decorate([
|
|
108
|
-
OperationID("
|
|
103
|
+
OperationID("post_replacements#toggle_penalize"),
|
|
109
104
|
__metadata("design:type", Function),
|
|
110
105
|
__metadata("design:paramtypes", []),
|
|
111
106
|
__metadata("design:returntype", Promise)
|
|
@@ -114,4 +109,4 @@ PostReplacement = __decorate([
|
|
|
114
109
|
Schema("PostReplacement")
|
|
115
110
|
], PostReplacement);
|
|
116
111
|
export default PostReplacement;
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFJlcGxhY2VtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9Qb3N0UmVwbGFjZW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRWpELE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQU03Qjs7Ozs7O0dBTUc7QUFFSCxJQUFNLGVBQWUsR0FBckIsTUFBTSxlQUFnQixTQUFRLElBQXlCO0lBQ25EOzs7Ozs7Ozs7T0FTQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE9BQU87UUFDVCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsT0FBTyx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zs7OztxREFHN0M7QUExRUMsZUFBZTtJQURwQixNQUFNLENBQUMsaUJBQWlCLENBQUM7R0FDcEIsZUFBZSxDQTJFcEI7QUFFRCxlQUFlLGVBQWUsQ0FBQyJ9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Base from "./Base.js";
|
|
2
2
|
import type { PostSet as PostSetData } from "../generated/types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { UpdatePostSetOptions } from "../modules/PostSets.js";
|
|
4
4
|
interface PostSet extends PostSetData {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -12,63 +12,58 @@ interface PostSet extends PostSetData {
|
|
|
12
12
|
*/
|
|
13
13
|
declare class PostSet extends Base<PostSetData> {
|
|
14
14
|
/**
|
|
15
|
-
* Add Posts To Post Set
|
|
16
15
|
*
|
|
17
16
|
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
18
17
|
*
|
|
19
18
|
* @requiresApiKeyAuth
|
|
20
19
|
*
|
|
21
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#add_posts post_sets#add_posts}
|
|
22
21
|
*
|
|
23
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#add_posts Documentation} for more details.
|
|
24
23
|
*/
|
|
25
24
|
addPosts(post_ids: Array<number>): Promise<PostSet>;
|
|
26
25
|
/**
|
|
27
|
-
* Delete Post Set
|
|
28
26
|
*
|
|
29
27
|
* You must be the owner of the set, or Admin+.
|
|
30
28
|
*
|
|
31
29
|
* @requiresApiKeyAuth
|
|
32
30
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#destroy post_sets#destroy}
|
|
34
32
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#destroy Documentation} for more details.
|
|
36
34
|
*/
|
|
37
35
|
delete(): Promise<null>;
|
|
38
36
|
/**
|
|
39
|
-
* Edit Post Set
|
|
40
37
|
*
|
|
41
|
-
* You must be the owner of the set, or Admin+.
|
|
38
|
+
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
42
39
|
*
|
|
43
40
|
* @requiresApiKeyAuth
|
|
44
41
|
*
|
|
45
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
42
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#remove_posts post_sets#remove_posts}
|
|
46
43
|
*
|
|
47
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
44
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#remove_posts Documentation} for more details.
|
|
48
45
|
*/
|
|
49
|
-
|
|
46
|
+
removePosts(post_ids: Array<number>): Promise<PostSet>;
|
|
50
47
|
/**
|
|
51
|
-
* Remove Posts From Post Set
|
|
52
48
|
*
|
|
53
|
-
* You must be the owner of the set,
|
|
49
|
+
* You must be the owner of the set, or Admin+.
|
|
54
50
|
*
|
|
55
51
|
* @requiresApiKeyAuth
|
|
56
52
|
*
|
|
57
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
53
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update post_sets#update}
|
|
58
54
|
*
|
|
59
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
55
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update Documentation} for more details.
|
|
60
56
|
*/
|
|
61
|
-
|
|
57
|
+
update(options: UpdatePostSetOptions): Promise<null>;
|
|
62
58
|
/**
|
|
63
|
-
* Update Post Set Posts
|
|
64
59
|
*
|
|
65
60
|
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
66
61
|
*
|
|
67
62
|
* @requiresApiKeyAuth
|
|
68
63
|
*
|
|
69
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
64
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update_posts post_sets#update_posts}
|
|
70
65
|
*
|
|
71
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
66
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update_posts Documentation} for more details.
|
|
72
67
|
*/
|
|
73
68
|
updatePosts(post_ids: Array<number>): Promise<PostSet>;
|
|
74
69
|
}
|
|
@@ -10,102 +10,97 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let PostSet = class PostSet extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Add Posts To Post Set
|
|
14
13
|
*
|
|
15
14
|
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
16
15
|
*
|
|
17
16
|
* @requiresApiKeyAuth
|
|
18
17
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#add_posts post_sets#add_posts}
|
|
20
19
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#add_posts Documentation} for more details.
|
|
22
21
|
*/
|
|
23
22
|
async addPosts(post_ids) {
|
|
24
23
|
return this.e621.postSets.addPosts(this.id, post_ids);
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
|
-
* Delete Post Set
|
|
28
26
|
*
|
|
29
27
|
* You must be the owner of the set, or Admin+.
|
|
30
28
|
*
|
|
31
29
|
* @requiresApiKeyAuth
|
|
32
30
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#destroy post_sets#destroy}
|
|
34
32
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#destroy Documentation} for more details.
|
|
36
34
|
*/
|
|
37
35
|
async delete() {
|
|
38
36
|
return this.e621.postSets.delete(this.id);
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
41
|
-
* Edit Post Set
|
|
42
39
|
*
|
|
43
|
-
* You must be the owner of the set, or Admin+.
|
|
40
|
+
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
44
41
|
*
|
|
45
42
|
* @requiresApiKeyAuth
|
|
46
43
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
44
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#remove_posts post_sets#remove_posts}
|
|
48
45
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
46
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#remove_posts Documentation} for more details.
|
|
50
47
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.e621.postSets.
|
|
48
|
+
async removePosts(post_ids) {
|
|
49
|
+
return this.e621.postSets.removePosts(this.id, post_ids);
|
|
53
50
|
}
|
|
54
51
|
/**
|
|
55
|
-
* Remove Posts From Post Set
|
|
56
52
|
*
|
|
57
|
-
* You must be the owner of the set,
|
|
53
|
+
* You must be the owner of the set, or Admin+.
|
|
58
54
|
*
|
|
59
55
|
* @requiresApiKeyAuth
|
|
60
56
|
*
|
|
61
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update post_sets#update}
|
|
62
58
|
*
|
|
63
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update Documentation} for more details.
|
|
64
60
|
*/
|
|
65
|
-
async
|
|
66
|
-
return this.e621.postSets.
|
|
61
|
+
async update(options) {
|
|
62
|
+
return this.e621.postSets.update(this.id, options);
|
|
67
63
|
}
|
|
68
64
|
/**
|
|
69
|
-
* Update Post Set Posts
|
|
70
65
|
*
|
|
71
66
|
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
72
67
|
*
|
|
73
68
|
* @requiresApiKeyAuth
|
|
74
69
|
*
|
|
75
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
70
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update_posts post_sets#update_posts}
|
|
76
71
|
*
|
|
77
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
72
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets\#update_posts Documentation} for more details.
|
|
78
73
|
*/
|
|
79
74
|
async updatePosts(post_ids) {
|
|
80
75
|
return this.e621.postSets.updatePosts(this.id, post_ids);
|
|
81
76
|
}
|
|
82
77
|
};
|
|
83
78
|
__decorate([
|
|
84
|
-
OperationID("
|
|
79
|
+
OperationID("post_sets#add_posts"),
|
|
85
80
|
__metadata("design:type", Function),
|
|
86
81
|
__metadata("design:paramtypes", [Array]),
|
|
87
82
|
__metadata("design:returntype", Promise)
|
|
88
83
|
], PostSet.prototype, "addPosts", null);
|
|
89
84
|
__decorate([
|
|
90
|
-
OperationID("
|
|
85
|
+
OperationID("post_sets#destroy"),
|
|
91
86
|
__metadata("design:type", Function),
|
|
92
87
|
__metadata("design:paramtypes", []),
|
|
93
88
|
__metadata("design:returntype", Promise)
|
|
94
89
|
], PostSet.prototype, "delete", null);
|
|
95
90
|
__decorate([
|
|
96
|
-
OperationID("
|
|
91
|
+
OperationID("post_sets#remove_posts"),
|
|
97
92
|
__metadata("design:type", Function),
|
|
98
|
-
__metadata("design:paramtypes", [
|
|
93
|
+
__metadata("design:paramtypes", [Array]),
|
|
99
94
|
__metadata("design:returntype", Promise)
|
|
100
|
-
], PostSet.prototype, "
|
|
95
|
+
], PostSet.prototype, "removePosts", null);
|
|
101
96
|
__decorate([
|
|
102
|
-
OperationID("
|
|
97
|
+
OperationID("post_sets#update"),
|
|
103
98
|
__metadata("design:type", Function),
|
|
104
|
-
__metadata("design:paramtypes", [
|
|
99
|
+
__metadata("design:paramtypes", [Object]),
|
|
105
100
|
__metadata("design:returntype", Promise)
|
|
106
|
-
], PostSet.prototype, "
|
|
101
|
+
], PostSet.prototype, "update", null);
|
|
107
102
|
__decorate([
|
|
108
|
-
OperationID("
|
|
103
|
+
OperationID("post_sets#update_posts"),
|
|
109
104
|
__metadata("design:type", Function),
|
|
110
105
|
__metadata("design:paramtypes", [Array]),
|
|
111
106
|
__metadata("design:returntype", Promise)
|
|
@@ -114,4 +109,4 @@ PostSet = __decorate([
|
|
|
114
109
|
Schema("PostSet")
|
|
115
110
|
], PostSet);
|
|
116
111
|
export default PostSet;
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFNldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvUG9zdFNldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFakQsT0FBTyxJQUFJLE1BQU0sV0FBVyxDQUFDO0FBTTdCOzs7Ozs7R0FNRztBQUVILElBQU0sT0FBTyxHQUFiLE1BQU0sT0FBUSxTQUFRLElBQWlCO0lBQ25DOzs7Ozs7Ozs7T0FTQTtJQUVNLEFBQU4sS0FBSyxDQUFDLFFBQVEsQ0FBQyxRQUF1QjtRQUNsQyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0lBQzFELENBQUM7SUFFRDs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VCO0FBYUs7SUFEUixXQUFXLENBQUMsd0JBQXdCLENBQUM7O3FDQUNQLEtBQUs7OzBDQUVoQztBQTFFQyxPQUFPO0lBRFosTUFBTSxDQUFDLFNBQVMsQ0FBQztHQUNaLE9BQU8sQ0EyRVo7QUFFRCxlQUFlLE9BQU8sQ0FBQyJ9
|
|
@@ -11,47 +11,43 @@ interface PostVersion extends PostVersionData {
|
|
|
11
11
|
*/
|
|
12
12
|
declare class PostVersion extends Base<PostVersionData> {
|
|
13
13
|
/**
|
|
14
|
-
* Hide Post Version
|
|
15
14
|
*
|
|
16
15
|
* You must be Admin+.
|
|
17
16
|
*
|
|
18
17
|
* @requiresApiKeyAuth
|
|
19
18
|
*
|
|
20
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
19
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions\#hide post_versions#hide}
|
|
21
20
|
*
|
|
22
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
21
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions\#hide Documentation} for more details.
|
|
23
22
|
*/
|
|
24
23
|
hide(): Promise<string>;
|
|
25
24
|
/**
|
|
26
|
-
* Revert Post
|
|
27
25
|
*
|
|
28
26
|
* @requiresApiKeyAuth
|
|
29
27
|
*
|
|
30
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-
|
|
28
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#revert posts#revert}
|
|
31
29
|
*
|
|
32
|
-
* @see {@link https://e621.wiki/#operations-Posts-
|
|
30
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#revert Documentation} for more details.
|
|
33
31
|
*/
|
|
34
32
|
revertTo(): Promise<null>;
|
|
35
33
|
/**
|
|
36
|
-
* Undo Post Version
|
|
37
34
|
*
|
|
38
35
|
* @requiresApiKeyAuth
|
|
39
36
|
*
|
|
40
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
37
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions\#undo post_versions#undo}
|
|
41
38
|
*
|
|
42
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
39
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions\#undo Documentation} for more details.
|
|
43
40
|
*/
|
|
44
41
|
undo(): Promise<null>;
|
|
45
42
|
/**
|
|
46
|
-
* Unhide Post Version
|
|
47
43
|
*
|
|
48
44
|
* You must be Admin+.
|
|
49
45
|
*
|
|
50
46
|
* @requiresApiKeyAuth
|
|
51
47
|
*
|
|
52
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
48
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions\#unhide post_versions#unhide}
|
|
53
49
|
*
|
|
54
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
50
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions\#unhide Documentation} for more details.
|
|
55
51
|
*/
|
|
56
52
|
unhide(): Promise<string>;
|
|
57
53
|
}
|
|
@@ -10,78 +10,74 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let PostVersion = class PostVersion extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Hide Post Version
|
|
14
13
|
*
|
|
15
14
|
* You must be Admin+.
|
|
16
15
|
*
|
|
17
16
|
* @requiresApiKeyAuth
|
|
18
17
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions\#hide post_versions#hide}
|
|
20
19
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions\#hide Documentation} for more details.
|
|
22
21
|
*/
|
|
23
22
|
async hide() {
|
|
24
23
|
return this.e621.postVersions.hide(this.id);
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
|
-
* Revert Post
|
|
28
26
|
*
|
|
29
27
|
* @requiresApiKeyAuth
|
|
30
28
|
*
|
|
31
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-
|
|
29
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#revert posts#revert}
|
|
32
30
|
*
|
|
33
|
-
* @see {@link https://e621.wiki/#operations-Posts-
|
|
31
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#revert Documentation} for more details.
|
|
34
32
|
*/
|
|
35
33
|
async revertTo() {
|
|
36
34
|
return this.e621.posts.revert(this.post_id, this.id);
|
|
37
35
|
}
|
|
38
36
|
/**
|
|
39
|
-
* Undo Post Version
|
|
40
37
|
*
|
|
41
38
|
* @requiresApiKeyAuth
|
|
42
39
|
*
|
|
43
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
40
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions\#undo post_versions#undo}
|
|
44
41
|
*
|
|
45
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
42
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions\#undo Documentation} for more details.
|
|
46
43
|
*/
|
|
47
44
|
async undo() {
|
|
48
45
|
return this.e621.postVersions.undo(this.id);
|
|
49
46
|
}
|
|
50
47
|
/**
|
|
51
|
-
* Unhide Post Version
|
|
52
48
|
*
|
|
53
49
|
* You must be Admin+.
|
|
54
50
|
*
|
|
55
51
|
* @requiresApiKeyAuth
|
|
56
52
|
*
|
|
57
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
53
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions\#unhide post_versions#unhide}
|
|
58
54
|
*
|
|
59
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
55
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions\#unhide Documentation} for more details.
|
|
60
56
|
*/
|
|
61
57
|
async unhide() {
|
|
62
58
|
return this.e621.postVersions.unhide(this.id);
|
|
63
59
|
}
|
|
64
60
|
};
|
|
65
61
|
__decorate([
|
|
66
|
-
OperationID("
|
|
62
|
+
OperationID("post_versions#hide"),
|
|
67
63
|
__metadata("design:type", Function),
|
|
68
64
|
__metadata("design:paramtypes", []),
|
|
69
65
|
__metadata("design:returntype", Promise)
|
|
70
66
|
], PostVersion.prototype, "hide", null);
|
|
71
67
|
__decorate([
|
|
72
|
-
OperationID("
|
|
68
|
+
OperationID("posts#revert"),
|
|
73
69
|
__metadata("design:type", Function),
|
|
74
70
|
__metadata("design:paramtypes", []),
|
|
75
71
|
__metadata("design:returntype", Promise)
|
|
76
72
|
], PostVersion.prototype, "revertTo", null);
|
|
77
73
|
__decorate([
|
|
78
|
-
OperationID("
|
|
74
|
+
OperationID("post_versions#undo"),
|
|
79
75
|
__metadata("design:type", Function),
|
|
80
76
|
__metadata("design:paramtypes", []),
|
|
81
77
|
__metadata("design:returntype", Promise)
|
|
82
78
|
], PostVersion.prototype, "undo", null);
|
|
83
79
|
__decorate([
|
|
84
|
-
OperationID("
|
|
80
|
+
OperationID("post_versions#unhide"),
|
|
85
81
|
__metadata("design:type", Function),
|
|
86
82
|
__metadata("design:paramtypes", []),
|
|
87
83
|
__metadata("design:returntype", Promise)
|
|
@@ -90,4 +86,4 @@ PostVersion = __decorate([
|
|
|
90
86
|
Schema("PostVersion")
|
|
91
87
|
], PostVersion);
|
|
92
88
|
export default PostVersion;
|
|
93
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvbW9kZWxzL1Bvc3RWZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVqRC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sQ0FBQzs7Ozt5Q0FHaEM7QUF2REMsV0FBVztJQURoQixNQUFNLENBQUMsYUFBYSxDQUFDO0dBQ2hCLFdBQVcsQ0F3RGhCO0FBRUQsZUFBZSxXQUFXLENBQUMifQ==
|
|
@@ -11,37 +11,34 @@ interface PostVote extends PostVoteData {
|
|
|
11
11
|
*/
|
|
12
12
|
declare class PostVote extends Base<PostVoteData> {
|
|
13
13
|
/**
|
|
14
|
-
* Delete Post Vote
|
|
15
14
|
*
|
|
16
15
|
* @requiresApiKeyAuth
|
|
17
16
|
*
|
|
18
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-
|
|
17
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy post_votes#destroy}
|
|
19
18
|
*
|
|
20
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-
|
|
19
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy Documentation} for more details.
|
|
21
20
|
*/
|
|
22
21
|
delete(): Promise<null>;
|
|
23
22
|
/**
|
|
24
|
-
* Lock Post Votes
|
|
25
23
|
*
|
|
26
24
|
* You must be Moderator+. Errors if ids is not provided.
|
|
27
25
|
*
|
|
28
26
|
* @requiresApiKeyAuth
|
|
29
27
|
*
|
|
30
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-
|
|
28
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock post_votes#lock}
|
|
31
29
|
*
|
|
32
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-
|
|
30
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock Documentation} for more details.
|
|
33
31
|
*/
|
|
34
32
|
lock(): Promise<null>;
|
|
35
33
|
/**
|
|
36
|
-
* Delete Post Vote
|
|
37
34
|
*
|
|
38
35
|
* You must be Admin+. Errors if ids is not provided.
|
|
39
36
|
*
|
|
40
37
|
* @requiresApiKeyAuth
|
|
41
38
|
*
|
|
42
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-
|
|
39
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete post_votes#delete}
|
|
43
40
|
*
|
|
44
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-
|
|
41
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete Documentation} for more details.
|
|
45
42
|
*/
|
|
46
43
|
staffDelete(): Promise<null>;
|
|
47
44
|
}
|
|
@@ -10,60 +10,57 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let PostVote = class PostVote extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Delete Post Vote
|
|
14
13
|
*
|
|
15
14
|
* @requiresApiKeyAuth
|
|
16
15
|
*
|
|
17
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-
|
|
16
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy post_votes#destroy}
|
|
18
17
|
*
|
|
19
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-
|
|
18
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy Documentation} for more details.
|
|
20
19
|
*/
|
|
21
20
|
async delete() {
|
|
22
|
-
return this.e621.
|
|
21
|
+
return this.e621.postVotes.unvote(this.post_id);
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
|
-
* Lock Post Votes
|
|
26
24
|
*
|
|
27
25
|
* You must be Moderator+. Errors if ids is not provided.
|
|
28
26
|
*
|
|
29
27
|
* @requiresApiKeyAuth
|
|
30
28
|
*
|
|
31
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-
|
|
29
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock post_votes#lock}
|
|
32
30
|
*
|
|
33
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-
|
|
31
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock Documentation} for more details.
|
|
34
32
|
*/
|
|
35
33
|
async lock() {
|
|
36
34
|
return this.e621.postVotes.lock([this.id]);
|
|
37
35
|
}
|
|
38
36
|
/**
|
|
39
|
-
* Delete Post Vote
|
|
40
37
|
*
|
|
41
38
|
* You must be Admin+. Errors if ids is not provided.
|
|
42
39
|
*
|
|
43
40
|
* @requiresApiKeyAuth
|
|
44
41
|
*
|
|
45
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-
|
|
42
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete post_votes#delete}
|
|
46
43
|
*
|
|
47
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-
|
|
44
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete Documentation} for more details.
|
|
48
45
|
*/
|
|
49
46
|
async staffDelete() {
|
|
50
47
|
return this.e621.postVotes.delete([this.id]);
|
|
51
48
|
}
|
|
52
49
|
};
|
|
53
50
|
__decorate([
|
|
54
|
-
OperationID("
|
|
51
|
+
OperationID("post_votes#destroy"),
|
|
55
52
|
__metadata("design:type", Function),
|
|
56
53
|
__metadata("design:paramtypes", []),
|
|
57
54
|
__metadata("design:returntype", Promise)
|
|
58
55
|
], PostVote.prototype, "delete", null);
|
|
59
56
|
__decorate([
|
|
60
|
-
OperationID("
|
|
57
|
+
OperationID("post_votes#lock"),
|
|
61
58
|
__metadata("design:type", Function),
|
|
62
59
|
__metadata("design:paramtypes", []),
|
|
63
60
|
__metadata("design:returntype", Promise)
|
|
64
61
|
], PostVote.prototype, "lock", null);
|
|
65
62
|
__decorate([
|
|
66
|
-
OperationID("
|
|
63
|
+
OperationID("post_votes#delete"),
|
|
67
64
|
__metadata("design:type", Function),
|
|
68
65
|
__metadata("design:paramtypes", []),
|
|
69
66
|
__metadata("design:returntype", Promise)
|
|
@@ -72,4 +69,4 @@ PostVote = __decorate([
|
|
|
72
69
|
Schema("PostVote")
|
|
73
70
|
], PostVote);
|
|
74
71
|
export default PostVote;
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
72
|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