@zernio/node 0.2.1491 → 0.2.1493
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 +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -0
- package/src/generated/types.gen.ts +9 -2
package/dist/index.d.mts
CHANGED
|
@@ -20808,6 +20808,7 @@ type WebhookPayloadCommerceOrder = {
|
|
|
20808
20808
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
20809
20809
|
*/
|
|
20810
20810
|
timestamp?: string;
|
|
20811
|
+
profiles?: WebhookProfiles;
|
|
20811
20812
|
store?: {
|
|
20812
20813
|
/**
|
|
20813
20814
|
* Zernio SocialAccount id of the store.
|
|
@@ -40308,14 +40309,20 @@ type GetInboxPostCommentsResponse = ({
|
|
|
40308
40309
|
*
|
|
40309
40310
|
*/
|
|
40310
40311
|
repliesHasMore?: boolean;
|
|
40312
|
+
/**
|
|
40313
|
+
* Whether this comment can be replied to. Always present.
|
|
40314
|
+
*/
|
|
40311
40315
|
canReply?: boolean;
|
|
40316
|
+
/**
|
|
40317
|
+
* Whether DELETE is expected to work on this comment. True for the account's own comments, and for anyone's comment on Facebook, Instagram and YouTube. On TikTok, TikTok's own flag decides. False does not block the call: the platform decides. Always present.
|
|
40318
|
+
*/
|
|
40312
40319
|
canDelete?: boolean;
|
|
40313
40320
|
/**
|
|
40314
|
-
* Whether this comment
|
|
40321
|
+
* Whether hide is supported for this comment's platform (Facebook, Instagram, Threads, X, TikTok). It does not check each comment: X needs a conversation started by the account, and Threads only hides top-level replies. Always present.
|
|
40315
40322
|
*/
|
|
40316
40323
|
canHide?: boolean;
|
|
40317
40324
|
/**
|
|
40318
|
-
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
40325
|
+
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn, TikTok). Always present.
|
|
40319
40326
|
*/
|
|
40320
40327
|
canLike?: boolean;
|
|
40321
40328
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -20808,6 +20808,7 @@ type WebhookPayloadCommerceOrder = {
|
|
|
20808
20808
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
20809
20809
|
*/
|
|
20810
20810
|
timestamp?: string;
|
|
20811
|
+
profiles?: WebhookProfiles;
|
|
20811
20812
|
store?: {
|
|
20812
20813
|
/**
|
|
20813
20814
|
* Zernio SocialAccount id of the store.
|
|
@@ -40308,14 +40309,20 @@ type GetInboxPostCommentsResponse = ({
|
|
|
40308
40309
|
*
|
|
40309
40310
|
*/
|
|
40310
40311
|
repliesHasMore?: boolean;
|
|
40312
|
+
/**
|
|
40313
|
+
* Whether this comment can be replied to. Always present.
|
|
40314
|
+
*/
|
|
40311
40315
|
canReply?: boolean;
|
|
40316
|
+
/**
|
|
40317
|
+
* Whether DELETE is expected to work on this comment. True for the account's own comments, and for anyone's comment on Facebook, Instagram and YouTube. On TikTok, TikTok's own flag decides. False does not block the call: the platform decides. Always present.
|
|
40318
|
+
*/
|
|
40312
40319
|
canDelete?: boolean;
|
|
40313
40320
|
/**
|
|
40314
|
-
* Whether this comment
|
|
40321
|
+
* Whether hide is supported for this comment's platform (Facebook, Instagram, Threads, X, TikTok). It does not check each comment: X needs a conversation started by the account, and Threads only hides top-level replies. Always present.
|
|
40315
40322
|
*/
|
|
40316
40323
|
canHide?: boolean;
|
|
40317
40324
|
/**
|
|
40318
|
-
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
40325
|
+
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn, TikTok). Always present.
|
|
40319
40326
|
*/
|
|
40320
40327
|
canLike?: boolean;
|
|
40321
40328
|
/**
|
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.1493",
|
|
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.1493",
|
|
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
|
@@ -7121,6 +7121,12 @@ export const replyToInboxPost = <ThrowOnError extends boolean = false>(options:
|
|
|
7121
7121
|
* Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only).
|
|
7122
7122
|
* Requires accountId and commentId query parameters.
|
|
7123
7123
|
*
|
|
7124
|
+
* Zernio does not check `canDelete` before calling the platform. When the platform refuses, the call fails with the platform's message, normally as `platform_api_error` with the platform's own 4xx status.
|
|
7125
|
+
*
|
|
7126
|
+
* On Facebook and Instagram the account can delete anyone's comment on its own posts. On TikTok only the account's own comments can be deleted; hide the others.
|
|
7127
|
+
*
|
|
7128
|
+
* On YouTube, a comment the channel did not write is rejected instead, through the same moderation status as `setCommentModeration`, and the response still reports it as deleted. Use `setCommentModeration` directly to reverse the rejection later or to ban the author.
|
|
7129
|
+
*
|
|
7124
7130
|
*/
|
|
7125
7131
|
export const deleteInboxComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteInboxCommentData, ThrowOnError>) => {
|
|
7126
7132
|
return (options?.client ?? client).delete<DeleteInboxCommentResponse, DeleteInboxCommentError, ThrowOnError>({
|
|
@@ -7171,8 +7177,11 @@ export const setCommentModeration = <ThrowOnError extends boolean = false>(optio
|
|
|
7171
7177
|
* Hide a comment on a post. Supported by Facebook, Instagram, Threads, X, and TikTok
|
|
7172
7178
|
* (accounts connected through the TikTok for Business app).
|
|
7173
7179
|
* Hidden comments are only visible to the commenter and page admin.
|
|
7180
|
+
*
|
|
7174
7181
|
* For X, the reply must belong to a conversation started by the authenticated user.
|
|
7175
7182
|
*
|
|
7183
|
+
* On Threads only top-level replies can be hidden, and hiding one also hides its nested replies.
|
|
7184
|
+
*
|
|
7176
7185
|
*/
|
|
7177
7186
|
export const hideInboxComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HideInboxCommentData, ThrowOnError>) => {
|
|
7178
7187
|
return (options?.client ?? client).post<HideInboxCommentResponse, HideInboxCommentError, ThrowOnError>({
|
|
@@ -19343,6 +19343,7 @@ export type WebhookPayloadCommerceOrder = {
|
|
|
19343
19343
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
19344
19344
|
*/
|
|
19345
19345
|
timestamp?: string;
|
|
19346
|
+
profiles?: WebhookProfiles;
|
|
19346
19347
|
store?: {
|
|
19347
19348
|
/**
|
|
19348
19349
|
* Zernio SocialAccount id of the store.
|
|
@@ -40104,14 +40105,20 @@ export type GetInboxPostCommentsResponse = ({
|
|
|
40104
40105
|
*
|
|
40105
40106
|
*/
|
|
40106
40107
|
repliesHasMore?: boolean;
|
|
40108
|
+
/**
|
|
40109
|
+
* Whether this comment can be replied to. Always present.
|
|
40110
|
+
*/
|
|
40107
40111
|
canReply?: boolean;
|
|
40112
|
+
/**
|
|
40113
|
+
* Whether DELETE is expected to work on this comment. True for the account's own comments, and for anyone's comment on Facebook, Instagram and YouTube. On TikTok, TikTok's own flag decides. False does not block the call: the platform decides. Always present.
|
|
40114
|
+
*/
|
|
40108
40115
|
canDelete?: boolean;
|
|
40109
40116
|
/**
|
|
40110
|
-
* Whether this comment
|
|
40117
|
+
* Whether hide is supported for this comment's platform (Facebook, Instagram, Threads, X, TikTok). It does not check each comment: X needs a conversation started by the account, and Threads only hides top-level replies. Always present.
|
|
40111
40118
|
*/
|
|
40112
40119
|
canHide?: boolean;
|
|
40113
40120
|
/**
|
|
40114
|
-
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn)
|
|
40121
|
+
* Whether this comment can be liked (Facebook, X, Bluesky, Reddit, LinkedIn, TikTok). Always present.
|
|
40115
40122
|
*/
|
|
40116
40123
|
canLike?: boolean;
|
|
40117
40124
|
/**
|