propline 0.70.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/dist/index.cjs +51 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +134 -2
- package/dist/index.d.ts +134 -2
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1750,6 +1750,117 @@ interface IdLookupResponse {
|
|
|
1750
1750
|
}>;
|
|
1751
1751
|
not_found: string[];
|
|
1752
1752
|
}
|
|
1753
|
+
interface RefereeNextMatch {
|
|
1754
|
+
event_id: string;
|
|
1755
|
+
commence_time: string;
|
|
1756
|
+
home_team: string;
|
|
1757
|
+
away_team: string;
|
|
1758
|
+
}
|
|
1759
|
+
interface RefereeSummary {
|
|
1760
|
+
referee: string;
|
|
1761
|
+
/** Graded matches. */
|
|
1762
|
+
matches: number;
|
|
1763
|
+
yellow_cards: number;
|
|
1764
|
+
red_cards: number;
|
|
1765
|
+
yellow_cards_per_match: number | null;
|
|
1766
|
+
red_cards_per_match: number | null;
|
|
1767
|
+
cards_per_match: number | null;
|
|
1768
|
+
last_match: string | null;
|
|
1769
|
+
/** Next appointment, or null. */
|
|
1770
|
+
next_match: RefereeNextMatch | null;
|
|
1771
|
+
}
|
|
1772
|
+
interface RefereesResponse {
|
|
1773
|
+
sport: string;
|
|
1774
|
+
count: number;
|
|
1775
|
+
referees: RefereeSummary[];
|
|
1776
|
+
}
|
|
1777
|
+
interface RefereesOptions {
|
|
1778
|
+
/** Referee name substring. */
|
|
1779
|
+
search?: string;
|
|
1780
|
+
/** YYYY-MM-DD. */
|
|
1781
|
+
since?: string;
|
|
1782
|
+
/** YYYY-MM-DD. */
|
|
1783
|
+
until?: string;
|
|
1784
|
+
}
|
|
1785
|
+
interface RefereeMatch {
|
|
1786
|
+
referee: string;
|
|
1787
|
+
event_id: string;
|
|
1788
|
+
commence_time: string;
|
|
1789
|
+
status: string | null;
|
|
1790
|
+
home_team: string;
|
|
1791
|
+
away_team: string;
|
|
1792
|
+
home_score: number | null;
|
|
1793
|
+
away_score: number | null;
|
|
1794
|
+
/** null until the match is graded. */
|
|
1795
|
+
yellow_cards: number | null;
|
|
1796
|
+
red_cards: number | null;
|
|
1797
|
+
home_yellow_cards: number | null;
|
|
1798
|
+
home_red_cards: number | null;
|
|
1799
|
+
away_yellow_cards: number | null;
|
|
1800
|
+
away_red_cards: number | null;
|
|
1801
|
+
}
|
|
1802
|
+
/** The summary fields, with `matches` replaced by the match list. */
|
|
1803
|
+
interface RefereeMatchesResponse extends Omit<RefereeSummary, "matches"> {
|
|
1804
|
+
sport: string;
|
|
1805
|
+
/** All matches held for this referee (graded + upcoming). */
|
|
1806
|
+
match_count: number;
|
|
1807
|
+
matches: RefereeMatch[];
|
|
1808
|
+
}
|
|
1809
|
+
interface RefereeMatchesOptions {
|
|
1810
|
+
/** YYYY-MM-DD. */
|
|
1811
|
+
since?: string;
|
|
1812
|
+
/** YYYY-MM-DD. */
|
|
1813
|
+
until?: string;
|
|
1814
|
+
/** 1-500 (default 100). */
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
}
|
|
1817
|
+
interface MarketCoverageEntry {
|
|
1818
|
+
market: string;
|
|
1819
|
+
/** Period code (q1, h1, ...), null for full game. */
|
|
1820
|
+
period: string | null;
|
|
1821
|
+
/** Games in the window this book prices the market on. */
|
|
1822
|
+
events: number;
|
|
1823
|
+
/** Market rows (alt lines count separately). */
|
|
1824
|
+
markets: number;
|
|
1825
|
+
last_update: string | null;
|
|
1826
|
+
}
|
|
1827
|
+
interface MarketCoverageBook {
|
|
1828
|
+
key: string;
|
|
1829
|
+
title: string;
|
|
1830
|
+
/** Games in the window this book has any market on. */
|
|
1831
|
+
events: number;
|
|
1832
|
+
prop_market_count: number;
|
|
1833
|
+
game_lines: MarketCoverageEntry[];
|
|
1834
|
+
props: MarketCoverageEntry[];
|
|
1835
|
+
}
|
|
1836
|
+
interface MarketCoverageResponse {
|
|
1837
|
+
sport_key: string;
|
|
1838
|
+
days: number;
|
|
1839
|
+
/** Games in the window. */
|
|
1840
|
+
events: number;
|
|
1841
|
+
bookmakers: MarketCoverageBook[];
|
|
1842
|
+
}
|
|
1843
|
+
interface MarketCoverageOptions {
|
|
1844
|
+
/** 1-7 (default 3). */
|
|
1845
|
+
days?: number;
|
|
1846
|
+
/** Include quarter / half / inning markets (default false). */
|
|
1847
|
+
periods?: boolean;
|
|
1848
|
+
}
|
|
1849
|
+
interface HistoryCoverageBook {
|
|
1850
|
+
key: string;
|
|
1851
|
+
title: string;
|
|
1852
|
+
/** YYYY-MM-DD kickoff dates. */
|
|
1853
|
+
history_start: string | null;
|
|
1854
|
+
game_lines_start: string | null;
|
|
1855
|
+
props_start: string | null;
|
|
1856
|
+
latest_event: string | null;
|
|
1857
|
+
events: number;
|
|
1858
|
+
retired: boolean;
|
|
1859
|
+
}
|
|
1860
|
+
interface HistoryCoverageResponse {
|
|
1861
|
+
sport_key: string;
|
|
1862
|
+
bookmakers: HistoryCoverageBook[];
|
|
1863
|
+
}
|
|
1753
1864
|
|
|
1754
1865
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1755
1866
|
interface GetDfsPayoutsOptions {
|
|
@@ -2473,6 +2584,27 @@ declare class PropLine {
|
|
|
2473
2584
|
* the report. History starts 2026-10-18.
|
|
2474
2585
|
*/
|
|
2475
2586
|
getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Referee card stats for a sport (free tier). 32 soccer leagues: the
|
|
2589
|
+
* Premier League plus La Liga, Serie A, Bundesliga, Ligue 1, MLS,
|
|
2590
|
+
* Championship, Eredivisie, Liga MX, Brasileirao, the UEFA cups,
|
|
2591
|
+
* Libertadores, Sudamericana and others. Other sports return 404
|
|
2592
|
+
* `referees_not_available` with `available_sports`.
|
|
2593
|
+
*/
|
|
2594
|
+
getReferees(sport: string, options?: RefereesOptions): Promise<RefereesResponse>;
|
|
2595
|
+
/**
|
|
2596
|
+
* One referee's summary plus their matches with per-team cards
|
|
2597
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
2598
|
+
*/
|
|
2599
|
+
getRefereeMatches(sport: string, name: string, options?: RefereeMatchesOptions): Promise<RefereeMatchesResponse>;
|
|
2600
|
+
/**
|
|
2601
|
+
* Every market each book is pricing on a sport's games in the next `days`
|
|
2602
|
+
* days, and on how many of those games (free tier). `days` is 1-7
|
|
2603
|
+
* (default 3); `periods` adds quarter / half / inning markets.
|
|
2604
|
+
*/
|
|
2605
|
+
getMarketCoverage(sport: string, options?: MarketCoverageOptions): Promise<MarketCoverageResponse>;
|
|
2606
|
+
/** When each book's odds history starts for a sport (free tier). */
|
|
2607
|
+
getHistoryCoverage(sport: string): Promise<HistoryCoverageResponse>;
|
|
2476
2608
|
/**
|
|
2477
2609
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2478
2610
|
*
|
|
@@ -2988,6 +3120,6 @@ declare const Bookmakers: {
|
|
|
2988
3120
|
readonly PRIZEPICKS: "prizepicks";
|
|
2989
3121
|
};
|
|
2990
3122
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2991
|
-
declare const VERSION = "0.
|
|
3123
|
+
declare const VERSION = "0.72.0";
|
|
2992
3124
|
|
|
2993
|
-
export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
3125
|
+
export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HistoryCoverageBook, type HistoryCoverageResponse, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketCoverageBook, type MarketCoverageEntry, type MarketCoverageOptions, type MarketCoverageResponse, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type RefereeMatch, type RefereeMatchesOptions, type RefereeMatchesResponse, type RefereeNextMatch, type RefereeSummary, type RefereesOptions, type RefereesResponse, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
package/dist/index.d.ts
CHANGED
|
@@ -1750,6 +1750,117 @@ interface IdLookupResponse {
|
|
|
1750
1750
|
}>;
|
|
1751
1751
|
not_found: string[];
|
|
1752
1752
|
}
|
|
1753
|
+
interface RefereeNextMatch {
|
|
1754
|
+
event_id: string;
|
|
1755
|
+
commence_time: string;
|
|
1756
|
+
home_team: string;
|
|
1757
|
+
away_team: string;
|
|
1758
|
+
}
|
|
1759
|
+
interface RefereeSummary {
|
|
1760
|
+
referee: string;
|
|
1761
|
+
/** Graded matches. */
|
|
1762
|
+
matches: number;
|
|
1763
|
+
yellow_cards: number;
|
|
1764
|
+
red_cards: number;
|
|
1765
|
+
yellow_cards_per_match: number | null;
|
|
1766
|
+
red_cards_per_match: number | null;
|
|
1767
|
+
cards_per_match: number | null;
|
|
1768
|
+
last_match: string | null;
|
|
1769
|
+
/** Next appointment, or null. */
|
|
1770
|
+
next_match: RefereeNextMatch | null;
|
|
1771
|
+
}
|
|
1772
|
+
interface RefereesResponse {
|
|
1773
|
+
sport: string;
|
|
1774
|
+
count: number;
|
|
1775
|
+
referees: RefereeSummary[];
|
|
1776
|
+
}
|
|
1777
|
+
interface RefereesOptions {
|
|
1778
|
+
/** Referee name substring. */
|
|
1779
|
+
search?: string;
|
|
1780
|
+
/** YYYY-MM-DD. */
|
|
1781
|
+
since?: string;
|
|
1782
|
+
/** YYYY-MM-DD. */
|
|
1783
|
+
until?: string;
|
|
1784
|
+
}
|
|
1785
|
+
interface RefereeMatch {
|
|
1786
|
+
referee: string;
|
|
1787
|
+
event_id: string;
|
|
1788
|
+
commence_time: string;
|
|
1789
|
+
status: string | null;
|
|
1790
|
+
home_team: string;
|
|
1791
|
+
away_team: string;
|
|
1792
|
+
home_score: number | null;
|
|
1793
|
+
away_score: number | null;
|
|
1794
|
+
/** null until the match is graded. */
|
|
1795
|
+
yellow_cards: number | null;
|
|
1796
|
+
red_cards: number | null;
|
|
1797
|
+
home_yellow_cards: number | null;
|
|
1798
|
+
home_red_cards: number | null;
|
|
1799
|
+
away_yellow_cards: number | null;
|
|
1800
|
+
away_red_cards: number | null;
|
|
1801
|
+
}
|
|
1802
|
+
/** The summary fields, with `matches` replaced by the match list. */
|
|
1803
|
+
interface RefereeMatchesResponse extends Omit<RefereeSummary, "matches"> {
|
|
1804
|
+
sport: string;
|
|
1805
|
+
/** All matches held for this referee (graded + upcoming). */
|
|
1806
|
+
match_count: number;
|
|
1807
|
+
matches: RefereeMatch[];
|
|
1808
|
+
}
|
|
1809
|
+
interface RefereeMatchesOptions {
|
|
1810
|
+
/** YYYY-MM-DD. */
|
|
1811
|
+
since?: string;
|
|
1812
|
+
/** YYYY-MM-DD. */
|
|
1813
|
+
until?: string;
|
|
1814
|
+
/** 1-500 (default 100). */
|
|
1815
|
+
limit?: number;
|
|
1816
|
+
}
|
|
1817
|
+
interface MarketCoverageEntry {
|
|
1818
|
+
market: string;
|
|
1819
|
+
/** Period code (q1, h1, ...), null for full game. */
|
|
1820
|
+
period: string | null;
|
|
1821
|
+
/** Games in the window this book prices the market on. */
|
|
1822
|
+
events: number;
|
|
1823
|
+
/** Market rows (alt lines count separately). */
|
|
1824
|
+
markets: number;
|
|
1825
|
+
last_update: string | null;
|
|
1826
|
+
}
|
|
1827
|
+
interface MarketCoverageBook {
|
|
1828
|
+
key: string;
|
|
1829
|
+
title: string;
|
|
1830
|
+
/** Games in the window this book has any market on. */
|
|
1831
|
+
events: number;
|
|
1832
|
+
prop_market_count: number;
|
|
1833
|
+
game_lines: MarketCoverageEntry[];
|
|
1834
|
+
props: MarketCoverageEntry[];
|
|
1835
|
+
}
|
|
1836
|
+
interface MarketCoverageResponse {
|
|
1837
|
+
sport_key: string;
|
|
1838
|
+
days: number;
|
|
1839
|
+
/** Games in the window. */
|
|
1840
|
+
events: number;
|
|
1841
|
+
bookmakers: MarketCoverageBook[];
|
|
1842
|
+
}
|
|
1843
|
+
interface MarketCoverageOptions {
|
|
1844
|
+
/** 1-7 (default 3). */
|
|
1845
|
+
days?: number;
|
|
1846
|
+
/** Include quarter / half / inning markets (default false). */
|
|
1847
|
+
periods?: boolean;
|
|
1848
|
+
}
|
|
1849
|
+
interface HistoryCoverageBook {
|
|
1850
|
+
key: string;
|
|
1851
|
+
title: string;
|
|
1852
|
+
/** YYYY-MM-DD kickoff dates. */
|
|
1853
|
+
history_start: string | null;
|
|
1854
|
+
game_lines_start: string | null;
|
|
1855
|
+
props_start: string | null;
|
|
1856
|
+
latest_event: string | null;
|
|
1857
|
+
events: number;
|
|
1858
|
+
retired: boolean;
|
|
1859
|
+
}
|
|
1860
|
+
interface HistoryCoverageResponse {
|
|
1861
|
+
sport_key: string;
|
|
1862
|
+
bookmakers: HistoryCoverageBook[];
|
|
1863
|
+
}
|
|
1753
1864
|
|
|
1754
1865
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1755
1866
|
interface GetDfsPayoutsOptions {
|
|
@@ -2473,6 +2584,27 @@ declare class PropLine {
|
|
|
2473
2584
|
* the report. History starts 2026-10-18.
|
|
2474
2585
|
*/
|
|
2475
2586
|
getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Referee card stats for a sport (free tier). 32 soccer leagues: the
|
|
2589
|
+
* Premier League plus La Liga, Serie A, Bundesliga, Ligue 1, MLS,
|
|
2590
|
+
* Championship, Eredivisie, Liga MX, Brasileirao, the UEFA cups,
|
|
2591
|
+
* Libertadores, Sudamericana and others. Other sports return 404
|
|
2592
|
+
* `referees_not_available` with `available_sports`.
|
|
2593
|
+
*/
|
|
2594
|
+
getReferees(sport: string, options?: RefereesOptions): Promise<RefereesResponse>;
|
|
2595
|
+
/**
|
|
2596
|
+
* One referee's summary plus their matches with per-team cards
|
|
2597
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
2598
|
+
*/
|
|
2599
|
+
getRefereeMatches(sport: string, name: string, options?: RefereeMatchesOptions): Promise<RefereeMatchesResponse>;
|
|
2600
|
+
/**
|
|
2601
|
+
* Every market each book is pricing on a sport's games in the next `days`
|
|
2602
|
+
* days, and on how many of those games (free tier). `days` is 1-7
|
|
2603
|
+
* (default 3); `periods` adds quarter / half / inning markets.
|
|
2604
|
+
*/
|
|
2605
|
+
getMarketCoverage(sport: string, options?: MarketCoverageOptions): Promise<MarketCoverageResponse>;
|
|
2606
|
+
/** When each book's odds history starts for a sport (free tier). */
|
|
2607
|
+
getHistoryCoverage(sport: string): Promise<HistoryCoverageResponse>;
|
|
2476
2608
|
/**
|
|
2477
2609
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2478
2610
|
*
|
|
@@ -2988,6 +3120,6 @@ declare const Bookmakers: {
|
|
|
2988
3120
|
readonly PRIZEPICKS: "prizepicks";
|
|
2989
3121
|
};
|
|
2990
3122
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2991
|
-
declare const VERSION = "0.
|
|
3123
|
+
declare const VERSION = "0.72.0";
|
|
2992
3124
|
|
|
2993
|
-
export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
3125
|
+
export { AuthError, type BestLine, type BestLineSide, type BestPrice, type BookAccuracyOptions, type BookAccuracyReport, type BookAccuracyRow, type Bookmaker, type BookmakerKey, Bookmakers, type CalcEventEvOptions, type ClosingBookmaker, type ClosingMarket, type ClosingOutcome, type ClvBetInput, type ClvGradeResponse, type ClvGradedBet, type ClvSummary, type ContextResponse, type CreateWebhookOptions, type DepthLevel, type DfsPayoutTier, type DfsPayoutsResponse, type DfsPlayPayout, type EvLine, type EvOutcome, type EvWebhookPayload, type Event, type EventBestLineResponse, type EventEvCalcResponse, type EventEvResponse, type EventIds, type EventIdsBook, type EventProjectionsResponse, type ExportOddsHistoryOptions, type ExportResolvedPropsOptions, type FuturesEvent, type FuturesMarket, type FuturesOutcome, type GetDfsPayoutsOptions, type GetEventBestLineOptions, type GetEventEvOptions, type GetEventProjectionsOptions, type GetMlbGrandSalamiOptions, type GetMovementOptions, type GetNhlDailyGoalsTotalOptions, type GetOddsClosingOptions, type GetOddsHistoryOptions, type GetOddsOptions, type GetPlayerGamesOptions, type GetPlayerHistoryOptions, type GetPlayerTrendsOptions, type GetResultsOptions, type GetScoresOptions, type GetStatsOptions, type GolfRound, type GolfRoundSplit, type GolfRoundsOptions, type GolfRoundsResponse, type GolfTournament, type GolfTournamentsOptions, type HistoryCoverageBook, type HistoryCoverageResponse, type HitRateSplit, type IdLookupResponse, type InjuredPlayer, type InjuryHistory, type InjuryHistoryOptions, type InjuryReport, type InjuryReportOptions, type InjuryStatusChange, type InjuryStatusCode, type LineMovementPrice, type LineMovementWebhookPayload, type LineType, type ListWebhookDeliveriesOptions, type Market, type MarketCoverageBook, type MarketCoverageEntry, type MarketCoverageOptions, type MarketCoverageResponse, type MarketSummary, type MlbGrandSalamiBook, type MlbGrandSalamiResponse, type MovementBookmaker, type MovementMarket, type MovementOutcome, type MovementResponse, type NhlDailyGoalsTotalBook, type NhlDailyGoalsTotalResponse, type OddsClosingResponse, type OddsHistoryBookmaker, type OddsHistoryMarket, type OddsHistoryOutcome, type OddsHistoryResponse, type OddsResponse, type Outcome, type OutcomeSnapshot, type ParlayLegInput, type ParlayLegPriced, type ParlayPriceResponse, type PeriodFilter, type PlayerGame, type PlayerGameLog, type PlayerHistoryEntry, type PlayerHistoryResponse, type PlayerMarketTrend, type PlayerSearchResponse, type PlayerSearchResult, type PlayerStat, type PlayerTrends, type ProjectionRow, PropLine, PropLineError, type PropLineErrorInfo, type PropLineOptions, type QuotaStatus, RateLimitError, type RefereeMatch, type RefereeMatchesOptions, type RefereeMatchesResponse, type RefereeNextMatch, type RefereeSummary, type RefereesOptions, type RefereesResponse, type ReplayEvent, type ReplayPage, type ReplayWebhookEventsOptions, type ResolutionSummary, type ResolutionSummaryMarket, type ResolutionSummarySport, type ResolvedOutcome, type ResultsMarket, type ResultsResponse, type ScoreEvent, type SearchPlayersOptions, type SettleBetInput, type SettleLegInput, type SettleResponse, type SettleResult, type SettledBet, type SettledLeg, type SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
package/dist/index.js
CHANGED
|
@@ -418,6 +418,56 @@ var PropLine = class {
|
|
|
418
418
|
{ params }
|
|
419
419
|
);
|
|
420
420
|
}
|
|
421
|
+
/**
|
|
422
|
+
* Referee card stats for a sport (free tier). 32 soccer leagues: the
|
|
423
|
+
* Premier League plus La Liga, Serie A, Bundesliga, Ligue 1, MLS,
|
|
424
|
+
* Championship, Eredivisie, Liga MX, Brasileirao, the UEFA cups,
|
|
425
|
+
* Libertadores, Sudamericana and others. Other sports return 404
|
|
426
|
+
* `referees_not_available` with `available_sports`.
|
|
427
|
+
*/
|
|
428
|
+
getReferees(sport, options = {}) {
|
|
429
|
+
const params = {};
|
|
430
|
+
if (options.search) params.search = options.search;
|
|
431
|
+
if (options.since) params.since = options.since;
|
|
432
|
+
if (options.until) params.until = options.until;
|
|
433
|
+
return this._request(
|
|
434
|
+
"GET",
|
|
435
|
+
`/sports/${encodeURIComponent(sport)}/referees`,
|
|
436
|
+
{ params }
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* One referee's summary plus their matches with per-team cards
|
|
441
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
442
|
+
*/
|
|
443
|
+
getRefereeMatches(sport, name, options = {}) {
|
|
444
|
+
const params = {};
|
|
445
|
+
if (options.since) params.since = options.since;
|
|
446
|
+
if (options.until) params.until = options.until;
|
|
447
|
+
if (options.limit !== void 0) params.limit = String(options.limit);
|
|
448
|
+
return this._request(
|
|
449
|
+
"GET",
|
|
450
|
+
`/sports/${encodeURIComponent(sport)}/referees/${encodeURIComponent(name)}/matches`,
|
|
451
|
+
{ params }
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Every market each book is pricing on a sport's games in the next `days`
|
|
456
|
+
* days, and on how many of those games (free tier). `days` is 1-7
|
|
457
|
+
* (default 3); `periods` adds quarter / half / inning markets.
|
|
458
|
+
*/
|
|
459
|
+
getMarketCoverage(sport, options = {}) {
|
|
460
|
+
const params = { sport };
|
|
461
|
+
if (options.days !== void 0) params.days = String(options.days);
|
|
462
|
+
if (options.periods !== void 0) params.periods = options.periods ? "true" : "false";
|
|
463
|
+
return this._request("GET", "/coverage/markets", { params });
|
|
464
|
+
}
|
|
465
|
+
/** When each book's odds history starts for a sport (free tier). */
|
|
466
|
+
getHistoryCoverage(sport) {
|
|
467
|
+
return this._request("GET", "/coverage/history", {
|
|
468
|
+
params: { sport }
|
|
469
|
+
});
|
|
470
|
+
}
|
|
421
471
|
/**
|
|
422
472
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
423
473
|
*
|
|
@@ -1244,7 +1294,7 @@ var Bookmakers = {
|
|
|
1244
1294
|
POLYMARKET: "polymarket",
|
|
1245
1295
|
PRIZEPICKS: "prizepicks"
|
|
1246
1296
|
};
|
|
1247
|
-
var VERSION = "0.
|
|
1297
|
+
var VERSION = "0.72.0";
|
|
1248
1298
|
export {
|
|
1249
1299
|
AuthError,
|
|
1250
1300
|
Bookmakers,
|