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.
Files changed (158) hide show
  1. package/dist/@types/window.d.js +1 -1
  2. package/dist/api/index.d.ts +43 -0
  3. package/dist/api/index.js +1 -728
  4. package/dist/common-types/AppThunk.d.ts +13 -0
  5. package/dist/common-types/AppThunk.js +1 -1
  6. package/dist/common-types/Either.d.ts +8 -0
  7. package/dist/common-types/Either.js +1 -1
  8. package/dist/common-types/IError.d.ts +3 -0
  9. package/dist/common-types/IError.js +1 -1
  10. package/dist/common-types/IOptInFlowName.d.ts +1 -0
  11. package/dist/common-types/ITracker.d.ts +9 -0
  12. package/dist/common-types/ITracker.js +1 -3
  13. package/dist/common-types/IVisitor.d.ts +14 -0
  14. package/dist/common-types/IVisitor.js +1 -1
  15. package/dist/common-types/RemoteDataState.d.ts +38 -0
  16. package/dist/common-types/RemoteDataState.js +1 -135
  17. package/dist/custom-hooks/useOneClickRedirectUrl.d.ts +3 -0
  18. package/dist/custom-hooks/useOneClickRedirectUrl.js +1 -0
  19. package/dist/custom-hooks/usePinEntryState.d.ts +8 -0
  20. package/dist/custom-hooks/usePinEntryState.js +1 -0
  21. package/dist/custom-hooks/useStrategyConfig.d.ts +4 -0
  22. package/dist/custom-hooks/useStrategyConfig.js +1 -0
  23. package/dist/flows/click2smsFlow.d.ts +6 -0
  24. package/dist/flows/click2smsFlow.js +1 -19
  25. package/dist/flows/creditCardFlow.d.ts +6 -0
  26. package/dist/flows/creditCardFlow.js +1 -0
  27. package/dist/flows/moFlow.d.ts +6 -0
  28. package/dist/flows/moFlow.js +1 -19
  29. package/dist/flows/moRedirFlow.d.ts +6 -0
  30. package/dist/flows/moRedirFlow.js +1 -19
  31. package/dist/flows/oneClickFlow.d.ts +7 -0
  32. package/dist/flows/oneClickFlow.js +1 -23
  33. package/dist/flows/pinFlow.d.ts +7 -0
  34. package/dist/flows/pinFlow.js +1 -23
  35. package/dist/flows/strategy.d.ts +14 -0
  36. package/dist/flows/strategy.js +1 -53
  37. package/dist/flows/ussdFlow.d.ts +6 -0
  38. package/dist/flows/ussdFlow.js +1 -19
  39. package/dist/index.d.ts +0 -0
  40. package/dist/index.js +0 -2
  41. package/dist/ips/tryGetIPRangeName.d.ts +2 -0
  42. package/dist/ips/tryGetIPRangeName.js +1 -74
  43. package/dist/jest.config.js +194 -0
  44. package/dist/pacman/index.d.ts +6 -0
  45. package/dist/pacman/index.js +1 -108
  46. package/dist/pacman/queryString.d.ts +3 -0
  47. package/dist/pacman/queryString.js +1 -45
  48. package/dist/reducers/click2smsFlow/Click2smsTypes.d.ts +76 -0
  49. package/dist/reducers/click2smsFlow/Click2smsTypes.js +1 -1
  50. package/dist/reducers/click2smsFlow/IClick2smsConstants.d.ts +2 -0
  51. package/dist/reducers/click2smsFlow/IClick2smsConstants.js +1 -1
  52. package/dist/reducers/click2smsFlow/index.d.ts +5 -0
  53. package/dist/reducers/click2smsFlow/index.js +1 -183
  54. package/dist/reducers/click2smsFlow/utils.d.ts +4 -0
  55. package/dist/reducers/click2smsFlow/utils.js +1 -357
  56. package/dist/reducers/creditCardFlow/CreditCardTypes.d.ts +79 -0
  57. package/dist/reducers/creditCardFlow/CreditCardTypes.js +1 -0
  58. package/dist/reducers/creditCardFlow/ICreditCardConstants.d.ts +2 -0
  59. package/dist/reducers/creditCardFlow/ICreditCardConstants.js +1 -0
  60. package/dist/reducers/creditCardFlow/index.d.ts +5 -0
  61. package/dist/reducers/creditCardFlow/index.js +1 -0
  62. package/dist/reducers/creditCardFlow/utils.d.ts +8 -0
  63. package/dist/reducers/creditCardFlow/utils.js +1 -0
  64. package/dist/reducers/moFlow/IMoConstants.d.ts +2 -0
  65. package/dist/reducers/moFlow/IMoConstants.js +1 -1
  66. package/dist/reducers/moFlow/MoTypes.d.ts +88 -0
  67. package/dist/reducers/moFlow/MoTypes.js +1 -1
  68. package/dist/reducers/moFlow/index.d.ts +16 -0
  69. package/dist/reducers/moFlow/index.js +1 -251
  70. package/dist/reducers/moFlow/utils.d.ts +12 -0
  71. package/dist/reducers/moFlow/utils.js +1 -284
  72. package/dist/reducers/moRedirFlow/IMoRedirConstants.d.ts +2 -0
  73. package/dist/reducers/moRedirFlow/IMoRedirConstants.js +1 -1
  74. package/dist/reducers/moRedirFlow/MoRedirTypes.d.ts +64 -0
  75. package/dist/reducers/moRedirFlow/MoRedirTypes.js +1 -1
  76. package/dist/reducers/moRedirFlow/index.d.ts +14 -0
  77. package/dist/reducers/moRedirFlow/index.js +1 -226
  78. package/dist/reducers/moRedirFlow/utils.d.ts +10 -0
  79. package/dist/reducers/moRedirFlow/utils.js +1 -186
  80. package/dist/reducers/oneClickFlow/IOneClickConstants.d.ts +2 -0
  81. package/dist/reducers/oneClickFlow/IOneClickConstants.js +1 -1
  82. package/dist/reducers/oneClickFlow/OneClickTypes.d.ts +85 -0
  83. package/dist/reducers/oneClickFlow/OneClickTypes.js +1 -1
  84. package/dist/reducers/oneClickFlow/index.d.ts +13 -0
  85. package/dist/reducers/oneClickFlow/index.js +1 -409
  86. package/dist/reducers/oneClickFlow/utils.d.ts +16 -0
  87. package/dist/reducers/oneClickFlow/utils.js +1 -366
  88. package/dist/reducers/pinFlow/IPinConstants.d.ts +2 -0
  89. package/dist/reducers/pinFlow/IPinConstants.js +1 -1
  90. package/dist/reducers/pinFlow/PinTypes.d.ts +156 -0
  91. package/dist/reducers/pinFlow/PinTypes.js +1 -1
  92. package/dist/reducers/pinFlow/index.d.ts +19 -0
  93. package/dist/reducers/pinFlow/index.js +1 -514
  94. package/dist/reducers/pinFlow/utils.d.ts +11 -0
  95. package/dist/reducers/pinFlow/utils.js +1 -494
  96. package/dist/reducers/strategy/IStategyActionContants.d.ts +2 -0
  97. package/dist/reducers/strategy/IStategyActionContants.js +1 -1
  98. package/dist/reducers/strategy/StrategyTypes.d.ts +248 -0
  99. package/dist/reducers/strategy/StrategyTypes.js +1 -1
  100. package/dist/reducers/strategy/index.d.ts +13 -0
  101. package/dist/reducers/strategy/index.js +1 -389
  102. package/dist/reducers/strategy/strategies/ask_mobile_number.d.ts +15 -0
  103. package/dist/reducers/strategy/strategies/ask_mobile_number.js +1 -403
  104. package/dist/reducers/strategy/strategies/ask_operator.d.ts +5 -0
  105. package/dist/reducers/strategy/strategies/ask_operator.js +1 -305
  106. package/dist/reducers/strategy/strategies/detect_operator_by_ip.d.ts +10 -0
  107. package/dist/reducers/strategy/strategies/detect_operator_by_ip.js +1 -459
  108. package/dist/reducers/strategy/strategies/header_enrichment.d.ts +7 -0
  109. package/dist/reducers/strategy/strategies/header_enrichment.js +1 -783
  110. package/dist/reducers/strategy/strategies/injectHeaderEnrichmentScript.d.ts +2 -0
  111. package/dist/reducers/strategy/strategies/injectHeaderEnrichmentScript.js +1 -0
  112. package/dist/reducers/strategy/utils.d.ts +30 -0
  113. package/dist/reducers/strategy/utils.js +1 -702
  114. package/dist/reducers/ussdFlow/IUssdConstants.d.ts +2 -0
  115. package/dist/reducers/ussdFlow/IUssdConstants.js +1 -1
  116. package/dist/reducers/ussdFlow/UssdTypes.d.ts +77 -0
  117. package/dist/reducers/ussdFlow/UssdTypes.js +1 -1
  118. package/dist/reducers/ussdFlow/index.d.ts +14 -0
  119. package/dist/reducers/ussdFlow/index.js +1 -251
  120. package/dist/reducers/ussdFlow/utils.d.ts +11 -0
  121. package/dist/reducers/ussdFlow/utils.js +1 -225
  122. package/dist/store/index.d.ts +14 -0
  123. package/dist/store/index.js +1 -177
  124. package/dist/store/reducers.d.ts +20 -0
  125. package/dist/store/reducers.js +1 -41
  126. package/dist/utilities/addEmpelloToken.d.ts +4 -0
  127. package/dist/utilities/addEmpelloToken.js +1 -0
  128. package/dist/utilities/handleSubmitNumber.d.ts +21 -0
  129. package/dist/utilities/handleSubmitNumber.js +1 -59
  130. package/dist/utilities/index.d.ts +14 -0
  131. package/dist/utilities/index.js +1 -0
  132. package/dist/utilities/loadScriptInnerHtml.d.ts +2 -0
  133. package/dist/utilities/loadScriptInnerHtml.js +1 -0
  134. package/dist/utilities/loadScriptSrc.d.ts +8 -0
  135. package/dist/utilities/loadScriptSrc.js +1 -0
  136. package/dist/utilities/replaceUrlParam.d.ts +1 -0
  137. package/dist/utilities/replaceUrlParam.js +1 -0
  138. package/dist/utilities/storeMsisdn.d.ts +3 -0
  139. package/dist/utilities/storeMsisdn.js +1 -0
  140. package/package.json +1 -1
  141. package/dist/app/store.js +0 -20
  142. package/dist/features/strategies/categories/askMobileNumber.js +0 -388
  143. package/dist/features/strategies/categories/askOperator.js +0 -313
  144. package/dist/features/strategies/categories/detectOperatorByIp.js +0 -599
  145. package/dist/features/strategies/categories/headerEnrichment.js +0 -665
  146. package/dist/features/strategies/categories/singleFlows/pin.js +0 -1
  147. package/dist/features/strategies/identifySlice.js +0 -355
  148. package/dist/features/strategies/pinFlowSlice.js +0 -338
  149. package/dist/flows/tpayHeFlow.js +0 -23
  150. package/dist/mockServer/browser.js +0 -48
  151. package/dist/mockServer/handlers.js +0 -22
  152. package/dist/mockServer/server.js +0 -48
  153. package/dist/reducers/tpayHeFlow/ITpayHeConstants.js +0 -1
  154. package/dist/reducers/tpayHeFlow/TpayHeTypes.js +0 -1
  155. package/dist/reducers/tpayHeFlow/index.js +0 -331
  156. package/dist/reducers/tpayHeFlow/utils.js +0 -510
  157. package/dist/test/setup.js +0 -24
  158. 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;