@ifunny/ifunny-api-types 0.7.9 → 0.7.12
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 +33 -0
- package/dist/errors/error_base.js +2 -0
- package/dist/errors/error_base.js.map +1 -1
- package/dist/errors/index.js +3 -0
- package/dist/errors/index.js.map +1 -1
- package/dist/errors/invalid_grant.js +8 -0
- package/dist/errors/invalid_grant.js.map +1 -0
- package/dist/errors/not_found.js +3 -0
- package/dist/errors/not_found.js.map +1 -0
- package/dist/errors/permission_denied.js +8 -0
- package/dist/errors/permission_denied.js.map +1 -0
- package/package.json +5 -3
- package/types/errors/error.d.ts +10 -7
- package/types/errors/error.d.ts.map +1 -1
- package/types/errors/error_base.d.ts +2 -0
- package/types/errors/error_base.d.ts.map +1 -1
- package/types/errors/index.d.ts +3 -0
- package/types/errors/index.d.ts.map +1 -1
- package/types/errors/invalid_grant.d.ts +12 -0
- package/types/errors/invalid_grant.d.ts.map +1 -0
- package/types/errors/not_found.d.ts +8 -0
- package/types/errors/not_found.d.ts.map +1 -0
- package/types/errors/permission_denied.d.ts +12 -0
- package/types/errors/permission_denied.d.ts.map +1 -0
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.12](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.11...v0.7.12) - 2022-09-11
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Added more scripts @MakeShiftArtist ([`aaa410b`](https://github.com/ifunny-co/ifunny-api-types/commit/aaa410b8ece3fcc7d01a457d1c34a32bbd5b93e9))
|
|
10
|
+
|
|
11
|
+
### Fixes
|
|
12
|
+
|
|
13
|
+
* Fixed Unknown errors breaking error intellisense @MakeShiftArtist ([`d98458e`](https://github.com/ifunny-co/ifunny-api-types/commit/d98458e111a336ea4e942d3ee6dc19fcccd517b6))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [v0.7.11](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.10...v0.7.11) - 2022-09-10
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Fixes
|
|
22
|
+
|
|
23
|
+
* Add missing errors from response @MakeShiftArtist ([`25cc009`](https://github.com/ifunny-co/ifunny-api-types/commit/25cc009181cce2f7e15285022c7927d098838019))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [v0.7.10](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.9...v0.7.10) - 2022-09-10
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* Add invalid_grant, not_found, and permission_denied errors @MakeShiftArtist ([`57d0f7a`](https://github.com/ifunny-co/ifunny-api-types/commit/57d0f7a89af5eef0a26af395e920ddfd994e0b63))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
5
38
|
## [v0.7.9](https://github.com/ifunny-co/ifunny-api-types/compare/v0.7.8...v0.7.9) - 2022-09-10
|
|
6
39
|
|
|
7
40
|
### Features
|
|
@@ -20,9 +20,11 @@ var IFUNNY_ERRORS;
|
|
|
20
20
|
IFUNNY_ERRORS["INVALID_CLIENT"] = "invalid_client";
|
|
21
21
|
IFUNNY_ERRORS["INVALID_EMAIL"] = "invalid_email";
|
|
22
22
|
IFUNNY_ERRORS["INVALID_GRANT"] = "invalid_grant";
|
|
23
|
+
IFUNNY_ERRORS["NOT_FOUND"] = "not_found";
|
|
23
24
|
IFUNNY_ERRORS["NOT_REPUBLISHED"] = "not_republished";
|
|
24
25
|
IFUNNY_ERRORS["NOT_SMILED"] = "not_smiled";
|
|
25
26
|
IFUNNY_ERRORS["NOT_UNSMILED"] = "not_unsmiled";
|
|
27
|
+
IFUNNY_ERRORS["PERMISSION_DENIED"] = "permission denied";
|
|
26
28
|
IFUNNY_ERRORS["PINNED_LIMIT_EXCEEDED"] = "profile_pins_to_many_pins_error";
|
|
27
29
|
IFUNNY_ERRORS["PUBLISHING_TIMEOUT"] = "publishing_timeout";
|
|
28
30
|
IFUNNY_ERRORS["QUERY_TOO_SHORT"] = "query_too_short";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_base.js","sourceRoot":"","sources":["../../src/errors/error_base.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"error_base.js","sourceRoot":"","sources":["../../src/errors/error_base.ts"],"names":[],"mappings":";;;AAyBA;;GAEG;AACH,IAAY,aAiCX;AAjCD,WAAY,aAAa;IACxB,4DAA2C,CAAA;IAC3C,kDAAiC,CAAA;IACjC,sDAAqC,CAAA;IACrC,4CAA2B,CAAA;IAC3B,sDAAqC,CAAA;IACrC,4DAA2C,CAAA;IAC3C,8CAA6B,CAAA;IAC7B,4DAA2C,CAAA;IAC3C,gDAA+B,CAAA;IAC/B,8DAA6C,CAAA;IAC7C,oEAAmD,CAAA;IACnD,kDAAiC,CAAA;IACjC,gDAA+B,CAAA;IAC/B,gDAA+B,CAAA;IAC/B,wCAAuB,CAAA;IACvB,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IACzB,8CAA6B,CAAA;IAC7B,wDAAuC,CAAA;IACvC,0EAAyD,CAAA;IACzD,0DAAyC,CAAA;IACzC,oDAAmC,CAAA;IACnC,sEAAqD,CAAA;IACrD,gEAA+C,CAAA;IAC/C,mDAAkC,CAAA;IAClC,0DAAyC,CAAA;IACzC,8DAA6C,CAAA;IAC7C,8CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,kDAAiC,CAAA;IACjC,sDAAqC,CAAA;IACrC,oDAAmC,CAAA;AACpC,CAAC,EAjCW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAiCxB"}
|
package/dist/errors/index.js
CHANGED
|
@@ -20,5 +20,8 @@ __exportStar(require("./email_exists"), exports);
|
|
|
20
20
|
__exportStar(require("./error_base"), exports);
|
|
21
21
|
__exportStar(require("./error"), exports);
|
|
22
22
|
__exportStar(require("./invalid_email"), exports);
|
|
23
|
+
__exportStar(require("./invalid_grant"), exports);
|
|
24
|
+
__exportStar(require("./not_found"), exports);
|
|
25
|
+
__exportStar(require("./permission_denied"), exports);
|
|
23
26
|
__exportStar(require("./unauthorized"), exports);
|
|
24
27
|
//# sourceMappingURL=index.js.map
|
package/dist/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,qDAAmC;AACnC,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,qDAAmC;AACnC,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,iDAA+B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVALID_GRANT = void 0;
|
|
4
|
+
var INVALID_GRANT;
|
|
5
|
+
(function (INVALID_GRANT) {
|
|
6
|
+
INVALID_GRANT["TOKEN_EXPIRED"] = "token is expired";
|
|
7
|
+
})(INVALID_GRANT = exports.INVALID_GRANT || (exports.INVALID_GRANT = {}));
|
|
8
|
+
//# sourceMappingURL=invalid_grant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid_grant.js","sourceRoot":"","sources":["../../src/errors/invalid_grant.ts"],"names":[],"mappings":";;;AAUA,IAAY,aAEX;AAFD,WAAY,aAAa;IACxB,mDAAkC,CAAA;AACnC,CAAC,EAFW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_found.js","sourceRoot":"","sources":["../../src/errors/not_found.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PERMISSION_DENIED = void 0;
|
|
4
|
+
var PERMISSION_DENIED;
|
|
5
|
+
(function (PERMISSION_DENIED) {
|
|
6
|
+
PERMISSION_DENIED["DENIED"] = "Permission denied";
|
|
7
|
+
})(PERMISSION_DENIED = exports.PERMISSION_DENIED || (exports.PERMISSION_DENIED = {}));
|
|
8
|
+
//# sourceMappingURL=permission_denied.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission_denied.js","sourceRoot":"","sources":["../../src/errors/permission_denied.ts"],"names":[],"mappings":";;;AAUA,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC5B,iDAA4B,CAAA;AAC7B,CAAC,EAFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAE5B"}
|
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.12",
|
|
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
|
@@ -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 = 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,sBAAsB,GACtB,2BAA2B,GAC3B,uBAAuB,GACvB,wBAAwB,GACxB,wBAAwB,GACxB,oBAAoB,GACpB,4BAA4B,GAC5B,wBAAwB,CAAC;AAE5B;;GAEG;AACH,oBAAY,mBAAmB,GAAG,YAAY,CAAC"}
|
|
@@ -38,9 +38,11 @@ export declare enum IFUNNY_ERRORS {
|
|
|
38
38
|
INVALID_CLIENT = "invalid_client",
|
|
39
39
|
INVALID_EMAIL = "invalid_email",
|
|
40
40
|
INVALID_GRANT = "invalid_grant",
|
|
41
|
+
NOT_FOUND = "not_found",
|
|
41
42
|
NOT_REPUBLISHED = "not_republished",
|
|
42
43
|
NOT_SMILED = "not_smiled",
|
|
43
44
|
NOT_UNSMILED = "not_unsmiled",
|
|
45
|
+
PERMISSION_DENIED = "permission denied",
|
|
44
46
|
PINNED_LIMIT_EXCEEDED = "profile_pins_to_many_pins_error",
|
|
45
47
|
PUBLISHING_TIMEOUT = "publishing_timeout",
|
|
46
48
|
QUERY_TOO_SHORT = "query_too_short",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_base.d.ts","sourceRoot":"","sources":["../../src/errors/error_base.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CACpC;
|
|
1
|
+
{"version":3,"file":"error_base.d.ts","sourceRoot":"","sources":["../../src/errors/error_base.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,MAAM,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CACpC;AAED,eAAe,YAAY,CAAC;AAE5B;;GAEG;AACH,oBAAY,kBAAkB,GAAG,GAAG,aAAa,EAAE,CAAC;AAEpD;;GAEG;AACH,oBAAY,aAAa;IACxB,mBAAmB,wBAAwB;IAC3C,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;IAC7B,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,oBAAoB,yBAAyB;IAC7C,qBAAqB,8BAA8B;IACnD,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,qBAAqB,oCAAoC;IACzD,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,wBAAwB,6BAA6B;IACrD,qBAAqB,0BAA0B;IAC/C,SAAS,yBAAyB;IAClC,kBAAkB,uBAAuB;IACzC,oBAAoB,yBAAyB;IAC7C,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;CACnC"}
|
package/types/errors/index.d.ts
CHANGED
|
@@ -4,5 +4,8 @@ export * from "./email_exists";
|
|
|
4
4
|
export * from "./error_base";
|
|
5
5
|
export * from "./error";
|
|
6
6
|
export * from "./invalid_email";
|
|
7
|
+
export * from "./invalid_grant";
|
|
8
|
+
export * from "./not_found";
|
|
9
|
+
export * from "./permission_denied";
|
|
7
10
|
export * from "./unauthorized";
|
|
8
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFUNNY_ERRORS, RESTAPIError } from "./error_base";
|
|
2
|
+
export interface RESTAPIErrorInvalidGrant extends RESTAPIError {
|
|
3
|
+
error: IFUNNY_ERRORS.INVALID_GRANT;
|
|
4
|
+
error_description: RESTAPIInvalidGrantMessage;
|
|
5
|
+
status: 401;
|
|
6
|
+
}
|
|
7
|
+
export default RESTAPIErrorInvalidGrant;
|
|
8
|
+
export declare enum INVALID_GRANT {
|
|
9
|
+
TOKEN_EXPIRED = "token is expired"
|
|
10
|
+
}
|
|
11
|
+
declare type RESTAPIInvalidGrantMessage = `${INVALID_GRANT}`;
|
|
12
|
+
//# sourceMappingURL=invalid_grant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalid_grant.d.ts","sourceRoot":"","sources":["../../src/errors/invalid_grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC7D,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC;IACnC,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,MAAM,EAAE,GAAG,CAAC;CACZ;AAED,eAAe,wBAAwB,CAAC;AAExC,oBAAY,aAAa;IACxB,aAAa,qBAAqB;CAClC;AAED,aAAK,0BAA0B,GAAG,GAAG,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IFUNNY_ERRORS, RESTAPIError } from "./error_base";
|
|
2
|
+
export interface RESTAPIErrorNotFound extends RESTAPIError {
|
|
3
|
+
error: IFUNNY_ERRORS.NOT_FOUND;
|
|
4
|
+
error_description: `User with nick ${string} not found` | `Unable to find user with id: ${string}` | `Wrong feed type: ${string}`;
|
|
5
|
+
status: 404;
|
|
6
|
+
}
|
|
7
|
+
export default RESTAPIErrorNotFound;
|
|
8
|
+
//# sourceMappingURL=not_found.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_found.d.ts","sourceRoot":"","sources":["../../src/errors/not_found.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACzD,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC;IAC/B,iBAAiB,EACd,kBAAkB,MAAM,YAAY,GACpC,gCAAgC,MAAM,EAAE,GACxC,oBAAoB,MAAM,EAAE,CAAC;IAChC,MAAM,EAAE,GAAG,CAAC;CACZ;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IFUNNY_ERRORS, RESTAPIError } from "./error_base";
|
|
2
|
+
export interface RESTAPIErrorPermissionDenied extends RESTAPIError {
|
|
3
|
+
error: IFUNNY_ERRORS.PERMISSION_DENIED;
|
|
4
|
+
error_description: RESTAPIPermissionDeniedMessage;
|
|
5
|
+
status: 403;
|
|
6
|
+
}
|
|
7
|
+
export default RESTAPIErrorPermissionDenied;
|
|
8
|
+
export declare enum PERMISSION_DENIED {
|
|
9
|
+
DENIED = "Permission denied"
|
|
10
|
+
}
|
|
11
|
+
declare type RESTAPIPermissionDeniedMessage = `${PERMISSION_DENIED}`;
|
|
12
|
+
//# sourceMappingURL=permission_denied.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission_denied.d.ts","sourceRoot":"","sources":["../../src/errors/permission_denied.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,WAAW,4BAA6B,SAAQ,YAAY;IACjE,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC;IACvC,iBAAiB,EAAE,8BAA8B,CAAC;IAClD,MAAM,EAAE,GAAG,CAAC;CACZ;AAED,eAAe,4BAA4B,CAAC;AAE5C,oBAAY,iBAAiB;IAC5B,MAAM,sBAAsB;CAC5B;AAED,aAAK,8BAA8B,GAAG,GAAG,iBAAiB,EAAE,CAAC"}
|