propline 0.70.0 → 0.71.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/README.md
CHANGED
|
@@ -485,6 +485,19 @@ const h = await client.getInjuryHistory("basketball_nba", { days: 7 });
|
|
|
485
485
|
for (const c of h.changes) console.log(c.changed_at, c.player_name, c.old_status, "->", c.new_status);
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
+
### Referee card stats (free)
|
|
489
|
+
|
|
490
|
+
Card counts per referee, and each referee's matches with per-team cards.
|
|
491
|
+
Premier League (`soccer_epl`) only today.
|
|
492
|
+
|
|
493
|
+
```ts
|
|
494
|
+
const r = await client.getReferees("soccer_epl", { since: "2026-08-01" });
|
|
495
|
+
for (const ref of r.referees) console.log(ref.referee, ref.matches, ref.cards_per_match);
|
|
496
|
+
|
|
497
|
+
const m = await client.getRefereeMatches("soccer_epl", "Michael Oliver", { limit: 10 });
|
|
498
|
+
for (const g of m.matches) console.log(g.commence_time.slice(0, 10), g.home_team, "v", g.away_team, g.yellow_cards);
|
|
499
|
+
```
|
|
500
|
+
|
|
488
501
|
### Golf round history (free)
|
|
489
502
|
|
|
490
503
|
Every completed round for every golfer, by tour (pga, dp_world, liv, lpga,
|
package/dist/index.cjs
CHANGED
|
@@ -449,6 +449,36 @@ var PropLine = class {
|
|
|
449
449
|
{ params }
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* Referee card stats for a sport (free tier). Only `soccer_epl` today;
|
|
454
|
+
* other sports return 404 `referees_not_available`.
|
|
455
|
+
*/
|
|
456
|
+
getReferees(sport, options = {}) {
|
|
457
|
+
const params = {};
|
|
458
|
+
if (options.search) params.search = options.search;
|
|
459
|
+
if (options.since) params.since = options.since;
|
|
460
|
+
if (options.until) params.until = options.until;
|
|
461
|
+
return this._request(
|
|
462
|
+
"GET",
|
|
463
|
+
`/sports/${encodeURIComponent(sport)}/referees`,
|
|
464
|
+
{ params }
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* One referee's summary plus their matches with per-team cards
|
|
469
|
+
* (free tier). `limit` is 1-500 (default 100).
|
|
470
|
+
*/
|
|
471
|
+
getRefereeMatches(sport, name, options = {}) {
|
|
472
|
+
const params = {};
|
|
473
|
+
if (options.since) params.since = options.since;
|
|
474
|
+
if (options.until) params.until = options.until;
|
|
475
|
+
if (options.limit !== void 0) params.limit = String(options.limit);
|
|
476
|
+
return this._request(
|
|
477
|
+
"GET",
|
|
478
|
+
`/sports/${encodeURIComponent(sport)}/referees/${encodeURIComponent(name)}/matches`,
|
|
479
|
+
{ params }
|
|
480
|
+
);
|
|
481
|
+
}
|
|
452
482
|
/**
|
|
453
483
|
* Get raw player/team box-score stats (book-agnostic, free tier).
|
|
454
484
|
*
|
|
@@ -1275,7 +1305,7 @@ var Bookmakers = {
|
|
|
1275
1305
|
POLYMARKET: "polymarket",
|
|
1276
1306
|
PRIZEPICKS: "prizepicks"
|
|
1277
1307
|
};
|
|
1278
|
-
var VERSION = "0.
|
|
1308
|
+
var VERSION = "0.71.0";
|
|
1279
1309
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1280
1310
|
0 && (module.exports = {
|
|
1281
1311
|
AuthError,
|