ugcinc 5.5.2 → 5.6.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/README.md CHANGED
@@ -44,7 +44,7 @@ if (res.ok) {
44
44
  - `client.accounts`: list, create, update, troubleshoot, quarantine/release, and manage account lifecycle
45
45
  - `client.posts`: create video/slideshow posts, update them, retry failures, and preview schedule conflicts
46
46
  - `client.media`: upload media, create media records, search profile-picture candidates, search images and videos by keyword (`media.imageSearch`, cursor-paged), manage tags/names, and work with social audio
47
- - `client.stats`: fetch account/post analytics, daily aggregates, top performers, refresh stats, and check stats freshness
47
+ - `client.stats`: fetch account/post analytics, daily aggregates, top performers, refresh stats, and check stats freshness. Daily stats methods take an optional `timezone` (IANA name, default UTC): days are calendar days in that zone.
48
48
  - `client.org`: manage organizations, API keys, and integration keys
49
49
  - `client.billing`: inspect subscription state and handle account deactivation, replacements, and refunds
50
50
  - `client.automations`: create, run, publish, export, and monitor automation workflows
package/dist/stats.d.ts CHANGED
@@ -59,6 +59,11 @@ export interface DailyAggregatedStat {
59
59
  export interface GetDailyAggregatedStatsParams {
60
60
  startDate: string;
61
61
  endDate: string;
62
+ /**
63
+ * IANA time zone whose calendar days the result uses, for example 'America/Los_Angeles'.
64
+ * startDate and endDate name days in this zone. Defaults to UTC.
65
+ */
66
+ timezone?: string;
62
67
  accountIds?: string[];
63
68
  tag?: string;
64
69
  org_group?: string;
@@ -75,6 +80,11 @@ export interface DailyAccountStat {
75
80
  export interface GetDailyAccountStatsParams {
76
81
  startDate: string;
77
82
  endDate: string;
83
+ /**
84
+ * IANA time zone whose calendar days the result uses, for example 'America/Los_Angeles'.
85
+ * startDate and endDate name days in this zone. Defaults to UTC.
86
+ */
87
+ timezone?: string;
78
88
  accountIds?: string[];
79
89
  tag?: string;
80
90
  org_group?: string;
@@ -103,6 +113,11 @@ export interface DailyPostStat {
103
113
  export interface GetDailyPostStatsParams {
104
114
  startDate: string;
105
115
  endDate: string;
116
+ /**
117
+ * IANA time zone whose calendar days the result uses, for example 'America/Los_Angeles'.
118
+ * startDate and endDate name days in this zone. Defaults to UTC.
119
+ */
120
+ timezone?: string;
106
121
  accountIds?: string[];
107
122
  tag?: string;
108
123
  org_group?: string;
@@ -127,6 +142,11 @@ export interface DashboardDailyStat {
127
142
  export interface GetDashboardDailyStatsParams {
128
143
  startDate: string;
129
144
  endDate: string;
145
+ /**
146
+ * IANA time zone whose calendar days the result uses, for example 'America/Los_Angeles'.
147
+ * startDate and endDate name days in this zone. Defaults to UTC.
148
+ */
149
+ timezone?: string;
130
150
  accountIds?: string[];
131
151
  tag?: string;
132
152
  org_group?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "5.5.2",
3
+ "version": "5.6.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",