@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.
- package/README.md +1 -1
- package/dist/{client-Dnfjvwah.d.cts → client-CnDyop_o.d.cts} +5 -3
- package/dist/{client-Dnfjvwah.d.ts → client-CnDyop_o.d.ts} +5 -3
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +4 -4
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +4 -4
- package/dist/testing.js.map +1 -1
- package/package.json +3 -3
package/dist/testing.cjs
CHANGED
|
@@ -2639,7 +2639,7 @@ var VideosResource = class {
|
|
|
2639
2639
|
},
|
|
2640
2640
|
rateLimiter: this.listLimiter
|
|
2641
2641
|
});
|
|
2642
|
-
const rows = Array.isArray(data) ? data : Array.isArray(data?.content) ? data.content : Array.isArray(data?.items) ? data.items : [];
|
|
2642
|
+
const rows = Array.isArray(data) ? data : Array.isArray(data?.data) ? data.data : Array.isArray(data?.content) ? data.content : Array.isArray(data?.items) ? data.items : [];
|
|
2643
2643
|
return rows.map((r) => {
|
|
2644
2644
|
const row = r ?? {};
|
|
2645
2645
|
const out = { raw: row };
|
|
@@ -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
|
|