ouisys-engine 5.1.15 → 5.1.17

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 (303) hide show
  1. package/dist/RemoteDataState-CwHLI23e.js +75 -0
  2. package/dist/RemoteDataState-CwHLI23e.js.map +1 -0
  3. package/dist/api-oPdBWsMC.js +65 -0
  4. package/dist/api-oPdBWsMC.js.map +1 -0
  5. package/dist/checkSubscriptionHander.js +140 -1
  6. package/dist/checkSubscriptionHander.js.map +1 -1
  7. package/dist/cleanSearchParams-B2jK3H1j.js +16 -0
  8. package/dist/cleanSearchParams-B2jK3H1j.js.map +1 -0
  9. package/dist/click2smsFlow.js +252 -1
  10. package/dist/click2smsFlow.js.map +1 -1
  11. package/dist/creditCardFlow.js +331 -1
  12. package/dist/creditCardFlow.js.map +1 -1
  13. package/dist/formatNumberToE164-oPCiETQk.js +476 -0
  14. package/dist/formatNumberToE164-oPCiETQk.js.map +1 -0
  15. package/dist/getConfig.js +13 -1
  16. package/dist/getConfig.js.map +1 -1
  17. package/dist/handleSubmitNumber.js +50 -1
  18. package/dist/handleSubmitNumber.js.map +1 -1
  19. package/dist/handleWaterfallRedirect-h5K2zX3N.js +21 -0
  20. package/dist/handleWaterfallRedirect-h5K2zX3N.js.map +1 -0
  21. package/dist/helpers-BIBpnXln.js +29 -0
  22. package/dist/helpers-BIBpnXln.js.map +1 -0
  23. package/dist/initTPay.js +98 -1
  24. package/dist/initTPay.js.map +1 -1
  25. package/dist/loadScriptInnerHtml-CstJVRED.js +30 -0
  26. package/dist/loadScriptInnerHtml-CstJVRED.js.map +1 -0
  27. package/dist/main-8gjJCdrT.js +448 -0
  28. package/dist/main-8gjJCdrT.js.map +1 -0
  29. package/dist/moFlow.js +322 -1
  30. package/dist/moFlow.js.map +1 -1
  31. package/dist/moRedirFlow.js +329 -1
  32. package/dist/moRedirFlow.js.map +1 -1
  33. package/dist/normaliseErrorCode-CBLYxW-a.js +44 -0
  34. package/dist/normaliseErrorCode-CBLYxW-a.js.map +1 -0
  35. package/dist/oneClickFlow.js +710 -1
  36. package/dist/oneClickFlow.js.map +1 -1
  37. package/dist/pinFlow.js +542 -1
  38. package/dist/pinFlow.js.map +1 -1
  39. package/dist/searchToObject.js +9 -1
  40. package/dist/searchToObject.js.map +1 -1
  41. package/dist/src/common-types/Either.d.ts +9 -0
  42. package/dist/src/common-types/Either.d.ts.map +1 -0
  43. package/dist/src/common-types/ICheckSubscriptionResult.d.ts +12 -0
  44. package/dist/src/common-types/ICheckSubscriptionResult.d.ts.map +1 -0
  45. package/dist/src/common-types/IError.d.ts +5 -0
  46. package/dist/src/common-types/IError.d.ts.map +1 -0
  47. package/dist/src/common-types/IHash.d.ts +4 -0
  48. package/dist/src/common-types/IHash.d.ts.map +1 -0
  49. package/dist/src/common-types/IOptInFlowName.d.ts +2 -0
  50. package/dist/src/common-types/IOptInFlowName.d.ts.map +1 -0
  51. package/dist/src/common-types/ITracker.d.ts +10 -0
  52. package/dist/src/common-types/ITracker.d.ts.map +1 -0
  53. package/dist/src/common-types/IVisitor.d.ts +51 -0
  54. package/dist/src/common-types/IVisitor.d.ts.map +1 -0
  55. package/dist/src/common-types/RemoteDataState.d.ts +39 -0
  56. package/dist/src/common-types/RemoteDataState.d.ts.map +1 -0
  57. package/dist/src/common-types/Strategy.d.ts +49 -0
  58. package/dist/src/common-types/Strategy.d.ts.map +1 -0
  59. package/dist/src/flows/click2smsFlow/api.d.ts +13 -0
  60. package/dist/src/flows/click2smsFlow/api.d.ts.map +1 -0
  61. package/dist/src/flows/click2smsFlow/click2smsFlowSlice.d.ts +18 -0
  62. package/dist/src/flows/click2smsFlow/click2smsFlowSlice.d.ts.map +1 -0
  63. package/dist/src/flows/click2smsFlow/hooks/useClick2smsFlowState.d.ts +3 -0
  64. package/dist/src/flows/click2smsFlow/hooks/useClick2smsFlowState.d.ts.map +1 -0
  65. package/dist/src/flows/click2smsFlow/hooks/useKeyWordShortCode.d.ts +4 -0
  66. package/dist/src/flows/click2smsFlow/hooks/useKeyWordShortCode.d.ts.map +1 -0
  67. package/dist/src/flows/click2smsFlow/index.d.ts +6 -0
  68. package/dist/src/flows/click2smsFlow/index.d.ts.map +1 -0
  69. package/dist/src/flows/click2smsFlow/main.d.ts +4 -0
  70. package/dist/src/flows/click2smsFlow/main.d.ts.map +1 -0
  71. package/dist/src/flows/click2smsFlow/match.d.ts +7 -0
  72. package/dist/src/flows/click2smsFlow/match.d.ts.map +1 -0
  73. package/dist/src/flows/creditCardFlow/api.d.ts +26 -0
  74. package/dist/src/flows/creditCardFlow/api.d.ts.map +1 -0
  75. package/dist/src/flows/creditCardFlow/creditCardFlowSlice.d.ts +26 -0
  76. package/dist/src/flows/creditCardFlow/creditCardFlowSlice.d.ts.map +1 -0
  77. package/dist/src/flows/creditCardFlow/hooks/useCreditCardFlowState.d.ts +3 -0
  78. package/dist/src/flows/creditCardFlow/hooks/useCreditCardFlowState.d.ts.map +1 -0
  79. package/dist/src/flows/creditCardFlow/index.d.ts +5 -0
  80. package/dist/src/flows/creditCardFlow/index.d.ts.map +1 -0
  81. package/dist/src/flows/creditCardFlow/main.d.ts +8 -0
  82. package/dist/src/flows/creditCardFlow/main.d.ts.map +1 -0
  83. package/dist/src/flows/creditCardFlow/match.d.ts +7 -0
  84. package/dist/src/flows/creditCardFlow/match.d.ts.map +1 -0
  85. package/dist/src/flows/moFlow/api.d.ts +15 -0
  86. package/dist/src/flows/moFlow/api.d.ts.map +1 -0
  87. package/dist/src/flows/moFlow/hooks/useMoFlowState.d.ts +3 -0
  88. package/dist/src/flows/moFlow/hooks/useMoFlowState.d.ts.map +1 -0
  89. package/dist/src/flows/moFlow/index.d.ts +5 -0
  90. package/dist/src/flows/moFlow/index.d.ts.map +1 -0
  91. package/dist/src/flows/moFlow/main.d.ts +13 -0
  92. package/dist/src/flows/moFlow/main.d.ts.map +1 -0
  93. package/dist/src/flows/moFlow/match.d.ts +7 -0
  94. package/dist/src/flows/moFlow/match.d.ts.map +1 -0
  95. package/dist/src/flows/moFlow/moFlowSlice.d.ts +47 -0
  96. package/dist/src/flows/moFlow/moFlowSlice.d.ts.map +1 -0
  97. package/dist/src/flows/moRedirFlow/api.d.ts +18 -0
  98. package/dist/src/flows/moRedirFlow/api.d.ts.map +1 -0
  99. package/dist/src/flows/moRedirFlow/hooks/useMoRedirFlowState.d.ts +3 -0
  100. package/dist/src/flows/moRedirFlow/hooks/useMoRedirFlowState.d.ts.map +1 -0
  101. package/dist/src/flows/moRedirFlow/index.d.ts +5 -0
  102. package/dist/src/flows/moRedirFlow/index.d.ts.map +1 -0
  103. package/dist/src/flows/moRedirFlow/main.d.ts +8 -0
  104. package/dist/src/flows/moRedirFlow/main.d.ts.map +1 -0
  105. package/dist/src/flows/moRedirFlow/match.d.ts +7 -0
  106. package/dist/src/flows/moRedirFlow/match.d.ts.map +1 -0
  107. package/dist/src/flows/moRedirFlow/moRedirFlowSlice.d.ts +38 -0
  108. package/dist/src/flows/moRedirFlow/moRedirFlowSlice.d.ts.map +1 -0
  109. package/dist/src/flows/oneClickFlow/api.d.ts +22 -0
  110. package/dist/src/flows/oneClickFlow/api.d.ts.map +1 -0
  111. package/dist/src/flows/oneClickFlow/hooks/useOneClickFlowState.d.ts +3 -0
  112. package/dist/src/flows/oneClickFlow/hooks/useOneClickFlowState.d.ts.map +1 -0
  113. package/dist/src/flows/oneClickFlow/index.d.ts +5 -0
  114. package/dist/src/flows/oneClickFlow/index.d.ts.map +1 -0
  115. package/dist/src/flows/oneClickFlow/main.d.ts +15 -0
  116. package/dist/src/flows/oneClickFlow/main.d.ts.map +1 -0
  117. package/dist/src/flows/oneClickFlow/match.d.ts +8 -0
  118. package/dist/src/flows/oneClickFlow/match.d.ts.map +1 -0
  119. package/dist/src/flows/oneClickFlow/oneClickFlowSlice.d.ts +45 -0
  120. package/dist/src/flows/oneClickFlow/oneClickFlowSlice.d.ts.map +1 -0
  121. package/dist/src/flows/pinFlow/IPinConstants.d.ts +3 -0
  122. package/dist/src/flows/pinFlow/IPinConstants.d.ts.map +1 -0
  123. package/dist/src/flows/pinFlow/api.d.ts +39 -0
  124. package/dist/src/flows/pinFlow/api.d.ts.map +1 -0
  125. package/dist/src/flows/pinFlow/hooks/usePinFlowState.d.ts +3 -0
  126. package/dist/src/flows/pinFlow/hooks/usePinFlowState.d.ts.map +1 -0
  127. package/dist/src/flows/pinFlow/index.d.ts +5 -0
  128. package/dist/src/flows/pinFlow/index.d.ts.map +1 -0
  129. package/dist/src/flows/pinFlow/main.d.ts +10 -0
  130. package/dist/src/flows/pinFlow/main.d.ts.map +1 -0
  131. package/dist/src/flows/pinFlow/match.d.ts +8 -0
  132. package/dist/src/flows/pinFlow/match.d.ts.map +1 -0
  133. package/dist/src/flows/pinFlow/pinFlowSlice.d.ts +60 -0
  134. package/dist/src/flows/pinFlow/pinFlowSlice.d.ts.map +1 -0
  135. package/dist/src/flows/strategy/api.d.ts +40 -0
  136. package/dist/src/flows/strategy/api.d.ts.map +1 -0
  137. package/dist/src/flows/strategy/hooks/useStrategyState.d.ts +3 -0
  138. package/dist/src/flows/strategy/hooks/useStrategyState.d.ts.map +1 -0
  139. package/dist/src/flows/strategy/index.d.ts +8 -0
  140. package/dist/src/flows/strategy/index.d.ts.map +1 -0
  141. package/dist/src/flows/strategy/main.d.ts +29 -0
  142. package/dist/src/flows/strategy/main.d.ts.map +1 -0
  143. package/dist/src/flows/strategy/match.d.ts +16 -0
  144. package/dist/src/flows/strategy/match.d.ts.map +1 -0
  145. package/dist/src/flows/strategy/mocks/index.d.ts +7 -0
  146. package/dist/src/flows/strategy/mocks/index.d.ts.map +1 -0
  147. package/dist/src/flows/strategy/strategies/askMobileNumber.d.ts +25 -0
  148. package/dist/src/flows/strategy/strategies/askMobileNumber.d.ts.map +1 -0
  149. package/dist/src/flows/strategy/strategies/askOperator.d.ts +14 -0
  150. package/dist/src/flows/strategy/strategies/askOperator.d.ts.map +1 -0
  151. package/dist/src/flows/strategy/strategies/callRedirectApi.d.ts +28 -0
  152. package/dist/src/flows/strategy/strategies/callRedirectApi.d.ts.map +1 -0
  153. package/dist/src/flows/strategy/strategies/detectOperatorByIp.d.ts +15 -0
  154. package/dist/src/flows/strategy/strategies/detectOperatorByIp.d.ts.map +1 -0
  155. package/dist/src/flows/strategy/strategies/headerEnrichment.d.ts +52 -0
  156. package/dist/src/flows/strategy/strategies/headerEnrichment.d.ts.map +1 -0
  157. package/dist/src/flows/strategy/strategies/injectHeaderEnrichmentScript.d.ts +11 -0
  158. package/dist/src/flows/strategy/strategies/injectHeaderEnrichmentScript.d.ts.map +1 -0
  159. package/dist/src/flows/strategy/strategySlice.d.ts +26 -0
  160. package/dist/src/flows/strategy/strategySlice.d.ts.map +1 -0
  161. package/dist/src/flows/ussdFlow/api.d.ts +4 -0
  162. package/dist/src/flows/ussdFlow/api.d.ts.map +1 -0
  163. package/dist/src/flows/ussdFlow/hooks/useUssdFlowState.d.ts +3 -0
  164. package/dist/src/flows/ussdFlow/hooks/useUssdFlowState.d.ts.map +1 -0
  165. package/dist/src/flows/ussdFlow/index.d.ts +5 -0
  166. package/dist/src/flows/ussdFlow/index.d.ts.map +1 -0
  167. package/dist/src/flows/ussdFlow/main.d.ts +10 -0
  168. package/dist/src/flows/ussdFlow/main.d.ts.map +1 -0
  169. package/dist/src/flows/ussdFlow/match.d.ts +7 -0
  170. package/dist/src/flows/ussdFlow/match.d.ts.map +1 -0
  171. package/dist/src/flows/ussdFlow/ussdFlowSlice.d.ts +38 -0
  172. package/dist/src/flows/ussdFlow/ussdFlowSlice.d.ts.map +1 -0
  173. package/dist/src/index.d.ts +2 -0
  174. package/dist/src/index.d.ts.map +1 -0
  175. package/dist/src/ips/tryGetIPRangeName.d.ts +3 -0
  176. package/dist/src/ips/tryGetIPRangeName.d.ts.map +1 -0
  177. package/dist/src/pacman/index.d.ts +7 -0
  178. package/dist/src/pacman/index.d.ts.map +1 -0
  179. package/dist/src/pacman/queryString.d.ts +4 -0
  180. package/dist/src/pacman/queryString.d.ts.map +1 -0
  181. package/dist/src/sharedApi/checkSubscription.d.ts +13 -0
  182. package/dist/src/sharedApi/checkSubscription.d.ts.map +1 -0
  183. package/dist/src/sharedApi/checkSubscriptionByRockmanIdOnly.d.ts +7 -0
  184. package/dist/src/sharedApi/checkSubscriptionByRockmanIdOnly.d.ts.map +1 -0
  185. package/dist/src/sharedApi/unblockUser.d.ts +13 -0
  186. package/dist/src/sharedApi/unblockUser.d.ts.map +1 -0
  187. package/dist/src/sharedFlowTypes/Click2smsTypes.d.ts +79 -0
  188. package/dist/src/sharedFlowTypes/Click2smsTypes.d.ts.map +1 -0
  189. package/dist/src/sharedFlowTypes/CreditCardTypes.d.ts +74 -0
  190. package/dist/src/sharedFlowTypes/CreditCardTypes.d.ts.map +1 -0
  191. package/dist/src/sharedFlowTypes/MoRedirTypes.d.ts +29 -0
  192. package/dist/src/sharedFlowTypes/MoRedirTypes.d.ts.map +1 -0
  193. package/dist/src/sharedFlowTypes/MoTypes.d.ts +45 -0
  194. package/dist/src/sharedFlowTypes/MoTypes.d.ts.map +1 -0
  195. package/dist/src/sharedFlowTypes/OneClickTypes.d.ts +78 -0
  196. package/dist/src/sharedFlowTypes/OneClickTypes.d.ts.map +1 -0
  197. package/dist/src/sharedFlowTypes/PinTypes.d.ts +135 -0
  198. package/dist/src/sharedFlowTypes/PinTypes.d.ts.map +1 -0
  199. package/dist/src/sharedFlowTypes/StrategyTypes.d.ts +285 -0
  200. package/dist/src/sharedFlowTypes/StrategyTypes.d.ts.map +1 -0
  201. package/dist/src/sharedFlowTypes/UssdTypes.d.ts +32 -0
  202. package/dist/src/sharedFlowTypes/UssdTypes.d.ts.map +1 -0
  203. package/dist/src/utilities/addEmpelloToken.d.ts +5 -0
  204. package/dist/src/utilities/addEmpelloToken.d.ts.map +1 -0
  205. package/dist/src/utilities/addUrlParamAndReload.d.ts +4 -0
  206. package/dist/src/utilities/addUrlParamAndReload.d.ts.map +1 -0
  207. package/dist/src/utilities/bupperizeCountry.d.ts +3 -0
  208. package/dist/src/utilities/bupperizeCountry.d.ts.map +1 -0
  209. package/dist/src/utilities/checkSubscriptionHander.d.ts +10 -0
  210. package/dist/src/utilities/checkSubscriptionHander.d.ts.map +1 -0
  211. package/dist/src/utilities/cleanSearchParams.d.ts +2 -0
  212. package/dist/src/utilities/cleanSearchParams.d.ts.map +1 -0
  213. package/dist/src/utilities/countryToPhoneCode.d.ts +2 -0
  214. package/dist/src/utilities/countryToPhoneCode.d.ts.map +1 -0
  215. package/dist/src/utilities/formatNumberToE164.d.ts +9 -0
  216. package/dist/src/utilities/formatNumberToE164.d.ts.map +1 -0
  217. package/dist/src/utilities/getConfig.d.ts +4 -0
  218. package/dist/src/utilities/getConfig.d.ts.map +1 -0
  219. package/dist/src/utilities/handleSubmitNumber.d.ts +24 -0
  220. package/dist/src/utilities/handleSubmitNumber.d.ts.map +1 -0
  221. package/dist/src/utilities/handleWaterfallRedirect.d.ts +2 -0
  222. package/dist/src/utilities/handleWaterfallRedirect.d.ts.map +1 -0
  223. package/dist/src/utilities/hasNumber.d.ts +2 -0
  224. package/dist/src/utilities/hasNumber.d.ts.map +1 -0
  225. package/dist/src/utilities/helpers.d.ts +6 -0
  226. package/dist/src/utilities/helpers.d.ts.map +1 -0
  227. package/dist/src/utilities/initTpay.d.ts +2 -0
  228. package/dist/src/utilities/initTpay.d.ts.map +1 -0
  229. package/dist/src/utilities/isCookieExists.d.ts +2 -0
  230. package/dist/src/utilities/isCookieExists.d.ts.map +1 -0
  231. package/dist/src/utilities/loadScriptInnerHtml.d.ts +3 -0
  232. package/dist/src/utilities/loadScriptInnerHtml.d.ts.map +1 -0
  233. package/dist/src/utilities/loadScriptSrc.d.ts +20 -0
  234. package/dist/src/utilities/loadScriptSrc.d.ts.map +1 -0
  235. package/dist/src/utilities/normaliseErrorCode.d.ts +8 -0
  236. package/dist/src/utilities/normaliseErrorCode.d.ts.map +1 -0
  237. package/dist/src/utilities/normalizePhoneNumber.d.ts +12 -0
  238. package/dist/src/utilities/normalizePhoneNumber.d.ts.map +1 -0
  239. package/dist/src/utilities/replaceUrlParam.d.ts +2 -0
  240. package/dist/src/utilities/replaceUrlParam.d.ts.map +1 -0
  241. package/dist/src/utilities/searchToObject.d.ts +3 -0
  242. package/dist/src/utilities/searchToObject.d.ts.map +1 -0
  243. package/dist/src/utilities/storeMsisdn.d.ts +4 -0
  244. package/dist/src/utilities/storeMsisdn.d.ts.map +1 -0
  245. package/dist/src/utilities/tracker.d.ts +2 -0
  246. package/dist/src/utilities/tracker.d.ts.map +1 -0
  247. package/dist/src/utilities/unblockUser.d.ts +7 -0
  248. package/dist/src/utilities/unblockUser.d.ts.map +1 -0
  249. package/dist/src/utilities/updateUrlWithParams.d.ts +2 -0
  250. package/dist/src/utilities/updateUrlWithParams.d.ts.map +1 -0
  251. package/dist/src/utilities/verifyAntifraudOnClick2Sms.d.ts +6 -0
  252. package/dist/src/utilities/verifyAntifraudOnClick2Sms.d.ts.map +1 -0
  253. package/dist/storeMsisdn-ChiBh8mI.js +58 -0
  254. package/dist/storeMsisdn-ChiBh8mI.js.map +1 -0
  255. package/dist/strategy.js +49 -1
  256. package/dist/strategy.js.map +1 -1
  257. package/dist/strategySlice-DEsw1xc-.js +1159 -0
  258. package/dist/strategySlice-DEsw1xc-.js.map +1 -0
  259. package/dist/tracker-B_zsMRN2.js +79 -0
  260. package/dist/tracker-B_zsMRN2.js.map +1 -0
  261. package/dist/tracker.js +4 -1
  262. package/dist/tracker.js.map +1 -1
  263. package/dist/types/{StrategyTypes-BlqY9peI.d.ts → StrategyTypes-LKeXDiPK.d.ts} +78 -2
  264. package/dist/types/click2smsFlow.d.ts +2 -2
  265. package/dist/types/oneClickFlow.d.ts +10 -2
  266. package/dist/types/searchToObject.d.ts +2 -2
  267. package/dist/types/strategy.d.ts +3 -3
  268. package/dist/unblockUser.js +107 -1
  269. package/dist/unblockUser.js.map +1 -1
  270. package/dist/updateUrlWithParams-ZaZt1BCf.js +15 -0
  271. package/dist/updateUrlWithParams-ZaZt1BCf.js.map +1 -0
  272. package/dist/ussdFlow.js +261 -1
  273. package/dist/ussdFlow.js.map +1 -1
  274. package/dist/verifyAntifraudOnClick2Sms.js +50 -1
  275. package/dist/verifyAntifraudOnClick2Sms.js.map +1 -1
  276. package/package.json +1 -1
  277. package/dist/RemoteDataState-lcf8PfJd.js +0 -2
  278. package/dist/RemoteDataState-lcf8PfJd.js.map +0 -1
  279. package/dist/api-geirVksI.js +0 -2
  280. package/dist/api-geirVksI.js.map +0 -1
  281. package/dist/cleanSearchParams-Dl7ZDlew.js +0 -2
  282. package/dist/cleanSearchParams-Dl7ZDlew.js.map +0 -1
  283. package/dist/formatNumberToE164-DaAFvpKD.js +0 -2
  284. package/dist/formatNumberToE164-DaAFvpKD.js.map +0 -1
  285. package/dist/handleWaterfallRedirect-DztqrthA.js +0 -2
  286. package/dist/handleWaterfallRedirect-DztqrthA.js.map +0 -1
  287. package/dist/helpers-CBmogWIZ.js +0 -2
  288. package/dist/helpers-CBmogWIZ.js.map +0 -1
  289. package/dist/loadScriptInnerHtml-B6v2-IGn.js +0 -2
  290. package/dist/loadScriptInnerHtml-B6v2-IGn.js.map +0 -1
  291. package/dist/main-CDmeQMF-.js +0 -2
  292. package/dist/main-CDmeQMF-.js.map +0 -1
  293. package/dist/normaliseErrorCode-CVpyJZ6_.js +0 -2
  294. package/dist/normaliseErrorCode-CVpyJZ6_.js.map +0 -1
  295. package/dist/storeMsisdn-Cjq8_qYH.js +0 -2
  296. package/dist/storeMsisdn-Cjq8_qYH.js.map +0 -1
  297. package/dist/strategySlice-BMNt18ck.js +0 -2
  298. package/dist/strategySlice-BMNt18ck.js.map +0 -1
  299. package/dist/tracker-DaaILhEr.js +0 -2
  300. package/dist/tracker-DaaILhEr.js.map +0 -1
  301. package/dist/types/OneClickTypes-BNg9Ru0u.d.ts +0 -71
  302. package/dist/updateUrlWithParams-C6-BX4TY.js +0 -2
  303. package/dist/updateUrlWithParams-C6-BX4TY.js.map +0 -1
@@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B,CAAC,EAAE,OAAO,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AACD,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,oBAAY,kBAAkB,GAAG,cAAc,GAAG,WAAW,GAAG,iBAAiB,GAAG,sBAAsB,CAAC;AAE3G,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC"}
@@ -0,0 +1,32 @@
1
+ import * as RDS from '../common-types/RemoteDataState';
2
+ export interface MSISDNEntryState {
3
+ type: 'MSISDNEntry';
4
+ result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
5
+ }
6
+ export declare type UssdFlowCurrentState = MSISDNEntryState;
7
+ export interface UssdFlowState {
8
+ currentState: UssdFlowCurrentState;
9
+ }
10
+ export declare type MSISDNEntryErrorTypes = 'AlreadySubscribed' | 'UnknownError' | 'InvalidMSISDN' | 'UnexpectedState';
11
+ export declare type MSISDNEntryFailure = {
12
+ errorType: MSISDNEntryErrorTypes;
13
+ error?: any;
14
+ productUrl?: string;
15
+ };
16
+ export declare type MSISDNEntrySuccess = IKeywordShortcode;
17
+ export declare type IKeywordShortcode = {
18
+ keyword: string;
19
+ shortcode: string;
20
+ };
21
+ export declare type IMSISDNSubmissionResult = {
22
+ success: true;
23
+ rockman_id: string;
24
+ keyword: string;
25
+ shortcode: string;
26
+ } | {
27
+ success: false;
28
+ rockman_id: string;
29
+ message: string;
30
+ };
31
+ export declare type IMockUssdFlowStates = 'msisdn-entry-success-state' | 'msisdn-entry-failure-state';
32
+ //# sourceMappingURL=UssdTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UssdTypes.d.ts","sourceRoot":"","sources":["../../../src/sharedFlowTypes/UssdTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;CACrE;AAED,oBAAY,oBAAoB,GAAG,gBAAgB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,oBAAoB,CAAC;CACpC;AACD,oBAAY,qBAAqB,GAAG,mBAAmB,GAAG,cAAc,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAC/G,oBAAY,kBAAkB,GAAG;IAC/B,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,oBAAY,kBAAkB,GAAG,iBAAiB,CAAC;AAEnD,oBAAY,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,oBAAY,uBAAuB,GAC/B;IACE,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE,OAAO,EAAE,KAAK,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,oBAAY,mBAAmB,GAAG,4BAA4B,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function addEmpelloToken({ currentRedirectUrl, country }: {
2
+ currentRedirectUrl: string;
3
+ country: string;
4
+ }): Promise<string>;
5
+ //# sourceMappingURL=addEmpelloToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addEmpelloToken.d.ts","sourceRoot":"","sources":["../../../src/utilities/addEmpelloToken.ts"],"names":[],"mappings":"AAEA,wBAAsB,eAAe,CAAC,EACpC,kBAAkB,EAClB,OAAO,EACR,EAAE;IACD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB,mBA2BA"}
@@ -0,0 +1,4 @@
1
+ export declare const addUrlParamsAndReload: (params: {
2
+ [key: string]: string;
3
+ }) => void;
4
+ //# sourceMappingURL=addUrlParamAndReload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addUrlParamAndReload.d.ts","sourceRoot":"","sources":["../../../src/utilities/addUrlParamAndReload.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;UAejC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const bupperizeCountry: (c: string) => string;
2
+ export { bupperizeCountry };
3
+ //# sourceMappingURL=bupperizeCountry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bupperizeCountry.d.ts","sourceRoot":"","sources":["../../../src/utilities/bupperizeCountry.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB,MAAO,MAAM,WAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare function checkSubscriptionHander({ window, flow, action, args, extraParams, isRedirectToChainAndProduct, isShowThankYou }: {
2
+ window: Window;
3
+ flow?: string;
4
+ action?: string;
5
+ args?: any;
6
+ extraParams?: any;
7
+ isRedirectToChainAndProduct?: boolean;
8
+ isShowThankYou?: boolean;
9
+ }): Promise<string>;
10
+ //# sourceMappingURL=checkSubscriptionHander.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkSubscriptionHander.d.ts","sourceRoot":"","sources":["../../../src/utilities/checkSubscriptionHander.ts"],"names":[],"mappings":"AA4BA,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,WAAgB,EAChB,2BAAmC,EACnC,cAAsB,EACvB,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,MAAM,CAAC,CA+ElB"}
@@ -0,0 +1,2 @@
1
+ export declare const cleanSearchParams: (search: string) => string | undefined;
2
+ //# sourceMappingURL=cleanSearchParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cleanSearchParams.d.ts","sourceRoot":"","sources":["../../../src/utilities/cleanSearchParams.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,WAAY,MAAM,KAAG,MAAM,GAAG,SAc3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const countryToPhoneCode: Record<string, string>;
2
+ //# sourceMappingURL=countryToPhoneCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countryToPhoneCode.d.ts","sourceRoot":"","sources":["../../../src/utilities/countryToPhoneCode.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAipBrD,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Formats a phone number to E.164 format.
3
+ *
4
+ * @param {string} number - The phone number to format.
5
+ * @param {string} isoCountryCode - The ISO country code of the phone number.
6
+ * @return {string} The formatted phone number in E.164 format.
7
+ */
8
+ export declare const formatNumberToE164: (number: string, isoCountryCode: string) => string;
9
+ //# sourceMappingURL=formatNumberToE164.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatNumberToE164.d.ts","sourceRoot":"","sources":["../../../src/utilities/formatNumberToE164.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,WAAY,MAAM,kBAAkB,MAAM,WAYxE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IStrategy } from '../common-types/Strategy';
2
+ export declare function setConfig(userConfig: IStrategy): void;
3
+ export declare function getConfig(): IStrategy;
4
+ //# sourceMappingURL=getConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../src/utilities/getConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAOrD,wBAAgB,SAAS,CAAC,UAAU,EAAE,SAAS,QAE9C;AAGD,wBAAgB,SAAS,IAAI,SAAS,CAErC"}
@@ -0,0 +1,24 @@
1
+ import { Dispatch } from '@reduxjs/toolkit';
2
+ export declare const handleAutoSubmitMsisdn: ({ msisdnValue, dispatch, submitMSISDNAction, isHeaderEnrichmentSuccess, isHeaderEnrichmentAutoSubmit }: {
3
+ window: Window;
4
+ msisdnValue: string;
5
+ dispatch: Dispatch;
6
+ submitMSISDNAction: ({ window, msisdn }: {
7
+ window: Window;
8
+ msisdn: string;
9
+ }) => any;
10
+ isHeaderEnrichmentSuccess: boolean;
11
+ isHeaderEnrichmentAutoSubmit?: boolean;
12
+ }) => void;
13
+ export declare const handleFormSubmit: ({ window, isHeaderEnrichmentSuccess, setInternationalNumber, onEnd, internationalNumber }: {
14
+ window: Window;
15
+ isHeaderEnrichmentSuccess: boolean;
16
+ country: string;
17
+ setInternationalNumber: React.Dispatch<React.SetStateAction<string>>;
18
+ onEnd: (msisdn: string, extraParams?: {
19
+ [key: string]: string;
20
+ }) => void;
21
+ internationalNumber: string;
22
+ isValid?: boolean;
23
+ }) => void;
24
+ //# sourceMappingURL=handleSubmitNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleSubmitNumber.d.ts","sourceRoot":"","sources":["../../../src/utilities/handleSubmitNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAM5C,eAAO,MAAM,sBAAsB;YAOzB,MAAM;iBACD,MAAM;cACT,QAAQ;;gBACiC,MAAM;gBAAU,MAAM;UAAO,GAAG;+BACxD,OAAO;mCACH,OAAO;UAQvC,CAAC;AAEF,eAAO,MAAM,gBAAgB;YAOnB,MAAM;+BACa,OAAO;aACzB,MAAM;4BACS,cAAc,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;oBACpD,MAAM;;UAA8C,IAAI;yBACnD,MAAM;cACjB,OAAO;UA6BlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const handleWaterfallRedirect: (url: string) => void;
2
+ //# sourceMappingURL=handleWaterfallRedirect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleWaterfallRedirect.d.ts","sourceRoot":"","sources":["../../../src/utilities/handleWaterfallRedirect.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,uBAAuB,QAAS,MAAM,SAMlD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const hasNumber: (myString: string) => boolean;
2
+ //# sourceMappingURL=hasNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasNumber.d.ts","sourceRoot":"","sources":["../../../src/utilities/hasNumber.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,aAAc,MAAM,YAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import Either from '../common-types/Either';
2
+ export declare const wait: (ms: number) => Promise<void>;
3
+ export declare const loop: <_I extends Record<string, unknown>, R extends Record<string, unknown>>(f: () => Promise<R>, max: number, stop: (r: R) => boolean, i: number) => Promise<R>;
4
+ export declare function right<L, R>(r: R): Either<L, R>;
5
+ export declare function left<L, R>(l: L): Either<L, R>;
6
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utilities/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,eAAO,MAAM,IAAI,OAAQ,MAAM,kBAAoE,CAAC;AAEpG,eAAO,MAAM,IAAI,oGAEV,MAAM,kBACK,OAAO,KACpB,MAAM,eAQV,CAAC;AAEF,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,gBAE/B;AACD,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,gBAE9B"}
@@ -0,0 +1,2 @@
1
+ export declare const initTPay: (internationalNumber?: string) => Promise<boolean>;
2
+ //# sourceMappingURL=initTpay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initTpay.d.ts","sourceRoot":"","sources":["../../../src/utilities/initTpay.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,QAAQ,yBAAgC,MAAM,KAAG,QAAQ,OAAO,CAuE5E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const isCookieExists: (window: Window, cookieName: string) => boolean;
2
+ //# sourceMappingURL=isCookieExists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isCookieExists.d.ts","sourceRoot":"","sources":["../../../src/utilities/isCookieExists.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,WAAY,MAAM,cAAc,MAAM,YAE2B,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const loadScriptInnerHtml: (innerHTML: string, isBody?: boolean) => void;
2
+ export { loadScriptInnerHtml };
3
+ //# sourceMappingURL=loadScriptInnerHtml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadScriptInnerHtml.d.ts","sourceRoot":"","sources":["../../../src/utilities/loadScriptInnerHtml.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,mBAAmB,cAAe,MAAM,WAAW,OAAO,SA2B/D,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Loads a script from the specified URL and optionally executes a reCAPTCHA if the `isRecaptcha` flag is set.
3
+ *
4
+ * @param {Object} options - An object containing the following properties:
5
+ * - {string} url: The URL of the script to load.
6
+ * - {string} [key]: The reCAPTCHA key to use for execution. (Optional)
7
+ * - {boolean} [isRecaptcha]: Flag indicating whether to execute a reCAPTCHA. Defaults to false.
8
+ * - {function} [callBack]: A callback function to be called if there is an error loading the script. (Optional)
9
+ * - {string} [id]: The ID to assign to the injected script. Defaults to an empty string.
10
+ * @return {void}
11
+ */
12
+ declare const loadScriptSrc: ({ url, key, isRecaptcha, callBack, id }: {
13
+ url: string;
14
+ key?: string;
15
+ isRecaptcha?: boolean;
16
+ callBack?: () => void;
17
+ id?: string;
18
+ }) => void;
19
+ export default loadScriptSrc;
20
+ //# sourceMappingURL=loadScriptSrc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadScriptSrc.d.ts","sourceRoot":"","sources":["../../../src/utilities/loadScriptSrc.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,QAAA,MAAM,aAAa;SAOZ,MAAM;UACL,MAAM;kBACE,OAAO;eACV,MAAM,IAAI;SAChB,MAAM;UA8BZ,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare type ErrorType = 'Success' | 'Pending' | 'AlreadySubscribed' | 'BlacklistedMsisdn' | 'DuplicatedRequest' | 'ExpiredPin' | 'InvalidPin' | 'PinLimitExceeded' | 'PinGenerationError' | 'PinAlreadyUsed' | 'InactiveOperator' | 'InvalidMSISDN' | 'InvalidSubscriptionId' | 'NotEligibleMsisdn' | 'ValidationIssue' | 'InsufficientBalance' | 'AntiFraudError' | 'VasBlocked' | 'AccountSuspended' | 'SalesCapReached' | 'SubscriptionApiFailure' | 'ReSubscriptionBlocked' | 'ReLeadBlocked' | 'UnspecifiedError' | 'UnexpectedState' | 'SomethingWentWrong' | 'TPayConfirmError' | 'UnknownError' | string;
2
+ /**
3
+ * Normalise a raw error code string into its semantic ErrorType.
4
+ * Falls back to 'Unknown' if the code isn’t in the map.
5
+ */
6
+ export declare const normaliseErrorCode: (errorCode: string) => ErrorType;
7
+ export declare const redirectErrorTypes: ErrorType[];
8
+ //# sourceMappingURL=normaliseErrorCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normaliseErrorCode.d.ts","sourceRoot":"","sources":["../../../src/utilities/normaliseErrorCode.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS,GACjB,SAAS,GACT,SAAS,GACT,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,uBAAuB,GACvB,mBAAmB,GACnB,iBAAiB,GACjB,qBAAqB,GACrB,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,iBAAiB,GACjB,wBAAwB,GACxB,uBAAuB,GACvB,eAAe,GACf,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,cAAc,GACd,MAAM,CAAC;AA6BX;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,KAAG,SAAwD,CAAC;AAEhH,eAAO,MAAM,kBAAkB,EAAE,SAAS,EAQzC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Normalizes a phone number by:
3
+ * 1. Stripping non-digits.
4
+ * 2. Removing the known country code if provided (and present).
5
+ * 3. Ensuring the result has a leading '0'.
6
+ *
7
+ * @param phoneNumber The user-input phone number (e.g. "+971501234567").
8
+ * @param isoCountry (optional) ISO country code (e.g. "AE", "PK").
9
+ * @returns The normalized phone number with a leading '0'.
10
+ */
11
+ export declare const normalizePhoneNumber: (phoneNumber: string, isoCountry?: string) => string;
12
+ //# sourceMappingURL=normalizePhoneNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizePhoneNumber.d.ts","sourceRoot":"","sources":["../../../src/utilities/normalizePhoneNumber.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,gBAAiB,MAAM,eAAe,MAAM,KAAG,MAsB/E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const replaceUrlParam: (url: string, paramName: string, paramValue?: string) => string;
2
+ //# sourceMappingURL=replaceUrlParam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceUrlParam.d.ts","sourceRoot":"","sources":["../../../src/utilities/replaceUrlParam.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAS,MAAM,aAAa,MAAM,gCAO7D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IMockFlowParams, IStrategyIDentifyUserResult } from '../sharedFlowTypes/StrategyTypes';
2
+ export declare function searchToObject(win: Window): IMockFlowParams<any> | IStrategyIDentifyUserResult | any;
3
+ //# sourceMappingURL=searchToObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchToObject.d.ts","sourceRoot":"","sources":["../../../src/utilities/searchToObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEhG,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,GAAG,2BAA2B,GAAG,GAAG,CAOpG"}
@@ -0,0 +1,4 @@
1
+ export declare const setCookie: (name: string, value: string, daysToExpire: number, path?: string) => void;
2
+ export declare const getCookie: (name: string) => string;
3
+ export declare function storeMsisdn(msisdn: string): Promise<any>;
4
+ //# sourceMappingURL=storeMsisdn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeMsisdn.d.ts","sourceRoot":"","sources":["../../../src/utilities/storeMsisdn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,SAAU,MAAM,SAAS,MAAM,gBAAgB,MAAM,wBAS1E,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,MAAM,WAGrC,CAAC;AAEF,wBAAsB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAuC9D"}
@@ -0,0 +1,2 @@
1
+ export declare const tracker: import("pacman-client/.build-lib/Pacman/types").ITrackerFlowEvents;
2
+ //# sourceMappingURL=tracker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../src/utilities/tracker.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,oEAA2D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { IHash } from '../common-types/IHash';
2
+ export declare function unblockUser({ window, msisdn, extraParams }: {
3
+ window: Window;
4
+ msisdn: string;
5
+ extraParams?: IHash;
6
+ }): Promise<any>;
7
+ //# sourceMappingURL=unblockUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unblockUser.d.ts","sourceRoot":"","sources":["../../../src/utilities/unblockUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAO9C,wBAAsB,WAAW,CAAC,EAChC,MAAM,EACN,MAAM,EACN,WAAW,EACZ,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,GAAG,OAAO,CAAC,GAAG,CAAC,CAyCf"}
@@ -0,0 +1,2 @@
1
+ export declare function updateUrlWithParams(url: string, extraParams?: any): string;
2
+ //# sourceMappingURL=updateUrlWithParams.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateUrlWithParams.d.ts","sourceRoot":"","sources":["../../../src/utilities/updateUrlWithParams.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,GAAE,GAAQ,GAAG,MAAM,CAS9E"}
@@ -0,0 +1,6 @@
1
+ import { IValidateAntifraudResult } from '../sharedFlowTypes/Click2smsTypes';
2
+ export declare function verifyAntifraudOnClick2Sms({ window, antifraudId }: {
3
+ window: Window;
4
+ antifraudId: string;
5
+ }): Promise<IValidateAntifraudResult>;
6
+ //# sourceMappingURL=verifyAntifraudOnClick2Sms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifyAntifraudOnClick2Sms.d.ts","sourceRoot":"","sources":["../../../src/utilities/verifyAntifraudOnClick2Sms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAI7E,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,WAAW,EACZ,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAoCpC"}
@@ -0,0 +1,58 @@
1
+ import { __awaiter, __generator } from 'tslib';
2
+
3
+ var setCookie = function (name, value, daysToExpire, path) {
4
+ if (path === void 0) { path = '/'; }
5
+ var cookieString = "".concat(name, "=").concat(encodeURIComponent(value));
6
+ if (daysToExpire) {
7
+ var date = new Date();
8
+ date.setTime(date.getTime() + daysToExpire * 24 * 60 * 60 * 1000);
9
+ cookieString += "; expires=".concat(date.toUTCString());
10
+ }
11
+ cookieString += "; path=".concat(path);
12
+ document.cookie = cookieString;
13
+ };
14
+ function storeMsisdn(msisdn) {
15
+ return __awaiter(this, void 0, void 0, function () {
16
+ var encryptedMsisdn, response, error_1;
17
+ return __generator(this, function (_a) {
18
+ switch (_a.label) {
19
+ case 0:
20
+ if (!(typeof window !== 'undefined')) return [3 /*break*/, 5];
21
+ encryptedMsisdn = window.btoa(msisdn);
22
+ setCookie('_uuid', encryptedMsisdn, 365, '/');
23
+ localStorage.setItem('_uuid', encryptedMsisdn);
24
+ // if window.msisdnCookieUrl is not declared
25
+ if (!window.msisdnCookieUrl) {
26
+ return [2 /*return*/, {
27
+ data: {
28
+ success: true,
29
+ message: 'MSISDN saved on cookies and localStorage'
30
+ }
31
+ }];
32
+ }
33
+ _a.label = 1;
34
+ case 1:
35
+ _a.trys.push([1, 3, , 4]);
36
+ return [4 /*yield*/, fetch(window.msisdnCookieUrl, {
37
+ mode: 'cors',
38
+ method: 'POST',
39
+ credentials: 'include',
40
+ headers: { 'Content-Type': 'application/json' },
41
+ body: JSON.stringify({ _uuid: encryptedMsisdn })
42
+ })];
43
+ case 2:
44
+ response = _a.sent();
45
+ return [2 /*return*/, response.json()];
46
+ case 3:
47
+ error_1 = _a.sent();
48
+ return [2 /*return*/, error_1.message];
49
+ case 4: return [3 /*break*/, 6];
50
+ case 5: return [2 /*return*/, 'Window object is not available'];
51
+ case 6: return [2 /*return*/];
52
+ }
53
+ });
54
+ });
55
+ }
56
+
57
+ export { storeMsisdn as s };
58
+ //# sourceMappingURL=storeMsisdn-ChiBh8mI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeMsisdn-ChiBh8mI.js","sources":["../../src/utilities/storeMsisdn.ts"],"sourcesContent":["export const setCookie = (name: string, value: string, daysToExpire: number, path = '/') => {\n let cookieString = `${name}=${encodeURIComponent(value)}`;\n if (daysToExpire) {\n const date = new Date();\n date.setTime(date.getTime() + daysToExpire * 24 * 60 * 60 * 1000);\n cookieString += `; expires=${date.toUTCString()}`;\n }\n cookieString += `; path=${path}`;\n document.cookie = cookieString;\n};\n\nexport const getCookie = (name: string) => {\n const cookieValue = document.cookie.match(`(^|;)\\\\s*${name}\\\\s*=\\\\s*([^;]+)`);\n return cookieValue ? decodeURIComponent(cookieValue?.pop() || '') : '';\n};\n\nexport async function storeMsisdn(msisdn: string): Promise<any> {\n if (typeof window !== 'undefined') {\n // save msisdn in cookie & localStorage\n const encryptedMsisdn = window.btoa(msisdn);\n setCookie('_uuid', encryptedMsisdn, 365, '/');\n localStorage.setItem('_uuid', encryptedMsisdn);\n\n // if window.msisdnCookieUrl is not declared\n if (!(window as any).msisdnCookieUrl) {\n return {\n data: {\n success: true,\n message: 'MSISDN saved on cookies and localStorage'\n }\n };\n }\n\n /*\n ENDPOINT window.msisdnCookieUrl\n GET Return _uuid if available\n POST Save _uuid but body is required `{ \"_uuid\": \"string\" }`\n DELETE Clear the _uuid\n */\n try {\n const response = await fetch((window as any).msisdnCookieUrl, {\n mode: 'cors',\n method: 'POST',\n credentials: 'include',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ _uuid: encryptedMsisdn })\n });\n\n return response.json();\n } catch (error) {\n return error.message;\n }\n } else {\n return 'Window object is not available';\n }\n}\n"],"names":[],"mappings":";;AAAO,IAAM,SAAS,GAAG,UAAC,IAAY,EAAE,KAAa,EAAE,YAAoB,EAAE,IAAU,EAAA;AAAV,IAAA,IAAA,IAAA,KAAA,KAAA,CAAA,EAAA,EAAA,IAAU,GAAA,GAAA,CAAA,EAAA;IACrF,IAAI,YAAY,GAAG,EAAA,CAAA,MAAA,CAAG,IAAI,EAAA,GAAA,CAAA,CAAA,MAAA,CAAI,kBAAkB,CAAC,KAAK,CAAC,CAAE,CAAC;AAC1D,IAAA,IAAI,YAAY,EAAE;AAChB,QAAA,IAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;AACxB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;AAClE,QAAA,YAAY,IAAI,YAAa,CAAA,MAAA,CAAA,IAAI,CAAC,WAA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AA,CAAA,aAAA,OAAK,CAAC,OAAO,CAAC,CAAA;;AAGvB,gBAAA,KAAA,CAAA,EAAA,OAAA,CAAA,CAAA,aAAO,gCAAgC,CAAC,CAAA;;;;;AAE3C;;;;"}
package/dist/strategy.js CHANGED
@@ -1,2 +1,50 @@
1
- export{R as RDS}from"./RemoteDataState-lcf8PfJd.js";import{P as t}from"./strategySlice-BMNt18ck.js";export{i as identifyStrategy,a as selectOperatorAction,b as strategyReducer,s as submitMSISDNAction}from"./strategySlice-BMNt18ck.js";import"tslib";import"@reduxjs/toolkit";import"./searchToObject.js";import"./getConfig.js";import"./tracker-DaaILhEr.js";import"pacman-client";import"uuid";import"./formatNumberToE164-DaAFvpKD.js";import"./api-geirVksI.js";var e=function(t){return t((function(t){return t.strategy.currentState}))};function r(e){var r=e.identifyInitialState,o=e.identifyFlowByOperatorSelect,i=e.identifyFlowByMsisdn,s=e.pinFlow,a=e.moFlow,n=e.moRedirFlow,c=e.oneClickFlow,u=e.click2smsFlow,p=e.ussdFlow,l=e.creditCardFlow;return function(e){switch(e.type){case t.IDENTIFY_STRATEGY:return r();case t.IDENTIFY_FLOW_BY_OPERATOR_SELECT:return o();case t.IDENTIFY_FLOW_BY_MSISDN:return i(e.result);case t.PIN:return s();case t.MO:return a();case t.MO_REDIR:return n();case t.ONE_CLICK:return c();case t.CLICK2SMS:return u();case t.USSD:return p();case t.CREDIT_CARD:return l();default:throw new Error("Unexpected state type: ".concat(e.type))}}}export{t as PossibleTypes,r as strategy,e as useStrategyState};
1
+ export { R as RDS } from './RemoteDataState-CwHLI23e.js';
2
+ import { P as PossibleTypes } from './strategySlice-DEsw1xc-.js';
3
+ export { i as identifyStrategy, a as selectOperatorAction, b as strategyReducer, s as submitMSISDNAction } from './strategySlice-DEsw1xc-.js';
4
+ import 'tslib';
5
+ import '@reduxjs/toolkit';
6
+ import './searchToObject.js';
7
+ import './getConfig.js';
8
+ import './tracker-B_zsMRN2.js';
9
+ import 'pacman-client';
10
+ import 'uuid';
11
+ import './formatNumberToE164-oPCiETQk.js';
12
+ import './api-oPdBWsMC.js';
13
+
14
+ var useStrategyState = function (useSelector) {
15
+ var currentState = useSelector(function (state) { return state.strategy.currentState; });
16
+ return currentState;
17
+ };
18
+
19
+ function strategy(_a) {
20
+ var identifyInitialState = _a.identifyInitialState, identifyFlowByOperatorSelect = _a.identifyFlowByOperatorSelect, identifyFlowByMsisdn = _a.identifyFlowByMsisdn, pinFlow = _a.pinFlow, moFlow = _a.moFlow, moRedirFlow = _a.moRedirFlow, oneClickFlow = _a.oneClickFlow, click2smsFlow = _a.click2smsFlow, ussdFlow = _a.ussdFlow, creditCardFlow = _a.creditCardFlow;
21
+ return function (state) {
22
+ switch (state.type) {
23
+ case PossibleTypes.IDENTIFY_STRATEGY:
24
+ return identifyInitialState();
25
+ case PossibleTypes.IDENTIFY_FLOW_BY_OPERATOR_SELECT:
26
+ return identifyFlowByOperatorSelect();
27
+ case PossibleTypes.IDENTIFY_FLOW_BY_MSISDN:
28
+ return identifyFlowByMsisdn(state.result);
29
+ case PossibleTypes.PIN:
30
+ return pinFlow();
31
+ case PossibleTypes.MO:
32
+ return moFlow();
33
+ case PossibleTypes.MO_REDIR:
34
+ return moRedirFlow();
35
+ case PossibleTypes.ONE_CLICK:
36
+ return oneClickFlow();
37
+ case PossibleTypes.CLICK2SMS:
38
+ return click2smsFlow();
39
+ case PossibleTypes.USSD:
40
+ return ussdFlow();
41
+ case PossibleTypes.CREDIT_CARD:
42
+ return creditCardFlow();
43
+ default:
44
+ throw new Error("Unexpected state type: ".concat(state.type));
45
+ }
46
+ };
47
+ }
48
+
49
+ export { PossibleTypes, strategy, useStrategyState };
2
50
  //# sourceMappingURL=strategy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"strategy.js","sources":["../src/flows/strategy/hooks/useStrategyState.ts","../src/flows/strategy/match.ts"],"sourcesContent":["import { useSelector as IuseSelector } from 'react-redux';\nimport { RootState } from '../../../sharedFlowTypes/StrategyTypes';\n\nexport const useStrategyState = (useSelector: typeof IuseSelector) => {\n const currentState = useSelector((state: RootState) => state.strategy.currentState);\n return currentState;\n};\n","import * as RDS from '../../common-types/RemoteDataState';\nimport {\n IDENTIFYMSISDNEntryFailure,\n IDENTIFYMSISDNEntrySuccess,\n PossibleTypes,\n StrategyCurrentState\n} from '../../sharedFlowTypes/StrategyTypes';\n\nfunction strategy<R>({\n identifyInitialState,\n identifyFlowByOperatorSelect,\n identifyFlowByMsisdn,\n pinFlow,\n moFlow,\n moRedirFlow,\n oneClickFlow,\n click2smsFlow,\n ussdFlow,\n creditCardFlow\n}: {\n identifyInitialState: () => R;\n identifyFlowByOperatorSelect?: () => R;\n identifyFlowByMsisdn?: (rds: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>) => R;\n pinFlow?: () => R;\n moFlow?: () => R;\n moRedirFlow?: () => R;\n oneClickFlow?: () => R;\n click2smsFlow?: () => R;\n ussdFlow?: () => R;\n creditCardFlow?: () => R;\n}): (state: StrategyCurrentState) => R {\n return (state) => {\n switch (state.type) {\n case PossibleTypes.IDENTIFY_STRATEGY:\n return identifyInitialState();\n case PossibleTypes.IDENTIFY_FLOW_BY_OPERATOR_SELECT:\n return identifyFlowByOperatorSelect();\n case PossibleTypes.IDENTIFY_FLOW_BY_MSISDN:\n return identifyFlowByMsisdn(state.result);\n case PossibleTypes.PIN:\n return pinFlow();\n case PossibleTypes.MO:\n return moFlow();\n case PossibleTypes.MO_REDIR:\n return moRedirFlow();\n case PossibleTypes.ONE_CLICK:\n return oneClickFlow();\n case PossibleTypes.CLICK2SMS:\n return click2smsFlow();\n case PossibleTypes.USSD:\n return ussdFlow();\n case PossibleTypes.CREDIT_CARD:\n return creditCardFlow();\n default:\n throw new Error(`Unexpected state type: ${state.type}`);\n }\n };\n}\n\nexport { strategy };\n"],"names":["useStrategyState","useSelector","state","strategy","currentState","_a","identifyInitialState","identifyFlowByOperatorSelect","identifyFlowByMsisdn","pinFlow","moFlow","moRedirFlow","oneClickFlow","click2smsFlow","ussdFlow","creditCardFlow","type","PossibleTypes","IDENTIFY_STRATEGY","IDENTIFY_FLOW_BY_OPERATOR_SELECT","IDENTIFY_FLOW_BY_MSISDN","result","PIN","MO","MO_REDIR","ONE_CLICK","CLICK2SMS","USSD","CREDIT_CARD","Error","concat"],"mappings":"wcAGO,IAAMA,EAAmB,SAACC,GAE/B,OADqBA,GAAY,SAACC,GAAqB,OAAAA,EAAMC,SAASC,YAAf,GAEzD,ECEA,SAASD,EAAYE,OACnBC,EAAoBD,EAAAC,qBACpBC,EAA4BF,EAAAE,6BAC5BC,EAAoBH,EAAAG,qBACpBC,EAAOJ,EAAAI,QACPC,EAAML,EAAAK,OACNC,EAAWN,EAAAM,YACXC,EAAYP,EAAAO,aACZC,EAAaR,EAAAQ,cACbC,EAAQT,EAAAS,SACRC,EAAcV,EAAAU,eAad,OAAO,SAACb,GACN,OAAQA,EAAMc,MACZ,KAAKC,EAAcC,kBACjB,OAAOZ,IACT,KAAKW,EAAcE,iCACjB,OAAOZ,IACT,KAAKU,EAAcG,wBACjB,OAAOZ,EAAqBN,EAAMmB,QACpC,KAAKJ,EAAcK,IACjB,OAAOb,IACT,KAAKQ,EAAcM,GACjB,OAAOb,IACT,KAAKO,EAAcO,SACjB,OAAOb,IACT,KAAKM,EAAcQ,UACjB,OAAOb,IACT,KAAKK,EAAcS,UACjB,OAAOb,IACT,KAAKI,EAAcU,KACjB,OAAOb,IACT,KAAKG,EAAcW,YACjB,OAAOb,IACT,QACE,MAAM,IAAIc,MAAM,0BAAAC,OAA0B5B,EAAMc,OAEtD,CACF"}
1
+ {"version":3,"file":"strategy.js","sources":["../../src/flows/strategy/hooks/useStrategyState.ts","../../src/flows/strategy/match.ts"],"sourcesContent":["import { useSelector as IuseSelector } from 'react-redux';\nimport { RootState } from '../../../sharedFlowTypes/StrategyTypes';\n\nexport const useStrategyState = (useSelector: typeof IuseSelector) => {\n const currentState = useSelector((state: RootState) => state.strategy.currentState);\n return currentState;\n};\n","import * as RDS from '../../common-types/RemoteDataState';\nimport {\n IDENTIFYMSISDNEntryFailure,\n IDENTIFYMSISDNEntrySuccess,\n PossibleTypes,\n StrategyCurrentState\n} from '../../sharedFlowTypes/StrategyTypes';\n\nfunction strategy<R>({\n identifyInitialState,\n identifyFlowByOperatorSelect,\n identifyFlowByMsisdn,\n pinFlow,\n moFlow,\n moRedirFlow,\n oneClickFlow,\n click2smsFlow,\n ussdFlow,\n creditCardFlow\n}: {\n identifyInitialState: () => R;\n identifyFlowByOperatorSelect?: () => R;\n identifyFlowByMsisdn?: (rds: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>) => R;\n pinFlow?: () => R;\n moFlow?: () => R;\n moRedirFlow?: () => R;\n oneClickFlow?: () => R;\n click2smsFlow?: () => R;\n ussdFlow?: () => R;\n creditCardFlow?: () => R;\n}): (state: StrategyCurrentState) => R {\n return (state) => {\n switch (state.type) {\n case PossibleTypes.IDENTIFY_STRATEGY:\n return identifyInitialState();\n case PossibleTypes.IDENTIFY_FLOW_BY_OPERATOR_SELECT:\n return identifyFlowByOperatorSelect();\n case PossibleTypes.IDENTIFY_FLOW_BY_MSISDN:\n return identifyFlowByMsisdn(state.result);\n case PossibleTypes.PIN:\n return pinFlow();\n case PossibleTypes.MO:\n return moFlow();\n case PossibleTypes.MO_REDIR:\n return moRedirFlow();\n case PossibleTypes.ONE_CLICK:\n return oneClickFlow();\n case PossibleTypes.CLICK2SMS:\n return click2smsFlow();\n case PossibleTypes.USSD:\n return ussdFlow();\n case PossibleTypes.CREDIT_CARD:\n return creditCardFlow();\n default:\n throw new Error(`Unexpected state type: ${state.type}`);\n }\n };\n}\n\nexport { strategy };\n"],"names":[],"mappings":";;;;;;;;;;;;;AAGO,IAAM,gBAAgB,GAAG,UAAC,WAAgC,EAAA;AAC/D,IAAA,IAAM,YAAY,GAAG,WAAW,CAAC,UAAC,KAAgB,EAAK,EAAA,OAAA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