@nestjs-mod/webhook
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

@nestjs-mod/webhook

Webhook module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction

NPM version monthly downloads Telegram Discord

Installation

npm i --save @nestjs-mod/webhook

Modules

Link Category Description
WebhookModule feature Webhook module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction

Modules descriptions

WebhookModule

Webhook module with an error filter, guard, controller, database migrations and rest-sdk for work with module from other nodejs appliaction

Shared providers

WebhookService, WebhookUsersService

Shared imports

HttpModule, PrismaModule

Configuration

Key Description Constraints Default Value
events List of available events optional - -
syncMode When we run an application in a serverless environment, our background tasks do not have time to complete, to disable background tasks and process requests on demand, we need to switch this property to true optional false -

Static environments

Key Description Sources Constraints Default Value
useGuards Use guards obj['useGuards'], process.env['WEBHOOK_USE_GUARDS'] optional true true
useFilters Use filters obj['useFilters'], process.env['WEBHOOK_USE_FILTERS'] optional true true
autoCreateUser Auto create user from guard obj['autoCreateUser'], process.env['WEBHOOK_AUTO_CREATE_USER'] optional true true
skipGuardErrors Skip any guard errors obj['skipGuardErrors'], process.env['WEBHOOK_SKIP_GUARD_ERRORS'] optional false false
cacheTTL TTL for cached data obj['cacheTTL'], process.env['WEBHOOK_CACHE_TTL'] optional 15000 15000

Static configuration

Key Description Constraints Default Value
guards External guards for controllers optional - -
mutateController Function for additional mutation of controllers optional - -

Feature configuration

Key Description Constraints Default Value
events List of available events optional - -

Back to Top

Links

License

MIT

Package Sidebar

Install

npm i @nestjs-mod/webhook

Weekly Downloads

174

Version

1.3.1

License

MIT

Unpacked Size

725 kB

Total Files

199

Last publish

Collaborators

  • endykaufman