@inversifyjs/http-core 1.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 (343) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -0
  3. package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts +11 -0
  4. package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts.map +1 -0
  5. package/lib/cjs/error/models/InversifyHttpAdapterError.js +24 -0
  6. package/lib/cjs/error/models/InversifyHttpAdapterError.js.map +1 -0
  7. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts +5 -0
  8. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts.map +1 -0
  9. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js +9 -0
  10. package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js.map +1 -0
  11. package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +20 -0
  12. package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -0
  13. package/lib/cjs/http/adapter/InversifyHttpAdapter.js +136 -0
  14. package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -0
  15. package/lib/cjs/http/decorators/All.d.ts +2 -0
  16. package/lib/cjs/http/decorators/All.d.ts.map +1 -0
  17. package/lib/cjs/http/decorators/All.js +8 -0
  18. package/lib/cjs/http/decorators/All.js.map +1 -0
  19. package/lib/cjs/http/decorators/All.spec.d.ts +2 -0
  20. package/lib/cjs/http/decorators/All.spec.d.ts.map +1 -0
  21. package/lib/cjs/http/decorators/ApplyMiddleware.d.ts +2 -0
  22. package/lib/cjs/http/decorators/ApplyMiddleware.d.ts.map +1 -0
  23. package/lib/cjs/http/decorators/ApplyMiddleware.js +30 -0
  24. package/lib/cjs/http/decorators/ApplyMiddleware.js.map +1 -0
  25. package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts +2 -0
  26. package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts.map +1 -0
  27. package/lib/cjs/http/decorators/Body.d.ts +2 -0
  28. package/lib/cjs/http/decorators/Body.d.ts.map +1 -0
  29. package/lib/cjs/http/decorators/Body.js +9 -0
  30. package/lib/cjs/http/decorators/Body.js.map +1 -0
  31. package/lib/cjs/http/decorators/Body.spec.d.ts +2 -0
  32. package/lib/cjs/http/decorators/Body.spec.d.ts.map +1 -0
  33. package/lib/cjs/http/decorators/Controller.d.ts +3 -0
  34. package/lib/cjs/http/decorators/Controller.d.ts.map +1 -0
  35. package/lib/cjs/http/decorators/Controller.js +31 -0
  36. package/lib/cjs/http/decorators/Controller.js.map +1 -0
  37. package/lib/cjs/http/decorators/Controller.spec.d.ts +2 -0
  38. package/lib/cjs/http/decorators/Controller.spec.d.ts.map +1 -0
  39. package/lib/cjs/http/decorators/Cookies.d.ts +2 -0
  40. package/lib/cjs/http/decorators/Cookies.d.ts.map +1 -0
  41. package/lib/cjs/http/decorators/Cookies.js +9 -0
  42. package/lib/cjs/http/decorators/Cookies.js.map +1 -0
  43. package/lib/cjs/http/decorators/Cookies.spec.d.ts +2 -0
  44. package/lib/cjs/http/decorators/Cookies.spec.d.ts.map +1 -0
  45. package/lib/cjs/http/decorators/Delete.d.ts +2 -0
  46. package/lib/cjs/http/decorators/Delete.d.ts.map +1 -0
  47. package/lib/cjs/http/decorators/Delete.js +8 -0
  48. package/lib/cjs/http/decorators/Delete.js.map +1 -0
  49. package/lib/cjs/http/decorators/Delete.spec.d.ts +2 -0
  50. package/lib/cjs/http/decorators/Delete.spec.d.ts.map +1 -0
  51. package/lib/cjs/http/decorators/Get.d.ts +2 -0
  52. package/lib/cjs/http/decorators/Get.d.ts.map +1 -0
  53. package/lib/cjs/http/decorators/Get.js +8 -0
  54. package/lib/cjs/http/decorators/Get.js.map +1 -0
  55. package/lib/cjs/http/decorators/Get.spec.d.ts +2 -0
  56. package/lib/cjs/http/decorators/Get.spec.d.ts.map +1 -0
  57. package/lib/cjs/http/decorators/Head.d.ts +2 -0
  58. package/lib/cjs/http/decorators/Head.d.ts.map +1 -0
  59. package/lib/cjs/http/decorators/Head.js +8 -0
  60. package/lib/cjs/http/decorators/Head.js.map +1 -0
  61. package/lib/cjs/http/decorators/Head.spec.d.ts +2 -0
  62. package/lib/cjs/http/decorators/Head.spec.d.ts.map +1 -0
  63. package/lib/cjs/http/decorators/Headers.d.ts +2 -0
  64. package/lib/cjs/http/decorators/Headers.d.ts.map +1 -0
  65. package/lib/cjs/http/decorators/Headers.js +9 -0
  66. package/lib/cjs/http/decorators/Headers.js.map +1 -0
  67. package/lib/cjs/http/decorators/Headers.spec.d.ts +2 -0
  68. package/lib/cjs/http/decorators/Headers.spec.d.ts.map +1 -0
  69. package/lib/cjs/http/decorators/Next.d.ts +2 -0
  70. package/lib/cjs/http/decorators/Next.d.ts.map +1 -0
  71. package/lib/cjs/http/decorators/Next.js +9 -0
  72. package/lib/cjs/http/decorators/Next.js.map +1 -0
  73. package/lib/cjs/http/decorators/Next.spec.d.ts +2 -0
  74. package/lib/cjs/http/decorators/Next.spec.d.ts.map +1 -0
  75. package/lib/cjs/http/decorators/Options.d.ts +2 -0
  76. package/lib/cjs/http/decorators/Options.d.ts.map +1 -0
  77. package/lib/cjs/http/decorators/Options.js +8 -0
  78. package/lib/cjs/http/decorators/Options.js.map +1 -0
  79. package/lib/cjs/http/decorators/Options.spec.d.ts +2 -0
  80. package/lib/cjs/http/decorators/Options.spec.d.ts.map +1 -0
  81. package/lib/cjs/http/decorators/Params.d.ts +2 -0
  82. package/lib/cjs/http/decorators/Params.d.ts.map +1 -0
  83. package/lib/cjs/http/decorators/Params.js +9 -0
  84. package/lib/cjs/http/decorators/Params.js.map +1 -0
  85. package/lib/cjs/http/decorators/Params.spec.d.ts +2 -0
  86. package/lib/cjs/http/decorators/Params.spec.d.ts.map +1 -0
  87. package/lib/cjs/http/decorators/Patch.d.ts +2 -0
  88. package/lib/cjs/http/decorators/Patch.d.ts.map +1 -0
  89. package/lib/cjs/http/decorators/Patch.js +8 -0
  90. package/lib/cjs/http/decorators/Patch.js.map +1 -0
  91. package/lib/cjs/http/decorators/Patch.spec.d.ts +2 -0
  92. package/lib/cjs/http/decorators/Patch.spec.d.ts.map +1 -0
  93. package/lib/cjs/http/decorators/Post.d.ts +2 -0
  94. package/lib/cjs/http/decorators/Post.d.ts.map +1 -0
  95. package/lib/cjs/http/decorators/Post.js +8 -0
  96. package/lib/cjs/http/decorators/Post.js.map +1 -0
  97. package/lib/cjs/http/decorators/Post.spec.d.ts +2 -0
  98. package/lib/cjs/http/decorators/Post.spec.d.ts.map +1 -0
  99. package/lib/cjs/http/decorators/Put.d.ts +2 -0
  100. package/lib/cjs/http/decorators/Put.d.ts.map +1 -0
  101. package/lib/cjs/http/decorators/Put.js +8 -0
  102. package/lib/cjs/http/decorators/Put.js.map +1 -0
  103. package/lib/cjs/http/decorators/Put.spec.d.ts +2 -0
  104. package/lib/cjs/http/decorators/Put.spec.d.ts.map +1 -0
  105. package/lib/cjs/http/decorators/Query.d.ts +2 -0
  106. package/lib/cjs/http/decorators/Query.d.ts.map +1 -0
  107. package/lib/cjs/http/decorators/Query.js +9 -0
  108. package/lib/cjs/http/decorators/Query.js.map +1 -0
  109. package/lib/cjs/http/decorators/Query.spec.d.ts +2 -0
  110. package/lib/cjs/http/decorators/Query.spec.d.ts.map +1 -0
  111. package/lib/cjs/http/decorators/Request.d.ts +2 -0
  112. package/lib/cjs/http/decorators/Request.d.ts.map +1 -0
  113. package/lib/cjs/http/decorators/Request.js +9 -0
  114. package/lib/cjs/http/decorators/Request.js.map +1 -0
  115. package/lib/cjs/http/decorators/Request.spec.d.ts +2 -0
  116. package/lib/cjs/http/decorators/Request.spec.d.ts.map +1 -0
  117. package/lib/cjs/http/decorators/RequestMethod.d.ts +3 -0
  118. package/lib/cjs/http/decorators/RequestMethod.d.ts.map +1 -0
  119. package/lib/cjs/http/decorators/RequestMethod.js +23 -0
  120. package/lib/cjs/http/decorators/RequestMethod.js.map +1 -0
  121. package/lib/cjs/http/decorators/RequestMethod.spec.d.ts +2 -0
  122. package/lib/cjs/http/decorators/RequestMethod.spec.d.ts.map +1 -0
  123. package/lib/cjs/http/decorators/RequestParam.d.ts +3 -0
  124. package/lib/cjs/http/decorators/RequestParam.d.ts.map +1 -0
  125. package/lib/cjs/http/decorators/RequestParam.js +41 -0
  126. package/lib/cjs/http/decorators/RequestParam.js.map +1 -0
  127. package/lib/cjs/http/decorators/RequestParam.spec.d.ts +2 -0
  128. package/lib/cjs/http/decorators/RequestParam.spec.d.ts.map +1 -0
  129. package/lib/cjs/http/decorators/Response.d.ts +2 -0
  130. package/lib/cjs/http/decorators/Response.d.ts.map +1 -0
  131. package/lib/cjs/http/decorators/Response.js +9 -0
  132. package/lib/cjs/http/decorators/Response.js.map +1 -0
  133. package/lib/cjs/http/decorators/Response.spec.d.ts +2 -0
  134. package/lib/cjs/http/decorators/Response.spec.d.ts.map +1 -0
  135. package/lib/cjs/http/decorators/StatusCode.d.ts +3 -0
  136. package/lib/cjs/http/decorators/StatusCode.d.ts.map +1 -0
  137. package/lib/cjs/http/decorators/StatusCode.js +11 -0
  138. package/lib/cjs/http/decorators/StatusCode.js.map +1 -0
  139. package/lib/cjs/http/decorators/StatusCode.spec.d.ts +2 -0
  140. package/lib/cjs/http/decorators/StatusCode.spec.d.ts.map +1 -0
  141. package/lib/cjs/http/models/Controller.d.ts +5 -0
  142. package/lib/cjs/http/models/Controller.d.ts.map +1 -0
  143. package/lib/cjs/http/models/Controller.js +3 -0
  144. package/lib/cjs/http/models/Controller.js.map +1 -0
  145. package/lib/cjs/http/models/ControllerFunction.d.ts +3 -0
  146. package/lib/cjs/http/models/ControllerFunction.d.ts.map +1 -0
  147. package/lib/cjs/http/models/ControllerFunction.js +3 -0
  148. package/lib/cjs/http/models/ControllerFunction.js.map +1 -0
  149. package/lib/cjs/http/models/ControllerMetadata.d.ts +6 -0
  150. package/lib/cjs/http/models/ControllerMetadata.d.ts.map +1 -0
  151. package/lib/cjs/http/models/ControllerMetadata.js +3 -0
  152. package/lib/cjs/http/models/ControllerMetadata.js.map +1 -0
  153. package/lib/cjs/http/models/ControllerMethodMetadata.d.ts +7 -0
  154. package/lib/cjs/http/models/ControllerMethodMetadata.d.ts.map +1 -0
  155. package/lib/cjs/http/models/ControllerMethodMetadata.js +3 -0
  156. package/lib/cjs/http/models/ControllerMethodMetadata.js.map +1 -0
  157. package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts +7 -0
  158. package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts.map +1 -0
  159. package/lib/cjs/http/models/ControllerMethodParameterMetadata.js +3 -0
  160. package/lib/cjs/http/models/ControllerMethodParameterMetadata.js.map +1 -0
  161. package/lib/cjs/http/models/ControllerOptions.d.ts +5 -0
  162. package/lib/cjs/http/models/ControllerOptions.d.ts.map +1 -0
  163. package/lib/cjs/http/models/ControllerOptions.js +3 -0
  164. package/lib/cjs/http/models/ControllerOptions.js.map +1 -0
  165. package/lib/cjs/http/models/ControllerResponse.d.ts +3 -0
  166. package/lib/cjs/http/models/ControllerResponse.d.ts.map +1 -0
  167. package/lib/cjs/http/models/ControllerResponse.js +3 -0
  168. package/lib/cjs/http/models/ControllerResponse.js.map +1 -0
  169. package/lib/cjs/http/models/Middleware.d.ts +4 -0
  170. package/lib/cjs/http/models/Middleware.d.ts.map +1 -0
  171. package/lib/cjs/http/models/Middleware.js +3 -0
  172. package/lib/cjs/http/models/Middleware.js.map +1 -0
  173. package/lib/cjs/http/models/RequestHandler.d.ts +2 -0
  174. package/lib/cjs/http/models/RequestHandler.d.ts.map +1 -0
  175. package/lib/cjs/http/models/RequestHandler.js +3 -0
  176. package/lib/cjs/http/models/RequestHandler.js.map +1 -0
  177. package/lib/cjs/http/models/RequestMethodParameterType.d.ts +11 -0
  178. package/lib/cjs/http/models/RequestMethodParameterType.d.ts.map +1 -0
  179. package/lib/cjs/http/models/RequestMethodParameterType.js +15 -0
  180. package/lib/cjs/http/models/RequestMethodParameterType.js.map +1 -0
  181. package/lib/cjs/http/models/RequestMethodType.d.ts +11 -0
  182. package/lib/cjs/http/models/RequestMethodType.d.ts.map +1 -0
  183. package/lib/cjs/http/models/RequestMethodType.js +15 -0
  184. package/lib/cjs/http/models/RequestMethodType.js.map +1 -0
  185. package/lib/cjs/http/models/RouterParams.d.ts +9 -0
  186. package/lib/cjs/http/models/RouterParams.d.ts.map +1 -0
  187. package/lib/cjs/http/models/RouterParams.js +3 -0
  188. package/lib/cjs/http/models/RouterParams.js.map +1 -0
  189. package/lib/cjs/http/responses/HttpResponse.d.ts +11 -0
  190. package/lib/cjs/http/responses/HttpResponse.d.ts.map +1 -0
  191. package/lib/cjs/http/responses/HttpResponse.js +21 -0
  192. package/lib/cjs/http/responses/HttpResponse.js.map +1 -0
  193. package/lib/cjs/http/responses/HttpStatusCode.d.ts +58 -0
  194. package/lib/cjs/http/responses/HttpStatusCode.d.ts.map +1 -0
  195. package/lib/cjs/http/responses/HttpStatusCode.js +62 -0
  196. package/lib/cjs/http/responses/HttpStatusCode.js.map +1 -0
  197. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts +5 -0
  198. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts.map +1 -0
  199. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js +12 -0
  200. package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js.map +1 -0
  201. package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts +5 -0
  202. package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts.map +1 -0
  203. package/lib/cjs/http/responses/error/BadRequestHttpResponse.js +12 -0
  204. package/lib/cjs/http/responses/error/BadRequestHttpResponse.js.map +1 -0
  205. package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts +5 -0
  206. package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts.map +1 -0
  207. package/lib/cjs/http/responses/error/ConflictHttpResponse.js +12 -0
  208. package/lib/cjs/http/responses/error/ConflictHttpResponse.js.map +1 -0
  209. package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts +6 -0
  210. package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts.map +1 -0
  211. package/lib/cjs/http/responses/error/ErrorHttpResponse.js +11 -0
  212. package/lib/cjs/http/responses/error/ErrorHttpResponse.js.map +1 -0
  213. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts +5 -0
  214. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts.map +1 -0
  215. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js +12 -0
  216. package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js.map +1 -0
  217. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts +5 -0
  218. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts.map +1 -0
  219. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js +12 -0
  220. package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js.map +1 -0
  221. package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts +5 -0
  222. package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts.map +1 -0
  223. package/lib/cjs/http/responses/error/GoneHttpResponse.js +12 -0
  224. package/lib/cjs/http/responses/error/GoneHttpResponse.js.map +1 -0
  225. package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts +5 -0
  226. package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -0
  227. package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js +12 -0
  228. package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js.map +1 -0
  229. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts +5 -0
  230. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts.map +1 -0
  231. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js +12 -0
  232. package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js.map +1 -0
  233. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts +5 -0
  234. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts.map +1 -0
  235. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js +12 -0
  236. package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js.map +1 -0
  237. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts +5 -0
  238. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts.map +1 -0
  239. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js +12 -0
  240. package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js.map +1 -0
  241. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts +5 -0
  242. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts.map +1 -0
  243. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js +12 -0
  244. package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js.map +1 -0
  245. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts +5 -0
  246. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts.map +1 -0
  247. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js +12 -0
  248. package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js.map +1 -0
  249. package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts +5 -0
  250. package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts.map +1 -0
  251. package/lib/cjs/http/responses/error/NotFoundHttpResponse.js +12 -0
  252. package/lib/cjs/http/responses/error/NotFoundHttpResponse.js.map +1 -0
  253. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts +5 -0
  254. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts.map +1 -0
  255. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js +12 -0
  256. package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js.map +1 -0
  257. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts +5 -0
  258. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts.map +1 -0
  259. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js +12 -0
  260. package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js.map +1 -0
  261. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts +5 -0
  262. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts.map +1 -0
  263. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js +12 -0
  264. package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js.map +1 -0
  265. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts +5 -0
  266. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts.map +1 -0
  267. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js +12 -0
  268. package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js.map +1 -0
  269. package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts +5 -0
  270. package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts.map +1 -0
  271. package/lib/cjs/http/responses/success/AcceptedHttpResponse.js +12 -0
  272. package/lib/cjs/http/responses/success/AcceptedHttpResponse.js.map +1 -0
  273. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts +5 -0
  274. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts.map +1 -0
  275. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js +12 -0
  276. package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js.map +1 -0
  277. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts +5 -0
  278. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts.map +1 -0
  279. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js +12 -0
  280. package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js.map +1 -0
  281. package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts +5 -0
  282. package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts.map +1 -0
  283. package/lib/cjs/http/responses/success/CreatedHttpResponse.js +12 -0
  284. package/lib/cjs/http/responses/success/CreatedHttpResponse.js.map +1 -0
  285. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts +5 -0
  286. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts.map +1 -0
  287. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js +12 -0
  288. package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js.map +1 -0
  289. package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts +5 -0
  290. package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts.map +1 -0
  291. package/lib/cjs/http/responses/success/NoContentHttpResponse.js +12 -0
  292. package/lib/cjs/http/responses/success/NoContentHttpResponse.js.map +1 -0
  293. package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts +5 -0
  294. package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts.map +1 -0
  295. package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js +12 -0
  296. package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js.map +1 -0
  297. package/lib/cjs/http/responses/success/OkHttpResponse.d.ts +5 -0
  298. package/lib/cjs/http/responses/success/OkHttpResponse.d.ts.map +1 -0
  299. package/lib/cjs/http/responses/success/OkHttpResponse.js +12 -0
  300. package/lib/cjs/http/responses/success/OkHttpResponse.js.map +1 -0
  301. package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts +5 -0
  302. package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts.map +1 -0
  303. package/lib/cjs/http/responses/success/PartialContentHttpResponse.js +12 -0
  304. package/lib/cjs/http/responses/success/PartialContentHttpResponse.js.map +1 -0
  305. package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts +5 -0
  306. package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts.map +1 -0
  307. package/lib/cjs/http/responses/success/ResetContentHttpResponse.js +12 -0
  308. package/lib/cjs/http/responses/success/ResetContentHttpResponse.js.map +1 -0
  309. package/lib/cjs/index.d.ts +55 -0
  310. package/lib/cjs/index.d.ts.map +1 -0
  311. package/lib/cjs/index.js +102 -0
  312. package/lib/cjs/index.js.map +1 -0
  313. package/lib/cjs/package.json +3 -0
  314. package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.d.ts +2 -0
  315. package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.d.ts.map +1 -0
  316. package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.js +5 -0
  317. package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.js.map +1 -0
  318. package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.d.ts +2 -0
  319. package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.d.ts.map +1 -0
  320. package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.js +5 -0
  321. package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.js.map +1 -0
  322. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts +2 -0
  323. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts.map +1 -0
  324. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js +5 -0
  325. package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js.map +1 -0
  326. package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.d.ts +2 -0
  327. package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.d.ts.map +1 -0
  328. package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.js +5 -0
  329. package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.js.map +1 -0
  330. package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.d.ts +2 -0
  331. package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.d.ts.map +1 -0
  332. package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.js +5 -0
  333. package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.js.map +1 -0
  334. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts +2 -0
  335. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts.map +1 -0
  336. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js +5 -0
  337. package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js.map +1 -0
  338. package/lib/esm/index.d.ts +265 -0
  339. package/lib/esm/index.d.ts.map +1 -0
  340. package/lib/esm/index.js +2 -0
  341. package/lib/esm/index.js.map +1 -0
  342. package/lib/esm/package.json +3 -0
  343. package/package.json +78 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Next.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Next.ts"],"names":[],"mappings":"AAGA,wBAAgB,IAAI,IAAI,kBAAkB,CAEzC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.next = next;
4
+ 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);
8
+ }
9
+ //# sourceMappingURL=Next.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Next.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Next.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Next.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const OPTIONS: (path?: string) => MethodDecorator;
2
+ //# sourceMappingURL=Options.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OPTIONS = void 0;
4
+ 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;
8
+ //# sourceMappingURL=Options.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Options.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Options.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Options.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function params(parameterName?: string): ParameterDecorator;
2
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.params = params;
4
+ 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);
8
+ }
9
+ //# sourceMappingURL=Params.js.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Params.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Params.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const PATCH: (path?: string) => MethodDecorator;
2
+ //# sourceMappingURL=Patch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Patch.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Patch.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PATCH = void 0;
4
+ const RequestMethodType_1 = require("../models/RequestMethodType");
5
+ const RequestMethod_1 = require("./RequestMethod");
6
+ const PATCH = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.PATCH, path);
7
+ exports.PATCH = PATCH;
8
+ //# sourceMappingURL=Patch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Patch.js","sourceRoot":"","sources":["../../../../src/http/decorators/Patch.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,mDAAgD;AAEzC,MAAM,KAAK,GAAuC,CACvD,IAAa,EACI,EAAE,CAAC,IAAA,6BAAa,EAAC,qCAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAFtD,QAAA,KAAK,SAEiD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Patch.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Patch.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Patch.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const POST: (path?: string) => MethodDecorator;
2
+ //# sourceMappingURL=Post.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Post.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Post.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POST = void 0;
4
+ const RequestMethodType_1 = require("../models/RequestMethodType");
5
+ const RequestMethod_1 = require("./RequestMethod");
6
+ const POST = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.POST, path);
7
+ exports.POST = POST;
8
+ //# sourceMappingURL=Post.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Post.js","sourceRoot":"","sources":["../../../../src/http/decorators/Post.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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Post.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Post.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Post.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const PUT: (path?: string) => MethodDecorator;
2
+ //# sourceMappingURL=Put.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Put.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Put.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,eAE2B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PUT = void 0;
4
+ const RequestMethodType_1 = require("../models/RequestMethodType");
5
+ const RequestMethod_1 = require("./RequestMethod");
6
+ const PUT = (path) => (0, RequestMethod_1.requestMethod)(RequestMethodType_1.RequestMethodType.PUT, path);
7
+ exports.PUT = PUT;
8
+ //# sourceMappingURL=Put.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Put.js","sourceRoot":"","sources":["../../../../src/http/decorators/Put.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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Put.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Put.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Put.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function query(parameterName?: string): ParameterDecorator;
2
+ //# sourceMappingURL=Query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Query.ts"],"names":[],"mappings":"AAGA,wBAAgB,KAAK,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAEhE"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.query = query;
4
+ const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
+ const RequestParam_1 = require("./RequestParam");
6
+ function query(parameterName) {
7
+ return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.QUERY, parameterName);
8
+ }
9
+ //# sourceMappingURL=Query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../src/http/decorators/Query.ts"],"names":[],"mappings":";;AAGA,sBAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,KAAK,CAAC,aAAsB;IAC1C,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Query.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Query.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function request(): ParameterDecorator;
2
+ //# sourceMappingURL=Request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Request.ts"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,IAAI,kBAAkB,CAE5C"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.request = request;
4
+ const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
+ const RequestParam_1 = require("./RequestParam");
6
+ function request() {
7
+ return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.REQUEST);
8
+ }
9
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/http/decorators/Request.ts"],"names":[],"mappings":";;AAGA,0BAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,OAAO;IACrB,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,OAAO,CAAC,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Request.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Request.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { RequestMethodType } from '../models/RequestMethodType';
2
+ export declare function requestMethod(requestMethodType: RequestMethodType, path?: string): MethodDecorator;
3
+ //# sourceMappingURL=RequestMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestMethod.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/RequestMethod.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,iBAAiB,EACpC,IAAI,CAAC,EAAE,MAAM,GACZ,eAAe,CA0BjB"}
@@ -0,0 +1,23 @@
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
+ function requestMethod(requestMethodType, path) {
7
+ return (target, methodKey) => {
8
+ const controllerMethodMetadata = {
9
+ methodKey,
10
+ path: path ?? '/',
11
+ requestMethodType,
12
+ };
13
+ let controllerMethodMetadataList = (0, reflect_metadata_utils_1.getReflectMetadata)(target.constructor, controllerMethodMetadataReflectKey_1.controllerMethodMetadataReflectKey);
14
+ if (controllerMethodMetadataList !== undefined) {
15
+ controllerMethodMetadataList.push(controllerMethodMetadata);
16
+ }
17
+ else {
18
+ controllerMethodMetadataList = [controllerMethodMetadata];
19
+ }
20
+ (0, reflect_metadata_utils_1.setReflectMetadata)(target.constructor, controllerMethodMetadataReflectKey_1.controllerMethodMetadataReflectKey, controllerMethodMetadataList);
21
+ };
22
+ }
23
+ //# sourceMappingURL=RequestMethod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestMethod.js","sourceRoot":"","sources":["../../../../src/http/decorators/RequestMethod.ts"],"names":[],"mappings":";;AASA,sCA6BC;AAtCD,gFAG6C;AAE7C,sHAAmH;AAInH,SAAgB,aAAa,CAC3B,iBAAoC,EACpC,IAAa;IAEb,OAAO,CAAC,MAAc,EAAE,SAA0B,EAAQ,EAAE;QAC1D,MAAM,wBAAwB,GAA6B;YACzD,SAAS;YACT,IAAI,EAAE,IAAI,IAAI,GAAG;YACjB,iBAAiB;SAClB,CAAC;QAEF,IAAI,4BAA4B,GAC9B,IAAA,2CAAkB,EAChB,MAAM,CAAC,WAAW,EAClB,uEAAkC,CACnC,CAAC;QAEJ,IAAI,4BAA4B,KAAK,SAAS,EAAE,CAAC;YAC/C,4BAA4B,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,4BAA4B,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAC5D,CAAC;QAED,IAAA,2CAAkB,EAChB,MAAM,CAAC,WAAW,EAClB,uEAAkC,EAClC,4BAA4B,CAC7B,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/decorators/RequestMethod.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { RequestMethodParameterType } from '../models/RequestMethodParameterType';
2
+ export declare function requestParam(parameterType: RequestMethodParameterType, parameterName?: string): ParameterDecorator;
3
+ //# sourceMappingURL=RequestParam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestParam.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/RequestParam.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,wBAAgB,YAAY,CAC1B,aAAa,EAAE,0BAA0B,EACzC,aAAa,CAAC,EAAE,MAAM,GACrB,kBAAkB,CA8CpB"}
@@ -0,0 +1,41 @@
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
+ function requestParam(parameterType, parameterName) {
9
+ return (target, key, index) => {
10
+ let controllerFunction = undefined;
11
+ if (key !== undefined) {
12
+ controllerFunction = target[key];
13
+ }
14
+ if (controllerFunction === undefined) {
15
+ throw new InversifyHttpAdapterError_1.InversifyHttpAdapterError(InversifyHttpAdapterErrorKind_1.InversifyHttpAdapterErrorKind.requestParamIncorrectUse);
16
+ }
17
+ let parameterMetadataList = (0, reflect_metadata_utils_1.getReflectMetadata)(controllerFunction, controllerMethodParameterMetadataReflectKey_1.controllerMethodParameterMetadataReflectKey);
18
+ const controllerMethodParameterMetadata = {
19
+ index,
20
+ parameterName,
21
+ parameterType,
22
+ };
23
+ if (parameterMetadataList === undefined) {
24
+ parameterMetadataList = [controllerMethodParameterMetadata];
25
+ }
26
+ else {
27
+ insertParameterMetadata(parameterMetadataList, controllerMethodParameterMetadata);
28
+ }
29
+ (0, reflect_metadata_utils_1.setReflectMetadata)(controllerFunction, controllerMethodParameterMetadataReflectKey_1.controllerMethodParameterMetadataReflectKey, parameterMetadataList);
30
+ };
31
+ }
32
+ function insertParameterMetadata(parameterMetadataList, newParameterMetadata) {
33
+ let i = 0;
34
+ while (i < parameterMetadataList.length &&
35
+ parameterMetadataList[i].index <
36
+ newParameterMetadata.index) {
37
+ i++;
38
+ }
39
+ parameterMetadataList.splice(i, 0, newParameterMetadata);
40
+ }
41
+ //# sourceMappingURL=RequestParam.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestParam.js","sourceRoot":"","sources":["../../../../src/http/decorators/RequestParam.ts"],"names":[],"mappings":";;AAaA,oCAiDC;AA9DD,gFAG6C;AAE7C,4FAAyF;AACzF,oGAAiG;AACjG,wIAAqI;AAMrI,SAAgB,YAAY,CAC1B,aAAyC,EACzC,aAAsB;IAEtB,OAAO,CACL,MAAc,EACd,GAAgC,EAChC,KAAa,EACP,EAAE;QACR,IAAI,kBAAkB,GAAmC,SAAS,CAAC;QAEnE,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,kBAAkB,GAAI,MAAqB,CAAC,GAAG,CAAC,CAAC;QACnD,CAAC;QAED,IAAI,kBAAkB,KAAK,SAAS,EAAE,CAAC;YACrC,MAAM,IAAI,qDAAyB,CACjC,6DAA6B,CAAC,wBAAwB,CACvD,CAAC;QACJ,CAAC;QAED,IAAI,qBAAqB,GACvB,IAAA,2CAAkB,EAChB,kBAAkB,EAClB,yFAA2C,CAC5C,CAAC;QAEJ,MAAM,iCAAiC,GACrC;YACE,KAAK;YACL,aAAa;YACb,aAAa;SACd,CAAC;QAEJ,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;YACxC,qBAAqB,GAAG,CAAC,iCAAiC,CAAC,CAAC;QAC9D,CAAC;aAAM,CAAC;YACN,uBAAuB,CACrB,qBAAqB,EACrB,iCAAiC,CAClC,CAAC;QACJ,CAAC;QAED,IAAA,2CAAkB,EAChB,kBAAkB,EAClB,yFAA2C,EAC3C,qBAAqB,CACtB,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,uBAAuB,CAC9B,qBAA0D,EAC1D,oBAAuD;IAEvD,IAAI,CAAC,GAAW,CAAC,CAAC;IAElB,OACE,CAAC,GAAG,qBAAqB,CAAC,MAAM;QAC/B,qBAAqB,CAAC,CAAC,CAAuC,CAAC,KAAK;YACnE,oBAAoB,CAAC,KAAK,EAC5B,CAAC;QACD,CAAC,EAAE,CAAC;IACN,CAAC;IAED,qBAAqB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAC3D,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/decorators/RequestParam.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function response(): ParameterDecorator;
2
+ //# sourceMappingURL=Response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Response.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,IAAI,kBAAkB,CAE7C"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.response = response;
4
+ const RequestMethodParameterType_1 = require("../models/RequestMethodParameterType");
5
+ const RequestParam_1 = require("./RequestParam");
6
+ function response() {
7
+ return (0, RequestParam_1.requestParam)(RequestMethodParameterType_1.RequestMethodParameterType.RESPONSE);
8
+ }
9
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/http/decorators/Response.ts"],"names":[],"mappings":";;AAGA,4BAEC;AALD,qFAAkF;AAClF,iDAA8C;AAE9C,SAAgB,QAAQ;IACtB,OAAO,IAAA,2BAAY,EAAC,uDAA0B,CAAC,QAAQ,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Response.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Response.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { HttpStatusCode } from '../responses/HttpStatusCode';
2
+ export declare function statusCode(statusCode: HttpStatusCode): MethodDecorator;
3
+ //# sourceMappingURL=StatusCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusCode.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/StatusCode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,wBAAgB,UAAU,CAAC,UAAU,EAAE,cAAc,GAAG,eAAe,CAYtE"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.statusCode = statusCode;
4
+ const reflect_metadata_utils_1 = require("@inversifyjs/reflect-metadata-utils");
5
+ const controllerMethodStatusCodeMetadataReflectKey_1 = require("../../reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey");
6
+ function statusCode(statusCode) {
7
+ return (_target, _key, descriptor) => {
8
+ (0, reflect_metadata_utils_1.setReflectMetadata)(descriptor.value, controllerMethodStatusCodeMetadataReflectKey_1.controllerMethodStatusCodeMetadataReflectKey, statusCode);
9
+ };
10
+ }
11
+ //# sourceMappingURL=StatusCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusCode.js","sourceRoot":"","sources":["../../../../src/http/decorators/StatusCode.ts"],"names":[],"mappings":";;AAMA,gCAYC;AAlBD,gFAAyE;AAEzE,0IAAuI;AAIvI,SAAgB,UAAU,CAAC,UAA0B;IACnD,OAAO,CACL,OAAe,EACf,IAAqB,EACrB,UAA8B,EACxB,EAAE;QACR,IAAA,2CAAkB,EAChB,UAAU,CAAC,KAA2B,EACtC,2FAA4C,EAC5C,UAAU,CACX,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StatusCode.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusCode.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/StatusCode.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ControllerFunction } from './ControllerFunction';
2
+ export interface Controller {
3
+ [key: string | symbol]: ControllerFunction;
4
+ }
5
+ //# sourceMappingURL=Controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Controller.d.ts","sourceRoot":"","sources":["../../../../src/http/models/Controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,kBAAkB,CAAC;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Controller.js","sourceRoot":"","sources":["../../../../src/http/models/Controller.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { ControllerResponse } from './ControllerResponse';
2
+ export type ControllerFunction = (...args: unknown[]) => Promise<ControllerResponse> | ControllerResponse;
3
+ //# sourceMappingURL=ControllerFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerFunction.d.ts","sourceRoot":"","sources":["../../../../src/http/models/ControllerFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,CAC/B,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ControllerFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerFunction.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerFunction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface ControllerMetadata {
2
+ path: string;
3
+ controllerName?: string | undefined;
4
+ target: NewableFunction;
5
+ }
6
+ //# sourceMappingURL=ControllerMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerMetadata.d.ts","sourceRoot":"","sources":["../../../../src/http/models/ControllerMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,eAAe,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ControllerMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerMetadata.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerMetadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { RequestMethodType } from './RequestMethodType';
2
+ export interface ControllerMethodMetadata {
3
+ path: string;
4
+ requestMethodType: RequestMethodType;
5
+ methodKey: string | symbol;
6
+ }
7
+ //# sourceMappingURL=ControllerMethodMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerMethodMetadata.d.ts","sourceRoot":"","sources":["../../../../src/http/models/ControllerMethodMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ControllerMethodMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerMethodMetadata.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerMethodMetadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { RequestMethodParameterType } from './RequestMethodParameterType';
2
+ export interface ControllerMethodParameterMetadata {
3
+ index: number;
4
+ parameterType: RequestMethodParameterType;
5
+ parameterName?: string | symbol | undefined;
6
+ }
7
+ //# sourceMappingURL=ControllerMethodParameterMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerMethodParameterMetadata.d.ts","sourceRoot":"","sources":["../../../../src/http/models/ControllerMethodParameterMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,0BAA0B,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC7C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ControllerMethodParameterMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerMethodParameterMetadata.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerMethodParameterMetadata.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export interface ControllerOptions {
2
+ path?: string;
3
+ controllerName?: string;
4
+ }
5
+ //# sourceMappingURL=ControllerOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerOptions.d.ts","sourceRoot":"","sources":["../../../../src/http/models/ControllerOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ControllerOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerOptions.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { HttpResponse } from '../responses/HttpResponse';
2
+ export type ControllerResponse = HttpResponse | object | string | number | boolean | undefined;
3
+ //# sourceMappingURL=ControllerResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerResponse.d.ts","sourceRoot":"","sources":["../../../../src/http/models/ControllerResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAC1B,YAAY,GACZ,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ControllerResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControllerResponse.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface Middleware<TRequest, TResponse, TNextFunction> {
2
+ execute(request: TRequest, response: TResponse, next: TNextFunction): Promise<void>;
3
+ }
4
+ //# sourceMappingURL=Middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Middleware.d.ts","sourceRoot":"","sources":["../../../../src/http/models/Middleware.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa;IAC5D,OAAO,CACL,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Middleware.js","sourceRoot":"","sources":["../../../../src/http/models/Middleware.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type RequestHandler<TRequest, TResponse, TNextFunction> = (req: TRequest, res: TResponse, next: TNextFunction) => Promise<unknown>;
2
+ //# sourceMappingURL=RequestHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestHandler.d.ts","sourceRoot":"","sources":["../../../../src/http/models/RequestHandler.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,IAAI,CAC/D,GAAG,EAAE,QAAQ,EACb,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,aAAa,KAChB,OAAO,CAAC,OAAO,CAAC,CAAC"}