@getlatedev/node 0.2.1083 → 0.2.1084
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 +57 -5
- package/dist/index.d.ts +57 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +58 -4
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.1084",
|
|
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.1084",
|
|
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
|
@@ -4243,7 +4243,7 @@ export type CtwaAdRequestBody = {
|
|
|
4243
4243
|
* building a campaign, so the ad set keeps its learning phase. It then
|
|
4244
4244
|
* owns budget, targeting and schedule, so `budgetAmount`, `budgetType`,
|
|
4245
4245
|
* `budgetLevel`, `startDate`, `endDate`, `objective`, `campaignStatus`,
|
|
4246
|
-
* `existingCampaignId`, the special ad category fields and every
|
|
4246
|
+
* `adSetStatus`, `existingCampaignId`, the special ad category fields and every
|
|
4247
4247
|
* targeting field except `ageMin`, `ageMax`, `placements` and
|
|
4248
4248
|
* `advantageAudience` are rejected with a 400 alongside it. Its
|
|
4249
4249
|
* `destination_type` must match the ad's destination.
|
|
@@ -4547,6 +4547,24 @@ export type CtwaAdRequestBody = {
|
|
|
4547
4547
|
*
|
|
4548
4548
|
*/
|
|
4549
4549
|
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
4550
|
+
/**
|
|
4551
|
+
* Ad-set-level status, same semantics as `POST /v1/ads/create`. Sets
|
|
4552
|
+
* the new ad set's switch alone and overrides `status` for it. A
|
|
4553
|
+
* level status (`campaignStatus`, `adSetStatus`, `adStatus`) always
|
|
4554
|
+
* wins for its level, and `status: PAUSED` adds a hold of its own
|
|
4555
|
+
* only when none of them is PAUSED. Rejected with a 400 alongside
|
|
4556
|
+
* `adSetId` (that ad set already exists).
|
|
4557
|
+
*
|
|
4558
|
+
*/
|
|
4559
|
+
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
4560
|
+
/**
|
|
4561
|
+
* Ad-level status, same semantics as `POST /v1/ads/create`. Sets the
|
|
4562
|
+
* new ads' switch and overrides `status` for them, also with
|
|
4563
|
+
* `adSetId`. Send `campaignStatus`, `adSetStatus` and `adStatus` all
|
|
4564
|
+
* PAUSED to create every object paused.
|
|
4565
|
+
*
|
|
4566
|
+
*/
|
|
4567
|
+
adStatus?: 'ACTIVE' | 'PAUSED';
|
|
4550
4568
|
/**
|
|
4551
4569
|
* Meta bid strategy applied to the shared ad set. Defaults to
|
|
4552
4570
|
* `LOWEST_COST_WITHOUT_CAP` (auto-bid) when omitted.
|
|
@@ -4663,6 +4681,26 @@ export type status13 = 'ACTIVE' | 'PAUSED';
|
|
|
4663
4681
|
*/
|
|
4664
4682
|
export type campaignStatus = 'ACTIVE' | 'PAUSED';
|
|
4665
4683
|
|
|
4684
|
+
/**
|
|
4685
|
+
* Ad-set-level status, same semantics as `POST /v1/ads/create`. Sets
|
|
4686
|
+
* the new ad set's switch alone and overrides `status` for it. A
|
|
4687
|
+
* level status (`campaignStatus`, `adSetStatus`, `adStatus`) always
|
|
4688
|
+
* wins for its level, and `status: PAUSED` adds a hold of its own
|
|
4689
|
+
* only when none of them is PAUSED. Rejected with a 400 alongside
|
|
4690
|
+
* `adSetId` (that ad set already exists).
|
|
4691
|
+
*
|
|
4692
|
+
*/
|
|
4693
|
+
export type adSetStatus = 'ACTIVE' | 'PAUSED';
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
* Ad-level status, same semantics as `POST /v1/ads/create`. Sets the
|
|
4697
|
+
* new ads' switch and overrides `status` for them, also with
|
|
4698
|
+
* `adSetId`. Send `campaignStatus`, `adSetStatus` and `adStatus` all
|
|
4699
|
+
* PAUSED to create every object paused.
|
|
4700
|
+
*
|
|
4701
|
+
*/
|
|
4702
|
+
export type adStatus = 'ACTIVE' | 'PAUSED';
|
|
4703
|
+
|
|
4666
4704
|
/**
|
|
4667
4705
|
* Meta bid strategy applied to the shared ad set. Defaults to
|
|
4668
4706
|
* `LOWEST_COST_WITHOUT_CAP` (auto-bid) when omitted.
|
|
@@ -11451,7 +11489,7 @@ export type Webhook = {
|
|
|
11451
11489
|
*/
|
|
11452
11490
|
isActive?: boolean;
|
|
11453
11491
|
/**
|
|
11454
|
-
* Timestamp of last successful webhook delivery
|
|
11492
|
+
* Timestamp of the last successful webhook delivery. On a healthy endpoint it is refreshed at most once every 10 minutes, so it can trail the most recent delivery by up to 10 minutes.
|
|
11455
11493
|
*/
|
|
11456
11494
|
lastFiredAt?: string;
|
|
11457
11495
|
/**
|
|
@@ -45502,13 +45540,29 @@ export type CreateStandaloneAdData = {
|
|
|
45502
45540
|
*/
|
|
45503
45541
|
budgetType?: 'daily' | 'lifetime';
|
|
45504
45542
|
/**
|
|
45505
|
-
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45543
|
+
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `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. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45506
45544
|
*/
|
|
45507
45545
|
status?: 'ACTIVE' | 'PAUSED';
|
|
45508
45546
|
/**
|
|
45509
|
-
*
|
|
45547
|
+
* Every platform. Sets the switch of the new campaign alone (LinkedIn: the campaign group) and overrides `status` for it. `PAUSED` holds the campaign off with its ad set and ad on unless `adSetStatus` or `adStatus` say otherwise; `ACTIVE` with `status: PAUSED` switches the campaign on and holds the new ad set paused (its ad on). Omitted, it follows `status`. Ignored when the request creates no campaign (`existingCampaignId` or `adSetId`).
|
|
45510
45548
|
*/
|
|
45511
45549
|
campaignStatus?: 'ACTIVE' | 'PAUSED';
|
|
45550
|
+
/**
|
|
45551
|
+
* Every platform. Sets the switch of the new ad set alone (Google, TikTok, Pinterest and ChatGPT: the ad group; LinkedIn: the campaign, which stays DRAFT when held; X: the line item) and overrides `status` for it. Omitted, it follows `status`.
|
|
45552
|
+
*
|
|
45553
|
+
* Precedence: a level status (`campaignStatus`, `adSetStatus`, `adStatus`) always wins for its level. `status: PAUSED` then holds the top-most new object that has no level status, and only when no level status is PAUSED; every other new object is switched on. So `campaignStatus: ACTIVE` + `adSetStatus: PAUSED` + `adStatus: PAUSED` keeps the campaign on with the new ad set and ad off, and all three PAUSED creates the whole tree paused.
|
|
45554
|
+
*
|
|
45555
|
+
* Rejected with a 400 alongside `adSetId` (that ad set already exists; change it with PUT /v1/ads/ad-sets/{adSetId}/status). Performance Max and Demand Gen accept PAUSED only.
|
|
45556
|
+
*
|
|
45557
|
+
*/
|
|
45558
|
+
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
45559
|
+
/**
|
|
45560
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
45561
|
+
*
|
|
45562
|
+
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`. `PAUSED` with `buyingType: RESERVED` returns a 400 (Meta creates the first Reach and Frequency ad ACTIVE). Performance Max and Demand Gen accept PAUSED only.
|
|
45563
|
+
*
|
|
45564
|
+
*/
|
|
45565
|
+
adStatus?: 'ACTIVE' | 'PAUSED';
|
|
45512
45566
|
/**
|
|
45513
45567
|
* Meta only. Where the budget lives, which selects the Meta budget model:
|
|
45514
45568
|
* - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the
|