@zernio/node 0.2.1431 → 0.2.1432

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
@@ -24497,6 +24497,27 @@ type GetDailyMetricsResponse = ({
24497
24497
  clicks?: number;
24498
24498
  views?: number;
24499
24499
  }>;
24500
+ /**
24501
+ * Sums of the whole range for the applied filters.
24502
+ */
24503
+ totals?: {
24504
+ postCount?: number;
24505
+ impressions?: number;
24506
+ /**
24507
+ * Sum of per-post reach, not unique accounts.
24508
+ */
24509
+ reach?: number;
24510
+ likes?: number;
24511
+ comments?: number;
24512
+ shares?: number;
24513
+ saves?: number;
24514
+ clicks?: number;
24515
+ views?: number;
24516
+ /**
24517
+ * Likes, comments, shares and saves (interactions).
24518
+ */
24519
+ engagement?: number;
24520
+ };
24500
24521
  });
24501
24522
  type GetDailyMetricsError = (ErrorResponse | {
24502
24523
  error?: string;
package/dist/index.d.ts CHANGED
@@ -24497,6 +24497,27 @@ type GetDailyMetricsResponse = ({
24497
24497
  clicks?: number;
24498
24498
  views?: number;
24499
24499
  }>;
24500
+ /**
24501
+ * Sums of the whole range for the applied filters.
24502
+ */
24503
+ totals?: {
24504
+ postCount?: number;
24505
+ impressions?: number;
24506
+ /**
24507
+ * Sum of per-post reach, not unique accounts.
24508
+ */
24509
+ reach?: number;
24510
+ likes?: number;
24511
+ comments?: number;
24512
+ shares?: number;
24513
+ saves?: number;
24514
+ clicks?: number;
24515
+ views?: number;
24516
+ /**
24517
+ * Likes, comments, shares and saves (interactions).
24518
+ */
24519
+ engagement?: number;
24520
+ };
24500
24521
  });
24501
24522
  type GetDailyMetricsError = (ErrorResponse | {
24502
24523
  error?: string;
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: "@zernio/node",
39
- version: "0.2.1431",
39
+ version: "0.2.1432",
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: "@zernio/node",
8
- version: "0.2.1431",
8
+ version: "0.2.1432",
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": "@zernio/node",
3
- "version": "0.2.1431",
3
+ "version": "0.2.1432",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -524,6 +524,8 @@ export const getYouTubeDemographics = <ThrowOnError extends boolean = false>(opt
524
524
  * Each day includes post count, platform distribution, and summed metrics (impressions, reach, likes, comments, shares, saves, clicks, views).
525
525
  * Defaults to the last 180 days.
526
526
  *
527
+ * `totals` sums the whole range for the applied filters (pass `accountId` for one account). With attribution "publish" they are the lifetime metrics of posts published in the range, with "received" the engagement that arrived in the range.
528
+ *
527
529
  */
528
530
  export const getDailyMetrics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => {
529
531
  return (options?.client ?? client).get<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>({
@@ -23233,6 +23233,27 @@ export type GetDailyMetricsResponse = ({
23233
23233
  clicks?: number;
23234
23234
  views?: number;
23235
23235
  }>;
23236
+ /**
23237
+ * Sums of the whole range for the applied filters.
23238
+ */
23239
+ totals?: {
23240
+ postCount?: number;
23241
+ impressions?: number;
23242
+ /**
23243
+ * Sum of per-post reach, not unique accounts.
23244
+ */
23245
+ reach?: number;
23246
+ likes?: number;
23247
+ comments?: number;
23248
+ shares?: number;
23249
+ saves?: number;
23250
+ clicks?: number;
23251
+ views?: number;
23252
+ /**
23253
+ * Likes, comments, shares and saves (interactions).
23254
+ */
23255
+ engagement?: number;
23256
+ };
23236
23257
  });
23237
23258
 
23238
23259
  export type GetDailyMetricsError = (ErrorResponse | {