@zernio/node 0.2.909 → 0.2.911
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 +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -1
- package/src/generated/types.gen.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -8296,6 +8296,9 @@ type PostAnalytics = {
|
|
|
8296
8296
|
* Number of saves/bookmarks (Instagram, Pinterest, X)
|
|
8297
8297
|
*/
|
|
8298
8298
|
saves?: number;
|
|
8299
|
+
/**
|
|
8300
|
+
* Link clicks where the platform reports them. Always 0 on Facebook Page stories: Meta exposes no link-click metric for stories.
|
|
8301
|
+
*/
|
|
8299
8302
|
clicks?: number;
|
|
8300
8303
|
views?: number;
|
|
8301
8304
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8296,6 +8296,9 @@ type PostAnalytics = {
|
|
|
8296
8296
|
* Number of saves/bookmarks (Instagram, Pinterest, X)
|
|
8297
8297
|
*/
|
|
8298
8298
|
saves?: number;
|
|
8299
|
+
/**
|
|
8300
|
+
* Link clicks where the platform reports them. Always 0 on Facebook Page stories: Meta exposes no link-click metric for stories.
|
|
8301
|
+
*/
|
|
8299
8302
|
clicks?: number;
|
|
8300
8303
|
views?: number;
|
|
8301
8304
|
/**
|
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.
|
|
39
|
+
version: "0.2.911",
|
|
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.
|
|
8
|
+
version: "0.2.911",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -79,6 +79,8 @@ export const validateSubreddit = <ThrowOnError extends boolean = false>(options:
|
|
|
79
79
|
*
|
|
80
80
|
* LinkedIn personal accounts: Analytics are only available for posts published through Zernio. LinkedIn's API only returns metrics for posts authored by the authenticated user. Organization/company page analytics work for all posts.
|
|
81
81
|
*
|
|
82
|
+
* Facebook Page stories: stories on a connected Page, published through Zernio or natively, are collected while they are live and returned like any other post (platformPostUrl points to the story). Their lifetime metrics refresh about hourly, with a final reading shortly before the story expires at 24 hours; after that the values stay at that last reading. Mapping: impressions = story impressions, reach = story reach, views = story media views, likes = story reactions, comments = story replies, shares = story shares. Meta exposes no link-click metric for stories, so clicks is always 0. Metrics for a story published through Zernio are available on its Zernio post ID.
|
|
83
|
+
*
|
|
82
84
|
*/
|
|
83
85
|
export const getAnalytics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAnalyticsData, ThrowOnError>) => {
|
|
84
86
|
return (options?.client ?? client).get<GetAnalyticsResponse, GetAnalyticsError, ThrowOnError>({
|
|
@@ -5241,7 +5243,9 @@ export const getVoiceCall = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
5241
5243
|
|
|
5242
5244
|
/**
|
|
5243
5245
|
* Hang up a live call
|
|
5244
|
-
* Hangs up a live call on demand
|
|
5246
|
+
* Hangs up a live call on demand, including an outbound call that is
|
|
5247
|
+
* still ringing and has not been answered yet (the callee stops ringing
|
|
5248
|
+
* immediately). Idempotent: ending a call that already
|
|
5245
5249
|
* ended (or never connected) returns success with the call's current
|
|
5246
5250
|
* status. Final duration/cost are written asynchronously when the hangup
|
|
5247
5251
|
* event lands, so the call doc may briefly still show its prior status.
|
|
@@ -6879,6 +6879,9 @@ export type PostAnalytics = {
|
|
|
6879
6879
|
* Number of saves/bookmarks (Instagram, Pinterest, X)
|
|
6880
6880
|
*/
|
|
6881
6881
|
saves?: number;
|
|
6882
|
+
/**
|
|
6883
|
+
* Link clicks where the platform reports them. Always 0 on Facebook Page stories: Meta exposes no link-click metric for stories.
|
|
6884
|
+
*/
|
|
6882
6885
|
clicks?: number;
|
|
6883
6886
|
views?: number;
|
|
6884
6887
|
/**
|