ouisys-engine 3.0.3 → 3.0.7
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/.babelrc +4 -8
- package/.eslintrc.js +1 -1
- package/.nvmrc +1 -1
- package/.prettierignore +2 -1
- package/README.md +2 -4
- package/dist/api/index.d.ts +5 -5
- package/dist/api/index.js +76 -76
- package/dist/common-types/AppThunk.d.ts +11 -12
- package/dist/common-types/IOptInFlowName.d.ts +1 -1
- package/dist/common-types/ITracker.js +1 -2
- package/dist/common-types/RemoteDataState.d.ts +4 -4
- package/dist/common-types/RemoteDataState.js +17 -17
- package/dist/flows/click2smsFlow.d.ts +2 -2
- package/dist/flows/moFlow.d.ts +2 -2
- package/dist/flows/moRedirFlow.d.ts +2 -2
- package/dist/flows/oneClickFlow.d.ts +2 -2
- package/dist/flows/pinFlow.d.ts +2 -2
- package/dist/flows/pinFlow.js +2 -0
- package/dist/flows/strategy.d.ts +8 -8
- package/dist/flows/ussdFlow.d.ts +2 -2
- package/dist/ips/tryGetIPRangeName.d.ts +1 -1
- package/dist/ips/tryGetIPRangeName.js +7 -5
- package/dist/jest.config.js +1 -1
- package/dist/pacman/index.d.ts +2 -2
- package/dist/pacman/index.js +41 -41
- package/dist/pacman/queryString.js +11 -9
- package/dist/reducers/click2smsFlow/Click2smsTypes.d.ts +19 -19
- package/dist/reducers/click2smsFlow/IClick2smsConstants.d.ts +1 -1
- package/dist/reducers/click2smsFlow/index.d.ts +2 -2
- package/dist/reducers/click2smsFlow/index.js +24 -24
- package/dist/reducers/click2smsFlow/utils.d.ts +1 -1
- package/dist/reducers/click2smsFlow/utils.js +30 -30
- package/dist/reducers/moFlow/IMoConstants.d.ts +1 -1
- package/dist/reducers/moFlow/MoTypes.d.ts +13 -13
- package/dist/reducers/moFlow/index.d.ts +3 -3
- package/dist/reducers/moFlow/index.js +27 -27
- package/dist/reducers/moFlow/utils.d.ts +1 -2
- package/dist/reducers/moFlow/utils.js +28 -26
- package/dist/reducers/moRedirFlow/IMoRedirConstants.d.ts +1 -1
- package/dist/reducers/moRedirFlow/MoRedirTypes.d.ts +13 -13
- package/dist/reducers/moRedirFlow/index.d.ts +3 -3
- package/dist/reducers/moRedirFlow/index.js +27 -27
- package/dist/reducers/moRedirFlow/utils.d.ts +1 -1
- package/dist/reducers/moRedirFlow/utils.js +17 -17
- package/dist/reducers/oneClickFlow/IOneClickConstants.d.ts +1 -1
- package/dist/reducers/oneClickFlow/OneClickTypes.d.ts +10 -10
- package/dist/reducers/oneClickFlow/index.d.ts +3 -3
- package/dist/reducers/oneClickFlow/index.js +75 -68
- package/dist/reducers/oneClickFlow/utils.d.ts +2 -2
- package/dist/reducers/oneClickFlow/utils.js +38 -38
- package/dist/reducers/pinFlow/IPinConstants.d.ts +1 -1
- package/dist/reducers/pinFlow/PinTypes.d.ts +23 -23
- package/dist/reducers/pinFlow/index.d.ts +3 -3
- package/dist/reducers/pinFlow/index.js +76 -76
- package/dist/reducers/pinFlow/utils.d.ts +1 -1
- package/dist/reducers/pinFlow/utils.js +61 -65
- package/dist/reducers/strategy/IStategyActionContants.d.ts +1 -1
- package/dist/reducers/strategy/StrategyTypes.d.ts +56 -56
- package/dist/reducers/strategy/index.d.ts +2 -2
- package/dist/reducers/strategy/index.js +99 -99
- package/dist/reducers/strategy/strategies/ask_mobile_number.d.ts +2 -2
- package/dist/reducers/strategy/strategies/ask_mobile_number.js +78 -78
- package/dist/reducers/strategy/strategies/ask_operator.d.ts +2 -2
- package/dist/reducers/strategy/strategies/ask_operator.js +64 -68
- package/dist/reducers/strategy/strategies/detect_operator_by_ip.d.ts +2 -2
- package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +97 -97
- package/dist/reducers/strategy/strategies/header_enrichment.d.ts +2 -2
- package/dist/reducers/strategy/strategies/header_enrichment.js +116 -120
- package/dist/reducers/strategy/utils.d.ts +3 -3
- package/dist/reducers/strategy/utils.js +115 -111
- package/dist/reducers/ussdFlow/IUssdConstants.d.ts +1 -1
- package/dist/reducers/ussdFlow/UssdTypes.d.ts +13 -13
- package/dist/reducers/ussdFlow/index.d.ts +3 -3
- package/dist/reducers/ussdFlow/index.js +27 -27
- package/dist/reducers/ussdFlow/utils.d.ts +1 -2
- package/dist/reducers/ussdFlow/utils.js +19 -17
- package/dist/store/index.d.ts +8 -8
- package/dist/store/index.js +87 -83
- package/dist/store/reducers.d.ts +7 -7
- package/dist/store/reducers.js +4 -4
- package/dist/utilities/handleSubmitNumber.d.ts +7 -3
- package/dist/utilities/handleSubmitNumber.js +15 -18
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.js +13 -11
- package/dist/utilities/loadScriptInnerHtml.js +0 -1
- package/index.html +21 -28
- package/package.json +23 -15
- package/setupJest.js +1 -1
- package/tsconfig.json +2 -2
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/ouisys-engine.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.vscode/settings.json +0 -6
- package/dist/api/click2sms.js +0 -357
- package/dist/api/mo.js +0 -274
- package/dist/api/moRedir.js +0 -186
- package/dist/api/oneClick.js +0 -366
- package/dist/api/pin.js +0 -493
- package/dist/api/strategies.js +0 -704
- package/dist/api/ussd.js +0 -1
- package/dist/app/store.js +0 -35
- package/dist/features/strategies/categories/askMobileNumber.js +0 -395
- package/dist/features/strategies/categories/askOperator.js +0 -311
- package/dist/features/strategies/categories/detectOperatorByIp.js +0 -606
- package/dist/features/strategies/categories/headerEnrichment.js +0 -670
- package/dist/features/strategies/categories/typings/click2smsSliceTypes.js +0 -12
- package/dist/features/strategies/categories/typings/identifySliceTypes.js +0 -22
- package/dist/features/strategies/categories/typings/moFlowSliceTypes.js +0 -22
- package/dist/features/strategies/categories/typings/moRedirFlowSliceTypes.js +0 -21
- package/dist/features/strategies/categories/typings/oneClickSliceTypes.js +0 -13
- package/dist/features/strategies/categories/typings/pinFlowSliceTypes.js +0 -13
- package/dist/features/strategies/click2smsFlowSlice.js +0 -172
- package/dist/features/strategies/identifySlice.js +0 -455
- package/dist/features/strategies/moFlowSlice.js +0 -196
- package/dist/features/strategies/moRedirFlowSlice.js +0 -190
- package/dist/features/strategies/oneClickFlowSlice.js +0 -277
- package/dist/features/strategies/pinFlowSlice.js +0 -313
- package/dist/features/strategies/ussdFlowSlice.js +0 -1
- package/dist/flows/tpayHeFlow.d.ts +0 -7
- package/dist/flows/tpayHeFlow.js +0 -23
- package/dist/mockServer/browser.js +0 -48
- package/dist/mockServer/handlers.js +0 -22
- package/dist/mockServer/server.js +0 -48
- package/dist/reducers/tpayHeFlow/ITpayHeConstants.d.ts +0 -2
- package/dist/reducers/tpayHeFlow/ITpayHeConstants.js +0 -1
- package/dist/reducers/tpayHeFlow/TpayHeTypes.d.ts +0 -114
- package/dist/reducers/tpayHeFlow/TpayHeTypes.js +0 -1
- package/dist/reducers/tpayHeFlow/index.d.ts +0 -7
- package/dist/reducers/tpayHeFlow/index.js +0 -331
- package/dist/reducers/tpayHeFlow/utils.d.ts +0 -20
- package/dist/reducers/tpayHeFlow/utils.js +0 -510
- package/dist/test/setup.js +0 -24
- package/dist/test/test-utils.js +0 -51
- package/mockData/config.json +0 -28
- package/prettier.config.js +0 -7
- package/src/@types/react-tracker.d.ts +0 -16
- package/src/@types/redux-cli-logger.d.ts +0 -1
- package/src/@types/tiny-async-pool.d.ts +0 -3
- package/src/@types/window.d.ts +0 -74
- package/src/api/index.ts +0 -225
- package/src/common-types/AppThunk.ts +0 -19
- package/src/common-types/Either.ts +0 -3
- package/src/common-types/IError.ts +0 -5
- package/src/common-types/IOptInFlowName.ts +0 -1
- package/src/common-types/ITracker.ts +0 -10
- package/src/common-types/IVisitor.ts +0 -16
- package/src/common-types/RemoteDataState.ts +0 -88
- package/src/flows/click2smsFlow.ts +0 -18
- package/src/flows/moFlow.ts +0 -20
- package/src/flows/moRedirFlow.ts +0 -20
- package/src/flows/oneClickFlow.ts +0 -20
- package/src/flows/pinFlow.ts +0 -25
- package/src/flows/strategy.ts +0 -51
- package/src/flows/ussdFlow.ts +0 -20
- package/src/index.ts +0 -3
- package/src/ips/tryGetIPRangeName.ts +0 -22
- package/src/jest.config.js +0 -194
- package/src/pacman/index.ts +0 -71
- package/src/pacman/queryString.ts +0 -24
- package/src/reducers/click2smsFlow/Click2smsTypes.ts +0 -93
- package/src/reducers/click2smsFlow/IClick2smsConstants.ts +0 -4
- package/src/reducers/click2smsFlow/index.ts +0 -105
- package/src/reducers/click2smsFlow/utils.ts +0 -126
- package/src/reducers/moFlow/IMoConstants.ts +0 -7
- package/src/reducers/moFlow/MoTypes.ts +0 -125
- package/src/reducers/moFlow/index.ts +0 -150
- package/src/reducers/moFlow/utils.ts +0 -135
- package/src/reducers/moRedirFlow/IMoRedirConstants.ts +0 -7
- package/src/reducers/moRedirFlow/MoRedirTypes.ts +0 -99
- package/src/reducers/moRedirFlow/index.ts +0 -137
- package/src/reducers/moRedirFlow/utils.ts +0 -78
- package/src/reducers/oneClickFlow/IOneClickConstants.ts +0 -3
- package/src/reducers/oneClickFlow/OneClickTypes.ts +0 -108
- package/src/reducers/oneClickFlow/index.ts +0 -268
- package/src/reducers/oneClickFlow/utils.ts +0 -219
- package/src/reducers/pinFlow/IPinConstants.ts +0 -9
- package/src/reducers/pinFlow/PinTypes.ts +0 -190
- package/src/reducers/pinFlow/index.ts +0 -331
- package/src/reducers/pinFlow/utils.ts +0 -232
- package/src/reducers/strategy/IStategyActionContants.ts +0 -17
- package/src/reducers/strategy/StrategyTypes.ts +0 -376
- package/src/reducers/strategy/index.ts +0 -322
- package/src/reducers/strategy/strategies/ask_mobile_number.ts +0 -366
- package/src/reducers/strategy/strategies/ask_operator.ts +0 -195
- package/src/reducers/strategy/strategies/detect_operator_by_ip.ts +0 -414
- package/src/reducers/strategy/strategies/header_enrichment.ts +0 -489
- package/src/reducers/strategy/utils.ts +0 -357
- package/src/reducers/ussdFlow/IUssdConstants.ts +0 -7
- package/src/reducers/ussdFlow/UssdTypes.ts +0 -112
- package/src/reducers/ussdFlow/index.ts +0 -146
- package/src/reducers/ussdFlow/utils.ts +0 -88
- package/src/store/index.ts +0 -150
- package/src/store/reducers.ts +0 -37
- package/src/utilities/handleSubmitNumber.ts +0 -65
- package/src/utilities/index.ts +0 -114
- package/src/utilities/loadScriptInnerHtml.ts +0 -14
- package/src/utilities/loadScriptSrc.ts +0 -26
|
@@ -53,14 +53,14 @@ require("core-js/modules/es.object.to-string.js");
|
|
|
53
53
|
|
|
54
54
|
require("core-js/modules/es.promise.js");
|
|
55
55
|
|
|
56
|
+
var _ = require("..");
|
|
57
|
+
|
|
56
58
|
var RDS = _interopRequireWildcard(require("../../../common-types/RemoteDataState"));
|
|
57
59
|
|
|
58
60
|
var _utils = require("../utils");
|
|
59
61
|
|
|
60
62
|
var _ask_mobile_number = _interopRequireDefault(require("./ask_mobile_number"));
|
|
61
63
|
|
|
62
|
-
var _ = require("..");
|
|
63
|
-
|
|
64
64
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
65
65
|
|
|
66
66
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -83,9 +83,9 @@ function detect_operator_by_ip() {
|
|
|
83
83
|
return function (dispatch) {
|
|
84
84
|
try {
|
|
85
85
|
dispatch({
|
|
86
|
-
type:
|
|
86
|
+
type: 'DETECT_OPERATOR_BY_IP',
|
|
87
87
|
payload: {
|
|
88
|
-
type:
|
|
88
|
+
type: 'DETECT_OPERATOR_BY_IP',
|
|
89
89
|
result: RDS.Loading()
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -97,29 +97,29 @@ function detect_operator_by_ip() {
|
|
|
97
97
|
var defaultFlow = strategyConfigs.default;
|
|
98
98
|
|
|
99
99
|
switch (strategy) {
|
|
100
|
-
case
|
|
100
|
+
case 'pin-one-click-detect-operator-by-ip':
|
|
101
101
|
return dispatch(pin_one_click_detect_operator_by_ip(defaultFlow));
|
|
102
102
|
|
|
103
|
-
case
|
|
103
|
+
case 'one-click-mo-pin-detect-operator-by-ip-or-msisdn':
|
|
104
104
|
return dispatch(one_click_mo_pin_detect_operator_by_ip_or_msisdn(defaultFlow));
|
|
105
105
|
|
|
106
|
-
case
|
|
106
|
+
case 'mo-redir-one-click-detect-operator-by-ip':
|
|
107
107
|
return dispatch(mo_redir_one_click_detect_operator_by_ip(defaultFlow));
|
|
108
108
|
|
|
109
|
-
case
|
|
109
|
+
case 'mo-one-click-detect-operator-by-ip':
|
|
110
110
|
return dispatch(mo_one_click_detect_operator_by_ip(defaultFlow));
|
|
111
111
|
|
|
112
|
-
case
|
|
112
|
+
case 'click2sms-one-click-detect-operator-by-ip':
|
|
113
113
|
return dispatch(click2sms_one_click_detect_operator_by_ip(defaultFlow));
|
|
114
114
|
|
|
115
|
-
case
|
|
115
|
+
case 'pin-mo-detect-operator-by-ip':
|
|
116
116
|
return dispatch(pin_mo_detect_operator_by_ip(defaultFlow));
|
|
117
117
|
}
|
|
118
118
|
} catch (err) {
|
|
119
119
|
dispatch({
|
|
120
|
-
type:
|
|
120
|
+
type: 'DETECT_OPERATOR_BY_IP',
|
|
121
121
|
payload: {
|
|
122
|
-
type:
|
|
122
|
+
type: 'DETECT_OPERATOR_BY_IP',
|
|
123
123
|
result: RDS.Failure(err)
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -142,18 +142,18 @@ var pin_mo_detect_operator_by_ip = function pin_mo_detect_operator_by_ip(default
|
|
|
142
142
|
case 3:
|
|
143
143
|
flowObj = _context.sent;
|
|
144
144
|
_context.t0 = flowObj.flow;
|
|
145
|
-
_context.next = _context.t0 ===
|
|
145
|
+
_context.next = _context.t0 === 'mo' ? 7 : _context.t0 === 'pin' ? 9 : 10;
|
|
146
146
|
break;
|
|
147
147
|
|
|
148
148
|
case 7:
|
|
149
|
-
_.tracker.sendOptInFlowEvent(
|
|
149
|
+
_.tracker.sendOptInFlowEvent('Msisdn to sms');
|
|
150
150
|
|
|
151
151
|
return _context.abrupt("return", dispatch({
|
|
152
|
-
type:
|
|
152
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
153
153
|
payload: {
|
|
154
|
-
type:
|
|
154
|
+
type: 'MO',
|
|
155
155
|
result: {
|
|
156
|
-
nextAction:
|
|
156
|
+
nextAction: 'submitMSISDNAction',
|
|
157
157
|
config: flowObj.flowConfig,
|
|
158
158
|
operator: flowObj.operator
|
|
159
159
|
}
|
|
@@ -162,25 +162,25 @@ var pin_mo_detect_operator_by_ip = function pin_mo_detect_operator_by_ip(default
|
|
|
162
162
|
|
|
163
163
|
case 9:
|
|
164
164
|
return _context.abrupt("return", dispatch({
|
|
165
|
-
type:
|
|
165
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
166
166
|
payload: {
|
|
167
|
-
type:
|
|
167
|
+
type: 'PIN',
|
|
168
168
|
result: {
|
|
169
|
-
nextAction:
|
|
169
|
+
nextAction: 'submitMSISDNAction',
|
|
170
170
|
config: flowObj.flowConfig
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}));
|
|
174
174
|
|
|
175
175
|
case 10:
|
|
176
|
-
_.tracker.sendOptInFlowEvent(
|
|
176
|
+
_.tracker.sendOptInFlowEvent('Msisdn to sms');
|
|
177
177
|
|
|
178
178
|
return _context.abrupt("return", dispatch({
|
|
179
|
-
type:
|
|
179
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
180
180
|
payload: {
|
|
181
181
|
type: defaultFlow.flow.toUpperCase(),
|
|
182
182
|
result: {
|
|
183
|
-
nextAction:
|
|
183
|
+
nextAction: 'submitMSISDNAction',
|
|
184
184
|
config: defaultFlow.flowConfig
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -195,14 +195,14 @@ var pin_mo_detect_operator_by_ip = function pin_mo_detect_operator_by_ip(default
|
|
|
195
195
|
_context.t1 = _context["catch"](0);
|
|
196
196
|
console.warn(_context.t1);
|
|
197
197
|
|
|
198
|
-
_.tracker.sendOptInFlowEvent(
|
|
198
|
+
_.tracker.sendOptInFlowEvent('Msisdn to sms');
|
|
199
199
|
|
|
200
200
|
dispatch({
|
|
201
|
-
type:
|
|
201
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
202
202
|
payload: {
|
|
203
203
|
type: defaultFlow.flow.toUpperCase(),
|
|
204
204
|
result: {
|
|
205
|
-
nextAction:
|
|
205
|
+
nextAction: 'submitMSISDNAction',
|
|
206
206
|
config: defaultFlow.flowConfig
|
|
207
207
|
}
|
|
208
208
|
}
|
|
@@ -239,18 +239,18 @@ var mo_one_click_detect_operator_by_ip = function mo_one_click_detect_operator_b
|
|
|
239
239
|
case 3:
|
|
240
240
|
flowObj = _context2.sent;
|
|
241
241
|
_context2.t0 = flowObj.flow;
|
|
242
|
-
_context2.next = _context2.t0 ===
|
|
242
|
+
_context2.next = _context2.t0 === 'mo' ? 7 : _context2.t0 === 'oneClick' ? 9 : 11;
|
|
243
243
|
break;
|
|
244
244
|
|
|
245
245
|
case 7:
|
|
246
|
-
_.tracker.sendOptInFlowEvent(
|
|
246
|
+
_.tracker.sendOptInFlowEvent('Msisdn to sms');
|
|
247
247
|
|
|
248
248
|
return _context2.abrupt("return", dispatch({
|
|
249
|
-
type:
|
|
249
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
250
250
|
payload: {
|
|
251
|
-
type:
|
|
251
|
+
type: 'MO',
|
|
252
252
|
result: {
|
|
253
|
-
nextAction:
|
|
253
|
+
nextAction: 'submitMSISDNAction',
|
|
254
254
|
config: flowObj.flowConfig,
|
|
255
255
|
operator: flowObj.operator
|
|
256
256
|
}
|
|
@@ -258,14 +258,14 @@ var mo_one_click_detect_operator_by_ip = function mo_one_click_detect_operator_b
|
|
|
258
258
|
}));
|
|
259
259
|
|
|
260
260
|
case 9:
|
|
261
|
-
_.tracker.sendOptInFlowEvent(
|
|
261
|
+
_.tracker.sendOptInFlowEvent('3G click');
|
|
262
262
|
|
|
263
263
|
return _context2.abrupt("return", dispatch({
|
|
264
|
-
type:
|
|
264
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
265
265
|
payload: {
|
|
266
|
-
type:
|
|
266
|
+
type: 'ONE_CLICK',
|
|
267
267
|
result: {
|
|
268
|
-
nextAction:
|
|
268
|
+
nextAction: 'getRedirectUrlAction',
|
|
269
269
|
config: flowObj.flowConfig,
|
|
270
270
|
operator: flowObj.operator
|
|
271
271
|
}
|
|
@@ -273,14 +273,14 @@ var mo_one_click_detect_operator_by_ip = function mo_one_click_detect_operator_b
|
|
|
273
273
|
}));
|
|
274
274
|
|
|
275
275
|
case 11:
|
|
276
|
-
_.tracker.sendOptInFlowEvent(
|
|
276
|
+
_.tracker.sendOptInFlowEvent('Msisdn to sms');
|
|
277
277
|
|
|
278
278
|
return _context2.abrupt("return", dispatch({
|
|
279
|
-
type:
|
|
279
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
280
280
|
payload: {
|
|
281
|
-
type:
|
|
281
|
+
type: 'MO',
|
|
282
282
|
result: {
|
|
283
|
-
nextAction:
|
|
283
|
+
nextAction: 'submitMSISDNAction',
|
|
284
284
|
config: defaultFlow.flowConfig
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -295,14 +295,14 @@ var mo_one_click_detect_operator_by_ip = function mo_one_click_detect_operator_b
|
|
|
295
295
|
_context2.t1 = _context2["catch"](0);
|
|
296
296
|
console.warn(_context2.t1);
|
|
297
297
|
|
|
298
|
-
_.tracker.sendOptInFlowEvent(
|
|
298
|
+
_.tracker.sendOptInFlowEvent('Msisdn to sms');
|
|
299
299
|
|
|
300
300
|
dispatch({
|
|
301
|
-
type:
|
|
301
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
302
302
|
payload: {
|
|
303
|
-
type:
|
|
303
|
+
type: 'MO',
|
|
304
304
|
result: {
|
|
305
|
-
nextAction:
|
|
305
|
+
nextAction: 'submitMSISDNAction',
|
|
306
306
|
config: defaultFlow.flowConfig
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -339,18 +339,18 @@ var click2sms_one_click_detect_operator_by_ip = function click2sms_one_click_det
|
|
|
339
339
|
case 3:
|
|
340
340
|
flowObj = _context3.sent;
|
|
341
341
|
_context3.t0 = flowObj.flow;
|
|
342
|
-
_context3.next = _context3.t0 ===
|
|
342
|
+
_context3.next = _context3.t0 === 'click2sms' ? 7 : _context3.t0 === 'oneClick' ? 9 : 11;
|
|
343
343
|
break;
|
|
344
344
|
|
|
345
345
|
case 7:
|
|
346
|
-
_.tracker.sendOptInFlowEvent(
|
|
346
|
+
_.tracker.sendOptInFlowEvent('Click to sms');
|
|
347
347
|
|
|
348
348
|
return _context3.abrupt("return", dispatch({
|
|
349
|
-
type:
|
|
349
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
350
350
|
payload: {
|
|
351
|
-
type:
|
|
351
|
+
type: 'CLICK2SMS',
|
|
352
352
|
result: {
|
|
353
|
-
nextAction:
|
|
353
|
+
nextAction: 'loadOc2sms',
|
|
354
354
|
config: _objectSpread({
|
|
355
355
|
operators: [flowObj.operator]
|
|
356
356
|
}, flowObj.flowConfig),
|
|
@@ -360,14 +360,14 @@ var click2sms_one_click_detect_operator_by_ip = function click2sms_one_click_det
|
|
|
360
360
|
}));
|
|
361
361
|
|
|
362
362
|
case 9:
|
|
363
|
-
_.tracker.sendOptInFlowEvent(
|
|
363
|
+
_.tracker.sendOptInFlowEvent('3G click');
|
|
364
364
|
|
|
365
365
|
return _context3.abrupt("return", dispatch({
|
|
366
|
-
type:
|
|
366
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
367
367
|
payload: {
|
|
368
|
-
type:
|
|
368
|
+
type: 'ONE_CLICK',
|
|
369
369
|
result: {
|
|
370
|
-
nextAction:
|
|
370
|
+
nextAction: 'getRedirectUrlAction',
|
|
371
371
|
config: flowObj.flowConfig,
|
|
372
372
|
operator: flowObj.operator
|
|
373
373
|
}
|
|
@@ -375,14 +375,14 @@ var click2sms_one_click_detect_operator_by_ip = function click2sms_one_click_det
|
|
|
375
375
|
}));
|
|
376
376
|
|
|
377
377
|
case 11:
|
|
378
|
-
_.tracker.sendOptInFlowEvent(
|
|
378
|
+
_.tracker.sendOptInFlowEvent('Click to sms');
|
|
379
379
|
|
|
380
380
|
return _context3.abrupt("return", dispatch({
|
|
381
|
-
type:
|
|
381
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
382
382
|
payload: {
|
|
383
|
-
type:
|
|
383
|
+
type: 'CLICK2SMS',
|
|
384
384
|
result: {
|
|
385
|
-
nextAction:
|
|
385
|
+
nextAction: 'loadOc2sms',
|
|
386
386
|
config: defaultFlow.flowConfig
|
|
387
387
|
}
|
|
388
388
|
}
|
|
@@ -397,14 +397,14 @@ var click2sms_one_click_detect_operator_by_ip = function click2sms_one_click_det
|
|
|
397
397
|
_context3.t1 = _context3["catch"](0);
|
|
398
398
|
console.warn(_context3.t1);
|
|
399
399
|
|
|
400
|
-
_.tracker.sendOptInFlowEvent(
|
|
400
|
+
_.tracker.sendOptInFlowEvent('Click to sms');
|
|
401
401
|
|
|
402
402
|
dispatch({
|
|
403
|
-
type:
|
|
403
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
404
404
|
payload: {
|
|
405
|
-
type:
|
|
405
|
+
type: 'CLICK2SMS',
|
|
406
406
|
result: {
|
|
407
|
-
nextAction:
|
|
407
|
+
nextAction: 'loadOc2sms',
|
|
408
408
|
config: defaultFlow.flowConfig
|
|
409
409
|
}
|
|
410
410
|
}
|
|
@@ -441,16 +441,16 @@ var pin_one_click_detect_operator_by_ip = function pin_one_click_detect_operator
|
|
|
441
441
|
case 3:
|
|
442
442
|
flowObj = _context4.sent;
|
|
443
443
|
_context4.t0 = flowObj.flow;
|
|
444
|
-
_context4.next = _context4.t0 ===
|
|
444
|
+
_context4.next = _context4.t0 === 'pin' ? 7 : _context4.t0 === 'oneClick' ? 8 : 9;
|
|
445
445
|
break;
|
|
446
446
|
|
|
447
447
|
case 7:
|
|
448
448
|
return _context4.abrupt("return", dispatch({
|
|
449
|
-
type:
|
|
449
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
450
450
|
payload: {
|
|
451
|
-
type:
|
|
451
|
+
type: 'PIN',
|
|
452
452
|
result: {
|
|
453
|
-
nextAction:
|
|
453
|
+
nextAction: 'submitMSISDNAction',
|
|
454
454
|
config: flowObj.flowConfig
|
|
455
455
|
}
|
|
456
456
|
}
|
|
@@ -458,11 +458,11 @@ var pin_one_click_detect_operator_by_ip = function pin_one_click_detect_operator
|
|
|
458
458
|
|
|
459
459
|
case 8:
|
|
460
460
|
return _context4.abrupt("return", dispatch({
|
|
461
|
-
type:
|
|
461
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
462
462
|
payload: {
|
|
463
|
-
type:
|
|
463
|
+
type: 'ONE_CLICK',
|
|
464
464
|
result: {
|
|
465
|
-
nextAction:
|
|
465
|
+
nextAction: 'getRedirectUrlAction',
|
|
466
466
|
config: flowObj.flowConfig,
|
|
467
467
|
operator: flowObj.operator
|
|
468
468
|
}
|
|
@@ -471,11 +471,11 @@ var pin_one_click_detect_operator_by_ip = function pin_one_click_detect_operator
|
|
|
471
471
|
|
|
472
472
|
case 9:
|
|
473
473
|
return _context4.abrupt("return", dispatch({
|
|
474
|
-
type:
|
|
474
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
475
475
|
payload: {
|
|
476
|
-
type:
|
|
476
|
+
type: 'PIN',
|
|
477
477
|
result: {
|
|
478
|
-
nextAction:
|
|
478
|
+
nextAction: 'submitMSISDNAction',
|
|
479
479
|
config: defaultFlow.flowConfig
|
|
480
480
|
}
|
|
481
481
|
}
|
|
@@ -489,13 +489,13 @@ var pin_one_click_detect_operator_by_ip = function pin_one_click_detect_operator
|
|
|
489
489
|
_context4.prev = 12;
|
|
490
490
|
_context4.t1 = _context4["catch"](0);
|
|
491
491
|
console.warn(_context4.t1);
|
|
492
|
-
console.log(
|
|
492
|
+
console.log('defaultFlow', defaultFlow);
|
|
493
493
|
dispatch({
|
|
494
|
-
type:
|
|
494
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
495
495
|
payload: {
|
|
496
|
-
type:
|
|
496
|
+
type: 'PIN',
|
|
497
497
|
result: {
|
|
498
|
-
nextAction:
|
|
498
|
+
nextAction: 'submitMSISDNAction',
|
|
499
499
|
config: defaultFlow.flowConfig
|
|
500
500
|
}
|
|
501
501
|
}
|
|
@@ -532,16 +532,16 @@ var one_click_mo_pin_detect_operator_by_ip_or_msisdn = function one_click_mo_pin
|
|
|
532
532
|
case 3:
|
|
533
533
|
flowObj = _context5.sent;
|
|
534
534
|
_context5.t0 = flowObj.flow;
|
|
535
|
-
_context5.next = _context5.t0 ===
|
|
535
|
+
_context5.next = _context5.t0 === 'pin' ? 7 : _context5.t0 === 'oneClick' ? 8 : 9;
|
|
536
536
|
break;
|
|
537
537
|
|
|
538
538
|
case 7:
|
|
539
539
|
return _context5.abrupt("return", dispatch({
|
|
540
|
-
type:
|
|
540
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
541
541
|
payload: {
|
|
542
|
-
type:
|
|
542
|
+
type: 'PIN',
|
|
543
543
|
result: {
|
|
544
|
-
nextAction:
|
|
544
|
+
nextAction: 'submitMSISDNAction',
|
|
545
545
|
config: flowObj.flowConfig,
|
|
546
546
|
operator: flowObj.operator
|
|
547
547
|
}
|
|
@@ -550,11 +550,11 @@ var one_click_mo_pin_detect_operator_by_ip_or_msisdn = function one_click_mo_pin
|
|
|
550
550
|
|
|
551
551
|
case 8:
|
|
552
552
|
return _context5.abrupt("return", dispatch({
|
|
553
|
-
type:
|
|
553
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
554
554
|
payload: {
|
|
555
|
-
type:
|
|
555
|
+
type: 'MO_REDIR',
|
|
556
556
|
result: {
|
|
557
|
-
nextAction:
|
|
557
|
+
nextAction: 'submitMSISDNAction',
|
|
558
558
|
config: flowObj.flowConfig,
|
|
559
559
|
operator: flowObj.operator
|
|
560
560
|
}
|
|
@@ -563,11 +563,11 @@ var one_click_mo_pin_detect_operator_by_ip_or_msisdn = function one_click_mo_pin
|
|
|
563
563
|
|
|
564
564
|
case 9:
|
|
565
565
|
return _context5.abrupt("return", dispatch({
|
|
566
|
-
type:
|
|
566
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
567
567
|
payload: {
|
|
568
|
-
type:
|
|
568
|
+
type: 'PIN',
|
|
569
569
|
result: {
|
|
570
|
-
nextAction:
|
|
570
|
+
nextAction: 'submitMSISDNAction',
|
|
571
571
|
config: flowObj.flowConfig
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -614,16 +614,16 @@ var mo_redir_one_click_detect_operator_by_ip = function mo_redir_one_click_detec
|
|
|
614
614
|
case 3:
|
|
615
615
|
flowObj = _context6.sent;
|
|
616
616
|
_context6.t0 = flowObj.flow;
|
|
617
|
-
_context6.next = _context6.t0 ===
|
|
617
|
+
_context6.next = _context6.t0 === 'moRedir' ? 7 : _context6.t0 === 'oneClick' ? 8 : 9;
|
|
618
618
|
break;
|
|
619
619
|
|
|
620
620
|
case 7:
|
|
621
621
|
return _context6.abrupt("return", dispatch({
|
|
622
|
-
type:
|
|
622
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
623
623
|
payload: {
|
|
624
|
-
type:
|
|
624
|
+
type: 'MO_REDIR',
|
|
625
625
|
result: {
|
|
626
|
-
nextAction:
|
|
626
|
+
nextAction: 'submitMSISDNAction',
|
|
627
627
|
config: flowObj.flowConfig,
|
|
628
628
|
operator: flowObj.operator
|
|
629
629
|
}
|
|
@@ -632,11 +632,11 @@ var mo_redir_one_click_detect_operator_by_ip = function mo_redir_one_click_detec
|
|
|
632
632
|
|
|
633
633
|
case 8:
|
|
634
634
|
return _context6.abrupt("return", dispatch({
|
|
635
|
-
type:
|
|
635
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
636
636
|
payload: {
|
|
637
|
-
type:
|
|
637
|
+
type: 'ONE_CLICK',
|
|
638
638
|
result: {
|
|
639
|
-
nextAction:
|
|
639
|
+
nextAction: 'getRedirectUrlAction',
|
|
640
640
|
config: flowObj.flowConfig,
|
|
641
641
|
operator: flowObj.operator
|
|
642
642
|
}
|
|
@@ -645,11 +645,11 @@ var mo_redir_one_click_detect_operator_by_ip = function mo_redir_one_click_detec
|
|
|
645
645
|
|
|
646
646
|
case 9:
|
|
647
647
|
return _context6.abrupt("return", dispatch({
|
|
648
|
-
type:
|
|
648
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
649
649
|
payload: {
|
|
650
|
-
type:
|
|
650
|
+
type: 'MO_REDIR',
|
|
651
651
|
result: {
|
|
652
|
-
nextAction:
|
|
652
|
+
nextAction: 'submitMSISDNAction',
|
|
653
653
|
config: defaultFlow.flowConfig
|
|
654
654
|
}
|
|
655
655
|
}
|
|
@@ -665,11 +665,11 @@ var mo_redir_one_click_detect_operator_by_ip = function mo_redir_one_click_detec
|
|
|
665
665
|
console.warn(_context6.t1); // console.log("defaul", defaultFlow.flowConfig)
|
|
666
666
|
|
|
667
667
|
return _context6.abrupt("return", dispatch({
|
|
668
|
-
type:
|
|
668
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
|
|
669
669
|
payload: {
|
|
670
|
-
type:
|
|
670
|
+
type: 'MO_REDIR',
|
|
671
671
|
result: {
|
|
672
|
-
nextAction:
|
|
672
|
+
nextAction: 'submitMSISDNAction',
|
|
673
673
|
config: defaultFlow.flowConfig
|
|
674
674
|
}
|
|
675
675
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppThunk } from
|
|
2
|
-
import { IFlow } from
|
|
1
|
+
import { AppThunk } from '../../../common-types/AppThunk';
|
|
2
|
+
import { IFlow } from '../StrategyTypes';
|
|
3
3
|
export default function identify_user(): AppThunk;
|
|
4
4
|
export declare const pin_header_enrichment: (defaultFlow: IFlow) => AppThunk;
|
|
5
5
|
export declare const he_pin_one_click_header_enrichment: (defaultFlow: IFlow) => AppThunk;
|