@getlatedev/node 0.2.1085 → 0.2.1087

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.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.1085",
8
+ version: "0.2.1087",
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": "@getlatedev/node",
3
- "version": "0.2.1085",
3
+ "version": "0.2.1087",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -442,6 +442,11 @@ export type goal = 'engagement' | 'traffic' | 'awareness' | 'video_views' | 'lea
442
442
 
443
443
  export type type = 'daily' | 'lifetime';
444
444
 
445
+ /**
446
+ * Request-side publish switch for `adStatus` on ad creation endpoints only (`status`, `campaignStatus` and `adSetStatus` carry their own inline ACTIVE/PAUSED enum there; the status-update endpoints are a separate lowercase `active`/`paused` enum). Distinct from `AdStatus` (the platform-reported delivery status returned on reads).
447
+ */
448
+ export type AdActivationStatus = 'ACTIVE' | 'PAUSED';
449
+
445
450
  export type AdAnalyticsResponse = {
446
451
  /**
447
452
  * Present and true while historical data is being backfilled.
@@ -4564,7 +4569,7 @@ export type CtwaAdRequestBody = {
4564
4569
  * PAUSED to create every object paused.
4565
4570
  *
4566
4571
  */
4567
- adStatus?: 'ACTIVE' | 'PAUSED';
4572
+ adStatus?: AdActivationStatus;
4568
4573
  /**
4569
4574
  * Meta bid strategy applied to the shared ad set. Defaults to
4570
4575
  * `LOWEST_COST_WITHOUT_CAP` (auto-bid) when omitted.
@@ -4692,15 +4697,6 @@ export type campaignStatus = 'ACTIVE' | 'PAUSED';
4692
4697
  */
4693
4698
  export type adSetStatus = 'ACTIVE' | 'PAUSED';
4694
4699
 
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
-
4704
4700
  /**
4705
4701
  * Meta bid strategy applied to the shared ad set. Defaults to
4706
4702
  * `LOWEST_COST_WITHOUT_CAP` (auto-bid) when omitted.
@@ -11489,7 +11485,7 @@ export type Webhook = {
11489
11485
  */
11490
11486
  isActive?: boolean;
11491
11487
  /**
11492
- * Timestamp of last successful webhook delivery
11488
+ * 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.
11493
11489
  */
11494
11490
  lastFiredAt?: string;
11495
11491
  /**
@@ -19609,13 +19605,16 @@ export type ConnectAdsData = {
19609
19605
  * with `details.accountStatus` (Meta's `account_status`) and, when Meta
19610
19606
  * gives one, `details.disableReason`. Unsettled and in-grace accounts
19611
19607
  * are accepted, matching the `selectable` flag of `GET /v1/ads/accounts`.
19612
- * Setting a scope also removes already synced ads from de-scoped ad
19613
- * accounts. On Meta the scope also decides which ad accounts Zernio
19614
- * subscribes to ad-account webhooks: only the scoped ones, instead of
19615
- * every ad account the login can reach. The scope is kept when this
19616
- * call returns an `authUrl`, so the Meta Ads account created after
19617
- * OAuth is scoped (and only its scoped ad accounts synced and
19618
- * subscribed) from the start. For multiple accounts use `adAccountIds` instead.
19608
+ * Setting a scope also removes already synced ads, campaigns, ad sets
19609
+ * and keywords from de-scoped ad accounts. On Meta the scope also decides
19610
+ * which ad accounts Zernio subscribes to ad-account webhooks: only the
19611
+ * scoped ones, instead of every ad account the login can reach. The scope
19612
+ * is kept when this call returns an `authUrl`, so the Meta Ads account
19613
+ * created after OAuth is scoped (and only its scoped ad accounts synced and
19614
+ * subscribed) from the start. On `googleads` the scope is kept through
19615
+ * OAuth when `redirect_url` is set, so the Google Ads connection created
19616
+ * after OAuth syncs only its scoped customers from the first sync.
19617
+ * For multiple accounts use `adAccountIds` instead.
19619
19618
  *
19620
19619
  */
19621
19620
  adAccountId?: string;
@@ -19624,7 +19623,8 @@ export type ConnectAdsData = {
19624
19623
  * support and id shapes as `adAccountId`). Repeat the param
19625
19624
  * (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
19626
19625
  * (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
19627
- * wins, and de-scoped ad accounts have their synced ads removed.
19626
+ * wins, and de-scoped ad accounts have their synced ads, campaigns,
19627
+ * ad sets and keywords removed.
19628
19628
  * On Meta only the scoped ad accounts get webhook subscriptions,
19629
19629
  * including when the call starts a fresh OAuth.
19630
19630
  * Omitting both `adAccountId` and `adAccountIds` keeps any previously
@@ -45562,7 +45562,7 @@ export type CreateStandaloneAdData = {
45562
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
45563
  *
45564
45564
  */
45565
- adStatus?: 'ACTIVE' | 'PAUSED';
45565
+ adStatus?: AdActivationStatus;
45566
45566
  /**
45567
45567
  * Meta only. Where the budget lives, which selects the Meta budget model:
45568
45568
  * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the