@inversifyjs/http-core 3.3.0 → 4.0.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 (126) hide show
  1. package/CHANGELOG.md +32 -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.map +1 -1
  7. package/lib/cjs/http/adapter/InversifyHttpAdapter.js +18 -34
  8. package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -1
  9. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.d.ts +6 -0
  10. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.d.ts.map +1 -0
  11. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.js +12 -0
  12. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.js.map +1 -0
  13. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.spec.d.ts +2 -0
  14. package/lib/cjs/http/calculations/buildHttpResponseErrorFilter.spec.d.ts.map +1 -0
  15. package/lib/cjs/http/calculations/getErrorFilterForError.d.ts +4 -0
  16. package/lib/cjs/http/calculations/getErrorFilterForError.d.ts.map +1 -0
  17. package/lib/cjs/http/calculations/getErrorFilterForError.js +30 -0
  18. package/lib/cjs/http/calculations/getErrorFilterForError.js.map +1 -0
  19. package/lib/cjs/http/calculations/getErrorFilterForError.spec.d.ts +2 -0
  20. package/lib/cjs/http/calculations/getErrorFilterForError.spec.d.ts.map +1 -0
  21. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts +2 -1
  22. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts.map +1 -1
  23. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js +2 -2
  24. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js.map +1 -1
  25. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts +2 -1
  26. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts.map +1 -1
  27. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js +2 -2
  28. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js.map +1 -1
  29. package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts +2 -1
  30. package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts.map +1 -1
  31. package/lib/cjs/httpResponse/models/ConflictHttpResponse.js +2 -2
  32. package/lib/cjs/httpResponse/models/ConflictHttpResponse.js.map +1 -1
  33. package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts +3 -7
  34. package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts.map +1 -1
  35. package/lib/cjs/httpResponse/models/ErrorHttpResponse.js +2 -10
  36. package/lib/cjs/httpResponse/models/ErrorHttpResponse.js.map +1 -1
  37. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts +2 -1
  38. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts.map +1 -1
  39. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js +2 -2
  40. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js.map +1 -1
  41. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts +2 -1
  42. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts.map +1 -1
  43. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js +2 -2
  44. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js.map +1 -1
  45. package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts +2 -1
  46. package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts.map +1 -1
  47. package/lib/cjs/httpResponse/models/GoneHttpResponse.js +2 -2
  48. package/lib/cjs/httpResponse/models/GoneHttpResponse.js.map +1 -1
  49. package/lib/cjs/httpResponse/models/HttpResponse.d.ts +1 -1
  50. package/lib/cjs/httpResponse/models/HttpResponse.d.ts.map +1 -1
  51. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts +2 -1
  52. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -1
  53. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js +2 -2
  54. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js.map +1 -1
  55. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts +2 -1
  56. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts.map +1 -1
  57. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js +2 -2
  58. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js.map +1 -1
  59. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts +2 -1
  60. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts.map +1 -1
  61. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js +2 -2
  62. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js.map +1 -1
  63. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts +2 -1
  64. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts.map +1 -1
  65. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js +2 -2
  66. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js.map +1 -1
  67. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts +2 -1
  68. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts.map +1 -1
  69. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js +2 -2
  70. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js.map +1 -1
  71. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts +2 -1
  72. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts.map +1 -1
  73. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js +2 -2
  74. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js.map +1 -1
  75. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts +2 -1
  76. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts.map +1 -1
  77. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js +2 -2
  78. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js.map +1 -1
  79. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts +2 -1
  80. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts.map +1 -1
  81. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js +2 -2
  82. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js.map +1 -1
  83. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts +2 -1
  84. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts.map +1 -1
  85. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js +2 -2
  86. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js.map +1 -1
  87. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts +2 -1
  88. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts.map +1 -1
  89. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js +2 -2
  90. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js.map +1 -1
  91. package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts +1 -5
  92. package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts.map +1 -1
  93. package/lib/cjs/httpResponse/models/SuccessHttpResponse.js +0 -8
  94. package/lib/cjs/httpResponse/models/SuccessHttpResponse.js.map +1 -1
  95. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts +2 -1
  96. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts.map +1 -1
  97. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js +2 -2
  98. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js.map +1 -1
  99. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts +2 -1
  100. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts.map +1 -1
  101. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js +2 -2
  102. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js.map +1 -1
  103. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts +2 -1
  104. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts.map +1 -1
  105. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js +3 -3
  106. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js.map +1 -1
  107. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts +2 -1
  108. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts.map +1 -1
  109. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js +2 -2
  110. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js.map +1 -1
  111. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts +2 -1
  112. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts.map +1 -1
  113. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js +2 -2
  114. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js.map +1 -1
  115. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts +2 -1
  116. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts.map +1 -1
  117. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js +2 -2
  118. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js.map +1 -1
  119. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts +2 -1
  120. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts.map +1 -1
  121. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js +2 -2
  122. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js.map +1 -1
  123. package/lib/esm/index.d.ts +20 -26
  124. package/lib/esm/index.js +1 -1
  125. package/lib/esm/index.js.map +1 -1
  126. package/package.json +9 -9
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"SuccessHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/SuccessHttpResponse.ts"],"names":[],"mappings":";;;AAGA,mEAAgE;AAChE,yDAGgC;AAEhC,MAAM,qBAAqB,GAAkB,MAAM,CAAC,GAAG,CACrD,4CAA4C,CAC7C,CAAC;AAEF,MAAa,mBAAmB;IAKZ;IACA;IALX,CAAC,6BAAoB,CAAC,CAAO;IAC7B,CAAC,qBAAqB,CAAC,CAAO;IAErC,YACkB,UAA0B,EAC1B,IAAkD;QADlD,eAAU,GAAV,UAAU,CAAgB;QAC1B,SAAI,GAAJ,IAAI,CAA8C;QAElE,IAAI,CAAC,6BAAoB,CAAC,GAAG,IAAI,CAAC;QAClC,IAAI,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IACrC,CAAC;IAEM,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,OAAO,CACL,IAAA,+BAAc,EAAC,KAAK,CAAC;YACpB,KAAsC,CAAC,qBAAqB,CAAC,KAAK,IAAI,CACxE,CAAC;IACJ,CAAC;CACF;AAlBD,kDAkBC"}
1
+ {"version":3,"file":"SuccessHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/SuccessHttpResponse.ts"],"names":[],"mappings":";;;AAGA,yDAGgC;AAEhC,MAAa,mBAAmB;IAIZ;IACA;IAJX,CAAC,6BAAoB,CAAC,CAAO;IAEpC,YACkB,UAA0B,EAC1B,IAAkD;QADlD,eAAU,GAAV,UAAU,CAAgB;QAC1B,SAAI,GAAJ,IAAI,CAA8C;QAElE,IAAI,CAAC,6BAAoB,CAAC,GAAG,IAAI,CAAC;IACpC,CAAC;CACF;AATD,kDASC"}
@@ -1,5 +1,6 @@
1
+ import type { Stream } from 'node:stream';
1
2
  import { ErrorHttpResponse } from './ErrorHttpResponse';
2
3
  export declare class UnauthorizedHttpResponse 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=UnauthorizedHttpResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnauthorizedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnauthorizedHttpResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,iBAAiB;gBAE3D,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,MAAuB,EAC9B,YAAY,CAAC,EAAE,YAAY;CAI9B"}
1
+ {"version":3,"file":"UnauthorizedHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnauthorizedHttpResponse.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,MAAuB,EACrC,YAAY,CAAC,EAAE,YAAY;CAI9B"}
@@ -4,8 +4,8 @@ exports.UnauthorizedHttpResponse = void 0;
4
4
  const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
5
5
  const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
6
6
  class UnauthorizedHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
7
- constructor(message, error = 'Unauthorized', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.UNAUTHORIZED, error, message, errorOptions);
7
+ constructor(body, errorMessage = 'Unauthorized', errorOptions) {
8
+ super(HttpStatusCode_1.HttpStatusCode.UNAUTHORIZED, body, errorMessage, errorOptions);
9
9
  }
10
10
  }
11
11
  exports.UnauthorizedHttpResponse = UnauthorizedHttpResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"UnauthorizedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnauthorizedHttpResponse.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,wBAAyB,SAAQ,qCAAiB;IAC7D,YACE,OAAgB,EAChB,QAAgB,cAAc,EAC9B,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;IACnE,CAAC;CACF;AARD,4DAQC"}
1
+ {"version":3,"file":"UnauthorizedHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnauthorizedHttpResponse.ts"],"names":[],"mappings":";;;AAEA,qEAAkE;AAClE,2DAAwD;AAExD,MAAa,wBAAyB,SAAQ,qCAAiB;IAC7D,YACE,IAA8D,EAC9D,eAAuB,cAAc,EACrC,YAA2B;QAE3B,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;IACvE,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 UnprocessableEntityHttpResponse 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=UnprocessableEntityHttpResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnprocessableEntityHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnprocessableEntityHttpResponse.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":"UnprocessableEntityHttpResponse.d.ts","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnprocessableEntityHttpResponse.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.UnprocessableEntityHttpResponse = void 0;
4
4
  const HttpStatusCode_1 = require("../../http/models/HttpStatusCode");
5
5
  const ErrorHttpResponse_1 = require("./ErrorHttpResponse");
6
6
  class UnprocessableEntityHttpResponse extends ErrorHttpResponse_1.ErrorHttpResponse {
7
- constructor(message, error = 'Unprocessable Entity', errorOptions) {
8
- super(HttpStatusCode_1.HttpStatusCode.UNPROCESSABLE_ENTITY, error, message, errorOptions);
7
+ constructor(body, errorMessage = 'Unprocessable Entity', errorOptions) {
8
+ super(HttpStatusCode_1.HttpStatusCode.UNPROCESSABLE_ENTITY, body, errorMessage, errorOptions);
9
9
  }
10
10
  }
11
11
  exports.UnprocessableEntityHttpResponse = UnprocessableEntityHttpResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"UnprocessableEntityHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnprocessableEntityHttpResponse.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":"UnprocessableEntityHttpResponse.js","sourceRoot":"","sources":["../../../../src/httpResponse/models/UnprocessableEntityHttpResponse.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,4 +1,5 @@
1
1
  import { ErrorFilter } from '@inversifyjs/framework-core';
2
+ import { Logger } from '@inversifyjs/logger';
2
3
  import { Newable } from 'inversify';
3
- export declare function buildErrorTypeToErrorFilterMap(target: NewableFunction, methodKey: string | symbol): Map<Newable<Error> | null, Newable<ErrorFilter>>;
4
+ export declare function buildErrorTypeToErrorFilterMap(logger: Logger, target: NewableFunction, methodKey: string | symbol): Map<Newable<Error> | null, Newable<ErrorFilter>>;
4
5
  //# sourceMappingURL=buildErrorTypeToErrorFilterMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildErrorTypeToErrorFilterMap.d.ts","sourceRoot":"","sources":["../../../../src/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,GAAG,MAAM,GACzB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAkBlD"}
1
+ {"version":3,"file":"buildErrorTypeToErrorFilterMap.d.ts","sourceRoot":"","sources":["../../../../src/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,MAAM,GAAG,MAAM,GACzB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CA0BlD"}
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildErrorTypeToErrorFilterMap = buildErrorTypeToErrorFilterMap;
4
4
  const framework_core_1 = require("@inversifyjs/framework-core");
5
5
  const setErrorFilterToErrorFilterMap_1 = require("../../http/actions/setErrorFilterToErrorFilterMap");
6
- function buildErrorTypeToErrorFilterMap(target, methodKey) {
6
+ function buildErrorTypeToErrorFilterMap(logger, target, methodKey) {
7
7
  const errorTypeToErrorFilterMap = new Map();
8
8
  for (const errorFilter of (0, framework_core_1.getClassMethodErrorFilterMetadata)(target, methodKey)) {
9
- (0, setErrorFilterToErrorFilterMap_1.setErrorFilterToErrorFilterMap)(errorTypeToErrorFilterMap, errorFilter);
9
+ (0, setErrorFilterToErrorFilterMap_1.setErrorFilterToErrorFilterMap)(logger, errorTypeToErrorFilterMap, errorFilter);
10
10
  }
11
11
  for (const errorFilter of (0, framework_core_1.getClassErrorFilterMetadata)(target)) {
12
- (0, setErrorFilterToErrorFilterMap_1.setErrorFilterToErrorFilterMap)(errorTypeToErrorFilterMap, errorFilter);
12
+ (0, setErrorFilterToErrorFilterMap_1.setErrorFilterToErrorFilterMap)(logger, errorTypeToErrorFilterMap, errorFilter);
13
13
  }
14
14
  return errorTypeToErrorFilterMap;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"buildErrorTypeToErrorFilterMap.js","sourceRoot":"","sources":["../../../../src/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.ts"],"names":[],"mappings":";;AASA,wEAqBC;AA9BD,gEAIqC;AAGrC,sGAAmG;AAEnG,SAAgB,8BAA8B,CAC5C,MAAuB,EACvB,SAA0B;IAE1B,MAAM,yBAAyB,GAG3B,IAAI,GAAG,EAAE,CAAC;IAEd,KAAK,MAAM,WAAW,IAAI,IAAA,kDAAiC,EACzD,MAAM,EACN,SAAS,CACV,EAAE,CAAC;QACF,IAAA,+DAA8B,EAAC,yBAAyB,EAAE,WAAW,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,MAAM,WAAW,IAAI,IAAA,4CAA2B,EAAC,MAAM,CAAC,EAAE,CAAC;QAC9D,IAAA,+DAA8B,EAAC,yBAAyB,EAAE,WAAW,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC"}
1
+ {"version":3,"file":"buildErrorTypeToErrorFilterMap.js","sourceRoot":"","sources":["../../../../src/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.ts"],"names":[],"mappings":";;AAUA,wEA8BC;AAxCD,gEAIqC;AAIrC,sGAAmG;AAEnG,SAAgB,8BAA8B,CAC5C,MAAc,EACd,MAAuB,EACvB,SAA0B;IAE1B,MAAM,yBAAyB,GAG3B,IAAI,GAAG,EAAE,CAAC;IAEd,KAAK,MAAM,WAAW,IAAI,IAAA,kDAAiC,EACzD,MAAM,EACN,SAAS,CACV,EAAE,CAAC;QACF,IAAA,+DAA8B,EAC5B,MAAM,EACN,yBAAyB,EACzB,WAAW,CACZ,CAAC;IACJ,CAAC;IAED,KAAK,MAAM,WAAW,IAAI,IAAA,4CAA2B,EAAC,MAAM,CAAC,EAAE,CAAC;QAC9D,IAAA,+DAA8B,EAC5B,MAAM,EACN,yBAAyB,EACzB,WAAW,CACZ,CAAC;IACJ,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC"}
@@ -1,4 +1,5 @@
1
+ import { Logger } from '@inversifyjs/logger';
1
2
  import { ControllerMetadata } from '../model/ControllerMetadata';
2
3
  import { RouterExplorerControllerMetadata } from '../model/RouterExplorerControllerMetadata';
3
- export declare function buildRouterExplorerControllerMetadata<TRequest, TResponse, TResult>(controllerMetadata: ControllerMetadata): RouterExplorerControllerMetadata<TRequest, TResponse, TResult>;
4
+ export declare function buildRouterExplorerControllerMetadata<TRequest, TResponse, TResult>(logger: Logger, controllerMetadata: ControllerMetadata): RouterExplorerControllerMetadata<TRequest, TResponse, TResult>;
4
5
  //# sourceMappingURL=buildRouterExplorerControllerMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildRouterExplorerControllerMetadata.d.ts","sourceRoot":"","sources":["../../../../src/routerExplorer/calculations/buildRouterExplorerControllerMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAI7F,wBAAgB,qCAAqC,CACnD,QAAQ,EACR,SAAS,EACT,OAAO,EAEP,kBAAkB,EAAE,kBAAkB,GACrC,gCAAgC,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAchE"}
1
+ {"version":3,"file":"buildRouterExplorerControllerMetadata.d.ts","sourceRoot":"","sources":["../../../../src/routerExplorer/calculations/buildRouterExplorerControllerMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAI7F,wBAAgB,qCAAqC,CACnD,QAAQ,EACR,SAAS,EACT,OAAO,EAEP,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,kBAAkB,GACrC,gCAAgC,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAehE"}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildRouterExplorerControllerMetadata = buildRouterExplorerControllerMetadata;
4
4
  const buildRouterExplorerControllerMethodMetadataList_1 = require("./buildRouterExplorerControllerMethodMetadataList");
5
5
  const getControllerMethodMetadataList_1 = require("./getControllerMethodMetadataList");
6
- function buildRouterExplorerControllerMetadata(controllerMetadata) {
6
+ function buildRouterExplorerControllerMetadata(logger, controllerMetadata) {
7
7
  const controllerMethodMetadataList = (0, getControllerMethodMetadataList_1.getControllerMethodMetadataList)(controllerMetadata.target);
8
8
  return {
9
- controllerMethodMetadataList: (0, buildRouterExplorerControllerMethodMetadataList_1.buildRouterExplorerControllerMethodMetadataList)(controllerMetadata, controllerMethodMetadataList),
9
+ controllerMethodMetadataList: (0, buildRouterExplorerControllerMethodMetadataList_1.buildRouterExplorerControllerMethodMetadataList)(logger, controllerMetadata, controllerMethodMetadataList),
10
10
  path: controllerMetadata.path,
11
11
  serviceIdentifier: controllerMetadata.serviceIdentifier,
12
12
  target: controllerMetadata.target,