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

36 lines 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateWebhookUserDto = void 0; const tslib_1 = require("tslib"); const prisma_client_1 = require("../prisma-client"); const swagger_1 = require("@nestjs/swagger"); const class_validator_1 = require("class-validator"); class CreateWebhookUserDto { } exports.CreateWebhookUserDto = CreateWebhookUserDto; tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'string', }), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.IsString)(), tslib_1.__metadata("design:type", String) ], CreateWebhookUserDto.prototype, "externalTenantId", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'string', }), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.IsString)(), tslib_1.__metadata("design:type", String) ], CreateWebhookUserDto.prototype, "externalUserId", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ enum: prisma_client_1.WebhookRole, enumName: 'WebhookRole', }), (0, class_validator_1.IsNotEmpty)(), (0, class_validator_1.IsEnum)(prisma_client_1.WebhookRole), tslib_1.__metadata("design:type", String) ], CreateWebhookUserDto.prototype, "userRole", void 0); //# sourceMappingURL=create-webhook-user.dto.js.map