@getlatedev/node 0.2.1681 → 0.2.1683
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 +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +6 -8
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.1683",
|
|
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.1683",
|
|
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
|
@@ -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
|
*/
|
|
@@ -23669,6 +23666,7 @@ export type WebhookPayloadComment = {
|
|
|
23669
23666
|
*
|
|
23670
23667
|
* - Instagram and Facebook realtime webhooks: populated (Meta re-delivers the account's own replies as comments events).
|
|
23671
23668
|
* - TikTok: inferred. Comments created through this API are always flagged, and once the account's own author identifier is known (from one of those or from a comments listing), every author is compared against it.
|
|
23669
|
+
* - LinkedIn: populated when author.id is present; true when it equals the actor URN Zernio comments as for this account (organization URN for a page, urn:li:person URN for a member).
|
|
23672
23670
|
*
|
|
23673
23671
|
*/
|
|
23674
23672
|
isOwnAccount?: boolean;
|