11 lines
252 B
TypeScript
11 lines
252 B
TypeScript
import { IsString, IsNotEmpty, Matches } from 'class-validator';
|
|
|
|
export class InitiateCallDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@Matches(/^\+?[1-9]\d{1,14}$/, {
|
|
message: 'Invalid phone number format (use E.164 format)',
|
|
})
|
|
toNumber: string;
|
|
}
|