e621 2.1.4 → 2.1.8
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/Features/Artists.md +1 -0
- package/Features/Notes.md +9 -8
- package/Features/Pools.md +1 -0
- package/Features/Posts.md +2 -0
- package/Features/Tags.md +9 -7
- package/Features/WikiPages.md +1 -0
- package/README.md +30 -6
- package/build/package.json +3 -3
- package/build/src/index.d.ts +18 -3
- package/build/src/index.js +73 -32
- package/build/src/modules/Artists.d.ts +8 -0
- package/build/src/modules/Artists.js +11 -1
- package/build/src/modules/Notes.d.ts +8 -0
- package/build/src/modules/Notes.js +11 -1
- package/build/src/modules/Pools.d.ts +8 -0
- package/build/src/modules/Pools.js +11 -1
- package/build/src/modules/Posts.d.ts +16 -0
- package/build/src/modules/Posts.js +22 -2
- package/build/src/modules/Tags.d.ts +16 -1
- package/build/src/modules/Tags.js +26 -1
- package/build/src/modules/WikiPages.d.ts +8 -0
- package/build/src/modules/WikiPages.js +11 -1
- package/build/src/structures/PostHistory.js +9 -9
- package/build/src/types/artists.d.ts +1 -0
- package/build/src/types/index.d.ts +12 -14
- package/build/src/types/notes.d.ts +1 -0
- package/build/src/types/pools.d.ts +1 -0
- package/build/src/types/posts.d.ts +24 -22
- package/build/src/types/tags.d.ts +9 -0
- package/build/src/types/wiki_pages.d.ts +1 -0
- package/build/src/util/Debug.js +11 -6
- package/package.json +3 -3
|
@@ -119,25 +119,6 @@ export interface PostVoteResult {
|
|
|
119
119
|
our_score: number;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export interface SearchPostHistoryOptions extends GenericSearchOptions {
|
|
123
|
-
user?: string;
|
|
124
|
-
userID?: number;
|
|
125
|
-
post?: number;
|
|
126
|
-
reason?: string;
|
|
127
|
-
description?: string;
|
|
128
|
-
ratingChangedTo?: Ratings;
|
|
129
|
-
finalRating?: Ratings;
|
|
130
|
-
parent?: number;
|
|
131
|
-
parentChangedTo?: number;
|
|
132
|
-
finalTags?: Array<string> | string;
|
|
133
|
-
addedTags?: Array<string> | string;
|
|
134
|
-
removedTags?: Array<string> | string;
|
|
135
|
-
finalLockedTags?: Array<string> | string;
|
|
136
|
-
addedLockedTags?: Array<string> | string;
|
|
137
|
-
removedLockedTags?: Array<string> | string;
|
|
138
|
-
source?: string;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
122
|
export interface PostHistoryProperties {
|
|
142
123
|
id: number;
|
|
143
124
|
post_id: number;
|
|
@@ -165,9 +146,24 @@ export interface PostHistoryProperties {
|
|
|
165
146
|
unchanged_tags: string;
|
|
166
147
|
}
|
|
167
148
|
|
|
168
|
-
export interface
|
|
169
|
-
|
|
170
|
-
|
|
149
|
+
export interface SearchPostHistoryOptions extends GenericSearchOptions {
|
|
150
|
+
id?: number;
|
|
151
|
+
user?: string;
|
|
152
|
+
userID?: number;
|
|
153
|
+
post?: number;
|
|
154
|
+
reason?: string;
|
|
155
|
+
description?: string;
|
|
156
|
+
ratingChangedTo?: Ratings;
|
|
157
|
+
finalRating?: Ratings;
|
|
158
|
+
parent?: number;
|
|
159
|
+
parentChangedTo?: number;
|
|
160
|
+
finalTags?: Array<string> | string;
|
|
161
|
+
addedTags?: Array<string> | string;
|
|
162
|
+
removedTags?: Array<string> | string;
|
|
163
|
+
finalLockedTags?: Array<string> | string;
|
|
164
|
+
addedLockedTags?: Array<string> | string;
|
|
165
|
+
removedLockedTags?: Array<string> | string;
|
|
166
|
+
source?: string;
|
|
171
167
|
}
|
|
172
168
|
|
|
173
169
|
export interface PostApprovalProperties {
|
|
@@ -177,3 +173,9 @@ export interface PostApprovalProperties {
|
|
|
177
173
|
created_at: string;
|
|
178
174
|
updated_at: string;
|
|
179
175
|
}
|
|
176
|
+
|
|
177
|
+
export interface SearchPostApprovalsOptions extends GenericSearchOptions {
|
|
178
|
+
id?: number;
|
|
179
|
+
approver?: string;
|
|
180
|
+
tags?: Array<string> | string;
|
|
181
|
+
}
|
|
@@ -41,7 +41,16 @@ export interface TagHistoryProperties {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface SearchTagHistoryOptions extends GenericSearchOptions {
|
|
44
|
+
id?: number;
|
|
44
45
|
tag?: string;
|
|
45
46
|
userName?: string;
|
|
46
47
|
userID?: number;
|
|
47
48
|
}
|
|
49
|
+
|
|
50
|
+
interface AutocompleteResult {
|
|
51
|
+
id: number;
|
|
52
|
+
name: string;
|
|
53
|
+
post_count: number;
|
|
54
|
+
category: number;
|
|
55
|
+
antecedent_name: string;
|
|
56
|
+
}
|
package/build/src/util/Debug.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const debug_1 = __importDefault(require("debug"));
|
|
7
3
|
function Debug(name, first, ...extra) {
|
|
8
|
-
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
5
|
+
let debug;
|
|
6
|
+
try {
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
8
|
+
debug = require("debug");
|
|
9
|
+
}
|
|
10
|
+
catch {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return debug(!name ? "e621:general" : `e621:${name}`)(first, ...extra);
|
|
9
14
|
}
|
|
10
15
|
exports.default = Debug;
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVidWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbC9EZWJ1Zy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLFNBQXdCLEtBQUssQ0FBQyxJQUFZLEVBQUUsS0FBYyxFQUFFLEdBQUcsS0FBcUI7SUFDbkYsc0VBQXNFO0lBQ3RFLElBQUksS0FBNEIsQ0FBQztJQUNqQyxJQUFJO1FBQ0gsbUVBQW1FO1FBQ25FLEtBQUssR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7S0FDekI7SUFBQyxNQUFNO1FBQ1AsT0FBTztLQUNQO0lBQ0QsT0FBTyxLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQyxDQUFDLEtBQUssRUFBRSxHQUFHLEtBQUssQ0FBQyxDQUFDO0FBQ3hFLENBQUM7QUFWRCx3QkFVQyJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "e621",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "A module for interfacing with e621.",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@uwu-codes/eslint-config": "^1.0.31",
|
|
35
35
|
"@uwu-codes/tsconfig": "^1.0.1",
|
|
36
36
|
"chai": "^4.3.4",
|
|
37
|
-
"mocha": "^9.1.
|
|
37
|
+
"mocha": "^9.1.4",
|
|
38
38
|
"ts-node": "^10.4.0",
|
|
39
39
|
"typescript": "^4.5.4"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
41
|
+
"optionalDependencies": {
|
|
42
42
|
"debug": "^4.3.3"
|
|
43
43
|
}
|
|
44
44
|
}
|