@getlatedev/node 0.2.451 → 0.2.453
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 +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -4195,7 +4195,7 @@ type LinkedInAdsPlatformData = {
|
|
|
4195
4195
|
*/
|
|
4196
4196
|
thoughtLeader?: {
|
|
4197
4197
|
/**
|
|
4198
|
-
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id).
|
|
4198
|
+
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id). For member (personal profile) posts, LinkedIn's API only accepts video and document posts (ugcPost URNs); text and image member posts (share URNs) are rejected by LinkedIn regardless of sponsorship approval (a LinkedIn API limitation; those can only be sponsored from Campaign Manager). The member must have authorised sponsorship for the ad account's organization.
|
|
4199
4199
|
*
|
|
4200
4200
|
*/
|
|
4201
4201
|
postUrn: string;
|
|
@@ -7711,7 +7711,7 @@ type status14 = 'pending' | 'active';
|
|
|
7711
7711
|
type WhatsAppTemplateButton = {
|
|
7712
7712
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
7713
7713
|
/**
|
|
7714
|
-
* Visible button label. Required for all types except copy_code (whose label is fixed by WhatsApp).
|
|
7714
|
+
* Visible button label. Required for all types except copy_code (whose label is fixed by WhatsApp) and otp (omit it and WhatsApp supplies its own label, localized to the template language; an English label on a non-English template is rejected).
|
|
7715
7715
|
*/
|
|
7716
7716
|
text?: string;
|
|
7717
7717
|
/**
|
|
@@ -26688,7 +26688,7 @@ type CreateStandaloneAdData = {
|
|
|
26688
26688
|
callToAction: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE' | 'ADD_TO_CART' | 'APPLY_NOW' | 'BOOK_NOW' | 'BUY_TICKETS' | 'DONATE' | 'DONATE_NOW' | 'GET_DIRECTIONS' | 'GET_SHOWTIMES' | 'LISTEN_NOW' | 'ORDER_NOW' | 'PLAY_GAME' | 'REQUEST_TIME' | 'SEE_MENU' | 'START_ORDER' | 'INSTALL_MOBILE_APP' | 'USE_APP';
|
|
26689
26689
|
}>;
|
|
26690
26690
|
/**
|
|
26691
|
-
*
|
|
26691
|
+
* When present, switches to the attach shape: adds
|
|
26692
26692
|
* one new ad to this existing ad set without creating a new
|
|
26693
26693
|
* campaign. Budget, targeting, goal, schedule, AND bid strategy
|
|
26694
26694
|
* are inherited from the ad set on Meta — passing `bidStrategy`
|
package/dist/index.d.ts
CHANGED
|
@@ -4195,7 +4195,7 @@ type LinkedInAdsPlatformData = {
|
|
|
4195
4195
|
*/
|
|
4196
4196
|
thoughtLeader?: {
|
|
4197
4197
|
/**
|
|
4198
|
-
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id).
|
|
4198
|
+
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id). For member (personal profile) posts, LinkedIn's API only accepts video and document posts (ugcPost URNs); text and image member posts (share URNs) are rejected by LinkedIn regardless of sponsorship approval (a LinkedIn API limitation; those can only be sponsored from Campaign Manager). The member must have authorised sponsorship for the ad account's organization.
|
|
4199
4199
|
*
|
|
4200
4200
|
*/
|
|
4201
4201
|
postUrn: string;
|
|
@@ -7711,7 +7711,7 @@ type status14 = 'pending' | 'active';
|
|
|
7711
7711
|
type WhatsAppTemplateButton = {
|
|
7712
7712
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
7713
7713
|
/**
|
|
7714
|
-
* Visible button label. Required for all types except copy_code (whose label is fixed by WhatsApp).
|
|
7714
|
+
* Visible button label. Required for all types except copy_code (whose label is fixed by WhatsApp) and otp (omit it and WhatsApp supplies its own label, localized to the template language; an English label on a non-English template is rejected).
|
|
7715
7715
|
*/
|
|
7716
7716
|
text?: string;
|
|
7717
7717
|
/**
|
|
@@ -26688,7 +26688,7 @@ type CreateStandaloneAdData = {
|
|
|
26688
26688
|
callToAction: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE' | 'ADD_TO_CART' | 'APPLY_NOW' | 'BOOK_NOW' | 'BUY_TICKETS' | 'DONATE' | 'DONATE_NOW' | 'GET_DIRECTIONS' | 'GET_SHOWTIMES' | 'LISTEN_NOW' | 'ORDER_NOW' | 'PLAY_GAME' | 'REQUEST_TIME' | 'SEE_MENU' | 'START_ORDER' | 'INSTALL_MOBILE_APP' | 'USE_APP';
|
|
26689
26689
|
}>;
|
|
26690
26690
|
/**
|
|
26691
|
-
*
|
|
26691
|
+
* When present, switches to the attach shape: adds
|
|
26692
26692
|
* one new ad to this existing ad set without creating a new
|
|
26693
26693
|
* campaign. Budget, targeting, goal, schedule, AND bid strategy
|
|
26694
26694
|
* are inherited from the ad set on Meta — passing `bidStrategy`
|
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.453",
|
|
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.453",
|
|
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
|
@@ -7417,7 +7417,7 @@ export const boostPost = <ThrowOnError extends boolean = false>(options: Options
|
|
|
7417
7417
|
|
|
7418
7418
|
/**
|
|
7419
7419
|
* Create standalone ad
|
|
7420
|
-
* Creates a paid ad with custom creative across Meta, Google Ads, Pinterest, TikTok, X/Twitter, LinkedIn, and OpenAI Ads (ChatGPT Ads). Supports three mutually-exclusive request shapes selected by the body, a legacy single-creative shape (all platforms, default), a Meta-only multi-creative shape via the creatives array (one ad set with N ads sharing budget and targeting), and
|
|
7420
|
+
* Creates a paid ad with custom creative across Meta, Google Ads, Pinterest, TikTok, X/Twitter, LinkedIn, and OpenAI Ads (ChatGPT Ads). Supports three mutually-exclusive request shapes selected by the body, a legacy single-creative shape (all platforms, default), a Meta-only multi-creative shape via the creatives array (one ad set with N ads sharing budget and targeting), and an attach shape via adSetId that adds one new ad to an existing ad set, inheriting its budget, targeting, and schedule (Meta, TikTok, and LinkedIn; on LinkedIn adSetId is the existing Campaign id, and the budget, schedule, targeting and bidding fields must be omitted). Per-platform required fields, budget minimums, and video-ad rules are documented on each property below. LinkedIn creates a Single Image or Single Video Ad backed by a Direct Sponsored Content "dark post" authored by a Company Page (see `organizationId`); supported goals are engagement, traffic, awareness, and video_views (video ads use the `video` field; video_views requires a video), and traffic ads require `linkUrl`.
|
|
7421
7421
|
*
|
|
7422
7422
|
* **Idempotency:** this endpoint is not idempotent at the platform level (a blind retry creates a second campaign/ad set/ad). Send an `Idempotency-Key` header to make retries safe: the first request with a given key creates the ad and we store the response; a retry with the same key replays that exact response (with `Idempotent-Replayed: true`) instead of creating duplicates. Reusing a key with a different body returns 422; a key whose first request is still in flight returns 409 (retry after a short backoff). Keys are scoped to your credential and expire after 24h.
|
|
7423
7423
|
*/
|
|
@@ -3118,7 +3118,7 @@ export type LinkedInAdsPlatformData = {
|
|
|
3118
3118
|
*/
|
|
3119
3119
|
thoughtLeader?: {
|
|
3120
3120
|
/**
|
|
3121
|
-
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id).
|
|
3121
|
+
* LinkedIn share or ugcPost URN, urn:li:share:N or urn:li:ugcPost:N. Get it via "Copy link to post" on the target LinkedIn post (the URL contains -share- for a share or -ugcPost- for a ugcPost, then the numeric id). For member (personal profile) posts, LinkedIn's API only accepts video and document posts (ugcPost URNs); text and image member posts (share URNs) are rejected by LinkedIn regardless of sponsorship approval (a LinkedIn API limitation; those can only be sponsored from Campaign Manager). The member must have authorised sponsorship for the ad account's organization.
|
|
3122
3122
|
*
|
|
3123
3123
|
*/
|
|
3124
3124
|
postUrn: string;
|
|
@@ -6801,7 +6801,7 @@ export type status14 = 'pending' | 'active';
|
|
|
6801
6801
|
export type WhatsAppTemplateButton = {
|
|
6802
6802
|
type: 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
|
|
6803
6803
|
/**
|
|
6804
|
-
* Visible button label. Required for all types except copy_code (whose label is fixed by WhatsApp).
|
|
6804
|
+
* Visible button label. Required for all types except copy_code (whose label is fixed by WhatsApp) and otp (omit it and WhatsApp supplies its own label, localized to the template language; an English label on a non-English template is rejected).
|
|
6805
6805
|
*/
|
|
6806
6806
|
text?: string;
|
|
6807
6807
|
/**
|
|
@@ -27208,7 +27208,7 @@ export type CreateStandaloneAdData = {
|
|
|
27208
27208
|
callToAction: 'LEARN_MORE' | 'SHOP_NOW' | 'SIGN_UP' | 'BOOK_TRAVEL' | 'CONTACT_US' | 'DOWNLOAD' | 'GET_OFFER' | 'GET_QUOTE' | 'SUBSCRIBE' | 'WATCH_MORE' | 'ADD_TO_CART' | 'APPLY_NOW' | 'BOOK_NOW' | 'BUY_TICKETS' | 'DONATE' | 'DONATE_NOW' | 'GET_DIRECTIONS' | 'GET_SHOWTIMES' | 'LISTEN_NOW' | 'ORDER_NOW' | 'PLAY_GAME' | 'REQUEST_TIME' | 'SEE_MENU' | 'START_ORDER' | 'INSTALL_MOBILE_APP' | 'USE_APP';
|
|
27209
27209
|
}>;
|
|
27210
27210
|
/**
|
|
27211
|
-
*
|
|
27211
|
+
* When present, switches to the attach shape: adds
|
|
27212
27212
|
* one new ad to this existing ad set without creating a new
|
|
27213
27213
|
* campaign. Budget, targeting, goal, schedule, AND bid strategy
|
|
27214
27214
|
* are inherited from the ad set on Meta — passing `bidStrategy`
|