@lonca/trendyol 0.15.0 → 1.0.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/testing.cjs CHANGED
@@ -2686,7 +2686,7 @@ var WebhooksResource = class {
2686
2686
  this.validateInput(input, "create");
2687
2687
  const raw = await this.transport.request({
2688
2688
  method: "POST",
2689
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2689
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2690
2690
  body: input,
2691
2691
  rateLimiter: this.limiter
2692
2692
  });
@@ -2699,7 +2699,7 @@ var WebhooksResource = class {
2699
2699
  async list() {
2700
2700
  const data = await this.transport.request({
2701
2701
  method: "GET",
2702
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2702
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2703
2703
  rateLimiter: this.limiter
2704
2704
  });
2705
2705
  const rows = Array.isArray(data) ? data : Array.isArray(data?.webhooks) ? data.webhooks : Array.isArray(data?.content) ? data.content : [];
@@ -2783,7 +2783,7 @@ var WebhooksResource = class {
2783
2783
  if (input.subscribedStatuses && input.subscribedStatuses.length === 0) ;
2784
2784
  }
2785
2785
  webhookPath(webhookId) {
2786
- return `/integration/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2786
+ return `/integration/webhook/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2787
2787
  }
2788
2788
  };
2789
2789