ouisys-engine 3.0.3 → 3.0.5

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.
Files changed (195) hide show
  1. package/.babelrc +4 -8
  2. package/.eslintrc.js +1 -1
  3. package/.husky/pre-commit +4 -0
  4. package/.nvmrc +1 -1
  5. package/.prettierignore +2 -1
  6. package/.vscode/settings.json +1 -1
  7. package/README.md +2 -4
  8. package/dist/api/index.d.ts +5 -5
  9. package/dist/api/index.js +76 -76
  10. package/dist/common-types/AppThunk.d.ts +11 -12
  11. package/dist/common-types/IOptInFlowName.d.ts +1 -1
  12. package/dist/common-types/ITracker.js +1 -2
  13. package/dist/common-types/RemoteDataState.d.ts +4 -4
  14. package/dist/common-types/RemoteDataState.js +17 -17
  15. package/dist/flows/click2smsFlow.d.ts +2 -2
  16. package/dist/flows/moFlow.d.ts +2 -2
  17. package/dist/flows/moRedirFlow.d.ts +2 -2
  18. package/dist/flows/oneClickFlow.d.ts +2 -2
  19. package/dist/flows/pinFlow.d.ts +2 -2
  20. package/dist/flows/pinFlow.js +2 -0
  21. package/dist/flows/strategy.d.ts +8 -8
  22. package/dist/flows/ussdFlow.d.ts +2 -2
  23. package/dist/ips/tryGetIPRangeName.d.ts +1 -1
  24. package/dist/ips/tryGetIPRangeName.js +7 -5
  25. package/dist/jest.config.js +1 -1
  26. package/dist/pacman/index.d.ts +2 -2
  27. package/dist/pacman/index.js +41 -41
  28. package/dist/pacman/queryString.js +11 -9
  29. package/dist/reducers/click2smsFlow/Click2smsTypes.d.ts +19 -19
  30. package/dist/reducers/click2smsFlow/IClick2smsConstants.d.ts +1 -1
  31. package/dist/reducers/click2smsFlow/index.d.ts +2 -2
  32. package/dist/reducers/click2smsFlow/index.js +24 -24
  33. package/dist/reducers/click2smsFlow/utils.d.ts +1 -1
  34. package/dist/reducers/click2smsFlow/utils.js +30 -30
  35. package/dist/reducers/moFlow/IMoConstants.d.ts +1 -1
  36. package/dist/reducers/moFlow/MoTypes.d.ts +13 -13
  37. package/dist/reducers/moFlow/index.d.ts +3 -3
  38. package/dist/reducers/moFlow/index.js +27 -27
  39. package/dist/reducers/moFlow/utils.d.ts +1 -2
  40. package/dist/reducers/moFlow/utils.js +28 -26
  41. package/dist/reducers/moRedirFlow/IMoRedirConstants.d.ts +1 -1
  42. package/dist/reducers/moRedirFlow/MoRedirTypes.d.ts +13 -13
  43. package/dist/reducers/moRedirFlow/index.d.ts +3 -3
  44. package/dist/reducers/moRedirFlow/index.js +27 -27
  45. package/dist/reducers/moRedirFlow/utils.d.ts +1 -1
  46. package/dist/reducers/moRedirFlow/utils.js +17 -17
  47. package/dist/reducers/oneClickFlow/IOneClickConstants.d.ts +1 -1
  48. package/dist/reducers/oneClickFlow/OneClickTypes.d.ts +10 -10
  49. package/dist/reducers/oneClickFlow/index.d.ts +3 -3
  50. package/dist/reducers/oneClickFlow/index.js +75 -68
  51. package/dist/reducers/oneClickFlow/utils.d.ts +2 -2
  52. package/dist/reducers/oneClickFlow/utils.js +38 -38
  53. package/dist/reducers/pinFlow/IPinConstants.d.ts +1 -1
  54. package/dist/reducers/pinFlow/PinTypes.d.ts +23 -23
  55. package/dist/reducers/pinFlow/index.d.ts +3 -3
  56. package/dist/reducers/pinFlow/index.js +76 -76
  57. package/dist/reducers/pinFlow/utils.d.ts +1 -1
  58. package/dist/reducers/pinFlow/utils.js +61 -65
  59. package/dist/reducers/strategy/IStategyActionContants.d.ts +1 -1
  60. package/dist/reducers/strategy/StrategyTypes.d.ts +56 -56
  61. package/dist/reducers/strategy/index.d.ts +2 -2
  62. package/dist/reducers/strategy/index.js +99 -99
  63. package/dist/reducers/strategy/strategies/ask_mobile_number.d.ts +2 -2
  64. package/dist/reducers/strategy/strategies/ask_mobile_number.js +78 -78
  65. package/dist/reducers/strategy/strategies/ask_operator.d.ts +2 -2
  66. package/dist/reducers/strategy/strategies/ask_operator.js +64 -68
  67. package/dist/reducers/strategy/strategies/detect_operator_by_ip.d.ts +2 -2
  68. package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +97 -97
  69. package/dist/reducers/strategy/strategies/header_enrichment.d.ts +2 -2
  70. package/dist/reducers/strategy/strategies/header_enrichment.js +116 -120
  71. package/dist/reducers/strategy/utils.d.ts +3 -3
  72. package/dist/reducers/strategy/utils.js +115 -111
  73. package/dist/reducers/ussdFlow/IUssdConstants.d.ts +1 -1
  74. package/dist/reducers/ussdFlow/UssdTypes.d.ts +13 -13
  75. package/dist/reducers/ussdFlow/index.d.ts +3 -3
  76. package/dist/reducers/ussdFlow/index.js +27 -27
  77. package/dist/reducers/ussdFlow/utils.d.ts +1 -2
  78. package/dist/reducers/ussdFlow/utils.js +19 -17
  79. package/dist/store/index.d.ts +8 -8
  80. package/dist/store/index.js +87 -83
  81. package/dist/store/reducers.d.ts +7 -7
  82. package/dist/store/reducers.js +4 -4
  83. package/dist/utilities/handleSubmitNumber.d.ts +7 -3
  84. package/dist/utilities/handleSubmitNumber.js +15 -18
  85. package/dist/utilities/index.d.ts +1 -1
  86. package/dist/utilities/index.js +13 -11
  87. package/dist/utilities/loadScriptInnerHtml.js +0 -1
  88. package/index.html +21 -28
  89. package/mockData/config.json +1 -1
  90. package/package.json +23 -15
  91. package/setupJest.js +1 -1
  92. package/tsconfig.json +2 -2
  93. package/dist/api/click2sms.js +0 -357
  94. package/dist/api/mo.js +0 -274
  95. package/dist/api/moRedir.js +0 -186
  96. package/dist/api/oneClick.js +0 -366
  97. package/dist/api/pin.js +0 -493
  98. package/dist/api/strategies.js +0 -704
  99. package/dist/api/ussd.js +0 -1
  100. package/dist/app/store.js +0 -35
  101. package/dist/features/strategies/categories/askMobileNumber.js +0 -395
  102. package/dist/features/strategies/categories/askOperator.js +0 -311
  103. package/dist/features/strategies/categories/detectOperatorByIp.js +0 -606
  104. package/dist/features/strategies/categories/headerEnrichment.js +0 -670
  105. package/dist/features/strategies/categories/typings/click2smsSliceTypes.js +0 -12
  106. package/dist/features/strategies/categories/typings/identifySliceTypes.js +0 -22
  107. package/dist/features/strategies/categories/typings/moFlowSliceTypes.js +0 -22
  108. package/dist/features/strategies/categories/typings/moRedirFlowSliceTypes.js +0 -21
  109. package/dist/features/strategies/categories/typings/oneClickSliceTypes.js +0 -13
  110. package/dist/features/strategies/categories/typings/pinFlowSliceTypes.js +0 -13
  111. package/dist/features/strategies/click2smsFlowSlice.js +0 -172
  112. package/dist/features/strategies/identifySlice.js +0 -455
  113. package/dist/features/strategies/moFlowSlice.js +0 -196
  114. package/dist/features/strategies/moRedirFlowSlice.js +0 -190
  115. package/dist/features/strategies/oneClickFlowSlice.js +0 -277
  116. package/dist/features/strategies/pinFlowSlice.js +0 -313
  117. package/dist/features/strategies/ussdFlowSlice.js +0 -1
  118. package/dist/flows/tpayHeFlow.d.ts +0 -7
  119. package/dist/flows/tpayHeFlow.js +0 -23
  120. package/dist/mockServer/browser.js +0 -48
  121. package/dist/mockServer/handlers.js +0 -22
  122. package/dist/mockServer/server.js +0 -48
  123. package/dist/reducers/tpayHeFlow/ITpayHeConstants.d.ts +0 -2
  124. package/dist/reducers/tpayHeFlow/ITpayHeConstants.js +0 -1
  125. package/dist/reducers/tpayHeFlow/TpayHeTypes.d.ts +0 -114
  126. package/dist/reducers/tpayHeFlow/TpayHeTypes.js +0 -1
  127. package/dist/reducers/tpayHeFlow/index.d.ts +0 -7
  128. package/dist/reducers/tpayHeFlow/index.js +0 -331
  129. package/dist/reducers/tpayHeFlow/utils.d.ts +0 -20
  130. package/dist/reducers/tpayHeFlow/utils.js +0 -510
  131. package/dist/test/setup.js +0 -24
  132. package/dist/test/test-utils.js +0 -51
  133. package/prettier.config.js +0 -7
  134. package/src/@types/react-tracker.d.ts +0 -16
  135. package/src/@types/redux-cli-logger.d.ts +0 -1
  136. package/src/@types/tiny-async-pool.d.ts +0 -3
  137. package/src/@types/window.d.ts +0 -74
  138. package/src/api/index.ts +0 -225
  139. package/src/common-types/AppThunk.ts +0 -19
  140. package/src/common-types/Either.ts +0 -3
  141. package/src/common-types/IError.ts +0 -5
  142. package/src/common-types/IOptInFlowName.ts +0 -1
  143. package/src/common-types/ITracker.ts +0 -10
  144. package/src/common-types/IVisitor.ts +0 -16
  145. package/src/common-types/RemoteDataState.ts +0 -88
  146. package/src/flows/click2smsFlow.ts +0 -18
  147. package/src/flows/moFlow.ts +0 -20
  148. package/src/flows/moRedirFlow.ts +0 -20
  149. package/src/flows/oneClickFlow.ts +0 -20
  150. package/src/flows/pinFlow.ts +0 -25
  151. package/src/flows/strategy.ts +0 -51
  152. package/src/flows/ussdFlow.ts +0 -20
  153. package/src/index.ts +0 -3
  154. package/src/ips/tryGetIPRangeName.ts +0 -22
  155. package/src/jest.config.js +0 -194
  156. package/src/pacman/index.ts +0 -71
  157. package/src/pacman/queryString.ts +0 -24
  158. package/src/reducers/click2smsFlow/Click2smsTypes.ts +0 -93
  159. package/src/reducers/click2smsFlow/IClick2smsConstants.ts +0 -4
  160. package/src/reducers/click2smsFlow/index.ts +0 -105
  161. package/src/reducers/click2smsFlow/utils.ts +0 -126
  162. package/src/reducers/moFlow/IMoConstants.ts +0 -7
  163. package/src/reducers/moFlow/MoTypes.ts +0 -125
  164. package/src/reducers/moFlow/index.ts +0 -150
  165. package/src/reducers/moFlow/utils.ts +0 -135
  166. package/src/reducers/moRedirFlow/IMoRedirConstants.ts +0 -7
  167. package/src/reducers/moRedirFlow/MoRedirTypes.ts +0 -99
  168. package/src/reducers/moRedirFlow/index.ts +0 -137
  169. package/src/reducers/moRedirFlow/utils.ts +0 -78
  170. package/src/reducers/oneClickFlow/IOneClickConstants.ts +0 -3
  171. package/src/reducers/oneClickFlow/OneClickTypes.ts +0 -108
  172. package/src/reducers/oneClickFlow/index.ts +0 -268
  173. package/src/reducers/oneClickFlow/utils.ts +0 -219
  174. package/src/reducers/pinFlow/IPinConstants.ts +0 -9
  175. package/src/reducers/pinFlow/PinTypes.ts +0 -190
  176. package/src/reducers/pinFlow/index.ts +0 -331
  177. package/src/reducers/pinFlow/utils.ts +0 -232
  178. package/src/reducers/strategy/IStategyActionContants.ts +0 -17
  179. package/src/reducers/strategy/StrategyTypes.ts +0 -376
  180. package/src/reducers/strategy/index.ts +0 -322
  181. package/src/reducers/strategy/strategies/ask_mobile_number.ts +0 -366
  182. package/src/reducers/strategy/strategies/ask_operator.ts +0 -195
  183. package/src/reducers/strategy/strategies/detect_operator_by_ip.ts +0 -414
  184. package/src/reducers/strategy/strategies/header_enrichment.ts +0 -489
  185. package/src/reducers/strategy/utils.ts +0 -357
  186. package/src/reducers/ussdFlow/IUssdConstants.ts +0 -7
  187. package/src/reducers/ussdFlow/UssdTypes.ts +0 -112
  188. package/src/reducers/ussdFlow/index.ts +0 -146
  189. package/src/reducers/ussdFlow/utils.ts +0 -88
  190. package/src/store/index.ts +0 -150
  191. package/src/store/reducers.ts +0 -37
  192. package/src/utilities/handleSubmitNumber.ts +0 -65
  193. package/src/utilities/index.ts +0 -114
  194. package/src/utilities/loadScriptInnerHtml.ts +0 -14
  195. 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: "DETECT_OPERATOR_BY_IP",
86
+ type: 'DETECT_OPERATOR_BY_IP',
87
87
  payload: {
88
- type: "DETECT_OPERATOR_BY_IP",
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 "pin-one-click-detect-operator-by-ip":
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 "one-click-mo-pin-detect-operator-by-ip-or-msisdn":
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 "mo-redir-one-click-detect-operator-by-ip":
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 "mo-one-click-detect-operator-by-ip":
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 "click2sms-one-click-detect-operator-by-ip":
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 "pin-mo-detect-operator-by-ip":
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: "DETECT_OPERATOR_BY_IP",
120
+ type: 'DETECT_OPERATOR_BY_IP',
121
121
  payload: {
122
- type: "DETECT_OPERATOR_BY_IP",
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 === "mo" ? 7 : _context.t0 === "pin" ? 9 : 10;
145
+ _context.next = _context.t0 === 'mo' ? 7 : _context.t0 === 'pin' ? 9 : 10;
146
146
  break;
147
147
 
148
148
  case 7:
149
- _.tracker.sendOptInFlowEvent("Msisdn to sms");
149
+ _.tracker.sendOptInFlowEvent('Msisdn to sms');
150
150
 
151
151
  return _context.abrupt("return", dispatch({
152
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
152
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
153
153
  payload: {
154
- type: "MO",
154
+ type: 'MO',
155
155
  result: {
156
- nextAction: "submitMSISDNAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
165
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
166
166
  payload: {
167
- type: "PIN",
167
+ type: 'PIN',
168
168
  result: {
169
- nextAction: "submitMSISDNAction",
169
+ nextAction: 'submitMSISDNAction',
170
170
  config: flowObj.flowConfig
171
171
  }
172
172
  }
173
173
  }));
174
174
 
175
175
  case 10:
176
- _.tracker.sendOptInFlowEvent("Msisdn to sms");
176
+ _.tracker.sendOptInFlowEvent('Msisdn to sms');
177
177
 
178
178
  return _context.abrupt("return", dispatch({
179
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
179
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
180
180
  payload: {
181
181
  type: defaultFlow.flow.toUpperCase(),
182
182
  result: {
183
- nextAction: "submitMSISDNAction",
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("Msisdn to sms");
198
+ _.tracker.sendOptInFlowEvent('Msisdn to sms');
199
199
 
200
200
  dispatch({
201
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
201
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
202
202
  payload: {
203
203
  type: defaultFlow.flow.toUpperCase(),
204
204
  result: {
205
- nextAction: "submitMSISDNAction",
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 === "mo" ? 7 : _context2.t0 === "oneClick" ? 9 : 11;
242
+ _context2.next = _context2.t0 === 'mo' ? 7 : _context2.t0 === 'oneClick' ? 9 : 11;
243
243
  break;
244
244
 
245
245
  case 7:
246
- _.tracker.sendOptInFlowEvent("Msisdn to sms");
246
+ _.tracker.sendOptInFlowEvent('Msisdn to sms');
247
247
 
248
248
  return _context2.abrupt("return", dispatch({
249
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
249
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
250
250
  payload: {
251
- type: "MO",
251
+ type: 'MO',
252
252
  result: {
253
- nextAction: "submitMSISDNAction",
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("3G click");
261
+ _.tracker.sendOptInFlowEvent('3G click');
262
262
 
263
263
  return _context2.abrupt("return", dispatch({
264
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
264
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
265
265
  payload: {
266
- type: "ONE_CLICK",
266
+ type: 'ONE_CLICK',
267
267
  result: {
268
- nextAction: "getRedirectUrlAction",
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("Msisdn to sms");
276
+ _.tracker.sendOptInFlowEvent('Msisdn to sms');
277
277
 
278
278
  return _context2.abrupt("return", dispatch({
279
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
279
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
280
280
  payload: {
281
- type: "MO",
281
+ type: 'MO',
282
282
  result: {
283
- nextAction: "submitMSISDNAction",
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("Msisdn to sms");
298
+ _.tracker.sendOptInFlowEvent('Msisdn to sms');
299
299
 
300
300
  dispatch({
301
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
301
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
302
302
  payload: {
303
- type: "MO",
303
+ type: 'MO',
304
304
  result: {
305
- nextAction: "submitMSISDNAction",
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 === "click2sms" ? 7 : _context3.t0 === "oneClick" ? 9 : 11;
342
+ _context3.next = _context3.t0 === 'click2sms' ? 7 : _context3.t0 === 'oneClick' ? 9 : 11;
343
343
  break;
344
344
 
345
345
  case 7:
346
- _.tracker.sendOptInFlowEvent("Click to sms");
346
+ _.tracker.sendOptInFlowEvent('Click to sms');
347
347
 
348
348
  return _context3.abrupt("return", dispatch({
349
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
349
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
350
350
  payload: {
351
- type: "CLICK2SMS",
351
+ type: 'CLICK2SMS',
352
352
  result: {
353
- nextAction: "loadOc2sms",
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("3G click");
363
+ _.tracker.sendOptInFlowEvent('3G click');
364
364
 
365
365
  return _context3.abrupt("return", dispatch({
366
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
366
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
367
367
  payload: {
368
- type: "ONE_CLICK",
368
+ type: 'ONE_CLICK',
369
369
  result: {
370
- nextAction: "getRedirectUrlAction",
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("Click to sms");
378
+ _.tracker.sendOptInFlowEvent('Click to sms');
379
379
 
380
380
  return _context3.abrupt("return", dispatch({
381
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
381
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
382
382
  payload: {
383
- type: "CLICK2SMS",
383
+ type: 'CLICK2SMS',
384
384
  result: {
385
- nextAction: "loadOc2sms",
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("Click to sms");
400
+ _.tracker.sendOptInFlowEvent('Click to sms');
401
401
 
402
402
  dispatch({
403
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
403
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
404
404
  payload: {
405
- type: "CLICK2SMS",
405
+ type: 'CLICK2SMS',
406
406
  result: {
407
- nextAction: "loadOc2sms",
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 === "pin" ? 7 : _context4.t0 === "oneClick" ? 8 : 9;
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
449
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
450
450
  payload: {
451
- type: "PIN",
451
+ type: 'PIN',
452
452
  result: {
453
- nextAction: "submitMSISDNAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
461
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
462
462
  payload: {
463
- type: "ONE_CLICK",
463
+ type: 'ONE_CLICK',
464
464
  result: {
465
- nextAction: "getRedirectUrlAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
474
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
475
475
  payload: {
476
- type: "PIN",
476
+ type: 'PIN',
477
477
  result: {
478
- nextAction: "submitMSISDNAction",
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("defaultFlow", defaultFlow);
492
+ console.log('defaultFlow', defaultFlow);
493
493
  dispatch({
494
- type: "IDENTIFY_FLOW_BY_IP_OPERATOR",
494
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
495
495
  payload: {
496
- type: "PIN",
496
+ type: 'PIN',
497
497
  result: {
498
- nextAction: "submitMSISDNAction",
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 === "pin" ? 7 : _context5.t0 === "oneClick" ? 8 : 9;
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
540
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
541
541
  payload: {
542
- type: "PIN",
542
+ type: 'PIN',
543
543
  result: {
544
- nextAction: "submitMSISDNAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
553
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
554
554
  payload: {
555
- type: "MO_REDIR",
555
+ type: 'MO_REDIR',
556
556
  result: {
557
- nextAction: "submitMSISDNAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
566
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
567
567
  payload: {
568
- type: "PIN",
568
+ type: 'PIN',
569
569
  result: {
570
- nextAction: "submitMSISDNAction",
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 === "moRedir" ? 7 : _context6.t0 === "oneClick" ? 8 : 9;
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
622
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
623
623
  payload: {
624
- type: "MO_REDIR",
624
+ type: 'MO_REDIR',
625
625
  result: {
626
- nextAction: "submitMSISDNAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
635
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
636
636
  payload: {
637
- type: "ONE_CLICK",
637
+ type: 'ONE_CLICK',
638
638
  result: {
639
- nextAction: "getRedirectUrlAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
648
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
649
649
  payload: {
650
- type: "MO_REDIR",
650
+ type: 'MO_REDIR',
651
651
  result: {
652
- nextAction: "submitMSISDNAction",
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: "IDENTIFY_FLOW_BY_IP_OPERATOR",
668
+ type: 'IDENTIFY_FLOW_BY_IP_OPERATOR',
669
669
  payload: {
670
- type: "MO_REDIR",
670
+ type: 'MO_REDIR',
671
671
  result: {
672
- nextAction: "submitMSISDNAction",
672
+ nextAction: 'submitMSISDNAction',
673
673
  config: defaultFlow.flowConfig
674
674
  }
675
675
  }
@@ -1,5 +1,5 @@
1
- import { AppThunk } from "../../../common-types/AppThunk";
2
- import { IFlow } from "../StrategyTypes";
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;