@ifunny/ifunny-api-types 0.7.14 → 0.8.1
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/CHANGELOG.md +87 -430
- package/dist/rest/counters.js +3 -0
- package/dist/rest/counters.js.map +1 -0
- package/dist/{payloads/util.js → rest/feeds.js} +1 -1
- package/dist/rest/feeds.js.map +1 -0
- package/package.json +9 -8
- package/types/rest/counters.d.ts +10 -0
- package/types/rest/counters.d.ts.map +1 -0
- package/types/rest/feeds.d.ts +17 -0
- package/types/rest/feeds.d.ts.map +1 -0
- package/dist/index.d.ts +0 -376
- package/dist/index.d.ts.map +0 -1
- package/dist/payloads/post.js +0 -157
- package/dist/payloads/post.js.map +0 -1
- package/dist/payloads/util.js.map +0 -1
- package/dist/rest/post.js +0 -63
- package/dist/rest/post.js.map +0 -1
- package/dist/utils/errors.js +0 -48
- package/dist/utils/errors.js.map +0 -1
- package/types/payloads/post.d.ts +0 -542
- package/types/payloads/post.d.ts.map +0 -1
- package/types/payloads/util.d.ts +0 -18
- package/types/payloads/util.d.ts.map +0 -1
- package/types/rest/post.d.ts +0 -58
- package/types/rest/post.d.ts.map +0 -1
- package/types/utils/errors.d.ts +0 -89
- package/types/utils/errors.d.ts.map +0 -1
package/types/payloads/post.d.ts
DELETED
|
@@ -1,542 +0,0 @@
|
|
|
1
|
-
import { APIUser, APIUserNums } from "./user";
|
|
2
|
-
import { HexCode, Size, Timestamp } from "../utils/util";
|
|
3
|
-
/**
|
|
4
|
-
* Post visibility types
|
|
5
|
-
*/
|
|
6
|
-
export declare enum POST_VISIBILITIES {
|
|
7
|
-
/**
|
|
8
|
-
* Anyone can see the post
|
|
9
|
-
*/
|
|
10
|
-
PUBLIC = "public",
|
|
11
|
-
/**
|
|
12
|
-
* Post is hidden from collective and explore
|
|
13
|
-
*/
|
|
14
|
-
SUBSCRIBERS = "subscribers",
|
|
15
|
-
/**
|
|
16
|
-
* Only the creator can see the post
|
|
17
|
-
*/
|
|
18
|
-
CLOSED = "closed"
|
|
19
|
-
}
|
|
20
|
-
export declare type APIContentVisibility = `${POST_VISIBILITIES}`;
|
|
21
|
-
/**
|
|
22
|
-
* Post shot status types
|
|
23
|
-
*/
|
|
24
|
-
export declare enum SHOT_STATUSES {
|
|
25
|
-
/**
|
|
26
|
-
* The post was approved for upload
|
|
27
|
-
*/
|
|
28
|
-
APPROVED = "approved",
|
|
29
|
-
/**
|
|
30
|
-
* The post was uploaded but immediately deleted by the auto moderation system
|
|
31
|
-
*/
|
|
32
|
-
HARD_SHOT = "hardShot",
|
|
33
|
-
/**
|
|
34
|
-
* TODO: Find a post with shot status and document difference.
|
|
35
|
-
*/
|
|
36
|
-
SHOT = "shot"
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Possible shot statuses
|
|
40
|
-
*/
|
|
41
|
-
export declare type APIContentShotStatus = `${SHOT_STATUSES}`;
|
|
42
|
-
/**
|
|
43
|
-
* All currently known post types
|
|
44
|
-
*/
|
|
45
|
-
export declare enum POST_TYPES {
|
|
46
|
-
/**
|
|
47
|
-
* Most common video post type\
|
|
48
|
-
* Data key: `video_clip`
|
|
49
|
-
*/
|
|
50
|
-
VIDEO_CLIP = "video_clip",
|
|
51
|
-
/**
|
|
52
|
-
* A video uploaded from a url like YouTube\
|
|
53
|
-
* Data key: `video`
|
|
54
|
-
*/
|
|
55
|
-
VIDEO = "video",
|
|
56
|
-
/**
|
|
57
|
-
* A video uploaded from vine\
|
|
58
|
-
* Data key: `vine`
|
|
59
|
-
*/
|
|
60
|
-
VINE = "vine",
|
|
61
|
-
/**
|
|
62
|
-
* Video meme from {@link https://coub.com Coub}\
|
|
63
|
-
* Data key: `coub`
|
|
64
|
-
*/
|
|
65
|
-
COUB = "coub",
|
|
66
|
-
/**
|
|
67
|
-
* Gif uploaded to ifunny\
|
|
68
|
-
* Data key: `gif`
|
|
69
|
-
*/
|
|
70
|
-
GIF = "gif",
|
|
71
|
-
/**
|
|
72
|
-
* Gif with a caption\
|
|
73
|
-
* Data key: `gif`
|
|
74
|
-
*/
|
|
75
|
-
GIF_CAPTION = "gif_caption",
|
|
76
|
-
/**
|
|
77
|
-
* An image post with a custom caption\
|
|
78
|
-
* Data key: `caption`
|
|
79
|
-
*/
|
|
80
|
-
CAPTION = "caption",
|
|
81
|
-
/**
|
|
82
|
-
* Image upload\
|
|
83
|
-
* Data key: `pic`
|
|
84
|
-
*/
|
|
85
|
-
PIC = "pic",
|
|
86
|
-
/**
|
|
87
|
-
* Image uploaded from iFunny's old "Meme" upload system.\
|
|
88
|
-
* This is no longer in iFunny
|
|
89
|
-
*/
|
|
90
|
-
MEME = "mem",
|
|
91
|
-
/**
|
|
92
|
-
* An image uploaded from ifunny's comic creator
|
|
93
|
-
*/
|
|
94
|
-
COMICS = "comics",
|
|
95
|
-
/**
|
|
96
|
-
* An interactive post from iFunny
|
|
97
|
-
* @deprecated These posts have been removed from the database and will not be available
|
|
98
|
-
*/
|
|
99
|
-
APP = "app",
|
|
100
|
-
/**
|
|
101
|
-
* Unknown post type\
|
|
102
|
-
* TODO: Document what POST_TYPES.OLD is
|
|
103
|
-
*/
|
|
104
|
-
OLD = "old",
|
|
105
|
-
/**
|
|
106
|
-
* Unknown post type\
|
|
107
|
-
* TODO: Document what POST_TYPES.DEM is
|
|
108
|
-
*/
|
|
109
|
-
DEM = "dem"
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Possible post types
|
|
113
|
-
*/
|
|
114
|
-
export declare type APIContentType = `${Exclude<POST_TYPES, POST_TYPES.APP>}`;
|
|
115
|
-
export declare enum POST_STATES {
|
|
116
|
-
/**
|
|
117
|
-
* The post is published
|
|
118
|
-
*/
|
|
119
|
-
PUBLISHED = "published",
|
|
120
|
-
/**
|
|
121
|
-
* A post that was scheduled to be published later
|
|
122
|
-
*/
|
|
123
|
-
DELAYED = "delayed"
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Possible post states
|
|
127
|
-
*/
|
|
128
|
-
export declare type APIContentState = `${POST_STATES}`;
|
|
129
|
-
/**
|
|
130
|
-
* Author of a Post\
|
|
131
|
-
* Only includes info also in the user object
|
|
132
|
-
*/
|
|
133
|
-
export declare type APIContentCreatorBase = Pick<APIUser, "id" | "nick" | "photo" | "is_verified" | "is_banned" | "is_deleted" | "is_in_subscriptions" | "is_in_subscribers" | "is_blocked" | "nick_color" | "original_nick">;
|
|
134
|
-
/**
|
|
135
|
-
* The creator object for a post
|
|
136
|
-
*/
|
|
137
|
-
export interface APIContentCreator extends APIContentCreatorBase {
|
|
138
|
-
/**
|
|
139
|
-
* Only includes subscription and subscriber count
|
|
140
|
-
*/
|
|
141
|
-
num: APIContentCreatorNum;
|
|
142
|
-
/**
|
|
143
|
-
* Total amount of posts the creator has. For some reason this is not in the nums object for creators
|
|
144
|
-
*/
|
|
145
|
-
total_posts: number;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Alias for {@link APIContentCreator}
|
|
149
|
-
*/
|
|
150
|
-
export declare type APIContentAuthor = APIContentCreator;
|
|
151
|
-
/**
|
|
152
|
-
* Num object for Post Creator.\
|
|
153
|
-
* total_posts is in the creator object for some reason
|
|
154
|
-
*/
|
|
155
|
-
export declare type APIContentCreatorNum = Pick<APIUserNums, "subscribers" | "subscriptions">;
|
|
156
|
-
/**
|
|
157
|
-
* Numbers attatched to a post
|
|
158
|
-
*/
|
|
159
|
-
export interface APIContentNums {
|
|
160
|
-
/**
|
|
161
|
-
* The amount of smiles the post has
|
|
162
|
-
*/
|
|
163
|
-
smiles: number;
|
|
164
|
-
/**
|
|
165
|
-
* The amount of unsmiles the post has
|
|
166
|
-
*/
|
|
167
|
-
unsmiles: number;
|
|
168
|
-
/**
|
|
169
|
-
* How many smiles came from users visiting the creators profile
|
|
170
|
-
*/
|
|
171
|
-
guest_smiles: number;
|
|
172
|
-
/**
|
|
173
|
-
* How many comments are on the post
|
|
174
|
-
*/
|
|
175
|
-
comments: number;
|
|
176
|
-
/**
|
|
177
|
-
* How many views the post has
|
|
178
|
-
*/
|
|
179
|
-
views: number;
|
|
180
|
-
/**
|
|
181
|
-
* How many republishes the post has
|
|
182
|
-
*/
|
|
183
|
-
republished: number;
|
|
184
|
-
/**
|
|
185
|
-
* How many shares the post has
|
|
186
|
-
*/
|
|
187
|
-
shares: number;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Copyright data for a post.
|
|
191
|
-
*/
|
|
192
|
-
export interface APIContentCopyright {
|
|
193
|
-
/**
|
|
194
|
-
* Note about the copyright
|
|
195
|
-
*/
|
|
196
|
-
note?: string;
|
|
197
|
-
/**
|
|
198
|
-
* URL of original source
|
|
199
|
-
*/
|
|
200
|
-
url?: string;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* The Thumbnail object returned from the API\
|
|
204
|
-
* @example
|
|
205
|
-
* ```ts
|
|
206
|
-
* APIContentThumbnail.url = `https://imageproxy.ifunny.co/${params}/images/${content_id}.jpg`
|
|
207
|
-
* APIContentThumbnail.webp_url = `https://imageproxy.ifunny.co/${params}/images/${content_id}.webp
|
|
208
|
-
* ```
|
|
209
|
-
* Content URL params:\
|
|
210
|
-
* `crop:x-{number}` crops `number` pixels from bottom of the image\
|
|
211
|
-
* `crop:x+{number}` leaves `number` pixels at the top, and crops the rest\
|
|
212
|
-
* `crop:square` makes the image a square aspect ratio\
|
|
213
|
-
* `resize:{number}` changes the size of the image\
|
|
214
|
-
* `quality:{number}` changes the image quality
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* ? Bottom iFunny watermarks are 20 pixels tall\
|
|
218
|
-
* ? `crop:x-20` crops the watermark from an image
|
|
219
|
-
*/
|
|
220
|
-
export interface APIContentThumbnail {
|
|
221
|
-
/**
|
|
222
|
-
* crop:x-20,crop:square,resize:65x,quality:90x75\
|
|
223
|
-
* `jpg`
|
|
224
|
-
*/
|
|
225
|
-
small_url: string;
|
|
226
|
-
/**
|
|
227
|
-
* crop:x-20,crop:square,resize:160x,quality:90x75\
|
|
228
|
-
* `jpg`
|
|
229
|
-
*/
|
|
230
|
-
url: string;
|
|
231
|
-
/**
|
|
232
|
-
* crop:x-20,crop:square,resize:320x,quality:90x75\
|
|
233
|
-
* `jpg`
|
|
234
|
-
*/
|
|
235
|
-
large_url: string;
|
|
236
|
-
/**
|
|
237
|
-
* crop:x-20,resize:640x,quality:90x75\
|
|
238
|
-
* `jpg`
|
|
239
|
-
*/
|
|
240
|
-
x640_url: string;
|
|
241
|
-
/**
|
|
242
|
-
* crop:x-20,resize:640x,quality:90x75
|
|
243
|
-
*/
|
|
244
|
-
webp_url: string;
|
|
245
|
-
/**
|
|
246
|
-
* crop:x-20,crop:square,resize:320x,quality:90
|
|
247
|
-
*/
|
|
248
|
-
large_webp_url: string;
|
|
249
|
-
/**
|
|
250
|
-
* crop:x-20,resize:640x,quality:90
|
|
251
|
-
*/
|
|
252
|
-
x640_webp_url: string;
|
|
253
|
-
/**
|
|
254
|
-
* crop:x-20,resize:320x,crop:x800,quality:90x75
|
|
255
|
-
*/
|
|
256
|
-
proportional_url: string;
|
|
257
|
-
/**
|
|
258
|
-
* crop:x-20,resize:320x,crop:x800,quality:90
|
|
259
|
-
*/
|
|
260
|
-
proportional_webp_url: string;
|
|
261
|
-
/**
|
|
262
|
-
* The proportional size of the image
|
|
263
|
-
*/
|
|
264
|
-
proportional_size: Size;
|
|
265
|
-
}
|
|
266
|
-
interface WebP {
|
|
267
|
-
/**
|
|
268
|
-
* webp format url of the post
|
|
269
|
-
*/
|
|
270
|
-
webp_url: string;
|
|
271
|
-
}
|
|
272
|
-
export declare enum VIDEO_SOURCE_TYPES {
|
|
273
|
-
USER = "user",
|
|
274
|
-
INSTAGRAM = "instagram"
|
|
275
|
-
}
|
|
276
|
-
export declare type APIVideoSourceType = `${VIDEO_SOURCE_TYPES}`;
|
|
277
|
-
export interface APICoubContentData {
|
|
278
|
-
/**
|
|
279
|
-
* WebP thumbnail of the Coub
|
|
280
|
-
*/
|
|
281
|
-
screen_url: string;
|
|
282
|
-
bytes: number;
|
|
283
|
-
/**
|
|
284
|
-
* Original Coub source
|
|
285
|
-
*/
|
|
286
|
-
traceback_url: string;
|
|
287
|
-
/**
|
|
288
|
-
* Length in seconds
|
|
289
|
-
*/
|
|
290
|
-
duration: number;
|
|
291
|
-
}
|
|
292
|
-
export interface APIVideoContentData {
|
|
293
|
-
/**
|
|
294
|
-
* Url of original video
|
|
295
|
-
*/
|
|
296
|
-
url: string;
|
|
297
|
-
/**
|
|
298
|
-
* Length in seconds
|
|
299
|
-
*/
|
|
300
|
-
duration: number;
|
|
301
|
-
/**
|
|
302
|
-
* Length in seconds
|
|
303
|
-
*/
|
|
304
|
-
length: number;
|
|
305
|
-
}
|
|
306
|
-
export interface APIVideoClipContentData {
|
|
307
|
-
/**
|
|
308
|
-
* JPEG image of the video clip
|
|
309
|
-
*/
|
|
310
|
-
screen_url: string;
|
|
311
|
-
bytes: number;
|
|
312
|
-
source_type: APIVideoSourceType;
|
|
313
|
-
/**
|
|
314
|
-
* In seconds
|
|
315
|
-
*/
|
|
316
|
-
duration: Timestamp;
|
|
317
|
-
}
|
|
318
|
-
export interface APIVineContentData {
|
|
319
|
-
screen_url: string;
|
|
320
|
-
bytes: number;
|
|
321
|
-
}
|
|
322
|
-
export interface APICaptionContentData {
|
|
323
|
-
/**
|
|
324
|
-
* The caption of the post
|
|
325
|
-
*/
|
|
326
|
-
caption_text: string;
|
|
327
|
-
}
|
|
328
|
-
export declare type APIComicsContentData = WebP;
|
|
329
|
-
export declare type APIMemeContentData = WebP;
|
|
330
|
-
export declare type APIPicContentData = WebP;
|
|
331
|
-
export interface APIGifContentData {
|
|
332
|
-
/**
|
|
333
|
-
* JPEG url of the post
|
|
334
|
-
*/
|
|
335
|
-
screen_url: string;
|
|
336
|
-
/**
|
|
337
|
-
* How many bytes the post is
|
|
338
|
-
*/
|
|
339
|
-
bytes: number;
|
|
340
|
-
/**
|
|
341
|
-
* Url of the post in MP4 format
|
|
342
|
-
*/
|
|
343
|
-
mp4_url: string;
|
|
344
|
-
/**
|
|
345
|
-
* How many bytes the mp4 version is
|
|
346
|
-
*/
|
|
347
|
-
mp4_bytes: number;
|
|
348
|
-
}
|
|
349
|
-
export declare type APIGifCaptionContentData = APIGifContentData & APICaptionContentData;
|
|
350
|
-
export interface UnknownContentData extends JSON {
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* JSON data of an iFunny Post
|
|
354
|
-
*/
|
|
355
|
-
export interface APIContentBase {
|
|
356
|
-
/**
|
|
357
|
-
* Unique id of the post.\
|
|
358
|
-
* Typically 9 characters long
|
|
359
|
-
*/
|
|
360
|
-
id: string;
|
|
361
|
-
/**
|
|
362
|
-
* The type of the post.
|
|
363
|
-
*/
|
|
364
|
-
type: APIContentType;
|
|
365
|
-
/**
|
|
366
|
-
* Content url of the post.
|
|
367
|
-
*/
|
|
368
|
-
url: string;
|
|
369
|
-
/**
|
|
370
|
-
* If the post uses the old watermark or the new one
|
|
371
|
-
*/
|
|
372
|
-
old_watermark: boolean;
|
|
373
|
-
/**
|
|
374
|
-
* In-app share url.
|
|
375
|
-
* @example
|
|
376
|
-
* `https://ifunny.co/picture/${post.id}`
|
|
377
|
-
* `https://ifunny.co/video/${post.id}`
|
|
378
|
-
*/
|
|
379
|
-
link: string;
|
|
380
|
-
/**
|
|
381
|
-
* The title of the post
|
|
382
|
-
*/
|
|
383
|
-
title: string;
|
|
384
|
-
/**
|
|
385
|
-
* Fixed title of the post
|
|
386
|
-
* @example
|
|
387
|
-
* `Gif memes ${post.id} by ${post.creator.nick}`
|
|
388
|
-
* `Picture memes ${post.id} by ${post.creator.nick}: ${post.num.comments} comments`
|
|
389
|
-
*/
|
|
390
|
-
fixed_title: string;
|
|
391
|
-
/**
|
|
392
|
-
* Array of tags on the post
|
|
393
|
-
*/
|
|
394
|
-
tags: string[];
|
|
395
|
-
/**
|
|
396
|
-
* The publish state of the post
|
|
397
|
-
*/
|
|
398
|
-
state: APIContentState;
|
|
399
|
-
/**
|
|
400
|
-
* {@link Timestamp} of when the post was created
|
|
401
|
-
*/
|
|
402
|
-
date_create: Timestamp;
|
|
403
|
-
/**
|
|
404
|
-
* {@link Timestamp} of when the Post was published
|
|
405
|
-
*/
|
|
406
|
-
publish_at: Timestamp;
|
|
407
|
-
/**
|
|
408
|
-
* Is the post smiled by the Client
|
|
409
|
-
*/
|
|
410
|
-
is_smiled: boolean;
|
|
411
|
-
/**
|
|
412
|
-
* Is the post unsmiled by the Client
|
|
413
|
-
*/
|
|
414
|
-
is_unsmiled: boolean;
|
|
415
|
-
/**
|
|
416
|
-
* Is the post removed by iFunny
|
|
417
|
-
*/
|
|
418
|
-
is_abused: boolean;
|
|
419
|
-
/**
|
|
420
|
-
* Is the post featured by iFunny
|
|
421
|
-
*/
|
|
422
|
-
is_featured: boolean;
|
|
423
|
-
/**
|
|
424
|
-
* Is the post republished by the Client
|
|
425
|
-
*/
|
|
426
|
-
is_republished: boolean;
|
|
427
|
-
/**
|
|
428
|
-
* Is the post pinned by the creator
|
|
429
|
-
*/
|
|
430
|
-
is_pinned: boolean;
|
|
431
|
-
/**
|
|
432
|
-
* Background color of the post.
|
|
433
|
-
*/
|
|
434
|
-
bg_color: HexCode;
|
|
435
|
-
/**
|
|
436
|
-
* The {@link APIContentThumbnail thumbnail} of the post
|
|
437
|
-
*/
|
|
438
|
-
thumb: APIContentThumbnail;
|
|
439
|
-
/**
|
|
440
|
-
* A post's {@link APIContentCopyright copyright} data
|
|
441
|
-
*/
|
|
442
|
-
copyright: APIContentCopyright;
|
|
443
|
-
/**
|
|
444
|
-
* The {@link APIContentNums numbers} on the post.
|
|
445
|
-
*/
|
|
446
|
-
num: APIContentNums;
|
|
447
|
-
/**
|
|
448
|
-
* The author of the post
|
|
449
|
-
*/
|
|
450
|
-
creator?: APIContentCreator;
|
|
451
|
-
/**
|
|
452
|
-
* Size of the post
|
|
453
|
-
*/
|
|
454
|
-
size: Size;
|
|
455
|
-
/**
|
|
456
|
-
* Url of the original source
|
|
457
|
-
*/
|
|
458
|
-
traceback_url?: string;
|
|
459
|
-
/**
|
|
460
|
-
* The post's visibility
|
|
461
|
-
*/
|
|
462
|
-
visibility: APIContentVisibility;
|
|
463
|
-
/**
|
|
464
|
-
* TODO: shot_status description
|
|
465
|
-
*/
|
|
466
|
-
shot_status: APIContentShotStatus;
|
|
467
|
-
/**
|
|
468
|
-
* TODO: fast_start description
|
|
469
|
-
*/
|
|
470
|
-
fast_start: boolean;
|
|
471
|
-
/**
|
|
472
|
-
* The risk level of the post
|
|
473
|
-
*/
|
|
474
|
-
risk: number;
|
|
475
|
-
/**
|
|
476
|
-
* @example
|
|
477
|
-
* `https://ifunny.co/picture/${post.id}`
|
|
478
|
-
*/
|
|
479
|
-
canonical_url: string;
|
|
480
|
-
/**
|
|
481
|
-
* Text generated from iFunny's OCR
|
|
482
|
-
*/
|
|
483
|
-
ocr_text?: string;
|
|
484
|
-
/**
|
|
485
|
-
* Can the post be boosted still
|
|
486
|
-
*/
|
|
487
|
-
can_be_boosted: boolean;
|
|
488
|
-
/**
|
|
489
|
-
* The source of the post if it's a republish
|
|
490
|
-
*/
|
|
491
|
-
source?: APIContentSource;
|
|
492
|
-
}
|
|
493
|
-
export interface APICoubContent extends APIContentBase {
|
|
494
|
-
type: POST_TYPES.COUB;
|
|
495
|
-
coub: APICoubContentData;
|
|
496
|
-
}
|
|
497
|
-
export interface APIVideoClipContent extends APIContentBase {
|
|
498
|
-
type: POST_TYPES.VIDEO_CLIP;
|
|
499
|
-
video_clip: APIVideoClipContentData;
|
|
500
|
-
}
|
|
501
|
-
export interface APIVideoContent extends APIContentBase {
|
|
502
|
-
type: POST_TYPES.VIDEO;
|
|
503
|
-
video: APIVideoContentData;
|
|
504
|
-
}
|
|
505
|
-
export interface APIVineContent extends APIContentBase {
|
|
506
|
-
type: POST_TYPES.VINE;
|
|
507
|
-
vine: APIVineContentData;
|
|
508
|
-
}
|
|
509
|
-
export interface APICaptionContent extends APIContentBase {
|
|
510
|
-
type: POST_TYPES.CAPTION;
|
|
511
|
-
caption: APICaptionContentData;
|
|
512
|
-
}
|
|
513
|
-
export interface APIComicsContent extends APIContentBase {
|
|
514
|
-
type: POST_TYPES.COMICS;
|
|
515
|
-
comics: APIComicsContentData;
|
|
516
|
-
}
|
|
517
|
-
export interface APIMemeContent extends APIContentBase {
|
|
518
|
-
type: POST_TYPES.MEME;
|
|
519
|
-
meme: APIMemeContentData;
|
|
520
|
-
}
|
|
521
|
-
export interface APIPicContent extends APIContentBase {
|
|
522
|
-
type: POST_TYPES.PIC;
|
|
523
|
-
pic: APIPicContentData;
|
|
524
|
-
}
|
|
525
|
-
export interface APIGifContent extends APIContentBase {
|
|
526
|
-
type: POST_TYPES.GIF;
|
|
527
|
-
gif: APIGifContentData;
|
|
528
|
-
}
|
|
529
|
-
export interface APIGifCaptionContent extends APIContentBase {
|
|
530
|
-
type: POST_TYPES.GIF_CAPTION;
|
|
531
|
-
gif: APIGifCaptionContentData;
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* The original source of the content
|
|
535
|
-
*/
|
|
536
|
-
export declare type APIContentSource = Partial<APIContent> & Pick<APIContent, "id" | "date_create">;
|
|
537
|
-
export declare type APIContent = APIContentVideo | APIContentPic | APIContentGif;
|
|
538
|
-
export declare type APIContentVideo = APICoubContent | APIVideoClipContent | APIVideoContent | APIVineContent;
|
|
539
|
-
export declare type APIContentPic = APICaptionContent | APIPicContent | APIComicsContent | APIMemeContent;
|
|
540
|
-
export declare type APIContentGif = APIGifContent | APIGifCaptionContent;
|
|
541
|
-
export {};
|
|
542
|
-
//# sourceMappingURL=post.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/payloads/post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAA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CACzB;AACD,MAAM,WAAW,aAAc,SAAQ,cAAc;IACpD,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC;IACrB,GAAG,EAAE,iBAAiB,CAAC;CACvB;AAGD,MAAM,WAAW,aAAc,SAAQ,cAAc;IACpD,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC;IACrB,GAAG,EAAE,iBAAiB,CAAC;CACvB;AACD,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC3D,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7B,GAAG,EAAE,wBAAwB,CAAC;CAC9B;AAED;;GAEG;AACH,oBAAY,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,GACjD,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,aAAa,CAAC,CAAC;AAGxC,oBAAY,UAAU,GAAG,eAAe,GAAG,aAAa,GAAG,aAAa,CAAC;AAEzE,oBAAY,eAAe,GACxB,cAAc,GACd,mBAAmB,GACnB,eAAe,GACf,cAAc,CAAC;AAElB,oBAAY,aAAa,GACtB,iBAAiB,GACjB,aAAa,GACb,gBAAgB,GAChB,cAAc,CAAC;AAElB,oBAAY,aAAa,GAAG,aAAa,GAAG,oBAAoB,CAAC"}
|
package/types/payloads/util.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pixel size of an image or video
|
|
3
|
-
*/
|
|
4
|
-
export interface Size {
|
|
5
|
-
/**
|
|
6
|
-
* Width (in pixels)
|
|
7
|
-
*/
|
|
8
|
-
w: number;
|
|
9
|
-
/**
|
|
10
|
-
* Height (in pixels)
|
|
11
|
-
*/
|
|
12
|
-
h: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* A color hex code
|
|
16
|
-
*/
|
|
17
|
-
export declare type HexCode = string;
|
|
18
|
-
//# sourceMappingURL=util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/payloads/util.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACpB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;CACV;AAED;;GAEG;AACH,oBAAY,OAAO,GAAG,MAAM,CAAC"}
|
package/types/rest/post.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Possible report reasons
|
|
3
|
-
*/
|
|
4
|
-
export declare enum REPORT_TYPE {
|
|
5
|
-
/**
|
|
6
|
-
* Hate Speech
|
|
7
|
-
*/
|
|
8
|
-
HATE = "hate",
|
|
9
|
-
/**
|
|
10
|
-
* Nudity
|
|
11
|
-
*/
|
|
12
|
-
NUDE = "nude",
|
|
13
|
-
/**
|
|
14
|
-
* Bot spam / spamming
|
|
15
|
-
*/
|
|
16
|
-
SPAM = "spam",
|
|
17
|
-
/**
|
|
18
|
-
* Scam or Fraud
|
|
19
|
-
*/
|
|
20
|
-
FRAUD = "fraud",
|
|
21
|
-
/**
|
|
22
|
-
* Targeted Abuse
|
|
23
|
-
*/
|
|
24
|
-
TARGETED_ABUSE = "target",
|
|
25
|
-
/**
|
|
26
|
-
* Threats of Harm
|
|
27
|
-
*/
|
|
28
|
-
THREATS = "harm",
|
|
29
|
-
/**
|
|
30
|
-
* Violence or Gore
|
|
31
|
-
*/
|
|
32
|
-
VIOLENCE = "violence",
|
|
33
|
-
/**
|
|
34
|
-
* Harassment
|
|
35
|
-
*/
|
|
36
|
-
HARASSMENT = "harassment",
|
|
37
|
-
/**
|
|
38
|
-
* Suicide or Self-injury
|
|
39
|
-
*/
|
|
40
|
-
SUICIDE = "suicide",
|
|
41
|
-
/**
|
|
42
|
-
* Illegal or regulated goods
|
|
43
|
-
*/
|
|
44
|
-
ILLEGAL = "illegal",
|
|
45
|
-
/**
|
|
46
|
-
* Banner Issues
|
|
47
|
-
*/
|
|
48
|
-
BANNER = "banner"
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Where the post was viewed from
|
|
52
|
-
*/
|
|
53
|
-
export declare enum VIEWED_FROM {
|
|
54
|
-
PROFILE = "prof",
|
|
55
|
-
FEATURES = "feat",
|
|
56
|
-
COLLECTIVE = "coll"
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=post.d.ts.map
|
package/types/rest/post.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../src/rest/post.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACtB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,cAAc,WAAW;IACzB;;OAEG;IACH,OAAO,SAAS;IAChB;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,MAAM,WAAW;CACjB;AAED;;GAEG;AACH,oBAAY,WAAW;IACtB,OAAO,SAAS;IAChB,QAAQ,SAAS;IACjB,UAAU,SAAS;CACnB"}
|