scavio 0.28.0 → 0.28.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
@@ -4967,6 +4967,50 @@ declare class KrogerNamespace {
4967
4967
  product(options: KrogerProductOptions): Promise<Record<string, unknown>>;
4968
4968
  }
4969
4969
 
4970
+ type DecathlonCountry = "fr" | "es" | "it" | "in" | "uk" | "pt" | "net";
4971
+ interface DecathlonSearchOptions {
4972
+ /** Search keywords (1-200 characters). */
4973
+ query: string;
4974
+ /** Country domain. */
4975
+ country: DecathlonCountry;
4976
+ /** Results page, 1-based (1-50). */
4977
+ page?: number;
4978
+ [key: string]: unknown;
4979
+ }
4980
+ interface DecathlonProductOptions {
4981
+ /**
4982
+ * Full or relative product URL from any Decathlon domain (e.g.
4983
+ * "/p/mens-running-shoes/123456/..."). Preferred.
4984
+ */
4985
+ product_url?: string;
4986
+ /** Decathlon numeric product ID (from the /p/{slug}/{id}/... URL pattern). */
4987
+ product_id?: string;
4988
+ /** Country domain. */
4989
+ country: DecathlonCountry;
4990
+ [key: string]: unknown;
4991
+ }
4992
+ declare class DecathlonNamespace {
4993
+ private client;
4994
+ constructor(client: Scavio);
4995
+ /**
4996
+ * Search Decathlon products by keyword across 7 country domains (FR, ES, IT,
4997
+ * IN, UK, PT, NET). Returns product name, brand, price (cents), currency,
4998
+ * availability, rating, review count and image.
4999
+ *
5000
+ * Costs 2 credits.
5001
+ */
5002
+ search(options: DecathlonSearchOptions): Promise<Record<string, unknown>>;
5003
+ /**
5004
+ * Full Decathlon product detail by URL or product ID: description, images,
5005
+ * SKU, GTIN, color, price (cents), list price, availability, offers/variants,
5006
+ * rating, review count, category and breadcrumbs. Supports all 7 country
5007
+ * domains.
5008
+ *
5009
+ * Costs 2 credits.
5010
+ */
5011
+ product(options: DecathlonProductOptions): Promise<Record<string, unknown>>;
5012
+ }
5013
+
4970
5014
  type TrustpilotReviewsDateRange = "last30days" | "last3months" | "last6months" | "last12months";
4971
5015
  type TrustpilotReviewsSort = "recency" | "relevance";
4972
5016
  type TrustpilotCategorySort = "most_relevant" | "reviews_count" | "latest_review";
@@ -6086,6 +6130,7 @@ declare class Scavio extends ScavioCore {
6086
6130
  readonly costco: CostcoNamespace;
6087
6131
  readonly heb: HebNamespace;
6088
6132
  readonly kroger: KrogerNamespace;
6133
+ readonly decathlon: DecathlonNamespace;
6089
6134
  readonly trustpilot: TrustpilotNamespace;
6090
6135
  readonly chatgpt: ChatgptNamespace;
6091
6136
  readonly gemini: GeminiNamespace;
package/dist/index.d.ts CHANGED
@@ -4967,6 +4967,50 @@ declare class KrogerNamespace {
4967
4967
  product(options: KrogerProductOptions): Promise<Record<string, unknown>>;
4968
4968
  }
4969
4969
 
4970
+ type DecathlonCountry = "fr" | "es" | "it" | "in" | "uk" | "pt" | "net";
4971
+ interface DecathlonSearchOptions {
4972
+ /** Search keywords (1-200 characters). */
4973
+ query: string;
4974
+ /** Country domain. */
4975
+ country: DecathlonCountry;
4976
+ /** Results page, 1-based (1-50). */
4977
+ page?: number;
4978
+ [key: string]: unknown;
4979
+ }
4980
+ interface DecathlonProductOptions {
4981
+ /**
4982
+ * Full or relative product URL from any Decathlon domain (e.g.
4983
+ * "/p/mens-running-shoes/123456/..."). Preferred.
4984
+ */
4985
+ product_url?: string;
4986
+ /** Decathlon numeric product ID (from the /p/{slug}/{id}/... URL pattern). */
4987
+ product_id?: string;
4988
+ /** Country domain. */
4989
+ country: DecathlonCountry;
4990
+ [key: string]: unknown;
4991
+ }
4992
+ declare class DecathlonNamespace {
4993
+ private client;
4994
+ constructor(client: Scavio);
4995
+ /**
4996
+ * Search Decathlon products by keyword across 7 country domains (FR, ES, IT,
4997
+ * IN, UK, PT, NET). Returns product name, brand, price (cents), currency,
4998
+ * availability, rating, review count and image.
4999
+ *
5000
+ * Costs 2 credits.
5001
+ */
5002
+ search(options: DecathlonSearchOptions): Promise<Record<string, unknown>>;
5003
+ /**
5004
+ * Full Decathlon product detail by URL or product ID: description, images,
5005
+ * SKU, GTIN, color, price (cents), list price, availability, offers/variants,
5006
+ * rating, review count, category and breadcrumbs. Supports all 7 country
5007
+ * domains.
5008
+ *
5009
+ * Costs 2 credits.
5010
+ */
5011
+ product(options: DecathlonProductOptions): Promise<Record<string, unknown>>;
5012
+ }
5013
+
4970
5014
  type TrustpilotReviewsDateRange = "last30days" | "last3months" | "last6months" | "last12months";
4971
5015
  type TrustpilotReviewsSort = "recency" | "relevance";
4972
5016
  type TrustpilotCategorySort = "most_relevant" | "reviews_count" | "latest_review";
@@ -6086,6 +6130,7 @@ declare class Scavio extends ScavioCore {
6086
6130
  readonly costco: CostcoNamespace;
6087
6131
  readonly heb: HebNamespace;
6088
6132
  readonly kroger: KrogerNamespace;
6133
+ readonly decathlon: DecathlonNamespace;
6089
6134
  readonly trustpilot: TrustpilotNamespace;
6090
6135
  readonly chatgpt: ChatgptNamespace;
6091
6136
  readonly gemini: GeminiNamespace;
package/dist/index.js CHANGED
@@ -145,7 +145,7 @@ function parseRetryAfter(header) {
145
145
  var BASE_URL = "https://api.scavio.dev";
146
146
  var DEFAULT_TIMEOUT = 3e4;
147
147
  var DEFAULT_MAX_RETRIES = 2;
148
- var SDK_VERSION = true ? "0.28.0" : "0.0.0";
148
+ var SDK_VERSION = true ? "0.28.1" : "0.0.0";
149
149
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
150
150
  function isServerRuntime() {
151
151
  const g = globalThis;
@@ -2733,6 +2733,35 @@ var KrogerNamespace = class {
2733
2733
  }
2734
2734
  };
2735
2735
 
2736
+ // src/namespaces/decathlon.ts
2737
+ var DecathlonNamespace = class {
2738
+ constructor(client) {
2739
+ this.client = client;
2740
+ }
2741
+ client;
2742
+ /**
2743
+ * Search Decathlon products by keyword across 7 country domains (FR, ES, IT,
2744
+ * IN, UK, PT, NET). Returns product name, brand, price (cents), currency,
2745
+ * availability, rating, review count and image.
2746
+ *
2747
+ * Costs 2 credits.
2748
+ */
2749
+ async search(options) {
2750
+ return this.client._post("/api/v1/decathlon/search", options);
2751
+ }
2752
+ /**
2753
+ * Full Decathlon product detail by URL or product ID: description, images,
2754
+ * SKU, GTIN, color, price (cents), list price, availability, offers/variants,
2755
+ * rating, review count, category and breadcrumbs. Supports all 7 country
2756
+ * domains.
2757
+ *
2758
+ * Costs 2 credits.
2759
+ */
2760
+ async product(options) {
2761
+ return this.client._post("/api/v1/decathlon/product", options);
2762
+ }
2763
+ };
2764
+
2736
2765
  // src/namespaces/trustpilot.ts
2737
2766
  var TrustpilotNamespace = class {
2738
2767
  constructor(client) {
@@ -3246,6 +3275,7 @@ var Scavio = class extends ScavioCore {
3246
3275
  costco;
3247
3276
  heb;
3248
3277
  kroger;
3278
+ decathlon;
3249
3279
  trustpilot;
3250
3280
  chatgpt;
3251
3281
  gemini;
@@ -3307,6 +3337,7 @@ var Scavio = class extends ScavioCore {
3307
3337
  this.costco = new CostcoNamespace(this);
3308
3338
  this.heb = new HebNamespace(this);
3309
3339
  this.kroger = new KrogerNamespace(this);
3340
+ this.decathlon = new DecathlonNamespace(this);
3310
3341
  this.trustpilot = new TrustpilotNamespace(this);
3311
3342
  this.chatgpt = new ChatgptNamespace(this);
3312
3343
  this.gemini = new GeminiNamespace(this);