import { ApiProperty } from '@nestjs/swagger';

export class LeagueScoringChampionshipDTO {
  @ApiProperty()
  id!: string;

  @ApiProperty()
  name!: string;

  @ApiProperty()
  type!: string;

  @ApiProperty()
  sessionTypes!: string[];

  @ApiProperty()
  pointsPreview!: Array<{ sessionType: string; position: number; points: number }>;

  @ApiProperty()
  bonusSummary!: string[];

  @ApiProperty()
  dropPolicyDescription!: string;
}

export class LeagueScoringConfigDTO {
  @ApiProperty()
  leagueId!: string;

  @ApiProperty()
  seasonId!: string;

  @ApiProperty()
  gameId!: string;

  @ApiProperty()
  gameName!: string;

  @ApiProperty({ required: false })
  scoringPresetId?: string;

  @ApiProperty({ required: false })
  scoringPresetName?: string;

  @ApiProperty()
  dropPolicySummary!: string;

  @ApiProperty({ type: [LeagueScoringChampionshipDTO] })
  championships!: LeagueScoringChampionshipDTO[];
}