Pular para o conteúdo principal

MatchParticipantKind

@raizfc/contracts


@raizfc/contracts / MatchParticipantKind

Type Alias: MatchParticipantKind

MatchParticipantKind = "registered" | "guest"

Defined in: match/match-report.dto.ts:15

SPEC-DOMAIN-MATCH-001 "Súmula e convidados": a report participant always resolves to an existing squad link (TeamPlayerLinkDto.id, team/team-squad.dto.ts) — never a duplicated player record. kind mirrors TeamPlayerLinkDto.kind at the moment the reference was taken ('registered' once a guest confirms, per EP-MVP-05.3); it is denormalized onto the event/ lineup entry so historic events keep reading correctly even if the underlying link later changes kind. publicRoute/playerId are present only for 'registered' — guests never get a public player page (SPEC-DOMAIN-MATCH-001 "Dados pessoais de convidado nunca aparecem"). playerId (IS-MVP-12.2, aditivo) is the stable cross-match/cross-team identity computeTopScorers/ computePlayerStatLines group by — linkId alone cannot do this, it is scoped to one team's squad and a player who transfers teams gets a new link per team.