@tap-payments/auth-jsconnect 2.8.91-development → 2.8.95-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 +19 -17
- package/build/@types/config.d.ts +1 -1
- package/build/@types/form.d.ts +26 -23
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +14 -14
- 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 +8 -8
- 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/firebase.js +1 -1
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +13 -13
- 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 +3 -21
- package/build/app/settings.js +1 -1
- 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 +2 -1
- package/build/components/AnimationFlow/Loader.d.ts +2 -1
- 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 +2 -1
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +2 -1
- package/build/components/FileInput/DragAndDrop.d.ts +2 -1
- package/build/components/FileInput/UploadInput.d.ts +2 -1
- 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 +2 -1
- 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/app.d.ts +6 -1
- package/build/constants/app.js +43 -8
- package/build/features/app/auth/authStore.d.ts +26 -192
- package/build/features/app/auth/authStore.js +87 -29
- package/build/features/app/bank/bankStore.d.ts +12 -93
- package/build/features/app/bank/bankStore.js +1 -1
- package/build/features/app/board/boardStore.d.ts +5 -41
- package/build/features/app/board/boardStore.js +1 -1
- package/build/features/app/brand/brandStore.d.ts +17 -143
- package/build/features/app/brand/brandStore.js +1 -1
- package/build/features/app/business/businessStore.d.ts +33 -164
- package/build/features/app/business/businessStore.js +55 -8
- package/build/features/app/connect/connectStore.d.ts +27 -153
- package/build/features/app/connect/connectStore.js +53 -6
- package/build/features/app/connectExpress/connectExpressStore.d.ts +48 -263
- package/build/features/app/connectExpress/connectExpressStore.js +74 -14
- package/build/features/app/entity/entityStore.d.ts +12 -93
- package/build/features/app/entity/entityStore.js +1 -1
- package/build/features/app/individual/individualStore.d.ts +24 -186
- package/build/features/app/individual/individualStore.js +1 -1
- package/build/features/app/password/passwordStore.d.ts +15 -123
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +7 -61
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +11 -83
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/auth/Auth.d.ts +2 -1
- package/build/features/auth/Auth.js +10 -2
- 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/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +2 -1
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +2 -1
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
- 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 +1 -1
- package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/auth/screens/DOB/DOB.d.ts +6 -0
- package/build/features/auth/screens/DOB/DOB.js +47 -0
- package/build/features/auth/screens/DOB/DOBForm.d.ts +5 -0
- package/build/features/auth/screens/DOB/DOBForm.js +59 -0
- package/build/features/auth/screens/DOB/index.d.ts +3 -0
- package/build/features/auth/screens/DOB/index.js +2 -0
- package/build/features/auth/screens/DOB/validation.d.ts +8 -0
- package/build/features/auth/screens/DOB/validation.js +4 -0
- package/build/features/auth/screens/Email/Email.d.ts +1 -1
- package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
- package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
- package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/auth/screens/NID/NID.d.ts +1 -1
- 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/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/auth/screens/Password/Password.d.ts +1 -1
- package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/BankName.d.ts +3 -2
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +3 -2
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +3 -2
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/OperatorError/OperatorError.d.ts +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 +2 -1
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -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 +2 -1
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +58 -15
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +37 -13
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +31 -10
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +8 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +3 -2
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +3 -3
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +2 -1
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +2 -1
- package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
- 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 +2 -1
- package/build/features/business/screens/Activities/Activities.d.ts +2 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +25 -9
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +13 -5
- 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 +13 -5
- package/build/features/business/screens/BusinessType/Article.d.ts +3 -2
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +2 -2
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +2 -1
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +2 -1
- 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 +28 -6
- 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 +70 -19
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +2 -1
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +2 -1
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +31 -10
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +3 -2
- package/build/features/business/screens/DOB/DOB.d.ts +6 -0
- package/build/features/business/screens/DOB/DOB.js +45 -0
- package/build/features/business/screens/DOB/DOBForm.d.ts +5 -0
- package/build/features/business/screens/DOB/DOBForm.js +69 -0
- package/build/features/business/screens/DOB/index.d.ts +3 -0
- package/build/features/business/screens/DOB/index.js +2 -0
- package/build/features/business/screens/DOB/validation.d.ts +8 -0
- package/build/features/business/screens/DOB/validation.js +4 -0
- 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/OperatorError/OperatorError.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/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +2 -1
- 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 +2 -1
- 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/DOB/DOB.d.ts +6 -0
- package/build/features/connect/screens/DOB/DOB.js +47 -0
- package/build/features/connect/screens/DOB/DOBForm.d.ts +5 -0
- package/build/features/connect/screens/DOB/DOBForm.js +59 -0
- package/build/features/connect/screens/DOB/index.d.ts +3 -0
- package/build/features/connect/screens/DOB/index.js +2 -0
- package/build/features/connect/screens/DOB/validation.d.ts +8 -0
- package/build/features/connect/screens/DOB/validation.js +4 -0
- 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/Individual.js +10 -3
- 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 +3 -3
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +2 -1
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- 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/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/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +2 -1
- package/build/features/connectExpress/ConnectExpress.js +1 -1
- 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 +2 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +27 -5
- 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 +3 -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 +28 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +8 -3
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +21 -4
- 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/DOB/DOB.d.ts +6 -0
- package/build/features/connectExpress/screens/DOB/DOB.js +47 -0
- package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +5 -0
- package/build/features/connectExpress/screens/DOB/DOBForm.js +63 -0
- package/build/features/connectExpress/screens/DOB/index.d.ts +3 -0
- package/build/features/connectExpress/screens/DOB/index.js +2 -0
- package/build/features/connectExpress/screens/DOB/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/DOB/validation.js +4 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.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/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +8 -3
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +2 -1
- 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/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +25 -9
- 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 +2 -1
- package/build/features/entity/screens/EntityName/Article.d.ts +3 -2
- package/build/features/entity/screens/EntityName/EntityName.d.ts +2 -1
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +58 -15
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +13 -5
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +13 -5
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +2 -1
- 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/OperatorError/OperatorError.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 +20 -0
- package/build/features/individual/Individual.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +27 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +27 -5
- 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 +2 -1
- 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 +25 -9
- package/build/features/individual/screens/IndividualList/UserList.d.ts +2 -1
- 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 +28 -6
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +13 -5
- 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/OperatorError/OperatorError.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 +2 -1
- package/build/features/password/Password.js +1 -1
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +2 -1
- 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 +2 -1
- 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/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- 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 +2 -1
- package/build/features/shared/Address/Address.d.ts +2 -1
- package/build/features/shared/Address/CountryList.d.ts +46 -14
- package/build/features/shared/Address/InputSelect.d.ts +46 -14
- 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 +2 -1
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +2 -1
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/Button.d.ts +2 -1
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +3 -2
- 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 +2 -1
- package/build/features/shared/Button/NafathButton.d.ts +2 -1
- package/build/features/shared/Button/SuccessButton.d.ts +2 -1
- package/build/features/shared/Calender/Calender.d.ts +2 -1
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +3 -2
- package/build/features/shared/Chip/Chip.d.ts +2 -1
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +2 -1
- 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 +2 -1
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +2 -1
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -1
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +2 -1
- package/build/features/shared/Footer/Footer.d.ts +2 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +3 -2
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +14 -6
- package/build/features/shared/InputSelect/InputSelect.d.ts +2 -1
- package/build/features/shared/Mandatory/Mandatory.d.ts +2 -1
- package/build/features/shared/NafathVerification/NafathVerification.d.ts +1 -1
- 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 +2 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +2 -1
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +2 -1
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +2 -1
- 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 +9 -4
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +8 -3
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +9 -4
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +8 -3
- package/build/features/signIn/SignIn.d.ts +2 -1
- 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/OperatorError/OperatorError.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 +2 -1
- package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
- 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 +3 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +2 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +2 -1
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -2
- 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/useDataVerified.d.ts +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormDirtyCheck.d.ts +3 -3
- 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/build/utils/validation.d.ts +1 -0
- package/build/utils/validation.js +3 -0
- package/package.json +1 -1
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams, AuthenticationListFormValues, AuthMerchantFormValues } from '../../../@types';
|
|
2
|
+
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams, AuthenticationListFormValues, AuthMerchantFormValues, DOBFormValues } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
|
-
export declare const updateBusinessCountryAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
5
|
-
state?: unknown;
|
|
6
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
7
|
-
extra?: unknown;
|
|
8
|
-
rejectValue?: unknown;
|
|
9
|
-
serializedErrorType?: unknown;
|
|
10
|
-
pendingMeta?: unknown;
|
|
11
|
-
fulfilledMeta?: unknown;
|
|
12
|
-
rejectedMeta?: unknown;
|
|
13
|
-
}>;
|
|
4
|
+
export declare const updateBusinessCountryAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
14
5
|
export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
15
6
|
data: any;
|
|
16
7
|
countryCode: CountryCode;
|
|
@@ -21,94 +12,31 @@ export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").A
|
|
|
21
12
|
countryCode: CountryCode;
|
|
22
13
|
boardInfo: any;
|
|
23
14
|
boardData: any;
|
|
24
|
-
}, string, {
|
|
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
|
-
}>;
|
|
15
|
+
}, string, {}>;
|
|
34
16
|
export declare const getLeadByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
35
17
|
data: any;
|
|
36
18
|
countryCode: CountryCode;
|
|
37
|
-
}, string, {
|
|
38
|
-
|
|
39
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
40
|
-
extra?: unknown;
|
|
41
|
-
rejectValue?: unknown;
|
|
42
|
-
serializedErrorType?: unknown;
|
|
43
|
-
pendingMeta?: unknown;
|
|
44
|
-
fulfilledMeta?: unknown;
|
|
45
|
-
rejectedMeta?: unknown;
|
|
46
|
-
}>;
|
|
47
|
-
export declare const retrieveEntityListAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
48
|
-
state?: unknown;
|
|
49
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
50
|
-
extra?: unknown;
|
|
51
|
-
rejectValue?: unknown;
|
|
52
|
-
serializedErrorType?: unknown;
|
|
53
|
-
pendingMeta?: unknown;
|
|
54
|
-
fulfilledMeta?: unknown;
|
|
55
|
-
rejectedMeta?: unknown;
|
|
56
|
-
}>;
|
|
19
|
+
}, string, {}>;
|
|
20
|
+
export declare const retrieveEntityListAsync: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
57
21
|
export declare const retrieveAuthenticationListAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
58
22
|
brandList: any;
|
|
59
23
|
entityList: any;
|
|
60
24
|
}, {
|
|
61
25
|
individualId: string;
|
|
62
|
-
}, {
|
|
63
|
-
state?: unknown;
|
|
64
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
65
|
-
extra?: unknown;
|
|
66
|
-
rejectValue?: unknown;
|
|
67
|
-
serializedErrorType?: unknown;
|
|
68
|
-
pendingMeta?: unknown;
|
|
69
|
-
fulfilledMeta?: unknown;
|
|
70
|
-
rejectedMeta?: unknown;
|
|
71
|
-
}>;
|
|
26
|
+
}, {}>;
|
|
72
27
|
export declare const getMerchantListAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
73
28
|
list: any;
|
|
74
29
|
brandInfo: import("../../../@types").BrandInfo | undefined;
|
|
75
30
|
entityInfo: import("../../../@types").EntityLicenseAuth | undefined;
|
|
76
|
-
}, AuthenticationListFormValues, {
|
|
77
|
-
state?: unknown;
|
|
78
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
79
|
-
extra?: unknown;
|
|
80
|
-
rejectValue?: unknown;
|
|
81
|
-
serializedErrorType?: unknown;
|
|
82
|
-
pendingMeta?: unknown;
|
|
83
|
-
fulfilledMeta?: unknown;
|
|
84
|
-
rejectedMeta?: unknown;
|
|
85
|
-
}>;
|
|
31
|
+
}, AuthenticationListFormValues, {}>;
|
|
86
32
|
export declare const createMobileAuthAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
87
33
|
response: any;
|
|
88
34
|
formData: MobileFormValues;
|
|
89
|
-
}, MobileFormValues, {
|
|
90
|
-
state?: unknown;
|
|
91
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
92
|
-
extra?: unknown;
|
|
93
|
-
rejectValue?: unknown;
|
|
94
|
-
serializedErrorType?: unknown;
|
|
95
|
-
pendingMeta?: unknown;
|
|
96
|
-
fulfilledMeta?: unknown;
|
|
97
|
-
rejectedMeta?: unknown;
|
|
98
|
-
}>;
|
|
35
|
+
}, MobileFormValues, {}>;
|
|
99
36
|
export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
100
37
|
response: any;
|
|
101
38
|
formData: MobileFormValues;
|
|
102
|
-
}, MobileFormValues, {
|
|
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
|
-
}>;
|
|
39
|
+
}, MobileFormValues, {}>;
|
|
112
40
|
export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
113
41
|
response: any;
|
|
114
42
|
formData: {
|
|
@@ -117,72 +45,24 @@ export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
117
45
|
dob?: any;
|
|
118
46
|
termAndConditionChecked?: boolean | undefined;
|
|
119
47
|
};
|
|
120
|
-
}, NIDFormValues, {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
rejectedMeta?: unknown;
|
|
129
|
-
}>;
|
|
130
|
-
export declare const verifyNafathAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
|
|
131
|
-
state?: unknown;
|
|
132
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
133
|
-
extra?: unknown;
|
|
134
|
-
rejectValue?: unknown;
|
|
135
|
-
serializedErrorType?: unknown;
|
|
136
|
-
pendingMeta?: unknown;
|
|
137
|
-
fulfilledMeta?: unknown;
|
|
138
|
-
rejectedMeta?: unknown;
|
|
139
|
-
}>;
|
|
48
|
+
}, NIDFormValues, {}>;
|
|
49
|
+
export declare const verifyNafathAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
50
|
+
data: any;
|
|
51
|
+
isNextScreenIsDob?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
data: any;
|
|
54
|
+
isNextScreenIsDob: boolean;
|
|
55
|
+
}, verifyPACIAsyncParams, {}>;
|
|
140
56
|
export declare const createCivilIdAuthAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
141
57
|
response: any;
|
|
142
58
|
formData: CivilFormValues;
|
|
143
|
-
}, CivilFormValues, {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
extra?: unknown;
|
|
147
|
-
rejectValue?: unknown;
|
|
148
|
-
serializedErrorType?: unknown;
|
|
149
|
-
pendingMeta?: unknown;
|
|
150
|
-
fulfilledMeta?: unknown;
|
|
151
|
-
rejectedMeta?: unknown;
|
|
152
|
-
}>;
|
|
153
|
-
export declare const verifyMobileOtpAsync: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {
|
|
154
|
-
state?: unknown;
|
|
155
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
156
|
-
extra?: unknown;
|
|
157
|
-
rejectValue?: unknown;
|
|
158
|
-
serializedErrorType?: unknown;
|
|
159
|
-
pendingMeta?: unknown;
|
|
160
|
-
fulfilledMeta?: unknown;
|
|
161
|
-
rejectedMeta?: unknown;
|
|
162
|
-
}>;
|
|
163
|
-
export declare const verifyPACIAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
|
|
164
|
-
state?: unknown;
|
|
165
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
166
|
-
extra?: unknown;
|
|
167
|
-
rejectValue?: unknown;
|
|
168
|
-
serializedErrorType?: unknown;
|
|
169
|
-
pendingMeta?: unknown;
|
|
170
|
-
fulfilledMeta?: unknown;
|
|
171
|
-
rejectedMeta?: unknown;
|
|
172
|
-
}>;
|
|
59
|
+
}, CivilFormValues, {}>;
|
|
60
|
+
export declare const verifyMobileOtpAsync: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
61
|
+
export declare const verifyPACIAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {}>;
|
|
173
62
|
export declare const createCivilIDAuthIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
174
63
|
response: any;
|
|
175
64
|
formData: CivilFormValues;
|
|
176
|
-
}, CivilFormValues, {
|
|
177
|
-
state?: unknown;
|
|
178
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
179
|
-
extra?: unknown;
|
|
180
|
-
rejectValue?: unknown;
|
|
181
|
-
serializedErrorType?: unknown;
|
|
182
|
-
pendingMeta?: unknown;
|
|
183
|
-
fulfilledMeta?: unknown;
|
|
184
|
-
rejectedMeta?: unknown;
|
|
185
|
-
}>;
|
|
65
|
+
}, CivilFormValues, {}>;
|
|
186
66
|
export declare const createNIDNafathAuthIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
187
67
|
response: {
|
|
188
68
|
random: any;
|
|
@@ -190,36 +70,15 @@ export declare const createNIDNafathAuthIdentityAsync: import("@reduxjs/toolkit"
|
|
|
190
70
|
verify_token: any;
|
|
191
71
|
};
|
|
192
72
|
formData: NIDFormValues;
|
|
193
|
-
}, NIDFormValues, {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}>;
|
|
203
|
-
export declare const verifyNafathIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
|
|
204
|
-
state?: unknown;
|
|
205
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
206
|
-
extra?: unknown;
|
|
207
|
-
rejectValue?: unknown;
|
|
208
|
-
serializedErrorType?: unknown;
|
|
209
|
-
pendingMeta?: unknown;
|
|
210
|
-
fulfilledMeta?: unknown;
|
|
211
|
-
rejectedMeta?: unknown;
|
|
212
|
-
}>;
|
|
213
|
-
export declare const verifyPaciLeadIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {
|
|
214
|
-
state?: unknown;
|
|
215
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
216
|
-
extra?: unknown;
|
|
217
|
-
rejectValue?: unknown;
|
|
218
|
-
serializedErrorType?: unknown;
|
|
219
|
-
pendingMeta?: unknown;
|
|
220
|
-
fulfilledMeta?: unknown;
|
|
221
|
-
rejectedMeta?: unknown;
|
|
222
|
-
}>;
|
|
73
|
+
}, NIDFormValues, {}>;
|
|
74
|
+
export declare const verifyNafathIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
75
|
+
data: any;
|
|
76
|
+
isNextScreenIsDob?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
data: any;
|
|
79
|
+
isNextScreenIsDob: boolean;
|
|
80
|
+
}, verifyPACIAsyncParams, {}>;
|
|
81
|
+
export declare const verifyPaciLeadIdentityAsync: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIAsyncParams, {}>;
|
|
223
82
|
export declare const checkEmailAvailabilityAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
224
83
|
response: any;
|
|
225
84
|
formData: string;
|
|
@@ -227,16 +86,7 @@ export declare const checkEmailAvailabilityAsync: import("@reduxjs/toolkit").Asy
|
|
|
227
86
|
email: string;
|
|
228
87
|
cancelToken: CancelToken;
|
|
229
88
|
onSuccess?: (() => void) | undefined;
|
|
230
|
-
}, {
|
|
231
|
-
state?: unknown;
|
|
232
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
233
|
-
extra?: unknown;
|
|
234
|
-
rejectValue?: unknown;
|
|
235
|
-
serializedErrorType?: unknown;
|
|
236
|
-
pendingMeta?: unknown;
|
|
237
|
-
fulfilledMeta?: unknown;
|
|
238
|
-
rejectedMeta?: unknown;
|
|
239
|
-
}>;
|
|
89
|
+
}, {}>;
|
|
240
90
|
export declare const checkBrandNameAvailabilityAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
241
91
|
response: any;
|
|
242
92
|
formData: {
|
|
@@ -246,110 +96,42 @@ export declare const checkBrandNameAvailabilityAsync: import("@reduxjs/toolkit")
|
|
|
246
96
|
name: string;
|
|
247
97
|
cancelToken: CancelToken;
|
|
248
98
|
onSuccess?: (() => void) | undefined;
|
|
249
|
-
}, {
|
|
250
|
-
state?: unknown;
|
|
251
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
252
|
-
extra?: unknown;
|
|
253
|
-
rejectValue?: unknown;
|
|
254
|
-
serializedErrorType?: unknown;
|
|
255
|
-
pendingMeta?: unknown;
|
|
256
|
-
fulfilledMeta?: unknown;
|
|
257
|
-
rejectedMeta?: unknown;
|
|
258
|
-
}>;
|
|
99
|
+
}, {}>;
|
|
259
100
|
export declare const createAccountAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
260
101
|
accountData: any;
|
|
261
102
|
} | undefined, {
|
|
262
103
|
isRetry: boolean;
|
|
263
|
-
}, {
|
|
264
|
-
state?: unknown;
|
|
265
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
266
|
-
extra?: unknown;
|
|
267
|
-
rejectValue?: unknown;
|
|
268
|
-
serializedErrorType?: unknown;
|
|
269
|
-
pendingMeta?: unknown;
|
|
270
|
-
fulfilledMeta?: unknown;
|
|
271
|
-
rejectedMeta?: unknown;
|
|
272
|
-
}>;
|
|
104
|
+
}, {}>;
|
|
273
105
|
export declare const retrieveDetailsAfterCreateAccountAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
274
106
|
boardInfo: any;
|
|
275
107
|
boardData: any;
|
|
276
|
-
}, void, {
|
|
277
|
-
state?: unknown;
|
|
278
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
279
|
-
extra?: unknown;
|
|
280
|
-
rejectValue?: unknown;
|
|
281
|
-
serializedErrorType?: unknown;
|
|
282
|
-
pendingMeta?: unknown;
|
|
283
|
-
fulfilledMeta?: unknown;
|
|
284
|
-
rejectedMeta?: unknown;
|
|
285
|
-
}>;
|
|
108
|
+
}, void, {}>;
|
|
286
109
|
export declare const createEntity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
287
110
|
data: any;
|
|
288
111
|
formData: AuthenticationListFormValues;
|
|
289
|
-
}, AuthenticationListFormValues, {
|
|
290
|
-
state?: unknown;
|
|
291
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
292
|
-
extra?: unknown;
|
|
293
|
-
rejectValue?: unknown;
|
|
294
|
-
serializedErrorType?: unknown;
|
|
295
|
-
pendingMeta?: unknown;
|
|
296
|
-
fulfilledMeta?: unknown;
|
|
297
|
-
rejectedMeta?: unknown;
|
|
298
|
-
}>;
|
|
112
|
+
}, AuthenticationListFormValues, {}>;
|
|
299
113
|
interface verifyPACIAsyncParams {
|
|
300
114
|
onSuccess: () => void;
|
|
301
115
|
onFailure?: () => void;
|
|
302
116
|
}
|
|
117
|
+
export declare const updateLeadDOBAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
118
|
+
response: any;
|
|
119
|
+
formData: DOBFormValues;
|
|
120
|
+
}, DOBFormValues, {}>;
|
|
303
121
|
export declare const updateLeadIndividualAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
304
122
|
response: any;
|
|
305
123
|
formData: IndividualFormValues;
|
|
306
|
-
}, AsyncThunkParams<IndividualFormValues>, {
|
|
307
|
-
state?: unknown;
|
|
308
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
309
|
-
extra?: unknown;
|
|
310
|
-
rejectValue?: unknown;
|
|
311
|
-
serializedErrorType?: unknown;
|
|
312
|
-
pendingMeta?: unknown;
|
|
313
|
-
fulfilledMeta?: unknown;
|
|
314
|
-
rejectedMeta?: unknown;
|
|
315
|
-
}>;
|
|
124
|
+
}, AsyncThunkParams<IndividualFormValues>, {}>;
|
|
316
125
|
export declare const updateLeadBusinessDataAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
317
126
|
response: any;
|
|
318
127
|
formData: BusinessDataFormValues;
|
|
319
|
-
}, AsyncThunkParams<BusinessDataFormValues>, {
|
|
320
|
-
state?: unknown;
|
|
321
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
322
|
-
extra?: unknown;
|
|
323
|
-
rejectValue?: unknown;
|
|
324
|
-
serializedErrorType?: unknown;
|
|
325
|
-
pendingMeta?: unknown;
|
|
326
|
-
fulfilledMeta?: unknown;
|
|
327
|
-
rejectedMeta?: unknown;
|
|
328
|
-
}>;
|
|
128
|
+
}, AsyncThunkParams<BusinessDataFormValues>, {}>;
|
|
329
129
|
export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
330
130
|
boardInfo: any;
|
|
331
131
|
boardData: any;
|
|
332
132
|
confirmData: any;
|
|
333
|
-
} | undefined, AuthenticationListFormValues & AuthMerchantFormValues, {
|
|
334
|
-
|
|
335
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
336
|
-
extra?: unknown;
|
|
337
|
-
rejectValue?: unknown;
|
|
338
|
-
serializedErrorType?: unknown;
|
|
339
|
-
pendingMeta?: unknown;
|
|
340
|
-
fulfilledMeta?: unknown;
|
|
341
|
-
rejectedMeta?: unknown;
|
|
342
|
-
}>;
|
|
343
|
-
export declare const onCloseCompleteAsync: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
344
|
-
state?: unknown;
|
|
345
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
346
|
-
extra?: unknown;
|
|
347
|
-
rejectValue?: unknown;
|
|
348
|
-
serializedErrorType?: unknown;
|
|
349
|
-
pendingMeta?: unknown;
|
|
350
|
-
fulfilledMeta?: unknown;
|
|
351
|
-
rejectedMeta?: unknown;
|
|
352
|
-
}>;
|
|
133
|
+
} | undefined, AuthenticationListFormValues & AuthMerchantFormValues, {}>;
|
|
134
|
+
export declare const onCloseCompleteAsync: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
353
135
|
interface ResponseData {
|
|
354
136
|
responseData?: Record<string, any>;
|
|
355
137
|
}
|
|
@@ -361,9 +143,12 @@ export interface ConnectExpressData {
|
|
|
361
143
|
otpData: OTPFormValues & {
|
|
362
144
|
authFor: AuthForType;
|
|
363
145
|
};
|
|
146
|
+
dobData: DOBFormValues & ResponseData;
|
|
364
147
|
flowName: FlowsTypes;
|
|
365
148
|
leadId?: string;
|
|
366
|
-
individualData: IndividualFormValues
|
|
149
|
+
individualData: IndividualFormValues & {
|
|
150
|
+
isPrevDob?: boolean;
|
|
151
|
+
};
|
|
367
152
|
businessData: BusinessDataFormValues;
|
|
368
153
|
authenticationData: AuthenticationListFormValues;
|
|
369
154
|
authMerchantData: AuthMerchantFormValues;
|
|
@@ -388,7 +173,7 @@ export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectExpre
|
|
|
388
173
|
resetStore: (state: ConnectExpressState) => void;
|
|
389
174
|
resetIndividualScreen: (state: ConnectExpressState) => void;
|
|
390
175
|
}, "connectExpress/store">;
|
|
391
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
176
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setIsLeadIdPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetAuthenticationScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
392
177
|
declare const _default: import("redux").Reducer<ConnectExpressState, import("redux").AnyAction>;
|
|
393
178
|
export default _default;
|
|
394
179
|
export declare const connectExpressSelector: (state: RootState) => ConnectExpressState;
|
|
@@ -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 (
|
|
27
|
+
while (_) 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]) {
|
|
@@ -59,7 +59,7 @@ import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
|
59
59
|
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen, handleSetCountryByIso2, onCloseComplete, storeAuthId } from '../../../app/settings';
|
|
60
60
|
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '../../../@types';
|
|
61
61
|
import API from '../../../api';
|
|
62
|
-
import { ADD_NEW_ENTITY, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH } from '../../../constants';
|
|
62
|
+
import { ADD_NEW_ENTITY, COLLECT_DOB_INFO_NAFATH, CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH } from '../../../constants';
|
|
63
63
|
import { defaultCountry } from '../../../constants';
|
|
64
64
|
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isOtherThanKWOrSA, sendCustomEventToGTM, sendCustomDimension, getMetaData } from '../../../utils';
|
|
65
65
|
export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -341,7 +341,7 @@ export var createNafathAuth = createAsyncThunk('connectExpress/createNafathAuth'
|
|
|
341
341
|
});
|
|
342
342
|
}); });
|
|
343
343
|
export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
344
|
-
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, isFailed, authId, leadId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
344
|
+
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, isFailed, authId, leadId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount, askDobInfo;
|
|
345
345
|
var _d, _e, _f, _g, _h, _j, _k, _l;
|
|
346
346
|
return __generator(this, function (_m) {
|
|
347
347
|
switch (_m.label) {
|
|
@@ -370,7 +370,7 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
|
|
|
370
370
|
isFailed = ((_g = (_f = data.auth) === null || _f === void 0 ? void 0 : _f.status) === null || _g === void 0 ? void 0 : _g.toLowerCase()) === 'failed';
|
|
371
371
|
if (isFailed) {
|
|
372
372
|
(_h = params.onFailure) === null || _h === void 0 ? void 0 : _h.call(params);
|
|
373
|
-
return [2, data];
|
|
373
|
+
return [2, { data: data }];
|
|
374
374
|
}
|
|
375
375
|
if (!isSuccess) return [3, 6];
|
|
376
376
|
authId = (_j = data.auth) === null || _j === void 0 ? void 0 : _j.id;
|
|
@@ -380,12 +380,12 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
|
|
|
380
380
|
if (settings.data.appConfig.mode === 'popup') {
|
|
381
381
|
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
382
382
|
thunkApi.dispatch(handleOpen(false));
|
|
383
|
-
return [2, data];
|
|
383
|
+
return [2, { data: data }];
|
|
384
384
|
}
|
|
385
385
|
if (redirectUrl) {
|
|
386
386
|
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
387
387
|
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
388
|
-
return [2, data];
|
|
388
|
+
return [2, { data: data }];
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 4];
|
|
@@ -394,7 +394,7 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
|
|
|
394
394
|
_c = _m.sent(), brandList = _c.brandList, entityList = _c.entityList;
|
|
395
395
|
if (brandList.length && entityList.length) {
|
|
396
396
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
397
|
-
return [2, data];
|
|
397
|
+
return [2, { data: data }];
|
|
398
398
|
}
|
|
399
399
|
_m.label = 4;
|
|
400
400
|
case 4: return [4, thunkApi.dispatch(getLeadByIdAsync(leadId)).unwrap()];
|
|
@@ -403,14 +403,18 @@ export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsyn
|
|
|
403
403
|
stepName = data.step_name;
|
|
404
404
|
needToCollectMoreInfo = stepName === 'collect_info';
|
|
405
405
|
creatingAccount = stepName === 'create_account';
|
|
406
|
+
askDobInfo = stepName === COLLECT_DOB_INFO_NAFATH;
|
|
406
407
|
(_l = params.onSuccess) === null || _l === void 0 ? void 0 : _l.call(params);
|
|
408
|
+
if (askDobInfo) {
|
|
409
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
410
|
+
}
|
|
407
411
|
if (creatingAccount) {
|
|
408
412
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
409
413
|
}
|
|
410
414
|
if (needToCollectMoreInfo) {
|
|
411
415
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
412
416
|
}
|
|
413
|
-
return [2, data];
|
|
417
|
+
return [2, { data: data, isNextScreenIsDob: askDobInfo }];
|
|
414
418
|
case 6: return [4, sleep(interval * 1000)];
|
|
415
419
|
case 7:
|
|
416
420
|
_m.sent();
|
|
@@ -676,7 +680,7 @@ export var createNIDNafathAuthIdentityAsync = createAsyncThunk('connectExpress/c
|
|
|
676
680
|
});
|
|
677
681
|
}); });
|
|
678
682
|
export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNafathIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
679
|
-
var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, isFailed, needToCollectMoreInfo, creatingAccount;
|
|
683
|
+
var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, isFailed, needToCollectMoreInfo, creatingAccount, askDobInfo;
|
|
680
684
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
681
685
|
return __generator(this, function (_h) {
|
|
682
686
|
switch (_h.label) {
|
|
@@ -700,7 +704,7 @@ export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNa
|
|
|
700
704
|
isFailed = ((_d = (_c = data.auth) === null || _c === void 0 ? void 0 : _c.status) === null || _d === void 0 ? void 0 : _d.toLowerCase()) === 'failed';
|
|
701
705
|
if (isFailed) {
|
|
702
706
|
(_e = params.onFailure) === null || _e === void 0 ? void 0 : _e.call(params);
|
|
703
|
-
return [2, data];
|
|
707
|
+
return [2, { data: data }];
|
|
704
708
|
}
|
|
705
709
|
if (!isSuccess) return [3, 4];
|
|
706
710
|
return [4, thunkApi.dispatch(getLeadByIdAsync((_f = data.auth) === null || _f === void 0 ? void 0 : _f.lead_id)).unwrap()];
|
|
@@ -708,14 +712,18 @@ export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNa
|
|
|
708
712
|
_h.sent();
|
|
709
713
|
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
710
714
|
creatingAccount = data.step_name === 'create_account';
|
|
715
|
+
askDobInfo = data.step_name === COLLECT_DOB_INFO_NAFATH;
|
|
711
716
|
(_g = params.onSuccess) === null || _g === void 0 ? void 0 : _g.call(params);
|
|
717
|
+
if (askDobInfo) {
|
|
718
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP')); });
|
|
719
|
+
}
|
|
712
720
|
if (creatingAccount) {
|
|
713
721
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
714
722
|
}
|
|
715
723
|
if (needToCollectMoreInfo) {
|
|
716
724
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
717
725
|
}
|
|
718
|
-
return [2, data];
|
|
726
|
+
return [2, { data: data, isNextScreenIsDob: askDobInfo }];
|
|
719
727
|
case 4: return [4, sleep(interval * 1000)];
|
|
720
728
|
case 5:
|
|
721
729
|
_h.sent();
|
|
@@ -962,6 +970,37 @@ export var createEntity = createAsyncThunk('connectExpress/createEntity', functi
|
|
|
962
970
|
}
|
|
963
971
|
});
|
|
964
972
|
}); });
|
|
973
|
+
export var updateLeadDOBAsync = createAsyncThunk('connectExpress/updateLeadDOBAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
974
|
+
var _a, settings, connectExpress, id, dob, payload, data, needToCollectMoreInfo, creatingAccount;
|
|
975
|
+
var _b, _c, _d;
|
|
976
|
+
return __generator(this, function (_e) {
|
|
977
|
+
switch (_e.label) {
|
|
978
|
+
case 0:
|
|
979
|
+
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
980
|
+
id = (((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.leadData) || {}).id;
|
|
981
|
+
dob = params.dob;
|
|
982
|
+
payload = {
|
|
983
|
+
id: id || '',
|
|
984
|
+
date_of_birth: dob,
|
|
985
|
+
step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_DOB,
|
|
986
|
+
encryption_contract: ['date_of_birth']
|
|
987
|
+
};
|
|
988
|
+
return [4, API.leadService.updateLeadExpress(payload)];
|
|
989
|
+
case 1:
|
|
990
|
+
data = _e.sent();
|
|
991
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
992
|
+
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
993
|
+
creatingAccount = data.step_name === 'create_account';
|
|
994
|
+
if (creatingAccount) {
|
|
995
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
996
|
+
}
|
|
997
|
+
if (needToCollectMoreInfo) {
|
|
998
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
999
|
+
}
|
|
1000
|
+
return [2, { response: data, formData: params }];
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
}); });
|
|
965
1004
|
export var updateLeadIndividualAsync = createAsyncThunk('connectExpress/updateLeadIndividualAsync', function (_a, thunkApi) {
|
|
966
1005
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
967
1006
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1158,6 +1197,9 @@ var initialState = {
|
|
|
1158
1197
|
otp: '',
|
|
1159
1198
|
authFor: AuthForType.MOBILE
|
|
1160
1199
|
},
|
|
1200
|
+
dobData: {
|
|
1201
|
+
dob: ''
|
|
1202
|
+
},
|
|
1161
1203
|
individualData: {
|
|
1162
1204
|
name: '',
|
|
1163
1205
|
email: '',
|
|
@@ -1392,7 +1434,9 @@ export var connectSlice = createSlice({
|
|
|
1392
1434
|
.addCase(verifyNafathAsync.fulfilled, function (state, action) {
|
|
1393
1435
|
var _a;
|
|
1394
1436
|
state.loading = false;
|
|
1395
|
-
|
|
1437
|
+
var _b = action.payload, data = _b.data, isNextScreenIsDob = _b.isNextScreenIsDob;
|
|
1438
|
+
state.data.individualData.isPrevDob = isNextScreenIsDob || false;
|
|
1439
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), data) });
|
|
1396
1440
|
})
|
|
1397
1441
|
.addCase(verifyNafathAsync.rejected, function (state, action) {
|
|
1398
1442
|
state.loading = false;
|
|
@@ -1422,10 +1466,12 @@ export var connectSlice = createSlice({
|
|
|
1422
1466
|
state.error = null;
|
|
1423
1467
|
})
|
|
1424
1468
|
.addCase(verifyNafathIdentityAsync.fulfilled, function (state, action) {
|
|
1425
|
-
var _a, _b
|
|
1469
|
+
var _a, _b;
|
|
1426
1470
|
state.loading = false;
|
|
1471
|
+
var _c = action.payload, data = _c.data, isNextScreenIsDob = _c.isNextScreenIsDob;
|
|
1427
1472
|
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1428
|
-
state.data.
|
|
1473
|
+
state.data.individualData.isPrevDob = isNextScreenIsDob || false;
|
|
1474
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), data), { auth: __assign(__assign({}, data === null || data === void 0 ? void 0 : data.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
|
|
1429
1475
|
})
|
|
1430
1476
|
.addCase(verifyNafathIdentityAsync.rejected, function (state, action) {
|
|
1431
1477
|
state.loading = false;
|
|
@@ -1543,6 +1589,20 @@ export var connectSlice = createSlice({
|
|
|
1543
1589
|
if (action.error.message === 'Aborted')
|
|
1544
1590
|
return;
|
|
1545
1591
|
state.error = action.error.message;
|
|
1592
|
+
})
|
|
1593
|
+
.addCase(updateLeadDOBAsync.fulfilled, function (state, action) {
|
|
1594
|
+
state.loading = false;
|
|
1595
|
+
state.error = null;
|
|
1596
|
+
state.data.dobData = action.payload.formData;
|
|
1597
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { dobData: action.payload.response });
|
|
1598
|
+
})
|
|
1599
|
+
.addCase(updateLeadDOBAsync.pending, function (state) {
|
|
1600
|
+
state.loading = true;
|
|
1601
|
+
state.error = null;
|
|
1602
|
+
})
|
|
1603
|
+
.addCase(updateLeadDOBAsync.rejected, function (state, action) {
|
|
1604
|
+
state.loading = false;
|
|
1605
|
+
state.error = action.error.message;
|
|
1546
1606
|
})
|
|
1547
1607
|
.addCase(updateLeadIndividualAsync.fulfilled, function (state, action) {
|
|
1548
1608
|
var _a, _b;
|