@getlatedev/node 0.2.1714 → 0.2.1715
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 +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -0
- package/src/generated/types.gen.ts +14 -2
package/dist/index.d.mts
CHANGED
|
@@ -10708,6 +10708,14 @@ type ConversionEvent = {
|
|
|
10708
10708
|
* Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed.
|
|
10709
10709
|
*/
|
|
10710
10710
|
axwrt?: string;
|
|
10711
|
+
/**
|
|
10712
|
+
* X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed.
|
|
10713
|
+
*/
|
|
10714
|
+
twclid?: string;
|
|
10715
|
+
/**
|
|
10716
|
+
* Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId`, not hashed.
|
|
10717
|
+
*/
|
|
10718
|
+
msclkid?: string;
|
|
10711
10719
|
};
|
|
10712
10720
|
};
|
|
10713
10721
|
/**
|
|
@@ -73955,7 +73963,9 @@ type ListAdConversionDestinationsResponse = ({
|
|
|
73955
73963
|
* Destination identifier. Meta: pixel ID. Google:
|
|
73956
73964
|
* conversion action resource name. LinkedIn:
|
|
73957
73965
|
* numeric conversion rule ID. OpenAI Ads: pixel wire
|
|
73958
|
-
* id. Reddit: pixel id (`a2_...`).
|
|
73966
|
+
* id. Reddit: pixel id (`a2_...`). Microsoft
|
|
73967
|
+
* Advertising: `accounts/{id}/conversionGoals/{id}`.
|
|
73968
|
+
* X Ads: pixel event id (`tw-...`).
|
|
73959
73969
|
*
|
|
73960
73970
|
*/
|
|
73961
73971
|
id?: string;
|
|
@@ -74359,7 +74369,9 @@ type ListConversionDestinationsResponse = ({
|
|
|
74359
74369
|
* Destination identifier. Meta: pixel ID. Google:
|
|
74360
74370
|
* conversion action resource name. LinkedIn:
|
|
74361
74371
|
* numeric conversion rule ID. OpenAI Ads: pixel wire
|
|
74362
|
-
* id. Reddit: pixel id (`a2_...`).
|
|
74372
|
+
* id. Reddit: pixel id (`a2_...`). Microsoft
|
|
74373
|
+
* Advertising: `accounts/{id}/conversionGoals/{id}`.
|
|
74374
|
+
* X Ads: pixel event id (`tw-...`).
|
|
74363
74375
|
*
|
|
74364
74376
|
*/
|
|
74365
74377
|
id?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -10708,6 +10708,14 @@ type ConversionEvent = {
|
|
|
10708
10708
|
* Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed.
|
|
10709
10709
|
*/
|
|
10710
10710
|
axwrt?: string;
|
|
10711
|
+
/**
|
|
10712
|
+
* X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed.
|
|
10713
|
+
*/
|
|
10714
|
+
twclid?: string;
|
|
10715
|
+
/**
|
|
10716
|
+
* Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId`, not hashed.
|
|
10717
|
+
*/
|
|
10718
|
+
msclkid?: string;
|
|
10711
10719
|
};
|
|
10712
10720
|
};
|
|
10713
10721
|
/**
|
|
@@ -73955,7 +73963,9 @@ type ListAdConversionDestinationsResponse = ({
|
|
|
73955
73963
|
* Destination identifier. Meta: pixel ID. Google:
|
|
73956
73964
|
* conversion action resource name. LinkedIn:
|
|
73957
73965
|
* numeric conversion rule ID. OpenAI Ads: pixel wire
|
|
73958
|
-
* id. Reddit: pixel id (`a2_...`).
|
|
73966
|
+
* id. Reddit: pixel id (`a2_...`). Microsoft
|
|
73967
|
+
* Advertising: `accounts/{id}/conversionGoals/{id}`.
|
|
73968
|
+
* X Ads: pixel event id (`tw-...`).
|
|
73959
73969
|
*
|
|
73960
73970
|
*/
|
|
73961
73971
|
id?: string;
|
|
@@ -74359,7 +74369,9 @@ type ListConversionDestinationsResponse = ({
|
|
|
74359
74369
|
* Destination identifier. Meta: pixel ID. Google:
|
|
74360
74370
|
* conversion action resource name. LinkedIn:
|
|
74361
74371
|
* numeric conversion rule ID. OpenAI Ads: pixel wire
|
|
74362
|
-
* id. Reddit: pixel id (`a2_...`).
|
|
74372
|
+
* id. Reddit: pixel id (`a2_...`). Microsoft
|
|
74373
|
+
* Advertising: `accounts/{id}/conversionGoals/{id}`.
|
|
74374
|
+
* X Ads: pixel event id (`tw-...`).
|
|
74363
74375
|
*
|
|
74364
74376
|
*/
|
|
74365
74377
|
id?: 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.1715",
|
|
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.1715",
|
|
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
|
@@ -19897,6 +19897,8 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
|
|
|
19897
19897
|
* - OpenAI Ads (`openaiads`) via its Conversions API (a separate host, `bzr.openai.com`)
|
|
19898
19898
|
* - Pinterest (`pinterestads`) via `POST /v5/ad_accounts/{id}/events`
|
|
19899
19899
|
* - Reddit (`redditads`) via the Reddit Conversions API (`POST /api/v3/pixels/{pixelId}/conversion_events`)
|
|
19900
|
+
* - Microsoft Advertising (`microsoftads`) via offline conversion uploads (`ApplyOfflineConversions`)
|
|
19901
|
+
* - X Ads (`xads`) via the X Conversion API (`POST /12/measurement/conversions/{pixelId}`)
|
|
19900
19902
|
*
|
|
19901
19903
|
* ### `destinationId` per platform
|
|
19902
19904
|
*
|
|
@@ -19907,6 +19909,8 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
|
|
|
19907
19909
|
* - OpenAI Ads: pixel wire id (numeric `pixel_id`, distinct from the internal pixel id), as returned by `GET /v1/ads/conversions/destinations`
|
|
19908
19910
|
* - Pinterest: numeric ad account id, e.g. `549755885175` (Pinterest attributes to the ad account, not to a tag)
|
|
19909
19911
|
* - Reddit: pixel id, e.g. `a2_abc123`, as returned by `GET /v1/ads/conversions/destinations` (any other shape returns 400)
|
|
19912
|
+
* - Microsoft Advertising: offline conversion goal, e.g. `accounts/123456789/conversionGoals/987654`. Each event needs `clickIds.msclkid`, an `email` or a `phone`; the goal decides the event type.
|
|
19913
|
+
* - 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`.
|
|
19910
19914
|
*
|
|
19911
19915
|
* Callers can list valid destinations via `GET /v1/ads/conversions/destinations`.
|
|
19912
19916
|
*
|
|
@@ -8554,6 +8554,14 @@ export type ConversionEvent = {
|
|
|
8554
8554
|
* Axon Pixel browser id (the `_axwrt` cookie). Sent to Axon as `user_data.axwrt`, not hashed.
|
|
8555
8555
|
*/
|
|
8556
8556
|
axwrt?: string;
|
|
8557
|
+
/**
|
|
8558
|
+
* X click ID (the `twclid` URL param X adds to ad clicks). Sent to X as a `twclid` identifier, not hashed.
|
|
8559
|
+
*/
|
|
8560
|
+
twclid?: string;
|
|
8561
|
+
/**
|
|
8562
|
+
* Microsoft Advertising click ID (the `msclkid` URL param Microsoft adds to ad clicks). Sent to Microsoft as `MicrosoftClickId`, not hashed.
|
|
8563
|
+
*/
|
|
8564
|
+
msclkid?: string;
|
|
8557
8565
|
};
|
|
8558
8566
|
};
|
|
8559
8567
|
/**
|
|
@@ -75797,7 +75805,9 @@ export type ListAdConversionDestinationsResponse = ({
|
|
|
75797
75805
|
* Destination identifier. Meta: pixel ID. Google:
|
|
75798
75806
|
* conversion action resource name. LinkedIn:
|
|
75799
75807
|
* numeric conversion rule ID. OpenAI Ads: pixel wire
|
|
75800
|
-
* id. Reddit: pixel id (`a2_...`).
|
|
75808
|
+
* id. Reddit: pixel id (`a2_...`). Microsoft
|
|
75809
|
+
* Advertising: `accounts/{id}/conversionGoals/{id}`.
|
|
75810
|
+
* X Ads: pixel event id (`tw-...`).
|
|
75801
75811
|
*
|
|
75802
75812
|
*/
|
|
75803
75813
|
id?: string;
|
|
@@ -76234,7 +76244,9 @@ export type ListConversionDestinationsResponse = ({
|
|
|
76234
76244
|
* Destination identifier. Meta: pixel ID. Google:
|
|
76235
76245
|
* conversion action resource name. LinkedIn:
|
|
76236
76246
|
* numeric conversion rule ID. OpenAI Ads: pixel wire
|
|
76237
|
-
* id. Reddit: pixel id (`a2_...`).
|
|
76247
|
+
* id. Reddit: pixel id (`a2_...`). Microsoft
|
|
76248
|
+
* Advertising: `accounts/{id}/conversionGoals/{id}`.
|
|
76249
|
+
* X Ads: pixel event id (`tw-...`).
|
|
76238
76250
|
*
|
|
76239
76251
|
*/
|
|
76240
76252
|
id?: string;
|