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.cjs CHANGED
@@ -237,7 +237,7 @@ function parseRetryAfter(header) {
237
237
  var BASE_URL = "https://api.scavio.dev";
238
238
  var DEFAULT_TIMEOUT = 3e4;
239
239
  var DEFAULT_MAX_RETRIES = 2;
240
- var SDK_VERSION = true ? "0.28.0" : "0.0.0";
240
+ var SDK_VERSION = true ? "0.28.1" : "0.0.0";
241
241
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
242
242
  function isServerRuntime() {
243
243
  const g = globalThis;
@@ -2825,6 +2825,35 @@ var KrogerNamespace = class {
2825
2825
  }
2826
2826
  };
2827
2827
 
2828
+ // src/namespaces/decathlon.ts
2829
+ var DecathlonNamespace = class {
2830
+ constructor(client) {
2831
+ this.client = client;
2832
+ }
2833
+ client;
2834
+ /**
2835
+ * Search Decathlon products by keyword across 7 country domains (FR, ES, IT,
2836
+ * IN, UK, PT, NET). Returns product name, brand, price (cents), currency,
2837
+ * availability, rating, review count and image.
2838
+ *
2839
+ * Costs 2 credits.
2840
+ */
2841
+ async search(options) {
2842
+ return this.client._post("/api/v1/decathlon/search", options);
2843
+ }
2844
+ /**
2845
+ * Full Decathlon product detail by URL or product ID: description, images,
2846
+ * SKU, GTIN, color, price (cents), list price, availability, offers/variants,
2847
+ * rating, review count, category and breadcrumbs. Supports all 7 country
2848
+ * domains.
2849
+ *
2850
+ * Costs 2 credits.
2851
+ */
2852
+ async product(options) {
2853
+ return this.client._post("/api/v1/decathlon/product", options);
2854
+ }
2855
+ };
2856
+
2828
2857
  // src/namespaces/trustpilot.ts
2829
2858
  var TrustpilotNamespace = class {
2830
2859
  constructor(client) {
@@ -3338,6 +3367,7 @@ var Scavio = class extends ScavioCore {
3338
3367
  costco;
3339
3368
  heb;
3340
3369
  kroger;
3370
+ decathlon;
3341
3371
  trustpilot;
3342
3372
  chatgpt;
3343
3373
  gemini;
@@ -3399,6 +3429,7 @@ var Scavio = class extends ScavioCore {
3399
3429
  this.costco = new CostcoNamespace(this);
3400
3430
  this.heb = new HebNamespace(this);
3401
3431
  this.kroger = new KrogerNamespace(this);
3432
+ this.decathlon = new DecathlonNamespace(this);
3402
3433
  this.trustpilot = new TrustpilotNamespace(this);
3403
3434
  this.chatgpt = new ChatgptNamespace(this);
3404
3435
  this.gemini = new GeminiNamespace(this);