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
|
@@ -18,9 +18,9 @@ declare class PostReplacement extends Base<PostReplacementData> {
|
|
|
18
18
|
*
|
|
19
19
|
* @requiresApiKeyAuth
|
|
20
20
|
*
|
|
21
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
21
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#approve post_replacements#approve}
|
|
22
22
|
*
|
|
23
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
23
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#approve Documentation} for more details.
|
|
24
24
|
*/
|
|
25
25
|
approve(): Promise<null>;
|
|
26
26
|
/**
|
|
@@ -30,9 +30,9 @@ declare class PostReplacement extends Base<PostReplacementData> {
|
|
|
30
30
|
*
|
|
31
31
|
* @requiresApiKeyAuth
|
|
32
32
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#destroy post_replacements#destroy}
|
|
34
34
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#destroy Documentation} for more details.
|
|
36
36
|
*/
|
|
37
37
|
delete(): Promise<null>;
|
|
38
38
|
/**
|
|
@@ -42,9 +42,9 @@ declare class PostReplacement extends Base<PostReplacementData> {
|
|
|
42
42
|
*
|
|
43
43
|
* @requiresApiKeyAuth
|
|
44
44
|
*
|
|
45
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
45
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#promote post_replacements#promote}
|
|
46
46
|
*
|
|
47
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
47
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#promote Documentation} for more details.
|
|
48
48
|
*/
|
|
49
49
|
promote(): Promise<Post>;
|
|
50
50
|
/**
|
|
@@ -54,9 +54,9 @@ declare class PostReplacement extends Base<PostReplacementData> {
|
|
|
54
54
|
*
|
|
55
55
|
* @requiresApiKeyAuth
|
|
56
56
|
*
|
|
57
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#reject post_replacements#reject}
|
|
58
58
|
*
|
|
59
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#reject Documentation} for more details.
|
|
60
60
|
*/
|
|
61
61
|
reject(): Promise<null>;
|
|
62
62
|
/**
|
|
@@ -66,9 +66,9 @@ declare class PostReplacement extends Base<PostReplacementData> {
|
|
|
66
66
|
*
|
|
67
67
|
* @requiresApiKeyAuth
|
|
68
68
|
*
|
|
69
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
69
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#toggle_penalize post_replacements#toggle_penalize}
|
|
70
70
|
*
|
|
71
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
71
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#toggle_penalize Documentation} for more details.
|
|
72
72
|
*/
|
|
73
73
|
togglePenalize(): Promise<null>;
|
|
74
74
|
}
|
|
@@ -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
|
*
|
|
@@ -16,9 +16,9 @@ let PostReplacement = class PostReplacement extends Base {
|
|
|
16
16
|
*
|
|
17
17
|
* @requiresApiKeyAuth
|
|
18
18
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
19
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#approve post_replacements#approve}
|
|
20
20
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
21
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#approve Documentation} for more details.
|
|
22
22
|
*/
|
|
23
23
|
async approve() {
|
|
24
24
|
return this.e621.postReplacements.approve(this.id);
|
|
@@ -30,9 +30,9 @@ let PostReplacement = class PostReplacement extends Base {
|
|
|
30
30
|
*
|
|
31
31
|
* @requiresApiKeyAuth
|
|
32
32
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#destroy post_replacements#destroy}
|
|
34
34
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#destroy Documentation} for more details.
|
|
36
36
|
*/
|
|
37
37
|
async delete() {
|
|
38
38
|
return this.e621.postReplacements.delete(this.id);
|
|
@@ -44,9 +44,9 @@ let PostReplacement = class PostReplacement extends Base {
|
|
|
44
44
|
*
|
|
45
45
|
* @requiresApiKeyAuth
|
|
46
46
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
47
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#promote post_replacements#promote}
|
|
48
48
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
49
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#promote Documentation} for more details.
|
|
50
50
|
*/
|
|
51
51
|
async promote() {
|
|
52
52
|
return this.e621.postReplacements.promote(this.id);
|
|
@@ -58,9 +58,9 @@ let PostReplacement = class PostReplacement extends Base {
|
|
|
58
58
|
*
|
|
59
59
|
* @requiresApiKeyAuth
|
|
60
60
|
*
|
|
61
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
61
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#reject post_replacements#reject}
|
|
62
62
|
*
|
|
63
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
63
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#reject Documentation} for more details.
|
|
64
64
|
*/
|
|
65
65
|
async reject() {
|
|
66
66
|
return this.e621.postReplacements.reject(this.id);
|
|
@@ -72,40 +72,40 @@ let PostReplacement = class PostReplacement extends Base {
|
|
|
72
72
|
*
|
|
73
73
|
* @requiresApiKeyAuth
|
|
74
74
|
*
|
|
75
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-
|
|
75
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#toggle_penalize post_replacements#toggle_penalize}
|
|
76
76
|
*
|
|
77
|
-
* @see {@link https://e621.wiki/#operations-Post_Replacements-
|
|
77
|
+
* @see {@link https://e621.wiki/#operations-Post_Replacements-post_replacements#toggle_penalize Documentation} for more details.
|
|
78
78
|
*/
|
|
79
79
|
async togglePenalize() {
|
|
80
80
|
return this.e621.postReplacements.togglePenalize(this.id);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
__decorate([
|
|
84
|
-
OperationID("
|
|
84
|
+
OperationID("post_replacements#approve"),
|
|
85
85
|
__metadata("design:type", Function),
|
|
86
86
|
__metadata("design:paramtypes", []),
|
|
87
87
|
__metadata("design:returntype", Promise)
|
|
88
88
|
], PostReplacement.prototype, "approve", null);
|
|
89
89
|
__decorate([
|
|
90
|
-
OperationID("
|
|
90
|
+
OperationID("post_replacements#destroy"),
|
|
91
91
|
__metadata("design:type", Function),
|
|
92
92
|
__metadata("design:paramtypes", []),
|
|
93
93
|
__metadata("design:returntype", Promise)
|
|
94
94
|
], PostReplacement.prototype, "delete", null);
|
|
95
95
|
__decorate([
|
|
96
|
-
OperationID("
|
|
96
|
+
OperationID("post_replacements#promote"),
|
|
97
97
|
__metadata("design:type", Function),
|
|
98
98
|
__metadata("design:paramtypes", []),
|
|
99
99
|
__metadata("design:returntype", Promise)
|
|
100
100
|
], PostReplacement.prototype, "promote", null);
|
|
101
101
|
__decorate([
|
|
102
|
-
OperationID("
|
|
102
|
+
OperationID("post_replacements#reject"),
|
|
103
103
|
__metadata("design:type", Function),
|
|
104
104
|
__metadata("design:paramtypes", []),
|
|
105
105
|
__metadata("design:returntype", Promise)
|
|
106
106
|
], PostReplacement.prototype, "reject", null);
|
|
107
107
|
__decorate([
|
|
108
|
-
OperationID("
|
|
108
|
+
OperationID("post_replacements#toggle_penalize"),
|
|
109
109
|
__metadata("design:type", Function),
|
|
110
110
|
__metadata("design:paramtypes", []),
|
|
111
111
|
__metadata("design:returntype", Promise)
|
|
@@ -114,4 +114,4 @@ PostReplacement = __decorate([
|
|
|
114
114
|
Schema("PostReplacement")
|
|
115
115
|
], PostReplacement);
|
|
116
116
|
export default PostReplacement;
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
117
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFJlcGxhY2VtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9Qb3N0UmVwbGFjZW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRWpELE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQU03Qjs7Ozs7O0dBTUc7QUFFSCxJQUFNLGVBQWUsR0FBckIsTUFBTSxlQUFnQixTQUFRLElBQXlCO0lBQ25EOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxPQUFPO1FBQ1QsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDdkQsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDdEQsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxPQUFPO1FBQ1QsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDdkQsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDdEQsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxjQUFjO1FBQ2hCLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQzlELENBQUM7Q0FDSixDQUFBO0FBbkVTO0lBRFIsV0FBVyxDQUFDLDJCQUEyQixDQUFDOzs7OzhDQUdyQztBQWNLO0lBRFIsV0FBVyxDQUFDLDJCQUEyQixDQUFDOzs7OzZDQUdyQztBQWNLO0lBRFIsV0FBVyxDQUFDLDJCQUEyQixDQUFDOzs7OzhDQUdyQztBQWNLO0lBRFIsV0FBVyxDQUFDLDBCQUEwQixDQUFDOzs7OzZDQUdwQztBQWNLO0lBRFIsV0FBVyxDQUFDLG1DQUFtQyxDQUFDOzs7O3FEQUc3QztBQS9FQyxlQUFlO0lBRHBCLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQztHQUNwQixlQUFlLENBZ0ZwQjtBQUVELGVBQWUsZUFBZSxDQUFDIn0=
|
|
@@ -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
|
/**
|
|
@@ -18,9 +18,9 @@ declare class PostSet extends Base<PostSetData> {
|
|
|
18
18
|
*
|
|
19
19
|
* @requiresApiKeyAuth
|
|
20
20
|
*
|
|
21
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
21
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#add_posts post_sets#add_posts}
|
|
22
22
|
*
|
|
23
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
23
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#add_posts Documentation} for more details.
|
|
24
24
|
*/
|
|
25
25
|
addPosts(post_ids: Array<number>): Promise<PostSet>;
|
|
26
26
|
/**
|
|
@@ -30,35 +30,35 @@ declare class PostSet extends Base<PostSetData> {
|
|
|
30
30
|
*
|
|
31
31
|
* @requiresApiKeyAuth
|
|
32
32
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#destroy post_sets#destroy}
|
|
34
34
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#destroy Documentation} for more details.
|
|
36
36
|
*/
|
|
37
37
|
delete(): Promise<null>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Remove Posts From Post Set
|
|
40
40
|
*
|
|
41
|
-
* You must be the owner of the set, or Admin+.
|
|
41
|
+
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
42
42
|
*
|
|
43
43
|
* @requiresApiKeyAuth
|
|
44
44
|
*
|
|
45
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
45
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#remove_posts post_sets#remove_posts}
|
|
46
46
|
*
|
|
47
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
47
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#remove_posts Documentation} for more details.
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
removePosts(post_ids: Array<number>): Promise<PostSet>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Update Post Set
|
|
52
52
|
*
|
|
53
|
-
* You must be the owner of the set,
|
|
53
|
+
* You must be the owner of the set, or Admin+.
|
|
54
54
|
*
|
|
55
55
|
* @requiresApiKeyAuth
|
|
56
56
|
*
|
|
57
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#update post_sets#update}
|
|
58
58
|
*
|
|
59
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#update Documentation} for more details.
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
update(options: UpdatePostSetOptions): Promise<null>;
|
|
62
62
|
/**
|
|
63
63
|
* Update Post Set Posts
|
|
64
64
|
*
|
|
@@ -66,9 +66,9 @@ declare class PostSet extends Base<PostSetData> {
|
|
|
66
66
|
*
|
|
67
67
|
* @requiresApiKeyAuth
|
|
68
68
|
*
|
|
69
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
69
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#update_posts post_sets#update_posts}
|
|
70
70
|
*
|
|
71
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
71
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#update_posts Documentation} for more details.
|
|
72
72
|
*/
|
|
73
73
|
updatePosts(post_ids: Array<number>): Promise<PostSet>;
|
|
74
74
|
}
|
|
@@ -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
|
*
|
|
@@ -16,9 +16,9 @@ let PostSet = class PostSet extends Base {
|
|
|
16
16
|
*
|
|
17
17
|
* @requiresApiKeyAuth
|
|
18
18
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
19
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#add_posts post_sets#add_posts}
|
|
20
20
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
21
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#add_posts Documentation} for more details.
|
|
22
22
|
*/
|
|
23
23
|
async addPosts(post_ids) {
|
|
24
24
|
return this.e621.postSets.addPosts(this.id, post_ids);
|
|
@@ -30,40 +30,40 @@ let PostSet = class PostSet extends Base {
|
|
|
30
30
|
*
|
|
31
31
|
* @requiresApiKeyAuth
|
|
32
32
|
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#destroy post_sets#destroy}
|
|
34
34
|
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#destroy Documentation} for more details.
|
|
36
36
|
*/
|
|
37
37
|
async delete() {
|
|
38
38
|
return this.e621.postSets.delete(this.id);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Remove Posts From Post Set
|
|
42
42
|
*
|
|
43
|
-
* You must be the owner of the set, or Admin+.
|
|
43
|
+
* You must be the owner of the set, a maintainer (if public), or Admin+.
|
|
44
44
|
*
|
|
45
45
|
* @requiresApiKeyAuth
|
|
46
46
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
47
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#remove_posts post_sets#remove_posts}
|
|
48
48
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
49
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#remove_posts Documentation} for more details.
|
|
50
50
|
*/
|
|
51
|
-
async
|
|
52
|
-
return this.e621.postSets.
|
|
51
|
+
async removePosts(post_ids) {
|
|
52
|
+
return this.e621.postSets.removePosts(this.id, post_ids);
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Update Post Set
|
|
56
56
|
*
|
|
57
|
-
* You must be the owner of the set,
|
|
57
|
+
* You must be the owner of the set, or Admin+.
|
|
58
58
|
*
|
|
59
59
|
* @requiresApiKeyAuth
|
|
60
60
|
*
|
|
61
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
61
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#update post_sets#update}
|
|
62
62
|
*
|
|
63
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
63
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#update Documentation} for more details.
|
|
64
64
|
*/
|
|
65
|
-
async
|
|
66
|
-
return this.e621.postSets.
|
|
65
|
+
async update(options) {
|
|
66
|
+
return this.e621.postSets.update(this.id, options);
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* Update Post Set Posts
|
|
@@ -72,40 +72,40 @@ let PostSet = class PostSet extends Base {
|
|
|
72
72
|
*
|
|
73
73
|
* @requiresApiKeyAuth
|
|
74
74
|
*
|
|
75
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Sets-
|
|
75
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Sets-post_sets#update_posts post_sets#update_posts}
|
|
76
76
|
*
|
|
77
|
-
* @see {@link https://e621.wiki/#operations-Post_Sets-
|
|
77
|
+
* @see {@link https://e621.wiki/#operations-Post_Sets-post_sets#update_posts Documentation} for more details.
|
|
78
78
|
*/
|
|
79
79
|
async updatePosts(post_ids) {
|
|
80
80
|
return this.e621.postSets.updatePosts(this.id, post_ids);
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
__decorate([
|
|
84
|
-
OperationID("
|
|
84
|
+
OperationID("post_sets#add_posts"),
|
|
85
85
|
__metadata("design:type", Function),
|
|
86
86
|
__metadata("design:paramtypes", [Array]),
|
|
87
87
|
__metadata("design:returntype", Promise)
|
|
88
88
|
], PostSet.prototype, "addPosts", null);
|
|
89
89
|
__decorate([
|
|
90
|
-
OperationID("
|
|
90
|
+
OperationID("post_sets#destroy"),
|
|
91
91
|
__metadata("design:type", Function),
|
|
92
92
|
__metadata("design:paramtypes", []),
|
|
93
93
|
__metadata("design:returntype", Promise)
|
|
94
94
|
], PostSet.prototype, "delete", null);
|
|
95
95
|
__decorate([
|
|
96
|
-
OperationID("
|
|
96
|
+
OperationID("post_sets#remove_posts"),
|
|
97
97
|
__metadata("design:type", Function),
|
|
98
|
-
__metadata("design:paramtypes", [
|
|
98
|
+
__metadata("design:paramtypes", [Array]),
|
|
99
99
|
__metadata("design:returntype", Promise)
|
|
100
|
-
], PostSet.prototype, "
|
|
100
|
+
], PostSet.prototype, "removePosts", null);
|
|
101
101
|
__decorate([
|
|
102
|
-
OperationID("
|
|
102
|
+
OperationID("post_sets#update"),
|
|
103
103
|
__metadata("design:type", Function),
|
|
104
|
-
__metadata("design:paramtypes", [
|
|
104
|
+
__metadata("design:paramtypes", [Object]),
|
|
105
105
|
__metadata("design:returntype", Promise)
|
|
106
|
-
], PostSet.prototype, "
|
|
106
|
+
], PostSet.prototype, "update", null);
|
|
107
107
|
__decorate([
|
|
108
|
-
OperationID("
|
|
108
|
+
OperationID("post_sets#update_posts"),
|
|
109
109
|
__metadata("design:type", Function),
|
|
110
110
|
__metadata("design:paramtypes", [Array]),
|
|
111
111
|
__metadata("design:returntype", Promise)
|
|
@@ -114,4 +114,4 @@ PostSet = __decorate([
|
|
|
114
114
|
Schema("PostSet")
|
|
115
115
|
], PostSet);
|
|
116
116
|
export default PostSet;
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
117
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFNldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvUG9zdFNldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFakQsT0FBTyxJQUFJLE1BQU0sV0FBVyxDQUFDO0FBTTdCOzs7Ozs7R0FNRztBQUVILElBQU0sT0FBTyxHQUFiLE1BQU0sT0FBUSxTQUFRLElBQWlCO0lBQ25DOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxRQUFRLENBQUMsUUFBdUI7UUFDbEMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxRQUFRLENBQUMsQ0FBQztJQUMxRCxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU07UUFDUixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDOUMsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxXQUFXLENBQUMsUUFBdUI7UUFDckMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxRQUFRLENBQUMsQ0FBQztJQUM3RCxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUE2QjtRQUN0QyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ3ZELENBQUM7SUFFRDs7Ozs7Ozs7OztPQVVBO0lBRU0sQUFBTixLQUFLLENBQUMsV0FBVyxDQUFDLFFBQXVCO1FBQ3JDLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUUsUUFBUSxDQUFDLENBQUM7SUFDN0QsQ0FBQztDQUNKLENBQUE7QUFuRVM7SUFEUixXQUFXLENBQUMscUJBQXFCLENBQUM7O3FDQUNQLEtBQUs7O3VDQUU3QjtBQWNLO0lBRFIsV0FBVyxDQUFDLG1CQUFtQixDQUFDOzs7O3FDQUc3QjtBQWNLO0lBRFIsV0FBVyxDQUFDLHdCQUF3QixDQUFDOztxQ0FDUCxLQUFLOzswQ0FFaEM7QUFjSztJQURSLFdBQVcsQ0FBQyxrQkFBa0IsQ0FBQzs7OztxQ0FHNUI7QUFjSztJQURSLFdBQVcsQ0FBQyx3QkFBd0IsQ0FBQzs7cUNBQ1AsS0FBSzs7MENBRWhDO0FBL0VDLE9BQU87SUFEWixNQUFNLENBQUMsU0FBUyxDQUFDO0dBQ1osT0FBTyxDQWdGWjtBQUVELGVBQWUsT0FBTyxDQUFDIn0=
|
|
@@ -17,9 +17,9 @@ declare class PostVersion extends Base<PostVersionData> {
|
|
|
17
17
|
*
|
|
18
18
|
* @requiresApiKeyAuth
|
|
19
19
|
*
|
|
20
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions#hide post_versions#hide}
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions#hide Documentation} for more details.
|
|
23
23
|
*/
|
|
24
24
|
hide(): Promise<string>;
|
|
25
25
|
/**
|
|
@@ -27,9 +27,9 @@ declare class PostVersion extends Base<PostVersionData> {
|
|
|
27
27
|
*
|
|
28
28
|
* @requiresApiKeyAuth
|
|
29
29
|
*
|
|
30
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-
|
|
30
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts#revert posts#revert}
|
|
31
31
|
*
|
|
32
|
-
* @see {@link https://e621.wiki/#operations-Posts-
|
|
32
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts#revert Documentation} for more details.
|
|
33
33
|
*/
|
|
34
34
|
revertTo(): Promise<null>;
|
|
35
35
|
/**
|
|
@@ -37,9 +37,9 @@ declare class PostVersion extends Base<PostVersionData> {
|
|
|
37
37
|
*
|
|
38
38
|
* @requiresApiKeyAuth
|
|
39
39
|
*
|
|
40
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
40
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions#undo post_versions#undo}
|
|
41
41
|
*
|
|
42
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
42
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions#undo Documentation} for more details.
|
|
43
43
|
*/
|
|
44
44
|
undo(): Promise<null>;
|
|
45
45
|
/**
|
|
@@ -49,9 +49,9 @@ declare class PostVersion extends Base<PostVersionData> {
|
|
|
49
49
|
*
|
|
50
50
|
* @requiresApiKeyAuth
|
|
51
51
|
*
|
|
52
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
52
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions#unhide post_versions#unhide}
|
|
53
53
|
*
|
|
54
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
54
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions#unhide Documentation} for more details.
|
|
55
55
|
*/
|
|
56
56
|
unhide(): Promise<string>;
|
|
57
57
|
}
|
|
@@ -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
|
*
|
|
@@ -16,9 +16,9 @@ let PostVersion = class PostVersion extends Base {
|
|
|
16
16
|
*
|
|
17
17
|
* @requiresApiKeyAuth
|
|
18
18
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
19
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions#hide post_versions#hide}
|
|
20
20
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
21
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions#hide Documentation} for more details.
|
|
22
22
|
*/
|
|
23
23
|
async hide() {
|
|
24
24
|
return this.e621.postVersions.hide(this.id);
|
|
@@ -28,9 +28,9 @@ let PostVersion = class PostVersion extends Base {
|
|
|
28
28
|
*
|
|
29
29
|
* @requiresApiKeyAuth
|
|
30
30
|
*
|
|
31
|
-
* @operationId {@link https://e621.wiki/#operations-Posts-
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Posts-posts#revert posts#revert}
|
|
32
32
|
*
|
|
33
|
-
* @see {@link https://e621.wiki/#operations-Posts-
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Posts-posts#revert Documentation} for more details.
|
|
34
34
|
*/
|
|
35
35
|
async revertTo() {
|
|
36
36
|
return this.e621.posts.revert(this.post_id, this.id);
|
|
@@ -40,9 +40,9 @@ let PostVersion = class PostVersion extends Base {
|
|
|
40
40
|
*
|
|
41
41
|
* @requiresApiKeyAuth
|
|
42
42
|
*
|
|
43
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
43
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions#undo post_versions#undo}
|
|
44
44
|
*
|
|
45
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
45
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions#undo Documentation} for more details.
|
|
46
46
|
*/
|
|
47
47
|
async undo() {
|
|
48
48
|
return this.e621.postVersions.undo(this.id);
|
|
@@ -54,34 +54,34 @@ let PostVersion = class PostVersion extends Base {
|
|
|
54
54
|
*
|
|
55
55
|
* @requiresApiKeyAuth
|
|
56
56
|
*
|
|
57
|
-
* @operationId {@link https://e621.wiki/#operations-Post_Versions-
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Versions-post_versions#unhide post_versions#unhide}
|
|
58
58
|
*
|
|
59
|
-
* @see {@link https://e621.wiki/#operations-Post_Versions-
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Post_Versions-post_versions#unhide Documentation} for more details.
|
|
60
60
|
*/
|
|
61
61
|
async unhide() {
|
|
62
62
|
return this.e621.postVersions.unhide(this.id);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
__decorate([
|
|
66
|
-
OperationID("
|
|
66
|
+
OperationID("post_versions#hide"),
|
|
67
67
|
__metadata("design:type", Function),
|
|
68
68
|
__metadata("design:paramtypes", []),
|
|
69
69
|
__metadata("design:returntype", Promise)
|
|
70
70
|
], PostVersion.prototype, "hide", null);
|
|
71
71
|
__decorate([
|
|
72
|
-
OperationID("
|
|
72
|
+
OperationID("posts#revert"),
|
|
73
73
|
__metadata("design:type", Function),
|
|
74
74
|
__metadata("design:paramtypes", []),
|
|
75
75
|
__metadata("design:returntype", Promise)
|
|
76
76
|
], PostVersion.prototype, "revertTo", null);
|
|
77
77
|
__decorate([
|
|
78
|
-
OperationID("
|
|
78
|
+
OperationID("post_versions#undo"),
|
|
79
79
|
__metadata("design:type", Function),
|
|
80
80
|
__metadata("design:paramtypes", []),
|
|
81
81
|
__metadata("design:returntype", Promise)
|
|
82
82
|
], PostVersion.prototype, "undo", null);
|
|
83
83
|
__decorate([
|
|
84
|
-
OperationID("
|
|
84
|
+
OperationID("post_versions#unhide"),
|
|
85
85
|
__metadata("design:type", Function),
|
|
86
86
|
__metadata("design:paramtypes", []),
|
|
87
87
|
__metadata("design:returntype", Promise)
|
|
@@ -90,4 +90,4 @@ PostVersion = __decorate([
|
|
|
90
90
|
Schema("PostVersion")
|
|
91
91
|
], PostVersion);
|
|
92
92
|
export default PostVersion;
|
|
93
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
93
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdFZlcnNpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvbW9kZWxzL1Bvc3RWZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVqRCxPQUFPLElBQUksTUFBTSxXQUFXLENBQUM7QUFLN0I7Ozs7OztHQU1HO0FBRUgsSUFBTSxXQUFXLEdBQWpCLE1BQU0sV0FBWSxTQUFRLElBQXFCO0lBQzNDOzs7Ozs7Ozs7O09BVUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxJQUFJO1FBQ04sT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFFRDs7Ozs7Ozs7T0FRQTtJQUVNLEFBQU4sS0FBSyxDQUFDLFFBQVE7UUFDVixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUN6RCxDQUFDO0lBRUQ7Ozs7Ozs7O09BUUE7SUFFTSxBQUFOLEtBQUssQ0FBQyxJQUFJO1FBQ04sT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFFRDs7Ozs7Ozs7OztPQVVBO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTTtRQUNSLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNsRCxDQUFDO0NBQ0osQ0FBQTtBQS9DUztJQURSLFdBQVcsQ0FBQyxvQkFBb0IsQ0FBQzs7Ozt1Q0FHOUI7QUFZSztJQURSLFdBQVcsQ0FBQyxjQUFjLENBQUM7Ozs7MkNBR3hCO0FBWUs7SUFEUixXQUFXLENBQUMsb0JBQW9CLENBQUM7Ozs7dUNBRzlCO0FBY0s7SUFEUixXQUFXLENBQUMsc0JBQXNCLENBQUM7Ozs7eUNBR2hDO0FBM0RDLFdBQVc7SUFEaEIsTUFBTSxDQUFDLGFBQWEsQ0FBQztHQUNoQixXQUFXLENBNERoQjtBQUVELGVBQWUsV0FBVyxDQUFDIn0=
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import Base from "./Base.js";
|
|
2
|
+
import type { PostVote as PostVoteData } from "../generated/types.js";
|
|
3
|
+
interface PostVote extends PostVoteData {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @category Models
|
|
7
|
+
*
|
|
8
|
+
* @schema {@link https://e621.wiki/#model-PostVote PostVote}
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://e621.wiki/#model-PostVote Documentation} for more details.
|
|
11
|
+
*/
|
|
12
|
+
declare class PostVote extends Base<PostVoteData> {
|
|
13
|
+
/**
|
|
14
|
+
* Delete Post Vote
|
|
15
|
+
*
|
|
16
|
+
* @requiresApiKeyAuth
|
|
17
|
+
*
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes#destroy post_votes#destroy}
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes#destroy Documentation} for more details.
|
|
21
|
+
*/
|
|
22
|
+
delete(): Promise<null>;
|
|
23
|
+
/**
|
|
24
|
+
* Lock Post Votes
|
|
25
|
+
*
|
|
26
|
+
* You must be Moderator+. Errors if ids is not provided.
|
|
27
|
+
*
|
|
28
|
+
* @requiresApiKeyAuth
|
|
29
|
+
*
|
|
30
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes#lock post_votes#lock}
|
|
31
|
+
*
|
|
32
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes#lock Documentation} for more details.
|
|
33
|
+
*/
|
|
34
|
+
lock(): Promise<null>;
|
|
35
|
+
/**
|
|
36
|
+
* Delete Post Votes
|
|
37
|
+
*
|
|
38
|
+
* You must be Admin+. Errors if ids is not provided.
|
|
39
|
+
*
|
|
40
|
+
* @requiresApiKeyAuth
|
|
41
|
+
*
|
|
42
|
+
* @operationId {@link https://e621.wiki/#operations-Post_Votes-post_votes#delete post_votes#delete}
|
|
43
|
+
*
|
|
44
|
+
* @see {@link https://e621.wiki/#operations-Post_Votes-post_votes#delete Documentation} for more details.
|
|
45
|
+
*/
|
|
46
|
+
staffDelete(): Promise<null>;
|
|
47
|
+
}
|
|
48
|
+
export default PostVote;
|