@getlatedev/node 0.2.1463 → 0.2.1465
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 +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +40 -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.1465",
|
|
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.1465",
|
|
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
|
@@ -1675,6 +1675,7 @@ export type AdRule = {
|
|
|
1675
1675
|
* Platform campaign IDs the rule is limited to. Null checks the whole ad account.
|
|
1676
1676
|
*/
|
|
1677
1677
|
campaignIds: Array<(string)> | null;
|
|
1678
|
+
filters: AdRuleFilters;
|
|
1678
1679
|
conditions: AdRuleConditions;
|
|
1679
1680
|
actions: AdRuleActions;
|
|
1680
1681
|
schedule: AdRuleSchedule;
|
|
@@ -1917,6 +1918,18 @@ export type AdRuleEvaluation = {
|
|
|
1917
1918
|
objects: Array<AdRuleObjectEvaluation>;
|
|
1918
1919
|
};
|
|
1919
1920
|
|
|
1921
|
+
/**
|
|
1922
|
+
* Narrows the objects the rule checks. Every filter must hold. Text compares without case, and a missing field reads as empty.
|
|
1923
|
+
*/
|
|
1924
|
+
export type AdRuleFilters = Array<{
|
|
1925
|
+
/**
|
|
1926
|
+
* The object's own name, its campaign's or ad set's name, or the campaign goal (objective) as the platform reports it.
|
|
1927
|
+
*/
|
|
1928
|
+
field: 'name' | 'campaign_name' | 'adset_name' | 'goal';
|
|
1929
|
+
op: 'contains' | 'not_contains' | 'equals' | 'not_equals' | 'starts_with';
|
|
1930
|
+
value: string;
|
|
1931
|
+
}>;
|
|
1932
|
+
|
|
1920
1933
|
/**
|
|
1921
1934
|
* Whether the rule checks campaigns, ad sets or single ads. Each one is evaluated on its own.
|
|
1922
1935
|
*/
|
|
@@ -2019,17 +2032,38 @@ export type outcome = 'triggered' | 'cooldown' | 'no_match' | 'failed';
|
|
|
2019
2032
|
|
|
2020
2033
|
export type status4 = 'done' | 'failed';
|
|
2021
2034
|
|
|
2035
|
+
/**
|
|
2036
|
+
* Either `everyMinutes` or `times`. Sending a schedule replaces the rule's whole timing. Without one, a new rule runs every 60 minutes.
|
|
2037
|
+
*/
|
|
2022
2038
|
export type AdRuleSchedule = {
|
|
2023
2039
|
/**
|
|
2024
|
-
* How often the rule runs, in minutes.
|
|
2040
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
2041
|
+
*/
|
|
2042
|
+
everyMinutes?: (15 | 30 | 60 | 180 | 360 | 720 | 1440) | null;
|
|
2043
|
+
/**
|
|
2044
|
+
* Set weekly times in the ad account timezone, instead of an interval. A rule that changes ads needs a cooldown of at least the shortest gap between two times.
|
|
2045
|
+
*/
|
|
2046
|
+
times?: Array<{
|
|
2047
|
+
days: Array<('mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun')>;
|
|
2048
|
+
/**
|
|
2049
|
+
* Wall-clock time, 24-hour `HH:MM`.
|
|
2050
|
+
*/
|
|
2051
|
+
at: string;
|
|
2052
|
+
}> | null;
|
|
2053
|
+
/**
|
|
2054
|
+
* The rule runs from this time on.
|
|
2025
2055
|
*/
|
|
2026
|
-
|
|
2056
|
+
startsAt?: (string) | null;
|
|
2057
|
+
/**
|
|
2058
|
+
* The rule stops running after this time.
|
|
2059
|
+
*/
|
|
2060
|
+
endsAt?: (string) | null;
|
|
2027
2061
|
};
|
|
2028
2062
|
|
|
2029
2063
|
/**
|
|
2030
|
-
* How often the rule runs, in minutes.
|
|
2064
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
2031
2065
|
*/
|
|
2032
|
-
export type everyMinutes = 60 | 180 | 360 | 720 | 1440;
|
|
2066
|
+
export type everyMinutes = 15 | 30 | 60 | 180 | 360 | 720 | 1440;
|
|
2033
2067
|
|
|
2034
2068
|
export type AdsAlert = {
|
|
2035
2069
|
/**
|
|
@@ -51181,6 +51215,7 @@ export type CreateAdRuleData = {
|
|
|
51181
51215
|
* Only check these platform campaign IDs (or their ad sets). Leave out to check the whole ad account.
|
|
51182
51216
|
*/
|
|
51183
51217
|
campaignIds?: Array<(string)>;
|
|
51218
|
+
filters?: AdRuleFilters;
|
|
51184
51219
|
conditions: AdRuleConditions;
|
|
51185
51220
|
actions: AdRuleActions;
|
|
51186
51221
|
/**
|
|
@@ -51267,6 +51302,7 @@ export type UpdateAdRuleData = {
|
|
|
51267
51302
|
name?: string;
|
|
51268
51303
|
level?: AdRuleLevel;
|
|
51269
51304
|
campaignIds?: Array<(string)> | null;
|
|
51305
|
+
filters?: AdRuleFilters;
|
|
51270
51306
|
conditions?: AdRuleConditions;
|
|
51271
51307
|
actions?: AdRuleActions;
|
|
51272
51308
|
schedule?: AdRuleSchedule;
|