Pular para o conteúdo principal

TeamStatsDto

@raizfc/contracts


@raizfc/contracts / TeamStatsDto

Type Alias: TeamStatsDto

TeamStatsDto = PublicTeamStatsDto & Readonly<{ championshipId?: ID; generatedAt: ISODateString; period: RankingPeriod; teamId: ID; }>

Defined in: ranking/stats.dto.ts:15

SPEC-API-DISCOVERY-001 GET /stats/teams/:teamId — a standalone, filterable view of the same numbers already embedded at PublicTeamResponse.stats (PublicTeamStatsDto, IS-MVP-01.1). Reuses that shape rather than duplicating it (same precedent as PlayerStatsDto reusing PublicPlayerStatLineDto) and adds the period/territory-style metadata every other ranking/stats DTO already carries. Divergence from the API table's literal StatsQuery symbol name registered in the handoff — period/championshipId (not a generic periodId string) matches the exact dimensions SPEC-API-DISCOVERY-001's own note lists ("Period/categoria/championship") and the RankingQuery vocabulary already established by IS-MVP-12.1 for the same three dimensions.