scavio 0.28.0 → 0.28.2

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.2" : "0.0.0";
241
241
  var USER_AGENT = `scavio-js/${SDK_VERSION}`;
242
242
  function isServerRuntime() {
243
243
  const g = globalThis;
@@ -2767,7 +2767,7 @@ var HebNamespace = class {
2767
2767
  /**
2768
2768
  * Search HEB grocery products by keyword: price (cents), sale status, unit
2769
2769
  * price, size, UPC, stock, EBT/SNAP eligibility, aisle location and product
2770
- * URL.
2770
+ * URL. Pass store_id for one store's prices, stock and assortment.
2771
2771
  *
2772
2772
  * Costs 2 credits.
2773
2773
  */
@@ -2777,7 +2777,8 @@ var HebNamespace = class {
2777
2777
  /**
2778
2778
  * Full HEB product detail: nutrition facts, ingredients, description, images,
2779
2779
  * similar products, coupons, EBT/SNAP eligibility and breadcrumbs. Pass
2780
- * product_url (from search()) or slug + product_id.
2780
+ * product_url (from search()) or slug + product_id, or product_id alone
2781
+ * with store_id.
2781
2782
  *
2782
2783
  * Costs 2 credits.
2783
2784
  */
@@ -2825,6 +2826,35 @@ var KrogerNamespace = class {
2825
2826
  }
2826
2827
  };
2827
2828
 
2829
+ // src/namespaces/decathlon.ts
2830
+ var DecathlonNamespace = class {
2831
+ constructor(client) {
2832
+ this.client = client;
2833
+ }
2834
+ client;
2835
+ /**
2836
+ * Search Decathlon products by keyword across 7 country domains (FR, ES, IT,
2837
+ * IN, UK, PT, NET). Returns product name, brand, price (cents), currency,
2838
+ * availability, rating, review count and image.
2839
+ *
2840
+ * Costs 2 credits.
2841
+ */
2842
+ async search(options) {
2843
+ return this.client._post("/api/v1/decathlon/search", options);
2844
+ }
2845
+ /**
2846
+ * Full Decathlon product detail by URL or product ID: description, images,
2847
+ * SKU, GTIN, color, price (cents), list price, availability, offers/variants,
2848
+ * rating, review count, category and breadcrumbs. Supports all 7 country
2849
+ * domains.
2850
+ *
2851
+ * Costs 2 credits.
2852
+ */
2853
+ async product(options) {
2854
+ return this.client._post("/api/v1/decathlon/product", options);
2855
+ }
2856
+ };
2857
+
2828
2858
  // src/namespaces/trustpilot.ts
2829
2859
  var TrustpilotNamespace = class {
2830
2860
  constructor(client) {
@@ -3338,6 +3368,7 @@ var Scavio = class extends ScavioCore {
3338
3368
  costco;
3339
3369
  heb;
3340
3370
  kroger;
3371
+ decathlon;
3341
3372
  trustpilot;
3342
3373
  chatgpt;
3343
3374
  gemini;
@@ -3399,6 +3430,7 @@ var Scavio = class extends ScavioCore {
3399
3430
  this.costco = new CostcoNamespace(this);
3400
3431
  this.heb = new HebNamespace(this);
3401
3432
  this.kroger = new KrogerNamespace(this);
3433
+ this.decathlon = new DecathlonNamespace(this);
3402
3434
  this.trustpilot = new TrustpilotNamespace(this);
3403
3435
  this.chatgpt = new ChatgptNamespace(this);
3404
3436
  this.gemini = new GeminiNamespace(this);