@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.
Files changed (133) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts +2 -1
  3. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts.map +1 -1
  4. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js +5 -1
  5. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js.map +1 -1
  6. package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +4 -2
  7. package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -1
  8. package/lib/cjs/http/adapter/InversifyHttpAdapter.js +30 -46
  9. package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -1
  10. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.d.ts +6 -0
  11. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.d.ts.map +1 -0
  12. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.js +12 -0
  13. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.js.map +1 -0
  14. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.spec.d.ts +2 -0
  15. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.spec.d.ts.map +1 -0
  16. package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts +1 -1
  17. package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts.map +1 -1
  18. package/lib/cjs/http/calculations/buildInterceptedHandler.js +2 -2
  19. package/lib/cjs/http/calculations/buildInterceptedHandler.js.map +1 -1
  20. package/lib/cjs/http/calculations/getErrorFilterForError.d.ts +4 -0
  21. package/lib/cjs/http/calculations/getErrorFilterForError.d.ts.map +1 -0
  22. package/lib/cjs/http/calculations/getErrorFilterForError.js +30 -0
  23. package/lib/cjs/http/calculations/getErrorFilterForError.js.map +1 -0
  24. package/lib/cjs/http/calculations/getErrorFilterForError.spec.d.ts +2 -0
  25. package/lib/cjs/http/calculations/getErrorFilterForError.spec.d.ts.map +1 -0
  26. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts +2 -1
  27. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts.map +1 -1
  28. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js +2 -2
  29. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js.map +1 -1
  30. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts +2 -1
  31. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts.map +1 -1
  32. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js +2 -2
  33. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js.map +1 -1
  34. package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts +2 -1
  35. package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts.map +1 -1
  36. package/lib/cjs/httpResponse/models/ConflictHttpResponse.js +2 -2
  37. package/lib/cjs/httpResponse/models/ConflictHttpResponse.js.map +1 -1
  38. package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts +3 -7
  39. package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts.map +1 -1
  40. package/lib/cjs/httpResponse/models/ErrorHttpResponse.js +2 -10
  41. package/lib/cjs/httpResponse/models/ErrorHttpResponse.js.map +1 -1
  42. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts +2 -1
  43. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts.map +1 -1
  44. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js +2 -2
  45. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js.map +1 -1
  46. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts +2 -1
  47. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts.map +1 -1
  48. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js +2 -2
  49. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js.map +1 -1
  50. package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts +2 -1
  51. package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts.map +1 -1
  52. package/lib/cjs/httpResponse/models/GoneHttpResponse.js +2 -2
  53. package/lib/cjs/httpResponse/models/GoneHttpResponse.js.map +1 -1
  54. package/lib/cjs/httpResponse/models/HttpResponse.d.ts +1 -1
  55. package/lib/cjs/httpResponse/models/HttpResponse.d.ts.map +1 -1
  56. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts +2 -1
  57. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -1
  58. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js +2 -2
  59. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js.map +1 -1
  60. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts +2 -1
  61. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts.map +1 -1
  62. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js +2 -2
  63. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js.map +1 -1
  64. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts +2 -1
  65. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts.map +1 -1
  66. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js +2 -2
  67. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js.map +1 -1
  68. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts +2 -1
  69. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts.map +1 -1
  70. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js +2 -2
  71. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js.map +1 -1
  72. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts +2 -1
  73. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts.map +1 -1
  74. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js +2 -2
  75. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js.map +1 -1
  76. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts +2 -1
  77. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts.map +1 -1
  78. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js +2 -2
  79. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js.map +1 -1
  80. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts +2 -1
  81. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts.map +1 -1
  82. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js +2 -2
  83. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js.map +1 -1
  84. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts +2 -1
  85. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts.map +1 -1
  86. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js +2 -2
  87. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js.map +1 -1
  88. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts +2 -1
  89. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts.map +1 -1
  90. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js +2 -2
  91. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js.map +1 -1
  92. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts +2 -1
  93. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts.map +1 -1
  94. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js +2 -2
  95. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js.map +1 -1
  96. package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts +1 -5
  97. package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts.map +1 -1
  98. package/lib/cjs/httpResponse/models/SuccessHttpResponse.js +0 -8
  99. package/lib/cjs/httpResponse/models/SuccessHttpResponse.js.map +1 -1
  100. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts +2 -1
  101. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts.map +1 -1
  102. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js +2 -2
  103. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js.map +1 -1
  104. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts +2 -1
  105. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts.map +1 -1
  106. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js +2 -2
  107. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js.map +1 -1
  108. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts +2 -1
  109. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts.map +1 -1
  110. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js +3 -3
  111. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js.map +1 -1
  112. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts +2 -1
  113. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts.map +1 -1
  114. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js +2 -2
  115. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js.map +1 -1
  116. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts +2 -1
  117. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts.map +1 -1
  118. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js +2 -2
  119. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js.map +1 -1
  120. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts +2 -1
  121. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts.map +1 -1
  122. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js +2 -2
  123. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js.map +1 -1
  124. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts +2 -1
  125. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts.map +1 -1
  126. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js +2 -2
  127. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js.map +1 -1
  128. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts +1 -1
  129. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts.map +1 -1
  130. package/lib/esm/index.d.ts +24 -29
  131. package/lib/esm/index.js +1 -1
  132. package/lib/esm/index.js.map +1 -1
  133. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"ConflictHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/ConflictHttpResponse.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD,YACE,OAAgB,EAChB,QAAgB,UAAU,EAC1B,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAC/D,CAAC;CACF;AARD,oDAQC"}
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 [isErrorHttpResponse]: true;
9
- readonly body?: object | string | number | boolean | Stream;
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;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EACL,YAAY,EACZ,cAAc,IAAI,oBAAoB,EACvC,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,mBAAmB,EAAE,OAAO,MAEjC,CAAC;AAEF,qBAAa,iBAAkB,SAAQ,KAAM,YAAW,YAAY;aAMhD,UAAU,EAAE,cAAc;IAL5C,SAAgB,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAC7C,SAAgB,CAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC;IAC5C,SAAgB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;gBAGjD,UAAU,EAAE,cAAc,EAC1C,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,YAAY;WASf,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB;CAM7D"}
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, error, message, errorOptions) {
9
+ constructor(statusCode, body, message, errorOptions) {
13
10
  super(message, errorOptions);
14
11
  this.statusCode = statusCode;
15
- this.body = { error, message, statusCode };
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,mEAAgE;AAChE,iDAGwB;AAExB,MAAM,mBAAmB,GAAkB,MAAM,CAAC,GAAG,CACnD,0CAA0C,CAC3C,CAAC;AAEF,MAAa,iBAAkB,SAAQ,KAAK;IAMxB;IALF,CAAC,6BAAoB,CAAC,CAAO;IAC7B,CAAC,mBAAmB,CAAC,CAAO;IAC5B,IAAI,CAA+C;IAEnE,YACkB,UAA0B,EAC1C,KAAa,EACb,OAAgB,EAChB,YAA2B;QAE3B,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QALb,eAAU,GAAV,UAAU,CAAgB;QAO1C,IAAI,CAAC,IAAI,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;QAC3C,IAAI,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC;QACjC,IAAI,CAAC,6BAAoB,CAAC,GAAG,IAAI,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,OAAO,CACL,IAAA,+BAAc,EAAC,KAAK,CAAC;YACpB,KAAoC,CAAC,mBAAmB,CAAC,KAAK,IAAI,CACpE,CAAC;IACJ,CAAC;CACF;AAxBD,8CAwBC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,qBAAsB,SAAQ,iBAAiB;gBAExD,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAoB,EAC3B,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Forbidden', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.FORBIDDEN, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,qBAAsB,SAAQ,qCAAiB;IAC1D,YACE,OAAgB,EAChB,QAAgB,WAAW,EAC3B,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;CACF;AARD,sDAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,iBAAiB;gBAE7D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAA0B,EACjC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Gateway Timeout', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.GATEWAY_TIMEOUT, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D,YACE,OAAgB,EAChB,QAAgB,iBAAiB,EACjC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACtE,CAAC;CACF;AARD,gEAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,gBAAiB,SAAQ,iBAAiB;gBAEnD,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAe,EACtB,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Gone', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.GONE, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,gBAAiB,SAAQ,qCAAiB;IACrD,YACE,OAAgB,EAChB,QAAgB,MAAM,EACtB,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAC3D,CAAC;CACF;AARD,4CAQC"}
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,4 +1,4 @@
1
- import { Stream } from 'node:stream';
1
+ import type { Stream } from 'node:stream';
2
2
  import { HttpStatusCode } from '../../http/models/HttpStatusCode';
3
3
  export declare const isHttpResponse: unique symbol;
4
4
  export interface HttpResponse {
@@ -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;AAErC,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
+ {"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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,mCAAoC,SAAQ,iBAAiB;gBAEtE,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAqC,EAC5C,YAAY,CAAC,EAAE,YAAY;CAS9B"}
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(message, error = 'HTTP Version Not Supported', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.HTTP_VERSION_NOT_SUPPORTED, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,mCAAoC,SAAQ,qCAAiB;IACxE,YACE,OAAgB,EAChB,QAAgB,4BAA4B,EAC5C,YAA2B;QAE3B,KAAK,CACH,+BAAc,CAAC,0BAA0B,EACzC,KAAK,EACL,OAAO,EACP,YAAY,CACb,CAAC;IACJ,CAAC;CACF;AAbD,kFAaC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,+BAAgC,SAAQ,iBAAiB;gBAElE,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAA+B,EACtC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Insufficient Storage', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.INSUFFICIENT_STORAGE, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,+BAAgC,SAAQ,qCAAiB;IACpE,YACE,OAAgB,EAChB,QAAgB,sBAAsB,EACtC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,oBAAoB,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;CACF;AARD,0EAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,+BAAgC,SAAQ,iBAAiB;gBAElE,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAgC,EACvC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Internal Server Error', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.INTERNAL_SERVER_ERROR, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,+BAAgC,SAAQ,qCAAiB;IACpE,YACE,OAAgB,EAChB,QAAgB,uBAAuB,EACvC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAC5E,CAAC;CACF;AARD,0EAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,iBAAiB;gBAE3D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAwB,EAC/B,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Loop Detected', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.LOOP_DETECTED, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,wBAAyB,SAAQ,qCAAiB;IAC7D,YACE,OAAgB,EAChB,QAAgB,eAAe,EAC/B,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACpE,CAAC;CACF;AARD,4DAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,4BAA6B,SAAQ,iBAAiB;gBAE/D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAA6B,EACpC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Method Not Allowed', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.METHOD_NOT_ALLOWED, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,4BAA6B,SAAQ,qCAAiB;IACjE,YACE,OAAgB,EAChB,QAAgB,oBAAoB,EACpC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACzE,CAAC;CACF;AARD,oEAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,yBAA0B,SAAQ,iBAAiB;gBAE5D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAyB,EAChC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Not Acceptable', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.NOT_ACCEPTABLE, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,yBAA0B,SAAQ,qCAAiB;IAC9D,YACE,OAAgB,EAChB,QAAgB,gBAAgB,EAChC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACrE,CAAC;CACF;AARD,8DAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,oBAAqB,SAAQ,iBAAiB;gBAEvD,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAoB,EAC3B,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Not Found', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.NOT_FOUND, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,oBAAqB,SAAQ,qCAAiB;IACzD,YACE,OAAgB,EAChB,QAAgB,WAAW,EAC3B,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;CACF;AARD,oDAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,0BAA2B,SAAQ,iBAAiB;gBAE7D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAA0B,EACjC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Not Implemented', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.NOT_IMPLEMENTED, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,0BAA2B,SAAQ,qCAAiB;IAC/D,YACE,OAAgB,EAChB,QAAgB,iBAAiB,EACjC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACtE,CAAC;CACF;AARD,gEAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,2BAA4B,SAAQ,iBAAiB;gBAE9D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAA2B,EAClC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Payment Required', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.PAYMENT_REQUIRED, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,2BAA4B,SAAQ,qCAAiB;IAChE,YACE,OAAgB,EAChB,QAAgB,kBAAkB,EAClC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACvE,CAAC;CACF;AARD,kEAQC"}
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(message?: string, error?: string, errorOptions?: ErrorOptions);
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":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,8BAA+B,SAAQ,iBAAiB;gBAEjE,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAA8B,EACrC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
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(message, error = 'Service Unavailable', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.SERVICE_UNAVAILABLE, error, message, errorOptions);
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":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,8BAA+B,SAAQ,qCAAiB;IACnE,YACE,OAAgB,EAChB,QAAgB,qBAAqB,EACrC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,mBAAmB,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IAC1E,CAAC;CACF;AARD,wEAQC"}
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;AAErC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EACL,YAAY,EACZ,cAAc,IAAI,oBAAoB,EACvC,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,qBAAqB,EAAE,OAAO,MAEnC,CAAC;AAEF,qBAAa,mBAAoB,YAAW,YAAY;aAKpC,UAAU,EAAE,cAAc;aAC1B,IAAI,CAAC,GAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM;IAL7D,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;IAC7B,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC;gBAGnB,UAAU,EAAE,cAAc,EAC1B,IAAI,CAAC,GAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,aAAA;WAMtD,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB;CAM/D"}
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;