@zyno-io/ts-server-foundation 26.813.2145 → 26.816.840
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/dist/src/app/base.js +2 -2
- package/dist/src/app/config.js +2 -2
- package/dist/src/auth/jwt.js +1 -1
- package/dist/src/database/drivers/mysql.js +1 -1
- package/dist/src/database/drivers/postgres.js +1 -1
- package/dist/src/devconsole/runtime.js +2 -2
- package/dist/src/devconsole/store.js +2 -2
- package/dist/src/di/module.js +1 -1
- package/dist/src/http/index.js +1 -1
- package/dist/src/http/request.js +4 -4
- package/dist/src/http/response.js +8 -8
- package/dist/src/http/router.js +6 -0
- package/dist/src/http/router.js.map +1 -1
- package/dist/src/http/uploads.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/services/cli.js +1 -1
- package/dist/src/services/logger.js +2 -2
- package/dist/src/srpc/SrpcClient.js +2 -2
- package/dist/src/testing/index.js +2 -2
- package/dist/src/testing/sql.js +1 -1
- package/package.json +2 -2
package/dist/src/http/index.js
CHANGED
|
@@ -23,5 +23,5 @@ tslib_1.__exportStar(require("./static-files"), exports);
|
|
|
23
23
|
tslib_1.__exportStar(require("./upgrade"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./workflow"), exports);
|
|
25
25
|
exports.OkResponse = { ok: true };
|
|
26
|
-
exports.__tsfTypeAliases = _a.decodeCompactMetadataV1("[1,{\"AnyResponse\":{\"kind\":22,\"type\":{\"kind\":1},\"typeName\":\"AnyResponse\"},\"ControllerMetadata\":{\"kind\":18,\"typeName\":\"ControllerMetadata\",\"types\":[{\"kind\":20,\"name\":\"path\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"middlewares\",\"type\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"}},\"optional\":false}]},\"EmptyResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"EmptyResponse\"},\"EntityValidator\":{\"kind\":18,\"typeName\":\"EntityValidator\",\"types\":[],\"typeParameters\":[\"T\"]},\"FallbackControllerMetadata\":{\"kind\":18,\"typeName\":\"FallbackControllerMetadata\",\"types\":[{\"kind\":20,\"name\":\"middlewares\",\"type\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"}},\"optional\":false}]},\"FileUploadAllowedTypes\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"FileUploadAllowedTypes\"},\"FileUploadOptions\":{\"kind\":18,\"typeName\":\"FileUploadOptions\",\"types\":[{\"kind\":20,\"name\":\"maxSize\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":16,\"typeName\":\"`${number}${'B' | 'KB' | 'MB' | 'GB' | 'KiB' | 'MiB' | 'GiB'}`\",\"classType\":{\"$tsf\":1}}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"FileUploadAllowedTypes\"},{\"kind\":4}]},\"optional\":true}]},\"FileUploadPolicy\":{\"kind\":18,\"typeName\":\"FileUploadPolicy\",\"types\":[{\"kind\":20,\"name\":\"maxSizeBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"optional\":true}]},\"HttpFallbackController\":{\"kind\":18,\"typeName\":\"HttpFallbackController\",\"types\":[]},\"HttpHeaderInput\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"types\":[],\"typeName\":\"HttpHeaderInput\"},\"HttpHeaderOutput\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":6}]}}],\"index\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":6}]}},\"types\":[],\"typeName\":\"HttpHeaderOutput\"},\"HttpMethod\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"types\":[]}]}],\"typeName\":\"HttpMethod\"},\"HttpMiddlewareFunction\":{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"},\"HttpMiddlewareInput\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"},\"HttpMiddlewareResult\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]}]}}],\"typeName\":\"HttpMiddlewareResult\"},\"HttpRequestBodyCapture\":{\"kind\":18,\"typeName\":\"HttpRequestBodyCapture\",\"types\":[{\"kind\":20,\"name\":\"body\",\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":2}},\"optional\":false},{\"kind\":20,\"name\":\"totalBytes\",\"type\":{\"kind\":7},\"optional\":false}]},\"HttpRequestBodyLimits\":{\"kind\":18,\"typeName\":\"HttpRequestBodyLimits\",\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":7},\"optional\":false}]},\"HttpRequestHeaders\":{\"kind\":13,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":6}],\"index\":{\"kind\":6},\"types\":[]},{\"kind\":2,\"typeName\":\"(headers: HttpHeaderInput) =\\u003e HttpRequest\"}],\"typeName\":\"HttpRequestHeaders\"},\"HttpRequestLoggingOptions\":{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":3}}]}},{\"kind\":4}]},\"optional\":true}]},\"HttpRequestObservation\":{\"kind\":18,\"typeName\":\"HttpRequestObservation\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"startedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"durationMs\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"error\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true}]},\"HttpRequestObserver\":{\"kind\":2,\"typeName\":\"(entry: HttpRequestObservation) =\\u003e void\",\"typeName\":\"HttpRequestObserver\"},\"HttpRequestObserverOptions\":{\"kind\":18,\"typeName\":\"HttpRequestObserverOptions\",\"types\":[{\"kind\":20,\"name\":\"captureRequestBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},\"HttpResponseResult\":{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},\"HttpRouteNotFoundWorkflowEvent\":{\"kind\":18,\"typeName\":\"HttpRouteNotFoundWorkflowEvent\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"sent\",\"type\":{\"kind\":8},\"optional\":false}]},\"HttpServerListenHooks\":{\"kind\":18,\"typeName\":\"HttpServerListenHooks\",\"types\":[{\"kind\":20,\"name\":\"start\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"() =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"afterListen\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(server: Server) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"onListenError\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(error: unknown) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true}]},\"HttpServerRuntimeOptions\":{\"kind\":18,\"typeName\":\"HttpServerRuntimeOptions\",\"types\":[{\"kind\":20,\"name\":\"config\",\"type\":{\"kind\":2,\"typeName\":\"C\"},\"optional\":false},{\"kind\":20,\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[4,\"./router\",\"HttpRouter\"]}},\"optional\":false},{\"kind\":20,\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[4,\"../services/index\",\"ScopedLogger\"]}},\"optional\":false},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":3}}]}},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"packageName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"devConsoleEnabled\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"listenHooks\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpServerListenHooks\",\"types\":[{\"kind\":20,\"name\":\"start\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"() =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"afterListen\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(server: Server) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"onListenError\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(error: unknown) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true}]},{\"kind\":2,\"typeName\":\"() =\\u003e HttpServerListenHooks\"}]},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"C\"]},\"HttpUpgradeHandler\":{\"kind\":2,\"typeName\":\"(request: IncomingMessage, socket: Socket, head: Buffer) =\\u003e void\",\"typeName\":\"HttpUpgradeHandler\"},\"HttpWorkflowEvent\":{\"kind\":18,\"typeName\":\"HttpWorkflowEvent\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"sent\",\"type\":{\"kind\":8},\"optional\":false}]},\"HttpWriteHeadHeaders\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":6}]}}],\"index\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":6}]}},\"types\":[],\"typeName\":\"HttpHeaderOutput\"},{\"kind\":15,\"types\":[{\"type\":{\"kind\":6}},{\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}}]}]},\"typeName\":\"HttpWriteHeadHeaders\"},\"InstallWebSocketUpgradeHandlerOptions\":{\"kind\":18,\"typeName\":\"InstallWebSocketUpgradeHandlerOptions\",\"types\":[{\"kind\":20,\"name\":\"wsPath\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"wsServer\",\"type\":{\"kind\":16,\"typeName\":\"WebSocket.Server\",\"classType\":{\"$tsf\":5}},\"optional\":false},{\"kind\":20,\"name\":\"verifyClient\",\"type\":{\"kind\":2,\"typeName\":\"(\\n info: { origin: string; secure: boolean; req: IncomingMessage },\\n cb: (res: boolean, code?: number, message?: string) =\\u003e void\\n) =\\u003e void\",\"typeName\":\"VerifyClientFn\"},\"optional\":false},{\"kind\":20,\"name\":\"httpServer\",\"type\":{\"$tsfAlias\":[4,\"node:http\",\"Server\",\"Server\"]},\"optional\":false}]},\"KnownHttpMethod\":{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},\"MultipartRequestPart\":{\"kind\":18,\"typeName\":\"MultipartRequestPart\",\"types\":[{\"kind\":20,\"name\":\"name\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"value\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"file\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":2}},{\"kind\":6}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fileName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"contentType\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true}]},\"MultipartRequestPolicy\":{\"kind\":18,\"typeName\":\"MultipartRequestPolicy\",\"types\":[{\"kind\":20,\"name\":\"files\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":18,\"typeName\":\"FileUploadPolicy\",\"types\":[{\"kind\":20,\"name\":\"maxSizeBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"optional\":true}]}],\"index\":{\"kind\":18,\"typeName\":\"FileUploadPolicy\",\"types\":[{\"kind\":20,\"name\":\"maxSizeBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"optional\":true}]},\"types\":[]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"rejectUndeclaredFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true}]},\"OkResponse\":{\"kind\":22,\"type\":{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"ok\",\"type\":{\"kind\":10,\"literal\":true},\"optional\":false}]},\"typeName\":\"OkResponse\"},\"ParsedMultipartBody\":{\"kind\":18,\"typeName\":\"ParsedMultipartBody\",\"types\":[{\"kind\":20,\"name\":\"body\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},\"optional\":false},{\"kind\":20,\"name\":\"uploadedFiles\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}]}}],\"index\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}]}},\"types\":[],\"typeName\":\"UploadedFiles\"},\"optional\":false}]},\"RedirectResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"RedirectResponse\"},\"RequestBuilder\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]},\"typeName\":\"RequestBuilder\"},\"ResolvedStaticFilesOptions\":{\"kind\":18,\"typeName\":\"ResolvedStaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"serveIndex\",\"type\":{\"kind\":8},\"optional\":false}]},\"RouteMetadata\":{\"kind\":18,\"typeName\":\"RouteMetadata\",\"types\":[{\"kind\":20,\"name\":\"method\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"types\":[]}]}],\"typeName\":\"HttpMethod\"},\"optional\":false},{\"kind\":20,\"name\":\"path\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"propertyKey\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"symbol\"}]},\"optional\":false},{\"kind\":20,\"name\":\"middlewares\",\"type\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"}},\"optional\":false}]},\"RouteParameterResolver\":{\"kind\":18,\"typeName\":\"RouteParameterResolver\",\"types\":[],\"typeParameters\":[\"T\"]},\"RouteParameterResolverContext\":{\"kind\":18,\"typeName\":\"RouteParameterResolverContext\",\"types\":[{\"kind\":20,\"name\":\"token\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":6},{\"kind\":2,\"typeName\":\"symbol\"},{\"kind\":2}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"route\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"name\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"value\",\"type\":{\"kind\":2},\"optional\":false},{\"kind\":20,\"name\":\"query\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[]},\"optional\":false},{\"kind\":20,\"name\":\"parameters\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},\"optional\":false},{\"kind\":20,\"name\":\"type\",\"type\":{\"kind\":16,\"typeName\":\"ReflectionParameter\",\"classType\":{\"$tsfImport\":[4,\"../reflection/index\",\"ReflectionParameter\"]}},\"optional\":false}]},\"RouteParameterResolverMetadata\":{\"kind\":18,\"typeName\":\"RouteParameterResolverMetadata\",\"types\":[{\"kind\":20,\"name\":\"type\",\"type\":{\"kind\":2,\"typeName\":\"ClassType\"},\"optional\":false},{\"kind\":20,\"name\":\"resolver\",\"type\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"optional\":false}]},\"RouteParameterResolverRegistry\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"}],\"index\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"types\":[],\"typeName\":\"RouteParameterResolverRegistry\"},\"StaticFilesOptions\":{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]},\"UploadedFiles\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}]}}],\"index\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}]}},\"types\":[],\"typeName\":\"UploadedFiles\"},\"VerifyClientFn\":{\"kind\":2,\"typeName\":\"(\\n info: { origin: string; secure: boolean; req: IncomingMessage },\\n cb: (res: boolean, code?: number, message?: string) =\\u003e void\\n) =\\u003e void\",\"typeName\":\"VerifyClientFn\"},\"WebSocketUpgradeHandlerOptions\":{\"kind\":18,\"typeName\":\"WebSocketUpgradeHandlerOptions\",\"types\":[{\"kind\":20,\"name\":\"wsPath\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"wsServer\",\"type\":{\"kind\":16,\"typeName\":\"WebSocket.Server\",\"classType\":{\"$tsf\":5}},\"optional\":false},{\"kind\":20,\"name\":\"verifyClient\",\"type\":{\"kind\":2,\"typeName\":\"(\\n info: { origin: string; secure: boolean; req: IncomingMessage },\\n cb: (res: boolean, code?: number, message?: string) =\\u003e void\\n) =\\u003e void\",\"typeName\":\"VerifyClientFn\"},\"optional\":false}]}}]", [() => (typeof HttpMiddleware !== "undefined" ? HttpMiddleware : (typeof exports !== "undefined" ? exports.HttpMiddleware : undefined)), () => `${number}${'B' | 'KB' | 'MB' | 'GB' | 'KiB' | 'MiB' | 'GiB'}`, () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined)), require, () => WebSocket.Server, () => (typeof FileUpload !== "undefined" ? FileUpload : (typeof exports !== "undefined" ? exports.FileUpload : undefined))]);
|
|
26
|
+
exports.__tsfTypeAliases = _a.decodeCompactMetadataV1("[1,{\"AnyResponse\":{\"kind\":22,\"type\":{\"kind\":1},\"typeName\":\"AnyResponse\"},\"ControllerMetadata\":{\"kind\":18,\"typeName\":\"ControllerMetadata\",\"types\":[{\"kind\":20,\"name\":\"path\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"middlewares\",\"type\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"}},\"optional\":false}]},\"EmptyResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"EmptyResponse\"},\"EntityValidator\":{\"kind\":18,\"typeName\":\"EntityValidator\",\"types\":[],\"typeParameters\":[\"T\"]},\"FallbackControllerMetadata\":{\"kind\":18,\"typeName\":\"FallbackControllerMetadata\",\"types\":[{\"kind\":20,\"name\":\"middlewares\",\"type\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"}},\"optional\":false}]},\"FileUploadAllowedTypes\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"FileUploadAllowedTypes\"},\"FileUploadOptions\":{\"kind\":18,\"typeName\":\"FileUploadOptions\",\"types\":[{\"kind\":20,\"name\":\"maxSize\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":16,\"typeName\":\"`${number}${'B' | 'KB' | 'MB' | 'GB' | 'KiB' | 'MiB' | 'GiB'}`\",\"classType\":{\"$tsf\":1}}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}],\"typeName\":\"FileUploadAllowedTypes\"},{\"kind\":4}]},\"optional\":true}]},\"FileUploadPolicy\":{\"kind\":18,\"typeName\":\"FileUploadPolicy\",\"types\":[{\"kind\":20,\"name\":\"maxSizeBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"optional\":true}]},\"HttpFallbackController\":{\"kind\":18,\"typeName\":\"HttpFallbackController\",\"types\":[]},\"HttpHeaderInput\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"types\":[],\"typeName\":\"HttpHeaderInput\"},\"HttpHeaderOutput\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[],\"typeName\":\"HttpHeaderOutput\"},\"HttpMethod\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"types\":[]}]}],\"typeName\":\"HttpMethod\"},\"HttpMiddlewareFunction\":{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"},\"HttpMiddlewareInput\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"},\"HttpMiddlewareResult\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},{\"kind\":22,\"type\":{\"kind\":12,\"types\":[{\"kind\":3},{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]}]}}],\"typeName\":\"HttpMiddlewareResult\"},\"HttpRequestBodyCapture\":{\"kind\":18,\"typeName\":\"HttpRequestBodyCapture\",\"types\":[{\"kind\":20,\"name\":\"body\",\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":2}},\"optional\":false},{\"kind\":20,\"name\":\"totalBytes\",\"type\":{\"kind\":7},\"optional\":false}]},\"HttpRequestBodyLimits\":{\"kind\":18,\"typeName\":\"HttpRequestBodyLimits\",\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":7},\"optional\":false}]},\"HttpRequestHeaders\":{\"kind\":13,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":6}],\"index\":{\"kind\":6},\"types\":[]},{\"kind\":2,\"typeName\":\"(headers: HttpHeaderInput) =\\u003e HttpRequest\"}],\"typeName\":\"HttpRequestHeaders\"},\"HttpRequestLoggingOptions\":{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":3}}]}},{\"kind\":4}]},\"optional\":true}]},\"HttpRequestObservation\":{\"kind\":18,\"typeName\":\"HttpRequestObservation\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"startedAt\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"durationMs\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"error\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true}]},\"HttpRequestObserver\":{\"kind\":2,\"typeName\":\"(entry: HttpRequestObservation) =\\u003e void\",\"typeName\":\"HttpRequestObserver\"},\"HttpRequestObserverOptions\":{\"kind\":18,\"typeName\":\"HttpRequestObserverOptions\",\"types\":[{\"kind\":20,\"name\":\"captureRequestBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},\"HttpResponseResult\":{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},\"HttpRouteNotFoundWorkflowEvent\":{\"kind\":18,\"typeName\":\"HttpRouteNotFoundWorkflowEvent\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"sent\",\"type\":{\"kind\":8},\"optional\":false}]},\"HttpServerListenHooks\":{\"kind\":18,\"typeName\":\"HttpServerListenHooks\",\"types\":[{\"kind\":20,\"name\":\"start\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"() =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"afterListen\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(server: Server) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"onListenError\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(error: unknown) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true}]},\"HttpServerRuntimeOptions\":{\"kind\":18,\"typeName\":\"HttpServerRuntimeOptions\",\"types\":[{\"kind\":20,\"name\":\"config\",\"type\":{\"kind\":2,\"typeName\":\"C\"},\"optional\":false},{\"kind\":20,\"name\":\"router\",\"type\":{\"kind\":16,\"typeName\":\"HttpRouter\",\"classType\":{\"$tsfImport\":[4,\"./router\",\"HttpRouter\"]}},\"optional\":false},{\"kind\":20,\"name\":\"logger\",\"type\":{\"kind\":16,\"typeName\":\"ScopedLogger\",\"classType\":{\"$tsfImport\":[4,\"../services/index\",\"ScopedLogger\"]}},\"optional\":false},{\"kind\":20,\"name\":\"frameworkConfig\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"serverConfig\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"cors\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"HttpCorsConfig\",\"typeArguments\":[{\"kind\":2,\"typeName\":\"C\"}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"staticFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"requestLogging\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestLoggingOptions\",\"types\":[{\"kind\":20,\"name\":\"excludePaths\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"RegExp\",\"classType\":{\"$tsf\":3}}]}},{\"kind\":4}]},\"optional\":true}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"packageName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"devConsoleEnabled\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"listenHooks\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpServerListenHooks\",\"types\":[{\"kind\":20,\"name\":\"start\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"() =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"afterListen\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(server: Server) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"onListenError\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"(error: unknown) =\\u003e Promise\\u003cvoid\\u003e\"},{\"kind\":4}]},\"optional\":true}]},{\"kind\":2,\"typeName\":\"() =\\u003e HttpServerListenHooks\"}]},{\"kind\":4}]},\"optional\":true}],\"typeParameters\":[\"C\"]},\"HttpUpgradeHandler\":{\"kind\":2,\"typeName\":\"(request: IncomingMessage, socket: Socket, head: Buffer) =\\u003e void\",\"typeName\":\"HttpUpgradeHandler\"},\"HttpWorkflowEvent\":{\"kind\":18,\"typeName\":\"HttpWorkflowEvent\",\"types\":[{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"sent\",\"type\":{\"kind\":8},\"optional\":false}]},\"HttpWriteHeadHeaders\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":15,\"typeName\":\"[string, string | number | readonly string[]]\",\"types\":[{\"type\":{\"kind\":6}},{\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}}]}},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[],\"typeName\":\"HttpHeaderOutput\"}],\"typeName\":\"HttpWriteHeadHeaders\"},\"InstallWebSocketUpgradeHandlerOptions\":{\"kind\":18,\"typeName\":\"InstallWebSocketUpgradeHandlerOptions\",\"types\":[{\"kind\":20,\"name\":\"wsPath\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"wsServer\",\"type\":{\"kind\":16,\"typeName\":\"WebSocket.Server\",\"classType\":{\"$tsf\":5}},\"optional\":false},{\"kind\":20,\"name\":\"verifyClient\",\"type\":{\"kind\":2,\"typeName\":\"(\\n info: { origin: string; secure: boolean; req: IncomingMessage },\\n cb: (res: boolean, code?: number, message?: string) =\\u003e void\\n) =\\u003e void\",\"typeName\":\"VerifyClientFn\"},\"optional\":false},{\"kind\":20,\"name\":\"httpServer\",\"type\":{\"$tsfAlias\":[4,\"node:http\",\"Server\",\"Server\"]},\"optional\":false}]},\"KnownHttpMethod\":{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},\"MultipartRequestPart\":{\"kind\":18,\"typeName\":\"MultipartRequestPart\",\"types\":[{\"kind\":20,\"name\":\"name\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"value\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"file\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":2}},{\"kind\":6}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fileName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"contentType\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true}]},\"MultipartRequestPolicy\":{\"kind\":18,\"typeName\":\"MultipartRequestPolicy\",\"types\":[{\"kind\":20,\"name\":\"files\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":18,\"typeName\":\"FileUploadPolicy\",\"types\":[{\"kind\":20,\"name\":\"maxSizeBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"optional\":true}]}],\"index\":{\"kind\":18,\"typeName\":\"FileUploadPolicy\",\"types\":[{\"kind\":20,\"name\":\"maxSizeBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"allowedTypes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"optional\":true}]},\"types\":[]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"rejectUndeclaredFiles\",\"type\":{\"kind\":12,\"types\":[{\"kind\":8},{\"kind\":4}]},\"optional\":true}]},\"OkResponse\":{\"kind\":22,\"type\":{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"ok\",\"type\":{\"kind\":10,\"literal\":true},\"optional\":false}]},\"typeName\":\"OkResponse\"},\"ParsedMultipartBody\":{\"kind\":18,\"typeName\":\"ParsedMultipartBody\",\"types\":[{\"kind\":20,\"name\":\"body\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},\"optional\":false},{\"kind\":20,\"name\":\"uploadedFiles\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}}]},\"types\":[],\"typeName\":\"UploadedFiles\"},\"optional\":false}]},\"RedirectResponse\":{\"kind\":22,\"type\":{\"kind\":3},\"typeName\":\"RedirectResponse\"},\"RequestBuilder\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]},\"typeName\":\"RequestBuilder\"},\"ResolvedStaticFilesOptions\":{\"kind\":18,\"typeName\":\"ResolvedStaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"serveIndex\",\"type\":{\"kind\":8},\"optional\":false}]},\"RouteMetadata\":{\"kind\":18,\"typeName\":\"RouteMetadata\",\"types\":[{\"kind\":20,\"name\":\"method\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"types\":[]}]}],\"typeName\":\"HttpMethod\"},\"optional\":false},{\"kind\":20,\"name\":\"path\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"propertyKey\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"symbol\"}]},\"optional\":false},{\"kind\":20,\"name\":\"middlewares\",\"type\":{\"kind\":14,\"type\":{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\",\"typeArguments\":[{\"kind\":16,\"typeName\":\"HttpMiddleware\",\"classType\":{\"$tsf\":0}}]},{\"kind\":2,\"typeName\":\"(request: HttpRequest, response: HttpResponse) =\\u003e HttpMiddlewareResult\",\"typeName\":\"HttpMiddlewareFunction\"}],\"typeName\":\"HttpMiddlewareInput\"}},\"optional\":false}]},\"RouteParameterResolver\":{\"kind\":18,\"typeName\":\"RouteParameterResolver\",\"types\":[],\"typeParameters\":[\"T\"]},\"RouteParameterResolverContext\":{\"kind\":18,\"typeName\":\"RouteParameterResolverContext\",\"types\":[{\"kind\":20,\"name\":\"token\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":2,\"typeName\":\"ClassType\"},{\"kind\":6},{\"kind\":2,\"typeName\":\"symbol\"},{\"kind\":2}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"route\",\"type\":{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"request\",\"type\":{\"kind\":16,\"typeName\":\"HttpRequest\",\"classType\":{\"$tsfImport\":[4,\"./request\",\"HttpRequest\"]}},\"optional\":false},{\"kind\":20,\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsfImport\":[4,\"./response\",\"HttpResponse\"]}},\"optional\":false},{\"kind\":20,\"name\":\"name\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"value\",\"type\":{\"kind\":2},\"optional\":false},{\"kind\":20,\"name\":\"query\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[]},\"optional\":false},{\"kind\":20,\"name\":\"parameters\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},\"optional\":false},{\"kind\":20,\"name\":\"type\",\"type\":{\"kind\":16,\"typeName\":\"ReflectionParameter\",\"classType\":{\"$tsfImport\":[4,\"../reflection/index\",\"ReflectionParameter\"]}},\"optional\":false}]},\"RouteParameterResolverMetadata\":{\"kind\":18,\"typeName\":\"RouteParameterResolverMetadata\",\"types\":[{\"kind\":20,\"name\":\"type\",\"type\":{\"kind\":2,\"typeName\":\"ClassType\"},\"optional\":false},{\"kind\":20,\"name\":\"resolver\",\"type\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"optional\":false}]},\"RouteParameterResolverRegistry\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"}],\"index\":{\"kind\":2,\"typeName\":\"RouteParameterResolverInput\"},\"types\":[],\"typeName\":\"RouteParameterResolverRegistry\"},\"StaticFilesOptions\":{\"kind\":18,\"typeName\":\"StaticFilesOptions\",\"types\":[{\"kind\":20,\"name\":\"directory\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"index\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"spaFallback\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":10,\"literal\":false}]},{\"kind\":4}]},\"optional\":true}]},\"UploadedFiles\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}},{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":6}}}]},\"types\":[],\"typeName\":\"UploadedFiles\"},\"VerifyClientFn\":{\"kind\":2,\"typeName\":\"(\\n info: { origin: string; secure: boolean; req: IncomingMessage },\\n cb: (res: boolean, code?: number, message?: string) =\\u003e void\\n) =\\u003e void\",\"typeName\":\"VerifyClientFn\"},\"WebSocketUpgradeHandlerOptions\":{\"kind\":18,\"typeName\":\"WebSocketUpgradeHandlerOptions\",\"types\":[{\"kind\":20,\"name\":\"wsPath\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"wsServer\",\"type\":{\"kind\":16,\"typeName\":\"WebSocket.Server\",\"classType\":{\"$tsf\":5}},\"optional\":false},{\"kind\":20,\"name\":\"verifyClient\",\"type\":{\"kind\":2,\"typeName\":\"(\\n info: { origin: string; secure: boolean; req: IncomingMessage },\\n cb: (res: boolean, code?: number, message?: string) =\\u003e void\\n) =\\u003e void\",\"typeName\":\"VerifyClientFn\"},\"optional\":false}]}}]", [() => (typeof HttpMiddleware !== "undefined" ? HttpMiddleware : (typeof exports !== "undefined" ? exports.HttpMiddleware : undefined)), () => `${number}${'B' | 'KB' | 'MB' | 'GB' | 'KiB' | 'MiB' | 'GiB'}`, () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof RegExp !== "undefined" ? RegExp : (typeof exports !== "undefined" ? exports.RegExp : undefined)), require, () => WebSocket.Server, () => (typeof FileUpload !== "undefined" ? FileUpload : (typeof exports !== "undefined" ? exports.FileUpload : undefined))]);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
package/dist/src/http/request.js
CHANGED
|
@@ -8,7 +8,7 @@ const node_zlib_1 = require("node:zlib");
|
|
|
8
8
|
const errors_1 = require("./errors");
|
|
9
9
|
const form_body_1 = require("./form-body");
|
|
10
10
|
const headers_1 = require("./headers");
|
|
11
|
-
const __tsf_metadata_type = _a.createCompactMetadataRegistryV1("[1,[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"symbol\"}]},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":6}],\"index\":{\"kind\":6},\"types\":[]},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[]},{\"kind\":6},{\"kind\":13,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":6}],\"index\":{\"kind\":6},\"types\":[]},{\"kind\":2,\"typeName\":\"(headers: HttpHeaderInput) =\\u003e HttpRequest\"}],\"typeName\":\"HttpRequestHeaders\"},{\"kind\":2},{\"kind\":18,\"typeName\":\"HttpRequestBodyLimits\",\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":7},\"optional\":false}]},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8}]},{\"kind\":17},{\"kind\":22,\"type\":{\"kind\":6}},{\"kind\":18,\"typeName\":\"Partial\",\"utilityType\":\"Partial\",\"typeArguments\":[{\"kind\":18,\"typeName\":\"HttpRequestBodyLimits\",\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":7},\"optional\":false}]}],\"utilityKeys\":[],\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},{\"kind\":3},{\"kind\":7},{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"types\":[]}]}],\"typeName\":\"HttpMethod\"},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":
|
|
11
|
+
const __tsf_metadata_type = _a.createCompactMetadataRegistryV1("[1,[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"symbol\"}]},{\"kind\":2}],\"index\":{\"kind\":2},\"types\":[]},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":6}],\"index\":{\"kind\":6},\"types\":[]},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[]},{\"kind\":6},{\"kind\":13,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":6}],\"index\":{\"kind\":6},\"types\":[]},{\"kind\":2,\"typeName\":\"(headers: HttpHeaderInput) =\\u003e HttpRequest\"}],\"typeName\":\"HttpRequestHeaders\"},{\"kind\":2},{\"kind\":8},{\"kind\":18,\"typeName\":\"HttpRequestBodyLimits\",\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":7},\"optional\":false}]},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8}]},{\"kind\":17},{\"kind\":22,\"type\":{\"kind\":6}},{\"kind\":18,\"typeName\":\"Partial\",\"utilityType\":\"Partial\",\"typeArguments\":[{\"kind\":18,\"typeName\":\"HttpRequestBodyLimits\",\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":7},\"optional\":false},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":7},\"optional\":false}]}],\"utilityKeys\":[],\"types\":[{\"kind\":20,\"name\":\"maxFormFields\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxFormFieldNameLength\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxFormDepth\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxFormArrayIndex\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"maxCompressedBodyBytes\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true}]},{\"kind\":3},{\"kind\":7},{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"GET\"},{\"kind\":10,\"literal\":\"POST\"},{\"kind\":10,\"literal\":\"PUT\"},{\"kind\":10,\"literal\":\"PATCH\"},{\"kind\":10,\"literal\":\"DELETE\"},{\"kind\":10,\"literal\":\"OPTIONS\"},{\"kind\":10,\"literal\":\"HEAD\"}],\"typeName\":\"KnownHttpMethod\"},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"types\":[]}]}],\"typeName\":\"HttpMethod\"},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},\"types\":[],\"typeName\":\"HttpHeaderInput\"},{\"kind\":2,\"typeName\":\"(error?: Error | null, data?: Buffer) =\\u003e void\"},{\"kind\":2,\"typeName\":\"(chunk: Buffer) =\\u003e void\"}]]", []);
|
|
12
12
|
exports.defaultHttpRequestBodyLimits = {
|
|
13
13
|
maxBodyBytes: 100 * 1024 * 1024,
|
|
14
14
|
maxCompressedBodyBytes: 25 * 1024 * 1024,
|
|
@@ -273,7 +273,7 @@ class HttpRequest extends node_stream_1.Readable {
|
|
|
273
273
|
})
|
|
274
274
|
], 'identity');
|
|
275
275
|
}
|
|
276
|
-
static __tsfType = _HttpRequestMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"HttpRequest\",\"typeName\":\"HttpRequest\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"store\",\"type\":{\"$tsfType\":0},\"optional\":false},{\"name\":\"context\",\"type\":{\"$tsfType\":1},\"optional\":false},{\"name\":\"query\",\"type\":{\"$tsfType\":2},\"optional\":false},{\"name\":\"path\",\"type\":{\"$tsfType\":3},\"optional\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":4},\"optional\":false},{\"name\":\"body\",\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},\"optional\":true},{\"name\":\"parsedBody\",\"type\":{\"$tsfType\":5},\"optional\":true},{\"name\":\"uploadedFiles\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":
|
|
276
|
+
static __tsfType = _HttpRequestMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"HttpRequest\",\"typeName\":\"HttpRequest\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"store\",\"type\":{\"$tsfType\":0},\"optional\":false},{\"name\":\"context\",\"type\":{\"$tsfType\":1},\"optional\":false},{\"name\":\"query\",\"type\":{\"$tsfType\":2},\"optional\":false},{\"name\":\"path\",\"type\":{\"$tsfType\":3},\"optional\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":4},\"optional\":false},{\"name\":\"body\",\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},\"optional\":true},{\"name\":\"parsedBody\",\"type\":{\"$tsfType\":5},\"optional\":true},{\"name\":\"uploadedFiles\",\"type\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":2}},{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":2}}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":2}},{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"FileUpload\",\"classType\":{\"$tsf\":2}}}]},\"types\":[],\"typeName\":\"UploadedFiles\"},\"optional\":false},{\"name\":\"pathParams\",\"type\":{\"$tsfType\":1},\"optional\":false},{\"name\":\"remoteAddress\",\"type\":{\"$tsfType\":3},\"optional\":false},{\"name\":\"socket\",\"type\":{\"kind\":18,\"typeName\":\"Pick\",\"utilityType\":\"Pick\",\"typeArguments\":[{\"$tsfAlias\":[3,\"node:net\",\"Socket\",\"Socket\"]}],\"utilityKeys\":[\"remoteAddress\"],\"types\":[]},\"optional\":false},{\"name\":\"trustProxyHeaders\",\"type\":{\"$tsfType\":6},\"optional\":false},{\"name\":\"bodyLimits\",\"type\":{\"$tsfType\":7},\"optional\":false}],\"methods\":[{\"name\":\"build\",\"parameters\":[],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":4}}},{\"name\":\"header\",\"parameters\":[{\"name\":\"name\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false},{\"name\":\"value\",\"type\":{\"$tsfType\":8},\"optional\":false,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":4}}},{\"name\":\"json\",\"parameters\":[{\"name\":\"body\",\"type\":{\"$tsfType\":9},\"optional\":false,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":4}}},{\"name\":\"multiPart\",\"parameters\":[{\"name\":\"parts\",\"type\":{\"kind\":14,\"type\":{\"kind\":18,\"typeName\":\"MultipartRequestPart\",\"types\":[{\"kind\":20,\"name\":\"name\",\"type\":{\"kind\":6},\"optional\":false},{\"kind\":20,\"name\":\"value\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":8}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"file\",\"type\":{\"kind\":12,\"types\":[{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6}]},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"fileName\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"contentType\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true}]}},\"optional\":false,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":4}}},{\"name\":\"getRemoteAddress\",\"parameters\":[],\"returnType\":{\"$tsfType\":3}},{\"name\":\"readBodyText\",\"parameters\":[],\"returnType\":{\"$tsfType\":10}},{\"name\":\"readBody\",\"parameters\":[],\"returnType\":{\"kind\":22,\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}}}},{\"name\":\"readBodyBuffer\",\"parameters\":[],\"returnType\":{\"kind\":22,\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}}}},{\"name\":\"setBodyLimits\",\"parameters\":[{\"name\":\"limits\",\"type\":{\"$tsfType\":11},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":12}},{\"name\":\"enableBodyGuardBypass\",\"parameters\":[],\"returnType\":{\"$tsfType\":12}},{\"name\":\"enableBodyCapture\",\"parameters\":[{\"name\":\"maxBytes\",\"type\":{\"$tsfType\":13},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":12}},{\"name\":\"getBodyCapture\",\"parameters\":[],\"returnType\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"HttpRequestBodyCapture\",\"types\":[{\"kind\":20,\"name\":\"body\",\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},\"optional\":false},{\"kind\":20,\"name\":\"totalBytes\",\"type\":{\"kind\":7},\"optional\":false}]},{\"kind\":4}]}},{\"name\":\"_read\",\"parameters\":[],\"returnType\":{\"$tsfType\":12}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"method\",\"type\":{\"$tsfType\":14},\"optional\":false,\"default\":false},{\"name\":\"url\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":15},\"optional\":true,\"default\":true},{\"name\":\"body\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6},{\"kind\":17}]},\"optional\":true,\"default\":false},{\"name\":\"bodyStream\",\"type\":{\"$tsfAlias\":[3,\"node:stream\",\"Readable\",\"Readable\"]},\"optional\":true,\"default\":false}]}]", [() => HttpRequest, () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof FileUpload !== "undefined" ? FileUpload : (typeof exports !== "undefined" ? exports.FileUpload : undefined)), require, () => (typeof this !== "undefined" ? this : (typeof exports !== "undefined" ? exports.this : undefined))], __tsf_metadata_type);
|
|
277
277
|
}
|
|
278
278
|
exports.HttpRequest = HttpRequest;
|
|
279
279
|
_HttpRequestMetadata_1.classType = HttpRequest;
|
|
@@ -373,7 +373,7 @@ class ByteLimitTransform extends node_stream_1.Transform {
|
|
|
373
373
|
}
|
|
374
374
|
callback(null, buffer);
|
|
375
375
|
}
|
|
376
|
-
static __tsfType = _ByteLimitTransformMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"ByteLimitTransform\",\"typeName\":\"ByteLimitTransform\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"_transform\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6}]},\"optional\":false,\"default\":false},{\"name\":\"encoding\",\"type\":{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":2}},\"optional\":false,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":
|
|
376
|
+
static __tsfType = _ByteLimitTransformMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"ByteLimitTransform\",\"typeName\":\"ByteLimitTransform\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"_transform\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6}]},\"optional\":false,\"default\":false},{\"name\":\"encoding\",\"type\":{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":2}},\"optional\":false,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":16},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":12}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"maxBytes\",\"type\":{\"$tsfType\":13},\"optional\":false,\"default\":false},{\"name\":\"message\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false}]}]", [() => ByteLimitTransform, () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof BufferEncoding !== "undefined" ? BufferEncoding : (typeof exports !== "undefined" ? exports.BufferEncoding : undefined))], __tsf_metadata_type);
|
|
377
377
|
}
|
|
378
378
|
_ByteLimitTransformMetadata_1.classType = ByteLimitTransform;
|
|
379
379
|
ByteLimitTransform.__tsfType = _ByteLimitTransformMetadata_1;
|
|
@@ -389,7 +389,7 @@ class BodyCaptureTransform extends node_stream_1.Transform {
|
|
|
389
389
|
this.capture(buffer);
|
|
390
390
|
callback(null, buffer);
|
|
391
391
|
}
|
|
392
|
-
static __tsfType = _BodyCaptureTransformMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"BodyCaptureTransform\",\"typeName\":\"BodyCaptureTransform\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"_transform\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6}]},\"optional\":false,\"default\":false},{\"name\":\"encoding\",\"type\":{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":2}},\"optional\":false,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":
|
|
392
|
+
static __tsfType = _BodyCaptureTransformMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"BodyCaptureTransform\",\"typeName\":\"BodyCaptureTransform\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"_transform\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6}]},\"optional\":false,\"default\":false},{\"name\":\"encoding\",\"type\":{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":2}},\"optional\":false,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":16},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":12}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"capture\",\"type\":{\"$tsfType\":17},\"optional\":false,\"default\":false}]}]", [() => BodyCaptureTransform, () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof BufferEncoding !== "undefined" ? BufferEncoding : (typeof exports !== "undefined" ? exports.BufferEncoding : undefined))], __tsf_metadata_type);
|
|
393
393
|
}
|
|
394
394
|
_BodyCaptureTransformMetadata_1.classType = BodyCaptureTransform;
|
|
395
395
|
BodyCaptureTransform.__tsfType = _BodyCaptureTransformMetadata_1;
|
|
@@ -9,7 +9,7 @@ exports.isHttpResponseResult = isHttpResponseResult;
|
|
|
9
9
|
const tslib_1 = require("tslib");
|
|
10
10
|
const _a = tslib_1.__importStar(require("@zyno-io/ts-reflection/type-metadata-runtime"));
|
|
11
11
|
const node_stream_1 = require("node:stream");
|
|
12
|
-
const __tsf_metadata_type = _a.createCompactMetadataRegistryV1("[1,[{\"kind\":
|
|
12
|
+
const __tsf_metadata_type = _a.createCompactMetadataRegistryV1("[1,[{\"kind\":7},{\"kind\":2,\"typeName\":\"Map\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}}]}]},{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":14,\"type\":{\"kind\":6}},{\"kind\":4}]},{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":15,\"typeName\":\"[string, string | number | readonly string[]]\",\"types\":[{\"type\":{\"kind\":6}},{\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}}]}},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[],\"typeName\":\"HttpHeaderOutput\"}],\"typeName\":\"HttpWriteHeadHeaders\"},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":15,\"typeName\":\"[string, string | number | readonly string[]]\",\"types\":[{\"type\":{\"kind\":6}},{\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}}]}},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[],\"typeName\":\"HttpHeaderOutput\"}],\"typeName\":\"HttpWriteHeadHeaders\"}]},{\"kind\":3},{\"kind\":2},{\"kind\":2,\"typeName\":\"(error?: Error | null) =\\u003e void\"},{\"kind\":1},{\"kind\":8},{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"statusCode\",\"type\":{\"kind\":12,\"types\":[{\"kind\":7},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"contentType\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":4}]},\"optional\":true},{\"kind\":20,\"name\":\"headers\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[]},{\"kind\":4}]},\"optional\":true}]}]]", []);
|
|
13
13
|
let _HttpResponseMetadata_1;
|
|
14
14
|
class HttpResponse extends node_stream_1.Writable {
|
|
15
15
|
statusCodeValue = 200;
|
|
@@ -76,7 +76,7 @@ class HttpResponse extends node_stream_1.Writable {
|
|
|
76
76
|
this.chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
77
77
|
callback();
|
|
78
78
|
}
|
|
79
|
-
static __tsfType = _HttpResponseMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"HttpResponse\",\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"statusCodeValue\",\"type\":{\"$tsfType\":0},\"optional\":false},{\"name\":\"chunks\",\"type\":{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}}},\"optional\":false},{\"name\":\"headerMap\",\"type\":{\"$tsfType\":
|
|
79
|
+
static __tsfType = _HttpResponseMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"HttpResponse\",\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"statusCodeValue\",\"type\":{\"$tsfType\":0},\"optional\":false},{\"name\":\"chunks\",\"type\":{\"kind\":14,\"type\":{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}}},\"optional\":false},{\"name\":\"headerMap\",\"type\":{\"$tsfType\":1},\"optional\":false}],\"methods\":[{\"name\":\"setHeader\",\"parameters\":[{\"name\":\"name\",\"type\":{\"$tsfType\":2},\"optional\":false,\"default\":false},{\"name\":\"value\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":2}}},{\"name\":\"getHeader\",\"parameters\":[{\"name\":\"name\",\"type\":{\"$tsfType\":2},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":4}},{\"name\":\"writeHead\",\"parameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":5},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":2}}},{\"name\":\"writeHead\",\"parameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false},{\"name\":\"statusMessage\",\"type\":{\"$tsfType\":2},\"optional\":true,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":5},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":2}}},{\"name\":\"writeHead\",\"parameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false},{\"name\":\"statusMessageOrHeaders\",\"type\":{\"$tsfType\":6},\"optional\":true,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":5},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":2}}},{\"name\":\"flushHeaders\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"redirect\",\"parameters\":[{\"name\":\"url\",\"type\":{\"$tsfType\":2},\"optional\":false,\"default\":false},{\"name\":\"statusCode\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":true}],\"returnType\":{\"$tsfType\":7}},{\"name\":\"discardBody\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"_write\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":1}},{\"kind\":6}]},\"optional\":false,\"default\":false},{\"name\":\"_encoding\",\"type\":{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":3}},\"optional\":false,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":9},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":false,\"constructorParameters\":[]}]", [() => HttpResponse, () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof this !== "undefined" ? this : (typeof exports !== "undefined" ? exports.this : undefined)), () => (typeof BufferEncoding !== "undefined" ? BufferEncoding : (typeof exports !== "undefined" ? exports.BufferEncoding : undefined))], __tsf_metadata_type);
|
|
80
80
|
}
|
|
81
81
|
exports.HttpResponse = HttpResponse;
|
|
82
82
|
_HttpResponseMetadata_1.classType = HttpResponse;
|
|
@@ -198,7 +198,7 @@ class NodeHttpResponse extends HttpResponse {
|
|
|
198
198
|
this.outgoing.setHeader(name, value);
|
|
199
199
|
this.committed = true;
|
|
200
200
|
}
|
|
201
|
-
static __tsfType = _NodeHttpResponseMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"NodeHttpResponse\",\"typeName\":\"NodeHttpResponse\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"setHeader\",\"parameters\":[{\"name\":\"name\",\"type\":{\"$tsfType\":
|
|
201
|
+
static __tsfType = _NodeHttpResponseMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"NodeHttpResponse\",\"typeName\":\"NodeHttpResponse\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"setHeader\",\"parameters\":[{\"name\":\"name\",\"type\":{\"$tsfType\":2},\"optional\":false,\"default\":false},{\"name\":\"value\",\"type\":{\"$tsfType\":3},\"optional\":false,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":1}}},{\"name\":\"writeHead\",\"parameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":5},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":1}}},{\"name\":\"writeHead\",\"parameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false},{\"name\":\"statusMessage\",\"type\":{\"$tsfType\":2},\"optional\":true,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":5},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":1}}},{\"name\":\"writeHead\",\"parameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":0},\"optional\":false,\"default\":false},{\"name\":\"statusMessageOrHeaders\",\"type\":{\"$tsfType\":6},\"optional\":true,\"default\":false},{\"name\":\"headers\",\"type\":{\"$tsfType\":5},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":1}}},{\"name\":\"write\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"$tsfType\":10},\"optional\":false,\"default\":false},{\"name\":\"encoding\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":2}},{\"kind\":2,\"typeName\":\"(error?: Error | null) =\\u003e void\"}]},\"optional\":true,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":9},\"optional\":true,\"default\":false}],\"returnType\":{\"$tsfType\":11}},{\"name\":\"_write\",\"parameters\":[{\"name\":\"chunk\",\"type\":{\"kind\":12,\"types\":[{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":3}},{\"kind\":6}]},\"optional\":false,\"default\":false},{\"name\":\"encoding\",\"type\":{\"kind\":16,\"typeName\":\"BufferEncoding\",\"classType\":{\"$tsf\":2}},\"optional\":false,\"default\":false},{\"name\":\"callback\",\"type\":{\"$tsfType\":9},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}},{\"name\":\"_final\",\"parameters\":[{\"name\":\"callback\",\"type\":{\"$tsfType\":9},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}},{\"name\":\"destroy\",\"parameters\":[{\"name\":\"error\",\"type\":{\"kind\":16,\"typeName\":\"Error\",\"classType\":{\"$tsf\":4}},\"optional\":true,\"default\":false}],\"returnType\":{\"kind\":16,\"typeName\":\"this\",\"classType\":{\"$tsf\":1}}},{\"name\":\"redirect\",\"parameters\":[{\"name\":\"url\",\"type\":{\"$tsfType\":2},\"optional\":false,\"default\":false},{\"name\":\"statusCode\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":true}],\"returnType\":{\"$tsfType\":7}},{\"name\":\"flush\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}},{\"name\":\"flushHeaders\",\"parameters\":[],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"outgoing\",\"type\":{\"$tsfAlias\":[5,\"node:http\",\"ServerResponse\",\"ServerResponse\"]},\"optional\":false,\"default\":false}]}]", [() => NodeHttpResponse, () => (typeof this !== "undefined" ? this : (typeof exports !== "undefined" ? exports.this : undefined)), () => (typeof BufferEncoding !== "undefined" ? BufferEncoding : (typeof exports !== "undefined" ? exports.BufferEncoding : undefined)), () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined)), () => (typeof Error !== "undefined" ? Error : (typeof exports !== "undefined" ? exports.Error : undefined)), require], __tsf_metadata_type);
|
|
202
202
|
}
|
|
203
203
|
exports.NodeHttpResponse = NodeHttpResponse;
|
|
204
204
|
_NodeHttpResponseMetadata_1.classType = NodeHttpResponse;
|
|
@@ -221,7 +221,7 @@ class JsonResponseResult {
|
|
|
221
221
|
response.setHeader('content-type', 'application/json');
|
|
222
222
|
response.end(JSON.stringify(this.value));
|
|
223
223
|
}
|
|
224
|
-
static __tsfType = _JsonResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"JsonResponseResult\",\"typeName\":\"JsonResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"value\",\"type\":{\"$tsfType\":
|
|
224
|
+
static __tsfType = _JsonResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"JsonResponseResult\",\"typeName\":\"JsonResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"value\",\"type\":{\"$tsfType\":8},\"optional\":false,\"default\":false},{\"name\":\"statusCode\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":true}]}]", [() => JsonResponseResult, () => (typeof HttpResponse !== "undefined" ? HttpResponse : (typeof exports !== "undefined" ? exports.HttpResponse : undefined))], __tsf_metadata_type);
|
|
225
225
|
}
|
|
226
226
|
exports.JsonResponseResult = JsonResponseResult;
|
|
227
227
|
_JsonResponseResultMetadata_1.classType = JsonResponseResult;
|
|
@@ -237,7 +237,7 @@ class RedirectResponseResult {
|
|
|
237
237
|
writeTo(response) {
|
|
238
238
|
response.redirect(this.url, this.statusCode);
|
|
239
239
|
}
|
|
240
|
-
static __tsfType = _RedirectResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"RedirectResponseResult\",\"typeName\":\"RedirectResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"url\",\"type\":{\"$tsfType\":
|
|
240
|
+
static __tsfType = _RedirectResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"RedirectResponseResult\",\"typeName\":\"RedirectResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"url\",\"type\":{\"$tsfType\":2},\"optional\":false,\"default\":false},{\"name\":\"statusCode\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":true}]}]", [() => RedirectResponseResult, () => (typeof HttpResponse !== "undefined" ? HttpResponse : (typeof exports !== "undefined" ? exports.HttpResponse : undefined))], __tsf_metadata_type);
|
|
241
241
|
}
|
|
242
242
|
exports.RedirectResponseResult = RedirectResponseResult;
|
|
243
243
|
_RedirectResponseResultMetadata_1.classType = RedirectResponseResult;
|
|
@@ -252,7 +252,7 @@ class EmptyResponseResult {
|
|
|
252
252
|
response.statusCode = this.statusCode;
|
|
253
253
|
response.end();
|
|
254
254
|
}
|
|
255
|
-
static __tsfType = _EmptyResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"EmptyResponseResult\",\"typeName\":\"EmptyResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":
|
|
255
|
+
static __tsfType = _EmptyResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"EmptyResponseResult\",\"typeName\":\"EmptyResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"statusCode\",\"type\":{\"$tsfType\":8},\"optional\":true,\"default\":true}]}]", [() => EmptyResponseResult, () => (typeof HttpResponse !== "undefined" ? HttpResponse : (typeof exports !== "undefined" ? exports.HttpResponse : undefined))], __tsf_metadata_type);
|
|
256
256
|
}
|
|
257
257
|
exports.EmptyResponseResult = EmptyResponseResult;
|
|
258
258
|
_EmptyResponseResultMetadata_1.classType = EmptyResponseResult;
|
|
@@ -273,7 +273,7 @@ class RawResponseResult {
|
|
|
273
273
|
response.setHeader(name, value);
|
|
274
274
|
response.end(this.body);
|
|
275
275
|
}
|
|
276
|
-
static __tsfType = _RawResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"RawResponseResult\",\"typeName\":\"RawResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"body\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":2}}]},\"optional\":false,\"default\":false},{\"name\":\"options\",\"type\":{\"$tsfType\":
|
|
276
|
+
static __tsfType = _RawResponseResultMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"RawResponseResult\",\"typeName\":\"RawResponseResult\",\"classType\":{\"$tsf\":0},\"properties\":[],\"methods\":[{\"name\":\"writeTo\",\"parameters\":[{\"name\":\"response\",\"type\":{\"kind\":16,\"typeName\":\"HttpResponse\",\"classType\":{\"$tsf\":1}},\"optional\":false,\"default\":false}],\"returnType\":{\"$tsfType\":7}}],\"hasConstructor\":true,\"constructorParameters\":[{\"name\":\"body\",\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":16,\"typeName\":\"Buffer\",\"classType\":{\"$tsf\":2}}]},\"optional\":false,\"default\":false},{\"name\":\"options\",\"type\":{\"$tsfType\":12},\"optional\":true,\"default\":true}]}]", [() => RawResponseResult, () => (typeof HttpResponse !== "undefined" ? HttpResponse : (typeof exports !== "undefined" ? exports.HttpResponse : undefined)), () => (typeof Buffer !== "undefined" ? Buffer : (typeof exports !== "undefined" ? exports.Buffer : undefined))], __tsf_metadata_type);
|
|
277
277
|
}
|
|
278
278
|
exports.RawResponseResult = RawResponseResult;
|
|
279
279
|
_RawResponseResultMetadata_1.classType = RawResponseResult;
|
|
@@ -303,5 +303,5 @@ function rawResponse(body, options = {}) {
|
|
|
303
303
|
function isHttpResponseResult(value) {
|
|
304
304
|
return !!value && typeof value === 'object' && typeof value.writeTo === 'function';
|
|
305
305
|
}
|
|
306
|
-
exports.__tsfTypeAliases = JSON.parse("[1,{\"HttpHeaderOutput\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":
|
|
306
|
+
exports.__tsfTypeAliases = JSON.parse("[1,{\"HttpHeaderOutput\":{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[],\"typeName\":\"HttpHeaderOutput\"},\"HttpResponseResult\":{\"kind\":18,\"typeName\":\"HttpResponseResult\",\"types\":[]},\"HttpWriteHeadHeaders\":{\"kind\":12,\"types\":[{\"kind\":14,\"type\":{\"kind\":15,\"typeName\":\"[string, string | number | readonly string[]]\",\"types\":[{\"type\":{\"kind\":6}},{\"type\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}}]}},{\"kind\":18,\"typeName\":\"Record\",\"utilityType\":\"Record\",\"typeArguments\":[{\"kind\":6},{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]}],\"index\":{\"kind\":12,\"types\":[{\"kind\":6},{\"kind\":7},{\"kind\":14,\"type\":{\"kind\":6}}]},\"types\":[],\"typeName\":\"HttpHeaderOutput\"}],\"typeName\":\"HttpWriteHeadHeaders\"}}]")[1];
|
|
307
307
|
//# sourceMappingURL=response.js.map
|
package/dist/src/http/router.js
CHANGED
|
@@ -889,6 +889,8 @@ function isStructuredBodyType(type) {
|
|
|
889
889
|
function normalizeRawHttpValue(value, type) {
|
|
890
890
|
if (value === undefined || value === null)
|
|
891
891
|
return value;
|
|
892
|
+
if (value instanceof uploads_1.FileUpload && isFileUploadArrayType(type))
|
|
893
|
+
value = [value];
|
|
892
894
|
if (isDateType(type))
|
|
893
895
|
return normalizeDateValue(value);
|
|
894
896
|
if (isTrimmedStringType(type) && typeof value === 'string')
|
|
@@ -1180,6 +1182,10 @@ function isReflectedClass(type, classType) {
|
|
|
1180
1182
|
return (type.kind === reflection_1.ReflectionKind.class &&
|
|
1181
1183
|
(type.classType === classType || type.classType?.name === classType.name || type.typeName === classType.name));
|
|
1182
1184
|
}
|
|
1185
|
+
function isFileUploadArrayType(type) {
|
|
1186
|
+
const unwrapped = unwrapValueType(type);
|
|
1187
|
+
return unwrapped.kind === reflection_1.ReflectionKind.array && isReflectedClass(unwrapped.type, uploads_1.FileUpload);
|
|
1188
|
+
}
|
|
1183
1189
|
function normalizeDateValue(value) {
|
|
1184
1190
|
if (value instanceof Date)
|
|
1185
1191
|
return value;
|