ugcinc 2.67.0 → 2.68.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/dist/stats.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BaseClient } from './base';
2
- import type { AccountStat, PostStat, GetAccountStatsParams, GetPostStatsParams, RefreshStatsParams, RefreshStatsResponse, DailyAggregatedStat, GetDailyAggregatedStatsParams, DailyPostStat, GetDailyPostStatsParams, TopAccount, GetTopAccountsParams, TopPost, GetTopPostsParams, ApiResponse } from './types';
2
+ import type { AccountStat, PostStat, GetAccountStatsParams, GetPostStatsParams, RefreshStatsParams, RefreshStatsResponse, DailyAggregatedStat, GetDailyAggregatedStatsParams, DailyAccountStat, GetDailyAccountStatsParams, DailyPostStat, GetDailyPostStatsParams, TopAccount, GetTopAccountsParams, TopPost, GetTopPostsParams, ApiResponse } from './types';
3
3
  /**
4
4
  * Client for managing statistics
5
5
  */
@@ -74,6 +74,16 @@ export declare class StatsClient extends BaseClient {
74
74
  * ```
75
75
  */
76
76
  getDailyAggregated(params: GetDailyAggregatedStatsParams): Promise<ApiResponse<DailyAggregatedStat[]>>;
77
+ /**
78
+ * Get daily account statistics for all accounts in an org
79
+ *
80
+ * Returns per-account daily changes (deltas) for followers, following, views, likes.
81
+ * Perfect for granular local filtering in dashboard charts.
82
+ *
83
+ * @param params - Date range and filter parameters (startDate and endDate required)
84
+ * @returns Array of daily account statistics
85
+ */
86
+ getDailyAccountStats(params: GetDailyAccountStatsParams): Promise<ApiResponse<DailyAccountStat[]>>;
77
87
  /**
78
88
  * Get daily post statistics for chart tooltips
79
89
  *
package/dist/stats.js CHANGED
@@ -82,6 +82,18 @@ class StatsClient extends base_1.BaseClient {
82
82
  async getDailyAggregated(params) {
83
83
  return this.post('/stats/aggregated/daily', params);
84
84
  }
85
+ /**
86
+ * Get daily account statistics for all accounts in an org
87
+ *
88
+ * Returns per-account daily changes (deltas) for followers, following, views, likes.
89
+ * Perfect for granular local filtering in dashboard charts.
90
+ *
91
+ * @param params - Date range and filter parameters (startDate and endDate required)
92
+ * @returns Array of daily account statistics
93
+ */
94
+ async getDailyAccountStats(params) {
95
+ return this.post('/stats/granular/daily-accounts', params);
96
+ }
85
97
  /**
86
98
  * Get daily post statistics for chart tooltips
87
99
  *
package/dist/types.d.ts CHANGED
@@ -253,6 +253,22 @@ export interface GetDailyAggregatedStatsParams {
253
253
  org_group?: string;
254
254
  user_group?: string;
255
255
  }
256
+ export interface DailyAccountStat {
257
+ date: Date | string;
258
+ account_id: string;
259
+ followers: number;
260
+ following: number;
261
+ views: number;
262
+ likes: number;
263
+ }
264
+ export interface GetDailyAccountStatsParams {
265
+ startDate: string;
266
+ endDate: string;
267
+ accountIds?: string[];
268
+ tag?: string;
269
+ org_group?: string;
270
+ user_group?: string;
271
+ }
256
272
  export interface DailyPostStat {
257
273
  date: Date | string;
258
274
  post_id: string;
@@ -794,6 +810,8 @@ export interface NodeRun {
794
810
  output_data: Record<string, unknown> | null;
795
811
  created_at: string;
796
812
  completed_at: string | null;
813
+ /** Sub-workflow node runs (only present for workflow nodes) */
814
+ subNodes?: NodeRun[];
797
815
  }
798
816
  /**
799
817
  * Media types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",