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 CHANGED
@@ -522,7 +522,7 @@ const r = await client.getGolfRounds("Scottie Scheffler", { tour: "pga" });
522
522
  console.log(r.summary.last_10.avg_strokes);
523
523
  ```
524
524
 
525
- ### Get resolved prop outcomes (Pro only)
525
+ ### Get resolved prop outcomes (Hobby+ full, Free 403)
526
526
 
527
527
  ```ts
528
528
  const results = await client.getResults("baseball_mlb", 16, {
@@ -776,7 +776,7 @@ for (const p of res.players) {
776
776
  Pass a `player_id` anywhere a player name is accepted in `getPlayerHistory` /
777
777
  `getPlayerTrends`; both responses carry `player_id`.
778
778
 
779
- ### Get player prop history (Pro full, Free redacted)
779
+ ### Get player prop history (Hobby+ full, Free redacted)
780
780
 
781
781
  ```ts
782
782
  // "Did Bryan Woo go over/under his last 10 strikeout props?"
@@ -828,7 +828,7 @@ game with a box score on file — including games no sportsbook priced. A "last
828
828
  games" window here really is the last 10 games. Carries no line, price or grade;
829
829
  use `getPlayerTrends` for hit rates against a posted line.
830
830
 
831
- ### Get player trends (Pro full, Free redacted)
831
+ ### Get player trends (Hobby+ full, Free redacted)
832
832
 
833
833
  ```ts
834
834
  // Rolling over/under hit-rates per market: last 5/10/20/50 graded games,
@@ -849,7 +849,7 @@ for (const m of trends.markets) {
849
849
  // Output: "batter_total_bases: recent line 1.5, avg 2.02 (last 10 over 30%, streak 2 under)"
850
850
  ```
851
851
 
852
- ### Cross-book +EV (Pro)
852
+ ### Cross-book +EV (Hobby+ full, Free redacted)
853
853
 
854
854
  ```ts
855
855
  // Find +EV plays on a single event. A sharp book anchors the no-vig
@@ -938,7 +938,7 @@ quotes aren't independently bettable payouts; Underdog is included only
938
938
  at clean two-way lines. Each price carries `last_update` so you can
939
939
  discount stale quotes.
940
940
 
941
- ### Bulk CSV export of resolved props (Pro)
941
+ ### Bulk CSV export of resolved props (Pro+)
942
942
 
943
943
  ```ts
944
944
  // Save every resolved MLB strikeout prop since April 1st to disk.
package/dist/index.cjs CHANGED
@@ -379,6 +379,10 @@ var PropLine = class {
379
379
  * Find PropLine events from someone else's id (free tier). Pass exactly
380
380
  * one of `book` + `bookEventId` (a sportsbook's own event id),
381
381
  * `espnEventId` or `mlbGamePk`; arrays send up to 50.
382
+ *
383
+ * Or by names: `sport` + `home` + `away` + `kickoff` (ISO 8601) returns
384
+ * every event with those two teams (either order) within `windowHours`
385
+ * (default 6), closest first; `ambiguous` is true when more than one matches.
382
386
  */
383
387
  lookupEventIds(opts) {
384
388
  const j = (v) => Array.isArray(v) ? v.join(",") : v === void 0 ? void 0 : String(v);
@@ -387,7 +391,12 @@ var PropLine = class {
387
391
  book: opts.book,
388
392
  book_event_id: j(opts.bookEventId),
389
393
  espn_event_id: j(opts.espnEventId),
390
- mlb_game_pk: j(opts.mlbGamePk)
394
+ mlb_game_pk: j(opts.mlbGamePk),
395
+ sport: opts.sport,
396
+ home: opts.home,
397
+ away: opts.away,
398
+ kickoff: opts.kickoff,
399
+ window_hours: opts.windowHours
391
400
  }
392
401
  });
393
402
  }
@@ -570,7 +579,7 @@ var PropLine = class {
570
579
  /**
571
580
  * Get resolved prop outcomes with actual player stats.
572
581
  *
573
- * Pro tier: full data. Free tier: redacted (resolution + actual nulled).
582
+ * Hobby+: full data. Free tier: 403 with an upgrade message.
574
583
  */
575
584
  getResults(sport, eventId, options = {}) {
576
585
  const params = {};
@@ -857,7 +866,7 @@ var PropLine = class {
857
866
  * consensus we do carry.
858
867
  *
859
868
  * Same fair-line math as `getEventEv` (Pinnacle-preferred anchor,
860
- * no-vig devigging) but takes one user price as input. Pro tier.
869
+ * no-vig devigging) but takes one user price as input. Hobby+ (403 on free).
861
870
  *
862
871
  * @example
863
872
  * ```ts
@@ -1325,7 +1334,7 @@ var Bookmakers = {
1325
1334
  POLYMARKET: "polymarket",
1326
1335
  PRIZEPICKS: "prizepicks"
1327
1336
  };
1328
- var VERSION = "0.72.0";
1337
+ var VERSION = "0.73.1";
1329
1338
  // Annotate the CommonJS export names for ESM import in node:
1330
1339
  0 && (module.exports = {
1331
1340
  AuthError,