@getlatedev/node 0.2.475 → 0.2.476
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 +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -0
- package/src/generated/types.gen.ts +8 -0
package/dist/index.d.mts
CHANGED
|
@@ -24646,6 +24646,10 @@ type ListAdCampaignsData = {
|
|
|
24646
24646
|
* Start of metrics date range (YYYY-MM-DD, inclusive). Defaults to 90 days ago when both date params are omitted.
|
|
24647
24647
|
*/
|
|
24648
24648
|
fromDate?: string;
|
|
24649
|
+
/**
|
|
24650
|
+
* Meta only. Campaign reads aggregate over ad documents, so a campaign with ZERO ads is normally invisible here — the state the two-step create (campaign, then ads via `existingCampaignId`) leaves behind whenever Meta rejects the ad step. Set true to list those too, with `adCount: 0` and zeroed metrics. Requires `accountId` and `adAccountId`, since an empty campaign has no ad row to resolve a token or ad account from.
|
|
24651
|
+
*/
|
|
24652
|
+
includeEmpty?: boolean;
|
|
24649
24653
|
limit?: number;
|
|
24650
24654
|
/**
|
|
24651
24655
|
* Page number (1-based)
|
|
@@ -24770,6 +24774,10 @@ type UpdateAdCampaignStatusError = (unknown | {
|
|
|
24770
24774
|
});
|
|
24771
24775
|
type UpdateAdCampaignData = {
|
|
24772
24776
|
body: {
|
|
24777
|
+
/**
|
|
24778
|
+
* Zernio SocialAccount id owning the ad account. Required only to update an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
|
|
24779
|
+
*/
|
|
24780
|
+
accountId?: string;
|
|
24773
24781
|
platform: 'facebook' | 'instagram';
|
|
24774
24782
|
budget?: {
|
|
24775
24783
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -24646,6 +24646,10 @@ type ListAdCampaignsData = {
|
|
|
24646
24646
|
* Start of metrics date range (YYYY-MM-DD, inclusive). Defaults to 90 days ago when both date params are omitted.
|
|
24647
24647
|
*/
|
|
24648
24648
|
fromDate?: string;
|
|
24649
|
+
/**
|
|
24650
|
+
* Meta only. Campaign reads aggregate over ad documents, so a campaign with ZERO ads is normally invisible here — the state the two-step create (campaign, then ads via `existingCampaignId`) leaves behind whenever Meta rejects the ad step. Set true to list those too, with `adCount: 0` and zeroed metrics. Requires `accountId` and `adAccountId`, since an empty campaign has no ad row to resolve a token or ad account from.
|
|
24651
|
+
*/
|
|
24652
|
+
includeEmpty?: boolean;
|
|
24649
24653
|
limit?: number;
|
|
24650
24654
|
/**
|
|
24651
24655
|
* Page number (1-based)
|
|
@@ -24770,6 +24774,10 @@ type UpdateAdCampaignStatusError = (unknown | {
|
|
|
24770
24774
|
});
|
|
24771
24775
|
type UpdateAdCampaignData = {
|
|
24772
24776
|
body: {
|
|
24777
|
+
/**
|
|
24778
|
+
* Zernio SocialAccount id owning the ad account. Required only to update an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
|
|
24779
|
+
*/
|
|
24780
|
+
accountId?: string;
|
|
24773
24781
|
platform: 'facebook' | 'instagram';
|
|
24774
24782
|
budget?: {
|
|
24775
24783
|
/**
|
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.476",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.476",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -6697,6 +6697,12 @@ export const updateAdCampaignStatus = <ThrowOnError extends boolean = false>(opt
|
|
|
6697
6697
|
* Update a campaign
|
|
6698
6698
|
* Campaign-level edits. At least one of `budget`, `bidStrategy`, `name` or `platformSpecificData` is required.
|
|
6699
6699
|
*
|
|
6700
|
+
* **Empty campaigns.** A campaign with zero ads has no local Ad documents to
|
|
6701
|
+
* resolve, so this would 404 even though it exists on Meta. Send `accountId`
|
|
6702
|
+
* in the body to skip the local lookup and forward the update to Meta. The
|
|
6703
|
+
* response then carries `updated: 0`, since there are no local rows to mirror
|
|
6704
|
+
* onto. `accountId` is ignored when the campaign does have ads.
|
|
6705
|
+
*
|
|
6700
6706
|
* - `budget` updates the CBO (Campaign Budget Optimization) budget. For ABO campaigns
|
|
6701
6707
|
* (where the budget lives on the ad set), use PUT /v1/ads/ad-sets/{adSetId} instead — this endpoint
|
|
6702
6708
|
* will return 409 with code BUDGET_LEVEL_MISMATCH.
|
|
@@ -25022,6 +25022,10 @@ export type ListAdCampaignsData = {
|
|
|
25022
25022
|
* Start of metrics date range (YYYY-MM-DD, inclusive). Defaults to 90 days ago when both date params are omitted.
|
|
25023
25023
|
*/
|
|
25024
25024
|
fromDate?: string;
|
|
25025
|
+
/**
|
|
25026
|
+
* Meta only. Campaign reads aggregate over ad documents, so a campaign with ZERO ads is normally invisible here — the state the two-step create (campaign, then ads via `existingCampaignId`) leaves behind whenever Meta rejects the ad step. Set true to list those too, with `adCount: 0` and zeroed metrics. Requires `accountId` and `adAccountId`, since an empty campaign has no ad row to resolve a token or ad account from.
|
|
25027
|
+
*/
|
|
25028
|
+
includeEmpty?: boolean;
|
|
25025
25029
|
limit?: number;
|
|
25026
25030
|
/**
|
|
25027
25031
|
* Page number (1-based)
|
|
@@ -25155,6 +25159,10 @@ export type UpdateAdCampaignStatusError = (unknown | {
|
|
|
25155
25159
|
|
|
25156
25160
|
export type UpdateAdCampaignData = {
|
|
25157
25161
|
body: {
|
|
25162
|
+
/**
|
|
25163
|
+
* Zernio SocialAccount id owning the ad account. Required only to update an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from.
|
|
25164
|
+
*/
|
|
25165
|
+
accountId?: string;
|
|
25158
25166
|
platform: 'facebook' | 'instagram';
|
|
25159
25167
|
budget?: {
|
|
25160
25168
|
/**
|