UNPKG

@nestjs-mod/two-factor

Version:

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

64 lines 2.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateTwoFactorCodeDto = void 0; const tslib_1 = require("tslib"); const swagger_1 = require("@nestjs/swagger"); const class_validator_1 = require("class-validator"); class UpdateTwoFactorCodeDto { } exports.UpdateTwoFactorCodeDto = UpdateTwoFactorCodeDto; tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'string', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), tslib_1.__metadata("design:type", String) ], UpdateTwoFactorCodeDto.prototype, "type", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'string', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), tslib_1.__metadata("design:type", String) ], UpdateTwoFactorCodeDto.prototype, "operationName", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'string', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), tslib_1.__metadata("design:type", String) ], UpdateTwoFactorCodeDto.prototype, "code", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'boolean', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsBoolean)(), tslib_1.__metadata("design:type", Boolean) ], UpdateTwoFactorCodeDto.prototype, "used", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'boolean', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsBoolean)(), tslib_1.__metadata("design:type", Boolean) ], UpdateTwoFactorCodeDto.prototype, "outdated", void 0); tslib_1.__decorate([ (0, swagger_1.ApiProperty)({ type: 'string', required: false, }), (0, class_validator_1.IsOptional)(), (0, class_validator_1.IsString)(), tslib_1.__metadata("design:type", String) ], UpdateTwoFactorCodeDto.prototype, "externalTenantId", void 0); //# sourceMappingURL=update-two-factor-code.dto.js.map