@getlatedev/node 0.2.1291 → 0.2.1293
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 +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -1
- package/src/generated/types.gen.ts +17 -4
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;
|
|
@@ -7597,6 +7601,9 @@ type CtwaAdRequestBody = {
|
|
|
7597
7601
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
7598
7602
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
7599
7603
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
7604
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
7605
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
7606
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
7600
7607
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
7601
7608
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
7602
7609
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -7611,7 +7618,7 @@ type CtwaAdRequestBody = {
|
|
|
7611
7618
|
*
|
|
7612
7619
|
*/
|
|
7613
7620
|
regionalRegulationIdentities?: {
|
|
7614
|
-
[key: string]: (number);
|
|
7621
|
+
[key: string]: (string | number);
|
|
7615
7622
|
};
|
|
7616
7623
|
};
|
|
7617
7624
|
/**
|
|
@@ -49220,6 +49227,9 @@ type BoostPostData = {
|
|
|
49220
49227
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
49221
49228
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
49222
49229
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
49230
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
49231
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
49232
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
49223
49233
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
49224
49234
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
49225
49235
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -49234,7 +49244,7 @@ type BoostPostData = {
|
|
|
49234
49244
|
*
|
|
49235
49245
|
*/
|
|
49236
49246
|
regionalRegulationIdentities?: {
|
|
49237
|
-
[key: string]: (number);
|
|
49247
|
+
[key: string]: (string | number);
|
|
49238
49248
|
};
|
|
49239
49249
|
/**
|
|
49240
49250
|
* Website URL for non-messaging CTA buttons. Send it with `callToAction`. Omit for messaging boosts.
|
|
@@ -50279,6 +50289,9 @@ type CreateStandaloneAdData = {
|
|
|
50279
50289
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
50280
50290
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
50281
50291
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
50292
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
50293
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
50294
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
50282
50295
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
50283
50296
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
50284
50297
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -50293,7 +50306,7 @@ type CreateStandaloneAdData = {
|
|
|
50293
50306
|
*
|
|
50294
50307
|
*/
|
|
50295
50308
|
regionalRegulationIdentities?: {
|
|
50296
|
-
[key: string]: (number);
|
|
50309
|
+
[key: string]: (string | number);
|
|
50297
50310
|
};
|
|
50298
50311
|
/**
|
|
50299
50312
|
* Required for lifetime budgets. Read like `startDate` (account timezone on Meta, TikTok, X, Pinterest, OpenAI and Reddit; whole account-local days on Google; UTC on LinkedIn), and a date-only end runs to 23:59:59 local.
|
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;
|
|
@@ -7597,6 +7601,9 @@ type CtwaAdRequestBody = {
|
|
|
7597
7601
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
7598
7602
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
7599
7603
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
7604
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
7605
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
7606
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
7600
7607
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
7601
7608
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
7602
7609
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -7611,7 +7618,7 @@ type CtwaAdRequestBody = {
|
|
|
7611
7618
|
*
|
|
7612
7619
|
*/
|
|
7613
7620
|
regionalRegulationIdentities?: {
|
|
7614
|
-
[key: string]: (number);
|
|
7621
|
+
[key: string]: (string | number);
|
|
7615
7622
|
};
|
|
7616
7623
|
};
|
|
7617
7624
|
/**
|
|
@@ -49220,6 +49227,9 @@ type BoostPostData = {
|
|
|
49220
49227
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
49221
49228
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
49222
49229
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
49230
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
49231
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
49232
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
49223
49233
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
49224
49234
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
49225
49235
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -49234,7 +49244,7 @@ type BoostPostData = {
|
|
|
49234
49244
|
*
|
|
49235
49245
|
*/
|
|
49236
49246
|
regionalRegulationIdentities?: {
|
|
49237
|
-
[key: string]: (number);
|
|
49247
|
+
[key: string]: (string | number);
|
|
49238
49248
|
};
|
|
49239
49249
|
/**
|
|
49240
49250
|
* Website URL for non-messaging CTA buttons. Send it with `callToAction`. Omit for messaging boosts.
|
|
@@ -50279,6 +50289,9 @@ type CreateStandaloneAdData = {
|
|
|
50279
50289
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
50280
50290
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
50281
50291
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
50292
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
50293
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
50294
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
50282
50295
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
50283
50296
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
50284
50297
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -50293,7 +50306,7 @@ type CreateStandaloneAdData = {
|
|
|
50293
50306
|
*
|
|
50294
50307
|
*/
|
|
50295
50308
|
regionalRegulationIdentities?: {
|
|
50296
|
-
[key: string]: (number);
|
|
50309
|
+
[key: string]: (string | number);
|
|
50297
50310
|
};
|
|
50298
50311
|
/**
|
|
50299
50312
|
* Required for lifetime budgets. Read like `startDate` (account timezone on Meta, TikTok, X, Pinterest, OpenAI and Reddit; whole account-local days on Google; UTC on LinkedIn), and a date-only end runs to 23:59:59 local.
|
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.1293",
|
|
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.1293",
|
|
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
|
*
|
|
@@ -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;
|
|
@@ -5745,6 +5749,9 @@ export type CtwaAdRequestBody = {
|
|
|
5745
5749
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
5746
5750
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
5747
5751
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
5752
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
5753
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
5754
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
5748
5755
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
5749
5756
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
5750
5757
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -5759,7 +5766,7 @@ export type CtwaAdRequestBody = {
|
|
|
5759
5766
|
*
|
|
5760
5767
|
*/
|
|
5761
5768
|
regionalRegulationIdentities?: {
|
|
5762
|
-
[key: string]: (number);
|
|
5769
|
+
[key: string]: (string | number);
|
|
5763
5770
|
};
|
|
5764
5771
|
};
|
|
5765
5772
|
|
|
@@ -50092,6 +50099,9 @@ export type BoostPostData = {
|
|
|
50092
50099
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
50093
50100
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
50094
50101
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
50102
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
50103
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
50104
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
50095
50105
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
50096
50106
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
50097
50107
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -50106,7 +50116,7 @@ export type BoostPostData = {
|
|
|
50106
50116
|
*
|
|
50107
50117
|
*/
|
|
50108
50118
|
regionalRegulationIdentities?: {
|
|
50109
|
-
[key: string]: (number);
|
|
50119
|
+
[key: string]: (string | number);
|
|
50110
50120
|
};
|
|
50111
50121
|
/**
|
|
50112
50122
|
* Website URL for non-messaging CTA buttons. Send it with `callToAction`. Omit for messaging boosts.
|
|
@@ -51175,6 +51185,9 @@ export type CreateStandaloneAdData = {
|
|
|
51175
51185
|
* settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path.
|
|
51176
51186
|
* The value is the Verified identity ID (Meta Business Settings > Verified identities),
|
|
51177
51187
|
* not a Page or Business ID, and beneficiary and payer may be the same ID.
|
|
51188
|
+
* Send each ID as a string of digits: Verified identity IDs can have 17 digits, more than a
|
|
51189
|
+
* JSON number holds exactly, and a number that arrives rounded is rejected. Numbers up to
|
|
51190
|
+
* 9007199254740991 are still accepted. The IDs reach Meta unchanged.
|
|
51178
51191
|
* Keys by category: AUSTRALIA_FINSERV uses australia_finserv_beneficiary /
|
|
51179
51192
|
* australia_finserv_payer; TAIWAN_FINSERV uses taiwan_finserv_beneficiary /
|
|
51180
51193
|
* taiwan_finserv_payer; INDIA_FINSERV uses india_finserv_beneficiary / india_finserv_payer;
|
|
@@ -51189,7 +51202,7 @@ export type CreateStandaloneAdData = {
|
|
|
51189
51202
|
*
|
|
51190
51203
|
*/
|
|
51191
51204
|
regionalRegulationIdentities?: {
|
|
51192
|
-
[key: string]: (number);
|
|
51205
|
+
[key: string]: (string | number);
|
|
51193
51206
|
};
|
|
51194
51207
|
/**
|
|
51195
51208
|
* Required for lifetime budgets. Read like `startDate` (account timezone on Meta, TikTok, X, Pinterest, OpenAI and Reddit; whole account-local days on Google; UTC on LinkedIn), and a date-only end runs to 23:59:59 local.
|