Pular para o conteúdo principal

computeTorcidaRanking

@raizfc/contracts


@raizfc/contracts / computeTorcidaRanking

Function: computeTorcidaRanking()

computeTorcidaRanking(entities): readonly Readonly<{ badges: readonly "provisional"[]; crestUrl?: string; draws?: number; entityId: string; entityName: string; entityRoute: string; goalDifference?: number; losses?: number; matchesPlayed?: number; position: number; score: number; status: RankingRowStatus; wins?: number; }>[]

Defined in: ranking/ranking-formula.ts:147

"Torcida engagement excludes money" (SPEC-DOMAIN-RANKING-001) — score is built only from membership/followers, never wallet/apoio/patrocínio values. Members count for more than passive followers (a fixed 2:1 weight, MVP placeholder pending product confirmation). There is no "jogos" concept for a torcida, so the Provisório badge — defined by the spec strictly in terms of match sample size — does not apply here; every torcida engagement row is confirmed (decision registered, not inferred).

Parameters

entities

readonly Readonly<{ crestUrl?: string; followers: number; members: number; torcidaId: string; torcidaName: string; torcidaRoute: string; }>[]

Returns

readonly Readonly<{ badges: readonly "provisional"[]; crestUrl?: string; draws?: number; entityId: string; entityName: string; entityRoute: string; goalDifference?: number; losses?: number; matchesPlayed?: number; position: number; score: number; status: RankingRowStatus; wins?: number; }>[]