ChampionshipMatchInput
@raizfc/contracts / ChampionshipMatchInput
Type Alias: ChampionshipMatchInput
ChampionshipMatchInput =
Readonly<{awayScore:number;awayTeam:PublicTeamSummaryDto;events: readonlyPublicMatchEventDto[];groupName?:string;homeScore:number;homeTeam:PublicTeamSummaryDto;matchId:ID; }>
Defined in: championship/championship-standings.dto.ts:20
Deterministic standings/top-scorers/discipline math, shared verbatim by
services/api/src/modules/championships and packages/mocks — same rationale as
championship-fixture-generator.ts (a pure domain algorithm both implementations must produce
byte-identical output for). Callers are responsible for only ever passing validated matches
(SPEC-DOMAIN-CHAMPIONSHIP-001: "Classificação usa apenas partidas validadas" /
"Não há classificação baseada em resultado contestado") — this module has no notion of match
status and trusts its input entirely, the same boundary generateChampionshipFixtures draws
around "approved registrations" being resolved by the caller.