scrapebadger 0.62.0 → 0.63.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.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.63.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -6171,13 +6171,20 @@ var SearchClient8 = class {
|
|
|
6171
6171
|
/**
|
|
6172
6172
|
* Search completed / sold listings — eBay's sold-price history.
|
|
6173
6173
|
*
|
|
6174
|
-
*
|
|
6174
|
+
* Pass `query`, `seller` or both. `seller` alone pages through everything
|
|
6175
|
+
* that seller sold, e.g. `completed({ seller: "musicmagpie", domain: "co.uk" })`.
|
|
6176
|
+
*
|
|
6177
|
+
* @param params - Search parameters including query, seller, filters, and pagination.
|
|
6175
6178
|
* @returns Search results (with `sold: true`), facets, and pagination.
|
|
6176
6179
|
*/
|
|
6177
6180
|
async completed(params) {
|
|
6181
|
+
if (!params.query && !params.seller) {
|
|
6182
|
+
throw new Error("Pass query, seller, or both.");
|
|
6183
|
+
}
|
|
6178
6184
|
return this.client.request("/v1/ebay/completed", {
|
|
6179
6185
|
params: {
|
|
6180
6186
|
query: params.query,
|
|
6187
|
+
seller: params.seller,
|
|
6181
6188
|
domain: params.domain,
|
|
6182
6189
|
category_id: params.category_id,
|
|
6183
6190
|
page: params.page,
|