@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/index.js CHANGED
@@ -2688,7 +2688,7 @@ var WebhooksResource = class {
2688
2688
  this.validateInput(input, "create");
2689
2689
  const raw = await this.transport.request({
2690
2690
  method: "POST",
2691
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2691
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2692
2692
  body: input,
2693
2693
  rateLimiter: this.limiter
2694
2694
  });
@@ -2701,7 +2701,7 @@ var WebhooksResource = class {
2701
2701
  async list() {
2702
2702
  const data = await this.transport.request({
2703
2703
  method: "GET",
2704
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2704
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2705
2705
  rateLimiter: this.limiter
2706
2706
  });
2707
2707
  const rows = Array.isArray(data) ? data : Array.isArray(data?.webhooks) ? data.webhooks : Array.isArray(data?.content) ? data.content : [];
@@ -2785,7 +2785,7 @@ var WebhooksResource = class {
2785
2785
  if (input.subscribedStatuses && input.subscribedStatuses.length === 0) ;
2786
2786
  }
2787
2787
  webhookPath(webhookId) {
2788
- return `/integration/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2788
+ return `/integration/webhook/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2789
2789
  }
2790
2790
  };
2791
2791