@zernio/node 0.2.108 → 0.2.109
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 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -2
- package/src/generated/types.gen.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -12154,11 +12154,11 @@ type CreateCommentAutomationData = {
|
|
|
12154
12154
|
*/
|
|
12155
12155
|
accountId: string;
|
|
12156
12156
|
/**
|
|
12157
|
-
* Platform media/post ID
|
|
12157
|
+
* Platform media/post ID. Omit for an account-wide (any-post) automation.
|
|
12158
12158
|
*/
|
|
12159
|
-
platformPostId
|
|
12159
|
+
platformPostId?: string;
|
|
12160
12160
|
/**
|
|
12161
|
-
* Zernio post ID
|
|
12161
|
+
* Zernio post ID. Required only when also targeting a specific post via platformPostId.
|
|
12162
12162
|
*/
|
|
12163
12163
|
postId?: string;
|
|
12164
12164
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12154,11 +12154,11 @@ type CreateCommentAutomationData = {
|
|
|
12154
12154
|
*/
|
|
12155
12155
|
accountId: string;
|
|
12156
12156
|
/**
|
|
12157
|
-
* Platform media/post ID
|
|
12157
|
+
* Platform media/post ID. Omit for an account-wide (any-post) automation.
|
|
12158
12158
|
*/
|
|
12159
|
-
platformPostId
|
|
12159
|
+
platformPostId?: string;
|
|
12160
12160
|
/**
|
|
12161
|
-
* Zernio post ID
|
|
12161
|
+
* Zernio post ID. Required only when also targeting a specific post via platformPostId.
|
|
12162
12162
|
*/
|
|
12163
12163
|
postId?: string;
|
|
12164
12164
|
/**
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3075,9 +3075,16 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
|
|
|
3075
3075
|
|
|
3076
3076
|
/**
|
|
3077
3077
|
* Create comment-to-DM automation
|
|
3078
|
-
* Create a keyword-triggered DM automation on an Instagram or Facebook
|
|
3078
|
+
* Create a keyword-triggered DM automation on an Instagram or Facebook account.
|
|
3079
3079
|
* When someone comments a matching keyword, they automatically receive a DM.
|
|
3080
|
-
*
|
|
3080
|
+
*
|
|
3081
|
+
* Two modes:
|
|
3082
|
+
* * **Per-post** — set `platformPostId` to scope the automation to one specific post.
|
|
3083
|
+
* Only one active per-post automation is allowed per post.
|
|
3084
|
+
* * **Account-wide ("any post")** — omit `platformPostId` (and `postId`). The automation
|
|
3085
|
+
* evaluates every comment on every post on the account. You can stack unlimited
|
|
3086
|
+
* account-wide automations, each with its own keyword set, and they all run
|
|
3087
|
+
* independently. Per-post automations take priority on their post.
|
|
3081
3088
|
*
|
|
3082
3089
|
*/
|
|
3083
3090
|
export const createCommentAutomation = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => {
|
|
@@ -12420,11 +12420,11 @@ export type CreateCommentAutomationData = {
|
|
|
12420
12420
|
*/
|
|
12421
12421
|
accountId: string;
|
|
12422
12422
|
/**
|
|
12423
|
-
* Platform media/post ID
|
|
12423
|
+
* Platform media/post ID. Omit for an account-wide (any-post) automation.
|
|
12424
12424
|
*/
|
|
12425
|
-
platformPostId
|
|
12425
|
+
platformPostId?: string;
|
|
12426
12426
|
/**
|
|
12427
|
-
* Zernio post ID
|
|
12427
|
+
* Zernio post ID. Required only when also targeting a specific post via platformPostId.
|
|
12428
12428
|
*/
|
|
12429
12429
|
postId?: string;
|
|
12430
12430
|
/**
|