@lonca/trendyol 1.0.0 → 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.
@@ -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 };