UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

109 lines 3.48 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { ApiProperty } from '@nestjs/swagger'; import { Equals, IsBoolean, IsDefined, IsNotEmpty, IsNumber, IsOptional, IsString, } from 'class-validator'; export class UserActivateOtpDto { code; } __decorate([ IsString(), IsNotEmpty(), ApiProperty({ type: String }), __metadata("design:type", String) ], UserActivateOtpDto.prototype, "code", void 0); export class UserDeactivateOtpDto { password; } __decorate([ IsString(), IsNotEmpty(), ApiProperty({ type: String }), __metadata("design:type", String) ], UserDeactivateOtpDto.prototype, "password", void 0); export class UserDto { id; name; username; admin; password; hashedPassword; salt; otpSecret; otpActive; otpLegacySecret; } __decorate([ IsNumber(), ApiProperty({ readOnly: true, type: Number }), __metadata("design:type", Number) ], UserDto.prototype, "id", void 0); __decorate([ IsString(), IsNotEmpty(), IsDefined(), ApiProperty({ type: String }), __metadata("design:type", String) ], UserDto.prototype, "name", void 0); __decorate([ IsString(), IsNotEmpty(), IsDefined(), ApiProperty({ type: String }), __metadata("design:type", String) ], UserDto.prototype, "username", void 0); __decorate([ ApiProperty({ type: Boolean }), IsBoolean(), __metadata("design:type", Boolean) ], UserDto.prototype, "admin", void 0); __decorate([ IsString(), IsOptional(), ApiProperty({ writeOnly: true, type: String }), __metadata("design:type", String) ], UserDto.prototype, "password", void 0); __decorate([ Equals(undefined), __metadata("design:type", String) ], UserDto.prototype, "hashedPassword", void 0); __decorate([ Equals(undefined), __metadata("design:type", String) ], UserDto.prototype, "salt", void 0); __decorate([ Equals(undefined), __metadata("design:type", String) ], UserDto.prototype, "otpSecret", void 0); __decorate([ Equals(undefined), ApiProperty({ readOnly: true, type: Boolean }), __metadata("design:type", Boolean) ], UserDto.prototype, "otpActive", void 0); __decorate([ Equals(undefined), __metadata("design:type", Boolean) ], UserDto.prototype, "otpLegacySecret", void 0); export class UserUpdatePasswordDto { currentPassword; newPassword; } __decorate([ IsString(), IsNotEmpty(), ApiProperty({ type: String }), __metadata("design:type", String) ], UserUpdatePasswordDto.prototype, "currentPassword", void 0); __decorate([ IsString(), IsNotEmpty(), ApiProperty({ type: String }), __metadata("design:type", String) ], UserUpdatePasswordDto.prototype, "newPassword", void 0); //# sourceMappingURL=users.dto.js.map