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
package/.babelrc
CHANGED
|
@@ -5,22 +5,18 @@
|
|
|
5
5
|
{
|
|
6
6
|
"useBuiltIns": "usage",
|
|
7
7
|
"debug": true,
|
|
8
|
-
"corejs":"3.6.5"
|
|
8
|
+
"corejs": "3.6.5"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"@babel/preset-typescript"
|
|
12
12
|
],
|
|
13
|
-
"plugins": [
|
|
14
|
-
"@babel/plugin-proposal-class-properties"
|
|
15
|
-
],
|
|
13
|
+
"plugins": ["@babel/plugin-proposal-class-properties"],
|
|
16
14
|
"env": {
|
|
17
15
|
"development": {
|
|
18
|
-
"plugins": [
|
|
19
|
-
"react-hot-loader/babel"
|
|
20
|
-
]
|
|
16
|
+
"plugins": ["react-hot-loader/babel"]
|
|
21
17
|
},
|
|
22
18
|
"test": {
|
|
23
19
|
"plugins": []
|
|
24
20
|
}
|
|
25
21
|
}
|
|
26
|
-
}
|
|
22
|
+
}
|
package/.eslintrc.js
CHANGED
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v16.
|
|
1
|
+
v16.10.0
|
package/.prettierignore
CHANGED
package/README.md
CHANGED
package/dist/api/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IMSISDNSubmissionResult as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { IFetchResult } from '../reducers/click2smsFlow/Click2smsTypes';
|
|
2
|
+
import { IGoogleReCaptcha, IMSISDNSubmissionResult as IMoMSISDNSubmissionResult } from '../reducers/moFlow/MoTypes';
|
|
3
|
+
import { IMSISDNSubmissionResult as IMoRedirMSISDNSubmissionResult } from '../reducers/moRedirFlow/MoRedirTypes';
|
|
4
|
+
import { ICheckSubscriptionResult, IMcpShieldResult, IMSISDNSubmissionResult, IPINSubmissionResult } from '../reducers/pinFlow/PinTypes';
|
|
5
|
+
import { IIdentifyResult } from '../reducers/strategy/StrategyTypes';
|
|
6
6
|
export interface ITallyman {
|
|
7
7
|
identify: (host: string, slug: string, country: string, msisdn: string, device: string, offer: number, rockmanId: string) => Promise<IIdentifyResult>;
|
|
8
8
|
triggerPin: (host: string, country: string, slug: string, device: string, offer: number, msisdn: string, rockmanId: string, extraParamsQs: string, search: string, uniqid?: string) => Promise<IMSISDNSubmissionResult>;
|
package/dist/api/index.js
CHANGED
|
@@ -69,13 +69,13 @@ var MockTallyman = {
|
|
|
69
69
|
while (1) {
|
|
70
70
|
switch (_context.prev = _context.next) {
|
|
71
71
|
case 0:
|
|
72
|
-
console.log(
|
|
72
|
+
console.log('MockTallyman');
|
|
73
73
|
sleep(2000);
|
|
74
74
|
return _context.abrupt("return", {
|
|
75
|
-
operator:
|
|
76
|
-
flow:
|
|
75
|
+
operator: '',
|
|
76
|
+
flow: '',
|
|
77
77
|
success: true,
|
|
78
|
-
rockman_id:
|
|
78
|
+
rockman_id: ''
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
case 3:
|
|
@@ -98,14 +98,14 @@ var MockTallyman = {
|
|
|
98
98
|
while (1) {
|
|
99
99
|
switch (_context2.prev = _context2.next) {
|
|
100
100
|
case 0:
|
|
101
|
-
console.log(
|
|
101
|
+
console.log('MockTallyman');
|
|
102
102
|
sleep(2000);
|
|
103
103
|
return _context2.abrupt("return", {
|
|
104
104
|
success: true,
|
|
105
|
-
operator:
|
|
106
|
-
rockman_id:
|
|
107
|
-
pin:
|
|
108
|
-
product_url:
|
|
105
|
+
operator: '',
|
|
106
|
+
rockman_id: '',
|
|
107
|
+
pin: '',
|
|
108
|
+
product_url: ''
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
case 3:
|
|
@@ -128,12 +128,12 @@ var MockTallyman = {
|
|
|
128
128
|
while (1) {
|
|
129
129
|
switch (_context3.prev = _context3.next) {
|
|
130
130
|
case 0:
|
|
131
|
-
console.log(
|
|
131
|
+
console.log('MockTallyman');
|
|
132
132
|
sleep(2000);
|
|
133
133
|
return _context3.abrupt("return", {
|
|
134
134
|
success: true,
|
|
135
|
-
rockman_id:
|
|
136
|
-
product_url:
|
|
135
|
+
rockman_id: '000',
|
|
136
|
+
product_url: '/mock-product-url',
|
|
137
137
|
async: false
|
|
138
138
|
});
|
|
139
139
|
|
|
@@ -157,13 +157,13 @@ var MockTallyman = {
|
|
|
157
157
|
while (1) {
|
|
158
158
|
switch (_context4.prev = _context4.next) {
|
|
159
159
|
case 0:
|
|
160
|
-
console.log(
|
|
160
|
+
console.log('MockTallyman');
|
|
161
161
|
sleep(2000);
|
|
162
162
|
return _context4.abrupt("return", {
|
|
163
163
|
success: true,
|
|
164
|
-
rockman_id:
|
|
165
|
-
product_url:
|
|
166
|
-
msisdn:
|
|
164
|
+
rockman_id: '000',
|
|
165
|
+
product_url: '/mock-product-url',
|
|
166
|
+
msisdn: '000'
|
|
167
167
|
});
|
|
168
168
|
|
|
169
169
|
case 3:
|
|
@@ -186,13 +186,13 @@ var MockTallyman = {
|
|
|
186
186
|
while (1) {
|
|
187
187
|
switch (_context5.prev = _context5.next) {
|
|
188
188
|
case 0:
|
|
189
|
-
console.log(
|
|
189
|
+
console.log('MockTallyman');
|
|
190
190
|
sleep(2000);
|
|
191
191
|
return _context5.abrupt("return", {
|
|
192
192
|
success: true,
|
|
193
|
-
rockman_id:
|
|
194
|
-
product_url:
|
|
195
|
-
msisdn:
|
|
193
|
+
rockman_id: '000',
|
|
194
|
+
product_url: '/mock-product-url',
|
|
195
|
+
msisdn: '000'
|
|
196
196
|
});
|
|
197
197
|
|
|
198
198
|
case 3:
|
|
@@ -215,12 +215,12 @@ var MockTallyman = {
|
|
|
215
215
|
while (1) {
|
|
216
216
|
switch (_context6.prev = _context6.next) {
|
|
217
217
|
case 0:
|
|
218
|
-
console.log(
|
|
218
|
+
console.log('MockTallyman');
|
|
219
219
|
sleep(2000);
|
|
220
220
|
return _context6.abrupt("return", {
|
|
221
221
|
success: true,
|
|
222
|
-
rockman_id:
|
|
223
|
-
redirect_url:
|
|
222
|
+
rockman_id: '000',
|
|
223
|
+
redirect_url: '/mock-product-url'
|
|
224
224
|
});
|
|
225
225
|
|
|
226
226
|
case 3:
|
|
@@ -243,11 +243,11 @@ var MockTallyman = {
|
|
|
243
243
|
while (1) {
|
|
244
244
|
switch (_context7.prev = _context7.next) {
|
|
245
245
|
case 0:
|
|
246
|
-
console.log(
|
|
246
|
+
console.log('MockTallyman');
|
|
247
247
|
sleep(2000);
|
|
248
248
|
return _context7.abrupt("return", {
|
|
249
249
|
success: true,
|
|
250
|
-
rockman_id:
|
|
250
|
+
rockman_id: '0000',
|
|
251
251
|
keyword: 'TEST OK',
|
|
252
252
|
shortcode: '666'
|
|
253
253
|
});
|
|
@@ -272,11 +272,11 @@ var MockTallyman = {
|
|
|
272
272
|
while (1) {
|
|
273
273
|
switch (_context8.prev = _context8.next) {
|
|
274
274
|
case 0:
|
|
275
|
-
console.log(
|
|
275
|
+
console.log('MockTallyman');
|
|
276
276
|
sleep(2000);
|
|
277
277
|
return _context8.abrupt("return", {
|
|
278
278
|
success: true,
|
|
279
|
-
rockman_id:
|
|
279
|
+
rockman_id: '0000',
|
|
280
280
|
keyword: 'TEST OK',
|
|
281
281
|
shortcode: '666'
|
|
282
282
|
});
|
|
@@ -301,13 +301,13 @@ var MockTallyman = {
|
|
|
301
301
|
while (1) {
|
|
302
302
|
switch (_context9.prev = _context9.next) {
|
|
303
303
|
case 0:
|
|
304
|
-
console.log(
|
|
304
|
+
console.log('MockTallyman');
|
|
305
305
|
sleep(2000);
|
|
306
306
|
return _context9.abrupt("return", {
|
|
307
307
|
success: true,
|
|
308
|
-
uid:
|
|
308
|
+
uid: '1',
|
|
309
309
|
keyword: 'TEST OK',
|
|
310
|
-
displayKeyword:
|
|
310
|
+
displayKeyword: 'TEST OK',
|
|
311
311
|
shortcode: '666'
|
|
312
312
|
});
|
|
313
313
|
|
|
@@ -331,13 +331,13 @@ var MockTallyman = {
|
|
|
331
331
|
while (1) {
|
|
332
332
|
switch (_context10.prev = _context10.next) {
|
|
333
333
|
case 0:
|
|
334
|
-
console.log(
|
|
334
|
+
console.log('MockTallyman');
|
|
335
335
|
sleep(2000);
|
|
336
336
|
return _context10.abrupt("return", {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
source: '**********some very long text**********',
|
|
338
|
+
uniqid: 'a26e7c3983a9cebd469601d695c7dbc4',
|
|
339
|
+
success: true,
|
|
340
|
+
rockman_id: 'd66ac1a3ee6d40c289c23322ecd9aa79'
|
|
341
341
|
});
|
|
342
342
|
|
|
343
343
|
case 3:
|
|
@@ -361,10 +361,10 @@ var MockTallyman = {
|
|
|
361
361
|
switch (_context11.prev = _context11.next) {
|
|
362
362
|
case 0:
|
|
363
363
|
return _context11.abrupt("return", {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
site_key: '6LfMTS8fAAAAAHw-cibJXMfnsIYNpWh81GatD1lw',
|
|
365
|
+
secret_key: '6LfMTS8fAAAAAIAET7tvHjrU-tRPGuqSdfCZZX6G',
|
|
366
|
+
domains: 'n.gamiclub.com',
|
|
367
|
+
success: true
|
|
368
368
|
});
|
|
369
369
|
|
|
370
370
|
case 1:
|
|
@@ -391,9 +391,9 @@ var RealTallyman = {
|
|
|
391
391
|
while (1) {
|
|
392
392
|
switch (_context12.prev = _context12.next) {
|
|
393
393
|
case 0:
|
|
394
|
-
console.log(
|
|
395
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
396
|
-
newHost = isDMB ?
|
|
394
|
+
console.log('RealTallyman');
|
|
395
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
396
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
397
397
|
_context12.next = 5;
|
|
398
398
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=identify&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
399
399
|
return x.json();
|
|
@@ -423,10 +423,10 @@ var RealTallyman = {
|
|
|
423
423
|
while (1) {
|
|
424
424
|
switch (_context13.prev = _context13.next) {
|
|
425
425
|
case 0:
|
|
426
|
-
console.log(
|
|
427
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
428
|
-
newHost = isDMB ?
|
|
429
|
-
isCleanTraffic = country.toLowerCase() ===
|
|
426
|
+
console.log('RealTallyman');
|
|
427
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
428
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
429
|
+
isCleanTraffic = country.toLowerCase() === 'be' ? typeof window !== 'undefined' && window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
|
|
430
430
|
_context13.next = 6;
|
|
431
431
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&msisdn=").concat(msisdn, "&rockman_id=").concat(rockmanId).concat(uniqid).concat(isCleanTraffic).concat(extraParamsQs, "&").concat(search)).then(function (x) {
|
|
432
432
|
return x.json();
|
|
@@ -456,10 +456,10 @@ var RealTallyman = {
|
|
|
456
456
|
while (1) {
|
|
457
457
|
switch (_context14.prev = _context14.next) {
|
|
458
458
|
case 0:
|
|
459
|
-
console.log(
|
|
460
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
461
|
-
newHost = isDMB ?
|
|
462
|
-
isCleanTraffic = country.toLowerCase() ===
|
|
459
|
+
console.log('RealTallyman');
|
|
460
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
461
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
462
|
+
isCleanTraffic = country.toLowerCase() === 'be' ? typeof window !== 'undefined' && window.shouldBlock === true ? '&is-clean-traffic=false' : '&is-clean-traffic=true' : '';
|
|
463
463
|
_context14.next = 6;
|
|
464
464
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=verify-pin&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&pin=").concat(pin).concat(uniqid, "&sam_evina_tid=").concat(evinaTid).concat(isCleanTraffic).concat(extraParamsQs)).then(function (x) {
|
|
465
465
|
return x.json();
|
|
@@ -489,9 +489,9 @@ var RealTallyman = {
|
|
|
489
489
|
while (1) {
|
|
490
490
|
switch (_context15.prev = _context15.next) {
|
|
491
491
|
case 0:
|
|
492
|
-
console.log(
|
|
493
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
494
|
-
newHost = isDMB ?
|
|
492
|
+
console.log('RealTallyman');
|
|
493
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
494
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
495
495
|
_context15.next = 5;
|
|
496
496
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&country=").concat(bupperizeCountry(country), "&slug=").concat(slug, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
497
497
|
return x.json();
|
|
@@ -521,9 +521,9 @@ var RealTallyman = {
|
|
|
521
521
|
while (1) {
|
|
522
522
|
switch (_context16.prev = _context16.next) {
|
|
523
523
|
case 0:
|
|
524
|
-
console.log(
|
|
525
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
526
|
-
newHost = isDMB ?
|
|
524
|
+
console.log('RealTallyman');
|
|
525
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
526
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
527
527
|
_context16.next = 5;
|
|
528
528
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=check-subscription&rockman_id=").concat(rockmanId)).then(function (x) {
|
|
529
529
|
return x.json();
|
|
@@ -553,12 +553,12 @@ var RealTallyman = {
|
|
|
553
553
|
while (1) {
|
|
554
554
|
switch (_context17.prev = _context17.next) {
|
|
555
555
|
case 0:
|
|
556
|
-
console.log(
|
|
557
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
558
|
-
newHost = isDMB ?
|
|
559
|
-
evinaTi = country.toLowerCase() ===
|
|
556
|
+
console.log('RealTallyman');
|
|
557
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
558
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
559
|
+
evinaTi = country.toLowerCase() === 'a2' ? "&evinaTi=".concat(rockmanId) : '';
|
|
560
560
|
_context17.next = 6;
|
|
561
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=redirect&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&network_type=").concat(!ip_range_name ?
|
|
561
|
+
return fetch("https://".concat(newHost, "/tallyman/v1/?action=redirect&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&network_type=").concat(!ip_range_name ? 'wifi' : '', "&").concat(search).concat(evinaTi).concat(extraParamsQs)).then(function (x) {
|
|
562
562
|
return x.json();
|
|
563
563
|
});
|
|
564
564
|
|
|
@@ -586,9 +586,9 @@ var RealTallyman = {
|
|
|
586
586
|
while (1) {
|
|
587
587
|
switch (_context18.prev = _context18.next) {
|
|
588
588
|
case 0:
|
|
589
|
-
console.log(
|
|
590
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
591
|
-
newHost = isDMB ?
|
|
589
|
+
console.log('RealTallyman');
|
|
590
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
591
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
592
592
|
samGtoken = window.reCaptchaToken ? "sam-g-token=".concat(window.reCaptchaToken) : '';
|
|
593
593
|
_context18.next = 6;
|
|
594
594
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=trigger-message&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&").concat(samGtoken).concat(search).concat(extraParamsQs)).then(function (x) {
|
|
@@ -619,9 +619,9 @@ var RealTallyman = {
|
|
|
619
619
|
while (1) {
|
|
620
620
|
switch (_context19.prev = _context19.next) {
|
|
621
621
|
case 0:
|
|
622
|
-
console.log(
|
|
623
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
624
|
-
newHost = isDMB ?
|
|
622
|
+
console.log('RealTallyman');
|
|
623
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
624
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
625
625
|
_context19.next = 5;
|
|
626
626
|
return fetch("https://".concat(newHost, "/tallyman/v1/?action=ussd&slug=").concat(slug, "&country=").concat(country, "&msisdn=").concat(msisdn, "&device=").concat(device, "&offerId=").concat(offer, "&rockman_id=").concat(rockmanId, "&").concat(search).concat(extraParamsQs)).then(function (x) {
|
|
627
627
|
return x.json();
|
|
@@ -651,11 +651,11 @@ var RealTallyman = {
|
|
|
651
651
|
while (1) {
|
|
652
652
|
switch (_context20.prev = _context20.next) {
|
|
653
653
|
case 0:
|
|
654
|
-
console.log(
|
|
655
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
656
|
-
newHost = isDMB ?
|
|
654
|
+
console.log('RealTallyman');
|
|
655
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
656
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
657
657
|
_context20.next = 5;
|
|
658
|
-
return fetch("https://".concat(newHost, "/tallyman/v1/?action=oc2sms&country=").concat(country, "&slug=").concat(slug, "&offerId=").concat(offer).concat(
|
|
658
|
+
return fetch("https://".concat(newHost, "/tallyman/v1/?action=oc2sms&country=").concat(country, "&slug=").concat(slug, "&offerId=").concat(offer).concat(keyword ? "&keyword=".concat(keyword) : '', "&device=smart&rockman_id=").concat(rockmanId).concat(operator ? "&operator=".concat(operator) : '', "&").concat(search)).then(function (x) {
|
|
659
659
|
return x.json();
|
|
660
660
|
});
|
|
661
661
|
|
|
@@ -683,9 +683,9 @@ var RealTallyman = {
|
|
|
683
683
|
while (1) {
|
|
684
684
|
switch (_context21.prev = _context21.next) {
|
|
685
685
|
case 0:
|
|
686
|
-
console.log(
|
|
687
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
688
|
-
newHost = isDMB ?
|
|
686
|
+
console.log('RealTallyman');
|
|
687
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
688
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
689
689
|
pageUrl = window.location.href;
|
|
690
690
|
ipAdd = window.pac_analytics.visitor.ip;
|
|
691
691
|
userIp = ipAdd ? "&client_ip=".concat(ipAdd) : '';
|
|
@@ -718,8 +718,8 @@ var RealTallyman = {
|
|
|
718
718
|
while (1) {
|
|
719
719
|
switch (_context22.prev = _context22.next) {
|
|
720
720
|
case 0:
|
|
721
|
-
isDMB = window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf(
|
|
722
|
-
newHost = isDMB ?
|
|
721
|
+
isDMB = !!(window.pac_analytics.visitor.xaid != null && (window.pac_analytics.visitor.xaid.toLowerCase().indexOf('dmb') != -1 || window.pac_analytics.visitor.xaid.toLowerCase().indexOf('amb')) != -1);
|
|
722
|
+
newHost = isDMB ? 'de.tallymans.com' : host;
|
|
723
723
|
_context22.next = 4;
|
|
724
724
|
return fetch("https://".concat(newHost, "/tallyman/helper/?action=google-captcha-v3-config&country=").concat(country, "&slug=").concat(slug, "&device=").concat(device, "&domain=").concat(domain)).then(function (x) {
|
|
725
725
|
return x.json();
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
declare type IAllActionConstants = IStategyActionContants | IPinConstants | IMoConstants | IMoRedirConstants | IOneClickConstants | IClick2smsConstants | IUssdConstants;
|
|
1
|
+
import { Action } from 'redux';
|
|
2
|
+
import { ThunkAction } from 'redux-thunk';
|
|
3
|
+
import IClick2smsConstants from '../reducers/click2smsFlow/IClick2smsConstants';
|
|
4
|
+
import IMoConstants from '../reducers/moFlow/IMoConstants';
|
|
5
|
+
import IMoRedirConstants from '../reducers/moRedirFlow/IMoRedirConstants';
|
|
6
|
+
import IOneClickConstants from '../reducers/oneClickFlow/IOneClickConstants';
|
|
7
|
+
import IPinConstants from '../reducers/pinFlow/IPinConstants';
|
|
8
|
+
import IStategyActionContants from '../reducers/strategy/IStategyActionContants';
|
|
9
|
+
import IUssdConstants from '../reducers/ussdFlow/IUssdConstants';
|
|
10
|
+
import { IApplicationState } from '../store/reducers';
|
|
11
|
+
export declare type IAllActionConstants = IStategyActionContants | IPinConstants | IMoConstants | IMoRedirConstants | IOneClickConstants | IClick2smsConstants | IUssdConstants;
|
|
12
12
|
export declare type AppThunk<ReturnType = void> = ThunkAction<ReturnType, IApplicationState, unknown, Action<IAllActionConstants>>;
|
|
13
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
declare type IOptInFlowName =
|
|
1
|
+
declare type IOptInFlowName = 'Block' | 'Click to sms' | 'Hybrid Pin' | 'Msisdn to sms' | 'Not available' | 'Pin' | 'Redirect' | 'To be determined' | 'USSD' | '3G click';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare type RemoteDataState<E, D> = {
|
|
2
|
-
type:
|
|
2
|
+
type: 'NothingYet';
|
|
3
3
|
} | {
|
|
4
|
-
type:
|
|
4
|
+
type: 'Loading';
|
|
5
5
|
} | {
|
|
6
|
-
type:
|
|
6
|
+
type: 'Failure';
|
|
7
7
|
error: E;
|
|
8
8
|
} | {
|
|
9
|
-
type:
|
|
9
|
+
type: 'Success';
|
|
10
10
|
data: D;
|
|
11
11
|
};
|
|
12
12
|
export interface IMatcher<E, D, R> {
|
|
@@ -17,16 +17,16 @@ function match(_ref) {
|
|
|
17
17
|
success = _ref.success;
|
|
18
18
|
return function (model) {
|
|
19
19
|
switch (model.type) {
|
|
20
|
-
case
|
|
20
|
+
case 'NothingYet':
|
|
21
21
|
return nothingYet();
|
|
22
22
|
|
|
23
|
-
case
|
|
23
|
+
case 'Loading':
|
|
24
24
|
return loading();
|
|
25
25
|
|
|
26
|
-
case
|
|
26
|
+
case 'Failure':
|
|
27
27
|
return failure(model.error);
|
|
28
28
|
|
|
29
|
-
case
|
|
29
|
+
case 'Success':
|
|
30
30
|
return success(model.data);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
@@ -34,7 +34,7 @@ function match(_ref) {
|
|
|
34
34
|
|
|
35
35
|
var NothingYet = function NothingYet(data) {
|
|
36
36
|
return {
|
|
37
|
-
type:
|
|
37
|
+
type: 'NothingYet'
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ exports.NothingYet = NothingYet;
|
|
|
42
42
|
|
|
43
43
|
var Loading = function Loading() {
|
|
44
44
|
return {
|
|
45
|
-
type:
|
|
45
|
+
type: 'Loading'
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ exports.Loading = Loading;
|
|
|
50
50
|
|
|
51
51
|
var Failure = function Failure(error) {
|
|
52
52
|
return {
|
|
53
|
-
type:
|
|
53
|
+
type: 'Failure',
|
|
54
54
|
error: error
|
|
55
55
|
};
|
|
56
56
|
};
|
|
@@ -59,7 +59,7 @@ exports.Failure = Failure;
|
|
|
59
59
|
|
|
60
60
|
var Success = function Success(data) {
|
|
61
61
|
return {
|
|
62
|
-
type:
|
|
62
|
+
type: 'Success',
|
|
63
63
|
data: data
|
|
64
64
|
};
|
|
65
65
|
};
|
|
@@ -67,32 +67,32 @@ var Success = function Success(data) {
|
|
|
67
67
|
exports.Success = Success;
|
|
68
68
|
|
|
69
69
|
var IsNothingYet = function IsNothingYet(s) {
|
|
70
|
-
return s.type ==
|
|
70
|
+
return s.type == 'NothingYet';
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
exports.IsNothingYet = IsNothingYet;
|
|
74
74
|
|
|
75
75
|
var IsLoading = function IsLoading(s) {
|
|
76
|
-
return s.type ==
|
|
76
|
+
return s.type == 'Loading';
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
exports.IsLoading = IsLoading;
|
|
80
80
|
|
|
81
81
|
var IsFailure = function IsFailure(s) {
|
|
82
|
-
return s.type ==
|
|
82
|
+
return s.type == 'Failure';
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
exports.IsFailure = IsFailure;
|
|
86
86
|
|
|
87
87
|
var IsSuccess = function IsSuccess(s) {
|
|
88
|
-
return s.type ==
|
|
88
|
+
return s.type == 'Success';
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
exports.IsSuccess = IsSuccess;
|
|
92
92
|
|
|
93
93
|
var WhenFailure = function WhenFailure(d, r) {
|
|
94
94
|
return function (s) {
|
|
95
|
-
return s.type ==
|
|
95
|
+
return s.type == 'Failure' ? r(s.error) : d;
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
|
|
@@ -100,7 +100,7 @@ exports.WhenFailure = WhenFailure;
|
|
|
100
100
|
|
|
101
101
|
var WhenLoading = function WhenLoading(d, r) {
|
|
102
102
|
return function (s) {
|
|
103
|
-
return s.type ==
|
|
103
|
+
return s.type == 'Loading' ? r() : d;
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -108,7 +108,7 @@ exports.WhenLoading = WhenLoading;
|
|
|
108
108
|
|
|
109
109
|
var WhenSuccess = function WhenSuccess(d, r) {
|
|
110
110
|
return function (s) {
|
|
111
|
-
return s.type ==
|
|
111
|
+
return s.type == 'Success' ? r(s.data) : d;
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
|
|
@@ -118,7 +118,7 @@ var MatchFailure = function MatchFailure(_ref2) {
|
|
|
118
118
|
var failure = _ref2.failure,
|
|
119
119
|
otherwise = _ref2.otherwise;
|
|
120
120
|
return function (s) {
|
|
121
|
-
return s.type ==
|
|
121
|
+
return s.type == 'Failure' ? failure(s.error) : otherwise();
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
|
|
@@ -128,7 +128,7 @@ var MatchSuccess = function MatchSuccess(_ref3) {
|
|
|
128
128
|
var success = _ref3.success,
|
|
129
129
|
otherwise = _ref3.otherwise;
|
|
130
130
|
return function (s) {
|
|
131
|
-
return s.type ==
|
|
131
|
+
return s.type == 'Success' ? success(s.data) : otherwise(s);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
134
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as RDS from
|
|
2
|
-
import { IClick2smsFlowCurrentState, IWithMultiKeywordShortcode } from
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
import { IClick2smsFlowCurrentState, IWithMultiKeywordShortcode } from '../reducers/click2smsFlow/Click2smsTypes';
|
|
3
3
|
declare function click2smsFlowMatch<R>({ load }: {
|
|
4
4
|
load: (rds: RDS.RemoteDataState<string, IWithMultiKeywordShortcode>) => R;
|
|
5
5
|
}): (state: IClick2smsFlowCurrentState) => R;
|
package/dist/flows/moFlow.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as RDS from
|
|
2
|
-
import { IMoFlowCurrentState, MSISDNEntryFailure, MSISDNEntrySuccess } from
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
import { IMoFlowCurrentState, MSISDNEntryFailure, MSISDNEntrySuccess } from '../reducers/moFlow/MoTypes';
|
|
3
3
|
declare function moFlowMatch<R>({ msisdnEntry }: {
|
|
4
4
|
msisdnEntry: (rds: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>) => R;
|
|
5
5
|
}): (state: IMoFlowCurrentState) => R;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as RDS from
|
|
2
|
-
import { IMoRedirFlowCurrentState, MSISDNEntryFailure, MSISDNEntrySuccess } from
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
import { IMoRedirFlowCurrentState, MSISDNEntryFailure, MSISDNEntrySuccess } from '../reducers/moRedirFlow/MoRedirTypes';
|
|
3
3
|
declare function moRedirFlowMatch<R>({ msisdnEntry }: {
|
|
4
4
|
msisdnEntry: (rds: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>) => R;
|
|
5
5
|
}): (state: IMoRedirFlowCurrentState) => R;
|