src/contact/request/dto/update-contact.dto.ts
Properties |
| active |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 320, required: false})
|
| name |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 100, required: false})
|
| phone |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 12, required: false, example: '123456789'})
|
| prefix |
Type : number
|
Decorators :
@ApiProperty({type: Number, maxLength: 3, required: false})
|
| surname |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 100, required: false})
|
import { ApiProperty } from '@nestjs/swagger';
export class UpdateContactDTO {
@ApiProperty({ type: String, maxLength: 100, required: false })
name: string;
@ApiProperty({ type: String, maxLength: 100, required: false })
surname: string;
@ApiProperty({ type: String, maxLength: 320, required: false })
email: string;
@ApiProperty({ type: Number, maxLength: 3, required: false })
prefix: number;
@ApiProperty({
type: String,
maxLength: 12,
required: false,
example: '123456789',
})
phone: string;
@ApiProperty({ type: Boolean, required: false })
active: boolean;
}