@zernio/node 0.2.1064 → 0.2.1066

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
@@ -3708,7 +3708,7 @@ type AnalyticsSinglePostResponse = {
3708
3708
  */
3709
3709
  latePostId?: (string) | null;
3710
3710
  /**
3711
- * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
3711
+ * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
3712
3712
  */
3713
3713
  status?: 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
3714
3714
  content?: string;
@@ -3776,7 +3776,7 @@ type AnalyticsSinglePostResponse = {
3776
3776
  mediaAudioType?: string;
3777
3777
  };
3778
3778
  /**
3779
- * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
3779
+ * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
3780
3780
  */
3781
3781
  type status2 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
3782
3782
  /**
@@ -39458,6 +39458,14 @@ type ListAdSetsResponse = ({
39458
39458
  * Only with `live=true`. When `platformAdSetStatus` was read from the platform; null when this row was not read live.
39459
39459
  */
39460
39460
  statusReadAt?: (string) | null;
39461
+ /**
39462
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `optimization_goal` exactly as TikTok's adgroup/get returns it now (for example ENGAGED_VIEW, ENGAGED_VIEW_FIFTEEN, CLICK, CONVERT). Absent on rows not read live and on other platforms.
39463
+ */
39464
+ optimizationGoal?: (string) | null;
39465
+ /**
39466
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
39467
+ */
39468
+ billingEvent?: (string) | null;
39461
39469
  }>;
39462
39470
  });
39463
39471
  type ListAdSetsError = (ErrorResponse | unknown);
package/dist/index.d.ts CHANGED
@@ -3708,7 +3708,7 @@ type AnalyticsSinglePostResponse = {
3708
3708
  */
3709
3709
  latePostId?: (string) | null;
3710
3710
  /**
3711
- * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
3711
+ * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
3712
3712
  */
3713
3713
  status?: 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
3714
3714
  content?: string;
@@ -3776,7 +3776,7 @@ type AnalyticsSinglePostResponse = {
3776
3776
  mediaAudioType?: string;
3777
3777
  };
3778
3778
  /**
3779
- * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
3779
+ * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
3780
3780
  */
3781
3781
  type status2 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
3782
3782
  /**
@@ -39458,6 +39458,14 @@ type ListAdSetsResponse = ({
39458
39458
  * Only with `live=true`. When `platformAdSetStatus` was read from the platform; null when this row was not read live.
39459
39459
  */
39460
39460
  statusReadAt?: (string) | null;
39461
+ /**
39462
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `optimization_goal` exactly as TikTok's adgroup/get returns it now (for example ENGAGED_VIEW, ENGAGED_VIEW_FIFTEEN, CLICK, CONVERT). Absent on rows not read live and on other platforms.
39463
+ */
39464
+ optimizationGoal?: (string) | null;
39465
+ /**
39466
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
39467
+ */
39468
+ billingEvent?: (string) | null;
39461
39469
  }>;
39462
39470
  });
39463
39471
  type ListAdSetsError = (ErrorResponse | unknown);
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.1064",
39
+ version: "0.2.1066",
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.1064",
8
+ version: "0.2.1066",
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.1064",
3
+ "version": "0.2.1066",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9775,7 +9775,9 @@ export const updateCampaignTargeting = <ThrowOnError extends boolean = false>(op
9775
9775
  * With `live=true` (which needs a `campaignId` or `adSetId` filter) each listed ad set's own
9776
9776
  * switch (`platformAdSetStatus`) is read live, for the first 20 rows; later rows keep their
9777
9777
  * synced value with `statusReadAt: null`. Live reads cover TikTok, Meta, Google and OpenAI.
9778
- * The rolled-up `status` is not re-derived by a live read.
9778
+ * The rolled-up `status` is not re-derived by a live read. On TikTok the same live read also
9779
+ * returns the ad group's applied `optimizationGoal` and `billingEvent`, as TikTok's adgroup/get
9780
+ * reports them, so you can verify the goal TikTok applied rather than the one you requested.
9779
9781
  */
9780
9782
  export const listAdSets = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListAdSetsData, ThrowOnError>) => {
9781
9783
  return (options?.client ?? client).get<ListAdSetsResponse, ListAdSetsError, ThrowOnError>({
@@ -1791,7 +1791,7 @@ export type AnalyticsSinglePostResponse = {
1791
1791
  */
1792
1792
  latePostId?: (string) | null;
1793
1793
  /**
1794
- * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
1794
+ * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
1795
1795
  */
1796
1796
  status?: 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
1797
1797
  content?: string;
@@ -1860,7 +1860,7 @@ export type AnalyticsSinglePostResponse = {
1860
1860
  };
1861
1861
 
1862
1862
  /**
1863
- * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published.
1863
+ * Overall post status. "partial" when some platforms published and others failed. While any platform is still pending or processing, the post's own status is returned instead (usually scheduled or publishing), even if another platform already published. A post with no published or failed platform (for example every platform cancelled) returns its own status with syncStatus unavailable and no platformAnalytics.
1864
1864
  */
1865
1865
  export type status2 = 'published' | 'failed' | 'partial' | 'scheduled' | 'publishing' | 'draft' | 'cancelled';
1866
1866
 
@@ -39852,6 +39852,14 @@ export type ListAdSetsResponse = ({
39852
39852
  * Only with `live=true`. When `platformAdSetStatus` was read from the platform; null when this row was not read live.
39853
39853
  */
39854
39854
  statusReadAt?: (string) | null;
39855
+ /**
39856
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `optimization_goal` exactly as TikTok's adgroup/get returns it now (for example ENGAGED_VIEW, ENGAGED_VIEW_FIFTEEN, CLICK, CONVERT). Absent on rows not read live and on other platforms.
39857
+ */
39858
+ optimizationGoal?: (string) | null;
39859
+ /**
39860
+ * TikTok only, only with `live=true` and only on rows read live. The ad group's `billing_event` exactly as TikTok's adgroup/get returns it now (for example CPV, CPC, OCPM).
39861
+ */
39862
+ billingEvent?: (string) | null;
39855
39863
  }>;
39856
39864
  });
39857
39865