@getlatedev/node 0.2.1259 → 0.2.1260
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 +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +12 -0
- package/src/generated/types.gen.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -50647,6 +50647,10 @@ type SearchAdTargetingData = {
|
|
|
50647
50647
|
* Maximum results to return.
|
|
50648
50648
|
*/
|
|
50649
50649
|
limit?: number;
|
|
50650
|
+
/**
|
|
50651
|
+
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `workIndustry` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
|
|
50652
|
+
*/
|
|
50653
|
+
locale?: string;
|
|
50650
50654
|
/**
|
|
50651
50655
|
* Search query. For geo, the locality name only (no region/country suffix). For `interestSuggestion`, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a `q` starting with `[` is read as JSON).
|
|
50652
50656
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -50647,6 +50647,10 @@ type SearchAdTargetingData = {
|
|
|
50647
50647
|
* Maximum results to return.
|
|
50648
50648
|
*/
|
|
50649
50649
|
limit?: number;
|
|
50650
|
+
/**
|
|
50651
|
+
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `workIndustry` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
|
|
50652
|
+
*/
|
|
50653
|
+
locale?: string;
|
|
50650
50654
|
/**
|
|
50651
50655
|
* Search query. For geo, the locality name only (no region/country suffix). For `interestSuggestion`, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a `q` starting with `[` is read as JSON).
|
|
50652
50656
|
*/
|
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.1260",
|
|
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.1260",
|
|
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
|
@@ -13675,6 +13675,18 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13675
13675
|
* For geo queries, `q` should contain only the locality name (e.g. `"Amsterdam"`,
|
|
13676
13676
|
* not `"Amsterdam, NL"`). Use `countryCode` to disambiguate.
|
|
13677
13677
|
*
|
|
13678
|
+
* Meta language: Meta matches `q` against names in one language and returns names and `path` in
|
|
13679
|
+
* that language. Pass `locale` (e.g. `pl_PL`) to choose it. Without `locale`, the `behavior` and
|
|
13680
|
+
* `workIndustry` catalogs are in `en_US`, and `interest`, `interestSuggestion`, `geo`, `workPosition`
|
|
13681
|
+
* and `workEmployer` follow the language of the Facebook user who connected the account (so a
|
|
13682
|
+
* Russian-language Facebook user gets Russian paths, and Polish names need `locale=pl_PL`).
|
|
13683
|
+
* A non-English `behavior` or `workIndustry` query without `locale` never matches, so pass the
|
|
13684
|
+
* locale of the names you search. Meta's `interest` search matches its own interest names and has no fuzzy or
|
|
13685
|
+
* synonym mode, so a phrase Meta does not use as an interest name (e.g. `dental implants`) can
|
|
13686
|
+
* return nothing while a shorter word (`dentistry`) does. If Meta returns an empty `behavior`,
|
|
13687
|
+
* `workIndustry` or `income` catalog the request fails with a 502 `platform_api_error` instead of
|
|
13688
|
+
* an empty `results` list.
|
|
13689
|
+
*
|
|
13678
13690
|
*/
|
|
13679
13691
|
export const searchAdTargeting = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SearchAdTargetingData, ThrowOnError>) => {
|
|
13680
13692
|
return (options?.client ?? client).get<SearchAdTargetingResponse, SearchAdTargetingError, ThrowOnError>({
|
|
@@ -51560,6 +51560,10 @@ export type SearchAdTargetingData = {
|
|
|
51560
51560
|
* Maximum results to return.
|
|
51561
51561
|
*/
|
|
51562
51562
|
limit?: number;
|
|
51563
|
+
/**
|
|
51564
|
+
* Meta only: the language Meta matches `q` against and names results and `path` in, as language_TERRITORY (e.g. `pl_PL`, `en_US`). Applies to `geo`, `interest`, `interestSuggestion`, `behavior`, `workPosition`, `workEmployer` and `workIndustry`. Without it, `behavior` and `workIndustry` use `en_US` and the other searches use the language of the Facebook user who connected the account. `income` always uses `en_US`. Ignored on other platforms.
|
|
51565
|
+
*/
|
|
51566
|
+
locale?: string;
|
|
51563
51567
|
/**
|
|
51564
51568
|
* Search query. For geo, the locality name only (no region/country suffix). For `interestSuggestion`, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a `q` starting with `[` is read as JSON).
|
|
51565
51569
|
*/
|