propline 0.65.0 → 0.67.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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -2
- package/dist/index.d.ts +36 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -163,6 +163,12 @@ interface Outcome {
|
|
|
163
163
|
* nothing further or PropLine does not read its depth (sportsbooks).
|
|
164
164
|
*/
|
|
165
165
|
depth?: DepthLevel[];
|
|
166
|
+
/**
|
|
167
|
+
* PrizePicks' own direction flag for this pick (`"over"`,
|
|
168
|
+
* `"under_or_over"`). Only present when the request passed
|
|
169
|
+
* `includeRestricted: true`, and only on books that publish it.
|
|
170
|
+
*/
|
|
171
|
+
allowed_wager_types?: string;
|
|
166
172
|
/**
|
|
167
173
|
* Which side of the EVENT this leg is on: `"home"`, `"away"` or
|
|
168
174
|
* `"draw"`; `null` for Over/Under, Yes/No and player legs. Lets you pair
|
|
@@ -1699,6 +1705,13 @@ interface GetOddsOptions {
|
|
|
1699
1705
|
* PropLine-specific (`includeDepth=true`).
|
|
1700
1706
|
*/
|
|
1701
1707
|
includeDepth?: boolean;
|
|
1708
|
+
/**
|
|
1709
|
+
* When true, PrizePicks projections marked over-only also return their
|
|
1710
|
+
* Under leg, and every PrizePicks outcome carries `allowed_wager_types`
|
|
1711
|
+
* (`"over"` or `"under_or_over"`, PrizePicks' own value). By default the
|
|
1712
|
+
* excluded leg is left out. PropLine-specific (`includeRestricted=true`).
|
|
1713
|
+
*/
|
|
1714
|
+
includeRestricted?: boolean;
|
|
1702
1715
|
}
|
|
1703
1716
|
interface GetOddsHistoryOptions {
|
|
1704
1717
|
markets?: string[];
|
|
@@ -2058,6 +2071,27 @@ interface StreamOptions {
|
|
|
2058
2071
|
* resync from the REST endpoints.
|
|
2059
2072
|
*/
|
|
2060
2073
|
onTruncated?: (ready: ReplayPage) => void;
|
|
2074
|
+
/**
|
|
2075
|
+
* Called on connect and every 25s with the books we are still reading for
|
|
2076
|
+
* this subscription's filters. A quiet stream plus a fresh heartbeat means
|
|
2077
|
+
* "prices unchanged", not "feed down".
|
|
2078
|
+
*/
|
|
2079
|
+
onHeartbeat?: (heartbeat: StreamHeartbeat) => void;
|
|
2080
|
+
}
|
|
2081
|
+
interface StreamHeartbeatBook {
|
|
2082
|
+
bookmaker_key: string;
|
|
2083
|
+
sport_key: string;
|
|
2084
|
+
/** When this book's last completed pre-match board read started. */
|
|
2085
|
+
pregame_read_at: string;
|
|
2086
|
+
read_age_seconds: number;
|
|
2087
|
+
/** Gap between this book's last two reads; null until two are recorded. */
|
|
2088
|
+
reread_seconds: number | null;
|
|
2089
|
+
events: number;
|
|
2090
|
+
}
|
|
2091
|
+
interface StreamHeartbeat {
|
|
2092
|
+
type: "heartbeat";
|
|
2093
|
+
at: string;
|
|
2094
|
+
books: StreamHeartbeatBook[];
|
|
2061
2095
|
}
|
|
2062
2096
|
interface VerifySignatureOptions {
|
|
2063
2097
|
/** Webhook signing secret (returned once from `createWebhook`). */
|
|
@@ -2719,6 +2753,6 @@ declare const Bookmakers: {
|
|
|
2719
2753
|
readonly PRIZEPICKS: "prizepicks";
|
|
2720
2754
|
};
|
|
2721
2755
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2722
|
-
declare const VERSION = "0.
|
|
2756
|
+
declare const VERSION = "0.67.0";
|
|
2723
2757
|
|
|
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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -163,6 +163,12 @@ interface Outcome {
|
|
|
163
163
|
* nothing further or PropLine does not read its depth (sportsbooks).
|
|
164
164
|
*/
|
|
165
165
|
depth?: DepthLevel[];
|
|
166
|
+
/**
|
|
167
|
+
* PrizePicks' own direction flag for this pick (`"over"`,
|
|
168
|
+
* `"under_or_over"`). Only present when the request passed
|
|
169
|
+
* `includeRestricted: true`, and only on books that publish it.
|
|
170
|
+
*/
|
|
171
|
+
allowed_wager_types?: string;
|
|
166
172
|
/**
|
|
167
173
|
* Which side of the EVENT this leg is on: `"home"`, `"away"` or
|
|
168
174
|
* `"draw"`; `null` for Over/Under, Yes/No and player legs. Lets you pair
|
|
@@ -1699,6 +1705,13 @@ interface GetOddsOptions {
|
|
|
1699
1705
|
* PropLine-specific (`includeDepth=true`).
|
|
1700
1706
|
*/
|
|
1701
1707
|
includeDepth?: boolean;
|
|
1708
|
+
/**
|
|
1709
|
+
* When true, PrizePicks projections marked over-only also return their
|
|
1710
|
+
* Under leg, and every PrizePicks outcome carries `allowed_wager_types`
|
|
1711
|
+
* (`"over"` or `"under_or_over"`, PrizePicks' own value). By default the
|
|
1712
|
+
* excluded leg is left out. PropLine-specific (`includeRestricted=true`).
|
|
1713
|
+
*/
|
|
1714
|
+
includeRestricted?: boolean;
|
|
1702
1715
|
}
|
|
1703
1716
|
interface GetOddsHistoryOptions {
|
|
1704
1717
|
markets?: string[];
|
|
@@ -2058,6 +2071,27 @@ interface StreamOptions {
|
|
|
2058
2071
|
* resync from the REST endpoints.
|
|
2059
2072
|
*/
|
|
2060
2073
|
onTruncated?: (ready: ReplayPage) => void;
|
|
2074
|
+
/**
|
|
2075
|
+
* Called on connect and every 25s with the books we are still reading for
|
|
2076
|
+
* this subscription's filters. A quiet stream plus a fresh heartbeat means
|
|
2077
|
+
* "prices unchanged", not "feed down".
|
|
2078
|
+
*/
|
|
2079
|
+
onHeartbeat?: (heartbeat: StreamHeartbeat) => void;
|
|
2080
|
+
}
|
|
2081
|
+
interface StreamHeartbeatBook {
|
|
2082
|
+
bookmaker_key: string;
|
|
2083
|
+
sport_key: string;
|
|
2084
|
+
/** When this book's last completed pre-match board read started. */
|
|
2085
|
+
pregame_read_at: string;
|
|
2086
|
+
read_age_seconds: number;
|
|
2087
|
+
/** Gap between this book's last two reads; null until two are recorded. */
|
|
2088
|
+
reread_seconds: number | null;
|
|
2089
|
+
events: number;
|
|
2090
|
+
}
|
|
2091
|
+
interface StreamHeartbeat {
|
|
2092
|
+
type: "heartbeat";
|
|
2093
|
+
at: string;
|
|
2094
|
+
books: StreamHeartbeatBook[];
|
|
2061
2095
|
}
|
|
2062
2096
|
interface VerifySignatureOptions {
|
|
2063
2097
|
/** Webhook signing secret (returned once from `createWebhook`). */
|
|
@@ -2719,6 +2753,6 @@ declare const Bookmakers: {
|
|
|
2719
2753
|
readonly PRIZEPICKS: "prizepicks";
|
|
2720
2754
|
};
|
|
2721
2755
|
type BookmakerKey = (typeof Bookmakers)[keyof typeof Bookmakers];
|
|
2722
|
-
declare const VERSION = "0.
|
|
2756
|
+
declare const VERSION = "0.67.0";
|
|
2723
2757
|
|
|
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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -170,6 +170,7 @@ var PropLine = class {
|
|
|
170
170
|
if (options.includeLinks) params.includeLinks = "true";
|
|
171
171
|
if (options.includeBookIds) params.includeBookIds = "true";
|
|
172
172
|
if (options.includeDepth) params.includeDepth = "true";
|
|
173
|
+
if (options.includeRestricted) params.includeRestricted = "true";
|
|
173
174
|
const sp = encodeURIComponent(sport);
|
|
174
175
|
if (options.eventId !== void 0) {
|
|
175
176
|
return this._request(
|
|
@@ -968,6 +969,8 @@ var PropLine = class {
|
|
|
968
969
|
} else if (msg.type === "event") {
|
|
969
970
|
queue.push(msg);
|
|
970
971
|
wake();
|
|
972
|
+
} else if (msg.type === "heartbeat") {
|
|
973
|
+
options.onHeartbeat?.(msg);
|
|
971
974
|
}
|
|
972
975
|
});
|
|
973
976
|
ws.addEventListener("close", (e) => {
|
|
@@ -1164,7 +1167,7 @@ var Bookmakers = {
|
|
|
1164
1167
|
POLYMARKET: "polymarket",
|
|
1165
1168
|
PRIZEPICKS: "prizepicks"
|
|
1166
1169
|
};
|
|
1167
|
-
var VERSION = "0.
|
|
1170
|
+
var VERSION = "0.67.0";
|
|
1168
1171
|
export {
|
|
1169
1172
|
AuthError,
|
|
1170
1173
|
Bookmakers,
|