@tap-payments/auth-jsconnect 2.12.0-beta → 2.12.0-development
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/build/@types/app.d.ts +3 -1
- package/build/@types/app.js +1 -0
- package/build/@types/form.d.ts +4 -2
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/terminal.d.ts +104 -0
- package/build/@types/terminal.js +1 -0
- package/build/api/account.d.ts +2 -2
- package/build/api/account.js +7 -4
- package/build/api/auth.d.ts +18 -3
- package/build/api/auth.js +7 -3
- package/build/api/axios.d.ts +1 -1
- package/build/api/axios.js +9 -1
- package/build/api/entity.d.ts +3 -0
- package/build/api/headers.d.ts +6 -0
- package/build/api/headers.js +18 -0
- package/build/api/index.d.ts +15 -8
- package/build/api/index.js +5 -2
- package/build/api/lead.d.ts +3 -2
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +5 -2
- package/build/api/terminal.d.ts +25 -0
- package/build/api/terminal.js +55 -0
- package/build/app/rootReducer.d.ts +2 -0
- package/build/app/rootReducer.js +5 -1
- package/build/app/session.d.ts +17 -0
- package/build/app/session.js +28 -0
- package/build/app/settings.js +1 -1
- package/build/app/store.d.ts +4 -0
- package/build/assets/currencies/AEDSymbol.js +1 -1
- package/build/assets/currencies/SARSymbol.js +1 -1
- package/build/assets/locales/ar.json +51 -15
- package/build/assets/locales/en.json +56 -46
- package/build/components/DeviceCard/DeviceCard.d.ts +19 -0
- package/build/components/DeviceCard/DeviceCard.js +102 -0
- package/build/components/DeviceCard/index.d.ts +3 -0
- package/build/components/DeviceCard/index.js +2 -0
- package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
- package/build/components/OTPTimer/OTPTimer.js +4 -4
- package/build/components/Tooltip/Tooltip.js +1 -1
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.d.ts +7 -0
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.js +33 -0
- package/build/components/TruncatedTooltipText/index.d.ts +2 -0
- package/build/components/TruncatedTooltipText/index.js +2 -0
- package/build/constants/api.d.ts +1 -1
- package/build/constants/api.js +2 -2
- package/build/constants/app.d.ts +27 -3
- package/build/constants/app.js +350 -40
- package/build/constants/dummy.d.ts +2 -29
- package/build/constants/dummy.js +4 -4
- package/build/constants/flows.d.ts +27 -22
- package/build/constants/flows.js +27 -23
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/auth/authStore.d.ts +4 -0
- package/build/features/app/auth/authStore.js +168 -54
- package/build/features/app/bank/bankStore.d.ts +7 -0
- package/build/features/app/bank/bankStore.js +110 -20
- package/build/features/app/board/boardStore.d.ts +5 -0
- package/build/features/app/board/boardStore.js +94 -7
- package/build/features/app/brand/brandStore.d.ts +7 -0
- package/build/features/app/brand/brandStore.js +107 -19
- package/build/features/app/business/businessStore.d.ts +10 -0
- package/build/features/app/business/businessStore.js +130 -37
- package/build/features/app/connect/connectStore.d.ts +12 -5
- package/build/features/app/connect/connectStore.js +146 -31
- package/build/features/app/connectExpress/connectExpressStore.d.ts +10 -5
- package/build/features/app/connectExpress/connectExpressStore.js +159 -21
- package/build/features/app/entity/entityStore.d.ts +7 -0
- package/build/features/app/entity/entityStore.js +108 -18
- package/build/features/app/individual/individualStore.d.ts +9 -0
- package/build/features/app/individual/individualStore.js +126 -34
- package/build/features/app/kyc/kycStore.d.ts +5 -5
- package/build/features/app/kyc/kycStore.js +4 -1
- package/build/features/app/password/passwordStore.d.ts +9 -0
- package/build/features/app/password/passwordStore.js +130 -46
- package/build/features/app/signIn/signInStore.js +12 -16
- package/build/features/app/tax/taxStore.d.ts +7 -0
- package/build/features/app/tax/taxStore.js +104 -17
- package/build/features/app/terminal/terminalStore.d.ts +119 -0
- package/build/features/app/terminal/terminalStore.js +781 -0
- package/build/features/auth/Auth.js +3 -2
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +10 -7
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +6 -3
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +6 -4
- package/build/features/auth/screens/AuthenticationList/EntityList.js +11 -3
- package/build/features/auth/screens/OTPSessionExpired/OTPInput.d.ts +3 -0
- package/build/features/auth/screens/OTPSessionExpired/OTPInput.js +58 -0
- package/build/features/auth/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/auth/screens/OTPSessionExpired/OTPSessionExpired.js +85 -0
- package/build/features/auth/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/auth/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/auth/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/auth/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/bank/Bank.js +3 -2
- package/build/features/bank/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/bank/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/bank/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/bank/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/bank/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/bank/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/bank/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/bank/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/board/Board.js +5 -4
- package/build/features/board/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/board/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/board/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/board/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/board/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/board/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/board/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/board/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/brand/Brand.js +3 -2
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +2 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/brand/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/brand/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/brand/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/brand/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/brand/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/brand/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/brand/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/brand/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/business/Business.js +3 -2
- package/build/features/business/screens/BusinessType/BusinessType.js +15 -5
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
- package/build/features/business/screens/BusinessType/LicenseList.js +20 -12
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +2 -2
- package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
- package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
- package/build/features/business/screens/BusinessType/validation.js +31 -10
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +2 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/business/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/business/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/business/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/business/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/business/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/business/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/business/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/connect/Connect.js +3 -2
- package/build/features/connect/screens/OTPSessionExpired/OTPInput.d.ts +5 -0
- package/build/features/connect/screens/OTPSessionExpired/OTPInput.js +58 -0
- package/build/features/connect/screens/OTPSessionExpired/OTPSessionExpired.d.ts +3 -0
- package/build/features/connect/screens/OTPSessionExpired/OTPSessionExpired.js +86 -0
- package/build/features/connect/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/connect/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/connect/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/connect/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/connectExpress/ConnectExpress.js +3 -2
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +10 -10
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +6 -3
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +6 -4
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +11 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +27 -16
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
- package/build/features/connectExpress/screens/Mobile/Mobile.js +7 -6
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPInput.d.ts +3 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPInput.js +58 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/OTPSessionExpired.js +85 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/entity/Entity.js +3 -2
- package/build/features/entity/screens/EntityName/EntityName.js +16 -15
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +2 -2
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
- package/build/features/entity/screens/EntityName/validation.d.ts +50 -48
- package/build/features/entity/screens/EntityName/validation.js +100 -85
- package/build/features/entity/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/entity/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/entity/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/entity/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/entity/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/entity/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/entity/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +187 -0
- package/build/features/individual/Individual.js +3 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +2 -2
- package/build/features/individual/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/individual/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/individual/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/individual/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/individual/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/individual/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/individual/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/individual/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/password/Password.js +3 -2
- package/build/features/password/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/password/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/password/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/password/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/password/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/password/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/password/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/password/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/shared/Address/CountryList.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Button/Button.js +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
- package/build/features/shared/Button/FlowsButtons.js +2 -2
- package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.d.ts +3 -0
- package/build/features/shared/OTPVerifySecurityError/OTPVerifySecurityError.js +9 -0
- package/build/features/shared/OTPVerifySecurityError/index.d.ts +2 -0
- package/build/features/shared/OTPVerifySecurityError/index.js +2 -0
- package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
- package/build/features/shared/PushNotification/PushNotification.js +34 -0
- package/build/features/shared/PushNotification/index.d.ts +2 -0
- package/build/features/shared/PushNotification/index.js +2 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -5
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
- package/build/features/tax/Tax.js +3 -2
- package/build/features/tax/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/tax/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/tax/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/tax/screens/OTPSessionExpired/OTPSessionExpired.js +75 -0
- package/build/features/tax/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/tax/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/tax/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/tax/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/terminal/Terminal.d.ts +14 -0
- package/build/features/terminal/Terminal.js +96 -0
- package/build/features/terminal/index.d.ts +1 -0
- package/build/features/terminal/index.js +1 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +68 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +50 -0
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +55 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
- package/build/features/terminal/screens/Loading/Loading.js +10 -0
- package/build/features/terminal/screens/Loading/index.d.ts +2 -0
- package/build/features/terminal/screens/Loading/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +103 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPInput.d.ts +7 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPInput.js +51 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPSessionExpired.d.ts +5 -0
- package/build/features/terminal/screens/OTPSessionExpired/OTPSessionExpired.js +89 -0
- package/build/features/terminal/screens/OTPSessionExpired/index.d.ts +2 -0
- package/build/features/terminal/screens/OTPSessionExpired/index.js +2 -0
- package/build/features/terminal/screens/OTPSessionExpired/validation.d.ts +8 -0
- package/build/features/terminal/screens/OTPSessionExpired/validation.js +4 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
- package/build/features/terminal/screens/OperatorError/index.js +2 -0
- package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.d.ts +3 -0
- package/build/features/terminal/screens/POSDeviceListPage/POSDeviceListPage.js +50 -0
- package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +2 -0
- package/build/features/terminal/screens/POSDeviceListPage/index.js +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +153 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +51 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +99 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
- package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
- package/build/features/terminal/screens/Verify/Verify.js +89 -0
- package/build/features/terminal/screens/Verify/index.d.ts +2 -0
- package/build/features/terminal/screens/Verify/index.js +2 -0
- package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
- package/build/features/terminal/screens/Verify/validation.js +4 -0
- package/build/features/terminal/screens/shared/Header.d.ts +10 -0
- package/build/features/terminal/screens/shared/Header.js +30 -0
- package/build/features/terminal/screens/shared/POSDeviceList.d.ts +11 -0
- package/build/features/terminal/screens/shared/POSDeviceList.js +30 -0
- package/build/features/terminal/screens/shared/index.d.ts +5 -0
- package/build/features/terminal/screens/shared/index.js +5 -0
- package/build/features/terminal/screens/shared/styles.d.ts +196 -0
- package/build/features/terminal/screens/shared/styles.js +155 -0
- package/build/features/terminal/screens/shared/utils.d.ts +7 -0
- package/build/features/terminal/screens/shared/utils.js +24 -0
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppDispatch.d.ts +2 -0
- package/build/hooks/useSessionExpiryHandler.d.ts +8 -0
- package/build/hooks/useSessionExpiryHandler.js +71 -0
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -2
- package/build/theme/palette.js +12 -0
- package/build/theme/typography.js +4 -0
- package/build/utils/common.js +13 -6
- package/build/utils/error.d.ts +4 -0
- package/build/utils/error.js +12 -0
- package/build/utils/string.d.ts +3 -1
- package/build/utils/string.js +12 -2
- package/build/utils/validation.js +1 -1
- package/package.json +3 -3
|
@@ -67,11 +67,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
67
67
|
};
|
|
68
68
|
var _a;
|
|
69
69
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
70
|
-
import API from '../../../api';
|
|
70
|
+
import API, { setAuthSessionToGlobalHeaders } from '../../../api';
|
|
71
71
|
import { FlowsTypes, IndividualGender, DocumentPurpose } from '../../../@types';
|
|
72
|
-
import { handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
72
|
+
import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
73
73
|
import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES, MONTHLY_INCOME_LIST } from '../../../constants';
|
|
74
|
-
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType, isOtherThanKWOrSA, isKWOrSA, sendCustomEventToGTM } from '../../../utils';
|
|
74
|
+
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, hasNoneEditableValue, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose, formatNumberAsCurrency, removeAllCharsFromNumber, mapUserList, sortUserList, getIndividualType, isOtherThanKWOrSA, isKWOrSA, sendCustomEventToGTM, isAuthenticationVerificationFailed } from '../../../utils';
|
|
75
75
|
export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
|
|
76
76
|
var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
|
|
77
77
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -93,6 +93,7 @@ export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a
|
|
|
93
93
|
countries = settings.data.countries;
|
|
94
94
|
if (((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
|
|
95
95
|
throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
|
|
96
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
96
97
|
if (isInternally)
|
|
97
98
|
data.step_name = INDIVIDUAl_STEP_NAMES.INDIVIDUAl_INFO;
|
|
98
99
|
_b = data || {}, country_code = _b.country_code, config = _b.config, boardId = _b.id;
|
|
@@ -445,9 +446,9 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveIndividualBoardDetai
|
|
|
445
446
|
});
|
|
446
447
|
export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
447
448
|
var _a, individual, settings, responseBody, countries, payload, data, userList, recipientData, publicKey, countryCode, _b, business_id, recipient, board_id, board_info_id, notification, _c, id, type, individualData, birthCountry;
|
|
448
|
-
var _d, _e, _f, _g, _h, _j, _k
|
|
449
|
-
return __generator(this, function (
|
|
450
|
-
switch (
|
|
449
|
+
var _d, _e, _f, _g, _h, _j, _k;
|
|
450
|
+
return __generator(this, function (_l) {
|
|
451
|
+
switch (_l.label) {
|
|
451
452
|
case 0:
|
|
452
453
|
_a = thunkApi.getState(), individual = _a.individual, settings = _a.settings;
|
|
453
454
|
responseBody = individual.data.verify.responseBody;
|
|
@@ -459,40 +460,43 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
|
|
|
459
460
|
step_name: INDIVIDUAl_STEP_NAMES.PHONE_AUTH,
|
|
460
461
|
encryption_contract: ['data']
|
|
461
462
|
};
|
|
462
|
-
return [4, API.leadService.
|
|
463
|
+
return [4, API.leadService.verifyTokenOTP(payload).catch(function (err) {
|
|
464
|
+
if (isAuthenticationVerificationFailed(err === null || err === void 0 ? void 0 : err.message))
|
|
465
|
+
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_OTP_VERIFY_SECURITY_ERROR_STEP'));
|
|
466
|
+
throw new Error(err === null || err === void 0 ? void 0 : err.message);
|
|
467
|
+
})];
|
|
463
468
|
case 1:
|
|
464
|
-
data =
|
|
469
|
+
data = _l.sent();
|
|
470
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
465
471
|
recipientData = undefined;
|
|
466
|
-
|
|
467
|
-
throw new Error(data.errors[0].description);
|
|
468
|
-
publicKey = (_f = data === null || data === void 0 ? void 0 : data.config) === null || _f === void 0 ? void 0 : _f.public_key;
|
|
472
|
+
publicKey = (_e = data === null || data === void 0 ? void 0 : data.config) === null || _e === void 0 ? void 0 : _e.public_key;
|
|
469
473
|
countryCode = data === null || data === void 0 ? void 0 : data.country_code;
|
|
470
474
|
if (publicKey)
|
|
471
475
|
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
472
|
-
if (!((
|
|
476
|
+
if (!((_f = settings.data.businessCountry) === null || _f === void 0 ? void 0 : _f.iso2) && countryCode)
|
|
473
477
|
thunkApi.dispatch(handleSetCountryByIso2(countryCode));
|
|
474
478
|
_b = data || {}, business_id = _b.business_id, recipient = _b.recipient, board_id = _b.id, board_info_id = _b.board_info_id;
|
|
475
479
|
recipientData = recipient;
|
|
476
|
-
if (!!((
|
|
480
|
+
if (!!((_g = data === null || data === void 0 ? void 0 : data.recipient) === null || _g === void 0 ? void 0 : _g.id)) return [3, 3];
|
|
477
481
|
if (!(board_id && board_info_id)) return [3, 3];
|
|
478
482
|
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
479
483
|
case 2:
|
|
480
|
-
notification = (
|
|
484
|
+
notification = (_l.sent()).notification;
|
|
481
485
|
recipientData = notification === null || notification === void 0 ? void 0 : notification.recipient;
|
|
482
486
|
if (!(recipientData === null || recipientData === void 0 ? void 0 : recipientData.id))
|
|
483
487
|
throw new Error('individual_id_missing');
|
|
484
|
-
|
|
488
|
+
_l.label = 3;
|
|
485
489
|
case 3:
|
|
486
490
|
_c = recipientData || {}, id = _c.id, type = _c.type;
|
|
487
491
|
return [4, thunkApi.dispatch(retrieveIndividualInfo({ id: id, type: type, countryCode: countryCode })).unwrap()];
|
|
488
492
|
case 4:
|
|
489
|
-
individualData = (
|
|
493
|
+
individualData = (_l.sent()).data;
|
|
490
494
|
if (!(!(individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized) && !isKWOrSA(countryCode))) return [3, 7];
|
|
491
495
|
if (!business_id) return [3, 6];
|
|
492
496
|
return [4, thunkApi.dispatch(getIndividualList(business_id)).unwrap()];
|
|
493
497
|
case 5:
|
|
494
|
-
userList =
|
|
495
|
-
|
|
498
|
+
userList = _l.sent();
|
|
499
|
+
_l.label = 6;
|
|
496
500
|
case 6:
|
|
497
501
|
userList = userList === null || userList === void 0 ? void 0 : userList.filter(function (user) { return user.id === id; });
|
|
498
502
|
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
|
|
@@ -502,23 +506,23 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
|
|
|
502
506
|
if (!business_id) return [3, 9];
|
|
503
507
|
return [4, thunkApi.dispatch(getIndividualList(business_id)).unwrap()];
|
|
504
508
|
case 8:
|
|
505
|
-
userList =
|
|
506
|
-
|
|
509
|
+
userList = _l.sent();
|
|
510
|
+
_l.label = 9;
|
|
507
511
|
case 9:
|
|
508
512
|
thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_LIST_STEP'));
|
|
509
513
|
return [3, 13];
|
|
510
514
|
case 10:
|
|
511
|
-
birthCountry = ((
|
|
515
|
+
birthCountry = ((_h = individualData === null || individualData === void 0 ? void 0 : individualData.birth) === null || _h === void 0 ? void 0 : _h.country) || countryCode;
|
|
512
516
|
if (!birthCountry) return [3, 12];
|
|
513
517
|
return [4, thunkApi.dispatch(getCityList(birthCountry))];
|
|
514
518
|
case 11:
|
|
515
|
-
|
|
516
|
-
|
|
519
|
+
_l.sent();
|
|
520
|
+
_l.label = 12;
|
|
517
521
|
case 12:
|
|
518
522
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP')); });
|
|
519
|
-
|
|
523
|
+
_l.label = 13;
|
|
520
524
|
case 13:
|
|
521
|
-
(
|
|
525
|
+
(_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, { otp: params.otp });
|
|
522
526
|
return [2, {
|
|
523
527
|
data: data,
|
|
524
528
|
countries: countries,
|
|
@@ -529,6 +533,58 @@ export var verifyLeadOTP = createAsyncThunk('verifyIndividualLeadOTP', function
|
|
|
529
533
|
}
|
|
530
534
|
});
|
|
531
535
|
}); });
|
|
536
|
+
export var verifyTokenSessionExpired = createAsyncThunk('individual/verifyTokenSessionExpired', function (redirect, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
537
|
+
var individual, payload, data;
|
|
538
|
+
return __generator(this, function (_a) {
|
|
539
|
+
switch (_a.label) {
|
|
540
|
+
case 0:
|
|
541
|
+
individual = thunkApi.getState().individual;
|
|
542
|
+
payload = {
|
|
543
|
+
service_name: 'tap_email',
|
|
544
|
+
verify_token: individual.data.verify.token
|
|
545
|
+
};
|
|
546
|
+
return [4, API.leadService.verifyToken(payload)];
|
|
547
|
+
case 1:
|
|
548
|
+
data = _a.sent();
|
|
549
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
550
|
+
if (redirect)
|
|
551
|
+
thunkApi.dispatch(handleCurrentActiveScreen('INDIVIDUAL_SESSION_EXPIRED_OTP_STEP'));
|
|
552
|
+
return [2, { data: data }];
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
}); });
|
|
556
|
+
export var verifyLeadOTPSessionExpired = createAsyncThunk('individual/verifyLeadOTPSessionExpired', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
|
+
var _a, individual, settings, session, responseBody, payload, data;
|
|
558
|
+
var _b, _c, _d;
|
|
559
|
+
return __generator(this, function (_e) {
|
|
560
|
+
switch (_e.label) {
|
|
561
|
+
case 0:
|
|
562
|
+
_a = thunkApi.getState(), individual = _a.individual, settings = _a.settings, session = _a.session;
|
|
563
|
+
responseBody = individual.data.verify.responseBody;
|
|
564
|
+
payload = {
|
|
565
|
+
data: params.otp,
|
|
566
|
+
service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
|
|
567
|
+
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
568
|
+
step_name: INDIVIDUAl_STEP_NAMES.PHONE_AUTH,
|
|
569
|
+
encryption_contract: ['data']
|
|
570
|
+
};
|
|
571
|
+
return [4, API.leadService.verifyTokenOTP(payload).catch(function (err) {
|
|
572
|
+
if (isAuthenticationVerificationFailed(err === null || err === void 0 ? void 0 : err.message))
|
|
573
|
+
thunkApi.dispatch(handleCurrentActiveScreen('INDIVIDUAL_OTP_VERIFY_SECURITY_ERROR_STEP'));
|
|
574
|
+
throw new Error(err === null || err === void 0 ? void 0 : err.message);
|
|
575
|
+
})];
|
|
576
|
+
case 1:
|
|
577
|
+
data = _e.sent();
|
|
578
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
579
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
|
|
580
|
+
thunkApi.dispatch(handleCurrentActiveScreen(session.data.nextScreen));
|
|
581
|
+
return [2, {
|
|
582
|
+
data: data,
|
|
583
|
+
formData: __assign({}, params)
|
|
584
|
+
}];
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}); });
|
|
532
588
|
export var updatePhoneInfo = createAsyncThunk('individual/updatePhoneInfo', function (_a, thunkApi) {
|
|
533
589
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
534
590
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -621,7 +677,8 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
|
|
|
621
677
|
expiry: isExpiryNonEditable || !expiryDate ? undefined : new Date(expiryDate).getTime(),
|
|
622
678
|
type: isIdTypeNonEditable || !identification_id_type ? undefined : identification_id_type
|
|
623
679
|
}
|
|
624
|
-
})), (!isDOBNonEditable &&
|
|
680
|
+
})), (!isDOBNonEditable &&
|
|
681
|
+
dob && {
|
|
625
682
|
date_of_birth: dob
|
|
626
683
|
})), (hasBirth &&
|
|
627
684
|
!(isBirthCityNonEditable && isBirthCountryNonEditable) && {
|
|
@@ -911,8 +968,8 @@ var initialState = {
|
|
|
911
968
|
gender: IndividualGender.MALE,
|
|
912
969
|
nid: '',
|
|
913
970
|
issuedCountry: undefined,
|
|
914
|
-
expiryDate:
|
|
915
|
-
dob:
|
|
971
|
+
expiryDate: undefined,
|
|
972
|
+
dob: undefined,
|
|
916
973
|
placeOfBirthCountry: undefined,
|
|
917
974
|
placeOfBirthCity: undefined,
|
|
918
975
|
nationality: undefined
|
|
@@ -1009,9 +1066,43 @@ export var individualSlice = createSlice({
|
|
|
1009
1066
|
state.data.otpData.responseBody = data;
|
|
1010
1067
|
state.data.verify.responseBody = __assign(__assign(__assign({}, data), state.data.verify.responseBody), { countries: countries, countryCode: countryCode, userList: userList });
|
|
1011
1068
|
})
|
|
1012
|
-
.addCase(verifyLeadOTP.rejected, function (state,
|
|
1069
|
+
.addCase(verifyLeadOTP.rejected, function (state, _a) {
|
|
1070
|
+
var message = _a.error.message;
|
|
1071
|
+
state.loading = false;
|
|
1072
|
+
if (!isAuthenticationVerificationFailed(message))
|
|
1073
|
+
state.error = message;
|
|
1074
|
+
})
|
|
1075
|
+
.addCase(verifyTokenSessionExpired.pending, function (state) {
|
|
1076
|
+
state.error = null;
|
|
1077
|
+
state.loading = true;
|
|
1078
|
+
})
|
|
1079
|
+
.addCase(verifyTokenSessionExpired.fulfilled, function (state, action) {
|
|
1080
|
+
state.error = null;
|
|
1013
1081
|
state.loading = false;
|
|
1082
|
+
var data = action.payload.data;
|
|
1083
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
|
|
1084
|
+
})
|
|
1085
|
+
.addCase(verifyTokenSessionExpired.rejected, function (state, action) {
|
|
1014
1086
|
state.error = action.error.message;
|
|
1087
|
+
state.loading = false;
|
|
1088
|
+
})
|
|
1089
|
+
.addCase(verifyLeadOTPSessionExpired.pending, function (state) {
|
|
1090
|
+
state.loading = true;
|
|
1091
|
+
state.error = null;
|
|
1092
|
+
})
|
|
1093
|
+
.addCase(verifyLeadOTPSessionExpired.fulfilled, function (state, action) {
|
|
1094
|
+
state.loading = false;
|
|
1095
|
+
state.error = null;
|
|
1096
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
1097
|
+
state.data.otpData = formData;
|
|
1098
|
+
state.data.otpData.responseBody = data;
|
|
1099
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
|
|
1100
|
+
})
|
|
1101
|
+
.addCase(verifyLeadOTPSessionExpired.rejected, function (state, _a) {
|
|
1102
|
+
var message = _a.error.message;
|
|
1103
|
+
state.loading = false;
|
|
1104
|
+
if (!isAuthenticationVerificationFailed(message))
|
|
1105
|
+
state.error = message;
|
|
1015
1106
|
})
|
|
1016
1107
|
.addCase(addDetailsAsync.pending, function (state) {
|
|
1017
1108
|
state.addOrRequestDetailLoading = true;
|
|
@@ -1045,8 +1136,9 @@ export var individualSlice = createSlice({
|
|
|
1045
1136
|
if (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) {
|
|
1046
1137
|
state.data.individualPersonalData.issuedCountry = findCountryByIso2(countries, identification === null || identification === void 0 ? void 0 : identification.issued_country_code);
|
|
1047
1138
|
}
|
|
1048
|
-
|
|
1049
|
-
|
|
1139
|
+
state.data.individualPersonalData.expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry)
|
|
1140
|
+
? convertNumbers2English(dateFormat(new Date(identification.expiry)))
|
|
1141
|
+
: undefined;
|
|
1050
1142
|
if (birth === null || birth === void 0 ? void 0 : birth.date)
|
|
1051
1143
|
state.data.individualPersonalData.dob = convertNumbers2English(dateFormat(new Date(birth === null || birth === void 0 ? void 0 : birth.date)));
|
|
1052
1144
|
if (birth === null || birth === void 0 ? void 0 : birth.country) {
|
|
@@ -1140,8 +1232,9 @@ export var individualSlice = createSlice({
|
|
|
1140
1232
|
if (identification === null || identification === void 0 ? void 0 : identification.issued_country_code) {
|
|
1141
1233
|
state.data.individualPersonalData.issuedCountry = findCountryByIso2(countries, identification === null || identification === void 0 ? void 0 : identification.issued_country_code);
|
|
1142
1234
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1235
|
+
state.data.individualPersonalData.expiryDate = (identification === null || identification === void 0 ? void 0 : identification.expiry)
|
|
1236
|
+
? convertNumbers2English(dateFormat(new Date(identification.expiry)))
|
|
1237
|
+
: undefined;
|
|
1145
1238
|
if (birth === null || birth === void 0 ? void 0 : birth.date)
|
|
1146
1239
|
state.data.individualPersonalData.dob = convertNumbers2English(dateFormat(birth === null || birth === void 0 ? void 0 : birth.date));
|
|
1147
1240
|
if (birth === null || birth === void 0 ? void 0 : birth.country) {
|
|
@@ -1181,7 +1274,6 @@ export var individualSlice = createSlice({
|
|
|
1181
1274
|
state.data.individualData.isAuthorized = is_authorized;
|
|
1182
1275
|
})
|
|
1183
1276
|
.addCase(retrieveIndividualInfo.rejected, function (state, action) {
|
|
1184
|
-
state.addOrRequestDetailLoading = false;
|
|
1185
1277
|
state.error = action.error.message;
|
|
1186
1278
|
})
|
|
1187
1279
|
.addCase(getIndividualList.pending, function (state) {
|
|
@@ -7,15 +7,15 @@ export declare const verifyTokenApi: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
7
7
|
data: any;
|
|
8
8
|
userList: any;
|
|
9
9
|
token: string;
|
|
10
|
-
nextScreen:
|
|
10
|
+
nextScreen: string;
|
|
11
11
|
}, VerifyLeadTokenProps, {}>;
|
|
12
12
|
export declare const createPaciAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
13
13
|
data: any;
|
|
14
|
-
nextScreen:
|
|
14
|
+
nextScreen: string;
|
|
15
15
|
}, User, {}>;
|
|
16
16
|
export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
17
17
|
data: any;
|
|
18
|
-
nextScreen:
|
|
18
|
+
nextScreen: string;
|
|
19
19
|
}, User, {}>;
|
|
20
20
|
interface verifyNafathParams {
|
|
21
21
|
onSuccess: () => void;
|
|
@@ -27,7 +27,7 @@ export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
27
27
|
nextScreen?: undefined;
|
|
28
28
|
} | {
|
|
29
29
|
data: any;
|
|
30
|
-
nextScreen:
|
|
30
|
+
nextScreen: string;
|
|
31
31
|
createAuthData: any;
|
|
32
32
|
}, verifyNafathParams, {}>;
|
|
33
33
|
interface verifyPACIParams {
|
|
@@ -35,7 +35,7 @@ interface verifyPACIParams {
|
|
|
35
35
|
}
|
|
36
36
|
export declare const verifyPaci: import("@reduxjs/toolkit").AsyncThunk<{
|
|
37
37
|
data: any;
|
|
38
|
-
nextScreen:
|
|
38
|
+
nextScreen: string;
|
|
39
39
|
createAuthData: any;
|
|
40
40
|
}, verifyPACIParams, {}>;
|
|
41
41
|
export declare const updateKYCSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -50,7 +50,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
|
50
50
|
import { handlePublicKey, handleSetCountryByIso2 } from '../../../app/settings';
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
52
|
import { CONNECT_FLOWS, KYC_STEP_NAMES, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED } from '../../../constants';
|
|
53
|
-
import API from '../../../api';
|
|
53
|
+
import API, { setAuthSessionToGlobalHeaders } from '../../../api';
|
|
54
54
|
import { isNetworkError, isTimeoutError, sendCustomEventToGTM, sleep } from '../../../utils';
|
|
55
55
|
export var verifyTokenApi = createAsyncThunk('kyc/verifyTokenApi', function (_a, thunkApi) {
|
|
56
56
|
var token = _a.token;
|
|
@@ -70,6 +70,7 @@ export var verifyTokenApi = createAsyncThunk('kyc/verifyTokenApi', function (_a,
|
|
|
70
70
|
return [4, API.leadService.verifyToken(payload)];
|
|
71
71
|
case 1:
|
|
72
72
|
data = _d.sent();
|
|
73
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
73
74
|
_b = data || {}, config = _b.config, country_code = _b.country_code, segment_id = _b.segment_id, boardId = _b.id, boardInfoId = _b.board_info_id;
|
|
74
75
|
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
75
76
|
return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
|
|
@@ -200,6 +201,7 @@ export var verifyNafath = createAsyncThunk('kyc/verifyNafath', function (params,
|
|
|
200
201
|
return [2, { data: data, createAuthData: createAuthData }];
|
|
201
202
|
}
|
|
202
203
|
if (!isSuccess) return [3, 7];
|
|
204
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
203
205
|
(_d = params.onSuccess) === null || _d === void 0 ? void 0 : _d.call(params);
|
|
204
206
|
return [4, thunkApi.dispatch(updateKYCSuccess())];
|
|
205
207
|
case 6:
|
|
@@ -252,6 +254,7 @@ export var verifyPaci = createAsyncThunk('kyc/verifyPaci', function (params, thu
|
|
|
252
254
|
case 5:
|
|
253
255
|
isSuccess = ((_a = data === null || data === void 0 ? void 0 : data.status) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'success';
|
|
254
256
|
if (!isSuccess) return [3, 7];
|
|
257
|
+
setAuthSessionToGlobalHeaders(data === null || data === void 0 ? void 0 : data.auth_session);
|
|
255
258
|
(_b = params.onSuccess) === null || _b === void 0 ? void 0 : _b.call(params);
|
|
256
259
|
return [4, thunkApi.dispatch(updateKYCSuccess())];
|
|
257
260
|
case 6:
|
|
@@ -25,6 +25,15 @@ export declare const verifyPasswordLeadOTP: import("@reduxjs/toolkit").AsyncThun
|
|
|
25
25
|
};
|
|
26
26
|
flows: any;
|
|
27
27
|
}, OTPFormValues, {}>;
|
|
28
|
+
export declare const verifyLeadTokenSessionExpired: import("@reduxjs/toolkit").AsyncThunk<{
|
|
29
|
+
data: any;
|
|
30
|
+
}, boolean, {}>;
|
|
31
|
+
export declare const verifyLeadOTPSessionExpired: import("@reduxjs/toolkit").AsyncThunk<{
|
|
32
|
+
data: any;
|
|
33
|
+
formData: {
|
|
34
|
+
otp: string;
|
|
35
|
+
};
|
|
36
|
+
}, OTPFormValues, {}>;
|
|
28
37
|
export declare const createPassword: import("@reduxjs/toolkit").AsyncThunk<{
|
|
29
38
|
data: any;
|
|
30
39
|
formData: PasswordCreateFormValues;
|