@getlatedev/node 0.2.1738 → 0.2.1740
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 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -3
- package/src/generated/types.gen.ts +6 -4
package/dist/index.d.mts
CHANGED
|
@@ -68971,15 +68971,17 @@ type UpdateAdData = {
|
|
|
68971
68971
|
*/
|
|
68972
68972
|
squareImageUrl?: string;
|
|
68973
68973
|
/**
|
|
68974
|
-
* Primary text. On a Meta asset_feed creative it replaces the feed's only body option (422 when it has several: send `bodies`).
|
|
68974
|
+
* Primary text. On a Meta asset_feed creative it replaces the feed's only body option and the story text (422 when it has several: send `bodies`). Sent with `bodies`, it sets the story's fallback primary text (`link_data.message` or `video_data.message`) while `bodies` replaces the options.
|
|
68975
68975
|
*/
|
|
68976
68976
|
body?: string;
|
|
68977
68977
|
/**
|
|
68978
|
-
* Meta only. The primary text options of an asset_feed creative, one text per option in the order GET /v1/ads/{adId} returns them. Each replaces the option in its position and keeps its rule.
|
|
68978
|
+
* Meta only. The primary text options of an asset_feed creative, one text per option in the order GET /v1/ads/{adId} returns them. Each replaces the option in its position and keeps its rule.
|
|
68979
|
+
*
|
|
68980
|
+
* A different count returns 422, as does a single-text creative (send `body`). Add `body` to set the story's fallback text as well.
|
|
68979
68981
|
*/
|
|
68980
68982
|
bodies?: Array<(string)>;
|
|
68981
68983
|
/**
|
|
68982
|
-
* Meta only. Same as `bodies`, for the headline options (Meta `asset_feed_spec.titles`).
|
|
68984
|
+
* Meta only. Same as `bodies`, for the headline options (Meta `asset_feed_spec.titles`). Add `headline` to set the story's fallback title. Not the top-level Google `headlines`.
|
|
68983
68985
|
*/
|
|
68984
68986
|
headlines?: Array<(string)>;
|
|
68985
68987
|
/**
|
|
@@ -68987,7 +68989,7 @@ type UpdateAdData = {
|
|
|
68987
68989
|
*/
|
|
68988
68990
|
description?: string;
|
|
68989
68991
|
/**
|
|
68990
|
-
* Meta only. Same as `bodies`, for the description options.
|
|
68992
|
+
* Meta only. Same as `bodies`, for the description options. Add `description` to set the story's fallback description. Not the top-level Google `descriptions`.
|
|
68991
68993
|
*/
|
|
68992
68994
|
descriptions?: Array<(string)>;
|
|
68993
68995
|
callToAction?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -68971,15 +68971,17 @@ type UpdateAdData = {
|
|
|
68971
68971
|
*/
|
|
68972
68972
|
squareImageUrl?: string;
|
|
68973
68973
|
/**
|
|
68974
|
-
* Primary text. On a Meta asset_feed creative it replaces the feed's only body option (422 when it has several: send `bodies`).
|
|
68974
|
+
* Primary text. On a Meta asset_feed creative it replaces the feed's only body option and the story text (422 when it has several: send `bodies`). Sent with `bodies`, it sets the story's fallback primary text (`link_data.message` or `video_data.message`) while `bodies` replaces the options.
|
|
68975
68975
|
*/
|
|
68976
68976
|
body?: string;
|
|
68977
68977
|
/**
|
|
68978
|
-
* Meta only. The primary text options of an asset_feed creative, one text per option in the order GET /v1/ads/{adId} returns them. Each replaces the option in its position and keeps its rule.
|
|
68978
|
+
* Meta only. The primary text options of an asset_feed creative, one text per option in the order GET /v1/ads/{adId} returns them. Each replaces the option in its position and keeps its rule.
|
|
68979
|
+
*
|
|
68980
|
+
* A different count returns 422, as does a single-text creative (send `body`). Add `body` to set the story's fallback text as well.
|
|
68979
68981
|
*/
|
|
68980
68982
|
bodies?: Array<(string)>;
|
|
68981
68983
|
/**
|
|
68982
|
-
* Meta only. Same as `bodies`, for the headline options (Meta `asset_feed_spec.titles`).
|
|
68984
|
+
* Meta only. Same as `bodies`, for the headline options (Meta `asset_feed_spec.titles`). Add `headline` to set the story's fallback title. Not the top-level Google `headlines`.
|
|
68983
68985
|
*/
|
|
68984
68986
|
headlines?: Array<(string)>;
|
|
68985
68987
|
/**
|
|
@@ -68987,7 +68989,7 @@ type UpdateAdData = {
|
|
|
68987
68989
|
*/
|
|
68988
68990
|
description?: string;
|
|
68989
68991
|
/**
|
|
68990
|
-
* Meta only. Same as `bodies`, for the description options.
|
|
68992
|
+
* Meta only. Same as `bodies`, for the description options. Add `description` to set the story's fallback description. Not the top-level Google `descriptions`.
|
|
68991
68993
|
*/
|
|
68992
68994
|
descriptions?: Array<(string)>;
|
|
68993
68995
|
callToAction?: string;
|
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.1740",
|
|
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.1740",
|
|
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
|
@@ -20984,7 +20984,7 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
|
|
|
20984
20984
|
* - Meta: pixel (dataset) ID, e.g. `123456789012345`
|
|
20985
20985
|
* - Google: conversion action resource name, e.g. `customers/1234567890/conversionActions/987654321`
|
|
20986
20986
|
* - LinkedIn: conversion rule ID or URN, e.g. `104012` or `urn:lla:llaPartnerConversion:104012`
|
|
20987
|
-
* - TikTok: Offline Event Set ID, e.g. `7057103914977558530`
|
|
20987
|
+
* - TikTok: Offline Event Set ID, e.g. `7057103914977558530`. An Offline Event Set has no test mode, so an event with `testCode` is not sent (code `TEST_MODE_UNSUPPORTED`).
|
|
20988
20988
|
* - OpenAI Ads: pixel wire id (numeric `pixel_id`, distinct from the internal pixel id), as returned by `GET /v1/ads/conversions/destinations`
|
|
20989
20989
|
* - Pinterest: numeric ad account id, e.g. `549755885175` (Pinterest attributes to the ad account, not to a tag)
|
|
20990
20990
|
* - Reddit: pixel id, e.g. `a2_abc123`, as returned by `GET /v1/ads/conversions/destinations` (any other shape returns 400)
|
|
@@ -20993,12 +20993,13 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
|
|
|
20993
20993
|
* - Microsoft has no test mode: with `testCode`, UET events are sent with ad storage denied, which Microsoft excludes from conversion attribution and retargeting.
|
|
20994
20994
|
* - X Ads: X Pixel event id, e.g. `tw-rbhhj-rcfms`. Each event needs `clickIds.twclid`, an `email`, a `phone`, or `ipAddress` plus `userAgent`; the event decides the type and `eventId` is sent as `conversion_id`.
|
|
20995
20995
|
* - Snapchat: the connection's Snap Pixel ID, e.g. `1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d`. Each event needs an `email`, a `phone`, or `ipAddress` plus `userAgent`; website events also need `sourceUrl`. With `testCode`, events go to Snap's validate endpoint and are not recorded.
|
|
20996
|
-
* - Taboola: the connection's numeric Taboola Account ID, e.g. `1234567`. Each event needs `clickIds.tblci`. `eventName` is sent as is and must equal the Event Name of a conversion rule in Realize (case-sensitive). Taboola has no test mode, so `testCode` is
|
|
20997
|
-
* - Klaviyo: the connection's Klaviyo account id. Each event needs an unhashed `email`, a `phone` with its country code, or an `externalId`; `eventId` is the `unique_id`. Klaviyo has no test mode, so
|
|
20996
|
+
* - Taboola: the connection's numeric Taboola Account ID, e.g. `1234567`. Each event needs `clickIds.tblci`. `eventName` is sent as is and must equal the Event Name of a conversion rule in Realize (case-sensitive). Taboola has no test mode, so an event with `testCode` is not sent (code `TEST_MODE_UNSUPPORTED`).
|
|
20997
|
+
* - Klaviyo: the connection's Klaviyo account id. Each event needs an unhashed `email`, a `phone` with its country code, or an `externalId`; `eventId` is the `unique_id`. Klaviyo has no test mode, so an event with `testCode` is not sent (code `TEST_MODE_UNSUPPORTED`).
|
|
20998
20998
|
* - Klaviyo metrics: `Purchase` is `Placed Order`, `InitiateCheckout` `Started Checkout`, `ViewContent` `Viewed Product`, `AddToCart` `Added to Cart`; any other name is a metric of that name.
|
|
20999
20999
|
* - Attentive: the connection's Attentive company id. `Purchase`, `AddToCart` and `ViewContent` with priced `items` go to the eCommerce endpoints; every other event goes out as a custom event named `eventName`. Each event needs an unhashed `email`, a `phone` with its country code, or an `externalId`. A `testCode` is refused.
|
|
21000
21000
|
* - Impact: `<program id>:<event type id>`, e.g. `12345:67890`. Each event needs `clickIds.irclickid`, an `externalId` (sent as `CustomerId`) or `platformData.promo_code`; the email is sent SHA-256 hashed. Priced `items` are sent as item lines, otherwise `value` as the order subtotal. A `testCode` is refused: credit a test partner instead.
|
|
21001
21001
|
* - Awin: the connection's advertiser id. Each event needs `clickIds.awc` (or `platformData.voucher`), `value` and `currency`; `value` is the order amount on the `DEFAULT` commission group (`platformData.commission_group` overrides it). With `testCode`, orders are sent with `isTest` and not tracked.
|
|
21002
|
+
* - Attentive and Impact have no test mode, so an event with `testCode` is not sent (code `TEST_MODE_UNSUPPORTED`).
|
|
21002
21003
|
* - Impact and Awin refuse browsing and funnel steps (`ViewContent`, `AddToCart`, `InitiateCheckout` and the like): they pay a partner for every conversion they get.
|
|
21003
21004
|
* - Campaign Manager 360: `<floodlightConfigurationId>:<floodlightActivityId>`, e.g. `1234567:7654321`. Each event needs `clickIds.gclid` or `clickIds.dclid` (a hashed email or phone only enhances it); `eventId` is the transaction id Google dedups on. With `testCode`, events are only validated (`validateOnly`) and not recorded.
|
|
21004
21005
|
* - The Trade Desk: the connection's tracking tag id, e.g. `abc1234`. Each event needs `clickIds.tdid`, `clickIds.uid2` or `clickIds.uid2Token`; `eventId` is sent as `order_id`. TTD has no test mode, so an event with `testCode` is not sent (code `TEST_MODE_UNSUPPORTED`).
|
|
@@ -70365,15 +70365,17 @@ export type UpdateAdData = {
|
|
|
70365
70365
|
*/
|
|
70366
70366
|
squareImageUrl?: string;
|
|
70367
70367
|
/**
|
|
70368
|
-
* Primary text. On a Meta asset_feed creative it replaces the feed's only body option (422 when it has several: send `bodies`).
|
|
70368
|
+
* Primary text. On a Meta asset_feed creative it replaces the feed's only body option and the story text (422 when it has several: send `bodies`). Sent with `bodies`, it sets the story's fallback primary text (`link_data.message` or `video_data.message`) while `bodies` replaces the options.
|
|
70369
70369
|
*/
|
|
70370
70370
|
body?: string;
|
|
70371
70371
|
/**
|
|
70372
|
-
* Meta only. The primary text options of an asset_feed creative, one text per option in the order GET /v1/ads/{adId} returns them. Each replaces the option in its position and keeps its rule.
|
|
70372
|
+
* Meta only. The primary text options of an asset_feed creative, one text per option in the order GET /v1/ads/{adId} returns them. Each replaces the option in its position and keeps its rule.
|
|
70373
|
+
*
|
|
70374
|
+
* A different count returns 422, as does a single-text creative (send `body`). Add `body` to set the story's fallback text as well.
|
|
70373
70375
|
*/
|
|
70374
70376
|
bodies?: Array<(string)>;
|
|
70375
70377
|
/**
|
|
70376
|
-
* Meta only. Same as `bodies`, for the headline options (Meta `asset_feed_spec.titles`).
|
|
70378
|
+
* Meta only. Same as `bodies`, for the headline options (Meta `asset_feed_spec.titles`). Add `headline` to set the story's fallback title. Not the top-level Google `headlines`.
|
|
70377
70379
|
*/
|
|
70378
70380
|
headlines?: Array<(string)>;
|
|
70379
70381
|
/**
|
|
@@ -70381,7 +70383,7 @@ export type UpdateAdData = {
|
|
|
70381
70383
|
*/
|
|
70382
70384
|
description?: string;
|
|
70383
70385
|
/**
|
|
70384
|
-
* Meta only. Same as `bodies`, for the description options.
|
|
70386
|
+
* Meta only. Same as `bodies`, for the description options. Add `description` to set the story's fallback description. Not the top-level Google `descriptions`.
|
|
70385
70387
|
*/
|
|
70386
70388
|
descriptions?: Array<(string)>;
|
|
70387
70389
|
callToAction?: string;
|