@zernio/node 0.2.814 → 0.2.816

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
@@ -37481,7 +37481,7 @@ type BoostPostData = {
37481
37481
  */
37482
37482
  platformPostId?: string;
37483
37483
  /**
37484
- * Account ID
37484
+ * Zernio account id. Normally the connected posting account (facebook, instagram, tiktok, linkedin, pinterest, twitter) or a googleads account. TikTok: the TikTok Ads connection (platform tiktokads) is accepted too when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected; such a call must use platformPostId, not postId.
37485
37485
  */
37486
37486
  accountId: string;
37487
37487
  /**
@@ -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
@@ -37481,7 +37481,7 @@ type BoostPostData = {
37481
37481
  */
37482
37482
  platformPostId?: string;
37483
37483
  /**
37484
- * Account ID
37484
+ * Zernio account id. Normally the connected posting account (facebook, instagram, tiktok, linkedin, pinterest, twitter) or a googleads account. TikTok: the TikTok Ads connection (platform tiktokads) is accepted too when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected; such a call must use platformPostId, not postId.
37485
37485
  */
37486
37486
  accountId: string;
37487
37487
  /**
@@ -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.814",
39
+ version: "0.2.816",
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.814",
8
+ version: "0.2.816",
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.814",
3
+ "version": "0.2.816",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38084,7 +38084,7 @@ export type BoostPostData = {
38084
38084
  */
38085
38085
  platformPostId?: string;
38086
38086
  /**
38087
- * Account ID
38087
+ * Zernio account id. Normally the connected posting account (facebook, instagram, tiktok, linkedin, pinterest, twitter) or a googleads account. TikTok: the TikTok Ads connection (platform tiktokads) is accepted too when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected; such a call must use platformPostId, not postId.
38088
38088
  */
38089
38089
  accountId: string;
38090
38090
  /**
@@ -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