@getlatedev/node 0.2.1292 → 0.2.1294
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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +7 -4
- package/src/generated/types.gen.ts +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -3516,7 +3516,11 @@ type AdsTimelineResponse = {
|
|
|
3516
3516
|
rows?: Array<{
|
|
3517
3517
|
date?: string;
|
|
3518
3518
|
/**
|
|
3519
|
-
*
|
|
3519
|
+
* ISO 4217 currency of every money field in this row (spend, cpc, cpm, costPerConversion, purchaseValue, actionValues). An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies. Null when the currency of the ad accounts in this row is unknown. Added 2026-10-23.
|
|
3520
|
+
*/
|
|
3521
|
+
currency?: (string) | null;
|
|
3522
|
+
/**
|
|
3523
|
+
* Native currency units (matches /ads/tree convention), in `currency`.
|
|
3520
3524
|
*/
|
|
3521
3525
|
spend?: number;
|
|
3522
3526
|
impressions?: number;
|
|
@@ -51603,7 +51607,7 @@ type SearchAdTargetingData = {
|
|
|
51603
51607
|
*/
|
|
51604
51608
|
limit?: number;
|
|
51605
51609
|
/**
|
|
51606
|
-
* 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 `
|
|
51610
|
+
* 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`, `workIndustry` and `interestSuggestion` 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.
|
|
51607
51611
|
*/
|
|
51608
51612
|
locale?: string;
|
|
51609
51613
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3516,7 +3516,11 @@ type AdsTimelineResponse = {
|
|
|
3516
3516
|
rows?: Array<{
|
|
3517
3517
|
date?: string;
|
|
3518
3518
|
/**
|
|
3519
|
-
*
|
|
3519
|
+
* ISO 4217 currency of every money field in this row (spend, cpc, cpm, costPerConversion, purchaseValue, actionValues). An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies. Null when the currency of the ad accounts in this row is unknown. Added 2026-10-23.
|
|
3520
|
+
*/
|
|
3521
|
+
currency?: (string) | null;
|
|
3522
|
+
/**
|
|
3523
|
+
* Native currency units (matches /ads/tree convention), in `currency`.
|
|
3520
3524
|
*/
|
|
3521
3525
|
spend?: number;
|
|
3522
3526
|
impressions?: number;
|
|
@@ -51603,7 +51607,7 @@ type SearchAdTargetingData = {
|
|
|
51603
51607
|
*/
|
|
51604
51608
|
limit?: number;
|
|
51605
51609
|
/**
|
|
51606
|
-
* 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 `
|
|
51610
|
+
* 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`, `workIndustry` and `interestSuggestion` 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.
|
|
51607
51611
|
*/
|
|
51608
51612
|
locale?: string;
|
|
51609
51613
|
/**
|
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.1294",
|
|
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.1294",
|
|
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
|
@@ -10980,7 +10980,8 @@ export const getAdTree = <ThrowOnError extends boolean = false>(options?: Option
|
|
|
10980
10980
|
* Returns an ads account's spend, results and other metrics day by day, ready for a daily performance chart.
|
|
10981
10981
|
*
|
|
10982
10982
|
* Returns daily aggregate metrics across all ads in a SocialAccount as a single
|
|
10983
|
-
* time series, one row per calendar day in the requested range
|
|
10983
|
+
* time series, one row per calendar day and currency in the requested range (one row
|
|
10984
|
+
* per day unless the account's ad accounts bill in different currencies). Use this for
|
|
10984
10985
|
* dashboards that draw a daily-spend or daily-conversions chart, instead of
|
|
10985
10986
|
* calling `/v1/ads/tree` once per day.
|
|
10986
10987
|
*
|
|
@@ -13725,8 +13726,10 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13725
13726
|
* comma-separated (`NBA,Michael Jordan`) or, for names that contain a comma, a JSON array of
|
|
13726
13727
|
* strings (`["Earth, Wind & Fire","Yoga"]`, URL-encoded). A `q` starting with `[` is always read as
|
|
13727
13728
|
* JSON. A `q` with no name or malformed JSON returns 400 naming `q`. Meta also suggests behaviors
|
|
13728
|
-
* and demographics; Zernio keeps only interests
|
|
13729
|
-
*
|
|
13729
|
+
* and demographics; Zernio keeps only interests, so every id goes in `TargetingSpec.interests`, like
|
|
13730
|
+
* `interest` results. Zernio classifies them with a Meta call pinned to `en_US` (ids whose `path`
|
|
13731
|
+
* starts with `Interests`). Without `locale` results are in English; with another `locale`, a second
|
|
13732
|
+
* call in that locale returns the same interests with localized names and `path`. Zernio asks Meta for three
|
|
13730
13733
|
* times `limit` (at most 100) before filtering, so fewer than `limit` results can come back. Meta
|
|
13731
13734
|
* weights the first name heavily: a multi-name `q` mostly returns suggestions for the first one
|
|
13732
13735
|
* - `behavior`: Meta, TikTok and LinkedIn, matched by name; ids feed `TargetingSpec.behaviors`.
|
|
@@ -13855,7 +13858,7 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13855
13858
|
*
|
|
13856
13859
|
* Meta language: Meta matches `q` against names in one language and returns names and `path` in
|
|
13857
13860
|
* that language. Pass `locale` (e.g. `pl_PL`) to choose it. Without `locale`, the `behavior` and
|
|
13858
|
-
* `workIndustry` catalogs are in `en_US`, and `interest`, `
|
|
13861
|
+
* `workIndustry` catalogs and `interestSuggestion` are in `en_US`, and `interest`, `geo`, `workPosition`
|
|
13859
13862
|
* and `workEmployer` follow the language of the Facebook user who connected the account (so a
|
|
13860
13863
|
* Russian-language Facebook user gets Russian paths, and Polish names need `locale=pl_PL`).
|
|
13861
13864
|
* A non-English `behavior` or `workIndustry` query without `locale` never matches, so pass the
|
|
@@ -1500,7 +1500,11 @@ export type AdsTimelineResponse = {
|
|
|
1500
1500
|
rows?: Array<{
|
|
1501
1501
|
date?: string;
|
|
1502
1502
|
/**
|
|
1503
|
-
*
|
|
1503
|
+
* ISO 4217 currency of every money field in this row (spend, cpc, cpm, costPerConversion, purchaseValue, actionValues). An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies. Null when the currency of the ad accounts in this row is unknown. Added 2026-10-23.
|
|
1504
|
+
*/
|
|
1505
|
+
currency?: (string) | null;
|
|
1506
|
+
/**
|
|
1507
|
+
* Native currency units (matches /ads/tree convention), in `currency`.
|
|
1504
1508
|
*/
|
|
1505
1509
|
spend?: number;
|
|
1506
1510
|
impressions?: number;
|
|
@@ -52550,7 +52554,7 @@ export type SearchAdTargetingData = {
|
|
|
52550
52554
|
*/
|
|
52551
52555
|
limit?: number;
|
|
52552
52556
|
/**
|
|
52553
|
-
* 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 `
|
|
52557
|
+
* 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`, `workIndustry` and `interestSuggestion` 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.
|
|
52554
52558
|
*/
|
|
52555
52559
|
locale?: string;
|
|
52556
52560
|
/**
|