@zernio/node 0.2.847 → 0.2.849
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 +8 -0
- package/dist/index.d.ts +8 -0
- 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 +8 -0
package/dist/index.d.mts
CHANGED
|
@@ -4777,6 +4777,10 @@ type CtwaAdRequestBody = {
|
|
|
4777
4777
|
* Messaging and CTWA only. Raw Facebook pageId_postId reference, used as object_story_id even with an Instagram account. Mutually exclusive with existingPostId and fresh creative fields.
|
|
4778
4778
|
*/
|
|
4779
4779
|
objectStoryId?: string;
|
|
4780
|
+
/**
|
|
4781
|
+
* Facebook Page the ad runs as, when the connection was granted several Pages. Defaults to the Page bound to the connection. Any Page granted to the connection is accepted; other ids answer 400 listing the granted Pages. Same semantics as `pageId` on POST /v1/ads/create.
|
|
4782
|
+
*/
|
|
4783
|
+
pageId?: string;
|
|
4780
4784
|
/**
|
|
4781
4785
|
* WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
|
|
4782
4786
|
*/
|
|
@@ -25562,6 +25566,10 @@ type ListInboxReviewsResponse = ({
|
|
|
25562
25566
|
profileImage?: (string) | null;
|
|
25563
25567
|
};
|
|
25564
25568
|
rating?: number;
|
|
25569
|
+
/**
|
|
25570
|
+
* Facebook recommendation: positive means recommends, negative means does not recommend. Null or absent when unavailable; absent for other platforms. Independent of the numeric rating.
|
|
25571
|
+
*/
|
|
25572
|
+
recommendationType?: ('positive' | 'negative') | null;
|
|
25565
25573
|
text?: string;
|
|
25566
25574
|
created?: string;
|
|
25567
25575
|
hasReply?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -4777,6 +4777,10 @@ type CtwaAdRequestBody = {
|
|
|
4777
4777
|
* Messaging and CTWA only. Raw Facebook pageId_postId reference, used as object_story_id even with an Instagram account. Mutually exclusive with existingPostId and fresh creative fields.
|
|
4778
4778
|
*/
|
|
4779
4779
|
objectStoryId?: string;
|
|
4780
|
+
/**
|
|
4781
|
+
* Facebook Page the ad runs as, when the connection was granted several Pages. Defaults to the Page bound to the connection. Any Page granted to the connection is accepted; other ids answer 400 listing the granted Pages. Same semantics as `pageId` on POST /v1/ads/create.
|
|
4782
|
+
*/
|
|
4783
|
+
pageId?: string;
|
|
4780
4784
|
/**
|
|
4781
4785
|
* WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
|
|
4782
4786
|
*/
|
|
@@ -25562,6 +25566,10 @@ type ListInboxReviewsResponse = ({
|
|
|
25562
25566
|
profileImage?: (string) | null;
|
|
25563
25567
|
};
|
|
25564
25568
|
rating?: number;
|
|
25569
|
+
/**
|
|
25570
|
+
* Facebook recommendation: positive means recommends, negative means does not recommend. Null or absent when unavailable; absent for other platforms. Independent of the numeric rating.
|
|
25571
|
+
*/
|
|
25572
|
+
recommendationType?: ('positive' | 'negative') | null;
|
|
25565
25573
|
text?: string;
|
|
25566
25574
|
created?: string;
|
|
25567
25575
|
hasReply?: boolean;
|
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.849",
|
|
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.849",
|
|
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
|
@@ -11746,6 +11746,8 @@ export const sendWhatsAppConversion = <ThrowOnError extends boolean = false>(opt
|
|
|
11746
11746
|
* `objectStoryId`, either per creative or at the top level. Omit fresh
|
|
11747
11747
|
* media and copy for that creative. Optional `whatsappPhoneNumber` selects
|
|
11748
11748
|
* a number already paired with the Page (WhatsApp destination only).
|
|
11749
|
+
* `accountId` is a Facebook, Instagram or Meta ads (business login) connection;
|
|
11750
|
+
* `pageId` picks the Page when that connection was granted several.
|
|
11749
11751
|
*/
|
|
11750
11752
|
export const createMessagingAd = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateMessagingAdData, ThrowOnError>) => {
|
|
11751
11753
|
return (options?.client ?? client).post<CreateMessagingAdResponse, CreateMessagingAdError, ThrowOnError>({
|
|
@@ -3217,6 +3217,10 @@ export type CtwaAdRequestBody = {
|
|
|
3217
3217
|
* Messaging and CTWA only. Raw Facebook pageId_postId reference, used as object_story_id even with an Instagram account. Mutually exclusive with existingPostId and fresh creative fields.
|
|
3218
3218
|
*/
|
|
3219
3219
|
objectStoryId?: string;
|
|
3220
|
+
/**
|
|
3221
|
+
* Facebook Page the ad runs as, when the connection was granted several Pages. Defaults to the Page bound to the connection. Any Page granted to the connection is accepted; other ids answer 400 listing the granted Pages. Same semantics as `pageId` on POST /v1/ads/create.
|
|
3222
|
+
*/
|
|
3223
|
+
pageId?: string;
|
|
3220
3224
|
/**
|
|
3221
3225
|
* WhatsApp only. Optional E.164 number already paired with the Facebook Page. Omit to let Meta select the paired number. Sent to the creative CTA and, when creating a new ad set, its promoted_object. Attach requests do not change the existing ad set. Stored as creative.whatsappPhoneNumber on every created ad.
|
|
3222
3226
|
*/
|
|
@@ -25164,6 +25168,10 @@ export type ListInboxReviewsResponse = ({
|
|
|
25164
25168
|
profileImage?: (string) | null;
|
|
25165
25169
|
};
|
|
25166
25170
|
rating?: number;
|
|
25171
|
+
/**
|
|
25172
|
+
* Facebook recommendation: positive means recommends, negative means does not recommend. Null or absent when unavailable; absent for other platforms. Independent of the numeric rating.
|
|
25173
|
+
*/
|
|
25174
|
+
recommendationType?: ('positive' | 'negative') | null;
|
|
25167
25175
|
text?: string;
|
|
25168
25176
|
created?: string;
|
|
25169
25177
|
hasReply?: boolean;
|