@zernio/node 0.2.771 → 0.2.773
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 +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +31 -1
package/dist/index.d.mts
CHANGED
|
@@ -4703,6 +4703,15 @@ type CtwaAdRequestBody = {
|
|
|
4703
4703
|
key: string;
|
|
4704
4704
|
name?: string;
|
|
4705
4705
|
}>;
|
|
4706
|
+
/**
|
|
4707
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
4708
|
+
* for targeting a whole region without listing its countries. Combines
|
|
4709
|
+
* with `countries` rather than replacing it, and is also accepted under
|
|
4710
|
+
* `excludedLocations`. Discoverable via
|
|
4711
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
4712
|
+
*
|
|
4713
|
+
*/
|
|
4714
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
4706
4715
|
/**
|
|
4707
4716
|
* Point-radius geo (Meta `geo_locations.custom_locations`).
|
|
4708
4717
|
* Use for targeting a radius around a specific lat/long when
|
|
@@ -8256,6 +8265,15 @@ type TargetingSpec = {
|
|
|
8256
8265
|
key: string;
|
|
8257
8266
|
name?: string;
|
|
8258
8267
|
}>;
|
|
8268
|
+
/**
|
|
8269
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
8270
|
+
* for targeting a whole region without listing its countries. Combines
|
|
8271
|
+
* with `countries` rather than replacing it, and is also accepted under
|
|
8272
|
+
* `excludedLocations`. Discoverable via
|
|
8273
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
8274
|
+
*
|
|
8275
|
+
*/
|
|
8276
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
8259
8277
|
/**
|
|
8260
8278
|
* Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured on Meta and Google; ignored on platforms without radius support.
|
|
8261
8279
|
*/
|
|
@@ -8278,6 +8296,10 @@ type TargetingSpec = {
|
|
|
8278
8296
|
*/
|
|
8279
8297
|
excludedLocations?: {
|
|
8280
8298
|
countries?: Array<(string)>;
|
|
8299
|
+
/**
|
|
8300
|
+
* Meta only. Continents and trade blocs to exclude (`excluded_geo_locations.country_groups`).
|
|
8301
|
+
*/
|
|
8302
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
8281
8303
|
regions?: Array<{
|
|
8282
8304
|
key: string;
|
|
8283
8305
|
name?: string;
|
|
@@ -37245,6 +37267,14 @@ type CreateStandaloneAdData = {
|
|
|
37245
37267
|
* ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)
|
|
37246
37268
|
*/
|
|
37247
37269
|
countries?: Array<(string)>;
|
|
37270
|
+
/**
|
|
37271
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
37272
|
+
* for targeting a whole region without listing its countries. Combines with
|
|
37273
|
+
* `countries` rather than replacing it. Discoverable via
|
|
37274
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
37275
|
+
*
|
|
37276
|
+
*/
|
|
37277
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
37248
37278
|
/**
|
|
37249
37279
|
* City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
|
|
37250
37280
|
*
|
|
@@ -38627,7 +38657,7 @@ type SearchAdTargetingData = {
|
|
|
38627
38657
|
/**
|
|
38628
38658
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
38629
38659
|
*/
|
|
38630
|
-
geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
|
|
38660
|
+
geoType?: 'all' | 'country' | 'country_group' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
|
|
38631
38661
|
/**
|
|
38632
38662
|
* Maximum results to return.
|
|
38633
38663
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4703,6 +4703,15 @@ type CtwaAdRequestBody = {
|
|
|
4703
4703
|
key: string;
|
|
4704
4704
|
name?: string;
|
|
4705
4705
|
}>;
|
|
4706
|
+
/**
|
|
4707
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
4708
|
+
* for targeting a whole region without listing its countries. Combines
|
|
4709
|
+
* with `countries` rather than replacing it, and is also accepted under
|
|
4710
|
+
* `excludedLocations`. Discoverable via
|
|
4711
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
4712
|
+
*
|
|
4713
|
+
*/
|
|
4714
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
4706
4715
|
/**
|
|
4707
4716
|
* Point-radius geo (Meta `geo_locations.custom_locations`).
|
|
4708
4717
|
* Use for targeting a radius around a specific lat/long when
|
|
@@ -8256,6 +8265,15 @@ type TargetingSpec = {
|
|
|
8256
8265
|
key: string;
|
|
8257
8266
|
name?: string;
|
|
8258
8267
|
}>;
|
|
8268
|
+
/**
|
|
8269
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
8270
|
+
* for targeting a whole region without listing its countries. Combines
|
|
8271
|
+
* with `countries` rather than replacing it, and is also accepted under
|
|
8272
|
+
* `excludedLocations`. Discoverable via
|
|
8273
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
8274
|
+
*
|
|
8275
|
+
*/
|
|
8276
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
8259
8277
|
/**
|
|
8260
8278
|
* Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured on Meta and Google; ignored on platforms without radius support.
|
|
8261
8279
|
*/
|
|
@@ -8278,6 +8296,10 @@ type TargetingSpec = {
|
|
|
8278
8296
|
*/
|
|
8279
8297
|
excludedLocations?: {
|
|
8280
8298
|
countries?: Array<(string)>;
|
|
8299
|
+
/**
|
|
8300
|
+
* Meta only. Continents and trade blocs to exclude (`excluded_geo_locations.country_groups`).
|
|
8301
|
+
*/
|
|
8302
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
8281
8303
|
regions?: Array<{
|
|
8282
8304
|
key: string;
|
|
8283
8305
|
name?: string;
|
|
@@ -37245,6 +37267,14 @@ type CreateStandaloneAdData = {
|
|
|
37245
37267
|
* ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)
|
|
37246
37268
|
*/
|
|
37247
37269
|
countries?: Array<(string)>;
|
|
37270
|
+
/**
|
|
37271
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
37272
|
+
* for targeting a whole region without listing its countries. Combines with
|
|
37273
|
+
* `countries` rather than replacing it. Discoverable via
|
|
37274
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
37275
|
+
*
|
|
37276
|
+
*/
|
|
37277
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
37248
37278
|
/**
|
|
37249
37279
|
* City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
|
|
37250
37280
|
*
|
|
@@ -38627,7 +38657,7 @@ type SearchAdTargetingData = {
|
|
|
38627
38657
|
/**
|
|
38628
38658
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
38629
38659
|
*/
|
|
38630
|
-
geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
|
|
38660
|
+
geoType?: 'all' | 'country' | 'country_group' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
|
|
38631
38661
|
/**
|
|
38632
38662
|
* Maximum results to return.
|
|
38633
38663
|
*/
|
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.773",
|
|
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.773",
|
|
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
|
@@ -3230,6 +3230,15 @@ export type CtwaAdRequestBody = {
|
|
|
3230
3230
|
key: string;
|
|
3231
3231
|
name?: string;
|
|
3232
3232
|
}>;
|
|
3233
|
+
/**
|
|
3234
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
3235
|
+
* for targeting a whole region without listing its countries. Combines
|
|
3236
|
+
* with `countries` rather than replacing it, and is also accepted under
|
|
3237
|
+
* `excludedLocations`. Discoverable via
|
|
3238
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
3239
|
+
*
|
|
3240
|
+
*/
|
|
3241
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
3233
3242
|
/**
|
|
3234
3243
|
* Point-radius geo (Meta `geo_locations.custom_locations`).
|
|
3235
3244
|
* Use for targeting a radius around a specific lat/long when
|
|
@@ -6944,6 +6953,15 @@ export type TargetingSpec = {
|
|
|
6944
6953
|
key: string;
|
|
6945
6954
|
name?: string;
|
|
6946
6955
|
}>;
|
|
6956
|
+
/**
|
|
6957
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
6958
|
+
* for targeting a whole region without listing its countries. Combines
|
|
6959
|
+
* with `countries` rather than replacing it, and is also accepted under
|
|
6960
|
+
* `excludedLocations`. Discoverable via
|
|
6961
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
6962
|
+
*
|
|
6963
|
+
*/
|
|
6964
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
6947
6965
|
/**
|
|
6948
6966
|
* Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured on Meta and Google; ignored on platforms without radius support.
|
|
6949
6967
|
*/
|
|
@@ -6966,6 +6984,10 @@ export type TargetingSpec = {
|
|
|
6966
6984
|
*/
|
|
6967
6985
|
excludedLocations?: {
|
|
6968
6986
|
countries?: Array<(string)>;
|
|
6987
|
+
/**
|
|
6988
|
+
* Meta only. Continents and trade blocs to exclude (`excluded_geo_locations.country_groups`).
|
|
6989
|
+
*/
|
|
6990
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
6969
6991
|
regions?: Array<{
|
|
6970
6992
|
key: string;
|
|
6971
6993
|
name?: string;
|
|
@@ -37861,6 +37883,14 @@ export type CreateStandaloneAdData = {
|
|
|
37861
37883
|
* ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)
|
|
37862
37884
|
*/
|
|
37863
37885
|
countries?: Array<(string)>;
|
|
37886
|
+
/**
|
|
37887
|
+
* Meta only. Continents and trade blocs (`geo_locations.country_groups`),
|
|
37888
|
+
* for targeting a whole region without listing its countries. Combines with
|
|
37889
|
+
* `countries` rather than replacing it. Discoverable via
|
|
37890
|
+
* `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
|
|
37891
|
+
*
|
|
37892
|
+
*/
|
|
37893
|
+
countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
|
|
37864
37894
|
/**
|
|
37865
37895
|
* City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
|
|
37866
37896
|
*
|
|
@@ -39285,7 +39315,7 @@ export type SearchAdTargetingData = {
|
|
|
39285
39315
|
/**
|
|
39286
39316
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
39287
39317
|
*/
|
|
39288
|
-
geoType?: 'all' | 'country' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
|
|
39318
|
+
geoType?: 'all' | 'country' | 'country_group' | 'region' | 'city' | 'subcity' | 'neighborhood' | 'place' | 'zip' | 'metro_area' | 'geo_market';
|
|
39289
39319
|
/**
|
|
39290
39320
|
* Maximum results to return.
|
|
39291
39321
|
*/
|