ouisys-engine 4.3.0-alpha.0 → 4.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/window.d.js +1 -1
- package/dist/api/index.d.ts +43 -0
- package/dist/api/index.js +1 -728
- package/dist/common-types/AppThunk.d.ts +13 -0
- package/dist/common-types/AppThunk.js +1 -1
- package/dist/common-types/Either.d.ts +8 -0
- package/dist/common-types/Either.js +1 -1
- package/dist/common-types/IError.d.ts +3 -0
- package/dist/common-types/IError.js +1 -1
- package/dist/common-types/IOptInFlowName.d.ts +1 -0
- package/dist/common-types/ITracker.d.ts +9 -0
- package/dist/common-types/ITracker.js +1 -3
- package/dist/common-types/IVisitor.d.ts +14 -0
- package/dist/common-types/IVisitor.js +1 -1
- package/dist/common-types/RemoteDataState.d.ts +38 -0
- package/dist/common-types/RemoteDataState.js +1 -135
- package/dist/custom-hooks/useOneClickRedirectUrl.d.ts +3 -0
- package/dist/custom-hooks/useOneClickRedirectUrl.js +1 -0
- package/dist/custom-hooks/usePinEntryState.d.ts +8 -0
- package/dist/custom-hooks/usePinEntryState.js +1 -0
- package/dist/custom-hooks/useStrategyConfig.d.ts +4 -0
- package/dist/custom-hooks/useStrategyConfig.js +1 -0
- package/dist/flows/click2smsFlow.d.ts +6 -0
- package/dist/flows/click2smsFlow.js +1 -19
- package/dist/flows/creditCardFlow.d.ts +6 -0
- package/dist/flows/creditCardFlow.js +1 -0
- package/dist/flows/moFlow.d.ts +6 -0
- package/dist/flows/moFlow.js +1 -19
- package/dist/flows/moRedirFlow.d.ts +6 -0
- package/dist/flows/moRedirFlow.js +1 -19
- package/dist/flows/oneClickFlow.d.ts +7 -0
- package/dist/flows/oneClickFlow.js +1 -23
- package/dist/flows/pinFlow.d.ts +7 -0
- package/dist/flows/pinFlow.js +1 -23
- package/dist/flows/strategy.d.ts +14 -0
- package/dist/flows/strategy.js +1 -53
- package/dist/flows/ussdFlow.d.ts +6 -0
- package/dist/flows/ussdFlow.js +1 -19
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -2
- package/dist/ips/tryGetIPRangeName.d.ts +2 -0
- package/dist/ips/tryGetIPRangeName.js +1 -74
- package/dist/jest.config.js +194 -0
- package/dist/pacman/index.d.ts +6 -0
- package/dist/pacman/index.js +1 -108
- package/dist/pacman/queryString.d.ts +3 -0
- package/dist/pacman/queryString.js +1 -45
- package/dist/reducers/click2smsFlow/Click2smsTypes.d.ts +76 -0
- package/dist/reducers/click2smsFlow/Click2smsTypes.js +1 -1
- package/dist/reducers/click2smsFlow/IClick2smsConstants.d.ts +2 -0
- package/dist/reducers/click2smsFlow/IClick2smsConstants.js +1 -1
- package/dist/reducers/click2smsFlow/index.d.ts +5 -0
- package/dist/reducers/click2smsFlow/index.js +1 -183
- package/dist/reducers/click2smsFlow/utils.d.ts +4 -0
- package/dist/reducers/click2smsFlow/utils.js +1 -357
- package/dist/reducers/creditCardFlow/CreditCardTypes.d.ts +79 -0
- package/dist/reducers/creditCardFlow/CreditCardTypes.js +1 -0
- package/dist/reducers/creditCardFlow/ICreditCardConstants.d.ts +2 -0
- package/dist/reducers/creditCardFlow/ICreditCardConstants.js +1 -0
- package/dist/reducers/creditCardFlow/index.d.ts +5 -0
- package/dist/reducers/creditCardFlow/index.js +1 -0
- package/dist/reducers/creditCardFlow/utils.d.ts +8 -0
- package/dist/reducers/creditCardFlow/utils.js +1 -0
- package/dist/reducers/moFlow/IMoConstants.d.ts +2 -0
- package/dist/reducers/moFlow/IMoConstants.js +1 -1
- package/dist/reducers/moFlow/MoTypes.d.ts +88 -0
- package/dist/reducers/moFlow/MoTypes.js +1 -1
- package/dist/reducers/moFlow/index.d.ts +16 -0
- package/dist/reducers/moFlow/index.js +1 -251
- package/dist/reducers/moFlow/utils.d.ts +12 -0
- package/dist/reducers/moFlow/utils.js +1 -284
- package/dist/reducers/moRedirFlow/IMoRedirConstants.d.ts +2 -0
- package/dist/reducers/moRedirFlow/IMoRedirConstants.js +1 -1
- package/dist/reducers/moRedirFlow/MoRedirTypes.d.ts +64 -0
- package/dist/reducers/moRedirFlow/MoRedirTypes.js +1 -1
- package/dist/reducers/moRedirFlow/index.d.ts +14 -0
- package/dist/reducers/moRedirFlow/index.js +1 -226
- package/dist/reducers/moRedirFlow/utils.d.ts +10 -0
- package/dist/reducers/moRedirFlow/utils.js +1 -186
- package/dist/reducers/oneClickFlow/IOneClickConstants.d.ts +2 -0
- package/dist/reducers/oneClickFlow/IOneClickConstants.js +1 -1
- package/dist/reducers/oneClickFlow/OneClickTypes.d.ts +85 -0
- package/dist/reducers/oneClickFlow/OneClickTypes.js +1 -1
- package/dist/reducers/oneClickFlow/index.d.ts +13 -0
- package/dist/reducers/oneClickFlow/index.js +1 -409
- package/dist/reducers/oneClickFlow/utils.d.ts +16 -0
- package/dist/reducers/oneClickFlow/utils.js +1 -366
- package/dist/reducers/pinFlow/IPinConstants.d.ts +2 -0
- package/dist/reducers/pinFlow/IPinConstants.js +1 -1
- package/dist/reducers/pinFlow/PinTypes.d.ts +156 -0
- package/dist/reducers/pinFlow/PinTypes.js +1 -1
- package/dist/reducers/pinFlow/index.d.ts +19 -0
- package/dist/reducers/pinFlow/index.js +1 -514
- package/dist/reducers/pinFlow/utils.d.ts +11 -0
- package/dist/reducers/pinFlow/utils.js +1 -494
- package/dist/reducers/strategy/IStategyActionContants.d.ts +2 -0
- package/dist/reducers/strategy/IStategyActionContants.js +1 -1
- package/dist/reducers/strategy/StrategyTypes.d.ts +248 -0
- package/dist/reducers/strategy/StrategyTypes.js +1 -1
- package/dist/reducers/strategy/index.d.ts +13 -0
- package/dist/reducers/strategy/index.js +1 -389
- package/dist/reducers/strategy/strategies/ask_mobile_number.d.ts +15 -0
- package/dist/reducers/strategy/strategies/ask_mobile_number.js +1 -403
- package/dist/reducers/strategy/strategies/ask_operator.d.ts +5 -0
- package/dist/reducers/strategy/strategies/ask_operator.js +1 -305
- package/dist/reducers/strategy/strategies/detect_operator_by_ip.d.ts +10 -0
- package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +1 -459
- package/dist/reducers/strategy/strategies/header_enrichment.d.ts +7 -0
- package/dist/reducers/strategy/strategies/header_enrichment.js +1 -783
- package/dist/reducers/strategy/strategies/injectHeaderEnrichmentScript.d.ts +2 -0
- package/dist/reducers/strategy/strategies/injectHeaderEnrichmentScript.js +1 -0
- package/dist/reducers/strategy/utils.d.ts +30 -0
- package/dist/reducers/strategy/utils.js +1 -702
- package/dist/reducers/ussdFlow/IUssdConstants.d.ts +2 -0
- package/dist/reducers/ussdFlow/IUssdConstants.js +1 -1
- package/dist/reducers/ussdFlow/UssdTypes.d.ts +77 -0
- package/dist/reducers/ussdFlow/UssdTypes.js +1 -1
- package/dist/reducers/ussdFlow/index.d.ts +14 -0
- package/dist/reducers/ussdFlow/index.js +1 -251
- package/dist/reducers/ussdFlow/utils.d.ts +11 -0
- package/dist/reducers/ussdFlow/utils.js +1 -225
- package/dist/store/index.d.ts +14 -0
- package/dist/store/index.js +1 -177
- package/dist/store/reducers.d.ts +20 -0
- package/dist/store/reducers.js +1 -41
- package/dist/utilities/addEmpelloToken.d.ts +4 -0
- package/dist/utilities/addEmpelloToken.js +1 -0
- package/dist/utilities/handleSubmitNumber.d.ts +21 -0
- package/dist/utilities/handleSubmitNumber.js +1 -59
- package/dist/utilities/index.d.ts +14 -0
- package/dist/utilities/index.js +1 -0
- package/dist/utilities/loadScriptInnerHtml.d.ts +2 -0
- package/dist/utilities/loadScriptInnerHtml.js +1 -0
- package/dist/utilities/loadScriptSrc.d.ts +8 -0
- package/dist/utilities/loadScriptSrc.js +1 -0
- package/dist/utilities/replaceUrlParam.d.ts +1 -0
- package/dist/utilities/replaceUrlParam.js +1 -0
- package/dist/utilities/storeMsisdn.d.ts +3 -0
- package/dist/utilities/storeMsisdn.js +1 -0
- package/package.json +1 -1
- package/dist/app/store.js +0 -20
- package/dist/features/strategies/categories/askMobileNumber.js +0 -388
- package/dist/features/strategies/categories/askOperator.js +0 -313
- package/dist/features/strategies/categories/detectOperatorByIp.js +0 -599
- package/dist/features/strategies/categories/headerEnrichment.js +0 -665
- package/dist/features/strategies/categories/singleFlows/pin.js +0 -1
- package/dist/features/strategies/identifySlice.js +0 -355
- package/dist/features/strategies/pinFlowSlice.js +0 -338
- 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.js +0 -1
- package/dist/reducers/tpayHeFlow/TpayHeTypes.js +0 -1
- package/dist/reducers/tpayHeFlow/index.js +0 -331
- package/dist/reducers/tpayHeFlow/utils.js +0 -510
- package/dist/test/setup.js +0 -24
- package/dist/test/test-utils.js +0 -51
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { AppThunk } from '../../common-types/AppThunk';
|
|
2
|
+
import * as RDS from '../../common-types/RemoteDataState';
|
|
3
|
+
export declare type IIdentifyResult = {
|
|
4
|
+
operator: string;
|
|
5
|
+
flow?: string;
|
|
6
|
+
success: boolean;
|
|
7
|
+
rockman_id?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type ConfigDetails = {
|
|
11
|
+
host: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
country: string;
|
|
14
|
+
device?: 'smart' | 'feature';
|
|
15
|
+
queryString?: Array<[string, string]>;
|
|
16
|
+
automaticallySubmitAllOperators?: boolean;
|
|
17
|
+
operators?: string[];
|
|
18
|
+
service: string;
|
|
19
|
+
offer?: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type IConfig = {
|
|
22
|
+
offer?: number;
|
|
23
|
+
slug?: string;
|
|
24
|
+
country?: string;
|
|
25
|
+
host?: string;
|
|
26
|
+
device?: 'smart' | 'feature';
|
|
27
|
+
automaticallySubmitAllOperators?: boolean;
|
|
28
|
+
operators?: string[];
|
|
29
|
+
service?: string;
|
|
30
|
+
serviceId?: string;
|
|
31
|
+
};
|
|
32
|
+
export declare type ISupportedFlows = 'pin' | 'mo' | 'oneClick' | 'click2sms' | 'moRedir' | 'ussd' | 'tpayHe' | 'creditCard';
|
|
33
|
+
export declare type IFlow = {
|
|
34
|
+
flow: ISupportedFlows;
|
|
35
|
+
flowOnWifi?: ISupportedFlows;
|
|
36
|
+
operator?: string;
|
|
37
|
+
flowConfig: ConfigDetails;
|
|
38
|
+
default?: IFlow;
|
|
39
|
+
rockman_id?: string;
|
|
40
|
+
};
|
|
41
|
+
export declare type StrategyConfig = {
|
|
42
|
+
operators: {
|
|
43
|
+
[key: string]: IFlow;
|
|
44
|
+
};
|
|
45
|
+
default: IFlow;
|
|
46
|
+
isUseMsisdnPrefix?: boolean;
|
|
47
|
+
};
|
|
48
|
+
export declare type IStrategy = {
|
|
49
|
+
strategy: IStrategyNames;
|
|
50
|
+
country: string;
|
|
51
|
+
strategyConfigs: StrategyConfig;
|
|
52
|
+
};
|
|
53
|
+
export declare type IStrategyNames = 'pin' | 'mo' | 'mo-redir' | 'click2sms' | 'one-click' | 'ussd' | 'tpay-he' | 'credit-card' | 'tallyman-one-click' | 'pin-mo-ask-operator' | 'pin-mo-ask-mobile-number' | 'pin-one-click-ask-operator' | 'pin-one-click-detect-operator-by-ip' | 'one-click-mo-pin-detect-operator-by-ip-or-msisdn' | 'pin-click2sms-ask-operator' | 'mo-redir-one-click-detect-operator-by-ip' | 'pin-mo-redir-ask-mobile-number' | 'pin-click2sms-ask-mobile-number' | 'mo-one-click-detect-operator-by-ip' | 'click2sms-one-click-detect-operator-by-ip' | 'pin-header-enrichment' | 'pin-msisdn-fowarding-pin-header-enrichment' | 'he-pin-mo-redir-header-enrichment' | 'he-pin-one-click-header-enrichment' | 'he-pin-one-click-ask-operator' | 'click2sms-one-click-ask-operator' | 'pin-mo-detect-operator-by-ip' | 'he-mo-redir-one-click-header-enrichment' | 'pin-combo-ask-mobile-number' | 'header-enrichment-script' | 'mo-redir-mo-click2sms-one-click-detect-operator-by-ip-or-msisdn' | 'pin-mo-mo-redir-ask-mobile-number';
|
|
54
|
+
export interface IHash {
|
|
55
|
+
[key: string]: string;
|
|
56
|
+
}
|
|
57
|
+
export declare type IDENTIFYMSISDNEntryErrorTypes = 'AlreadySubscribed' | 'UnknownError' | 'InvalidMSISDN';
|
|
58
|
+
export declare type IDENTIFYMSISDNEntryFailure = {
|
|
59
|
+
errorType: IDENTIFYMSISDNEntryErrorTypes;
|
|
60
|
+
error: unknown;
|
|
61
|
+
};
|
|
62
|
+
export declare type IdentifyFlowOptionsResult = {
|
|
63
|
+
config: IConfig;
|
|
64
|
+
nextAction?: unknown;
|
|
65
|
+
msisdn?: string;
|
|
66
|
+
operator?: string;
|
|
67
|
+
subscription_url?: string;
|
|
68
|
+
redirect_url?: string;
|
|
69
|
+
rockman_id?: string;
|
|
70
|
+
isHeaderEnrichmentSuccess?: boolean;
|
|
71
|
+
autoRedirect?: boolean;
|
|
72
|
+
isUseMsisdnPrefix?: boolean;
|
|
73
|
+
};
|
|
74
|
+
export declare type IDENTIFYMSISDNEntrySuccess = {};
|
|
75
|
+
export declare type OPERATORSelectFailure = {};
|
|
76
|
+
export declare type OPERATORSelectSuccess = IdentifyFlowOptionsResult;
|
|
77
|
+
export declare type IDETECTYOPERATOBYIPFailure = {};
|
|
78
|
+
export declare type IDETECTYOPERATOBYIPSuccess = IdentifyFlowOptionsResult;
|
|
79
|
+
export declare type IDENTIFY_OPERATOR_MSISDNEntrySuccess = IdentifyFlowOptionsResult;
|
|
80
|
+
export declare type IDENTIFY_FLOW_HESuccess = IdentifyFlowOptionsResult;
|
|
81
|
+
export declare type OPERATORSelectFlowIdentifyFailure = {};
|
|
82
|
+
export declare type OPERATORSelectFlowIdentifySuccess = {
|
|
83
|
+
operators: Array<string>;
|
|
84
|
+
msisdn?: string;
|
|
85
|
+
nextAction: 'selectOperator';
|
|
86
|
+
};
|
|
87
|
+
export declare type IDENTIFYFailure = {};
|
|
88
|
+
export declare type IDENTIFYSuccess = {};
|
|
89
|
+
export declare type IOperatorSelectFlowIdentifyPayload = {
|
|
90
|
+
type: 'IDENTIFY_FLOW_BY_OPERATOR_SELECT';
|
|
91
|
+
result: RDS.RemoteDataState<OPERATORSelectFlowIdentifyFailure, OPERATORSelectFlowIdentifySuccess>;
|
|
92
|
+
};
|
|
93
|
+
export declare type IDetectOperatorByIpPayload = {
|
|
94
|
+
type: 'DETECT_OPERATOR_BY_IP';
|
|
95
|
+
result: RDS.RemoteDataState<IDETECTYOPERATOBYIPFailure, IDETECTYOPERATOBYIPSuccess>;
|
|
96
|
+
};
|
|
97
|
+
export declare type IPossibleFlows = 'PIN' | 'MO' | 'MO_REDIR' | 'ONE_CLICK' | 'CLICK2SMS' | 'USSD' | 'TPAY_HE' | 'CREDIT_CARD';
|
|
98
|
+
export declare type IOperatorSelectPayload = {
|
|
99
|
+
type: IPossibleFlows;
|
|
100
|
+
result: OPERATORSelectSuccess;
|
|
101
|
+
};
|
|
102
|
+
export declare type ISubmitMsisdnPayload = {
|
|
103
|
+
type: IPossibleFlows;
|
|
104
|
+
result: IDENTIFY_OPERATOR_MSISDNEntrySuccess;
|
|
105
|
+
};
|
|
106
|
+
export declare type IIdentifyFlowByIpOperatorPayload = {
|
|
107
|
+
type: IPossibleFlows;
|
|
108
|
+
result: IDENTIFY_OPERATOR_MSISDNEntrySuccess;
|
|
109
|
+
};
|
|
110
|
+
export declare type IIdentifyFlowByHePayload = {
|
|
111
|
+
type: IPossibleFlows;
|
|
112
|
+
result: IDENTIFY_FLOW_HESuccess;
|
|
113
|
+
};
|
|
114
|
+
export declare type IIdentfyFlowByMsisdnNextAction = 'submitMSISDNAction' | 'loadOc2sms';
|
|
115
|
+
export declare type IIdentfyFlowByOperatorNextAction = 'submitMSISDNAction' | 'loadOc2sms';
|
|
116
|
+
export declare type IIdentfyFlowByIPOperatorNextAction = 'getRedirectUrlAction' | 'submitMSISDNAction';
|
|
117
|
+
export declare type IIdenyifyFlowByMsisdnSumbitNextData = {
|
|
118
|
+
nextAction: IIdentfyFlowByMsisdnNextAction;
|
|
119
|
+
msisdn?: string;
|
|
120
|
+
operator?: string;
|
|
121
|
+
};
|
|
122
|
+
export declare type IIdenyifyFlowByMsisdnPayload = {
|
|
123
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
124
|
+
result: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>;
|
|
125
|
+
data: IIdenyifyFlowByMsisdnSumbitNextData;
|
|
126
|
+
};
|
|
127
|
+
export declare type IIdenyifyStrategyPayload = {
|
|
128
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
129
|
+
result: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>;
|
|
130
|
+
data: IIdenyifyFlowByMsisdnSumbitNextData;
|
|
131
|
+
};
|
|
132
|
+
export declare type IStrategyActions = {
|
|
133
|
+
type: 'IDENTIFY_STRATEGY';
|
|
134
|
+
payload: IIdenyifyStrategyPayload;
|
|
135
|
+
} | {
|
|
136
|
+
type: 'DETECT_OPERATOR_BY_IP';
|
|
137
|
+
payload: IDetectOperatorByIpPayload;
|
|
138
|
+
} | {
|
|
139
|
+
type: 'HE_IDENTIFY';
|
|
140
|
+
payload: IIdenyifyStrategyPayload;
|
|
141
|
+
} | {
|
|
142
|
+
type: 'IDENTIFY_FLOW_BY_OPERATOR_SELECT';
|
|
143
|
+
payload: IOperatorSelectFlowIdentifyPayload;
|
|
144
|
+
} | {
|
|
145
|
+
type: 'IDENTIFY_FLOW_BY_IP';
|
|
146
|
+
payload: IIdentifyFlowByIpOperatorPayload;
|
|
147
|
+
} | {
|
|
148
|
+
type: 'OPERATOR_SELECT';
|
|
149
|
+
payload: IOperatorSelectPayload;
|
|
150
|
+
} | {
|
|
151
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
152
|
+
payload: IIdenyifyFlowByMsisdnPayload;
|
|
153
|
+
} | {
|
|
154
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN_SUBMIT';
|
|
155
|
+
payload: ISubmitMsisdnPayload;
|
|
156
|
+
} | {
|
|
157
|
+
type: 'IDENTIFY_FLOW_BY_IP_OPERATOR';
|
|
158
|
+
payload: IIdentifyFlowByIpOperatorPayload;
|
|
159
|
+
} | {
|
|
160
|
+
type: 'IDENTIFY_FLOW_BY_HE';
|
|
161
|
+
payload: IIdentifyFlowByHePayload;
|
|
162
|
+
} | {
|
|
163
|
+
type: 'MOCK_STRATEGY_STATE';
|
|
164
|
+
payload: unknown;
|
|
165
|
+
};
|
|
166
|
+
export declare type IStrategyCurrentState = {
|
|
167
|
+
type: 'IDENTIFY_STRATEGY';
|
|
168
|
+
result: RDS.RemoteDataState<IDENTIFYFailure, IDENTIFYSuccess>;
|
|
169
|
+
} | {
|
|
170
|
+
type: 'IDENTIFY_FLOW_BY_OPERATOR_SELECT';
|
|
171
|
+
result: OPERATORSelectFlowIdentifySuccess;
|
|
172
|
+
} | {
|
|
173
|
+
type: 'DETECT_OPERATOR_BY_IP';
|
|
174
|
+
result: RDS.RemoteDataState<IDETECTYOPERATOBYIPFailure, IDETECTYOPERATOBYIPSuccess>;
|
|
175
|
+
} | {
|
|
176
|
+
type: 'HE_IDENTIFY';
|
|
177
|
+
result: RDS.RemoteDataState<IDENTIFYFailure, IDENTIFYSuccess>;
|
|
178
|
+
} | {
|
|
179
|
+
type: 'OPERATOR_SELECT';
|
|
180
|
+
result: RDS.RemoteDataState<OPERATORSelectFailure, OPERATORSelectSuccess>;
|
|
181
|
+
config: IConfig;
|
|
182
|
+
} | {
|
|
183
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
184
|
+
result: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>;
|
|
185
|
+
nextData: IIdenyifyFlowByMsisdnSumbitNextData;
|
|
186
|
+
} | {
|
|
187
|
+
type: 'PIN';
|
|
188
|
+
result: IdentifyFlowOptionsResult;
|
|
189
|
+
} | {
|
|
190
|
+
type: 'MO';
|
|
191
|
+
result: IdentifyFlowOptionsResult;
|
|
192
|
+
} | {
|
|
193
|
+
type: 'USSD';
|
|
194
|
+
result: IdentifyFlowOptionsResult;
|
|
195
|
+
} | {
|
|
196
|
+
type: 'MO_REDIR';
|
|
197
|
+
result: IdentifyFlowOptionsResult;
|
|
198
|
+
} | {
|
|
199
|
+
type: 'ONE_CLICK';
|
|
200
|
+
result: IdentifyFlowOptionsResult;
|
|
201
|
+
} | {
|
|
202
|
+
type: 'CLICK2SMS';
|
|
203
|
+
result: IdentifyFlowOptionsResult;
|
|
204
|
+
} | {
|
|
205
|
+
type: 'TPAY_HE';
|
|
206
|
+
result: IdentifyFlowOptionsResult;
|
|
207
|
+
} | {
|
|
208
|
+
type: 'CREDIT_CARD';
|
|
209
|
+
result: IdentifyFlowOptionsResult;
|
|
210
|
+
};
|
|
211
|
+
export declare type IStrategyReducerState = {
|
|
212
|
+
currentState: IStrategyCurrentState;
|
|
213
|
+
};
|
|
214
|
+
export declare type IStrategyActionMaps = {
|
|
215
|
+
selectOperator: (operator: string) => AppThunk;
|
|
216
|
+
submitMSISDNAction: (msisdn: string) => AppThunk;
|
|
217
|
+
loadOc2sms: () => AppThunk;
|
|
218
|
+
};
|
|
219
|
+
export declare type IStrategyIDentifyUserResult = {
|
|
220
|
+
success: 'true';
|
|
221
|
+
rockman_id: string;
|
|
222
|
+
msisdn: string;
|
|
223
|
+
operator?: string;
|
|
224
|
+
subscription_url?: string;
|
|
225
|
+
redirect_url?: string;
|
|
226
|
+
'redirect-back'?: string;
|
|
227
|
+
'msisdn-alias'?: string;
|
|
228
|
+
} | {
|
|
229
|
+
success: 'false';
|
|
230
|
+
rockman_id: string;
|
|
231
|
+
message: string;
|
|
232
|
+
'redirect-back'?: string;
|
|
233
|
+
};
|
|
234
|
+
export declare type IMockFlows = 'pin' | 'mo' | 'oneclick' | 'click2sms' | 'moredir' | 'ussd' | 'tpay' | 'creditcard';
|
|
235
|
+
export interface IMockFlowParams<T> {
|
|
236
|
+
'mock-flow': IMockFlows;
|
|
237
|
+
'current-state': T;
|
|
238
|
+
'show-pin-entry': '1' | '0';
|
|
239
|
+
'show-thank-you': '1' | '0';
|
|
240
|
+
operator: string;
|
|
241
|
+
msisdn?: string;
|
|
242
|
+
}
|
|
243
|
+
export interface IScriptHeaderEnrichmentSuccess extends CustomEvent {
|
|
244
|
+
detail: {
|
|
245
|
+
msisdn: string;
|
|
246
|
+
operator_code: string;
|
|
247
|
+
};
|
|
248
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppThunk } from '../../common-types/AppThunk';
|
|
2
|
+
import { IStrategyActionMaps, IStrategyActions, IStrategyReducerState } from './StrategyTypes';
|
|
3
|
+
export declare const tracker: import("pacman-client/.build-lib/Pacman/types").ITrackerFlowEvents;
|
|
4
|
+
export declare function mockStrategyStateByUrlParam(): AppThunk;
|
|
5
|
+
export declare function identifyStrategy(): AppThunk;
|
|
6
|
+
export declare function checkSubscriptionAction(trackingArgs: {
|
|
7
|
+
flow: string;
|
|
8
|
+
action: string;
|
|
9
|
+
args?: any;
|
|
10
|
+
}): AppThunk;
|
|
11
|
+
export declare function genericHandler<S, P>(state: S, payload: P): S;
|
|
12
|
+
export declare const StrategyFlowActionMaps: IStrategyActionMaps;
|
|
13
|
+
export default function StrategyReducer(state: IStrategyReducerState, action: IStrategyActions): IStrategyReducerState;
|