Skip to content

feat(batches): add getScrapedStats() method - #14

Open
Olostep-devs wants to merge 1 commit into
mainfrom
feat/batches-scraped-stats
Open

feat(batches): add getScrapedStats() method#14
Olostep-devs wants to merge 1 commit into
mainfrom
feat/batches-scraped-stats

Conversation

@Olostep-devs

Copy link
Copy Markdown
Contributor

Adds SDK support for the new GET /batches/stats/scraped endpoint (shipped in batches@883e42e1).

client.batches.getScrapedStats(options?) returns scraped item counts and success rates for the authenticated team over a configurable time window.

Changes:

  • src/resources/batch.tsScrapedStatsOptions and ScrapedStatsResponse interfaces, getScrapedStats() method on BatchNamespace
  • src/index.ts — exports for both new types
  • tests/batch-scraped-stats.test.ts — 11 contract-level tests, all passing

@ZeeshanZubairRB ready for review.

New method on BatchNamespace for GET /batches/stats/scraped.

- src/resources/batch.ts: add ScrapedStatsOptions + ScrapedStatsResponse
  interfaces, add getScrapedStats(options?) method
- src/index.ts: export ScrapedStatsOptions and ScrapedStatsResponse
- tests/batch-scraped-stats.test.ts: 11 contract-level tests covering
  request path/method, query param handling, and response shape

All 11 tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant