@lark-apaas/devtool-kits 1.2.17-alpha.4 → 1.2.17-alpha.41

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/index.d.cts CHANGED
@@ -171,6 +171,15 @@ interface OpenapiMiddlewareOptions {
171
171
  serverDir?: string;
172
172
  }
173
173
 
174
+ /**
175
+ * Scan serverDir for NestJS controller files and extract all parameterized API routes.
176
+ * Synchronous — safe to call at preset config time (before bundling).
177
+ */
178
+ declare function parseApiRoutes(serverDir: string): Array<{
179
+ method: string;
180
+ path: string;
181
+ }>;
182
+
174
183
  /**
175
184
  * Creates OpenAPI middleware that serves enhanced openapi.json
176
185
  * Supports both rspack/webpack and Vite dev servers
@@ -271,4 +280,4 @@ declare function getQueryParam(req: AnyRequest, key: string): string | undefined
271
280
  */
272
281
  declare function registerMiddlewares(server: ExpressApp | ViteMiddleware, middlewares: Middleware[], options?: Partial<MiddlewareContext>): Promise<void>;
273
282
 
274
- export { type GlobalMiddleware, type Middleware, type MiddlewareContext, type Options, type RouteInfo, type RouteMiddleware, createCollectLogsMiddleware, createDevLogsMiddleware, createOpenapiMiddleware, getQuery, getQueryParam, handleDevProxyError, normalizeBasePath, parseAndGenerateNestResourceTemplate, postprocessDrizzleSchema, registerMiddlewares, sendError, sendJson, sendSuccess };
283
+ export { type GlobalMiddleware, type Middleware, type MiddlewareContext, type Options, type RouteInfo, type RouteMiddleware, createCollectLogsMiddleware, createDevLogsMiddleware, createOpenapiMiddleware, getQuery, getQueryParam, handleDevProxyError, normalizeBasePath, parseAndGenerateNestResourceTemplate, parseApiRoutes, postprocessDrizzleSchema, registerMiddlewares, sendError, sendJson, sendSuccess };
package/dist/index.d.ts CHANGED
@@ -171,6 +171,15 @@ interface OpenapiMiddlewareOptions {
171
171
  serverDir?: string;
172
172
  }
173
173
 
174
+ /**
175
+ * Scan serverDir for NestJS controller files and extract all parameterized API routes.
176
+ * Synchronous — safe to call at preset config time (before bundling).
177
+ */
178
+ declare function parseApiRoutes(serverDir: string): Array<{
179
+ method: string;
180
+ path: string;
181
+ }>;
182
+
174
183
  /**
175
184
  * Creates OpenAPI middleware that serves enhanced openapi.json
176
185
  * Supports both rspack/webpack and Vite dev servers
@@ -271,4 +280,4 @@ declare function getQueryParam(req: AnyRequest, key: string): string | undefined
271
280
  */
272
281
  declare function registerMiddlewares(server: ExpressApp | ViteMiddleware, middlewares: Middleware[], options?: Partial<MiddlewareContext>): Promise<void>;
273
282
 
274
- export { type GlobalMiddleware, type Middleware, type MiddlewareContext, type Options, type RouteInfo, type RouteMiddleware, createCollectLogsMiddleware, createDevLogsMiddleware, createOpenapiMiddleware, getQuery, getQueryParam, handleDevProxyError, normalizeBasePath, parseAndGenerateNestResourceTemplate, postprocessDrizzleSchema, registerMiddlewares, sendError, sendJson, sendSuccess };
283
+ export { type GlobalMiddleware, type Middleware, type MiddlewareContext, type Options, type RouteInfo, type RouteMiddleware, createCollectLogsMiddleware, createDevLogsMiddleware, createOpenapiMiddleware, getQuery, getQueryParam, handleDevProxyError, normalizeBasePath, parseAndGenerateNestResourceTemplate, parseApiRoutes, postprocessDrizzleSchema, registerMiddlewares, sendError, sendJson, sendSuccess };