Class MetadataUtilitiesAbstract
Constructors
Methods
StaticgetBackupResourceMetadata
StaticgetControllerBaseRoute
getControllerBaseRoute(controller: Function): undefined | `/${string}` Returns undefined | `/${string}`
StaticgetControllerBelongsTo
StaticgetControllerHasRole
StaticgetControllerIsLoggedIn
StaticgetControllerIsNotLoggedIn
StaticgetControllerRequire2fa
StaticgetControllerRoutes
StaticgetControllerSkipBelongsTo
getControllerSkipBelongsTo(controller: Function): undefined | object Returns undefined | object
StaticgetControllerSkipHasRole
getControllerSkipHasRole(controller: Function): undefined | object Returns undefined | object
StaticgetControllerSkipIsLoggedIn
getControllerSkipIsLoggedIn(controller: Function): undefined | object Returns undefined | object
StaticgetControllerSkipIsNotLoggedIn
getControllerSkipIsNotLoggedIn(controller: Function): undefined | object Returns undefined | object
StaticgetControllerSkipRequire2fa
StaticgetFilePath
getFilePath(target: Object): undefined | string Returns undefined | string
StaticgetInjectParamTokens
getInjectParamTokens(target: Object): Record<number, DiToken<unknown>> Returns Record<number, DiToken<unknown>>
StaticgetParamTypes
getParamTypes(target: Object): unknown[]
StaticgetRouteBelongsTo
Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteBody
getRouteBody( controller: Function, controllerMethod: string,): undefined | BodyMetadata Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteCurrentUser
getRouteCurrentUser( controller: Function, controllerMethod: string,): undefined | CurrentUserMetadata Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteCurrentWebsocketConnection
Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteHasRole
getRouteHasRole( controller: Function, controllerMethod: string,): undefined | HasRoleMetadata Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteHeaderParams
getRouteHeaderParams( controller: Function, controllerMethod: string,): Record<number, HeaderParamMetadata> Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteIsLoggedIn
getRouteIsLoggedIn( controller: Function, controllerMethod: string,): undefined | IsLoggedInMetadata Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteIsNotLoggedIn
getRouteIsNotLoggedIn( controller: Function, controllerMethod: string,): undefined | IsNotLoggedInMetadata Parameters
- controller: Function
- controllerMethod: string
StaticgetRoutePathParams
getRoutePathParams( controller: Function, controllerMethod: string,): Record<number, PathParamMetadata> Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteQueryParams
getRouteQueryParams( controller: Function, controllerMethod: string,): Record<number, QueryParamMetadata> Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteRequire2fa
getRouteRequire2fa( controller: Function, controllerMethod: string,): undefined | Require2faMetadata Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteResponses
getRouteResponses( controller: Function, controllerMethod: string,): OpenApiResponse[] Parameters
- controller: Function
- controllerMethod: string
StaticgetRouteSkipAuth
getRouteSkipAuth( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
StaticgetRouteSkipBelongsTo
getRouteSkipBelongsTo( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
StaticgetRouteSkipHasRole
getRouteSkipHasRole( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
StaticgetRouteSkipIsLoggedIn
getRouteSkipIsLoggedIn( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
StaticgetRouteSkipIsNotLoggedIn
getRouteSkipIsNotLoggedIn( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
StaticgetRouteSkipRequire2fa
getRouteSkipRequire2fa( controller: Function, controllerMethod: string,): undefined | object Parameters
- controller: Function
- controllerMethod: string
Returns undefined | object
StaticgetWebsocketController
StaticgetWebsocketControllerRoutes
StaticsetBackupResourceMetadata
StaticsetControllerBaseRoute
setControllerBaseRoute(controller: Function, baseRoute: `/${string}`): void Parameters
- controller: Function
- baseRoute: `/${string}`
Returns void
StaticsetControllerBelongsTo
StaticsetControllerHasRole
StaticsetControllerIsLoggedIn
StaticsetControllerIsNotLoggedIn
StaticsetControllerRequire2fa
StaticsetControllerRoutes
StaticsetControllerSkipBelongsTo
setControllerSkipBelongsTo(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
StaticsetControllerSkipHasRole
setControllerSkipHasRole(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
StaticsetControllerSkipIsLoggedIn
setControllerSkipIsLoggedIn(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
StaticsetControllerSkipIsNotLoggedIn
setControllerSkipIsNotLoggedIn(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
StaticsetControllerSkipRequire2fa
setControllerSkipRequire2fa(controller: Function, data: object): void Parameters
- controller: Function
- data: object
Returns void
StaticsetDiToken
setDiToken<T>(target: Object, token?: DiToken<T>): void
StaticsetFilePath
setFilePath(target: Object, errorStack: string): void Parameters
- target: Object
- errorStack: string
Returns void
StaticsetInjectParamTokens
setInjectParamTokens( target: Object, tokens: Record<number, DiToken<unknown>>,): void Parameters
- target: Object
- tokens: Record<number, DiToken<unknown>>
Returns void
StaticsetRouteBody
setRouteBody( controller: Function, body: BodyMetadata, controllerMethod: string,): void Parameters
- controller: Function
- body: BodyMetadata
- controllerMethod: string
Returns void
StaticsetRouteCurrentUser
setRouteCurrentUser( controller: Function, body: CurrentUserMetadata, controllerMethod: string,): void
StaticsetRouteCurrentWebsocketConnection
StaticsetRouteHasRole
setRouteHasRole( controller: Function, data: HasRoleMetadata, controllerMethod: string,): void
StaticsetRouteHeaderParams
setRouteHeaderParams( controller: Function, params: Record<number, HeaderParamMetadata>, controllerMethod: string,): void
StaticsetRouteIsLoggedIn
setRouteIsLoggedIn( controller: Function, data: IsLoggedInMetadata, controllerMethod: string,): void
StaticsetRouteIsNotLoggedIn
setRouteIsNotLoggedIn( controller: Function, data: IsNotLoggedInMetadata, controllerMethod: string,): void
StaticsetRoutePathParams
setRoutePathParams( controller: Function, params: Record<number, PathParamMetadata>, controllerMethod: string,): void Parameters
- controller: Function
- params: Record<number, PathParamMetadata>
- controllerMethod: string
Returns void
StaticsetRouteQueryParams
setRouteQueryParams( controller: Function, params: Record<number, QueryParamMetadata>, controllerMethod: string,): void
StaticsetRouteRequire2fa
setRouteRequire2fa( controller: Function, data: Require2faMetadata, controllerMethod: string,): void
StaticsetRouteResponses
setRouteResponses( controller: Function, data: OpenApiResponse[], controllerMethod: string,): void
StaticsetRouteSkipAuth
setRouteSkipAuth( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
StaticsetRouteSkipBelongsTo
setRouteSkipBelongsTo( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
StaticsetRouteSkipHasRole
setRouteSkipHasRole( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
StaticsetRouteSkipIsLoggedIn
setRouteSkipIsLoggedIn( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
StaticsetRouteSkipIsNotLoggedIn
setRouteSkipIsNotLoggedIn( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
StaticsetRouteSkipRequire2fa
setRouteSkipRequire2fa( controller: Function, data: object, controllerMethod: string,): void Parameters
- controller: Function
- data: object
- controllerMethod: string
Returns void
StaticsetWebsocketController
StaticsetWebsocketControllerRoutes
Utilities for handling Metadata.