propline 0.63.2 → 0.65.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 +13 -2
- package/dist/index.cjs +24 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -4
- package/dist/index.d.ts +81 -4
- package/dist/index.js +24 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -647,6 +647,68 @@ interface BookAccuracyOptions {
|
|
|
647
647
|
/** Optional sport key, e.g. "baseball_mlb". */
|
|
648
648
|
sport?: string;
|
|
649
649
|
}
|
|
650
|
+
/** One completed golf round. Hole counts are null where the source
|
|
651
|
+
* publishes only the round score (DP World, LPGA, some LIV rounds). */
|
|
652
|
+
interface GolfRound {
|
|
653
|
+
tour: string;
|
|
654
|
+
espn_event_id: string;
|
|
655
|
+
tournament: string;
|
|
656
|
+
season: number | null;
|
|
657
|
+
player_id: string;
|
|
658
|
+
player_name: string;
|
|
659
|
+
round: number;
|
|
660
|
+
round_date: string;
|
|
661
|
+
strokes: number;
|
|
662
|
+
to_par: number | null;
|
|
663
|
+
holes: number | null;
|
|
664
|
+
eagles: number | null;
|
|
665
|
+
birdies: number | null;
|
|
666
|
+
pars: number | null;
|
|
667
|
+
bogeys: number | null;
|
|
668
|
+
double_bogeys_or_worse: number | null;
|
|
669
|
+
}
|
|
670
|
+
interface GolfRoundSplit {
|
|
671
|
+
rounds: number;
|
|
672
|
+
avg_strokes: number | null;
|
|
673
|
+
avg_to_par: number | null;
|
|
674
|
+
avg_birdies: number | null;
|
|
675
|
+
avg_bogeys: number | null;
|
|
676
|
+
}
|
|
677
|
+
interface GolfRoundsResponse {
|
|
678
|
+
player_name: string;
|
|
679
|
+
player_id: string;
|
|
680
|
+
tours: string[];
|
|
681
|
+
rounds: GolfRound[];
|
|
682
|
+
summary: {
|
|
683
|
+
last_5: GolfRoundSplit;
|
|
684
|
+
last_10: GolfRoundSplit;
|
|
685
|
+
last_20: GolfRoundSplit;
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
interface GolfRoundsOptions {
|
|
689
|
+
/** Comma-separated tours: pga, dp_world, liv, lpga, korn_ferry, champions. Omit for all. */
|
|
690
|
+
tour?: string;
|
|
691
|
+
/** Rounds to return, 1-200 (default 20). */
|
|
692
|
+
limit?: number;
|
|
693
|
+
/** YYYY-MM-DD; only rounds on or after it. */
|
|
694
|
+
since?: string;
|
|
695
|
+
}
|
|
696
|
+
interface GolfTournament {
|
|
697
|
+
tour: string;
|
|
698
|
+
espn_event_id: string;
|
|
699
|
+
tournament: string;
|
|
700
|
+
season: number | null;
|
|
701
|
+
start_date: string;
|
|
702
|
+
players: number;
|
|
703
|
+
rounds_played: number;
|
|
704
|
+
player_rounds: number;
|
|
705
|
+
}
|
|
706
|
+
interface GolfTournamentsOptions {
|
|
707
|
+
tour?: string;
|
|
708
|
+
season?: number;
|
|
709
|
+
/** 1-500 (default 50). */
|
|
710
|
+
limit?: number;
|
|
711
|
+
}
|
|
650
712
|
interface PlayerStat {
|
|
651
713
|
player_name: string;
|
|
652
714
|
team_abbr: string;
|
|
@@ -1070,7 +1132,8 @@ interface EventBestLineResponse {
|
|
|
1070
1132
|
commence_time: string;
|
|
1071
1133
|
/**
|
|
1072
1134
|
* Books that quoted at least one line on this event. DFS pick'em
|
|
1073
|
-
* books (PrizePicks, Sleeper, Dabble
|
|
1135
|
+
* books (PrizePicks, Sleeper, Dabble, ParlayPlay,
|
|
1136
|
+
* DraftKings Pick6) are always excluded from
|
|
1074
1137
|
* best-line responses — their quotes aren't independently bettable
|
|
1075
1138
|
* payouts; Underdog is included only at its clean two-way lines
|
|
1076
1139
|
* (payout_multiplier == 1.0).
|
|
@@ -1874,8 +1937,13 @@ interface ExportOddsHistoryOptions {
|
|
|
1874
1937
|
* `ev` = push version of `/ev`: a fresh pregame price whose EV% against the
|
|
1875
1938
|
* fair line is within [minEvPct, maxEvPct], once per subscription per price
|
|
1876
1939
|
* (an analytical signal, not a claim of profit).
|
|
1940
|
+
* `line_added` / `line_pulled` are opt-in (never in the default): a book
|
|
1941
|
+
* posted a new line on a game it already prices or a pulled line returned
|
|
1942
|
+
* (`reason` "new" | "returned", `previous` null), and we stopped serving a
|
|
1943
|
+
* line the book pulled (sent once, `current` null). Same fields as
|
|
1944
|
+
* line_movement.
|
|
1877
1945
|
*/
|
|
1878
|
-
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
|
|
1946
|
+
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev" | "line_added" | "line_pulled";
|
|
1879
1947
|
interface CreateWebhookOptions {
|
|
1880
1948
|
/** HTTPS endpoint to receive POSTed events. Required. */
|
|
1881
1949
|
url: string;
|
|
@@ -2155,6 +2223,15 @@ declare class PropLine {
|
|
|
2155
2223
|
*/
|
|
2156
2224
|
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2157
2225
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2226
|
+
/**
|
|
2227
|
+
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
2228
|
+
* Every player in the field, every tour, back to 2024. A round in progress
|
|
2229
|
+
* is never included. `player` is a name (case/accents ignored) or ESPN
|
|
2230
|
+
* athlete id. Free tier.
|
|
2231
|
+
*/
|
|
2232
|
+
getGolfRounds(player: string, options?: GolfRoundsOptions): Promise<GolfRoundsResponse>;
|
|
2233
|
+
/** Golf tournaments we hold round data for, newest first. Free tier. */
|
|
2234
|
+
getGolfTournaments(options?: GolfTournamentsOptions): Promise<GolfTournament[]>;
|
|
2158
2235
|
/**
|
|
2159
2236
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2160
2237
|
*
|
|
@@ -2642,6 +2719,6 @@ declare const Bookmakers: {
|
|
|
2642
2719
|
readonly PRIZEPICKS: "prizepicks";
|
|
2643
2720
|
};
|
|
2644
2721
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2645
|
-
declare const VERSION = "0.
|
|
2722
|
+
declare const VERSION = "0.65.0";
|
|
2646
2723
|
|
|
2647
|
-
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 HitRateSplit, 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 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 SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
2724
|
+
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 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 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 SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, 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
|
@@ -647,6 +647,68 @@ interface BookAccuracyOptions {
|
|
|
647
647
|
/** Optional sport key, e.g. "baseball_mlb". */
|
|
648
648
|
sport?: string;
|
|
649
649
|
}
|
|
650
|
+
/** One completed golf round. Hole counts are null where the source
|
|
651
|
+
* publishes only the round score (DP World, LPGA, some LIV rounds). */
|
|
652
|
+
interface GolfRound {
|
|
653
|
+
tour: string;
|
|
654
|
+
espn_event_id: string;
|
|
655
|
+
tournament: string;
|
|
656
|
+
season: number | null;
|
|
657
|
+
player_id: string;
|
|
658
|
+
player_name: string;
|
|
659
|
+
round: number;
|
|
660
|
+
round_date: string;
|
|
661
|
+
strokes: number;
|
|
662
|
+
to_par: number | null;
|
|
663
|
+
holes: number | null;
|
|
664
|
+
eagles: number | null;
|
|
665
|
+
birdies: number | null;
|
|
666
|
+
pars: number | null;
|
|
667
|
+
bogeys: number | null;
|
|
668
|
+
double_bogeys_or_worse: number | null;
|
|
669
|
+
}
|
|
670
|
+
interface GolfRoundSplit {
|
|
671
|
+
rounds: number;
|
|
672
|
+
avg_strokes: number | null;
|
|
673
|
+
avg_to_par: number | null;
|
|
674
|
+
avg_birdies: number | null;
|
|
675
|
+
avg_bogeys: number | null;
|
|
676
|
+
}
|
|
677
|
+
interface GolfRoundsResponse {
|
|
678
|
+
player_name: string;
|
|
679
|
+
player_id: string;
|
|
680
|
+
tours: string[];
|
|
681
|
+
rounds: GolfRound[];
|
|
682
|
+
summary: {
|
|
683
|
+
last_5: GolfRoundSplit;
|
|
684
|
+
last_10: GolfRoundSplit;
|
|
685
|
+
last_20: GolfRoundSplit;
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
interface GolfRoundsOptions {
|
|
689
|
+
/** Comma-separated tours: pga, dp_world, liv, lpga, korn_ferry, champions. Omit for all. */
|
|
690
|
+
tour?: string;
|
|
691
|
+
/** Rounds to return, 1-200 (default 20). */
|
|
692
|
+
limit?: number;
|
|
693
|
+
/** YYYY-MM-DD; only rounds on or after it. */
|
|
694
|
+
since?: string;
|
|
695
|
+
}
|
|
696
|
+
interface GolfTournament {
|
|
697
|
+
tour: string;
|
|
698
|
+
espn_event_id: string;
|
|
699
|
+
tournament: string;
|
|
700
|
+
season: number | null;
|
|
701
|
+
start_date: string;
|
|
702
|
+
players: number;
|
|
703
|
+
rounds_played: number;
|
|
704
|
+
player_rounds: number;
|
|
705
|
+
}
|
|
706
|
+
interface GolfTournamentsOptions {
|
|
707
|
+
tour?: string;
|
|
708
|
+
season?: number;
|
|
709
|
+
/** 1-500 (default 50). */
|
|
710
|
+
limit?: number;
|
|
711
|
+
}
|
|
650
712
|
interface PlayerStat {
|
|
651
713
|
player_name: string;
|
|
652
714
|
team_abbr: string;
|
|
@@ -1070,7 +1132,8 @@ interface EventBestLineResponse {
|
|
|
1070
1132
|
commence_time: string;
|
|
1071
1133
|
/**
|
|
1072
1134
|
* Books that quoted at least one line on this event. DFS pick'em
|
|
1073
|
-
* books (PrizePicks, Sleeper, Dabble
|
|
1135
|
+
* books (PrizePicks, Sleeper, Dabble, ParlayPlay,
|
|
1136
|
+
* DraftKings Pick6) are always excluded from
|
|
1074
1137
|
* best-line responses — their quotes aren't independently bettable
|
|
1075
1138
|
* payouts; Underdog is included only at its clean two-way lines
|
|
1076
1139
|
* (payout_multiplier == 1.0).
|
|
@@ -1874,8 +1937,13 @@ interface ExportOddsHistoryOptions {
|
|
|
1874
1937
|
* `ev` = push version of `/ev`: a fresh pregame price whose EV% against the
|
|
1875
1938
|
* fair line is within [minEvPct, maxEvPct], once per subscription per price
|
|
1876
1939
|
* (an analytical signal, not a claim of profit).
|
|
1940
|
+
* `line_added` / `line_pulled` are opt-in (never in the default): a book
|
|
1941
|
+
* posted a new line on a game it already prices or a pulled line returned
|
|
1942
|
+
* (`reason` "new" | "returned", `previous` null), and we stopped serving a
|
|
1943
|
+
* line the book pulled (sent once, `current` null). Same fields as
|
|
1944
|
+
* line_movement.
|
|
1877
1945
|
*/
|
|
1878
|
-
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev";
|
|
1946
|
+
type WebhookEventType = "line_movement" | "resolution" | "steam" | "market_suspended" | "ev" | "line_added" | "line_pulled";
|
|
1879
1947
|
interface CreateWebhookOptions {
|
|
1880
1948
|
/** HTTPS endpoint to receive POSTed events. Required. */
|
|
1881
1949
|
url: string;
|
|
@@ -2155,6 +2223,15 @@ declare class PropLine {
|
|
|
2155
2223
|
*/
|
|
2156
2224
|
getEventIds(sport: string): Promise<EventIds[]>;
|
|
2157
2225
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2226
|
+
/**
|
|
2227
|
+
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
2228
|
+
* Every player in the field, every tour, back to 2024. A round in progress
|
|
2229
|
+
* is never included. `player` is a name (case/accents ignored) or ESPN
|
|
2230
|
+
* athlete id. Free tier.
|
|
2231
|
+
*/
|
|
2232
|
+
getGolfRounds(player: string, options?: GolfRoundsOptions): Promise<GolfRoundsResponse>;
|
|
2233
|
+
/** Golf tournaments we hold round data for, newest first. Free tier. */
|
|
2234
|
+
getGolfTournaments(options?: GolfTournamentsOptions): Promise<GolfTournament[]>;
|
|
2158
2235
|
/**
|
|
2159
2236
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2160
2237
|
*
|
|
@@ -2642,6 +2719,6 @@ declare const Bookmakers: {
|
|
|
2642
2719
|
readonly PRIZEPICKS: "prizepicks";
|
|
2643
2720
|
};
|
|
2644
2721
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2645
|
-
declare const VERSION = "0.
|
|
2722
|
+
declare const VERSION = "0.65.0";
|
|
2646
2723
|
|
|
2647
|
-
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 HitRateSplit, 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 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 SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
2724
|
+
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 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 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 SgpBookError, type SgpLegInput, type SgpLegQuote, type SgpMultiQuoteResponse, type SgpQuoteResponse, type Sport, type StatsResponse, type SteamMove, type SteamWebhookPayload, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
package/dist/index.js
CHANGED
|
@@ -348,6 +348,29 @@ var PropLine = class {
|
|
|
348
348
|
if (options.sport) params.sport = options.sport;
|
|
349
349
|
return this._request("GET", "/books/accuracy", { params });
|
|
350
350
|
}
|
|
351
|
+
/**
|
|
352
|
+
* A golfer's completed rounds, newest first, plus last-5/10/20 averages.
|
|
353
|
+
* Every player in the field, every tour, back to 2024. A round in progress
|
|
354
|
+
* is never included. `player` is a name (case/accents ignored) or ESPN
|
|
355
|
+
* athlete id. Free tier.
|
|
356
|
+
*/
|
|
357
|
+
getGolfRounds(player, options = {}) {
|
|
358
|
+
const params = { limit: String(options.limit ?? 20) };
|
|
359
|
+
if (options.tour) params.tour = options.tour;
|
|
360
|
+
if (options.since) params.since = options.since;
|
|
361
|
+
return this._request(
|
|
362
|
+
"GET",
|
|
363
|
+
`/golf/players/${encodeURIComponent(player)}/rounds`,
|
|
364
|
+
{ params }
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
/** Golf tournaments we hold round data for, newest first. Free tier. */
|
|
368
|
+
getGolfTournaments(options = {}) {
|
|
369
|
+
const params = { limit: String(options.limit ?? 50) };
|
|
370
|
+
if (options.tour) params.tour = options.tour;
|
|
371
|
+
if (options.season) params.season = String(options.season);
|
|
372
|
+
return this._request("GET", "/golf/tournaments", { params });
|
|
373
|
+
}
|
|
351
374
|
/**
|
|
352
375
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
353
376
|
*
|
|
@@ -1141,7 +1164,7 @@ var Bookmakers = {
|
|
|
1141
1164
|
POLYMARKET: "polymarket",
|
|
1142
1165
|
PRIZEPICKS: "prizepicks"
|
|
1143
1166
|
};
|
|
1144
|
-
var VERSION = "0.
|
|
1167
|
+
var VERSION = "0.65.0";
|
|
1145
1168
|
export {
|
|
1146
1169
|
AuthError,
|
|
1147
1170
|
Bookmakers,
|