@getlatedev/node 0.2.1436 → 0.2.1438

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
@@ -23503,7 +23503,11 @@ type YouTubeVideoRetentionResponse = {
23503
23503
  */
23504
23504
  provisionalSince?: string;
23505
23505
  /**
23506
- * Up to 100 points covering the video timeline, aggregated over the date range. Can be empty when YouTube has no retention data for the video in the given range.
23506
+ * Whether YouTube returned startedWatching and stoppedWatching for this curve. When false, both are 0 placeholders in every point, not measured values.
23507
+ */
23508
+ segmentMetricsAvailable?: boolean;
23509
+ /**
23510
+ * Up to 100 points covering the video timeline, aggregated over the date range. Contains only the buckets YouTube reports for that range and is never zero-filled, so it can end before 1.0, skip positions, or be empty.
23507
23511
  */
23508
23512
  retentionCurve?: Array<{
23509
23513
  /**
@@ -23519,11 +23523,11 @@ type YouTubeVideoRetentionResponse = {
23519
23523
  */
23520
23524
  relativeRetentionPerformance?: number;
23521
23525
  /**
23522
- * Viewers who started watching in this segment. 0 when YouTube has no segment-level data for the video.
23526
+ * Viewers who started watching in this segment. A 0 placeholder when segmentMetricsAvailable is false.
23523
23527
  */
23524
23528
  startedWatching?: number;
23525
23529
  /**
23526
- * Viewers who stopped watching in this segment. 0 when YouTube has no segment-level data for the video.
23530
+ * Viewers who stopped watching in this segment. A 0 placeholder when segmentMetricsAvailable is false.
23527
23531
  */
23528
23532
  stoppedWatching?: number;
23529
23533
  /**
@@ -24047,11 +24051,13 @@ type GetFacebookPageInsightsData = {
24047
24051
  * **Live Meta metrics** (current names, post-Nov-2025):
24048
24052
  *
24049
24053
  * - page_media_view (replaces deprecated page_impressions)
24054
+ * - page_total_media_view_unique (reach: unique viewers, replaces deprecated page_impressions_unique). The reach total sums daily unique viewers, not unique people over the range: a viewer seen on several days counts once per day. For a range of exactly 28 days it is Meta's 28-day unique viewers when Meta returns them.
24050
24055
  * - page_views_total
24051
- * - page_post_engagements
24056
+ * - page_post_engagements (content interactions: reactions, comments, shares and more)
24052
24057
  * - page_video_views
24053
24058
  * - page_video_view_time
24054
24059
  * - page_follows (replaces deprecated page_fans)
24060
+ * - page_actions_post_reactions_like_total, page_actions_post_reactions_love_total, page_actions_post_reactions_wow_total, page_actions_post_reactions_haha_total, page_actions_post_reactions_sorry_total, page_actions_post_reactions_anger_total (reactions by type; like includes care)
24055
24061
  *
24056
24062
  * **Zernio-synthesized** from daily follower snapshots (filling the Nov-2025 gap left by the page_fan_adds / page_fan_removes deprecation):
24057
24063
  *
package/dist/index.d.ts CHANGED
@@ -23503,7 +23503,11 @@ type YouTubeVideoRetentionResponse = {
23503
23503
  */
23504
23504
  provisionalSince?: string;
23505
23505
  /**
23506
- * Up to 100 points covering the video timeline, aggregated over the date range. Can be empty when YouTube has no retention data for the video in the given range.
23506
+ * Whether YouTube returned startedWatching and stoppedWatching for this curve. When false, both are 0 placeholders in every point, not measured values.
23507
+ */
23508
+ segmentMetricsAvailable?: boolean;
23509
+ /**
23510
+ * Up to 100 points covering the video timeline, aggregated over the date range. Contains only the buckets YouTube reports for that range and is never zero-filled, so it can end before 1.0, skip positions, or be empty.
23507
23511
  */
23508
23512
  retentionCurve?: Array<{
23509
23513
  /**
@@ -23519,11 +23523,11 @@ type YouTubeVideoRetentionResponse = {
23519
23523
  */
23520
23524
  relativeRetentionPerformance?: number;
23521
23525
  /**
23522
- * Viewers who started watching in this segment. 0 when YouTube has no segment-level data for the video.
23526
+ * Viewers who started watching in this segment. A 0 placeholder when segmentMetricsAvailable is false.
23523
23527
  */
23524
23528
  startedWatching?: number;
23525
23529
  /**
23526
- * Viewers who stopped watching in this segment. 0 when YouTube has no segment-level data for the video.
23530
+ * Viewers who stopped watching in this segment. A 0 placeholder when segmentMetricsAvailable is false.
23527
23531
  */
23528
23532
  stoppedWatching?: number;
23529
23533
  /**
@@ -24047,11 +24051,13 @@ type GetFacebookPageInsightsData = {
24047
24051
  * **Live Meta metrics** (current names, post-Nov-2025):
24048
24052
  *
24049
24053
  * - page_media_view (replaces deprecated page_impressions)
24054
+ * - page_total_media_view_unique (reach: unique viewers, replaces deprecated page_impressions_unique). The reach total sums daily unique viewers, not unique people over the range: a viewer seen on several days counts once per day. For a range of exactly 28 days it is Meta's 28-day unique viewers when Meta returns them.
24050
24055
  * - page_views_total
24051
- * - page_post_engagements
24056
+ * - page_post_engagements (content interactions: reactions, comments, shares and more)
24052
24057
  * - page_video_views
24053
24058
  * - page_video_view_time
24054
24059
  * - page_follows (replaces deprecated page_fans)
24060
+ * - page_actions_post_reactions_like_total, page_actions_post_reactions_love_total, page_actions_post_reactions_wow_total, page_actions_post_reactions_haha_total, page_actions_post_reactions_sorry_total, page_actions_post_reactions_anger_total (reactions by type; like includes care)
24055
24061
  *
24056
24062
  * **Zernio-synthesized** from daily follower snapshots (filling the Nov-2025 gap left by the page_fan_adds / page_fan_removes deprecation):
24057
24063
  *
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1436",
39
+ version: "0.2.1438",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1436",
8
+ version: "0.2.1438",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1436",
3
+ "version": "0.2.1438",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -316,11 +316,17 @@ export const getYouTubeDailyViews = <ThrowOnError extends boolean = false>(optio
316
316
  * - Up to 100 points (elapsedVideoTimeRatio 0.01-1.0), aggregated over the whole date range. YouTube does not support per-day retention breakdowns.
317
317
  * - audienceWatchRatio: the absolute share of viewers watching at that point in the video. It can exceed 1 (rewinds and looping, common on Shorts).
318
318
  * - relativeRetentionPerformance: compares against videos of similar length (0 = worst, 0.5 = median, 1 = best).
319
+ * - Zernio returns exactly the buckets YouTube reports for the requested range and fills none in. A curve that ends before 1.0, or skips a position, means YouTube returned no row there for that range.
320
+ * - The range ends at toDate (default 3 days ago), so recent views are included only with a later toDate.
319
321
  *
320
322
  * ### Empty curves
321
323
  *
322
324
  * YouTube returns an empty curve for videos with very few views or before analytics processing completes (2-3 day delay).
323
325
  *
326
+ * ### startedWatching and stoppedWatching
327
+ *
328
+ * YouTube does not return segment-level data for every video. Zernio then fetches the curve without it: `segmentMetricsAvailable` is `false` and both fields are `0` placeholders in every point. When it is `true`, a `0` is the value YouTube reported.
329
+ *
324
330
  */
325
331
  export const getYouTubeVideoRetention = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetYouTubeVideoRetentionData, ThrowOnError>) => {
326
332
  return (options?.client ?? client).get<GetYouTubeVideoRetentionResponse, GetYouTubeVideoRetentionError, ThrowOnError>({
@@ -331,7 +337,7 @@ export const getYouTubeVideoRetention = <ThrowOnError extends boolean = false>(o
331
337
 
332
338
  /**
333
339
  * Get Facebook Page insights
334
- * Returns page-level Facebook insights (media views, views, post engagements, video metrics, follower counts). The response shape matches /v1/analytics/instagram/account-insights, so the same client handling works across platforms.
340
+ * Returns page-level Facebook insights (media views, reach, views, post engagements, reaction counts, video metrics, follower counts). The response shape matches /v1/analytics/instagram/account-insights, so the same client handling works across platforms.
335
341
  *
336
342
  * Max 89 days, defaults to last 30 days.
337
343
  *
@@ -344,6 +350,8 @@ export const getYouTubeVideoRetention = <ThrowOnError extends boolean = false>(o
344
350
  * - page_fan_adds
345
351
  * - page_fan_removes
346
352
  *
353
+ * page_impressions_unique is deprecated above Graph API v25 and is not accepted; use page_total_media_view_unique. Meta's Page Insights reference (https://developers.facebook.com/docs/graph-api/reference/insights) also deprecates a number of Page Insights metrics for all API versions by June 15, 2026.
354
+ *
347
355
  * Use the replacements below. Because Meta did not provide direct adds/removes replacements, Zernio synthesizes followers_gained / followers_lost from the daily follower snapshotter.
348
356
  *
349
357
  */
@@ -22177,7 +22177,11 @@ export type YouTubeVideoRetentionResponse = {
22177
22177
  */
22178
22178
  provisionalSince?: string;
22179
22179
  /**
22180
- * Up to 100 points covering the video timeline, aggregated over the date range. Can be empty when YouTube has no retention data for the video in the given range.
22180
+ * Whether YouTube returned startedWatching and stoppedWatching for this curve. When false, both are 0 placeholders in every point, not measured values.
22181
+ */
22182
+ segmentMetricsAvailable?: boolean;
22183
+ /**
22184
+ * Up to 100 points covering the video timeline, aggregated over the date range. Contains only the buckets YouTube reports for that range and is never zero-filled, so it can end before 1.0, skip positions, or be empty.
22181
22185
  */
22182
22186
  retentionCurve?: Array<{
22183
22187
  /**
@@ -22193,11 +22197,11 @@ export type YouTubeVideoRetentionResponse = {
22193
22197
  */
22194
22198
  relativeRetentionPerformance?: number;
22195
22199
  /**
22196
- * Viewers who started watching in this segment. 0 when YouTube has no segment-level data for the video.
22200
+ * Viewers who started watching in this segment. A 0 placeholder when segmentMetricsAvailable is false.
22197
22201
  */
22198
22202
  startedWatching?: number;
22199
22203
  /**
22200
- * Viewers who stopped watching in this segment. 0 when YouTube has no segment-level data for the video.
22204
+ * Viewers who stopped watching in this segment. A 0 placeholder when segmentMetricsAvailable is false.
22201
22205
  */
22202
22206
  stoppedWatching?: number;
22203
22207
  /**
@@ -22755,11 +22759,13 @@ export type GetFacebookPageInsightsData = {
22755
22759
  * **Live Meta metrics** (current names, post-Nov-2025):
22756
22760
  *
22757
22761
  * - page_media_view (replaces deprecated page_impressions)
22762
+ * - page_total_media_view_unique (reach: unique viewers, replaces deprecated page_impressions_unique). The reach total sums daily unique viewers, not unique people over the range: a viewer seen on several days counts once per day. For a range of exactly 28 days it is Meta's 28-day unique viewers when Meta returns them.
22758
22763
  * - page_views_total
22759
- * - page_post_engagements
22764
+ * - page_post_engagements (content interactions: reactions, comments, shares and more)
22760
22765
  * - page_video_views
22761
22766
  * - page_video_view_time
22762
22767
  * - page_follows (replaces deprecated page_fans)
22768
+ * - page_actions_post_reactions_like_total, page_actions_post_reactions_love_total, page_actions_post_reactions_wow_total, page_actions_post_reactions_haha_total, page_actions_post_reactions_sorry_total, page_actions_post_reactions_anger_total (reactions by type; like includes care)
22763
22769
  *
22764
22770
  * **Zernio-synthesized** from daily follower snapshots (filling the Nov-2025 gap left by the page_fan_adds / page_fan_removes deprecation):
22765
22771
  *