@zernio/node 0.2.93 → 0.2.94
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/README.md +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +14 -14
- package/src/generated/types.gen.ts +1 -1
package/README.md
CHANGED
|
@@ -365,7 +365,7 @@ try {
|
|
|
365
365
|
| `ads.listAdAccounts()` | List ad accounts |
|
|
366
366
|
| `ads.listAds()` | List ads |
|
|
367
367
|
| `ads.listConversionDestinations()` | List destinations for the Conversions API |
|
|
368
|
-
| `ads.createCtwaAd()` | Create
|
|
368
|
+
| `ads.createCtwaAd()` | Create Click-to-WhatsApp ad |
|
|
369
369
|
| `ads.createStandaloneAd()` | Create standalone ad |
|
|
370
370
|
| `ads.getAd()` | Get ad details |
|
|
371
371
|
| `ads.getAdAnalytics()` | Get ad analytics |
|
|
@@ -558,7 +558,7 @@ try {
|
|
|
558
558
|
| `whatsapp.approveWhatsAppGroupJoinRequests()` | Approve join requests |
|
|
559
559
|
| `whatsapp.rejectWhatsAppGroupJoinRequests()` | Reject join requests |
|
|
560
560
|
| `whatsapp.removeWhatsAppGroupParticipants()` | Remove participants |
|
|
561
|
-
| `whatsapp.sendWhatsAppConversion()` | Send
|
|
561
|
+
| `whatsapp.sendWhatsAppConversion()` | Send WhatsApp conversion event |
|
|
562
562
|
| `whatsapp.uploadWhatsAppProfilePhoto()` | Upload profile picture |
|
|
563
563
|
|
|
564
564
|
### WhatsApp Flows
|
package/dist/index.d.mts
CHANGED
|
@@ -13248,7 +13248,7 @@ type CreateCtwaAdData = {
|
|
|
13248
13248
|
budgetType: 'daily' | 'lifetime';
|
|
13249
13249
|
/**
|
|
13250
13250
|
* ISO 4217 currency code matching the ad account's currency
|
|
13251
|
-
* (e.g. `USD`). Optional
|
|
13251
|
+
* (e.g. `USD`). Optional; Meta infers from the ad account
|
|
13252
13252
|
* when omitted.
|
|
13253
13253
|
*
|
|
13254
13254
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -13248,7 +13248,7 @@ type CreateCtwaAdData = {
|
|
|
13248
13248
|
budgetType: 'daily' | 'lifetime';
|
|
13249
13249
|
/**
|
|
13250
13250
|
* ISO 4217 currency code matching the ad account's currency
|
|
13251
|
-
* (e.g. `USD`). Optional
|
|
13251
|
+
* (e.g. `USD`). Optional; Meta infers from the ad account
|
|
13252
13252
|
* when omitted.
|
|
13253
13253
|
*
|
|
13254
13254
|
*/
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -3482,7 +3482,7 @@ export const listConversionDestinations = <ThrowOnError extends boolean = false>
|
|
|
3482
3482
|
};
|
|
3483
3483
|
|
|
3484
3484
|
/**
|
|
3485
|
-
* Send
|
|
3485
|
+
* Send WhatsApp conversion event
|
|
3486
3486
|
* Forward a WhatsApp Business Messaging conversion event (`LeadSubmitted`,
|
|
3487
3487
|
* `Purchase`, `AddToCart`, `InitiateCheckout`, `ViewContent`) to Meta's
|
|
3488
3488
|
* Conversions API with `action_source = business_messaging` and
|
|
@@ -3497,14 +3497,14 @@ export const listConversionDestinations = <ThrowOnError extends boolean = false>
|
|
|
3497
3497
|
* WhatsApp Business number.
|
|
3498
3498
|
*
|
|
3499
3499
|
* Identify the conversation by either `conversationId` (preferred) or
|
|
3500
|
-
* `phoneE164` (digits only, no
|
|
3501
|
-
* conversation has no captured `ctwa_clid`, the request returns 422
|
|
3502
|
-
* there
|
|
3500
|
+
* `phoneE164` (digits only, no `+`). At least one is required. If the
|
|
3501
|
+
* conversation has no captured `ctwa_clid`, the request returns 422
|
|
3502
|
+
* because there is nothing to attribute.
|
|
3503
3503
|
*
|
|
3504
|
-
* Token
|
|
3505
|
-
* access to the configured `metaCapiDatasetId`. By default a WABA's
|
|
3504
|
+
* Token and dataset coupling: the WhatsApp account's accessToken must
|
|
3505
|
+
* have access to the configured `metaCapiDatasetId`. By default a WABA's
|
|
3506
3506
|
* system-user token is scoped to the WABA's own Business Manager and
|
|
3507
|
-
* cannot post to a pixel owned by a different Business
|
|
3507
|
+
* cannot post to a pixel owned by a different Business; Meta returns
|
|
3508
3508
|
* code 100 in that case. Either share the dataset with the WhatsApp
|
|
3509
3509
|
* app's Business in BM, or use a dataset already in the same Business
|
|
3510
3510
|
* as the WABA.
|
|
@@ -3518,18 +3518,18 @@ export const sendWhatsAppConversion = <ThrowOnError extends boolean = false>(opt
|
|
|
3518
3518
|
};
|
|
3519
3519
|
|
|
3520
3520
|
/**
|
|
3521
|
-
* Create
|
|
3522
|
-
* Create a CTWA ad on Meta
|
|
3523
|
-
* conversation with the business attached to the
|
|
3524
|
-
* Page. The full hierarchy (campaign
|
|
3525
|
-
* created and activated in one call.
|
|
3521
|
+
* Create Click-to-WhatsApp ad
|
|
3522
|
+
* Create a Click-to-WhatsApp (CTWA) ad on Meta. When tapped, the ad
|
|
3523
|
+
* opens a WhatsApp conversation with the business attached to the
|
|
3524
|
+
* supplied Facebook Page. The full hierarchy (campaign, ad set,
|
|
3525
|
+
* creative, ad) is created and activated in one call.
|
|
3526
3526
|
*
|
|
3527
3527
|
* The CTA is locked to `WHATSAPP_MESSAGE` and the destination is
|
|
3528
|
-
* hard-coded to `https://api.whatsapp.com/send
|
|
3528
|
+
* hard-coded to `https://api.whatsapp.com/send`. Meta resolves the
|
|
3529
3529
|
* actual WhatsApp number from the Page-to-WA pairing the user
|
|
3530
3530
|
* configured in Page settings or Business Manager.
|
|
3531
3531
|
*
|
|
3532
|
-
* Prerequisites enforced by Meta (failure surfaces as a
|
|
3532
|
+
* Prerequisites enforced by Meta (failure surfaces as a platform_error):
|
|
3533
3533
|
* - The Facebook Page must already be paired with a verified WhatsApp
|
|
3534
3534
|
* Business number.
|
|
3535
3535
|
* - The WhatsApp Business Account must be business-verified.
|
|
@@ -13608,7 +13608,7 @@ export type CreateCtwaAdData = {
|
|
|
13608
13608
|
budgetType: 'daily' | 'lifetime';
|
|
13609
13609
|
/**
|
|
13610
13610
|
* ISO 4217 currency code matching the ad account's currency
|
|
13611
|
-
* (e.g. `USD`). Optional
|
|
13611
|
+
* (e.g. `USD`). Optional; Meta infers from the ad account
|
|
13612
13612
|
* when omitted.
|
|
13613
13613
|
*
|
|
13614
13614
|
*/
|