@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 CHANGED
@@ -443,7 +443,7 @@ Override per resource by passing a `TokenBucketRateLimiter` from `@lonca/core` w
443
443
 
444
444
  ## Stability
445
445
 
446
- `0.x` — alpha. The Trendyol surface is feature-complete and STAGE-verified, but public types may still adjust between minor versions until `1.0.0`.
446
+ `1.x` — stable. The Trendyol surface is feature-complete and verified read-only against the production API. Breaking changes ship only in major versions; see [Stability & versioning](https://loncadev.github.io/lonca/stability/).
447
447
 
448
448
  ## License
449
449
 
@@ -2497,10 +2497,12 @@ declare class TestOrdersResource {
2497
2497
  */
2498
2498
 
2499
2499
  /**
2500
- * Status of a seller integration video as Trendyol processes it. Open
2501
- * union — Trendyol may add new statuses without an SDK release.
2500
+ * Status of a seller integration video as Trendyol processes it:
2501
+ * `IN_PROGRESS` (downloading / processing), `SUCCESS` (downloaded),
2502
+ * `FAILED` (download failed). Open union — Trendyol may add new statuses
2503
+ * without an SDK release.
2502
2504
  */
2503
- type SellerIntegrationStatus = 'WAITING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | (string & {});
2505
+ type SellerIntegrationStatus = 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | (string & {});
2504
2506
  /**
2505
2507
  * Documented `videoContentType` values for `videos.create()`. Open union —
2506
2508
  * Trendyol may add new types without an SDK release. Omitted, Trendyol
@@ -2497,10 +2497,12 @@ declare class TestOrdersResource {
2497
2497
  */
2498
2498
 
2499
2499
  /**
2500
- * Status of a seller integration video as Trendyol processes it. Open
2501
- * union — Trendyol may add new statuses without an SDK release.
2500
+ * Status of a seller integration video as Trendyol processes it:
2501
+ * `IN_PROGRESS` (downloading / processing), `SUCCESS` (downloaded),
2502
+ * `FAILED` (download failed). Open union — Trendyol may add new statuses
2503
+ * without an SDK release.
2502
2504
  */
2503
- type SellerIntegrationStatus = 'WAITING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | (string & {});
2505
+ type SellerIntegrationStatus = 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | (string & {});
2504
2506
  /**
2505
2507
  * Documented `videoContentType` values for `videos.create()`. Open union —
2506
2508
  * Trendyol may add new types without an SDK release. Omitted, Trendyol
package/dist/index.cjs CHANGED
@@ -2642,7 +2642,7 @@ var VideosResource = class {
2642
2642
  },
2643
2643
  rateLimiter: this.listLimiter
2644
2644
  });
2645
- const rows = Array.isArray(data) ? data : Array.isArray(data?.content) ? data.content : Array.isArray(data?.items) ? data.items : [];
2645
+ const rows = Array.isArray(data) ? data : Array.isArray(data?.data) ? data.data : Array.isArray(data?.content) ? data.content : Array.isArray(data?.items) ? data.items : [];
2646
2646
  return rows.map((r) => {
2647
2647
  const row = r ?? {};
2648
2648
  const out = { raw: row };
@@ -2689,7 +2689,7 @@ var WebhooksResource = class {
2689
2689
  this.validateInput(input, "create");
2690
2690
  const raw = await this.transport.request({
2691
2691
  method: "POST",
2692
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2692
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2693
2693
  body: input,
2694
2694
  rateLimiter: this.limiter
2695
2695
  });
@@ -2702,7 +2702,7 @@ var WebhooksResource = class {
2702
2702
  async list() {
2703
2703
  const data = await this.transport.request({
2704
2704
  method: "GET",
2705
- path: `/integration/sellers/${this.transport.sellerId}/webhooks`,
2705
+ path: `/integration/webhook/sellers/${this.transport.sellerId}/webhooks`,
2706
2706
  rateLimiter: this.limiter
2707
2707
  });
2708
2708
  const rows = Array.isArray(data) ? data : Array.isArray(data?.webhooks) ? data.webhooks : Array.isArray(data?.content) ? data.content : [];
@@ -2786,7 +2786,7 @@ var WebhooksResource = class {
2786
2786
  if (input.subscribedStatuses && input.subscribedStatuses.length === 0) ;
2787
2787
  }
2788
2788
  webhookPath(webhookId) {
2789
- return `/integration/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2789
+ return `/integration/webhook/sellers/${this.transport.sellerId}/webhooks/${encodeURIComponent(String(webhookId))}`;
2790
2790
  }
2791
2791
  };
2792
2792