fix(build): resolve linter and tsconfig project service errors, guarantee dist/main existence in start-dev
Deploy Canina / deploy (push) Has been cancelled
Deploy Canina / deploy (push) Has been cancelled
This commit is contained in:
1 parent
a291fa0c4a
commit
6362750dea
50 files changed
+12128
-10959
No files matched your search
@@ -1,4 +1,11 @@
|
||||
import { IsNotEmpty, IsString, IsOptional, IsEmail, MinLength, IsNumber } from 'class-validator';
|
||||
import {
|
||||
IsNotEmpty,
|
||||
IsString,
|
||||
IsOptional,
|
||||
IsEmail,
|
||||
MinLength,
|
||||
IsNumber,
|
||||
} from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
|
||||
export class CreateUserDto {
|
||||
@@ -17,7 +24,10 @@ export class CreateUserDto {
|
||||
@IsString()
|
||||
mobile!: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'ایمیل کاربر', example: 'ali@example.com' })
|
||||
@ApiPropertyOptional({
|
||||
description: 'ایمیل کاربر',
|
||||
example: 'ali@example.com',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsEmail({}, { message: 'فرمت ایمیل نامعتبر است' })
|
||||
email?: string;
|
||||
@@ -55,12 +65,18 @@ export class UpdateUserDto {
|
||||
@IsString()
|
||||
mobile?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'ایمیل کاربر', example: 'ali@example.com' })
|
||||
@ApiPropertyOptional({
|
||||
description: 'ایمیل کاربر',
|
||||
example: 'ali@example.com',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsEmail({}, { message: 'فرمت ایمیل نامعتبر است' })
|
||||
email?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'رمز عبور جدید', example: 'NewPassword123' })
|
||||
@ApiPropertyOptional({
|
||||
description: 'رمز عبور جدید',
|
||||
example: 'NewPassword123',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(6, { message: 'رمز عبور باید حداقل ۶ کاراکتر باشد' })
|
||||
|
||||
Reference in new issue
Block a user