API Surface
Imperium exports only subpaths. Root import (@smounters/core) is intentionally disabled.
@smounters/core/core
Runtime exports:
ApplicationAPP_GUARDAPP_PIPEAPP_INTERCEPTORAPP_FILTERReflectorconsoleTransport— built-in console log transport factoryImperiumLogger— native transport-based loggerHttpExceptionBadRequestExceptionUnauthorizedExceptionForbiddenExceptionNotFoundExceptionInternalServerErrorException
Type exports (selected):
ModuleMeta,DynamicModule,ProviderGuard,Interceptor,PipeTransform,ExceptionFilter- lifecycle hooks:
OnModuleInit,OnApplicationBootstrap,OnModuleDestroy,BeforeApplicationShutdown,OnApplicationShutdown ServerOptions,CorsOptions,HealthOptionsLoggerOptions,ImperiumLoggerOptions,TslogOptions,LogLevel,LogEntry,LogTransportOnErrorCallback,ErrorContext,ErrorContextTypeBaseContext,ContextType,HttpArgumentsHost,RpcArgumentsHost,WsArgumentsHost
@smounters/core/decorators
- DI:
Module,Injectable,Inject,InjectAll,Optional,Scope - HTTP:
HttpController,Get,Post,Put,Patch,Delete,Body,Query,Param,Header,Req,Res - RPC:
RpcService,RpcMethod,RpcData,RpcContext,RpcHeaders,RpcHeader,RpcAbortSignal - WebSocket:
WsGateway,WsHandler,WsConnection,WsMessage,WsRequest - Enhancers:
UseGuards,UsePipes,UseInterceptors,UseFilters,Catch - Metadata:
SetMetadata
@smounters/core/services
ConfigServiceLoggerService
@smounters/core/pipes
ZodPipe
@smounters/core/validation
appConfigSchemaAppConfigbooleanSchemanumberSchemanativeEnumSchemastringArraySchemaenumArraySchema
@smounters/core/ws
registerWsGatewayshandleWsConnection
Type exports:
WsGatewayLifecycleWsGatewayMeta,WsHandlerMeta,WsParamMeta,WsParamSource
@smounters/cron separate package
Cron— method decoratorCronModule— dynamic module (CronModule.register({ providers }))CronService— injectable (getJobs(),stopAll())
Install: pnpm add @smounters/cron — Guide
@smounters/events separate package
OnEvent— method decorator (supports wildcards)EventModule— dynamic module (EventModule.register({ listeners }))EventService— injectable (emit(),getHandlers())
Install: pnpm add @smounters/events — Guide