import { IsIn, IsInt, IsOptional, IsString, MaxLength, Min } from 'class-validator';

export class UpdateAppReleaseDto {
  @IsOptional()
  isPublished?: boolean;

  @IsOptional()
  @IsString()
  @MaxLength(4000)
  releaseNotes?: string;
}

export class CheckAppUpdateQueryDto {
  @IsIn(['ANDROID', 'WINDOWS', 'android', 'windows'])
  platform!: string;

  @IsInt()
  @Min(1)
  versionCode!: number;
}
