@zernio/node 0.2.1431 → 0.2.1433
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 +36 -7
- package/dist/index.d.ts +36 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +36 -7
package/dist/index.d.mts
CHANGED
|
@@ -6743,22 +6743,30 @@ type CampaignSubmissionFlag = {
|
|
|
6743
6743
|
};
|
|
6744
6744
|
type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
|
|
6745
6745
|
/**
|
|
6746
|
-
*
|
|
6747
|
-
*
|
|
6748
|
-
*
|
|
6746
|
+
* The media on a comment or reply, one per comment (the first item when the platform returns several).
|
|
6747
|
+
* `type` is the platform's own media kind:
|
|
6748
|
+
*
|
|
6749
|
+
* - Facebook: sticker, animated_image_share, photo, image_share, share or video_inline.
|
|
6750
|
+
* - TikTok: image.
|
|
6751
|
+
* - X: photo, video or animated_gif. A video `url` is an mp4 and `imageUrl` its preview.
|
|
6752
|
+
* - Threads: IMAGE, VIDEO or GIF. Album replies carry no attachment.
|
|
6753
|
+
* - Bluesky: image, video or external (link cards, GIFs arrive this way). A video `url` is an HLS playlist (.m3u8).
|
|
6754
|
+
*
|
|
6755
|
+
* Facebook and Threads URLs are expiring Meta CDN links, so fetch promptly.
|
|
6756
|
+
* Instagram, YouTube, LinkedIn and Reddit comments carry no media.
|
|
6749
6757
|
*
|
|
6750
6758
|
*/
|
|
6751
6759
|
type CommentAttachment = {
|
|
6752
6760
|
/**
|
|
6753
|
-
*
|
|
6761
|
+
* The platform's own media kind, see the schema description for each platform's values.
|
|
6754
6762
|
*/
|
|
6755
6763
|
type: string;
|
|
6756
6764
|
/**
|
|
6757
|
-
* Rendered image
|
|
6765
|
+
* Rendered image or preview URL.
|
|
6758
6766
|
*/
|
|
6759
6767
|
imageUrl?: string;
|
|
6760
6768
|
/**
|
|
6761
|
-
* Source
|
|
6769
|
+
* Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
|
|
6762
6770
|
*/
|
|
6763
6771
|
url?: string;
|
|
6764
6772
|
};
|
|
@@ -24497,6 +24505,27 @@ type GetDailyMetricsResponse = ({
|
|
|
24497
24505
|
clicks?: number;
|
|
24498
24506
|
views?: number;
|
|
24499
24507
|
}>;
|
|
24508
|
+
/**
|
|
24509
|
+
* Sums of the whole range for the applied filters.
|
|
24510
|
+
*/
|
|
24511
|
+
totals?: {
|
|
24512
|
+
postCount?: number;
|
|
24513
|
+
impressions?: number;
|
|
24514
|
+
/**
|
|
24515
|
+
* Sum of per-post reach, not unique accounts.
|
|
24516
|
+
*/
|
|
24517
|
+
reach?: number;
|
|
24518
|
+
likes?: number;
|
|
24519
|
+
comments?: number;
|
|
24520
|
+
shares?: number;
|
|
24521
|
+
saves?: number;
|
|
24522
|
+
clicks?: number;
|
|
24523
|
+
views?: number;
|
|
24524
|
+
/**
|
|
24525
|
+
* Likes, comments, shares and saves (interactions).
|
|
24526
|
+
*/
|
|
24527
|
+
engagement?: number;
|
|
24528
|
+
};
|
|
24500
24529
|
});
|
|
24501
24530
|
type GetDailyMetricsError = (ErrorResponse | {
|
|
24502
24531
|
error?: string;
|
|
@@ -39241,7 +39270,7 @@ type GetInboxPostCommentsResponse = ({
|
|
|
39241
39270
|
*/
|
|
39242
39271
|
isLiked?: boolean;
|
|
39243
39272
|
/**
|
|
39244
|
-
*
|
|
39273
|
+
* The comment's media, whenever the platform returns one (replies included). Supported on Facebook, TikTok, X, Threads and Bluesky; absent when the comment has no media and on every other platform. See CommentAttachment for each platform's `type` values.
|
|
39245
39274
|
*/
|
|
39246
39275
|
attachment?: (CommentAttachment);
|
|
39247
39276
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -6743,22 +6743,30 @@ type CampaignSubmissionFlag = {
|
|
|
6743
6743
|
};
|
|
6744
6744
|
type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
|
|
6745
6745
|
/**
|
|
6746
|
-
*
|
|
6747
|
-
*
|
|
6748
|
-
*
|
|
6746
|
+
* The media on a comment or reply, one per comment (the first item when the platform returns several).
|
|
6747
|
+
* `type` is the platform's own media kind:
|
|
6748
|
+
*
|
|
6749
|
+
* - Facebook: sticker, animated_image_share, photo, image_share, share or video_inline.
|
|
6750
|
+
* - TikTok: image.
|
|
6751
|
+
* - X: photo, video or animated_gif. A video `url` is an mp4 and `imageUrl` its preview.
|
|
6752
|
+
* - Threads: IMAGE, VIDEO or GIF. Album replies carry no attachment.
|
|
6753
|
+
* - Bluesky: image, video or external (link cards, GIFs arrive this way). A video `url` is an HLS playlist (.m3u8).
|
|
6754
|
+
*
|
|
6755
|
+
* Facebook and Threads URLs are expiring Meta CDN links, so fetch promptly.
|
|
6756
|
+
* Instagram, YouTube, LinkedIn and Reddit comments carry no media.
|
|
6749
6757
|
*
|
|
6750
6758
|
*/
|
|
6751
6759
|
type CommentAttachment = {
|
|
6752
6760
|
/**
|
|
6753
|
-
*
|
|
6761
|
+
* The platform's own media kind, see the schema description for each platform's values.
|
|
6754
6762
|
*/
|
|
6755
6763
|
type: string;
|
|
6756
6764
|
/**
|
|
6757
|
-
* Rendered image
|
|
6765
|
+
* Rendered image or preview URL.
|
|
6758
6766
|
*/
|
|
6759
6767
|
imageUrl?: string;
|
|
6760
6768
|
/**
|
|
6761
|
-
* Source
|
|
6769
|
+
* Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
|
|
6762
6770
|
*/
|
|
6763
6771
|
url?: string;
|
|
6764
6772
|
};
|
|
@@ -24497,6 +24505,27 @@ type GetDailyMetricsResponse = ({
|
|
|
24497
24505
|
clicks?: number;
|
|
24498
24506
|
views?: number;
|
|
24499
24507
|
}>;
|
|
24508
|
+
/**
|
|
24509
|
+
* Sums of the whole range for the applied filters.
|
|
24510
|
+
*/
|
|
24511
|
+
totals?: {
|
|
24512
|
+
postCount?: number;
|
|
24513
|
+
impressions?: number;
|
|
24514
|
+
/**
|
|
24515
|
+
* Sum of per-post reach, not unique accounts.
|
|
24516
|
+
*/
|
|
24517
|
+
reach?: number;
|
|
24518
|
+
likes?: number;
|
|
24519
|
+
comments?: number;
|
|
24520
|
+
shares?: number;
|
|
24521
|
+
saves?: number;
|
|
24522
|
+
clicks?: number;
|
|
24523
|
+
views?: number;
|
|
24524
|
+
/**
|
|
24525
|
+
* Likes, comments, shares and saves (interactions).
|
|
24526
|
+
*/
|
|
24527
|
+
engagement?: number;
|
|
24528
|
+
};
|
|
24500
24529
|
});
|
|
24501
24530
|
type GetDailyMetricsError = (ErrorResponse | {
|
|
24502
24531
|
error?: string;
|
|
@@ -39241,7 +39270,7 @@ type GetInboxPostCommentsResponse = ({
|
|
|
39241
39270
|
*/
|
|
39242
39271
|
isLiked?: boolean;
|
|
39243
39272
|
/**
|
|
39244
|
-
*
|
|
39273
|
+
* The comment's media, whenever the platform returns one (replies included). Supported on Facebook, TikTok, X, Threads and Bluesky; absent when the comment has no media and on every other platform. See CommentAttachment for each platform's `type` values.
|
|
39245
39274
|
*/
|
|
39246
39275
|
attachment?: (CommentAttachment);
|
|
39247
39276
|
/**
|
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.1433",
|
|
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.1433",
|
|
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
|
@@ -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>({
|
|
@@ -4669,22 +4669,30 @@ export type CampaignSubmissionFlag = {
|
|
|
4669
4669
|
export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
|
|
4670
4670
|
|
|
4671
4671
|
/**
|
|
4672
|
-
*
|
|
4673
|
-
*
|
|
4674
|
-
*
|
|
4672
|
+
* The media on a comment or reply, one per comment (the first item when the platform returns several).
|
|
4673
|
+
* `type` is the platform's own media kind:
|
|
4674
|
+
*
|
|
4675
|
+
* - Facebook: sticker, animated_image_share, photo, image_share, share or video_inline.
|
|
4676
|
+
* - TikTok: image.
|
|
4677
|
+
* - X: photo, video or animated_gif. A video `url` is an mp4 and `imageUrl` its preview.
|
|
4678
|
+
* - Threads: IMAGE, VIDEO or GIF. Album replies carry no attachment.
|
|
4679
|
+
* - Bluesky: image, video or external (link cards, GIFs arrive this way). A video `url` is an HLS playlist (.m3u8).
|
|
4680
|
+
*
|
|
4681
|
+
* Facebook and Threads URLs are expiring Meta CDN links, so fetch promptly.
|
|
4682
|
+
* Instagram, YouTube, LinkedIn and Reddit comments carry no media.
|
|
4675
4683
|
*
|
|
4676
4684
|
*/
|
|
4677
4685
|
export type CommentAttachment = {
|
|
4678
4686
|
/**
|
|
4679
|
-
*
|
|
4687
|
+
* The platform's own media kind, see the schema description for each platform's values.
|
|
4680
4688
|
*/
|
|
4681
4689
|
type: string;
|
|
4682
4690
|
/**
|
|
4683
|
-
* Rendered image
|
|
4691
|
+
* Rendered image or preview URL.
|
|
4684
4692
|
*/
|
|
4685
4693
|
imageUrl?: string;
|
|
4686
4694
|
/**
|
|
4687
|
-
* Source
|
|
4695
|
+
* Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
|
|
4688
4696
|
*/
|
|
4689
4697
|
url?: string;
|
|
4690
4698
|
};
|
|
@@ -23233,6 +23241,27 @@ export type GetDailyMetricsResponse = ({
|
|
|
23233
23241
|
clicks?: number;
|
|
23234
23242
|
views?: number;
|
|
23235
23243
|
}>;
|
|
23244
|
+
/**
|
|
23245
|
+
* Sums of the whole range for the applied filters.
|
|
23246
|
+
*/
|
|
23247
|
+
totals?: {
|
|
23248
|
+
postCount?: number;
|
|
23249
|
+
impressions?: number;
|
|
23250
|
+
/**
|
|
23251
|
+
* Sum of per-post reach, not unique accounts.
|
|
23252
|
+
*/
|
|
23253
|
+
reach?: number;
|
|
23254
|
+
likes?: number;
|
|
23255
|
+
comments?: number;
|
|
23256
|
+
shares?: number;
|
|
23257
|
+
saves?: number;
|
|
23258
|
+
clicks?: number;
|
|
23259
|
+
views?: number;
|
|
23260
|
+
/**
|
|
23261
|
+
* Likes, comments, shares and saves (interactions).
|
|
23262
|
+
*/
|
|
23263
|
+
engagement?: number;
|
|
23264
|
+
};
|
|
23236
23265
|
});
|
|
23237
23266
|
|
|
23238
23267
|
export type GetDailyMetricsError = (ErrorResponse | {
|
|
@@ -39017,7 +39046,7 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
39017
39046
|
*/
|
|
39018
39047
|
isLiked?: boolean;
|
|
39019
39048
|
/**
|
|
39020
|
-
*
|
|
39049
|
+
* The comment's media, whenever the platform returns one (replies included). Supported on Facebook, TikTok, X, Threads and Bluesky; absent when the comment has no media and on every other platform. See CommentAttachment for each platform's `type` values.
|
|
39021
39050
|
*/
|
|
39022
39051
|
attachment?: (CommentAttachment);
|
|
39023
39052
|
/**
|