scrapebadger 0.47.1 → 0.49.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 CHANGED
@@ -334,6 +334,13 @@ interface VintedItemSummary {
334
334
  * or null. Populated only when the `seller_country` search filter is used.
335
335
  */
336
336
  seller_country_code: string | null;
337
+ /**
338
+ * Visual similarity to the query image, 0-1, where the query image's own
339
+ * listing scores 1.0. Populated only by `searchByImage`, and only on the
340
+ * calls where Vinted returns a ranking; null otherwise. A null says nothing
341
+ * about the item.
342
+ */
343
+ similarity_score: number | null;
337
344
  }
338
345
  /**
339
346
  * Full item detail with all metadata.
@@ -853,8 +860,9 @@ declare class ReferenceClient$f {
853
860
  /**
854
861
  * Search for brands by keyword.
855
862
  *
856
- * @param options - Optional parameters.
857
- * @param options.keyword - Brand name to search for.
863
+ * @param options - Search parameters.
864
+ * @param options.keyword - Brand name to search for. Required — the API
865
+ * answers 422 without it, so this was never optional.
858
866
  * @param options.market - Market code (default: "fr").
859
867
  * @param options.per_page - Number of results per page.
860
868
  * @returns Brands matching the keyword.
@@ -871,8 +879,8 @@ declare class ReferenceClient$f {
871
879
  * }
872
880
  * ```
873
881
  */
874
- brands(options?: {
875
- keyword?: string;
882
+ brands(options: {
883
+ keyword: string;
876
884
  market?: string;
877
885
  per_page?: number;
878
886
  }): Promise<BrandsResponse>;
package/dist/index.d.ts CHANGED
@@ -334,6 +334,13 @@ interface VintedItemSummary {
334
334
  * or null. Populated only when the `seller_country` search filter is used.
335
335
  */
336
336
  seller_country_code: string | null;
337
+ /**
338
+ * Visual similarity to the query image, 0-1, where the query image's own
339
+ * listing scores 1.0. Populated only by `searchByImage`, and only on the
340
+ * calls where Vinted returns a ranking; null otherwise. A null says nothing
341
+ * about the item.
342
+ */
343
+ similarity_score: number | null;
337
344
  }
338
345
  /**
339
346
  * Full item detail with all metadata.
@@ -853,8 +860,9 @@ declare class ReferenceClient$f {
853
860
  /**
854
861
  * Search for brands by keyword.
855
862
  *
856
- * @param options - Optional parameters.
857
- * @param options.keyword - Brand name to search for.
863
+ * @param options - Search parameters.
864
+ * @param options.keyword - Brand name to search for. Required — the API
865
+ * answers 422 without it, so this was never optional.
858
866
  * @param options.market - Market code (default: "fr").
859
867
  * @param options.per_page - Number of results per page.
860
868
  * @returns Brands matching the keyword.
@@ -871,8 +879,8 @@ declare class ReferenceClient$f {
871
879
  * }
872
880
  * ```
873
881
  */
874
- brands(options?: {
875
- keyword?: string;
882
+ brands(options: {
883
+ keyword: string;
876
884
  market?: string;
877
885
  per_page?: number;
878
886
  }): Promise<BrandsResponse>;
package/dist/index.js CHANGED
@@ -2876,8 +2876,9 @@ var ReferenceClient = class {
2876
2876
  /**
2877
2877
  * Search for brands by keyword.
2878
2878
  *
2879
- * @param options - Optional parameters.
2880
- * @param options.keyword - Brand name to search for.
2879
+ * @param options - Search parameters.
2880
+ * @param options.keyword - Brand name to search for. Required — the API
2881
+ * answers 422 without it, so this was never optional.
2881
2882
  * @param options.market - Market code (default: "fr").
2882
2883
  * @param options.per_page - Number of results per page.
2883
2884
  * @returns Brands matching the keyword.
@@ -2894,7 +2895,7 @@ var ReferenceClient = class {
2894
2895
  * }
2895
2896
  * ```
2896
2897
  */
2897
- async brands(options = {}) {
2898
+ async brands(options) {
2898
2899
  return this.client.request("/v1/vinted/brands", {
2899
2900
  params: {
2900
2901
  keyword: options.keyword,