@zernio/node 0.2.813 → 0.2.815
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 +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +40 -0
package/dist/index.d.mts
CHANGED
|
@@ -37765,6 +37765,46 @@ type BoostPostData = {
|
|
|
37765
37765
|
* TikTok only. Run the Spark post in a Smart+ campaign (goal `conversions` = Smart+ Web Conversions, `lead_generation` = Smart+ Lead Generation) instead of a regular campaign. Requires `sparkAuthCode` (the Smart+ ad runs the post under the identity that redeeming its Spark code creates; a Business Center-owned post is not accepted there) and `promotedObject.pixelId` + `customEventType`. `app_promotion` is not available on a Spark post. Rejected with a 400 on other platforms. A Smart+ Spark ad uses a dynamic CTA portfolio, sent as ad_configuration.call_to_action_id (TikTok does not accept a named call to action there): Zernio creates one per ad account and reuses it, and `callToAction` is rejected with a 400 on this path.
|
|
37766
37766
|
*/
|
|
37767
37767
|
smartPlus?: boolean;
|
|
37768
|
+
/**
|
|
37769
|
+
* TikTok Smart+ only (requires `smartPlus: true`). Several Spark posts as creatives of ONE Smart+ ad, each with its own post code (TikTok allows 1-50 per ad; posts from different creators mix). Replaces `platformPostId` + `sparkAuthCode`. Without `adSetId` it creates campaign + ad group + one ad carrying all of them; with `adSetId` it creates one new ad with all of them in that ad group. Rejected with a 400 on other platforms.
|
|
37770
|
+
*/
|
|
37771
|
+
sparkPosts?: Array<{
|
|
37772
|
+
/**
|
|
37773
|
+
* TikTok post (item) id.
|
|
37774
|
+
*/
|
|
37775
|
+
platformPostId: string;
|
|
37776
|
+
/**
|
|
37777
|
+
* That post's Spark code.
|
|
37778
|
+
*/
|
|
37779
|
+
sparkAuthCode: string;
|
|
37780
|
+
}>;
|
|
37781
|
+
/**
|
|
37782
|
+
* TikTok Smart+ Web Conversions only (requires `smartPlus: true`, goal `conversions`). Promo codes or offers TikTok highlights on the ad (Ads Manager's "Add promo code or offer"). A promo code needs shoppers to enter it at checkout; an entry without `promoCode` is an offer applied automatically. Rejected with a 400 on other platforms and on Lead Generation campaigns.
|
|
37783
|
+
*/
|
|
37784
|
+
promoCodes?: Array<{
|
|
37785
|
+
discountType: 'PERCENTAGE' | 'CASH';
|
|
37786
|
+
/**
|
|
37787
|
+
* PERCENTAGE: integer 1-100. CASH: amount greater than 0 in discountCurrency.
|
|
37788
|
+
*/
|
|
37789
|
+
discountValue: number;
|
|
37790
|
+
/**
|
|
37791
|
+
* ISO 4217; required for CASH.
|
|
37792
|
+
*/
|
|
37793
|
+
discountCurrency?: string;
|
|
37794
|
+
/**
|
|
37795
|
+
* Code entered at checkout; omit for an automatic offer.
|
|
37796
|
+
*/
|
|
37797
|
+
promoCode?: string;
|
|
37798
|
+
minimumPurchaseType?: 'QUANTITY' | 'SUBTOTAL';
|
|
37799
|
+
/**
|
|
37800
|
+
* Required with minimumPurchaseType; QUANTITY is an integer >= 0, SUBTOTAL an amount > 0.
|
|
37801
|
+
*/
|
|
37802
|
+
minimumPurchaseValue?: number;
|
|
37803
|
+
/**
|
|
37804
|
+
* ISO 4217; required for SUBTOTAL.
|
|
37805
|
+
*/
|
|
37806
|
+
minimumPurchaseCurrency?: string;
|
|
37807
|
+
}>;
|
|
37768
37808
|
/**
|
|
37769
37809
|
* TikTok-only on this endpoint. The pixel a Website Conversion ad group
|
|
37770
37810
|
* optimizes toward, so a Spark Ad built from an existing organic post can
|
package/dist/index.d.ts
CHANGED
|
@@ -37765,6 +37765,46 @@ type BoostPostData = {
|
|
|
37765
37765
|
* TikTok only. Run the Spark post in a Smart+ campaign (goal `conversions` = Smart+ Web Conversions, `lead_generation` = Smart+ Lead Generation) instead of a regular campaign. Requires `sparkAuthCode` (the Smart+ ad runs the post under the identity that redeeming its Spark code creates; a Business Center-owned post is not accepted there) and `promotedObject.pixelId` + `customEventType`. `app_promotion` is not available on a Spark post. Rejected with a 400 on other platforms. A Smart+ Spark ad uses a dynamic CTA portfolio, sent as ad_configuration.call_to_action_id (TikTok does not accept a named call to action there): Zernio creates one per ad account and reuses it, and `callToAction` is rejected with a 400 on this path.
|
|
37766
37766
|
*/
|
|
37767
37767
|
smartPlus?: boolean;
|
|
37768
|
+
/**
|
|
37769
|
+
* TikTok Smart+ only (requires `smartPlus: true`). Several Spark posts as creatives of ONE Smart+ ad, each with its own post code (TikTok allows 1-50 per ad; posts from different creators mix). Replaces `platformPostId` + `sparkAuthCode`. Without `adSetId` it creates campaign + ad group + one ad carrying all of them; with `adSetId` it creates one new ad with all of them in that ad group. Rejected with a 400 on other platforms.
|
|
37770
|
+
*/
|
|
37771
|
+
sparkPosts?: Array<{
|
|
37772
|
+
/**
|
|
37773
|
+
* TikTok post (item) id.
|
|
37774
|
+
*/
|
|
37775
|
+
platformPostId: string;
|
|
37776
|
+
/**
|
|
37777
|
+
* That post's Spark code.
|
|
37778
|
+
*/
|
|
37779
|
+
sparkAuthCode: string;
|
|
37780
|
+
}>;
|
|
37781
|
+
/**
|
|
37782
|
+
* TikTok Smart+ Web Conversions only (requires `smartPlus: true`, goal `conversions`). Promo codes or offers TikTok highlights on the ad (Ads Manager's "Add promo code or offer"). A promo code needs shoppers to enter it at checkout; an entry without `promoCode` is an offer applied automatically. Rejected with a 400 on other platforms and on Lead Generation campaigns.
|
|
37783
|
+
*/
|
|
37784
|
+
promoCodes?: Array<{
|
|
37785
|
+
discountType: 'PERCENTAGE' | 'CASH';
|
|
37786
|
+
/**
|
|
37787
|
+
* PERCENTAGE: integer 1-100. CASH: amount greater than 0 in discountCurrency.
|
|
37788
|
+
*/
|
|
37789
|
+
discountValue: number;
|
|
37790
|
+
/**
|
|
37791
|
+
* ISO 4217; required for CASH.
|
|
37792
|
+
*/
|
|
37793
|
+
discountCurrency?: string;
|
|
37794
|
+
/**
|
|
37795
|
+
* Code entered at checkout; omit for an automatic offer.
|
|
37796
|
+
*/
|
|
37797
|
+
promoCode?: string;
|
|
37798
|
+
minimumPurchaseType?: 'QUANTITY' | 'SUBTOTAL';
|
|
37799
|
+
/**
|
|
37800
|
+
* Required with minimumPurchaseType; QUANTITY is an integer >= 0, SUBTOTAL an amount > 0.
|
|
37801
|
+
*/
|
|
37802
|
+
minimumPurchaseValue?: number;
|
|
37803
|
+
/**
|
|
37804
|
+
* ISO 4217; required for SUBTOTAL.
|
|
37805
|
+
*/
|
|
37806
|
+
minimumPurchaseCurrency?: string;
|
|
37807
|
+
}>;
|
|
37768
37808
|
/**
|
|
37769
37809
|
* TikTok-only on this endpoint. The pixel a Website Conversion ad group
|
|
37770
37810
|
* optimizes toward, so a Spark Ad built from an existing organic post can
|
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.815",
|
|
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.815",
|
|
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
|
@@ -38368,6 +38368,46 @@ export type BoostPostData = {
|
|
|
38368
38368
|
* TikTok only. Run the Spark post in a Smart+ campaign (goal `conversions` = Smart+ Web Conversions, `lead_generation` = Smart+ Lead Generation) instead of a regular campaign. Requires `sparkAuthCode` (the Smart+ ad runs the post under the identity that redeeming its Spark code creates; a Business Center-owned post is not accepted there) and `promotedObject.pixelId` + `customEventType`. `app_promotion` is not available on a Spark post. Rejected with a 400 on other platforms. A Smart+ Spark ad uses a dynamic CTA portfolio, sent as ad_configuration.call_to_action_id (TikTok does not accept a named call to action there): Zernio creates one per ad account and reuses it, and `callToAction` is rejected with a 400 on this path.
|
|
38369
38369
|
*/
|
|
38370
38370
|
smartPlus?: boolean;
|
|
38371
|
+
/**
|
|
38372
|
+
* TikTok Smart+ only (requires `smartPlus: true`). Several Spark posts as creatives of ONE Smart+ ad, each with its own post code (TikTok allows 1-50 per ad; posts from different creators mix). Replaces `platformPostId` + `sparkAuthCode`. Without `adSetId` it creates campaign + ad group + one ad carrying all of them; with `adSetId` it creates one new ad with all of them in that ad group. Rejected with a 400 on other platforms.
|
|
38373
|
+
*/
|
|
38374
|
+
sparkPosts?: Array<{
|
|
38375
|
+
/**
|
|
38376
|
+
* TikTok post (item) id.
|
|
38377
|
+
*/
|
|
38378
|
+
platformPostId: string;
|
|
38379
|
+
/**
|
|
38380
|
+
* That post's Spark code.
|
|
38381
|
+
*/
|
|
38382
|
+
sparkAuthCode: string;
|
|
38383
|
+
}>;
|
|
38384
|
+
/**
|
|
38385
|
+
* TikTok Smart+ Web Conversions only (requires `smartPlus: true`, goal `conversions`). Promo codes or offers TikTok highlights on the ad (Ads Manager's "Add promo code or offer"). A promo code needs shoppers to enter it at checkout; an entry without `promoCode` is an offer applied automatically. Rejected with a 400 on other platforms and on Lead Generation campaigns.
|
|
38386
|
+
*/
|
|
38387
|
+
promoCodes?: Array<{
|
|
38388
|
+
discountType: 'PERCENTAGE' | 'CASH';
|
|
38389
|
+
/**
|
|
38390
|
+
* PERCENTAGE: integer 1-100. CASH: amount greater than 0 in discountCurrency.
|
|
38391
|
+
*/
|
|
38392
|
+
discountValue: number;
|
|
38393
|
+
/**
|
|
38394
|
+
* ISO 4217; required for CASH.
|
|
38395
|
+
*/
|
|
38396
|
+
discountCurrency?: string;
|
|
38397
|
+
/**
|
|
38398
|
+
* Code entered at checkout; omit for an automatic offer.
|
|
38399
|
+
*/
|
|
38400
|
+
promoCode?: string;
|
|
38401
|
+
minimumPurchaseType?: 'QUANTITY' | 'SUBTOTAL';
|
|
38402
|
+
/**
|
|
38403
|
+
* Required with minimumPurchaseType; QUANTITY is an integer >= 0, SUBTOTAL an amount > 0.
|
|
38404
|
+
*/
|
|
38405
|
+
minimumPurchaseValue?: number;
|
|
38406
|
+
/**
|
|
38407
|
+
* ISO 4217; required for SUBTOTAL.
|
|
38408
|
+
*/
|
|
38409
|
+
minimumPurchaseCurrency?: string;
|
|
38410
|
+
}>;
|
|
38371
38411
|
/**
|
|
38372
38412
|
* TikTok-only on this endpoint. The pixel a Website Conversion ad group
|
|
38373
38413
|
* optimizes toward, so a Spark Ad built from an existing organic post can
|