Skip to content

feat(types): nested refs + numerical_id#6

Closed
Mlaz-code wants to merge 1 commit into
mainfrom
feat/nested-refs-phase-1f
Closed

feat(types): nested refs + numerical_id#6
Mlaz-code wants to merge 1 commit into
mainfrom
feat/nested-refs-phase-1f

Conversation

@Mlaz-code
Copy link
Copy Markdown
Contributor

@Mlaz-code Mlaz-code commented May 7, 2026

Summary

Adds optional TypeScript types for new nested reference fields. All additions are non-breaking.

What changes

  • New interfaces: TeamRef, SportRef, EntityRef, Team, Market, NestedRefs bundle
  • Typed LowHoldOpportunity (was loosely typed before)
  • Existing NormalizedOdds, EVOpportunity, ArbitrageOpportunity, MiddleOpportunity extend with optional nested refs via NestedRefs
  • ArbitrageLeg gains sportsbook_ref; ClosingOddsLine/ClosingOdd gain market_ref + sportsbook_ref
  • Reference rows (Sport, League, Sportsbook, Market) gain numerical_id; Team adds abbreviation + numerical_id

Version bump

0.2.9 → 0.3.0 — minor bump (additive only).

Superseded by #7 (which contains these commits plus the TeamRef metadata follow-up and a public-release cleanup pass).

Add structured ref types (TeamRef, SportRef, EntityRef, NestedRefs) plus
Team and Market reference types, then surface optional home/away/
sport_ref/league_ref/market_ref/sportsbook_ref on every odds, opportunity,
and reference row shipping in api-adapters PR #489 + sharp-api-go PR #345.

Reference endpoints (Sport, League, Sportsbook, Market) gain optional
numerical_id, and Team adds optional abbreviation. ArbitrageLeg gains
sportsbook_ref, ClosingOdd gains market_ref + sportsbook_ref. All fields
are additive — legacy code keeps compiling.

LowHoldOpportunity is upgraded from untyped to a proper interface so
nested refs surface alongside the flat fields; the [key: string] index
signature preserves forward compatibility.

Bumps to 0.3.0 (minor — purely additive, no field renames or removals).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@Mlaz-code Mlaz-code changed the title feat(types): nested refs + numerical_id (Phase 1f) feat(types): nested refs + numerical_id May 7, 2026
@Mlaz-code
Copy link
Copy Markdown
Contributor Author

Superseded by #7. All commits on this branch are reachable from PR #7's head, plus the TeamRef metadata follow-up and a public-release cleanup pass.

@Mlaz-code Mlaz-code closed this May 7, 2026
@Mlaz-code Mlaz-code deleted the feat/nested-refs-phase-1f branch May 7, 2026 14:26
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