@zernio/node 0.2.119 → 0.2.120

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
@@ -12985,7 +12985,7 @@ type ListAdsData = {
12985
12985
  */
12986
12986
  campaignId?: string;
12987
12987
  /**
12988
- * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
12988
+ * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
12989
12989
  */
12990
12990
  fromDate?: string;
12991
12991
  limit?: number;
@@ -13004,7 +13004,7 @@ type ListAdsData = {
13004
13004
  source?: 'zernio' | 'all';
13005
13005
  status?: AdStatus;
13006
13006
  /**
13007
- * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13007
+ * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13008
13008
  */
13009
13009
  toDate?: string;
13010
13010
  };
@@ -13293,7 +13293,7 @@ type GetAdTreeData = {
13293
13293
  */
13294
13294
  adAccountId?: string;
13295
13295
  /**
13296
- * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
13296
+ * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
13297
13297
  */
13298
13298
  fromDate?: string;
13299
13299
  /**
@@ -13318,7 +13318,7 @@ type GetAdTreeData = {
13318
13318
  */
13319
13319
  status?: AdStatus;
13320
13320
  /**
13321
- * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13321
+ * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13322
13322
  */
13323
13323
  toDate?: string;
13324
13324
  };
@@ -13427,11 +13427,11 @@ type GetAdAnalyticsData = {
13427
13427
  */
13428
13428
  breakdowns?: string;
13429
13429
  /**
13430
- * Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
13430
+ * Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
13431
13431
  */
13432
13432
  fromDate?: string;
13433
13433
  /**
13434
- * End of date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13434
+ * End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13435
13435
  */
13436
13436
  toDate?: string;
13437
13437
  };
package/dist/index.d.ts CHANGED
@@ -12985,7 +12985,7 @@ type ListAdsData = {
12985
12985
  */
12986
12986
  campaignId?: string;
12987
12987
  /**
12988
- * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
12988
+ * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
12989
12989
  */
12990
12990
  fromDate?: string;
12991
12991
  limit?: number;
@@ -13004,7 +13004,7 @@ type ListAdsData = {
13004
13004
  source?: 'zernio' | 'all';
13005
13005
  status?: AdStatus;
13006
13006
  /**
13007
- * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13007
+ * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13008
13008
  */
13009
13009
  toDate?: string;
13010
13010
  };
@@ -13293,7 +13293,7 @@ type GetAdTreeData = {
13293
13293
  */
13294
13294
  adAccountId?: string;
13295
13295
  /**
13296
- * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
13296
+ * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
13297
13297
  */
13298
13298
  fromDate?: string;
13299
13299
  /**
@@ -13318,7 +13318,7 @@ type GetAdTreeData = {
13318
13318
  */
13319
13319
  status?: AdStatus;
13320
13320
  /**
13321
- * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13321
+ * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13322
13322
  */
13323
13323
  toDate?: string;
13324
13324
  };
@@ -13427,11 +13427,11 @@ type GetAdAnalyticsData = {
13427
13427
  */
13428
13428
  breakdowns?: string;
13429
13429
  /**
13430
- * Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
13430
+ * Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
13431
13431
  */
13432
13432
  fromDate?: string;
13433
13433
  /**
13434
- * End of date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13434
+ * End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13435
13435
  */
13436
13436
  toDate?: string;
13437
13437
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.119",
3
+ "version": "0.2.120",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3228,7 +3228,8 @@ export const listCommentAutomationLogs = <ThrowOnError extends boolean = false>(
3228
3228
  * List ads
3229
3229
  * Returns a paginated list of ads with metrics computed over an optional date range.
3230
3230
  * Use source=all to include externally-synced ads from platform ad managers.
3231
- * If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
3231
+ * If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
3232
+ * Ranges older than 90 days trigger a one-time on-demand fetch from the platform when scoped to a specific accountId, then serve from cache on subsequent requests.
3232
3233
  *
3233
3234
  */
3234
3235
  export const listAds = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListAdsData, ThrowOnError>) => {
@@ -3390,7 +3391,8 @@ export const updateAdSetStatus = <ThrowOnError extends boolean = false>(options:
3390
3391
  * Metrics are computed over an optional date range, then rolled up from ad level to ad set
3391
3392
  * and campaign levels. Pagination is at the campaign level. Ads without a campaign or ad set
3392
3393
  * ID are grouped into synthetic "Ungrouped" buckets.
3393
- * If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
3394
+ * If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
3395
+ * Ranges older than 90 days trigger a one-time on-demand fetch from the platform when scoped to a specific accountId, then serve from cache on subsequent requests.
3394
3396
  *
3395
3397
  */
3396
3398
  export const getAdTree = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdTreeData, ThrowOnError>) => {
@@ -3446,7 +3448,8 @@ export const deleteAd = <ThrowOnError extends boolean = false>(options: OptionsL
3446
3448
  * Get ad analytics
3447
3449
  * Returns detailed performance analytics for an ad. Includes summary metrics, a daily timeline
3448
3450
  * over the requested date range, and optional demographic breakdowns (Meta and TikTok only).
3449
- * If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
3451
+ * If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
3452
+ * Ranges older than 90 days trigger a one-time on-demand fetch from the platform, then serve from cache on subsequent requests.
3450
3453
  *
3451
3454
  */
3452
3455
  export const getAdAnalytics = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdAnalyticsData, ThrowOnError>) => {
@@ -13276,7 +13276,7 @@ export type ListAdsData = {
13276
13276
  */
13277
13277
  campaignId?: string;
13278
13278
  /**
13279
- * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
13279
+ * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
13280
13280
  */
13281
13281
  fromDate?: string;
13282
13282
  limit?: number;
@@ -13295,7 +13295,7 @@ export type ListAdsData = {
13295
13295
  source?: 'zernio' | 'all';
13296
13296
  status?: AdStatus;
13297
13297
  /**
13298
- * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13298
+ * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13299
13299
  */
13300
13300
  toDate?: string;
13301
13301
  };
@@ -13611,7 +13611,7 @@ export type GetAdTreeData = {
13611
13611
  */
13612
13612
  adAccountId?: string;
13613
13613
  /**
13614
- * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
13614
+ * Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch when scoped to a specific accountId.
13615
13615
  */
13616
13616
  fromDate?: string;
13617
13617
  /**
@@ -13636,7 +13636,7 @@ export type GetAdTreeData = {
13636
13636
  */
13637
13637
  status?: AdStatus;
13638
13638
  /**
13639
- * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13639
+ * End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13640
13640
  */
13641
13641
  toDate?: string;
13642
13642
  };
@@ -13757,11 +13757,11 @@ export type GetAdAnalyticsData = {
13757
13757
  */
13758
13758
  breakdowns?: string;
13759
13759
  /**
13760
- * Start of date range (YYYY-MM-DD). Defaults to 90 days ago.
13760
+ * Start of date range (YYYY-MM-DD). Defaults to 90 days ago. Ranges older than 90 days trigger an on-demand platform fetch.
13761
13761
  */
13762
13762
  fromDate?: string;
13763
13763
  /**
13764
- * End of date range (YYYY-MM-DD). Defaults to today. Max 90-day range.
13764
+ * End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
13765
13765
  */
13766
13766
  toDate?: string;
13767
13767
  };