import { ApiProperty } from '@nestjs/swagger';
import { IsString } from 'class-validator';

export class GetListingVolumeWardDto {
  @ApiProperty({ description: 'Ward name (matches Property.ward)', example: 'Phường Bến Nghé' })
  @IsString()
  wardId!: string;

  @ApiProperty({
    description: 'Time period — quarterly "YYYY-QN" or monthly "YYYY-MM"',
    example: '2026-Q1',
  })
  @IsString()
  period!: string;
}
