@visulima/api-platform 4.0.0-alpha.7 → 4.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE.md +109 -0
  3. package/dist/connect/create-node-router.d.cts +24 -0
  4. package/dist/connect/create-node-router.d.mts +24 -0
  5. package/dist/connect/create-node-router.d.ts +24 -0
  6. package/dist/connect/handler.d.cts +5 -0
  7. package/dist/connect/handler.d.mts +5 -0
  8. package/dist/connect/handler.d.ts +5 -0
  9. package/dist/connect/middleware/cors-middleware.d.cts +5 -0
  10. package/dist/connect/middleware/cors-middleware.d.mts +5 -0
  11. package/dist/connect/middleware/cors-middleware.d.ts +5 -0
  12. package/dist/connect/middleware/http-header-normalizer.d.cts +12 -0
  13. package/dist/connect/middleware/http-header-normalizer.d.mts +12 -0
  14. package/dist/connect/middleware/http-header-normalizer.d.ts +12 -0
  15. package/dist/connect/middleware/rate-limiter-middleware.d.cts +7 -0
  16. package/dist/connect/middleware/rate-limiter-middleware.d.mts +7 -0
  17. package/dist/connect/middleware/rate-limiter-middleware.d.ts +7 -0
  18. package/dist/connect/middleware/serializers-middleware.d.cts +6 -0
  19. package/dist/connect/middleware/serializers-middleware.d.mts +6 -0
  20. package/dist/connect/middleware/serializers-middleware.d.ts +6 -0
  21. package/dist/error-handler/jsonapi-error-handler.d.cts +3 -0
  22. package/dist/error-handler/jsonapi-error-handler.d.mts +3 -0
  23. package/dist/error-handler/jsonapi-error-handler.d.ts +3 -0
  24. package/dist/error-handler/problem-error-handler.d.cts +7 -0
  25. package/dist/error-handler/problem-error-handler.d.mts +7 -0
  26. package/dist/error-handler/problem-error-handler.d.ts +7 -0
  27. package/dist/error-handler/utils.d.cts +9 -0
  28. package/dist/error-handler/utils.d.mts +9 -0
  29. package/dist/error-handler/utils.d.ts +9 -0
  30. package/dist/framework/cli/command/list/get-routes.d.cts +7 -0
  31. package/dist/framework/cli/command/list/get-routes.d.mts +7 -0
  32. package/dist/framework/cli/command/list/get-routes.d.ts +7 -0
  33. package/dist/framework/cli/command/list/list-command.d.cts +9 -0
  34. package/dist/framework/cli/command/list/list-command.d.mts +9 -0
  35. package/dist/framework/cli/command/list/list-command.d.ts +9 -0
  36. package/dist/framework/cli/command/list/routes/express/express-path-parser.d.cts +16 -0
  37. package/dist/framework/cli/command/list/routes/express/express-path-parser.d.mts +16 -0
  38. package/dist/framework/cli/command/list/routes/express/express-path-parser.d.ts +16 -0
  39. package/dist/framework/cli/command/list/routes/express/map-keys-to-path.d.cts +9 -0
  40. package/dist/framework/cli/command/list/routes/express/map-keys-to-path.d.mts +9 -0
  41. package/dist/framework/cli/command/list/routes/express/map-keys-to-path.d.ts +9 -0
  42. package/dist/framework/cli/command/list/routes/express/path-regex-parser.d.cts +11 -0
  43. package/dist/framework/cli/command/list/routes/express/path-regex-parser.d.mts +11 -0
  44. package/dist/framework/cli/command/list/routes/express/path-regex-parser.d.ts +11 -0
  45. package/dist/framework/cli/command/list/routes/express-routes.d.cts +4 -0
  46. package/dist/framework/cli/command/list/routes/express-routes.d.mts +4 -0
  47. package/dist/framework/cli/command/list/routes/express-routes.d.ts +4 -0
  48. package/dist/framework/cli/command/list/routes/fastify-routes.d.cts +4 -0
  49. package/dist/framework/cli/command/list/routes/fastify-routes.d.mts +4 -0
  50. package/dist/framework/cli/command/list/routes/fastify-routes.d.ts +4 -0
  51. package/dist/framework/cli/command/list/routes/hapi-routes.d.cts +4 -0
  52. package/dist/framework/cli/command/list/routes/hapi-routes.d.mts +4 -0
  53. package/dist/framework/cli/command/list/routes/hapi-routes.d.ts +4 -0
  54. package/dist/framework/cli/command/list/routes/koa-routes.d.cts +4 -0
  55. package/dist/framework/cli/command/list/routes/koa-routes.d.mts +4 -0
  56. package/dist/framework/cli/command/list/routes/koa-routes.d.ts +4 -0
  57. package/dist/framework/cli/command/list/routes/next/api-route-file-parser.d.cts +3 -0
  58. package/dist/framework/cli/command/list/routes/next/api-route-file-parser.d.mts +3 -0
  59. package/dist/framework/cli/command/list/routes/next/api-route-file-parser.d.ts +3 -0
  60. package/dist/framework/cli/command/list/routes/next/collect-api-route-files.d.cts +2 -0
  61. package/dist/framework/cli/command/list/routes/next/collect-api-route-files.d.mts +2 -0
  62. package/dist/framework/cli/command/list/routes/next/collect-api-route-files.d.ts +2 -0
  63. package/dist/framework/cli/command/list/routes/routes-group-by.d.cts +3 -0
  64. package/dist/framework/cli/command/list/routes/routes-group-by.d.mts +3 -0
  65. package/dist/framework/cli/command/list/routes/routes-group-by.d.ts +3 -0
  66. package/dist/framework/cli/command/list/routes/routes-render.d.cts +5 -0
  67. package/dist/framework/cli/command/list/routes/routes-render.d.mts +5 -0
  68. package/dist/framework/cli/command/list/routes/routes-render.d.ts +5 -0
  69. package/dist/framework/cli/command/list/routes/types.d.cts +6 -0
  70. package/dist/framework/cli/command/list/routes/types.d.mts +6 -0
  71. package/dist/framework/cli/command/list/routes/types.d.ts +6 -0
  72. package/dist/framework/cli/command/list/utils.d.cts +11 -0
  73. package/dist/framework/cli/command/list/utils.d.mts +11 -0
  74. package/dist/framework/cli/command/list/utils.d.ts +11 -0
  75. package/dist/framework/cli/index.cjs +1 -0
  76. package/dist/framework/cli/index.d.cts +1 -0
  77. package/dist/framework/cli/index.d.mts +1 -10
  78. package/dist/framework/cli/index.d.ts +1 -10
  79. package/dist/framework/cli/index.mjs +1 -2
  80. package/dist/framework/next/index-browser.d.cts +1 -0
  81. package/dist/framework/next/index-browser.d.mts +1 -5
  82. package/dist/framework/next/index-browser.d.ts +1 -5
  83. package/dist/framework/next/index-browser.mjs +1 -2
  84. package/dist/framework/next/index-server.cjs +1 -0
  85. package/dist/framework/next/index-server.d.cts +3 -0
  86. package/dist/framework/next/index-server.d.mts +3 -20
  87. package/dist/framework/next/index-server.d.ts +3 -20
  88. package/dist/framework/next/index-server.mjs +1 -2
  89. package/dist/framework/next/routes/api/swagger.d.cts +6 -0
  90. package/dist/framework/next/routes/api/swagger.d.mts +6 -0
  91. package/dist/framework/next/routes/api/swagger.d.ts +6 -0
  92. package/dist/framework/next/routes/pages/get-static-properties-swagger.d.cts +3 -0
  93. package/dist/framework/next/routes/pages/get-static-properties-swagger.d.mts +3 -0
  94. package/dist/framework/next/routes/pages/get-static-properties-swagger.d.ts +3 -0
  95. package/dist/framework/next/routes/pages/redoc/index.cjs +5 -0
  96. package/dist/framework/next/routes/pages/redoc/index.d.cts +6 -0
  97. package/dist/framework/next/routes/pages/redoc/index.d.mts +3 -5
  98. package/dist/framework/next/routes/pages/redoc/index.d.ts +2 -4
  99. package/dist/framework/next/routes/pages/redoc/index.mjs +2 -3
  100. package/dist/framework/next/routes/pages/swagger/index.cjs +5 -0
  101. package/dist/framework/next/routes/pages/swagger/index.d.cts +5 -0
  102. package/dist/framework/next/routes/pages/swagger/index.d.mts +4 -6
  103. package/dist/framework/next/routes/pages/swagger/index.d.ts +3 -5
  104. package/dist/framework/next/routes/pages/swagger/index.mjs +2 -3
  105. package/dist/framework/next/webpack/with-open-api.d.cts +11 -0
  106. package/dist/framework/next/webpack/with-open-api.d.mts +11 -0
  107. package/dist/framework/next/webpack/with-open-api.d.ts +11 -0
  108. package/dist/index-browser.d.cts +1 -0
  109. package/dist/index-browser.d.mts +1 -2
  110. package/dist/index-browser.d.ts +1 -2
  111. package/dist/index-browser.mjs +1 -2
  112. package/dist/index-server.cjs +1 -0
  113. package/dist/index-server.d.cts +14 -0
  114. package/dist/index-server.d.mts +14 -75
  115. package/dist/index-server.d.ts +14 -75
  116. package/dist/index-server.mjs +1 -3
  117. package/dist/packem_shared/corsMiddleware-D1pyvOyv.mjs +1 -0
  118. package/dist/packem_shared/corsMiddleware-DWTsl8B1.cjs +1 -0
  119. package/dist/packem_shared/createNodeRouter-Dm5Whmms.mjs +1 -0
  120. package/dist/packem_shared/createNodeRouter-iaG84YWy.cjs +1 -0
  121. package/dist/packem_shared/dateIn-C9Ti6fo7.mjs +1 -0
  122. package/dist/packem_shared/dateIn-DylTg8aG.cjs +1 -0
  123. package/dist/packem_shared/getSwaggerStaticProps-CyQoc8U9.cjs +1 -0
  124. package/dist/packem_shared/getSwaggerStaticProps-HLLlemG9.js +1 -0
  125. package/dist/packem_shared/getSwaggerStaticProps-HLLlemG9.mjs +1 -0
  126. package/dist/packem_shared/httpHeaderNormalizerMiddleware-DjISyK8_.mjs +1 -0
  127. package/dist/packem_shared/httpHeaderNormalizerMiddleware-QqE89aK5.cjs +1 -0
  128. package/dist/packem_shared/index-BjPTPgei.cjs +1 -0
  129. package/dist/packem_shared/index-C3aJF6SV.mjs +1 -0
  130. package/dist/packem_shared/listCommand-BQnW5VPN.mjs +5 -0
  131. package/dist/packem_shared/listCommand-CUt5_WGC.cjs +5 -0
  132. package/dist/packem_shared/onError-DIbxlS28.cjs +1 -0
  133. package/dist/packem_shared/onError-DzFkIIU_.mjs +1 -0
  134. package/dist/packem_shared/rateLimiterMiddleware-Ohn-bfGn.mjs +1 -0
  135. package/dist/packem_shared/rateLimiterMiddleware-iKphEEyl.cjs +1 -0
  136. package/dist/packem_shared/serialize-BQ5nNuTA.mjs +1 -0
  137. package/dist/packem_shared/serialize-DrSd3bRJ.cjs +1 -0
  138. package/dist/packem_shared/serializersMiddleware-DmYV9JsS.cjs +1 -0
  139. package/dist/packem_shared/serializersMiddleware-WsnnEh4z.mjs +1 -0
  140. package/dist/packem_shared/swaggerApiRoute-Bg8TT2PM.cjs +1 -0
  141. package/dist/packem_shared/swaggerApiRoute-uMNR4Fq6.mjs +1 -0
  142. package/dist/packem_shared/swaggerHandler-D4zaMC6r.cjs +1 -0
  143. package/dist/packem_shared/swaggerHandler-Dcg9F7KZ.mjs +1 -0
  144. package/dist/packem_shared/utils-B3c9VYrK.cjs +1 -0
  145. package/dist/packem_shared/utils-CDFMC8qn.mjs +1 -0
  146. package/dist/packem_shared/withOpenApi-D27jB-z-.cjs +1 -0
  147. package/dist/packem_shared/withOpenApi-DXirQ48v.mjs +1 -0
  148. package/dist/packem_shared/xmlTransformer-D49hlcok.mjs +1 -0
  149. package/dist/packem_shared/xmlTransformer-sHYc31_g.cjs +1 -0
  150. package/dist/packem_shared/yamlTransformer-CJsV5N3c.mjs +1 -0
  151. package/dist/packem_shared/yamlTransformer-DgcCb8ww.cjs +1 -0
  152. package/dist/packem_shared/zod-Bvj53ziu.cjs +1 -0
  153. package/dist/packem_shared/zod-D9vLMypI.mjs +1 -0
  154. package/dist/serializers/has-json-structure.d.cts +2 -0
  155. package/dist/serializers/has-json-structure.d.mts +2 -0
  156. package/dist/serializers/has-json-structure.d.ts +2 -0
  157. package/dist/serializers/index.d.cts +4 -0
  158. package/dist/serializers/index.d.mts +4 -0
  159. package/dist/serializers/index.d.ts +4 -0
  160. package/dist/serializers/serialize.d.cts +6 -0
  161. package/dist/serializers/serialize.d.mts +6 -0
  162. package/dist/serializers/serialize.d.ts +6 -0
  163. package/dist/serializers/transformer/xml.d.cts +3 -0
  164. package/dist/serializers/transformer/xml.d.mts +3 -0
  165. package/dist/serializers/transformer/xml.d.ts +3 -0
  166. package/dist/serializers/transformer/yaml.d.cts +3 -0
  167. package/dist/serializers/transformer/yaml.d.mts +3 -0
  168. package/dist/serializers/transformer/yaml.d.ts +3 -0
  169. package/dist/swagger/api/swagger-handler.d.cts +15 -0
  170. package/dist/swagger/api/swagger-handler.d.mts +15 -0
  171. package/dist/swagger/api/swagger-handler.d.ts +15 -0
  172. package/dist/swagger/extend-swagger-spec.d.cts +7 -0
  173. package/dist/swagger/extend-swagger-spec.d.mts +7 -0
  174. package/dist/swagger/extend-swagger-spec.d.ts +7 -0
  175. package/dist/utils.d.cts +10 -0
  176. package/dist/utils.d.mts +10 -0
  177. package/dist/utils.d.ts +10 -0
  178. package/dist/zod/date-in-schema.d.cts +12 -0
  179. package/dist/zod/date-in-schema.d.mts +12 -0
  180. package/dist/zod/date-in-schema.d.ts +12 -0
  181. package/dist/zod/date-out-schema.d.cts +11 -0
  182. package/dist/zod/date-out-schema.d.mts +11 -0
  183. package/dist/zod/date-out-schema.d.ts +11 -0
  184. package/dist/zod/index.d.cts +5 -0
  185. package/dist/zod/index.d.mts +5 -0
  186. package/dist/zod/index.d.ts +5 -0
  187. package/package.json +62 -39
  188. package/dist/chunk-2RCSQLSQ.js +0 -2
  189. package/dist/chunk-2RCSQLSQ.js.map +0 -1
  190. package/dist/chunk-4C666HHU.js +0 -2
  191. package/dist/chunk-4C666HHU.js.map +0 -1
  192. package/dist/chunk-5DME62EW.mjs +0 -2
  193. package/dist/chunk-5DME62EW.mjs.map +0 -1
  194. package/dist/chunk-BJSUSPWM.mjs +0 -2
  195. package/dist/chunk-BJSUSPWM.mjs.map +0 -1
  196. package/dist/chunk-EEEP2HBM.js +0 -2
  197. package/dist/chunk-EEEP2HBM.js.map +0 -1
  198. package/dist/chunk-FQUHP33M.js +0 -6
  199. package/dist/chunk-FQUHP33M.js.map +0 -1
  200. package/dist/chunk-HZWWJL43.mjs +0 -2
  201. package/dist/chunk-HZWWJL43.mjs.map +0 -1
  202. package/dist/chunk-JPUMGEAE.mjs +0 -6
  203. package/dist/chunk-JPUMGEAE.mjs.map +0 -1
  204. package/dist/chunk-LTU4LAD7.mjs +0 -2
  205. package/dist/chunk-LTU4LAD7.mjs.map +0 -1
  206. package/dist/chunk-NCNFFJRK.js +0 -2
  207. package/dist/chunk-NCNFFJRK.js.map +0 -1
  208. package/dist/framework/cli/commander/index.d.mts +0 -5
  209. package/dist/framework/cli/commander/index.d.ts +0 -5
  210. package/dist/framework/cli/commander/index.js +0 -2
  211. package/dist/framework/cli/commander/index.js.map +0 -1
  212. package/dist/framework/cli/commander/index.mjs +0 -2
  213. package/dist/framework/cli/commander/index.mjs.map +0 -1
  214. package/dist/framework/cli/index.js +0 -2
  215. package/dist/framework/cli/index.js.map +0 -1
  216. package/dist/framework/cli/index.mjs.map +0 -1
  217. package/dist/framework/next/index-browser.js +0 -2
  218. package/dist/framework/next/index-browser.js.map +0 -1
  219. package/dist/framework/next/index-browser.mjs.map +0 -1
  220. package/dist/framework/next/index-server.js +0 -2
  221. package/dist/framework/next/index-server.js.map +0 -1
  222. package/dist/framework/next/index-server.mjs.map +0 -1
  223. package/dist/framework/next/routes/pages/redoc/index.js +0 -8
  224. package/dist/framework/next/routes/pages/redoc/index.js.map +0 -1
  225. package/dist/framework/next/routes/pages/redoc/index.mjs.map +0 -1
  226. package/dist/framework/next/routes/pages/swagger/index.js +0 -8
  227. package/dist/framework/next/routes/pages/swagger/index.js.map +0 -1
  228. package/dist/framework/next/routes/pages/swagger/index.mjs.map +0 -1
  229. package/dist/index-browser-Cy6Ywaan.d.mts +0 -30
  230. package/dist/index-browser-Cy6Ywaan.d.ts +0 -30
  231. package/dist/index-browser.js +0 -2
  232. package/dist/index-browser.js.map +0 -1
  233. package/dist/index-browser.mjs.map +0 -1
  234. package/dist/index-server.js +0 -3
  235. package/dist/index-server.js.map +0 -1
  236. package/dist/index-server.mjs.map +0 -1
  237. package/dist/swagger-handler-BPZJNDgC.d.mts +0 -17
  238. package/dist/swagger-handler-BPZJNDgC.d.ts +0 -17
@@ -0,0 +1,4 @@
1
+ import type { Express } from "express";
2
+ import type { Route } from "./types.d.mts";
3
+ declare const expressRoutes: (app: Express) => Route[];
4
+ export default expressRoutes;
@@ -0,0 +1,4 @@
1
+ import type { Express } from "express";
2
+ import type { Route } from "./types.d.ts";
3
+ declare const expressRoutes: (app: Express) => Route[];
4
+ export = expressRoutes;
@@ -0,0 +1,4 @@
1
+ import type { FastifyInstance } from "fastify";
2
+ import type { Route } from "./types.d.cts";
3
+ declare const fastifyRoutes: (app: FastifyInstance) => Route[];
4
+ export = fastifyRoutes;
@@ -0,0 +1,4 @@
1
+ import type { FastifyInstance } from "fastify";
2
+ import type { Route } from "./types.d.mts";
3
+ declare const fastifyRoutes: (app: FastifyInstance) => Route[];
4
+ export default fastifyRoutes;
@@ -0,0 +1,4 @@
1
+ import type { FastifyInstance } from "fastify";
2
+ import type { Route } from "./types.d.ts";
3
+ declare const fastifyRoutes: (app: FastifyInstance) => Route[];
4
+ export = fastifyRoutes;
@@ -0,0 +1,4 @@
1
+ import type { Server } from "@hapi/hapi";
2
+ import type { Route } from "./types.d.cts";
3
+ declare const hapiRoutes: (app: Server) => Route[];
4
+ export = hapiRoutes;
@@ -0,0 +1,4 @@
1
+ import type { Server } from "@hapi/hapi";
2
+ import type { Route } from "./types.d.mts";
3
+ declare const hapiRoutes: (app: Server) => Route[];
4
+ export default hapiRoutes;
@@ -0,0 +1,4 @@
1
+ import type { Server } from "@hapi/hapi";
2
+ import type { Route } from "./types.d.ts";
3
+ declare const hapiRoutes: (app: Server) => Route[];
4
+ export = hapiRoutes;
@@ -0,0 +1,4 @@
1
+ import type Koa from "koa";
2
+ import type { Route } from "./types.d.cts";
3
+ declare const koaRoutes: (app: Koa) => Route[];
4
+ export = koaRoutes;
@@ -0,0 +1,4 @@
1
+ import type Koa from "koa";
2
+ import type { Route } from "./types.d.mts";
3
+ declare const koaRoutes: (app: Koa) => Route[];
4
+ export default koaRoutes;
@@ -0,0 +1,4 @@
1
+ import type Koa from "koa";
2
+ import type { Route } from "./types.d.ts";
3
+ declare const koaRoutes: (app: Koa) => Route[];
4
+ export = koaRoutes;
@@ -0,0 +1,3 @@
1
+ import type { Route } from "../types.d.cts";
2
+ declare const apiRouteFileParser: (apiRouteFile: string, cwd: string, verbose?: boolean) => Route[];
3
+ export = apiRouteFileParser;
@@ -0,0 +1,3 @@
1
+ import type { Route } from "../types.d.mts";
2
+ declare const apiRouteFileParser: (apiRouteFile: string, cwd: string, verbose?: boolean) => Route[];
3
+ export default apiRouteFileParser;
@@ -0,0 +1,3 @@
1
+ import type { Route } from "../types.d.ts";
2
+ declare const apiRouteFileParser: (apiRouteFile: string, cwd: string, verbose?: boolean) => Route[];
3
+ export = apiRouteFileParser;
@@ -0,0 +1,2 @@
1
+ declare const collectApiRouteFiles: (path?: string) => Promise<string[]>;
2
+ export = collectApiRouteFiles;
@@ -0,0 +1,2 @@
1
+ declare const collectApiRouteFiles: (path?: string) => Promise<string[]>;
2
+ export default collectApiRouteFiles;
@@ -0,0 +1,2 @@
1
+ declare const collectApiRouteFiles: (path?: string) => Promise<string[]>;
2
+ export = collectApiRouteFiles;
@@ -0,0 +1,3 @@
1
+ import type { Route } from "./types.d.cts";
2
+ declare const routesGroupBy: (list: Route[], keyGetter: (item: Route) => keyof Route) => Map<string, Route[]>;
3
+ export = routesGroupBy;
@@ -0,0 +1,3 @@
1
+ import type { Route } from "./types.d.mts";
2
+ declare const routesGroupBy: (list: Route[], keyGetter: (item: Route) => keyof Route) => Map<string, Route[]>;
3
+ export default routesGroupBy;
@@ -0,0 +1,3 @@
1
+ import type { Route } from "./types.d.ts";
2
+ declare const routesGroupBy: (list: Route[], keyGetter: (item: Route) => keyof Route) => Map<string, Route[]>;
3
+ export = routesGroupBy;
@@ -0,0 +1,5 @@
1
+ import type { Route } from "./types.d.cts";
2
+ declare const routesRender: (routesMap: Route[], options?: {
3
+ methods?: string[];
4
+ }) => (string | undefined)[];
5
+ export = routesRender;
@@ -0,0 +1,5 @@
1
+ import type { Route } from "./types.d.mts";
2
+ declare const routesRender: (routesMap: Route[], options?: {
3
+ methods?: string[];
4
+ }) => (string | undefined)[];
5
+ export default routesRender;
@@ -0,0 +1,5 @@
1
+ import type { Route } from "./types.d.ts";
2
+ declare const routesRender: (routesMap: Route[], options?: {
3
+ methods?: string[];
4
+ }) => (string | undefined)[];
5
+ export = routesRender;
@@ -0,0 +1,6 @@
1
+ export interface Route {
2
+ file: string;
3
+ method: string;
4
+ path: string;
5
+ tags: any;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface Route {
2
+ file: string;
3
+ method: string;
4
+ path: string;
5
+ tags: any;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface Route {
2
+ file: string;
3
+ method: string;
4
+ path: string;
5
+ tags: any;
6
+ }
@@ -0,0 +1,11 @@
1
+ interface AppExport {
2
+ [key: string]: any;
3
+ app?: string | {
4
+ app?: string;
5
+ };
6
+ }
7
+ export declare const ALLOWED_EXTENSIONS: string[];
8
+ export declare const getAppWorkingDirectoryPath: (appFilePath: string) => string | null;
9
+ export declare const getFrameworkName: (directory: string) => "express" | "fastify" | "hapi" | "koa" | "next" | null;
10
+ export declare const getApp: (appExport: AppExport, frameworkName: "express" | "fastify" | "hapi" | "koa" | "next" | null) => AppExport | string | null;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ interface AppExport {
2
+ [key: string]: any;
3
+ app?: string | {
4
+ app?: string;
5
+ };
6
+ }
7
+ export declare const ALLOWED_EXTENSIONS: string[];
8
+ export declare const getAppWorkingDirectoryPath: (appFilePath: string) => string | null;
9
+ export declare const getFrameworkName: (directory: string) => "express" | "fastify" | "hapi" | "koa" | "next" | null;
10
+ export declare const getApp: (appExport: AppExport, frameworkName: "express" | "fastify" | "hapi" | "koa" | "next" | null) => AppExport | string | null;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ interface AppExport {
2
+ [key: string]: any;
3
+ app?: string | {
4
+ app?: string;
5
+ };
6
+ }
7
+ export declare const ALLOWED_EXTENSIONS: string[];
8
+ export declare const getAppWorkingDirectoryPath: (appFilePath: string) => string | null;
9
+ export declare const getFrameworkName: (directory: string) => "express" | "fastify" | "hapi" | "koa" | "next" | null;
10
+ export declare const getApp: (appExport: AppExport, frameworkName: "express" | "fastify" | "hapi" | "koa" | "next" | null) => AppExport | string | null;
11
+ export {};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../packem_shared/listCommand-CUt5_WGC.cjs");exports.listCommand=e;
@@ -0,0 +1 @@
1
+ export { default as listCommand } from "./command/list/list-command.d.cts";
@@ -1,10 +1 @@
1
- interface RenderOptions {
2
- excludePaths: string[];
3
- group: string;
4
- includePaths: string[];
5
- methods: string[];
6
- verbose: boolean;
7
- }
8
- declare const listCommand: (framework: "express" | "fastify" | "hapi" | "koa" | "next" | undefined, path: string, options?: Partial<RenderOptions>) => Promise<void>;
9
-
10
- export { listCommand };
1
+ export { default as listCommand } from "./command/list/list-command.d.mts";
@@ -1,10 +1 @@
1
- interface RenderOptions {
2
- excludePaths: string[];
3
- group: string;
4
- includePaths: string[];
5
- methods: string[];
6
- verbose: boolean;
7
- }
8
- declare const listCommand: (framework: "express" | "fastify" | "hapi" | "koa" | "next" | undefined, path: string, options?: Partial<RenderOptions>) => Promise<void>;
9
-
10
- export { listCommand };
1
+ export { default as listCommand } from "./command/list/list-command.d.ts";
@@ -1,2 +1 @@
1
- export{a as listCommand}from'../../chunk-JPUMGEAE.mjs';import'../../chunk-HZWWJL43.mjs';//# sourceMappingURL=index.mjs.map
2
- //# sourceMappingURL=index.mjs.map
1
+ import{default as o}from"../../packem_shared/listCommand-BQnW5VPN.mjs";export{o as listCommand};
@@ -0,0 +1 @@
1
+ export { default as getSwaggerStaticProps } from "./routes/pages/get-static-properties-swagger.d.cts";
@@ -1,5 +1 @@
1
- import { GetStaticProps } from 'next/types';
2
-
3
- declare const getStaticProps: (swaggerUrl: string) => GetStaticProps;
4
-
5
- export { getStaticProps as getSwaggerStaticProps };
1
+ export { default as getSwaggerStaticProps } from "./routes/pages/get-static-properties-swagger.d.mts";
@@ -1,5 +1 @@
1
- import { GetStaticProps } from 'next/types';
2
-
3
- declare const getStaticProps: (swaggerUrl: string) => GetStaticProps;
4
-
5
- export { getStaticProps as getSwaggerStaticProps };
1
+ export { default as getSwaggerStaticProps } from "./routes/pages/get-static-properties-swagger.d.ts";
@@ -1,2 +1 @@
1
- export{a as getSwaggerStaticProps}from'../../chunk-5DME62EW.mjs';import'../../chunk-HZWWJL43.mjs';//# sourceMappingURL=index-browser.mjs.map
2
- //# sourceMappingURL=index-browser.mjs.map
1
+ import{default as e}from"../../packem_shared/getSwaggerStaticProps-HLLlemG9.js";export{e as getSwaggerStaticProps};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../packem_shared/swaggerApiRoute-Bg8TT2PM.cjs"),t=require("../../packem_shared/withOpenApi-D27jB-z-.cjs"),r=require("../../packem_shared/getSwaggerStaticProps-CyQoc8U9.cjs");exports.swaggerApiRoute=e;exports.withOpenApi=t;exports.getSwaggerStaticProps=r;
@@ -0,0 +1,3 @@
1
+ export * from "./index-browser.d.cts";
2
+ export { default as swaggerApiRoute } from "./routes/api/swagger.d.cts";
3
+ export { default as withOpenApi } from "./webpack/with-open-api.d.cts";
@@ -1,20 +1,3 @@
1
- export { getSwaggerStaticProps } from './index-browser.mjs';
2
- import { S as SwaggerHandlerOptions } from '../../swagger-handler-BPZJNDgC.mjs';
3
- import { BaseDefinition } from '@visulima/jsdoc-open-api';
4
- import { NextConfig } from 'next/types';
5
- import 'node:http';
6
- import '@visulima/crud';
7
- import 'openapi-types';
8
-
9
- declare const swaggerApiRoute: <M extends string, PrismaClient>(options: Partial<SwaggerHandlerOptions<M, PrismaClient>>) => void;
10
-
11
- declare const withOpenApi: ({ definition, output, sources, verbose, }: {
12
- definition: Exclude<BaseDefinition, "openapi"> & {
13
- openapi?: string;
14
- };
15
- output: string;
16
- sources: string[];
17
- verbose?: boolean;
18
- }) => (nextConfig: NextConfig) => NextConfig;
19
-
20
- export { swaggerApiRoute, withOpenApi };
1
+ export * from "./index-browser.d.mts";
2
+ export { default as swaggerApiRoute } from "./routes/api/swagger.d.mts";
3
+ export { default as withOpenApi } from "./webpack/with-open-api.d.mts";
@@ -1,20 +1,3 @@
1
- export { getSwaggerStaticProps } from './index-browser.js';
2
- import { S as SwaggerHandlerOptions } from '../../swagger-handler-BPZJNDgC.js';
3
- import { BaseDefinition } from '@visulima/jsdoc-open-api';
4
- import { NextConfig } from 'next/types';
5
- import 'node:http';
6
- import '@visulima/crud';
7
- import 'openapi-types';
8
-
9
- declare const swaggerApiRoute: <M extends string, PrismaClient>(options: Partial<SwaggerHandlerOptions<M, PrismaClient>>) => void;
10
-
11
- declare const withOpenApi: ({ definition, output, sources, verbose, }: {
12
- definition: Exclude<BaseDefinition, "openapi"> & {
13
- openapi?: string;
14
- };
15
- output: string;
16
- sources: string[];
17
- verbose?: boolean;
18
- }) => (nextConfig: NextConfig) => NextConfig;
19
-
20
- export { swaggerApiRoute, withOpenApi };
1
+ export * from "./index-browser.d.ts";
2
+ export { default as swaggerApiRoute } from "./routes/api/swagger.d.ts";
3
+ export { default as withOpenApi } from "./webpack/with-open-api.d.ts";
@@ -1,2 +1 @@
1
- import {c}from'../../chunk-LTU4LAD7.mjs';export{a as getSwaggerStaticProps}from'../../chunk-5DME62EW.mjs';import'../../chunk-HZWWJL43.mjs';import w from'fs';import {SwaggerCompilerPlugin}from'@visulima/jsdoc-open-api';import {join}from'@visulima/path';var l=(i={})=>c(i),d=l;var x=({definition:i,output:r="swagger/swagger.json",sources:g,verbose:f})=>o=>({...o,webpack:(e,t)=>{if(!t.isServer)return e;if(r.startsWith("/")&&(r=r.slice(1)),!r.endsWith(".json"))throw new Error("The output path must end with .json");return e={...e,plugins:[...e.plugins,new SwaggerCompilerPlugin(`${t.dir}/${r}`,g.map(m=>{let n=join(t.dir,m.replace("./",""));return w.lstatSync(n).isDirectory(),n}),{openapi:"3.0.0",...i},{verbose:f})]},typeof o.webpack=="function"?o.webpack(e,t):e}}),C=x;export{d as swaggerApiRoute,C as withOpenApi};//# sourceMappingURL=index-server.mjs.map
2
- //# sourceMappingURL=index-server.mjs.map
1
+ import{default as a}from"../../packem_shared/swaggerApiRoute-uMNR4Fq6.mjs";import{default as o}from"../../packem_shared/withOpenApi-DXirQ48v.mjs";import{default as f}from"../../packem_shared/getSwaggerStaticProps-HLLlemG9.mjs";export{f as getSwaggerStaticProps,a as swaggerApiRoute,o as withOpenApi};
@@ -0,0 +1,6 @@
1
+ import type { SwaggerHandlerOptions } from "../../../../swagger/api/swagger-handler.d.cts";
2
+ /**
3
+ * @deprecated Use `import { swaggerHandler } from "@visulima/api-platform"` instead.
4
+ */
5
+ declare const swaggerApiRoute: <M extends string, PrismaClient>(options: Partial<SwaggerHandlerOptions<M, PrismaClient>>) => void;
6
+ export = swaggerApiRoute;
@@ -0,0 +1,6 @@
1
+ import type { SwaggerHandlerOptions } from "../../../../swagger/api/swagger-handler.d.mts";
2
+ /**
3
+ * @deprecated Use `import { swaggerHandler } from "@visulima/api-platform"` instead.
4
+ */
5
+ declare const swaggerApiRoute: <M extends string, PrismaClient>(options: Partial<SwaggerHandlerOptions<M, PrismaClient>>) => void;
6
+ export default swaggerApiRoute;
@@ -0,0 +1,6 @@
1
+ import type { SwaggerHandlerOptions } from "../../../../swagger/api/swagger-handler.d.ts";
2
+ /**
3
+ * @deprecated Use `import { swaggerHandler } from "@visulima/api-platform"` instead.
4
+ */
5
+ declare const swaggerApiRoute: <M extends string, PrismaClient>(options: Partial<SwaggerHandlerOptions<M, PrismaClient>>) => void;
6
+ export = swaggerApiRoute;
@@ -0,0 +1,3 @@
1
+ import type { GetStaticProps } from "next/types.d.cts";
2
+ declare const getStaticProps: (swaggerUrl: string) => GetStaticProps;
3
+ export = getStaticProps;
@@ -0,0 +1,3 @@
1
+ import type { GetStaticProps } from "next/types.d.mts";
2
+ declare const getStaticProps: (swaggerUrl: string) => GetStaticProps;
3
+ export default getStaticProps;
@@ -0,0 +1,3 @@
1
+ import type { GetStaticProps } from "next/types.d.ts";
2
+ declare const getStaticProps: (swaggerUrl: string) => GetStaticProps;
3
+ export = getStaticProps;
@@ -0,0 +1,5 @@
1
+ "use strict";var o=Object.defineProperty;var a=(e,r)=>o(e,"name",{value:r,configurable:!0});const t=require("react/jsx-runtime"),s=require("next/head.js"),c=require("redoc"),i=a(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),d=i(s);var u=Object.defineProperty,l=a((e,r)=>u(e,"name",{value:r,configurable:!0}),"p");const f=l((e,r={})=>({swaggerData:n})=>t.jsxs(t.Fragment,{children:[t.jsxs(d,{children:[t.jsx("title",{children:e}),t.jsx("style",{children:`
2
+ body {
3
+ background: #fafafa !important;
4
+ }
5
+ `})]}),t.jsx(c.RedocStandalone,{...r,spec:n})]}),"RedocApiDocument");module.exports=f;
@@ -0,0 +1,6 @@
1
+ import type { InferGetStaticPropsType, NextPage } from "next/types.d.cts";
2
+ import type getStaticProps from "../get-static-properties-swagger.d.cts";
3
+ declare const RedocApiDocument: (name: string, swagger?: Exclude<{
4
+ specUrl?: string;
5
+ }, "spec">) => NextPage<InferGetStaticPropsType<typeof getStaticProps>>;
6
+ export = RedocApiDocument;
@@ -1,8 +1,6 @@
1
- import { NextPage, InferGetStaticPropsType } from 'next/types';
2
- import { getSwaggerStaticProps as getStaticProps } from '../../../index-browser.mjs';
3
-
1
+ import type { InferGetStaticPropsType, NextPage } from "next/types.d.mts";
2
+ import type getStaticProps from "../get-static-properties-swagger.d.mts";
4
3
  declare const RedocApiDocument: (name: string, swagger?: Exclude<{
5
4
  specUrl?: string;
6
5
  }, "spec">) => NextPage<InferGetStaticPropsType<typeof getStaticProps>>;
7
-
8
- export { RedocApiDocument as default };
6
+ export default RedocApiDocument;
@@ -1,8 +1,6 @@
1
- import { NextPage, InferGetStaticPropsType } from 'next/types';
2
- import { getSwaggerStaticProps as getStaticProps } from '../../../index-browser.js';
3
-
1
+ import type { InferGetStaticPropsType, NextPage } from "next/types.d.ts";
2
+ import type getStaticProps from "../get-static-properties-swagger.d.ts";
4
3
  declare const RedocApiDocument: (name: string, swagger?: Exclude<{
5
4
  specUrl?: string;
6
5
  }, "spec">) => NextPage<InferGetStaticPropsType<typeof getStaticProps>>;
7
-
8
6
  export = RedocApiDocument;
@@ -1,6 +1,5 @@
1
- import'../../../../../chunk-HZWWJL43.mjs';import a from'next/head';import {RedocStandalone}from'redoc';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var i=(o,p={})=>({swaggerData:r})=>jsxs(Fragment,{children:[jsxs(a,{children:[jsx("title",{children:o}),jsx("style",{children:`
1
+ var i=Object.defineProperty;var t=(e,r)=>i(e,"name",{value:r,configurable:!0});import{jsxs as o,Fragment as c,jsx as a}from"react/jsx-runtime";import d from"next/head.js";import{RedocStandalone as f}from"redoc";var l=Object.defineProperty,m=t((e,r)=>l(e,"name",{value:r,configurable:!0}),"p");const b=m((e,r={})=>({swaggerData:n})=>o(c,{children:[o(d,{children:[a("title",{children:e}),a("style",{children:`
2
2
  body {
3
3
  background: #fafafa !important;
4
4
  }
5
- `})]}),jsx(RedocStandalone,{...p,spec:r})]}),m=i;export{m as default};//# sourceMappingURL=index.mjs.map
6
- //# sourceMappingURL=index.mjs.map
5
+ `})]}),a(f,{...r,spec:n})]}),"RedocApiDocument");export{b as default};
@@ -0,0 +1,5 @@
1
+ "use strict";var u=Object.create;var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var n=(e,t)=>i(e,"name",{value:t,configurable:!0});var p=(e,t,a,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of f(t))!g.call(e,s)&&s!==a&&i(e,s,{get:()=>t[s],enumerable:!(c=l(t,s))||c.enumerable});return e};var j=(e,t,a)=>(a=e!=null?u(d(e)):{},p(t||!e||!e.__esModule?i(a,"default",{value:e,enumerable:!0}):a,e));const r=require("react/jsx-runtime"),m=require("next/dynamic.js"),x=require("next/head.js"),o=n(e=>e&&typeof e=="object"&&"default"in e?e.default:e,"_interopDefaultCompat"),b=o(m),y=o(x);var _=Object.defineProperty,h=n((e,t)=>_(e,"name",{value:t,configurable:!0}),"a");const q=b(async()=>await import("swagger-ui-react"),{ssr:!1}),v=h((e,t={})=>({swaggerData:a})=>r.jsxs(r.Fragment,{children:[r.jsxs(y,{children:[r.jsx("title",{children:e}),r.jsx("style",{children:`
2
+ body {
3
+ background: #fafafa !important;
4
+ }
5
+ `})]}),r.jsx(q,{...t,spec:a})]}),"SwaggerApiDocument");module.exports=v;
@@ -0,0 +1,5 @@
1
+ import type { InferGetStaticPropsType, NextPage } from "next/types.d.cts";
2
+ import type { SwaggerUIProps } from "swagger-ui-react";
3
+ import type getStaticProps from "../get-static-properties-swagger.d.cts";
4
+ declare const SwaggerApiDocument: (name: string, swagger?: Exclude<SwaggerUIProps, "spec">) => NextPage<InferGetStaticPropsType<typeof getStaticProps>>;
5
+ export = SwaggerApiDocument;
@@ -1,7 +1,5 @@
1
- import { NextPage, InferGetStaticPropsType } from 'next/types';
2
- import { SwaggerUIProps } from 'swagger-ui-react';
3
- import { getSwaggerStaticProps as getStaticProps } from '../../../index-browser.mjs';
4
-
1
+ import type { InferGetStaticPropsType, NextPage } from "next/types.d.mts";
2
+ import type { SwaggerUIProps } from "swagger-ui-react";
3
+ import type getStaticProps from "../get-static-properties-swagger.d.mts";
5
4
  declare const SwaggerApiDocument: (name: string, swagger?: Exclude<SwaggerUIProps, "spec">) => NextPage<InferGetStaticPropsType<typeof getStaticProps>>;
6
-
7
- export { SwaggerApiDocument as default };
5
+ export default SwaggerApiDocument;
@@ -1,7 +1,5 @@
1
- import { NextPage, InferGetStaticPropsType } from 'next/types';
2
- import { SwaggerUIProps } from 'swagger-ui-react';
3
- import { getSwaggerStaticProps as getStaticProps } from '../../../index-browser.js';
4
-
1
+ import type { InferGetStaticPropsType, NextPage } from "next/types.d.ts";
2
+ import type { SwaggerUIProps } from "swagger-ui-react";
3
+ import type getStaticProps from "../get-static-properties-swagger.d.ts";
5
4
  declare const SwaggerApiDocument: (name: string, swagger?: Exclude<SwaggerUIProps, "spec">) => NextPage<InferGetStaticPropsType<typeof getStaticProps>>;
6
-
7
5
  export = SwaggerApiDocument;
@@ -1,6 +1,5 @@
1
- import'../../../../../chunk-HZWWJL43.mjs';import o from'next/dynamic';import s from'next/head';import {jsxs,Fragment,jsx}from'react/jsx-runtime';var g=o(async()=>await import('swagger-ui-react'),{ssr:false}),i=(r,a={})=>({swaggerData:p})=>jsxs(Fragment,{children:[jsxs(s,{children:[jsx("title",{children:r}),jsx("style",{children:`
1
+ var n=Object.defineProperty;var t=(r,a)=>n(r,"name",{value:a,configurable:!0});import{jsxs as i,Fragment as s,jsx as e}from"react/jsx-runtime";import c from"next/dynamic.js";import f from"next/head.js";var m=Object.defineProperty,l=t((r,a)=>m(r,"name",{value:a,configurable:!0}),"a");const p=c(async()=>await import("swagger-ui-react"),{ssr:!1}),h=l((r,a={})=>({swaggerData:o})=>i(s,{children:[i(f,{children:[e("title",{children:r}),e("style",{children:`
2
2
  body {
3
3
  background: #fafafa !important;
4
4
  }
5
- `})]}),jsx(g,{...a,spec:p})]}),P=i;export{P as default};//# sourceMappingURL=index.mjs.map
6
- //# sourceMappingURL=index.mjs.map
5
+ `})]}),e(p,{...a,spec:o})]}),"SwaggerApiDocument");export{h as default};
@@ -0,0 +1,11 @@
1
+ import type { BaseDefinition } from "@visulima/jsdoc-open-api";
2
+ import type { NextConfig } from "next/types.d.cts";
3
+ declare const withOpenApi: ({ definition, output, sources, verbose, }: {
4
+ definition: Exclude<BaseDefinition, "openapi"> & {
5
+ openapi?: string;
6
+ };
7
+ output: string;
8
+ sources: string[];
9
+ verbose?: boolean;
10
+ }) => ((nextConfig: NextConfig) => NextConfig);
11
+ export = withOpenApi;
@@ -0,0 +1,11 @@
1
+ import type { BaseDefinition } from "@visulima/jsdoc-open-api";
2
+ import type { NextConfig } from "next/types.d.mts";
3
+ declare const withOpenApi: ({ definition, output, sources, verbose, }: {
4
+ definition: Exclude<BaseDefinition, "openapi"> & {
5
+ openapi?: string;
6
+ };
7
+ output: string;
8
+ sources: string[];
9
+ verbose?: boolean;
10
+ }) => ((nextConfig: NextConfig) => NextConfig);
11
+ export default withOpenApi;
@@ -0,0 +1,11 @@
1
+ import type { BaseDefinition } from "@visulima/jsdoc-open-api";
2
+ import type { NextConfig } from "next/types.d.ts";
3
+ declare const withOpenApi: ({ definition, output, sources, verbose, }: {
4
+ definition: Exclude<BaseDefinition, "openapi"> & {
5
+ openapi?: string;
6
+ };
7
+ output: string;
8
+ sources: string[];
9
+ verbose?: boolean;
10
+ }) => ((nextConfig: NextConfig) => NextConfig);
11
+ export = withOpenApi;
@@ -0,0 +1 @@
1
+ export * as zod from "./zod/index.d.cts";
@@ -1,2 +1 @@
1
- export { i as zod } from './index-browser-Cy6Ywaan.mjs';
2
- import 'zod';
1
+ export * as zod from "./zod/index.d.mts";
@@ -1,2 +1 @@
1
- export { i as zod } from './index-browser-Cy6Ywaan.js';
2
- import 'zod';
1
+ export * as zod from "./zod/index.d.ts";
@@ -1,2 +1 @@
1
- export{c as zod}from'./chunk-BJSUSPWM.mjs';import'./chunk-HZWWJL43.mjs';//# sourceMappingURL=index-browser.mjs.map
2
- //# sourceMappingURL=index-browser.mjs.map
1
+ var T=Object.defineProperty;var r=(a,e)=>T(a,"name",{value:e,configurable:!0});import{withGetType as v}from"zod-to-ts";import{ZodType as m,ZodParsedType as n,INVALID as i,addIssueToContext as d,ZodIssueCode as o}from"zod";var x=Object.defineProperty,y=r((a,e)=>x(a,"name",{value:e,configurable:!0}),"a$2");const f="ZodDateIn",I=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?)?Z?$/;class c extends m{static{r(this,"ZodDateIn")}static{y(this,"ZodDateIn")}static create=y(()=>new c({typeName:f}),"create");_parse(e){const{ctx:t,status:s}=this._processInputParams(e);if(t.parsedType!==n.string)return d(t,{code:o.invalid_type,expected:n.string,received:t.parsedType}),i;I.test(t.data)||(d(t,{code:o.invalid_string,validation:"regex"}),s.dirty());const p=new Date(t.data);return Number.isNaN(p.getTime())?(d(t,{code:o.invalid_date}),i):{status:s.value,value:p}}}var N=Object.defineProperty,l=r((a,e)=>N(a,"name",{value:e,configurable:!0}),"a$1");const _="ZodDateOut";class u extends m{static{r(this,"ZodDateOut")}static{l(this,"ZodDateOut")}static create=l(()=>new u({typeName:_}),"create");_parse(e){const{ctx:t,status:s}=this._processInputParams(e);return t.parsedType!==n.date?(d(t,{code:o.invalid_type,expected:n.date,received:t.parsedType}),i):Number.isNaN(t.data.getTime())?(d(t,{code:o.invalid_date}),i):{status:s.value,value:t.data.toISOString()}}}var b=Object.defineProperty,g=r((a,e)=>b(a,"name",{value:e,configurable:!0}),"o");const O=g((...a)=>v(c.create(...a),e=>e.factory.createKeywordTypeNode(e.SyntaxKind.StringKeyword)),"dateIn"),w=g((...a)=>v(u.create(...a),e=>e.factory.createKeywordTypeNode(e.SyntaxKind.StringKeyword)),"dateOut"),P=Object.defineProperty({__proto__:null,dateIn:O,dateOut:w},Symbol.toStringTag,{value:"Module"});export{P as zod};
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var a=(r,d)=>n(r,"name",{value:d,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./packem_shared/createNodeRouter-iaG84YWy.cjs"),i=require("./packem_shared/onError-DIbxlS28.cjs"),l=require("./packem_shared/corsMiddleware-DWTsl8B1.cjs"),s=require("./packem_shared/httpHeaderNormalizerMiddleware-QqE89aK5.cjs"),c=require("./packem_shared/rateLimiterMiddleware-iKphEEyl.cjs"),p=require("./packem_shared/serializersMiddleware-DmYV9JsS.cjs"),R=require("./packem_shared/swaggerHandler-D4zaMC6r.cjs"),o=require("./packem_shared/index-BjPTPgei.cjs"),t=require("@visulima/connect"),e=require("http-errors"),q=require("./packem_shared/serialize-DrSd3bRJ.cjs"),g=require("./packem_shared/xmlTransformer-sHYc31_g.cjs"),m=require("./packem_shared/yamlTransformer-DgcCb8ww.cjs"),N=a(r=>r&&typeof r=="object"&&"default"in r?r.default:r,"_interopDefaultCompat"),T=N(e);exports.createNodeRouter=u;exports.onError=i.onError;exports.onNoMatch=i.onNoMatch;exports.corsMiddleware=l;exports.httpHeaderNormalizerMiddleware=s;exports.rateLimiterMiddleware=c;exports.serializersMiddleware=p;exports.swaggerHandler=R;exports.dateIn=o.d;exports.dateOut=o.a;exports.zod=o.i;exports.EdgeRouter=t.EdgeRouter;exports.NodeRouter=t.NodeRouter;exports.Router=t.Router;exports.createEdgeRouter=t.createEdgeRouter;exports.expressWrapper=t.expressWrapper;exports.sendJson=t.sendJson;exports.withZod=t.withZod;exports.BadGateway=e.BadGateway;exports.BadRequest=e.BadRequest;exports.BandwidthLimitExceeded=e.BandwidthLimitExceeded;exports.Conflict=e.Conflict;exports.ExpectationFailed=e.ExpectationFailed;exports.FailedDependency=e.FailedDependency;exports.Forbidden=e.Forbidden;exports.GatewayTimeout=e.GatewayTimeout;exports.Gone=e.Gone;exports.HTTPVersionNotSupported=e.HTTPVersionNotSupported;exports.ImATeapot=e.ImATeapot;exports.InsufficientStorage=e.InsufficientStorage;exports.InternalServerError=e.InternalServerError;exports.LengthRequired=e.LengthRequired;exports.Locked=e.Locked;exports.LoopDetected=e.LoopDetected;exports.MethodNotAllowed=e.MethodNotAllowed;exports.MisdirectedRequest=e.MisdirectedRequest;exports.NetworkAuthenticationRequire=e.NetworkAuthenticationRequire;exports.NotAcceptable=e.NotAcceptable;exports.NotExtended=e.NotExtended;exports.NotFound=e.NotFound;exports.NotImplemented=e.NotImplemented;exports.PayloadTooLarge=e.PayloadTooLarge;exports.PaymentRequired=e.PaymentRequired;exports.PreconditionFailed=e.PreconditionFailed;exports.PreconditionRequired=e.PreconditionRequired;exports.ProxyAuthenticationRequired=e.ProxyAuthenticationRequired;exports.RangeNotSatisfiable=e.RangeNotSatisfiable;exports.RequestHeaderFieldsTooLarge=e.RequestHeaderFieldsTooLarge;exports.RequestTimeout=e.RequestTimeout;exports.ServiceUnavailable=e.ServiceUnavailable;exports.TooManyRequests=e.TooManyRequests;exports.URITooLong=e.URITooLong;exports.Unauthorized=e.Unauthorized;exports.UnavailableForLegalReasons=e.UnavailableForLegalReasons;exports.UnprocessableEntity=e.UnprocessableEntity;exports.UnsupportedMediaType=e.UnsupportedMediaType;exports.UpgradeRequired=e.UpgradeRequired;exports.VariantAlsoNegotiates=e.VariantAlsoNegotiates;exports.createHttpError=T;exports.serialize=q;exports.xmlTransformer=g;exports.yamlTransformer=m;
@@ -0,0 +1,14 @@
1
+ export { default as createNodeRouter } from "./connect/create-node-router.d.cts";
2
+ export { onError, onNoMatch } from "./connect/handler.d.cts";
3
+ export { default as corsMiddleware } from "./connect/middleware/cors-middleware.d.cts";
4
+ export { default as httpHeaderNormalizerMiddleware } from "./connect/middleware/http-header-normalizer.d.cts";
5
+ export { default as rateLimiterMiddleware } from "./connect/middleware/rate-limiter-middleware.d.cts";
6
+ export { default as serializersMiddleware } from "./connect/middleware/serializers-middleware.d.cts";
7
+ export * from "./index-browser.d.cts";
8
+ export type { Serializer, Serializers } from "./serializers/index.d.cts";
9
+ export { serialize, xmlTransformer, yamlTransformer } from "./serializers/index.d.cts";
10
+ export { default as swaggerHandler } from "./swagger/api/swagger-handler.d.cts";
11
+ export { dateIn, dateOut } from "./zod/index.d.cts";
12
+ export type { EdgeRequestHandler, ExpressRequestHandler, FindResult, FunctionLike, HandlerOptions, HttpMethod, Nextable, NextHandler, NodeRequestHandler, Route, RouteShortcutMethod, ValueOrPromise, } from "@visulima/connect";
13
+ export { createEdgeRouter, EdgeRouter, expressWrapper, NodeRouter, Router, sendJson, withZod } from "@visulima/connect";
14
+ export { BadGateway, BadRequest, BandwidthLimitExceeded, Conflict, default as createHttpError, ExpectationFailed, FailedDependency, Forbidden, GatewayTimeout, Gone, HTTPVersionNotSupported, ImATeapot, InsufficientStorage, InternalServerError, LengthRequired, Locked, LoopDetected, MethodNotAllowed, MisdirectedRequest, NetworkAuthenticationRequire, NotAcceptable, NotExtended, NotFound, NotImplemented, PayloadTooLarge, PaymentRequired, PreconditionFailed, PreconditionRequired, ProxyAuthenticationRequired, RangeNotSatisfiable, RequestHeaderFieldsTooLarge, RequestTimeout, ServiceUnavailable, TooManyRequests, Unauthorized, UnavailableForLegalReasons, UnprocessableEntity, UnsupportedMediaType, UpgradeRequired, URITooLong, VariantAlsoNegotiates, } from "http-errors";