UNPKG

@nestjs-mod/webhook

Version:

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

55 lines 2.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WebhookFeatureConfiguration = exports.WebhookStaticConfiguration = exports.WebhookConfiguration = void 0; const tslib_1 = require("tslib"); const common_1 = require("@nestjs-mod/common"); let WebhookConfiguration = class WebhookConfiguration { }; exports.WebhookConfiguration = WebhookConfiguration; tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'List of available events', }), tslib_1.__metadata("design:type", Array) ], WebhookConfiguration.prototype, "events", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: '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', default: false, }), tslib_1.__metadata("design:type", Boolean) ], WebhookConfiguration.prototype, "syncMode", void 0); exports.WebhookConfiguration = WebhookConfiguration = tslib_1.__decorate([ (0, common_1.ConfigModel)() ], WebhookConfiguration); let WebhookStaticConfiguration = class WebhookStaticConfiguration { }; exports.WebhookStaticConfiguration = WebhookStaticConfiguration; tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'External guards for controllers', }), tslib_1.__metadata("design:type", Array) ], WebhookStaticConfiguration.prototype, "guards", void 0); tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'Function for additional mutation of controllers', }), tslib_1.__metadata("design:type", Function) ], WebhookStaticConfiguration.prototype, "mutateController", void 0); exports.WebhookStaticConfiguration = WebhookStaticConfiguration = tslib_1.__decorate([ (0, common_1.ConfigModel)() ], WebhookStaticConfiguration); let WebhookFeatureConfiguration = class WebhookFeatureConfiguration { }; exports.WebhookFeatureConfiguration = WebhookFeatureConfiguration; tslib_1.__decorate([ (0, common_1.ConfigModelProperty)({ description: 'List of available events', }), tslib_1.__metadata("design:type", Array) ], WebhookFeatureConfiguration.prototype, "events", void 0); exports.WebhookFeatureConfiguration = WebhookFeatureConfiguration = tslib_1.__decorate([ (0, common_1.ConfigModel)() ], WebhookFeatureConfiguration); //# sourceMappingURL=webhook.configuration.js.map