UNPKG

@spailybot/moleculer-auto-openapi

Version:
20 lines (19 loc) 1.16 kB
import { ApiRouteOpenApi, ApiSettingsSchemaOpenApi, definedApiRouteSchema, OpenApiMixinSettings } from '../types/index.js'; import { Alias } from './Alias.js'; import { bodyParserOptions, BusboyConfig, routeAlias } from '../types/moleculer-web.js'; import { LoggerInstance, ServiceSchema } from 'moleculer'; export declare class Route { private readonly logger; private readonly skipUnresolvedActions; readonly aliases: Array<Alias>; readonly path: string; readonly bodyParsers?: bodyParserOptions | boolean; readonly autoAliases: boolean; readonly openapi?: ApiRouteOpenApi; readonly openApiService?: ServiceSchema<OpenApiMixinSettings>; readonly apiService: ServiceSchema<ApiSettingsSchemaOpenApi>; readonly busboyConfig?: BusboyConfig<unknown>; constructor(logger: LoggerInstance, route: definedApiRouteSchema, apiService: ServiceSchema<ApiSettingsSchemaOpenApi>, openApiService?: ServiceSchema<OpenApiMixinSettings>, skipUnresolvedActions?: boolean); static formatPath(routePath: string, apiService: ServiceSchema<ApiSettingsSchemaOpenApi>): string; searchAlias(alias: routeAlias): Alias | undefined; }