@zernio/node 0.2.836 → 0.2.837
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 +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +15 -11
- package/src/generated/types.gen.ts +18 -0
package/dist/index.d.mts
CHANGED
|
@@ -3199,6 +3199,12 @@ type AnalyticsDeltaEntry = {
|
|
|
3199
3199
|
audienceTypes: {
|
|
3200
3200
|
[key: string]: (number);
|
|
3201
3201
|
};
|
|
3202
|
+
/**
|
|
3203
|
+
* TikTok business lane: viewer-country shares keyed by ISO-3166 alpha-2, fractions 0 to 1, top 20 with the tail in `other`. Empty object elsewhere.
|
|
3204
|
+
*/
|
|
3205
|
+
audienceCountries: {
|
|
3206
|
+
[key: string]: (number);
|
|
3207
|
+
};
|
|
3202
3208
|
};
|
|
3203
3209
|
};
|
|
3204
3210
|
type AnalyticsDeltaResponse = {
|
|
@@ -8252,6 +8258,12 @@ type PostAnalytics = {
|
|
|
8252
8258
|
audienceTypes?: {
|
|
8253
8259
|
[key: string]: (number);
|
|
8254
8260
|
};
|
|
8261
|
+
/**
|
|
8262
|
+
* TikTok accounts connected through the TikTok for Business app only: share of views by viewer country as fractions 0 to 1, keyed by upper-case ISO-3166 alpha-2 code (T+24-48h, only for posts active in the last 7 days). At most 20 country keys plus `other`: the catch-all bucket TikTok sends, any country below 0.001 and anything past the twentieth all sum into `other`, so the values still add up to 1. Empty object when TikTok reports nothing, and for other platforms. Views-weighted across accounts like impressionSources.
|
|
8263
|
+
*/
|
|
8264
|
+
audienceCountries?: {
|
|
8265
|
+
[key: string]: (number);
|
|
8266
|
+
};
|
|
8255
8267
|
/**
|
|
8256
8268
|
* Instagram accounts connected with Facebook Login only: reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Meta does not expose this metric for accounts connected with Instagram Login, so those always report 0. 0 for other platforms, including Threads, where reposts are counted in shares instead.
|
|
8257
8269
|
*/
|
|
@@ -14301,6 +14313,12 @@ type GetPostTimelineResponse = ({
|
|
|
14301
14313
|
audienceTypes?: {
|
|
14302
14314
|
[key: string]: (number);
|
|
14303
14315
|
};
|
|
14316
|
+
/**
|
|
14317
|
+
* TikTok business lane: viewer-country shares on this date keyed by ISO-3166 alpha-2, fractions 0 to 1, top 20 with the tail in `other`; empty object elsewhere
|
|
14318
|
+
*/
|
|
14319
|
+
audienceCountries?: {
|
|
14320
|
+
[key: string]: (number);
|
|
14321
|
+
};
|
|
14304
14322
|
}>;
|
|
14305
14323
|
});
|
|
14306
14324
|
type GetPostTimelineError = ({
|
package/dist/index.d.ts
CHANGED
|
@@ -3199,6 +3199,12 @@ type AnalyticsDeltaEntry = {
|
|
|
3199
3199
|
audienceTypes: {
|
|
3200
3200
|
[key: string]: (number);
|
|
3201
3201
|
};
|
|
3202
|
+
/**
|
|
3203
|
+
* TikTok business lane: viewer-country shares keyed by ISO-3166 alpha-2, fractions 0 to 1, top 20 with the tail in `other`. Empty object elsewhere.
|
|
3204
|
+
*/
|
|
3205
|
+
audienceCountries: {
|
|
3206
|
+
[key: string]: (number);
|
|
3207
|
+
};
|
|
3202
3208
|
};
|
|
3203
3209
|
};
|
|
3204
3210
|
type AnalyticsDeltaResponse = {
|
|
@@ -8252,6 +8258,12 @@ type PostAnalytics = {
|
|
|
8252
8258
|
audienceTypes?: {
|
|
8253
8259
|
[key: string]: (number);
|
|
8254
8260
|
};
|
|
8261
|
+
/**
|
|
8262
|
+
* TikTok accounts connected through the TikTok for Business app only: share of views by viewer country as fractions 0 to 1, keyed by upper-case ISO-3166 alpha-2 code (T+24-48h, only for posts active in the last 7 days). At most 20 country keys plus `other`: the catch-all bucket TikTok sends, any country below 0.001 and anything past the twentieth all sum into `other`, so the values still add up to 1. Empty object when TikTok reports nothing, and for other platforms. Views-weighted across accounts like impressionSources.
|
|
8263
|
+
*/
|
|
8264
|
+
audienceCountries?: {
|
|
8265
|
+
[key: string]: (number);
|
|
8266
|
+
};
|
|
8255
8267
|
/**
|
|
8256
8268
|
* Instagram accounts connected with Facebook Login only: reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Meta does not expose this metric for accounts connected with Instagram Login, so those always report 0. 0 for other platforms, including Threads, where reposts are counted in shares instead.
|
|
8257
8269
|
*/
|
|
@@ -14301,6 +14313,12 @@ type GetPostTimelineResponse = ({
|
|
|
14301
14313
|
audienceTypes?: {
|
|
14302
14314
|
[key: string]: (number);
|
|
14303
14315
|
};
|
|
14316
|
+
/**
|
|
14317
|
+
* TikTok business lane: viewer-country shares on this date keyed by ISO-3166 alpha-2, fractions 0 to 1, top 20 with the tail in `other`; empty object elsewhere
|
|
14318
|
+
*/
|
|
14319
|
+
audienceCountries?: {
|
|
14320
|
+
[key: string]: (number);
|
|
14321
|
+
};
|
|
14304
14322
|
}>;
|
|
14305
14323
|
});
|
|
14306
14324
|
type GetPostTimelineError = ({
|
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.837",
|
|
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.837",
|
|
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
|
@@ -222,19 +222,23 @@ export const getLinkedInOrgAggregateAnalytics = <ThrowOnError extends boolean =
|
|
|
222
222
|
* defaults to last 30 days. Requires the Analytics add-on and the user.info.stats
|
|
223
223
|
* scope on the account (412 if missing).
|
|
224
224
|
*
|
|
225
|
-
* Scope intentionally narrow
|
|
226
|
-
* metrics below.
|
|
227
|
-
*
|
|
228
|
-
* - profile_views
|
|
225
|
+
* Scope intentionally narrow: this ACCOUNT-level endpoint exposes only the four
|
|
226
|
+
* counter metrics below. These account-level figures are not on any public TikTok
|
|
227
|
+
* API, for any account type:
|
|
229
228
|
* - account-level impressions / reach
|
|
230
229
|
* - follower inflow / outflow breakdown
|
|
231
|
-
* -
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
230
|
+
* - account-level watch time and audience demographics
|
|
231
|
+
*
|
|
232
|
+
* TikTok's Research API doesn't expose them either, and is restricted to
|
|
233
|
+
* non-commercial academic use per TikTok's eligibility policy.
|
|
234
|
+
*
|
|
235
|
+
* PER-VIDEO is a different story on the Business lane. An account connected through
|
|
236
|
+
* the TikTok for Business app reports profile views, website clicks, follows,
|
|
237
|
+
* full-watched rate, watch time, impression sources, viewer types and viewer
|
|
238
|
+
* countries per video on GET /v1/analytics?postId=..., roughly 24-48h after
|
|
239
|
+
* publishing and only for posts active in the last 7 days. Accounts on the original
|
|
240
|
+
* TikTok integration get the basic counters there (views, likes, comments, shares)
|
|
241
|
+
* and zeros for the rest; they must reconnect through the Business app.
|
|
238
242
|
*
|
|
239
243
|
*/
|
|
240
244
|
export const getTikTokAccountInsights = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetTikTokAccountInsightsData, ThrowOnError>) => {
|
|
@@ -1564,6 +1564,12 @@ export type AnalyticsDeltaEntry = {
|
|
|
1564
1564
|
audienceTypes: {
|
|
1565
1565
|
[key: string]: (number);
|
|
1566
1566
|
};
|
|
1567
|
+
/**
|
|
1568
|
+
* TikTok business lane: viewer-country shares keyed by ISO-3166 alpha-2, fractions 0 to 1, top 20 with the tail in `other`. Empty object elsewhere.
|
|
1569
|
+
*/
|
|
1570
|
+
audienceCountries: {
|
|
1571
|
+
[key: string]: (number);
|
|
1572
|
+
};
|
|
1567
1573
|
};
|
|
1568
1574
|
};
|
|
1569
1575
|
|
|
@@ -6844,6 +6850,12 @@ export type PostAnalytics = {
|
|
|
6844
6850
|
audienceTypes?: {
|
|
6845
6851
|
[key: string]: (number);
|
|
6846
6852
|
};
|
|
6853
|
+
/**
|
|
6854
|
+
* TikTok accounts connected through the TikTok for Business app only: share of views by viewer country as fractions 0 to 1, keyed by upper-case ISO-3166 alpha-2 code (T+24-48h, only for posts active in the last 7 days). At most 20 country keys plus `other`: the catch-all bucket TikTok sends, any country below 0.001 and anything past the twentieth all sum into `other`, so the values still add up to 1. Empty object when TikTok reports nothing, and for other platforms. Views-weighted across accounts like impressionSources.
|
|
6855
|
+
*/
|
|
6856
|
+
audienceCountries?: {
|
|
6857
|
+
[key: string]: (number);
|
|
6858
|
+
};
|
|
6847
6859
|
/**
|
|
6848
6860
|
* Instagram accounts connected with Facebook Login only: reposts of the media by other users, minus deleted reposts, on feed posts, reels and stories. Meta does not expose this metric for accounts connected with Instagram Login, so those always report 0. 0 for other platforms, including Threads, where reposts are counted in shares instead.
|
|
6849
6861
|
*/
|
|
@@ -13169,6 +13181,12 @@ export type GetPostTimelineResponse = ({
|
|
|
13169
13181
|
audienceTypes?: {
|
|
13170
13182
|
[key: string]: (number);
|
|
13171
13183
|
};
|
|
13184
|
+
/**
|
|
13185
|
+
* TikTok business lane: viewer-country shares on this date keyed by ISO-3166 alpha-2, fractions 0 to 1, top 20 with the tail in `other`; empty object elsewhere
|
|
13186
|
+
*/
|
|
13187
|
+
audienceCountries?: {
|
|
13188
|
+
[key: string]: (number);
|
|
13189
|
+
};
|
|
13172
13190
|
}>;
|
|
13173
13191
|
});
|
|
13174
13192
|
|