@getlatedev/node 0.2.1217 → 0.2.1218
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 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -0
- package/src/generated/types.gen.ts +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -49395,9 +49395,9 @@ type SearchAdTargetingData = {
|
|
|
49395
49395
|
*/
|
|
49396
49396
|
countryCode?: string;
|
|
49397
49397
|
/**
|
|
49398
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49398
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestSuggestion` suggests interests related to the names in `q` (Meta only), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49399
49399
|
*/
|
|
49400
|
-
dimension?: 'geo' | 'interest' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49400
|
+
dimension?: 'geo' | 'interest' | 'interestSuggestion' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49401
49401
|
/**
|
|
49402
49402
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
49403
49403
|
*/
|
|
@@ -49407,7 +49407,7 @@ type SearchAdTargetingData = {
|
|
|
49407
49407
|
*/
|
|
49408
49408
|
limit?: number;
|
|
49409
49409
|
/**
|
|
49410
|
-
* Search query. For geo, the locality name only (no region/country suffix).
|
|
49410
|
+
* 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).
|
|
49411
49411
|
*/
|
|
49412
49412
|
q: string;
|
|
49413
49413
|
};
|
|
@@ -49423,7 +49423,7 @@ type SearchAdTargetingResponse = ({
|
|
|
49423
49423
|
*/
|
|
49424
49424
|
name: string;
|
|
49425
49425
|
/**
|
|
49426
|
-
* What the result is. Equals the requested dimension (interest, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49426
|
+
* What the result is. Equals the requested dimension (interest, interestSuggestion, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49427
49427
|
*/
|
|
49428
49428
|
type: string;
|
|
49429
49429
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -49395,9 +49395,9 @@ type SearchAdTargetingData = {
|
|
|
49395
49395
|
*/
|
|
49396
49396
|
countryCode?: string;
|
|
49397
49397
|
/**
|
|
49398
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49398
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestSuggestion` suggests interests related to the names in `q` (Meta only), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49399
49399
|
*/
|
|
49400
|
-
dimension?: 'geo' | 'interest' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49400
|
+
dimension?: 'geo' | 'interest' | 'interestSuggestion' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49401
49401
|
/**
|
|
49402
49402
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
49403
49403
|
*/
|
|
@@ -49407,7 +49407,7 @@ type SearchAdTargetingData = {
|
|
|
49407
49407
|
*/
|
|
49408
49408
|
limit?: number;
|
|
49409
49409
|
/**
|
|
49410
|
-
* Search query. For geo, the locality name only (no region/country suffix).
|
|
49410
|
+
* 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).
|
|
49411
49411
|
*/
|
|
49412
49412
|
q: string;
|
|
49413
49413
|
};
|
|
@@ -49423,7 +49423,7 @@ type SearchAdTargetingResponse = ({
|
|
|
49423
49423
|
*/
|
|
49424
49424
|
name: string;
|
|
49425
49425
|
/**
|
|
49426
|
-
* What the result is. Equals the requested dimension (interest, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49426
|
+
* What the result is. Equals the requested dimension (interest, interestSuggestion, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49427
49427
|
*/
|
|
49428
49428
|
type: string;
|
|
49429
49429
|
/**
|
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.1218",
|
|
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.1218",
|
|
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
|
@@ -13166,6 +13166,15 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13166
13166
|
*
|
|
13167
13167
|
* - `geo`: locations, further scoped by `geoType`
|
|
13168
13168
|
* - `interest`
|
|
13169
|
+
* - `interestSuggestion`: Meta only. Interests related to the interest names in `q`, from Meta's
|
|
13170
|
+
* interest suggestions. `q` lists interest names, case sensitive, names and not ids: either
|
|
13171
|
+
* comma-separated (`NBA,Michael Jordan`) or, for names that contain a comma, a JSON array of
|
|
13172
|
+
* strings (`["Earth, Wind & Fire","Yoga"]`, URL-encoded). A `q` starting with `[` is always read as
|
|
13173
|
+
* JSON. A `q` with no name or malformed JSON returns 400 naming `q`. Meta also suggests behaviors
|
|
13174
|
+
* and demographics; Zernio keeps only interests (entries whose `path` starts with `Interests`), so
|
|
13175
|
+
* every id goes in `TargetingSpec.interests`, like `interest` results. Zernio asks Meta for three
|
|
13176
|
+
* times `limit` (at most 100) before filtering, so fewer than `limit` results can come back. Meta
|
|
13177
|
+
* weights the first name heavily: a multi-name `q` mostly returns suggestions for the first one
|
|
13169
13178
|
* - `behavior`: Meta, TikTok and LinkedIn, matched by name; ids feed `TargetingSpec.behaviors`.
|
|
13170
13179
|
* Meta: its fixed behaviors catalog (e.g. `Small business owners`, `Frequent Travelers`).
|
|
13171
13180
|
* TikTok: video and creator interaction categories (e.g. `Software & Apps`), with ids like
|
|
@@ -50261,9 +50261,9 @@ export type SearchAdTargetingData = {
|
|
|
50261
50261
|
*/
|
|
50262
50262
|
countryCode?: string;
|
|
50263
50263
|
/**
|
|
50264
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
50264
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestSuggestion` suggests interests related to the names in `q` (Meta only), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
50265
50265
|
*/
|
|
50266
|
-
dimension?: 'geo' | 'interest' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
50266
|
+
dimension?: 'geo' | 'interest' | 'interestSuggestion' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
50267
50267
|
/**
|
|
50268
50268
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
50269
50269
|
*/
|
|
@@ -50273,7 +50273,7 @@ export type SearchAdTargetingData = {
|
|
|
50273
50273
|
*/
|
|
50274
50274
|
limit?: number;
|
|
50275
50275
|
/**
|
|
50276
|
-
* Search query. For geo, the locality name only (no region/country suffix).
|
|
50276
|
+
* 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).
|
|
50277
50277
|
*/
|
|
50278
50278
|
q: string;
|
|
50279
50279
|
};
|
|
@@ -50290,7 +50290,7 @@ export type SearchAdTargetingResponse = ({
|
|
|
50290
50290
|
*/
|
|
50291
50291
|
name: string;
|
|
50292
50292
|
/**
|
|
50293
|
-
* What the result is. Equals the requested dimension (interest, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
50293
|
+
* What the result is. Equals the requested dimension (interest, interestSuggestion, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
50294
50294
|
*/
|
|
50295
50295
|
type: string;
|
|
50296
50296
|
/**
|