@zernio/node 0.2.552 → 0.2.554
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 +28 -3
- package/dist/index.d.ts +28 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +28 -3
package/dist/index.d.mts
CHANGED
|
@@ -17504,7 +17504,7 @@ type SendInboxMessageData = {
|
|
|
17504
17504
|
*/
|
|
17505
17505
|
message?: string;
|
|
17506
17506
|
/**
|
|
17507
|
-
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead.
|
|
17507
|
+
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead. On WhatsApp, combining an image, video, or file with `buttons` renders the media as the header of one interactive reply-button message; audio cannot be combined with buttons.
|
|
17508
17508
|
*/
|
|
17509
17509
|
attachmentUrl?: string;
|
|
17510
17510
|
/**
|
|
@@ -17562,6 +17562,12 @@ type SendInboxMessageData = {
|
|
|
17562
17562
|
* `type: postback`, e.g.
|
|
17563
17563
|
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
17564
17564
|
*
|
|
17565
|
+
* Combine `buttons` with `attachmentUrl` and `attachmentType`
|
|
17566
|
+
* `image`, `video`, or `file` to render one WhatsApp message with
|
|
17567
|
+
* a media header, body text, and reply buttons. Audio is not a
|
|
17568
|
+
* supported interactive header and returns 400 when combined
|
|
17569
|
+
* with buttons.
|
|
17570
|
+
*
|
|
17565
17571
|
*/
|
|
17566
17572
|
buttons?: Array<{
|
|
17567
17573
|
/**
|
|
@@ -30096,6 +30102,22 @@ type CreateStandaloneAdData = {
|
|
|
30096
30102
|
*
|
|
30097
30103
|
*/
|
|
30098
30104
|
identityType?: 'TT_USER' | 'CUSTOMIZED_USER';
|
|
30105
|
+
/**
|
|
30106
|
+
* TikTok only. Creates the ad as a TikTok Upgraded Smart+
|
|
30107
|
+
* campaign: TikTok automates targeting, bidding and delivery. Supports goals
|
|
30108
|
+
* `conversions` (Smart+ Web Conversions), `lead_generation` (Smart+ Lead
|
|
30109
|
+
* Generation with a website form on `linkUrl`; TikTok Instant Forms not supported)
|
|
30110
|
+
* and `app_promotion` (Smart+ App installs; the ad's destination is the app store,
|
|
30111
|
+
* so `linkUrl` is not used). The web goals require `promotedObject.pixelId` AND
|
|
30112
|
+
* `promotedObject.customEventType`; `app_promotion` requires
|
|
30113
|
+
* `promotedObject.applicationId` instead.
|
|
30114
|
+
* Targeting works like on any TikTok ad (defaults to `countries: ["US"]` when
|
|
30115
|
+
* omitted); TikTok automates delivery within it.
|
|
30116
|
+
* The budget lives on the Smart+ campaign (Campaign Budget Optimization); a `lifetime`
|
|
30117
|
+
* budget additionally requires `endDate`. Cannot be combined with `adSetId`.
|
|
30118
|
+
*
|
|
30119
|
+
*/
|
|
30120
|
+
smartPlus?: boolean;
|
|
30099
30121
|
/**
|
|
30100
30122
|
* What the ad optimises against. Behaviour depends on the platform.
|
|
30101
30123
|
*
|
|
@@ -30109,12 +30131,15 @@ type CreateStandaloneAdData = {
|
|
|
30109
30131
|
*
|
|
30110
30132
|
* Other Meta goals (engagement, traffic, awareness, video_views) ignore this field.
|
|
30111
30133
|
*
|
|
30112
|
-
* **TikTok**:
|
|
30134
|
+
* **TikTok**: used by `goal: conversions` and the Smart+ goals (`smartPlus: true`).
|
|
30113
30135
|
* - `pixelId` maps to the ad group's `pixel_id`. Required: a TikTok website-conversion
|
|
30114
30136
|
* ad group without a pixel is rejected with `40002: Please select a pixel`.
|
|
30115
30137
|
* - `customEventType` maps to the ad group's `optimization_event` (the pixel event to
|
|
30116
|
-
* optimise for). Optional
|
|
30138
|
+
* optimise for). Optional on the regular conversions flow, required on Smart+.
|
|
30117
30139
|
* See the `customEventType` field below for the valid TikTok codes.
|
|
30140
|
+
* - `applicationId` (Smart+ `goal: app_promotion` only) maps to the ad group's `app_id`:
|
|
30141
|
+
* the App ID of an app registered on the TikTok Ads account (Assets → Events →
|
|
30142
|
+
* App Events). Install optimization needs the app's MMP tracking configured.
|
|
30118
30143
|
*
|
|
30119
30144
|
* The remaining `promotedObject.*` fields are Meta-only. Platforms other than
|
|
30120
30145
|
* Meta and TikTok ignore `promotedObject` entirely.
|
package/dist/index.d.ts
CHANGED
|
@@ -17504,7 +17504,7 @@ type SendInboxMessageData = {
|
|
|
17504
17504
|
*/
|
|
17505
17505
|
message?: string;
|
|
17506
17506
|
/**
|
|
17507
|
-
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead.
|
|
17507
|
+
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead. On WhatsApp, combining an image, video, or file with `buttons` renders the media as the header of one interactive reply-button message; audio cannot be combined with buttons.
|
|
17508
17508
|
*/
|
|
17509
17509
|
attachmentUrl?: string;
|
|
17510
17510
|
/**
|
|
@@ -17562,6 +17562,12 @@ type SendInboxMessageData = {
|
|
|
17562
17562
|
* `type: postback`, e.g.
|
|
17563
17563
|
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
17564
17564
|
*
|
|
17565
|
+
* Combine `buttons` with `attachmentUrl` and `attachmentType`
|
|
17566
|
+
* `image`, `video`, or `file` to render one WhatsApp message with
|
|
17567
|
+
* a media header, body text, and reply buttons. Audio is not a
|
|
17568
|
+
* supported interactive header and returns 400 when combined
|
|
17569
|
+
* with buttons.
|
|
17570
|
+
*
|
|
17565
17571
|
*/
|
|
17566
17572
|
buttons?: Array<{
|
|
17567
17573
|
/**
|
|
@@ -30096,6 +30102,22 @@ type CreateStandaloneAdData = {
|
|
|
30096
30102
|
*
|
|
30097
30103
|
*/
|
|
30098
30104
|
identityType?: 'TT_USER' | 'CUSTOMIZED_USER';
|
|
30105
|
+
/**
|
|
30106
|
+
* TikTok only. Creates the ad as a TikTok Upgraded Smart+
|
|
30107
|
+
* campaign: TikTok automates targeting, bidding and delivery. Supports goals
|
|
30108
|
+
* `conversions` (Smart+ Web Conversions), `lead_generation` (Smart+ Lead
|
|
30109
|
+
* Generation with a website form on `linkUrl`; TikTok Instant Forms not supported)
|
|
30110
|
+
* and `app_promotion` (Smart+ App installs; the ad's destination is the app store,
|
|
30111
|
+
* so `linkUrl` is not used). The web goals require `promotedObject.pixelId` AND
|
|
30112
|
+
* `promotedObject.customEventType`; `app_promotion` requires
|
|
30113
|
+
* `promotedObject.applicationId` instead.
|
|
30114
|
+
* Targeting works like on any TikTok ad (defaults to `countries: ["US"]` when
|
|
30115
|
+
* omitted); TikTok automates delivery within it.
|
|
30116
|
+
* The budget lives on the Smart+ campaign (Campaign Budget Optimization); a `lifetime`
|
|
30117
|
+
* budget additionally requires `endDate`. Cannot be combined with `adSetId`.
|
|
30118
|
+
*
|
|
30119
|
+
*/
|
|
30120
|
+
smartPlus?: boolean;
|
|
30099
30121
|
/**
|
|
30100
30122
|
* What the ad optimises against. Behaviour depends on the platform.
|
|
30101
30123
|
*
|
|
@@ -30109,12 +30131,15 @@ type CreateStandaloneAdData = {
|
|
|
30109
30131
|
*
|
|
30110
30132
|
* Other Meta goals (engagement, traffic, awareness, video_views) ignore this field.
|
|
30111
30133
|
*
|
|
30112
|
-
* **TikTok**:
|
|
30134
|
+
* **TikTok**: used by `goal: conversions` and the Smart+ goals (`smartPlus: true`).
|
|
30113
30135
|
* - `pixelId` maps to the ad group's `pixel_id`. Required: a TikTok website-conversion
|
|
30114
30136
|
* ad group without a pixel is rejected with `40002: Please select a pixel`.
|
|
30115
30137
|
* - `customEventType` maps to the ad group's `optimization_event` (the pixel event to
|
|
30116
|
-
* optimise for). Optional
|
|
30138
|
+
* optimise for). Optional on the regular conversions flow, required on Smart+.
|
|
30117
30139
|
* See the `customEventType` field below for the valid TikTok codes.
|
|
30140
|
+
* - `applicationId` (Smart+ `goal: app_promotion` only) maps to the ad group's `app_id`:
|
|
30141
|
+
* the App ID of an app registered on the TikTok Ads account (Assets → Events →
|
|
30142
|
+
* App Events). Install optimization needs the app's MMP tracking configured.
|
|
30118
30143
|
*
|
|
30119
30144
|
* The remaining `promotedObject.*` fields are Meta-only. Platforms other than
|
|
30120
30145
|
* Meta and TikTok ignore `promotedObject` entirely.
|
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.554",
|
|
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.554",
|
|
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
|
@@ -17149,7 +17149,7 @@ export type SendInboxMessageData = {
|
|
|
17149
17149
|
*/
|
|
17150
17150
|
message?: string;
|
|
17151
17151
|
/**
|
|
17152
|
-
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead.
|
|
17152
|
+
* URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead. On WhatsApp, combining an image, video, or file with `buttons` renders the media as the header of one interactive reply-button message; audio cannot be combined with buttons.
|
|
17153
17153
|
*/
|
|
17154
17154
|
attachmentUrl?: string;
|
|
17155
17155
|
/**
|
|
@@ -17207,6 +17207,12 @@ export type SendInboxMessageData = {
|
|
|
17207
17207
|
* `type: postback`, e.g.
|
|
17208
17208
|
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
17209
17209
|
*
|
|
17210
|
+
* Combine `buttons` with `attachmentUrl` and `attachmentType`
|
|
17211
|
+
* `image`, `video`, or `file` to render one WhatsApp message with
|
|
17212
|
+
* a media header, body text, and reply buttons. Audio is not a
|
|
17213
|
+
* supported interactive header and returns 400 when combined
|
|
17214
|
+
* with buttons.
|
|
17215
|
+
*
|
|
17210
17216
|
*/
|
|
17211
17217
|
buttons?: Array<{
|
|
17212
17218
|
/**
|
|
@@ -30632,6 +30638,22 @@ export type CreateStandaloneAdData = {
|
|
|
30632
30638
|
*
|
|
30633
30639
|
*/
|
|
30634
30640
|
identityType?: 'TT_USER' | 'CUSTOMIZED_USER';
|
|
30641
|
+
/**
|
|
30642
|
+
* TikTok only. Creates the ad as a TikTok Upgraded Smart+
|
|
30643
|
+
* campaign: TikTok automates targeting, bidding and delivery. Supports goals
|
|
30644
|
+
* `conversions` (Smart+ Web Conversions), `lead_generation` (Smart+ Lead
|
|
30645
|
+
* Generation with a website form on `linkUrl`; TikTok Instant Forms not supported)
|
|
30646
|
+
* and `app_promotion` (Smart+ App installs; the ad's destination is the app store,
|
|
30647
|
+
* so `linkUrl` is not used). The web goals require `promotedObject.pixelId` AND
|
|
30648
|
+
* `promotedObject.customEventType`; `app_promotion` requires
|
|
30649
|
+
* `promotedObject.applicationId` instead.
|
|
30650
|
+
* Targeting works like on any TikTok ad (defaults to `countries: ["US"]` when
|
|
30651
|
+
* omitted); TikTok automates delivery within it.
|
|
30652
|
+
* The budget lives on the Smart+ campaign (Campaign Budget Optimization); a `lifetime`
|
|
30653
|
+
* budget additionally requires `endDate`. Cannot be combined with `adSetId`.
|
|
30654
|
+
*
|
|
30655
|
+
*/
|
|
30656
|
+
smartPlus?: boolean;
|
|
30635
30657
|
/**
|
|
30636
30658
|
* What the ad optimises against. Behaviour depends on the platform.
|
|
30637
30659
|
*
|
|
@@ -30645,12 +30667,15 @@ export type CreateStandaloneAdData = {
|
|
|
30645
30667
|
*
|
|
30646
30668
|
* Other Meta goals (engagement, traffic, awareness, video_views) ignore this field.
|
|
30647
30669
|
*
|
|
30648
|
-
* **TikTok**:
|
|
30670
|
+
* **TikTok**: used by `goal: conversions` and the Smart+ goals (`smartPlus: true`).
|
|
30649
30671
|
* - `pixelId` maps to the ad group's `pixel_id`. Required: a TikTok website-conversion
|
|
30650
30672
|
* ad group without a pixel is rejected with `40002: Please select a pixel`.
|
|
30651
30673
|
* - `customEventType` maps to the ad group's `optimization_event` (the pixel event to
|
|
30652
|
-
* optimise for). Optional
|
|
30674
|
+
* optimise for). Optional on the regular conversions flow, required on Smart+.
|
|
30653
30675
|
* See the `customEventType` field below for the valid TikTok codes.
|
|
30676
|
+
* - `applicationId` (Smart+ `goal: app_promotion` only) maps to the ad group's `app_id`:
|
|
30677
|
+
* the App ID of an app registered on the TikTok Ads account (Assets → Events →
|
|
30678
|
+
* App Events). Install optimization needs the app's MMP tracking configured.
|
|
30654
30679
|
*
|
|
30655
30680
|
* The remaining `promotedObject.*` fields are Meta-only. Platforms other than
|
|
30656
30681
|
* Meta and TikTok ignore `promotedObject` entirely.
|