import { IsNotEmpty, MinLength, MaxLength, Matches, IsOptional, IsString } from 'class-validator';
import { validationMessages } from '../../../messages/validation-messages';
import { MatchPasswordValidator } from '../../../validators/match-password.validator';
import { ApiProperty } from '@nestjs/swagger';

export class ListQueryDto {
    @IsNotEmpty({ message: validationMessages.common.page_required })
    page: BigInteger;

    search: string;

    per_page: BigInteger;

    sort_by: string;

    sort: string;

    @ApiProperty({ example: 'en', required: false, type: 'string', description: 'Language code for translations (defaults to en)' })
    @IsOptional()
    @IsString()
    language_code?: string;
}

