@getlatedev/node 0.2.1458 → 0.2.1459
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -4022,7 +4022,10 @@ type AdRuleCondition = {
|
|
|
4022
4022
|
*
|
|
4023
4023
|
*/
|
|
4024
4024
|
window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | unknown);
|
|
4025
|
-
|
|
4025
|
+
/**
|
|
4026
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
4027
|
+
*/
|
|
4028
|
+
op: '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
4026
4029
|
value: number;
|
|
4027
4030
|
/**
|
|
4028
4031
|
* Makes the condition relative: `value` becomes a ratio of the metric over `window` to the same metric over this window. `previous_period` is the same number of days just before `window`; any other value is a window, such as `30_to_2_days_ago`.
|
|
@@ -4032,7 +4035,10 @@ type AdRuleCondition = {
|
|
|
4032
4035
|
*/
|
|
4033
4036
|
compareTo?: string;
|
|
4034
4037
|
};
|
|
4035
|
-
|
|
4038
|
+
/**
|
|
4039
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
4040
|
+
*/
|
|
4041
|
+
type op = '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
4036
4042
|
type AdRuleConditionItem = AdRuleCondition | AdRuleConditions;
|
|
4037
4043
|
/**
|
|
4038
4044
|
* A group: `all` (every item must hold) or `any` (one is enough). An item is a condition or another group, nested up to 3 levels, with at most 10 conditions in total. A rate with no denominator (a CPA with no conversions) never matches.
|
|
@@ -19100,7 +19106,10 @@ type WebhookPayloadAdRuleTriggered = {
|
|
|
19100
19106
|
* `today`, `yesterday`, `last_3d`, `last_7d`, `last_14d` or `last_30d`, in the account's calendar (see `run.today`). New values may be added.
|
|
19101
19107
|
*/
|
|
19102
19108
|
window: string;
|
|
19103
|
-
|
|
19109
|
+
/**
|
|
19110
|
+
* `>`, `>=`, `<`, `<=`, or `top` and `bottom` for a rank condition, whose `actual` is the object's position (1 first).
|
|
19111
|
+
*/
|
|
19112
|
+
op: string;
|
|
19104
19113
|
/**
|
|
19105
19114
|
* The threshold set on the rule.
|
|
19106
19115
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4022,7 +4022,10 @@ type AdRuleCondition = {
|
|
|
4022
4022
|
*
|
|
4023
4023
|
*/
|
|
4024
4024
|
window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | unknown);
|
|
4025
|
-
|
|
4025
|
+
/**
|
|
4026
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
4027
|
+
*/
|
|
4028
|
+
op: '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
4026
4029
|
value: number;
|
|
4027
4030
|
/**
|
|
4028
4031
|
* Makes the condition relative: `value` becomes a ratio of the metric over `window` to the same metric over this window. `previous_period` is the same number of days just before `window`; any other value is a window, such as `30_to_2_days_ago`.
|
|
@@ -4032,7 +4035,10 @@ type AdRuleCondition = {
|
|
|
4032
4035
|
*/
|
|
4033
4036
|
compareTo?: string;
|
|
4034
4037
|
};
|
|
4035
|
-
|
|
4038
|
+
/**
|
|
4039
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
4040
|
+
*/
|
|
4041
|
+
type op = '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
4036
4042
|
type AdRuleConditionItem = AdRuleCondition | AdRuleConditions;
|
|
4037
4043
|
/**
|
|
4038
4044
|
* A group: `all` (every item must hold) or `any` (one is enough). An item is a condition or another group, nested up to 3 levels, with at most 10 conditions in total. A rate with no denominator (a CPA with no conversions) never matches.
|
|
@@ -19100,7 +19106,10 @@ type WebhookPayloadAdRuleTriggered = {
|
|
|
19100
19106
|
* `today`, `yesterday`, `last_3d`, `last_7d`, `last_14d` or `last_30d`, in the account's calendar (see `run.today`). New values may be added.
|
|
19101
19107
|
*/
|
|
19102
19108
|
window: string;
|
|
19103
|
-
|
|
19109
|
+
/**
|
|
19110
|
+
* `>`, `>=`, `<`, `<=`, or `top` and `bottom` for a rank condition, whose `actual` is the object's position (1 first).
|
|
19111
|
+
*/
|
|
19112
|
+
op: string;
|
|
19104
19113
|
/**
|
|
19105
19114
|
* The threshold set on the rule.
|
|
19106
19115
|
*/
|
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.1459",
|
|
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.1459",
|
|
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
|
@@ -1806,7 +1806,10 @@ export type AdRuleCondition = {
|
|
|
1806
1806
|
*
|
|
1807
1807
|
*/
|
|
1808
1808
|
window: ('today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d' | 'last_30d' | unknown);
|
|
1809
|
-
|
|
1809
|
+
/**
|
|
1810
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
1811
|
+
*/
|
|
1812
|
+
op: '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
1810
1813
|
value: number;
|
|
1811
1814
|
/**
|
|
1812
1815
|
* Makes the condition relative: `value` becomes a ratio of the metric over `window` to the same metric over this window. `previous_period` is the same number of days just before `window`; any other value is a window, such as `30_to_2_days_ago`.
|
|
@@ -1817,7 +1820,10 @@ export type AdRuleCondition = {
|
|
|
1817
1820
|
compareTo?: string;
|
|
1818
1821
|
};
|
|
1819
1822
|
|
|
1820
|
-
|
|
1823
|
+
/**
|
|
1824
|
+
* `top` and `bottom` rank the rule's objects by the metric over the window, highest first for `top`, and match the first `value` (a whole number from 1 to 100). Objects with no value are not ranked; the run history shows each one's position.
|
|
1825
|
+
*/
|
|
1826
|
+
export type op = '>' | '>=' | '<' | '<=' | 'top' | 'bottom';
|
|
1821
1827
|
|
|
1822
1828
|
export type AdRuleConditionItem = AdRuleCondition | AdRuleConditions;
|
|
1823
1829
|
|
|
@@ -17583,7 +17589,10 @@ export type WebhookPayloadAdRuleTriggered = {
|
|
|
17583
17589
|
* `today`, `yesterday`, `last_3d`, `last_7d`, `last_14d` or `last_30d`, in the account's calendar (see `run.today`). New values may be added.
|
|
17584
17590
|
*/
|
|
17585
17591
|
window: string;
|
|
17586
|
-
|
|
17592
|
+
/**
|
|
17593
|
+
* `>`, `>=`, `<`, `<=`, or `top` and `bottom` for a rank condition, whose `actual` is the object's position (1 first).
|
|
17594
|
+
*/
|
|
17595
|
+
op: string;
|
|
17587
17596
|
/**
|
|
17588
17597
|
* The threshold set on the rule.
|
|
17589
17598
|
*/
|