@getlatedev/node 0.2.1262 → 0.2.1263

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/README.md CHANGED
@@ -1250,8 +1250,8 @@ try {
1250
1250
  | `trackingTags.deleteTrackingTagEvent()` | Delete a conversion event |
1251
1251
  | `trackingTags.addTrackingTagSharedAccount()` | Share with an ad account |
1252
1252
  | `trackingTags.assignTrackingTagUser()` | Assign a user to a tag |
1253
- | `trackingTags.installTrackingTagOnStore()` | Install on a Shopify store or WordPress site |
1254
- | `trackingTags.removeTrackingTagFromStore()` | Remove from a Shopify store or WordPress site |
1253
+ | `trackingTags.installTrackingTagOnStore()` | Install on a Shopify store, WordPress site or Wix site |
1254
+ | `trackingTags.removeTrackingTagFromStore()` | Remove from a Shopify store, WordPress site or Wix site |
1255
1255
  | `trackingTags.removeTrackingTagSharedAccount()` | Stop sharing with an account |
1256
1256
  | `trackingTags.removeTrackingTagUser()` | Remove a user from a tag |
1257
1257
 
package/dist/index.d.mts CHANGED
@@ -13000,14 +13000,14 @@ type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' |
13000
13000
  */
13001
13001
  type tiktokAccountType = 'business' | 'personal' | 'unknown';
13002
13002
  /**
13003
- * A tracking tag's install on a connected store: a Shopify web pixel, or a Custom HTML widget on a WordPress site. Fields marked Shopify or WordPress are present only for that platform.
13003
+ * A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site, or the Zernio embedded script on a Wix site. Fields marked Shopify, WordPress or Wix are present only for that platform.
13004
13004
  */
13005
13005
  type StorePixelInstall = {
13006
13006
  storeAccountId?: string;
13007
13007
  /**
13008
13008
  * The store platform.
13009
13009
  */
13010
- platform?: 'shopify' | 'wordpress';
13010
+ platform?: 'shopify' | 'wordpress' | 'wix';
13011
13011
  /**
13012
13012
  * Platform of the tag this install is about (e.g. `metaads`).
13013
13013
  */
@@ -13017,7 +13017,7 @@ type StorePixelInstall = {
13017
13017
  */
13018
13018
  siteTagId?: string;
13019
13019
  /**
13020
- * Shopify: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
13020
+ * Shopify and Wix: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
13021
13021
  */
13022
13022
  installed?: boolean;
13023
13023
  /**
@@ -13025,11 +13025,11 @@ type StorePixelInstall = {
13025
13025
  */
13026
13026
  shopDomain?: string;
13027
13027
  /**
13028
- * Shopify only: the tag of the same platform the store fires now (may be a different tag), or null.
13028
+ * Shopify and Wix only: the tag of the same platform the store fires now (may be a different tag), or null.
13029
13029
  */
13030
13030
  installedTagId?: (string) | null;
13031
13031
  /**
13032
- * GET only on WordPress, always on Shopify: every Zernio tag on the store, all platforms.
13032
+ * GET only on WordPress, always on Shopify and Wix: every Zernio tag on the store, all platforms.
13033
13033
  */
13034
13034
  tags?: Array<{
13035
13035
  platform?: string;
@@ -13052,9 +13052,9 @@ type StorePixelInstall = {
13052
13052
  */
13053
13053
  webPixelId?: (string) | null;
13054
13054
  /**
13055
- * WordPress only.
13055
+ * WordPress and Wix only. Null on a Wix site that was never published.
13056
13056
  */
13057
- siteUrl?: string;
13057
+ siteUrl?: (string) | null;
13058
13058
  /**
13059
13059
  * WordPress only.
13060
13060
  */
@@ -13071,7 +13071,7 @@ type StorePixelInstall = {
13071
13071
  /**
13072
13072
  * The store platform.
13073
13073
  */
13074
- type platform14 = 'shopify' | 'wordpress';
13074
+ type platform14 = 'shopify' | 'wordpress' | 'wix';
13075
13075
  /**
13076
13076
  * WordPress only.
13077
13077
  */
@@ -54144,7 +54144,7 @@ type RemoveTrackingTagSharedAccountError = (unknown | ErrorResponse);
54144
54144
  type InstallTrackingTagOnStoreData = {
54145
54145
  body: {
54146
54146
  /**
54147
- * The connected Shopify (`shopify`) or WordPress (`wordpress`) account id.
54147
+ * The connected Shopify (`shopify`), WordPress (`wordpress`) or Wix (`wix`) account id.
54148
54148
  */
54149
54149
  storeAccountId: string;
54150
54150
  /**
@@ -54172,7 +54172,7 @@ type InstallTrackingTagOnStoreResponse = ({
54172
54172
  platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
54173
54173
  install?: (StorePixelInstall & {
54174
54174
  /**
54175
- * Shopify only: the pixel this install replaced on the store, if any.
54175
+ * Shopify and Wix only: the pixel this install replaced on the store, if any.
54176
54176
  */
54177
54177
  replacedTagId?: (string) | null;
54178
54178
  /**
@@ -54213,7 +54213,7 @@ type GetTrackingTagStoreInstallData = {
54213
54213
  */
54214
54214
  adAccountId?: string;
54215
54215
  /**
54216
- * The connected Shopify or WordPress account id.
54216
+ * The connected Shopify, WordPress or Wix account id.
54217
54217
  */
54218
54218
  storeAccountId: string;
54219
54219
  };
@@ -54258,7 +54258,7 @@ type RemoveTrackingTagFromStoreData = {
54258
54258
  */
54259
54259
  adAccountId?: string;
54260
54260
  /**
54261
- * The connected Shopify or WordPress account id.
54261
+ * The connected Shopify, WordPress or Wix account id.
54262
54262
  */
54263
54263
  storeAccountId: string;
54264
54264
  };
package/dist/index.d.ts CHANGED
@@ -13000,14 +13000,14 @@ type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' |
13000
13000
  */
13001
13001
  type tiktokAccountType = 'business' | 'personal' | 'unknown';
13002
13002
  /**
13003
- * A tracking tag's install on a connected store: a Shopify web pixel, or a Custom HTML widget on a WordPress site. Fields marked Shopify or WordPress are present only for that platform.
13003
+ * A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site, or the Zernio embedded script on a Wix site. Fields marked Shopify, WordPress or Wix are present only for that platform.
13004
13004
  */
13005
13005
  type StorePixelInstall = {
13006
13006
  storeAccountId?: string;
13007
13007
  /**
13008
13008
  * The store platform.
13009
13009
  */
13010
- platform?: 'shopify' | 'wordpress';
13010
+ platform?: 'shopify' | 'wordpress' | 'wix';
13011
13011
  /**
13012
13012
  * Platform of the tag this install is about (e.g. `metaads`).
13013
13013
  */
@@ -13017,7 +13017,7 @@ type StorePixelInstall = {
13017
13017
  */
13018
13018
  siteTagId?: string;
13019
13019
  /**
13020
- * Shopify: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
13020
+ * Shopify and Wix: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
13021
13021
  */
13022
13022
  installed?: boolean;
13023
13023
  /**
@@ -13025,11 +13025,11 @@ type StorePixelInstall = {
13025
13025
  */
13026
13026
  shopDomain?: string;
13027
13027
  /**
13028
- * Shopify only: the tag of the same platform the store fires now (may be a different tag), or null.
13028
+ * Shopify and Wix only: the tag of the same platform the store fires now (may be a different tag), or null.
13029
13029
  */
13030
13030
  installedTagId?: (string) | null;
13031
13031
  /**
13032
- * GET only on WordPress, always on Shopify: every Zernio tag on the store, all platforms.
13032
+ * GET only on WordPress, always on Shopify and Wix: every Zernio tag on the store, all platforms.
13033
13033
  */
13034
13034
  tags?: Array<{
13035
13035
  platform?: string;
@@ -13052,9 +13052,9 @@ type StorePixelInstall = {
13052
13052
  */
13053
13053
  webPixelId?: (string) | null;
13054
13054
  /**
13055
- * WordPress only.
13055
+ * WordPress and Wix only. Null on a Wix site that was never published.
13056
13056
  */
13057
- siteUrl?: string;
13057
+ siteUrl?: (string) | null;
13058
13058
  /**
13059
13059
  * WordPress only.
13060
13060
  */
@@ -13071,7 +13071,7 @@ type StorePixelInstall = {
13071
13071
  /**
13072
13072
  * The store platform.
13073
13073
  */
13074
- type platform14 = 'shopify' | 'wordpress';
13074
+ type platform14 = 'shopify' | 'wordpress' | 'wix';
13075
13075
  /**
13076
13076
  * WordPress only.
13077
13077
  */
@@ -54144,7 +54144,7 @@ type RemoveTrackingTagSharedAccountError = (unknown | ErrorResponse);
54144
54144
  type InstallTrackingTagOnStoreData = {
54145
54145
  body: {
54146
54146
  /**
54147
- * The connected Shopify (`shopify`) or WordPress (`wordpress`) account id.
54147
+ * The connected Shopify (`shopify`), WordPress (`wordpress`) or Wix (`wix`) account id.
54148
54148
  */
54149
54149
  storeAccountId: string;
54150
54150
  /**
@@ -54172,7 +54172,7 @@ type InstallTrackingTagOnStoreResponse = ({
54172
54172
  platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
54173
54173
  install?: (StorePixelInstall & {
54174
54174
  /**
54175
- * Shopify only: the pixel this install replaced on the store, if any.
54175
+ * Shopify and Wix only: the pixel this install replaced on the store, if any.
54176
54176
  */
54177
54177
  replacedTagId?: (string) | null;
54178
54178
  /**
@@ -54213,7 +54213,7 @@ type GetTrackingTagStoreInstallData = {
54213
54213
  */
54214
54214
  adAccountId?: string;
54215
54215
  /**
54216
- * The connected Shopify or WordPress account id.
54216
+ * The connected Shopify, WordPress or Wix account id.
54217
54217
  */
54218
54218
  storeAccountId: string;
54219
54219
  };
@@ -54258,7 +54258,7 @@ type RemoveTrackingTagFromStoreData = {
54258
54258
  */
54259
54259
  adAccountId?: string;
54260
54260
  /**
54261
- * The connected Shopify or WordPress account id.
54261
+ * The connected Shopify, WordPress or Wix account id.
54262
54262
  */
54263
54263
  storeAccountId: string;
54264
54264
  };
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.1262",
39
+ version: "0.2.1263",
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.1262",
8
+ version: "0.2.1263",
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.1262",
3
+ "version": "0.2.1263",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15925,8 +15925,8 @@ export const removeTrackingTagSharedAccount = <ThrowOnError extends boolean = fa
15925
15925
  };
15926
15926
 
15927
15927
  /**
15928
- * Install on a Shopify store or WordPress site
15929
- * Installs a pixel on a connected Shopify store or WordPress site, so store visits and purchases are reported without editing the theme.
15928
+ * Install on a Shopify store, WordPress site or Wix site
15929
+ * Installs a pixel on a connected Shopify store, WordPress site or Wix site, so store visits and purchases are reported without editing the theme.
15930
15930
  *
15931
15931
  * Puts the Meta pixel on a connected Shopify store's storefront and checkout through
15932
15932
  * Zernio's Shopify web pixel (a Shopify app pixel, no theme edits). The store then sends
@@ -16006,6 +16006,18 @@ export const removeTrackingTagSharedAccount = <ThrowOnError extends boolean = fa
16006
16006
  * with a `pagevisit` event; the manual fallback is the official Pinterest for WooCommerce
16007
16007
  * plugin (WooCommerce stores).
16008
16008
  *
16009
+ * **Wix** (`storeAccountId` is a connected Wix site): Zernio's Wix app embeds one script on
16010
+ * the site that loads each installed tag's base code (the same code WordPress gets), so on
16011
+ * Wix each tag records page views. Wix changes pages without reloading, so later page views
16012
+ * are recorded again on Wix's own page-view event for Meta, TikTok, Google, Pinterest,
16013
+ * OpenAI and Whop; LinkedIn and X count the first page of each visit. Like Shopify, the site holds one tag per platform:
16014
+ * installing a different tag of the same platform replaces it (`replacedTagId`) and other
16015
+ * platforms' tags are kept. The script is an Advertising script, so it runs only for
16016
+ * visitors who accept advertising cookies when the site shows a cookie banner. Sites
16017
+ * connected before pixel support answer 409 `reconnect_required` until the owner approves
16018
+ * the Zernio app's new permission (`details.authUrl`, or Apps > Manage Apps in the Wix
16019
+ * dashboard).
16020
+ *
16009
16021
  */
16010
16022
  export const installTrackingTagOnStore = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<InstallTrackingTagOnStoreData, ThrowOnError>) => {
16011
16023
  return (options?.client ?? client).post<InstallTrackingTagOnStoreResponse, InstallTrackingTagOnStoreError, ThrowOnError>({
@@ -16016,7 +16028,7 @@ export const installTrackingTagOnStore = <ThrowOnError extends boolean = false>(
16016
16028
 
16017
16029
  /**
16018
16030
  * Get store install status
16019
- * Shows whether a tracking tag is live on your Shopify store or WordPress site, and whether a WordPress install would be blocked.
16031
+ * Shows whether a tracking tag is live on your Shopify store, WordPress site or Wix site, and whether a WordPress install would be blocked.
16020
16032
  *
16021
16033
  * Whether this tag is the one the Shopify store fires for its platform. `installedTagId`
16022
16034
  * names the tag of that platform the store currently fires, which can be a different tag,
@@ -16038,13 +16050,14 @@ export const getTrackingTagStoreInstall = <ThrowOnError extends boolean = false>
16038
16050
  };
16039
16051
 
16040
16052
  /**
16041
- * Remove from a Shopify store or WordPress site
16042
- * Removes a tracking tag from your Shopify store or WordPress site, leaving other platforms' tags and hand-added pixel code in place.
16053
+ * Remove from a Shopify store, WordPress site or Wix site
16054
+ * Removes a tracking tag from your Shopify store, WordPress site or Wix site, leaving other platforms' tags and hand-added pixel code in place.
16043
16055
  *
16044
16056
  * Idempotent: nothing installed returns 200 with
16045
16057
  * `installed: false`. If the store fires a different tag of the same platform, nothing is
16046
16058
  * removed and the call answers 409 `invalid_resource_state`. Shopify: other platforms'
16047
- * tags stay; the web pixel itself is deleted once no tag remains.
16059
+ * tags stay; the web pixel itself is deleted once no tag remains. Wix works the same way,
16060
+ * and the site's Zernio script is disabled once no tag remains.
16048
16061
  *
16049
16062
  * WordPress: deletes every widget Zernio created for this pixel and reports how many in
16050
16063
  * `removed` (0 when nothing was installed). Pixel code added by hand is left alone.
@@ -11453,14 +11453,14 @@ export type platform13 = 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'link
11453
11453
  export type tiktokAccountType = 'business' | 'personal' | 'unknown';
11454
11454
 
11455
11455
  /**
11456
- * A tracking tag's install on a connected store: a Shopify web pixel, or a Custom HTML widget on a WordPress site. Fields marked Shopify or WordPress are present only for that platform.
11456
+ * A tracking tag's install on a connected store: a Shopify web pixel, a Custom HTML widget on a WordPress site, or the Zernio embedded script on a Wix site. Fields marked Shopify, WordPress or Wix are present only for that platform.
11457
11457
  */
11458
11458
  export type StorePixelInstall = {
11459
11459
  storeAccountId?: string;
11460
11460
  /**
11461
11461
  * The store platform.
11462
11462
  */
11463
- platform?: 'shopify' | 'wordpress';
11463
+ platform?: 'shopify' | 'wordpress' | 'wix';
11464
11464
  /**
11465
11465
  * Platform of the tag this install is about (e.g. `metaads`).
11466
11466
  */
@@ -11470,7 +11470,7 @@ export type StorePixelInstall = {
11470
11470
  */
11471
11471
  siteTagId?: string;
11472
11472
  /**
11473
- * Shopify: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
11473
+ * Shopify and Wix: this tag is the one the store fires for its platform. WordPress: the Zernio widget for this tag is in an active widget area with its script intact.
11474
11474
  */
11475
11475
  installed?: boolean;
11476
11476
  /**
@@ -11478,11 +11478,11 @@ export type StorePixelInstall = {
11478
11478
  */
11479
11479
  shopDomain?: string;
11480
11480
  /**
11481
- * Shopify only: the tag of the same platform the store fires now (may be a different tag), or null.
11481
+ * Shopify and Wix only: the tag of the same platform the store fires now (may be a different tag), or null.
11482
11482
  */
11483
11483
  installedTagId?: (string) | null;
11484
11484
  /**
11485
- * GET only on WordPress, always on Shopify: every Zernio tag on the store, all platforms.
11485
+ * GET only on WordPress, always on Shopify and Wix: every Zernio tag on the store, all platforms.
11486
11486
  */
11487
11487
  tags?: Array<{
11488
11488
  platform?: string;
@@ -11505,9 +11505,9 @@ export type StorePixelInstall = {
11505
11505
  */
11506
11506
  webPixelId?: (string) | null;
11507
11507
  /**
11508
- * WordPress only.
11508
+ * WordPress and Wix only. Null on a Wix site that was never published.
11509
11509
  */
11510
- siteUrl?: string;
11510
+ siteUrl?: (string) | null;
11511
11511
  /**
11512
11512
  * WordPress only.
11513
11513
  */
@@ -11525,7 +11525,7 @@ export type StorePixelInstall = {
11525
11525
  /**
11526
11526
  * The store platform.
11527
11527
  */
11528
- export type platform14 = 'shopify' | 'wordpress';
11528
+ export type platform14 = 'shopify' | 'wordpress' | 'wix';
11529
11529
 
11530
11530
  /**
11531
11531
  * WordPress only.
@@ -55431,7 +55431,7 @@ export type RemoveTrackingTagSharedAccountError = (unknown | ErrorResponse);
55431
55431
  export type InstallTrackingTagOnStoreData = {
55432
55432
  body: {
55433
55433
  /**
55434
- * The connected Shopify (`shopify`) or WordPress (`wordpress`) account id.
55434
+ * The connected Shopify (`shopify`), WordPress (`wordpress`) or Wix (`wix`) account id.
55435
55435
  */
55436
55436
  storeAccountId: string;
55437
55437
  /**
@@ -55460,7 +55460,7 @@ export type InstallTrackingTagOnStoreResponse = ({
55460
55460
  platform?: 'metaads' | 'tiktokads' | 'googleads' | 'xads' | 'openaiads' | 'linkedinads' | 'pinterestads' | 'whopads';
55461
55461
  install?: (StorePixelInstall & {
55462
55462
  /**
55463
- * Shopify only: the pixel this install replaced on the store, if any.
55463
+ * Shopify and Wix only: the pixel this install replaced on the store, if any.
55464
55464
  */
55465
55465
  replacedTagId?: (string) | null;
55466
55466
  /**
@@ -55503,7 +55503,7 @@ export type GetTrackingTagStoreInstallData = {
55503
55503
  */
55504
55504
  adAccountId?: string;
55505
55505
  /**
55506
- * The connected Shopify or WordPress account id.
55506
+ * The connected Shopify, WordPress or Wix account id.
55507
55507
  */
55508
55508
  storeAccountId: string;
55509
55509
  };
@@ -55551,7 +55551,7 @@ export type RemoveTrackingTagFromStoreData = {
55551
55551
  */
55552
55552
  adAccountId?: string;
55553
55553
  /**
55554
- * The connected Shopify or WordPress account id.
55554
+ * The connected Shopify, WordPress or Wix account id.
55555
55555
  */
55556
55556
  storeAccountId: string;
55557
55557
  };