@zernio/node 0.2.814 → 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 +27 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +27 -0
package/dist/index.d.mts
CHANGED
|
@@ -37778,6 +37778,33 @@ type BoostPostData = {
|
|
|
37778
37778
|
*/
|
|
37779
37779
|
sparkAuthCode: string;
|
|
37780
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
|
+
}>;
|
|
37781
37808
|
/**
|
|
37782
37809
|
* TikTok-only on this endpoint. The pixel a Website Conversion ad group
|
|
37783
37810
|
* optimizes toward, so a Spark Ad built from an existing organic post can
|
package/dist/index.d.ts
CHANGED
|
@@ -37778,6 +37778,33 @@ type BoostPostData = {
|
|
|
37778
37778
|
*/
|
|
37779
37779
|
sparkAuthCode: string;
|
|
37780
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
|
+
}>;
|
|
37781
37808
|
/**
|
|
37782
37809
|
* TikTok-only on this endpoint. The pixel a Website Conversion ad group
|
|
37783
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
|
@@ -38381,6 +38381,33 @@ export type BoostPostData = {
|
|
|
38381
38381
|
*/
|
|
38382
38382
|
sparkAuthCode: string;
|
|
38383
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
|
+
}>;
|
|
38384
38411
|
/**
|
|
38385
38412
|
* TikTok-only on this endpoint. The pixel a Website Conversion ad group
|
|
38386
38413
|
* optimizes toward, so a Spark Ad built from an existing organic post can
|