@ifunny/ifunny-api-types 0.7.10 → 0.7.11
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 +10 -0
- package/package.json +1 -1
- package/types/errors/error.d.ts +10 -7
- package/types/errors/error.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.11](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.10...v0.7.11) - 2022-09-10
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Fixes
|
|
9
|
+
|
|
10
|
+
* Add missing errors from response @MakeShiftArtist ([`25cc009`](https://github.com/ifunny-co/ifunny-api-types/commit/25cc009181cce2f7e15285022c7927d098838019))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
5
15
|
## [v0.7.10](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.9...v0.7.10) - 2022-09-10
|
|
6
16
|
|
|
7
17
|
### Features
|
package/package.json
CHANGED
package/types/errors/error.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import RESTAPIError from "./error_base";
|
|
2
|
+
import RESTAPIErrorBadRequest from "./bad_request";
|
|
3
|
+
import RESTAPIErrorCaptchaRequired from "./captcha_required";
|
|
4
|
+
import RESTAPIErrorEmailExists from "./email_exists";
|
|
5
|
+
import RESTAPIErrorInvalidEmail from "./invalid_email";
|
|
6
|
+
import RESTAPIErrorInvalidGrant from "./invalid_grant";
|
|
7
|
+
import RESTAPIErrorNotFound from "./not_found";
|
|
8
|
+
import RESTAPIErrorPermissionDenied from "./permission_denied";
|
|
9
|
+
import RESTAPIErrorUnauthorized from "./unauthorized";
|
|
7
10
|
/**
|
|
8
11
|
* Returns when the request throws an error.\
|
|
9
12
|
* Automatically evaluates the error based on other values
|
|
@@ -17,7 +20,7 @@ import { RESTAPIErrorUnauthorized } from "./unauthorized";
|
|
|
17
20
|
* }
|
|
18
21
|
* }
|
|
19
22
|
*/
|
|
20
|
-
export declare type RESTAPIErrorResponse = RESTAPIErrorBadRequest | RESTAPIErrorCaptchaRequired | RESTAPIErrorEmailExists | RESTAPIErrorInvalidEmail | RESTAPIErrorUnauthorized;
|
|
23
|
+
export declare type RESTAPIErrorResponse = RESTAPIError | RESTAPIErrorBadRequest | RESTAPIErrorCaptchaRequired | RESTAPIErrorEmailExists | RESTAPIErrorInvalidEmail | RESTAPIErrorInvalidGrant | RESTAPIErrorNotFound | RESTAPIErrorPermissionDenied | RESTAPIErrorUnauthorized;
|
|
21
24
|
/**
|
|
22
25
|
* Use this if you don't know the error being thrown or don't want full intellisense support
|
|
23
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/errors/error.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,YAAY,GACZ,sBAAsB,GACtB,2BAA2B,GAC3B,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,CAAC;AAE5B;;GAEG;AACH,oBAAY,mBAAmB,GAAG,YAAY,CAAC"}
|