@inversifyjs/http-core 3.3.0 → 4.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 +42 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts +2 -1
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts.map +1 -1
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js +5 -1
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js.map +1 -1
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +4 -2
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -1
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js +30 -46
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -1
- package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.d.ts +6 -0
- package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.js +12 -0
- package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.js.map +1 -0
- package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts +1 -1
- package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts.map +1 -1
- package/lib/cjs/http/calculations/buildInterceptedHandler.js +2 -2
- package/lib/cjs/http/calculations/buildInterceptedHandler.js.map +1 -1
- package/lib/cjs/http/calculations/getErrorFilterForError.d.ts +4 -0
- package/lib/cjs/http/calculations/getErrorFilterForError.d.ts.map +1 -0
- package/lib/cjs/http/calculations/getErrorFilterForError.js +30 -0
- package/lib/cjs/http/calculations/getErrorFilterForError.js.map +1 -0
- package/lib/cjs/http/calculations/getErrorFilterForError.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/getErrorFilterForError.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts +3 -7
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.js +2 -10
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/GoneHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/GoneHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/HttpResponse.d.ts +1 -1
- package/lib/cjs/httpResponse/models/HttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts +1 -5
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.js +0 -8
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js.map +1 -1
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts +2 -1
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts.map +1 -1
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js +2 -2
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts +2 -1
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js +3 -3
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts +2 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js +2 -2
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts +2 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js +2 -2
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts +2 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js +2 -2
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts +2 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts.map +1 -1
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js +2 -2
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js.map +1 -1
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts +1 -1
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts.map +1 -1
- package/lib/esm/index.d.ts +24 -29
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConflictHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ConflictHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ConflictHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ConflictHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD,YACE,IAA8D,EAC9D,eAAuB,UAAU,EACjC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACnE,CAAC;CACF;AARD,oDAQC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { Stream } from 'node:stream';
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
2
2
|
import { HttpStatusCode } from '../../http/models/HttpStatusCode';
|
|
3
3
|
import { HttpResponse, isHttpResponse as isHttpResponseSymbol } from './HttpResponse';
|
|
4
|
-
declare const isErrorHttpResponse: unique symbol;
|
|
5
4
|
export declare class ErrorHttpResponse extends Error implements HttpResponse {
|
|
6
5
|
readonly statusCode: HttpStatusCode;
|
|
7
6
|
readonly [isHttpResponseSymbol]: true;
|
|
8
|
-
readonly
|
|
9
|
-
|
|
10
|
-
constructor(statusCode: HttpStatusCode, error: string, message?: string, errorOptions?: ErrorOptions);
|
|
11
|
-
static is(value: unknown): value is ErrorHttpResponse;
|
|
7
|
+
readonly body?: object | string | number | boolean | Stream | undefined;
|
|
8
|
+
constructor(statusCode: HttpStatusCode, body?: object | string | number | boolean | Stream | undefined, message?: string | undefined, errorOptions?: ErrorOptions | undefined);
|
|
12
9
|
}
|
|
13
|
-
export {};
|
|
14
10
|
//# sourceMappingURL=ErrorHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/ErrorHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/ErrorHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,cAAc,IAAI,oBAAoB,EACvC,MAAM,gBAAgB,CAAC;AAExB,qBAAa,iBAAkB,SAAQ,KAAM,YAAW,YAAY;aAWhD,UAAU,EAAE,cAAc;IAV5C,SAAgB,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAC7C,SAAgB,IAAI,CAAC,EACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,CAAC;gBAGI,UAAU,EAAE,cAAc,EAC1C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS;CAO1C"}
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ErrorHttpResponse = void 0;
|
|
4
|
-
const isHttpResponse_1 = require("../calculations/isHttpResponse");
|
|
5
4
|
const HttpResponse_1 = require("./HttpResponse");
|
|
6
|
-
const isErrorHttpResponse = Symbol.for('@inversifyjs/http-core/ErrorHttpResponse');
|
|
7
5
|
class ErrorHttpResponse extends Error {
|
|
8
6
|
statusCode;
|
|
9
7
|
[HttpResponse_1.isHttpResponse];
|
|
10
|
-
[isErrorHttpResponse];
|
|
11
8
|
body;
|
|
12
|
-
constructor(statusCode,
|
|
9
|
+
constructor(statusCode, body, message, errorOptions) {
|
|
13
10
|
super(message, errorOptions);
|
|
14
11
|
this.statusCode = statusCode;
|
|
15
|
-
this.body =
|
|
16
|
-
this[isErrorHttpResponse] = true;
|
|
12
|
+
this.body = body;
|
|
17
13
|
this[HttpResponse_1.isHttpResponse] = true;
|
|
18
14
|
}
|
|
19
|
-
static is(value) {
|
|
20
|
-
return ((0, isHttpResponse_1.isHttpResponse)(value) &&
|
|
21
|
-
value[isErrorHttpResponse] === true);
|
|
22
|
-
}
|
|
23
15
|
}
|
|
24
16
|
exports.ErrorHttpResponse = ErrorHttpResponse;
|
|
25
17
|
//# sourceMappingURL=ErrorHttpResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ErrorHttpResponse.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"ErrorHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ErrorHttpResponse.ts"],"names":[],"mappings":";;;AAGA,iDAGwB;AAExB,MAAa,iBAAkB,SAAQ,KAAK;IAWxB;IAVF,CAAC,6BAAoB,CAAC,CAAO;IAC7B,IAAI,CAMN;IAEd,YACkB,UAA0B,EAC1C,IAA8D,EAC9D,OAA4B,EAC5B,YAAuC;QAEvC,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QALb,eAAU,GAAV,UAAU,CAAgB;QAO1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,6BAAoB,CAAC,GAAG,IAAI,CAAC;IACpC,CAAC;CACF;AArBD,8CAqBC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class ForbiddenHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=ForbiddenHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForbiddenHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/ForbiddenHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ForbiddenHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/ForbiddenHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,qBAAsB,SAAQ,iBAAiB;gBAExD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAoB,EAClC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.ForbiddenHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class ForbiddenHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.FORBIDDEN,
|
|
7
|
+
constructor(body, errorMessage = 'Forbidden', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.FORBIDDEN, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.ForbiddenHttpResponse = ForbiddenHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForbiddenHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ForbiddenHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ForbiddenHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ForbiddenHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D,YACE,IAA8D,EAC9D,eAAuB,WAAW,EAClC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACpE,CAAC;CACF;AARD,sDAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class GatewayTimeoutHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=GatewayTimeoutHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayTimeoutHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/GatewayTimeoutHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GatewayTimeoutHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/GatewayTimeoutHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,iBAAiB;gBAE7D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAA0B,EACxC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.GatewayTimeoutHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class GatewayTimeoutHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.GATEWAY_TIMEOUT,
|
|
7
|
+
constructor(body, errorMessage = 'Gateway Timeout', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.GATEWAY_TIMEOUT, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.GatewayTimeoutHttpResponse = GatewayTimeoutHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayTimeoutHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/GatewayTimeoutHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"GatewayTimeoutHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/GatewayTimeoutHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D,YACE,IAA8D,EAC9D,eAAuB,iBAAiB,EACxC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAC1E,CAAC;CACF;AARD,gEAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class GoneHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=GoneHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoneHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/GoneHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GoneHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/GoneHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,gBAAiB,SAAQ,iBAAiB;gBAEnD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAe,EAC7B,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.GoneHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class GoneHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.GONE,
|
|
7
|
+
constructor(body, errorMessage = 'Gone', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.GONE, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.GoneHttpResponse = GoneHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoneHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/GoneHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"GoneHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/GoneHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD,YACE,IAA8D,EAC9D,eAAuB,MAAM,EAC7B,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAC/D,CAAC;CACF;AARD,4CAQC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/HttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"HttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/HttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,eAAO,MAAM,cAAc,EAAE,OAAO,MAEnC,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IACvB,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;CAChE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class HttpVersionNotSupportedHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=HttpVersionNotSupportedHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpVersionNotSupportedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/HttpVersionNotSupportedHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpVersionNotSupportedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/HttpVersionNotSupportedHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,mCAAoC,SAAQ,iBAAiB;gBAEtE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAqC,EACnD,YAAY,CAAC,EAAE,YAAY;CAS9B"}
|
|
@@ -4,8 +4,8 @@ exports.HttpVersionNotSupportedHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class HttpVersionNotSupportedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.HTTP_VERSION_NOT_SUPPORTED,
|
|
7
|
+
constructor(body, errorMessage = 'HTTP Version Not Supported', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.HTTP_VERSION_NOT_SUPPORTED, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.HttpVersionNotSupportedHttpResponse = HttpVersionNotSupportedHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpVersionNotSupportedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/HttpVersionNotSupportedHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"HttpVersionNotSupportedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/HttpVersionNotSupportedHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,mCAAoC,SAAQ,qCAAiB;IACxE,YACE,IAA8D,EAC9D,eAAuB,4BAA4B,EACnD,YAA2B;QAE3B,KAAK,CACH,+BAAc,CAAC,0BAA0B,EACzC,IAAI,EACJ,YAAY,EACZ,YAAY,CACb,CAAC;IACJ,CAAC;CACF;AAbD,kFAaC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class InsufficientStorageHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=InsufficientStorageHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsufficientStorageHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/InsufficientStorageHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsufficientStorageHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/InsufficientStorageHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,+BAAgC,SAAQ,iBAAiB;gBAElE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAA+B,EAC7C,YAAY,CAAC,EAAE,YAAY;CAS9B"}
|
|
@@ -4,8 +4,8 @@ exports.InsufficientStorageHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class InsufficientStorageHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.INSUFFICIENT_STORAGE,
|
|
7
|
+
constructor(body, errorMessage = 'Insufficient Storage', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.INSUFFICIENT_STORAGE, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.InsufficientStorageHttpResponse = InsufficientStorageHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsufficientStorageHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/InsufficientStorageHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"InsufficientStorageHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/InsufficientStorageHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,+BAAgC,SAAQ,qCAAiB;IACpE,YACE,IAA8D,EAC9D,eAAuB,sBAAsB,EAC7C,YAA2B;QAE3B,KAAK,CACH,+BAAc,CAAC,oBAAoB,EACnC,IAAI,EACJ,YAAY,EACZ,YAAY,CACb,CAAC;IACJ,CAAC;CACF;AAbD,0EAaC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class InternalServerErrorHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=InternalServerErrorHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalServerErrorHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/InternalServerErrorHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InternalServerErrorHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/InternalServerErrorHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,+BAAgC,SAAQ,iBAAiB;gBAElE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAgC,EAC9C,YAAY,CAAC,EAAE,YAAY;CAS9B"}
|
|
@@ -4,8 +4,8 @@ exports.InternalServerErrorHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class InternalServerErrorHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.INTERNAL_SERVER_ERROR,
|
|
7
|
+
constructor(body, errorMessage = 'Internal Server Error', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.INTERNAL_SERVER_ERROR, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.InternalServerErrorHttpResponse = InternalServerErrorHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalServerErrorHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/InternalServerErrorHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"InternalServerErrorHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/InternalServerErrorHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,+BAAgC,SAAQ,qCAAiB;IACpE,YACE,IAA8D,EAC9D,eAAuB,uBAAuB,EAC9C,YAA2B;QAE3B,KAAK,CACH,+BAAc,CAAC,qBAAqB,EACpC,IAAI,EACJ,YAAY,EACZ,YAAY,CACb,CAAC;IACJ,CAAC;CACF;AAbD,0EAaC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class LoopDetectedHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=LoopDetectedHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoopDetectedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/LoopDetectedHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LoopDetectedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/LoopDetectedHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,iBAAiB;gBAE3D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAwB,EACtC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.LoopDetectedHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class LoopDetectedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.LOOP_DETECTED,
|
|
7
|
+
constructor(body, errorMessage = 'Loop Detected', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.LOOP_DETECTED, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.LoopDetectedHttpResponse = LoopDetectedHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoopDetectedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/LoopDetectedHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LoopDetectedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/LoopDetectedHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,wBAAyB,SAAQ,qCAAiB;IAC7D,YACE,IAA8D,EAC9D,eAAuB,eAAe,EACtC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACxE,CAAC;CACF;AARD,4DAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class MethodNotAllowedHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=MethodNotAllowedHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MethodNotAllowedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/MethodNotAllowedHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MethodNotAllowedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/MethodNotAllowedHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,4BAA6B,SAAQ,iBAAiB;gBAE/D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAA6B,EAC3C,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.MethodNotAllowedHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class MethodNotAllowedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.METHOD_NOT_ALLOWED,
|
|
7
|
+
constructor(body, errorMessage = 'Method Not Allowed', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.METHOD_NOT_ALLOWED, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.MethodNotAllowedHttpResponse = MethodNotAllowedHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MethodNotAllowedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/MethodNotAllowedHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MethodNotAllowedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/MethodNotAllowedHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,4BAA6B,SAAQ,qCAAiB;IACjE,YACE,IAA8D,EAC9D,eAAuB,oBAAoB,EAC3C,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,kBAAkB,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAC7E,CAAC;CACF;AARD,oEAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class NotAcceptableHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=NotAcceptableHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotAcceptableHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotAcceptableHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotAcceptableHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotAcceptableHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,yBAA0B,SAAQ,iBAAiB;gBAE5D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAyB,EACvC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.NotAcceptableHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class NotAcceptableHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.NOT_ACCEPTABLE,
|
|
7
|
+
constructor(body, errorMessage = 'Not Acceptable', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.NOT_ACCEPTABLE, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.NotAcceptableHttpResponse = NotAcceptableHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotAcceptableHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotAcceptableHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"NotAcceptableHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotAcceptableHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,yBAA0B,SAAQ,qCAAiB;IAC9D,YACE,IAA8D,EAC9D,eAAuB,gBAAgB,EACvC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACzE,CAAC;CACF;AARD,8DAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class NotFoundHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=NotFoundHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotFoundHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotFoundHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotFoundHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotFoundHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,oBAAqB,SAAQ,iBAAiB;gBAEvD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAAoB,EAClC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.NotFoundHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class NotFoundHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.NOT_FOUND,
|
|
7
|
+
constructor(body, errorMessage = 'Not Found', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.NOT_FOUND, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.NotFoundHttpResponse = NotFoundHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotFoundHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotFoundHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"NotFoundHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotFoundHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD,YACE,IAA8D,EAC9D,eAAuB,WAAW,EAClC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACpE,CAAC;CACF;AARD,oDAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class NotImplementedHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=NotImplementedHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotImplementedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotImplementedHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotImplementedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotImplementedHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,iBAAiB;gBAE7D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAA0B,EACxC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.NotImplementedHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class NotImplementedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.NOT_IMPLEMENTED,
|
|
7
|
+
constructor(body, errorMessage = 'Not Implemented', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.NOT_IMPLEMENTED, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.NotImplementedHttpResponse = NotImplementedHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotImplementedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotImplementedHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"NotImplementedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/NotImplementedHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D,YACE,IAA8D,EAC9D,eAAuB,iBAAiB,EACxC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,eAAe,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAC1E,CAAC;CACF;AARD,gEAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class PaymentRequiredHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=PaymentRequiredHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentRequiredHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/PaymentRequiredHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentRequiredHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/PaymentRequiredHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,2BAA4B,SAAQ,iBAAiB;gBAE9D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAA2B,EACzC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.PaymentRequiredHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class PaymentRequiredHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.PAYMENT_REQUIRED,
|
|
7
|
+
constructor(body, errorMessage = 'Payment Required', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.PAYMENT_REQUIRED, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.PaymentRequiredHttpResponse = PaymentRequiredHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentRequiredHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/PaymentRequiredHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PaymentRequiredHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/PaymentRequiredHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,2BAA4B,SAAQ,qCAAiB;IAChE,YACE,IAA8D,EAC9D,eAAuB,kBAAkB,EACzC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;CACF;AARD,kEAQC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
1
2
|
import { ErrorHttpResponse } from './ErrorHttpResponse';
|
|
2
3
|
export declare class ServiceUnavailableHttpResponse extends ErrorHttpResponse {
|
|
3
|
-
constructor(
|
|
4
|
+
constructor(body?: object | string | number | boolean | Stream | undefined, errorMessage?: string, errorOptions?: ErrorOptions);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=ServiceUnavailableHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceUnavailableHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/ServiceUnavailableHttpResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServiceUnavailableHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/ServiceUnavailableHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,8BAA+B,SAAQ,iBAAiB;gBAEjE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,EAC9D,YAAY,GAAE,MAA8B,EAC5C,YAAY,CAAC,EAAE,YAAY;CAI9B"}
|
|
@@ -4,8 +4,8 @@ exports.ServiceUnavailableHttpResponse = void 0;
|
|
|
4
4
|
const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
|
|
5
5
|
const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
|
|
6
6
|
class ServiceUnavailableHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
|
|
7
|
-
constructor(
|
|
8
|
-
super(HttpStatusCode_1.HttpStatusCode.SERVICE_UNAVAILABLE,
|
|
7
|
+
constructor(body, errorMessage = 'Service Unavailable', errorOptions) {
|
|
8
|
+
super(HttpStatusCode_1.HttpStatusCode.SERVICE_UNAVAILABLE, body, errorMessage, errorOptions);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.ServiceUnavailableHttpResponse = ServiceUnavailableHttpResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceUnavailableHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ServiceUnavailableHttpResponse.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ServiceUnavailableHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ServiceUnavailableHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,8BAA+B,SAAQ,qCAAiB;IACnE,YACE,IAA8D,EAC9D,eAAuB,qBAAqB,EAC5C,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,mBAAmB,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IAC9E,CAAC;CACF;AARD,wEAQC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { Stream } from 'node:stream';
|
|
1
|
+
import type { Stream } from 'node:stream';
|
|
2
2
|
import { HttpStatusCode } from '../../http/models/HttpStatusCode';
|
|
3
3
|
import { HttpResponse, isHttpResponse as isHttpResponseSymbol } from '../models/HttpResponse';
|
|
4
|
-
declare const isSuccessHttpResponse: unique symbol;
|
|
5
4
|
export declare class SuccessHttpResponse implements HttpResponse {
|
|
6
5
|
readonly statusCode: HttpStatusCode;
|
|
7
6
|
readonly body?: (object | string | number | boolean | Stream) | undefined;
|
|
8
7
|
[isHttpResponseSymbol]: true;
|
|
9
|
-
[isSuccessHttpResponse]: true;
|
|
10
8
|
constructor(statusCode: HttpStatusCode, body?: (object | string | number | boolean | Stream) | undefined);
|
|
11
|
-
static is(value: unknown): value is SuccessHttpResponse;
|
|
12
9
|
}
|
|
13
|
-
export {};
|
|
14
10
|
//# sourceMappingURL=SuccessHttpResponse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/SuccessHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SuccessHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/SuccessHttpResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,cAAc,IAAI,oBAAoB,EACvC,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,mBAAoB,YAAW,YAAY;aAIpC,UAAU,EAAE,cAAc;aAC1B,IAAI,CAAC,GAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM;IAJ7D,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;gBAGlB,UAAU,EAAE,cAAc,EAC1B,IAAI,CAAC,GAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,aAAA;CAIrE"}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SuccessHttpResponse = void 0;
|
|
4
|
-
const isHttpResponse_1 = require("../calculations/isHttpResponse");
|
|
5
4
|
const HttpResponse_1 = require("../models/HttpResponse");
|
|
6
|
-
const isSuccessHttpResponse = Symbol.for('@inversifyjs/http-core/SuccessHttpResponse');
|
|
7
5
|
class SuccessHttpResponse {
|
|
8
6
|
statusCode;
|
|
9
7
|
body;
|
|
10
8
|
[HttpResponse_1.isHttpResponse];
|
|
11
|
-
[isSuccessHttpResponse];
|
|
12
9
|
constructor(statusCode, body) {
|
|
13
10
|
this.statusCode = statusCode;
|
|
14
11
|
this.body = body;
|
|
15
12
|
this[HttpResponse_1.isHttpResponse] = true;
|
|
16
|
-
this[isSuccessHttpResponse] = true;
|
|
17
|
-
}
|
|
18
|
-
static is(value) {
|
|
19
|
-
return ((0, isHttpResponse_1.isHttpResponse)(value) &&
|
|
20
|
-
value[isSuccessHttpResponse] === true);
|
|
21
13
|
}
|
|
22
14
|
}
|
|
23
15
|
exports.SuccessHttpResponse = SuccessHttpResponse;
|