@getlatedev/node 0.2.1193 → 0.2.1195
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 +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +18 -1
- package/src/generated/types.gen.ts +39 -2
package/dist/index.d.mts
CHANGED
|
@@ -11150,6 +11150,9 @@ type Post = {
|
|
|
11150
11150
|
*/
|
|
11151
11151
|
queueId?: string;
|
|
11152
11152
|
createdAt?: string;
|
|
11153
|
+
/**
|
|
11154
|
+
* Last change to the post or to any of its platforms (a publish, a failure, a resolved URL).
|
|
11155
|
+
*/
|
|
11153
11156
|
updatedAt?: string;
|
|
11154
11157
|
};
|
|
11155
11158
|
type visibility2 = 'public' | 'private' | 'unlisted';
|
|
@@ -14817,13 +14820,14 @@ type WebhookPayloadComment = {
|
|
|
14817
14820
|
* Facebook: populated from a Graph API lookup of the parent post. Present when the post is an
|
|
14818
14821
|
* ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was
|
|
14819
14822
|
* boosted (promotionStatus "active", "extendable" or "finished"). Meta does not link a dark post
|
|
14820
|
-
* back to its ad, so id
|
|
14823
|
+
* back to its ad, so on Facebook id is set only when exactly one ad on the Page, created before the
|
|
14824
|
+
* dark post, carries the same copy as the post. title is never set on Facebook.
|
|
14821
14825
|
* Absent for comments on organic posts that are not promoted.
|
|
14822
14826
|
*
|
|
14823
14827
|
*/
|
|
14824
14828
|
ad?: {
|
|
14825
14829
|
/**
|
|
14826
|
-
* Meta ad ID
|
|
14830
|
+
* Meta ad ID. Instagram: from the webhook. Facebook: only on a dark post matched to a single ad by its copy.
|
|
14827
14831
|
*/
|
|
14828
14832
|
id?: string;
|
|
14829
14833
|
/**
|
|
@@ -42493,6 +42497,39 @@ type GetAdResponse = ({
|
|
|
42493
42497
|
* Only with `live=true`. When the switches were read from the platform; null when the live read failed and the stored values were returned.
|
|
42494
42498
|
*/
|
|
42495
42499
|
statusReadAt?: (string) | null;
|
|
42500
|
+
/**
|
|
42501
|
+
* Only when `{adId}` is a Facebook ad dark post with no resolvable ad (then `ad` is null).
|
|
42502
|
+
*/
|
|
42503
|
+
darkPost?: {
|
|
42504
|
+
platform?: 'facebook';
|
|
42505
|
+
/**
|
|
42506
|
+
* The dark post id, `{pageId}_{postId}`.
|
|
42507
|
+
*/
|
|
42508
|
+
platformPostId?: string;
|
|
42509
|
+
pageId?: string;
|
|
42510
|
+
/**
|
|
42511
|
+
* Always true.
|
|
42512
|
+
*/
|
|
42513
|
+
isDarkPost?: boolean;
|
|
42514
|
+
/**
|
|
42515
|
+
* Always null: Meta exposes no link from a placement dark post to its ad.
|
|
42516
|
+
*/
|
|
42517
|
+
adId?: (string) | null;
|
|
42518
|
+
/**
|
|
42519
|
+
* Zernio Meta Ads account id for the Page, null when none is connected.
|
|
42520
|
+
*/
|
|
42521
|
+
accountId?: (string) | null;
|
|
42522
|
+
/**
|
|
42523
|
+
* Zernio Facebook account id of the Page.
|
|
42524
|
+
*/
|
|
42525
|
+
facebookAccountId?: string;
|
|
42526
|
+
/**
|
|
42527
|
+
* Meta ad accounts (`act_...`) with synced ads on this Page.
|
|
42528
|
+
*/
|
|
42529
|
+
platformAdAccountIds?: Array<(string)>;
|
|
42530
|
+
firstSeenAt?: string;
|
|
42531
|
+
lastActivityAt?: string;
|
|
42532
|
+
};
|
|
42496
42533
|
});
|
|
42497
42534
|
type GetAdError = (ErrorResponse | {
|
|
42498
42535
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -11150,6 +11150,9 @@ type Post = {
|
|
|
11150
11150
|
*/
|
|
11151
11151
|
queueId?: string;
|
|
11152
11152
|
createdAt?: string;
|
|
11153
|
+
/**
|
|
11154
|
+
* Last change to the post or to any of its platforms (a publish, a failure, a resolved URL).
|
|
11155
|
+
*/
|
|
11153
11156
|
updatedAt?: string;
|
|
11154
11157
|
};
|
|
11155
11158
|
type visibility2 = 'public' | 'private' | 'unlisted';
|
|
@@ -14817,13 +14820,14 @@ type WebhookPayloadComment = {
|
|
|
14817
14820
|
* Facebook: populated from a Graph API lookup of the parent post. Present when the post is an
|
|
14818
14821
|
* ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was
|
|
14819
14822
|
* boosted (promotionStatus "active", "extendable" or "finished"). Meta does not link a dark post
|
|
14820
|
-
* back to its ad, so id
|
|
14823
|
+
* back to its ad, so on Facebook id is set only when exactly one ad on the Page, created before the
|
|
14824
|
+
* dark post, carries the same copy as the post. title is never set on Facebook.
|
|
14821
14825
|
* Absent for comments on organic posts that are not promoted.
|
|
14822
14826
|
*
|
|
14823
14827
|
*/
|
|
14824
14828
|
ad?: {
|
|
14825
14829
|
/**
|
|
14826
|
-
* Meta ad ID
|
|
14830
|
+
* Meta ad ID. Instagram: from the webhook. Facebook: only on a dark post matched to a single ad by its copy.
|
|
14827
14831
|
*/
|
|
14828
14832
|
id?: string;
|
|
14829
14833
|
/**
|
|
@@ -42493,6 +42497,39 @@ type GetAdResponse = ({
|
|
|
42493
42497
|
* Only with `live=true`. When the switches were read from the platform; null when the live read failed and the stored values were returned.
|
|
42494
42498
|
*/
|
|
42495
42499
|
statusReadAt?: (string) | null;
|
|
42500
|
+
/**
|
|
42501
|
+
* Only when `{adId}` is a Facebook ad dark post with no resolvable ad (then `ad` is null).
|
|
42502
|
+
*/
|
|
42503
|
+
darkPost?: {
|
|
42504
|
+
platform?: 'facebook';
|
|
42505
|
+
/**
|
|
42506
|
+
* The dark post id, `{pageId}_{postId}`.
|
|
42507
|
+
*/
|
|
42508
|
+
platformPostId?: string;
|
|
42509
|
+
pageId?: string;
|
|
42510
|
+
/**
|
|
42511
|
+
* Always true.
|
|
42512
|
+
*/
|
|
42513
|
+
isDarkPost?: boolean;
|
|
42514
|
+
/**
|
|
42515
|
+
* Always null: Meta exposes no link from a placement dark post to its ad.
|
|
42516
|
+
*/
|
|
42517
|
+
adId?: (string) | null;
|
|
42518
|
+
/**
|
|
42519
|
+
* Zernio Meta Ads account id for the Page, null when none is connected.
|
|
42520
|
+
*/
|
|
42521
|
+
accountId?: (string) | null;
|
|
42522
|
+
/**
|
|
42523
|
+
* Zernio Facebook account id of the Page.
|
|
42524
|
+
*/
|
|
42525
|
+
facebookAccountId?: string;
|
|
42526
|
+
/**
|
|
42527
|
+
* Meta ad accounts (`act_...`) with synced ads on this Page.
|
|
42528
|
+
*/
|
|
42529
|
+
platformAdAccountIds?: Array<(string)>;
|
|
42530
|
+
firstSeenAt?: string;
|
|
42531
|
+
lastActivityAt?: string;
|
|
42532
|
+
};
|
|
42496
42533
|
});
|
|
42497
42534
|
type GetAdError = (ErrorResponse | {
|
|
42498
42535
|
error?: 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.1195",
|
|
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.1195",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -10643,10 +10643,21 @@ export const getAdsTimeline = <ThrowOnError extends boolean = false>(options: Op
|
|
|
10643
10643
|
* - the creative's `effective_object_story_id` (`{pageId}_{postId}` shape, Facebook side)
|
|
10644
10644
|
* - the creative's `effective_instagram_media_id` (Instagram side)
|
|
10645
10645
|
*
|
|
10646
|
-
*
|
|
10646
|
+
* - an Instagram media id an ad comment arrived on (`comment.platformPostId` of a `comment.received`
|
|
10647
|
+
* carrying `comment.ad.id`), including the extra media Meta creates for placement variants
|
|
10648
|
+
*
|
|
10649
|
+
* Any of these resolve to the same ad. Caller doesn't need a translation step.
|
|
10647
10650
|
* `creative.creativeFeatures` holds the stored requested settings, which do not confirm
|
|
10648
10651
|
* platform application.
|
|
10649
10652
|
*
|
|
10653
|
+
* **Facebook ad dark posts.** Meta gives an ad with per-placement assets one extra unpublished
|
|
10654
|
+
* post per placement, and comments land on it. Meta exposes no link from that post to its ad.
|
|
10655
|
+
* When exactly one ad on the Page, created before the dark post, carries the same copy as the
|
|
10656
|
+
* post, the dark post id resolves to that ad. Otherwise, when the id is a dark post Zernio has
|
|
10657
|
+
* seen comments on and its Page is connected, the response is `ad: null` plus `darkPost`, which
|
|
10658
|
+
* carries the Meta Ads account and the ad accounts running ads for that Page. Read its comments
|
|
10659
|
+
* with GET /v1/ads/{adId}/comments using the same id.
|
|
10660
|
+
*
|
|
10650
10661
|
* **Status freshness.** `status`, `configuredStatus`, `platformStatus`, `platformAdSetStatus`
|
|
10651
10662
|
* and `platformCampaignStatus` are the values Zernio last stored. Background sync refreshes
|
|
10652
10663
|
* them, typically within 15 to 60 minutes (Google up to about 3 hours), and ended or
|
|
@@ -11270,6 +11281,12 @@ export const updateAdTrackingTags = <ThrowOnError extends boolean = false>(optio
|
|
|
11270
11281
|
* identifiers are read from the ad record (persisted during sync) with a Marketing-API
|
|
11271
11282
|
* fallback for ads that predate the field.
|
|
11272
11283
|
*
|
|
11284
|
+
* Comments can land on extra posts Meta creates for placement variants, which the creative
|
|
11285
|
+
* does not report. On Instagram, every media a `comment.received` for this ad arrived on is
|
|
11286
|
+
* read too; on Facebook, every dark post matched to this ad by its copy. They are merged
|
|
11287
|
+
* newest first. With more than one post, `pagination.cursor` is a Zernio cursor covering all
|
|
11288
|
+
* of them: pass it back unchanged.
|
|
11289
|
+
*
|
|
11273
11290
|
* For Instagram-placed comments, the Instagram account that runs the ad must be connected
|
|
11274
11291
|
* to Zernio, because those comments are read through that account's token. If no connected
|
|
11275
11292
|
* Instagram account on the profile can read the ad's media, the call returns
|
|
@@ -9536,6 +9536,9 @@ export type Post = {
|
|
|
9536
9536
|
*/
|
|
9537
9537
|
queueId?: string;
|
|
9538
9538
|
createdAt?: string;
|
|
9539
|
+
/**
|
|
9540
|
+
* Last change to the post or to any of its platforms (a publish, a failure, a resolved URL).
|
|
9541
|
+
*/
|
|
9539
9542
|
updatedAt?: string;
|
|
9540
9543
|
};
|
|
9541
9544
|
|
|
@@ -13372,13 +13375,14 @@ export type WebhookPayloadComment = {
|
|
|
13372
13375
|
* Facebook: populated from a Graph API lookup of the parent post. Present when the post is an
|
|
13373
13376
|
* ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was
|
|
13374
13377
|
* boosted (promotionStatus "active", "extendable" or "finished"). Meta does not link a dark post
|
|
13375
|
-
* back to its ad, so id
|
|
13378
|
+
* back to its ad, so on Facebook id is set only when exactly one ad on the Page, created before the
|
|
13379
|
+
* dark post, carries the same copy as the post. title is never set on Facebook.
|
|
13376
13380
|
* Absent for comments on organic posts that are not promoted.
|
|
13377
13381
|
*
|
|
13378
13382
|
*/
|
|
13379
13383
|
ad?: {
|
|
13380
13384
|
/**
|
|
13381
|
-
* Meta ad ID
|
|
13385
|
+
* Meta ad ID. Instagram: from the webhook. Facebook: only on a dark post matched to a single ad by its copy.
|
|
13382
13386
|
*/
|
|
13383
13387
|
id?: string;
|
|
13384
13388
|
/**
|
|
@@ -42991,6 +42995,39 @@ export type GetAdResponse = ({
|
|
|
42991
42995
|
* Only with `live=true`. When the switches were read from the platform; null when the live read failed and the stored values were returned.
|
|
42992
42996
|
*/
|
|
42993
42997
|
statusReadAt?: (string) | null;
|
|
42998
|
+
/**
|
|
42999
|
+
* Only when `{adId}` is a Facebook ad dark post with no resolvable ad (then `ad` is null).
|
|
43000
|
+
*/
|
|
43001
|
+
darkPost?: {
|
|
43002
|
+
platform?: 'facebook';
|
|
43003
|
+
/**
|
|
43004
|
+
* The dark post id, `{pageId}_{postId}`.
|
|
43005
|
+
*/
|
|
43006
|
+
platformPostId?: string;
|
|
43007
|
+
pageId?: string;
|
|
43008
|
+
/**
|
|
43009
|
+
* Always true.
|
|
43010
|
+
*/
|
|
43011
|
+
isDarkPost?: boolean;
|
|
43012
|
+
/**
|
|
43013
|
+
* Always null: Meta exposes no link from a placement dark post to its ad.
|
|
43014
|
+
*/
|
|
43015
|
+
adId?: (string) | null;
|
|
43016
|
+
/**
|
|
43017
|
+
* Zernio Meta Ads account id for the Page, null when none is connected.
|
|
43018
|
+
*/
|
|
43019
|
+
accountId?: (string) | null;
|
|
43020
|
+
/**
|
|
43021
|
+
* Zernio Facebook account id of the Page.
|
|
43022
|
+
*/
|
|
43023
|
+
facebookAccountId?: string;
|
|
43024
|
+
/**
|
|
43025
|
+
* Meta ad accounts (`act_...`) with synced ads on this Page.
|
|
43026
|
+
*/
|
|
43027
|
+
platformAdAccountIds?: Array<(string)>;
|
|
43028
|
+
firstSeenAt?: string;
|
|
43029
|
+
lastActivityAt?: string;
|
|
43030
|
+
};
|
|
42994
43031
|
});
|
|
42995
43032
|
|
|
42996
43033
|
export type GetAdError = (ErrorResponse | {
|