24 lines
572 B
TypeScript
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;
|
|
}
|