@getlatedev/node 0.2.452 → 0.2.454

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/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
 
14
14
  <p align="center">
15
- <strong>One API to post everywhere. 14 platforms, zero headaches.</strong>
15
+ <strong>One API to post everywhere. 16 platforms, zero headaches.</strong>
16
16
  </p>
17
17
 
18
18
  The official Node.js SDK for the [Zernio API](https://zernio.com) — schedule and publish social media posts across Instagram, TikTok, YouTube, LinkedIn, X/Twitter, Facebook, Pinterest, Threads, Bluesky, Reddit, Snapchat, Telegram, WhatsApp, and Google Business Profile with a single integration.
package/dist/index.d.mts CHANGED
@@ -2504,7 +2504,7 @@ type ConversionEvent = {
2504
2504
  */
2505
2505
  sourceUrl?: string;
2506
2506
  /**
2507
- * Where the conversion happened. Used by Meta; Google ignores.
2507
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
2508
2508
  */
2509
2509
  actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
2510
2510
  /**
@@ -2515,7 +2515,7 @@ type ConversionEvent = {
2515
2515
  };
2516
2516
  };
2517
2517
  /**
2518
- * Where the conversion happened. Used by Meta; Google ignores.
2518
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
2519
2519
  */
2520
2520
  type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
2521
2521
  /**
@@ -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;
@@ -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
- * Meta-only. When present, switches to the attach shape: adds
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
@@ -2504,7 +2504,7 @@ type ConversionEvent = {
2504
2504
  */
2505
2505
  sourceUrl?: string;
2506
2506
  /**
2507
- * Where the conversion happened. Used by Meta; Google ignores.
2507
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
2508
2508
  */
2509
2509
  actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
2510
2510
  /**
@@ -2515,7 +2515,7 @@ type ConversionEvent = {
2515
2515
  };
2516
2516
  };
2517
2517
  /**
2518
- * Where the conversion happened. Used by Meta; Google ignores.
2518
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
2519
2519
  */
2520
2520
  type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
2521
2521
  /**
@@ -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;
@@ -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
- * Meta-only. When present, switches to the attach shape: adds
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.452",
39
+ version: "0.2.454",
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.452",
8
+ version: "0.2.454",
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.452",
3
+ "version": "0.2.454",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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 a Meta-only attach shape via adSetId (adds one new ad to an existing ad set). 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`.
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
  */
@@ -1369,7 +1369,7 @@ export type ConversionEvent = {
1369
1369
  */
1370
1370
  sourceUrl?: string;
1371
1371
  /**
1372
- * Where the conversion happened. Used by Meta; Google ignores.
1372
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
1373
1373
  */
1374
1374
  actionSource?: 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
1375
1375
  /**
@@ -1381,7 +1381,7 @@ export type ConversionEvent = {
1381
1381
  };
1382
1382
 
1383
1383
  /**
1384
- * Where the conversion happened. Used by Meta; Google ignores.
1384
+ * Where the conversion happened. Used by Meta. Google also requires an event source internally; omitting this field sends OTHER to Google. Send an explicit value for accurate origin reporting.
1385
1385
  */
1386
1386
  export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 'system_generated';
1387
1387
 
@@ -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;
@@ -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
- * Meta-only. When present, switches to the attach shape: adds
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`