@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
56 lines • 2.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookStaticEnvironments = void 0;
const tslib_1 = require("tslib");
const common_1 = require("@nestjs-mod/common");
let WebhookStaticEnvironments = class WebhookStaticEnvironments {
};
exports.WebhookStaticEnvironments = WebhookStaticEnvironments;
tslib_1.__decorate([
(0, common_1.EnvModelProperty)({
description: 'Use guards',
transform: new common_1.BooleanTransformer(),
default: true,
hidden: true,
}),
tslib_1.__metadata("design:type", Boolean)
], WebhookStaticEnvironments.prototype, "useGuards", void 0);
tslib_1.__decorate([
(0, common_1.EnvModelProperty)({
description: 'Use filters',
transform: new common_1.BooleanTransformer(),
default: true,
hidden: true,
}),
tslib_1.__metadata("design:type", Boolean)
], WebhookStaticEnvironments.prototype, "useFilters", void 0);
tslib_1.__decorate([
(0, common_1.EnvModelProperty)({
description: 'Auto create user from guard',
transform: new common_1.BooleanTransformer(),
default: true,
hidden: true,
}),
tslib_1.__metadata("design:type", Boolean)
], WebhookStaticEnvironments.prototype, "autoCreateUser", void 0);
tslib_1.__decorate([
(0, common_1.EnvModelProperty)({
description: 'Skip any guard errors',
transform: new common_1.BooleanTransformer(),
default: false,
hidden: true,
}),
tslib_1.__metadata("design:type", Boolean)
], WebhookStaticEnvironments.prototype, "skipGuardErrors", void 0);
tslib_1.__decorate([
(0, common_1.EnvModelProperty)({
description: 'TTL for cached data',
default: 15_000,
hidden: true,
}),
tslib_1.__metadata("design:type", Number)
], WebhookStaticEnvironments.prototype, "cacheTTL", void 0);
exports.WebhookStaticEnvironments = WebhookStaticEnvironments = tslib_1.__decorate([
(0, common_1.EnvModel)()
], WebhookStaticEnvironments);
//# sourceMappingURL=webhook.environments.js.map