@getlatedev/node 0.2.564 → 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
  */
@@ -31199,7 +31199,7 @@ type SearchAdTargetingResponse = ({
31199
31199
  */
31200
31200
  name: string;
31201
31201
  /**
31202
- * What the result is (e.g. city, region, country, zip, metro, interest, behavior, income).
31202
+ * What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income).
31203
31203
  */
31204
31204
  type: string;
31205
31205
  /**
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
  */
@@ -31199,7 +31199,7 @@ type SearchAdTargetingResponse = ({
31199
31199
  */
31200
31200
  name: string;
31201
31201
  /**
31202
- * What the result is (e.g. city, region, country, zip, metro, interest, behavior, income).
31202
+ * What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income).
31203
31203
  */
31204
31204
  type: string;
31205
31205
  /**
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.564",
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.564",
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.564",
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",
@@ -8309,6 +8309,28 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
8309
8309
  * markets, and every id is usable in `regions`/`cities`/`metros` keys on
8310
8310
  * `POST /v1/ads/create`.
8311
8311
  *
8312
+ * LinkedIn geo searches also return every matching level in one list, and
8313
+ * neither `geoType` nor `countryCode` is applied: LinkedIn's typeahead only
8314
+ * returns a name and a URN per result, with no level or country field to
8315
+ * filter on. Every result has `type` set to `location`, and its id is a
8316
+ * `urn:li:geo:*` URN usable as a `regions[].key` on `POST /v1/ads/create`,
8317
+ * `POST /v1/ads/boost` and `POST /v1/ads/targeting/reach-estimate`.
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
+ *
8312
8334
  * For geo queries, `q` should contain only the locality name (e.g. `"Amsterdam"`,
8313
8335
  * not `"Amsterdam, NL"`). Use `countryCode` to disambiguate.
8314
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
  */
@@ -31759,7 +31759,7 @@ export type SearchAdTargetingResponse = ({
31759
31759
  */
31760
31760
  name: string;
31761
31761
  /**
31762
- * What the result is (e.g. city, region, country, zip, metro, interest, behavior, income).
31762
+ * What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income).
31763
31763
  */
31764
31764
  type: string;
31765
31765
  /**