@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.
- package/LICENSE +21 -0
- package/README.md +6 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts +11 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts.map +1 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.js +24 -0
- package/lib/cjs/error/models/InversifyHttpAdapterError.js.map +1 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts +5 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts.map +1 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js +9 -0
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js.map +1 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +20 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js +136 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -0
- package/lib/cjs/http/decorators/All.d.ts +2 -0
- package/lib/cjs/http/decorators/All.d.ts.map +1 -0
- package/lib/cjs/http/decorators/All.js +8 -0
- package/lib/cjs/http/decorators/All.js.map +1 -0
- package/lib/cjs/http/decorators/All.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/All.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts +2 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts.map +1 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.js +30 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.js.map +1 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Body.d.ts +2 -0
- package/lib/cjs/http/decorators/Body.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Body.js +9 -0
- package/lib/cjs/http/decorators/Body.js.map +1 -0
- package/lib/cjs/http/decorators/Body.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Body.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Controller.d.ts +3 -0
- package/lib/cjs/http/decorators/Controller.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Controller.js +31 -0
- package/lib/cjs/http/decorators/Controller.js.map +1 -0
- package/lib/cjs/http/decorators/Controller.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Controller.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Cookies.d.ts +2 -0
- package/lib/cjs/http/decorators/Cookies.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Cookies.js +9 -0
- package/lib/cjs/http/decorators/Cookies.js.map +1 -0
- package/lib/cjs/http/decorators/Cookies.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Cookies.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Delete.d.ts +2 -0
- package/lib/cjs/http/decorators/Delete.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Delete.js +8 -0
- package/lib/cjs/http/decorators/Delete.js.map +1 -0
- package/lib/cjs/http/decorators/Delete.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Delete.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Get.d.ts +2 -0
- package/lib/cjs/http/decorators/Get.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Get.js +8 -0
- package/lib/cjs/http/decorators/Get.js.map +1 -0
- package/lib/cjs/http/decorators/Get.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Get.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Head.d.ts +2 -0
- package/lib/cjs/http/decorators/Head.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Head.js +8 -0
- package/lib/cjs/http/decorators/Head.js.map +1 -0
- package/lib/cjs/http/decorators/Head.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Head.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Headers.d.ts +2 -0
- package/lib/cjs/http/decorators/Headers.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Headers.js +9 -0
- package/lib/cjs/http/decorators/Headers.js.map +1 -0
- package/lib/cjs/http/decorators/Headers.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Headers.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Next.d.ts +2 -0
- package/lib/cjs/http/decorators/Next.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Next.js +9 -0
- package/lib/cjs/http/decorators/Next.js.map +1 -0
- package/lib/cjs/http/decorators/Next.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Next.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Options.d.ts +2 -0
- package/lib/cjs/http/decorators/Options.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Options.js +8 -0
- package/lib/cjs/http/decorators/Options.js.map +1 -0
- package/lib/cjs/http/decorators/Options.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Options.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Params.d.ts +2 -0
- package/lib/cjs/http/decorators/Params.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Params.js +9 -0
- package/lib/cjs/http/decorators/Params.js.map +1 -0
- package/lib/cjs/http/decorators/Params.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Params.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Patch.d.ts +2 -0
- package/lib/cjs/http/decorators/Patch.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Patch.js +8 -0
- package/lib/cjs/http/decorators/Patch.js.map +1 -0
- package/lib/cjs/http/decorators/Patch.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Patch.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Post.d.ts +2 -0
- package/lib/cjs/http/decorators/Post.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Post.js +8 -0
- package/lib/cjs/http/decorators/Post.js.map +1 -0
- package/lib/cjs/http/decorators/Post.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Post.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Put.d.ts +2 -0
- package/lib/cjs/http/decorators/Put.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Put.js +8 -0
- package/lib/cjs/http/decorators/Put.js.map +1 -0
- package/lib/cjs/http/decorators/Put.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Put.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Query.d.ts +2 -0
- package/lib/cjs/http/decorators/Query.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Query.js +9 -0
- package/lib/cjs/http/decorators/Query.js.map +1 -0
- package/lib/cjs/http/decorators/Query.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Query.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Request.d.ts +2 -0
- package/lib/cjs/http/decorators/Request.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Request.js +9 -0
- package/lib/cjs/http/decorators/Request.js.map +1 -0
- package/lib/cjs/http/decorators/Request.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Request.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestMethod.d.ts +3 -0
- package/lib/cjs/http/decorators/RequestMethod.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestMethod.js +23 -0
- package/lib/cjs/http/decorators/RequestMethod.js.map +1 -0
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestParam.d.ts +3 -0
- package/lib/cjs/http/decorators/RequestParam.d.ts.map +1 -0
- package/lib/cjs/http/decorators/RequestParam.js +41 -0
- package/lib/cjs/http/decorators/RequestParam.js.map +1 -0
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Response.d.ts +2 -0
- package/lib/cjs/http/decorators/Response.d.ts.map +1 -0
- package/lib/cjs/http/decorators/Response.js +9 -0
- package/lib/cjs/http/decorators/Response.js.map +1 -0
- package/lib/cjs/http/decorators/Response.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/Response.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.d.ts +3 -0
- package/lib/cjs/http/decorators/StatusCode.d.ts.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.js +11 -0
- package/lib/cjs/http/decorators/StatusCode.js.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/StatusCode.spec.d.ts.map +1 -0
- package/lib/cjs/http/models/Controller.d.ts +5 -0
- package/lib/cjs/http/models/Controller.d.ts.map +1 -0
- package/lib/cjs/http/models/Controller.js +3 -0
- package/lib/cjs/http/models/Controller.js.map +1 -0
- package/lib/cjs/http/models/ControllerFunction.d.ts +3 -0
- package/lib/cjs/http/models/ControllerFunction.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerFunction.js +3 -0
- package/lib/cjs/http/models/ControllerFunction.js.map +1 -0
- package/lib/cjs/http/models/ControllerMetadata.d.ts +6 -0
- package/lib/cjs/http/models/ControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerMetadata.js +3 -0
- package/lib/cjs/http/models/ControllerMetadata.js.map +1 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.d.ts +7 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.js +3 -0
- package/lib/cjs/http/models/ControllerMethodMetadata.js.map +1 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts +7 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.js +3 -0
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.js.map +1 -0
- package/lib/cjs/http/models/ControllerOptions.d.ts +5 -0
- package/lib/cjs/http/models/ControllerOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerOptions.js +3 -0
- package/lib/cjs/http/models/ControllerOptions.js.map +1 -0
- package/lib/cjs/http/models/ControllerResponse.d.ts +3 -0
- package/lib/cjs/http/models/ControllerResponse.d.ts.map +1 -0
- package/lib/cjs/http/models/ControllerResponse.js +3 -0
- package/lib/cjs/http/models/ControllerResponse.js.map +1 -0
- package/lib/cjs/http/models/Middleware.d.ts +4 -0
- package/lib/cjs/http/models/Middleware.d.ts.map +1 -0
- package/lib/cjs/http/models/Middleware.js +3 -0
- package/lib/cjs/http/models/Middleware.js.map +1 -0
- package/lib/cjs/http/models/RequestHandler.d.ts +2 -0
- package/lib/cjs/http/models/RequestHandler.d.ts.map +1 -0
- package/lib/cjs/http/models/RequestHandler.js +3 -0
- package/lib/cjs/http/models/RequestHandler.js.map +1 -0
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts +11 -0
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts.map +1 -0
- package/lib/cjs/http/models/RequestMethodParameterType.js +15 -0
- package/lib/cjs/http/models/RequestMethodParameterType.js.map +1 -0
- package/lib/cjs/http/models/RequestMethodType.d.ts +11 -0
- package/lib/cjs/http/models/RequestMethodType.d.ts.map +1 -0
- package/lib/cjs/http/models/RequestMethodType.js +15 -0
- package/lib/cjs/http/models/RequestMethodType.js.map +1 -0
- package/lib/cjs/http/models/RouterParams.d.ts +9 -0
- package/lib/cjs/http/models/RouterParams.d.ts.map +1 -0
- package/lib/cjs/http/models/RouterParams.js +3 -0
- package/lib/cjs/http/models/RouterParams.js.map +1 -0
- package/lib/cjs/http/responses/HttpResponse.d.ts +11 -0
- package/lib/cjs/http/responses/HttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/HttpResponse.js +21 -0
- package/lib/cjs/http/responses/HttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/HttpStatusCode.d.ts +58 -0
- package/lib/cjs/http/responses/HttpStatusCode.d.ts.map +1 -0
- package/lib/cjs/http/responses/HttpStatusCode.js +62 -0
- package/lib/cjs/http/responses/HttpStatusCode.js.map +1 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/ConflictHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts +6 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js +11 -0
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/GoneHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/CreatedHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/OkHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.js.map +1 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts +5 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.js +12 -0
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.js.map +1 -0
- package/lib/cjs/index.d.ts +55 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +102 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodParameterMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodStatusCodeMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js.map +1 -0
- package/lib/esm/index.d.ts +265 -0
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +3 -0
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"Next.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Next.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Options.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Options.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Params.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Params.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Patch.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Patch.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Post.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Post.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Put.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Put.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Query.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Query.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Request.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Request.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"RequestMethod.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/RequestMethod.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"RequestParam.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/RequestParam.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Response.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/Response.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"StatusCode.spec.d.ts","sourceRoot":"","sources":["../../../../src/http/decorators/StatusCode.spec.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Controller.js","sourceRoot":"","sources":["../../../../src/http/models/Controller.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerFunction.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerFunction.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerMetadata.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerMetadata.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerMethodParameterMetadata.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerMethodParameterMetadata.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerOptions.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerOptions.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerResponse.js","sourceRoot":"","sources":["../../../../src/http/models/ControllerResponse.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Middleware.js","sourceRoot":"","sources":["../../../../src/http/models/Middleware.ts"],"names":[],"mappings":""}
|
|
@@ -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"}
|