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,22 +10,21 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let EmailBlacklist = class EmailBlacklist extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Delete Email Blacklist
|
|
14
13
|
*
|
|
15
14
|
* You must be Admin+.
|
|
16
15
|
*
|
|
17
16
|
* @requiresApiKeyAuth
|
|
18
17
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Email_Blacklists-
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Email_Blacklists-email_blacklists\#destroy email_blacklists#destroy}
|
|
20
19
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Email_Blacklists-
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Email_Blacklists-email_blacklists\#destroy Documentation} for more details.
|
|
22
21
|
*/
|
|
23
22
|
async delete() {
|
|
24
23
|
return this.e621.emailBlacklists.delete(this.id);
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
26
|
__decorate([
|
|
28
|
-
OperationID("
|
|
27
|
+
OperationID("email_blacklists#destroy"),
|
|
29
28
|
__metadata("design:type", Function),
|
|
30
29
|
__metadata("design:paramtypes", []),
|
|
31
30
|
__metadata("design:returntype", Promise)
|
|
@@ -34,4 +33,4 @@ EmailBlacklist = __decorate([
|
|
|
34
33
|
Schema("EmailBlacklist")
|
|
35
34
|
], EmailBlacklist);
|
|
36
35
|
export default EmailBlacklist;
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRW1haWxCbGFja2xpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvbW9kZWxzL0VtYWlsQmxhY2tsaXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVqRCxPQUFPLElBQUksTUFBTSxXQUFXLENBQUM7QUFLN0I7Ozs7OztHQU1HO0FBRUgsSUFBTSxjQUFjLEdBQXBCLE1BQU0sY0FBZSxTQUFRLElBQXdCO0lBQ2pEOzs7Ozs7Ozs7T0FTQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU07UUFDUixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDckQsQ0FBQztDQUNKLENBQUE7QUFIUztJQURSLFdBQVcsQ0FBQywwQkFBMEIsQ0FBQzs7Ozs0Q0FHcEM7QUFkQyxjQUFjO0lBRG5CLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQztHQUNuQixjQUFjLENBZW5CO0FBRUQsZUFBZSxjQUFjLENBQUMifQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Base from "./Base.js";
|
|
2
|
+
import type { ExceptionLog as ExceptionLogData } from "../generated/types.js";
|
|
3
|
+
interface ExceptionLog extends ExceptionLogData {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @category Models
|
|
7
|
+
*
|
|
8
|
+
* @schema {@link https://e621.wiki/#model-ExceptionLog ExceptionLog}
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://e621.wiki/#model-ExceptionLog Documentation} for more details.
|
|
11
|
+
*/
|
|
12
|
+
declare class ExceptionLog extends Base<ExceptionLogData> {
|
|
13
|
+
}
|
|
14
|
+
export default ExceptionLog;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Schema } from "../util.js";
|
|
3
|
+
import Base from "./Base.js";
|
|
4
|
+
/**
|
|
5
|
+
* @category Models
|
|
6
|
+
*
|
|
7
|
+
* @schema {@link https://e621.wiki/#model-ExceptionLog ExceptionLog}
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://e621.wiki/#model-ExceptionLog Documentation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
let ExceptionLog = class ExceptionLog extends Base {
|
|
12
|
+
};
|
|
13
|
+
ExceptionLog = __decorate([
|
|
14
|
+
Schema("ExceptionLog")
|
|
15
|
+
], ExceptionLog);
|
|
16
|
+
export default ExceptionLog;
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXhjZXB0aW9uTG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9FeGNlcHRpb25Mb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFcEMsT0FBTyxJQUFJLE1BQU0sV0FBVyxDQUFDO0FBSzdCOzs7Ozs7R0FNRztBQUVILElBQU0sWUFBWSxHQUFsQixNQUFNLFlBQWEsU0FBUSxJQUFzQjtDQUFHLENBQUE7QUFBOUMsWUFBWTtJQURqQixNQUFNLENBQUMsY0FBYyxDQUFDO0dBQ2pCLFlBQVksQ0FBa0M7QUFFcEQsZUFBZSxZQUFZLENBQUMifQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PostActions from "./posts/Actions.js";
|
|
2
|
+
import type { ExtendedPost as PostData } from "../generated/types.js";
|
|
3
|
+
interface ExtendedPost extends PostData {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @category Models
|
|
7
|
+
*
|
|
8
|
+
* @schema {@link https://e621.wiki/#model-ExtendedPost ExtendedPost}
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://e621.wiki/#model-ExtendedPost Documentation} for more details.
|
|
11
|
+
*/
|
|
12
|
+
declare class ExtendedPost extends PostActions<PostData> {
|
|
13
|
+
}
|
|
14
|
+
export default ExtendedPost;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Schema } from "../util.js";
|
|
3
|
+
import PostActions from "./posts/Actions.js";
|
|
4
|
+
/**
|
|
5
|
+
* @category Models
|
|
6
|
+
*
|
|
7
|
+
* @schema {@link https://e621.wiki/#model-ExtendedPost ExtendedPost}
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://e621.wiki/#model-ExtendedPost Documentation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
let ExtendedPost = class ExtendedPost extends PostActions {
|
|
12
|
+
};
|
|
13
|
+
ExtendedPost = __decorate([
|
|
14
|
+
Schema("ExtendedPost")
|
|
15
|
+
], ExtendedPost);
|
|
16
|
+
export default ExtendedPost;
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXh0ZW5kZWRQb3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9FeHRlbmRlZFBvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFcEMsT0FBTyxXQUFXLE1BQU0sb0JBQW9CLENBQUM7QUFLN0M7Ozs7OztHQU1HO0FBRUgsSUFBTSxZQUFZLEdBQWxCLE1BQU0sWUFBYSxTQUFRLFdBQXFCO0NBQUcsQ0FBQTtBQUE3QyxZQUFZO0lBRGpCLE1BQU0sQ0FBQyxjQUFjLENBQUM7R0FDakIsWUFBWSxDQUFpQztBQUVuRCxlQUFlLFlBQVksQ0FBQyJ9
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForumPostVotesCreateResponse } from "../modules/ForumPostVotes.js";
|
|
2
2
|
import { type ExtractValue } from "../util.js";
|
|
3
3
|
import Base from "./Base.js";
|
|
4
|
-
import
|
|
5
|
-
import type {
|
|
4
|
+
import ForumPostVote from "./ForumPostVote.js";
|
|
5
|
+
import type { ForumPostVotesCreateData, ForumPost as ForumPostData, ForumPostsWarningData } from "../generated/types.js";
|
|
6
|
+
import type { UpdateForumPostOptions, ForumPostsWarningResponse } from "../modules/ForumPosts.js";
|
|
6
7
|
interface ForumPost extends ForumPostData {
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
@@ -14,85 +15,87 @@ interface ForumPost extends ForumPostData {
|
|
|
14
15
|
*/
|
|
15
16
|
declare class ForumPost extends Base<ForumPostData> {
|
|
16
17
|
/**
|
|
17
|
-
* Delete Forum Post
|
|
18
18
|
*
|
|
19
19
|
* You must be Admin+.
|
|
20
20
|
*
|
|
21
21
|
* @requiresApiKeyAuth
|
|
22
22
|
*
|
|
23
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
23
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#destroy forum_posts#destroy}
|
|
24
24
|
*
|
|
25
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
25
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#destroy Documentation} for more details.
|
|
26
26
|
*/
|
|
27
27
|
delete(): Promise<null>;
|
|
28
28
|
/**
|
|
29
|
-
* Edit Forum Post
|
|
30
29
|
*
|
|
31
|
-
* You must be the creator
|
|
30
|
+
* You must be the creator or Moderator+.
|
|
32
31
|
*
|
|
33
32
|
* @requiresApiKeyAuth
|
|
34
33
|
*
|
|
35
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
34
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#hide forum_posts#hide}
|
|
36
35
|
*
|
|
37
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
36
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#hide Documentation} for more details.
|
|
38
37
|
*/
|
|
39
|
-
|
|
38
|
+
hide(): Promise<ForumPost>;
|
|
40
39
|
/**
|
|
41
|
-
* Hide Forum Post
|
|
42
40
|
*
|
|
43
|
-
* You must be
|
|
41
|
+
* You must be Moderator+.
|
|
42
|
+
|
|
44
43
|
*
|
|
45
44
|
* @requiresApiKeyAuth
|
|
46
45
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
46
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#warning forum_posts#warning}
|
|
48
47
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
48
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#warning Documentation} for more details.
|
|
50
49
|
*/
|
|
51
|
-
|
|
50
|
+
mark(type: ExtractValue<"record_type", ForumPostsWarningData>): Promise<ForumPostsWarningResponse>;
|
|
52
51
|
/**
|
|
53
|
-
* Mark Forum Post
|
|
54
52
|
*
|
|
55
53
|
* You must be Moderator+.
|
|
56
|
-
|
|
57
54
|
*
|
|
58
55
|
* @requiresApiKeyAuth
|
|
59
56
|
*
|
|
60
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#unhide forum_posts#unhide}
|
|
61
58
|
*
|
|
62
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#unhide Documentation} for more details.
|
|
63
60
|
*/
|
|
64
|
-
|
|
61
|
+
unhide(): Promise<ForumPost>;
|
|
65
62
|
/**
|
|
66
|
-
* Unhide Forum Post
|
|
67
63
|
*
|
|
68
|
-
*
|
|
64
|
+
* @requiresApiKeyAuth
|
|
65
|
+
*
|
|
66
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy forum_post_votes#destroy}
|
|
67
|
+
*
|
|
68
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy Documentation} for more details.
|
|
69
|
+
*/
|
|
70
|
+
unvote(): Promise<null>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* You must be the creator of the forum post, or Admin+ to edit. Marked forum posts cannot be edited.
|
|
69
74
|
*
|
|
70
75
|
* @requiresApiKeyAuth
|
|
71
76
|
*
|
|
72
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
77
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#update forum_posts#update}
|
|
73
78
|
*
|
|
74
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
79
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#update Documentation} for more details.
|
|
75
80
|
*/
|
|
76
|
-
|
|
81
|
+
update(options: UpdateForumPostOptions): Promise<null>;
|
|
77
82
|
/**
|
|
78
|
-
* Delete Forum Post Vote
|
|
79
83
|
*
|
|
80
84
|
* @requiresApiKeyAuth
|
|
81
85
|
*
|
|
82
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
86
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#create forum_post_votes#create}
|
|
83
87
|
*
|
|
84
|
-
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
88
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#create Documentation} for more details.
|
|
85
89
|
*/
|
|
86
|
-
|
|
90
|
+
vote(score: ExtractValue<"score", ForumPostVotesCreateData>): Promise<ForumPostVotesCreateResponse>;
|
|
87
91
|
/**
|
|
88
|
-
* Create Forum Post Vote
|
|
89
92
|
*
|
|
90
93
|
* @requiresApiKeyAuth
|
|
91
94
|
*
|
|
92
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
95
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#show forum_post_votes#show}
|
|
93
96
|
*
|
|
94
|
-
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
97
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#show Documentation} for more details.
|
|
95
98
|
*/
|
|
96
|
-
|
|
99
|
+
votes(): Promise<Array<ForumPostVote>>;
|
|
97
100
|
}
|
|
98
101
|
export default ForumPost;
|
|
@@ -10,145 +10,155 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let ForumPost = class ForumPost extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Delete Forum Post
|
|
14
13
|
*
|
|
15
14
|
* You must be Admin+.
|
|
16
15
|
*
|
|
17
16
|
* @requiresApiKeyAuth
|
|
18
17
|
*
|
|
19
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#destroy forum_posts#destroy}
|
|
20
19
|
*
|
|
21
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#destroy Documentation} for more details.
|
|
22
21
|
*/
|
|
23
22
|
async delete() {
|
|
24
23
|
return this.e621.forumPosts.delete(this.id);
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
|
-
* Edit Forum Post
|
|
28
|
-
*
|
|
29
|
-
* You must be the creator of the forum post, or Admin+ to edit. Marked forum posts cannot be edited.
|
|
30
|
-
*
|
|
31
|
-
* @requiresApiKeyAuth
|
|
32
|
-
*
|
|
33
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-editForumPost editForumPost}
|
|
34
|
-
*
|
|
35
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-editForumPost Documentation} for more details.
|
|
36
|
-
*/
|
|
37
|
-
async edit(options) {
|
|
38
|
-
return this.e621.forumPosts.edit(this.id, options);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Hide Forum Post
|
|
42
26
|
*
|
|
43
27
|
* You must be the creator or Moderator+.
|
|
44
28
|
*
|
|
45
29
|
* @requiresApiKeyAuth
|
|
46
30
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#hide forum_posts#hide}
|
|
48
32
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#hide Documentation} for more details.
|
|
50
34
|
*/
|
|
51
35
|
async hide() {
|
|
52
36
|
return this.e621.forumPosts.hide(this.id);
|
|
53
37
|
}
|
|
54
38
|
/**
|
|
55
|
-
* Mark Forum Post
|
|
56
39
|
*
|
|
57
40
|
* You must be Moderator+.
|
|
58
41
|
|
|
59
42
|
*
|
|
60
43
|
* @requiresApiKeyAuth
|
|
61
44
|
*
|
|
62
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
45
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#warning forum_posts#warning}
|
|
63
46
|
*
|
|
64
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
47
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#warning Documentation} for more details.
|
|
65
48
|
*/
|
|
66
49
|
async mark(type) {
|
|
67
50
|
return this.e621.forumPosts.mark(this.id, type);
|
|
68
51
|
}
|
|
69
52
|
/**
|
|
70
|
-
* Unhide Forum Post
|
|
71
53
|
*
|
|
72
54
|
* You must be Moderator+.
|
|
73
55
|
*
|
|
74
56
|
* @requiresApiKeyAuth
|
|
75
57
|
*
|
|
76
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-
|
|
58
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#unhide forum_posts#unhide}
|
|
77
59
|
*
|
|
78
|
-
* @see {@link https://e621.wiki/#operations-Forum_Posts-
|
|
60
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#unhide Documentation} for more details.
|
|
79
61
|
*/
|
|
80
62
|
async unhide() {
|
|
81
63
|
return this.e621.forumPosts.unhide(this.id);
|
|
82
64
|
}
|
|
83
65
|
/**
|
|
84
|
-
* Delete Forum Post Vote
|
|
85
66
|
*
|
|
86
67
|
* @requiresApiKeyAuth
|
|
87
68
|
*
|
|
88
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
69
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy forum_post_votes#destroy}
|
|
89
70
|
*
|
|
90
|
-
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
71
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy Documentation} for more details.
|
|
91
72
|
*/
|
|
92
73
|
async unvote() {
|
|
93
|
-
return this.e621.
|
|
74
|
+
return this.e621.forumPostVotes.delete(this.id);
|
|
94
75
|
}
|
|
95
76
|
/**
|
|
96
|
-
*
|
|
77
|
+
*
|
|
78
|
+
* You must be the creator of the forum post, or Admin+ to edit. Marked forum posts cannot be edited.
|
|
97
79
|
*
|
|
98
80
|
* @requiresApiKeyAuth
|
|
99
81
|
*
|
|
100
|
-
* @operationId {@link https://e621.wiki/#operations-
|
|
82
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#update forum_posts#update}
|
|
101
83
|
*
|
|
102
|
-
* @see {@link https://e621.wiki/#operations-
|
|
84
|
+
* @see {@link https://e621.wiki/#operations-Forum_Posts-forum_posts\#update Documentation} for more details.
|
|
85
|
+
*/
|
|
86
|
+
async update(options) {
|
|
87
|
+
return this.e621.forumPosts.update(this.id, options);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @requiresApiKeyAuth
|
|
92
|
+
*
|
|
93
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#create forum_post_votes#create}
|
|
94
|
+
*
|
|
95
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#create Documentation} for more details.
|
|
103
96
|
*/
|
|
104
97
|
async vote(score) {
|
|
105
|
-
return this.e621.
|
|
98
|
+
return this.e621.forumPostVotes.create(this.id, score);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @requiresApiKeyAuth
|
|
103
|
+
*
|
|
104
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#show forum_post_votes#show}
|
|
105
|
+
*
|
|
106
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#show Documentation} for more details.
|
|
107
|
+
*/
|
|
108
|
+
async votes() {
|
|
109
|
+
return this.e621.forumPostVotes.list(this.id);
|
|
106
110
|
}
|
|
107
111
|
};
|
|
108
112
|
__decorate([
|
|
109
|
-
OperationID("
|
|
113
|
+
OperationID("forum_posts#destroy"),
|
|
110
114
|
__metadata("design:type", Function),
|
|
111
115
|
__metadata("design:paramtypes", []),
|
|
112
116
|
__metadata("design:returntype", Promise)
|
|
113
117
|
], ForumPost.prototype, "delete", null);
|
|
114
118
|
__decorate([
|
|
115
|
-
OperationID("
|
|
116
|
-
__metadata("design:type", Function),
|
|
117
|
-
__metadata("design:paramtypes", [Object]),
|
|
118
|
-
__metadata("design:returntype", Promise)
|
|
119
|
-
], ForumPost.prototype, "edit", null);
|
|
120
|
-
__decorate([
|
|
121
|
-
OperationID("hideForumPost"),
|
|
119
|
+
OperationID("forum_posts#hide"),
|
|
122
120
|
__metadata("design:type", Function),
|
|
123
121
|
__metadata("design:paramtypes", []),
|
|
124
122
|
__metadata("design:returntype", Promise)
|
|
125
123
|
], ForumPost.prototype, "hide", null);
|
|
126
124
|
__decorate([
|
|
127
|
-
OperationID("
|
|
125
|
+
OperationID("forum_posts#warning"),
|
|
128
126
|
__metadata("design:type", Function),
|
|
129
127
|
__metadata("design:paramtypes", [Object]),
|
|
130
128
|
__metadata("design:returntype", Promise)
|
|
131
129
|
], ForumPost.prototype, "mark", null);
|
|
132
130
|
__decorate([
|
|
133
|
-
OperationID("
|
|
131
|
+
OperationID("forum_posts#unhide"),
|
|
134
132
|
__metadata("design:type", Function),
|
|
135
133
|
__metadata("design:paramtypes", []),
|
|
136
134
|
__metadata("design:returntype", Promise)
|
|
137
135
|
], ForumPost.prototype, "unhide", null);
|
|
138
136
|
__decorate([
|
|
139
|
-
OperationID("
|
|
137
|
+
OperationID("forum_post_votes#destroy"),
|
|
140
138
|
__metadata("design:type", Function),
|
|
141
139
|
__metadata("design:paramtypes", []),
|
|
142
140
|
__metadata("design:returntype", Promise)
|
|
143
141
|
], ForumPost.prototype, "unvote", null);
|
|
144
142
|
__decorate([
|
|
145
|
-
OperationID("
|
|
143
|
+
OperationID("forum_posts#update"),
|
|
144
|
+
__metadata("design:type", Function),
|
|
145
|
+
__metadata("design:paramtypes", [Object]),
|
|
146
|
+
__metadata("design:returntype", Promise)
|
|
147
|
+
], ForumPost.prototype, "update", null);
|
|
148
|
+
__decorate([
|
|
149
|
+
OperationID("forum_post_votes#create"),
|
|
146
150
|
__metadata("design:type", Function),
|
|
147
151
|
__metadata("design:paramtypes", [Object]),
|
|
148
152
|
__metadata("design:returntype", Promise)
|
|
149
153
|
], ForumPost.prototype, "vote", null);
|
|
154
|
+
__decorate([
|
|
155
|
+
OperationID("forum_post_votes#show"),
|
|
156
|
+
__metadata("design:type", Function),
|
|
157
|
+
__metadata("design:paramtypes", []),
|
|
158
|
+
__metadata("design:returntype", Promise)
|
|
159
|
+
], ForumPost.prototype, "votes", null);
|
|
150
160
|
ForumPost = __decorate([
|
|
151
161
|
Schema("ForumPost")
|
|
152
162
|
], ForumPost);
|
|
153
163
|
export default ForumPost;
|
|
154
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
164
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRm9ydW1Qb3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9Gb3J1bVBvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLE9BQU8sRUFBcUIsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVwRSxPQUFPLElBQUksTUFBTSxXQUFXLENBQUM7QUFPN0I7Ozs7OztHQU1HO0FBRUgsSUFBTSxTQUFTLEdBQWYsTUFBTSxTQUFVLFNBQVEsSUFBbUI7SUFDdkM7Ozs7Ozs7OztPQVNBO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTTtRQUNSLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNoRCxDQUFDO0lBRUQ7Ozs7Ozs7OztPQVNBO0lBRU0sQUFBTixLQUFLLENBQUMsSUFBSTtRQUNOLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUM5QyxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVQTtJQUVNLEFBQU4sS0FBSyxDQUFDLElBQUksQ0FBQyxJQUF3RDtRQUMvRCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQ3BELENBQUM7SUFFRDs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFFRDs7Ozs7OztPQU9BO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTTtRQUNSLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNwRCxDQUFDO0lBRUQ7Ozs7Ozs7OztPQVNBO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTSxDQUFDLE9BQStCO1FBQ3hDLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLEVBQUUsT0FBTyxDQUFDLENBQUM7SUFDekQsQ0FBQztJQUVEOzs7Ozs7O09BT0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxJQUFJLENBQUMsS0FBc0Q7UUFDN0QsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUMzRCxDQUFDO0lBRUQ7Ozs7Ozs7T0FPQTtJQUVNLEFBQU4sS0FBSyxDQUFDLEtBQUs7UUFDUCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDbEQsQ0FBQztDQUNKLENBQUE7QUF2R1M7SUFEUixXQUFXLENBQUMscUJBQXFCLENBQUM7Ozs7dUNBRy9CO0FBYUs7SUFEUixXQUFXLENBQUMsa0JBQWtCLENBQUM7Ozs7cUNBRzVCO0FBY0s7SUFEUixXQUFXLENBQUMscUJBQXFCLENBQUM7Ozs7cUNBRy9CO0FBYUs7SUFEUixXQUFXLENBQUMsb0JBQW9CLENBQUM7Ozs7dUNBRzlCO0FBV0s7SUFEUixXQUFXLENBQUMsMEJBQTBCLENBQUM7Ozs7dUNBR3BDO0FBYUs7SUFEUixXQUFXLENBQUMsb0JBQW9CLENBQUM7Ozs7dUNBRzlCO0FBV0s7SUFEUixXQUFXLENBQUMseUJBQXlCLENBQUM7Ozs7cUNBR25DO0FBV0s7SUFEUixXQUFXLENBQUMsdUJBQXVCLENBQUM7Ozs7c0NBR2pDO0FBbEhDLFNBQVM7SUFEZCxNQUFNLENBQUMsV0FBVyxDQUFDO0dBQ2QsU0FBUyxDQW1IZDtBQUVELGVBQWUsU0FBUyxDQUFDIn0=
|
|
@@ -11,13 +11,12 @@ interface ForumPostVote extends ForumPostVoteData {
|
|
|
11
11
|
*/
|
|
12
12
|
declare class ForumPostVote extends Base<ForumPostVoteData> {
|
|
13
13
|
/**
|
|
14
|
-
* Delete Forum Post Vote
|
|
15
14
|
*
|
|
16
15
|
* @requiresApiKeyAuth
|
|
17
16
|
*
|
|
18
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
17
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy forum_post_votes#destroy}
|
|
19
18
|
*
|
|
20
|
-
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
19
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy Documentation} for more details.
|
|
21
20
|
*/
|
|
22
21
|
delete(): Promise<null>;
|
|
23
22
|
}
|
|
@@ -10,20 +10,19 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let ForumPostVote = class ForumPostVote extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Delete Forum Post Vote
|
|
14
13
|
*
|
|
15
14
|
* @requiresApiKeyAuth
|
|
16
15
|
*
|
|
17
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
16
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy forum_post_votes#destroy}
|
|
18
17
|
*
|
|
19
|
-
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-
|
|
18
|
+
* @see {@link https://e621.wiki/#operations-Forum_Post_Votes-forum_post_votes\#destroy Documentation} for more details.
|
|
20
19
|
*/
|
|
21
20
|
async delete() {
|
|
22
|
-
return this.e621.
|
|
21
|
+
return this.e621.forumPostVotes.delete(this.id);
|
|
23
22
|
}
|
|
24
23
|
};
|
|
25
24
|
__decorate([
|
|
26
|
-
OperationID("
|
|
25
|
+
OperationID("forum_post_votes#destroy"),
|
|
27
26
|
__metadata("design:type", Function),
|
|
28
27
|
__metadata("design:paramtypes", []),
|
|
29
28
|
__metadata("design:returntype", Promise)
|
|
@@ -32,4 +31,4 @@ ForumPostVote = __decorate([
|
|
|
32
31
|
Schema("ForumPostVote")
|
|
33
32
|
], ForumPostVote);
|
|
34
33
|
export default ForumPostVote;
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRm9ydW1Qb3N0Vm90ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvRm9ydW1Qb3N0Vm90ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFakQsT0FBTyxJQUFJLE1BQU0sV0FBVyxDQUFDO0FBSzdCOzs7Ozs7R0FNRztBQUVILElBQU0sYUFBYSxHQUFuQixNQUFNLGFBQWMsU0FBUSxJQUF1QjtJQUMvQzs7Ozs7OztPQU9BO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTTtRQUNSLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNwRCxDQUFDO0NBQ0osQ0FBQTtBQUhTO0lBRFIsV0FBVyxDQUFDLDBCQUEwQixDQUFDOzs7OzJDQUdwQztBQVpDLGFBQWE7SUFEbEIsTUFBTSxDQUFDLGVBQWUsQ0FBQztHQUNsQixhQUFhLENBYWxCO0FBRUQsZUFBZSxhQUFhLENBQUMifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Base from "./Base.js";
|
|
2
2
|
import type { ForumTopic as ForumTopicData } from "../generated/types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { UpdateForumTopicOptions } from "../modules/ForumTopics.js";
|
|
4
4
|
interface ForumTopic extends ForumTopicData {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -12,70 +12,64 @@ interface ForumTopic extends ForumTopicData {
|
|
|
12
12
|
*/
|
|
13
13
|
declare class ForumTopic extends Base<ForumTopicData> {
|
|
14
14
|
/**
|
|
15
|
-
* Delete Forum Topic
|
|
16
15
|
*
|
|
17
16
|
* You must be Admin+.
|
|
18
17
|
*
|
|
19
18
|
* @requiresApiKeyAuth
|
|
20
19
|
*
|
|
21
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#destroy forum_topics#destroy}
|
|
22
21
|
*
|
|
23
|
-
* @see {@link https://e621.wiki/#operations-Forum_Topics-
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#destroy Documentation} for more details.
|
|
24
23
|
*/
|
|
25
24
|
delete(): Promise<null>;
|
|
26
25
|
/**
|
|
27
|
-
* Edit Forum Topic
|
|
28
|
-
*
|
|
29
|
-
* @requiresApiKeyAuth
|
|
30
|
-
*
|
|
31
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-editForumTopic editForumTopic}
|
|
32
|
-
*
|
|
33
|
-
* @see {@link https://e621.wiki/#operations-Forum_Topics-editForumTopic Documentation} for more details.
|
|
34
|
-
*/
|
|
35
|
-
edit(options: ForumTopicOptions): Promise<null>;
|
|
36
|
-
/**
|
|
37
|
-
* Hide Forum Topic
|
|
38
26
|
*
|
|
39
27
|
* You must be the creator or Moderator+.
|
|
40
28
|
*
|
|
41
29
|
* @requiresApiKeyAuth
|
|
42
30
|
*
|
|
43
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#hide forum_topics#hide}
|
|
44
32
|
*
|
|
45
|
-
* @see {@link https://e621.wiki/#operations-Forum_Topics-
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#hide Documentation} for more details.
|
|
46
34
|
*/
|
|
47
35
|
hide(): Promise<ForumTopic>;
|
|
48
36
|
/**
|
|
49
|
-
* Subscribe To Forum Topic
|
|
50
37
|
*
|
|
51
38
|
* @requiresApiKeyAuth
|
|
52
39
|
*
|
|
53
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-
|
|
40
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#subscribe forum_topics#subscribe}
|
|
54
41
|
*
|
|
55
|
-
* @see {@link https://e621.wiki/#operations-Forum_Topics-
|
|
42
|
+
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#subscribe Documentation} for more details.
|
|
56
43
|
*/
|
|
57
44
|
subscribe(): Promise<ForumTopic>;
|
|
58
45
|
/**
|
|
59
|
-
* Unhide Forum Topic
|
|
60
46
|
*
|
|
61
47
|
* You must be Moderator+.
|
|
62
48
|
*
|
|
63
49
|
* @requiresApiKeyAuth
|
|
64
50
|
*
|
|
65
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-
|
|
51
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#unhide forum_topics#unhide}
|
|
66
52
|
*
|
|
67
|
-
* @see {@link https://e621.wiki/#operations-Forum_Topics-
|
|
53
|
+
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#unhide Documentation} for more details.
|
|
68
54
|
*/
|
|
69
55
|
unhide(): Promise<ForumTopic>;
|
|
70
56
|
/**
|
|
71
|
-
* Unsubscribe From Forum Topic
|
|
72
57
|
*
|
|
73
58
|
* @requiresApiKeyAuth
|
|
74
59
|
*
|
|
75
|
-
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-
|
|
60
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#unsubscribe forum_topics#unsubscribe}
|
|
76
61
|
*
|
|
77
|
-
* @see {@link https://e621.wiki/#operations-Forum_Topics-
|
|
62
|
+
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#unsubscribe Documentation} for more details.
|
|
78
63
|
*/
|
|
79
64
|
unsubscribe(): Promise<ForumTopic>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @requiresApiKeyAuth
|
|
68
|
+
*
|
|
69
|
+
* @operationId {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#update forum_topics#update}
|
|
70
|
+
*
|
|
71
|
+
* @see {@link https://e621.wiki/#operations-Forum_Topics-forum_topics\#update Documentation} for more details.
|
|
72
|
+
*/
|
|
73
|
+
update(options: UpdateForumTopicOptions): Promise<null>;
|
|
80
74
|
}
|
|
81
75
|
export default ForumTopic;
|