@lonca/trendyol 0.15.1 → 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/README.md +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +3 -3
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +3 -3
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
package/dist/testing.js
CHANGED
|
@@ -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
|
|