@getlatedev/node 0.2.260 → 0.2.262
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 +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +13 -1
- package/src/generated/types.gen.ts +9 -5
package/dist/index.d.mts
CHANGED
|
@@ -18436,7 +18436,11 @@ type GetAdTreeData = {
|
|
|
18436
18436
|
*/
|
|
18437
18437
|
adAccountId?: string;
|
|
18438
18438
|
/**
|
|
18439
|
-
*
|
|
18439
|
+
* Restrict the tree to a single campaign by its platform campaign id (the id the platform assigns, e.g. Meta's numeric campaign id). Filters the campaign set itself, so it works regardless of account size and pagination — pass this when you already hold a campaign id instead of paging the tree to find it. Mirrors the `campaignId` filter on GET /v1/ads.
|
|
18440
|
+
*/
|
|
18441
|
+
campaignId?: string;
|
|
18442
|
+
/**
|
|
18443
|
+
* Start of the METRICS date range (YYYY-MM-DD). Affects only the spend/impression numbers overlaid on each node, NOT which campaigns are returned. Defaults to 90 days ago.
|
|
18440
18444
|
*/
|
|
18441
18445
|
fromDate?: string;
|
|
18442
18446
|
/**
|
|
@@ -20300,7 +20304,7 @@ type GetConversionsQualityError = ({
|
|
|
20300
20304
|
type SendConversionsData = {
|
|
20301
20305
|
body: {
|
|
20302
20306
|
/**
|
|
20303
|
-
* SocialAccount ID (metaads, googleads, or
|
|
20307
|
+
* SocialAccount ID (metaads, googleads, linkedinads, or tiktokads).
|
|
20304
20308
|
*/
|
|
20305
20309
|
accountId: string;
|
|
20306
20310
|
/**
|
|
@@ -20329,7 +20333,7 @@ type SendConversionsData = {
|
|
|
20329
20333
|
};
|
|
20330
20334
|
};
|
|
20331
20335
|
type SendConversionsResponse = ({
|
|
20332
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads';
|
|
20336
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads';
|
|
20333
20337
|
/**
|
|
20334
20338
|
* Events accepted by the platform.
|
|
20335
20339
|
*/
|
|
@@ -20437,13 +20441,13 @@ type AdjustConversionsError = (unknown | {
|
|
|
20437
20441
|
type ListConversionDestinationsData = {
|
|
20438
20442
|
path: {
|
|
20439
20443
|
/**
|
|
20440
|
-
* SocialAccount ID (metaads, googleads, or
|
|
20444
|
+
* SocialAccount ID (metaads, googleads, linkedinads, or tiktokads).
|
|
20441
20445
|
*/
|
|
20442
20446
|
accountId: string;
|
|
20443
20447
|
};
|
|
20444
20448
|
};
|
|
20445
20449
|
type ListConversionDestinationsResponse = ({
|
|
20446
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads';
|
|
20450
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads';
|
|
20447
20451
|
destinations?: Array<{
|
|
20448
20452
|
/**
|
|
20449
20453
|
* Destination identifier. Meta: pixel ID. Google:
|
package/dist/index.d.ts
CHANGED
|
@@ -18436,7 +18436,11 @@ type GetAdTreeData = {
|
|
|
18436
18436
|
*/
|
|
18437
18437
|
adAccountId?: string;
|
|
18438
18438
|
/**
|
|
18439
|
-
*
|
|
18439
|
+
* Restrict the tree to a single campaign by its platform campaign id (the id the platform assigns, e.g. Meta's numeric campaign id). Filters the campaign set itself, so it works regardless of account size and pagination — pass this when you already hold a campaign id instead of paging the tree to find it. Mirrors the `campaignId` filter on GET /v1/ads.
|
|
18440
|
+
*/
|
|
18441
|
+
campaignId?: string;
|
|
18442
|
+
/**
|
|
18443
|
+
* Start of the METRICS date range (YYYY-MM-DD). Affects only the spend/impression numbers overlaid on each node, NOT which campaigns are returned. Defaults to 90 days ago.
|
|
18440
18444
|
*/
|
|
18441
18445
|
fromDate?: string;
|
|
18442
18446
|
/**
|
|
@@ -20300,7 +20304,7 @@ type GetConversionsQualityError = ({
|
|
|
20300
20304
|
type SendConversionsData = {
|
|
20301
20305
|
body: {
|
|
20302
20306
|
/**
|
|
20303
|
-
* SocialAccount ID (metaads, googleads, or
|
|
20307
|
+
* SocialAccount ID (metaads, googleads, linkedinads, or tiktokads).
|
|
20304
20308
|
*/
|
|
20305
20309
|
accountId: string;
|
|
20306
20310
|
/**
|
|
@@ -20329,7 +20333,7 @@ type SendConversionsData = {
|
|
|
20329
20333
|
};
|
|
20330
20334
|
};
|
|
20331
20335
|
type SendConversionsResponse = ({
|
|
20332
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads';
|
|
20336
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads';
|
|
20333
20337
|
/**
|
|
20334
20338
|
* Events accepted by the platform.
|
|
20335
20339
|
*/
|
|
@@ -20437,13 +20441,13 @@ type AdjustConversionsError = (unknown | {
|
|
|
20437
20441
|
type ListConversionDestinationsData = {
|
|
20438
20442
|
path: {
|
|
20439
20443
|
/**
|
|
20440
|
-
* SocialAccount ID (metaads, googleads, or
|
|
20444
|
+
* SocialAccount ID (metaads, googleads, linkedinads, or tiktokads).
|
|
20441
20445
|
*/
|
|
20442
20446
|
accountId: string;
|
|
20443
20447
|
};
|
|
20444
20448
|
};
|
|
20445
20449
|
type ListConversionDestinationsResponse = ({
|
|
20446
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads';
|
|
20450
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads';
|
|
20447
20451
|
destinations?: Array<{
|
|
20448
20452
|
/**
|
|
20449
20453
|
* Destination identifier. Meta: pixel ID. Google:
|
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.262",
|
|
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.262",
|
|
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
|
@@ -5221,12 +5221,18 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
|
|
|
5221
5221
|
* - Meta (`metaads`) via Graph API
|
|
5222
5222
|
* - Google Ads (`googleads`) via Data Manager API `ingestEvents`
|
|
5223
5223
|
* - LinkedIn (`linkedinads`) via `/rest/conversionEvents`
|
|
5224
|
+
* - TikTok (`tiktokads`) via the Offline Events API `/offline/batch/` — OFFLINE conversions only
|
|
5224
5225
|
*
|
|
5225
5226
|
* `destinationId` semantics differ per platform:
|
|
5226
5227
|
*
|
|
5227
5228
|
* - Meta: pixel (dataset) ID, e.g. `123456789012345`
|
|
5228
5229
|
* - Google: conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321`
|
|
5229
5230
|
* - LinkedIn: conversion rule ID or URN, e.g. `104012` or `urn:lla:llaPartnerConversion:104012`
|
|
5231
|
+
* - TikTok: Offline Event Set ID, e.g. `7057103914977558530`
|
|
5232
|
+
*
|
|
5233
|
+
* TikTok notes: this path sends OFFLINE conversions (in-store / CRM / call-center), not web-pixel
|
|
5234
|
+
* events. Each event must carry an email or phone (TikTok requires at least one). The connected
|
|
5235
|
+
* TikTok ads account must have granted the Offline Events permission; older grants must reconnect.
|
|
5230
5236
|
*
|
|
5231
5237
|
* Callers can list valid destinations via `GET /v1/accounts/{accountId}/conversion-destinations`.
|
|
5232
5238
|
*
|
|
@@ -5329,9 +5335,15 @@ export const listConversionDestinations = <ThrowOnError extends boolean = false>
|
|
|
5329
5335
|
* LinkedIn (conversion rule) and Google Ads (conversion action). Meta
|
|
5330
5336
|
* manages destinations in its own UI and returns 405.
|
|
5331
5337
|
*
|
|
5332
|
-
* **
|
|
5338
|
+
* **LinkedIn:** creation is NOT idempotent. A retry creates a second
|
|
5333
5339
|
* destination. Deduplicate before retrying.
|
|
5334
5340
|
*
|
|
5341
|
+
* **Google Ads:** calling with a name that already exists reuses the
|
|
5342
|
+
* existing conversion action transparently (the response is identical to
|
|
5343
|
+
* a fresh create). Calling with the same name but a different category
|
|
5344
|
+
* returns a typed `IDEMPOTENCY_CONFLICT` (409) rather than silently
|
|
5345
|
+
* returning the mismatched action.
|
|
5346
|
+
*
|
|
5335
5347
|
* **LinkedIn:** the rule is created with `conversionMethod=CONVERSIONS_API`
|
|
5336
5348
|
* and (by default) auto-associated with all of the ad account's campaigns
|
|
5337
5349
|
* via `autoAssociationType=ALL_CAMPAIGNS`. Pass `autoAssociationType: NONE`
|
|
@@ -18904,7 +18904,11 @@ export type GetAdTreeData = {
|
|
|
18904
18904
|
*/
|
|
18905
18905
|
adAccountId?: string;
|
|
18906
18906
|
/**
|
|
18907
|
-
*
|
|
18907
|
+
* Restrict the tree to a single campaign by its platform campaign id (the id the platform assigns, e.g. Meta's numeric campaign id). Filters the campaign set itself, so it works regardless of account size and pagination — pass this when you already hold a campaign id instead of paging the tree to find it. Mirrors the `campaignId` filter on GET /v1/ads.
|
|
18908
|
+
*/
|
|
18909
|
+
campaignId?: string;
|
|
18910
|
+
/**
|
|
18911
|
+
* Start of the METRICS date range (YYYY-MM-DD). Affects only the spend/impression numbers overlaid on each node, NOT which campaigns are returned. Defaults to 90 days ago.
|
|
18908
18912
|
*/
|
|
18909
18913
|
fromDate?: string;
|
|
18910
18914
|
/**
|
|
@@ -20861,7 +20865,7 @@ export type GetConversionsQualityError = ({
|
|
|
20861
20865
|
export type SendConversionsData = {
|
|
20862
20866
|
body: {
|
|
20863
20867
|
/**
|
|
20864
|
-
* SocialAccount ID (metaads, googleads, or
|
|
20868
|
+
* SocialAccount ID (metaads, googleads, linkedinads, or tiktokads).
|
|
20865
20869
|
*/
|
|
20866
20870
|
accountId: string;
|
|
20867
20871
|
/**
|
|
@@ -20891,7 +20895,7 @@ export type SendConversionsData = {
|
|
|
20891
20895
|
};
|
|
20892
20896
|
|
|
20893
20897
|
export type SendConversionsResponse = ({
|
|
20894
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads';
|
|
20898
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads';
|
|
20895
20899
|
/**
|
|
20896
20900
|
* Events accepted by the platform.
|
|
20897
20901
|
*/
|
|
@@ -21004,14 +21008,14 @@ export type AdjustConversionsError = (unknown | {
|
|
|
21004
21008
|
export type ListConversionDestinationsData = {
|
|
21005
21009
|
path: {
|
|
21006
21010
|
/**
|
|
21007
|
-
* SocialAccount ID (metaads, googleads, or
|
|
21011
|
+
* SocialAccount ID (metaads, googleads, linkedinads, or tiktokads).
|
|
21008
21012
|
*/
|
|
21009
21013
|
accountId: string;
|
|
21010
21014
|
};
|
|
21011
21015
|
};
|
|
21012
21016
|
|
|
21013
21017
|
export type ListConversionDestinationsResponse = ({
|
|
21014
|
-
platform?: 'metaads' | 'googleads' | 'linkedinads';
|
|
21018
|
+
platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads';
|
|
21015
21019
|
destinations?: Array<{
|
|
21016
21020
|
/**
|
|
21017
21021
|
* Destination identifier. Meta: pixel ID. Google:
|