propline 0.64.0 → 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/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;
@@ -2161,6 +2223,15 @@ declare class PropLine {
2161
2223
  */
2162
2224
  getEventIds(sport: string): Promise<EventIds[]>;
2163
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[]>;
2164
2235
  /**
2165
2236
  * Get raw player/team box-score stats (book-agnostic, free tier).
2166
2237
  *
@@ -2648,6 +2719,6 @@ declare const Bookmakers: {
2648
2719
  readonly PRIZEPICKS: "prizepicks";
2649
2720
  };
2650
2721
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2651
- declare const VERSION = "0.64.0";
2722
+ declare const VERSION = "0.65.0";
2652
2723
 
2653
- 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;
@@ -2161,6 +2223,15 @@ declare class PropLine {
2161
2223
  */
2162
2224
  getEventIds(sport: string): Promise<EventIds[]>;
2163
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[]>;
2164
2235
  /**
2165
2236
  * Get raw player/team box-score stats (book-agnostic, free tier).
2166
2237
  *
@@ -2648,6 +2719,6 @@ declare const Bookmakers: {
2648
2719
  readonly PRIZEPICKS: "prizepicks";
2649
2720
  };
2650
2721
  type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
2651
- declare const VERSION = "0.64.0";
2722
+ declare const VERSION = "0.65.0";
2652
2723
 
2653
- 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.64.0";
1167
+ var VERSION = "0.65.0";
1145
1168
  export {
1146
1169
  AuthError,
1147
1170
  Bookmakers,