@getlatedev/node 0.2.1442 → 0.2.1444
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 +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +19 -4
package/dist/index.d.mts
CHANGED
|
@@ -3305,6 +3305,15 @@ type AdFunnelCounts = {
|
|
|
3305
3305
|
* Messaging threads where the person sent a first reply.
|
|
3306
3306
|
*/
|
|
3307
3307
|
messagingFirstReplies?: number;
|
|
3308
|
+
/**
|
|
3309
|
+
* Booked appointments (Meta `Schedule` pixel event). Pair with `spend` for cost per booked meeting.
|
|
3310
|
+
*
|
|
3311
|
+
* **Meta** reports Schedule in its `conversions` insight field, never in `actions`. This takes the FIRST present of `offsite_conversion.fb_pixel_schedule`, `omni_schedule`, `app_custom_event.fb_mobile_schedule`, `onsite_conversion.schedule`, `schedule`, `schedule_total`, `schedule_mobile_app`, `schedule_website`, `schedule_offline`. With none of those, a single `offsite_schedule_add_<dataset>` key counts. Two such keys (two datasets) leave it at 0, since one booking can reach both.
|
|
3312
|
+
*
|
|
3313
|
+
* Added 2026-11-03. Days synced before then read 0 until re-fetched: each sync restates the last 30 days.
|
|
3314
|
+
*
|
|
3315
|
+
*/
|
|
3316
|
+
schedules?: number;
|
|
3308
3317
|
};
|
|
3309
3318
|
type AdKeyword = {
|
|
3310
3319
|
/**
|
|
@@ -3547,6 +3556,9 @@ type AdMetrics = {
|
|
|
3547
3556
|
* Per-action-type counts summed over the date range, keyed by the platform's action-type names. Keys differ by platform, so branch on the ad's platform when interpreting them. Empty object when no actions are reported.
|
|
3548
3557
|
*
|
|
3549
3558
|
* - Meta: raw Insights action_type keys (link_click, offsite_conversion.fb_pixel_purchase, onsite_conversion.lead_grouped, ...), covering both engagement and conversion events.
|
|
3559
|
+
* - Meta newer standard events (Schedule, SubmitApplication, Contact, StartTrial, Subscribe and the like) come only from Meta's `conversions` insight field, under keys such as schedule_total, schedule_website or offsite_schedule_add_<dataset>.
|
|
3560
|
+
* - Since 2026-11-03 every `conversions` key that `actions` lacks is added here, rounded per key, and its `conversion_values` value to `actionValues`. A key both fields report keeps its `actions` value.
|
|
3561
|
+
* - Days synced before 2026-11-03 lack those keys until re-fetched. Each sync restates the last 30 days.
|
|
3550
3562
|
* - TikTok: conversion events plus the paid-engagement family (follow, post_reaction for paid likes, comment, share). Follow is how FOLLOWERS-goal campaigns report their result.
|
|
3551
3563
|
* - TikTok website (pixel) events: complete_payment (website purchase, counted in `conversions` by SHOPPING-optimised campaigns), place_order, initiate_checkout, add_to_cart, view_content, lead (website form submissions plus TikTok instant-form leads).
|
|
3552
3564
|
* - TikTok place_order is Place an Order, the website purchase of pixels set up with the legacy ON_WEB_ORDER event. It is absent from days synced before this metric was added until the ad is re-synced.
|
|
@@ -18747,7 +18759,6 @@ type current = 'active' | 'restricted' | 'disabled' | 'closed';
|
|
|
18747
18759
|
*
|
|
18748
18760
|
* - Meta `WITH_ISSUES` (payment, policy and account problems)
|
|
18749
18761
|
* - TikTok account punishment or missing balance
|
|
18750
|
-
* - LinkedIn removals
|
|
18751
18762
|
* - any platform status Zernio does not recognize yet (check `issue.raw`)
|
|
18752
18763
|
*
|
|
18753
18764
|
* Ads seen for the first time by a sync never fire it.
|
|
@@ -18809,14 +18820,18 @@ type event9 = 'ad.delivery_issue';
|
|
|
18809
18820
|
*/
|
|
18810
18821
|
type level4 = 'AD';
|
|
18811
18822
|
/**
|
|
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).
|
|
18823
|
+
* 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
18824
|
*
|
|
18814
18825
|
* Fires when an ad Zernio already tracked changes review outcome:
|
|
18815
18826
|
*
|
|
18816
18827
|
* - `approved`: it leaves review as deliverable, or a rejection is overturned.
|
|
18817
18828
|
* - `rejected`: the platform rejects it.
|
|
18818
18829
|
*
|
|
18819
|
-
* Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
|
|
18830
|
+
* Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
|
|
18831
|
+
*
|
|
18832
|
+
* 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`.
|
|
18833
|
+
*
|
|
18834
|
+
* On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event.
|
|
18820
18835
|
*
|
|
18821
18836
|
* 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
18837
|
*
|
|
@@ -18859,7 +18874,7 @@ type WebhookPayloadAdReview = {
|
|
|
18859
18874
|
*/
|
|
18860
18875
|
raw: string;
|
|
18861
18876
|
/**
|
|
18862
|
-
* Why the platform rejected the ad, when it says. Always empty on `approved`.
|
|
18877
|
+
* 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
18878
|
*/
|
|
18864
18879
|
reasons: Array<{
|
|
18865
18880
|
message: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3305,6 +3305,15 @@ type AdFunnelCounts = {
|
|
|
3305
3305
|
* Messaging threads where the person sent a first reply.
|
|
3306
3306
|
*/
|
|
3307
3307
|
messagingFirstReplies?: number;
|
|
3308
|
+
/**
|
|
3309
|
+
* Booked appointments (Meta `Schedule` pixel event). Pair with `spend` for cost per booked meeting.
|
|
3310
|
+
*
|
|
3311
|
+
* **Meta** reports Schedule in its `conversions` insight field, never in `actions`. This takes the FIRST present of `offsite_conversion.fb_pixel_schedule`, `omni_schedule`, `app_custom_event.fb_mobile_schedule`, `onsite_conversion.schedule`, `schedule`, `schedule_total`, `schedule_mobile_app`, `schedule_website`, `schedule_offline`. With none of those, a single `offsite_schedule_add_<dataset>` key counts. Two such keys (two datasets) leave it at 0, since one booking can reach both.
|
|
3312
|
+
*
|
|
3313
|
+
* Added 2026-11-03. Days synced before then read 0 until re-fetched: each sync restates the last 30 days.
|
|
3314
|
+
*
|
|
3315
|
+
*/
|
|
3316
|
+
schedules?: number;
|
|
3308
3317
|
};
|
|
3309
3318
|
type AdKeyword = {
|
|
3310
3319
|
/**
|
|
@@ -3547,6 +3556,9 @@ type AdMetrics = {
|
|
|
3547
3556
|
* Per-action-type counts summed over the date range, keyed by the platform's action-type names. Keys differ by platform, so branch on the ad's platform when interpreting them. Empty object when no actions are reported.
|
|
3548
3557
|
*
|
|
3549
3558
|
* - Meta: raw Insights action_type keys (link_click, offsite_conversion.fb_pixel_purchase, onsite_conversion.lead_grouped, ...), covering both engagement and conversion events.
|
|
3559
|
+
* - Meta newer standard events (Schedule, SubmitApplication, Contact, StartTrial, Subscribe and the like) come only from Meta's `conversions` insight field, under keys such as schedule_total, schedule_website or offsite_schedule_add_<dataset>.
|
|
3560
|
+
* - Since 2026-11-03 every `conversions` key that `actions` lacks is added here, rounded per key, and its `conversion_values` value to `actionValues`. A key both fields report keeps its `actions` value.
|
|
3561
|
+
* - Days synced before 2026-11-03 lack those keys until re-fetched. Each sync restates the last 30 days.
|
|
3550
3562
|
* - TikTok: conversion events plus the paid-engagement family (follow, post_reaction for paid likes, comment, share). Follow is how FOLLOWERS-goal campaigns report their result.
|
|
3551
3563
|
* - TikTok website (pixel) events: complete_payment (website purchase, counted in `conversions` by SHOPPING-optimised campaigns), place_order, initiate_checkout, add_to_cart, view_content, lead (website form submissions plus TikTok instant-form leads).
|
|
3552
3564
|
* - TikTok place_order is Place an Order, the website purchase of pixels set up with the legacy ON_WEB_ORDER event. It is absent from days synced before this metric was added until the ad is re-synced.
|
|
@@ -18747,7 +18759,6 @@ type current = 'active' | 'restricted' | 'disabled' | 'closed';
|
|
|
18747
18759
|
*
|
|
18748
18760
|
* - Meta `WITH_ISSUES` (payment, policy and account problems)
|
|
18749
18761
|
* - TikTok account punishment or missing balance
|
|
18750
|
-
* - LinkedIn removals
|
|
18751
18762
|
* - any platform status Zernio does not recognize yet (check `issue.raw`)
|
|
18752
18763
|
*
|
|
18753
18764
|
* Ads seen for the first time by a sync never fire it.
|
|
@@ -18809,14 +18820,18 @@ type event9 = 'ad.delivery_issue';
|
|
|
18809
18820
|
*/
|
|
18810
18821
|
type level4 = 'AD';
|
|
18811
18822
|
/**
|
|
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).
|
|
18823
|
+
* 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
18824
|
*
|
|
18814
18825
|
* Fires when an ad Zernio already tracked changes review outcome:
|
|
18815
18826
|
*
|
|
18816
18827
|
* - `approved`: it leaves review as deliverable, or a rejection is overturned.
|
|
18817
18828
|
* - `rejected`: the platform rejects it.
|
|
18818
18829
|
*
|
|
18819
|
-
* Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
|
|
18830
|
+
* Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
|
|
18831
|
+
*
|
|
18832
|
+
* 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`.
|
|
18833
|
+
*
|
|
18834
|
+
* On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event.
|
|
18820
18835
|
*
|
|
18821
18836
|
* 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
18837
|
*
|
|
@@ -18859,7 +18874,7 @@ type WebhookPayloadAdReview = {
|
|
|
18859
18874
|
*/
|
|
18860
18875
|
raw: string;
|
|
18861
18876
|
/**
|
|
18862
|
-
* Why the platform rejected the ad, when it says. Always empty on `approved`.
|
|
18877
|
+
* 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
18878
|
*/
|
|
18864
18879
|
reasons: Array<{
|
|
18865
18880
|
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.
|
|
39
|
+
version: "0.2.1444",
|
|
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.1444",
|
|
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
|
@@ -1065,6 +1065,15 @@ export type AdFunnelCounts = {
|
|
|
1065
1065
|
* Messaging threads where the person sent a first reply.
|
|
1066
1066
|
*/
|
|
1067
1067
|
messagingFirstReplies?: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* Booked appointments (Meta `Schedule` pixel event). Pair with `spend` for cost per booked meeting.
|
|
1070
|
+
*
|
|
1071
|
+
* **Meta** reports Schedule in its `conversions` insight field, never in `actions`. This takes the FIRST present of `offsite_conversion.fb_pixel_schedule`, `omni_schedule`, `app_custom_event.fb_mobile_schedule`, `onsite_conversion.schedule`, `schedule`, `schedule_total`, `schedule_mobile_app`, `schedule_website`, `schedule_offline`. With none of those, a single `offsite_schedule_add_<dataset>` key counts. Two such keys (two datasets) leave it at 0, since one booking can reach both.
|
|
1072
|
+
*
|
|
1073
|
+
* Added 2026-11-03. Days synced before then read 0 until re-fetched: each sync restates the last 30 days.
|
|
1074
|
+
*
|
|
1075
|
+
*/
|
|
1076
|
+
schedules?: number;
|
|
1068
1077
|
};
|
|
1069
1078
|
|
|
1070
1079
|
export type AdKeyword = {
|
|
@@ -1319,6 +1328,9 @@ export type AdMetrics = {
|
|
|
1319
1328
|
* Per-action-type counts summed over the date range, keyed by the platform's action-type names. Keys differ by platform, so branch on the ad's platform when interpreting them. Empty object when no actions are reported.
|
|
1320
1329
|
*
|
|
1321
1330
|
* - Meta: raw Insights action_type keys (link_click, offsite_conversion.fb_pixel_purchase, onsite_conversion.lead_grouped, ...), covering both engagement and conversion events.
|
|
1331
|
+
* - Meta newer standard events (Schedule, SubmitApplication, Contact, StartTrial, Subscribe and the like) come only from Meta's `conversions` insight field, under keys such as schedule_total, schedule_website or offsite_schedule_add_<dataset>.
|
|
1332
|
+
* - Since 2026-11-03 every `conversions` key that `actions` lacks is added here, rounded per key, and its `conversion_values` value to `actionValues`. A key both fields report keeps its `actions` value.
|
|
1333
|
+
* - Days synced before 2026-11-03 lack those keys until re-fetched. Each sync restates the last 30 days.
|
|
1322
1334
|
* - TikTok: conversion events plus the paid-engagement family (follow, post_reaction for paid likes, comment, share). Follow is how FOLLOWERS-goal campaigns report their result.
|
|
1323
1335
|
* - TikTok website (pixel) events: complete_payment (website purchase, counted in `conversions` by SHOPPING-optimised campaigns), place_order, initiate_checkout, add_to_cart, view_content, lead (website form submissions plus TikTok instant-form leads).
|
|
1324
1336
|
* - TikTok place_order is Place an Order, the website purchase of pixels set up with the legacy ON_WEB_ORDER event. It is absent from days synced before this metric was added until the ad is re-synced.
|
|
@@ -17224,7 +17236,6 @@ export type current = 'active' | 'restricted' | 'disabled' | 'closed';
|
|
|
17224
17236
|
*
|
|
17225
17237
|
* - Meta `WITH_ISSUES` (payment, policy and account problems)
|
|
17226
17238
|
* - TikTok account punishment or missing balance
|
|
17227
|
-
* - LinkedIn removals
|
|
17228
17239
|
* - any platform status Zernio does not recognize yet (check `issue.raw`)
|
|
17229
17240
|
*
|
|
17230
17241
|
* Ads seen for the first time by a sync never fire it.
|
|
@@ -17289,14 +17300,18 @@ export type event9 = 'ad.delivery_issue';
|
|
|
17289
17300
|
export type level4 = 'AD';
|
|
17290
17301
|
|
|
17291
17302
|
/**
|
|
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).
|
|
17303
|
+
* 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
17304
|
*
|
|
17294
17305
|
* Fires when an ad Zernio already tracked changes review outcome:
|
|
17295
17306
|
*
|
|
17296
17307
|
* - `approved`: it leaves review as deliverable, or a rejection is overturned.
|
|
17297
17308
|
* - `rejected`: the platform rejects it.
|
|
17298
17309
|
*
|
|
17299
|
-
* Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
|
|
17310
|
+
* Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it.
|
|
17311
|
+
*
|
|
17312
|
+
* 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`.
|
|
17313
|
+
*
|
|
17314
|
+
* On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event.
|
|
17300
17315
|
*
|
|
17301
17316
|
* 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
17317
|
*
|
|
@@ -17339,7 +17354,7 @@ export type WebhookPayloadAdReview = {
|
|
|
17339
17354
|
*/
|
|
17340
17355
|
raw: string;
|
|
17341
17356
|
/**
|
|
17342
|
-
* Why the platform rejected the ad, when it says. Always empty on `approved`.
|
|
17357
|
+
* 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
17358
|
*/
|
|
17344
17359
|
reasons: Array<{
|
|
17345
17360
|
message: string;
|