@nestjs-mod/notifications
Notifications module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction
Installation
npm i --save @nestjs-mod/notifications
Modules
Link | Category | Description |
---|---|---|
NotificationsModule | feature | Notifications module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction |
Modules descriptions
NotificationsModule
Notifications module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction
Shared providers
NotificationsService
Shared imports
PrismaModule
, PrismaToolsModule
, WebhookModule
Configuration
Key | Description | Constraints | Default | Value |
---|---|---|---|---|
checkAccessValidator | External function for validate | optional | - | - |
Static environments
Key | Description | Sources | Constraints | Default | Value |
---|---|---|---|---|---|
useFilters | Use filters | obj['useFilters'] , process.env['NOTIFICATIONS_USE_FILTERS'] | optional | true | true |
mailTransport | Mail transport (example: smtps://username@domain.com:password@smtp.domain.com) | obj['mailTransport'] , process.env['NOTIFICATIONS_MAIL_TRANSPORT'] | optional | - | - |
mailDefaultSenderName | Default sender name (example: Username) | obj['mailDefaultSenderName'] , process.env['NOTIFICATIONS_MAIL_DEFAULT_SENDER_NAME'] | optional | - | - |
mailDefaultSenderEmail | Default sender email (example: username@domain.com) | obj['mailDefaultSenderEmail'] , process.env['NOTIFICATIONS_MAIL_DEFAULT_SENDER_EMAIL'] | optional | - | - |
Static configuration
Key | Description | Constraints | Default | Value |
---|---|---|---|---|
guards | External guards for controllers | optional | - | - |
mutateController | Function for additional mutation of controllers | optional | - | - |
Links
- https://github.com/nestjs-mod/nestjs-mod - A collection of utilities for unifying NestJS applications and modules
- https://github.com/nestjs-mod/nestjs-mod-contrib - Contrib repository for the NestJS-mod
- https://github.com/nestjs-mod/nestjs-mod-example - Example application built with @nestjs-mod/schematics
- https://github.com/nestjs-mod/nestjs-mod/blob/master/apps/example-basic/INFRASTRUCTURE.MD - A simple example of infrastructure documentation.
- https://github.com/nestjs-mod/nestjs-mod-contrib/blob/master/apps/example-prisma/INFRASTRUCTURE.MD - An extended example of infrastructure documentation with a docker-compose file and a data base.
- https://dev.to/endykaufman/collection-of-nestjs-mod-utilities-for-unifying-applications-and-modules-on-nestjs-5256 - Article about the project NestJS-mod
- https://habr.com/ru/articles/788916 - Коллекция утилит NestJS-mod для унификации приложений и модулей на NestJS
License
MIT