@getlatedev/node 0.2.1669 → 0.2.1671

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
@@ -4610,6 +4610,8 @@ type AdRuleCondition = {
4610
4610
  *
4611
4611
  * `search_impression_share`, `search_budget_lost_impression_share` and `search_rank_lost_impression_share` are Google's Search impression share and the shares lost to budget and to ad rank, in percent. Campaign rules on Google only.
4612
4612
  *
4613
+ * Google reports a share under 10% as 9.99 and a lost share over 90% as 90.01, so a threshold under 10 on the share, or over 90 on a lost share, is refused.
4614
+ *
4613
4615
  * They are read live from Google, not in groups and not with `usual`. A campaign Google gives no value for (one not on Search) never matches.
4614
4616
  *
4615
4617
  * `daily_budget` is the object's synced daily budget. `budget_used` is spend over the window as a percent of that budget for each day of the window: `today` `>=` 200 means twice the budget spent.
@@ -4631,6 +4633,8 @@ type AdRuleCondition = {
4631
4633
  *
4632
4634
  * `last_complete_hour`, `last_3h` and `today_so_far` read campaign totals hour by hour, on campaign rules for Meta and Google, and end at the latest hour whose numbers have settled, not at now. They take `spend`, `impressions`, `clicks`, `ctr`, `cpc`, `cpm` and `budget_used` (against today's daily budget), and no `top` or `bottom`.
4633
4635
  *
4636
+ * They are saved only on an ad account the hourly sync covers (`GET /v1/ads/rules/hourly-windows`); on any other the rule is refused with a 400.
4637
+ *
4634
4638
  */
4635
4639
  window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | 'this_month' | 'last_month' | 'last_complete_hour' | 'last_3h' | 'today_so_far' | unknown);
4636
4640
  /**
@@ -10538,6 +10542,15 @@ type ConversionEvent = {
10538
10542
  *
10539
10543
  */
10540
10544
  leadId?: string;
10545
+ /**
10546
+ * The Zernio tag's visitor id, from the `_zid` cookie the tag sets on your site. Zernio adds the click ids
10547
+ * and browser ids of that visit that the event lacks, before storing and forwarding it.
10548
+ *
10549
+ * Without it, Zernio finds the visit by the `email`, `phone` or `externalId` the tag saw. Ids you send
10550
+ * always win. Never sent to a platform. Read only by `POST /v1/events`, for a profile with a tracking site.
10551
+ *
10552
+ */
10553
+ visitorId?: string;
10541
10554
  /**
10542
10555
  * Platform click identifiers captured from the originating ad click.
10543
10556
  */
@@ -59504,6 +59517,10 @@ type ListAdRuleAlertsResponse = ({
59504
59517
  consecutiveMatches: number;
59505
59518
  openedAt: (string) | null;
59506
59519
  lastMatchedAt: string;
59520
+ /**
59521
+ * When a run last evaluated the object of this alert. Older than the latest run means that run did not evaluate it.
59522
+ */
59523
+ lastEvaluatedAt: string;
59507
59524
  resolvedAt: (string) | null;
59508
59525
  resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
59509
59526
  }>;
@@ -63646,7 +63663,7 @@ type GetAdsActivityLogData = {
63646
63663
  */
63647
63664
  objectId?: string;
63648
63665
  /**
63649
- * Start of range (YYYY-MM-DD). Google: at most 29 days ago, the default.
63666
+ * Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
63650
63667
  */
63651
63668
  since?: string;
63652
63669
  /**
package/dist/index.d.ts CHANGED
@@ -4610,6 +4610,8 @@ type AdRuleCondition = {
4610
4610
  *
4611
4611
  * `search_impression_share`, `search_budget_lost_impression_share` and `search_rank_lost_impression_share` are Google's Search impression share and the shares lost to budget and to ad rank, in percent. Campaign rules on Google only.
4612
4612
  *
4613
+ * Google reports a share under 10% as 9.99 and a lost share over 90% as 90.01, so a threshold under 10 on the share, or over 90 on a lost share, is refused.
4614
+ *
4613
4615
  * They are read live from Google, not in groups and not with `usual`. A campaign Google gives no value for (one not on Search) never matches.
4614
4616
  *
4615
4617
  * `daily_budget` is the object's synced daily budget. `budget_used` is spend over the window as a percent of that budget for each day of the window: `today` `>=` 200 means twice the budget spent.
@@ -4631,6 +4633,8 @@ type AdRuleCondition = {
4631
4633
  *
4632
4634
  * `last_complete_hour`, `last_3h` and `today_so_far` read campaign totals hour by hour, on campaign rules for Meta and Google, and end at the latest hour whose numbers have settled, not at now. They take `spend`, `impressions`, `clicks`, `ctr`, `cpc`, `cpm` and `budget_used` (against today's daily budget), and no `top` or `bottom`.
4633
4635
  *
4636
+ * They are saved only on an ad account the hourly sync covers (`GET /v1/ads/rules/hourly-windows`); on any other the rule is refused with a 400.
4637
+ *
4634
4638
  */
4635
4639
  window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | 'this_month' | 'last_month' | 'last_complete_hour' | 'last_3h' | 'today_so_far' | unknown);
4636
4640
  /**
@@ -10538,6 +10542,15 @@ type ConversionEvent = {
10538
10542
  *
10539
10543
  */
10540
10544
  leadId?: string;
10545
+ /**
10546
+ * The Zernio tag's visitor id, from the `_zid` cookie the tag sets on your site. Zernio adds the click ids
10547
+ * and browser ids of that visit that the event lacks, before storing and forwarding it.
10548
+ *
10549
+ * Without it, Zernio finds the visit by the `email`, `phone` or `externalId` the tag saw. Ids you send
10550
+ * always win. Never sent to a platform. Read only by `POST /v1/events`, for a profile with a tracking site.
10551
+ *
10552
+ */
10553
+ visitorId?: string;
10541
10554
  /**
10542
10555
  * Platform click identifiers captured from the originating ad click.
10543
10556
  */
@@ -59504,6 +59517,10 @@ type ListAdRuleAlertsResponse = ({
59504
59517
  consecutiveMatches: number;
59505
59518
  openedAt: (string) | null;
59506
59519
  lastMatchedAt: string;
59520
+ /**
59521
+ * When a run last evaluated the object of this alert. Older than the latest run means that run did not evaluate it.
59522
+ */
59523
+ lastEvaluatedAt: string;
59507
59524
  resolvedAt: (string) | null;
59508
59525
  resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
59509
59526
  }>;
@@ -63646,7 +63663,7 @@ type GetAdsActivityLogData = {
63646
63663
  */
63647
63664
  objectId?: string;
63648
63665
  /**
63649
- * Start of range (YYYY-MM-DD). Google: at most 29 days ago, the default.
63666
+ * Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
63650
63667
  */
63651
63668
  since?: string;
63652
63669
  /**
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.1669",
39
+ version: "0.2.1671",
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.1669",
8
+ version: "0.2.1671",
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.1669",
3
+ "version": "0.2.1671",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13947,7 +13947,7 @@ export const listAdRuleTemplates = <ThrowOnError extends boolean = false>(option
13947
13947
  * Check whether an ad account has hourly windows
13948
13948
  * Hourly windows (`last_complete_hour`, `last_3h`, `today_so_far`) read campaign totals hour by hour, which Zernio syncs only for some Meta and Google ad accounts.
13949
13949
  *
13950
- * On an ad account without them, an hourly condition always reads as unknown and never matches. `hourlyWindows` says which case applies.
13950
+ * A rule with an hourly condition is saved only on an ad account that has them: on any other, creating or editing it returns 400. `hourlyWindows` says which case applies.
13951
13951
  *
13952
13952
  */
13953
13953
  export const getAdRuleHourlyWindows = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetAdRuleHourlyWindowsData, ThrowOnError>) => {
@@ -16238,7 +16238,7 @@ export const dismissAdsAlert = <ThrowOnError extends boolean = false>(options: O
16238
16238
  *
16239
16239
  * Reads the customer's `change_event` history, newest first. `adAccountId` is the numeric customer id.
16240
16240
  *
16241
- * Google keeps 30 days of it, so `since` defaults to 29 days ago and an older `since` returns 400. `until` defaults to today.
16241
+ * Google keeps 30 days of it, counted to the hour, so `since` defaults to 28 days ago on the account's clock, the oldest whole day always inside them, and an older `since` returns 400. `until` defaults to today.
16242
16242
  *
16243
16243
  * Each change is mapped onto the Meta row shape:
16244
16244
  *
@@ -2183,6 +2183,8 @@ export type AdRuleCondition = {
2183
2183
  *
2184
2184
  * `search_impression_share`, `search_budget_lost_impression_share` and `search_rank_lost_impression_share` are Google's Search impression share and the shares lost to budget and to ad rank, in percent. Campaign rules on Google only.
2185
2185
  *
2186
+ * Google reports a share under 10% as 9.99 and a lost share over 90% as 90.01, so a threshold under 10 on the share, or over 90 on a lost share, is refused.
2187
+ *
2186
2188
  * They are read live from Google, not in groups and not with `usual`. A campaign Google gives no value for (one not on Search) never matches.
2187
2189
  *
2188
2190
  * `daily_budget` is the object's synced daily budget. `budget_used` is spend over the window as a percent of that budget for each day of the window: `today` `>=` 200 means twice the budget spent.
@@ -2204,6 +2206,8 @@ export type AdRuleCondition = {
2204
2206
  *
2205
2207
  * `last_complete_hour`, `last_3h` and `today_so_far` read campaign totals hour by hour, on campaign rules for Meta and Google, and end at the latest hour whose numbers have settled, not at now. They take `spend`, `impressions`, `clicks`, `ctr`, `cpc`, `cpm` and `budget_used` (against today's daily budget), and no `top` or `bottom`.
2206
2208
  *
2209
+ * They are saved only on an ad account the hourly sync covers (`GET /v1/ads/rules/hourly-windows`); on any other the rule is refused with a 400.
2210
+ *
2207
2211
  */
2208
2212
  window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | 'this_month' | 'last_month' | 'last_complete_hour' | 'last_3h' | 'today_so_far' | unknown);
2209
2213
  /**
@@ -8410,6 +8414,15 @@ export type ConversionEvent = {
8410
8414
  *
8411
8415
  */
8412
8416
  leadId?: string;
8417
+ /**
8418
+ * The Zernio tag's visitor id, from the `_zid` cookie the tag sets on your site. Zernio adds the click ids
8419
+ * and browser ids of that visit that the event lacks, before storing and forwarding it.
8420
+ *
8421
+ * Without it, Zernio finds the visit by the `email`, `phone` or `externalId` the tag saw. Ids you send
8422
+ * always win. Never sent to a platform. Read only by `POST /v1/events`, for a profile with a tracking site.
8423
+ *
8424
+ */
8425
+ visitorId?: string;
8413
8426
  /**
8414
8427
  * Platform click identifiers captured from the originating ad click.
8415
8428
  */
@@ -60569,6 +60582,10 @@ export type ListAdRuleAlertsResponse = ({
60569
60582
  consecutiveMatches: number;
60570
60583
  openedAt: (string) | null;
60571
60584
  lastMatchedAt: string;
60585
+ /**
60586
+ * When a run last evaluated the object of this alert. Older than the latest run means that run did not evaluate it.
60587
+ */
60588
+ lastEvaluatedAt: string;
60572
60589
  resolvedAt: (string) | null;
60573
60590
  resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
60574
60591
  }>;
@@ -64913,7 +64930,7 @@ export type GetAdsActivityLogData = {
64913
64930
  */
64914
64931
  objectId?: string;
64915
64932
  /**
64916
- * Start of range (YYYY-MM-DD). Google: at most 29 days ago, the default.
64933
+ * Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
64917
64934
  */
64918
64935
  since?: string;
64919
64936
  /**