@zernio/node 0.2.754 → 0.2.755
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 +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +11 -0
- package/src/generated/types.gen.ts +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -8245,19 +8245,19 @@ type TargetingSpec = {
|
|
|
8245
8245
|
name?: string;
|
|
8246
8246
|
}>;
|
|
8247
8247
|
/**
|
|
8248
|
-
* LinkedIn B2B only. Industry URN id fragments.
|
|
8248
|
+
* LinkedIn B2B only. Industry URN id fragments, or the full urn:li:industry:* URN from /v1/ads/targeting/search?dimension=industry.
|
|
8249
8249
|
*/
|
|
8250
8250
|
industries?: Array<(string)>;
|
|
8251
8251
|
/**
|
|
8252
|
-
* LinkedIn B2B only.
|
|
8252
|
+
* LinkedIn B2B only. Single-letter size codes (A to I), or the full urn:li:staffCountRange:* URN from /v1/ads/targeting/search?dimension=companySize.
|
|
8253
8253
|
*/
|
|
8254
8254
|
companySizes?: Array<(string)>;
|
|
8255
8255
|
/**
|
|
8256
|
-
* LinkedIn B2B only.
|
|
8256
|
+
* LinkedIn B2B only. Seniority URN id fragments, or the full urn:li:seniority:* URN from /v1/ads/targeting/search?dimension=seniority.
|
|
8257
8257
|
*/
|
|
8258
8258
|
seniorities?: Array<(string)>;
|
|
8259
8259
|
/**
|
|
8260
|
-
* LinkedIn B2B only.
|
|
8260
|
+
* LinkedIn B2B only. Function URN id fragments, or the full urn:li:function:* URN from /v1/ads/targeting/search?dimension=jobFunction.
|
|
8261
8261
|
*/
|
|
8262
8262
|
jobFunctions?: Array<(string)>;
|
|
8263
8263
|
/**
|
|
@@ -38310,9 +38310,9 @@ type SearchAdTargetingData = {
|
|
|
38310
38310
|
*/
|
|
38311
38311
|
countryCode?: string;
|
|
38312
38312
|
/**
|
|
38313
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income-tier options, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics. Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
38313
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income-tier options, `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.
|
|
38314
38314
|
*/
|
|
38315
|
-
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry';
|
|
38315
|
+
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize';
|
|
38316
38316
|
/**
|
|
38317
38317
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
38318
38318
|
*/
|
|
@@ -38338,7 +38338,7 @@ type SearchAdTargetingResponse = ({
|
|
|
38338
38338
|
*/
|
|
38339
38339
|
name: string;
|
|
38340
38340
|
/**
|
|
38341
|
-
* What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income).
|
|
38341
|
+
* What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income, industry, jobFunction, seniority, companySize).
|
|
38342
38342
|
*/
|
|
38343
38343
|
type: string;
|
|
38344
38344
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -8245,19 +8245,19 @@ type TargetingSpec = {
|
|
|
8245
8245
|
name?: string;
|
|
8246
8246
|
}>;
|
|
8247
8247
|
/**
|
|
8248
|
-
* LinkedIn B2B only. Industry URN id fragments.
|
|
8248
|
+
* LinkedIn B2B only. Industry URN id fragments, or the full urn:li:industry:* URN from /v1/ads/targeting/search?dimension=industry.
|
|
8249
8249
|
*/
|
|
8250
8250
|
industries?: Array<(string)>;
|
|
8251
8251
|
/**
|
|
8252
|
-
* LinkedIn B2B only.
|
|
8252
|
+
* LinkedIn B2B only. Single-letter size codes (A to I), or the full urn:li:staffCountRange:* URN from /v1/ads/targeting/search?dimension=companySize.
|
|
8253
8253
|
*/
|
|
8254
8254
|
companySizes?: Array<(string)>;
|
|
8255
8255
|
/**
|
|
8256
|
-
* LinkedIn B2B only.
|
|
8256
|
+
* LinkedIn B2B only. Seniority URN id fragments, or the full urn:li:seniority:* URN from /v1/ads/targeting/search?dimension=seniority.
|
|
8257
8257
|
*/
|
|
8258
8258
|
seniorities?: Array<(string)>;
|
|
8259
8259
|
/**
|
|
8260
|
-
* LinkedIn B2B only.
|
|
8260
|
+
* LinkedIn B2B only. Function URN id fragments, or the full urn:li:function:* URN from /v1/ads/targeting/search?dimension=jobFunction.
|
|
8261
8261
|
*/
|
|
8262
8262
|
jobFunctions?: Array<(string)>;
|
|
8263
8263
|
/**
|
|
@@ -38310,9 +38310,9 @@ type SearchAdTargetingData = {
|
|
|
38310
38310
|
*/
|
|
38311
38311
|
countryCode?: string;
|
|
38312
38312
|
/**
|
|
38313
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income-tier options, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics. Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
38313
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income-tier options, `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.
|
|
38314
38314
|
*/
|
|
38315
|
-
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry';
|
|
38315
|
+
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize';
|
|
38316
38316
|
/**
|
|
38317
38317
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
38318
38318
|
*/
|
|
@@ -38338,7 +38338,7 @@ type SearchAdTargetingResponse = ({
|
|
|
38338
38338
|
*/
|
|
38339
38339
|
name: string;
|
|
38340
38340
|
/**
|
|
38341
|
-
* What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income).
|
|
38341
|
+
* What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income, industry, jobFunction, seniority, companySize).
|
|
38342
38342
|
*/
|
|
38343
38343
|
type: string;
|
|
38344
38344
|
/**
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.755",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.755",
|
|
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
|
@@ -10236,6 +10236,8 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
10236
10236
|
* - `language`: Google-only
|
|
10237
10237
|
* - `workPosition`, `workEmployer`, `workIndustry`: the Meta-only work demographics, whose
|
|
10238
10238
|
* ids feed `TargetingSpec.workPositions`/`workEmployers`/`workIndustries`
|
|
10239
|
+
* - `industry`, `jobFunction`, `seniority`, `companySize`: the LinkedIn-only B2B facets, whose
|
|
10240
|
+
* URNs feed `TargetingSpec.industries`/`jobFunctions`/`seniorities`/`companySizes`
|
|
10239
10241
|
*
|
|
10240
10242
|
* Availability of each dimension varies by platform (e.g. behaviours are Meta/TikTok only).
|
|
10241
10243
|
* Work industries are a fixed ~30-entry Meta catalog with no server-side query,
|
|
@@ -10260,6 +10262,15 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
10260
10262
|
* `urn:li:geo:*` URN usable as a `regions[].key` on `POST /v1/ads/create`,
|
|
10261
10263
|
* `POST /v1/ads/boost` and `POST /v1/ads/targeting/reach-estimate`.
|
|
10262
10264
|
*
|
|
10265
|
+
* LinkedIn B2B searches (`industry`, `jobFunction`, `seniority`, `companySize`) return the
|
|
10266
|
+
* full URN to pass straight back, so no URN id fragment has to be assembled by hand:
|
|
10267
|
+
* `urn:li:industry:4`, `urn:li:function:8`, `urn:li:seniority:6`,
|
|
10268
|
+
* `urn:li:staffCountRange:(51,200)`. Only `industry` is a server-side name search
|
|
10269
|
+
* (LinkedIn's typeahead finder). LinkedIn exposes no typeahead for job functions,
|
|
10270
|
+
* seniorities and company sizes, so Zernio fetches each whole table (26, 10 and 9 entries),
|
|
10271
|
+
* caches it, and does the matching, ranking and `limit` cutoff itself. Those three never
|
|
10272
|
+
* carry `audienceSize`, and `countryCode` and `geoType` are not applied to any of the four.
|
|
10273
|
+
*
|
|
10263
10274
|
* Google geo searches resolve against Google's geoTargetConstants and return
|
|
10264
10275
|
* every matching level in one list; `geoType` is not applied (Google's
|
|
10265
10276
|
* `target_type` is an open taxonomy that does not map one-to-one onto the
|
|
@@ -6938,19 +6938,19 @@ export type TargetingSpec = {
|
|
|
6938
6938
|
name?: string;
|
|
6939
6939
|
}>;
|
|
6940
6940
|
/**
|
|
6941
|
-
* LinkedIn B2B only. Industry URN id fragments.
|
|
6941
|
+
* LinkedIn B2B only. Industry URN id fragments, or the full urn:li:industry:* URN from /v1/ads/targeting/search?dimension=industry.
|
|
6942
6942
|
*/
|
|
6943
6943
|
industries?: Array<(string)>;
|
|
6944
6944
|
/**
|
|
6945
|
-
* LinkedIn B2B only.
|
|
6945
|
+
* LinkedIn B2B only. Single-letter size codes (A to I), or the full urn:li:staffCountRange:* URN from /v1/ads/targeting/search?dimension=companySize.
|
|
6946
6946
|
*/
|
|
6947
6947
|
companySizes?: Array<(string)>;
|
|
6948
6948
|
/**
|
|
6949
|
-
* LinkedIn B2B only.
|
|
6949
|
+
* LinkedIn B2B only. Seniority URN id fragments, or the full urn:li:seniority:* URN from /v1/ads/targeting/search?dimension=seniority.
|
|
6950
6950
|
*/
|
|
6951
6951
|
seniorities?: Array<(string)>;
|
|
6952
6952
|
/**
|
|
6953
|
-
* LinkedIn B2B only.
|
|
6953
|
+
* LinkedIn B2B only. Function URN id fragments, or the full urn:li:function:* URN from /v1/ads/targeting/search?dimension=jobFunction.
|
|
6954
6954
|
*/
|
|
6955
6955
|
jobFunctions?: Array<(string)>;
|
|
6956
6956
|
/**
|
|
@@ -38961,9 +38961,9 @@ export type SearchAdTargetingData = {
|
|
|
38961
38961
|
*/
|
|
38962
38962
|
countryCode?: string;
|
|
38963
38963
|
/**
|
|
38964
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income-tier options, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics. Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
38964
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities, `income` resolves income-tier options, `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.
|
|
38965
38965
|
*/
|
|
38966
|
-
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry';
|
|
38966
|
+
dimension?: 'geo' | 'interest' | 'behavior' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize';
|
|
38967
38967
|
/**
|
|
38968
38968
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
38969
38969
|
*/
|
|
@@ -38990,7 +38990,7 @@ export type SearchAdTargetingResponse = ({
|
|
|
38990
38990
|
*/
|
|
38991
38991
|
name: string;
|
|
38992
38992
|
/**
|
|
38993
|
-
* What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income).
|
|
38993
|
+
* What the result is (e.g. city, region, country, zip, metro, location, interest, behavior, income, industry, jobFunction, seniority, companySize).
|
|
38994
38994
|
*/
|
|
38995
38995
|
type: string;
|
|
38996
38996
|
/**
|