Skip to content

feat: add optional teamSide + marketSegment to odds/EV/closing types (#76, #689)#12

Merged
Mlaz-code merged 1 commit into
mainfrom
feat/team-side-market-segment-76
Jun 3, 2026
Merged

feat: add optional teamSide + marketSegment to odds/EV/closing types (#76, #689)#12
Mlaz-code merged 1 commit into
mainfrom
feat/team-side-market-segment-76

Conversation

@Mlaz-code

Copy link
Copy Markdown
Contributor

Adds the structured side + segment axes the SharpAPI now emits (sharp-api-go #76 Phase C / #689) to the TS types.

  • NormalizedOdds + EVOpportunity gain optional teamSide ('home'|'away'|'draw'|'over'|'under') + marketSegment (string).
  • ClosingOdd gains snake_case team_side + market_segment (matches that endpoint's wire casing).
  • selectionType / selection_type unions widen with (string & {}) so any server value is accepted without a major bump; the compound team-total literals are intentionally retained (no breaking narrowing).
  • Additive, non-breaking. tsc --noEmit passes.

Bump 0.3.2 → 0.3.3.

Type: feat

… (#76, #689)

NormalizedOdds, EVOpportunity, ClosingOdd gain optional team_side
("home"|"away"|"draw") + market_segment. Wire keys snake_case (raw JSON, no key
transforms — matches is_active). selectionType widened with (string & {}) to
accept server-emitted team-total compound forms (home_over, ...). Additive,
non-breaking. Bump 0.4.0 → 0.4.1.

Type: feat

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Mlaz-code Mlaz-code force-pushed the feat/team-side-market-segment-76 branch from dce5382 to c7e9333 Compare June 3, 2026 02:43
@Mlaz-code Mlaz-code merged commit 6315e50 into main Jun 3, 2026
3 checks passed
@Mlaz-code Mlaz-code deleted the feat/team-side-market-segment-76 branch June 3, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant