@ifunny/ifunny-api-types 0.7.11 → 0.7.14
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
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
> All notable changes to this project will be documented in this file.
|
|
3
3
|
> This Changelog adheres to the [Semantic Versioning]("https://semver.org/")
|
|
4
4
|
|
|
5
|
+
## [v0.7.14](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.13...v0.7.14) - 2022-09-11
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Fixes
|
|
9
|
+
|
|
10
|
+
* Fixed endpoints for nicks and emails @MakeShiftArtist ([`da4576e`](https://github.com/ifunny-co/ifunny-api-types/commit/da4576ee40a79f6377fe9ebae6ffb3a9b092ab69))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [v0.7.13](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.12...v0.7.13) - 2022-09-10
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Fixes
|
|
19
|
+
|
|
20
|
+
* Added missing endpoints @MakeShiftArtist ([`fb7baad`](https://github.com/ifunny-co/ifunny-api-types/commit/fb7baad0c5d95a549dadfc62cde8c0459b4dcc20))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [v0.7.12](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.11...v0.7.12) - 2022-09-10
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* Added more scripts @MakeShiftArtist ([`aaa410b`](https://github.com/ifunny-co/ifunny-api-types/commit/aaa410b8ece3fcc7d01a457d1c34a32bbd5b93e9))
|
|
30
|
+
|
|
31
|
+
### Fixes
|
|
32
|
+
|
|
33
|
+
* Fixed Unknown errors breaking error intellisense @MakeShiftArtist ([`d98458e`](https://github.com/ifunny-co/ifunny-api-types/commit/d98458e111a336ea4e942d3ee6dc19fcccd517b6))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
5
38
|
## [v0.7.11](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.10...v0.7.11) - 2022-09-10
|
|
6
39
|
|
|
7
40
|
|
package/dist/rest/endpoints.js
CHANGED
|
@@ -147,10 +147,12 @@ Endpoints.projectElements = "/feeds/project_elements";
|
|
|
147
147
|
Endpoints.subscriptionFeed = "/timelines/home";
|
|
148
148
|
Endpoints.timelines = "/timelines";
|
|
149
149
|
Endpoints.token = "/oauth2/token";
|
|
150
|
-
Endpoints.myComments = "users/my/comments";
|
|
151
|
-
Endpoints.chatInvites = "users/my/chat_invitations";
|
|
150
|
+
Endpoints.myComments = "/users/my/comments";
|
|
151
|
+
Endpoints.chatInvites = "/users/my/chat_invitations";
|
|
152
152
|
Endpoints.mySmiles = "/users/my/content_smiles";
|
|
153
|
-
Endpoints.myAppeals = "users/my/appeals";
|
|
154
|
-
Endpoints.unreadChatMessages = "users/my/unread_chat_messages";
|
|
155
|
-
Endpoints.myNews = "news/my";
|
|
153
|
+
Endpoints.myAppeals = "/users/my/appeals";
|
|
154
|
+
Endpoints.unreadChatMessages = "/users/my/unread_chat_messages";
|
|
155
|
+
Endpoints.myNews = "/news/my";
|
|
156
|
+
Endpoints.nicksAvailable = "/users/nicks_available";
|
|
157
|
+
Endpoints.emailsAvailable = "/users/emails_available";
|
|
156
158
|
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/rest/endpoints.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAS;
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../src/rest/endpoints.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAS;IAqBrB;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,KAAa,EAAE,SAAkB,KAAK;QACzD,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ACrB,oBAAU,GAAG,mBAAmB,CAAC;AACjC,kBAAQ,GAAG,WAAW,CAAC;AACvB,kBAAQ,GAAG,iBAAiB,CAAC;AAC7B,eAAK,GAAG,QAAQ,CAAC;AACjB,gBAAM,GAAG,SAAS,CAAC;AACnB,yBAAe,GAAG,yBAAyB,CAAC;AAC5C,0BAAgB,GAAG,iBAAiB,CAAC;AACrC,mBAAS,GAAG,YAAY,CAAC;AACzB,eAAK,GAAG,eAAe,CAAC;AACxB,oBAAU,GAAG,oBAAoB,CAAC;AAClC,qBAAW,GAAG,4BAA4B,CAAC;AAC3C,kBAAQ,GAAG,0BAA0B,CAAC;AACtC,mBAAS,GAAG,mBAAmB,CAAC;AAChC,4BAAkB,GAAG,gCAAgC,CAAC;AACtD,gBAAM,GAAG,UAAU,CAAC;AACpB,wBAAc,GAAG,wBAAwB,CAAC;AAC1C,yBAAe,GAAG,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifunny/ifunny-api-types",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"description": "iFunny API typings for use in bot library creaion.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "types",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build-js": "tsc",
|
|
9
9
|
"build": "npm run build-js",
|
|
10
|
-
"changelog": "auto-changelog -p
|
|
10
|
+
"changelog": "auto-changelog -p && git add CHANGELOG.md && git commit -m \"Update CHANGELOG.md\"",
|
|
11
11
|
"update": "npx npm-check-updates -u && npm install",
|
|
12
12
|
"test": "tsc --noEmit",
|
|
13
|
-
"link": "npm run build && npm link"
|
|
13
|
+
"link": "npm run build && npm link",
|
|
14
|
+
"version": "npm run changelog && npm run build",
|
|
15
|
+
"push": "git push && npm run build && npm publish"
|
|
14
16
|
},
|
|
15
17
|
"repository": {
|
|
16
18
|
"type": "git",
|
package/types/errors/error.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import RESTAPIErrorUnauthorized from "./unauthorized";
|
|
|
20
20
|
* }
|
|
21
21
|
* }
|
|
22
22
|
*/
|
|
23
|
-
export declare type RESTAPIErrorResponse =
|
|
23
|
+
export declare type RESTAPIErrorResponse = RESTAPIErrorBadRequest | RESTAPIErrorCaptchaRequired | RESTAPIErrorEmailExists | RESTAPIErrorInvalidEmail | RESTAPIErrorInvalidGrant | RESTAPIErrorNotFound | RESTAPIErrorPermissionDenied | RESTAPIErrorUnauthorized;
|
|
24
24
|
/**
|
|
25
25
|
* Use this if you don't know the error being thrown or don't want full intellisense support
|
|
26
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/errors/error.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,sBAAsB,MAAM,eAAe,CAAC;AACnD,OAAO,2BAA2B,MAAM,oBAAoB,CAAC;AAC7D,OAAO,uBAAuB,MAAM,gBAAgB,CAAC;AACrD,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AACvD,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AACvD,OAAO,oBAAoB,MAAM,aAAa,CAAC;AAC/C,OAAO,4BAA4B,MAAM,qBAAqB,CAAC;AAC/D,OAAO,wBAAwB,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,oBAAY,oBAAoB,GAC7B,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/errors/error.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,sBAAsB,MAAM,eAAe,CAAC;AACnD,OAAO,2BAA2B,MAAM,oBAAoB,CAAC;AAC7D,OAAO,uBAAuB,MAAM,gBAAgB,CAAC;AACrD,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AACvD,OAAO,wBAAwB,MAAM,iBAAiB,CAAC;AACvD,OAAO,oBAAoB,MAAM,aAAa,CAAC;AAC/C,OAAO,4BAA4B,MAAM,qBAAqB,CAAC;AAC/D,OAAO,wBAAwB,MAAM,gBAAgB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,oBAAY,oBAAoB,GAC7B,sBAAsB,GACtB,2BAA2B,GAC3B,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,CAAC;AAE5B;;GAEG;AACH,oBAAY,mBAAmB,GAAG,YAAY,CAAC"}
|
|
@@ -10,12 +10,14 @@ export declare class Endpoints {
|
|
|
10
10
|
static readonly subscriptionFeed = "/timelines/home";
|
|
11
11
|
static readonly timelines = "/timelines";
|
|
12
12
|
static readonly token = "/oauth2/token";
|
|
13
|
-
static readonly myComments = "users/my/comments";
|
|
14
|
-
static readonly chatInvites = "users/my/chat_invitations";
|
|
13
|
+
static readonly myComments = "/users/my/comments";
|
|
14
|
+
static readonly chatInvites = "/users/my/chat_invitations";
|
|
15
15
|
static readonly mySmiles = "/users/my/content_smiles";
|
|
16
|
-
static readonly myAppeals = "users/my/appeals";
|
|
17
|
-
static readonly unreadChatMessages = "users/my/unread_chat_messages";
|
|
18
|
-
static readonly myNews = "news/my";
|
|
16
|
+
static readonly myAppeals = "/users/my/appeals";
|
|
17
|
+
static readonly unreadChatMessages = "/users/my/unread_chat_messages";
|
|
18
|
+
static readonly myNews = "/news/my";
|
|
19
|
+
static readonly nicksAvailable = "/users/nicks_available";
|
|
20
|
+
static readonly emailsAvailable = "/users/emails_available";
|
|
19
21
|
/**
|
|
20
22
|
* @example
|
|
21
23
|
* "/timelines/users/:userId"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/rest/endpoints.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;IACrB,MAAM,CAAC,QAAQ,CAAC,IAAI,qBAAqB;IACzC,MAAM,C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