@ifunny/ifunny-api-types 0.1.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/CHANGELOG.md +31 -0
- package/LICENSE +121 -0
- package/README.md +2 -0
- package/dist/index.d.ts +376 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/payloads/client.js +13 -0
- package/dist/payloads/client.js.map +1 -0
- package/dist/payloads/index.js +20 -0
- package/dist/payloads/index.js.map +1 -0
- package/dist/payloads/post.js +38 -0
- package/dist/payloads/post.js.map +1 -0
- package/dist/payloads/user.js +59 -0
- package/dist/payloads/user.js.map +1 -0
- package/dist/payloads/util.js +3 -0
- package/dist/payloads/util.js.map +1 -0
- package/dist/rest/explore.js +11 -0
- package/dist/rest/explore.js.map +1 -0
- package/dist/rest/index.js +19 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/rest/issues.js +3 -0
- package/dist/rest/issues.js.map +1 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/util.js +3 -0
- package/dist/utils/util.js.map +1 -0
- package/package.json +46 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -0
- package/types/payloads/client.d.ts +79 -0
- package/types/payloads/client.d.ts.map +1 -0
- package/types/payloads/index.d.ts +4 -0
- package/types/payloads/index.d.ts.map +1 -0
- package/types/payloads/post.d.ts +372 -0
- package/types/payloads/post.d.ts.map +1 -0
- package/types/payloads/user.d.ts +339 -0
- package/types/payloads/user.d.ts.map +1 -0
- package/types/payloads/util.d.ts +18 -0
- package/types/payloads/util.d.ts.map +1 -0
- package/types/rest/explore.d.ts +13 -0
- package/types/rest/explore.d.ts.map +1 -0
- package/types/rest/index.d.ts +3 -0
- package/types/rest/index.d.ts.map +1 -0
- package/types/rest/issues.d.ts +16 -0
- package/types/rest/issues.d.ts.map +1 -0
- package/types/utils/index.d.ts +2 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/util.d.ts +53 -0
- package/types/utils/util.d.ts.map +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
> All notable changes to this project will be documented in this file.
|
|
3
|
+
> This Changelog adheres to the [Semantic Versioning]("https://semver.org/")
|
|
4
|
+
|
|
5
|
+
## 0.1.0 - 2022-05-30
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Added APIPost objects @MakeShiftArtist ([`603f981`](https://github.com/ifunny-co/ifunny-api-types/commit/603f98138768076464901573fff5317b357b5671))
|
|
10
|
+
* Added APIUser types @MakeShiftArtist ([`1e6a461`](https://github.com/ifunny-co/ifunny-api-types/commit/1e6a461099e565ef02733c61d3dd513ca920171c))
|
|
11
|
+
* Added util types @MakeShiftArtist ([`77fb954`](https://github.com/ifunny-co/ifunny-api-types/commit/77fb95449d748a9c3962bf03ad5dff303f247c51))
|
|
12
|
+
* Added NextIssueTime types @MakeShiftArtist ([`5cbfd8e`](https://github.com/ifunny-co/ifunny-api-types/commit/5cbfd8ec2dcc5becb0a1592e0e17b83acb8eed38))
|
|
13
|
+
* Added ExploreTabID types @MakeShiftArtist ([`fc181bf`](https://github.com/ifunny-co/ifunny-api-types/commit/fc181bf3793974b539c074d2edbc57c28ebf7b2c))
|
|
14
|
+
* Add .npmignore @MakeShiftArtist ([`859259e`](https://github.com/ifunny-co/ifunny-api-types/commit/859259e69fd9e1336f394a30b33232545cb9f45c))
|
|
15
|
+
* Added index files @MakeShiftArtist ([`a6ab1c3`](https://github.com/ifunny-co/ifunny-api-types/commit/a6ab1c3136ead313a30720b11c9cdcb369ff8480))
|
|
16
|
+
|
|
17
|
+
### Fixes
|
|
18
|
+
|
|
19
|
+
* Reduced size of .gitignore to necessary lines only @MakeShiftArtist ([`526af27`](https://github.com/ifunny-co/ifunny-api-types/commit/526af2772167fb583dec8be28c48cedc9c4edc7b))
|
|
20
|
+
* Fixed types and changelog config @MakeShiftArtist ([`a8954be`](https://github.com/ifunny-co/ifunny-api-types/commit/a8954be85502ea8b2294199e1a6ba7c6ff9b3437))
|
|
21
|
+
* Added declarations and source maps @MakeShiftArtist ([`c9d6dce`](https://github.com/ifunny-co/ifunny-api-types/commit/c9d6dce747193e0d6e62fd827a135c73982bd5d3))
|
|
22
|
+
* `npm run test` uses `tsc` instead of `jest` @MakeShiftArtist ([`cab0edf`](https://github.com/ifunny-co/ifunny-api-types/commit/cab0edf3165e0050baca3eb0c6df157e88781ea3))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
* npm init with ts and auto-changelog @MakeShiftArtist ([`76493ed`](https://github.com/ifunny-co/ifunny-api-types/commit/76493ed66cd7f65ba4f3b74c860417c343dd6d7f))
|
|
28
|
+
* Added changelog-template.hbs @MakeShiftArtist ([`76e263e`](https://github.com/ifunny-co/ifunny-api-types/commit/76e263e2478e79cdd95b0a5a20e52810ef28af62))
|
|
29
|
+
* Added tsconfig.json @MakeShiftArtist ([`123f963`](https://github.com/ifunny-co/ifunny-api-types/commit/123f9638839308d96264922df3a9692ef6ad7073))
|
|
30
|
+
|
|
31
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
Creative Commons Legal Code
|
|
2
|
+
|
|
3
|
+
CC0 1.0 Universal
|
|
4
|
+
|
|
5
|
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
6
|
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
7
|
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
8
|
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
9
|
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
10
|
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
11
|
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
12
|
+
HEREUNDER.
|
|
13
|
+
|
|
14
|
+
Statement of Purpose
|
|
15
|
+
|
|
16
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
17
|
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
|
18
|
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
19
|
+
authorship and/or a database (each, a "Work").
|
|
20
|
+
|
|
21
|
+
Certain owners wish to permanently relinquish those rights to a Work for
|
|
22
|
+
the purpose of contributing to a commons of creative, cultural and
|
|
23
|
+
scientific works ("Commons") that the public can reliably and without fear
|
|
24
|
+
of later claims of infringement build upon, modify, incorporate in other
|
|
25
|
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
|
26
|
+
and for any purposes, including without limitation commercial purposes.
|
|
27
|
+
These owners may contribute to the Commons to promote the ideal of a free
|
|
28
|
+
culture and the further production of creative, cultural and scientific
|
|
29
|
+
works, or to gain reputation or greater distribution for their Work in
|
|
30
|
+
part through the use and efforts of others.
|
|
31
|
+
|
|
32
|
+
For these and/or other purposes and motivations, and without any
|
|
33
|
+
expectation of additional consideration or compensation, the person
|
|
34
|
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
35
|
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
36
|
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
37
|
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
|
38
|
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
|
39
|
+
|
|
40
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
41
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
42
|
+
Related Rights"). Copyright and Related Rights include, but are not
|
|
43
|
+
limited to, the following:
|
|
44
|
+
|
|
45
|
+
i. the right to reproduce, adapt, distribute, perform, display,
|
|
46
|
+
communicate, and translate a Work;
|
|
47
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
48
|
+
iii. publicity and privacy rights pertaining to a person's image or
|
|
49
|
+
likeness depicted in a Work;
|
|
50
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
51
|
+
subject to the limitations in paragraph 4(a), below;
|
|
52
|
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
|
53
|
+
in a Work;
|
|
54
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
55
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
56
|
+
protection of databases, and under any national implementation
|
|
57
|
+
thereof, including any amended or successor version of such
|
|
58
|
+
directive); and
|
|
59
|
+
vii. other similar, equivalent or corresponding rights throughout the
|
|
60
|
+
world based on applicable law or treaty, and any national
|
|
61
|
+
implementations thereof.
|
|
62
|
+
|
|
63
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
64
|
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
65
|
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
66
|
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
|
67
|
+
of action, whether now known or unknown (including existing as well as
|
|
68
|
+
future claims and causes of action), in the Work (i) in all territories
|
|
69
|
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
|
70
|
+
treaty (including future time extensions), (iii) in any current or future
|
|
71
|
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
72
|
+
including without limitation commercial, advertising or promotional
|
|
73
|
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
74
|
+
member of the public at large and to the detriment of Affirmer's heirs and
|
|
75
|
+
successors, fully intending that such Waiver shall not be subject to
|
|
76
|
+
revocation, rescission, cancellation, termination, or any other legal or
|
|
77
|
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
78
|
+
as contemplated by Affirmer's express Statement of Purpose.
|
|
79
|
+
|
|
80
|
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
|
81
|
+
be judged legally invalid or ineffective under applicable law, then the
|
|
82
|
+
Waiver shall be preserved to the maximum extent permitted taking into
|
|
83
|
+
account Affirmer's express Statement of Purpose. In addition, to the
|
|
84
|
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
85
|
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
86
|
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
87
|
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
88
|
+
maximum duration provided by applicable law or treaty (including future
|
|
89
|
+
time extensions), (iii) in any current or future medium and for any number
|
|
90
|
+
of copies, and (iv) for any purpose whatsoever, including without
|
|
91
|
+
limitation commercial, advertising or promotional purposes (the
|
|
92
|
+
"License"). The License shall be deemed effective as of the date CC0 was
|
|
93
|
+
applied by Affirmer to the Work. Should any part of the License for any
|
|
94
|
+
reason be judged legally invalid or ineffective under applicable law, such
|
|
95
|
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
96
|
+
of the License, and in such case Affirmer hereby affirms that he or she
|
|
97
|
+
will not (i) exercise any of his or her remaining Copyright and Related
|
|
98
|
+
Rights in the Work or (ii) assert any associated claims and causes of
|
|
99
|
+
action with respect to the Work, in either case contrary to Affirmer's
|
|
100
|
+
express Statement of Purpose.
|
|
101
|
+
|
|
102
|
+
4. Limitations and Disclaimers.
|
|
103
|
+
|
|
104
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
105
|
+
surrendered, licensed or otherwise affected by this document.
|
|
106
|
+
b. Affirmer offers the Work as-is and makes no representations or
|
|
107
|
+
warranties of any kind concerning the Work, express, implied,
|
|
108
|
+
statutory or otherwise, including without limitation warranties of
|
|
109
|
+
title, merchantability, fitness for a particular purpose, non
|
|
110
|
+
infringement, or the absence of latent or other defects, accuracy, or
|
|
111
|
+
the present or absence of errors, whether or not discoverable, all to
|
|
112
|
+
the greatest extent permissible under applicable law.
|
|
113
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
114
|
+
that may apply to the Work or any use thereof, including without
|
|
115
|
+
limitation any person's Copyright and Related Rights in the Work.
|
|
116
|
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
117
|
+
consents, permissions or other rights required for any use of the
|
|
118
|
+
Work.
|
|
119
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
120
|
+
party to this document and has no duty or obligation with respect to
|
|
121
|
+
this CC0 or use of the Work.
|
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
declare module "payloads/util" {
|
|
2
|
+
/**
|
|
3
|
+
* Pixel size of an image or video
|
|
4
|
+
*/
|
|
5
|
+
export interface Size {
|
|
6
|
+
/**
|
|
7
|
+
* Width (in pixels)
|
|
8
|
+
*/
|
|
9
|
+
w: number;
|
|
10
|
+
/**
|
|
11
|
+
* Height (in pixels)
|
|
12
|
+
*/
|
|
13
|
+
h: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A color hex code
|
|
17
|
+
*/
|
|
18
|
+
export type HexCode = string;
|
|
19
|
+
}
|
|
20
|
+
declare module "payloads/user" {
|
|
21
|
+
import { HexCode, Size } from "payloads/util";
|
|
22
|
+
/**
|
|
23
|
+
* API User Payload
|
|
24
|
+
*/
|
|
25
|
+
export interface APIUser {
|
|
26
|
+
/**
|
|
27
|
+
* Is the client subscribed to the user's notifications
|
|
28
|
+
*/
|
|
29
|
+
is_subscribed_to_updates: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The user's meme experience
|
|
32
|
+
*/
|
|
33
|
+
meme_experience: APIMemeExperience;
|
|
34
|
+
/**
|
|
35
|
+
* The Chat privacy status of the user
|
|
36
|
+
*/
|
|
37
|
+
messaging_privacy_status: PrivacyStatus;
|
|
38
|
+
/**
|
|
39
|
+
* Can the Client chat with the user
|
|
40
|
+
*/
|
|
41
|
+
is_available_for_chat: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Is the user's account private
|
|
44
|
+
*/
|
|
45
|
+
is_private: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Seems to always be `"1010101010101010101010101010101010101010"`
|
|
48
|
+
*/
|
|
49
|
+
messenger_token: string;
|
|
50
|
+
/**
|
|
51
|
+
* Does the user have access to chats
|
|
52
|
+
*/
|
|
53
|
+
messenger_active: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Array of APIBan objects.
|
|
56
|
+
*/
|
|
57
|
+
bans: APIBan[];
|
|
58
|
+
/**
|
|
59
|
+
* The user's profile photo
|
|
60
|
+
*/
|
|
61
|
+
photo: APIProfilePhoto;
|
|
62
|
+
/**
|
|
63
|
+
* User's inapp share url
|
|
64
|
+
*/
|
|
65
|
+
web_url: `https://ifunny.co/user/${APIUser["nick"]}`;
|
|
66
|
+
/**
|
|
67
|
+
* Is the user blocked by the client
|
|
68
|
+
*/
|
|
69
|
+
is_blocked: false;
|
|
70
|
+
/**
|
|
71
|
+
* Did the user block the client
|
|
72
|
+
*/
|
|
73
|
+
are_you_blocked: false;
|
|
74
|
+
/**
|
|
75
|
+
* User's about bio\
|
|
76
|
+
* ? Can be an empty string
|
|
77
|
+
*/
|
|
78
|
+
about: string;
|
|
79
|
+
/**
|
|
80
|
+
* User's cover image url
|
|
81
|
+
*/
|
|
82
|
+
cover_url: `https://img.ifunny.co/user_covers/${string}.webp`;
|
|
83
|
+
/**
|
|
84
|
+
* User's cover image background color
|
|
85
|
+
*/
|
|
86
|
+
cover_bg_color: HexCode;
|
|
87
|
+
/**
|
|
88
|
+
* User's unique id\
|
|
89
|
+
* ? Never changes
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* User's unique username\
|
|
94
|
+
* ! UNSAFE FOR USER CACHING.
|
|
95
|
+
*/
|
|
96
|
+
nick: string;
|
|
97
|
+
/**
|
|
98
|
+
* Is the user verified on iFunny
|
|
99
|
+
*/
|
|
100
|
+
is_verified: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Is the user banned\
|
|
103
|
+
* ! UNSAFE TO CHECK FOR ACTIVE BANS
|
|
104
|
+
*/
|
|
105
|
+
is_banned: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Is the user deleted from iFunny's servers\
|
|
108
|
+
* ? if true, many properties will be undefined
|
|
109
|
+
*/
|
|
110
|
+
is_deleted: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Is the Client subscribed to the user
|
|
113
|
+
*/
|
|
114
|
+
is_in_subscriptions: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Is the User subscribed to the Client
|
|
117
|
+
*/
|
|
118
|
+
is_in_subscribers: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* User's profile stats
|
|
121
|
+
*/
|
|
122
|
+
num: APIUserNums;
|
|
123
|
+
/**
|
|
124
|
+
* User's nick color\
|
|
125
|
+
* ? Default: 55FF00
|
|
126
|
+
*/
|
|
127
|
+
nick_color: HexCode;
|
|
128
|
+
/**
|
|
129
|
+
* The user's rating\
|
|
130
|
+
* ! Deprecated by iFunny
|
|
131
|
+
* @deprecated
|
|
132
|
+
*/
|
|
133
|
+
rating: APIUserRating;
|
|
134
|
+
/**
|
|
135
|
+
* Original nick of the user\
|
|
136
|
+
* ? Should never change, but I'm not positive
|
|
137
|
+
*/
|
|
138
|
+
original_nick: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* `public` anyone can create a direct message the user\
|
|
142
|
+
* `subscribers` only subscribers can create a direct message with the user\
|
|
143
|
+
* `closed` only the user can create direct messages\
|
|
144
|
+
* ? Backend does not check this status on requests as of 5/28/22
|
|
145
|
+
*/
|
|
146
|
+
export enum MESSAGING_PRIVACY_STATUS {
|
|
147
|
+
PUBLIC = "public",
|
|
148
|
+
SUBSCRIBERS = "subscribers",
|
|
149
|
+
CLOSED = "closed"
|
|
150
|
+
}
|
|
151
|
+
export type PrivacyStatus = `${MESSAGING_PRIVACY_STATUS}`;
|
|
152
|
+
/**
|
|
153
|
+
* A user's meme experience
|
|
154
|
+
*/
|
|
155
|
+
export interface APIMemeExperience {
|
|
156
|
+
/**
|
|
157
|
+
* The amount of days the user has logged into iFunny
|
|
158
|
+
*/
|
|
159
|
+
days: number;
|
|
160
|
+
/**
|
|
161
|
+
* The user's rank name
|
|
162
|
+
*/
|
|
163
|
+
rank: MemeRank;
|
|
164
|
+
/**
|
|
165
|
+
* MemeRank badge png url
|
|
166
|
+
*/
|
|
167
|
+
badge_url: `https://img.ifunny.co/meme_experience/${number}.png`;
|
|
168
|
+
/**
|
|
169
|
+
* Pixel size of the badge
|
|
170
|
+
*/
|
|
171
|
+
badge_size: Size;
|
|
172
|
+
/**
|
|
173
|
+
* Days needed to get to the meme rank
|
|
174
|
+
*/
|
|
175
|
+
next_milestone: number;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* All current MemeRanks from the API
|
|
179
|
+
*/
|
|
180
|
+
export enum RANKS {
|
|
181
|
+
MEME_EXPLORER = "Meme explorer",
|
|
182
|
+
MEME_BRO = "Meme bro",
|
|
183
|
+
MEME_DADDY = "Meme daddy",
|
|
184
|
+
DANK_MEMER = "Dank memer",
|
|
185
|
+
MEME_MASTER_BAKER = "Meme master baker",
|
|
186
|
+
DEEP_FRIED_MEMER = "Deep fried memer",
|
|
187
|
+
SAUCY_MEMER = "Saucy memer",
|
|
188
|
+
ORIGINAL_MEME_GANGSTER = "Original Meme Gangster",
|
|
189
|
+
MEME_DEMON = "Meme demon",
|
|
190
|
+
STEAL_BEAMS_OF_MEMES = "Steal beams of memes",
|
|
191
|
+
MEME_DEALER = "Meme dealer",
|
|
192
|
+
IFUNNY_VETERAN = "iFunny Veteran",
|
|
193
|
+
/**
|
|
194
|
+
* Final MemeExperience rank
|
|
195
|
+
*/
|
|
196
|
+
CHEFS_MEME_AGENT = "Chef's meme agent"
|
|
197
|
+
}
|
|
198
|
+
export type MemeRank = `${RANKS}`;
|
|
199
|
+
/**
|
|
200
|
+
* Known ban types\
|
|
201
|
+
* TODO: Discover more ban types
|
|
202
|
+
*/
|
|
203
|
+
export enum BAN_TYPES {
|
|
204
|
+
COLLECTIVE_SHADOW = "collective"
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* ? Place holder for when more ban types are known
|
|
208
|
+
*/
|
|
209
|
+
export type BanType = `${BAN_TYPES}`;
|
|
210
|
+
export interface APIBan {
|
|
211
|
+
/**
|
|
212
|
+
* Unique ban Id
|
|
213
|
+
*/
|
|
214
|
+
id: string;
|
|
215
|
+
/**
|
|
216
|
+
* Unix timestamp of when the ban expires\
|
|
217
|
+
* ? IN SECONDS! More better accuracy, convert to milliseconds
|
|
218
|
+
*/
|
|
219
|
+
date_until: number;
|
|
220
|
+
/**
|
|
221
|
+
* Known {@link BAN_TYPES types}
|
|
222
|
+
*/
|
|
223
|
+
type: BanType | string;
|
|
224
|
+
}
|
|
225
|
+
export interface APIProfilePhoto {
|
|
226
|
+
/**
|
|
227
|
+
* Profile Photo background color
|
|
228
|
+
*/
|
|
229
|
+
bg_color: HexCode;
|
|
230
|
+
/**
|
|
231
|
+
* Profile photo thumbnail
|
|
232
|
+
*/
|
|
233
|
+
thumb: APIProfilePhotoThumbnail;
|
|
234
|
+
/**
|
|
235
|
+
* Profile photo content url
|
|
236
|
+
*/
|
|
237
|
+
url: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Profile photo thumbnail
|
|
241
|
+
*/
|
|
242
|
+
export interface APIProfilePhotoThumbnail {
|
|
243
|
+
/**
|
|
244
|
+
* resize:400x,quality:90
|
|
245
|
+
*/
|
|
246
|
+
large_url: string;
|
|
247
|
+
/**
|
|
248
|
+
* resize:200x quality:90
|
|
249
|
+
*/
|
|
250
|
+
medium_url: string;
|
|
251
|
+
/**
|
|
252
|
+
* resize:100x quality:90
|
|
253
|
+
*/
|
|
254
|
+
small_url: string;
|
|
255
|
+
}
|
|
256
|
+
export interface APIUserNums {
|
|
257
|
+
/**
|
|
258
|
+
* Amount of users the user is subscribed to
|
|
259
|
+
*/
|
|
260
|
+
subscriptions: number;
|
|
261
|
+
/**
|
|
262
|
+
* Amount of subscribers the user has
|
|
263
|
+
*/
|
|
264
|
+
subscribers: number;
|
|
265
|
+
/**
|
|
266
|
+
* Total amount of posts on the user's timeline
|
|
267
|
+
*/
|
|
268
|
+
total_posts: number;
|
|
269
|
+
/**
|
|
270
|
+
* Amout of original (not republished) posts on the user's timeline
|
|
271
|
+
*/
|
|
272
|
+
created: number;
|
|
273
|
+
/**
|
|
274
|
+
* Amount of featured posts the user has
|
|
275
|
+
*/
|
|
276
|
+
featured: number;
|
|
277
|
+
/**
|
|
278
|
+
* Amount of smiles the user has from posts
|
|
279
|
+
*/
|
|
280
|
+
total_smiles: number;
|
|
281
|
+
/**
|
|
282
|
+
* Amount of achievements the user has
|
|
283
|
+
*/
|
|
284
|
+
achievements: number;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* User's Rating\
|
|
288
|
+
* ! Deprecated by iFunny
|
|
289
|
+
*/
|
|
290
|
+
export interface APIUserRating {
|
|
291
|
+
points: number;
|
|
292
|
+
current_level: APIUserRatingLevel;
|
|
293
|
+
next_level: APIUserRatingLevel;
|
|
294
|
+
max_level: APIUserRatingLevel;
|
|
295
|
+
is_show_level: boolean;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* A User Rating Level\
|
|
299
|
+
* ! Deprecated by iFunny
|
|
300
|
+
*/
|
|
301
|
+
export interface APIUserRatingLevel {
|
|
302
|
+
id: string;
|
|
303
|
+
value: number;
|
|
304
|
+
points: number;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
declare module "payloads/post" {
|
|
308
|
+
import { APIUser } from "payloads/user";
|
|
309
|
+
export interface APIPost {
|
|
310
|
+
gif?: {
|
|
311
|
+
screen_url: string;
|
|
312
|
+
bytes: number;
|
|
313
|
+
mp4_url: string;
|
|
314
|
+
mp4_bytes: number;
|
|
315
|
+
};
|
|
316
|
+
id: string;
|
|
317
|
+
type: APIPostType;
|
|
318
|
+
url: string;
|
|
319
|
+
old_watermark: boolean;
|
|
320
|
+
link: string;
|
|
321
|
+
title: string;
|
|
322
|
+
fixed_title: string;
|
|
323
|
+
tags: string[];
|
|
324
|
+
state: "published";
|
|
325
|
+
date_create: 1645074473;
|
|
326
|
+
publish_at: 1645074473;
|
|
327
|
+
is_smiled: false;
|
|
328
|
+
is_unsmiled: false;
|
|
329
|
+
is_abused: false;
|
|
330
|
+
is_featured: false;
|
|
331
|
+
is_republished: false;
|
|
332
|
+
is_pinned: false;
|
|
333
|
+
bg_color: "f2e7d2";
|
|
334
|
+
thumb: [null];
|
|
335
|
+
copyright: {};
|
|
336
|
+
num: {
|
|
337
|
+
smiles: 1;
|
|
338
|
+
unsmiles: 0;
|
|
339
|
+
guest_smiles: 0;
|
|
340
|
+
comments: 0;
|
|
341
|
+
views: 5;
|
|
342
|
+
republished: 0;
|
|
343
|
+
shares: 0;
|
|
344
|
+
};
|
|
345
|
+
creator: APIUser;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* All currently known post types
|
|
349
|
+
*/
|
|
350
|
+
export enum POST_TYPES {
|
|
351
|
+
PIC = "pic",
|
|
352
|
+
VIDEO_CLIP = "video_clip",
|
|
353
|
+
GIF = "gif",
|
|
354
|
+
GIF_CAPTION = "gif_caption",
|
|
355
|
+
CAPTION = "caption",
|
|
356
|
+
VINE = "vine",
|
|
357
|
+
COMICS = "comics",
|
|
358
|
+
MEME = "mem"
|
|
359
|
+
}
|
|
360
|
+
export type APIPostType = `${POST_TYPES}`;
|
|
361
|
+
/**
|
|
362
|
+
* TODO: Discover more post states
|
|
363
|
+
*/
|
|
364
|
+
export enum POST_STATES {
|
|
365
|
+
PUBLISHED = "published"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
declare module "payloads/index" {
|
|
369
|
+
export * from "payloads/post";
|
|
370
|
+
export * from "payloads/user";
|
|
371
|
+
export * from "payloads/util";
|
|
372
|
+
}
|
|
373
|
+
declare module "index" {
|
|
374
|
+
export * from "payloads/index";
|
|
375
|
+
}
|
|
376
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/payloads/util.ts","../src/payloads/user.ts","../src/payloads/post.ts","../src/payloads/index.ts","../src/index.ts"],"names":[],"mappings":";IAAA;;OAEG;IACH,MAAM,WAAW,IAAI;QACpB;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;QACV;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;KACV;IAED;;OAEG;IACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;;;ICjB7B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAe;IAEvC;;OAEG;IACH,MAAM,WAAW,OAAO;QACvB;;WAEG;QACH,wBAAwB,EAAE,OAAO,CAAC;QAClC;;WAEG;QACH,eAAe,EAAE,iBAAiB,CAAC;QACnC;;WAEG;QACH,wBAAwB,EAAE,aAAa,CAAC;QACxC;;WAEG;QACH,qBAAqB,EAAE,OAAO,CAAC;QAC/B;;WAEG;QACH,UAAU,EAAE,OAAO,CAAC;QACpB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QACxB;;WAEG;QACH,gBAAgB,EAAE,OAAO,CAAC;QAC1B;;WAEG;QACH,IAAI,EAAE,MAAM,EAAE,CAAC;QACf;;WAEG;QACH,KAAK,EAAE,eAAe,CAAC;QACvB;;WAEG;QACH,OAAO,EAAE,0BAA0B,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACrD;;WAEG;QACH,UAAU,EAAE,KAAK,CAAC;QAClB;;WAEG;QACH,eAAe,EAAE,KAAK,CAAC;QACvB;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,SAAS,EAAE,qCAAqC,MAAM,OAAO,CAAC;QAC9D;;WAEG;QACH,cAAc,EAAE,OAAO,CAAC;QACxB;;;WAGG;QACH,EAAE,EAAE,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,GAAG,QAAQ;QACX,UAAU,eAAe;QACzB,GAAG,QAAQ;QACX,WAAW,gBAAgB;QAC3B,OAAO,YAAY;QACnB,IAAI,SAAS;QACb,MAAM,WAAW;QACjB,IAAI,QAAQ;KACZ;IAED,MAAM,MAAM,WAAW,GAAG,GAAG,UAAU,EAAE,CAAC;IAE1C;;OAEG;IACH,MAAM,MAAM,WAAW;QACtB,SAAS,cAAc;KACvB;;;IC9DD,8BAAuB;IACvB,8BAAuB;IACvB,8BAAuB;;;ICFvB,+BAA2B"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./payloads"), exports);
|
|
18
|
+
__exportStar(require("./rest"), exports);
|
|
19
|
+
__exportStar(require("./utils"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_SEX = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* All current genders (sex) for the Client
|
|
6
|
+
*/
|
|
7
|
+
var API_SEX;
|
|
8
|
+
(function (API_SEX) {
|
|
9
|
+
API_SEX["MALE"] = "male";
|
|
10
|
+
API_SEX["FEMALE"] = "female";
|
|
11
|
+
API_SEX["OTHER"] = "other";
|
|
12
|
+
})(API_SEX = exports.API_SEX || (exports.API_SEX = {}));
|
|
13
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/payloads/client.ts"],"names":[],"mappings":";;;AAgEA;;GAEG;AACH,IAAY,OAIX;AAJD,WAAY,OAAO;IAClB,wBAAa,CAAA;IACb,4BAAiB,CAAA;IACjB,0BAAe,CAAA;AAChB,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./post"), exports);
|
|
18
|
+
__exportStar(require("./user"), exports);
|
|
19
|
+
__exportStar(require("./client"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/payloads/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VIDEO_SOURCE_TYPES = exports.POST_STATES = exports.POST_TYPES = exports.SHOT_STATUSES = exports.POST_VISIBILITIES = void 0;
|
|
4
|
+
// Enum types
|
|
5
|
+
// TODO: Document more visibility options
|
|
6
|
+
var POST_VISIBILITIES;
|
|
7
|
+
(function (POST_VISIBILITIES) {
|
|
8
|
+
POST_VISIBILITIES["PUBLIC"] = "public";
|
|
9
|
+
})(POST_VISIBILITIES = exports.POST_VISIBILITIES || (exports.POST_VISIBILITIES = {}));
|
|
10
|
+
// TODO: Document more shot status options
|
|
11
|
+
var SHOT_STATUSES;
|
|
12
|
+
(function (SHOT_STATUSES) {
|
|
13
|
+
SHOT_STATUSES["APPROVED"] = "approved";
|
|
14
|
+
})(SHOT_STATUSES = exports.SHOT_STATUSES || (exports.SHOT_STATUSES = {}));
|
|
15
|
+
/**
|
|
16
|
+
* All currently known post types
|
|
17
|
+
*/
|
|
18
|
+
var POST_TYPES;
|
|
19
|
+
(function (POST_TYPES) {
|
|
20
|
+
POST_TYPES["PIC"] = "pic";
|
|
21
|
+
POST_TYPES["VIDEO_CLIP"] = "video_clip";
|
|
22
|
+
POST_TYPES["GIF"] = "gif";
|
|
23
|
+
POST_TYPES["GIF_CAPTION"] = "gif_caption";
|
|
24
|
+
POST_TYPES["CAPTION"] = "caption";
|
|
25
|
+
POST_TYPES["VINE"] = "vine";
|
|
26
|
+
POST_TYPES["COMICS"] = "comics";
|
|
27
|
+
POST_TYPES["MEME"] = "mem";
|
|
28
|
+
})(POST_TYPES = exports.POST_TYPES || (exports.POST_TYPES = {}));
|
|
29
|
+
// TODO: Discover more post states
|
|
30
|
+
var POST_STATES;
|
|
31
|
+
(function (POST_STATES) {
|
|
32
|
+
POST_STATES["PUBLISHED"] = "published";
|
|
33
|
+
})(POST_STATES = exports.POST_STATES || (exports.POST_STATES = {}));
|
|
34
|
+
var VIDEO_SOURCE_TYPES;
|
|
35
|
+
(function (VIDEO_SOURCE_TYPES) {
|
|
36
|
+
VIDEO_SOURCE_TYPES["USER"] = "user";
|
|
37
|
+
})(VIDEO_SOURCE_TYPES = exports.VIDEO_SOURCE_TYPES || (exports.VIDEO_SOURCE_TYPES = {}));
|
|
38
|
+
//# sourceMappingURL=post.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/payloads/post.ts"],"names":[],"mappings":";;;AAiIA,aAAa;AAEb,yCAAyC;AACzC,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC5B,sCAAiB,CAAA;AAClB,CAAC,EAFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAE5B;AAID,0CAA0C;AAC1C,IAAY,aAEX;AAFD,WAAY,aAAa;IACxB,sCAAqB,CAAA;AACtB,CAAC,EAFW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAExB;AAID;;GAEG;AACH,IAAY,UASX;AATD,WAAY,UAAU;IACrB,yBAAW,CAAA;IACX,uCAAyB,CAAA;IACzB,yBAAW,CAAA;IACX,yCAA2B,CAAA;IAC3B,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,0BAAY,CAAA;AACb,CAAC,EATW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QASrB;AAOD,kCAAkC;AAClC,IAAY,WAEX;AAFD,WAAY,WAAW;IACtB,sCAAuB,CAAA;AACxB,CAAC,EAFW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAEtB;AA4ND,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC7B,mCAAa,CAAA;AACd,CAAC,EAFW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAE7B"}
|