@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
@@ -0,0 +1,2 @@
1
+ export declare function buildSetHeaderMetadata(headerKey: string, value: string): (headerMetadata: Map<string, string>) => Map<string, string>;
2
+ //# sourceMappingURL=buildSetHeaderMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSetHeaderMetadata.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/buildSetHeaderMetadata.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAc9D"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildSetHeaderMetadata = buildSetHeaderMetadata;
4
+ function buildSetHeaderMetadata(headerKey, value) {
5
+ return (headerMetadata) => {
6
+ const fixedKey = headerKey.toLowerCase();
7
+ const headerValue = headerMetadata.get(fixedKey);
8
+ if (headerValue !== undefined) {
9
+ headerMetadata.set(fixedKey, `${headerValue}, ${value}`);
10
+ }
11
+ else {
12
+ headerMetadata.set(fixedKey, value);
13
+ }
14
+ return headerMetadata;
15
+ };
16
+ }
17
+ //# sourceMappingURL=buildSetHeaderMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSetHeaderMetadata.js","sourceRoot":"","sources":["../../../../src/http/calculations/buildSetHeaderMetadata.ts"],"names":[],"mappings":";;AAAA,wDAiBC;AAjBD,SAAgB,sBAAsB,CACpC,SAAiB,EACjB,KAAa;IAEb,OAAO,CAAC,cAAmC,EAAuB,EAAE;QAClE,MAAM,QAAQ,GAAW,SAAS,CAAC,WAAW,EAAE,CAAC;QAEjD,MAAM,WAAW,GAAuB,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAErE,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,WAAW,KAAK,KAAK,EAAE,CAAC,CAAC;QAC3D,CAAC;aAAM,CAAC;YACN,cAAc,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,cAAc,CAAC;IACxB,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=buildSetHeaderMetadata.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSetHeaderMetadata.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/buildSetHeaderMetadata.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { Pipe } from '@inversifyjs/framework-core';
2
+ import { ServiceIdentifier } from 'inversify';
3
+ import { CustomParameterDecoratorHandler } from '../models/CustomParameterDecoratorHandler';
4
+ export declare function createCustomParameterDecorator<TRequest, TResponse, TResult>(handler: CustomParameterDecoratorHandler<TRequest, TResponse, TResult>, ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
5
+ //# sourceMappingURL=createCustomParameterDecorator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomParameterDecorator.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/createCustomParameterDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAI5F,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EACzE,OAAO,EAAE,+BAA+B,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,EACtE,GAAG,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,GACvD,kBAAkB,CAOpB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createCustomParameterDecorator = createCustomParameterDecorator;
4
+ const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
+ const buildRouteParameterDecorator_1 = require("./buildRouteParameterDecorator");
6
+ function createCustomParameterDecorator(handler, ...parameterPipeList) {
7
+ return (0, buildRouteParameterDecorator_1.buildRouteParameterDecorator)(RequestMethodParameterType_1.RequestMethodParameterType.Custom, parameterPipeList, undefined, handler);
8
+ }
9
+ //# sourceMappingURL=createCustomParameterDecorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomParameterDecorator.js","sourceRoot":"","sources":["../../../../src/http/calculations/createCustomParameterDecorator.ts"],"names":[],"mappings":";;AAOA,wEAUC;AAbD,qFAAkF;AAClF,iFAA8E;AAE9E,SAAgB,8BAA8B,CAC5C,OAAsE,EACtE,GAAG,iBAAqD;IAExD,OAAO,IAAA,2DAA4B,EACjC,uDAA0B,CAAC,MAAM,EACjC,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=createCustomParameterDecorator.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomParameterDecorator.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/createCustomParameterDecorator.spec.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
1
  import { RequestMethodType } from '../models/RequestMethodType';
2
2
  export declare function requestMethod(requestMethodType: RequestMethodType, path?: string): MethodDecorator;
3
- //# sourceMappingURL=RequestMethod.d.ts.map
3
+ //# sourceMappingURL=requestMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestMethod.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/requestMethod.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,CAAC,EAAE,MAAM,GACZ,eAAe,CAejB"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requestMethod = requestMethod;
4
+ const reflect_metadata_utils_1 = require("@inversifyjs/reflect-metadata-utils");
5
+ const controllerMethodMetadataReflectKey_1 = require("../../reflectMetadata/data/controllerMethodMetadataReflectKey");
6
+ const buildNormalizedPath_1 = require("./buildNormalizedPath");
7
+ function requestMethod(requestMethodType, path) {
8
+ return (target, methodKey) => {
9
+ const controllerMethodMetadata = {
10
+ methodKey,
11
+ path: (0, buildNormalizedPath_1.buildNormalizedPath)(path ?? '/'),
12
+ requestMethodType,
13
+ };
14
+ (0, reflect_metadata_utils_1.updateOwnReflectMetadata)(target.constructor, controllerMethodMetadataReflectKey_1.controllerMethodMetadataReflectKey, reflect_metadata_utils_1.buildEmptyArrayMetadata, (0, reflect_metadata_utils_1.buildArrayMetadataWithElement)(controllerMethodMetadata));
15
+ };
16
+ }
17
+ //# sourceMappingURL=requestMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestMethod.js","sourceRoot":"","sources":["../../../../src/http/calculations/requestMethod.ts"],"names":[],"mappings":";;AAWA,sCAkBC;AA7BD,gFAI6C;AAE7C,sHAAmH;AAGnH,+DAA4D;AAE5D,SAAgB,aAAa,CAC3B,iBAAoC,EACpC,IAAa;IAEb,OAAO,CAAC,MAAc,EAAE,SAA0B,EAAQ,EAAE;QAC1D,MAAM,wBAAwB,GAA6B;YACzD,SAAS;YACT,IAAI,EAAE,IAAA,yCAAmB,EAAC,IAAI,IAAI,GAAG,CAAC;YACtC,iBAAiB;SAClB,CAAC;QAEF,IAAA,iDAAwB,EACtB,MAAM,CAAC,WAAW,EAClB,uEAAkC,EAClC,gDAAuB,EACvB,IAAA,sDAA6B,EAAC,wBAAwB,CAAC,CACxD,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=requestMethod.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestMethod.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/requestMethod.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { ControllerMethodParameterMetadata } from '../../routerExplorer/model/ControllerMethodParameterMetadata';
2
+ export declare function requestParam(controllerMethodParameterMetadata: ControllerMethodParameterMetadata): ParameterDecorator;
3
+ //# sourceMappingURL=requestParam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestParam.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/requestParam.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iCAAiC,EAAE,MAAM,8DAA8D,CAAC;AAGjH,wBAAgB,YAAY,CAC1B,iCAAiC,EAAE,iCAAiC,GACnE,kBAAkB,CAmCpB"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.requestParam = requestParam;
4
+ const reflect_metadata_utils_1 = require("@inversifyjs/reflect-metadata-utils");
5
+ const InversifyHttpAdapterError_1 = require("../../error/models/InversifyHttpAdapterError");
6
+ const InversifyHttpAdapterErrorKind_1 = require("../../error/models/InversifyHttpAdapterErrorKind");
7
+ const controllerMethodParameterMetadataReflectKey_1 = require("../../reflectMetadata/data/controllerMethodParameterMetadataReflectKey");
8
+ const controllerMethodUseNativeHandlerMetadataReflectKey_1 = require("../../reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey");
9
+ const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
10
+ function requestParam(controllerMethodParameterMetadata) {
11
+ return (target, key, index) => {
12
+ if (key === undefined) {
13
+ throw new InversifyHttpAdapterError_1.InversifyHttpAdapterError(InversifyHttpAdapterErrorKind_1.InversifyHttpAdapterErrorKind.requestParamIncorrectUse, 'Expected param decorator to be used on a method parameter. Instead, it was found on a constructor parameter');
14
+ }
15
+ (0, reflect_metadata_utils_1.updateOwnReflectMetadata)(target.constructor, controllerMethodParameterMetadataReflectKey_1.controllerMethodParameterMetadataReflectKey, reflect_metadata_utils_1.buildEmptyArrayMetadata, (0, reflect_metadata_utils_1.buildArrayMetadataWithIndex)(controllerMethodParameterMetadata, index), key);
16
+ if (controllerMethodParameterMetadata.parameterType ===
17
+ RequestMethodParameterType_1.RequestMethodParameterType.Next ||
18
+ controllerMethodParameterMetadata.parameterType ===
19
+ RequestMethodParameterType_1.RequestMethodParameterType.Response) {
20
+ (0, reflect_metadata_utils_1.setReflectMetadata)(target.constructor, controllerMethodUseNativeHandlerMetadataReflectKey_1.controllerMethodUseNativeHandlerMetadataReflectKey, true, key);
21
+ }
22
+ };
23
+ }
24
+ //# sourceMappingURL=requestParam.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestParam.js","sourceRoot":"","sources":["../../../../src/http/calculations/requestParam.ts"],"names":[],"mappings":";;AAcA,oCAqCC;AAnDD,gFAK6C;AAE7C,4FAAyF;AACzF,oGAAiG;AACjG,wIAAqI;AACrI,sJAAmJ;AAEnJ,qFAAkF;AAElF,SAAgB,YAAY,CAC1B,iCAAoE;IAEpE,OAAO,CACL,MAAc,EACd,GAAgC,EAChC,KAAa,EACP,EAAE;QACR,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,MAAM,IAAI,qDAAyB,CACjC,6DAA6B,CAAC,wBAAwB,EACtD,6GAA6G,CAC9G,CAAC;QACJ,CAAC;QAED,IAAA,iDAAwB,EACtB,MAAM,CAAC,WAAW,EAClB,yFAA2C,EAC3C,gDAAuB,EACvB,IAAA,oDAA2B,EAAC,iCAAiC,EAAE,KAAK,CAAC,EACrE,GAAG,CACJ,CAAC;QAEF,IACE,iCAAiC,CAAC,aAAa;YAC7C,uDAA0B,CAAC,IAAI;YACjC,iCAAiC,CAAC,aAAa;gBAC7C,uDAA0B,CAAC,QAAQ,EACrC,CAAC;YACD,IAAA,2CAAkB,EAChB,MAAM,CAAC,WAAW,EAClB,uGAAkD,EAClD,IAAI,EACJ,GAAG,CACJ,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=requestParam.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestParam.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/calculations/requestParam.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const ALL: (path?: string) => MethodDecorator;
1
+ export declare const All: (path?: string) => MethodDecorator;
2
2
  //# sourceMappingURL=All.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"All.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/All.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
1
+ {"version":3,"file":"All.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/All.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALL = void 0;
3
+ exports.All = void 0;
4
+ const requestMethod_1 = require("../calculations/requestMethod");
4
5
  const RequestMethodType_1 = require("../models/RequestMethodType");
5
- const RequestMethod_1 = require("./RequestMethod");
6
- const ALL = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.ALL, path);
7
- exports.ALL = ALL;
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ const All = (path) => (0, requestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.All, path);
8
+ exports.All = All;
8
9
  //# sourceMappingURL=All.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"All.js","sourceRoot":"","sources":["../../../../src/http/decorators/All.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,GAAG,GAAuC,CACrD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAFpD,QAAA,GAAG,OAEiD"}
1
+ {"version":3,"file":"All.js","sourceRoot":"","sources":["../../../../src/http/decorators/All.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,mEAAgE;AAEhE,gEAAgE;AACzD,MAAM,GAAG,GAAuC,CACrD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAFpD,QAAA,GAAG,OAEiD"}
@@ -1,2 +1,5 @@
1
- export declare function body(parameterName?: string): ParameterDecorator;
1
+ import { Pipe } from '@inversifyjs/framework-core';
2
+ import { ServiceIdentifier } from 'inversify';
3
+ import { RouteParamOptions } from '../models/RouteParamOptions';
4
+ export declare function Body(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
2
5
  //# sourceMappingURL=Body.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Body.ts"],"names":[],"mappings":"AAGA,wBAAgB,IAAI,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAE/D"}
1
+ {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,IAAI,CAClB,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EACpE,GAAG,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,GACvD,kBAAkB,CAMpB"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.body = body;
3
+ exports.Body = Body;
4
+ const buildRouteParameterDecorator_1 = require("../calculations/buildRouteParameterDecorator");
4
5
  const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
- const RequestParam_1 = require("./RequestParam");
6
- function body(parameterName) {
7
- return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.BODY, parameterName);
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ function Body(optionsOrPipe, ...parameterPipeList) {
8
+ return (0, buildRouteParameterDecorator_1.buildRouteParameterDecorator)(RequestMethodParameterType_1.RequestMethodParameterType.Body, parameterPipeList, optionsOrPipe);
8
9
  }
9
10
  //# sourceMappingURL=Body.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../../src/http/decorators/Body.ts"],"names":[],"mappings":";;AAGA,oBAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,IAAI,CAAC,aAAsB;IACzC,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACtE,CAAC"}
1
+ {"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../../src/http/decorators/Body.ts"],"names":[],"mappings":";;AAQA,oBASC;AAdD,+FAA4F;AAC5F,qFAAkF;AAGlF,gEAAgE;AAChE,SAAgB,IAAI,CAClB,aAAoE,EACpE,GAAG,iBAAqD;IAExD,OAAO,IAAA,2DAA4B,EACjC,uDAA0B,CAAC,IAAI,EAC/B,iBAAiB,EACjB,aAAa,CACd,CAAC;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import { ControllerOptions } from '../models/ControllerOptions';
2
- export declare function controller(pathOrOptions?: string | ControllerOptions): ClassDecorator;
2
+ export declare function Controller(pathOrOptions?: string | ControllerOptions): ClassDecorator;
3
3
  //# sourceMappingURL=Controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Controller.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,wBAAgB,UAAU,CACxB,aAAa,CAAC,EAAE,MAAM,GAAG,iBAAiB,GACzC,cAAc,CA+BhB"}
1
+ {"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Controller.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,UAAU,CACxB,aAAa,CAAC,EAAE,MAAM,GAAG,iBAAiB,GACzC,cAAc,CAoChB"}
@@ -1,31 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.controller = controller;
3
+ exports.Controller = Controller;
4
4
  const reflect_metadata_utils_1 = require("@inversifyjs/reflect-metadata-utils");
5
+ const inversify_1 = require("inversify");
5
6
  const controllerMetadataReflectKey_1 = require("../../reflectMetadata/data/controllerMetadataReflectKey");
6
- function controller(pathOrOptions) {
7
+ const buildNormalizedPath_1 = require("../calculations/buildNormalizedPath");
8
+ // eslint-disable-next-line @typescript-eslint/naming-convention
9
+ function Controller(pathOrOptions) {
7
10
  return (target) => {
8
11
  const controllerMetadata = {
9
12
  path: '/',
13
+ serviceIdentifier: target,
10
14
  target,
11
15
  };
16
+ let scope = undefined;
12
17
  if (pathOrOptions !== undefined) {
13
18
  if (typeof pathOrOptions === 'string') {
14
- controllerMetadata.path = pathOrOptions;
19
+ controllerMetadata.path = (0, buildNormalizedPath_1.buildNormalizedPath)(pathOrOptions);
15
20
  }
16
21
  else {
17
- controllerMetadata.controllerName = pathOrOptions.controllerName;
18
- controllerMetadata.path = pathOrOptions.path ?? '/';
22
+ controllerMetadata.path = (0, buildNormalizedPath_1.buildNormalizedPath)(pathOrOptions.path ?? '/');
23
+ if (pathOrOptions.serviceIdentifier !== undefined) {
24
+ controllerMetadata.serviceIdentifier =
25
+ pathOrOptions.serviceIdentifier;
26
+ }
27
+ scope = pathOrOptions.scope;
19
28
  }
20
29
  }
21
- let controllerMetadataList = (0, reflect_metadata_utils_1.getReflectMetadata)(Reflect, controllerMetadataReflectKey_1.controllerMetadataReflectKey);
22
- if (controllerMetadataList !== undefined) {
23
- controllerMetadataList.push(controllerMetadata);
24
- }
25
- else {
26
- controllerMetadataList = [controllerMetadata];
27
- }
28
- (0, reflect_metadata_utils_1.setReflectMetadata)(Reflect, controllerMetadataReflectKey_1.controllerMetadataReflectKey, controllerMetadataList);
30
+ (0, inversify_1.injectable)(scope)(target);
31
+ (0, reflect_metadata_utils_1.updateOwnReflectMetadata)(Reflect, controllerMetadataReflectKey_1.controllerMetadataReflectKey, reflect_metadata_utils_1.buildEmptyArrayMetadata, (0, reflect_metadata_utils_1.buildArrayMetadataWithElement)(controllerMetadata));
29
32
  };
30
33
  }
31
34
  //# sourceMappingURL=Controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Controller.js","sourceRoot":"","sources":["../../../../src/http/decorators/Controller.ts"],"names":[],"mappings":";;AASA,gCAiCC;AA1CD,gFAG6C;AAE7C,0GAAuG;AAIvG,SAAgB,UAAU,CACxB,aAA0C;IAE1C,OAAO,CAAC,MAAuB,EAAQ,EAAE;QACvC,MAAM,kBAAkB,GAAuB;YAC7C,IAAI,EAAE,GAAG;YACT,MAAM;SACP,CAAC;QAEF,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;gBACtC,kBAAkB,CAAC,IAAI,GAAG,aAAa,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACN,kBAAkB,CAAC,cAAc,GAAG,aAAa,CAAC,cAAc,CAAC;gBACjE,kBAAkB,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,IAAI,GAAG,CAAC;YACtD,CAAC;QACH,CAAC;QAED,IAAI,sBAAsB,GACxB,IAAA,2CAAkB,EAAC,OAAO,EAAE,2DAA4B,CAAC,CAAC;QAE5D,IAAI,sBAAsB,KAAK,SAAS,EAAE,CAAC;YACzC,sBAAsB,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAClD,CAAC;aAAM,CAAC;YACN,sBAAsB,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAChD,CAAC;QAED,IAAA,2CAAkB,EAChB,OAAO,EACP,2DAA4B,EAC5B,sBAAsB,CACvB,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"Controller.js","sourceRoot":"","sources":["../../../../src/http/decorators/Controller.ts"],"names":[],"mappings":";;AAaA,gCAsCC;AAnDD,gFAI6C;AAC7C,yCAAqD;AAErD,0GAAuG;AAEvG,6EAA0E;AAG1E,gEAAgE;AAChE,SAAgB,UAAU,CACxB,aAA0C;IAE1C,OAAO,CAAC,MAAuB,EAAQ,EAAE;QACvC,MAAM,kBAAkB,GAAuB;YAC7C,IAAI,EAAE,GAAG;YACT,iBAAiB,EAAE,MAAM;YACzB,MAAM;SACP,CAAC;QAEF,IAAI,KAAK,GAA6B,SAAS,CAAC;QAEhD,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;gBACtC,kBAAkB,CAAC,IAAI,GAAG,IAAA,yCAAmB,EAAC,aAAa,CAAC,CAAC;YAC/D,CAAC;iBAAM,CAAC;gBACN,kBAAkB,CAAC,IAAI,GAAG,IAAA,yCAAmB,EAC3C,aAAa,CAAC,IAAI,IAAI,GAAG,CAC1B,CAAC;gBAEF,IAAI,aAAa,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;oBAClD,kBAAkB,CAAC,iBAAiB;wBAClC,aAAa,CAAC,iBAAiB,CAAC;gBACpC,CAAC;gBAED,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC;YAC9B,CAAC;QACH,CAAC;QAED,IAAA,sBAAU,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;QAE1B,IAAA,iDAAwB,EACtB,OAAO,EACP,2DAA4B,EAC5B,gDAAuB,EACvB,IAAA,sDAA6B,EAAC,kBAAkB,CAAC,CAClD,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -1,2 +1,5 @@
1
- export declare function cookies(parameterName?: string): ParameterDecorator;
1
+ import { Pipe } from '@inversifyjs/framework-core';
2
+ import { ServiceIdentifier } from 'inversify';
3
+ import { RouteParamOptions } from '../models/RouteParamOptions';
4
+ export declare function Cookies(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
2
5
  //# sourceMappingURL=Cookies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cookies.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Cookies.ts"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAElE"}
1
+ {"version":3,"file":"Cookies.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Cookies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,OAAO,CACrB,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EACpE,GAAG,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,GACvD,kBAAkB,CAMpB"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.cookies = cookies;
3
+ exports.Cookies = Cookies;
4
+ const buildRouteParameterDecorator_1 = require("../calculations/buildRouteParameterDecorator");
4
5
  const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
- const RequestParam_1 = require("./RequestParam");
6
- function cookies(parameterName) {
7
- return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.COOKIES, parameterName);
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ function Cookies(optionsOrPipe, ...parameterPipeList) {
8
+ return (0, buildRouteParameterDecorator_1.buildRouteParameterDecorator)(RequestMethodParameterType_1.RequestMethodParameterType.Cookies, parameterPipeList, optionsOrPipe);
8
9
  }
9
10
  //# sourceMappingURL=Cookies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cookies.js","sourceRoot":"","sources":["../../../../src/http/decorators/Cookies.ts"],"names":[],"mappings":";;AAGA,0BAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,OAAO,CAAC,aAAsB;IAC5C,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AACzE,CAAC"}
1
+ {"version":3,"file":"Cookies.js","sourceRoot":"","sources":["../../../../src/http/decorators/Cookies.ts"],"names":[],"mappings":";;AAQA,0BASC;AAdD,+FAA4F;AAC5F,qFAAkF;AAGlF,gEAAgE;AAChE,SAAgB,OAAO,CACrB,aAAoE,EACpE,GAAG,iBAAqD;IAExD,OAAO,IAAA,2DAA4B,EACjC,uDAA0B,CAAC,OAAO,EAClC,iBAAiB,EACjB,aAAa,CACd,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const DELETE: (path?: string) => MethodDecorator;
1
+ export declare const Delete: (path?: string) => MethodDecorator;
2
2
  //# sourceMappingURL=Delete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Delete.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Delete.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
1
+ {"version":3,"file":"Delete.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Delete.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELETE = void 0;
3
+ exports.Delete = void 0;
4
+ const requestMethod_1 = require("../calculations/requestMethod");
4
5
  const RequestMethodType_1 = require("../models/RequestMethodType");
5
- const RequestMethod_1 = require("./RequestMethod");
6
- const DELETE = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.DELETE, path);
7
- exports.DELETE = DELETE;
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ const Delete = (path) => (0, requestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.Delete, path);
8
+ exports.Delete = Delete;
8
9
  //# sourceMappingURL=Delete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Delete.js","sourceRoot":"","sources":["../../../../src/http/decorators/Delete.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,MAAM,GAAuC,CACxD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAFvD,QAAA,MAAM,UAEiD"}
1
+ {"version":3,"file":"Delete.js","sourceRoot":"","sources":["../../../../src/http/decorators/Delete.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,mEAAgE;AAEhE,gEAAgE;AACzD,MAAM,MAAM,GAAuC,CACxD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAFvD,QAAA,MAAM,UAEiD"}
@@ -1,2 +1,2 @@
1
- export declare const GET: (path?: string) => MethodDecorator;
1
+ export declare const Get: (path?: string) => MethodDecorator;
2
2
  //# sourceMappingURL=Get.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Get.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
1
+ {"version":3,"file":"Get.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Get.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET = void 0;
3
+ exports.Get = void 0;
4
+ const requestMethod_1 = require("../calculations/requestMethod");
4
5
  const RequestMethodType_1 = require("../models/RequestMethodType");
5
- const RequestMethod_1 = require("./RequestMethod");
6
- const GET = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.GET, path);
7
- exports.GET = GET;
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ const Get = (path) => (0, requestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.Get, path);
8
+ exports.Get = Get;
8
9
  //# sourceMappingURL=Get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Get.js","sourceRoot":"","sources":["../../../../src/http/decorators/Get.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,GAAG,GAAuC,CACrD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAFpD,QAAA,GAAG,OAEiD"}
1
+ {"version":3,"file":"Get.js","sourceRoot":"","sources":["../../../../src/http/decorators/Get.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,mEAAgE;AAEhE,gEAAgE;AACzD,MAAM,GAAG,GAAuC,CACrD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAFpD,QAAA,GAAG,OAEiD"}
@@ -1,2 +1,2 @@
1
- export declare const HEAD: (path?: string) => MethodDecorator;
1
+ export declare const Head: (path?: string) => MethodDecorator;
2
2
  //# sourceMappingURL=Head.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Head.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Head.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
1
+ {"version":3,"file":"Head.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Head.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HEAD = void 0;
3
+ exports.Head = void 0;
4
+ const requestMethod_1 = require("../calculations/requestMethod");
4
5
  const RequestMethodType_1 = require("../models/RequestMethodType");
5
- const RequestMethod_1 = require("./RequestMethod");
6
- const HEAD = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.HEAD, path);
7
- exports.HEAD = HEAD;
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ const Head = (path) => (0, requestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.Head, path);
8
+ exports.Head = Head;
8
9
  //# sourceMappingURL=Head.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Head.js","sourceRoot":"","sources":["../../../../src/http/decorators/Head.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,IAAI,GAAuC,CACtD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAFrD,QAAA,IAAI,QAEiD"}
1
+ {"version":3,"file":"Head.js","sourceRoot":"","sources":["../../../../src/http/decorators/Head.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,mEAAgE;AAEhE,gEAAgE;AACzD,MAAM,IAAI,GAAuC,CACtD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAFrD,QAAA,IAAI,QAEiD"}
@@ -1,2 +1,5 @@
1
- export declare function headers(parameterName?: string): ParameterDecorator;
1
+ import { Pipe } from '@inversifyjs/framework-core';
2
+ import { ServiceIdentifier } from 'inversify';
3
+ import { RouteParamOptions } from '../models/RouteParamOptions';
4
+ export declare function Headers(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
2
5
  //# sourceMappingURL=Headers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Headers.ts"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAElE"}
1
+ {"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Headers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,OAAO,CACrB,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EACpE,GAAG,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,GACvD,kBAAkB,CAMpB"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.headers = headers;
3
+ exports.Headers = Headers;
4
+ const buildRouteParameterDecorator_1 = require("../calculations/buildRouteParameterDecorator");
4
5
  const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
- const RequestParam_1 = require("./RequestParam");
6
- function headers(parameterName) {
7
- return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.HEADERS, parameterName);
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ function Headers(optionsOrPipe, ...parameterPipeList) {
8
+ return (0, buildRouteParameterDecorator_1.buildRouteParameterDecorator)(RequestMethodParameterType_1.RequestMethodParameterType.Headers, parameterPipeList, optionsOrPipe);
8
9
  }
9
10
  //# sourceMappingURL=Headers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Headers.js","sourceRoot":"","sources":["../../../../src/http/decorators/Headers.ts"],"names":[],"mappings":";;AAGA,0BAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,OAAO,CAAC,aAAsB;IAC5C,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AACzE,CAAC"}
1
+ {"version":3,"file":"Headers.js","sourceRoot":"","sources":["../../../../src/http/decorators/Headers.ts"],"names":[],"mappings":";;AAQA,0BASC;AAdD,+FAA4F;AAC5F,qFAAkF;AAGlF,gEAAgE;AAChE,SAAgB,OAAO,CACrB,aAAoE,EACpE,GAAG,iBAAqD;IAExD,OAAO,IAAA,2DAA4B,EACjC,uDAA0B,CAAC,OAAO,EAClC,iBAAiB,EACjB,aAAa,CACd,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare function next(): ParameterDecorator;
1
+ export declare function Next(): ParameterDecorator;
2
2
  //# sourceMappingURL=Next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Next.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Next.ts"],"names":[],"mappings":"AAGA,wBAAgB,IAAI,IAAI,kBAAkB,CAEzC"}
1
+ {"version":3,"file":"Next.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Next.ts"],"names":[],"mappings":"AAIA,wBAAgB,IAAI,IAAI,kBAAkB,CAEzC"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.next = next;
3
+ exports.Next = Next;
4
+ const buildRouteParameterDecorator_1 = require("../calculations/buildRouteParameterDecorator");
4
5
  const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
- const RequestParam_1 = require("./RequestParam");
6
- function next() {
7
- return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.NEXT);
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ function Next() {
8
+ return (0, buildRouteParameterDecorator_1.buildRouteParameterDecorator)(RequestMethodParameterType_1.RequestMethodParameterType.Next, []);
8
9
  }
9
10
  //# sourceMappingURL=Next.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Next.js","sourceRoot":"","sources":["../../../../src/http/decorators/Next.ts"],"names":[],"mappings":";;AAGA,oBAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,IAAI;IAClB,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC"}
1
+ {"version":3,"file":"Next.js","sourceRoot":"","sources":["../../../../src/http/decorators/Next.ts"],"names":[],"mappings":";;AAIA,oBAEC;AAND,+FAA4F;AAC5F,qFAAkF;AAElF,gEAAgE;AAChE,SAAgB,IAAI;IAClB,OAAO,IAAA,2DAA4B,EAAC,uDAA0B,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const OPTIONS: (path?: string) => MethodDecorator;
1
+ export declare const Options: (path?: string) => MethodDecorator;
2
2
  //# sourceMappingURL=Options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Options.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Options.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OPTIONS = void 0;
3
+ exports.Options = void 0;
4
+ const requestMethod_1 = require("../calculations/requestMethod");
4
5
  const RequestMethodType_1 = require("../models/RequestMethodType");
5
- const RequestMethod_1 = require("./RequestMethod");
6
- const OPTIONS = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.OPTIONS, path);
7
- exports.OPTIONS = OPTIONS;
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ const Options = (path) => (0, requestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.Options, path);
8
+ exports.Options = Options;
8
9
  //# sourceMappingURL=Options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../../src/http/decorators/Options.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,OAAO,GAAuC,CACzD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAFxD,QAAA,OAAO,WAEiD"}
1
+ {"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../../src/http/decorators/Options.ts"],"names":[],"mappings":";;;AAAA,iEAA8D;AAC9D,mEAAgE;AAEhE,gEAAgE;AACzD,MAAM,OAAO,GAAuC,CACzD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAFxD,QAAA,OAAO,WAEiD"}
@@ -1,2 +1,5 @@
1
- export declare function params(parameterName?: string): ParameterDecorator;
1
+ import { Pipe } from '@inversifyjs/framework-core';
2
+ import { ServiceIdentifier } from 'inversify';
3
+ import { RouteParamOptions } from '../models/RouteParamOptions';
4
+ export declare function Params(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
2
5
  //# sourceMappingURL=Params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Params.ts"],"names":[],"mappings":"AAGA,wBAAgB,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAEjE"}
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAI9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,MAAM,CACpB,aAAa,CAAC,EAAE,iBAAiB,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EACpE,GAAG,iBAAiB,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,GACvD,kBAAkB,CAMpB"}
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.params = params;
3
+ exports.Params = Params;
4
+ const buildRouteParameterDecorator_1 = require("../calculations/buildRouteParameterDecorator");
4
5
  const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
- const RequestParam_1 = require("./RequestParam");
6
- function params(parameterName) {
7
- return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.PARAMS, parameterName);
6
+ // eslint-disable-next-line @typescript-eslint/naming-convention
7
+ function Params(optionsOrPipe, ...parameterPipeList) {
8
+ return (0, buildRouteParameterDecorator_1.buildRouteParameterDecorator)(RequestMethodParameterType_1.RequestMethodParameterType.Params, parameterPipeList, optionsOrPipe);
8
9
  }
9
10
  //# sourceMappingURL=Params.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Params.js","sourceRoot":"","sources":["../../../../src/http/decorators/Params.ts"],"names":[],"mappings":";;AAGA,wBAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,MAAM,CAAC,aAAsB;IAC3C,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACxE,CAAC"}
1
+ {"version":3,"file":"Params.js","sourceRoot":"","sources":["../../../../src/http/decorators/Params.ts"],"names":[],"mappings":";;AAQA,wBASC;AAdD,+FAA4F;AAC5F,qFAAkF;AAGlF,gEAAgE;AAChE,SAAgB,MAAM,CACpB,aAAoE,EACpE,GAAG,iBAAqD;IAExD,OAAO,IAAA,2DAA4B,EACjC,uDAA0B,CAAC,MAAM,EACjC,iBAAiB,EACjB,aAAa,CACd,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const PATCH: (path?: string) => MethodDecorator;
1
+ export declare const Patch: (path?: string) => MethodDecorator;
2
2
  //# sourceMappingURL=Patch.d.ts.map