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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Base from "./Base.js";
|
|
2
2
|
import type { SearchTrendBlacklist as SearchTrendBlacklistData } from "../generated/types.js";
|
|
3
|
+
import type { SearchTrendsPurgeResponse } from "../modules/SearchTrends.js";
|
|
3
4
|
interface SearchTrendBlacklist extends SearchTrendBlacklistData {
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
@@ -10,5 +11,27 @@ interface SearchTrendBlacklist extends SearchTrendBlacklistData {
|
|
|
10
11
|
* @see {@link https://e621.wiki/#model-SearchTrendBlacklist Documentation} for more details.
|
|
11
12
|
*/
|
|
12
13
|
declare class SearchTrendBlacklist extends Base<SearchTrendBlacklistData> {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* You must be Admin+.
|
|
17
|
+
*
|
|
18
|
+
* @requiresApiKeyAuth
|
|
19
|
+
*
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Search_Trend_Blacklists-search_trend_blacklists\#destroy search_trend_blacklists#destroy}
|
|
21
|
+
*
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Search_Trend_Blacklists-search_trend_blacklists\#destroy Documentation} for more details.
|
|
23
|
+
*/
|
|
24
|
+
delete(): Promise<null>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* You must be Admin+.
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Search_Trends-search_trends\#purge search_trends#purge}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Search_Trends-search_trends\#purge Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
purge(): Promise<SearchTrendsPurgeResponse>;
|
|
13
36
|
}
|
|
14
37
|
export default SearchTrendBlacklist;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Schema } from "../util.js";
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { OperationID, Schema } from "../util.js";
|
|
3
3
|
import Base from "./Base.js";
|
|
4
4
|
/**
|
|
5
5
|
* @category Models
|
|
@@ -9,9 +9,47 @@ import Base from "./Base.js";
|
|
|
9
9
|
* @see {@link https://e621.wiki/#model-SearchTrendBlacklist Documentation} for more details.
|
|
10
10
|
*/
|
|
11
11
|
let SearchTrendBlacklist = class SearchTrendBlacklist extends Base {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* You must be Admin+.
|
|
15
|
+
*
|
|
16
|
+
* @requiresApiKeyAuth
|
|
17
|
+
*
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Search_Trend_Blacklists-search_trend_blacklists\#destroy search_trend_blacklists#destroy}
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Search_Trend_Blacklists-search_trend_blacklists\#destroy Documentation} for more details.
|
|
21
|
+
*/
|
|
22
|
+
async delete() {
|
|
23
|
+
return this.e621.searchTrendBlacklists.delete(this.id);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* You must be Admin+.
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Search_Trends-search_trends\#purge search_trends#purge}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Search_Trends-search_trends\#purge Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
async purge() {
|
|
36
|
+
return this.e621.searchTrends.purge(this.id);
|
|
37
|
+
}
|
|
12
38
|
};
|
|
39
|
+
__decorate([
|
|
40
|
+
OperationID("search_trend_blacklists#destroy"),
|
|
41
|
+
__metadata("design:type", Function),
|
|
42
|
+
__metadata("design:paramtypes", []),
|
|
43
|
+
__metadata("design:returntype", Promise)
|
|
44
|
+
], SearchTrendBlacklist.prototype, "delete", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
OperationID("search_trends#purge"),
|
|
47
|
+
__metadata("design:type", Function),
|
|
48
|
+
__metadata("design:paramtypes", []),
|
|
49
|
+
__metadata("design:returntype", Promise)
|
|
50
|
+
], SearchTrendBlacklist.prototype, "purge", null);
|
|
13
51
|
SearchTrendBlacklist = __decorate([
|
|
14
52
|
Schema("SearchTrendBlacklist")
|
|
15
53
|
], SearchTrendBlacklist);
|
|
16
54
|
export default SearchTrendBlacklist;
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VhcmNoVHJlbmRCbGFja2xpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvbW9kZWxzL1NlYXJjaFRyZW5kQmxhY2tsaXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVqRCxPQUFPLElBQUksTUFBTSxXQUFXLENBQUM7QUFNN0I7Ozs7OztHQU1HO0FBRUgsSUFBTSxvQkFBb0IsR0FBMUIsTUFBTSxvQkFBcUIsU0FBUSxJQUE4QjtJQUM3RDs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLHFCQUFxQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDM0QsQ0FBQztJQUVEOzs7Ozs7Ozs7T0FTQTtJQUVNLEFBQU4sS0FBSyxDQUFDLEtBQUs7UUFDUCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDakQsQ0FBQztDQUNKLENBQUE7QUFsQlM7SUFEUixXQUFXLENBQUMsaUNBQWlDLENBQUM7Ozs7a0RBRzNDO0FBYUs7SUFEUixXQUFXLENBQUMscUJBQXFCLENBQUM7Ozs7aURBRy9CO0FBN0JDLG9CQUFvQjtJQUR6QixNQUFNLENBQUMsc0JBQXNCLENBQUM7R0FDekIsb0JBQW9CLENBOEJ6QjtBQUVELGVBQWUsb0JBQW9CLENBQUMifQ==
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import Base from "./Base.js";
|
|
2
|
+
import type { StaffFile as StaffFileData } from "../generated/types.js";
|
|
3
|
+
import type { UpdateStaffFileOptions } from "../modules/StaffFiles.js";
|
|
4
|
+
interface StaffFile extends StaffFileData {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @category Models
|
|
8
|
+
*
|
|
9
|
+
* @schema {@link https://e621.wiki/#model-StaffFile StaffFile}
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://e621.wiki/#model-StaffFile Documentation} for more details.
|
|
12
|
+
*/
|
|
13
|
+
declare class StaffFile extends Base<StaffFileData> {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* You must be Admin+ if you did not created the file, else Staff+
|
|
17
|
+
*
|
|
18
|
+
* @requiresApiKeyAuth
|
|
19
|
+
*
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Files-staff/files\#destroy staff/files#destroy}
|
|
21
|
+
*
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Staff_Files-staff/files\#destroy Documentation} for more details.
|
|
23
|
+
*/
|
|
24
|
+
delete(): Promise<null>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* You must be Admin+ if you did not create the file, else Staff+
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Files-staff/files\#update staff/files#update}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Staff_Files-staff/files\#update Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
update(options: UpdateStaffFileOptions): Promise<null>;
|
|
36
|
+
}
|
|
37
|
+
export default StaffFile;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { OperationID, Schema } from "../util.js";
|
|
3
|
+
import Base from "./Base.js";
|
|
4
|
+
/**
|
|
5
|
+
* @category Models
|
|
6
|
+
*
|
|
7
|
+
* @schema {@link https://e621.wiki/#model-StaffFile StaffFile}
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://e621.wiki/#model-StaffFile Documentation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
let StaffFile = class StaffFile extends Base {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* You must be Admin+ if you did not created the file, else Staff+
|
|
15
|
+
*
|
|
16
|
+
* @requiresApiKeyAuth
|
|
17
|
+
*
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Files-staff/files\#destroy staff/files#destroy}
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Staff_Files-staff/files\#destroy Documentation} for more details.
|
|
21
|
+
*/
|
|
22
|
+
async delete() {
|
|
23
|
+
return this.e621.staffFiles.delete(this.id);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* You must be Admin+ if you did not create the file, else Staff+
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Files-staff/files\#update staff/files#update}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Staff_Files-staff/files\#update Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
async update(options) {
|
|
36
|
+
return this.e621.staffFiles.update(this.id, options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
__decorate([
|
|
40
|
+
OperationID("staff/files#destroy"),
|
|
41
|
+
__metadata("design:type", Function),
|
|
42
|
+
__metadata("design:paramtypes", []),
|
|
43
|
+
__metadata("design:returntype", Promise)
|
|
44
|
+
], StaffFile.prototype, "delete", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
OperationID("staff/files#update"),
|
|
47
|
+
__metadata("design:type", Function),
|
|
48
|
+
__metadata("design:paramtypes", [Object]),
|
|
49
|
+
__metadata("design:returntype", Promise)
|
|
50
|
+
], StaffFile.prototype, "update", null);
|
|
51
|
+
StaffFile = __decorate([
|
|
52
|
+
Schema("StaffFile")
|
|
53
|
+
], StaffFile);
|
|
54
|
+
export default StaffFile;
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhZmZGaWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9TdGFmZkZpbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRWpELE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQU03Qjs7Ozs7O0dBTUc7QUFFSCxJQUFNLFNBQVMsR0FBZixNQUFNLFNBQVUsU0FBUSxJQUFtQjtJQUN2Qzs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFFRDs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNLENBQUMsT0FBK0I7UUFDeEMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUN6RCxDQUFDO0NBQ0osQ0FBQTtBQWxCUztJQURSLFdBQVcsQ0FBQyxxQkFBcUIsQ0FBQzs7Ozt1Q0FHL0I7QUFhSztJQURSLFdBQVcsQ0FBQyxvQkFBb0IsQ0FBQzs7Ozt1Q0FHOUI7QUE3QkMsU0FBUztJQURkLE1BQU0sQ0FBQyxXQUFXLENBQUM7R0FDZCxTQUFTLENBOEJkO0FBRUQsZUFBZSxTQUFTLENBQUMifQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Base from "./Base.js";
|
|
2
2
|
import type { StaffNote as StaffNoteData } from "../generated/types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { UpdateStaffNoteOptions } from "../modules/StaffNotes.js";
|
|
4
4
|
interface StaffNote extends StaffNoteData {
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -12,42 +12,39 @@ interface StaffNote extends StaffNoteData {
|
|
|
12
12
|
*/
|
|
13
13
|
declare class StaffNote extends Base<StaffNoteData> {
|
|
14
14
|
/**
|
|
15
|
-
* Delete Staff Note
|
|
16
15
|
*
|
|
17
16
|
* You must be the creator or Admin+.
|
|
18
17
|
|
|
19
18
|
*
|
|
20
19
|
* @requiresApiKeyAuth
|
|
21
20
|
*
|
|
22
|
-
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-
|
|
21
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#delete staff_notes#delete}
|
|
23
22
|
*
|
|
24
|
-
* @see {@link https://e621.wiki/#operations-Staff_Notes-
|
|
23
|
+
* @see {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#delete Documentation} for more details.
|
|
25
24
|
*/
|
|
26
25
|
delete(): Promise<StaffNote>;
|
|
27
26
|
/**
|
|
28
|
-
* Edit Staff Note
|
|
29
27
|
*
|
|
30
28
|
* You must be the creator or Admin+.
|
|
29
|
+
|
|
31
30
|
*
|
|
32
31
|
* @requiresApiKeyAuth
|
|
33
32
|
*
|
|
34
|
-
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#undelete staff_notes#undelete}
|
|
35
34
|
*
|
|
36
|
-
* @see {@link https://e621.wiki/#operations-Staff_Notes-
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#undelete Documentation} for more details.
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
undelete(): Promise<StaffNote>;
|
|
39
38
|
/**
|
|
40
|
-
* Undelete Staff Note
|
|
41
39
|
*
|
|
42
40
|
* You must be the creator or Admin+.
|
|
43
|
-
|
|
44
41
|
*
|
|
45
42
|
* @requiresApiKeyAuth
|
|
46
43
|
*
|
|
47
|
-
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-
|
|
44
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#update staff_notes#update}
|
|
48
45
|
*
|
|
49
|
-
* @see {@link https://e621.wiki/#operations-Staff_Notes-
|
|
46
|
+
* @see {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#update Documentation} for more details.
|
|
50
47
|
*/
|
|
51
|
-
|
|
48
|
+
update(options: UpdateStaffNoteOptions): Promise<StaffNote>;
|
|
52
49
|
}
|
|
53
50
|
export default StaffNote;
|
|
@@ -10,70 +10,67 @@ import Base from "./Base.js";
|
|
|
10
10
|
*/
|
|
11
11
|
let StaffNote = class StaffNote extends Base {
|
|
12
12
|
/**
|
|
13
|
-
* Delete Staff Note
|
|
14
13
|
*
|
|
15
14
|
* You must be the creator or Admin+.
|
|
16
15
|
|
|
17
16
|
*
|
|
18
17
|
* @requiresApiKeyAuth
|
|
19
18
|
*
|
|
20
|
-
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-
|
|
19
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#delete staff_notes#delete}
|
|
21
20
|
*
|
|
22
|
-
* @see {@link https://e621.wiki/#operations-Staff_Notes-
|
|
21
|
+
* @see {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#delete Documentation} for more details.
|
|
23
22
|
*/
|
|
24
23
|
async delete() {
|
|
25
24
|
return this.e621.staffNotes.delete(this.id);
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
28
|
-
* Edit Staff Note
|
|
29
27
|
*
|
|
30
28
|
* You must be the creator or Admin+.
|
|
29
|
+
|
|
31
30
|
*
|
|
32
31
|
* @requiresApiKeyAuth
|
|
33
32
|
*
|
|
34
|
-
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-
|
|
33
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#undelete staff_notes#undelete}
|
|
35
34
|
*
|
|
36
|
-
* @see {@link https://e621.wiki/#operations-Staff_Notes-
|
|
35
|
+
* @see {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#undelete Documentation} for more details.
|
|
37
36
|
*/
|
|
38
|
-
async
|
|
39
|
-
return this.e621.staffNotes.
|
|
37
|
+
async undelete() {
|
|
38
|
+
return this.e621.staffNotes.undelete(this.id);
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
42
|
-
* Undelete Staff Note
|
|
43
41
|
*
|
|
44
42
|
* You must be the creator or Admin+.
|
|
45
|
-
|
|
46
43
|
*
|
|
47
44
|
* @requiresApiKeyAuth
|
|
48
45
|
*
|
|
49
|
-
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-
|
|
46
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#update staff_notes#update}
|
|
50
47
|
*
|
|
51
|
-
* @see {@link https://e621.wiki/#operations-Staff_Notes-
|
|
48
|
+
* @see {@link https://e621.wiki/#operations-Staff_Notes-staff_notes\#update Documentation} for more details.
|
|
52
49
|
*/
|
|
53
|
-
async
|
|
54
|
-
return this.e621.staffNotes.
|
|
50
|
+
async update(options) {
|
|
51
|
+
return this.e621.staffNotes.update(this.id, options);
|
|
55
52
|
}
|
|
56
53
|
};
|
|
57
54
|
__decorate([
|
|
58
|
-
OperationID("
|
|
55
|
+
OperationID("staff_notes#delete"),
|
|
59
56
|
__metadata("design:type", Function),
|
|
60
57
|
__metadata("design:paramtypes", []),
|
|
61
58
|
__metadata("design:returntype", Promise)
|
|
62
59
|
], StaffNote.prototype, "delete", null);
|
|
63
60
|
__decorate([
|
|
64
|
-
OperationID("
|
|
61
|
+
OperationID("staff_notes#undelete"),
|
|
65
62
|
__metadata("design:type", Function),
|
|
66
|
-
__metadata("design:paramtypes", [
|
|
63
|
+
__metadata("design:paramtypes", []),
|
|
67
64
|
__metadata("design:returntype", Promise)
|
|
68
|
-
], StaffNote.prototype, "
|
|
65
|
+
], StaffNote.prototype, "undelete", null);
|
|
69
66
|
__decorate([
|
|
70
|
-
OperationID("
|
|
67
|
+
OperationID("staff_notes#update"),
|
|
71
68
|
__metadata("design:type", Function),
|
|
72
|
-
__metadata("design:paramtypes", []),
|
|
69
|
+
__metadata("design:paramtypes", [Object]),
|
|
73
70
|
__metadata("design:returntype", Promise)
|
|
74
|
-
], StaffNote.prototype, "
|
|
71
|
+
], StaffNote.prototype, "update", null);
|
|
75
72
|
StaffNote = __decorate([
|
|
76
73
|
Schema("StaffNote")
|
|
77
74
|
], StaffNote);
|
|
78
75
|
export default StaffNote;
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhZmZOb3RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9TdGFmZk5vdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRWpELE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQU03Qjs7Ozs7O0dBTUc7QUFFSCxJQUFNLFNBQVMsR0FBZixNQUFNLFNBQVUsU0FBUSxJQUFtQjtJQUN2Qzs7Ozs7Ozs7OztPQVVBO0lBRU0sQUFBTixLQUFLLENBQUMsTUFBTTtRQUNSLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNoRCxDQUFDO0lBRUQ7Ozs7Ozs7Ozs7T0FVQTtJQUVNLEFBQU4sS0FBSyxDQUFDLFFBQVE7UUFDVixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDbEQsQ0FBQztJQUVEOzs7Ozs7Ozs7T0FTQTtJQUVNLEFBQU4sS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUErQjtRQUN4QyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ3pELENBQUM7Q0FDSixDQUFBO0FBbENTO0lBRFIsV0FBVyxDQUFDLG9CQUFvQixDQUFDOzs7O3VDQUc5QjtBQWNLO0lBRFIsV0FBVyxDQUFDLHNCQUFzQixDQUFDOzs7O3lDQUdoQztBQWFLO0lBRFIsV0FBVyxDQUFDLG9CQUFvQixDQUFDOzs7O3VDQUc5QjtBQTlDQyxTQUFTO0lBRGQsTUFBTSxDQUFDLFdBQVcsQ0FBQztHQUNkLFNBQVMsQ0ErQ2Q7QUFFRCxlQUFlLFNBQVMsQ0FBQyJ9
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Base from "./Base.js";
|
|
2
|
+
import type { StaffWiki as StaffWikiData } from "../generated/types.js";
|
|
3
|
+
import type { UpdateStaffWikiOptions } from "../modules/StaffWikis.js";
|
|
4
|
+
interface StaffWiki extends StaffWikiData {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @category Models
|
|
8
|
+
*
|
|
9
|
+
* @schema {@link https://e621.wiki/#model-StaffWiki StaffWiki}
|
|
10
|
+
*
|
|
11
|
+
* @see {@link https://e621.wiki/#model-StaffWiki Documentation} for more details.
|
|
12
|
+
*/
|
|
13
|
+
declare class StaffWiki extends Base<StaffWikiData> {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* You must be Staff+
|
|
17
|
+
*
|
|
18
|
+
* @requiresApiKeyAuth
|
|
19
|
+
*
|
|
20
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#claim staff/wikis#claim}
|
|
21
|
+
*
|
|
22
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#claim Documentation} for more details.
|
|
23
|
+
*/
|
|
24
|
+
claim(): Promise<StaffWiki>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* You must be Staff+.
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#destroy staff/wikis#destroy}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#destroy Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
delete(): Promise<null>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* You must be Staff+
|
|
39
|
+
*
|
|
40
|
+
* @requiresApiKeyAuth
|
|
41
|
+
*
|
|
42
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#unclaim staff/wikis#unclaim}
|
|
43
|
+
*
|
|
44
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#unclaim Documentation} for more details.
|
|
45
|
+
*/
|
|
46
|
+
unclaim(): Promise<StaffWiki>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* You must be Staff+
|
|
50
|
+
*
|
|
51
|
+
* @requiresApiKeyAuth
|
|
52
|
+
*
|
|
53
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#update staff/wikis#update}
|
|
54
|
+
*
|
|
55
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#update Documentation} for more details.
|
|
56
|
+
*/
|
|
57
|
+
update(options: UpdateStaffWikiOptions): Promise<null>;
|
|
58
|
+
}
|
|
59
|
+
export default StaffWiki;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { OperationID, Schema } from "../util.js";
|
|
3
|
+
import Base from "./Base.js";
|
|
4
|
+
/**
|
|
5
|
+
* @category Models
|
|
6
|
+
*
|
|
7
|
+
* @schema {@link https://e621.wiki/#model-StaffWiki StaffWiki}
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://e621.wiki/#model-StaffWiki Documentation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
let StaffWiki = class StaffWiki extends Base {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* You must be Staff+
|
|
15
|
+
*
|
|
16
|
+
* @requiresApiKeyAuth
|
|
17
|
+
*
|
|
18
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#claim staff/wikis#claim}
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#claim Documentation} for more details.
|
|
21
|
+
*/
|
|
22
|
+
async claim() {
|
|
23
|
+
return this.e621.staffWikis.claim(this.id);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* You must be Staff+.
|
|
28
|
+
*
|
|
29
|
+
* @requiresApiKeyAuth
|
|
30
|
+
*
|
|
31
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#destroy staff/wikis#destroy}
|
|
32
|
+
*
|
|
33
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#destroy Documentation} for more details.
|
|
34
|
+
*/
|
|
35
|
+
async delete() {
|
|
36
|
+
return this.e621.staffWikis.delete(this.id);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* You must be Staff+
|
|
41
|
+
*
|
|
42
|
+
* @requiresApiKeyAuth
|
|
43
|
+
*
|
|
44
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#unclaim staff/wikis#unclaim}
|
|
45
|
+
*
|
|
46
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#unclaim Documentation} for more details.
|
|
47
|
+
*/
|
|
48
|
+
async unclaim() {
|
|
49
|
+
return this.e621.staffWikis.unclaim(this.id);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* You must be Staff+
|
|
54
|
+
*
|
|
55
|
+
* @requiresApiKeyAuth
|
|
56
|
+
*
|
|
57
|
+
* @operationId {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#update staff/wikis#update}
|
|
58
|
+
*
|
|
59
|
+
* @see {@link https://e621.wiki/#operations-Staff_Wikis-staff/wikis\#update Documentation} for more details.
|
|
60
|
+
*/
|
|
61
|
+
async update(options) {
|
|
62
|
+
return this.e621.staffWikis.update(this.id, options);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
__decorate([
|
|
66
|
+
OperationID("staff/wikis#claim"),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", []),
|
|
69
|
+
__metadata("design:returntype", Promise)
|
|
70
|
+
], StaffWiki.prototype, "claim", null);
|
|
71
|
+
__decorate([
|
|
72
|
+
OperationID("staff/wikis#destroy"),
|
|
73
|
+
__metadata("design:type", Function),
|
|
74
|
+
__metadata("design:paramtypes", []),
|
|
75
|
+
__metadata("design:returntype", Promise)
|
|
76
|
+
], StaffWiki.prototype, "delete", null);
|
|
77
|
+
__decorate([
|
|
78
|
+
OperationID("staff/wikis#unclaim"),
|
|
79
|
+
__metadata("design:type", Function),
|
|
80
|
+
__metadata("design:paramtypes", []),
|
|
81
|
+
__metadata("design:returntype", Promise)
|
|
82
|
+
], StaffWiki.prototype, "unclaim", null);
|
|
83
|
+
__decorate([
|
|
84
|
+
OperationID("staff/wikis#update"),
|
|
85
|
+
__metadata("design:type", Function),
|
|
86
|
+
__metadata("design:paramtypes", [Object]),
|
|
87
|
+
__metadata("design:returntype", Promise)
|
|
88
|
+
], StaffWiki.prototype, "update", null);
|
|
89
|
+
StaffWiki = __decorate([
|
|
90
|
+
Schema("StaffWiki")
|
|
91
|
+
], StaffWiki);
|
|
92
|
+
export default StaffWiki;
|
|
93
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhZmZXaWtpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9TdGFmZldpa2kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRWpELE9BQU8sSUFBSSxNQUFNLFdBQVcsQ0FBQztBQU03Qjs7Ozs7O0dBTUc7QUFFSCxJQUFNLFNBQVMsR0FBZixNQUFNLFNBQVUsU0FBUSxJQUFtQjtJQUN2Qzs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxLQUFLO1FBQ1AsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQy9DLENBQUM7SUFFRDs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNO1FBQ1IsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFFRDs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxPQUFPO1FBQ1QsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFFRDs7Ozs7Ozs7O09BU0E7SUFFTSxBQUFOLEtBQUssQ0FBQyxNQUFNLENBQUMsT0FBK0I7UUFDeEMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUN6RCxDQUFDO0NBQ0osQ0FBQTtBQWhEUztJQURSLFdBQVcsQ0FBQyxtQkFBbUIsQ0FBQzs7OztzQ0FHN0I7QUFhSztJQURSLFdBQVcsQ0FBQyxxQkFBcUIsQ0FBQzs7Ozt1Q0FHL0I7QUFhSztJQURSLFdBQVcsQ0FBQyxxQkFBcUIsQ0FBQzs7Ozt3Q0FHL0I7QUFhSztJQURSLFdBQVcsQ0FBQyxvQkFBb0IsQ0FBQzs7Ozt1Q0FHOUI7QUEzREMsU0FBUztJQURkLE1BQU0sQ0FBQyxXQUFXLENBQUM7R0FDZCxTQUFTLENBNERkO0FBRUQsZUFBZSxTQUFTLENBQUMifQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Base from "./Base.js";
|
|
2
|
+
import type { StaffWikiVersion as StaffWikiVersionData } from "../generated/types.js";
|
|
3
|
+
interface StaffWikiVersion extends StaffWikiVersionData {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @category Models
|
|
7
|
+
*
|
|
8
|
+
* @schema {@link https://e621.wiki/#model-StaffWikiVersion StaffWikiVersion}
|
|
9
|
+
*
|
|
10
|
+
* @see {@link https://e621.wiki/#model-StaffWikiVersion Documentation} for more details.
|
|
11
|
+
*/
|
|
12
|
+
declare class StaffWikiVersion extends Base<StaffWikiVersionData> {
|
|
13
|
+
}
|
|
14
|
+
export default StaffWikiVersion;
|
|
@@ -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-StaffWikiVersion StaffWikiVersion}
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://e621.wiki/#model-StaffWikiVersion Documentation} for more details.
|
|
10
|
+
*/
|
|
11
|
+
let StaffWikiVersion = class StaffWikiVersion extends Base {
|
|
12
|
+
};
|
|
13
|
+
StaffWikiVersion = __decorate([
|
|
14
|
+
Schema("StaffWikiVersion")
|
|
15
|
+
], StaffWikiVersion);
|
|
16
|
+
export default StaffWikiVersion;
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhZmZXaWtpVmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvU3RhZmZXaWtpVmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVwQyxPQUFPLElBQUksTUFBTSxXQUFXLENBQUM7QUFLN0I7Ozs7OztHQU1HO0FBRUgsSUFBTSxnQkFBZ0IsR0FBdEIsTUFBTSxnQkFBaUIsU0FBUSxJQUEwQjtDQUFHLENBQUE7QUFBdEQsZ0JBQWdCO0lBRHJCLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQztHQUNyQixnQkFBZ0IsQ0FBc0M7QUFFNUQsZUFBZSxnQkFBZ0IsQ0FBQyJ9
|
package/dist/lib/models/Tag.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import Base from "./Base.js";
|
|
|
2
2
|
import type TagCorrection from "./TagCorrection.js";
|
|
3
3
|
import type TagPreview from "./TagPreview.js";
|
|
4
4
|
import type { Tag as TagData } from "../generated/types.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { UpdateTagOptions } from "../modules/Tags.js";
|
|
6
6
|
interface Tag extends TagData {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -14,46 +14,42 @@ interface Tag extends TagData {
|
|
|
14
14
|
*/
|
|
15
15
|
declare class Tag extends Base<TagData> {
|
|
16
16
|
/**
|
|
17
|
-
* Delete Tag
|
|
18
17
|
*
|
|
19
18
|
* You must have the bd staff user flag.
|
|
20
19
|
*
|
|
21
20
|
* @requiresApiKeyAuth
|
|
22
21
|
*
|
|
23
|
-
* @operationId {@link https://e621.wiki/#operations-Tags-
|
|
22
|
+
* @operationId {@link https://e621.wiki/#operations-Tags-tags\#destroy tags#destroy}
|
|
24
23
|
*
|
|
25
|
-
* @see {@link https://e621.wiki/#operations-Tags-
|
|
24
|
+
* @see {@link https://e621.wiki/#operations-Tags-tags\#destroy Documentation} for more details.
|
|
26
25
|
*/
|
|
27
26
|
delete(): Promise<null>;
|
|
28
27
|
/**
|
|
29
|
-
* Edit Tag
|
|
30
28
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* @requiresApiKeyAuth
|
|
29
|
+
* @operationId {@link https://e621.wiki/#operations-Tags-tag_corrections\#show tag_corrections#show}
|
|
34
30
|
*
|
|
35
|
-
* @
|
|
36
|
-
*
|
|
37
|
-
* @see {@link https://e621.wiki/#operations-Tags-editTag Documentation} for more details.
|
|
31
|
+
* @see {@link https://e621.wiki/#operations-Tags-tag_corrections\#show Documentation} for more details.
|
|
38
32
|
*/
|
|
39
|
-
|
|
33
|
+
getCorrection(): Promise<TagCorrection>;
|
|
40
34
|
/**
|
|
41
|
-
* Get Tag Correction
|
|
42
35
|
*
|
|
43
|
-
* @
|
|
36
|
+
* @requiresApiKeyAuth
|
|
37
|
+
*
|
|
38
|
+
* @operationId {@link https://e621.wiki/#operations-Tags-tags\#preview tags#preview}
|
|
44
39
|
*
|
|
45
|
-
* @see {@link https://e621.wiki/#operations-Tags-
|
|
40
|
+
* @see {@link https://e621.wiki/#operations-Tags-tags\#preview Documentation} for more details.
|
|
46
41
|
*/
|
|
47
|
-
|
|
42
|
+
preview(): Promise<Array<TagPreview>>;
|
|
48
43
|
/**
|
|
49
|
-
*
|
|
44
|
+
*
|
|
45
|
+
* Must be Admin+ if the tag is locked or post count is >100.
|
|
50
46
|
*
|
|
51
47
|
* @requiresApiKeyAuth
|
|
52
48
|
*
|
|
53
|
-
* @operationId {@link https://e621.wiki/#operations-Tags-
|
|
49
|
+
* @operationId {@link https://e621.wiki/#operations-Tags-tags\#update tags#update}
|
|
54
50
|
*
|
|
55
|
-
* @see {@link https://e621.wiki/#operations-Tags-
|
|
51
|
+
* @see {@link https://e621.wiki/#operations-Tags-tags\#update Documentation} for more details.
|
|
56
52
|
*/
|
|
57
|
-
|
|
53
|
+
update(options: UpdateTagOptions): Promise<null>;
|
|
58
54
|
}
|
|
59
55
|
export default Tag;
|