@getlatedev/node 0.2.1463 → 0.2.1464
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 +25 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +25 -4
package/dist/index.d.mts
CHANGED
|
@@ -4226,16 +4226,37 @@ type AdRuleRun = {
|
|
|
4226
4226
|
*/
|
|
4227
4227
|
type outcome = 'triggered' | 'cooldown' | 'no_match' | 'failed';
|
|
4228
4228
|
type status4 = 'done' | 'failed';
|
|
4229
|
+
/**
|
|
4230
|
+
* Either `everyMinutes` or `times`. Sending a schedule replaces the rule's whole timing. Without one, a new rule runs every 60 minutes.
|
|
4231
|
+
*/
|
|
4229
4232
|
type AdRuleSchedule = {
|
|
4230
4233
|
/**
|
|
4231
|
-
* How often the rule runs, in minutes.
|
|
4234
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
4235
|
+
*/
|
|
4236
|
+
everyMinutes?: (15 | 30 | 60 | 180 | 360 | 720 | 1440) | null;
|
|
4237
|
+
/**
|
|
4238
|
+
* 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.
|
|
4232
4239
|
*/
|
|
4233
|
-
|
|
4240
|
+
times?: Array<{
|
|
4241
|
+
days: Array<('mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun')>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Wall-clock time, 24-hour `HH:MM`.
|
|
4244
|
+
*/
|
|
4245
|
+
at: string;
|
|
4246
|
+
}> | null;
|
|
4247
|
+
/**
|
|
4248
|
+
* The rule runs from this time on.
|
|
4249
|
+
*/
|
|
4250
|
+
startsAt?: (string) | null;
|
|
4251
|
+
/**
|
|
4252
|
+
* The rule stops running after this time.
|
|
4253
|
+
*/
|
|
4254
|
+
endsAt?: (string) | null;
|
|
4234
4255
|
};
|
|
4235
4256
|
/**
|
|
4236
|
-
* How often the rule runs, in minutes.
|
|
4257
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
4237
4258
|
*/
|
|
4238
|
-
type everyMinutes = 60 | 180 | 360 | 720 | 1440;
|
|
4259
|
+
type everyMinutes = 15 | 30 | 60 | 180 | 360 | 720 | 1440;
|
|
4239
4260
|
type AdsAlert = {
|
|
4240
4261
|
/**
|
|
4241
4262
|
* Stable for the same problem on the same entity. Pass it to POST /v1/ads/alerts/{alertId}/dismiss.
|
package/dist/index.d.ts
CHANGED
|
@@ -4226,16 +4226,37 @@ type AdRuleRun = {
|
|
|
4226
4226
|
*/
|
|
4227
4227
|
type outcome = 'triggered' | 'cooldown' | 'no_match' | 'failed';
|
|
4228
4228
|
type status4 = 'done' | 'failed';
|
|
4229
|
+
/**
|
|
4230
|
+
* Either `everyMinutes` or `times`. Sending a schedule replaces the rule's whole timing. Without one, a new rule runs every 60 minutes.
|
|
4231
|
+
*/
|
|
4229
4232
|
type AdRuleSchedule = {
|
|
4230
4233
|
/**
|
|
4231
|
-
* How often the rule runs, in minutes.
|
|
4234
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
4235
|
+
*/
|
|
4236
|
+
everyMinutes?: (15 | 30 | 60 | 180 | 360 | 720 | 1440) | null;
|
|
4237
|
+
/**
|
|
4238
|
+
* 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.
|
|
4232
4239
|
*/
|
|
4233
|
-
|
|
4240
|
+
times?: Array<{
|
|
4241
|
+
days: Array<('mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun')>;
|
|
4242
|
+
/**
|
|
4243
|
+
* Wall-clock time, 24-hour `HH:MM`.
|
|
4244
|
+
*/
|
|
4245
|
+
at: string;
|
|
4246
|
+
}> | null;
|
|
4247
|
+
/**
|
|
4248
|
+
* The rule runs from this time on.
|
|
4249
|
+
*/
|
|
4250
|
+
startsAt?: (string) | null;
|
|
4251
|
+
/**
|
|
4252
|
+
* The rule stops running after this time.
|
|
4253
|
+
*/
|
|
4254
|
+
endsAt?: (string) | null;
|
|
4234
4255
|
};
|
|
4235
4256
|
/**
|
|
4236
|
-
* How often the rule runs, in minutes.
|
|
4257
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
4237
4258
|
*/
|
|
4238
|
-
type everyMinutes = 60 | 180 | 360 | 720 | 1440;
|
|
4259
|
+
type everyMinutes = 15 | 30 | 60 | 180 | 360 | 720 | 1440;
|
|
4239
4260
|
type AdsAlert = {
|
|
4240
4261
|
/**
|
|
4241
4262
|
* Stable for the same problem on the same entity. Pass it to POST /v1/ads/alerts/{alertId}/dismiss.
|
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.1464",
|
|
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.1464",
|
|
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
|
@@ -2019,17 +2019,38 @@ export type outcome = 'triggered' | 'cooldown' | 'no_match' | 'failed';
|
|
|
2019
2019
|
|
|
2020
2020
|
export type status4 = 'done' | 'failed';
|
|
2021
2021
|
|
|
2022
|
+
/**
|
|
2023
|
+
* Either `everyMinutes` or `times`. Sending a schedule replaces the rule's whole timing. Without one, a new rule runs every 60 minutes.
|
|
2024
|
+
*/
|
|
2022
2025
|
export type AdRuleSchedule = {
|
|
2023
2026
|
/**
|
|
2024
|
-
* How often the rule runs, in minutes.
|
|
2027
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
2028
|
+
*/
|
|
2029
|
+
everyMinutes?: (15 | 30 | 60 | 180 | 360 | 720 | 1440) | null;
|
|
2030
|
+
/**
|
|
2031
|
+
* 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.
|
|
2025
2032
|
*/
|
|
2026
|
-
|
|
2033
|
+
times?: Array<{
|
|
2034
|
+
days: Array<('mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun')>;
|
|
2035
|
+
/**
|
|
2036
|
+
* Wall-clock time, 24-hour `HH:MM`.
|
|
2037
|
+
*/
|
|
2038
|
+
at: string;
|
|
2039
|
+
}> | null;
|
|
2040
|
+
/**
|
|
2041
|
+
* The rule runs from this time on.
|
|
2042
|
+
*/
|
|
2043
|
+
startsAt?: (string) | null;
|
|
2044
|
+
/**
|
|
2045
|
+
* The rule stops running after this time.
|
|
2046
|
+
*/
|
|
2047
|
+
endsAt?: (string) | null;
|
|
2027
2048
|
};
|
|
2028
2049
|
|
|
2029
2050
|
/**
|
|
2030
|
-
* How often the rule runs, in minutes.
|
|
2051
|
+
* How often the rule runs, in minutes. Null on a rule that runs at set times.
|
|
2031
2052
|
*/
|
|
2032
|
-
export type everyMinutes = 60 | 180 | 360 | 720 | 1440;
|
|
2053
|
+
export type everyMinutes = 15 | 30 | 60 | 180 | 360 | 720 | 1440;
|
|
2033
2054
|
|
|
2034
2055
|
export type AdsAlert = {
|
|
2035
2056
|
/**
|