propline 0.67.0 → 0.68.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 -0
- package/dist/index.cjs +31 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -2
- package/dist/index.d.ts +76 -2
- package/dist/index.js +31 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1567,6 +1567,67 @@ interface SgpMultiQuoteResponse {
|
|
|
1567
1567
|
redacted?: boolean;
|
|
1568
1568
|
upgrade_url?: string | null;
|
|
1569
1569
|
}
|
|
1570
|
+
type InjuryStatusCode = "out" | "doubtful" | "questionable" | "probable" | "day_to_day" | "injured_list" | "suspended" | "other";
|
|
1571
|
+
interface InjuredPlayer {
|
|
1572
|
+
player_name: string;
|
|
1573
|
+
/** Same id as odds outcomes; null where none can be matched. */
|
|
1574
|
+
player_id: string | null;
|
|
1575
|
+
espn_athlete_id: string;
|
|
1576
|
+
team: string | null;
|
|
1577
|
+
team_abbr: string | null;
|
|
1578
|
+
position: string | null;
|
|
1579
|
+
/** ESPN's wording, e.g. "Out", "Questionable", "15-Day-IL". */
|
|
1580
|
+
status: string;
|
|
1581
|
+
status_code: InjuryStatusCode;
|
|
1582
|
+
injury_type: string | null;
|
|
1583
|
+
body_part: string | null;
|
|
1584
|
+
detail: string | null;
|
|
1585
|
+
side: string | null;
|
|
1586
|
+
/** YYYY-MM-DD or null. */
|
|
1587
|
+
expected_return: string | null;
|
|
1588
|
+
/** When the current status began (when we first saw it). */
|
|
1589
|
+
status_since: string;
|
|
1590
|
+
/** ESPN's own update time. */
|
|
1591
|
+
source_updated_at: string | null;
|
|
1592
|
+
}
|
|
1593
|
+
interface InjuryReport {
|
|
1594
|
+
sport: string;
|
|
1595
|
+
count: number;
|
|
1596
|
+
players: InjuredPlayer[];
|
|
1597
|
+
}
|
|
1598
|
+
interface InjuryReportOptions {
|
|
1599
|
+
/** Team name or abbreviation, e.g. "KC". */
|
|
1600
|
+
team?: string;
|
|
1601
|
+
/** Comma-separated status codes, e.g. "out,questionable". */
|
|
1602
|
+
status?: string;
|
|
1603
|
+
}
|
|
1604
|
+
interface InjuryStatusChange {
|
|
1605
|
+
player_name: string;
|
|
1606
|
+
player_id: string | null;
|
|
1607
|
+
espn_athlete_id: string;
|
|
1608
|
+
team: string | null;
|
|
1609
|
+
old_status: string | null;
|
|
1610
|
+
/** null when the player came off the report. */
|
|
1611
|
+
new_status: string | null;
|
|
1612
|
+
/** A status code, or "cleared" when the player came off the report. */
|
|
1613
|
+
new_status_code: InjuryStatusCode | "cleared";
|
|
1614
|
+
changed_at: string;
|
|
1615
|
+
source_updated_at: string | null;
|
|
1616
|
+
}
|
|
1617
|
+
interface InjuryHistory {
|
|
1618
|
+
sport: string;
|
|
1619
|
+
days: number;
|
|
1620
|
+
count: number;
|
|
1621
|
+
/** True when the 2,000-row cap was hit. */
|
|
1622
|
+
truncated: boolean;
|
|
1623
|
+
changes: InjuryStatusChange[];
|
|
1624
|
+
}
|
|
1625
|
+
interface InjuryHistoryOptions {
|
|
1626
|
+
/** 1-90 (default 7). */
|
|
1627
|
+
days?: number;
|
|
1628
|
+
/** Player name, case-insensitive substring. */
|
|
1629
|
+
player?: string;
|
|
1630
|
+
}
|
|
1570
1631
|
|
|
1571
1632
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1572
1633
|
interface GetDfsPayoutsOptions {
|
|
@@ -2266,6 +2327,19 @@ declare class PropLine {
|
|
|
2266
2327
|
getGolfRounds(player: string, options?: GolfRoundsOptions): Promise<GolfRoundsResponse>;
|
|
2267
2328
|
/** Golf tournaments we hold round data for, newest first. Free tier. */
|
|
2268
2329
|
getGolfTournaments(options?: GolfTournamentsOptions): Promise<GolfTournament[]>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Current injury report for a sport (free tier): NFL, NCAAF, NBA, WNBA,
|
|
2332
|
+
* NHL, MLB. Each player has status, injury, expected return and
|
|
2333
|
+
* `status_since` (when the current status began). Source: ESPN, every
|
|
2334
|
+
* 10 minutes.
|
|
2335
|
+
*/
|
|
2336
|
+
getInjuries(sport: string, options?: InjuryReportOptions): Promise<InjuryReport>;
|
|
2337
|
+
/**
|
|
2338
|
+
* Every injury status change in the last `days` days (1-90, default 7),
|
|
2339
|
+
* newest first (free tier). `new_status` is null when the player came off
|
|
2340
|
+
* the report. History starts 2026-10-18.
|
|
2341
|
+
*/
|
|
2342
|
+
getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
|
|
2269
2343
|
/**
|
|
2270
2344
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2271
2345
|
*
|
|
@@ -2753,6 +2827,6 @@ declare const Bookmakers: {
|
|
|
2753
2827
|
readonly PRIZEPICKS: "prizepicks";
|
|
2754
2828
|
};
|
|
2755
2829
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2756
|
-
declare const VERSION = "0.
|
|
2830
|
+
declare const VERSION = "0.68.0";
|
|
2757
2831
|
|
|
2758
|
-
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 StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
2832
|
+
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 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 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 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
|
@@ -1567,6 +1567,67 @@ interface SgpMultiQuoteResponse {
|
|
|
1567
1567
|
redacted?: boolean;
|
|
1568
1568
|
upgrade_url?: string | null;
|
|
1569
1569
|
}
|
|
1570
|
+
type InjuryStatusCode = "out" | "doubtful" | "questionable" | "probable" | "day_to_day" | "injured_list" | "suspended" | "other";
|
|
1571
|
+
interface InjuredPlayer {
|
|
1572
|
+
player_name: string;
|
|
1573
|
+
/** Same id as odds outcomes; null where none can be matched. */
|
|
1574
|
+
player_id: string | null;
|
|
1575
|
+
espn_athlete_id: string;
|
|
1576
|
+
team: string | null;
|
|
1577
|
+
team_abbr: string | null;
|
|
1578
|
+
position: string | null;
|
|
1579
|
+
/** ESPN's wording, e.g. "Out", "Questionable", "15-Day-IL". */
|
|
1580
|
+
status: string;
|
|
1581
|
+
status_code: InjuryStatusCode;
|
|
1582
|
+
injury_type: string | null;
|
|
1583
|
+
body_part: string | null;
|
|
1584
|
+
detail: string | null;
|
|
1585
|
+
side: string | null;
|
|
1586
|
+
/** YYYY-MM-DD or null. */
|
|
1587
|
+
expected_return: string | null;
|
|
1588
|
+
/** When the current status began (when we first saw it). */
|
|
1589
|
+
status_since: string;
|
|
1590
|
+
/** ESPN's own update time. */
|
|
1591
|
+
source_updated_at: string | null;
|
|
1592
|
+
}
|
|
1593
|
+
interface InjuryReport {
|
|
1594
|
+
sport: string;
|
|
1595
|
+
count: number;
|
|
1596
|
+
players: InjuredPlayer[];
|
|
1597
|
+
}
|
|
1598
|
+
interface InjuryReportOptions {
|
|
1599
|
+
/** Team name or abbreviation, e.g. "KC". */
|
|
1600
|
+
team?: string;
|
|
1601
|
+
/** Comma-separated status codes, e.g. "out,questionable". */
|
|
1602
|
+
status?: string;
|
|
1603
|
+
}
|
|
1604
|
+
interface InjuryStatusChange {
|
|
1605
|
+
player_name: string;
|
|
1606
|
+
player_id: string | null;
|
|
1607
|
+
espn_athlete_id: string;
|
|
1608
|
+
team: string | null;
|
|
1609
|
+
old_status: string | null;
|
|
1610
|
+
/** null when the player came off the report. */
|
|
1611
|
+
new_status: string | null;
|
|
1612
|
+
/** A status code, or "cleared" when the player came off the report. */
|
|
1613
|
+
new_status_code: InjuryStatusCode | "cleared";
|
|
1614
|
+
changed_at: string;
|
|
1615
|
+
source_updated_at: string | null;
|
|
1616
|
+
}
|
|
1617
|
+
interface InjuryHistory {
|
|
1618
|
+
sport: string;
|
|
1619
|
+
days: number;
|
|
1620
|
+
count: number;
|
|
1621
|
+
/** True when the 2,000-row cap was hit. */
|
|
1622
|
+
truncated: boolean;
|
|
1623
|
+
changes: InjuryStatusChange[];
|
|
1624
|
+
}
|
|
1625
|
+
interface InjuryHistoryOptions {
|
|
1626
|
+
/** 1-90 (default 7). */
|
|
1627
|
+
days?: number;
|
|
1628
|
+
/** Player name, case-insensitive substring. */
|
|
1629
|
+
player?: string;
|
|
1630
|
+
}
|
|
1570
1631
|
|
|
1571
1632
|
/** Options for {@link PropLineClient.getDfsPayouts}. */
|
|
1572
1633
|
interface GetDfsPayoutsOptions {
|
|
@@ -2266,6 +2327,19 @@ declare class PropLine {
|
|
|
2266
2327
|
getGolfRounds(player: string, options?: GolfRoundsOptions): Promise<GolfRoundsResponse>;
|
|
2267
2328
|
/** Golf tournaments we hold round data for, newest first. Free tier. */
|
|
2268
2329
|
getGolfTournaments(options?: GolfTournamentsOptions): Promise<GolfTournament[]>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Current injury report for a sport (free tier): NFL, NCAAF, NBA, WNBA,
|
|
2332
|
+
* NHL, MLB. Each player has status, injury, expected return and
|
|
2333
|
+
* `status_since` (when the current status began). Source: ESPN, every
|
|
2334
|
+
* 10 minutes.
|
|
2335
|
+
*/
|
|
2336
|
+
getInjuries(sport: string, options?: InjuryReportOptions): Promise<InjuryReport>;
|
|
2337
|
+
/**
|
|
2338
|
+
* Every injury status change in the last `days` days (1-90, default 7),
|
|
2339
|
+
* newest first (free tier). `new_status` is null when the player came off
|
|
2340
|
+
* the report. History starts 2026-10-18.
|
|
2341
|
+
*/
|
|
2342
|
+
getInjuryHistory(sport: string, options?: InjuryHistoryOptions): Promise<InjuryHistory>;
|
|
2269
2343
|
/**
|
|
2270
2344
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
2271
2345
|
*
|
|
@@ -2753,6 +2827,6 @@ declare const Bookmakers: {
|
|
|
2753
2827
|
readonly PRIZEPICKS: "prizepicks";
|
|
2754
2828
|
};
|
|
2755
2829
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2756
|
-
declare const VERSION = "0.
|
|
2830
|
+
declare const VERSION = "0.68.0";
|
|
2757
2831
|
|
|
2758
|
-
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 StreamHeartbeat, type StreamHeartbeatBook, type StreamOptions, type TrendLastGame, type TrendStreak, type UpdateWebhookOptions, VERSION, type VerifySignatureOptions, type WeatherInfo, type Webhook, type WebhookDelivery, type WebhookEventType };
|
|
2832
|
+
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 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 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 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
|
@@ -372,6 +372,36 @@ var PropLine = class {
|
|
|
372
372
|
if (options.season) params.season = String(options.season);
|
|
373
373
|
return this._request("GET", "/golf/tournaments", { params });
|
|
374
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Current injury report for a sport (free tier): NFL, NCAAF, NBA, WNBA,
|
|
377
|
+
* NHL, MLB. Each player has status, injury, expected return and
|
|
378
|
+
* `status_since` (when the current status began). Source: ESPN, every
|
|
379
|
+
* 10 minutes.
|
|
380
|
+
*/
|
|
381
|
+
getInjuries(sport, options = {}) {
|
|
382
|
+
const params = {};
|
|
383
|
+
if (options.team) params.team = options.team;
|
|
384
|
+
if (options.status) params.status = options.status;
|
|
385
|
+
return this._request(
|
|
386
|
+
"GET",
|
|
387
|
+
`/sports/${encodeURIComponent(sport)}/injuries`,
|
|
388
|
+
{ params }
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Every injury status change in the last `days` days (1-90, default 7),
|
|
393
|
+
* newest first (free tier). `new_status` is null when the player came off
|
|
394
|
+
* the report. History starts 2026-10-18.
|
|
395
|
+
*/
|
|
396
|
+
getInjuryHistory(sport, options = {}) {
|
|
397
|
+
const params = { days: String(options.days ?? 7) };
|
|
398
|
+
if (options.player) params.player = options.player;
|
|
399
|
+
return this._request(
|
|
400
|
+
"GET",
|
|
401
|
+
`/sports/${encodeURIComponent(sport)}/injuries/history`,
|
|
402
|
+
{ params }
|
|
403
|
+
);
|
|
404
|
+
}
|
|
375
405
|
/**
|
|
376
406
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
377
407
|
*
|
|
@@ -1167,7 +1197,7 @@ var Bookmakers = {
|
|
|
1167
1197
|
POLYMARKET: "polymarket",
|
|
1168
1198
|
PRIZEPICKS: "prizepicks"
|
|
1169
1199
|
};
|
|
1170
|
-
var VERSION = "0.
|
|
1200
|
+
var VERSION = "0.68.0";
|
|
1171
1201
|
export {
|
|
1172
1202
|
AuthError,
|
|
1173
1203
|
Bookmakers,
|