Files
grow-api/src/auth/dto/request-salon-otp-response.dto.ts
T
2026-07-03 12:27:21 +03:30

24 lines
572 B
TypeScript

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class RequestSalonOtpResponseDto {
@ApiProperty({ example: 'OTP sent' })
message: string;
@ApiProperty({
description: 'Whether a salon-owner account exists for this mobile',
})
isRegistered: boolean;
@ApiProperty({
description: 'OTP validity window in seconds',
example: 900,
})
expiresInSeconds: number;
@ApiPropertyOptional({
description: 'Only returned in non-production environments when SMS is unavailable',
example: '12345',
})
code?: string;
}