@maxzima/wa-communicator 1.0.46 → 1.0.48

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.
@@ -6,7 +6,8 @@ export declare enum GTMEventEnum {
6
6
  export declare enum GTMEventParamsEnum {
7
7
  PHONE = "phone",
8
8
  EMAIL = "email",
9
- GCL_ID = "gcl_id"
9
+ GCL_ID = "gcl_id",
10
+ USER_ID = "user_id"
10
11
  }
11
12
  export declare enum LintrkActionTypeEnum {
12
13
  TRACK = "track"
@@ -9,6 +9,7 @@ export var GTMEventParamsEnum;
9
9
  GTMEventParamsEnum["PHONE"] = "phone";
10
10
  GTMEventParamsEnum["EMAIL"] = "email";
11
11
  GTMEventParamsEnum["GCL_ID"] = "gcl_id";
12
+ GTMEventParamsEnum["USER_ID"] = "user_id";
12
13
  })(GTMEventParamsEnum || (GTMEventParamsEnum = {}));
13
14
  export var LintrkActionTypeEnum;
14
15
  (function (LintrkActionTypeEnum) {
@@ -17,6 +17,7 @@ export type TAccountTrackerGtmSignUpOnlineEventParams = {
17
17
  [GTMEventParamsEnum.EMAIL]: string;
18
18
  [GTMEventParamsEnum.PHONE]: string;
19
19
  [GTMEventParamsEnum.GCL_ID]: string;
20
+ [GTMEventParamsEnum.USER_ID]: string;
20
21
  };
21
22
  export type TAccountTrackerGtmVerifyPhoneOnlineEventParams = {
22
23
  [GTMEventParamsEnum.GCL_ID]: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.46",
2
+ "version": "1.0.48",
3
3
  "name": "@maxzima/wa-communicator",
4
4
  "description": "",
5
5
  "author": "Noname",
@@ -7,7 +7,7 @@
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "engines": {
10
- "node": ">=20.11.1 <21"
10
+ "node": ">=22.17.0 <23"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
@@ -8,6 +8,7 @@ export enum GTMEventParamsEnum {
8
8
  PHONE = 'phone',
9
9
  EMAIL = 'email',
10
10
  GCL_ID = 'gcl_id',
11
+ USER_ID = 'user_id',
11
12
  }
12
13
 
13
14
  export enum LintrkActionTypeEnum {
@@ -29,6 +29,7 @@ export type TAccountTrackerGtmSignUpOnlineEventParams = {
29
29
  [GTMEventParamsEnum.EMAIL]: string;
30
30
  [GTMEventParamsEnum.PHONE]: string;
31
31
  [GTMEventParamsEnum.GCL_ID]: string;
32
+ [GTMEventParamsEnum.USER_ID]: string;
32
33
  }
33
34
 
34
35
  export type TAccountTrackerGtmVerifyPhoneOnlineEventParams = {
@@ -7,6 +7,7 @@ const registrationSuccessEvents = {
7
7
  email: communicatorTestData.email,
8
8
  phone: communicatorTestData.phoneNumber,
9
9
  gcl_id: communicatorTestData.gcId,
10
+ user_id: communicatorTestData.userId,
10
11
  },
11
12
  verify_phone_online: {
12
13
  event: 'verify_phone_online',
@@ -31,6 +32,7 @@ const registrationSuccessEventParams = {
31
32
  email: communicatorTestData.email,
32
33
  phone: communicatorTestData.phoneNumber,
33
34
  gcl_id: communicatorTestData.gcId,
35
+ user_id: communicatorTestData.userId,
34
36
  },
35
37
  verify_phone_online: {
36
38
  gcl_id: communicatorTestData.gcId,
@@ -35,6 +35,7 @@ const communicatorTestData = {
35
35
  utmMedium: '_utmMedium_',
36
36
  utmCampaign: '_utmCampaign_',
37
37
  utmTerm: '_utmTerm_',
38
+ userId: '_userId_',
38
39
  };
39
40
 
40
41
  export {