@tap-payments/auth-jsconnect 2.7.10-test → 2.8.0-test
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 +18 -17
- package/build/@types/config.d.ts +1 -1
- package/build/@types/form.d.ts +25 -22
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +15 -31
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +11 -11
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +10 -10
- package/build/api/file.d.ts +1 -1
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +12 -12
- package/build/api/lead.js +1 -1
- package/build/api/operator.d.ts +2 -2
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +21 -3
- package/build/app/settings.js +2 -2
- package/build/app/store.d.ts +4 -4
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +1 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/CheckBox/CheckBox.d.ts +1 -1
- package/build/components/Collapse/Collapse.d.ts +1 -2
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/Form/Form.d.ts +1 -1
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
- package/build/components/List/List.d.ts +1 -1
- package/build/components/ListItem/ListItem.d.ts +1 -1
- package/build/components/Loader/Loader.d.ts +1 -1
- package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
- package/build/components/OTPField/OTPField.d.ts +1 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/components/Providers/ReduxProvider.d.ts +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/Radio/Radio.d.ts +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.d.ts +1 -1
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/Text/Text.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +2 -0
- package/build/constants/app.d.ts +3 -1
- package/build/constants/app.js +27 -7
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +2 -1
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/auth/authStore.d.ts +183 -18
- package/build/features/app/auth/authStore.js +152 -37
- package/build/features/app/bank/bankStore.d.ts +92 -11
- package/build/features/app/bank/bankStore.js +18 -11
- package/build/features/app/board/boardStore.d.ts +41 -5
- package/build/features/app/board/boardStore.js +1 -1
- package/build/features/app/brand/brandStore.d.ts +142 -16
- package/build/features/app/brand/brandStore.js +16 -10
- package/build/features/app/business/businessStore.d.ts +162 -18
- package/build/features/app/business/businessStore.js +1 -1
- package/build/features/app/connect/connectStore.d.ts +151 -16
- package/build/features/app/connect/connectStore.js +1 -1
- package/build/features/app/connectExpress/connectExpressStore.d.ts +271 -30
- package/build/features/app/connectExpress/connectExpressStore.js +35 -39
- package/build/features/app/entity/entityStore.d.ts +92 -11
- package/build/features/app/entity/entityStore.js +16 -10
- package/build/features/app/individual/individualStore.d.ts +189 -23
- package/build/features/app/individual/individualStore.js +19 -13
- package/build/features/app/password/passwordStore.d.ts +117 -13
- package/build/features/app/password/passwordStore.js +31 -19
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +82 -10
- package/build/features/app/tax/taxStore.js +17 -11
- package/build/features/auth/Auth.d.ts +1 -2
- package/build/features/auth/Auth.js +6 -7
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +2 -5
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +45 -0
- package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
- package/build/features/auth/screens/AuthSwitch/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +2 -8
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +3 -3
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +3 -3
- package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/auth/screens/CivilID/CivilID.js +4 -35
- package/build/features/auth/screens/Email/Email.d.ts +5 -0
- package/build/features/auth/screens/Email/Email.js +57 -0
- package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
- package/build/features/auth/screens/Email/EmailField.js +52 -0
- package/build/features/auth/screens/Email/index.d.ts +3 -0
- package/build/features/auth/screens/Email/index.js +2 -0
- package/build/features/auth/screens/Email/validation.d.ts +8 -0
- package/build/features/auth/screens/Email/validation.js +4 -0
- package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/auth/screens/Mobile/Mobile.js +6 -38
- package/build/features/auth/screens/Mobile/MobileNumber.js +6 -9
- package/build/features/auth/screens/NID/DOB.d.ts +1 -2
- package/build/features/auth/screens/NID/NID.d.ts +1 -1
- package/build/features/auth/screens/NID/NID.js +4 -34
- package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTPInput.js +8 -1
- package/build/features/auth/screens/Password/Password.d.ts +5 -0
- package/build/features/auth/screens/Password/Password.js +61 -0
- package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
- package/build/features/auth/screens/Password/PasswordField.js +28 -0
- package/build/features/auth/screens/Password/index.d.ts +3 -0
- package/build/features/auth/screens/Password/index.js +2 -0
- package/build/features/auth/screens/Password/validation.d.ts +8 -0
- package/build/features/auth/screens/Password/validation.js +4 -0
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
- package/build/features/auth/screens/PreparingData/PreparingData.js +3 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/bank/screens/Success/Success.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/board/Board.d.ts +1 -2
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/board/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/Brand.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -29
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +12 -20
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +6 -3
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/validation.js +2 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/brand/screens/Success/Success.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
- package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
- package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +17 -41
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +11 -19
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +1 -2
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/OTP/OTP.d.ts +1 -1
- package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/business/screens/Success/Success.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +6 -3
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Merchant/validation.js +2 -2
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/DOB.d.ts +1 -2
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -3
- package/build/features/connectExpress/ConnectExpress.js +6 -10
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +3 -3
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +6 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -3
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +13 -29
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/entity/screens/Success/Success.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/featuresScreens.js +15 -0
- package/build/features/individual/Individual.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +4 -4
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/individual/screens/Success/Success.d.ts +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/Password.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/password/screens/Success/Success.d.ts +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
- package/build/features/shared/Address/Address.d.ts +1 -2
- package/build/features/shared/Address/CountryList.d.ts +13 -29
- package/build/features/shared/Address/InputSelect.d.ts +13 -29
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Address/InputText.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +1 -1
- package/build/features/shared/Background/LogoBackground.d.ts +1 -1
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/AbsherButton.d.ts +1 -2
- package/build/features/shared/Button/Button.d.ts +1 -2
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Calender/Calender.d.ts +1 -2
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
- package/build/features/shared/Chip/Chip.d.ts +1 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
- package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +6 -14
- package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -4
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -3
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -3
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -4
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -3
- package/build/features/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/screens/Email/Email.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +1 -2
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +2 -2
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
- package/build/hooks/useFormReadOnly.d.ts +2 -2
- package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
- package/build/utils/array.js +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -60,7 +60,7 @@ import { AuthForType, FlowsTypes } from '../../../@types';
|
|
|
60
60
|
import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, IDENTIFICATION_TYPE, defaultCountry } from '../../../constants';
|
|
61
61
|
import API from '../../../api';
|
|
62
62
|
import { handleCurrentActiveScreen, handleNextScreenStep, handleOpen, handleSetCountryByIso2 } from '../../../app/settings';
|
|
63
|
-
import { findCountryByIddPrefix,
|
|
63
|
+
import { findCountryByIddPrefix, openConnect, sleep } from '../../../utils';
|
|
64
64
|
export var updateBusinessCountry = createAsyncThunk('auth/updateBusinessCountry', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
65
|
var auth, payload, data;
|
|
66
66
|
return __generator(this, function (_a) {
|
|
@@ -101,6 +101,7 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('auth/retrieveLeadId
|
|
|
101
101
|
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
102
102
|
countryCode = findCountryByIddPrefix(settingData.countries, phone.country_code);
|
|
103
103
|
if (!businessCountryIso2 && ipCountryIso2 && settingData.appConfig.scope === 'auth') {
|
|
104
|
+
thunkApi.dispatch(storeIsBusinessCountryPassed(false));
|
|
104
105
|
thunkApi.dispatch(handleSetCountryByIso2(ipCountryIso2));
|
|
105
106
|
businessCountryIso2 = ipCountryIso2;
|
|
106
107
|
}
|
|
@@ -108,20 +109,6 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('auth/retrieveLeadId
|
|
|
108
109
|
thunkApi.dispatch(handleCurrentActiveScreen('AUTH_BUSINESS_COUNTRY_STEP'));
|
|
109
110
|
return [2, { data: data, countryCode: countryCode }];
|
|
110
111
|
}
|
|
111
|
-
if (!(data === null || data === void 0 ? void 0 : data.identification) && phone) {
|
|
112
|
-
thunkApi.dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
|
|
113
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
114
|
-
}
|
|
115
|
-
if (country_code && !businessCountryIso2) {
|
|
116
|
-
thunkApi.dispatch(handleSetCountryByIso2(data.country_code));
|
|
117
|
-
if (!isSA(data.country_code))
|
|
118
|
-
thunkApi.dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
|
|
119
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
120
|
-
}
|
|
121
|
-
if (!isSA(businessCountryIso2)) {
|
|
122
|
-
thunkApi.dispatch(handleCurrentActiveScreen('AUTH_MOBILE_STEP'));
|
|
123
|
-
return [2, { data: data, countryCode: countryCode }];
|
|
124
|
-
}
|
|
125
112
|
return [2, { data: data, countryCode: countryCode }];
|
|
126
113
|
}
|
|
127
114
|
});
|
|
@@ -184,14 +171,14 @@ export var resendMobileAuthOTP = createAsyncThunk('auth/resendMobileAuthOTP', fu
|
|
|
184
171
|
});
|
|
185
172
|
}); });
|
|
186
173
|
export var verifyMobileOtp = createAsyncThunk('auth/verifyMobileOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
187
|
-
var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, scope, payload, data;
|
|
174
|
+
var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, scope, payload, data;
|
|
188
175
|
var _d, _e, _f, _g;
|
|
189
176
|
return __generator(this, function (_h) {
|
|
190
177
|
switch (_h.label) {
|
|
191
178
|
case 0:
|
|
192
179
|
_a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
|
|
193
180
|
_b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
|
|
194
|
-
_c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
181
|
+
_c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type;
|
|
195
182
|
if (!auth_token)
|
|
196
183
|
throw new Error('Auth token is missing');
|
|
197
184
|
scope = settings.data.appConfig.scope;
|
|
@@ -199,7 +186,7 @@ export var verifyMobileOtp = createAsyncThunk('auth/verifyMobileOtp', function (
|
|
|
199
186
|
auth_token: auth_token,
|
|
200
187
|
lead_id: leadId,
|
|
201
188
|
data: params.otp,
|
|
202
|
-
auth_type:
|
|
189
|
+
auth_type: auth_type,
|
|
203
190
|
device_token: device_token,
|
|
204
191
|
service_name: service_name,
|
|
205
192
|
sign_in: false,
|
|
@@ -221,6 +208,74 @@ export var verifyMobileOtp = createAsyncThunk('auth/verifyMobileOtp', function (
|
|
|
221
208
|
}
|
|
222
209
|
});
|
|
223
210
|
}); });
|
|
211
|
+
export var createEmailAuth = createAsyncThunk('auth/createEmailAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
|
+
var _a, settings, auth, requestBody, data;
|
|
213
|
+
var _b, _c;
|
|
214
|
+
return __generator(this, function (_d) {
|
|
215
|
+
switch (_d.label) {
|
|
216
|
+
case 0:
|
|
217
|
+
_a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
|
|
218
|
+
requestBody = {
|
|
219
|
+
country: settings.data.businessCountry.iso2,
|
|
220
|
+
scope: settings.data.appConfig.scope,
|
|
221
|
+
lang: settings.data.language,
|
|
222
|
+
lead_id: auth.data.leadId,
|
|
223
|
+
user_credentail: {
|
|
224
|
+
email: params.email || ''
|
|
225
|
+
},
|
|
226
|
+
sign_in: true,
|
|
227
|
+
is_lead: false,
|
|
228
|
+
step_name: AUTH_STEP_NAMES.CREATE_AUTH_EMAIL,
|
|
229
|
+
encryption_contract: ['user_credentail.email']
|
|
230
|
+
};
|
|
231
|
+
return [4, API.authService.createAuth(requestBody)];
|
|
232
|
+
case 1:
|
|
233
|
+
data = _d.sent();
|
|
234
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
235
|
+
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody.user_credentail);
|
|
236
|
+
return [2, { response: data, formData: params }];
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}); });
|
|
240
|
+
export var verifyEmailPassword = createAsyncThunk('auth/verifyEmailPassword', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
241
|
+
var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, scope, payload, data;
|
|
242
|
+
var _d, _e, _f, _g;
|
|
243
|
+
return __generator(this, function (_h) {
|
|
244
|
+
switch (_h.label) {
|
|
245
|
+
case 0:
|
|
246
|
+
_a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
|
|
247
|
+
_b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
|
|
248
|
+
_c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type;
|
|
249
|
+
if (!auth_token)
|
|
250
|
+
throw new Error('Auth token is missing');
|
|
251
|
+
scope = settings.data.appConfig.scope;
|
|
252
|
+
payload = {
|
|
253
|
+
auth_token: auth_token,
|
|
254
|
+
lead_id: leadId,
|
|
255
|
+
data: params.password,
|
|
256
|
+
auth_type: auth_type,
|
|
257
|
+
device_token: device_token,
|
|
258
|
+
service_name: service_name,
|
|
259
|
+
sign_in: true,
|
|
260
|
+
is_lead: false,
|
|
261
|
+
step_name: AUTH_STEP_NAMES.VERIFY_AUTH_EMAIL,
|
|
262
|
+
encryption_contract: ['data']
|
|
263
|
+
};
|
|
264
|
+
return [4, API.authService.verifyAuth(payload)];
|
|
265
|
+
case 1:
|
|
266
|
+
data = (_h.sent()).data;
|
|
267
|
+
if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
|
|
268
|
+
throw new Error(data.errors[0].description);
|
|
269
|
+
if (scope === 'merchant') {
|
|
270
|
+
openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
|
|
271
|
+
return [2, data];
|
|
272
|
+
}
|
|
273
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
274
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
|
|
275
|
+
return [2, data];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}); });
|
|
224
279
|
export var createNIDAuth = createAsyncThunk('auth/createNIDAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
280
|
var _a, settings, auth, dob, nid, nidType, countryCode, requestBody, data;
|
|
226
281
|
var _b, _c;
|
|
@@ -299,14 +354,14 @@ export var resendNIDAuthOTP = createAsyncThunk('auth/resendNIDAuthOTP', function
|
|
|
299
354
|
});
|
|
300
355
|
}); });
|
|
301
356
|
export var verifyNIDOtp = createAsyncThunk('auth/verifyNIDOtp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
302
|
-
var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, scope, payload, data;
|
|
357
|
+
var _a, settings, auth, _b, responseData, leadId, _c, auth_token, device_token, service_name, auth_type, scope, payload, data;
|
|
303
358
|
var _d, _e, _f, _g;
|
|
304
359
|
return __generator(this, function (_h) {
|
|
305
360
|
switch (_h.label) {
|
|
306
361
|
case 0:
|
|
307
362
|
_a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
|
|
308
363
|
_b = auth.data || {}, responseData = _b.responseData, leadId = _b.leadId;
|
|
309
|
-
_c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
364
|
+
_c = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authResponse) !== null && _d !== void 0 ? _d : {}, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name, auth_type = _c.auth_type;
|
|
310
365
|
if (!auth_token)
|
|
311
366
|
throw new Error('Auth token is missing');
|
|
312
367
|
scope = settings.data.appConfig.scope;
|
|
@@ -314,7 +369,7 @@ export var verifyNIDOtp = createAsyncThunk('auth/verifyNIDOtp', function (params
|
|
|
314
369
|
auth_token: auth_token,
|
|
315
370
|
lead_id: leadId,
|
|
316
371
|
data: params.otp,
|
|
317
|
-
auth_type:
|
|
372
|
+
auth_type: auth_type,
|
|
318
373
|
device_token: device_token,
|
|
319
374
|
service_name: service_name || 'ABSHER',
|
|
320
375
|
sign_in: false,
|
|
@@ -550,28 +605,41 @@ export var confirmInfo = createAsyncThunk('auth/confirmInfo', function (_a, thun
|
|
|
550
605
|
});
|
|
551
606
|
});
|
|
552
607
|
export var onSignUp = createAsyncThunk('auth/onSignUp', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
553
|
-
var _a, auth, settings, authResponse, _b, appConfig,
|
|
554
|
-
var _c, _d, _e
|
|
555
|
-
return __generator(this, function (
|
|
556
|
-
switch (
|
|
608
|
+
var _a, auth, settings, responseData, authResponse, _b, appConfig, language, boardMaturity, scope, postURL, authData, dialogEdgeFormat, redirectUrl, body, data, connectUrl;
|
|
609
|
+
var _c, _d, _e;
|
|
610
|
+
return __generator(this, function (_f) {
|
|
611
|
+
switch (_f.label) {
|
|
557
612
|
case 0:
|
|
558
613
|
_a = thunkApi.getState(), auth = _a.auth, settings = _a.settings;
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
614
|
+
responseData = auth.data.responseData;
|
|
615
|
+
authResponse = (responseData !== null && responseData !== void 0 ? responseData : {}).authResponse;
|
|
616
|
+
_b = settings.data, appConfig = _b.appConfig, language = _b.language;
|
|
617
|
+
boardMaturity = appConfig.boardMaturity, scope = appConfig.scope, postURL = appConfig.postURL, authData = appConfig.data, dialogEdgeFormat = appConfig.dialogEdgeFormat, redirectUrl = appConfig.redirectUrl;
|
|
618
|
+
body = __assign(__assign({ scope: scope, data: authData, lead: {
|
|
619
|
+
id: authResponse === null || authResponse === void 0 ? void 0 : authResponse.lead_id
|
|
620
|
+
}, board: {
|
|
621
|
+
display: true,
|
|
622
|
+
editable: boardMaturity
|
|
623
|
+
}, interface: {
|
|
624
|
+
locale: language,
|
|
625
|
+
edges: dialogEdgeFormat
|
|
626
|
+
} }, (redirectUrl && {
|
|
627
|
+
post: {
|
|
628
|
+
url: redirectUrl
|
|
629
|
+
}
|
|
630
|
+
})), (postURL && {
|
|
563
631
|
post: {
|
|
564
632
|
url: postURL
|
|
565
633
|
}
|
|
566
634
|
}));
|
|
567
635
|
return [4, API.authService.generateConfigToken(body)];
|
|
568
636
|
case 1:
|
|
569
|
-
data =
|
|
570
|
-
(
|
|
571
|
-
|
|
572
|
-
if (!
|
|
637
|
+
data = _f.sent();
|
|
638
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, data);
|
|
639
|
+
connectUrl = (_e = data === null || data === void 0 ? void 0 : data.connect) === null || _e === void 0 ? void 0 : _e.url;
|
|
640
|
+
if (!connectUrl)
|
|
573
641
|
throw new Error('Internal server error');
|
|
574
|
-
window.open(
|
|
642
|
+
window.open(connectUrl, '_self');
|
|
575
643
|
return [2];
|
|
576
644
|
}
|
|
577
645
|
});
|
|
@@ -582,6 +650,7 @@ var initialState = {
|
|
|
582
650
|
customLoading: false,
|
|
583
651
|
data: {
|
|
584
652
|
isStartFromBusinessCountry: false,
|
|
653
|
+
isBusinessCountryPassed: true,
|
|
585
654
|
flowName: FlowsTypes.AUTH,
|
|
586
655
|
mobileData: {
|
|
587
656
|
countryCode: defaultCountry,
|
|
@@ -596,10 +665,16 @@ var initialState = {
|
|
|
596
665
|
civilIdData: {
|
|
597
666
|
civilId: ''
|
|
598
667
|
},
|
|
668
|
+
emailData: {
|
|
669
|
+
email: ''
|
|
670
|
+
},
|
|
599
671
|
otpData: {
|
|
600
672
|
otp: '',
|
|
601
673
|
authFor: AuthForType.MOBILE
|
|
602
674
|
},
|
|
675
|
+
passwordData: {
|
|
676
|
+
password: ''
|
|
677
|
+
},
|
|
603
678
|
authenticationData: {
|
|
604
679
|
brandInfo: undefined,
|
|
605
680
|
entityInfo: undefined
|
|
@@ -625,12 +700,18 @@ export var authSlice = createSlice({
|
|
|
625
700
|
storeIsStartFromBusinessCountry: function (state, action) {
|
|
626
701
|
state.data.isStartFromBusinessCountry = action.payload;
|
|
627
702
|
},
|
|
703
|
+
storeIsBusinessCountryPassed: function (state, action) {
|
|
704
|
+
state.data.isBusinessCountryPassed = action.payload;
|
|
705
|
+
},
|
|
628
706
|
resetStore: function (state) {
|
|
629
707
|
state.data = __assign(__assign({}, state.data), { responseData: undefined });
|
|
630
708
|
},
|
|
631
709
|
resetOTPValue: function (state) {
|
|
632
710
|
state.data.otpData.otp = '';
|
|
633
711
|
},
|
|
712
|
+
resetPasswordValue: function (state) {
|
|
713
|
+
state.data.passwordData.password = '';
|
|
714
|
+
},
|
|
634
715
|
resetAuthenticationScreen: function (state) {
|
|
635
716
|
state.data.authenticationData = __assign(__assign({}, state.data.authenticationData), initialState.data.authenticationData);
|
|
636
717
|
}
|
|
@@ -661,13 +742,16 @@ export var authSlice = createSlice({
|
|
|
661
742
|
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
662
743
|
if (date_of_birth)
|
|
663
744
|
state.data.nidData.dob = date_of_birth;
|
|
664
|
-
var
|
|
745
|
+
var _c = contact || {}, phone = _c.phone, email = _c.email;
|
|
665
746
|
if (phone) {
|
|
666
747
|
state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
|
|
667
748
|
}
|
|
668
749
|
if (countryCode) {
|
|
669
750
|
state.data.mobileData.countryCode = countryCode;
|
|
670
751
|
}
|
|
752
|
+
if (email) {
|
|
753
|
+
state.data.emailData.email = email;
|
|
754
|
+
}
|
|
671
755
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { leadResponse: data });
|
|
672
756
|
})
|
|
673
757
|
.addCase(retrieveLeadIdentityByIdAsync.rejected, function (state, action) {
|
|
@@ -682,6 +766,7 @@ export var authSlice = createSlice({
|
|
|
682
766
|
state.loading = false;
|
|
683
767
|
state.data.mobileData = action.payload.formData;
|
|
684
768
|
state.data.otpData.authFor = AuthForType.MOBILE;
|
|
769
|
+
state.data.passwordData.authFor = undefined;
|
|
685
770
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
|
|
686
771
|
})
|
|
687
772
|
.addCase(createMobileAuth.rejected, function (state, action) {
|
|
@@ -712,6 +797,35 @@ export var authSlice = createSlice({
|
|
|
712
797
|
.addCase(verifyMobileOtp.rejected, function (state, action) {
|
|
713
798
|
state.loading = false;
|
|
714
799
|
state.error = action.error.message;
|
|
800
|
+
})
|
|
801
|
+
.addCase(createEmailAuth.pending, function (state) {
|
|
802
|
+
state.loading = true;
|
|
803
|
+
state.error = null;
|
|
804
|
+
})
|
|
805
|
+
.addCase(createEmailAuth.fulfilled, function (state, action) {
|
|
806
|
+
state.loading = false;
|
|
807
|
+
state.data.emailData = action.payload.formData;
|
|
808
|
+
state.data.otpData.authFor = undefined;
|
|
809
|
+
state.data.passwordData.authFor = AuthForType.EMAIL;
|
|
810
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
|
|
811
|
+
})
|
|
812
|
+
.addCase(createEmailAuth.rejected, function (state, action) {
|
|
813
|
+
state.loading = false;
|
|
814
|
+
state.error = action.error.message;
|
|
815
|
+
})
|
|
816
|
+
.addCase(verifyEmailPassword.pending, function (state) {
|
|
817
|
+
state.loading = true;
|
|
818
|
+
state.error = null;
|
|
819
|
+
})
|
|
820
|
+
.addCase(verifyEmailPassword.fulfilled, function (state, action) {
|
|
821
|
+
var _a;
|
|
822
|
+
state.loading = false;
|
|
823
|
+
var data = action.payload;
|
|
824
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authResponse), data) });
|
|
825
|
+
})
|
|
826
|
+
.addCase(verifyEmailPassword.rejected, function (state, action) {
|
|
827
|
+
state.loading = false;
|
|
828
|
+
state.error = action.error.message;
|
|
715
829
|
})
|
|
716
830
|
.addCase(createNIDAuth.pending, function (state) {
|
|
717
831
|
state.loading = true;
|
|
@@ -721,6 +835,7 @@ export var authSlice = createSlice({
|
|
|
721
835
|
state.loading = false;
|
|
722
836
|
state.data.nidData = action.payload.formData;
|
|
723
837
|
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
838
|
+
state.data.passwordData.authFor = undefined;
|
|
724
839
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authResponse: action.payload.response });
|
|
725
840
|
})
|
|
726
841
|
.addCase(createNIDAuth.rejected, function (state, action) {
|
|
@@ -865,6 +980,6 @@ export var authSlice = createSlice({
|
|
|
865
980
|
});
|
|
866
981
|
}
|
|
867
982
|
});
|
|
868
|
-
export var clearError = (_a = authSlice.actions, _a.clearError), resetStore = _a.resetStore, setMobileCountryCode = _a.setMobileCountryCode, setLeadId = _a.setLeadId, resetOTPValue = _a.resetOTPValue, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry, resetAuthenticationScreen = _a.resetAuthenticationScreen;
|
|
983
|
+
export var clearError = (_a = authSlice.actions, _a.clearError), resetStore = _a.resetStore, setMobileCountryCode = _a.setMobileCountryCode, setLeadId = _a.setLeadId, resetOTPValue = _a.resetOTPValue, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry, resetAuthenticationScreen = _a.resetAuthenticationScreen, storeIsBusinessCountryPassed = _a.storeIsBusinessCountryPassed, resetPasswordValue = _a.resetPasswordValue;
|
|
869
984
|
export default authSlice.reducer;
|
|
870
985
|
export var authSelector = function (state) { return state.auth; };
|
|
@@ -21,37 +21,118 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
21
21
|
notification: any;
|
|
22
22
|
};
|
|
23
23
|
token: string;
|
|
24
|
-
}, VerifyLeadTokenProps, {
|
|
24
|
+
}, VerifyLeadTokenProps, {
|
|
25
|
+
state?: unknown;
|
|
26
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
27
|
+
extra?: unknown;
|
|
28
|
+
rejectValue?: unknown;
|
|
29
|
+
serializedErrorType?: unknown;
|
|
30
|
+
pendingMeta?: unknown;
|
|
31
|
+
fulfilledMeta?: unknown;
|
|
32
|
+
rejectedMeta?: unknown;
|
|
33
|
+
}>;
|
|
25
34
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
26
35
|
data: any;
|
|
27
|
-
}, void, {
|
|
36
|
+
}, void, {
|
|
37
|
+
state?: unknown;
|
|
38
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
39
|
+
extra?: unknown;
|
|
40
|
+
rejectValue?: unknown;
|
|
41
|
+
serializedErrorType?: unknown;
|
|
42
|
+
pendingMeta?: unknown;
|
|
43
|
+
fulfilledMeta?: unknown;
|
|
44
|
+
rejectedMeta?: unknown;
|
|
45
|
+
}>;
|
|
28
46
|
export declare const verifyBankLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
29
47
|
data: any;
|
|
30
48
|
formData: OTPFormValues;
|
|
31
|
-
}, OTPFormValues, {
|
|
49
|
+
}, OTPFormValues, {
|
|
50
|
+
state?: unknown;
|
|
51
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
52
|
+
extra?: unknown;
|
|
53
|
+
rejectValue?: unknown;
|
|
54
|
+
serializedErrorType?: unknown;
|
|
55
|
+
pendingMeta?: unknown;
|
|
56
|
+
fulfilledMeta?: unknown;
|
|
57
|
+
rejectedMeta?: unknown;
|
|
58
|
+
}>;
|
|
32
59
|
export declare const retrieveBoardStatus: import("@reduxjs/toolkit").AsyncThunk<{
|
|
33
60
|
flows: any;
|
|
34
|
-
}, void, {
|
|
61
|
+
}, void, {
|
|
62
|
+
state?: unknown;
|
|
63
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
64
|
+
extra?: unknown;
|
|
65
|
+
rejectValue?: unknown;
|
|
66
|
+
serializedErrorType?: unknown;
|
|
67
|
+
pendingMeta?: unknown;
|
|
68
|
+
fulfilledMeta?: unknown;
|
|
69
|
+
rejectedMeta?: unknown;
|
|
70
|
+
}>;
|
|
35
71
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
36
72
|
data: any;
|
|
37
|
-
}, string, {
|
|
73
|
+
}, string, {
|
|
74
|
+
state?: unknown;
|
|
75
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
76
|
+
extra?: unknown;
|
|
77
|
+
rejectValue?: unknown;
|
|
78
|
+
serializedErrorType?: unknown;
|
|
79
|
+
pendingMeta?: unknown;
|
|
80
|
+
fulfilledMeta?: unknown;
|
|
81
|
+
rejectedMeta?: unknown;
|
|
82
|
+
}>;
|
|
38
83
|
export declare const createBankAccount: import("@reduxjs/toolkit").AsyncThunk<{
|
|
39
84
|
data: any;
|
|
40
85
|
formData: BankFormValues;
|
|
41
|
-
}, AsyncThunkParams<BankFormValues>, {
|
|
86
|
+
}, AsyncThunkParams<BankFormValues>, {
|
|
87
|
+
state?: unknown;
|
|
88
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
89
|
+
extra?: unknown;
|
|
90
|
+
rejectValue?: unknown;
|
|
91
|
+
serializedErrorType?: unknown;
|
|
92
|
+
pendingMeta?: unknown;
|
|
93
|
+
fulfilledMeta?: unknown;
|
|
94
|
+
rejectedMeta?: unknown;
|
|
95
|
+
}>;
|
|
42
96
|
export declare const checkIbanBank: import("@reduxjs/toolkit").AsyncThunk<{
|
|
43
97
|
data: any;
|
|
44
98
|
}, {
|
|
45
99
|
iban: string;
|
|
46
100
|
cancelToken: CancelToken;
|
|
47
101
|
onSuccess?: (() => void) | undefined;
|
|
48
|
-
}, {
|
|
102
|
+
}, {
|
|
103
|
+
state?: unknown;
|
|
104
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
105
|
+
extra?: unknown;
|
|
106
|
+
rejectValue?: unknown;
|
|
107
|
+
serializedErrorType?: unknown;
|
|
108
|
+
pendingMeta?: unknown;
|
|
109
|
+
fulfilledMeta?: unknown;
|
|
110
|
+
rejectedMeta?: unknown;
|
|
111
|
+
}>;
|
|
49
112
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
50
113
|
response: any;
|
|
51
114
|
formData: void;
|
|
52
|
-
} | undefined, void, {
|
|
53
|
-
|
|
54
|
-
|
|
115
|
+
} | undefined, void, {
|
|
116
|
+
state?: unknown;
|
|
117
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
118
|
+
extra?: unknown;
|
|
119
|
+
rejectValue?: unknown;
|
|
120
|
+
serializedErrorType?: unknown;
|
|
121
|
+
pendingMeta?: unknown;
|
|
122
|
+
fulfilledMeta?: unknown;
|
|
123
|
+
rejectedMeta?: unknown;
|
|
124
|
+
}>;
|
|
125
|
+
export declare const onCloseCompleteBank: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
126
|
+
state?: unknown;
|
|
127
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
128
|
+
extra?: unknown;
|
|
129
|
+
rejectValue?: unknown;
|
|
130
|
+
serializedErrorType?: unknown;
|
|
131
|
+
pendingMeta?: unknown;
|
|
132
|
+
fulfilledMeta?: unknown;
|
|
133
|
+
rejectedMeta?: unknown;
|
|
134
|
+
}>;
|
|
135
|
+
type VerifyData = {
|
|
55
136
|
token: string;
|
|
56
137
|
};
|
|
57
138
|
export interface BankData {
|
|
@@ -69,7 +150,7 @@ export declare const bankSlice: import("@reduxjs/toolkit").Slice<BankState, {
|
|
|
69
150
|
resetOTPScreen: (state: BankState) => void;
|
|
70
151
|
bankStatementUploadingStatus: (state: BankState, action: ActionState<boolean>) => void;
|
|
71
152
|
}, "bank/store">;
|
|
72
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
153
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/resetOTPScreen">, bankStatementUploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "bank/store/bankStatementUploadingStatus">;
|
|
73
154
|
declare const _default: import("redux").Reducer<BankState, import("redux").AnyAction>;
|
|
74
155
|
export default _default;
|
|
75
156
|
export declare const bankSelector: (state: RootState) => BankState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -281,13 +281,15 @@ export var checkIbanBank = createAsyncThunk('checkIbanBank', function (_a) {
|
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
export var updateBoardSuccess = createAsyncThunk('updateBoardBankSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
284
|
-
var _a, settings, bank, _b, id, infoId, payload, data, boardInfoData;
|
|
285
|
-
var
|
|
286
|
-
return __generator(this, function (
|
|
287
|
-
switch (
|
|
284
|
+
var _a, settings, bank, verify, _b, id, infoId, _c, showBoard, mode, payload, data, boardInfoData;
|
|
285
|
+
var _d, _e, _f, _g, _h, _j, _k, _l;
|
|
286
|
+
return __generator(this, function (_m) {
|
|
287
|
+
switch (_m.label) {
|
|
288
288
|
case 0:
|
|
289
289
|
_a = thunkApi.getState(), settings = _a.settings, bank = _a.bank;
|
|
290
|
-
|
|
290
|
+
verify = bank.data.verify;
|
|
291
|
+
_b = verify.responseBody || {}, id = _b.board_id, infoId = _b.board_info_id;
|
|
292
|
+
_c = settings.data.appConfig, showBoard = _c.showBoard, mode = _c.mode;
|
|
291
293
|
if (!id)
|
|
292
294
|
return [2];
|
|
293
295
|
payload = {
|
|
@@ -297,15 +299,20 @@ export var updateBoardSuccess = createAsyncThunk('updateBoardBankSuccess', funct
|
|
|
297
299
|
};
|
|
298
300
|
return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
|
|
299
301
|
case 1:
|
|
300
|
-
data =
|
|
302
|
+
data = _m.sent();
|
|
303
|
+
if (!showBoard && mode === 'content') {
|
|
304
|
+
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, {});
|
|
305
|
+
(_g = (_f = settings.data.appConfig).onFlowCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, { data: data });
|
|
306
|
+
return [2, { response: __assign({}, data), formData: params }];
|
|
307
|
+
}
|
|
301
308
|
return [4, API.boardService.retrieveBoardInfoStatus(id)];
|
|
302
309
|
case 2:
|
|
303
|
-
boardInfoData =
|
|
310
|
+
boardInfoData = _m.sent();
|
|
304
311
|
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
305
312
|
case 3:
|
|
306
|
-
|
|
307
|
-
(
|
|
308
|
-
(
|
|
313
|
+
_m.sent();
|
|
314
|
+
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, {});
|
|
315
|
+
(_l = (_k = settings.data.appConfig).onFlowCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, { data: data });
|
|
309
316
|
thunkApi.dispatch(handleNextScreenStep());
|
|
310
317
|
return [2, { response: __assign(__assign({}, data), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }), formData: params }];
|
|
311
318
|
}
|
|
@@ -1,19 +1,55 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
2
|
import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
|
-
export declare const createVerifyTokenBy: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
3
|
+
export declare const createVerifyTokenBy: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
4
|
+
state?: unknown;
|
|
5
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
6
|
+
extra?: unknown;
|
|
7
|
+
rejectValue?: unknown;
|
|
8
|
+
serializedErrorType?: unknown;
|
|
9
|
+
pendingMeta?: unknown;
|
|
10
|
+
fulfilledMeta?: unknown;
|
|
11
|
+
rejectedMeta?: unknown;
|
|
12
|
+
}>;
|
|
4
13
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
14
|
data: any;
|
|
6
|
-
}, void, {
|
|
15
|
+
}, void, {
|
|
16
|
+
state?: unknown;
|
|
17
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
18
|
+
extra?: unknown;
|
|
19
|
+
rejectValue?: unknown;
|
|
20
|
+
serializedErrorType?: unknown;
|
|
21
|
+
pendingMeta?: unknown;
|
|
22
|
+
fulfilledMeta?: unknown;
|
|
23
|
+
rejectedMeta?: unknown;
|
|
24
|
+
}>;
|
|
7
25
|
export declare const verifyBoardLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
26
|
data: any;
|
|
9
27
|
formData: OTPFormValues;
|
|
10
|
-
}, OTPFormValues, {
|
|
28
|
+
}, OTPFormValues, {
|
|
29
|
+
state?: unknown;
|
|
30
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
31
|
+
extra?: unknown;
|
|
32
|
+
rejectValue?: unknown;
|
|
33
|
+
serializedErrorType?: unknown;
|
|
34
|
+
pendingMeta?: unknown;
|
|
35
|
+
fulfilledMeta?: unknown;
|
|
36
|
+
rejectedMeta?: unknown;
|
|
37
|
+
}>;
|
|
11
38
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
12
39
|
data: any;
|
|
13
40
|
}, {
|
|
14
41
|
boardId: string;
|
|
15
42
|
boardInfoId: string;
|
|
16
|
-
}, {
|
|
43
|
+
}, {
|
|
44
|
+
state?: unknown;
|
|
45
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
46
|
+
extra?: unknown;
|
|
47
|
+
rejectValue?: unknown;
|
|
48
|
+
serializedErrorType?: unknown;
|
|
49
|
+
pendingMeta?: unknown;
|
|
50
|
+
fulfilledMeta?: unknown;
|
|
51
|
+
rejectedMeta?: unknown;
|
|
52
|
+
}>;
|
|
17
53
|
export interface BoardData {
|
|
18
54
|
verify: ResponseData;
|
|
19
55
|
otpData: OTPFormValues & ResponseData;
|
|
@@ -27,7 +63,7 @@ export declare const boardSlice: import("@reduxjs/toolkit").Slice<BoardState, {
|
|
|
27
63
|
stopLoader: (state: BoardState) => void;
|
|
28
64
|
resetOTPScreen: (state: BoardState) => void;
|
|
29
65
|
}, "bank/store">;
|
|
30
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
66
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/stopLoader">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"bank/store/resetOTPScreen">;
|
|
31
67
|
declare const _default: import("redux").Reducer<BoardState, import("redux").AnyAction>;
|
|
32
68
|
export default _default;
|
|
33
69
|
export declare const boardSelector: (state: RootState) => BoardState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|