@maxzima/wa-communicator 1.0.64 → 1.0.66
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/engine/AccountTracker/Types/TAccountTracker.d.ts +4 -4
- package/dist/engine/Communicator/Constants/RegistrationMetadata.d.ts +1 -1
- package/dist/engine/Communicator/Constants/RegistrationMetadata.js +2 -0
- package/package.json +1 -1
- package/src/engine/AccountTracker/Types/TAccountTracker.ts +4 -4
- package/src/engine/Communicator/Constants/RegistrationMetadata.ts +2 -0
- package/test/__snapshots__/communicator.spec.ts.snap +1 -1
- package/test/testunits/communicator/general.ts +2 -0
|
@@ -14,17 +14,17 @@ export type TAccountTrackerGtmSignUpOnlineEventParams = {
|
|
|
14
14
|
[GTMEventParamsEnum.PHONE]: string;
|
|
15
15
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
16
16
|
[GTMEventParamsEnum.USER_ID]: string;
|
|
17
|
-
[GTMEventParamsEnum.VER]?:
|
|
17
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
18
18
|
};
|
|
19
19
|
export type TAccountTrackerGtmVerifyPhoneOnlineEventParams = {
|
|
20
20
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
21
|
-
[GTMEventParamsEnum.VER]?:
|
|
21
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
22
22
|
};
|
|
23
23
|
export type TAccountTrackerGtmVerifyEmailOnlineEventParams = {
|
|
24
24
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
25
|
-
[GTMEventParamsEnum.VER]?:
|
|
25
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
26
26
|
};
|
|
27
27
|
export type TAccountTrackerGtmSignupPopupOpenEventParams = {
|
|
28
28
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
29
|
-
[GTMEventParamsEnum.VER]?:
|
|
29
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
30
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const registrationMetadataKeys: readonly ["wa.country_code", "wa.device_type", "wa.hash", "google.wa_gclid", "google._ga", "meta.wa_fbclid", "meta._fbp", "bing.wa_msclkid", "bing._uetvid", "linkedin.wa_li_fat_id", "appsflyer.cuid", "appsflyer.uid", "wa.utm_source", "wa.utm_medium", "wa.utm_campaign", "wa.utm_term"];
|
|
1
|
+
export declare const registrationMetadataKeys: readonly ["wa.country_code", "wa.device_type", "wa.hash", "wa.fp_uid", "google.wa_gclid", "google.wa_dclid", "google._ga", "meta.wa_fbclid", "meta._fbp", "bing.wa_msclkid", "bing._uetvid", "linkedin.wa_li_fat_id", "appsflyer.cuid", "appsflyer.uid", "wa.utm_source", "wa.utm_medium", "wa.utm_campaign", "wa.utm_term"];
|
package/package.json
CHANGED
|
@@ -23,20 +23,20 @@ export type TAccountTrackerGtmSignUpOnlineEventParams = {
|
|
|
23
23
|
[GTMEventParamsEnum.PHONE]: string;
|
|
24
24
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
25
25
|
[GTMEventParamsEnum.USER_ID]: string;
|
|
26
|
-
[GTMEventParamsEnum.VER]?:
|
|
26
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type TAccountTrackerGtmVerifyPhoneOnlineEventParams = {
|
|
30
30
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
31
|
-
[GTMEventParamsEnum.VER]?:
|
|
31
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export type TAccountTrackerGtmVerifyEmailOnlineEventParams = {
|
|
35
35
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
36
|
-
[GTMEventParamsEnum.VER]?:
|
|
36
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export type TAccountTrackerGtmSignupPopupOpenEventParams = {
|
|
40
40
|
[GTMEventParamsEnum.GCL_ID]: string;
|
|
41
|
-
[GTMEventParamsEnum.VER]?:
|
|
41
|
+
[GTMEventParamsEnum.VER]?: number;
|
|
42
42
|
}
|
|
@@ -108,7 +108,7 @@ exports[`Communicator requests profileAssign 1`] = `
|
|
|
108
108
|
|
|
109
109
|
exports[`Communicator requests registration 1`] = `
|
|
110
110
|
{
|
|
111
|
-
"body": "{"name":"_companyName_","country_code":"CAN","source":{"hash":"_hash_","device_type":"mobile","ga_id":"_gaId_","origin":"_origin_","gc_id":"_gcId_","utm_source":"_utmSource_","utm_medium":"_utmMedium_","utm_campaign":"_utmCampaign_","utm_term":"_utmTerm_"},"metadata":[{"key":"wa.country_code","value":"CAN"},{"key":"wa.device_type","value":"mobile"},{"key":"wa.hash","value":"_hash_"},{"key":"google.wa_gclid","value":"_gclid_"},{"key":"google._ga","value":"_ga_"},{"key":"meta.wa_fbclid","value":"_fbclid_"},{"key":"meta._fbp","value":"_fbp_"},{"key":"bing.wa_msclkid","value":"_msclkid_"},{"key":"bing._uetvid","value":"_uetvid_"},{"key":"linkedin.wa_li_fat_id","value":"_li_fat_id_"},{"key":"appsflyer.cuid","value":"_cuid_"},{"key":"appsflyer.uid","value":"_uid_"},{"key":"wa.utm_source","value":"_utmSource_"},{"key":"wa.utm_medium","value":"_utmMedium_"},{"key":"wa.utm_campaign","value":"_utmCampaign_"},{"key":"wa.utm_term","value":"_utmTerm_"}]}",
|
|
111
|
+
"body": "{"name":"_companyName_","country_code":"CAN","source":{"hash":"_hash_","device_type":"mobile","ga_id":"_gaId_","origin":"_origin_","gc_id":"_gcId_","utm_source":"_utmSource_","utm_medium":"_utmMedium_","utm_campaign":"_utmCampaign_","utm_term":"_utmTerm_"},"metadata":[{"key":"wa.country_code","value":"CAN"},{"key":"wa.device_type","value":"mobile"},{"key":"wa.hash","value":"_hash_"},{"key":"wa.fp_uid","value":"_fp_iud_"},{"key":"google.wa_gclid","value":"_gclid_"},{"key":"google.wa_dclid","value":"_dclid_"},{"key":"google._ga","value":"_ga_"},{"key":"meta.wa_fbclid","value":"_fbclid_"},{"key":"meta._fbp","value":"_fbp_"},{"key":"bing.wa_msclkid","value":"_msclkid_"},{"key":"bing._uetvid","value":"_uetvid_"},{"key":"linkedin.wa_li_fat_id","value":"_li_fat_id_"},{"key":"appsflyer.cuid","value":"_cuid_"},{"key":"appsflyer.uid","value":"_uid_"},{"key":"wa.utm_source","value":"_utmSource_"},{"key":"wa.utm_medium","value":"_utmMedium_"},{"key":"wa.utm_campaign","value":"_utmCampaign_"},{"key":"wa.utm_term","value":"_utmTerm_"}]}",
|
|
112
112
|
"headers": {
|
|
113
113
|
"Accept": "application/json, text/plain, */*",
|
|
114
114
|
"Authorization": "Bearer _accessToken_",
|
|
@@ -41,7 +41,9 @@ const communicatorTestData = {
|
|
|
41
41
|
'wa.country_code': 'CAN',
|
|
42
42
|
'wa.device_type': 'mobile' as TRegistrationRequestBodySourceDeviceType,
|
|
43
43
|
'wa.hash': '_hash_',
|
|
44
|
+
'wa.fp_uid': '_fp_iud_',
|
|
44
45
|
'google.wa_gclid': '_gclid_',
|
|
46
|
+
'google.wa_dclid': '_dclid_',
|
|
45
47
|
'google._ga': '_ga_',
|
|
46
48
|
'meta.wa_fbclid': '_fbclid_',
|
|
47
49
|
'meta._fbp': '_fbp_',
|