@inversifyjs/http-core 1.0.0 → 2.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/CHANGELOG.md +93 -0
- package/README.md +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts +7 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.d.ts.map +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.js +3 -1
- package/lib/cjs/error/models/InversifyHttpAdapterError.js.map +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts +3 -2
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.d.ts.map +1 -1
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js +3 -2
- package/lib/cjs/error/models/InversifyHttpAdapterErrorKind.js.map +1 -1
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts +4 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.d.ts.map +1 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js +14 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.js.map +1 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.spec.d.ts +2 -0
- package/lib/cjs/http/actions/setErrorFilterToErrorFilterMap.spec.d.ts.map +1 -0
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts +30 -15
- package/lib/cjs/http/adapter/InversifyHttpAdapter.d.ts.map +1 -1
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js +273 -84
- package/lib/cjs/http/adapter/InversifyHttpAdapter.js.map +1 -1
- package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts +7 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.js +57 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.js.map +1 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildInterceptedHandler.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.d.ts +2 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.js +10 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.js.map +1 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildNormalizedPath.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.d.ts +7 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.js +29 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.js.map +1 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildRouteParameterDecorator.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.d.ts +2 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.d.ts.map +1 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.js +17 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.js.map +1 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/buildSetHeaderMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.d.ts +5 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.d.ts.map +1 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.js +9 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.js.map +1 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/createCustomParameterDecorator.spec.d.ts.map +1 -0
- package/lib/cjs/http/{decorators/RequestMethod.d.ts → calculations/requestMethod.d.ts} +1 -1
- package/lib/cjs/http/calculations/requestMethod.d.ts.map +1 -0
- package/lib/cjs/http/calculations/requestMethod.js +17 -0
- package/lib/cjs/http/calculations/requestMethod.js.map +1 -0
- package/lib/cjs/http/calculations/requestMethod.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/requestMethod.spec.d.ts.map +1 -0
- package/lib/cjs/http/calculations/requestParam.d.ts +3 -0
- package/lib/cjs/http/calculations/requestParam.d.ts.map +1 -0
- package/lib/cjs/http/calculations/requestParam.js +24 -0
- package/lib/cjs/http/calculations/requestParam.js.map +1 -0
- package/lib/cjs/http/calculations/requestParam.spec.d.ts +2 -0
- package/lib/cjs/http/calculations/requestParam.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/All.d.ts +1 -1
- package/lib/cjs/http/decorators/All.d.ts.map +1 -1
- package/lib/cjs/http/decorators/All.js +5 -4
- package/lib/cjs/http/decorators/All.js.map +1 -1
- package/lib/cjs/http/decorators/Body.d.ts +4 -1
- package/lib/cjs/http/decorators/Body.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Body.js +5 -4
- package/lib/cjs/http/decorators/Body.js.map +1 -1
- package/lib/cjs/http/decorators/Controller.d.ts +1 -1
- package/lib/cjs/http/decorators/Controller.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Controller.js +16 -13
- package/lib/cjs/http/decorators/Controller.js.map +1 -1
- package/lib/cjs/http/decorators/Cookies.d.ts +4 -1
- package/lib/cjs/http/decorators/Cookies.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Cookies.js +5 -4
- package/lib/cjs/http/decorators/Cookies.js.map +1 -1
- package/lib/cjs/http/decorators/Delete.d.ts +1 -1
- package/lib/cjs/http/decorators/Delete.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Delete.js +5 -4
- package/lib/cjs/http/decorators/Delete.js.map +1 -1
- package/lib/cjs/http/decorators/Get.d.ts +1 -1
- package/lib/cjs/http/decorators/Get.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Get.js +5 -4
- package/lib/cjs/http/decorators/Get.js.map +1 -1
- package/lib/cjs/http/decorators/Head.d.ts +1 -1
- package/lib/cjs/http/decorators/Head.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Head.js +5 -4
- package/lib/cjs/http/decorators/Head.js.map +1 -1
- package/lib/cjs/http/decorators/Headers.d.ts +4 -1
- package/lib/cjs/http/decorators/Headers.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Headers.js +5 -4
- package/lib/cjs/http/decorators/Headers.js.map +1 -1
- package/lib/cjs/http/decorators/Next.d.ts +1 -1
- package/lib/cjs/http/decorators/Next.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Next.js +5 -4
- package/lib/cjs/http/decorators/Next.js.map +1 -1
- package/lib/cjs/http/decorators/Options.d.ts +1 -1
- package/lib/cjs/http/decorators/Options.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Options.js +5 -4
- package/lib/cjs/http/decorators/Options.js.map +1 -1
- package/lib/cjs/http/decorators/Params.d.ts +4 -1
- package/lib/cjs/http/decorators/Params.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Params.js +5 -4
- package/lib/cjs/http/decorators/Params.js.map +1 -1
- package/lib/cjs/http/decorators/Patch.d.ts +1 -1
- package/lib/cjs/http/decorators/Patch.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Patch.js +5 -4
- package/lib/cjs/http/decorators/Patch.js.map +1 -1
- package/lib/cjs/http/decorators/Post.d.ts +1 -1
- package/lib/cjs/http/decorators/Post.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Post.js +5 -4
- package/lib/cjs/http/decorators/Post.js.map +1 -1
- package/lib/cjs/http/decorators/Put.d.ts +1 -1
- package/lib/cjs/http/decorators/Put.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Put.js +5 -4
- package/lib/cjs/http/decorators/Put.js.map +1 -1
- package/lib/cjs/http/decorators/Query.d.ts +4 -1
- package/lib/cjs/http/decorators/Query.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Query.js +5 -4
- package/lib/cjs/http/decorators/Query.js.map +1 -1
- package/lib/cjs/http/decorators/Request.d.ts +3 -1
- package/lib/cjs/http/decorators/Request.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Request.js +5 -4
- package/lib/cjs/http/decorators/Request.js.map +1 -1
- package/lib/cjs/http/decorators/Response.d.ts +3 -1
- package/lib/cjs/http/decorators/Response.d.ts.map +1 -1
- package/lib/cjs/http/decorators/Response.js +5 -4
- package/lib/cjs/http/decorators/Response.js.map +1 -1
- package/lib/cjs/http/decorators/SetHeader.d.ts +2 -0
- package/lib/cjs/http/decorators/SetHeader.d.ts.map +1 -0
- package/lib/cjs/http/decorators/SetHeader.js +13 -0
- package/lib/cjs/http/decorators/SetHeader.js.map +1 -0
- package/lib/cjs/http/decorators/SetHeader.spec.d.ts +2 -0
- package/lib/cjs/http/decorators/SetHeader.spec.d.ts.map +1 -0
- package/lib/cjs/http/decorators/StatusCode.d.ts +2 -2
- package/lib/cjs/http/decorators/StatusCode.d.ts.map +1 -1
- package/lib/cjs/http/decorators/StatusCode.js +5 -4
- package/lib/cjs/http/decorators/StatusCode.js.map +1 -1
- package/lib/cjs/http/models/ControllerOptions.d.ts +3 -1
- package/lib/cjs/http/models/ControllerOptions.d.ts.map +1 -1
- package/lib/cjs/http/models/ControllerResponse.d.ts +3 -2
- package/lib/cjs/http/models/ControllerResponse.d.ts.map +1 -1
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.d.ts +2 -0
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.d.ts.map +1 -0
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.js +3 -0
- package/lib/cjs/http/models/CustomParameterDecoratorHandler.js.map +1 -0
- package/lib/cjs/http/models/HttpAdapterOptions.d.ts +5 -0
- package/lib/cjs/http/models/HttpAdapterOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/HttpAdapterOptions.js +3 -0
- package/lib/cjs/http/models/HttpAdapterOptions.js.map +1 -0
- package/lib/cjs/http/models/HttpStatusCode.d.ts.map +1 -0
- package/lib/cjs/http/models/HttpStatusCode.js.map +1 -0
- package/lib/cjs/http/models/MiddlewareHandler.d.ts +2 -0
- package/lib/cjs/http/models/MiddlewareHandler.d.ts.map +1 -0
- package/lib/cjs/http/models/MiddlewareHandler.js +3 -0
- package/lib/cjs/http/models/MiddlewareHandler.js.map +1 -0
- package/lib/cjs/http/models/RequestHandler.d.ts +1 -1
- package/lib/cjs/http/models/RequestHandler.d.ts.map +1 -1
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts +9 -8
- package/lib/cjs/http/models/RequestMethodParameterType.d.ts.map +1 -1
- package/lib/cjs/http/models/RequestMethodParameterType.js +9 -8
- package/lib/cjs/http/models/RequestMethodParameterType.js.map +1 -1
- package/lib/cjs/http/models/RequestMethodType.d.ts +8 -8
- package/lib/cjs/http/models/RequestMethodType.d.ts.map +1 -1
- package/lib/cjs/http/models/RequestMethodType.js +8 -8
- package/lib/cjs/http/models/RequestMethodType.js.map +1 -1
- package/lib/cjs/http/models/RequiredOptions.d.ts +4 -0
- package/lib/cjs/http/models/RequiredOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/RequiredOptions.js +3 -0
- package/lib/cjs/http/models/RequiredOptions.js.map +1 -0
- package/lib/cjs/http/models/RouteParamOptions.d.ts +4 -0
- package/lib/cjs/http/models/RouteParamOptions.d.ts.map +1 -0
- package/lib/cjs/http/models/RouteParamOptions.js +3 -0
- package/lib/cjs/http/models/RouteParamOptions.js.map +1 -0
- package/lib/cjs/http/models/RouteParams.d.ts +12 -0
- package/lib/cjs/http/models/RouteParams.d.ts.map +1 -0
- package/lib/cjs/http/models/{Middleware.js → RouteParams.js} +1 -1
- package/lib/cjs/http/models/RouteParams.js.map +1 -0
- package/lib/cjs/http/models/RouterParams.d.ts +3 -6
- package/lib/cjs/http/models/RouterParams.d.ts.map +1 -1
- package/lib/cjs/httpResponse/calculations/isHttpResponse.d.ts +3 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.js +10 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.spec.d.ts +2 -0
- package/lib/cjs/httpResponse/calculations/isHttpResponse.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/AcceptedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/AcceptedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/AcceptedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/AcceptedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/AlreadyReportedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/AlreadyReportedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/BadGatewayHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/BadGatewayHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/BadRequestHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/BadRequestHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/ConflictHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ConflictHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/ContentDifferentHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ContentDifferentHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/CreatedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/CreatedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/CreatedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/CreatedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts +14 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.js +25 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.spec.d.ts +2 -0
- package/lib/cjs/httpResponse/models/ErrorHttpResponse.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/ForbiddenHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ForbiddenHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/GatewayTimeoutHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/GatewayTimeoutHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/GoneHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/GoneHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/GoneHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/HttpResponse.d.ts +9 -0
- package/lib/cjs/httpResponse/models/HttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/HttpResponse.js +5 -0
- package/lib/cjs/httpResponse/models/HttpResponse.js.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/HttpVersionNotSupportedHttpResponse.d.ts +1 -1
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/HttpVersionNotSupportedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/HttpVersionNotSupportedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/InsufficientStorageHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/InsufficientStorageHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/InternalServerErrorHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/InternalServerErrorHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/LoopDetectedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/LoopDetectedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/MethodNotAllowedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/MethodNotAllowedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/MultiStatusHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/MultiStatusHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.js +12 -0
- package/lib/cjs/httpResponse/models/NoContentHttpResponse.js.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/NonAuthoritativeInformationHttpResponse.d.ts +2 -2
- package/lib/cjs/httpResponse/models/NonAuthoritativeInformationHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/NonAuthoritativeInformationHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NonAuthoritativeInformationHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/NotAcceptableHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NotAcceptableHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/NotFoundHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NotFoundHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/NotImplementedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/NotImplementedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.js +12 -0
- package/lib/cjs/httpResponse/models/OkHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/PartialContentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/PartialContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/PartialContentHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/PartialContentHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/PaymentRequiredHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/PaymentRequiredHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ResetContentHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ResetContentHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/success → httpResponse/models}/ResetContentHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ResetContentHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/ServiceUnavailableHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/ServiceUnavailableHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts +14 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.js +24 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.spec.d.ts +2 -0
- package/lib/cjs/httpResponse/models/SuccessHttpResponse.spec.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.d.ts.map +1 -0
- package/lib/cjs/{http/responses/error → httpResponse/models}/UnauthorizedHttpResponse.js +3 -3
- package/lib/cjs/httpResponse/models/UnauthorizedHttpResponse.js.map +1 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts +5 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.d.ts.map +1 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js +12 -0
- package/lib/cjs/httpResponse/models/UnprocessableEntityHttpResponse.js.map +1 -0
- package/lib/cjs/index.d.ts +67 -51
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +86 -62
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodHeaderMetadataReflectKey.js.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.d.ts +2 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.d.ts.map +1 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.js +5 -0
- package/lib/cjs/reflectMetadata/data/controllerMethodUseNativeHandlerMetadataReflectKey.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts +4 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js +16 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildErrorTypeToErrorFilterMap.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts +4 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js +15 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts +4 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js +21 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts +5 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js +49 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts +5 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js +8 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/buildRouterExplorerControllerMethodMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.js +14 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodHeaderMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodParameterMetadataList.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.d.ts +3 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodStatusCodeMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.js +9 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.spec.d.ts +2 -0
- package/lib/cjs/routerExplorer/calculations/getControllerMethodUseNativeHandlerMetadata.spec.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMetadata.d.ts +7 -0
- package/lib/cjs/routerExplorer/model/ControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMetadata.js.map +1 -0
- package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodMetadata.d.ts +1 -1
- package/lib/cjs/routerExplorer/model/ControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.d.ts +11 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/ControllerMethodParameterMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.d.ts +9 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.js +4 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMetadata.js.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts +20 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.d.ts.map +1 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.js +3 -0
- package/lib/cjs/routerExplorer/model/RouterExplorerControllerMethodMetadata.js.map +1 -0
- package/lib/esm/index.d.ts +191 -103
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +24 -23
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts +0 -2
- package/lib/cjs/http/decorators/ApplyMiddleware.d.ts.map +0 -1
- package/lib/cjs/http/decorators/ApplyMiddleware.js +0 -30
- package/lib/cjs/http/decorators/ApplyMiddleware.js.map +0 -1
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts +0 -2
- package/lib/cjs/http/decorators/ApplyMiddleware.spec.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestMethod.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestMethod.js +0 -23
- package/lib/cjs/http/decorators/RequestMethod.js.map +0 -1
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts +0 -2
- package/lib/cjs/http/decorators/RequestMethod.spec.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestParam.d.ts +0 -3
- package/lib/cjs/http/decorators/RequestParam.d.ts.map +0 -1
- package/lib/cjs/http/decorators/RequestParam.js +0 -41
- package/lib/cjs/http/decorators/RequestParam.js.map +0 -1
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts +0 -2
- package/lib/cjs/http/decorators/RequestParam.spec.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMetadata.d.ts +0 -6
- package/lib/cjs/http/models/ControllerMetadata.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMetadata.js.map +0 -1
- package/lib/cjs/http/models/ControllerMethodMetadata.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMethodMetadata.js.map +0 -1
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts +0 -7
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.d.ts.map +0 -1
- package/lib/cjs/http/models/ControllerMethodParameterMetadata.js.map +0 -1
- package/lib/cjs/http/models/Middleware.d.ts +0 -4
- package/lib/cjs/http/models/Middleware.d.ts.map +0 -1
- package/lib/cjs/http/models/Middleware.js.map +0 -1
- package/lib/cjs/http/responses/HttpResponse.d.ts +0 -11
- package/lib/cjs/http/responses/HttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/HttpResponse.js +0 -21
- package/lib/cjs/http/responses/HttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/HttpStatusCode.d.ts.map +0 -1
- package/lib/cjs/http/responses/HttpStatusCode.js.map +0 -1
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/BadGatewayHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/BadRequestHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/ConflictHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ConflictHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts +0 -6
- package/lib/cjs/http/responses/error/ErrorHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js +0 -11
- package/lib/cjs/http/responses/error/ErrorHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ForbiddenHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/GatewayTimeoutHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/GoneHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/GoneHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/HttpVersionNotSupportedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/InsufficientStorageHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/InternalServerErrorHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/LoopDetectedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/MethodNotAllowedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/NotAcceptableHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/NotFoundHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/NotImplementedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/PaymentRequiredHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/ServiceUnavailableHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/error/UnauthorizedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/AcceptedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/AlreadyReportedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/ContentDifferentHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/CreatedHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/CreatedHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/MultiStatusHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/NoContentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js +0 -12
- package/lib/cjs/http/responses/success/NoContentHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/NonAuthoritativeInformationHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/OkHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/OkHttpResponse.js +0 -12
- package/lib/cjs/http/responses/success/OkHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/PartialContentHttpResponse.js.map +0 -1
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts +0 -5
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.d.ts.map +0 -1
- package/lib/cjs/http/responses/success/ResetContentHttpResponse.js.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts +0 -2
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.d.ts.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js +0 -5
- package/lib/cjs/reflectMetadata/data/controllerMethodMiddlewareMetadataReflectKey.js.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts +0 -2
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.d.ts.map +0 -1
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js +0 -5
- package/lib/cjs/reflectMetadata/data/controllerMiddlewareMetadataReflectKey.js.map +0 -1
- /package/lib/cjs/http/{responses → models}/HttpStatusCode.d.ts +0 -0
- /package/lib/cjs/http/{responses → models}/HttpStatusCode.js +0 -0
- /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMetadata.js +0 -0
- /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodMetadata.js +0 -0
- /package/lib/cjs/{http/models → routerExplorer/model}/ControllerMethodParameterMetadata.js +0 -0
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Interceptor, Middleware, ApplyMiddlewareOptions, ErrorFilter, Guard, Pipe } from '@inversifyjs/framework-core';
|
|
2
|
+
export { ApplyMiddleware, CatchError, CatchErrorOptions, ErrorFilter, Guard, Interceptor, InterceptorTransformObject, Middleware, MiddlewarePhase, Pipe, PipeMetadata, UseErrorFilter, UseGuard, UseInterceptor } from '@inversifyjs/framework-core';
|
|
3
|
+
import { Readable, Stream } from 'node:stream';
|
|
4
|
+
import { Container, Newable, ServiceIdentifier, BindingScope } from 'inversify';
|
|
5
|
+
import { Logger } from '@inversifyjs/logger';
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare enum RequestMethodType {
|
|
6
|
-
GET = "get",
|
|
7
|
-
POST = "post",
|
|
8
|
-
PUT = "put",
|
|
9
|
-
DELETE = "delete",
|
|
10
|
-
PATCH = "patch",
|
|
11
|
-
OPTIONS = "options",
|
|
12
|
-
HEAD = "head",
|
|
13
|
-
ALL = "all"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface RouterParams<TRequest, TResponse, TNextFunction> {
|
|
17
|
-
handler: RequestHandler<TRequest, TResponse, TNextFunction>;
|
|
18
|
-
middlewareList: RequestHandler<TRequest, TResponse, TNextFunction>[] | undefined;
|
|
19
|
-
path: string;
|
|
20
|
-
requestMethodType: RequestMethodType;
|
|
7
|
+
interface HttpAdapterOptions {
|
|
8
|
+
logger?: boolean | Logger;
|
|
21
9
|
}
|
|
22
10
|
|
|
23
11
|
declare enum HttpStatusCode {
|
|
@@ -78,188 +66,288 @@ declare enum HttpStatusCode {
|
|
|
78
66
|
LOOP_DETECTED = 508
|
|
79
67
|
}
|
|
80
68
|
|
|
81
|
-
declare
|
|
69
|
+
declare enum RequestMethodParameterType {
|
|
70
|
+
Body = "body",
|
|
71
|
+
Cookies = "cookies",
|
|
72
|
+
Custom = "custom",
|
|
73
|
+
Headers = "headers",
|
|
74
|
+
Next = "next",
|
|
75
|
+
Params = "params",
|
|
76
|
+
Request = "request",
|
|
77
|
+
Response = "response",
|
|
78
|
+
Query = "query"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type RequiredOptions<T> = {
|
|
82
|
+
[P in keyof T]-?: NonNullable<T[P]>;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
type MiddlewareHandler<TRequest, TResponse, TNextFunction, TResult = unknown> = (req: TRequest, res: TResponse, next: TNextFunction) => Promise<TResult> | TResult;
|
|
86
|
+
|
|
87
|
+
type RequestHandler<TRequest, TResponse, TNextFunction, TResult = unknown> = (req: TRequest, res: TResponse, next: TNextFunction) => Promise<TResult> | TResult;
|
|
88
|
+
|
|
89
|
+
declare enum RequestMethodType {
|
|
90
|
+
All = "all",
|
|
91
|
+
Delete = "delete",
|
|
92
|
+
Get = "get",
|
|
93
|
+
Head = "head",
|
|
94
|
+
Options = "options",
|
|
95
|
+
Patch = "patch",
|
|
96
|
+
Post = "post",
|
|
97
|
+
Put = "put"
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
interface RouteParams<TRequest, TResponse, TNextFunction, TResult> {
|
|
101
|
+
guardList: MiddlewareHandler<TRequest, TResponse, TNextFunction, TResult | undefined>[];
|
|
102
|
+
handler: RequestHandler<TRequest, TResponse, TNextFunction, TResult>;
|
|
103
|
+
path: string;
|
|
104
|
+
postHandlerMiddlewareList: MiddlewareHandler<TRequest, TResponse, TNextFunction, TResult>[];
|
|
105
|
+
preHandlerMiddlewareList: MiddlewareHandler<TRequest, TResponse, TNextFunction, TResult>[];
|
|
106
|
+
requestMethodType: RequestMethodType;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface RouterParams<TRequest, TResponse, TNextFunction, TResult> {
|
|
110
|
+
path: string;
|
|
111
|
+
routeParamsList: RouteParams<TRequest, TResponse, TNextFunction, TResult>[];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare abstract class InversifyHttpAdapter<TRequest, TResponse, TNextFunction extends (err?: any) => Promise<void> | void, TResult, TOptions extends HttpAdapterOptions = HttpAdapterOptions> {
|
|
82
115
|
#private;
|
|
83
|
-
|
|
84
|
-
protected
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
116
|
+
protected readonly httpAdapterOptions: RequiredOptions<TOptions>;
|
|
117
|
+
protected readonly globalHandlers: {
|
|
118
|
+
interceptorList: Interceptor<TRequest, TResponse>[];
|
|
119
|
+
};
|
|
120
|
+
constructor(container: Container, defaultHttpAdapterOptions: RequiredOptions<TOptions>, httpAdapterOptions: TOptions | undefined, awaitableRequestMethodParamTypes?: Iterable<RequestMethodParameterType> | undefined);
|
|
121
|
+
applyGlobalMiddleware(...middlewareList: (Newable<Middleware> | ApplyMiddlewareOptions)[]): void;
|
|
122
|
+
useGlobalFilters(...errorFilterList: Newable<ErrorFilter>[]): void;
|
|
123
|
+
applyGlobalGuards(...guardList: ServiceIdentifier<Guard<TRequest>>[]): void;
|
|
124
|
+
useGlobalInterceptors(...interceptorList: ServiceIdentifier<Interceptor<TRequest, TResponse>>[]): void;
|
|
125
|
+
useGlobalPipe(...pipeList: (ServiceIdentifier<Pipe> | Pipe)[]): void;
|
|
126
|
+
protected _buildServer(): Promise<void>;
|
|
127
|
+
abstract build(): Promise<unknown>;
|
|
128
|
+
protected abstract _getBody(request: TRequest, parameterName?: string): unknown;
|
|
129
|
+
protected abstract _getParams(request: TRequest, parameterName?: string): unknown;
|
|
130
|
+
protected abstract _getQuery(request: TRequest, parameterName?: string): unknown;
|
|
131
|
+
protected abstract _getHeaders(request: TRequest, parameterName?: string): unknown;
|
|
132
|
+
protected abstract _getCookies(request: TRequest, response: TResponse, parameterName?: string): unknown;
|
|
133
|
+
protected abstract _replyText(request: TRequest, response: TResponse, value: string): TResult;
|
|
134
|
+
protected abstract _replyJson(request: TRequest, response: TResponse, value?: object): TResult;
|
|
135
|
+
protected abstract _replyStream(request: TRequest, response: TResponse, value: Readable): TResult;
|
|
93
136
|
protected abstract _setStatus(request: TRequest, response: TResponse, statusCode: HttpStatusCode): void;
|
|
94
|
-
protected abstract
|
|
137
|
+
protected abstract _setHeader(request: TRequest, response: TResponse, key: string, value: string): void;
|
|
138
|
+
protected abstract _buildRouter(routerParams: RouterParams<TRequest, TResponse, TNextFunction, TResult>): void | Promise<void>;
|
|
95
139
|
}
|
|
96
140
|
|
|
97
|
-
declare
|
|
141
|
+
declare function buildNormalizedPath(path: string): string;
|
|
142
|
+
|
|
143
|
+
type CustomParameterDecoratorHandler<TRequest = any, TResponse = any, TResult = any> = (request: TRequest, response: TResponse) => Promise<TResult> | TResult;
|
|
144
|
+
|
|
145
|
+
declare function createCustomParameterDecorator<TRequest, TResponse, TResult>(handler: CustomParameterDecoratorHandler<TRequest, TResponse, TResult>, ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
146
|
+
|
|
147
|
+
declare const All: (path?: string) => MethodDecorator;
|
|
98
148
|
|
|
99
|
-
|
|
149
|
+
interface RouteParamOptions {
|
|
150
|
+
name?: string | undefined;
|
|
151
|
+
}
|
|
100
152
|
|
|
101
|
-
declare function
|
|
153
|
+
declare function Body(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
102
154
|
|
|
103
155
|
interface ControllerOptions {
|
|
104
156
|
path?: string;
|
|
105
|
-
|
|
157
|
+
scope?: BindingScope;
|
|
158
|
+
serviceIdentifier?: ServiceIdentifier;
|
|
106
159
|
}
|
|
107
160
|
|
|
108
|
-
declare function
|
|
161
|
+
declare function Controller(pathOrOptions?: string | ControllerOptions): ClassDecorator;
|
|
162
|
+
|
|
163
|
+
declare function Cookies(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
109
164
|
|
|
110
|
-
declare
|
|
165
|
+
declare const Delete: (path?: string) => MethodDecorator;
|
|
111
166
|
|
|
112
|
-
declare const
|
|
167
|
+
declare const Get: (path?: string) => MethodDecorator;
|
|
113
168
|
|
|
114
|
-
declare const
|
|
169
|
+
declare const Head: (path?: string) => MethodDecorator;
|
|
115
170
|
|
|
116
|
-
declare
|
|
171
|
+
declare function Headers(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
117
172
|
|
|
118
|
-
declare function
|
|
173
|
+
declare function Next(): ParameterDecorator;
|
|
119
174
|
|
|
120
|
-
declare
|
|
175
|
+
declare const Options: (path?: string) => MethodDecorator;
|
|
121
176
|
|
|
122
|
-
declare
|
|
177
|
+
declare function Params(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
123
178
|
|
|
124
|
-
declare
|
|
179
|
+
declare const Patch: (path?: string) => MethodDecorator;
|
|
125
180
|
|
|
126
|
-
declare const
|
|
181
|
+
declare const Post: (path?: string) => MethodDecorator;
|
|
127
182
|
|
|
128
|
-
declare const
|
|
183
|
+
declare const Put: (path?: string) => MethodDecorator;
|
|
129
184
|
|
|
130
|
-
declare
|
|
185
|
+
declare function Query(optionsOrPipe?: RouteParamOptions | (ServiceIdentifier<Pipe> | Pipe), ...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
131
186
|
|
|
132
|
-
declare function
|
|
187
|
+
declare function Request(...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
133
188
|
|
|
134
|
-
declare function
|
|
189
|
+
declare function Response(...parameterPipeList: (ServiceIdentifier<Pipe> | Pipe)[]): ParameterDecorator;
|
|
135
190
|
|
|
136
|
-
declare function
|
|
191
|
+
declare function SetHeader(headerKey: string, value: string): MethodDecorator;
|
|
137
192
|
|
|
138
|
-
declare function
|
|
193
|
+
declare function StatusCode(statusCode: HttpStatusCode): MethodDecorator;
|
|
139
194
|
|
|
140
|
-
|
|
141
|
-
|
|
195
|
+
declare const isHttpResponse$1: unique symbol;
|
|
196
|
+
interface HttpResponse {
|
|
197
|
+
[isHttpResponse$1]: true;
|
|
198
|
+
statusCode: HttpStatusCode;
|
|
199
|
+
body?: object | string | number | boolean | Stream | undefined;
|
|
142
200
|
}
|
|
143
201
|
|
|
144
|
-
declare
|
|
145
|
-
|
|
202
|
+
declare function isHttpResponse(value: unknown): value is HttpResponse;
|
|
203
|
+
|
|
204
|
+
declare const isSuccessHttpResponse: unique symbol;
|
|
205
|
+
declare class SuccessHttpResponse implements HttpResponse {
|
|
146
206
|
readonly statusCode: HttpStatusCode;
|
|
147
|
-
body?: object | string | number | boolean | undefined;
|
|
148
|
-
[
|
|
149
|
-
|
|
150
|
-
|
|
207
|
+
readonly body?: (object | string | number | boolean | Stream) | undefined;
|
|
208
|
+
[isHttpResponse$1]: true;
|
|
209
|
+
[isSuccessHttpResponse]: true;
|
|
210
|
+
constructor(statusCode: HttpStatusCode, body?: (object | string | number | boolean | Stream) | undefined);
|
|
211
|
+
static is(value: unknown): value is SuccessHttpResponse;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
declare class AcceptedHttpResponse extends SuccessHttpResponse {
|
|
215
|
+
constructor(body?: object | string | number | boolean);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare class AlreadyReportedHttpResponse extends SuccessHttpResponse {
|
|
219
|
+
constructor(body?: object | string | number | boolean);
|
|
151
220
|
}
|
|
152
221
|
|
|
153
|
-
declare
|
|
154
|
-
|
|
222
|
+
declare const isErrorHttpResponse: unique symbol;
|
|
223
|
+
declare class ErrorHttpResponse extends Error implements HttpResponse {
|
|
224
|
+
readonly statusCode: HttpStatusCode;
|
|
225
|
+
readonly [isHttpResponse$1]: true;
|
|
226
|
+
readonly [isErrorHttpResponse]: true;
|
|
227
|
+
readonly body?: object | string | number | boolean | Stream;
|
|
228
|
+
constructor(statusCode: HttpStatusCode, error: string, message?: string, errorOptions?: ErrorOptions);
|
|
229
|
+
static is(value: unknown): value is ErrorHttpResponse;
|
|
155
230
|
}
|
|
156
231
|
|
|
157
232
|
declare class BadGatewayHttpResponse extends ErrorHttpResponse {
|
|
158
|
-
constructor(message?: string, error?: string);
|
|
233
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
159
234
|
}
|
|
160
235
|
|
|
161
236
|
declare class BadRequestHttpResponse extends ErrorHttpResponse {
|
|
162
|
-
constructor(message?: string, error?: string);
|
|
237
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
163
238
|
}
|
|
164
239
|
|
|
165
240
|
declare class ConflictHttpResponse extends ErrorHttpResponse {
|
|
166
|
-
constructor(message?: string, error?: string);
|
|
241
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare class ContentDifferentHttpResponse extends SuccessHttpResponse {
|
|
245
|
+
constructor(body?: object | string | number | boolean);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare class CreatedHttpResponse extends SuccessHttpResponse {
|
|
249
|
+
constructor(body?: object | string | number | boolean);
|
|
167
250
|
}
|
|
168
251
|
|
|
169
252
|
declare class ForbiddenHttpResponse extends ErrorHttpResponse {
|
|
170
|
-
constructor(message?: string, error?: string);
|
|
253
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
171
254
|
}
|
|
172
255
|
|
|
173
256
|
declare class GatewayTimeoutHttpResponse extends ErrorHttpResponse {
|
|
174
|
-
constructor(message?: string, error?: string);
|
|
257
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
175
258
|
}
|
|
176
259
|
|
|
177
260
|
declare class GoneHttpResponse extends ErrorHttpResponse {
|
|
178
|
-
constructor(message?: string, error?: string);
|
|
261
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
179
262
|
}
|
|
180
263
|
|
|
181
264
|
declare class HttpVersionNotSupportedHttpResponse extends ErrorHttpResponse {
|
|
182
|
-
constructor(message?: string, error?: string);
|
|
265
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
183
266
|
}
|
|
184
267
|
|
|
185
268
|
declare class InsufficientStorageHttpResponse extends ErrorHttpResponse {
|
|
186
|
-
constructor(message?: string, error?: string);
|
|
269
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
187
270
|
}
|
|
188
271
|
|
|
189
272
|
declare class InternalServerErrorHttpResponse extends ErrorHttpResponse {
|
|
190
|
-
constructor(message?: string, error?: string);
|
|
273
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
191
274
|
}
|
|
192
275
|
|
|
193
276
|
declare class LoopDetectedHttpResponse extends ErrorHttpResponse {
|
|
194
|
-
constructor(message?: string, error?: string);
|
|
277
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
195
278
|
}
|
|
196
279
|
|
|
197
280
|
declare class MethodNotAllowedHttpResponse extends ErrorHttpResponse {
|
|
198
|
-
constructor(message?: string, error?: string);
|
|
281
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
199
282
|
}
|
|
200
283
|
|
|
201
|
-
declare class
|
|
202
|
-
constructor(
|
|
284
|
+
declare class MultiStatusHttpResponse extends SuccessHttpResponse {
|
|
285
|
+
constructor(body?: object | string | number | boolean);
|
|
203
286
|
}
|
|
204
287
|
|
|
205
|
-
declare class
|
|
206
|
-
constructor(
|
|
288
|
+
declare class NoContentHttpResponse extends SuccessHttpResponse {
|
|
289
|
+
constructor();
|
|
207
290
|
}
|
|
208
291
|
|
|
209
|
-
declare class
|
|
210
|
-
constructor(
|
|
292
|
+
declare class NonAuthoritativeInformationHttpResponse extends SuccessHttpResponse {
|
|
293
|
+
constructor(body?: object | string | number | boolean);
|
|
211
294
|
}
|
|
212
295
|
|
|
213
|
-
declare class
|
|
214
|
-
constructor(message?: string, error?: string);
|
|
296
|
+
declare class NotAcceptableHttpResponse extends ErrorHttpResponse {
|
|
297
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
215
298
|
}
|
|
216
299
|
|
|
217
|
-
declare class
|
|
218
|
-
constructor(message?: string, error?: string);
|
|
300
|
+
declare class NotFoundHttpResponse extends ErrorHttpResponse {
|
|
301
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
219
302
|
}
|
|
220
303
|
|
|
221
|
-
declare class
|
|
222
|
-
constructor(message?: string, error?: string);
|
|
304
|
+
declare class NotImplementedHttpResponse extends ErrorHttpResponse {
|
|
305
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
223
306
|
}
|
|
224
307
|
|
|
225
|
-
declare class
|
|
308
|
+
declare class OkHttpResponse extends SuccessHttpResponse {
|
|
226
309
|
constructor(body?: object | string | number | boolean);
|
|
227
310
|
}
|
|
228
311
|
|
|
229
|
-
declare class
|
|
312
|
+
declare class PartialContentHttpResponse extends SuccessHttpResponse {
|
|
230
313
|
constructor(body?: object | string | number | boolean);
|
|
231
314
|
}
|
|
232
315
|
|
|
233
|
-
declare class
|
|
234
|
-
constructor(
|
|
316
|
+
declare class PaymentRequiredHttpResponse extends ErrorHttpResponse {
|
|
317
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
235
318
|
}
|
|
236
319
|
|
|
237
|
-
declare class
|
|
320
|
+
declare class ResetContentHttpResponse extends SuccessHttpResponse {
|
|
238
321
|
constructor(body?: object | string | number | boolean);
|
|
239
322
|
}
|
|
240
323
|
|
|
241
|
-
declare class
|
|
242
|
-
constructor(
|
|
324
|
+
declare class ServiceUnavailableHttpResponse extends ErrorHttpResponse {
|
|
325
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
243
326
|
}
|
|
244
327
|
|
|
245
|
-
declare class
|
|
246
|
-
constructor();
|
|
328
|
+
declare class UnauthorizedHttpResponse extends ErrorHttpResponse {
|
|
329
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
247
330
|
}
|
|
248
331
|
|
|
249
|
-
declare class
|
|
250
|
-
constructor(
|
|
332
|
+
declare class UnprocessableEntityHttpResponse extends ErrorHttpResponse {
|
|
333
|
+
constructor(message?: string, error?: string, errorOptions?: ErrorOptions);
|
|
251
334
|
}
|
|
252
335
|
|
|
253
|
-
|
|
254
|
-
|
|
336
|
+
interface ControllerMetadata {
|
|
337
|
+
path: string;
|
|
338
|
+
serviceIdentifier: ServiceIdentifier;
|
|
339
|
+
target: NewableFunction;
|
|
255
340
|
}
|
|
256
341
|
|
|
257
|
-
declare
|
|
258
|
-
constructor(body?: object | string | number | boolean);
|
|
259
|
-
}
|
|
342
|
+
declare function getControllerMetadataList(): ControllerMetadata[] | undefined;
|
|
260
343
|
|
|
261
|
-
|
|
262
|
-
|
|
344
|
+
interface ControllerMethodMetadata {
|
|
345
|
+
path: string;
|
|
346
|
+
requestMethodType: RequestMethodType;
|
|
347
|
+
methodKey: string | symbol;
|
|
263
348
|
}
|
|
264
349
|
|
|
265
|
-
|
|
350
|
+
declare function getControllerMethodMetadataList(controllerConstructor: NewableFunction): ControllerMethodMetadata[];
|
|
351
|
+
|
|
352
|
+
export { AcceptedHttpResponse, All, AlreadyReportedHttpResponse, BadGatewayHttpResponse, BadRequestHttpResponse, Body, ConflictHttpResponse, ContentDifferentHttpResponse, Controller, Cookies, CreatedHttpResponse, Delete, ErrorHttpResponse, ForbiddenHttpResponse, GatewayTimeoutHttpResponse, Get, GoneHttpResponse, Head, Headers, HttpStatusCode, HttpVersionNotSupportedHttpResponse, InsufficientStorageHttpResponse, InternalServerErrorHttpResponse, InversifyHttpAdapter, LoopDetectedHttpResponse, MethodNotAllowedHttpResponse, MultiStatusHttpResponse, Next, NoContentHttpResponse, NonAuthoritativeInformationHttpResponse, NotAcceptableHttpResponse, NotFoundHttpResponse, NotImplementedHttpResponse, OkHttpResponse, Options, Params, PartialContentHttpResponse, Patch, PaymentRequiredHttpResponse, Post, Put, Query, Request, RequestMethodParameterType, RequestMethodType, ResetContentHttpResponse, Response, ServiceUnavailableHttpResponse, SetHeader, StatusCode, UnauthorizedHttpResponse, UnprocessableEntityHttpResponse, buildNormalizedPath, createCustomParameterDecorator, getControllerMetadataList, getControllerMethodMetadataList, isHttpResponse };
|
|
353
|
+
export type { ControllerMetadata, ControllerMethodMetadata, HttpAdapterOptions, HttpResponse, MiddlewareHandler, RequestHandler, RequiredOptions, RouteParamOptions, RouteParams, RouterParams };
|
package/lib/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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"}
|
package/lib/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getReflectMetadata as e,setReflectMetadata as t}from"@inversifyjs/reflect-metadata-utils";const r=Symbol.for("@inversifyjs/http-core/InversifyHttpAdapterError");class E extends Error{kind;[r];constructor(e,t,E){super(t,E),this.kind=e,this[r]=!0}static is(e){return"object"==typeof e&&null!==e&&!0===e[r]}static isErrorOfKind(e,t){return E.is(e)&&e.kind===t}}var s;!function(e){e[e.noControllerFound=0]="noControllerFound",e[e.requestParamIncorrectUse=1]="requestParamIncorrectUse"}(s||(s={}));const o="@inversifyjs/http-core/controller/controllerMetadataReflectKey",n="@inversifyjs/http-core/controller/controllerMethodMetadataReflectKey",T="@inversifyjs/http-core/controller/controllerMethodMiddlewareMetadataReflectKey",c="@inversifyjs/http-core/controller/controllerMethodParameterMetadataReflectKey",a="@inversifyjs/http-core/controller/controllerMethodStatusCodeMetadataReflectKey",O="@inversifyjs/http-core/controller/controllerMiddlewareMetadataReflectKey";var N,R;!function(e){e.REQUEST="request",e.RESPONSE="response",e.PARAMS="params",e.QUERY="query",e.BODY="body",e.HEADERS="headers",e.COOKIES="cookies",e.NEXT="next"}(N||(N={})),function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLYHINTS=103]="EARLYHINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.ALREADY_REPORTED=208]="ALREADY_REPORTED",e[e.CONTENT_DIFFERENT=210]="CONTENT_DIFFERENT",e[e.AMBIGUOUS=300]="AMBIGUOUS",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.FOUND=302]="FOUND",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",e[e.URI_TOO_LONG=414]="URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",e[e.MISDIRECTED=421]="MISDIRECTED",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNRECOVERABLE_ERROR=456]="UNRECOVERABLE_ERROR",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.LOOP_DETECTED=508]="LOOP_DETECTED"}(R||(R={}));const u=Symbol.for("@inversifyjs/http-core/HttpResponse");class l{statusCode;body;[u];constructor(e,t){this.statusCode=e,this.body=t,this[u]=!0}static is(e){return"object"==typeof e&&null!==e&&!0===e[u]}}class i extends l{constructor(e,t,r){super(e,{error:t,message:r,statusCode:e})}}class _ extends i{constructor(e,t="Internal Server Error"){super(R.INTERNAL_SERVER_ERROR,t,e)}}class A{#e;constructor(e){this.#e=e}_buildServer(){this.#t()}#t(){const t=e(Reflect,o);if(void 0===t)throw new E(s.noControllerFound);this.#r(t)}#r(t){for(const r of t){const t=e(r.target,n),E=e(r.target,O);if(void 0!==t){const e=this.#E(r,t);this._buildRouter(r.path,e,this.#s(E))}}}#E(t,r){return r.map((r=>{const E=void 0===t.controllerName?this.#e.get(t.target):this.#e.get(t.target,{name:t.controllerName}),s=e(E[r.methodKey],c),o=e(E[r.methodKey],a),n=e(E[r.methodKey],T);return{handler:this.#o(r,s??[],E,o),methodKey:r.methodKey,middlewareList:this.#s(n),path:r.path,requestMethodType:r.requestMethodType}}))}#o(e,t,r,E){return async(s,o,n)=>{try{const T=await Promise.all(this.#n(t,s,o,n)),c=await r[e.methodKey](...T);return this.#T(s,o,c,E)}catch(e){return this.#T(s,o,new _)}}}#n(e,t,r,E){return e.map((async e=>{switch(e.parameterType){case N.BODY:return this._getBody(t,e.parameterName);case N.REQUEST:return t;case N.RESPONSE:return r;case N.PARAMS:return this._getParams(t,e.parameterName);case N.QUERY:return this._getQuery(t,e.parameterName);case N.HEADERS:return this._getHeaders(t,e.parameterName);case N.COOKIES:return this._getCookies(t,e.parameterName);case N.NEXT:return E}}))}#T(e,t,r,E){let s,o=E;return l.is(r)?(s=r.body,o=r.statusCode):s=r,void 0!==o&&this._setStatus(e,t,o),"string"==typeof s?this._replyText(e,t,s):void 0===s||"object"==typeof s?this._replyJson(e,t,s):this._replyText(e,t,JSON.stringify(s))}#s(e){let t;return void 0!==e&&(t=e.map((e=>{const t=this.#e.get(e);return t.execute.bind(t)}))),t}}var d;function I(r,E){return(s,o)=>{const T={methodKey:o,path:E??"/",requestMethodType:r};let c=e(s.constructor,n);void 0!==c?c.push(T):c=[T],t(s.constructor,n,c)}}!function(e){e.GET="get",e.POST="post",e.PUT="put",e.DELETE="delete",e.PATCH="patch",e.OPTIONS="options",e.HEAD="head",e.ALL="all"}(d||(d={}));const D=e=>I(d.ALL,e);function S(...r){return(E,s,o)=>{let n;n=void 0===o?e(E,O):e(o.value,T),void 0!==n?n.push(...r):n=r,void 0===o?t(E,O,n):t(o.value,T,n)}}function p(r,o){return(n,T,a)=>{let O;if(void 0!==T&&(O=n[T]),void 0===O)throw new E(s.requestParamIncorrectUse);let N=e(O,c);const R={index:a,parameterName:o,parameterType:r};void 0===N?N=[R]:function(e,t){let r=0;for(;r<e.length&&e[r].index<t.index;)r++;e.splice(r,0,t)}(N,R),t(O,c,N)}}function C(e){return p(N.BODY,e)}function P(r){return E=>{const s={path:"/",target:E};void 0!==r&&("string"==typeof r?s.path=r:(s.controllerName=r.controllerName,s.path=r.path??"/"));let n=e(Reflect,o);void 0!==n?n.push(s):n=[s],t(Reflect,o,n)}}function U(e){return p(N.COOKIES,e)}const h=e=>I(d.DELETE,e),L=e=>I(d.GET,e),M=e=>I(d.HEAD,e);function f(e){return p(N.HEADERS,e)}function y(){return p(N.NEXT)}const m=e=>I(d.OPTIONS,e);function F(e){return p(N.PARAMS,e)}const H=e=>I(d.PATCH,e),x=e=>I(d.POST,e),Y=e=>I(d.PUT,e);function v(e){return p(N.QUERY,e)}function G(){return p(N.REQUEST)}function B(){return p(N.RESPONSE)}function g(e){return(r,E,s)=>{t(s.value,a,e)}}class Q extends i{constructor(e,t="Bad Gateway"){super(R.BAD_GATEWAY,t,e)}}class b extends i{constructor(e,t="Bad Request"){super(R.BAD_REQUEST,t,e)}}class K extends i{constructor(e,t="Conflict"){super(R.CONFLICT,t,e)}}class V extends i{constructor(e,t="Forbidden"){super(R.FORBIDDEN,t,e)}}class w extends i{constructor(e,t="Gateway Timeout"){super(R.GATEWAY_TIMEOUT,t,e)}}class j extends i{constructor(e,t="Gone"){super(R.GONE,t,e)}}class W extends i{constructor(e,t="HTTP Version Not Supported"){super(R.HTTP_VERSION_NOT_SUPPORTED,t,e)}}class q extends i{constructor(e,t="Insufficient Storage"){super(R.INSUFFICIENT_STORAGE,t,e)}}class X extends i{constructor(e,t="Loop Detected"){super(R.LOOP_DETECTED,t,e)}}class k extends i{constructor(e,t="Method Not Allowed"){super(R.METHOD_NOT_ALLOWED,t,e)}}class Z extends i{constructor(e,t="Not Acceptable"){super(R.NOT_ACCEPTABLE,t,e)}}class J extends i{constructor(e,t="Not Found"){super(R.NOT_FOUND,t,e)}}class z extends i{constructor(e,t="Not Implemented"){super(R.NOT_IMPLEMENTED,t,e)}}class $ extends i{constructor(e,t="Payment Required"){super(R.PAYMENT_REQUIRED,t,e)}}class ee extends i{constructor(e,t="Service Unavailable"){super(R.SERVICE_UNAVAILABLE,t,e)}}class te extends i{constructor(e,t="Unauthorized"){super(R.UNAUTHORIZED,t,e)}}class re extends l{constructor(e){super(R.ACCEPTED,e)}}class Ee extends l{constructor(e){super(R.ALREADY_REPORTED,e)}}class se extends l{constructor(e){super(R.CONTENT_DIFFERENT,e)}}class oe extends l{constructor(e){super(R.CREATED,e)}}class ne extends l{constructor(e){super(R.MULTI_STATUS,e)}}class Te extends l{constructor(){super(R.NO_CONTENT)}}class ce extends l{constructor(e){super(R.NON_AUTHORITATIVE_INFORMATION,e)}}class ae extends l{constructor(e){super(R.OK,e)}}class Oe extends l{constructor(e){super(R.PARTIAL_CONTENT,e)}}class Ne extends l{constructor(e){super(R.RESET_CONTENT,e)}}export{D as ALL,re as AcceptedHttpResponse,Ee as AlreadyReportedHttpResponse,Q as BadGatewayHttpResponse,b as BadRequestHttpResponse,K as ConflictHttpResponse,se as ContentDifferentHttpResponse,oe as CreatedHttpResponse,h as DELETE,V as ForbiddenHttpResponse,L as GET,w as GatewayTimeoutHttpResponse,j as GoneHttpResponse,M as HEAD,l as HttpResponse,R as HttpStatusCode,W as HttpVersionNotSupportedHttpResponse,q as InsufficientStorageHttpResponse,_ as InternalServerErrorHttpResponse,A as InversifyHttpAdapter,X as LoopDetectedHttpResponse,k as MethodNotAllowedHttpResponse,ne as MultiStatusHttpResponse,Te as NoContentHttpResponse,ce as NonAuthoritativeInformationHttpResponse,Z as NotAcceptableHttpResponse,J as NotFoundHttpResponse,z as NotImplementedHttpResponse,m as OPTIONS,ae as OkHttpResponse,H as PATCH,x as POST,Y as PUT,Oe as PartialContentHttpResponse,$ as PaymentRequiredHttpResponse,Ne as ResetContentHttpResponse,ee as ServiceUnavailableHttpResponse,te as UnauthorizedHttpResponse,S as applyMiddleware,C as body,P as controller,U as cookies,f as headers,y as next,F as params,v as query,G as request,B as response,g as statusCode};
|
|
1
|
+
import{getCatchErrorMetadata as t,getClassMethodErrorFilterMetadata as e,getClassErrorFilterMetadata as r,getClassGuardList as s,getClassMethodGuardList as o,getClassInterceptorList as a,getClassMethodInterceptorList as n,getClassMiddlewareList as i,buildMiddlewareOptionsFromApplyMiddlewareOptions as c,getClassMethodMiddlewareList as l,isPipe as d}from"@inversifyjs/framework-core";export{ApplyMiddleware,CatchError,MiddlewarePhase,UseErrorFilter,UseGuard,UseInterceptor}from"@inversifyjs/framework-core";import{Readable as u}from"node:stream";import{ConsoleLogger as E}from"@inversifyjs/logger";import{getBaseType as p}from"@inversifyjs/prototype-utils";import{getOwnReflectMetadata as T,updateOwnReflectMetadata as h,buildEmptyArrayMetadata as N,buildArrayMetadataWithIndex as O,setReflectMetadata as R,buildArrayMetadataWithElement as A,buildEmptyMapMetadata as _}from"@inversifyjs/reflect-metadata-utils";import{injectable as I}from"inversify";const f=Symbol.for("@inversifyjs/http-core/InversifyHttpAdapterError");class y extends Error{kind;extraData;[f];constructor(t,e,r,s){super(e,r),this.kind=t,this.extraData=s,this[f]=!0}static is(t){return"object"==typeof t&&null!==t&&!0===t[f]}static isErrorOfKind(t,e){return y.is(t)&&t.kind===e}}var L;!function(t){t[t.invalidOperationAfterBuild=0]="invalidOperationAfterBuild",t[t.noControllerFound=1]="noControllerFound",t[t.requestParamIncorrectUse=2]="requestParamIncorrectUse"}(L||(L={}));const M=Symbol.for("@inversifyjs/http-core/HttpResponse");function m(t){return"object"==typeof t&&null!==t&&!0===t[M]}const D=Symbol.for("@inversifyjs/http-core/ErrorHttpResponse");class g extends Error{statusCode;[M];[D];body;constructor(t,e,r,s){super(r,s),this.statusCode=t,this.body={error:e,message:r,statusCode:t},this[D]=!0,this[M]=!0}static is(t){return m(t)&&!0===t[D]}}var C;!function(t){t[t.CONTINUE=100]="CONTINUE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.PROCESSING=102]="PROCESSING",t[t.EARLYHINTS=103]="EARLYHINTS",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.MULTI_STATUS=207]="MULTI_STATUS",t[t.ALREADY_REPORTED=208]="ALREADY_REPORTED",t[t.CONTENT_DIFFERENT=210]="CONTENT_DIFFERENT",t[t.AMBIGUOUS=300]="AMBIGUOUS",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.FOUND=302]="FOUND",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",t[t.URI_TOO_LONG=414]="URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",t[t.MISDIRECTED=421]="MISDIRECTED",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.LOCKED=423]="LOCKED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.UNRECOVERABLE_ERROR=456]="UNRECOVERABLE_ERROR",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.LOOP_DETECTED=508]="LOOP_DETECTED"}(C||(C={}));class P extends g{constructor(t,e="Forbidden",r){super(C.FORBIDDEN,e,t,r)}}class H extends g{constructor(t,e="Internal Server Error",r){super(C.INTERNAL_SERVER_ERROR,e,t,r)}}function w(e,r){const s=t(r);for(const t of s){void 0===e.get(t)&&e.set(t,r)}}const S="@inversifyjs/http-core/controller/controllerMethodHeaderMetadataReflectKey";const U="@inversifyjs/http-core/controller/controllerMethodParameterMetadataReflectKey";const b="@inversifyjs/http-core/controller/controllerMethodStatusCodeMetadataReflectKey";const v="@inversifyjs/http-core/controller/controllerMethodUseNativeHandlerMetadataReflectKey";function F(t,d){const u=(E=t.target,p=d.methodKey,T(E,U,p)??[]);var E,p;const h=function(t,e){return T(t,b,e)}(t.target,d.methodKey),N=[...s(t.target),...o(t.target,d.methodKey)],O=[...a(t.target),...n(t.target,d.methodKey)],R=i(t.target),A=c(R),_=l(t.target,d.methodKey),I=function(t,s){const o=new Map;for(const r of e(t,s))w(o,r);for(const e of r(t))w(o,e);return o}(t.target,d.methodKey),f=c(_),y=function(t,e){const r=T(t,S,e),s=[];return void 0!==r&&s.push(...r.entries()),s}(t.target,d.methodKey),L=function(t,e){return T(t,v,e)??!1}(t.target,d.methodKey);return{errorTypeToErrorFilterMap:I,guardList:N,headerMetadataList:y,interceptorList:O,methodKey:d.methodKey,parameterMetadataList:u,path:d.path,postHandlerMiddlewareList:[...A.postHandlerMiddlewareList,...f.postHandlerMiddlewareList],preHandlerMiddlewareList:[...A.preHandlerMiddlewareList,...f.preHandlerMiddlewareList],requestMethodType:d.requestMethodType,statusCode:h,useNativeHandler:L}}function G(t,e){return e.map(e=>F(t,e))}const x="@inversifyjs/http-core/controller/controllerMethodMetadataReflectKey";function B(t){return T(t,x)??[]}function Y(t){return{controllerMethodMetadataList:G(t,B(t.target)),path:t.path,serviceIdentifier:t.serviceIdentifier,target:t.target}}const K="@inversifyjs/http-core/controller/controllerMetadataReflectKey";function Q(){return T(Reflect,K)}var j;!function(t){t.Body="body",t.Cookies="cookies",t.Custom="custom",t.Headers="headers",t.Next="next",t.Params="params",t.Request="request",t.Response="response",t.Query="query"}(j||(j={}));class V{httpAdapterOptions;globalHandlers;#t;#e;#r;#s;#o;#a;#n;#i;#c;constructor(t,e,r,s){this.#t=new Set(s),this.#e=t,this.httpAdapterOptions=this.#l(e,r),this.#s=[],this.#o=[],this.#r=new Map,this.#a=this.#d(this.httpAdapterOptions),this.#c=!1,this.globalHandlers={interceptorList:[]},this.#n=[],this.#i=[]}applyGlobalMiddleware(...t){if(this.#c)throw new y(L.invalidOperationAfterBuild,"Cannot apply global middleware after the server has been built");const e=c(t);this.#n.push(...e.postHandlerMiddlewareList),this.#i.push(...e.preHandlerMiddlewareList)}useGlobalFilters(...t){for(const e of t)this.#u(e)}applyGlobalGuards(...t){if(this.#c)throw new y(L.invalidOperationAfterBuild,"Cannot apply global guard after the server has been built");this.#s.push(...t)}useGlobalInterceptors(...t){if(this.#c)throw new y(L.invalidOperationAfterBuild,"Cannot apply global interceptor after the server has been built");for(const e of t)this.#E(e)}useGlobalPipe(...t){this.#o.push(...t)}async _buildServer(){await this.#p(),this.#c=!0}async#T(t,e,r,s){t[e]=this.#t.has(s)?await r:r}#d(t){return"boolean"==typeof t.logger?new E:t.logger}#l(t,e){return{...t,...e}}async#p(){const t=function(t){const e=Q();if(void 0===e)throw new y(L.noControllerFound,"No controllers found. Please ensure that your controllers are properly registered in your container and are annotated with the @Controller() decorator.");const r=[];for(const s of e)t.isBound(s.serviceIdentifier)&&r.push(Y(s));return r}(this.#e);for(const e of t)await this._buildRouter({path:e.path,routeParamsList:this.#h(e)}),!1!==this.httpAdapterOptions.logger&&this.#N(e.target.name,e.path,e.controllerMethodMetadataList)}#h(t){return t.controllerMethodMetadataList.map(e=>({guardList:[...this.#O(this.#s,e),...this.#O(e.guardList,e)],handler:this.#R(t.serviceIdentifier,t.target,e),path:e.path,postHandlerMiddlewareList:[...this.#A(e,this.#n),...this.#A(e,e.postHandlerMiddlewareList)],preHandlerMiddlewareList:[...this.#A(e,this.#i),...this.#A(e,e.preHandlerMiddlewareList)],requestMethodType:e.requestMethodType}))}#R(t,e,r){const s=this.#_(e,r.methodKey,r.parameterMetadataList);let o;o=r.useNativeHandler?(t,e,r)=>r:(t,e,s)=>this.#I(t,e,s,r.statusCode);const a=this.#f(r);return function(t,e,r,s,o,a,n){return 0===e.interceptorList.length?async(i,c,l)=>{try{const o=await r.getAsync(t),d=await s(i,c,l);n(i,c,e.headerMetadataList);const u=await(o[e.methodKey]?.(...d));return a(i,c,u)}catch(t){return o(i,c,t)}}:async(i,c,l)=>{const d=[],u={push:t=>{d.push(t)}};let E;const p=o=>o<e.interceptorList.length?async()=>{const t=await r.getAsync(e.interceptorList[o]);return await t.intercept(i,c,p(o+1)),u}:async()=>{const o=await r.getAsync(t),a=await s(i,c,l);return n(i,c,e.headerMetadataList),E=await(o[e.methodKey]?.(...a)),u};try{await p(0)();for(const t of d)E=await t(E);return a(i,c,E)}catch(t){return o(i,c,t)}}}(t,r,this.#e,s,a,o,this.#y.bind(this))}#_(t,e,r){const s=r.map(t=>{if(void 0!==t)switch(t.parameterType){case j.Body:return e=>this._getBody(e,t.parameterName);case j.Cookies:return(e,r)=>this._getCookies(e,r,t.parameterName);case j.Custom:return(e,r)=>t.customParameterDecoratorHandler?.(e,r);case j.Headers:return e=>this._getHeaders(e,t.parameterName);case j.Next:return(t,e,r)=>r;case j.Params:return e=>this._getParams(e,t.parameterName);case j.Query:return e=>this._getQuery(e,t.parameterName);case j.Request:return t=>t;case j.Response:return(t,e)=>e}});return async(o,a,n)=>{const i=new Array(r.length);return await Promise.all(s.map(async(s,c)=>{const l=r[c];await this.#T(i,c,s(o,a,n),l.parameterType),await this.#L(i,[...this.#o,...l.pipeList],{methodName:e,parameterIndex:c,targetClass:t})})),i}}async#L(t,e,r){for(const s of e){const e=d(s)?s:await this.#e.getAsync(s);t[r.parameterIndex]=await e.execute(t[r.parameterIndex],r)}}async#M(t,e){if(t instanceof Error){let r=t.constructor;for(;r!==Error;){const t=e.get(r);if(void 0!==t)return this.#e.getAsync(t);r=p(r)}const s=e.get(r);if(void 0!==s)return this.#e.getAsync(s)}const r=e.get(null);if(void 0!==r)return this.#e.getAsync(r)}#f(t){const e=async(r,s,o)=>{const a=await this.#M(o,t.errorTypeToErrorFilterMap)??await this.#M(o,this.#r);if(void 0===a){let t;return g.is(o)?t=o:(this.#m(o),t=new H(void 0,void 0,{cause:o})),this.#I(r,s,t)}try{return await a.catch(o,r,s)}catch(o){return e(r,s,o)}};return e}#y(t,e,r){for(const[s,o]of r)this._setHeader(t,e,s,o)}#I(t,e,r,s){let o,a=s;return m(r)?(o=r.body,a=r.statusCode):o=r,void 0!==a&&this._setStatus(t,e,a),"string"==typeof o?this._replyText(t,e,o):void 0===o||"object"==typeof o?o instanceof u?this._replyStream(t,e,o):this._replyJson(t,e,o):this._replyText(t,e,JSON.stringify(o))}#A(t,e){const r=this.#f(t);return e.map(t=>async(e,s,o)=>{try{const r=await this.#e.getAsync(t);return await r.execute(e,s,o)}catch(t){return r(e,s,t)}})}#O(t,e){const r=this.#f(e);return t.map(t=>async(e,s,o)=>{try{const r=await this.#e.getAsync(t);return await r.activate(e)?void await o():this.#I(e,s,new P)}catch(t){return r(e,s,t)}})}#N(t,e,r){this.#a.info(`${t} {${e}}:`);for(const t of r)this.#a.info(` - .${t.methodKey}() mapped {${t.path}, ${t.requestMethodType}}`)}#m(t){t instanceof Error&&this.#a.error(t.stack??t.message),this.#a.error("An unexpected error occurred")}#u(t){w(this.#r,t)}#E(t){this.globalHandlers.interceptorList.push(this.#e.get(t))}}function q(t){return"/"+t.split("/").filter(t=>t.length>0).join("/")}function k(t,e,r,s){let o;const a=[];void 0!==r&&("object"!=typeof r||d(r)?a.push(r):o=r.name),e.length>0&&a.push(...e);return function(t){return(e,r,s)=>{if(void 0===r)throw new y(L.requestParamIncorrectUse,"Expected param decorator to be used on a method parameter. Instead, it was found on a constructor parameter");h(e.constructor,U,N,O(t,s),r),t.parameterType!==j.Next&&t.parameterType!==j.Response||R(e.constructor,v,!0,r)}}({customParameterDecoratorHandler:s,parameterName:o,parameterType:t,pipeList:a})}function W(t,...e){return k(j.Custom,e,void 0,t)}function $(t,e){return(r,s)=>{const o={methodKey:s,path:q(e??"/"),requestMethodType:t};h(r.constructor,x,N,A(o))}}var X;!function(t){t.All="all",t.Delete="delete",t.Get="get",t.Head="head",t.Options="options",t.Patch="patch",t.Post="post",t.Put="put"}(X||(X={}));const Z=t=>$(X.All,t);function J(t,...e){return k(j.Body,e,t)}function z(t){return e=>{const r={path:"/",serviceIdentifier:e,target:e};let s;void 0!==t&&("string"==typeof t?r.path=q(t):(r.path=q(t.path??"/"),void 0!==t.serviceIdentifier&&(r.serviceIdentifier=t.serviceIdentifier),s=t.scope)),I(s)(e),h(Reflect,K,N,A(r))}}function tt(t,...e){return k(j.Cookies,e,t)}const et=t=>$(X.Delete,t),rt=t=>$(X.Get,t),st=t=>$(X.Head,t);function ot(t,...e){return k(j.Headers,e,t)}function at(){return k(j.Next,[])}const nt=t=>$(X.Options,t);function it(t,...e){return k(j.Params,e,t)}const ct=t=>$(X.Patch,t),lt=t=>$(X.Post,t),dt=t=>$(X.Put,t);function ut(t,...e){return k(j.Query,e,t)}function Et(...t){return k(j.Request,t)}function pt(...t){return k(j.Response,t)}function Tt(t,e){return(r,s)=>{h(r.constructor,S,_,function(t,e){return r=>{const s=t.toLowerCase(),o=r.get(s);return void 0!==o?r.set(s,`${o}, ${e}`):r.set(s,e),r}}(t,e),s)}}function ht(t){return(e,r)=>{R(e.constructor,b,t,r)}}const Nt=Symbol.for("@inversifyjs/http-core/SuccessHttpResponse");class Ot{statusCode;body;[M];[Nt];constructor(t,e){this.statusCode=t,this.body=e,this[M]=!0,this[Nt]=!0}static is(t){return m(t)&&!0===t[Nt]}}class Rt extends Ot{constructor(t){super(C.ACCEPTED,t)}}class At extends Ot{constructor(t){super(C.ALREADY_REPORTED,t)}}class _t extends g{constructor(t,e="Bad Gateway",r){super(C.BAD_GATEWAY,e,t,r)}}class It extends g{constructor(t,e="Bad Request",r){super(C.BAD_REQUEST,e,t,r)}}class ft extends g{constructor(t,e="Conflict",r){super(C.CONFLICT,e,t,r)}}class yt extends Ot{constructor(t){super(C.CONTENT_DIFFERENT,t)}}class Lt extends Ot{constructor(t){super(C.CREATED,t)}}class Mt extends g{constructor(t,e="Gateway Timeout",r){super(C.GATEWAY_TIMEOUT,e,t,r)}}class mt extends g{constructor(t,e="Gone",r){super(C.GONE,e,t,r)}}class Dt extends g{constructor(t,e="HTTP Version Not Supported",r){super(C.HTTP_VERSION_NOT_SUPPORTED,e,t,r)}}class gt extends g{constructor(t,e="Insufficient Storage",r){super(C.INSUFFICIENT_STORAGE,e,t,r)}}class Ct extends g{constructor(t,e="Loop Detected",r){super(C.LOOP_DETECTED,e,t,r)}}class Pt extends g{constructor(t,e="Method Not Allowed",r){super(C.METHOD_NOT_ALLOWED,e,t,r)}}class Ht extends Ot{constructor(t){super(C.MULTI_STATUS,t)}}class wt extends Ot{constructor(){super(C.NO_CONTENT)}}class St extends Ot{constructor(t){super(C.NON_AUTHORITATIVE_INFORMATION,t)}}class Ut extends g{constructor(t,e="Not Acceptable",r){super(C.NOT_ACCEPTABLE,e,t,r)}}class bt extends g{constructor(t,e="Not Found",r){super(C.NOT_FOUND,e,t,r)}}class vt extends g{constructor(t,e="Not Implemented",r){super(C.NOT_IMPLEMENTED,e,t,r)}}class Ft extends Ot{constructor(t){super(C.OK,t)}}class Gt extends Ot{constructor(t){super(C.PARTIAL_CONTENT,t)}}class xt extends g{constructor(t,e="Payment Required",r){super(C.PAYMENT_REQUIRED,e,t,r)}}class Bt extends Ot{constructor(t){super(C.RESET_CONTENT,t)}}class Yt extends g{constructor(t,e="Service Unavailable",r){super(C.SERVICE_UNAVAILABLE,e,t,r)}}class Kt extends g{constructor(t,e="Unauthorized",r){super(C.UNAUTHORIZED,e,t,r)}}class Qt extends g{constructor(t,e="Unprocessable Entity",r){super(C.UNPROCESSABLE_ENTITY,e,t,r)}}export{Rt as AcceptedHttpResponse,Z as All,At as AlreadyReportedHttpResponse,_t as BadGatewayHttpResponse,It as BadRequestHttpResponse,J as Body,ft as ConflictHttpResponse,yt as ContentDifferentHttpResponse,z as Controller,tt as Cookies,Lt as CreatedHttpResponse,et as Delete,g as ErrorHttpResponse,P as ForbiddenHttpResponse,Mt as GatewayTimeoutHttpResponse,rt as Get,mt as GoneHttpResponse,st as Head,ot as Headers,C as HttpStatusCode,Dt as HttpVersionNotSupportedHttpResponse,gt as InsufficientStorageHttpResponse,H as InternalServerErrorHttpResponse,V as InversifyHttpAdapter,Ct as LoopDetectedHttpResponse,Pt as MethodNotAllowedHttpResponse,Ht as MultiStatusHttpResponse,at as Next,wt as NoContentHttpResponse,St as NonAuthoritativeInformationHttpResponse,Ut as NotAcceptableHttpResponse,bt as NotFoundHttpResponse,vt as NotImplementedHttpResponse,Ft as OkHttpResponse,nt as Options,it as Params,Gt as PartialContentHttpResponse,ct as Patch,xt as PaymentRequiredHttpResponse,lt as Post,dt as Put,ut as Query,Et as Request,j as RequestMethodParameterType,X as RequestMethodType,Bt as ResetContentHttpResponse,pt as Response,Yt as ServiceUnavailableHttpResponse,Tt as SetHeader,ht as StatusCode,Kt as UnauthorizedHttpResponse,Qt as UnprocessableEntityHttpResponse,q as buildNormalizedPath,W as createCustomParameterDecorator,Q as getControllerMetadataList,B as getControllerMethodMetadataList,m as isHttpResponse};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|