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.
- package/dist/RemoteDataState-CwHLI23e.js +75 -0
- package/dist/RemoteDataState-CwHLI23e.js.map +1 -0
- package/dist/api-oPdBWsMC.js +65 -0
- package/dist/api-oPdBWsMC.js.map +1 -0
- package/dist/checkSubscriptionHander.js +140 -1
- package/dist/checkSubscriptionHander.js.map +1 -1
- package/dist/cleanSearchParams-B2jK3H1j.js +16 -0
- package/dist/cleanSearchParams-B2jK3H1j.js.map +1 -0
- package/dist/click2smsFlow.js +252 -1
- package/dist/click2smsFlow.js.map +1 -1
- package/dist/creditCardFlow.js +331 -1
- package/dist/creditCardFlow.js.map +1 -1
- package/dist/formatNumberToE164-oPCiETQk.js +476 -0
- package/dist/formatNumberToE164-oPCiETQk.js.map +1 -0
- package/dist/getConfig.js +13 -1
- package/dist/getConfig.js.map +1 -1
- package/dist/handleSubmitNumber.js +50 -1
- package/dist/handleSubmitNumber.js.map +1 -1
- package/dist/handleWaterfallRedirect-h5K2zX3N.js +21 -0
- package/dist/handleWaterfallRedirect-h5K2zX3N.js.map +1 -0
- package/dist/helpers-BIBpnXln.js +29 -0
- package/dist/helpers-BIBpnXln.js.map +1 -0
- package/dist/initTPay.js +98 -1
- package/dist/initTPay.js.map +1 -1
- package/dist/loadScriptInnerHtml-CstJVRED.js +30 -0
- package/dist/loadScriptInnerHtml-CstJVRED.js.map +1 -0
- package/dist/main-8gjJCdrT.js +448 -0
- package/dist/main-8gjJCdrT.js.map +1 -0
- package/dist/moFlow.js +322 -1
- package/dist/moFlow.js.map +1 -1
- package/dist/moRedirFlow.js +329 -1
- package/dist/moRedirFlow.js.map +1 -1
- package/dist/normaliseErrorCode-CBLYxW-a.js +44 -0
- package/dist/normaliseErrorCode-CBLYxW-a.js.map +1 -0
- package/dist/oneClickFlow.js +710 -1
- package/dist/oneClickFlow.js.map +1 -1
- package/dist/pinFlow.js +542 -1
- package/dist/pinFlow.js.map +1 -1
- package/dist/searchToObject.js +9 -1
- package/dist/searchToObject.js.map +1 -1
- package/dist/src/common-types/Either.d.ts +9 -0
- package/dist/src/common-types/Either.d.ts.map +1 -0
- package/dist/src/common-types/ICheckSubscriptionResult.d.ts +12 -0
- package/dist/src/common-types/ICheckSubscriptionResult.d.ts.map +1 -0
- package/dist/src/common-types/IError.d.ts +5 -0
- package/dist/src/common-types/IError.d.ts.map +1 -0
- package/dist/src/common-types/IHash.d.ts +4 -0
- package/dist/src/common-types/IHash.d.ts.map +1 -0
- package/dist/src/common-types/IOptInFlowName.d.ts +2 -0
- package/dist/src/common-types/IOptInFlowName.d.ts.map +1 -0
- package/dist/src/common-types/ITracker.d.ts +10 -0
- package/dist/src/common-types/ITracker.d.ts.map +1 -0
- package/dist/src/common-types/IVisitor.d.ts +51 -0
- package/dist/src/common-types/IVisitor.d.ts.map +1 -0
- package/dist/src/common-types/RemoteDataState.d.ts +39 -0
- package/dist/src/common-types/RemoteDataState.d.ts.map +1 -0
- package/dist/src/common-types/Strategy.d.ts +49 -0
- package/dist/src/common-types/Strategy.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/api.d.ts +13 -0
- package/dist/src/flows/click2smsFlow/api.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/click2smsFlowSlice.d.ts +18 -0
- package/dist/src/flows/click2smsFlow/click2smsFlowSlice.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/hooks/useClick2smsFlowState.d.ts +3 -0
- package/dist/src/flows/click2smsFlow/hooks/useClick2smsFlowState.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/hooks/useKeyWordShortCode.d.ts +4 -0
- package/dist/src/flows/click2smsFlow/hooks/useKeyWordShortCode.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/index.d.ts +6 -0
- package/dist/src/flows/click2smsFlow/index.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/main.d.ts +4 -0
- package/dist/src/flows/click2smsFlow/main.d.ts.map +1 -0
- package/dist/src/flows/click2smsFlow/match.d.ts +7 -0
- package/dist/src/flows/click2smsFlow/match.d.ts.map +1 -0
- package/dist/src/flows/creditCardFlow/api.d.ts +26 -0
- package/dist/src/flows/creditCardFlow/api.d.ts.map +1 -0
- package/dist/src/flows/creditCardFlow/creditCardFlowSlice.d.ts +26 -0
- package/dist/src/flows/creditCardFlow/creditCardFlowSlice.d.ts.map +1 -0
- package/dist/src/flows/creditCardFlow/hooks/useCreditCardFlowState.d.ts +3 -0
- package/dist/src/flows/creditCardFlow/hooks/useCreditCardFlowState.d.ts.map +1 -0
- package/dist/src/flows/creditCardFlow/index.d.ts +5 -0
- package/dist/src/flows/creditCardFlow/index.d.ts.map +1 -0
- package/dist/src/flows/creditCardFlow/main.d.ts +8 -0
- package/dist/src/flows/creditCardFlow/main.d.ts.map +1 -0
- package/dist/src/flows/creditCardFlow/match.d.ts +7 -0
- package/dist/src/flows/creditCardFlow/match.d.ts.map +1 -0
- package/dist/src/flows/moFlow/api.d.ts +15 -0
- package/dist/src/flows/moFlow/api.d.ts.map +1 -0
- package/dist/src/flows/moFlow/hooks/useMoFlowState.d.ts +3 -0
- package/dist/src/flows/moFlow/hooks/useMoFlowState.d.ts.map +1 -0
- package/dist/src/flows/moFlow/index.d.ts +5 -0
- package/dist/src/flows/moFlow/index.d.ts.map +1 -0
- package/dist/src/flows/moFlow/main.d.ts +13 -0
- package/dist/src/flows/moFlow/main.d.ts.map +1 -0
- package/dist/src/flows/moFlow/match.d.ts +7 -0
- package/dist/src/flows/moFlow/match.d.ts.map +1 -0
- package/dist/src/flows/moFlow/moFlowSlice.d.ts +47 -0
- package/dist/src/flows/moFlow/moFlowSlice.d.ts.map +1 -0
- package/dist/src/flows/moRedirFlow/api.d.ts +18 -0
- package/dist/src/flows/moRedirFlow/api.d.ts.map +1 -0
- package/dist/src/flows/moRedirFlow/hooks/useMoRedirFlowState.d.ts +3 -0
- package/dist/src/flows/moRedirFlow/hooks/useMoRedirFlowState.d.ts.map +1 -0
- package/dist/src/flows/moRedirFlow/index.d.ts +5 -0
- package/dist/src/flows/moRedirFlow/index.d.ts.map +1 -0
- package/dist/src/flows/moRedirFlow/main.d.ts +8 -0
- package/dist/src/flows/moRedirFlow/main.d.ts.map +1 -0
- package/dist/src/flows/moRedirFlow/match.d.ts +7 -0
- package/dist/src/flows/moRedirFlow/match.d.ts.map +1 -0
- package/dist/src/flows/moRedirFlow/moRedirFlowSlice.d.ts +38 -0
- package/dist/src/flows/moRedirFlow/moRedirFlowSlice.d.ts.map +1 -0
- package/dist/src/flows/oneClickFlow/api.d.ts +22 -0
- package/dist/src/flows/oneClickFlow/api.d.ts.map +1 -0
- package/dist/src/flows/oneClickFlow/hooks/useOneClickFlowState.d.ts +3 -0
- package/dist/src/flows/oneClickFlow/hooks/useOneClickFlowState.d.ts.map +1 -0
- package/dist/src/flows/oneClickFlow/index.d.ts +5 -0
- package/dist/src/flows/oneClickFlow/index.d.ts.map +1 -0
- package/dist/src/flows/oneClickFlow/main.d.ts +15 -0
- package/dist/src/flows/oneClickFlow/main.d.ts.map +1 -0
- package/dist/src/flows/oneClickFlow/match.d.ts +8 -0
- package/dist/src/flows/oneClickFlow/match.d.ts.map +1 -0
- package/dist/src/flows/oneClickFlow/oneClickFlowSlice.d.ts +45 -0
- package/dist/src/flows/oneClickFlow/oneClickFlowSlice.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/IPinConstants.d.ts +3 -0
- package/dist/src/flows/pinFlow/IPinConstants.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/api.d.ts +39 -0
- package/dist/src/flows/pinFlow/api.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/hooks/usePinFlowState.d.ts +3 -0
- package/dist/src/flows/pinFlow/hooks/usePinFlowState.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/index.d.ts +5 -0
- package/dist/src/flows/pinFlow/index.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/main.d.ts +10 -0
- package/dist/src/flows/pinFlow/main.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/match.d.ts +8 -0
- package/dist/src/flows/pinFlow/match.d.ts.map +1 -0
- package/dist/src/flows/pinFlow/pinFlowSlice.d.ts +60 -0
- package/dist/src/flows/pinFlow/pinFlowSlice.d.ts.map +1 -0
- package/dist/src/flows/strategy/api.d.ts +40 -0
- package/dist/src/flows/strategy/api.d.ts.map +1 -0
- package/dist/src/flows/strategy/hooks/useStrategyState.d.ts +3 -0
- package/dist/src/flows/strategy/hooks/useStrategyState.d.ts.map +1 -0
- package/dist/src/flows/strategy/index.d.ts +8 -0
- package/dist/src/flows/strategy/index.d.ts.map +1 -0
- package/dist/src/flows/strategy/main.d.ts +29 -0
- package/dist/src/flows/strategy/main.d.ts.map +1 -0
- package/dist/src/flows/strategy/match.d.ts +16 -0
- package/dist/src/flows/strategy/match.d.ts.map +1 -0
- package/dist/src/flows/strategy/mocks/index.d.ts +7 -0
- package/dist/src/flows/strategy/mocks/index.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategies/askMobileNumber.d.ts +25 -0
- package/dist/src/flows/strategy/strategies/askMobileNumber.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategies/askOperator.d.ts +14 -0
- package/dist/src/flows/strategy/strategies/askOperator.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategies/callRedirectApi.d.ts +28 -0
- package/dist/src/flows/strategy/strategies/callRedirectApi.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategies/detectOperatorByIp.d.ts +15 -0
- package/dist/src/flows/strategy/strategies/detectOperatorByIp.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategies/headerEnrichment.d.ts +52 -0
- package/dist/src/flows/strategy/strategies/headerEnrichment.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategies/injectHeaderEnrichmentScript.d.ts +11 -0
- package/dist/src/flows/strategy/strategies/injectHeaderEnrichmentScript.d.ts.map +1 -0
- package/dist/src/flows/strategy/strategySlice.d.ts +26 -0
- package/dist/src/flows/strategy/strategySlice.d.ts.map +1 -0
- package/dist/src/flows/ussdFlow/api.d.ts +4 -0
- package/dist/src/flows/ussdFlow/api.d.ts.map +1 -0
- package/dist/src/flows/ussdFlow/hooks/useUssdFlowState.d.ts +3 -0
- package/dist/src/flows/ussdFlow/hooks/useUssdFlowState.d.ts.map +1 -0
- package/dist/src/flows/ussdFlow/index.d.ts +5 -0
- package/dist/src/flows/ussdFlow/index.d.ts.map +1 -0
- package/dist/src/flows/ussdFlow/main.d.ts +10 -0
- package/dist/src/flows/ussdFlow/main.d.ts.map +1 -0
- package/dist/src/flows/ussdFlow/match.d.ts +7 -0
- package/dist/src/flows/ussdFlow/match.d.ts.map +1 -0
- package/dist/src/flows/ussdFlow/ussdFlowSlice.d.ts +38 -0
- package/dist/src/flows/ussdFlow/ussdFlowSlice.d.ts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/ips/tryGetIPRangeName.d.ts +3 -0
- package/dist/src/ips/tryGetIPRangeName.d.ts.map +1 -0
- package/dist/src/pacman/index.d.ts +7 -0
- package/dist/src/pacman/index.d.ts.map +1 -0
- package/dist/src/pacman/queryString.d.ts +4 -0
- package/dist/src/pacman/queryString.d.ts.map +1 -0
- package/dist/src/sharedApi/checkSubscription.d.ts +13 -0
- package/dist/src/sharedApi/checkSubscription.d.ts.map +1 -0
- package/dist/src/sharedApi/checkSubscriptionByRockmanIdOnly.d.ts +7 -0
- package/dist/src/sharedApi/checkSubscriptionByRockmanIdOnly.d.ts.map +1 -0
- package/dist/src/sharedApi/unblockUser.d.ts +13 -0
- package/dist/src/sharedApi/unblockUser.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/Click2smsTypes.d.ts +79 -0
- package/dist/src/sharedFlowTypes/Click2smsTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/CreditCardTypes.d.ts +74 -0
- package/dist/src/sharedFlowTypes/CreditCardTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/MoRedirTypes.d.ts +29 -0
- package/dist/src/sharedFlowTypes/MoRedirTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/MoTypes.d.ts +45 -0
- package/dist/src/sharedFlowTypes/MoTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/OneClickTypes.d.ts +78 -0
- package/dist/src/sharedFlowTypes/OneClickTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/PinTypes.d.ts +135 -0
- package/dist/src/sharedFlowTypes/PinTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/StrategyTypes.d.ts +285 -0
- package/dist/src/sharedFlowTypes/StrategyTypes.d.ts.map +1 -0
- package/dist/src/sharedFlowTypes/UssdTypes.d.ts +32 -0
- package/dist/src/sharedFlowTypes/UssdTypes.d.ts.map +1 -0
- package/dist/src/utilities/addEmpelloToken.d.ts +5 -0
- package/dist/src/utilities/addEmpelloToken.d.ts.map +1 -0
- package/dist/src/utilities/addUrlParamAndReload.d.ts +4 -0
- package/dist/src/utilities/addUrlParamAndReload.d.ts.map +1 -0
- package/dist/src/utilities/bupperizeCountry.d.ts +3 -0
- package/dist/src/utilities/bupperizeCountry.d.ts.map +1 -0
- package/dist/src/utilities/checkSubscriptionHander.d.ts +10 -0
- package/dist/src/utilities/checkSubscriptionHander.d.ts.map +1 -0
- package/dist/src/utilities/cleanSearchParams.d.ts +2 -0
- package/dist/src/utilities/cleanSearchParams.d.ts.map +1 -0
- package/dist/src/utilities/countryToPhoneCode.d.ts +2 -0
- package/dist/src/utilities/countryToPhoneCode.d.ts.map +1 -0
- package/dist/src/utilities/formatNumberToE164.d.ts +9 -0
- package/dist/src/utilities/formatNumberToE164.d.ts.map +1 -0
- package/dist/src/utilities/getConfig.d.ts +4 -0
- package/dist/src/utilities/getConfig.d.ts.map +1 -0
- package/dist/src/utilities/handleSubmitNumber.d.ts +24 -0
- package/dist/src/utilities/handleSubmitNumber.d.ts.map +1 -0
- package/dist/src/utilities/handleWaterfallRedirect.d.ts +2 -0
- package/dist/src/utilities/handleWaterfallRedirect.d.ts.map +1 -0
- package/dist/src/utilities/hasNumber.d.ts +2 -0
- package/dist/src/utilities/hasNumber.d.ts.map +1 -0
- package/dist/src/utilities/helpers.d.ts +6 -0
- package/dist/src/utilities/helpers.d.ts.map +1 -0
- package/dist/src/utilities/initTpay.d.ts +2 -0
- package/dist/src/utilities/initTpay.d.ts.map +1 -0
- package/dist/src/utilities/isCookieExists.d.ts +2 -0
- package/dist/src/utilities/isCookieExists.d.ts.map +1 -0
- package/dist/src/utilities/loadScriptInnerHtml.d.ts +3 -0
- package/dist/src/utilities/loadScriptInnerHtml.d.ts.map +1 -0
- package/dist/src/utilities/loadScriptSrc.d.ts +20 -0
- package/dist/src/utilities/loadScriptSrc.d.ts.map +1 -0
- package/dist/src/utilities/normaliseErrorCode.d.ts +8 -0
- package/dist/src/utilities/normaliseErrorCode.d.ts.map +1 -0
- package/dist/src/utilities/normalizePhoneNumber.d.ts +12 -0
- package/dist/src/utilities/normalizePhoneNumber.d.ts.map +1 -0
- package/dist/src/utilities/replaceUrlParam.d.ts +2 -0
- package/dist/src/utilities/replaceUrlParam.d.ts.map +1 -0
- package/dist/src/utilities/searchToObject.d.ts +3 -0
- package/dist/src/utilities/searchToObject.d.ts.map +1 -0
- package/dist/src/utilities/storeMsisdn.d.ts +4 -0
- package/dist/src/utilities/storeMsisdn.d.ts.map +1 -0
- package/dist/src/utilities/tracker.d.ts +2 -0
- package/dist/src/utilities/tracker.d.ts.map +1 -0
- package/dist/src/utilities/unblockUser.d.ts +7 -0
- package/dist/src/utilities/unblockUser.d.ts.map +1 -0
- package/dist/src/utilities/updateUrlWithParams.d.ts +2 -0
- package/dist/src/utilities/updateUrlWithParams.d.ts.map +1 -0
- package/dist/src/utilities/verifyAntifraudOnClick2Sms.d.ts +6 -0
- package/dist/src/utilities/verifyAntifraudOnClick2Sms.d.ts.map +1 -0
- package/dist/storeMsisdn-ChiBh8mI.js +58 -0
- package/dist/storeMsisdn-ChiBh8mI.js.map +1 -0
- package/dist/strategy.js +49 -1
- package/dist/strategy.js.map +1 -1
- package/dist/strategySlice-DEsw1xc-.js +1159 -0
- package/dist/strategySlice-DEsw1xc-.js.map +1 -0
- package/dist/tracker-B_zsMRN2.js +79 -0
- package/dist/tracker-B_zsMRN2.js.map +1 -0
- package/dist/tracker.js +4 -1
- package/dist/tracker.js.map +1 -1
- package/dist/types/{StrategyTypes-BlqY9peI.d.ts → StrategyTypes-LKeXDiPK.d.ts} +78 -2
- package/dist/types/click2smsFlow.d.ts +2 -2
- package/dist/types/oneClickFlow.d.ts +10 -2
- package/dist/types/searchToObject.d.ts +2 -2
- package/dist/types/strategy.d.ts +3 -3
- package/dist/unblockUser.js +107 -1
- package/dist/unblockUser.js.map +1 -1
- package/dist/updateUrlWithParams-ZaZt1BCf.js +15 -0
- package/dist/updateUrlWithParams-ZaZt1BCf.js.map +1 -0
- package/dist/ussdFlow.js +261 -1
- package/dist/ussdFlow.js.map +1 -1
- package/dist/verifyAntifraudOnClick2Sms.js +50 -1
- package/dist/verifyAntifraudOnClick2Sms.js.map +1 -1
- package/package.json +1 -1
- package/dist/RemoteDataState-lcf8PfJd.js +0 -2
- package/dist/RemoteDataState-lcf8PfJd.js.map +0 -1
- package/dist/api-geirVksI.js +0 -2
- package/dist/api-geirVksI.js.map +0 -1
- package/dist/cleanSearchParams-Dl7ZDlew.js +0 -2
- package/dist/cleanSearchParams-Dl7ZDlew.js.map +0 -1
- package/dist/formatNumberToE164-DaAFvpKD.js +0 -2
- package/dist/formatNumberToE164-DaAFvpKD.js.map +0 -1
- package/dist/handleWaterfallRedirect-DztqrthA.js +0 -2
- package/dist/handleWaterfallRedirect-DztqrthA.js.map +0 -1
- package/dist/helpers-CBmogWIZ.js +0 -2
- package/dist/helpers-CBmogWIZ.js.map +0 -1
- package/dist/loadScriptInnerHtml-B6v2-IGn.js +0 -2
- package/dist/loadScriptInnerHtml-B6v2-IGn.js.map +0 -1
- package/dist/main-CDmeQMF-.js +0 -2
- package/dist/main-CDmeQMF-.js.map +0 -1
- package/dist/normaliseErrorCode-CVpyJZ6_.js +0 -2
- package/dist/normaliseErrorCode-CVpyJZ6_.js.map +0 -1
- package/dist/storeMsisdn-Cjq8_qYH.js +0 -2
- package/dist/storeMsisdn-Cjq8_qYH.js.map +0 -1
- package/dist/strategySlice-BMNt18ck.js +0 -2
- package/dist/strategySlice-BMNt18ck.js.map +0 -1
- package/dist/tracker-DaaILhEr.js +0 -2
- package/dist/tracker-DaaILhEr.js.map +0 -1
- package/dist/types/OneClickTypes-BNg9Ru0u.d.ts +0 -71
- package/dist/updateUrlWithParams-C6-BX4TY.js +0 -2
- package/dist/updateUrlWithParams-C6-BX4TY.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Click2smsTypes.d.ts","sourceRoot":"","sources":["../../../src/sharedFlowTypes/Click2smsTypes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AAEvD,oBAAY,0BAA0B,GAAG,iBAAiB,GAAG;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;CACjE;AACD,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,yBAAyB,CAAC;CACzC;AACD,oBAAY,yBAAyB,GAAG,gBAAgB,CAAC;AAEzD,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,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f,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEN,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,wBAAwB,GAChC;IACE,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
export interface IUserDetails {
|
|
3
|
+
first_name: string;
|
|
4
|
+
last_name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
password?: string;
|
|
7
|
+
address: string;
|
|
8
|
+
postcode: string;
|
|
9
|
+
city: string;
|
|
10
|
+
country_code: string;
|
|
11
|
+
cc_number: string;
|
|
12
|
+
cc_holder: string;
|
|
13
|
+
cc_exp_month: string;
|
|
14
|
+
cc_exp_year: string;
|
|
15
|
+
cvv: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IUserDetailsEcardon {
|
|
18
|
+
email: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
name: string | null;
|
|
21
|
+
first_name: string | null;
|
|
22
|
+
last_name: string | null;
|
|
23
|
+
address: string | null;
|
|
24
|
+
postcode: string | null;
|
|
25
|
+
city: string | null;
|
|
26
|
+
country_code: string | null;
|
|
27
|
+
}
|
|
28
|
+
export declare type IEmailPasswordSubmissionResult = {
|
|
29
|
+
success: true;
|
|
30
|
+
rockman_id: string;
|
|
31
|
+
redirect_url: string;
|
|
32
|
+
} | {
|
|
33
|
+
success: false;
|
|
34
|
+
rockman_id: string;
|
|
35
|
+
message: string;
|
|
36
|
+
};
|
|
37
|
+
export declare type USERDETAILSEntryState = {
|
|
38
|
+
type: 'USER_DETAILS_ENTRY';
|
|
39
|
+
result: RDS.RemoteDataState<SubmitUserDetailsFailure, SubmitUserDetailsSuccess>;
|
|
40
|
+
};
|
|
41
|
+
export declare type CreditCardFlowCurrentState = USERDETAILSEntryState;
|
|
42
|
+
export interface CreditCardFlowState {
|
|
43
|
+
currentState: CreditCardFlowCurrentState;
|
|
44
|
+
}
|
|
45
|
+
export declare type SubmitUserDetailsErrorTypes = 'AlreadySubscribed' | 'UnknownError' | 'InvalidUserDetails' | 'UnexpectedState';
|
|
46
|
+
export declare type SubmitUserDetailsFailure = {
|
|
47
|
+
errorType: SubmitUserDetailsErrorTypes;
|
|
48
|
+
error?: any;
|
|
49
|
+
productUrl?: string;
|
|
50
|
+
errorId?: string;
|
|
51
|
+
};
|
|
52
|
+
export declare type SubmitUserDetailsSuccess = {
|
|
53
|
+
gateway_url: string;
|
|
54
|
+
method: string;
|
|
55
|
+
html?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare type IUserDetailsSubmissionResult = {
|
|
58
|
+
success: true;
|
|
59
|
+
state?: string;
|
|
60
|
+
gateway_url?: string;
|
|
61
|
+
redirect_url?: string;
|
|
62
|
+
html?: string;
|
|
63
|
+
method?: string;
|
|
64
|
+
} | {
|
|
65
|
+
success: false;
|
|
66
|
+
message: string;
|
|
67
|
+
rockman_id: string;
|
|
68
|
+
errors?: {
|
|
69
|
+
[key: string]: string[];
|
|
70
|
+
};
|
|
71
|
+
errorId?: string;
|
|
72
|
+
};
|
|
73
|
+
export declare type IMockCreditCardFlowStates = 'user-details-entry-success-state' | 'user-details-entry-failure-state';
|
|
74
|
+
//# sourceMappingURL=CreditCardTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditCardTyp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ry';
|
|
4
|
+
result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
|
|
5
|
+
}
|
|
6
|
+
export declare type MoRedirFlowCurrentState = MSISDNEntryState;
|
|
7
|
+
export interface MoRedirFlowState {
|
|
8
|
+
currentState: MoRedirFlowCurrentState;
|
|
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 = {
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
export declare type IMSISDNSubmissionResult = {
|
|
20
|
+
success: true;
|
|
21
|
+
rockman_id: string;
|
|
22
|
+
redirect_url: string;
|
|
23
|
+
} | {
|
|
24
|
+
success: false;
|
|
25
|
+
rockman_id: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type IMockMoRedirFlowStates = 'msisdn-entry-success-state' | 'msisdn-entry-failure-state';
|
|
29
|
+
//# sourceMappingURL=MoRedirTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoRedirTypes.d.ts","sourceRoot":"","sources":["../../../src/sharedFlowTypes/MoRedirTypes.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;AACD,oBAAY,uBAAuB,GAAG,gBAAgB,CAAC;AAEvD,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,uBAAuB,CAAC;CACvC;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;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,oBAAY,uBAAuB,GAC/B;IACE,OAAO,EAAE,IAAI,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,GACD;IACE,OAAO,EAAE,KAAK,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,oBAAY,sBAAsB,GAAG,4BAA4B,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
import { ErrorType } from '../utilities/normaliseErrorCode';
|
|
3
|
+
export interface MSISDNEntryState {
|
|
4
|
+
type: 'MSISDNEntry';
|
|
5
|
+
result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
|
|
6
|
+
}
|
|
7
|
+
export declare type MoFlowCurrentState = MSISDNEntryState;
|
|
8
|
+
export interface MoFlowState {
|
|
9
|
+
currentState: MoFlowCurrentState;
|
|
10
|
+
}
|
|
11
|
+
export declare type MSISDNEntryErrorTypes = ErrorType;
|
|
12
|
+
export declare type MSISDNEntryFailure = {
|
|
13
|
+
errorType: MSISDNEntryErrorTypes;
|
|
14
|
+
error?: any;
|
|
15
|
+
productUrl?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare type MSISDNEntrySuccess = IKeywordShortcode;
|
|
18
|
+
export declare type IKeywordShortcode = {
|
|
19
|
+
keyword: string;
|
|
20
|
+
shortcode: string;
|
|
21
|
+
};
|
|
22
|
+
export declare type IMSISDNSubmissionResult = {
|
|
23
|
+
success: true;
|
|
24
|
+
rockman_id: string;
|
|
25
|
+
keyword: string;
|
|
26
|
+
shortcode: string;
|
|
27
|
+
displayKeyword: string;
|
|
28
|
+
} | {
|
|
29
|
+
success: false;
|
|
30
|
+
rockman_id: string;
|
|
31
|
+
message: string;
|
|
32
|
+
error_code: string;
|
|
33
|
+
product_url?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare type IMockMoFlowStates = 'msisdn-entry-success-state' | 'msisdn-entry-failure-state';
|
|
36
|
+
export declare type IGoogleReCaptcha = {
|
|
37
|
+
site_key: string;
|
|
38
|
+
secret_key: string;
|
|
39
|
+
domains: string;
|
|
40
|
+
success: true;
|
|
41
|
+
} | {
|
|
42
|
+
message: string;
|
|
43
|
+
success: false;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=MoTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoTypes.d.ts","sourceRoot":"","sources":["../../../src/sharedFlowTypes/MoTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;CACrE;AAED,oBAAY,kBAAkB,GAAG,gBAAgB,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,kBAAkB,CAAC;CAClC;AACD,oBAAY,qBAAqB,GAAG,SAAS,CAAC;AAE9C,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;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB,GACD;IACE,OAAO,EAAE,KAAK,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEN,oBAAY,iBAAiB,GAAG,4BAA4B,GAAG,4BAA4B,CAAC;AAE5F,oBAAY,gBAAgB,GACxB;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;CACf,GACD;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;CAChB,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IHash } from '../common-types/IHash';
|
|
2
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
3
|
+
import { IConfig } from './StrategyTypes';
|
|
4
|
+
export interface GETREDIRECTUrlState {
|
|
5
|
+
type: 'GET_REDIRECT_URL';
|
|
6
|
+
result: RDS.RemoteDataState<IGETREDIRECTURLFailure, IGETREDIRECTURLSuccess>;
|
|
7
|
+
}
|
|
8
|
+
export interface AJAXSUBSCRIBEState {
|
|
9
|
+
type: 'SUBCRIBE_AJAX';
|
|
10
|
+
result: RDS.RemoteDataState<SubscribeFailure, SubscribeSuccess>;
|
|
11
|
+
}
|
|
12
|
+
export declare type OneClickFlowCurrentState = GETREDIRECTUrlState | AJAXSUBSCRIBEState;
|
|
13
|
+
export interface OneClickFlowState {
|
|
14
|
+
currentState: OneClickFlowCurrentState;
|
|
15
|
+
}
|
|
16
|
+
export declare type IGETREDIRECTURLFailure = {
|
|
17
|
+
errorType?: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
error?: any;
|
|
20
|
+
};
|
|
21
|
+
export declare type IGETREDIRECTURLSuccess = {
|
|
22
|
+
redirectUrl: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type SubscribeUserErrorTypes = 'SubscriptionError' | 'UnknownError' | 'AlreadySubscribed' | 'UnexpectedState';
|
|
25
|
+
export declare type SubscribeSuccess = {
|
|
26
|
+
productUrl: string;
|
|
27
|
+
};
|
|
28
|
+
export declare type SubscribeFailure = {
|
|
29
|
+
errorType: SubscribeUserErrorTypes;
|
|
30
|
+
error?: any;
|
|
31
|
+
productUrl?: string;
|
|
32
|
+
message?: string;
|
|
33
|
+
};
|
|
34
|
+
export interface ILinkExtraParams {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
}
|
|
37
|
+
export declare type IIDentifyUserResult = {
|
|
38
|
+
success: true;
|
|
39
|
+
rockman_id: string;
|
|
40
|
+
subscription_url?: string;
|
|
41
|
+
redirect_url?: string;
|
|
42
|
+
} | {
|
|
43
|
+
success: false;
|
|
44
|
+
rockman_id: string;
|
|
45
|
+
message: string;
|
|
46
|
+
};
|
|
47
|
+
export declare type IHEResult = {
|
|
48
|
+
success: true;
|
|
49
|
+
rockman_id: string;
|
|
50
|
+
redirectUrlWithReplacedUniqid?: string;
|
|
51
|
+
source: string;
|
|
52
|
+
oldUniqid: string;
|
|
53
|
+
newUniqid: string;
|
|
54
|
+
} | {
|
|
55
|
+
success: false;
|
|
56
|
+
rockman_id: string;
|
|
57
|
+
message: string;
|
|
58
|
+
};
|
|
59
|
+
export declare type ISubscribeResult = {
|
|
60
|
+
success: true;
|
|
61
|
+
rockman_id: string;
|
|
62
|
+
product_url: string;
|
|
63
|
+
redirect_url?: string;
|
|
64
|
+
} | {
|
|
65
|
+
success: false;
|
|
66
|
+
rockman_id: string;
|
|
67
|
+
message: string;
|
|
68
|
+
product_url?: string;
|
|
69
|
+
};
|
|
70
|
+
export declare type IMockOneClickFlowStates = 'redirect-url-success-state' | 'subscribe-ajax-state';
|
|
71
|
+
export interface ISubscribeParams {
|
|
72
|
+
url: string;
|
|
73
|
+
config?: IConfig;
|
|
74
|
+
msisdn?: string;
|
|
75
|
+
operator?: string;
|
|
76
|
+
extraParams?: IHash;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=OneClickTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OneClickTypes.d.ts","sourceRoot":"","sources":["../../../src/sharedFlowTypes/OneClickTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAC;CAC7E;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;CACjE;AAED,oBAAY,wBAAwB,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAEhF,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,wBAAwB,CAAC;CACxC;AACD,oBAAY,sBAAsB,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AACF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,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AU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEN,oBAAY,uBAAuB,GAAG,4BAA4B,GAAG,sBAAsB,CAAC;AAC5F,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
import { ErrorType } from '../utilities/normaliseErrorCode';
|
|
3
|
+
export interface ExtraData {
|
|
4
|
+
actualPIN: string | null;
|
|
5
|
+
msisdn: string;
|
|
6
|
+
operator: string;
|
|
7
|
+
pinMaxLength: number | null;
|
|
8
|
+
userType?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface MSISDNEntryState {
|
|
11
|
+
type: 'MSISDNEntry';
|
|
12
|
+
result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
|
|
13
|
+
data?: ExtraData;
|
|
14
|
+
}
|
|
15
|
+
export interface PINEntryState {
|
|
16
|
+
type: 'PINEntry';
|
|
17
|
+
result: RDS.RemoteDataState<PINEntryFailure, PINEntrySuccess>;
|
|
18
|
+
data?: ExtraData;
|
|
19
|
+
}
|
|
20
|
+
export declare type PinFlowCurrentState = MSISDNEntryState | PINEntryState;
|
|
21
|
+
export interface PinFlowState {
|
|
22
|
+
currentState: PinFlowCurrentState;
|
|
23
|
+
}
|
|
24
|
+
export declare type MSISDNEntryErrorTypes = ErrorType;
|
|
25
|
+
export declare type MSISDNEntryFailure = {
|
|
26
|
+
errorType: MSISDNEntryErrorTypes;
|
|
27
|
+
message?: string;
|
|
28
|
+
error?: any;
|
|
29
|
+
productUrl?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare type MSISDNEntrySuccess = Record<string, unknown>;
|
|
32
|
+
export declare type PINEntryFailure = {
|
|
33
|
+
errorType: PINEntryErrorTypes;
|
|
34
|
+
message?: string;
|
|
35
|
+
error?: Error;
|
|
36
|
+
productUrl?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare type PINEntrySuccess = {
|
|
39
|
+
finalUrl: string;
|
|
40
|
+
msisdn?: string;
|
|
41
|
+
isAlreadySubscribed?: boolean;
|
|
42
|
+
};
|
|
43
|
+
export declare type PINEntryErrorTypes = 'UnknownError' | 'TooEarly' | 'InvalidPIN' | 'UnexpectedState' | 'SessionBlocked' | 'AlreadySubscribed' | 'ExpiredPIN' | 'InsufficientBalance' | 'DuplicatedRequest';
|
|
44
|
+
export declare type IMsisdnSumbitNextData = {
|
|
45
|
+
actualPIN: string;
|
|
46
|
+
msisdn: string;
|
|
47
|
+
pinMaxLength?: number | null;
|
|
48
|
+
operator?: string;
|
|
49
|
+
};
|
|
50
|
+
export declare type IMsisnSubmitActionPayload = {
|
|
51
|
+
type: 'MSISDNEntry';
|
|
52
|
+
result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
|
|
53
|
+
data: IMsisdnSumbitNextData;
|
|
54
|
+
};
|
|
55
|
+
export declare type IMsisdnSubmitErrorPayload = {
|
|
56
|
+
type: 'MSISDNEntry';
|
|
57
|
+
result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
|
|
58
|
+
};
|
|
59
|
+
export declare type IPinSubmitPayload = {
|
|
60
|
+
type: 'PINEntry';
|
|
61
|
+
result: RDS.RemoteDataState<PINEntryFailure, PINEntrySuccess>;
|
|
62
|
+
actualPIN?: string;
|
|
63
|
+
};
|
|
64
|
+
export declare type IPinErrorPayload = {
|
|
65
|
+
type: 'PINEntry';
|
|
66
|
+
result: RDS.RemoteDataState<PINEntryFailure, PINEntrySuccess>;
|
|
67
|
+
};
|
|
68
|
+
export declare type IBackToStartPayload = {
|
|
69
|
+
type: 'MSISDNEntry';
|
|
70
|
+
result: RDS.RemoteDataState<MSISDNEntryFailure, MSISDNEntrySuccess>;
|
|
71
|
+
};
|
|
72
|
+
export declare type IConfig = {
|
|
73
|
+
offer?: string;
|
|
74
|
+
slug?: string;
|
|
75
|
+
country?: string;
|
|
76
|
+
host?: string;
|
|
77
|
+
device?: 'smart' | 'feature';
|
|
78
|
+
automaticallySubmitAllOperators?: boolean;
|
|
79
|
+
operators?: string[];
|
|
80
|
+
};
|
|
81
|
+
export declare type IMSISDNSubmissionResult = {
|
|
82
|
+
success: true;
|
|
83
|
+
rockman_id: string;
|
|
84
|
+
pin: string;
|
|
85
|
+
product_url?: string;
|
|
86
|
+
operator: string;
|
|
87
|
+
redirect_to_url?: string;
|
|
88
|
+
javascript?: string;
|
|
89
|
+
userType?: string;
|
|
90
|
+
isContentBlocked?: boolean;
|
|
91
|
+
} | {
|
|
92
|
+
success: false;
|
|
93
|
+
rockman_id: string;
|
|
94
|
+
message: string;
|
|
95
|
+
product_url?: string;
|
|
96
|
+
isContentBlocked?: boolean;
|
|
97
|
+
error_code: string;
|
|
98
|
+
};
|
|
99
|
+
export declare type IPINSubmissionResult = {
|
|
100
|
+
success: true;
|
|
101
|
+
rockman_id: string;
|
|
102
|
+
product_url?: string;
|
|
103
|
+
async?: boolean;
|
|
104
|
+
message?: string;
|
|
105
|
+
} | {
|
|
106
|
+
success: false;
|
|
107
|
+
rockman_id: string;
|
|
108
|
+
message: string;
|
|
109
|
+
};
|
|
110
|
+
export interface IHash {
|
|
111
|
+
[key: string]: string;
|
|
112
|
+
}
|
|
113
|
+
export declare type SingleMSISDNSubmissionResult = {
|
|
114
|
+
type: 'SingleMSISDNSubmissionResult';
|
|
115
|
+
operator: string;
|
|
116
|
+
pin?: string;
|
|
117
|
+
uniqidResult?: string;
|
|
118
|
+
redirectUrl?: string;
|
|
119
|
+
userType?: string;
|
|
120
|
+
};
|
|
121
|
+
export declare type MultiOperatorMSISDNSubmissionResult = {
|
|
122
|
+
type: 'MultiOperatorMSISDNSubmissionResult';
|
|
123
|
+
};
|
|
124
|
+
export declare type IMcpShieldResult = {
|
|
125
|
+
success: true;
|
|
126
|
+
rockman_id: string;
|
|
127
|
+
source: string;
|
|
128
|
+
uniqid: string;
|
|
129
|
+
} | {
|
|
130
|
+
success: false;
|
|
131
|
+
rockman_id: string;
|
|
132
|
+
message: string;
|
|
133
|
+
};
|
|
134
|
+
export declare type IMockPinFlowStates = 'msisdn-state' | 'pin-state' | 'completed-state' | 'msisdn-failure-state';
|
|
135
|
+
//# sourceMappingURL=PinTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinTypes.d.ts","sourceRoot":"","sources":["../../../src/sharedFlowTypes/PinTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAa5D,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IACpE,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,oBAAY,mBAAmB,GAAG,gBAAgB,GAAG,aAAa,CAAC;AAQnE,MAAM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
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import * as RDS from '../common-types/RemoteDataState';
|
|
2
|
+
import { IStrategyNames } from '../common-types/Strategy';
|
|
3
|
+
import { Click2smsFlowState } from './Click2smsTypes';
|
|
4
|
+
import { CreditCardFlowState } from './CreditCardTypes';
|
|
5
|
+
import { MoRedirFlowState } from './MoRedirTypes';
|
|
6
|
+
import { MoFlowState } from './MoTypes';
|
|
7
|
+
import { OneClickFlowState } from './OneClickTypes';
|
|
8
|
+
import { PinFlowState } from './PinTypes';
|
|
9
|
+
import { UssdFlowState } from './UssdTypes';
|
|
10
|
+
export declare type IIdentifyResult = {
|
|
11
|
+
operator: string;
|
|
12
|
+
flow?: string;
|
|
13
|
+
success: boolean;
|
|
14
|
+
rockman_id?: string;
|
|
15
|
+
message?: string;
|
|
16
|
+
};
|
|
17
|
+
export interface HEResult {
|
|
18
|
+
msisdn: string;
|
|
19
|
+
operator: string;
|
|
20
|
+
subscription_url?: string;
|
|
21
|
+
redirect_url?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare type ConfigDetails = {
|
|
24
|
+
host: string;
|
|
25
|
+
slug: string;
|
|
26
|
+
country: string;
|
|
27
|
+
device?: 'smart' | 'feature';
|
|
28
|
+
queryString?: Array<[string, string]>;
|
|
29
|
+
automaticallySubmitAllOperators?: boolean;
|
|
30
|
+
operators?: string[];
|
|
31
|
+
service: string;
|
|
32
|
+
offer?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare type IConfig = {
|
|
35
|
+
offer?: string;
|
|
36
|
+
slug?: string;
|
|
37
|
+
country?: string;
|
|
38
|
+
host?: string;
|
|
39
|
+
device?: 'smart' | 'feature';
|
|
40
|
+
automaticallySubmitAllOperators?: boolean;
|
|
41
|
+
operators?: string[];
|
|
42
|
+
service?: string;
|
|
43
|
+
serviceId?: string;
|
|
44
|
+
queryString?: any;
|
|
45
|
+
apiAction?: any;
|
|
46
|
+
};
|
|
47
|
+
export declare type ISupportedFlows = 'pin' | 'mo' | 'oneClick' | 'click2sms' | 'moRedir' | 'ussd' | 'creditCard';
|
|
48
|
+
export declare type IFlow = {
|
|
49
|
+
flow: ISupportedFlows;
|
|
50
|
+
flowOnWifi?: ISupportedFlows;
|
|
51
|
+
operator?: string;
|
|
52
|
+
flowConfig: ConfigDetails;
|
|
53
|
+
default?: IFlow;
|
|
54
|
+
rockman_id?: string;
|
|
55
|
+
};
|
|
56
|
+
export declare type StrategyConfig = {
|
|
57
|
+
operators: {
|
|
58
|
+
[key: string]: IFlow;
|
|
59
|
+
};
|
|
60
|
+
default: IFlow;
|
|
61
|
+
isUseMsisdnPrefix?: boolean;
|
|
62
|
+
};
|
|
63
|
+
export declare type IStrategy = {
|
|
64
|
+
strategy: IStrategyNames;
|
|
65
|
+
country: string;
|
|
66
|
+
strategyConfigs: StrategyConfig;
|
|
67
|
+
};
|
|
68
|
+
export interface IHash {
|
|
69
|
+
[key: string]: string;
|
|
70
|
+
}
|
|
71
|
+
export declare type IDENTIFYMSISDNEntryErrorTypes = 'AlreadySubscribed' | 'UnknownError' | 'InvalidMSISDN';
|
|
72
|
+
export declare type IDENTIFYMSISDNEntryFailure = {
|
|
73
|
+
errorType: IDENTIFYMSISDNEntryErrorTypes;
|
|
74
|
+
error: unknown;
|
|
75
|
+
};
|
|
76
|
+
export declare type IdentifyFlowOptionsResult = {
|
|
77
|
+
config: IConfig;
|
|
78
|
+
nextAction?: unknown;
|
|
79
|
+
msisdn?: string;
|
|
80
|
+
operator?: string;
|
|
81
|
+
subscription_url?: string;
|
|
82
|
+
redirect_url?: string;
|
|
83
|
+
rockman_id?: string;
|
|
84
|
+
isHeaderEnrichmentSuccess?: boolean;
|
|
85
|
+
autoRedirect?: boolean;
|
|
86
|
+
isUseMsisdnPrefix?: boolean;
|
|
87
|
+
};
|
|
88
|
+
export declare type IDENTIFYMSISDNEntrySuccess = {};
|
|
89
|
+
export declare type OPERATORSelectFailure = {};
|
|
90
|
+
export declare type OPERATORSelectSuccess = IdentifyFlowOptionsResult;
|
|
91
|
+
export declare type IDETECTYOPERATOBYIPFailure = {};
|
|
92
|
+
export declare type IDETECTYOPERATOBYIPSuccess = IdentifyFlowOptionsResult;
|
|
93
|
+
export declare type IDENTIFY_OPERATOR_MSISDNEntrySuccess = IdentifyFlowOptionsResult;
|
|
94
|
+
export declare type IDENTIFY_FLOW_HESuccess = IdentifyFlowOptionsResult;
|
|
95
|
+
export declare type OPERATORSelectFlowIdentifyFailure = {};
|
|
96
|
+
export declare type OPERATORSelectFlowIdentifySuccess = {
|
|
97
|
+
operators: Array<string>;
|
|
98
|
+
msisdn?: string;
|
|
99
|
+
nextAction: 'selectOperator';
|
|
100
|
+
};
|
|
101
|
+
export declare type IDENTIFYFailure = {};
|
|
102
|
+
export declare type IDENTIFYSuccess = {};
|
|
103
|
+
export declare type IOperatorSelectFlowIdentifyPayload = {
|
|
104
|
+
type: 'IDENTIFY_FLOW_BY_OPERATOR_SELECT';
|
|
105
|
+
result: RDS.RemoteDataState<OPERATORSelectFlowIdentifyFailure, OPERATORSelectFlowIdentifySuccess>;
|
|
106
|
+
};
|
|
107
|
+
export declare type IDetectOperatorByIpPayload = {
|
|
108
|
+
type: 'DETECT_OPERATOR_BY_IP';
|
|
109
|
+
result: RDS.RemoteDataState<IDETECTYOPERATOBYIPFailure, IDETECTYOPERATOBYIPSuccess>;
|
|
110
|
+
};
|
|
111
|
+
export declare enum PossibleTypes {
|
|
112
|
+
IDENTIFY_STRATEGY = "IDENTIFY_STRATEGY",
|
|
113
|
+
IDENTIFY_FLOW_BY_MSISDN = "IDENTIFY_FLOW_BY_MSISDN",
|
|
114
|
+
IDENTIFY_FLOW_BY_OPERATOR_SELECT = "IDENTIFY_FLOW_BY_OPERATOR_SELECT",
|
|
115
|
+
PIN = "PIN",
|
|
116
|
+
MO = "MO",
|
|
117
|
+
MO_REDIR = "MO_REDIR",
|
|
118
|
+
ONE_CLICK = "ONE_CLICK",
|
|
119
|
+
CLICK2SMS = "CLICK2SMS",
|
|
120
|
+
USSD = "USSD",
|
|
121
|
+
TPAY_HE = "TPAY_HE",
|
|
122
|
+
CREDIT_CARD = "CREDIT_CARD"
|
|
123
|
+
}
|
|
124
|
+
export declare type IOperatorSelectPayload = {
|
|
125
|
+
type: PossibleTypes;
|
|
126
|
+
result: OPERATORSelectSuccess;
|
|
127
|
+
};
|
|
128
|
+
export declare type ISubmitMsisdnPayload = {
|
|
129
|
+
type: PossibleTypes;
|
|
130
|
+
result: IDENTIFY_OPERATOR_MSISDNEntrySuccess;
|
|
131
|
+
};
|
|
132
|
+
export declare type IIdentifyFlowByIpOperatorPayload = {
|
|
133
|
+
type: PossibleTypes;
|
|
134
|
+
result: IDENTIFY_OPERATOR_MSISDNEntrySuccess;
|
|
135
|
+
};
|
|
136
|
+
export declare type IIdentifyFlowByHePayload = {
|
|
137
|
+
type: PossibleTypes;
|
|
138
|
+
result: IDENTIFY_FLOW_HESuccess;
|
|
139
|
+
};
|
|
140
|
+
export declare type IIdentfyFlowByMsisdnNextAction = 'submitMSISDNAction' | 'loadOc2sms';
|
|
141
|
+
export declare type IIdentfyFlowByOperatorNextAction = 'submitMSISDNAction' | 'loadOc2sms';
|
|
142
|
+
export declare type IIdentfyFlowByIPOperatorNextAction = 'getRedirectUrlAction' | 'submitMSISDNAction';
|
|
143
|
+
export declare type IIdenyifyFlowByMsisdnSumbitNextData = {
|
|
144
|
+
nextAction: IIdentfyFlowByMsisdnNextAction;
|
|
145
|
+
msisdn?: string;
|
|
146
|
+
operator?: string;
|
|
147
|
+
};
|
|
148
|
+
export declare type IIdenyifyFlowByMsisdnPayload = {
|
|
149
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
150
|
+
result: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>;
|
|
151
|
+
data: IIdenyifyFlowByMsisdnSumbitNextData;
|
|
152
|
+
};
|
|
153
|
+
export declare type IIdenyifyStrategyPayload = {
|
|
154
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
155
|
+
result: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>;
|
|
156
|
+
data: IIdenyifyFlowByMsisdnSumbitNextData;
|
|
157
|
+
};
|
|
158
|
+
export declare type IStrategyCurrentState = {
|
|
159
|
+
type: 'IDENTIFY_STRATEGY';
|
|
160
|
+
result: RDS.RemoteDataState<IDENTIFYFailure, IDENTIFYSuccess>;
|
|
161
|
+
} | {
|
|
162
|
+
type: 'IDENTIFY_FLOW_BY_OPERATOR_SELECT';
|
|
163
|
+
result: OPERATORSelectFlowIdentifySuccess;
|
|
164
|
+
} | {
|
|
165
|
+
type: 'DETECT_OPERATOR_BY_IP';
|
|
166
|
+
result: RDS.RemoteDataState<IDETECTYOPERATOBYIPFailure, IDETECTYOPERATOBYIPSuccess>;
|
|
167
|
+
} | {
|
|
168
|
+
type: 'HE_IDENTIFY';
|
|
169
|
+
result: RDS.RemoteDataState<IDENTIFYFailure, IDENTIFYSuccess>;
|
|
170
|
+
} | {
|
|
171
|
+
type: 'OPERATOR_SELECT';
|
|
172
|
+
result: RDS.RemoteDataState<OPERATORSelectFailure, OPERATORSelectSuccess>;
|
|
173
|
+
config: IConfig;
|
|
174
|
+
} | {
|
|
175
|
+
type: 'IDENTIFY_FLOW_BY_MSISDN';
|
|
176
|
+
result: RDS.RemoteDataState<IDENTIFYMSISDNEntryFailure, IDENTIFYMSISDNEntrySuccess>;
|
|
177
|
+
nextData: IIdenyifyFlowByMsisdnSumbitNextData;
|
|
178
|
+
} | {
|
|
179
|
+
type: 'PIN';
|
|
180
|
+
result: IdentifyFlowOptionsResult;
|
|
181
|
+
} | {
|
|
182
|
+
type: 'MO';
|
|
183
|
+
result: IdentifyFlowOptionsResult;
|
|
184
|
+
} | {
|
|
185
|
+
type: 'USSD';
|
|
186
|
+
result: IdentifyFlowOptionsResult;
|
|
187
|
+
} | {
|
|
188
|
+
type: 'MO_REDIR';
|
|
189
|
+
result: IdentifyFlowOptionsResult;
|
|
190
|
+
} | {
|
|
191
|
+
type: 'ONE_CLICK';
|
|
192
|
+
result: IdentifyFlowOptionsResult;
|
|
193
|
+
} | {
|
|
194
|
+
type: 'CLICK2SMS';
|
|
195
|
+
result: IdentifyFlowOptionsResult;
|
|
196
|
+
} | {
|
|
197
|
+
type: 'TPAY_HE';
|
|
198
|
+
result: IdentifyFlowOptionsResult;
|
|
199
|
+
} | {
|
|
200
|
+
type: 'CREDIT_CARD';
|
|
201
|
+
result: IdentifyFlowOptionsResult;
|
|
202
|
+
};
|
|
203
|
+
export declare type IStrategyIDentifyUserResult = {
|
|
204
|
+
success: 'true';
|
|
205
|
+
rockman_id: string;
|
|
206
|
+
msisdn: string;
|
|
207
|
+
operator?: string;
|
|
208
|
+
subscription_url?: string;
|
|
209
|
+
redirect_url?: string;
|
|
210
|
+
'redirect-back'?: string;
|
|
211
|
+
'msisdn-alias'?: string;
|
|
212
|
+
} | {
|
|
213
|
+
success: 'false';
|
|
214
|
+
rockman_id: string;
|
|
215
|
+
message: string;
|
|
216
|
+
'redirect-back'?: string;
|
|
217
|
+
};
|
|
218
|
+
export declare type IMockFlows = 'pin' | 'mo' | 'oneclick' | 'click2sms' | 'moredir' | 'ussd' | 'tpay' | 'creditcard';
|
|
219
|
+
export interface IMockFlowParams<T> {
|
|
220
|
+
'mock-flow': IMockFlows;
|
|
221
|
+
'current-state': T;
|
|
222
|
+
'show-pin-entry': '1' | '0';
|
|
223
|
+
'show-thank-you': '1' | '0';
|
|
224
|
+
'show-chain-link': '1' | '0';
|
|
225
|
+
operator: string;
|
|
226
|
+
msisdn?: string;
|
|
227
|
+
'subscription-url'?: string;
|
|
228
|
+
show_custom_error?: string;
|
|
229
|
+
product_url?: string;
|
|
230
|
+
ui_show_default_flow?: '1' | '0';
|
|
231
|
+
ui_show_pin_entry?: '1' | '0';
|
|
232
|
+
ui_error_message?: string;
|
|
233
|
+
}
|
|
234
|
+
export interface IScriptHeaderEnrichmentSuccess extends CustomEvent {
|
|
235
|
+
detail: {
|
|
236
|
+
msisdn: string;
|
|
237
|
+
operator_code: string;
|
|
238
|
+
subscription_url: boolean;
|
|
239
|
+
encrypted_msisdn: boolean;
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
export interface IScriptHeaderEnrichmentFailure extends CustomEvent {
|
|
243
|
+
detail: {
|
|
244
|
+
encrypted_msisdn: boolean;
|
|
245
|
+
error_details: {
|
|
246
|
+
error: any;
|
|
247
|
+
stack: any;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
export interface ExtraStrategyData {
|
|
252
|
+
isHeaderEnrichmentSuccess?: boolean;
|
|
253
|
+
config?: ConfigDetails;
|
|
254
|
+
msisdn?: string;
|
|
255
|
+
rockman_id?: string;
|
|
256
|
+
operator?: string;
|
|
257
|
+
subscription_url?: string;
|
|
258
|
+
redirect_url?: string;
|
|
259
|
+
operators?: string[];
|
|
260
|
+
strategy?: string;
|
|
261
|
+
defaultConfig?: IFlow;
|
|
262
|
+
defaultFlowType?: ISupportedFlows;
|
|
263
|
+
skipRedirectCall?: boolean;
|
|
264
|
+
apn?: string;
|
|
265
|
+
}
|
|
266
|
+
export interface StrategyState {
|
|
267
|
+
currentState: StrategyCurrentState;
|
|
268
|
+
}
|
|
269
|
+
export interface StrategyCurrentState {
|
|
270
|
+
type: PossibleTypes;
|
|
271
|
+
result: RDS.RemoteDataState<any, any>;
|
|
272
|
+
data?: ExtraStrategyData;
|
|
273
|
+
}
|
|
274
|
+
export declare type IMockPinFlowStates = 'msisdn-state' | 'pin-state' | 'completed-state' | 'msisdn-failure-state';
|
|
275
|
+
export interface RootState {
|
|
276
|
+
strategy?: StrategyState;
|
|
277
|
+
pinFlow?: PinFlowState;
|
|
278
|
+
moFlow?: MoFlowState;
|
|
279
|
+
moRedirFlow?: MoRedirFlowState;
|
|
280
|
+
click2smsFlow?: Click2smsFlowState;
|
|
281
|
+
oneClickFlow?: OneClickFlowState;
|
|
282
|
+
ussdFlow?: UssdFlowState;
|
|
283
|
+
creditCardFlow?: CreditCardFlowState;
|
|
284
|
+
}
|
|
285
|
+
//# sourceMappingURL=StrategyTypes.d.ts.map
|