@getlatedev/node 0.2.1734 → 0.2.1735

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 CHANGED
@@ -78365,7 +78365,7 @@ type SendConversionsData = {
78365
78365
  };
78366
78366
  };
78367
78367
  type SendConversionsResponse = ({
78368
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
78368
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
78369
78369
  /**
78370
78370
  * Events accepted by the platform.
78371
78371
  */
@@ -78954,7 +78954,7 @@ type SendEventsResponse = ({
78954
78954
  destinations?: Array<{
78955
78955
  accountId?: string;
78956
78956
  destinationId?: string;
78957
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
78957
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
78958
78958
  /**
78959
78959
  * Events the platform accepted.
78960
78960
  */
@@ -79667,7 +79667,7 @@ type GetEventResponse = ({
79667
79667
  deliveries?: Array<{
79668
79668
  accountId?: string;
79669
79669
  destinationId?: string;
79670
- platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads') | null;
79670
+ platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads') | null;
79671
79671
  /**
79672
79672
  * `dropped`: not sent because the visitor did not consent; `errorCode` says why (`consent_denied` or `consent_missing`).
79673
79673
  */
@@ -80209,7 +80209,7 @@ type ListAdConversionDestinationsData = {
80209
80209
  };
80210
80210
  };
80211
80211
  type ListAdConversionDestinationsResponse = ({
80212
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
80212
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
80213
80213
  destinations?: Array<{
80214
80214
  /**
80215
80215
  * Destination identifier. Meta: pixel ID. Google:
@@ -80618,7 +80618,7 @@ type ListConversionDestinationsData = {
80618
80618
  };
80619
80619
  };
80620
80620
  type ListConversionDestinationsResponse = ({
80621
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
80621
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
80622
80622
  destinations?: Array<{
80623
80623
  /**
80624
80624
  * Destination identifier. Meta: pixel ID. Google:
package/dist/index.d.ts CHANGED
@@ -78365,7 +78365,7 @@ type SendConversionsData = {
78365
78365
  };
78366
78366
  };
78367
78367
  type SendConversionsResponse = ({
78368
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
78368
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
78369
78369
  /**
78370
78370
  * Events accepted by the platform.
78371
78371
  */
@@ -78954,7 +78954,7 @@ type SendEventsResponse = ({
78954
78954
  destinations?: Array<{
78955
78955
  accountId?: string;
78956
78956
  destinationId?: string;
78957
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
78957
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
78958
78958
  /**
78959
78959
  * Events the platform accepted.
78960
78960
  */
@@ -79667,7 +79667,7 @@ type GetEventResponse = ({
79667
79667
  deliveries?: Array<{
79668
79668
  accountId?: string;
79669
79669
  destinationId?: string;
79670
- platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads') | null;
79670
+ platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads') | null;
79671
79671
  /**
79672
79672
  * `dropped`: not sent because the visitor did not consent; `errorCode` says why (`consent_denied` or `consent_missing`).
79673
79673
  */
@@ -80209,7 +80209,7 @@ type ListAdConversionDestinationsData = {
80209
80209
  };
80210
80210
  };
80211
80211
  type ListAdConversionDestinationsResponse = ({
80212
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
80212
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
80213
80213
  destinations?: Array<{
80214
80214
  /**
80215
80215
  * Destination identifier. Meta: pixel ID. Google:
@@ -80618,7 +80618,7 @@ type ListConversionDestinationsData = {
80618
80618
  };
80619
80619
  };
80620
80620
  type ListConversionDestinationsResponse = ({
80621
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
80621
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
80622
80622
  destinations?: Array<{
80623
80623
  /**
80624
80624
  * 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.1734",
39
+ version: "0.2.1735",
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.1734",
8
+ version: "0.2.1735",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1734",
3
+ "version": "0.2.1735",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21033,7 +21033,7 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
21033
21033
  *
21034
21034
  * ### TikTok notes
21035
21035
  *
21036
- * This path sends OFFLINE conversions (in-store / CRM / call-center), not web-pixel events. Each event must carry an email or phone (TikTok requires at least one).
21036
+ * Two kinds of destination. A TikTok pixel (`destinationId` `pixel:<pixelCode>`, as listed by the destinations endpoint) takes website events through the Events API and honours `testCode`. An offline event set (its numeric id) takes in-store, CRM and call-center conversions; each of those events must carry an email or phone.
21037
21037
  *
21038
21038
  * The connected TikTok ads account must have granted the Offline Events permission; older grants must reconnect.
21039
21039
  *
@@ -21058,6 +21058,8 @@ export const getConversionsQuality = <ThrowOnError extends boolean = false>(opti
21058
21058
  * - LinkedIn: 5000, all-or-nothing per chunk.
21059
21059
  * - OpenAI Ads: 1000 per request. Larger submissions are split into 1000-event chunks, each all-or-nothing (a malformed event fails every event in that chunk, not the whole request).
21060
21060
  * - Reddit: works the same way as OpenAI Ads, in chunks of 1000.
21061
+ * - TikTok: 1000. Microsoft: its offline conversion cap per request. X: 500. Other destinations are sent in their platform's own batch size or one event at a time.
21062
+ * - An event a platform would refuse (too old, no usable identifier) is listed in `failures` and the rest of its chunk is still sent, except on Google Ads and OpenAI Ads.
21061
21063
  *
21062
21064
  * ### Dedup
21063
21065
  *
@@ -80276,7 +80276,7 @@ export type SendConversionsData = {
80276
80276
  };
80277
80277
 
80278
80278
  export type SendConversionsResponse = ({
80279
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
80279
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
80280
80280
  /**
80281
80281
  * Events accepted by the platform.
80282
80282
  */
@@ -80901,7 +80901,7 @@ export type SendEventsResponse = ({
80901
80901
  destinations?: Array<{
80902
80902
  accountId?: string;
80903
80903
  destinationId?: string;
80904
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
80904
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
80905
80905
  /**
80906
80906
  * Events the platform accepted.
80907
80907
  */
@@ -81638,7 +81638,7 @@ export type GetEventResponse = ({
81638
81638
  deliveries?: Array<{
81639
81639
  accountId?: string;
81640
81640
  destinationId?: string;
81641
- platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads') | null;
81641
+ platform?: ('metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads') | null;
81642
81642
  /**
81643
81643
  * `dropped`: not sent because the visitor did not consent; `errorCode` says why (`consent_denied` or `consent_missing`).
81644
81644
  */
@@ -82258,7 +82258,7 @@ export type ListAdConversionDestinationsData = {
82258
82258
  };
82259
82259
 
82260
82260
  export type ListAdConversionDestinationsResponse = ({
82261
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
82261
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
82262
82262
  destinations?: Array<{
82263
82263
  /**
82264
82264
  * Destination identifier. Meta: pixel ID. Google:
@@ -82700,7 +82700,7 @@ export type ListConversionDestinationsData = {
82700
82700
  };
82701
82701
 
82702
82702
  export type ListConversionDestinationsResponse = ({
82703
- platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads';
82703
+ platform?: 'metaads' | 'googleads' | 'linkedinads' | 'tiktokads' | 'openaiads' | 'pinterestads' | 'redditads' | 'applovinads' | 'microsoftads' | 'xads' | 'snapchatads' | 'taboolaads' | 'googleanalytics' | 'klaviyo' | 'attentive' | 'impact' | 'awin' | 'campaignmanager360' | 'tradedeskads' | 'amazonads';
82704
82704
  destinations?: Array<{
82705
82705
  /**
82706
82706
  * Destination identifier. Meta: pixel ID. Google: