@getlatedev/node 0.2.1681 → 0.2.1682

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.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.1681",
39
+ version: "0.2.1682",
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.1681",
8
+ version: "0.2.1682",
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.1681",
3
+ "version": "0.2.1682",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2125,7 +2125,7 @@ export type AdRuleAutomationCheck = {
2125
2125
  id: string;
2126
2126
  automationId: string;
2127
2127
  checkedAt: string;
2128
- outcome: 'triggered' | 'cooldown' | 'no_match' | 'failed';
2128
+ outcome: 'triggered' | 'cooldown' | 'daily_limit' | 'no_match' | 'failed' | 'paused';
2129
2129
  /**
2130
2130
  * Objects judged.
2131
2131
  */
@@ -2151,7 +2151,7 @@ export type AdRuleAutomationCheck = {
2151
2151
  error: (string) | null;
2152
2152
  };
2153
2153
 
2154
- export type outcome = 'triggered' | 'cooldown' | 'no_match' | 'failed';
2154
+ export type outcome = 'triggered' | 'cooldown' | 'daily_limit' | 'no_match' | 'failed' | 'paused';
2155
2155
 
2156
2156
  export type status4 = 'done' | 'failed';
2157
2157
 
@@ -2426,11 +2426,13 @@ export type AdRuleRun = {
2426
2426
  *
2427
2427
  * - `triggered`: the rule acted on at least one object (`error` is set if the webhook could not be sent afterwards).
2428
2428
  * - `cooldown`: objects matched but all were in cooldown.
2429
+ * - `daily_limit`: objects matched but the rule had used its `maxChangesPerDay`.
2430
+ * - `paused`: the run did not happen: the team used its free automation runs with no payment method on file (see `error`).
2429
2431
  * - `no_match`: nothing matched.
2430
2432
  * - `failed`: the metrics could not be read, every action failed, or the webhook of a notify-only rule could not be sent (see `error`).
2431
2433
  *
2432
2434
  */
2433
- outcome: 'triggered' | 'cooldown' | 'no_match' | 'failed';
2435
+ outcome: 'triggered' | 'cooldown' | 'daily_limit' | 'no_match' | 'failed' | 'paused';
2434
2436
  objectsEvaluated: number;
2435
2437
  actedObjectIds: Array<(string)>;
2436
2438
  /**
@@ -11529,11 +11531,6 @@ export type EventAutomationCheck = {
11529
11531
  error: (string) | null;
11530
11532
  };
11531
11533
 
11532
- /**
11533
- * `paused`: the team used its free automation runs with no payment method on file, so the check did not run. `error` says why.
11534
- */
11535
- export type outcome2 = 'triggered' | 'no_match' | 'cooldown' | 'daily_limit' | 'failed' | 'paused';
11536
-
11537
11534
  /**
11538
11535
  * Runs when something happens in Zernio, such as a post failing, and notifies. Unknown fields are refused.
11539
11536
  */