ouisys-engine 2.1.64 → 2.1.67
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/reducers/oneClickFlow/utils.js +1 -1
- package/dist/reducers/strategy/strategies/header_enrichment.js +13 -12
- package/dist/utilities/handleSubmitNumber.js +7 -1
- package/package.json +1 -1
- package/src/reducers/oneClickFlow/utils.ts +1 -1
- package/src/reducers/strategy/strategies/header_enrichment.ts +1 -0
- package/src/utilities/handleSubmitNumber.ts +5 -1
- package/prettier.config.js +0 -7
|
@@ -359,7 +359,7 @@ var getRedirectUrlBupperWay = /*#__PURE__*/function () {
|
|
|
359
359
|
}).join('&'); // one click flow must use http not https
|
|
360
360
|
|
|
361
361
|
xcid = window.location.href.split("/")[3].split('?')[0];
|
|
362
|
-
return _context3.abrupt("return", "http://".concat(host, "/").concat(bupperizeCountry(country), "/").concat(slug, "?offer=").concat(offer, "&atmobirun=1&rockman_id=").concat(window.pac_analytics.visitor.rockmanId, "&redirPixels=").concat(window.location.host, "&x-xcid=").concat(xcid).concat(extraParamsQs
|
|
362
|
+
return _context3.abrupt("return", "http://".concat(host, "/").concat(bupperizeCountry(country), "/").concat(slug, "?offer=").concat(offer, "&atmobirun=1&rockman_id=").concat(window.pac_analytics.visitor.rockmanId, "&redirPixels=").concat(window.location.host, "&x-xcid=").concat(xcid).concat(extraParamsQs).concat(search));
|
|
363
363
|
|
|
364
364
|
case 12:
|
|
365
365
|
case "end":
|
|
@@ -106,9 +106,10 @@ var pin_header_enrichment = function pin_header_enrichment(defaultFlow) {
|
|
|
106
106
|
|
|
107
107
|
case 3:
|
|
108
108
|
ipRangeName = _context.sent;
|
|
109
|
+
console.log("ipRangeName", ipRangeName);
|
|
109
110
|
|
|
110
111
|
if (!(ipRangeName == null)) {
|
|
111
|
-
_context.next =
|
|
112
|
+
_context.next = 8;
|
|
112
113
|
break;
|
|
113
114
|
}
|
|
114
115
|
|
|
@@ -125,16 +126,16 @@ var pin_header_enrichment = function pin_header_enrichment(defaultFlow) {
|
|
|
125
126
|
}
|
|
126
127
|
}));
|
|
127
128
|
|
|
128
|
-
case
|
|
129
|
-
_context.next =
|
|
129
|
+
case 8:
|
|
130
|
+
_context.next = 10;
|
|
130
131
|
return (0, _utils.identifyUser)();
|
|
131
132
|
|
|
132
|
-
case
|
|
133
|
+
case 10:
|
|
133
134
|
heResult = _context.sent;
|
|
134
135
|
flowObj = defaultFlow;
|
|
135
136
|
|
|
136
137
|
if (!(heResult.msisdn !== undefined && heResult.msisdn !== "")) {
|
|
137
|
-
_context.next =
|
|
138
|
+
_context.next = 20;
|
|
138
139
|
break;
|
|
139
140
|
}
|
|
140
141
|
|
|
@@ -161,7 +162,7 @@ var pin_header_enrichment = function pin_header_enrichment(defaultFlow) {
|
|
|
161
162
|
}
|
|
162
163
|
}));
|
|
163
164
|
|
|
164
|
-
case
|
|
165
|
+
case 20:
|
|
165
166
|
_.tracker.sendOptInFlowEvent("Pin");
|
|
166
167
|
|
|
167
168
|
return _context.abrupt("return", dispatch({
|
|
@@ -175,12 +176,12 @@ var pin_header_enrichment = function pin_header_enrichment(defaultFlow) {
|
|
|
175
176
|
}
|
|
176
177
|
}));
|
|
177
178
|
|
|
178
|
-
case
|
|
179
|
-
_context.next =
|
|
179
|
+
case 22:
|
|
180
|
+
_context.next = 30;
|
|
180
181
|
break;
|
|
181
182
|
|
|
182
|
-
case
|
|
183
|
-
_context.prev =
|
|
183
|
+
case 24:
|
|
184
|
+
_context.prev = 24;
|
|
184
185
|
_context.t0 = _context["catch"](0);
|
|
185
186
|
console.warn(_context.t0);
|
|
186
187
|
|
|
@@ -201,12 +202,12 @@ var pin_header_enrichment = function pin_header_enrichment(defaultFlow) {
|
|
|
201
202
|
}
|
|
202
203
|
});
|
|
203
204
|
|
|
204
|
-
case
|
|
205
|
+
case 30:
|
|
205
206
|
case "end":
|
|
206
207
|
return _context.stop();
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
}, _callee, null, [[0,
|
|
210
|
+
}, _callee, null, [[0, 24]]);
|
|
210
211
|
}));
|
|
211
212
|
|
|
212
213
|
return function (_x) {
|
|
@@ -65,7 +65,13 @@ var handleFormSubmit = function handleFormSubmit(_ref2) {
|
|
|
65
65
|
}
|
|
66
66
|
} else {
|
|
67
67
|
if (!!internationalNumber) {
|
|
68
|
-
|
|
68
|
+
if (process.env.country == "ci") {
|
|
69
|
+
onEnd(internationalNumber.match(/\d+/gi).join(''), {
|
|
70
|
+
network_type: networkType
|
|
71
|
+
});
|
|
72
|
+
} else {
|
|
73
|
+
onEnd(internationalNumber.match(/\d+/gi).join(''));
|
|
74
|
+
}
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
};
|
package/package.json
CHANGED
|
@@ -194,7 +194,7 @@ export const getRedirectUrlBupperWay = async(window:Window, maybeConfig: IConfig
|
|
|
194
194
|
|
|
195
195
|
// one click flow must use http not https
|
|
196
196
|
const xcid = window.location.href.split("/")[3].split('?')[0];
|
|
197
|
-
return `http://${host}/${bupperizeCountry(country)}/${slug}?offer=${offer}&atmobirun=1&rockman_id=${window.pac_analytics.visitor.rockmanId}&redirPixels=${window.location.host}&x-xcid=${xcid}${extraParamsQs}
|
|
197
|
+
return `http://${host}/${bupperizeCountry(country)}/${slug}?offer=${offer}&atmobirun=1&rockman_id=${window.pac_analytics.visitor.rockmanId}&redirPixels=${window.location.host}&x-xcid=${xcid}${extraParamsQs}${search}`
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -51,6 +51,7 @@ export const pin_header_enrichment = (defaultFlow:IFlow):AppThunk=>{
|
|
|
51
51
|
return async(dispatch)=>{
|
|
52
52
|
try{
|
|
53
53
|
let ipRangeName = await tryGetIPRangeName(window.pac_analytics.visitor);
|
|
54
|
+
console.log("ipRangeName", ipRangeName)
|
|
54
55
|
if (ipRangeName == null) {
|
|
55
56
|
|
|
56
57
|
tracker.sendOptInFlowEvent("Pin")
|
|
@@ -55,7 +55,11 @@ export const handleFormSubmit = ({
|
|
|
55
55
|
}
|
|
56
56
|
}else{
|
|
57
57
|
if(!!internationalNumber){
|
|
58
|
-
|
|
58
|
+
if(process.env.country == "ci"){
|
|
59
|
+
onEnd(internationalNumber.match(/\d+/gi).join(''), { network_type:networkType });
|
|
60
|
+
}else{
|
|
61
|
+
onEnd(internationalNumber.match(/\d+/gi).join(''));
|
|
62
|
+
}
|
|
59
63
|
}
|
|
60
64
|
}
|
|
61
65
|
}
|