@getlatedev/node 0.2.1670 → 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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -2
- package/src/generated/types.gen.ts +9 -1
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
|
/**
|
|
@@ -59513,6 +59517,10 @@ type ListAdRuleAlertsResponse = ({
|
|
|
59513
59517
|
consecutiveMatches: number;
|
|
59514
59518
|
openedAt: (string) | null;
|
|
59515
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;
|
|
59516
59524
|
resolvedAt: (string) | null;
|
|
59517
59525
|
resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
|
|
59518
59526
|
}>;
|
|
@@ -63655,7 +63663,7 @@ type GetAdsActivityLogData = {
|
|
|
63655
63663
|
*/
|
|
63656
63664
|
objectId?: string;
|
|
63657
63665
|
/**
|
|
63658
|
-
* Start of range (YYYY-MM-DD). Google: at most
|
|
63666
|
+
* Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
|
|
63659
63667
|
*/
|
|
63660
63668
|
since?: string;
|
|
63661
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
|
/**
|
|
@@ -59513,6 +59517,10 @@ type ListAdRuleAlertsResponse = ({
|
|
|
59513
59517
|
consecutiveMatches: number;
|
|
59514
59518
|
openedAt: (string) | null;
|
|
59515
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;
|
|
59516
59524
|
resolvedAt: (string) | null;
|
|
59517
59525
|
resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
|
|
59518
59526
|
}>;
|
|
@@ -63655,7 +63663,7 @@ type GetAdsActivityLogData = {
|
|
|
63655
63663
|
*/
|
|
63656
63664
|
objectId?: string;
|
|
63657
63665
|
/**
|
|
63658
|
-
* Start of range (YYYY-MM-DD). Google: at most
|
|
63666
|
+
* Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
|
|
63659
63667
|
*/
|
|
63660
63668
|
since?: string;
|
|
63661
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.
|
|
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.
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
/**
|
|
@@ -60578,6 +60582,10 @@ export type ListAdRuleAlertsResponse = ({
|
|
|
60578
60582
|
consecutiveMatches: number;
|
|
60579
60583
|
openedAt: (string) | null;
|
|
60580
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;
|
|
60581
60589
|
resolvedAt: (string) | null;
|
|
60582
60590
|
resolvedReason: ('condition_cleared' | 'action_applied' | 'not_evaluated' | 'automation_changed' | 'automation_off') | null;
|
|
60583
60591
|
}>;
|
|
@@ -64922,7 +64930,7 @@ export type GetAdsActivityLogData = {
|
|
|
64922
64930
|
*/
|
|
64923
64931
|
objectId?: string;
|
|
64924
64932
|
/**
|
|
64925
|
-
* Start of range (YYYY-MM-DD). Google: at most
|
|
64933
|
+
* Start of range (YYYY-MM-DD). Google: at most 28 days ago, the default.
|
|
64926
64934
|
*/
|
|
64927
64935
|
since?: string;
|
|
64928
64936
|
/**
|