e621 3.1.0 → 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/index.d.ts +2 -43
- package/dist/lib/index.js +5 -61
- package/dist/lib/models/Appeal.d.ts +6 -9
- package/dist/lib/models/Appeal.js +7 -10
- package/dist/lib/models/Artist.d.ts +6 -9
- package/dist/lib/models/Artist.js +7 -10
- package/dist/lib/models/AvoidPosting.d.ts +8 -12
- package/dist/lib/models/AvoidPosting.js +9 -13
- package/dist/lib/models/Base.browser.d.ts +14 -0
- package/dist/lib/models/Base.browser.js +22 -0
- package/dist/lib/models/Blip.d.ts +10 -15
- package/dist/lib/models/Blip.js +11 -16
- package/dist/lib/models/BulkUpdateRequest.d.ts +6 -9
- package/dist/lib/models/BulkUpdateRequest.js +7 -10
- package/dist/lib/models/Comment.d.ts +14 -21
- package/dist/lib/models/Comment.js +15 -22
- package/dist/lib/models/CommentVote.d.ts +6 -9
- package/dist/lib/models/CommentVote.js +7 -10
- package/dist/lib/models/CurrentUser.d.ts +6 -9
- package/dist/lib/models/CurrentUser.js +7 -10
- package/dist/lib/models/DMail.d.ts +8 -12
- package/dist/lib/models/DMail.js +9 -13
- package/dist/lib/models/EmailBlacklist.d.ts +2 -3
- package/dist/lib/models/EmailBlacklist.js +3 -4
- package/dist/lib/models/ForumPost.d.ts +16 -24
- package/dist/lib/models/ForumPost.js +17 -25
- package/dist/lib/models/ForumPostVote.d.ts +2 -3
- package/dist/lib/models/ForumPostVote.js +3 -4
- package/dist/lib/models/ForumTopic.d.ts +12 -18
- package/dist/lib/models/ForumTopic.js +13 -19
- package/dist/lib/models/HelpPage.d.ts +4 -6
- package/dist/lib/models/HelpPage.js +5 -7
- package/dist/lib/models/IpBan.d.ts +2 -3
- package/dist/lib/models/IpBan.js +3 -4
- package/dist/lib/models/Mascot.d.ts +4 -6
- package/dist/lib/models/Mascot.js +5 -7
- package/dist/lib/models/NewsUpdate.d.ts +4 -6
- package/dist/lib/models/NewsUpdate.js +5 -7
- package/dist/lib/models/Note.d.ts +6 -9
- package/dist/lib/models/Note.js +7 -10
- package/dist/lib/models/NoteVersion.d.ts +2 -3
- package/dist/lib/models/NoteVersion.js +3 -4
- package/dist/lib/models/Pool.d.ts +10 -15
- package/dist/lib/models/Pool.js +11 -16
- package/dist/lib/models/PoolVersion.d.ts +2 -3
- package/dist/lib/models/PoolVersion.js +3 -4
- package/dist/lib/models/PostApproval.d.ts +2 -3
- package/dist/lib/models/PostApproval.js +3 -4
- package/dist/lib/models/PostFlag.d.ts +4 -6
- package/dist/lib/models/PostFlag.js +5 -7
- package/dist/lib/models/PostReplacement.d.ts +10 -15
- package/dist/lib/models/PostReplacement.js +11 -16
- package/dist/lib/models/PostSet.d.ts +10 -15
- package/dist/lib/models/PostSet.js +11 -16
- package/dist/lib/models/PostVersion.d.ts +8 -12
- package/dist/lib/models/PostVersion.js +9 -13
- package/dist/lib/models/PostVote.d.ts +6 -9
- package/dist/lib/models/PostVote.js +7 -10
- package/dist/lib/models/SearchTrendBlacklist.d.ts +4 -6
- package/dist/lib/models/SearchTrendBlacklist.js +5 -7
- package/dist/lib/models/StaffFile.d.ts +5 -7
- package/dist/lib/models/StaffFile.js +7 -9
- package/dist/lib/models/StaffNote.d.ts +6 -9
- package/dist/lib/models/StaffNote.js +7 -10
- package/dist/lib/models/StaffWiki.d.ts +9 -13
- package/dist/lib/models/StaffWiki.js +13 -17
- package/dist/lib/models/Tag.d.ts +8 -12
- package/dist/lib/models/Tag.js +9 -13
- package/dist/lib/models/TagAlias.d.ts +6 -9
- package/dist/lib/models/TagAlias.js +7 -10
- package/dist/lib/models/TagImplication.d.ts +6 -9
- package/dist/lib/models/TagImplication.js +7 -10
- package/dist/lib/models/Takedown.d.ts +12 -18
- package/dist/lib/models/Takedown.js +13 -19
- package/dist/lib/models/Ticket.d.ts +6 -9
- package/dist/lib/models/Ticket.js +7 -10
- package/dist/lib/models/UploadWhitelist.d.ts +4 -6
- package/dist/lib/models/UploadWhitelist.js +5 -7
- package/dist/lib/models/User.d.ts +17 -25
- package/dist/lib/models/User.js +19 -27
- package/dist/lib/models/UserFeedback.d.ts +8 -12
- package/dist/lib/models/UserFeedback.js +9 -13
- package/dist/lib/models/UserNameChangeRequest.d.ts +2 -3
- package/dist/lib/models/UserNameChangeRequest.js +3 -4
- package/dist/lib/models/WikiPage.d.ts +6 -9
- package/dist/lib/models/WikiPage.js +7 -10
- package/dist/lib/models/WikiPageVersion.d.ts +2 -3
- package/dist/lib/models/WikiPageVersion.js +3 -4
- package/dist/lib/models/posts/Actions.d.ts +52 -78
- package/dist/lib/models/posts/Actions.js +53 -79
- package/dist/lib/modules/Appeals.d.ts +11 -15
- package/dist/lib/modules/Appeals.js +12 -16
- package/dist/lib/modules/ArtistUrls.d.ts +3 -3
- package/dist/lib/modules/ArtistUrls.js +4 -4
- package/dist/lib/modules/ArtistVersions.d.ts +3 -3
- package/dist/lib/modules/ArtistVersions.js +4 -4
- package/dist/lib/modules/Artists.d.ts +13 -18
- package/dist/lib/modules/Artists.js +14 -19
- package/dist/lib/modules/AvoidPostingVersions.d.ts +3 -3
- package/dist/lib/modules/AvoidPostingVersions.js +4 -4
- package/dist/lib/modules/AvoidPostings.d.ts +15 -21
- package/dist/lib/modules/AvoidPostings.js +16 -22
- package/dist/lib/modules/Bans.d.ts +5 -6
- package/dist/lib/modules/Bans.js +6 -7
- package/dist/lib/modules/Base.d.ts +13 -2
- package/dist/lib/modules/Base.js +13 -2
- package/dist/lib/modules/Blips.d.ts +17 -24
- package/dist/lib/modules/Blips.js +18 -25
- package/dist/lib/modules/BulkUpdateRequests.d.ts +13 -18
- package/dist/lib/modules/BulkUpdateRequests.js +14 -19
- package/dist/lib/modules/CommentVotes.d.ts +11 -15
- package/dist/lib/modules/CommentVotes.js +12 -16
- package/dist/lib/modules/Comments.d.ts +17 -24
- package/dist/lib/modules/Comments.js +18 -25
- package/dist/lib/modules/DMails.d.ts +13 -18
- package/dist/lib/modules/DMails.js +14 -19
- package/dist/lib/modules/DText.d.ts +3 -3
- package/dist/lib/modules/DText.js +4 -4
- package/dist/lib/modules/DbExports.d.ts +3 -3
- package/dist/lib/modules/DbExports.js +4 -4
- package/dist/lib/modules/EditHistories.d.ts +5 -6
- package/dist/lib/modules/EditHistories.js +6 -7
- package/dist/lib/modules/EmailBlacklists.d.ts +7 -9
- package/dist/lib/modules/EmailBlacklists.js +8 -10
- package/dist/lib/modules/Favorites.d.ts +7 -9
- package/dist/lib/modules/Favorites.js +8 -10
- package/dist/lib/modules/ForumPostVotes.d.ts +7 -9
- package/dist/lib/modules/ForumPostVotes.js +8 -10
- package/dist/lib/modules/ForumPosts.d.ts +17 -24
- package/dist/lib/modules/ForumPosts.js +18 -25
- package/dist/lib/modules/ForumTopics.d.ts +21 -30
- package/dist/lib/modules/ForumTopics.js +22 -31
- package/dist/lib/modules/Health.d.ts +3 -3
- package/dist/lib/modules/Health.js +4 -4
- package/dist/lib/modules/HelpPages.d.ts +13 -18
- package/dist/lib/modules/HelpPages.js +14 -19
- package/dist/lib/modules/IpBans.d.ts +7 -9
- package/dist/lib/modules/IpBans.js +8 -10
- package/dist/lib/modules/IqdbQueries.d.ts +5 -6
- package/dist/lib/modules/IqdbQueries.js +6 -7
- package/dist/lib/modules/Mascots.d.ts +9 -12
- package/dist/lib/modules/Mascots.js +10 -13
- package/dist/lib/modules/ModActions.d.ts +5 -6
- package/dist/lib/modules/ModActions.js +6 -7
- package/dist/lib/modules/NewsUpdates.d.ts +9 -12
- package/dist/lib/modules/NewsUpdates.js +10 -13
- package/dist/lib/modules/NoteVersions.d.ts +3 -3
- package/dist/lib/modules/NoteVersions.js +4 -4
- package/dist/lib/modules/Notes.d.ts +13 -18
- package/dist/lib/modules/Notes.js +14 -19
- package/dist/lib/modules/PoolVersions.d.ts +3 -3
- package/dist/lib/modules/PoolVersions.js +4 -4
- package/dist/lib/modules/Pools.d.ts +19 -27
- package/dist/lib/modules/Pools.js +20 -28
- package/dist/lib/modules/Popular.d.ts +3 -3
- package/dist/lib/modules/Popular.js +4 -4
- package/dist/lib/modules/PostApprovals.d.ts +7 -9
- package/dist/lib/modules/PostApprovals.js +8 -10
- package/dist/lib/modules/PostDisapprovals.d.ts +5 -6
- package/dist/lib/modules/PostDisapprovals.js +6 -7
- package/dist/lib/modules/PostEvents.d.ts +3 -3
- package/dist/lib/modules/PostEvents.js +4 -4
- package/dist/lib/modules/PostFlags.d.ts +11 -15
- package/dist/lib/modules/PostFlags.js +12 -16
- package/dist/lib/modules/PostReplacements.d.ts +15 -21
- package/dist/lib/modules/PostReplacements.js +16 -22
- package/dist/lib/modules/PostSets.d.ts +19 -27
- package/dist/lib/modules/PostSets.js +20 -28
- package/dist/lib/modules/PostVersions.d.ts +9 -12
- package/dist/lib/modules/PostVersions.js +10 -13
- package/dist/lib/modules/PostVotes.d.ts +11 -15
- package/dist/lib/modules/PostVotes.js +12 -16
- package/dist/lib/modules/Posts.d.ts +43 -63
- package/dist/lib/modules/Posts.js +44 -64
- package/dist/lib/modules/RelatedTags.d.ts +3 -3
- package/dist/lib/modules/RelatedTags.js +4 -4
- package/dist/lib/modules/SearchTrendBlacklists.d.ts +7 -9
- package/dist/lib/modules/SearchTrendBlacklists.js +8 -10
- package/dist/lib/modules/SearchTrends.d.ts +11 -15
- package/dist/lib/modules/SearchTrends.js +12 -16
- package/dist/lib/modules/{staff/AutomodDMails.d.ts → StaffAutomodDMails.d.ts} +15 -18
- package/dist/lib/modules/{staff/AutomodDMails.js → StaffAutomodDMails.js} +14 -17
- package/dist/lib/modules/{staff/DMails.d.ts → StaffDMails.d.ts} +7 -8
- 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/{staff/Files.d.ts → StaffFiles.d.ts} +15 -19
- package/dist/lib/modules/{staff/Files.js → StaffFiles.js} +16 -20
- package/dist/lib/modules/StaffNotes.d.ts +13 -18
- package/dist/lib/modules/StaffNotes.js +14 -19
- package/dist/lib/modules/{staff/UserCleanups.d.ts → StaffUserCleanups.d.ts} +12 -16
- package/dist/lib/modules/{staff/UserCleanups.js → StaffUserCleanups.js} +15 -19
- package/dist/lib/modules/{staff/Users.d.ts → StaffUsers.d.ts} +10 -12
- package/dist/lib/modules/{staff/Users.js → StaffUsers.js} +11 -13
- package/dist/lib/modules/StaffVoteTrends.d.ts +26 -0
- package/dist/lib/modules/StaffVoteTrends.js +39 -0
- package/dist/lib/modules/{staff/WikiVersions.d.ts → StaffWikiVersions.d.ts} +9 -10
- package/dist/lib/modules/StaffWikiVersions.js +54 -0
- package/dist/lib/modules/{staff/Wikis.d.ts → StaffWikis.d.ts} +19 -25
- package/dist/lib/modules/{staff/Wikis.js → StaffWikis.js} +20 -26
- package/dist/lib/modules/TagAliases.d.ts +13 -18
- package/dist/lib/modules/TagAliases.js +14 -19
- package/dist/lib/modules/TagCorrections.d.ts +5 -6
- package/dist/lib/modules/TagCorrections.js +6 -7
- package/dist/lib/modules/TagImplications.d.ts +13 -18
- package/dist/lib/modules/TagImplications.js +14 -19
- package/dist/lib/modules/TagTypeVersions.d.ts +3 -3
- package/dist/lib/modules/TagTypeVersions.js +4 -4
- package/dist/lib/modules/Tags.d.ts +11 -15
- package/dist/lib/modules/Tags.js +12 -16
- package/dist/lib/modules/Takedowns.d.ts +19 -27
- package/dist/lib/modules/Takedowns.js +20 -28
- package/dist/lib/modules/Tickets.d.ts +11 -15
- package/dist/lib/modules/Tickets.js +12 -16
- package/dist/lib/modules/UploadWhitelists.d.ts +11 -15
- package/dist/lib/modules/UploadWhitelists.js +12 -16
- package/dist/lib/modules/Uploads.d.ts +7 -9
- package/dist/lib/modules/Uploads.js +8 -10
- package/dist/lib/modules/UserFeedbacks.d.ts +15 -21
- package/dist/lib/modules/UserFeedbacks.js +16 -22
- package/dist/lib/modules/UserNameChangeRequests.d.ts +9 -12
- package/dist/lib/modules/UserNameChangeRequests.js +10 -13
- package/dist/lib/modules/Users.d.ts +27 -39
- package/dist/lib/modules/Users.js +28 -40
- package/dist/lib/modules/WikiPageVersions.d.ts +5 -6
- package/dist/lib/modules/WikiPageVersions.js +6 -7
- package/dist/lib/modules/WikiPages.d.ts +13 -18
- package/dist/lib/modules/WikiPages.js +14 -19
- package/dist/lib/modules/index.d.ts +27 -29
- package/dist/lib/modules/index.js +19 -21
- 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 +28 -4
- package/tsconfig.json +1 -1
- package/dist/lib/generated/source.json +0 -22669
- package/dist/lib/modules/staff/DMails.js +0 -55
- package/dist/lib/modules/staff/ExceptionLogs.d.ts +0 -34
- package/dist/lib/modules/staff/ExceptionLogs.js +0 -55
- package/dist/lib/modules/staff/VoteTrends.d.ts +0 -26
- package/dist/lib/modules/staff/VoteTrends.js +0 -39
- package/dist/lib/modules/staff/WikiVersions.js +0 -55
- package/dist/package.json +0 -73
|
@@ -12,60 +12,56 @@ export interface SearchPostVotesOptions extends TransformDataQueryToOptions<Post
|
|
|
12
12
|
}
|
|
13
13
|
/** @category Modules */
|
|
14
14
|
export default class PostVotes extends Base {
|
|
15
|
+
static readonly moduleKey: "postVotes";
|
|
15
16
|
/**
|
|
16
|
-
* Create Post Vote
|
|
17
17
|
*
|
|
18
18
|
* @requiresApiKeyAuth
|
|
19
19
|
*
|
|
20
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#create post_votes#create}
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#create Documentation} for more details.
|
|
23
23
|
*/
|
|
24
24
|
create(id: number, score: PostVoteScore, no_unvote?: boolean): Promise<PostVotesCreateResponse>;
|
|
25
25
|
/**
|
|
26
|
-
* Delete Post Votes
|
|
27
26
|
*
|
|
28
27
|
* You must be Admin+. Errors if ids is not provided.
|
|
29
28
|
*
|
|
30
29
|
* @requiresApiKeyAuth
|
|
31
30
|
*
|
|
32
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete post_votes#delete}
|
|
33
32
|
*
|
|
34
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete Documentation} for more details.
|
|
35
34
|
*/
|
|
36
35
|
delete(ids: Array<number>): Promise<null>;
|
|
37
36
|
/**
|
|
38
|
-
* Lock Post Votes
|
|
39
37
|
*
|
|
40
38
|
* You must be Moderator+. Errors if ids is not provided.
|
|
41
39
|
*
|
|
42
40
|
* @requiresApiKeyAuth
|
|
43
41
|
*
|
|
44
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
42
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock post_votes#lock}
|
|
45
43
|
*
|
|
46
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
44
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock Documentation} for more details.
|
|
47
45
|
*/
|
|
48
46
|
lock(ids: Array<number>): Promise<null>;
|
|
49
47
|
/**
|
|
50
|
-
* Post Votes Index
|
|
51
48
|
*
|
|
52
49
|
* You must be Moderator+.
|
|
53
50
|
*
|
|
54
51
|
* @requiresApiKeyAuth
|
|
55
52
|
*
|
|
56
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
53
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#index post_votes#index}
|
|
57
54
|
*
|
|
58
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
55
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#index Documentation} for more details.
|
|
59
56
|
*/
|
|
60
57
|
search(options?: SearchPostVotesOptions): Promise<Array<PostVote>>;
|
|
61
58
|
/**
|
|
62
|
-
* Delete Post Vote
|
|
63
59
|
*
|
|
64
60
|
* @requiresApiKeyAuth
|
|
65
61
|
*
|
|
66
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
62
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy post_votes#destroy}
|
|
67
63
|
*
|
|
68
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
64
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy Documentation} for more details.
|
|
69
65
|
*/
|
|
70
66
|
unvote(id: number): Promise<null>;
|
|
71
67
|
}
|
|
@@ -5,14 +5,14 @@ import { OperationID } from "../util.js";
|
|
|
5
5
|
import Base from "./Base.js";
|
|
6
6
|
/** @category Modules */
|
|
7
7
|
export default class PostVotes extends Base {
|
|
8
|
+
static moduleKey = "postVotes";
|
|
8
9
|
/**
|
|
9
|
-
* Create Post Vote
|
|
10
10
|
*
|
|
11
11
|
* @requiresApiKeyAuth
|
|
12
12
|
*
|
|
13
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
13
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#create post_votes#create}
|
|
14
14
|
*
|
|
15
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
15
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#create Documentation} for more details.
|
|
16
16
|
*/
|
|
17
17
|
async create(id, score, no_unvote) {
|
|
18
18
|
return postVotes_create({
|
|
@@ -22,15 +22,14 @@ export default class PostVotes extends Base {
|
|
|
22
22
|
}).then(res => this._handleResponse(res, 200, true));
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Delete Post Votes
|
|
26
25
|
*
|
|
27
26
|
* You must be Admin+. Errors if ids is not provided.
|
|
28
27
|
*
|
|
29
28
|
* @requiresApiKeyAuth
|
|
30
29
|
*
|
|
31
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
30
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete post_votes#delete}
|
|
32
31
|
*
|
|
33
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
32
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#delete Documentation} for more details.
|
|
34
33
|
*/
|
|
35
34
|
async delete(ids) {
|
|
36
35
|
return postVotes_delete({
|
|
@@ -39,15 +38,14 @@ export default class PostVotes extends Base {
|
|
|
39
38
|
}).then(res => this._handleResponse(res, 204, true));
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
42
|
-
* Lock Post Votes
|
|
43
41
|
*
|
|
44
42
|
* You must be Moderator+. Errors if ids is not provided.
|
|
45
43
|
*
|
|
46
44
|
* @requiresApiKeyAuth
|
|
47
45
|
*
|
|
48
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
46
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock post_votes#lock}
|
|
49
47
|
*
|
|
50
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
48
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#lock Documentation} for more details.
|
|
51
49
|
*/
|
|
52
50
|
async lock(ids) {
|
|
53
51
|
return postVotes_lock({
|
|
@@ -56,15 +54,14 @@ export default class PostVotes extends Base {
|
|
|
56
54
|
}).then(res => this._handleResponse(res, 204, true));
|
|
57
55
|
}
|
|
58
56
|
/**
|
|
59
|
-
* Post Votes Index
|
|
60
57
|
*
|
|
61
58
|
* You must be Moderator+.
|
|
62
59
|
*
|
|
63
60
|
* @requiresApiKeyAuth
|
|
64
61
|
*
|
|
65
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
62
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#index post_votes#index}
|
|
66
63
|
*
|
|
67
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
64
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#index Documentation} for more details.
|
|
68
65
|
*/
|
|
69
66
|
async search(options) {
|
|
70
67
|
return postVotes_index({
|
|
@@ -73,13 +70,12 @@ export default class PostVotes extends Base {
|
|
|
73
70
|
}).then(res => this._handleResponse(res, 200, true, PostVote));
|
|
74
71
|
}
|
|
75
72
|
/**
|
|
76
|
-
* Delete Post Vote
|
|
77
73
|
*
|
|
78
74
|
* @requiresApiKeyAuth
|
|
79
75
|
*
|
|
80
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
76
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy post_votes#destroy}
|
|
81
77
|
*
|
|
82
|
-
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes
|
|
78
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes\#destroy Documentation} for more details.
|
|
83
79
|
*/
|
|
84
80
|
async unvote(id) {
|
|
85
81
|
return postVotes_destroy({
|
|
@@ -118,4 +114,4 @@ __decorate([
|
|
|
118
114
|
__metadata("design:paramtypes", [Number]),
|
|
119
115
|
__metadata("design:returntype", Promise)
|
|
120
116
|
], PostVotes.prototype, "unvote", null);
|
|
121
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
117
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFZvdGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZHVsZXMvUG9zdFZvdGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsZ0JBQWdCLEVBQUUsaUJBQWlCLEVBQUUsY0FBYyxFQUFFLGVBQWUsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQzdILE9BQU8sUUFBUSxNQUFNLHVCQUF1QixDQUFDO0FBQzdDLE9BQU8sRUFBZSxXQUFXLEVBQWtELE1BQU0sWUFBWSxDQUFDO0FBRXRHLE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQVc3Qix3QkFBd0I7QUFDeEIsTUFBTSxDQUFDLE9BQU8sT0FBTyxTQUFVLFNBQVEsSUFBSTtJQUN2QyxNQUFNLENBQVUsU0FBUyxHQUFHLFdBQW9CLENBQUM7SUFDakQ7Ozs7Ozs7T0FPQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU0sQ0FBQyxFQUFVLEVBQUUsS0FBb0IsRUFBRSxTQUFtQjtRQUM5RCxPQUFPLGdCQUFnQixDQUFDO1lBQ3BCLE1BQU0sRUFBRSxJQUFJLENBQUMsTUFBTTtZQUNuQixJQUFJLEVBQUUsRUFBRSxFQUFFLEVBQUU7WUFDWixLQUFLLEVBQUUsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFO1NBQzlCLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUN6RCxDQUFDO0lBRUQ7Ozs7Ozs7OztPQVNBO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTSxDQUFDLEdBQWtCO1FBQzNCLE9BQU8sZ0JBQWdCLENBQUM7WUFDcEIsTUFBTSxFQUFFLElBQUksQ0FBQyxNQUFNO1lBQ25CLEtBQUssRUFBRSxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFO1NBQ2hDLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUN6RCxDQUFDO0lBRUQ7Ozs7Ozs7OztPQVNBO0lBRU0sQUFBTixLQUFLLENBQUMsSUFBSSxDQUFDLEdBQWtCO1FBQ3pCLE9BQU8sY0FBYyxDQUFDO1lBQ2xCLE1BQU0sRUFBRSxJQUFJLENBQUMsTUFBTTtZQUNuQixLQUFLLEVBQUUsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRTtTQUNoQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLGVBQWUsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDekQsQ0FBQztJQUVEOzs7Ozs7Ozs7T0FTQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFnQztRQUN6QyxPQUFPLGVBQWUsQ0FBQztZQUNuQixNQUFNLEVBQUUsSUFBSSxDQUFDLE1BQU07WUFDbkIsS0FBSyxFQUFFLE9BQU87U0FDakIsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsR0FBRyxFQUFFLEdBQUcsRUFBRSxJQUFJLEVBQUUsUUFBUSxDQUFDLENBQUMsQ0FBQztJQUNuRSxDQUFDO0lBRUQ7Ozs7Ozs7T0FPQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU0sQ0FBQyxFQUFVO1FBQ25CLE9BQU8saUJBQWlCLENBQUM7WUFDckIsTUFBTSxFQUFFLElBQUksQ0FBQyxNQUFNO1lBQ25CLElBQUksRUFBRSxFQUFFLEVBQUUsRUFBRTtTQUNmLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUN6RCxDQUFDOztBQTVFSztJQURSLFdBQVcsQ0FBQyxtQkFBbUIsQ0FBQzs7Ozt1Q0FPN0I7QUFhSztJQURSLFdBQVcsQ0FBQyxtQkFBbUIsQ0FBQzs7cUNBQ1osS0FBSzs7dUNBS3RCO0FBYUs7SUFEUixXQUFXLENBQUMsaUJBQWlCLENBQUM7O3FDQUNaLEtBQUs7O3FDQUtwQjtBQWFLO0lBRFIsV0FBVyxDQUFDLGtCQUFrQixDQUFDOzs7O3VDQU01QjtBQVdLO0lBRFIsV0FBVyxDQUFDLG9CQUFvQixDQUFDOzs7O3VDQU05QiJ9
|
|
@@ -59,226 +59,206 @@ export type PostSearchResult<O extends SearchPostsOptions> = O extends {
|
|
|
59
59
|
} ? PostFormat<O["v2"], O["mode"]> : Array<PostFormat<O["v2"], O["mode"]>>;
|
|
60
60
|
/** @category Modules */
|
|
61
61
|
export default class Posts extends Base {
|
|
62
|
+
static readonly moduleKey: "posts";
|
|
62
63
|
/**
|
|
63
|
-
* AI Check Post
|
|
64
64
|
*
|
|
65
65
|
* You must be Janitor+.
|
|
66
66
|
*
|
|
67
67
|
* @requiresApiKeyAuth
|
|
68
68
|
*
|
|
69
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
69
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#ai_check staff/post/posts#ai_check}
|
|
70
70
|
*
|
|
71
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
71
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#ai_check Documentation} for more details.
|
|
72
72
|
*/
|
|
73
73
|
aiCheck(id: number): Promise<string>;
|
|
74
74
|
/**
|
|
75
|
-
* Copy Notes To Post
|
|
76
75
|
*
|
|
77
76
|
* @requiresApiKeyAuth
|
|
78
77
|
*
|
|
79
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
78
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#copy_notes posts#copy_notes}
|
|
80
79
|
*
|
|
81
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
80
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#copy_notes Documentation} for more details.
|
|
82
81
|
*/
|
|
83
82
|
copyNotes(id: number, other_post_id: number): Promise<null>;
|
|
84
83
|
/**
|
|
85
|
-
* Delete Post
|
|
86
84
|
*
|
|
87
85
|
* You must have the "Approve Posts" permission. `commit=Delete` must be set.
|
|
88
86
|
*
|
|
89
87
|
* @requiresApiKeyAuth
|
|
90
88
|
*
|
|
91
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
89
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#delete staff/post/posts#delete}
|
|
92
90
|
*
|
|
93
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
91
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#delete Documentation} for more details.
|
|
94
92
|
*/
|
|
95
93
|
delete(id: number, options: DeletePostOptions): Promise<unknown>;
|
|
96
94
|
/**
|
|
97
|
-
* Expunge Post
|
|
98
95
|
*
|
|
99
96
|
* You must have the "Approve Posts" permission and be Admin+.
|
|
100
97
|
*
|
|
101
98
|
* @requiresApiKeyAuth
|
|
102
99
|
*
|
|
103
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
100
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#expunge staff/post/posts#expunge}
|
|
104
101
|
*
|
|
105
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
102
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#expunge Documentation} for more details.
|
|
106
103
|
*/
|
|
107
104
|
expunge(id: number, reason: string): Promise<Post>;
|
|
108
105
|
/**
|
|
109
|
-
* Post Favorites Index
|
|
110
106
|
*
|
|
111
107
|
* You must be the user or Moderator+ to see users that have their favorites hidden.
|
|
112
108
|
*
|
|
113
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Favorites-post_favorites
|
|
109
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Favorites-post_favorites\#index post_favorites#index}
|
|
114
110
|
*
|
|
115
|
-
* @see {@link https://e621.wiki/#operations-Post_Favorites-post_favorites
|
|
111
|
+
* @see {@link https://e621.wiki/#operations-Post_Favorites-post_favorites\#index Documentation} for more details.
|
|
116
112
|
*/
|
|
117
113
|
favorites(id: number, options: ListPostFavoritesOptions): Promise<Array<MinimalUser>>;
|
|
118
114
|
/**
|
|
119
|
-
* Get Post
|
|
120
115
|
*
|
|
121
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
116
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#show posts#show}
|
|
122
117
|
*
|
|
123
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
118
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#show Documentation} for more details.
|
|
124
119
|
*/
|
|
125
120
|
get<const O extends GetPostOptions = NoV2Options>(id: number, options?: O): Promise<PostFormat<O["v2"], O["mode"]> | null>;
|
|
126
121
|
/**
|
|
127
|
-
* Mark Post As Translated
|
|
128
122
|
*
|
|
129
123
|
* Will error if no body is provided.
|
|
130
124
|
*
|
|
131
125
|
* @requiresApiKeyAuth
|
|
132
126
|
*
|
|
133
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
127
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#mark_as_translated posts#mark_as_translated}
|
|
134
128
|
*
|
|
135
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
129
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#mark_as_translated Documentation} for more details.
|
|
136
130
|
*/
|
|
137
131
|
markTranslated<const O extends MarkPostAsTranslatedOptions = NoV2Options>(id: number, options?: O): Promise<PostFormat<O["v2"], O["mode"]>>;
|
|
138
132
|
/**
|
|
139
|
-
* Move Post Favorites
|
|
140
133
|
*
|
|
141
134
|
* You must have the "Approve Posts" permission. `commit=Submit`` must be set.
|
|
142
135
|
*
|
|
143
136
|
* @requiresApiKeyAuth
|
|
144
137
|
*
|
|
145
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
138
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#move_favorites staff/post/posts#move_favorites}
|
|
146
139
|
*
|
|
147
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
140
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#move_favorites Documentation} for more details.
|
|
148
141
|
*/
|
|
149
142
|
moveFavorites(id: number, options: MovePostFavoritesOptions): Promise<unknown>;
|
|
150
143
|
/**
|
|
151
|
-
* Get Post Previous Owners
|
|
152
144
|
*
|
|
153
145
|
* You must be an Approver
|
|
154
146
|
*
|
|
155
147
|
* @requiresApiKeyAuth
|
|
156
148
|
*
|
|
157
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
149
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#previous_owners staff/post/posts#previous_owners}
|
|
158
150
|
*
|
|
159
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
151
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#previous_owners Documentation} for more details.
|
|
160
152
|
*/
|
|
161
153
|
previousOwners(id: number): Promise<Array<PostPreviousOwner>>;
|
|
162
154
|
/**
|
|
163
|
-
* Get Random Post
|
|
164
155
|
*
|
|
165
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
156
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#random posts#random}
|
|
166
157
|
*
|
|
167
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
158
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#random Documentation} for more details.
|
|
168
159
|
*/
|
|
169
160
|
random<const O extends GetRandomPostOptions = NoV2Options>(options?: O): Promise<PostFormat<O["v2"], O["mode"]>>;
|
|
170
161
|
/**
|
|
171
|
-
* Get Recommended Posts For Artist
|
|
172
162
|
*
|
|
173
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-post_recommendations
|
|
163
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-post_recommendations\#artist post_recommendations#artist}
|
|
174
164
|
*
|
|
175
|
-
* @see {@link https://e621.wiki/#operations-Posts-post_recommendations
|
|
165
|
+
* @see {@link https://e621.wiki/#operations-Posts-post_recommendations\#artist Documentation} for more details.
|
|
176
166
|
*/
|
|
177
167
|
recommendedByArtist(id: number, options?: RecommendedPostsOptions): Promise<RecommendedPostsResult>;
|
|
178
168
|
/**
|
|
179
|
-
* Get Recommended Posts For Tags
|
|
180
169
|
*
|
|
181
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-post_recommendations
|
|
170
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-post_recommendations\#tags post_recommendations#tags}
|
|
182
171
|
*
|
|
183
|
-
* @see {@link https://e621.wiki/#operations-Posts-post_recommendations
|
|
172
|
+
* @see {@link https://e621.wiki/#operations-Posts-post_recommendations\#tags Documentation} for more details.
|
|
184
173
|
*/
|
|
185
174
|
recommendedByTags(id: number, options?: RecommendedPostsOptions): Promise<RecommendedPostsResult>;
|
|
186
175
|
/**
|
|
187
|
-
* Regenerate Post Thumbnails
|
|
188
176
|
*
|
|
189
177
|
* You must be Janitor+.
|
|
190
178
|
*
|
|
191
179
|
* @requiresApiKeyAuth
|
|
192
180
|
*
|
|
193
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
181
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#regenerate_thumbnails staff/post/posts#regenerate_thumbnails}
|
|
194
182
|
*
|
|
195
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
183
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#regenerate_thumbnails Documentation} for more details.
|
|
196
184
|
*/
|
|
197
185
|
regenerateThumbnails(id: number): Promise<Post>;
|
|
198
186
|
/**
|
|
199
|
-
* Regenerate Post Videos
|
|
200
187
|
*
|
|
201
188
|
* You must be Janitor+.
|
|
202
189
|
*
|
|
203
190
|
* @requiresApiKeyAuth
|
|
204
191
|
*
|
|
205
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
192
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#regenerate_videos staff/post/posts#regenerate_videos}
|
|
206
193
|
*
|
|
207
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
194
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#regenerate_videos Documentation} for more details.
|
|
208
195
|
*/
|
|
209
196
|
regenerateVideos(id: number): Promise<null>;
|
|
210
197
|
/**
|
|
211
|
-
* Reown Post
|
|
212
198
|
*
|
|
213
199
|
* You must have be Janitor+ and an Approver
|
|
214
200
|
*
|
|
215
201
|
* @requiresApiKeyAuth
|
|
216
202
|
*
|
|
217
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
203
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#reowner staff/post/posts#reowner}
|
|
218
204
|
*
|
|
219
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
205
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#reowner Documentation} for more details.
|
|
220
206
|
*/
|
|
221
207
|
reown(id: number, options: ReownPostOptions): Promise<string>;
|
|
222
208
|
/**
|
|
223
|
-
* Revert Post
|
|
224
209
|
*
|
|
225
210
|
* @requiresApiKeyAuth
|
|
226
211
|
*
|
|
227
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
212
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#revert posts#revert}
|
|
228
213
|
*
|
|
229
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
214
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#revert Documentation} for more details.
|
|
230
215
|
*/
|
|
231
216
|
revert(id: number, version_id: number): Promise<null>;
|
|
232
217
|
/**
|
|
233
|
-
* Posts Index
|
|
234
218
|
*
|
|
235
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
219
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#index posts#index}
|
|
236
220
|
*
|
|
237
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
221
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#index Documentation} for more details.
|
|
238
222
|
*/
|
|
239
223
|
search<const O extends SearchPostsOptions = NoV2Options>(options?: O): Promise<PostSearchResult<O>>;
|
|
240
224
|
/**
|
|
241
|
-
* Get Post In Sequence
|
|
242
225
|
*
|
|
243
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
226
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#show_seq posts#show_seq}
|
|
244
227
|
*
|
|
245
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
228
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#show_seq Documentation} for more details.
|
|
246
229
|
*/
|
|
247
230
|
sequence<const O extends GetPostInSequenceOptions = NoV2Options>(id: number, options?: O): Promise<PostFormat<O["v2"], O["mode"]>>;
|
|
248
231
|
/**
|
|
249
|
-
* Undelete Post
|
|
250
232
|
*
|
|
251
233
|
* You must have the "Approve Posts" permission.
|
|
252
234
|
*
|
|
253
235
|
* @requiresApiKeyAuth
|
|
254
236
|
*
|
|
255
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
237
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-staff/post/posts\#undelete staff/post/posts#undelete}
|
|
256
238
|
*
|
|
257
|
-
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts
|
|
239
|
+
* @see {@link https://e621.wiki/#operations-Posts-staff/post/posts\#undelete Documentation} for more details.
|
|
258
240
|
*/
|
|
259
241
|
undelete(id: number): Promise<Post>;
|
|
260
242
|
/**
|
|
261
|
-
* Update Post
|
|
262
243
|
*
|
|
263
244
|
* Most errors are silently swallowed.
|
|
264
245
|
*
|
|
265
246
|
* @requiresApiKeyAuth
|
|
266
247
|
*
|
|
267
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
248
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#update posts#update}
|
|
268
249
|
*
|
|
269
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
250
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#update Documentation} for more details.
|
|
270
251
|
*/
|
|
271
252
|
update<const O extends UpdatePostOptions = NoV2Options>(id: number, options?: O): Promise<PostFormat<O["v2"], O["mode"]>>;
|
|
272
253
|
/**
|
|
273
|
-
* Update Post IQDB
|
|
274
254
|
*
|
|
275
255
|
* You must be Admin+.
|
|
276
256
|
*
|
|
277
257
|
* @requiresApiKeyAuth
|
|
278
258
|
*
|
|
279
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-posts
|
|
259
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts\#update_iqdb posts#update_iqdb}
|
|
280
260
|
*
|
|
281
|
-
* @see {@link https://e621.wiki/#operations-Posts-posts
|
|
261
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts\#update_iqdb Documentation} for more details.
|
|
282
262
|
*/
|
|
283
263
|
updateIqdb<const O extends UpdatePostIqdbOptions = NoV2Options>(id: number, options?: O): Promise<PostFormat<O["v2"], O["mode"]>>;
|
|
284
264
|
}
|