injected service use to handle the notification related operations
injected mail config
Optional
mailOptional
sender?: stringinjected user api
injected logger used to handle the logging
request context [headers, body, params, query].
201 Status Created
This handler will create message by applying the following steps in sequence:
Create message (notificationService.createMessage)
Get message by id and normalize (notificationService.getOneMessage)
Check if message is public (notificationService.isPublicMessage)
If message is public, emit message to public channel
If message is not public, create transmission for message (notificationService.createTransmissionsForMessage)
If message should send mail, send mail to receivers (mailService.sendMail)
Return the message
500 NBError Internal Server Error
Generated using TypeDoc
Create message handler