@zernio/node 0.2.848 → 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 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
  */
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
  */
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.848",
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.848",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.848",
3
+ "version": "0.2.849",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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
  */