@getlatedev/node 0.2.1712 → 0.2.1713
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 +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +21 -0
package/dist/index.d.mts
CHANGED
|
@@ -21656,7 +21656,24 @@ type TrackingSite = {
|
|
|
21656
21656
|
* Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
|
|
21657
21657
|
*/
|
|
21658
21658
|
secret?: (string) | null;
|
|
21659
|
+
/**
|
|
21660
|
+
* The loader of each of `googleTagIds` on the site's own domain. Use `src` in place of the tag's googletagmanager.com address.
|
|
21661
|
+
*/
|
|
21662
|
+
googleTags?: Array<{
|
|
21663
|
+
/**
|
|
21664
|
+
* The Google tag id, such as `GTM-XXXXXXX` or `G-XXXXXXXXXX`.
|
|
21665
|
+
*/
|
|
21666
|
+
id?: string;
|
|
21667
|
+
/**
|
|
21668
|
+
* Such as `https://brand.com/zt/gtg/<hex>/?id=GTM-XXXXXXX`.
|
|
21669
|
+
*/
|
|
21670
|
+
src?: string;
|
|
21671
|
+
}>;
|
|
21659
21672
|
} | null;
|
|
21673
|
+
/**
|
|
21674
|
+
* The site's own Google tags (Tag Manager, GA4, Google Ads) its own-domain path relays to Google, so they load and measure from the site's domain.
|
|
21675
|
+
*/
|
|
21676
|
+
googleTagIds?: Array<(string)>;
|
|
21660
21677
|
consentMode?: TrackingSiteConsentMode;
|
|
21661
21678
|
/**
|
|
21662
21679
|
* One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
|
|
@@ -73798,6 +73815,10 @@ type UpdateTrackingSiteData = {
|
|
|
73798
73815
|
* The path your server forwards to the collector, such as `/zt`. `null` removes it.
|
|
73799
73816
|
*/
|
|
73800
73817
|
proxyPath?: (string) | null;
|
|
73818
|
+
/**
|
|
73819
|
+
* Google tag ids such as `GTM-XXXXXXX`, `G-XXXXXXXXXX` or `AW-XXXXXXXXXX`, up to 10. `null` or `[]` removes them.
|
|
73820
|
+
*/
|
|
73821
|
+
googleTagIds?: Array<(string)> | null;
|
|
73801
73822
|
};
|
|
73802
73823
|
path: {
|
|
73803
73824
|
siteId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -21656,7 +21656,24 @@ type TrackingSite = {
|
|
|
21656
21656
|
* Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
|
|
21657
21657
|
*/
|
|
21658
21658
|
secret?: (string) | null;
|
|
21659
|
+
/**
|
|
21660
|
+
* The loader of each of `googleTagIds` on the site's own domain. Use `src` in place of the tag's googletagmanager.com address.
|
|
21661
|
+
*/
|
|
21662
|
+
googleTags?: Array<{
|
|
21663
|
+
/**
|
|
21664
|
+
* The Google tag id, such as `GTM-XXXXXXX` or `G-XXXXXXXXXX`.
|
|
21665
|
+
*/
|
|
21666
|
+
id?: string;
|
|
21667
|
+
/**
|
|
21668
|
+
* Such as `https://brand.com/zt/gtg/<hex>/?id=GTM-XXXXXXX`.
|
|
21669
|
+
*/
|
|
21670
|
+
src?: string;
|
|
21671
|
+
}>;
|
|
21659
21672
|
} | null;
|
|
21673
|
+
/**
|
|
21674
|
+
* The site's own Google tags (Tag Manager, GA4, Google Ads) its own-domain path relays to Google, so they load and measure from the site's domain.
|
|
21675
|
+
*/
|
|
21676
|
+
googleTagIds?: Array<(string)>;
|
|
21660
21677
|
consentMode?: TrackingSiteConsentMode;
|
|
21661
21678
|
/**
|
|
21662
21679
|
* One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
|
|
@@ -73798,6 +73815,10 @@ type UpdateTrackingSiteData = {
|
|
|
73798
73815
|
* The path your server forwards to the collector, such as `/zt`. `null` removes it.
|
|
73799
73816
|
*/
|
|
73800
73817
|
proxyPath?: (string) | null;
|
|
73818
|
+
/**
|
|
73819
|
+
* Google tag ids such as `GTM-XXXXXXX`, `G-XXXXXXXXXX` or `AW-XXXXXXXXXX`, up to 10. `null` or `[]` removes them.
|
|
73820
|
+
*/
|
|
73821
|
+
googleTagIds?: Array<(string)> | null;
|
|
73801
73822
|
};
|
|
73802
73823
|
path: {
|
|
73803
73824
|
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.
|
|
39
|
+
version: "0.2.1713",
|
|
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.1713",
|
|
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
|
@@ -20461,6 +20461,8 @@ export const getTrackingSite = <ThrowOnError extends boolean = false>(options: O
|
|
|
20461
20461
|
*
|
|
20462
20462
|
* `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.
|
|
20463
20463
|
*
|
|
20464
|
+
* `googleTagIds` lists the site's own Google tags that the same proxy relays to Google's tag gateway. Load each from its `proxy.googleTags[].src` instead of googletagmanager.com. `null` or an empty list removes them.
|
|
20465
|
+
*
|
|
20464
20466
|
*/
|
|
20465
20467
|
export const updateTrackingSite = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateTrackingSiteData, ThrowOnError>) => {
|
|
20466
20468
|
return (options?.client ?? client).patch<UpdateTrackingSiteResponse, UpdateTrackingSiteError, ThrowOnError>({
|
|
@@ -19999,7 +19999,24 @@ export type TrackingSite = {
|
|
|
19999
19999
|
* Signs the visitor's IP and country your proxy forwards. Only on reading or updating one site.
|
|
20000
20000
|
*/
|
|
20001
20001
|
secret?: (string) | null;
|
|
20002
|
+
/**
|
|
20003
|
+
* The loader of each of `googleTagIds` on the site's own domain. Use `src` in place of the tag's googletagmanager.com address.
|
|
20004
|
+
*/
|
|
20005
|
+
googleTags?: Array<{
|
|
20006
|
+
/**
|
|
20007
|
+
* The Google tag id, such as `GTM-XXXXXXX` or `G-XXXXXXXXXX`.
|
|
20008
|
+
*/
|
|
20009
|
+
id?: string;
|
|
20010
|
+
/**
|
|
20011
|
+
* Such as `https://brand.com/zt/gtg/<hex>/?id=GTM-XXXXXXX`.
|
|
20012
|
+
*/
|
|
20013
|
+
src?: string;
|
|
20014
|
+
}>;
|
|
20002
20015
|
} | null;
|
|
20016
|
+
/**
|
|
20017
|
+
* The site's own Google tags (Tag Manager, GA4, Google Ads) its own-domain path relays to Google, so they load and measure from the site's domain.
|
|
20018
|
+
*/
|
|
20019
|
+
googleTagIds?: Array<(string)>;
|
|
20003
20020
|
consentMode?: TrackingSiteConsentMode;
|
|
20004
20021
|
/**
|
|
20005
20022
|
* One per setup step: `script` for the install, then one per ad account the site sends to, keyed by its platform and ids.
|
|
@@ -75624,6 +75641,10 @@ export type UpdateTrackingSiteData = {
|
|
|
75624
75641
|
* The path your server forwards to the collector, such as `/zt`. `null` removes it.
|
|
75625
75642
|
*/
|
|
75626
75643
|
proxyPath?: (string) | null;
|
|
75644
|
+
/**
|
|
75645
|
+
* Google tag ids such as `GTM-XXXXXXX`, `G-XXXXXXXXXX` or `AW-XXXXXXXXXX`, up to 10. `null` or `[]` removes them.
|
|
75646
|
+
*/
|
|
75647
|
+
googleTagIds?: Array<(string)> | null;
|
|
75627
75648
|
};
|
|
75628
75649
|
path: {
|
|
75629
75650
|
siteId: string;
|