@getlatedev/node 0.2.1333 → 0.2.1334
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 +36 -2
- package/dist/index.d.ts +36 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +37 -1
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.1334",
|
|
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.1334",
|
|
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
|
@@ -516,6 +516,7 @@ export type Ad = {
|
|
|
516
516
|
* Explicit E.164 WhatsApp number supplied when creating a Meta boost or messaging ad. Absent when omitted by the caller or on older records.
|
|
517
517
|
*/
|
|
518
518
|
whatsappPhoneNumber?: string;
|
|
519
|
+
instagramVideoFallback?: InstagramVideoFallback;
|
|
519
520
|
pinterestImageUrl?: string;
|
|
520
521
|
pinterestTitle?: string;
|
|
521
522
|
pinterestDescription?: string;
|
|
@@ -9308,6 +9309,32 @@ export type InstagramTaggedMedia = {
|
|
|
9308
9309
|
commentsCount: (number) | null;
|
|
9309
9310
|
};
|
|
9310
9311
|
|
|
9312
|
+
/**
|
|
9313
|
+
* Meta only. Present when Meta refused an existing Instagram video as the boosted ad (code 100, subcode 1815279: upload it to Facebook first) and Zernio created the ad another way. `instagram_video_reuploaded`: the video was copied into the ad account and the ad still references the original post. `instagram_video_rehosted_copy`: the video was uploaded as a new Facebook video in a new Page post, so the ad does not show the original post's likes and comments. Send `rehostOnInstagramVideoRejection: false` on the boost to get Meta's error instead.
|
|
9314
|
+
*/
|
|
9315
|
+
export type InstagramVideoFallback = {
|
|
9316
|
+
kind: 'instagram_video_reuploaded' | 'instagram_video_rehosted_copy';
|
|
9317
|
+
/**
|
|
9318
|
+
* True when the ad still references the original Instagram post and keeps its engagement.
|
|
9319
|
+
*/
|
|
9320
|
+
linkedToOriginalPost: boolean;
|
|
9321
|
+
/**
|
|
9322
|
+
* The Facebook-side ad video Zernio made. With instagram_video_reuploaded it is the copy in the ad account video library (possibly one made by an earlier boost of the same media, reused); the creative carries it as video_id unless Meta accepted the plain post reference once the copy existed, in which case the copy is kept for that reference. With instagram_video_rehosted_copy it is the new upload the creative uses (an unused copy made by this request is deleted).
|
|
9323
|
+
*/
|
|
9324
|
+
videoId: string;
|
|
9325
|
+
/**
|
|
9326
|
+
* Meta's original refusal.
|
|
9327
|
+
*/
|
|
9328
|
+
platformError: {
|
|
9329
|
+
code?: number;
|
|
9330
|
+
subcode?: number;
|
|
9331
|
+
message: string;
|
|
9332
|
+
fbtraceId?: string;
|
|
9333
|
+
};
|
|
9334
|
+
};
|
|
9335
|
+
|
|
9336
|
+
export type kind2 = 'instagram_video_reuploaded' | 'instagram_video_rehosted_copy';
|
|
9337
|
+
|
|
9311
9338
|
/**
|
|
9312
9339
|
* A Google Search keyword: a bare string (BROAD match), or an object naming the match type.
|
|
9313
9340
|
*/
|
|
@@ -13167,7 +13194,7 @@ export type platform14 = 'metaads' | 'openaiads' | 'tiktokads' | 'googleads' | '
|
|
|
13167
13194
|
/**
|
|
13168
13195
|
* Platform-native flavor of the tag (Meta: `pixel`).
|
|
13169
13196
|
*/
|
|
13170
|
-
export type
|
|
13197
|
+
export type kind3 = 'pixel' | 'tag' | 'insight_tag';
|
|
13171
13198
|
|
|
13172
13199
|
/**
|
|
13173
13200
|
* One health check the platform runs on a tracking tag.
|
|
@@ -51501,6 +51528,10 @@ export type BoostPostData = {
|
|
|
51501
51528
|
* Meta only. Extra primary-text options Meta rotates on the boosted post (asset_feed_spec.bodies with DEGREES_OF_FREEDOM); the post keeps its own text as one of the options. Works for Facebook posts and Instagram media. Under a conversions or traffic goal Meta also wants a website URL on the options, taken from `linkUrl` (send it with a `callToAction`); engagement boosts need none.
|
|
51502
51529
|
*/
|
|
51503
51530
|
bodies?: Array<(string)>;
|
|
51531
|
+
/**
|
|
51532
|
+
* Meta only (a 400 elsewhere). When Meta refuses an existing Instagram video as the ad (subcode 1815279), Zernio first copies the video into the ad account and retries on the original post, then falls back to a new Facebook video in a new Page post that does not show the original post's likes and comments; the response reports which in `instagramVideoFallback`. Messaging boosts never use the unlinked copy. `false` skips every fallback and returns Meta's error.
|
|
51533
|
+
*/
|
|
51534
|
+
rehostOnInstagramVideoRejection?: boolean;
|
|
51504
51535
|
/**
|
|
51505
51536
|
* TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
|
|
51506
51537
|
* TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
|
|
@@ -51564,6 +51595,11 @@ export type BoostPostData = {
|
|
|
51564
51595
|
export type BoostPostResponse = ({
|
|
51565
51596
|
ad?: Ad;
|
|
51566
51597
|
message?: string;
|
|
51598
|
+
instagramVideoFallback?: InstagramVideoFallback;
|
|
51599
|
+
/**
|
|
51600
|
+
* Present with instagramVideoFallback: one human-readable line saying how the Instagram video was boosted.
|
|
51601
|
+
*/
|
|
51602
|
+
warnings?: Array<(string)>;
|
|
51567
51603
|
});
|
|
51568
51604
|
|
|
51569
51605
|
export type BoostPostError = (unknown | ErrorResponse);
|