feat: add optional teamSide + marketSegment to odds/EV/closing types (#76, #689)#12
Merged
Merged
Conversation
… (#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>
dce5382 to
c7e9333
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the structured side + segment axes the SharpAPI now emits (sharp-api-go #76 Phase C / #689) to the TS types.
NormalizedOdds+EVOpportunitygain optionalteamSide('home'|'away'|'draw'|'over'|'under') +marketSegment(string).ClosingOddgains snake_caseteam_side+market_segment(matches that endpoint's wire casing).selectionType/selection_typeunions widen with(string & {})so any server value is accepted without a major bump; the compound team-total literals are intentionally retained (no breaking narrowing).tsc --noEmitpasses.Bump 0.3.2 → 0.3.3.
Type: feat