@getlatedev/node 0.2.1718 → 0.2.1720

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
@@ -73600,6 +73600,10 @@ type GetEventsOverviewDailyResponse = ({
73600
73600
  * The period's events that count as campaign results, the ones looked up for a campaign.
73601
73601
  */
73602
73602
  counted?: number;
73603
+ /**
73604
+ * Of the counted events, those that came from an ad: they named a campaign or carried a UTM campaign, a Google click id or a Zernio ad id (`zrn`), their own or the website visit's behind them. `matched` over `fromAds` is the share tied to a campaign.
73605
+ */
73606
+ fromAds?: number;
73603
73607
  };
73604
73608
  /**
73605
73609
  * Every day of the period, oldest first, zero where nothing happened.
@@ -73718,6 +73722,25 @@ type GetEventResponse = ({
73718
73722
  errorCode?: (string) | null;
73719
73723
  sentAt?: string;
73720
73724
  }>;
73725
+ /**
73726
+ * The touches of the person before the event that its credit is split across, oldest first: website visits from somewhere (an ad click, search, a tagged link) and earlier lead forms or sales. Empty when the event counts whole for its own campaign under every model.
73727
+ */
73728
+ touches?: Array<{
73729
+ at?: string;
73730
+ kind?: 'ad_click' | 'paid' | 'email' | 'social' | 'campaign' | 'organic_search' | 'ai_assistant' | 'referral' | 'lead_form' | 'event';
73731
+ platform?: (string) | null;
73732
+ adAccountId?: (string) | null;
73733
+ /**
73734
+ * The campaign the touch resolved to; null for a touch that named none (search, referral).
73735
+ */
73736
+ campaignId?: (string) | null;
73737
+ /**
73738
+ * The share of the event (0 to 1) this touch gets per model: first_touch, last_non_direct, linear, position_based, time_decay.
73739
+ */
73740
+ credit?: {
73741
+ [key: string]: (number);
73742
+ };
73743
+ }>;
73721
73744
  });
73722
73745
  type GetEventError = (ErrorResponse | {
73723
73746
  error?: string;
package/dist/index.d.ts CHANGED
@@ -73600,6 +73600,10 @@ type GetEventsOverviewDailyResponse = ({
73600
73600
  * The period's events that count as campaign results, the ones looked up for a campaign.
73601
73601
  */
73602
73602
  counted?: number;
73603
+ /**
73604
+ * Of the counted events, those that came from an ad: they named a campaign or carried a UTM campaign, a Google click id or a Zernio ad id (`zrn`), their own or the website visit's behind them. `matched` over `fromAds` is the share tied to a campaign.
73605
+ */
73606
+ fromAds?: number;
73603
73607
  };
73604
73608
  /**
73605
73609
  * Every day of the period, oldest first, zero where nothing happened.
@@ -73718,6 +73722,25 @@ type GetEventResponse = ({
73718
73722
  errorCode?: (string) | null;
73719
73723
  sentAt?: string;
73720
73724
  }>;
73725
+ /**
73726
+ * The touches of the person before the event that its credit is split across, oldest first: website visits from somewhere (an ad click, search, a tagged link) and earlier lead forms or sales. Empty when the event counts whole for its own campaign under every model.
73727
+ */
73728
+ touches?: Array<{
73729
+ at?: string;
73730
+ kind?: 'ad_click' | 'paid' | 'email' | 'social' | 'campaign' | 'organic_search' | 'ai_assistant' | 'referral' | 'lead_form' | 'event';
73731
+ platform?: (string) | null;
73732
+ adAccountId?: (string) | null;
73733
+ /**
73734
+ * The campaign the touch resolved to; null for a touch that named none (search, referral).
73735
+ */
73736
+ campaignId?: (string) | null;
73737
+ /**
73738
+ * The share of the event (0 to 1) this touch gets per model: first_touch, last_non_direct, linear, position_based, time_decay.
73739
+ */
73740
+ credit?: {
73741
+ [key: string]: (number);
73742
+ };
73743
+ }>;
73721
73744
  });
73722
73745
  type GetEventError = (ErrorResponse | {
73723
73746
  error?: 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.1718",
39
+ version: "0.2.1720",
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.1718",
8
+ version: "0.2.1720",
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.1718",
3
+ "version": "0.2.1720",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -75385,6 +75385,10 @@ export type GetEventsOverviewDailyResponse = ({
75385
75385
  * The period's events that count as campaign results, the ones looked up for a campaign.
75386
75386
  */
75387
75387
  counted?: number;
75388
+ /**
75389
+ * Of the counted events, those that came from an ad: they named a campaign or carried a UTM campaign, a Google click id or a Zernio ad id (`zrn`), their own or the website visit's behind them. `matched` over `fromAds` is the share tied to a campaign.
75390
+ */
75391
+ fromAds?: number;
75388
75392
  };
75389
75393
  /**
75390
75394
  * Every day of the period, oldest first, zero where nothing happened.
@@ -75509,6 +75513,25 @@ export type GetEventResponse = ({
75509
75513
  errorCode?: (string) | null;
75510
75514
  sentAt?: string;
75511
75515
  }>;
75516
+ /**
75517
+ * The touches of the person before the event that its credit is split across, oldest first: website visits from somewhere (an ad click, search, a tagged link) and earlier lead forms or sales. Empty when the event counts whole for its own campaign under every model.
75518
+ */
75519
+ touches?: Array<{
75520
+ at?: string;
75521
+ kind?: 'ad_click' | 'paid' | 'email' | 'social' | 'campaign' | 'organic_search' | 'ai_assistant' | 'referral' | 'lead_form' | 'event';
75522
+ platform?: (string) | null;
75523
+ adAccountId?: (string) | null;
75524
+ /**
75525
+ * The campaign the touch resolved to; null for a touch that named none (search, referral).
75526
+ */
75527
+ campaignId?: (string) | null;
75528
+ /**
75529
+ * The share of the event (0 to 1) this touch gets per model: first_touch, last_non_direct, linear, position_based, time_decay.
75530
+ */
75531
+ credit?: {
75532
+ [key: string]: (number);
75533
+ };
75534
+ }>;
75512
75535
  });
75513
75536
 
75514
75537
  export type GetEventError = (ErrorResponse | {