@getlatedev/node 0.2.1442 → 0.2.1443

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 CHANGED
@@ -18747,7 +18747,6 @@ type current = 'active' | 'restricted' | 'disabled' | 'closed';
18747
18747
  *
18748
18748
  * - Meta `WITH_ISSUES` (payment, policy and account problems)
18749
18749
  * - TikTok account punishment or missing balance
18750
- * - LinkedIn removals
18751
18750
  * - any platform status Zernio does not recognize yet (check `issue.raw`)
18752
18751
  *
18753
18752
  * Ads seen for the first time by a sync never fire it.
@@ -18809,14 +18808,18 @@ type event9 = 'ad.delivery_issue';
18809
18808
  */
18810
18809
  type level4 = 'AD';
18811
18810
  /**
18812
- * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X and the rest).
18811
+ * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X, Reddit and the rest).
18813
18812
  *
18814
18813
  * Fires when an ad Zernio already tracked changes review outcome:
18815
18814
  *
18816
18815
  * - `approved`: it leaves review as deliverable, or a rejection is overturned.
18817
18816
  * - `rejected`: the platform rejects it.
18818
18817
  *
18819
- * Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it. An ad that leaves review paused (for example its ad set is paused) sends no `approved` event.
18818
+ * Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
18819
+ *
18820
+ * On X, Pinterest and LinkedIn, Zernio reads the review apart from the delivery status. An ad that leaves review while paused (for example under a paused campaign) still sends `approved`.
18821
+ *
18822
+ * On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event.
18820
18823
  *
18821
18824
  * Detected by Zernio's own ad sync (and, for Meta, the review poll), so it arrives within one sync cycle of the platform's decision, not instantly. Each outcome is delivered at most once per ad per 24 hours.
18822
18825
  *
@@ -18859,7 +18862,7 @@ type WebhookPayloadAdReview = {
18859
18862
  */
18860
18863
  raw: string;
18861
18864
  /**
18862
- * Why the platform rejected the ad, when it says. Always empty on `approved`. Most networks only return a generic message today.
18865
+ * Why the platform rejected the ad, when it says. Always empty on `approved`. Pinterest, LinkedIn and Reddit send their own reasons, X sends none, and most other networks only return a generic message.
18863
18866
  */
18864
18867
  reasons: Array<{
18865
18868
  message: string;
package/dist/index.d.ts CHANGED
@@ -18747,7 +18747,6 @@ type current = 'active' | 'restricted' | 'disabled' | 'closed';
18747
18747
  *
18748
18748
  * - Meta `WITH_ISSUES` (payment, policy and account problems)
18749
18749
  * - TikTok account punishment or missing balance
18750
- * - LinkedIn removals
18751
18750
  * - any platform status Zernio does not recognize yet (check `issue.raw`)
18752
18751
  *
18753
18752
  * Ads seen for the first time by a sync never fire it.
@@ -18809,14 +18808,18 @@ type event9 = 'ad.delivery_issue';
18809
18808
  */
18810
18809
  type level4 = 'AD';
18811
18810
  /**
18812
- * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X and the rest).
18811
+ * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X, Reddit and the rest).
18813
18812
  *
18814
18813
  * Fires when an ad Zernio already tracked changes review outcome:
18815
18814
  *
18816
18815
  * - `approved`: it leaves review as deliverable, or a rejection is overturned.
18817
18816
  * - `rejected`: the platform rejects it.
18818
18817
  *
18819
- * Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it. An ad that leaves review paused (for example its ad set is paused) sends no `approved` event.
18818
+ * Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
18819
+ *
18820
+ * On X, Pinterest and LinkedIn, Zernio reads the review apart from the delivery status. An ad that leaves review while paused (for example under a paused campaign) still sends `approved`.
18821
+ *
18822
+ * On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event.
18820
18823
  *
18821
18824
  * Detected by Zernio's own ad sync (and, for Meta, the review poll), so it arrives within one sync cycle of the platform's decision, not instantly. Each outcome is delivered at most once per ad per 24 hours.
18822
18825
  *
@@ -18859,7 +18862,7 @@ type WebhookPayloadAdReview = {
18859
18862
  */
18860
18863
  raw: string;
18861
18864
  /**
18862
- * Why the platform rejected the ad, when it says. Always empty on `approved`. Most networks only return a generic message today.
18865
+ * Why the platform rejected the ad, when it says. Always empty on `approved`. Pinterest, LinkedIn and Reddit send their own reasons, X sends none, and most other networks only return a generic message.
18863
18866
  */
18864
18867
  reasons: Array<{
18865
18868
  message: string;
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.1442",
39
+ version: "0.2.1443",
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.1442",
8
+ version: "0.2.1443",
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.1442",
3
+ "version": "0.2.1443",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17224,7 +17224,6 @@ export type current = 'active' | 'restricted' | 'disabled' | 'closed';
17224
17224
  *
17225
17225
  * - Meta `WITH_ISSUES` (payment, policy and account problems)
17226
17226
  * - TikTok account punishment or missing balance
17227
- * - LinkedIn removals
17228
17227
  * - any platform status Zernio does not recognize yet (check `issue.raw`)
17229
17228
  *
17230
17229
  * Ads seen for the first time by a sync never fire it.
@@ -17289,14 +17288,18 @@ export type event9 = 'ad.delivery_issue';
17289
17288
  export type level4 = 'AD';
17290
17289
 
17291
17290
  /**
17292
- * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X and the rest).
17291
+ * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X, Reddit and the rest).
17293
17292
  *
17294
17293
  * Fires when an ad Zernio already tracked changes review outcome:
17295
17294
  *
17296
17295
  * - `approved`: it leaves review as deliverable, or a rejection is overturned.
17297
17296
  * - `rejected`: the platform rejects it.
17298
17297
  *
17299
- * Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it. An ad that leaves review paused (for example its ad set is paused) sends no `approved` event.
17298
+ * Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
17299
+ *
17300
+ * On X, Pinterest and LinkedIn, Zernio reads the review apart from the delivery status. An ad that leaves review while paused (for example under a paused campaign) still sends `approved`.
17301
+ *
17302
+ * On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event.
17300
17303
  *
17301
17304
  * Detected by Zernio's own ad sync (and, for Meta, the review poll), so it arrives within one sync cycle of the platform's decision, not instantly. Each outcome is delivered at most once per ad per 24 hours.
17302
17305
  *
@@ -17339,7 +17342,7 @@ export type WebhookPayloadAdReview = {
17339
17342
  */
17340
17343
  raw: string;
17341
17344
  /**
17342
- * Why the platform rejected the ad, when it says. Always empty on `approved`. Most networks only return a generic message today.
17345
+ * Why the platform rejected the ad, when it says. Always empty on `approved`. Pinterest, LinkedIn and Reddit send their own reasons, X sends none, and most other networks only return a generic message.
17343
17346
  */
17344
17347
  reasons: Array<{
17345
17348
  message: string;