+16
-12
@@ -13,10 +13,10 @@ exports.CreateUserDto = void 0;
|
||||
const class_validator_1 = require("class-validator");
|
||||
const swagger_1 = require("@nestjs/swagger");
|
||||
class CreateUserDto {
|
||||
name;
|
||||
username;
|
||||
email;
|
||||
password;
|
||||
metadata;
|
||||
storageQuota;
|
||||
storageUsed;
|
||||
}
|
||||
exports.CreateUserDto = CreateUserDto;
|
||||
__decorate([
|
||||
@@ -24,20 +24,24 @@ __decorate([
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.IsNotEmpty)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateUserDto.prototype, "name", void 0);
|
||||
], CreateUserDto.prototype, "username", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ example: 'user@example.com' }),
|
||||
(0, class_validator_1.IsEmail)(),
|
||||
__metadata("design:type", String)
|
||||
], CreateUserDto.prototype, "email", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ example: 'strongpassword' }),
|
||||
(0, class_validator_1.IsString)(),
|
||||
(0, class_validator_1.Length)(8, 128),
|
||||
__metadata("design:type", String)
|
||||
], CreateUserDto.prototype, "password", void 0);
|
||||
(0, swagger_1.ApiPropertyOptional)({ example: 10737418240 }),
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.Min)(0),
|
||||
__metadata("design:type", Number)
|
||||
], CreateUserDto.prototype, "storageQuota", void 0);
|
||||
__decorate([
|
||||
(0, swagger_1.ApiProperty)({ required: false }),
|
||||
__metadata("design:type", Object)
|
||||
], CreateUserDto.prototype, "metadata", void 0);
|
||||
(0, swagger_1.ApiPropertyOptional)({ example: 0 }),
|
||||
(0, class_validator_1.IsOptional)(),
|
||||
(0, class_validator_1.IsInt)(),
|
||||
(0, class_validator_1.Min)(0),
|
||||
__metadata("design:type", Number)
|
||||
], CreateUserDto.prototype, "storageUsed", void 0);
|
||||
//# sourceMappingURL=create-user.dto.js.map
|
||||
Reference in New Issue
Block a user