scrapebadger 0.69.0 → 0.69.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/dist/index.d.cts CHANGED
@@ -8538,8 +8538,17 @@ interface SearchResult$1 {
8538
8538
  sold_count: number | null;
8539
8539
  /** Sale date text as rendered by eBay, e.g. "2 Jul 2026" (completed/sold cards; localized on non-English markets) */
8540
8540
  sold_date: string | null;
8541
- /** Best-effort ISO date, e.g. "2026-07-02"; null when the market's format isn't English */
8541
+ /**
8542
+ * ISO date, e.g. "2026-07-02": a day the item sold, per eBay's "Sold" label.
8543
+ * On a multi-quantity listing eBay labels an earlier sale; bucket by `ended_at`.
8544
+ */
8542
8545
  sold_date_at: string | null;
8546
+ /**
8547
+ * UTC instant, e.g. "2026-11-01T16:05:00Z": when eBay last closed the listing
8548
+ * out (its end, or the latest sale on a live multi-quantity listing).
8549
+ * Completed results are ordered by it, newest first.
8550
+ */
8551
+ ended_at?: string | null;
8543
8552
  watchers: number | null;
8544
8553
  coupon: string | null;
8545
8554
  rating: number | null;
@@ -8875,9 +8884,9 @@ interface EbayCompletedParams {
8875
8884
  category_id?: string;
8876
8885
  /** Page number (1-indexed) */
8877
8886
  page?: number;
8878
- /** Results per page (60, 120 or 240; clamped) */
8887
+ /** Results per page (60, 120 or 200; 240 returns 200) */
8879
8888
  per_page?: number;
8880
- /** Sort order */
8889
+ /** Sort order. Only the price sorts change the order of sold results. */
8881
8890
  sort_by?: EbaySortBy;
8882
8891
  /** Item condition filter */
8883
8892
  condition?: EbayCondition;
@@ -9006,6 +9015,13 @@ declare class SearchClient$b {
9006
9015
  * Pass `query`, `seller` or both. `seller` alone pages through everything
9007
9016
  * that seller sold, e.g. `completed({ seller: "musicmagpie", domain: "co.uk" })`.
9008
9017
  *
9018
+ * Results are ordered by `ended_at` (when eBay last closed the listing out,
9019
+ * UTC), newest first. eBay applies no other time order to sold listings:
9020
+ * `best_match`, `ending_soonest` and `newly_listed` all return this one; the
9021
+ * two price sorts do reorder. One listing is one result, however many units
9022
+ * it sold. eBay's replicas disagree slightly, so a page walk can repeat or
9023
+ * miss a listing; de-duplicate on `item_id`.
9024
+ *
9009
9025
  * @param params - Search parameters including query, seller, filters, and pagination.
9010
9026
  * @returns Search results (with `sold: true`), facets, and pagination.
9011
9027
  */
package/dist/index.d.ts CHANGED
@@ -8538,8 +8538,17 @@ interface SearchResult$1 {
8538
8538
  sold_count: number | null;
8539
8539
  /** Sale date text as rendered by eBay, e.g. "2 Jul 2026" (completed/sold cards; localized on non-English markets) */
8540
8540
  sold_date: string | null;
8541
- /** Best-effort ISO date, e.g. "2026-07-02"; null when the market's format isn't English */
8541
+ /**
8542
+ * ISO date, e.g. "2026-07-02": a day the item sold, per eBay's "Sold" label.
8543
+ * On a multi-quantity listing eBay labels an earlier sale; bucket by `ended_at`.
8544
+ */
8542
8545
  sold_date_at: string | null;
8546
+ /**
8547
+ * UTC instant, e.g. "2026-11-01T16:05:00Z": when eBay last closed the listing
8548
+ * out (its end, or the latest sale on a live multi-quantity listing).
8549
+ * Completed results are ordered by it, newest first.
8550
+ */
8551
+ ended_at?: string | null;
8543
8552
  watchers: number | null;
8544
8553
  coupon: string | null;
8545
8554
  rating: number | null;
@@ -8875,9 +8884,9 @@ interface EbayCompletedParams {
8875
8884
  category_id?: string;
8876
8885
  /** Page number (1-indexed) */
8877
8886
  page?: number;
8878
- /** Results per page (60, 120 or 240; clamped) */
8887
+ /** Results per page (60, 120 or 200; 240 returns 200) */
8879
8888
  per_page?: number;
8880
- /** Sort order */
8889
+ /** Sort order. Only the price sorts change the order of sold results. */
8881
8890
  sort_by?: EbaySortBy;
8882
8891
  /** Item condition filter */
8883
8892
  condition?: EbayCondition;
@@ -9006,6 +9015,13 @@ declare class SearchClient$b {
9006
9015
  * Pass `query`, `seller` or both. `seller` alone pages through everything
9007
9016
  * that seller sold, e.g. `completed({ seller: "musicmagpie", domain: "co.uk" })`.
9008
9017
  *
9018
+ * Results are ordered by `ended_at` (when eBay last closed the listing out,
9019
+ * UTC), newest first. eBay applies no other time order to sold listings:
9020
+ * `best_match`, `ending_soonest` and `newly_listed` all return this one; the
9021
+ * two price sorts do reorder. One listing is one result, however many units
9022
+ * it sold. eBay's replicas disagree slightly, so a page walk can repeat or
9023
+ * miss a listing; de-duplicate on `item_id`.
9024
+ *
9009
9025
  * @param params - Search parameters including query, seller, filters, and pagination.
9010
9026
  * @returns Search results (with `sold: true`), facets, and pagination.
9011
9027
  */
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
  var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
10
10
 
11
11
  // src/internal/version.ts
12
- var SDK_VERSION = "0.69.0";
12
+ var SDK_VERSION = "0.69.1";
13
13
 
14
14
  // src/internal/exceptions.ts
15
15
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -6252,6 +6252,13 @@ var SearchClient8 = class {
6252
6252
  * Pass `query`, `seller` or both. `seller` alone pages through everything
6253
6253
  * that seller sold, e.g. `completed({ seller: "musicmagpie", domain: "co.uk" })`.
6254
6254
  *
6255
+ * Results are ordered by `ended_at` (when eBay last closed the listing out,
6256
+ * UTC), newest first. eBay applies no other time order to sold listings:
6257
+ * `best_match`, `ending_soonest` and `newly_listed` all return this one; the
6258
+ * two price sorts do reorder. One listing is one result, however many units
6259
+ * it sold. eBay's replicas disagree slightly, so a page walk can repeat or
6260
+ * miss a listing; de-duplicate on `item_id`.
6261
+ *
6255
6262
  * @param params - Search parameters including query, seller, filters, and pagination.
6256
6263
  * @returns Search results (with `sold: true`), facets, and pagination.
6257
6264
  */