@inversifyjs/http-core 1.0.0 → 3.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 (548) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/README.md +1 -1
  3. package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts +7 -1
  4. package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts.map +1 -1
  5. package/lib/cjs/error/models/InversifyHttpAdapterError.js +3 -1
  6. package/lib/cjs/error/models/InversifyHttpAdapterError.js.map +1 -1
  7. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts +3 -2
  8. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts.map +1 -1
  9. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js +3 -2
  10. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js.map +1 -1
  11. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts +4 -0
  12. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts.map +1 -0
  13. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js +14 -0
  14. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js.map +1 -0
  15. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.spec.d.ts +2 -0
  16. package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.spec.d.ts.map +1 -0
  17. package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +30 -15
  18. package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -1
  19. package/lib/cjs/http/adapter/InversifyHttpAdapter.js +273 -84
  20. package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -1
  21. package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts +7 -0
  22. package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts.map +1 -0
  23. package/lib/cjs/http/calculations/buildInterceptedHandler.js +57 -0
  24. package/lib/cjs/http/calculations/buildInterceptedHandler.js.map +1 -0
  25. package/lib/cjs/http/calculations/buildInterceptedHandler.spec.d.ts +2 -0
  26. package/lib/cjs/http/calculations/buildInterceptedHandler.spec.d.ts.map +1 -0
  27. package/lib/cjs/http/calculations/buildNormalizedPath.d.ts +2 -0
  28. package/lib/cjs/http/calculations/buildNormalizedPath.d.ts.map +1 -0
  29. package/lib/cjs/http/calculations/buildNormalizedPath.js +10 -0
  30. package/lib/cjs/http/calculations/buildNormalizedPath.js.map +1 -0
  31. package/lib/cjs/http/calculations/buildNormalizedPath.spec.d.ts +2 -0
  32. package/lib/cjs/http/calculations/buildNormalizedPath.spec.d.ts.map +1 -0
  33. package/lib/cjs/http/calculations/buildRouteParameterDecorator.d.ts +7 -0
  34. package/lib/cjs/http/calculations/buildRouteParameterDecorator.d.ts.map +1 -0
  35. package/lib/cjs/http/calculations/buildRouteParameterDecorator.js +29 -0
  36. package/lib/cjs/http/calculations/buildRouteParameterDecorator.js.map +1 -0
  37. package/lib/cjs/http/calculations/buildRouteParameterDecorator.spec.d.ts +2 -0
  38. package/lib/cjs/http/calculations/buildRouteParameterDecorator.spec.d.ts.map +1 -0
  39. package/lib/cjs/http/calculations/buildSetHeaderMetadata.d.ts +2 -0
  40. package/lib/cjs/http/calculations/buildSetHeaderMetadata.d.ts.map +1 -0
  41. package/lib/cjs/http/calculations/buildSetHeaderMetadata.js +17 -0
  42. package/lib/cjs/http/calculations/buildSetHeaderMetadata.js.map +1 -0
  43. package/lib/cjs/http/calculations/buildSetHeaderMetadata.spec.d.ts +2 -0
  44. package/lib/cjs/http/calculations/buildSetHeaderMetadata.spec.d.ts.map +1 -0
  45. package/lib/cjs/http/calculations/createCustomParameterDecorator.d.ts +5 -0
  46. package/lib/cjs/http/calculations/createCustomParameterDecorator.d.ts.map +1 -0
  47. package/lib/cjs/http/calculations/createCustomParameterDecorator.js +9 -0
  48. package/lib/cjs/http/calculations/createCustomParameterDecorator.js.map +1 -0
  49. package/lib/cjs/http/calculations/createCustomParameterDecorator.spec.d.ts +2 -0
  50. package/lib/cjs/http/calculations/createCustomParameterDecorator.spec.d.ts.map +1 -0
  51. package/lib/cjs/http/{decorators/RequestMethod.d.ts → calculations/requestMethod.d.ts} +1 -1
  52. package/lib/cjs/http/calculations/requestMethod.d.ts.map +1 -0
  53. package/lib/cjs/http/calculations/requestMethod.js +17 -0
  54. package/lib/cjs/http/calculations/requestMethod.js.map +1 -0
  55. package/lib/cjs/http/calculations/requestMethod.spec.d.ts +2 -0
  56. package/lib/cjs/http/calculations/requestMethod.spec.d.ts.map +1 -0
  57. package/lib/cjs/http/calculations/requestParam.d.ts +3 -0
  58. package/lib/cjs/http/calculations/requestParam.d.ts.map +1 -0
  59. package/lib/cjs/http/calculations/requestParam.js +24 -0
  60. package/lib/cjs/http/calculations/requestParam.js.map +1 -0
  61. package/lib/cjs/http/calculations/requestParam.spec.d.ts +2 -0
  62. package/lib/cjs/http/calculations/requestParam.spec.d.ts.map +1 -0
  63. package/lib/cjs/http/decorators/All.d.ts +1 -1
  64. package/lib/cjs/http/decorators/All.d.ts.map +1 -1
  65. package/lib/cjs/http/decorators/All.js +5 -4
  66. package/lib/cjs/http/decorators/All.js.map +1 -1
  67. package/lib/cjs/http/decorators/Body.d.ts +4 -1
  68. package/lib/cjs/http/decorators/Body.d.ts.map +1 -1
  69. package/lib/cjs/http/decorators/Body.js +5 -4
  70. package/lib/cjs/http/decorators/Body.js.map +1 -1
  71. package/lib/cjs/http/decorators/Controller.d.ts +1 -1
  72. package/lib/cjs/http/decorators/Controller.d.ts.map +1 -1
  73. package/lib/cjs/http/decorators/Controller.js +16 -13
  74. package/lib/cjs/http/decorators/Controller.js.map +1 -1
  75. package/lib/cjs/http/decorators/Cookies.d.ts +4 -1
  76. package/lib/cjs/http/decorators/Cookies.d.ts.map +1 -1
  77. package/lib/cjs/http/decorators/Cookies.js +5 -4
  78. package/lib/cjs/http/decorators/Cookies.js.map +1 -1
  79. package/lib/cjs/http/decorators/Delete.d.ts +1 -1
  80. package/lib/cjs/http/decorators/Delete.d.ts.map +1 -1
  81. package/lib/cjs/http/decorators/Delete.js +5 -4
  82. package/lib/cjs/http/decorators/Delete.js.map +1 -1
  83. package/lib/cjs/http/decorators/Get.d.ts +1 -1
  84. package/lib/cjs/http/decorators/Get.d.ts.map +1 -1
  85. package/lib/cjs/http/decorators/Get.js +5 -4
  86. package/lib/cjs/http/decorators/Get.js.map +1 -1
  87. package/lib/cjs/http/decorators/Head.d.ts +1 -1
  88. package/lib/cjs/http/decorators/Head.d.ts.map +1 -1
  89. package/lib/cjs/http/decorators/Head.js +5 -4
  90. package/lib/cjs/http/decorators/Head.js.map +1 -1
  91. package/lib/cjs/http/decorators/Headers.d.ts +4 -1
  92. package/lib/cjs/http/decorators/Headers.d.ts.map +1 -1
  93. package/lib/cjs/http/decorators/Headers.js +5 -4
  94. package/lib/cjs/http/decorators/Headers.js.map +1 -1
  95. package/lib/cjs/http/decorators/Next.d.ts +1 -1
  96. package/lib/cjs/http/decorators/Next.d.ts.map +1 -1
  97. package/lib/cjs/http/decorators/Next.js +5 -4
  98. package/lib/cjs/http/decorators/Next.js.map +1 -1
  99. package/lib/cjs/http/decorators/Options.d.ts +1 -1
  100. package/lib/cjs/http/decorators/Options.d.ts.map +1 -1
  101. package/lib/cjs/http/decorators/Options.js +5 -4
  102. package/lib/cjs/http/decorators/Options.js.map +1 -1
  103. package/lib/cjs/http/decorators/Params.d.ts +4 -1
  104. package/lib/cjs/http/decorators/Params.d.ts.map +1 -1
  105. package/lib/cjs/http/decorators/Params.js +5 -4
  106. package/lib/cjs/http/decorators/Params.js.map +1 -1
  107. package/lib/cjs/http/decorators/Patch.d.ts +1 -1
  108. package/lib/cjs/http/decorators/Patch.d.ts.map +1 -1
  109. package/lib/cjs/http/decorators/Patch.js +5 -4
  110. package/lib/cjs/http/decorators/Patch.js.map +1 -1
  111. package/lib/cjs/http/decorators/Post.d.ts +1 -1
  112. package/lib/cjs/http/decorators/Post.d.ts.map +1 -1
  113. package/lib/cjs/http/decorators/Post.js +5 -4
  114. package/lib/cjs/http/decorators/Post.js.map +1 -1
  115. package/lib/cjs/http/decorators/Put.d.ts +1 -1
  116. package/lib/cjs/http/decorators/Put.d.ts.map +1 -1
  117. package/lib/cjs/http/decorators/Put.js +5 -4
  118. package/lib/cjs/http/decorators/Put.js.map +1 -1
  119. package/lib/cjs/http/decorators/Query.d.ts +4 -1
  120. package/lib/cjs/http/decorators/Query.d.ts.map +1 -1
  121. package/lib/cjs/http/decorators/Query.js +5 -4
  122. package/lib/cjs/http/decorators/Query.js.map +1 -1
  123. package/lib/cjs/http/decorators/Request.d.ts +3 -1
  124. package/lib/cjs/http/decorators/Request.d.ts.map +1 -1
  125. package/lib/cjs/http/decorators/Request.js +5 -4
  126. package/lib/cjs/http/decorators/Request.js.map +1 -1
  127. package/lib/cjs/http/decorators/Response.d.ts +3 -1
  128. package/lib/cjs/http/decorators/Response.d.ts.map +1 -1
  129. package/lib/cjs/http/decorators/Response.js +5 -4
  130. package/lib/cjs/http/decorators/Response.js.map +1 -1
  131. package/lib/cjs/http/decorators/SetHeader.d.ts +2 -0
  132. package/lib/cjs/http/decorators/SetHeader.d.ts.map +1 -0
  133. package/lib/cjs/http/decorators/SetHeader.js +13 -0
  134. package/lib/cjs/http/decorators/SetHeader.js.map +1 -0
  135. package/lib/cjs/http/decorators/SetHeader.spec.d.ts +2 -0
  136. package/lib/cjs/http/decorators/SetHeader.spec.d.ts.map +1 -0
  137. package/lib/cjs/http/decorators/StatusCode.d.ts +2 -2
  138. package/lib/cjs/http/decorators/StatusCode.d.ts.map +1 -1
  139. package/lib/cjs/http/decorators/StatusCode.js +5 -4
  140. package/lib/cjs/http/decorators/StatusCode.js.map +1 -1
  141. package/lib/cjs/http/models/ControllerOptions.d.ts +3 -1
  142. package/lib/cjs/http/models/ControllerOptions.d.ts.map +1 -1
  143. package/lib/cjs/http/models/ControllerResponse.d.ts +3 -2
  144. package/lib/cjs/http/models/ControllerResponse.d.ts.map +1 -1
  145. package/lib/cjs/http/models/CustomParameterDecoratorHandler.d.ts +2 -0
  146. package/lib/cjs/http/models/CustomParameterDecoratorHandler.d.ts.map +1 -0
  147. package/lib/cjs/http/models/CustomParameterDecoratorHandler.js +3 -0
  148. package/lib/cjs/http/models/CustomParameterDecoratorHandler.js.map +1 -0
  149. package/lib/cjs/http/models/HttpAdapterOptions.d.ts +5 -0
  150. package/lib/cjs/http/models/HttpAdapterOptions.d.ts.map +1 -0
  151. package/lib/cjs/http/models/HttpAdapterOptions.js +3 -0
  152. package/lib/cjs/http/models/HttpAdapterOptions.js.map +1 -0
  153. package/lib/cjs/http/models/HttpStatusCode.d.ts.map +1 -0
  154. package/lib/cjs/http/models/HttpStatusCode.js.map +1 -0
  155. package/lib/cjs/http/models/MiddlewareHandler.d.ts +2 -0
  156. package/lib/cjs/http/models/MiddlewareHandler.d.ts.map +1 -0
  157. package/lib/cjs/http/models/MiddlewareHandler.js +3 -0
  158. package/lib/cjs/http/models/MiddlewareHandler.js.map +1 -0
  159. package/lib/cjs/http/models/RequestHandler.d.ts +1 -1
  160. package/lib/cjs/http/models/RequestHandler.d.ts.map +1 -1
  161. package/lib/cjs/http/models/RequestMethodParameterType.d.ts +9 -8
  162. package/lib/cjs/http/models/RequestMethodParameterType.d.ts.map +1 -1
  163. package/lib/cjs/http/models/RequestMethodParameterType.js +9 -8
  164. package/lib/cjs/http/models/RequestMethodParameterType.js.map +1 -1
  165. package/lib/cjs/http/models/RequestMethodType.d.ts +8 -8
  166. package/lib/cjs/http/models/RequestMethodType.d.ts.map +1 -1
  167. package/lib/cjs/http/models/RequestMethodType.js +8 -8
  168. package/lib/cjs/http/models/RequestMethodType.js.map +1 -1
  169. package/lib/cjs/http/models/RequiredOptions.d.ts +4 -0
  170. package/lib/cjs/http/models/RequiredOptions.d.ts.map +1 -0
  171. package/lib/cjs/http/models/RequiredOptions.js +3 -0
  172. package/lib/cjs/http/models/RequiredOptions.js.map +1 -0
  173. package/lib/cjs/http/models/RouteParamOptions.d.ts +4 -0
  174. package/lib/cjs/http/models/RouteParamOptions.d.ts.map +1 -0
  175. package/lib/cjs/http/models/RouteParamOptions.js +3 -0
  176. package/lib/cjs/http/models/RouteParamOptions.js.map +1 -0
  177. package/lib/cjs/http/models/RouteParams.d.ts +12 -0
  178. package/lib/cjs/http/models/RouteParams.d.ts.map +1 -0
  179. package/lib/cjs/http/models/{Middleware.js → RouteParams.js} +1 -1
  180. package/lib/cjs/http/models/RouteParams.js.map +1 -0
  181. package/lib/cjs/http/models/RouterParams.d.ts +3 -6
  182. package/lib/cjs/http/models/RouterParams.d.ts.map +1 -1
  183. package/lib/cjs/httpResponse/calculations/isHttpResponse.d.ts +3 -0
  184. package/lib/cjs/httpResponse/calculations/isHttpResponse.d.ts.map +1 -0
  185. package/lib/cjs/httpResponse/calculations/isHttpResponse.js +10 -0
  186. package/lib/cjs/httpResponse/calculations/isHttpResponse.js.map +1 -0
  187. package/lib/cjs/httpResponse/calculations/isHttpResponse.spec.d.ts +2 -0
  188. package/lib/cjs/httpResponse/calculations/isHttpResponse.spec.d.ts.map +1 -0
  189. package/lib/cjs/httpResponse/models/AcceptedHttpResponse.d.ts +5 -0
  190. package/lib/cjs/httpResponse/models/AcceptedHttpResponse.d.ts.map +1 -0
  191. package/lib/cjs/{http/responses/success → httpResponse/models}/AcceptedHttpResponse.js +3 -3
  192. package/lib/cjs/httpResponse/models/AcceptedHttpResponse.js.map +1 -0
  193. package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.d.ts +5 -0
  194. package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.d.ts.map +1 -0
  195. package/lib/cjs/{http/responses/success → httpResponse/models}/AlreadyReportedHttpResponse.js +3 -3
  196. package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.js.map +1 -0
  197. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts +5 -0
  198. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts.map +1 -0
  199. package/lib/cjs/{http/responses/error → httpResponse/models}/BadGatewayHttpResponse.js +3 -3
  200. package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js.map +1 -0
  201. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts +5 -0
  202. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts.map +1 -0
  203. package/lib/cjs/{http/responses/error → httpResponse/models}/BadRequestHttpResponse.js +3 -3
  204. package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js.map +1 -0
  205. package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts +5 -0
  206. package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts.map +1 -0
  207. package/lib/cjs/{http/responses/error → httpResponse/models}/ConflictHttpResponse.js +3 -3
  208. package/lib/cjs/httpResponse/models/ConflictHttpResponse.js.map +1 -0
  209. package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.d.ts +5 -0
  210. package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.d.ts.map +1 -0
  211. package/lib/cjs/{http/responses/success → httpResponse/models}/ContentDifferentHttpResponse.js +3 -3
  212. package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.js.map +1 -0
  213. package/lib/cjs/httpResponse/models/CreatedHttpResponse.d.ts +5 -0
  214. package/lib/cjs/httpResponse/models/CreatedHttpResponse.d.ts.map +1 -0
  215. package/lib/cjs/{http/responses/success → httpResponse/models}/CreatedHttpResponse.js +3 -3
  216. package/lib/cjs/httpResponse/models/CreatedHttpResponse.js.map +1 -0
  217. package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts +14 -0
  218. package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts.map +1 -0
  219. package/lib/cjs/httpResponse/models/ErrorHttpResponse.js +25 -0
  220. package/lib/cjs/httpResponse/models/ErrorHttpResponse.js.map +1 -0
  221. package/lib/cjs/httpResponse/models/ErrorHttpResponse.spec.d.ts +2 -0
  222. package/lib/cjs/httpResponse/models/ErrorHttpResponse.spec.d.ts.map +1 -0
  223. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts +5 -0
  224. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts.map +1 -0
  225. package/lib/cjs/{http/responses/error → httpResponse/models}/ForbiddenHttpResponse.js +3 -3
  226. package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js.map +1 -0
  227. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts +5 -0
  228. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts.map +1 -0
  229. package/lib/cjs/{http/responses/error → httpResponse/models}/GatewayTimeoutHttpResponse.js +3 -3
  230. package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js.map +1 -0
  231. package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts +5 -0
  232. package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts.map +1 -0
  233. package/lib/cjs/{http/responses/error → httpResponse/models}/GoneHttpResponse.js +3 -3
  234. package/lib/cjs/httpResponse/models/GoneHttpResponse.js.map +1 -0
  235. package/lib/cjs/httpResponse/models/HttpResponse.d.ts +9 -0
  236. package/lib/cjs/httpResponse/models/HttpResponse.d.ts.map +1 -0
  237. package/lib/cjs/httpResponse/models/HttpResponse.js +5 -0
  238. package/lib/cjs/httpResponse/models/HttpResponse.js.map +1 -0
  239. package/lib/cjs/{http/responses/error → httpResponse/models}/HttpVersionNotSupportedHttpResponse.d.ts +1 -1
  240. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -0
  241. package/lib/cjs/{http/responses/error → httpResponse/models}/HttpVersionNotSupportedHttpResponse.js +3 -3
  242. package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js.map +1 -0
  243. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts +5 -0
  244. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts.map +1 -0
  245. package/lib/cjs/{http/responses/error → httpResponse/models}/InsufficientStorageHttpResponse.js +3 -3
  246. package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js.map +1 -0
  247. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts +5 -0
  248. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts.map +1 -0
  249. package/lib/cjs/{http/responses/error → httpResponse/models}/InternalServerErrorHttpResponse.js +3 -3
  250. package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js.map +1 -0
  251. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts +5 -0
  252. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts.map +1 -0
  253. package/lib/cjs/{http/responses/error → httpResponse/models}/LoopDetectedHttpResponse.js +3 -3
  254. package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js.map +1 -0
  255. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts +5 -0
  256. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts.map +1 -0
  257. package/lib/cjs/{http/responses/error → httpResponse/models}/MethodNotAllowedHttpResponse.js +3 -3
  258. package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js.map +1 -0
  259. package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.d.ts +5 -0
  260. package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.d.ts.map +1 -0
  261. package/lib/cjs/{http/responses/success → httpResponse/models}/MultiStatusHttpResponse.js +3 -3
  262. package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.js.map +1 -0
  263. package/lib/cjs/httpResponse/models/NoContentHttpResponse.d.ts +5 -0
  264. package/lib/cjs/httpResponse/models/NoContentHttpResponse.d.ts.map +1 -0
  265. package/lib/cjs/httpResponse/models/NoContentHttpResponse.js +12 -0
  266. package/lib/cjs/httpResponse/models/NoContentHttpResponse.js.map +1 -0
  267. package/lib/cjs/{http/responses/success → httpResponse/models}/NonAuthoritativeInformationHttpResponse.d.ts +2 -2
  268. package/lib/cjs/httpResponse/models/NonAuthoritativeInformationHttpResponse.d.ts.map +1 -0
  269. package/lib/cjs/{http/responses/success → httpResponse/models}/NonAuthoritativeInformationHttpResponse.js +3 -3
  270. package/lib/cjs/httpResponse/models/NonAuthoritativeInformationHttpResponse.js.map +1 -0
  271. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts +5 -0
  272. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts.map +1 -0
  273. package/lib/cjs/{http/responses/error → httpResponse/models}/NotAcceptableHttpResponse.js +3 -3
  274. package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js.map +1 -0
  275. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts +5 -0
  276. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts.map +1 -0
  277. package/lib/cjs/{http/responses/error → httpResponse/models}/NotFoundHttpResponse.js +3 -3
  278. package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js.map +1 -0
  279. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts +5 -0
  280. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts.map +1 -0
  281. package/lib/cjs/{http/responses/error → httpResponse/models}/NotImplementedHttpResponse.js +3 -3
  282. package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js.map +1 -0
  283. package/lib/cjs/httpResponse/models/OkHttpResponse.d.ts +5 -0
  284. package/lib/cjs/httpResponse/models/OkHttpResponse.d.ts.map +1 -0
  285. package/lib/cjs/httpResponse/models/OkHttpResponse.js +12 -0
  286. package/lib/cjs/httpResponse/models/OkHttpResponse.js.map +1 -0
  287. package/lib/cjs/httpResponse/models/PartialContentHttpResponse.d.ts +5 -0
  288. package/lib/cjs/httpResponse/models/PartialContentHttpResponse.d.ts.map +1 -0
  289. package/lib/cjs/{http/responses/success → httpResponse/models}/PartialContentHttpResponse.js +3 -3
  290. package/lib/cjs/httpResponse/models/PartialContentHttpResponse.js.map +1 -0
  291. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts +5 -0
  292. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts.map +1 -0
  293. package/lib/cjs/{http/responses/error → httpResponse/models}/PaymentRequiredHttpResponse.js +3 -3
  294. package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js.map +1 -0
  295. package/lib/cjs/httpResponse/models/ResetContentHttpResponse.d.ts +5 -0
  296. package/lib/cjs/httpResponse/models/ResetContentHttpResponse.d.ts.map +1 -0
  297. package/lib/cjs/{http/responses/success → httpResponse/models}/ResetContentHttpResponse.js +3 -3
  298. package/lib/cjs/httpResponse/models/ResetContentHttpResponse.js.map +1 -0
  299. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts +5 -0
  300. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts.map +1 -0
  301. package/lib/cjs/{http/responses/error → httpResponse/models}/ServiceUnavailableHttpResponse.js +3 -3
  302. package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js.map +1 -0
  303. package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts +14 -0
  304. package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts.map +1 -0
  305. package/lib/cjs/httpResponse/models/SuccessHttpResponse.js +24 -0
  306. package/lib/cjs/httpResponse/models/SuccessHttpResponse.js.map +1 -0
  307. package/lib/cjs/httpResponse/models/SuccessHttpResponse.spec.d.ts +2 -0
  308. package/lib/cjs/httpResponse/models/SuccessHttpResponse.spec.d.ts.map +1 -0
  309. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts +5 -0
  310. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts.map +1 -0
  311. package/lib/cjs/{http/responses/error → httpResponse/models}/UnauthorizedHttpResponse.js +3 -3
  312. package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js.map +1 -0
  313. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts +5 -0
  314. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts.map +1 -0
  315. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js +12 -0
  316. package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js.map +1 -0
  317. package/lib/cjs/index.d.ts +67 -51
  318. package/lib/cjs/index.d.ts.map +1 -1
  319. package/lib/cjs/index.js +86 -62
  320. package/lib/cjs/index.js.map +1 -1
  321. package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.d.ts +2 -0
  322. package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.d.ts.map +1 -0
  323. package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.js +5 -0
  324. package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.js.map +1 -0
  325. package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.d.ts +2 -0
  326. package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.d.ts.map +1 -0
  327. package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.js +5 -0
  328. package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.js.map +1 -0
  329. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts +4 -0
  330. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts.map +1 -0
  331. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js +16 -0
  332. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js.map +1 -0
  333. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.spec.d.ts +2 -0
  334. package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.spec.d.ts.map +1 -0
  335. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts +4 -0
  336. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts.map +1 -0
  337. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js +15 -0
  338. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js.map +1 -0
  339. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.spec.d.ts +2 -0
  340. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.spec.d.ts.map +1 -0
  341. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts +4 -0
  342. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts.map +1 -0
  343. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js +21 -0
  344. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js.map +1 -0
  345. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.spec.d.ts +2 -0
  346. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.spec.d.ts.map +1 -0
  347. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts +5 -0
  348. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts.map +1 -0
  349. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js +49 -0
  350. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js.map +1 -0
  351. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.spec.d.ts +2 -0
  352. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.spec.d.ts.map +1 -0
  353. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts +5 -0
  354. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts.map +1 -0
  355. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js +8 -0
  356. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js.map +1 -0
  357. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.spec.d.ts +2 -0
  358. package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.spec.d.ts.map +1 -0
  359. package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.d.ts +3 -0
  360. package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.d.ts.map +1 -0
  361. package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.js +9 -0
  362. package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.js.map +1 -0
  363. package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.spec.d.ts +2 -0
  364. package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.spec.d.ts.map +1 -0
  365. package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.d.ts +2 -0
  366. package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.d.ts.map +1 -0
  367. package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.js +14 -0
  368. package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.js.map +1 -0
  369. package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.spec.d.ts +2 -0
  370. package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.spec.d.ts.map +1 -0
  371. package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.d.ts +3 -0
  372. package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.d.ts.map +1 -0
  373. package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.js +9 -0
  374. package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.js.map +1 -0
  375. package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.spec.d.ts +2 -0
  376. package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.spec.d.ts.map +1 -0
  377. package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.d.ts +3 -0
  378. package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.d.ts.map +1 -0
  379. package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.js +9 -0
  380. package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.js.map +1 -0
  381. package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.spec.d.ts +2 -0
  382. package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.spec.d.ts.map +1 -0
  383. package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.d.ts +3 -0
  384. package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.d.ts.map +1 -0
  385. package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.js +9 -0
  386. package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.js.map +1 -0
  387. package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.spec.d.ts +2 -0
  388. package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.spec.d.ts.map +1 -0
  389. package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.d.ts +2 -0
  390. package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.d.ts.map +1 -0
  391. package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.js +9 -0
  392. package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.js.map +1 -0
  393. package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.spec.d.ts +2 -0
  394. package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.spec.d.ts.map +1 -0
  395. package/lib/cjs/routerExplorer/model/ControllerMetadata.d.ts +7 -0
  396. package/lib/cjs/routerExplorer/model/ControllerMetadata.d.ts.map +1 -0
  397. package/lib/cjs/routerExplorer/model/ControllerMetadata.js.map +1 -0
  398. package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodMetadata.d.ts +1 -1
  399. package/lib/cjs/routerExplorer/model/ControllerMethodMetadata.d.ts.map +1 -0
  400. package/lib/cjs/routerExplorer/model/ControllerMethodMetadata.js.map +1 -0
  401. package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.d.ts +11 -0
  402. package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.d.ts.map +1 -0
  403. package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.js.map +1 -0
  404. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.d.ts +9 -0
  405. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.d.ts.map +1 -0
  406. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.js +4 -0
  407. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.js.map +1 -0
  408. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts +20 -0
  409. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts.map +1 -0
  410. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.js +3 -0
  411. package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.js.map +1 -0
  412. package/lib/esm/index.d.ts +191 -103
  413. package/lib/esm/index.d.ts.map +1 -1
  414. package/lib/esm/index.js +1 -1
  415. package/lib/esm/index.js.map +1 -1
  416. package/package.json +24 -23
  417. package/lib/cjs/http/decorators/ApplyMiddleware.d.ts +0 -2
  418. package/lib/cjs/http/decorators/ApplyMiddleware.d.ts.map +0 -1
  419. package/lib/cjs/http/decorators/ApplyMiddleware.js +0 -30
  420. package/lib/cjs/http/decorators/ApplyMiddleware.js.map +0 -1
  421. package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts +0 -2
  422. package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts.map +0 -1
  423. package/lib/cjs/http/decorators/RequestMethod.d.ts.map +0 -1
  424. package/lib/cjs/http/decorators/RequestMethod.js +0 -23
  425. package/lib/cjs/http/decorators/RequestMethod.js.map +0 -1
  426. package/lib/cjs/http/decorators/RequestMethod.spec.d.ts +0 -2
  427. package/lib/cjs/http/decorators/RequestMethod.spec.d.ts.map +0 -1
  428. package/lib/cjs/http/decorators/RequestParam.d.ts +0 -3
  429. package/lib/cjs/http/decorators/RequestParam.d.ts.map +0 -1
  430. package/lib/cjs/http/decorators/RequestParam.js +0 -41
  431. package/lib/cjs/http/decorators/RequestParam.js.map +0 -1
  432. package/lib/cjs/http/decorators/RequestParam.spec.d.ts +0 -2
  433. package/lib/cjs/http/decorators/RequestParam.spec.d.ts.map +0 -1
  434. package/lib/cjs/http/models/ControllerMetadata.d.ts +0 -6
  435. package/lib/cjs/http/models/ControllerMetadata.d.ts.map +0 -1
  436. package/lib/cjs/http/models/ControllerMetadata.js.map +0 -1
  437. package/lib/cjs/http/models/ControllerMethodMetadata.d.ts.map +0 -1
  438. package/lib/cjs/http/models/ControllerMethodMetadata.js.map +0 -1
  439. package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts +0 -7
  440. package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts.map +0 -1
  441. package/lib/cjs/http/models/ControllerMethodParameterMetadata.js.map +0 -1
  442. package/lib/cjs/http/models/Middleware.d.ts +0 -4
  443. package/lib/cjs/http/models/Middleware.d.ts.map +0 -1
  444. package/lib/cjs/http/models/Middleware.js.map +0 -1
  445. package/lib/cjs/http/responses/HttpResponse.d.ts +0 -11
  446. package/lib/cjs/http/responses/HttpResponse.d.ts.map +0 -1
  447. package/lib/cjs/http/responses/HttpResponse.js +0 -21
  448. package/lib/cjs/http/responses/HttpResponse.js.map +0 -1
  449. package/lib/cjs/http/responses/HttpStatusCode.d.ts.map +0 -1
  450. package/lib/cjs/http/responses/HttpStatusCode.js.map +0 -1
  451. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts +0 -5
  452. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts.map +0 -1
  453. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js.map +0 -1
  454. package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts +0 -5
  455. package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts.map +0 -1
  456. package/lib/cjs/http/responses/error/BadRequestHttpResponse.js.map +0 -1
  457. package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts +0 -5
  458. package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts.map +0 -1
  459. package/lib/cjs/http/responses/error/ConflictHttpResponse.js.map +0 -1
  460. package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts +0 -6
  461. package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts.map +0 -1
  462. package/lib/cjs/http/responses/error/ErrorHttpResponse.js +0 -11
  463. package/lib/cjs/http/responses/error/ErrorHttpResponse.js.map +0 -1
  464. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts +0 -5
  465. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts.map +0 -1
  466. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js.map +0 -1
  467. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts +0 -5
  468. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts.map +0 -1
  469. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js.map +0 -1
  470. package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts +0 -5
  471. package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts.map +0 -1
  472. package/lib/cjs/http/responses/error/GoneHttpResponse.js.map +0 -1
  473. package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts.map +0 -1
  474. package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js.map +0 -1
  475. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts +0 -5
  476. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts.map +0 -1
  477. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js.map +0 -1
  478. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts +0 -5
  479. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts.map +0 -1
  480. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js.map +0 -1
  481. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts +0 -5
  482. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts.map +0 -1
  483. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js.map +0 -1
  484. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts +0 -5
  485. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts.map +0 -1
  486. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js.map +0 -1
  487. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts +0 -5
  488. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts.map +0 -1
  489. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js.map +0 -1
  490. package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts +0 -5
  491. package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts.map +0 -1
  492. package/lib/cjs/http/responses/error/NotFoundHttpResponse.js.map +0 -1
  493. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts +0 -5
  494. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts.map +0 -1
  495. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js.map +0 -1
  496. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts +0 -5
  497. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts.map +0 -1
  498. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js.map +0 -1
  499. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts +0 -5
  500. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts.map +0 -1
  501. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js.map +0 -1
  502. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts +0 -5
  503. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts.map +0 -1
  504. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js.map +0 -1
  505. package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts +0 -5
  506. package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts.map +0 -1
  507. package/lib/cjs/http/responses/success/AcceptedHttpResponse.js.map +0 -1
  508. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts +0 -5
  509. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts.map +0 -1
  510. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js.map +0 -1
  511. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts +0 -5
  512. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts.map +0 -1
  513. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js.map +0 -1
  514. package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts +0 -5
  515. package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts.map +0 -1
  516. package/lib/cjs/http/responses/success/CreatedHttpResponse.js.map +0 -1
  517. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts +0 -5
  518. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts.map +0 -1
  519. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js.map +0 -1
  520. package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts +0 -5
  521. package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts.map +0 -1
  522. package/lib/cjs/http/responses/success/NoContentHttpResponse.js +0 -12
  523. package/lib/cjs/http/responses/success/NoContentHttpResponse.js.map +0 -1
  524. package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts.map +0 -1
  525. package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js.map +0 -1
  526. package/lib/cjs/http/responses/success/OkHttpResponse.d.ts +0 -5
  527. package/lib/cjs/http/responses/success/OkHttpResponse.d.ts.map +0 -1
  528. package/lib/cjs/http/responses/success/OkHttpResponse.js +0 -12
  529. package/lib/cjs/http/responses/success/OkHttpResponse.js.map +0 -1
  530. package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts +0 -5
  531. package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts.map +0 -1
  532. package/lib/cjs/http/responses/success/PartialContentHttpResponse.js.map +0 -1
  533. package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts +0 -5
  534. package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts.map +0 -1
  535. package/lib/cjs/http/responses/success/ResetContentHttpResponse.js.map +0 -1
  536. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts +0 -2
  537. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts.map +0 -1
  538. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js +0 -5
  539. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js.map +0 -1
  540. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts +0 -2
  541. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts.map +0 -1
  542. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js +0 -5
  543. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js.map +0 -1
  544. /package/lib/cjs/http/{responses → models}/HttpStatusCode.d.ts +0 -0
  545. /package/lib/cjs/http/{responses → models}/HttpStatusCode.js +0 -0
  546. /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMetadata.js +0 -0
  547. /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodMetadata.js +0 -0
  548. /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodParameterMetadata.js +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,95 @@
1
+ # @inversifyjs/http-core
2
+
3
+ ## 3.0.0
4
+
5
+ ## 2.0.0
6
+
7
+ ### Minor Changes
8
+
9
+ - Added `ApplyMiddleware` decorator
10
+ - Added `AlreadyReportedHttpResponse`
11
+ - Added `ContentDifferentHttpResponse`
12
+ - Added `ConflictHttpResponse`
13
+ - Added `BadRequestHttpResponse`
14
+ - Added `BadGatewayHttpResponse`
15
+ - Added `Controller` decorator
16
+ - Added `All` decorator
17
+ - Added `AcceptedHttpResponse`
18
+ - Added `Body` decorator
19
+ - Added `CreatedHttpResponse`
20
+ - Added `CatchError` decorator
21
+ - Added `Delete` decorator
22
+ - Added `buildNormalizedPath`
23
+ - Added `createCustomParameterDecorator`
24
+ - Added `Cookies` decorator
25
+ - Added `ErrorHttpResponse`
26
+ - Added `ForbiddenHttpResponse`
27
+ - Added `GatewayTimeoutHttpResponse`
28
+ - Added `Get` decorator
29
+ - Added `getControllerMetadataList`
30
+ - Added `getControllerMethodMetadataList`
31
+ - Added `GoneHttpResponse`
32
+ - Added `Head` decorator
33
+ - Added `Headers` decorator
34
+ - Added `HttpResponse` decorator
35
+ - Added `HttpStatusCode` decorator
36
+ - Added `HttpVersionNotSupportedHttpResponse`
37
+ - Added `InsufficientStorageHttpResponse`
38
+ - Added `InternalServerErrorHttpResponse`
39
+ - Added `InversifyHttpAdapter`
40
+ - Added `isHttpResponse`
41
+ - Added `LoopDetectedHttpResponse`
42
+ - Added `MethodNotAllowedHttpResponse`
43
+ - Added `MiddlewarePhase`
44
+ - Added `MultiStatusHttpResponse`
45
+ - Added `Next` decorator
46
+ - Added `NoContentHttpResponse`
47
+ - Added `NonAuthoritativeInformationHttpResponse`
48
+ - Added `NotAcceptableHttpResponse`
49
+ - Added `NotFoundHttpResponse`
50
+ - Added `NotImplementedHttpResponse`
51
+ - Added `OkHttpResponse`
52
+ - Added `Options` decorator
53
+ - Added `Params` decorator
54
+ - Added `PartialContentHttpResponse`
55
+ - Added `Patch` decorator
56
+ - Added `PaymentRequiredHttpResponse`
57
+ - Added `Post` decorator
58
+ - Added `Put` decorator
59
+ - Added `Query` decorator
60
+ - Added `Request` decorator
61
+ - Added `RequestMethodParameterType`
62
+ - Added `RequestMethodType`
63
+ - Added `ResetContentHttpResponse`
64
+ - Added `Response` decorator
65
+ - Added `ServiceUnavailableHttpResponse`
66
+ - Added `SetHeader` decorator
67
+ - Added `StatusCode` decorator
68
+ - Added `UnauthorizedHttpResponse`
69
+ - Added `UnprocessableEntityHttpResponse`
70
+ - Added `UseErrorFilter` decorator
71
+ - Added `UseGuard` decorator
72
+ - Added `UseInterceptor` decorator
73
+ - Added `CatchErrorOptions` type
74
+ - Added `ControllerMetadata` type
75
+ - Added `ControllerMethodMetadata` type
76
+ - Added `ErrorFilter` type
77
+ - Added `Guard` type
78
+ - Added `HttpAdapterOptions` type
79
+ - Added `Interceptor` type
80
+ - Added `InterceptorTransformObject` type
81
+ - Added `Middleware` type
82
+ - Added `MiddlewareHandler` type
83
+ - Added `Pipe` type
84
+ - Added `PipeMetadata` type
85
+ - Added `RequestHandler` type
86
+ - Added `RequiredOptions` type
87
+ - Added `RouteParamOptions` type
88
+ - Added `RouteParams` type
89
+ - Added `RouterParams` type
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies
94
+ - @inversifyjs/framework-core@1.0.0
95
+ - @inversifyjs/logger@1.1.0
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Test coverage](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fhttp-core)](https://codecov.io/gh/inversify/monorepo/branch/main/graph/badge.svg?flag=%40inversifyjs%2Fhttp-core)
2
- [![npm version](https://img.shields.io/github/package-json/v/inversify/monorepo?filename=packages%2Fcontainer%2Flibraries%2Fhttp-core%2Fpackage.json&style=plastic)](https://www.npmjs.com/package/@inversifyjs/http-core)
2
+ [![npm version](https://img.shields.io/github/package-json/v/inversify/monorepo?filename=packages%2Fframework%2Flibraries%2Fcore%2Fpackage.json&style=plastic)](https://www.npmjs.com/package/@inversifyjs/http-core)
3
3
 
4
4
  # @inversifyjs/http-core
5
5
 
@@ -1,9 +1,15 @@
1
+ import { HttpResponse } from '../../httpResponse/models/HttpResponse';
1
2
  import { InversifyHttpAdapterErrorKind } from './InversifyHttpAdapterErrorKind';
2
3
  declare const isHttpAdapterErrorSymbol: unique symbol;
3
4
  export declare class InversifyHttpAdapterError extends Error {
4
5
  readonly kind: InversifyHttpAdapterErrorKind;
6
+ readonly extraData?: {
7
+ response: HttpResponse | undefined;
8
+ } | undefined;
5
9
  [isHttpAdapterErrorSymbol]: true;
6
- constructor(kind: InversifyHttpAdapterErrorKind, message?: string, options?: ErrorOptions);
10
+ constructor(kind: InversifyHttpAdapterErrorKind, message?: string, options?: ErrorOptions, extraData?: {
11
+ response: HttpResponse | undefined;
12
+ } | undefined);
7
13
  static is(value: unknown): value is InversifyHttpAdapterError;
8
14
  static isErrorOfKind(value: unknown, kind: InversifyHttpAdapterErrorKind): value is InversifyHttpAdapterError;
9
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InversifyHttpAdapterError.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,QAAA,MAAM,wBAAwB,EAAE,OAAO,MAEtC,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,KAAK;aAIhC,IAAI,EAAE,6BAA6B;IAH9C,CAAC,wBAAwB,CAAC,EAAE,IAAI,CAAC;gBAGtB,IAAI,EAAE,6BAA6B,EACnD,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,YAAY;WAMV,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,yBAAyB;WAStD,aAAa,CACzB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,6BAA6B,GAClC,KAAK,IAAI,yBAAyB;CAGtC"}
1
+ {"version":3,"file":"InversifyHttpAdapterError.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF,QAAA,MAAM,wBAAwB,EAAE,OAAO,MAEtC,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,KAAK;aAIhC,IAAI,EAAE,6BAA6B;aAGnC,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;KAAE;IAN7D,CAAC,wBAAwB,CAAC,EAAE,IAAI,CAAC;gBAGtB,IAAI,EAAE,6BAA6B,EACnD,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,YAAY,EACN,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,YAAY,GAAG,SAAS,CAAA;KAAE,YAAA;WAMtD,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,yBAAyB;WAStD,aAAa,CACzB,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,6BAA6B,GAClC,KAAK,IAAI,yBAAyB;CAGtC"}
@@ -4,10 +4,12 @@ exports.InversifyHttpAdapterError = void 0;
4
4
  const isHttpAdapterErrorSymbol = Symbol.for('@inversifyjs/http-core/InversifyHttpAdapterError');
5
5
  class InversifyHttpAdapterError extends Error {
6
6
  kind;
7
+ extraData;
7
8
  [isHttpAdapterErrorSymbol];
8
- constructor(kind, message, options) {
9
+ constructor(kind, message, options, extraData) {
9
10
  super(message, options);
10
11
  this.kind = kind;
12
+ this.extraData = extraData;
11
13
  this[isHttpAdapterErrorSymbol] = true;
12
14
  }
13
15
  static is(value) {
@@ -1 +1 @@
1
- {"version":3,"file":"InversifyHttpAdapterError.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":";;;AAEA,MAAM,wBAAwB,GAAkB,MAAM,CAAC,GAAG,CACxD,kDAAkD,CACnD,CAAC;AAEF,MAAa,yBAA0B,SAAQ,KAAK;IAIhC;IAHX,CAAC,wBAAwB,CAAC,CAAO;IAExC,YACkB,IAAmC,EACnD,OAAgB,EAChB,OAAsB;QAEtB,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAJR,SAAI,GAAJ,IAAI,CAA+B;QAKnD,IAAI,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACb,KAA0C,CAAC,wBAAwB,CAAC;gBACnE,IAAI,CACP,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,KAAc,EACd,IAAmC;QAEnC,OAAO,yBAAyB,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;IACpE,CAAC;CACF;AA3BD,8DA2BC"}
1
+ {"version":3,"file":"InversifyHttpAdapterError.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterError.ts"],"names":[],"mappings":";;;AAGA,MAAM,wBAAwB,GAAkB,MAAM,CAAC,GAAG,CACxD,kDAAkD,CACnD,CAAC;AAEF,MAAa,yBAA0B,SAAQ,KAAK;IAIhC;IAGA;IANX,CAAC,wBAAwB,CAAC,CAAO;IAExC,YACkB,IAAmC,EACnD,OAAgB,EAChB,OAAsB,EACN,SAAkD;QAElE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QALR,SAAI,GAAJ,IAAI,CAA+B;QAGnC,cAAS,GAAT,SAAS,CAAyC;QAGlE,IAAI,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IACxC,CAAC;IAEM,MAAM,CAAC,EAAE,CAAC,KAAc;QAC7B,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;YACzB,KAAK,KAAK,IAAI;YACb,KAA0C,CAAC,wBAAwB,CAAC;gBACnE,IAAI,CACP,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,KAAc,EACd,IAAmC;QAEnC,OAAO,yBAAyB,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;IACpE,CAAC;CACF;AA5BD,8DA4BC"}
@@ -1,5 +1,6 @@
1
1
  export declare enum InversifyHttpAdapterErrorKind {
2
- noControllerFound = 0,
3
- requestParamIncorrectUse = 1
2
+ invalidOperationAfterBuild = 0,
3
+ noControllerFound = 1,
4
+ requestParamIncorrectUse = 2
4
5
  }
5
6
  //# sourceMappingURL=InversifyHttpAdapterErrorKind.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InversifyHttpAdapterErrorKind.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IACvC,iBAAiB,IAAA;IACjB,wBAAwB,IAAA;CACzB"}
1
+ {"version":3,"file":"InversifyHttpAdapterErrorKind.d.ts","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":"AAAA,oBAAY,6BAA6B;IACvC,0BAA0B,IAAA;IAC1B,iBAAiB,IAAA;IACjB,wBAAwB,IAAA;CACzB"}
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InversifyHttpAdapterErrorKind = void 0;
4
4
  var InversifyHttpAdapterErrorKind;
5
5
  (function (InversifyHttpAdapterErrorKind) {
6
- InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["noControllerFound"] = 0] = "noControllerFound";
7
- InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["requestParamIncorrectUse"] = 1] = "requestParamIncorrectUse";
6
+ InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["invalidOperationAfterBuild"] = 0] = "invalidOperationAfterBuild";
7
+ InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["noControllerFound"] = 1] = "noControllerFound";
8
+ InversifyHttpAdapterErrorKind[InversifyHttpAdapterErrorKind["requestParamIncorrectUse"] = 2] = "requestParamIncorrectUse";
8
9
  })(InversifyHttpAdapterErrorKind || (exports.InversifyHttpAdapterErrorKind = InversifyHttpAdapterErrorKind = {}));
9
10
  //# sourceMappingURL=InversifyHttpAdapterErrorKind.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InversifyHttpAdapterErrorKind.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,2GAAiB,CAAA;IACjB,yHAAwB,CAAA;AAC1B,CAAC,EAHW,6BAA6B,6CAA7B,6BAA6B,QAGxC"}
1
+ {"version":3,"file":"InversifyHttpAdapterErrorKind.js","sourceRoot":"","sources":["../../../../src/error/models/InversifyHttpAdapterErrorKind.ts"],"names":[],"mappings":";;;AAAA,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,6HAA0B,CAAA;IAC1B,2GAAiB,CAAA;IACjB,yHAAwB,CAAA;AAC1B,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC"}
@@ -0,0 +1,4 @@
1
+ import { ErrorFilter } from '@inversifyjs/framework-core';
2
+ import { Newable } from 'inversify';
3
+ export declare function setErrorFilterToErrorFilterMap(errorTypeToErrorFilterMap: Map<Newable<Error> | null, Newable<ErrorFilter>>, errorFilter: Newable<ErrorFilter>): void;
4
+ //# sourceMappingURL=setErrorFilterToErrorFilterMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setErrorFilterToErrorFilterMap.d.ts","sourceRoot":"","sources":["../../../../src/http/actions/setErrorFilterToErrorFilterMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,wBAAgB,8BAA8B,CAC5C,yBAAyB,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,EAC3E,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,GAChC,IAAI,CAYN"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setErrorFilterToErrorFilterMap = setErrorFilterToErrorFilterMap;
4
+ const framework_core_1 = require("@inversifyjs/framework-core");
5
+ function setErrorFilterToErrorFilterMap(errorTypeToErrorFilterMap, errorFilter) {
6
+ const errorTypes = (0, framework_core_1.getCatchErrorMetadata)(errorFilter);
7
+ for (const errorType of errorTypes) {
8
+ const existingErrorFilter = errorTypeToErrorFilterMap.get(errorType);
9
+ if (existingErrorFilter === undefined) {
10
+ errorTypeToErrorFilterMap.set(errorType, errorFilter);
11
+ }
12
+ }
13
+ }
14
+ //# sourceMappingURL=setErrorFilterToErrorFilterMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setErrorFilterToErrorFilterMap.js","sourceRoot":"","sources":["../../../../src/http/actions/setErrorFilterToErrorFilterMap.ts"],"names":[],"mappings":";;AAMA,wEAeC;AArBD,gEAGqC;AAGrC,SAAgB,8BAA8B,CAC5C,yBAA2E,EAC3E,WAAiC;IAEjC,MAAM,UAAU,GACd,IAAA,sCAAqB,EAAC,WAAW,CAAC,CAAC;IAErC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,mBAAmB,GACvB,yBAAyB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAE3C,IAAI,mBAAmB,KAAK,SAAS,EAAE,CAAC;YACtC,yBAAyB,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=setErrorFilterToErrorFilterMap.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setErrorFilterToErrorFilterMap.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/actions/setErrorFilterToErrorFilterMap.spec.ts"],"names":[],"mappings":""}
@@ -1,20 +1,35 @@
1
- import { Container } from 'inversify';
2
- import { RequestHandler } from '../models/RequestHandler';
1
+ import { Readable } from 'node:stream';
2
+ import { ApplyMiddlewareOptions, ErrorFilter, Guard, Interceptor, Middleware, Pipe } from '@inversifyjs/framework-core';
3
+ import { Container, Newable, ServiceIdentifier } from 'inversify';
4
+ import { HttpAdapterOptions } from '../models/HttpAdapterOptions';
5
+ import { HttpStatusCode } from '../models/HttpStatusCode';
6
+ import { RequestMethodParameterType } from '../models/RequestMethodParameterType';
7
+ import { RequiredOptions } from '../models/RequiredOptions';
3
8
  import { RouterParams } from '../models/RouterParams';
4
- import { HttpStatusCode } from '../responses/HttpStatusCode';
5
- export declare abstract class InversifyHttpAdapter<TRequest, TResponse, TNextFunction extends (err?: unknown) => void> {
9
+ export declare abstract class InversifyHttpAdapter<TRequest, TResponse, TNextFunction extends (err?: any) => Promise<void> | void, TResult, TOptions extends HttpAdapterOptions = HttpAdapterOptions> {
6
10
  #private;
7
- constructor(container: Container);
8
- protected _buildServer(): void;
9
- abstract build(): unknown;
10
- protected abstract _getBody(request: TRequest, parameterName?: string | symbol): Promise<unknown>;
11
- protected abstract _getParams(request: TRequest, parameterName?: string | symbol): unknown;
12
- protected abstract _getQuery(request: TRequest, parameterName?: string | symbol): unknown;
13
- protected abstract _getHeaders(request: TRequest, parameterName?: string | symbol): unknown;
14
- protected abstract _getCookies(request: TRequest, parameterName?: string | symbol): unknown;
15
- protected abstract _replyText(request: TRequest, response: TResponse, value: string): unknown;
16
- protected abstract _replyJson(request: TRequest, response: TResponse, value?: object): unknown;
11
+ protected readonly httpAdapterOptions: RequiredOptions<TOptions>;
12
+ protected readonly globalHandlers: {
13
+ interceptorList: Interceptor<TRequest, TResponse>[];
14
+ };
15
+ constructor(container: Container, defaultHttpAdapterOptions: RequiredOptions<TOptions>, httpAdapterOptions: TOptions | undefined, awaitableRequestMethodParamTypes?: Iterable<RequestMethodParameterType> | undefined);
16
+ applyGlobalMiddleware(...middlewareList: (Newable<Middleware> | ApplyMiddlewareOptions)[]): void;
17
+ useGlobalFilters(...errorFilterList: Newable<ErrorFilter>[]): void;
18
+ applyGlobalGuards(...guardList: ServiceIdentifier<Guard<TRequest>>[]): void;
19
+ useGlobalInterceptors(...interceptorList: ServiceIdentifier<Interceptor<TRequest, TResponse>>[]): void;
20
+ useGlobalPipe(...pipeList: (ServiceIdentifier<Pipe> | Pipe)[]): void;
21
+ protected _buildServer(): Promise<void>;
22
+ abstract build(): Promise<unknown>;
23
+ protected abstract _getBody(request: TRequest, parameterName?: string): unknown;
24
+ protected abstract _getParams(request: TRequest, parameterName?: string): unknown;
25
+ protected abstract _getQuery(request: TRequest, parameterName?: string): unknown;
26
+ protected abstract _getHeaders(request: TRequest, parameterName?: string): unknown;
27
+ protected abstract _getCookies(request: TRequest, response: TResponse, parameterName?: string): unknown;
28
+ protected abstract _replyText(request: TRequest, response: TResponse, value: string): TResult;
29
+ protected abstract _replyJson(request: TRequest, response: TResponse, value?: object): TResult;
30
+ protected abstract _replyStream(request: TRequest, response: TResponse, value: Readable): TResult;
17
31
  protected abstract _setStatus(request: TRequest, response: TResponse, statusCode: HttpStatusCode): void;
18
- protected abstract _buildRouter(path: string, routerParams: RouterParams<TRequest, TResponse, TNextFunction>[], middlewareList: RequestHandler<TRequest, TResponse, TNextFunction>[] | undefined): unknown;
32
+ protected abstract _setHeader(request: TRequest, response: TResponse, key: string, value: string): void;
33
+ protected abstract _buildRouter(routerParams: RouterParams<TRequest, TResponse, TNextFunction, TResult>): void | Promise<void>;
19
34
  }
20
35
  //# sourceMappingURL=InversifyHttpAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InversifyHttpAdapter.d.ts","sourceRoot":"","sources":["../../../../src/http/adapter/InversifyHttpAdapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAiBtC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,8BAAsB,oBAAoB,CACxC,QAAQ,EACR,SAAS,EACT,aAAa,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,KAAK,IAAI;;gBAIjC,SAAS,EAAE,SAAS;IAIhC,SAAS,CAAC,YAAY,IAAI,IAAI;aA2Od,KAAK,IAAI,OAAO;IAEhC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CACzB,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO,CAAC,OAAO,CAAC;IAEnB,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,SAAS,CAC1B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC5B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC5B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAC9B,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,MAAM,GACZ,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,cAAc,GACzB,IAAI;IAEP,SAAS,CAAC,QAAQ,CAAC,YAAY,CAC7B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,EAChE,cAAc,EACV,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,CAAC,EAAE,GACpD,SAAS,GACZ,OAAO;CACX"}
1
+ {"version":3,"file":"InversifyHttpAdapter.d.ts","sourceRoot":"","sources":["../../../../src/http/adapter/InversifyHttpAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EACL,sBAAsB,EAEtB,WAAW,EACX,KAAK,EACL,WAAW,EAEX,UAAU,EAEV,IAAI,EAEL,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAgBlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAItD,8BAAsB,oBAAoB,CACxC,QAAQ,EACR,SAAS,EAET,aAAa,SAAS,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,EACzD,OAAO,EACP,QAAQ,SAAS,kBAAkB,GAAG,kBAAkB;;IAExD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjE,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE;QACjC,eAAe,EAAE,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;KACrD,CAAC;gBAmBA,SAAS,EAAE,SAAS,EACpB,yBAAyB,EAAE,eAAe,CAAC,QAAQ,CAAC,EACpD,kBAAkB,EAAE,QAAQ,GAAG,SAAS,EACxC,gCAAgC,CAAC,EAC7B,QAAQ,CAAC,0BAA0B,CAAC,GACpC,SAAS;IAsBR,qBAAqB,CAC1B,GAAG,cAAc,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,sBAAsB,CAAC,EAAE,GAClE,IAAI;IAmBA,gBAAgB,CAAC,GAAG,eAAe,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,GAAG,IAAI;IAMlE,iBAAiB,CACtB,GAAG,SAAS,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,GACjD,IAAI;IAWA,qBAAqB,CAC1B,GAAG,eAAe,EAAE,iBAAiB,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,EAAE,GACxE,IAAI;IAaA,aAAa,CAAC,GAAG,QAAQ,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI;cAI3D,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;aA0mB7B,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;IAEzC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CACzB,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,SAAS,CAC1B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC5B,OAAO,EAAE,QAAQ,EACjB,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,WAAW,CAC5B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,aAAa,CAAC,EAAE,MAAM,GACrB,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,MAAM,GACZ,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,YAAY,CAC7B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,KAAK,EAAE,QAAQ,GACd,OAAO;IAEV,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,UAAU,EAAE,cAAc,GACzB,IAAI;IAEP,SAAS,CAAC,QAAQ,CAAC,UAAU,CAC3B,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,IAAI;IAEP,SAAS,CAAC,QAAQ,CAAC,YAAY,CAC7B,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,CAAC,GACtE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CACxB"}