@dracoonghost/trndup-sdk 1.3.22 → 1.3.23

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.d.mts CHANGED
@@ -674,13 +674,28 @@ declare namespace Instagram {
674
674
  }
675
675
  /**
676
676
  * Response from POST /v1/platforms/instagram/analytics/posts/sync
677
+ * Post insights are queued for background processing via BullMQ
677
678
  */
678
679
  interface PostInsightsSyncResponse {
680
+ message: string;
679
681
  totalPosts: number;
680
- postsWithInsights: number;
681
- errorCount: number;
682
- syncStatus: SyncStatus;
683
- lastSyncAt: string;
682
+ jobsQueued: number;
683
+ status: SyncStatus;
684
+ queuedAt: string;
685
+ }
686
+ /**
687
+ * Response when sync is already in progress
688
+ */
689
+ interface PostInsightsInProgressResponse {
690
+ message: string;
691
+ status: 'in_progress';
692
+ progress: {
693
+ waiting: number;
694
+ active: number;
695
+ completed: number;
696
+ failed: number;
697
+ delayed: number;
698
+ };
684
699
  }
685
700
  /**
686
701
  * Response from GET /v1/platforms/instagram/analytics/posts/sync/status
@@ -1801,13 +1816,20 @@ declare class InstagramModule {
1801
1816
  */
1802
1817
  getAccountAnalyticsSyncStatus(): Promise<Instagram.AccountAnalyticsSyncStatusResponse>;
1803
1818
  /**
1804
- * Sync post-level insights for all posts
1819
+ * Queue post-level insights sync for all posts (BullMQ-based)
1805
1820
  * POST /v1/platforms/instagram/analytics/posts/sync
1821
+ *
1822
+ * Jobs are queued and processed in the background.
1823
+ * Poll getPostInsightsSyncStatus() to check progress.
1824
+ *
1825
+ * @returns Response with jobsQueued count and status
1806
1826
  */
1807
1827
  syncPostInsights(): Promise<Instagram.PostInsightsSyncResponse>;
1808
1828
  /**
1809
1829
  * Get post insights sync status
1810
1830
  * GET /v1/platforms/instagram/analytics/posts/sync/status
1831
+ *
1832
+ * Use to poll progress while sync is in_progress
1811
1833
  */
1812
1834
  getPostInsightsSyncStatus(): Promise<Instagram.PostInsightsSyncStatusResponse>;
1813
1835
  /**
package/dist/index.d.ts CHANGED
@@ -674,13 +674,28 @@ declare namespace Instagram {
674
674
  }
675
675
  /**
676
676
  * Response from POST /v1/platforms/instagram/analytics/posts/sync
677
+ * Post insights are queued for background processing via BullMQ
677
678
  */
678
679
  interface PostInsightsSyncResponse {
680
+ message: string;
679
681
  totalPosts: number;
680
- postsWithInsights: number;
681
- errorCount: number;
682
- syncStatus: SyncStatus;
683
- lastSyncAt: string;
682
+ jobsQueued: number;
683
+ status: SyncStatus;
684
+ queuedAt: string;
685
+ }
686
+ /**
687
+ * Response when sync is already in progress
688
+ */
689
+ interface PostInsightsInProgressResponse {
690
+ message: string;
691
+ status: 'in_progress';
692
+ progress: {
693
+ waiting: number;
694
+ active: number;
695
+ completed: number;
696
+ failed: number;
697
+ delayed: number;
698
+ };
684
699
  }
685
700
  /**
686
701
  * Response from GET /v1/platforms/instagram/analytics/posts/sync/status
@@ -1801,13 +1816,20 @@ declare class InstagramModule {
1801
1816
  */
1802
1817
  getAccountAnalyticsSyncStatus(): Promise<Instagram.AccountAnalyticsSyncStatusResponse>;
1803
1818
  /**
1804
- * Sync post-level insights for all posts
1819
+ * Queue post-level insights sync for all posts (BullMQ-based)
1805
1820
  * POST /v1/platforms/instagram/analytics/posts/sync
1821
+ *
1822
+ * Jobs are queued and processed in the background.
1823
+ * Poll getPostInsightsSyncStatus() to check progress.
1824
+ *
1825
+ * @returns Response with jobsQueued count and status
1806
1826
  */
1807
1827
  syncPostInsights(): Promise<Instagram.PostInsightsSyncResponse>;
1808
1828
  /**
1809
1829
  * Get post insights sync status
1810
1830
  * GET /v1/platforms/instagram/analytics/posts/sync/status
1831
+ *
1832
+ * Use to poll progress while sync is in_progress
1811
1833
  */
1812
1834
  getPostInsightsSyncStatus(): Promise<Instagram.PostInsightsSyncStatusResponse>;
1813
1835
  /**
package/dist/index.js CHANGED
@@ -549,8 +549,13 @@ var InstagramModule = class {
549
549
  }
550
550
  // ===== POST INSIGHTS SYNC =====
551
551
  /**
552
- * Sync post-level insights for all posts
552
+ * Queue post-level insights sync for all posts (BullMQ-based)
553
553
  * POST /v1/platforms/instagram/analytics/posts/sync
554
+ *
555
+ * Jobs are queued and processed in the background.
556
+ * Poll getPostInsightsSyncStatus() to check progress.
557
+ *
558
+ * @returns Response with jobsQueued count and status
554
559
  */
555
560
  async syncPostInsights() {
556
561
  return this.client.post(
@@ -560,6 +565,8 @@ var InstagramModule = class {
560
565
  /**
561
566
  * Get post insights sync status
562
567
  * GET /v1/platforms/instagram/analytics/posts/sync/status
568
+ *
569
+ * Use to poll progress while sync is in_progress
563
570
  */
564
571
  async getPostInsightsSyncStatus() {
565
572
  return this.client.get(