@getlatedev/node 0.2.1670 → 0.2.1672

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
  /**
@@ -17969,6 +17973,10 @@ type type26 = 'google_domain_wide_delegation' | 'microsoft_admin_consent';
17969
17973
  type OwnedPhoneNumber = {
17970
17974
  _id?: string;
17971
17975
  phoneNumber?: string;
17976
+ /**
17977
+ * The specific number you asked for at purchase (`phoneNumber` in the purchase body). Absent when you did not pick one. When it differs from `phoneNumber`, WhatsApp refused the picked number (it was likely registered on WhatsApp before), so a different number was issued.
17978
+ */
17979
+ requestedPhoneNumber?: string;
17972
17980
  country?: string;
17973
17981
  /**
17974
17982
  * For example local, mobile, national or toll_free.
@@ -59513,6 +59521,10 @@ type ListAdRuleAlertsResponse = ({
59513
59521
  consecutiveMatches: number;
59514
59522
  openedAt: (string) | null;
59515
59523
  lastMatchedAt: string;
59524
+ /**
59525
+ * When a run last evaluated the object of this alert. Older than the latest run means that run did not evaluate it.
59526
+ */
59527
+ lastEvaluatedAt: string;
59516
59528
  resolvedAt: (string) | null;
59517
59529
  resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
59518
59530
  }>;
@@ -63655,7 +63667,7 @@ type GetAdsActivityLogData = {
63655
63667
  */
63656
63668
  objectId?: string;
63657
63669
  /**
63658
- * Start of range (YYYY-MM-DD). Google: at most 29 days ago, the default.
63670
+ * Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
63659
63671
  */
63660
63672
  since?: string;
63661
63673
  /**
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
  /**
@@ -17969,6 +17973,10 @@ type type26 = 'google_domain_wide_delegation' | 'microsoft_admin_consent';
17969
17973
  type OwnedPhoneNumber = {
17970
17974
  _id?: string;
17971
17975
  phoneNumber?: string;
17976
+ /**
17977
+ * The specific number you asked for at purchase (`phoneNumber` in the purchase body). Absent when you did not pick one. When it differs from `phoneNumber`, WhatsApp refused the picked number (it was likely registered on WhatsApp before), so a different number was issued.
17978
+ */
17979
+ requestedPhoneNumber?: string;
17972
17980
  country?: string;
17973
17981
  /**
17974
17982
  * For example local, mobile, national or toll_free.
@@ -59513,6 +59521,10 @@ type ListAdRuleAlertsResponse = ({
59513
59521
  consecutiveMatches: number;
59514
59522
  openedAt: (string) | null;
59515
59523
  lastMatchedAt: string;
59524
+ /**
59525
+ * When a run last evaluated the object of this alert. Older than the latest run means that run did not evaluate it.
59526
+ */
59527
+ lastEvaluatedAt: string;
59516
59528
  resolvedAt: (string) | null;
59517
59529
  resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
59518
59530
  }>;
@@ -63655,7 +63667,7 @@ type GetAdsActivityLogData = {
63655
63667
  */
63656
63668
  objectId?: string;
63657
63669
  /**
63658
- * Start of range (YYYY-MM-DD). Google: at most 29 days ago, the default.
63670
+ * Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
63659
63671
  */
63660
63672
  since?: string;
63661
63673
  /**
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.1670",
39
+ version: "0.2.1672",
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.1670",
8
+ version: "0.2.1672",
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.1670",
3
+ "version": "0.2.1672",
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
  /**
@@ -16165,6 +16169,10 @@ export type type26 = 'google_domain_wide_delegation' | 'microsoft_admin_consent'
16165
16169
  export type OwnedPhoneNumber = {
16166
16170
  _id?: string;
16167
16171
  phoneNumber?: string;
16172
+ /**
16173
+ * The specific number you asked for at purchase (`phoneNumber` in the purchase body). Absent when you did not pick one. When it differs from `phoneNumber`, WhatsApp refused the picked number (it was likely registered on WhatsApp before), so a different number was issued.
16174
+ */
16175
+ requestedPhoneNumber?: string;
16168
16176
  country?: string;
16169
16177
  /**
16170
16178
  * For example local, mobile, national or toll_free.
@@ -60578,6 +60586,10 @@ export type ListAdRuleAlertsResponse = ({
60578
60586
  consecutiveMatches: number;
60579
60587
  openedAt: (string) | null;
60580
60588
  lastMatchedAt: string;
60589
+ /**
60590
+ * When a run last evaluated the object of this alert. Older than the latest run means that run did not evaluate it.
60591
+ */
60592
+ lastEvaluatedAt: string;
60581
60593
  resolvedAt: (string) | null;
60582
60594
  resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
60583
60595
  }>;
@@ -64922,7 +64934,7 @@ export type GetAdsActivityLogData = {
64922
64934
  */
64923
64935
  objectId?: string;
64924
64936
  /**
64925
- * Start of range (YYYY-MM-DD). Google: at most 29 days ago, the default.
64937
+ * Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
64926
64938
  */
64927
64939
  since?: string;
64928
64940
  /**