bootstrap |
bootstrap()
|
Main entry point of the application |
expandEnvVariables |
expandEnvVariables()
|
Expands the environmanet variables
Returns :
void
|
naiveRound | |||||||||||||||
naiveRound(num: number, decimalPlaces: number)
|
|||||||||||||||
Takes a number and rounds to a percission number
Parameters :
|
processHttpError | ||||||||||||
processHttpError(error: any, logger: any)
|
||||||||||||
processes http error that was throwed by service
Parameters :
|
processMicroserviceHttpError | ||||||||||||
processMicroserviceHttpError(error: any, logger: any)
|
||||||||||||
processes http error that was throwed by service
Parameters :
|
validateDTO | ||||||||||||
validateDTO(dto: any, httpResponseGenerator: any)
|
||||||||||||
validates dto and returns bad request if it is wrong
Parameters :
Returns :
Promise<any>
|
validateOutputDTO |
validateOutputDTO(dto: any, logger: any)
|
validates output dto and throws an error if it is wrong
Returns :
Promise<any>
|
toOrder | ||||||||
toOrder(str: string)
|
||||||||
Converts string value to appropriate enum-member
Parameters :
Returns :
Order
Appropriate enum-member |
validate | ||||||||
validate(config: Record)
|
||||||||
validates the config
Parameters :
|