@zernio/node 0.2.447 → 0.2.449
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 +7 -1
- package/src/generated/types.gen.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -16819,6 +16819,9 @@ type GetInboxPostCommentsResponse = ({
|
|
|
16819
16819
|
} | null;
|
|
16820
16820
|
pagination?: {
|
|
16821
16821
|
hasMore?: boolean;
|
|
16822
|
+
/**
|
|
16823
|
+
* Only present when hasMore is true. Absent on the last page, so treat its absence as the end of the thread.
|
|
16824
|
+
*/
|
|
16822
16825
|
cursor?: (string) | null;
|
|
16823
16826
|
};
|
|
16824
16827
|
meta?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -16819,6 +16819,9 @@ type GetInboxPostCommentsResponse = ({
|
|
|
16819
16819
|
} | null;
|
|
16820
16820
|
pagination?: {
|
|
16821
16821
|
hasMore?: boolean;
|
|
16822
|
+
/**
|
|
16823
|
+
* Only present when hasMore is true. Absent on the last page, so treat its absence as the end of the thread.
|
|
16824
|
+
*/
|
|
16822
16825
|
cursor?: (string) | null;
|
|
16823
16826
|
};
|
|
16824
16827
|
meta?: {
|
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.449",
|
|
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.449",
|
|
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
|
@@ -801,7 +801,9 @@ export const createPost = <ThrowOnError extends boolean = false>(options: Option
|
|
|
801
801
|
* - Otherwise we fetch the account's latest posts live from the platform, then match and return the submitted post.
|
|
802
802
|
* - Requests are debounced per account (~15s): if the account was just synced, the live fetch is skipped.
|
|
803
803
|
*
|
|
804
|
-
* `accountId` is required — a post URL or id alone cannot be resolved to an account, and the account must be connected to Zernio (we use its token to read the platform). Supported for every platform with a listing API (Instagram, Facebook, TikTok, YouTube, X, Threads, Pinterest, Reddit, Bluesky, Google Business, and LinkedIn organization accounts
|
|
804
|
+
* `accountId` is required — a post URL or id alone cannot be resolved to an account, and the account must be connected to Zernio (we use its token to read the platform). Supported for every platform with a listing API (Instagram, Facebook, TikTok, YouTube, X, Threads, Pinterest, Reddit, Bluesky, Google Business, and LinkedIn organization accounts).
|
|
805
|
+
*
|
|
806
|
+
* LinkedIn personal profiles: LinkedIn has no listing API for personal profiles, so a `url` is REQUIRED and imports that single post. Pass any LinkedIn post URL (`linkedin.com/posts/…`, `linkedin.com/feed/update/urn:li:activity:…`) or a `urn:li:share:…` / `urn:li:ugcPost:…` URN. Works for posts published outside Zernio and before the account was connected, any age; the post must be authored by the connected member. Imported posts return full analytics (impressions, reach, reactions, comments, reshares, saves) and keep refreshing on the background analytics cycle, but carry no content/media (LinkedIn does not expose them for personal profiles).
|
|
805
807
|
*
|
|
806
808
|
* `url` accepts any format the platform uses (e.g. `instagram.com/p/…`, `instagram.com/reel/…`, `youtu.be/…`, `youtube.com/shorts/…`, `tiktok.com/@user/video/…`, and `vm.tiktok.com` short links). Pass `postId` (the platform media/video id) as an alternative locator.
|
|
807
809
|
*
|
|
@@ -3202,6 +3204,10 @@ export const deleteTelegramCommands = <ThrowOnError extends boolean = false>(opt
|
|
|
3202
3204
|
* the Marketing API token (Facebook side) or the connected Instagram account's token
|
|
3203
3205
|
* (Instagram side); a row whose count can't be read is omitted.
|
|
3204
3206
|
*
|
|
3207
|
+
* Pagination walks each account's platform listing. Following `nextCursor` reaches past
|
|
3208
|
+
* the first page on Facebook and Instagram only, since they are the platforms that
|
|
3209
|
+
* support a server-side date window; on the others the listing stops at its first page.
|
|
3210
|
+
*
|
|
3205
3211
|
*/
|
|
3206
3212
|
export const listInboxComments = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListInboxCommentsData, ThrowOnError>) => {
|
|
3207
3213
|
return (options?.client ?? client).get<ListInboxCommentsResponse, ListInboxCommentsError, ThrowOnError>({
|
|
@@ -16548,6 +16548,9 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
16548
16548
|
} | null;
|
|
16549
16549
|
pagination?: {
|
|
16550
16550
|
hasMore?: boolean;
|
|
16551
|
+
/**
|
|
16552
|
+
* Only present when hasMore is true. Absent on the last page, so treat its absence as the end of the thread.
|
|
16553
|
+
*/
|
|
16551
16554
|
cursor?: (string) | null;
|
|
16552
16555
|
};
|
|
16553
16556
|
meta?: {
|