@zernio/node 0.2.1486 → 0.2.1488

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
@@ -1140,7 +1140,7 @@ declare class Zernio {
1140
1140
  getAdsTimeline: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdsTimelineData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdsTimelineResponse, unknown, ThrowOnError>;
1141
1141
  getAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdResponse, unknown, ThrowOnError>;
1142
1142
  updateAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdResponse, unknown, ThrowOnError>;
1143
- deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, DeleteAdError, ThrowOnError>;
1143
+ deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, ErrorResponse, ThrowOnError>;
1144
1144
  updateAdStatus: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdStatusResponse, unknown, ThrowOnError>;
1145
1145
  listCampaignAssets: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCampaignAssetsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCampaignAssetsResponse, unknown, ThrowOnError>;
1146
1146
  attachCampaignAssets: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AttachCampaignAssetsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AttachCampaignAssetsResponse, unknown, ThrowOnError>;
@@ -1758,7 +1758,7 @@ declare class Zernio {
1758
1758
  /** @deprecated Use `zernio.adcampaigns.updateAd` instead. */
1759
1759
  updateAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdResponse, unknown, ThrowOnError>;
1760
1760
  /** @deprecated Use `zernio.adcampaigns.deleteAd` instead. */
1761
- deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, DeleteAdError, ThrowOnError>;
1761
+ deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, ErrorResponse, ThrowOnError>;
1762
1762
  /** @deprecated Use `zernio.adcampaigns.updateAdStatus` instead. */
1763
1763
  updateAdStatus: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdStatusResponse, unknown, ThrowOnError>;
1764
1764
  /** @deprecated Use `zernio.adcampaigns.listCampaignAssets` instead. */
@@ -53836,9 +53836,7 @@ type UpdateAdResponse = ({
53836
53836
  ad?: Ad;
53837
53837
  message?: string;
53838
53838
  });
53839
- type UpdateAdError = (unknown | ErrorResponse | {
53840
- error?: string;
53841
- });
53839
+ type UpdateAdError = (unknown | ErrorResponse);
53842
53840
  type DeleteAdData = {
53843
53841
  path: {
53844
53842
  adId: string;
@@ -53847,9 +53845,7 @@ type DeleteAdData = {
53847
53845
  type DeleteAdResponse = ({
53848
53846
  message?: string;
53849
53847
  });
53850
- type DeleteAdError = (ErrorResponse | {
53851
- error?: string;
53852
- });
53848
+ type DeleteAdError = (ErrorResponse);
53853
53849
  type UpdateAdStatusData = {
53854
53850
  body: {
53855
53851
  status: 'active' | 'paused';
@@ -58792,7 +58788,7 @@ type BoostPostData = {
58792
58788
  * - New campaign: held paused with its ad set and ad on. One PUT /v1/ads/campaigns/{campaignId}/status with `active` brings it live.
58793
58789
  * - Into an existing campaign (TikTok `existingCampaignId`): the new ad set is held paused.
58794
58790
  * - Attached to an existing ad set (`adSetId`): the new ad itself is paused.
58795
- * - LinkedIn: the held campaign group is PAUSED, its campaign and creative ACTIVE.
58791
+ * - LinkedIn: every object the boost creates is held. A new campaign group is PAUSED, and its campaign and creative stay DRAFT. Resume each held object top-down to go live.
58796
58792
  * - X: has no per-ad switch, so its lowest level is the line item.
58797
58793
  *
58798
58794
  * `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level. `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED.
@@ -59363,7 +59359,7 @@ type CreateStandaloneAdData = {
59363
59359
  *
59364
59360
  * **Platform notes:**
59365
59361
  *
59366
- * - LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE. A new campaign in an existing group stays DRAFT. A held creative (with `adSetId`) is created DRAFT, as LinkedIn refuses PAUSED until its review is APPROVED.
59362
+ * - LinkedIn: every object the call creates is held. A new campaign group is PAUSED. A new campaign or creative stays DRAFT, as LinkedIn refuses PAUSED on a creative until its review is APPROVED. Resume each held object top-down to go live.
59367
59363
  * - X: no per-ad switch, so its lowest level is the line item.
59368
59364
  * - Google Performance Max and Demand Gen: accept PAUSED only (the campaign is created paused).
59369
59365
  *
package/dist/index.d.ts CHANGED
@@ -1140,7 +1140,7 @@ declare class Zernio {
1140
1140
  getAdsTimeline: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdsTimelineData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdsTimelineResponse, unknown, ThrowOnError>;
1141
1141
  getAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetAdResponse, unknown, ThrowOnError>;
1142
1142
  updateAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdResponse, unknown, ThrowOnError>;
1143
- deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, DeleteAdError, ThrowOnError>;
1143
+ deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, ErrorResponse, ThrowOnError>;
1144
1144
  updateAdStatus: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdStatusResponse, unknown, ThrowOnError>;
1145
1145
  listCampaignAssets: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCampaignAssetsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCampaignAssetsResponse, unknown, ThrowOnError>;
1146
1146
  attachCampaignAssets: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AttachCampaignAssetsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AttachCampaignAssetsResponse, unknown, ThrowOnError>;
@@ -1758,7 +1758,7 @@ declare class Zernio {
1758
1758
  /** @deprecated Use `zernio.adcampaigns.updateAd` instead. */
1759
1759
  updateAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdResponse, unknown, ThrowOnError>;
1760
1760
  /** @deprecated Use `zernio.adcampaigns.deleteAd` instead. */
1761
- deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, DeleteAdError, ThrowOnError>;
1761
+ deleteAd: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAdData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAdResponse, ErrorResponse, ThrowOnError>;
1762
1762
  /** @deprecated Use `zernio.adcampaigns.updateAdStatus` instead. */
1763
1763
  updateAdStatus: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAdStatusData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAdStatusResponse, unknown, ThrowOnError>;
1764
1764
  /** @deprecated Use `zernio.adcampaigns.listCampaignAssets` instead. */
@@ -53836,9 +53836,7 @@ type UpdateAdResponse = ({
53836
53836
  ad?: Ad;
53837
53837
  message?: string;
53838
53838
  });
53839
- type UpdateAdError = (unknown | ErrorResponse | {
53840
- error?: string;
53841
- });
53839
+ type UpdateAdError = (unknown | ErrorResponse);
53842
53840
  type DeleteAdData = {
53843
53841
  path: {
53844
53842
  adId: string;
@@ -53847,9 +53845,7 @@ type DeleteAdData = {
53847
53845
  type DeleteAdResponse = ({
53848
53846
  message?: string;
53849
53847
  });
53850
- type DeleteAdError = (ErrorResponse | {
53851
- error?: string;
53852
- });
53848
+ type DeleteAdError = (ErrorResponse);
53853
53849
  type UpdateAdStatusData = {
53854
53850
  body: {
53855
53851
  status: 'active' | 'paused';
@@ -58792,7 +58788,7 @@ type BoostPostData = {
58792
58788
  * - New campaign: held paused with its ad set and ad on. One PUT /v1/ads/campaigns/{campaignId}/status with `active` brings it live.
58793
58789
  * - Into an existing campaign (TikTok `existingCampaignId`): the new ad set is held paused.
58794
58790
  * - Attached to an existing ad set (`adSetId`): the new ad itself is paused.
58795
- * - LinkedIn: the held campaign group is PAUSED, its campaign and creative ACTIVE.
58791
+ * - LinkedIn: every object the boost creates is held. A new campaign group is PAUSED, and its campaign and creative stay DRAFT. Resume each held object top-down to go live.
58796
58792
  * - X: has no per-ad switch, so its lowest level is the line item.
58797
58793
  *
58798
58794
  * `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level. `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED.
@@ -59363,7 +59359,7 @@ type CreateStandaloneAdData = {
59363
59359
  *
59364
59360
  * **Platform notes:**
59365
59361
  *
59366
- * - LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE. A new campaign in an existing group stays DRAFT. A held creative (with `adSetId`) is created DRAFT, as LinkedIn refuses PAUSED until its review is APPROVED.
59362
+ * - LinkedIn: every object the call creates is held. A new campaign group is PAUSED. A new campaign or creative stays DRAFT, as LinkedIn refuses PAUSED on a creative until its review is APPROVED. Resume each held object top-down to go live.
59367
59363
  * - X: no per-ad switch, so its lowest level is the line item.
59368
59364
  * - Google Performance Max and Demand Gen: accept PAUSED only (the campaign is created paused).
59369
59365
  *
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.1486",
39
+ version: "0.2.1488",
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.1486",
8
+ version: "0.2.1488",
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.1486",
3
+ "version": "0.2.1488",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -54709,9 +54709,7 @@ export type UpdateAdResponse = ({
54709
54709
  message?: string;
54710
54710
  });
54711
54711
 
54712
- export type UpdateAdError = (unknown | ErrorResponse | {
54713
- error?: string;
54714
- });
54712
+ export type UpdateAdError = (unknown | ErrorResponse);
54715
54713
 
54716
54714
  export type DeleteAdData = {
54717
54715
  path: {
@@ -54723,9 +54721,7 @@ export type DeleteAdResponse = ({
54723
54721
  message?: string;
54724
54722
  });
54725
54723
 
54726
- export type DeleteAdError = (ErrorResponse | {
54727
- error?: string;
54728
- });
54724
+ export type DeleteAdError = (ErrorResponse);
54729
54725
 
54730
54726
  export type UpdateAdStatusData = {
54731
54727
  body: {
@@ -59990,7 +59986,7 @@ export type BoostPostData = {
59990
59986
  * - New campaign: held paused with its ad set and ad on. One PUT /v1/ads/campaigns/{campaignId}/status with `active` brings it live.
59991
59987
  * - Into an existing campaign (TikTok `existingCampaignId`): the new ad set is held paused.
59992
59988
  * - Attached to an existing ad set (`adSetId`): the new ad itself is paused.
59993
- * - LinkedIn: the held campaign group is PAUSED, its campaign and creative ACTIVE.
59989
+ * - LinkedIn: every object the boost creates is held. A new campaign group is PAUSED, and its campaign and creative stay DRAFT. Resume each held object top-down to go live.
59994
59990
  * - X: has no per-ad switch, so its lowest level is the line item.
59995
59991
  *
59996
59992
  * `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level. `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED.
@@ -60585,7 +60581,7 @@ export type CreateStandaloneAdData = {
60585
60581
  *
60586
60582
  * **Platform notes:**
60587
60583
  *
60588
- * - LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE. A new campaign in an existing group stays DRAFT. A held creative (with `adSetId`) is created DRAFT, as LinkedIn refuses PAUSED until its review is APPROVED.
60584
+ * - LinkedIn: every object the call creates is held. A new campaign group is PAUSED. A new campaign or creative stays DRAFT, as LinkedIn refuses PAUSED on a creative until its review is APPROVED. Resume each held object top-down to go live.
60589
60585
  * - X: no per-ad switch, so its lowest level is the line item.
60590
60586
  * - Google Performance Max and Demand Gen: accept PAUSED only (the campaign is created paused).
60591
60587
  *