@lonca/trendyol 0.15.1 → 1.0.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.
@@ -1,4 +1,4 @@
1
- import { g as BatchRequestStatus, ba as TrendyolClient } from './client-Dnfjvwah.cjs';
1
+ import { g as BatchRequestStatus, ba as TrendyolClient } from './client-CnDyop_o.cjs';
2
2
  import '@lonca/core';
3
3
 
4
4
  /** A request the fake client received, normalized for matching in a `handler`. */
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { g as BatchRequestStatus, ba as TrendyolClient } from './client-Dnfjvwah.js';
1
+ import { g as BatchRequestStatus, ba as TrendyolClient } from './client-CnDyop_o.js';
2
2
  import '@lonca/core';
3
3
 
4
4
  /** A request the fake client received, normalized for matching in a `handler`. */
package/dist/testing.js CHANGED
@@ -2637,7 +2637,7 @@ var VideosResource = class {
2637
2637
  },
2638
2638
  rateLimiter: this.listLimiter
2639
2639
  });
2640
- const rows = Array.isArray(data) ? data : Array.isArray(data?.content) ? data.content : Array.isArray(data?.items) ? data.items : [];
2640
+ const rows = Array.isArray(data) ? data : Array.isArray(data?.data) ? data.data : Array.isArray(data?.content) ? data.content : Array.isArray(data?.items) ? data.items : [];
2641
2641
  return rows.map((r) => {
2642
2642
  const row = r ?? {};
2643
2643
  const out = { raw: row };
@@ -2684,7 +2684,7 @@ var WebhooksResource = class {
2684
2684
  this.validateInput(input, "create");
2685
2685
  const raw = await this.transport.request({
2686
2686
  method: "POST",
2687
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2687
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2688
2688
  body: input,
2689
2689
  rateLimiter: this.limiter
2690
2690
  });
@@ -2697,7 +2697,7 @@ var WebhooksResource = class {
2697
2697
  async list() {
2698
2698
  const data = await this.transport.request({
2699
2699
  method: "GET",
2700
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2700
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2701
2701
  rateLimiter: this.limiter
2702
2702
  });
2703
2703
  const rows = Array.isArray(data) ? data : Array.isArray(data?.webhooks) ? data.webhooks : Array.isArray(data?.content) ? data.content : [];
@@ -2781,7 +2781,7 @@ var WebhooksResource = class {
2781
2781
  if (input.subscribedStatuses && input.subscribedStatuses.length === 0) ;
2782
2782
  }
2783
2783
  webhookPath(webhookId) {
2784
- return `/integration/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2784
+ return `/integration/webhook/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2785
2785
  }
2786
2786
  };
2787
2787