@getlatedev/node 0.2.565 → 0.2.567

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 CHANGED
@@ -5326,7 +5326,7 @@ type LinkedInPlatformData = {
5326
5326
  */
5327
5327
  disableLinkPreview?: boolean;
5328
5328
  /**
5329
- * LinkedIn post link to repost (use the post's "Copy link to post" action), or a urn:li:share / urn:li:ugcPost / urn:li:groupPost URN. The published post becomes a quote-reshare: your content is shown as the commentary and the original post is embedded underneath (LinkedIn's "repost with your thoughts"). Mutually exclusive with media. Works on personal profiles and organization pages.
5329
+ * LinkedIn post link to repost (use the post's "Copy link to post" action), or a urn:li:share / urn:li:ugcPost / urn:li:groupPost URN. With content, the published post is a quote-reshare: your text is the commentary and the original is embedded underneath (LinkedIn's "repost with your thoughts"). Leave content empty (and omit customContent) to publish a plain repost with no text, LinkedIn's one-click "Repost". Mutually exclusive with media. Works on personal profiles and organization pages.
5330
5330
  */
5331
5331
  reshareUrl?: string;
5332
5332
  geoRestriction?: GeoRestriction;
@@ -9200,6 +9200,10 @@ type WorkflowNode = {
9200
9200
  x?: number;
9201
9201
  y?: number;
9202
9202
  };
9203
+ /**
9204
+ * Optional display name shown on the builder canvas and inspector, falling back to the node type when absent. The nodes array is replaced wholesale on update, so it must be resent to be kept.
9205
+ */
9206
+ label?: string;
9203
9207
  };
9204
9208
  /**
9205
9209
  * Node kind. The 16 supported types break into four groups:
@@ -11256,7 +11260,7 @@ type CreatePostData = {
11256
11260
  body: {
11257
11261
  title?: string;
11258
11262
  /**
11259
- * Post caption/text. Optional when media is attached or all platforms have customContent. Required for text-only posts.
11263
+ * Post caption/text. Optional when media is attached, all platforms have customContent, or every platform entry is a LinkedIn plain repost (platformSpecificData.reshareUrl with no text). Required for text-only posts.
11260
11264
  */
11261
11265
  content?: string;
11262
11266
  mediaItems?: Array<MediaItem>;
@@ -31175,9 +31179,9 @@ type SearchAdTargetingData = {
31175
31179
  */
31176
31180
  dimension?: 'geo' | 'interest' | 'behavior' | 'income';
31177
31181
  /**
31178
- * Only used when `dimension=geo`. The kind of location to resolve. Defaults to `city`.
31182
+ * Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
31179
31183
  */
31180
- geoType?: 'country' | 'region' | 'city' | 'zip' | 'metro';
31184
+ geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
31181
31185
  /**
31182
31186
  * Maximum results to return.
31183
31187
  */
package/dist/index.d.ts CHANGED
@@ -5326,7 +5326,7 @@ type LinkedInPlatformData = {
5326
5326
  */
5327
5327
  disableLinkPreview?: boolean;
5328
5328
  /**
5329
- * LinkedIn post link to repost (use the post's "Copy link to post" action), or a urn:li:share / urn:li:ugcPost / urn:li:groupPost URN. The published post becomes a quote-reshare: your content is shown as the commentary and the original post is embedded underneath (LinkedIn's "repost with your thoughts"). Mutually exclusive with media. Works on personal profiles and organization pages.
5329
+ * LinkedIn post link to repost (use the post's "Copy link to post" action), or a urn:li:share / urn:li:ugcPost / urn:li:groupPost URN. With content, the published post is a quote-reshare: your text is the commentary and the original is embedded underneath (LinkedIn's "repost with your thoughts"). Leave content empty (and omit customContent) to publish a plain repost with no text, LinkedIn's one-click "Repost". Mutually exclusive with media. Works on personal profiles and organization pages.
5330
5330
  */
5331
5331
  reshareUrl?: string;
5332
5332
  geoRestriction?: GeoRestriction;
@@ -9200,6 +9200,10 @@ type WorkflowNode = {
9200
9200
  x?: number;
9201
9201
  y?: number;
9202
9202
  };
9203
+ /**
9204
+ * Optional display name shown on the builder canvas and inspector, falling back to the node type when absent. The nodes array is replaced wholesale on update, so it must be resent to be kept.
9205
+ */
9206
+ label?: string;
9203
9207
  };
9204
9208
  /**
9205
9209
  * Node kind. The 16 supported types break into four groups:
@@ -11256,7 +11260,7 @@ type CreatePostData = {
11256
11260
  body: {
11257
11261
  title?: string;
11258
11262
  /**
11259
- * Post caption/text. Optional when media is attached or all platforms have customContent. Required for text-only posts.
11263
+ * Post caption/text. Optional when media is attached, all platforms have customContent, or every platform entry is a LinkedIn plain repost (platformSpecificData.reshareUrl with no text). Required for text-only posts.
11260
11264
  */
11261
11265
  content?: string;
11262
11266
  mediaItems?: Array<MediaItem>;
@@ -31175,9 +31179,9 @@ type SearchAdTargetingData = {
31175
31179
  */
31176
31180
  dimension?: 'geo' | 'interest' | 'behavior' | 'income';
31177
31181
  /**
31178
- * Only used when `dimension=geo`. The kind of location to resolve. Defaults to `city`.
31182
+ * Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
31179
31183
  */
31180
- geoType?: 'country' | 'region' | 'city' | 'zip' | 'metro';
31184
+ geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
31181
31185
  /**
31182
31186
  * Maximum results to return.
31183
31187
  */
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.565",
39
+ version: "0.2.567",
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.565",
8
+ version: "0.2.567",
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.565",
3
+ "version": "0.2.567",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -791,7 +791,7 @@ export const listPosts = <ThrowOnError extends boolean = false>(options?: Option
791
791
  /**
792
792
  * Create post
793
793
  * Create and optionally publish a post. Immediate posts (`publishNow: true`) include `platformPostUrl` in the response.
794
- * Content is optional when media is attached or all platforms have `customContent`. See each platform's schema for media constraints.
794
+ * Content is optional when media is attached, all platforms have `customContent`, or every platform entry is a LinkedIn plain repost (`platformSpecificData.reshareUrl` with no text). See each platform's schema for media constraints.
795
795
  *
796
796
  * ## Idempotency
797
797
  *
@@ -8316,6 +8316,21 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
8316
8316
  * `urn:li:geo:*` URN usable as a `regions[].key` on `POST /v1/ads/create`,
8317
8317
  * `POST /v1/ads/boost` and `POST /v1/ads/targeting/reach-estimate`.
8318
8318
  *
8319
+ * Pinterest resolves against three whole-catalog endpoints (interests, locations,
8320
+ * regions) with no server-side query or pagination, so matching, ranking and the
8321
+ * `limit` cutoff all happen in Zernio; the catalog is independent of any ad account
8322
+ * and results never carry `audienceSize`. Names come back localized to the connected
8323
+ * Pinterest account's language (there is no way to force a locale), so match against
8324
+ * whatever language that account returns. `geoType` routes to a different catalog:
8325
+ * `country` and `metro_area` read the locations catalog (`type` is `country` or
8326
+ * `metro`); `region` reads the regions catalog (`type` is `region`, its id a
8327
+ * `regions[].key` on `POST /v1/ads/create`); `all` and the default `city` merge both
8328
+ * catalogs with honest per-entry `type`s, since Pinterest has no city-level catalog
8329
+ * and `city` is an alias for `all`, not a literal city search. `zip`, `subcity`,
8330
+ * `neighborhood`, `place` and `geo_market` return a 400: Pinterest exposes no
8331
+ * postal-code catalog, pass postal codes directly as `targeting.zips: [{ key }]` on
8332
+ * `POST /v1/ads/create`.
8333
+ *
8319
8334
  * For geo queries, `q` should contain only the locality name (e.g. `"Amsterdam"`,
8320
8335
  * not `"Amsterdam, NL"`). Use `countryCode` to disambiguate.
8321
8336
  *
@@ -4171,7 +4171,7 @@ export type LinkedInPlatformData = {
4171
4171
  */
4172
4172
  disableLinkPreview?: boolean;
4173
4173
  /**
4174
- * LinkedIn post link to repost (use the post's "Copy link to post" action), or a urn:li:share / urn:li:ugcPost / urn:li:groupPost URN. The published post becomes a quote-reshare: your content is shown as the commentary and the original post is embedded underneath (LinkedIn's "repost with your thoughts"). Mutually exclusive with media. Works on personal profiles and organization pages.
4174
+ * LinkedIn post link to repost (use the post's "Copy link to post" action), or a urn:li:share / urn:li:ugcPost / urn:li:groupPost URN. With content, the published post is a quote-reshare: your text is the commentary and the original is embedded underneath (LinkedIn's "repost with your thoughts"). Leave content empty (and omit customContent) to publish a plain repost with no text, LinkedIn's one-click "Repost". Mutually exclusive with media. Works on personal profiles and organization pages.
4175
4175
  */
4176
4176
  reshareUrl?: string;
4177
4177
  geoRestriction?: GeoRestriction;
@@ -8222,6 +8222,10 @@ export type WorkflowNode = {
8222
8222
  x?: number;
8223
8223
  y?: number;
8224
8224
  };
8225
+ /**
8226
+ * Optional display name shown on the builder canvas and inspector, falling back to the node type when absent. The nodes array is replaced wholesale on update, so it must be resent to be kept.
8227
+ */
8228
+ label?: string;
8225
8229
  };
8226
8230
 
8227
8231
  /**
@@ -10416,7 +10420,7 @@ export type CreatePostData = {
10416
10420
  body: {
10417
10421
  title?: string;
10418
10422
  /**
10419
- * Post caption/text. Optional when media is attached or all platforms have customContent. Required for text-only posts.
10423
+ * Post caption/text. Optional when media is attached, all platforms have customContent, or every platform entry is a LinkedIn plain repost (platformSpecificData.reshareUrl with no text). Required for text-only posts.
10420
10424
  */
10421
10425
  content?: string;
10422
10426
  mediaItems?: Array<MediaItem>;
@@ -31734,9 +31738,9 @@ export type SearchAdTargetingData = {
31734
31738
  */
31735
31739
  dimension?: 'geo' | 'interest' | 'behavior' | 'income';
31736
31740
  /**
31737
- * Only used when `dimension=geo`. The kind of location to resolve. Defaults to `city`.
31741
+ * Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
31738
31742
  */
31739
- geoType?: 'country' | 'region' | 'city' | 'zip' | 'metro';
31743
+ geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
31740
31744
  /**
31741
31745
  * Maximum results to return.
31742
31746
  */