@getlatedev/node 0.2.1455 → 0.2.1457
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 +18 -9
- package/dist/index.d.ts +18 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +18 -8
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.1457",
|
|
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.1457",
|
|
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
|
@@ -1810,11 +1810,16 @@ export type window = 'today' | 'yesterday' | 'last_3d' | 'last_7d' | 'last_14d'
|
|
|
1810
1810
|
|
|
1811
1811
|
export type op = '>' | '>=' | '<' | '<=';
|
|
1812
1812
|
|
|
1813
|
+
export type AdRuleConditionItem = AdRuleCondition | AdRuleConditions;
|
|
1814
|
+
|
|
1813
1815
|
/**
|
|
1814
|
-
*
|
|
1816
|
+
* A group: `all` (every item must hold) or `any` (one is enough). An item is a condition or another group, nested up to 3 levels, with at most 10 conditions in total. A rate with no denominator (a CPA with no conversions) never matches.
|
|
1817
|
+
*
|
|
1815
1818
|
*/
|
|
1816
1819
|
export type AdRuleConditions = {
|
|
1817
|
-
all: Array<
|
|
1820
|
+
all: Array<AdRuleConditionItem>;
|
|
1821
|
+
} | {
|
|
1822
|
+
any: Array<AdRuleConditionItem>;
|
|
1818
1823
|
};
|
|
1819
1824
|
|
|
1820
1825
|
export type AdRuleEvaluation = {
|
|
@@ -7385,7 +7390,7 @@ export type CtwaAdRequestBody = {
|
|
|
7385
7390
|
*/
|
|
7386
7391
|
gender?: 'all' | 'male' | 'female';
|
|
7387
7392
|
/**
|
|
7388
|
-
* Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR")
|
|
7393
|
+
* Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. Same format as `targeting.languages` on POST /v1/ads/boost.
|
|
7389
7394
|
*/
|
|
7390
7395
|
languages?: Array<(string)>;
|
|
7391
7396
|
/**
|
|
@@ -15228,7 +15233,9 @@ export type TargetingSpec = {
|
|
|
15228
15233
|
/**
|
|
15229
15234
|
* Language codes restricting the audience by language. Applied on Meta, Google, TikTok, LinkedIn, X, Pinterest and Reddit; rejected with 400 on OpenAI. A code the platform cannot target returns 400 listing the ones it can.
|
|
15230
15235
|
*
|
|
15231
|
-
* On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown
|
|
15236
|
+
* On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
|
|
15237
|
+
*
|
|
15238
|
+
* POST /v1/ads/create and POST /v1/ads/boost take the same format.
|
|
15232
15239
|
*/
|
|
15233
15240
|
languages?: Array<(string)>;
|
|
15234
15241
|
/**
|
|
@@ -18491,12 +18498,12 @@ export type WebhookPayloadComment = {
|
|
|
18491
18498
|
*
|
|
18492
18499
|
* **Facebook**: populated from a Graph API lookup of the parent post. Present when the post is an ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was boosted (promotionStatus "active", "extendable" or "finished").
|
|
18493
18500
|
*
|
|
18494
|
-
* Meta does not link a dark post
|
|
18501
|
+
* Meta does not link a dark post to its ad, so on Facebook id is set only when a Meta Ads account is connected and exactly one of its ads has the same text as the post. title is never set on Facebook.
|
|
18495
18502
|
*
|
|
18496
18503
|
*/
|
|
18497
18504
|
ad?: {
|
|
18498
18505
|
/**
|
|
18499
|
-
* Meta ad ID. Instagram: from the webhook. Facebook: only
|
|
18506
|
+
* Meta ad ID. Instagram: from the webhook. Facebook: only when a connected Meta Ads account has one ad with the same text.
|
|
18500
18507
|
*/
|
|
18501
18508
|
id?: string;
|
|
18502
18509
|
/**
|
|
@@ -58670,7 +58677,10 @@ export type BoostPostData = {
|
|
|
58670
58677
|
*/
|
|
58671
58678
|
gender?: 'all' | 'male' | 'female';
|
|
58672
58679
|
/**
|
|
58673
|
-
*
|
|
58680
|
+
* Language codes, the same format as `languages` on POST /v1/ads/create.
|
|
58681
|
+
*
|
|
58682
|
+
* - Meta: ISO 639-1 codes. A bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
|
|
58683
|
+
* - Reddit: ISO 639-1 codes (e.g. `en`).
|
|
58674
58684
|
*/
|
|
58675
58685
|
languages?: Array<(string)>;
|
|
58676
58686
|
/**
|
|
@@ -60080,7 +60090,7 @@ export type CreateStandaloneAdData = {
|
|
|
60080
60090
|
* Language codes, e.g. ["en","es"].
|
|
60081
60091
|
*
|
|
60082
60092
|
* - Google: campaign language targeting (language_constant) using Google's language codes (ISO 639-1, plus variants such as `zh_CN`). Unknown codes return 400.
|
|
60083
|
-
* - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Unknown
|
|
60093
|
+
* - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. POST /v1/ads/boost takes the same format in `targeting.languages`.
|
|
60084
60094
|
* - Other ad platforms use their own language-code systems.
|
|
60085
60095
|
*/
|
|
60086
60096
|
languages?: Array<(string)>;
|