@getlatedev/node 0.2.1691 → 0.2.1693

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
@@ -20449,6 +20449,10 @@ type StoredEvent = {
20449
20449
  hasEmail?: boolean;
20450
20450
  hasPhone?: boolean;
20451
20451
  hasExternalId?: boolean;
20452
+ /**
20453
+ * In a `GET /v1/events` page: the other copy of the same conversion, when a website tag (`web`) and a server send both stored it under different event ids (same event name, a shared identifier, at most 30 minutes apart). `null` otherwise, and always `null` from `GET /v1/events/{eventId}`.
20454
+ */
20455
+ pairedEventId?: (string) | null;
20452
20456
  /**
20453
20457
  * The ad behind the event, when Zernio can name it. Google: from the click behind `clickIds.gclid` (synced daily from Google Ads click_view for clicks up to 14 days before the event; gbraid/wbraid clicks are not resolved). Meta: from the `zrn` ad id, for Meta ads Zernio holds. `null` otherwise.
20454
20458
  */
@@ -21339,6 +21343,19 @@ type TrackingSite = {
21339
21343
  target?: string;
21340
21344
  };
21341
21345
  } | null;
21346
+ /**
21347
+ * The path your server forwards to the collector, so the tag runs from the site's own domain. Null when it has none.
21348
+ */
21349
+ proxy?: {
21350
+ /**
21351
+ * Such as `/zt`: the snippet loads `https://<first domain>/zt/z.js`.
21352
+ */
21353
+ path?: string;
21354
+ /**
21355
+ * Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
21356
+ */
21357
+ secret?: (string) | null;
21358
+ } | null;
21342
21359
  consentMode?: TrackingSiteConsentMode;
21343
21360
  /**
21344
21361
  * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
@@ -72614,6 +72631,10 @@ type UpdateTrackingSiteData = {
72614
72631
  * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
72615
72632
  */
72616
72633
  customHostname?: (string) | null;
72634
+ /**
72635
+ * The path your server forwards to the collector, such as `/zt`. `null` removes it.
72636
+ */
72637
+ proxyPath?: (string) | null;
72617
72638
  };
72618
72639
  path: {
72619
72640
  siteId: string;
package/dist/index.d.ts CHANGED
@@ -20449,6 +20449,10 @@ type StoredEvent = {
20449
20449
  hasEmail?: boolean;
20450
20450
  hasPhone?: boolean;
20451
20451
  hasExternalId?: boolean;
20452
+ /**
20453
+ * In a `GET /v1/events` page: the other copy of the same conversion, when a website tag (`web`) and a server send both stored it under different event ids (same event name, a shared identifier, at most 30 minutes apart). `null` otherwise, and always `null` from `GET /v1/events/{eventId}`.
20454
+ */
20455
+ pairedEventId?: (string) | null;
20452
20456
  /**
20453
20457
  * The ad behind the event, when Zernio can name it. Google: from the click behind `clickIds.gclid` (synced daily from Google Ads click_view for clicks up to 14 days before the event; gbraid/wbraid clicks are not resolved). Meta: from the `zrn` ad id, for Meta ads Zernio holds. `null` otherwise.
20454
20458
  */
@@ -21339,6 +21343,19 @@ type TrackingSite = {
21339
21343
  target?: string;
21340
21344
  };
21341
21345
  } | null;
21346
+ /**
21347
+ * The path your server forwards to the collector, so the tag runs from the site's own domain. Null when it has none.
21348
+ */
21349
+ proxy?: {
21350
+ /**
21351
+ * Such as `/zt`: the snippet loads `https://<first domain>/zt/z.js`.
21352
+ */
21353
+ path?: string;
21354
+ /**
21355
+ * Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
21356
+ */
21357
+ secret?: (string) | null;
21358
+ } | null;
21342
21359
  consentMode?: TrackingSiteConsentMode;
21343
21360
  /**
21344
21361
  * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
@@ -72614,6 +72631,10 @@ type UpdateTrackingSiteData = {
72614
72631
  * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
72615
72632
  */
72616
72633
  customHostname?: (string) | null;
72634
+ /**
72635
+ * The path your server forwards to the collector, such as `/zt`. `null` removes it.
72636
+ */
72637
+ proxyPath?: (string) | null;
72617
72638
  };
72618
72639
  path: {
72619
72640
  siteId: 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.1691",
39
+ version: "0.2.1693",
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.1691",
8
+ version: "0.2.1693",
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.1691",
3
+ "version": "0.2.1693",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20115,10 +20115,12 @@ export const getTrackingSite = <ThrowOnError extends boolean = false>(options: O
20115
20115
 
20116
20116
  /**
20117
20117
  * Update a tracking site
20118
- * Changes the site's name, domains, consent mode or custom subdomain. Send at least one field.
20118
+ * Changes the site's name, domains, consent mode, custom subdomain or own-domain path. Send at least one field.
20119
20119
  *
20120
20120
  * `customHostname` sets a subdomain of the site, such as `t.brand.com`; create the CNAME in `customHostname.dnsRecord`. The snippet switches to it once its status is `active`. `null` removes it.
20121
20121
  *
20122
+ * `proxyPath` serves the tag from a path of the site itself, such as `brand.com/zt`, through a proxy on your server. The response's `proxy.secret` signs what the proxy forwards. `null` removes it.
20123
+ *
20122
20124
  */
20123
20125
  export const updateTrackingSite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateTrackingSiteData, ThrowOnError>) => {
20124
20126
  return (options?.client ?? client).patch<UpdateTrackingSiteResponse, UpdateTrackingSiteError, ThrowOnError>({
@@ -18770,6 +18770,10 @@ export type StoredEvent = {
18770
18770
  hasEmail?: boolean;
18771
18771
  hasPhone?: boolean;
18772
18772
  hasExternalId?: boolean;
18773
+ /**
18774
+ * In a `GET /v1/events` page: the other copy of the same conversion, when a website tag (`web`) and a server send both stored it under different event ids (same event name, a shared identifier, at most 30 minutes apart). `null` otherwise, and always `null` from `GET /v1/events/{eventId}`.
18775
+ */
18776
+ pairedEventId?: (string) | null;
18773
18777
  /**
18774
18778
  * The ad behind the event, when Zernio can name it. Google: from the click behind `clickIds.gclid` (synced daily from Google Ads click_view for clicks up to 14 days before the event; gbraid/wbraid clicks are not resolved). Meta: from the `zrn` ad id, for Meta ads Zernio holds. `null` otherwise.
18775
18779
  */
@@ -19686,6 +19690,19 @@ export type TrackingSite = {
19686
19690
  target?: string;
19687
19691
  };
19688
19692
  } | null;
19693
+ /**
19694
+ * The path your server forwards to the collector, so the tag runs from the site's own domain. Null when it has none.
19695
+ */
19696
+ proxy?: {
19697
+ /**
19698
+ * Such as `/zt`: the snippet loads `https://<first domain>/zt/z.js`.
19699
+ */
19700
+ path?: string;
19701
+ /**
19702
+ * Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
19703
+ */
19704
+ secret?: (string) | null;
19705
+ } | null;
19689
19706
  consentMode?: TrackingSiteConsentMode;
19690
19707
  /**
19691
19708
  * One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
@@ -74384,6 +74401,10 @@ export type UpdateTrackingSiteData = {
74384
74401
  * A subdomain of one of the site's domains, never the domain itself. `null` removes it.
74385
74402
  */
74386
74403
  customHostname?: (string) | null;
74404
+ /**
74405
+ * The path your server forwards to the collector, such as `/zt`. `null` removes it.
74406
+ */
74407
+ proxyPath?: (string) | null;
74387
74408
  };
74388
74409
  path: {
74389
74410
  siteId: string;