@getlatedev/node 0.2.1259 → 0.2.1261
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 +5 -1
- package/dist/index.d.ts +5 -1
- 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 +5 -1
package/dist/index.d.mts
CHANGED
|
@@ -21206,7 +21206,7 @@ type UpdatePostData = {
|
|
|
21206
21206
|
customContent?: string;
|
|
21207
21207
|
customMedia?: Array<MediaItem>;
|
|
21208
21208
|
/**
|
|
21209
|
-
* Optional per-platform scheduled time override.
|
|
21209
|
+
* Optional per-platform scheduled time override. It is kept when a top-level scheduledFor is also sent, except a date sent back unchanged that matched the post scheduled time or is already past, which follows the new top-level scheduledFor.
|
|
21210
21210
|
*/
|
|
21211
21211
|
scheduledFor?: string;
|
|
21212
21212
|
/**
|
|
@@ -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
|
@@ -21206,7 +21206,7 @@ type UpdatePostData = {
|
|
|
21206
21206
|
customContent?: string;
|
|
21207
21207
|
customMedia?: Array<MediaItem>;
|
|
21208
21208
|
/**
|
|
21209
|
-
* Optional per-platform scheduled time override.
|
|
21209
|
+
* Optional per-platform scheduled time override. It is kept when a top-level scheduledFor is also sent, except a date sent back unchanged that matched the post scheduled time or is already past, which follows the new top-level scheduledFor.
|
|
21210
21210
|
*/
|
|
21211
21211
|
scheduledFor?: string;
|
|
21212
21212
|
/**
|
|
@@ -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.1261",
|
|
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.1261",
|
|
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>({
|
|
@@ -20053,7 +20053,7 @@ export type UpdatePostData = {
|
|
|
20053
20053
|
customContent?: string;
|
|
20054
20054
|
customMedia?: Array<MediaItem>;
|
|
20055
20055
|
/**
|
|
20056
|
-
* Optional per-platform scheduled time override.
|
|
20056
|
+
* Optional per-platform scheduled time override. It is kept when a top-level scheduledFor is also sent, except a date sent back unchanged that matched the post scheduled time or is already past, which follows the new top-level scheduledFor.
|
|
20057
20057
|
*/
|
|
20058
20058
|
scheduledFor?: string;
|
|
20059
20059
|
/**
|
|
@@ -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
|
*/
|