@getlatedev/node 0.2.565 → 0.2.566

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
@@ -31175,9 +31175,9 @@ type SearchAdTargetingData = {
31175
31175
  */
31176
31176
  dimension?: 'geo' | 'interest' | 'behavior' | 'income';
31177
31177
  /**
31178
- * Only used when `dimension=geo`. The kind of location to resolve. Defaults to `city`.
31178
+ * Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
31179
31179
  */
31180
- geoType?: 'country' | 'region' | 'city' | 'zip' | 'metro';
31180
+ geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
31181
31181
  /**
31182
31182
  * Maximum results to return.
31183
31183
  */
package/dist/index.d.ts CHANGED
@@ -31175,9 +31175,9 @@ type SearchAdTargetingData = {
31175
31175
  */
31176
31176
  dimension?: 'geo' | 'interest' | 'behavior' | 'income';
31177
31177
  /**
31178
- * Only used when `dimension=geo`. The kind of location to resolve. Defaults to `city`.
31178
+ * Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
31179
31179
  */
31180
- geoType?: 'country' | 'region' | 'city' | 'zip' | 'metro';
31180
+ geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
31181
31181
  /**
31182
31182
  * Maximum results to return.
31183
31183
  */
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.566",
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.566",
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.566",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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
  *
@@ -31734,9 +31734,9 @@ export type SearchAdTargetingData = {
31734
31734
  */
31735
31735
  dimension?: 'geo' | 'interest' | 'behavior' | 'income';
31736
31736
  /**
31737
- * Only used when `dimension=geo`. The kind of location to resolve. Defaults to `city`.
31737
+ * Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
31738
31738
  */
31739
- geoType?: 'country' | 'region' | 'city' | 'zip' | 'metro';
31739
+ geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
31740
31740
  /**
31741
31741
  * Maximum results to return.
31742
31742
  */