Class MetadataUtilitiesAbstract
Constructors
Methods
Static
getControllerBaseRoute
getControllerBaseRoute(controller: Function): undefined | `/${string}` Returns undefined | `/${string}`
Static
getControllerBelongsTo
Static
getControllerHasRole
Static
getControllerIsLoggedIn
Static
getControllerIsNotLoggedIn
Static
getControllerRoutes
Static
getControllerSkipBelongsTo
getControllerSkipBelongsTo(controller: Function): undefined | object Returns undefined | object
Static
getControllerSkipHasRole
getControllerSkipHasRole(controller: Function): undefined | object Returns undefined | object
Static
getControllerSkipIsLoggedIn
getControllerSkipIsLoggedIn(controller: Function): undefined | object Returns undefined | object
Static
getControllerSkipIsNotLoggedIn
getControllerSkipIsNotLoggedIn(controller: Function): undefined | object Returns undefined | object
Static
getFilePath
getFilePath(target: Object): undefined | string Returns undefined | string
Static
getInjectParamTokens
getInjectParamTokens(target: Object): Record<number, DiToken<unknown>> Returns Record<number, DiToken<unknown>>
Static
getParamTypes
getParamTypes(target: Object): unknown[]
Static
getRouteBelongsTo
Parameters
- controller: Function
- controllerMethod: string
Static
getRouteBody
getRouteBody( controller: Function, controllerMethod: string,): undefined | BodyMetadata Parameters
- controller: Function
- controllerMethod: string
Static
getRouteCurrentUser
getRouteCurrentUser( controller: Function, controllerMethod: string,): undefined | CurrentUserMetadata Parameters
- controller: Function
- controllerMethod: string
Static
getRouteCurrentWebsocketConnection
Parameters
- controller: Function
- controllerMethod: string
Static
getRouteHasRole
getRouteHasRole( controller: Function, controllerMethod: string,): undefined | HasRoleMetadata Parameters
- controller: Function
- controllerMethod: string
Static
getRouteHeaderParams
getRouteHeaderParams( controller: Function, controllerMethod: string,): Record<number, HeaderParamMetadata> Parameters
- controller: Function
- controllerMethod: string
Static
getRouteIsLoggedIn
getRouteIsLoggedIn( controller: Function, controllerMethod: string,): undefined | IsLoggedInMetadata Parameters
- controller: Function
- controllerMethod: string
Static
getRouteIsNotLoggedIn
getRouteIsNotLoggedIn( controller: Function, controllerMethod: string,): undefined | IsNotLoggedInMetadata Parameters
- controller: Function
- controllerMethod: string
Static
getRoutePathParams
getRoutePathParams( controller: Function, controllerMethod: string,): Record<number, PathParamMetadata> Parameters
- controller: Function
- controllerMethod: string
Static
getRouteQueryParams
getRouteQueryParams( controller: Function, controllerMethod: string,): Record<number, QueryParamMetadata> Parameters
- controller: Function
- controllerMethod: string
Static
getRouteResponses
getRouteResponses( controller: Function, controllerMethod: string,): OpenApiResponse[] Parameters
- controller: Function
- controllerMethod: string
Static
getRouteSkipAuth
getRouteSkipAuth( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
Static
getRouteSkipBelongsTo
getRouteSkipBelongsTo( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
Static
getRouteSkipHasRole
getRouteSkipHasRole( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
Static
getRouteSkipIsLoggedIn
getRouteSkipIsLoggedIn( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
Static
getRouteSkipIsNotLoggedIn
getRouteSkipIsNotLoggedIn( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
Static
getWebsocketController
Static
getWebsocketControllerRoutes
Static
setControllerBaseRoute
setControllerBaseRoute(controller: Function, baseRoute: `/${string}`): void Parameters
- controller: Function
- baseRoute: `/${string}`
Returns void
Static
setControllerBelongsTo
Static
setControllerHasRole
Static
setControllerIsLoggedIn
Static
setControllerIsNotLoggedIn
Static
setControllerRoutes
Static
setControllerSkipBelongsTo
setControllerSkipBelongsTo(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
Static
setControllerSkipHasRole
setControllerSkipHasRole(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
Static
setControllerSkipIsLoggedIn
setControllerSkipIsLoggedIn(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
Static
setControllerSkipIsNotLoggedIn
setControllerSkipIsNotLoggedIn(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
Static
setDiToken
setDiToken<T>(target: Object, token?: DiToken<T>): void
Static
setFilePath
setFilePath(target: Object, errorStack: string): void Parameters
- target: Object
- errorStack: string
Returns void
Static
setInjectParamTokens
setInjectParamTokens( target: Object, tokens: Record<number, DiToken<unknown>>,): void Parameters
- target: Object
- tokens: Record<number, DiToken<unknown>>
Returns void
Static
setRouteBody
setRouteBody( controller: Function, body: BodyMetadata, controllerMethod: string,): void Parameters
- controller: Function
- body: BodyMetadata
- controllerMethod: string
Returns void
Static
setRouteCurrentUser
setRouteCurrentUser( controller: Function, body: CurrentUserMetadata, controllerMethod: string,): void
Static
setRouteCurrentWebsocketConnection
Static
setRouteHasRole
setRouteHasRole( controller: Function, data: HasRoleMetadata, controllerMethod: string,): void
Static
setRouteHeaderParams
setRouteHeaderParams( controller: Function, params: Record<number, HeaderParamMetadata>, controllerMethod: string,): void
Static
setRouteIsLoggedIn
setRouteIsLoggedIn( controller: Function, data: IsLoggedInMetadata, controllerMethod: string,): void
Static
setRouteIsNotLoggedIn
setRouteIsNotLoggedIn( controller: Function, data: IsNotLoggedInMetadata, controllerMethod: string,): void
Static
setRoutePathParams
setRoutePathParams( controller: Function, params: Record<number, PathParamMetadata>, controllerMethod: string,): void Parameters
- controller: Function
- params: Record<number, PathParamMetadata>
- controllerMethod: string
Returns void
Static
setRouteQueryParams
setRouteQueryParams( controller: Function, params: Record<number, QueryParamMetadata>, controllerMethod: string,): void
Static
setRouteResponses
setRouteResponses( controller: Function, data: OpenApiResponse[], controllerMethod: string,): void
Static
setRouteSkipAuth
setRouteSkipAuth( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
Static
setRouteSkipBelongsTo
setRouteSkipBelongsTo( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
Static
setRouteSkipHasRole
setRouteSkipHasRole( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
Static
setRouteSkipIsLoggedIn
setRouteSkipIsLoggedIn( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
Static
setRouteSkipIsNotLoggedIn
setRouteSkipIsNotLoggedIn( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
Static
setWebsocketController
Static
setWebsocketControllerRoutes
Utilities for handling Metadata.