modification of InboundSMSMessageNotificationDto

This commit is contained in:
KurtisMelkisedec 2025-10-31 21:22:13 +00:00
parent 1ed8d6854d
commit 3e615eda42

View File

@ -4,12 +4,14 @@ import {
ValidateNested, ValidateNested,
IsNotEmpty, IsNotEmpty,
IsDateString, IsDateString,
IsOptional,
} from 'class-validator'; } from 'class-validator';
import { Type } from 'class-transformer'; import { Type } from 'class-transformer';
export class InboundSMSMessageDto { export class InboundSMSMessageDto {
@ApiProperty({ example: '2025-10-30T14:00:00Z' }) @ApiProperty({ example: '2025-10-30T14:00:00Z' })
@IsDateString() @IsDateString()
@IsOptional()
dateTime: string; dateTime: string;
@ApiProperty({ example: '+33612345678' }) @ApiProperty({ example: '+33612345678' })
@ -20,6 +22,7 @@ export class InboundSMSMessageDto {
@ApiProperty({ example: 'mes1234' }) @ApiProperty({ example: 'mes1234' })
@IsString() @IsString()
@IsNotEmpty() @IsNotEmpty()
@IsOptional()
messageId: string; messageId: string;
@ApiProperty({ @ApiProperty({