e621 2.0.0-dev.9 → 2.0.3
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/.node-version +1 -0
- package/README.md +66 -47
- package/build/package.json +1 -1
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +18 -2
- package/build/src/modules/Artists.d.ts +106 -0
- package/build/src/modules/Artists.js +240 -0
- package/build/src/modules/Pools.d.ts +4 -4
- package/build/src/modules/Pools.js +9 -7
- package/build/src/modules/PostSets.d.ts +2 -2
- package/build/src/modules/PostSets.js +4 -4
- package/build/src/modules/Posts.d.ts +38 -2
- package/build/src/modules/Posts.js +85 -3
- package/build/src/modules/UserFeedback.d.ts +1 -0
- package/build/src/modules/UserFeedback.js +3 -2
- package/build/src/modules/Users.d.ts +2 -1
- package/build/src/modules/Users.js +4 -3
- package/build/src/modules/WikiPages.d.ts +99 -0
- package/build/src/modules/WikiPages.js +210 -0
- package/build/src/structures/Artist.d.ts +36 -0
- package/build/src/structures/Artist.js +51 -0
- package/build/src/structures/ArtistHistory.d.ts +39 -0
- package/build/src/structures/ArtistHistory.js +50 -0
- package/build/src/structures/AuthenticatedUser.js +4 -4
- package/build/src/structures/Pool.js +10 -8
- package/build/src/structures/PoolHistory.d.ts +1 -8
- package/build/src/structures/PoolHistory.js +5 -11
- package/build/src/structures/Post.js +11 -9
- package/build/src/structures/PostHistory.d.ts +52 -0
- package/build/src/structures/PostHistory.js +93 -0
- package/build/src/structures/PostSet.js +9 -7
- package/build/src/structures/User.js +5 -5
- package/build/src/structures/WikiPage.d.ts +17 -0
- package/build/src/structures/WikiPage.js +27 -0
- package/build/src/structures/WikiPageHistory.d.ts +38 -0
- package/build/src/structures/WikiPageHistory.js +49 -0
- package/build/src/types/artists.d.ts +75 -0
- package/build/src/types/index.d.ts +3 -1
- package/build/src/types/pools.d.ts +2 -2
- package/build/src/types/post_sets.d.ts +2 -2
- package/build/src/types/posts.d.ts +46 -1
- package/build/src/types/user_feedback.d.ts +0 -0
- package/build/src/types/users.d.ts +2 -2
- package/build/src/types/wiki_pages.d.ts +65 -0
- package/package.json +1 -1
|
@@ -57,7 +57,6 @@ export interface PostProperties {
|
|
|
57
57
|
|
|
58
58
|
export interface SearchPostsOptions extends GenericSearchOptions {
|
|
59
59
|
tags?: string | Array<string>;
|
|
60
|
-
page?: number | `${number}` | `${"a" | "b"}${number}`;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
export type CreatePostOptions = {
|
|
@@ -118,3 +117,49 @@ export interface PostVoteResult {
|
|
|
118
117
|
down: number;
|
|
119
118
|
our_score: number;
|
|
120
119
|
}
|
|
120
|
+
|
|
121
|
+
export interface SearchPostHistoryOptions extends GenericSearchOptions {
|
|
122
|
+
user?: string;
|
|
123
|
+
userID?: number;
|
|
124
|
+
post?: number;
|
|
125
|
+
reason?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
ratingChangedTo?: Ratings;
|
|
128
|
+
finalRating?: Ratings;
|
|
129
|
+
parent?: number;
|
|
130
|
+
parentChangedTo?: number;
|
|
131
|
+
finalTags?: Array<string> |string;
|
|
132
|
+
addedTags?: Array<string> | string;
|
|
133
|
+
removedTags?: Array<string> | string;
|
|
134
|
+
finalLockedTags?: Array<string> | string;
|
|
135
|
+
addedLockedTags?: Array<string> | string;
|
|
136
|
+
removedLockedTags?: Array<string> | string;
|
|
137
|
+
source?: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface PostHistoryProperties {
|
|
141
|
+
id: number;
|
|
142
|
+
post_id: number;
|
|
143
|
+
tags: string;
|
|
144
|
+
updater_id: number;
|
|
145
|
+
updater_name: string;
|
|
146
|
+
updated_at: string;
|
|
147
|
+
rating: Ratings;
|
|
148
|
+
parent_id: number | null;
|
|
149
|
+
source: string;
|
|
150
|
+
description: string;
|
|
151
|
+
reason: string;
|
|
152
|
+
locked_tags: string | null;
|
|
153
|
+
added_tags: Array<string>;
|
|
154
|
+
removed_tags: Array<string>;
|
|
155
|
+
added_locked_tags: Array<string>;
|
|
156
|
+
removed_locked_tags: Array<string>;
|
|
157
|
+
rating_changed: boolean;
|
|
158
|
+
parent_changed: boolean;
|
|
159
|
+
source_changed: boolean;
|
|
160
|
+
description_changed: boolean;
|
|
161
|
+
version: number;
|
|
162
|
+
obsolete_added_tags: string;
|
|
163
|
+
obsolete_removed_tags: string;
|
|
164
|
+
unchanged_tags: string;
|
|
165
|
+
}
|
|
File without changes
|
|
@@ -79,7 +79,7 @@ export type UploadLimit = Omit<AuthenticatedUserProperties,
|
|
|
79
79
|
"neutral_feedback_count" | "negative_feedback_count" | "upload_limit"
|
|
80
80
|
>;
|
|
81
81
|
|
|
82
|
-
export type
|
|
82
|
+
export type SearchUsersOrder = "date" | "name" | "post_upload_count" | "note_count" | "post_update_count";
|
|
83
83
|
export interface SearchUsersOptions extends GenericSearchOptions {
|
|
84
84
|
/** use asterisks for wildcards */
|
|
85
85
|
name?: string;
|
|
@@ -90,7 +90,7 @@ export interface SearchUsersOptions extends GenericSearchOptions {
|
|
|
90
90
|
maxLevel?: number;
|
|
91
91
|
unrestrictedUploads?: boolean;
|
|
92
92
|
approver?: boolean;
|
|
93
|
-
order?:
|
|
93
|
+
order?: SearchUsersOrder;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export type Timezones =
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { GenericSearchOptions } from ".";
|
|
2
|
+
|
|
3
|
+
export interface WikiPageProperties {
|
|
4
|
+
id: number;
|
|
5
|
+
creator_id: number;
|
|
6
|
+
creator_name: string;
|
|
7
|
+
category_name: number;
|
|
8
|
+
body: string;
|
|
9
|
+
is_locked: boolean;
|
|
10
|
+
created_at: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
updater_id: number;
|
|
13
|
+
other_names: Array<string>;
|
|
14
|
+
is_deleted: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type SearchWikiPagesOrder = "title" | "time" | "post_count";
|
|
18
|
+
export interface SearchWikiPagesOptions extends GenericSearchOptions {
|
|
19
|
+
title?: string;
|
|
20
|
+
creator?: string;
|
|
21
|
+
body?: string;
|
|
22
|
+
otherNames?: string;
|
|
23
|
+
hasOtherNames?: boolean;
|
|
24
|
+
hideDeleted?: boolean;
|
|
25
|
+
order?: SearchWikiPagesOrder;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface CreateWikiPageOptions {
|
|
29
|
+
title: string;
|
|
30
|
+
body: string;
|
|
31
|
+
/** requires janitor */
|
|
32
|
+
locked?: boolean;
|
|
33
|
+
/** requires janitor */
|
|
34
|
+
forceOverwrite?: boolean;
|
|
35
|
+
reason?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ModifyWikiPageOptions {
|
|
39
|
+
/** requires janitor */
|
|
40
|
+
title?: string;
|
|
41
|
+
body?: string;
|
|
42
|
+
/** requires janitor */
|
|
43
|
+
locked?: boolean;
|
|
44
|
+
/** requires janitor */
|
|
45
|
+
forceOverwrite?: boolean;
|
|
46
|
+
reason?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface WikiPageHistoryProperties {
|
|
50
|
+
id: number;
|
|
51
|
+
wiki_page_id: number;
|
|
52
|
+
updater_id: number;
|
|
53
|
+
title: string;
|
|
54
|
+
body: string;
|
|
55
|
+
is_locked: boolean;
|
|
56
|
+
created_at: string;
|
|
57
|
+
updated_at: string;
|
|
58
|
+
other_names: Array<string>;
|
|
59
|
+
is_deleted: boolean;
|
|
60
|
+
reason: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface SearchWikiPageHistoryOptions extends GenericSearchOptions {
|
|
64
|
+
wikiPage?: number;
|
|
65
|
+
}
|