propline 0.72.0 → 0.73.1
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 +5 -5
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1747,7 +1747,11 @@ interface IdLookupResponse {
|
|
|
1747
1747
|
completed: boolean;
|
|
1748
1748
|
home_score: number | null;
|
|
1749
1749
|
away_score: number | null;
|
|
1750
|
+
/** Name lookups only: minutes between this event's kickoff and the one asked for. */
|
|
1751
|
+
kickoff_delta_minutes?: number;
|
|
1750
1752
|
}>;
|
|
1753
|
+
/** Name lookups only: more than one event matched. */
|
|
1754
|
+
ambiguous?: boolean;
|
|
1751
1755
|
not_found: string[];
|
|
1752
1756
|
}
|
|
1753
1757
|
interface RefereeNextMatch {
|
|
@@ -2554,12 +2558,21 @@ declare class PropLine {
|
|
|
2554
2558
|
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
2555
2559
|
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
2556
2560
|
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
2561
|
+
*
|
|
2562
|
+
* Or by names: `sport` + `home` + `away` + `kickoff` (ISO 8601) returns
|
|
2563
|
+
* every event with those two teams (either order) within `windowHours`
|
|
2564
|
+
* (default 6), closest first; `ambiguous` is true when more than one matches.
|
|
2557
2565
|
*/
|
|
2558
2566
|
lookupEventIds(opts: {
|
|
2559
2567
|
book?: string;
|
|
2560
2568
|
bookEventId?: string | string[];
|
|
2561
2569
|
espnEventId?: string | string[];
|
|
2562
2570
|
mlbGamePk?: number | string | Array<number | string>;
|
|
2571
|
+
sport?: string;
|
|
2572
|
+
home?: string;
|
|
2573
|
+
away?: string;
|
|
2574
|
+
kickoff?: string;
|
|
2575
|
+
windowHours?: number;
|
|
2563
2576
|
}): Promise<IdLookupResponse>;
|
|
2564
2577
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2565
2578
|
/**
|
|
@@ -2647,7 +2660,7 @@ declare class PropLine {
|
|
|
2647
2660
|
/**
|
|
2648
2661
|
* Get resolved prop outcomes with actual player stats.
|
|
2649
2662
|
*
|
|
2650
|
-
*
|
|
2663
|
+
* Hobby+: full data. Free tier: 403 with an upgrade message.
|
|
2651
2664
|
*/
|
|
2652
2665
|
getResults(sport: string, eventId: number | string, options?: GetResultsOptions): Promise<ResultsResponse>;
|
|
2653
2666
|
/**
|
|
@@ -2817,7 +2830,7 @@ declare class PropLine {
|
|
|
2817
2830
|
* consensus we do carry.
|
|
2818
2831
|
*
|
|
2819
2832
|
* Same fair-line math as `getEventEv` (Pinnacle-preferred anchor,
|
|
2820
|
-
* no-vig devigging) but takes one user price as input.
|
|
2833
|
+
* no-vig devigging) but takes one user price as input. Hobby+ (403 on free).
|
|
2821
2834
|
*
|
|
2822
2835
|
* @example
|
|
2823
2836
|
* ```ts
|
|
@@ -3120,6 +3133,6 @@ declare const Bookmakers: {
|
|
|
3120
3133
|
readonly PRIZEPICKS: "prizepicks";
|
|
3121
3134
|
};
|
|
3122
3135
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
3123
|
-
declare const VERSION = "0.
|
|
3136
|
+
declare const VERSION = "0.73.1";
|
|
3124
3137
|
|
|
3125
3138
|
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
|
@@ -1747,7 +1747,11 @@ interface IdLookupResponse {
|
|
|
1747
1747
|
completed: boolean;
|
|
1748
1748
|
home_score: number | null;
|
|
1749
1749
|
away_score: number | null;
|
|
1750
|
+
/** Name lookups only: minutes between this event's kickoff and the one asked for. */
|
|
1751
|
+
kickoff_delta_minutes?: number;
|
|
1750
1752
|
}>;
|
|
1753
|
+
/** Name lookups only: more than one event matched. */
|
|
1754
|
+
ambiguous?: boolean;
|
|
1751
1755
|
not_found: string[];
|
|
1752
1756
|
}
|
|
1753
1757
|
interface RefereeNextMatch {
|
|
@@ -2554,12 +2558,21 @@ declare class PropLine {
|
|
|
2554
2558
|
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
2555
2559
|
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
2556
2560
|
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
2561
|
+
*
|
|
2562
|
+
* Or by names: `sport` + `home` + `away` + `kickoff` (ISO 8601) returns
|
|
2563
|
+
* every event with those two teams (either order) within `windowHours`
|
|
2564
|
+
* (default 6), closest first; `ambiguous` is true when more than one matches.
|
|
2557
2565
|
*/
|
|
2558
2566
|
lookupEventIds(opts: {
|
|
2559
2567
|
book?: string;
|
|
2560
2568
|
bookEventId?: string | string[];
|
|
2561
2569
|
espnEventId?: string | string[];
|
|
2562
2570
|
mlbGamePk?: number | string | Array<number | string>;
|
|
2571
|
+
sport?: string;
|
|
2572
|
+
home?: string;
|
|
2573
|
+
away?: string;
|
|
2574
|
+
kickoff?: string;
|
|
2575
|
+
windowHours?: number;
|
|
2563
2576
|
}): Promise<IdLookupResponse>;
|
|
2564
2577
|
getBookAccuracy(options?: BookAccuracyOptions): Promise<BookAccuracyReport>;
|
|
2565
2578
|
/**
|
|
@@ -2647,7 +2660,7 @@ declare class PropLine {
|
|
|
2647
2660
|
/**
|
|
2648
2661
|
* Get resolved prop outcomes with actual player stats.
|
|
2649
2662
|
*
|
|
2650
|
-
*
|
|
2663
|
+
* Hobby+: full data. Free tier: 403 with an upgrade message.
|
|
2651
2664
|
*/
|
|
2652
2665
|
getResults(sport: string, eventId: number | string, options?: GetResultsOptions): Promise<ResultsResponse>;
|
|
2653
2666
|
/**
|
|
@@ -2817,7 +2830,7 @@ declare class PropLine {
|
|
|
2817
2830
|
* consensus we do carry.
|
|
2818
2831
|
*
|
|
2819
2832
|
* Same fair-line math as `getEventEv` (Pinnacle-preferred anchor,
|
|
2820
|
-
* no-vig devigging) but takes one user price as input.
|
|
2833
|
+
* no-vig devigging) but takes one user price as input. Hobby+ (403 on free).
|
|
2821
2834
|
*
|
|
2822
2835
|
* @example
|
|
2823
2836
|
* ```ts
|
|
@@ -3120,6 +3133,6 @@ declare const Bookmakers: {
|
|
|
3120
3133
|
readonly PRIZEPICKS: "prizepicks";
|
|
3121
3134
|
};
|
|
3122
3135
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
3123
|
-
declare const VERSION = "0.
|
|
3136
|
+
declare const VERSION = "0.73.1";
|
|
3124
3137
|
|
|
3125
3138
|
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
|
@@ -348,6 +348,10 @@ var PropLine = class {
|
|
|
348
348
|
* Find PropLine events from someone else's id (free tier). Pass exactly
|
|
349
349
|
* one of `book` + `bookEventId` (a sportsbook's own event id),
|
|
350
350
|
* `espnEventId` or `mlbGamePk`; arrays send up to 50.
|
|
351
|
+
*
|
|
352
|
+
* Or by names: `sport` + `home` + `away` + `kickoff` (ISO 8601) returns
|
|
353
|
+
* every event with those two teams (either order) within `windowHours`
|
|
354
|
+
* (default 6), closest first; `ambiguous` is true when more than one matches.
|
|
351
355
|
*/
|
|
352
356
|
lookupEventIds(opts) {
|
|
353
357
|
const j = (v) => Array.isArray(v) ? v.join(",") : v === void 0 ? void 0 : String(v);
|
|
@@ -356,7 +360,12 @@ var PropLine = class {
|
|
|
356
360
|
book: opts.book,
|
|
357
361
|
book_event_id: j(opts.bookEventId),
|
|
358
362
|
espn_event_id: j(opts.espnEventId),
|
|
359
|
-
mlb_game_pk: j(opts.mlbGamePk)
|
|
363
|
+
mlb_game_pk: j(opts.mlbGamePk),
|
|
364
|
+
sport: opts.sport,
|
|
365
|
+
home: opts.home,
|
|
366
|
+
away: opts.away,
|
|
367
|
+
kickoff: opts.kickoff,
|
|
368
|
+
window_hours: opts.windowHours
|
|
360
369
|
}
|
|
361
370
|
});
|
|
362
371
|
}
|
|
@@ -539,7 +548,7 @@ var PropLine = class {
|
|
|
539
548
|
/**
|
|
540
549
|
* Get resolved prop outcomes with actual player stats.
|
|
541
550
|
*
|
|
542
|
-
*
|
|
551
|
+
* Hobby+: full data. Free tier: 403 with an upgrade message.
|
|
543
552
|
*/
|
|
544
553
|
getResults(sport, eventId, options = {}) {
|
|
545
554
|
const params = {};
|
|
@@ -826,7 +835,7 @@ var PropLine = class {
|
|
|
826
835
|
* consensus we do carry.
|
|
827
836
|
*
|
|
828
837
|
* Same fair-line math as `getEventEv` (Pinnacle-preferred anchor,
|
|
829
|
-
* no-vig devigging) but takes one user price as input.
|
|
838
|
+
* no-vig devigging) but takes one user price as input. Hobby+ (403 on free).
|
|
830
839
|
*
|
|
831
840
|
* @example
|
|
832
841
|
* ```ts
|
|
@@ -1294,7 +1303,7 @@ var Bookmakers = {
|
|
|
1294
1303
|
POLYMARKET: "polymarket",
|
|
1295
1304
|
PRIZEPICKS: "prizepicks"
|
|
1296
1305
|
};
|
|
1297
|
-
var VERSION = "0.
|
|
1306
|
+
var VERSION = "0.73.1";
|
|
1298
1307
|
export {
|
|
1299
1308
|
AuthError,
|
|
1300
1309
|
Bookmakers,
|