@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
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { TooltipProps } from '@mui/material/Tooltip';
|
|
3
3
|
export type { TooltipProps };
|
|
4
4
|
declare const _default: React.MemoExoticComponent<{
|
|
5
|
-
({ children, title, ...rest }: TooltipProps):
|
|
5
|
+
({ children, title, ...rest }: TooltipProps): JSX.Element;
|
|
6
6
|
defaultProps: {
|
|
7
7
|
placement: string;
|
|
8
8
|
};
|
|
@@ -5,7 +5,7 @@ export interface WarningProps extends BoxProps {
|
|
|
5
5
|
warningType?: 'alert' | 'error' | 'hint';
|
|
6
6
|
}
|
|
7
7
|
declare const _default: React.MemoExoticComponent<{
|
|
8
|
-
({ children, warningType, ...rest }: WarningProps):
|
|
8
|
+
({ children, warningType, ...rest }: WarningProps): JSX.Element;
|
|
9
9
|
defaultProps: {
|
|
10
10
|
warningType: string;
|
|
11
11
|
};
|
package/build/constants/app.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const LOCAL_STORAGE_KEYS: {
|
|
|
11
11
|
export declare const SCOPE_AUTH = "auth";
|
|
12
12
|
export declare const DEFAULT_COUNTRY_ISO2 = "KW";
|
|
13
13
|
export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
|
|
14
|
+
export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
|
|
14
15
|
export declare const EXTERNAL_LINKS: {
|
|
15
16
|
TOS_EN: string;
|
|
16
17
|
TOS_AR: string;
|
|
@@ -90,6 +91,7 @@ export declare const CONNECT_STEP_NAMES: {
|
|
|
90
91
|
VERIFY_AUTH_MOBILE: string;
|
|
91
92
|
CREATE_AUTH_NID: string;
|
|
92
93
|
VERIFY_AUTH_NID: string;
|
|
94
|
+
UPDATE_LEAD_DOB: string;
|
|
93
95
|
UPDATE_LEAD_INDIVIDUAL: string;
|
|
94
96
|
UPDATE_LEAD_BRAND: string;
|
|
95
97
|
UPDATE_BRAND_INFO: string;
|
|
@@ -106,6 +108,7 @@ export declare const AUTH_STEP_NAMES: {
|
|
|
106
108
|
VERIFY_AUTH_EMAIL: string;
|
|
107
109
|
CREATE_AUTH_NID: string;
|
|
108
110
|
VERIFY_AUTH_NID: string;
|
|
111
|
+
UPDATE_DOB_INFO: string;
|
|
109
112
|
};
|
|
110
113
|
export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
111
114
|
CREATE_AUTH_MOBILE: string;
|
|
@@ -116,6 +119,7 @@ export declare const CONNECT_EXPRESS_STEP_NAMES: {
|
|
|
116
119
|
VERIFY_AUTH_NID: string;
|
|
117
120
|
IDENTITY_AUTH: string;
|
|
118
121
|
VERIFY_IDENTITY_AUTH: string;
|
|
122
|
+
UPDATE_LEAD_DOB: string;
|
|
119
123
|
UPDATE_LEAD_INDIVIDUAL: string;
|
|
120
124
|
UPDATE_LEAD_BRAND_BUSINESS: string;
|
|
121
125
|
UPDATE_BRAND_INFO: string;
|
|
@@ -137,6 +141,7 @@ export declare const BUSINESS_STEP_NAMES: {
|
|
|
137
141
|
IDENTITY_AUTH: string;
|
|
138
142
|
CREATE_AUTH_CIVIL_ID: string;
|
|
139
143
|
IDENTITY_VERIFY_AUTH: string;
|
|
144
|
+
BUSINESS_DOB_INFO: string;
|
|
140
145
|
BUSINESS_CR_INFO: string;
|
|
141
146
|
BUSINESS_INFO_CONFIRM: string;
|
|
142
147
|
BUSINESS_CR_ACTIVITIES: string;
|
|
@@ -250,7 +255,7 @@ export declare enum DeleteFileStatus {
|
|
|
250
255
|
ERROR = "error",
|
|
251
256
|
SUCCESS = "success"
|
|
252
257
|
}
|
|
253
|
-
export type FileInfo = {
|
|
258
|
+
export declare type FileInfo = {
|
|
254
259
|
fileId: string;
|
|
255
260
|
docId: string;
|
|
256
261
|
name: string;
|
package/build/constants/app.js
CHANGED
|
@@ -11,6 +11,7 @@ export var LOCAL_STORAGE_KEYS = {
|
|
|
11
11
|
export var SCOPE_AUTH = 'auth';
|
|
12
12
|
export var DEFAULT_COUNTRY_ISO2 = 'KW';
|
|
13
13
|
export var NAFATH_VERIFICATION_FAILED = 'nafath_verification_failed';
|
|
14
|
+
export var COLLECT_DOB_INFO_NAFATH = 'collect_date_of_birth';
|
|
14
15
|
export var EXTERNAL_LINKS = {
|
|
15
16
|
TOS_EN: '/en/terms-conditions',
|
|
16
17
|
TOS_AR: '/ar/terms-conditions',
|
|
@@ -60,7 +61,7 @@ export var CONNECT_SCREENS_NAVIGATION = [
|
|
|
60
61
|
},
|
|
61
62
|
{
|
|
62
63
|
name: 'CONNECT_VERIFY_NAFATH_STEP',
|
|
63
|
-
next: 'CONNECT_INDIVIDUAL_STEP',
|
|
64
|
+
next: ['CONNECT_INDIVIDUAL_STEP', 'CONNECT_DOB_STEP'],
|
|
64
65
|
prev: 'CONNECT_NID_STEP',
|
|
65
66
|
order: 2
|
|
66
67
|
},
|
|
@@ -70,10 +71,16 @@ export var CONNECT_SCREENS_NAVIGATION = [
|
|
|
70
71
|
prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP'],
|
|
71
72
|
order: 2
|
|
72
73
|
},
|
|
74
|
+
{
|
|
75
|
+
name: 'CONNECT_DOB_STEP',
|
|
76
|
+
next: 'CONNECT_INDIVIDUAL_STEP',
|
|
77
|
+
prev: 'CONNECT_NID_STEP',
|
|
78
|
+
order: 2
|
|
79
|
+
},
|
|
73
80
|
{
|
|
74
81
|
name: 'CONNECT_INDIVIDUAL_STEP',
|
|
75
82
|
next: 'CONNECT_MERCHANT_INFO_STEP',
|
|
76
|
-
prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP'],
|
|
83
|
+
prev: ['CONNECT_MOBILE_STEP', 'CONNECT_NID_STEP', 'CONNECT_CIVIL_ID_STEP', 'CONNECT_DOB_STEP'],
|
|
77
84
|
order: 3
|
|
78
85
|
},
|
|
79
86
|
{
|
|
@@ -130,6 +137,7 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
130
137
|
name: 'CONNECT_EXPRESS_VERIFY_NAFATH_STEP',
|
|
131
138
|
next: [
|
|
132
139
|
'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
140
|
+
'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
|
|
133
141
|
'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP',
|
|
134
142
|
'CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP'
|
|
135
143
|
],
|
|
@@ -190,7 +198,11 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
190
198
|
},
|
|
191
199
|
{
|
|
192
200
|
name: 'CONNECT_EXPRESS_IDENTITY_VERIFY_NAFATH_STEP',
|
|
193
|
-
next: [
|
|
201
|
+
next: [
|
|
202
|
+
'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
203
|
+
'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
|
|
204
|
+
'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'
|
|
205
|
+
],
|
|
194
206
|
prev: 'CONNECT_EXPRESS_NID_MISSED_STEP',
|
|
195
207
|
order: 4
|
|
196
208
|
},
|
|
@@ -200,6 +212,12 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
200
212
|
prev: 'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP',
|
|
201
213
|
order: 4
|
|
202
214
|
},
|
|
215
|
+
{
|
|
216
|
+
name: 'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP',
|
|
217
|
+
next: ['CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP', 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'],
|
|
218
|
+
prev: ['CONNECT_EXPRESS_NID_STEP', 'CONNECT_EXPRESS_NID_MISSED_STEP'],
|
|
219
|
+
order: 5
|
|
220
|
+
},
|
|
203
221
|
{
|
|
204
222
|
name: 'CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP',
|
|
205
223
|
next: ['CONNECT_EXPRESS_COLLECT_BUSINESS_INFO_STEP', 'CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP'],
|
|
@@ -208,7 +226,8 @@ export var CONNECT_EXPRESS_SCREENS_NAVIGATION = [
|
|
|
208
226
|
'CONNECT_EXPRESS_NID_STEP',
|
|
209
227
|
'CONNECT_EXPRESS_CIVIL_ID_STEP',
|
|
210
228
|
'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP',
|
|
211
|
-
'CONNECT_EXPRESS_NID_MISSED_STEP'
|
|
229
|
+
'CONNECT_EXPRESS_NID_MISSED_STEP',
|
|
230
|
+
'CONNECT_EXPRESS_COLLECT_DOB_INFO_STEP'
|
|
212
231
|
],
|
|
213
232
|
order: 5
|
|
214
233
|
},
|
|
@@ -294,7 +313,7 @@ export var AUTH_SCREENS_NAVIGATION = [
|
|
|
294
313
|
},
|
|
295
314
|
{
|
|
296
315
|
name: 'AUTH_NAFATH_VERIFY_STEP',
|
|
297
|
-
next: 'AUTH_PREPARING_DATA_STEP',
|
|
316
|
+
next: ['AUTH_PREPARING_DATA_STEP', 'AUTH_DOB_STEP'],
|
|
298
317
|
prev: 'AUTH_NID_STEP',
|
|
299
318
|
order: 2
|
|
300
319
|
},
|
|
@@ -316,6 +335,12 @@ export var AUTH_SCREENS_NAVIGATION = [
|
|
|
316
335
|
prev: 'AUTH_CIVIL_ID_STEP',
|
|
317
336
|
order: 2
|
|
318
337
|
},
|
|
338
|
+
{
|
|
339
|
+
name: 'AUTH_DOB_STEP',
|
|
340
|
+
next: 'AUTH_PREPARING_DATA_STEP',
|
|
341
|
+
prev: 'AUTH_NID_STEP',
|
|
342
|
+
order: 2
|
|
343
|
+
},
|
|
319
344
|
{
|
|
320
345
|
name: 'AUTH_PREPARING_DATA_STEP',
|
|
321
346
|
next: ['AUTH_AUTHENTICATION_LIST_STEP', 'AUTH_ACCOUNT_NOT_FOUND_STEP'],
|
|
@@ -401,14 +426,20 @@ export var BUSINESS_SCREENS_NAVIGATION = [
|
|
|
401
426
|
},
|
|
402
427
|
{
|
|
403
428
|
name: 'BUSINESS_VERIFY_NAFATH_STEP',
|
|
404
|
-
next: 'BUSINESS_BUSINESS_TYPE_STEP',
|
|
429
|
+
next: ['BUSINESS_BUSINESS_TYPE_STEP', 'BUSINESS_DOB_STEP'],
|
|
405
430
|
prev: 'BUSINESS_IDBOD_STEP',
|
|
406
431
|
order: 3
|
|
407
432
|
},
|
|
433
|
+
{
|
|
434
|
+
name: 'BUSINESS_DOB_STEP',
|
|
435
|
+
next: 'BUSINESS_BUSINESS_TYPE_STEP',
|
|
436
|
+
prev: 'BUSINESS_IDBOD_STEP',
|
|
437
|
+
order: 2
|
|
438
|
+
},
|
|
408
439
|
{
|
|
409
440
|
name: 'BUSINESS_BUSINESS_TYPE_STEP',
|
|
410
441
|
next: ['BUSINESS_ACTIVITIES_STEP', 'BUSINESS_VERIFY_BRAND_INFO'],
|
|
411
|
-
prev: 'BUSINESS_IDBOD_STEP',
|
|
442
|
+
prev: ['BUSINESS_IDBOD_STEP', 'BUSINESS_DOB_STEP'],
|
|
412
443
|
order: 2
|
|
413
444
|
},
|
|
414
445
|
{
|
|
@@ -881,6 +912,7 @@ export var CONNECT_STEP_NAMES = {
|
|
|
881
912
|
VERIFY_AUTH_MOBILE: 'connect_verify_auth_mobile',
|
|
882
913
|
CREATE_AUTH_NID: 'connect_create_auth_nid',
|
|
883
914
|
VERIFY_AUTH_NID: 'connect_verify_auth_nid',
|
|
915
|
+
UPDATE_LEAD_DOB: 'connect_update_lead_dob',
|
|
884
916
|
UPDATE_LEAD_INDIVIDUAL: 'connect_update_lead_individual',
|
|
885
917
|
UPDATE_LEAD_BRAND: 'connect_update_lead_brand',
|
|
886
918
|
UPDATE_BRAND_INFO: 'connect_update_brand_info',
|
|
@@ -896,7 +928,8 @@ export var AUTH_STEP_NAMES = {
|
|
|
896
928
|
VERIFY_AUTH_MOBILE: 'auth_verify_auth_mobile',
|
|
897
929
|
VERIFY_AUTH_EMAIL: 'auth_verify_auth_email',
|
|
898
930
|
CREATE_AUTH_NID: 'auth_create_auth_nid',
|
|
899
|
-
VERIFY_AUTH_NID: 'auth_verify_auth_nid'
|
|
931
|
+
VERIFY_AUTH_NID: 'auth_verify_auth_nid',
|
|
932
|
+
UPDATE_DOB_INFO: 'auth_update_dob_info'
|
|
900
933
|
};
|
|
901
934
|
export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
902
935
|
CREATE_AUTH_MOBILE: 'connect_express_create_auth_mobile',
|
|
@@ -907,6 +940,7 @@ export var CONNECT_EXPRESS_STEP_NAMES = {
|
|
|
907
940
|
VERIFY_AUTH_NID: 'connect_express_verify_auth_nid',
|
|
908
941
|
IDENTITY_AUTH: 'connect_express_identity_auth',
|
|
909
942
|
VERIFY_IDENTITY_AUTH: 'connect_express_verify_identity_auth',
|
|
943
|
+
UPDATE_LEAD_DOB: 'connect_express_update_lead_dob',
|
|
910
944
|
UPDATE_LEAD_INDIVIDUAL: 'connect_express_update_lead_individual',
|
|
911
945
|
UPDATE_LEAD_BRAND_BUSINESS: 'connect_express_update_lead_brand_business',
|
|
912
946
|
UPDATE_BRAND_INFO: 'connect_express_update_brand_info',
|
|
@@ -928,6 +962,7 @@ export var BUSINESS_STEP_NAMES = {
|
|
|
928
962
|
IDENTITY_AUTH: 'business_identity_auth',
|
|
929
963
|
CREATE_AUTH_CIVIL_ID: 'business_create_auth_civil_id',
|
|
930
964
|
IDENTITY_VERIFY_AUTH: 'business_identity_auth_verify',
|
|
965
|
+
BUSINESS_DOB_INFO: 'business_dob_info',
|
|
931
966
|
BUSINESS_CR_INFO: 'business_cr_info',
|
|
932
967
|
BUSINESS_INFO_CONFIRM: 'business_info_confirm',
|
|
933
968
|
BUSINESS_CR_ACTIVITIES: 'business_cr_activities',
|
|
@@ -1,235 +1,68 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ActionState, AuthEmailFormValues, AuthForType, AuthMerchantFormValues, AuthenticationListFormValues, CivilFormValues, CountryCode, FlowsTypes, MobileFormValues, NIDFormValues, OTPFormValues, PasswordFormValues, SharedState } from '../../../@types';
|
|
3
|
-
export declare const updateBusinessCountry: 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
|
-
}>;
|
|
2
|
+
import { ActionState, AuthEmailFormValues, AuthForType, AuthMerchantFormValues, AuthenticationListFormValues, CivilFormValues, CountryCode, DOBFormValues, FlowsTypes, MobileFormValues, NIDFormValues, OTPFormValues, PasswordFormValues, SharedState } from '../../../@types';
|
|
3
|
+
export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
13
4
|
export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
14
5
|
data: any;
|
|
15
6
|
countryCode: CountryCode;
|
|
16
|
-
}, string, {
|
|
17
|
-
state?: unknown;
|
|
18
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
19
|
-
extra?: unknown;
|
|
20
|
-
rejectValue?: unknown;
|
|
21
|
-
serializedErrorType?: unknown;
|
|
22
|
-
pendingMeta?: unknown;
|
|
23
|
-
fulfilledMeta?: unknown;
|
|
24
|
-
rejectedMeta?: unknown;
|
|
25
|
-
}>;
|
|
7
|
+
}, string, {}>;
|
|
26
8
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
27
9
|
response: any;
|
|
28
10
|
formData: MobileFormValues;
|
|
29
|
-
}, MobileFormValues, {
|
|
30
|
-
state?: unknown;
|
|
31
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
32
|
-
extra?: unknown;
|
|
33
|
-
rejectValue?: unknown;
|
|
34
|
-
serializedErrorType?: unknown;
|
|
35
|
-
pendingMeta?: unknown;
|
|
36
|
-
fulfilledMeta?: unknown;
|
|
37
|
-
rejectedMeta?: unknown;
|
|
38
|
-
}>;
|
|
11
|
+
}, MobileFormValues, {}>;
|
|
39
12
|
export declare const resendMobileAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
40
13
|
response: any;
|
|
41
14
|
formData: MobileFormValues;
|
|
42
|
-
}, MobileFormValues, {
|
|
43
|
-
|
|
44
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
45
|
-
extra?: unknown;
|
|
46
|
-
rejectValue?: unknown;
|
|
47
|
-
serializedErrorType?: unknown;
|
|
48
|
-
pendingMeta?: unknown;
|
|
49
|
-
fulfilledMeta?: unknown;
|
|
50
|
-
rejectedMeta?: unknown;
|
|
51
|
-
}>;
|
|
52
|
-
export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {
|
|
53
|
-
state?: unknown;
|
|
54
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
55
|
-
extra?: unknown;
|
|
56
|
-
rejectValue?: unknown;
|
|
57
|
-
serializedErrorType?: unknown;
|
|
58
|
-
pendingMeta?: unknown;
|
|
59
|
-
fulfilledMeta?: unknown;
|
|
60
|
-
rejectedMeta?: unknown;
|
|
61
|
-
}>;
|
|
15
|
+
}, MobileFormValues, {}>;
|
|
16
|
+
export declare const verifyMobileOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
62
17
|
export declare const createEmailAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
63
18
|
response: any;
|
|
64
19
|
formData: AuthEmailFormValues;
|
|
65
|
-
}, AuthEmailFormValues, {
|
|
66
|
-
|
|
67
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
68
|
-
extra?: unknown;
|
|
69
|
-
rejectValue?: unknown;
|
|
70
|
-
serializedErrorType?: unknown;
|
|
71
|
-
pendingMeta?: unknown;
|
|
72
|
-
fulfilledMeta?: unknown;
|
|
73
|
-
rejectedMeta?: unknown;
|
|
74
|
-
}>;
|
|
75
|
-
export declare const verifyEmailPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {
|
|
76
|
-
state?: unknown;
|
|
77
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
78
|
-
extra?: unknown;
|
|
79
|
-
rejectValue?: unknown;
|
|
80
|
-
serializedErrorType?: unknown;
|
|
81
|
-
pendingMeta?: unknown;
|
|
82
|
-
fulfilledMeta?: unknown;
|
|
83
|
-
rejectedMeta?: unknown;
|
|
84
|
-
}>;
|
|
20
|
+
}, AuthEmailFormValues, {}>;
|
|
21
|
+
export declare const verifyEmailPassword: import("@reduxjs/toolkit").AsyncThunk<any, PasswordFormValues, {}>;
|
|
85
22
|
export declare const resendEmailAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
86
23
|
response: any;
|
|
87
24
|
formData: AuthEmailFormValues;
|
|
88
|
-
}, AuthEmailFormValues, {
|
|
89
|
-
|
|
90
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
91
|
-
extra?: unknown;
|
|
92
|
-
rejectValue?: unknown;
|
|
93
|
-
serializedErrorType?: unknown;
|
|
94
|
-
pendingMeta?: unknown;
|
|
95
|
-
fulfilledMeta?: unknown;
|
|
96
|
-
rejectedMeta?: unknown;
|
|
97
|
-
}>;
|
|
98
|
-
export declare const verifyEmailOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {
|
|
99
|
-
state?: unknown;
|
|
100
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
101
|
-
extra?: unknown;
|
|
102
|
-
rejectValue?: unknown;
|
|
103
|
-
serializedErrorType?: unknown;
|
|
104
|
-
pendingMeta?: unknown;
|
|
105
|
-
fulfilledMeta?: unknown;
|
|
106
|
-
rejectedMeta?: unknown;
|
|
107
|
-
}>;
|
|
25
|
+
}, AuthEmailFormValues, {}>;
|
|
26
|
+
export declare const verifyEmailOtp: import("@reduxjs/toolkit").AsyncThunk<any, OTPFormValues, {}>;
|
|
108
27
|
export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
109
28
|
response: any;
|
|
110
29
|
formData: NIDFormValues;
|
|
111
|
-
}, NIDFormValues, {
|
|
112
|
-
state?: unknown;
|
|
113
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
114
|
-
extra?: unknown;
|
|
115
|
-
rejectValue?: unknown;
|
|
116
|
-
serializedErrorType?: unknown;
|
|
117
|
-
pendingMeta?: unknown;
|
|
118
|
-
fulfilledMeta?: unknown;
|
|
119
|
-
rejectedMeta?: unknown;
|
|
120
|
-
}>;
|
|
30
|
+
}, NIDFormValues, {}>;
|
|
121
31
|
interface verifyNafathParams {
|
|
122
32
|
onSuccess?: () => void;
|
|
123
33
|
onFailure?: () => void;
|
|
124
34
|
}
|
|
125
|
-
export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<any, verifyNafathParams, {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
serializedErrorType?: unknown;
|
|
131
|
-
pendingMeta?: unknown;
|
|
132
|
-
fulfilledMeta?: unknown;
|
|
133
|
-
rejectedMeta?: unknown;
|
|
134
|
-
}>;
|
|
35
|
+
export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<any, verifyNafathParams, {}>;
|
|
36
|
+
export declare const updateLeadDOB: import("@reduxjs/toolkit").AsyncThunk<{
|
|
37
|
+
data: any;
|
|
38
|
+
formData: DOBFormValues;
|
|
39
|
+
}, DOBFormValues, {}>;
|
|
135
40
|
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
136
41
|
response: any;
|
|
137
42
|
formData: CivilFormValues;
|
|
138
|
-
}, CivilFormValues, {
|
|
139
|
-
state?: unknown;
|
|
140
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
141
|
-
extra?: unknown;
|
|
142
|
-
rejectValue?: unknown;
|
|
143
|
-
serializedErrorType?: unknown;
|
|
144
|
-
pendingMeta?: unknown;
|
|
145
|
-
fulfilledMeta?: unknown;
|
|
146
|
-
rejectedMeta?: unknown;
|
|
147
|
-
}>;
|
|
43
|
+
}, CivilFormValues, {}>;
|
|
148
44
|
interface verifyPACIParams {
|
|
149
45
|
onSuccess: () => void;
|
|
150
46
|
}
|
|
151
|
-
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIParams, {
|
|
152
|
-
|
|
153
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
154
|
-
extra?: unknown;
|
|
155
|
-
rejectValue?: unknown;
|
|
156
|
-
serializedErrorType?: unknown;
|
|
157
|
-
pendingMeta?: unknown;
|
|
158
|
-
fulfilledMeta?: unknown;
|
|
159
|
-
rejectedMeta?: unknown;
|
|
160
|
-
}>;
|
|
161
|
-
export declare const checkMigrationStatus: import("@reduxjs/toolkit").AsyncThunk<undefined, void, {
|
|
162
|
-
state?: unknown;
|
|
163
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
164
|
-
extra?: unknown;
|
|
165
|
-
rejectValue?: unknown;
|
|
166
|
-
serializedErrorType?: unknown;
|
|
167
|
-
pendingMeta?: unknown;
|
|
168
|
-
fulfilledMeta?: unknown;
|
|
169
|
-
rejectedMeta?: unknown;
|
|
170
|
-
}>;
|
|
47
|
+
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<any, verifyPACIParams, {}>;
|
|
48
|
+
export declare const checkMigrationStatus: import("@reduxjs/toolkit").AsyncThunk<undefined, void, {}>;
|
|
171
49
|
export declare const checkAccountAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
172
50
|
brandList: any;
|
|
173
51
|
entityList: any;
|
|
174
|
-
}, void, {
|
|
175
|
-
state?: unknown;
|
|
176
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
177
|
-
extra?: unknown;
|
|
178
|
-
rejectValue?: unknown;
|
|
179
|
-
serializedErrorType?: unknown;
|
|
180
|
-
pendingMeta?: unknown;
|
|
181
|
-
fulfilledMeta?: unknown;
|
|
182
|
-
rejectedMeta?: unknown;
|
|
183
|
-
}>;
|
|
52
|
+
}, void, {}>;
|
|
184
53
|
export declare const getMerchantList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
185
54
|
list: any;
|
|
186
55
|
brandInfo: import("../../../@types").BrandInfo | undefined;
|
|
187
56
|
entityInfo: import("../../../@types").EntityLicenseAuth | undefined;
|
|
188
|
-
}, AuthenticationListFormValues, {
|
|
189
|
-
state?: unknown;
|
|
190
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
191
|
-
extra?: unknown;
|
|
192
|
-
rejectValue?: unknown;
|
|
193
|
-
serializedErrorType?: unknown;
|
|
194
|
-
pendingMeta?: unknown;
|
|
195
|
-
fulfilledMeta?: unknown;
|
|
196
|
-
rejectedMeta?: unknown;
|
|
197
|
-
}>;
|
|
57
|
+
}, AuthenticationListFormValues, {}>;
|
|
198
58
|
export declare const createEntity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
199
59
|
data: any;
|
|
200
60
|
formData: AuthenticationListFormValues;
|
|
201
|
-
}, AuthenticationListFormValues, {
|
|
202
|
-
state?: unknown;
|
|
203
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
204
|
-
extra?: unknown;
|
|
205
|
-
rejectValue?: unknown;
|
|
206
|
-
serializedErrorType?: unknown;
|
|
207
|
-
pendingMeta?: unknown;
|
|
208
|
-
fulfilledMeta?: unknown;
|
|
209
|
-
rejectedMeta?: unknown;
|
|
210
|
-
}>;
|
|
61
|
+
}, AuthenticationListFormValues, {}>;
|
|
211
62
|
export declare const confirmInfo: import("@reduxjs/toolkit").AsyncThunk<void, AuthenticationListFormValues & AuthMerchantFormValues & {
|
|
212
63
|
authId?: string | undefined;
|
|
213
|
-
}, {
|
|
214
|
-
|
|
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
|
-
}>;
|
|
223
|
-
export declare const onSignUp: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
224
|
-
state?: unknown;
|
|
225
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
226
|
-
extra?: unknown;
|
|
227
|
-
rejectValue?: unknown;
|
|
228
|
-
serializedErrorType?: unknown;
|
|
229
|
-
pendingMeta?: unknown;
|
|
230
|
-
fulfilledMeta?: unknown;
|
|
231
|
-
rejectedMeta?: unknown;
|
|
232
|
-
}>;
|
|
64
|
+
}, {}>;
|
|
65
|
+
export declare const onSignUp: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
233
66
|
interface ResponseData {
|
|
234
67
|
responseData?: Record<string, any>;
|
|
235
68
|
}
|
|
@@ -238,6 +71,7 @@ export interface authData {
|
|
|
238
71
|
nidData: NIDFormValues;
|
|
239
72
|
civilIdData: CivilFormValues;
|
|
240
73
|
emailData: AuthEmailFormValues;
|
|
74
|
+
dobData: DOBFormValues;
|
|
241
75
|
otpData: OTPFormValues & {
|
|
242
76
|
authFor?: AuthForType;
|
|
243
77
|
};
|
|
@@ -263,7 +97,7 @@ export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
|
263
97
|
resetPasswordValue: (state: AuthState) => void;
|
|
264
98
|
resetAuthenticationScreen: (state: AuthState) => void;
|
|
265
99
|
}, "auth/store">;
|
|
266
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
100
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setMobileCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, string>, setLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, resetOTPValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetAuthenticationScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeIsBusinessCountryPassed: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, resetPasswordValue: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
267
101
|
declare const _default: import("redux").Reducer<AuthState, import("redux").AnyAction>;
|
|
268
102
|
export default _default;
|
|
269
103
|
export declare const authSelector: (state: RootState) => AuthState;
|
|
@@ -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]) {
|
|
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import { AuthForType, AuthTypeNumber, FlowsTypes, MigrationStatus } from '../../../@types';
|
|
60
|
-
import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, SCOPE_AUTH, defaultCountry } from '../../../constants';
|
|
60
|
+
import { ADD_NEW_ENTITY, AUTH_STEP_NAMES, COLLECT_DOB_INFO_NAFATH, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, SCOPE_AUTH, defaultCountry } from '../../../constants';
|
|
61
61
|
import API from '../../../api';
|
|
62
62
|
import { handleCurrentActiveScreen, handleNextScreenStep, handleOpen, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
63
63
|
import { findCountryByIddPrefix, openConnect, sendCustomEventToGTM, sleep } from '../../../utils';
|
|
@@ -397,7 +397,7 @@ export var createNafathAuth = createAsyncThunk('auth/createNafathAuth', function
|
|
|
397
397
|
});
|
|
398
398
|
}); });
|
|
399
399
|
export var verifyNafath = createAsyncThunk('auth/verifyNafath', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
400
|
-
var _a, settings, auth, authResponse, expiry, scope, interval, maxCalls,
|
|
400
|
+
var _a, settings, auth, authResponse, expiry, scope, interval, maxCalls, _loop_1, count, state_1;
|
|
401
401
|
var _b, _c, _d, _e, _f;
|
|
402
402
|
return __generator(this, function (_g) {
|
|
403
403
|
switch (_g.label) {
|
|
@@ -408,39 +408,79 @@ export var verifyNafath = createAsyncThunk('auth/verifyNafath', function (params
|
|
|
408
408
|
scope = settings.data.appConfig.scope;
|
|
409
409
|
interval = 3;
|
|
410
410
|
maxCalls = Math.floor(expiry / interval);
|
|
411
|
+
_loop_1 = function (count) {
|
|
412
|
+
var data, isSuccess, isFailed, screen_1;
|
|
413
|
+
return __generator(this, function (_h) {
|
|
414
|
+
switch (_h.label) {
|
|
415
|
+
case 0:
|
|
416
|
+
if (thunkApi.signal.aborted) {
|
|
417
|
+
return [2, "break"];
|
|
418
|
+
}
|
|
419
|
+
return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token)];
|
|
420
|
+
case 1:
|
|
421
|
+
data = _h.sent();
|
|
422
|
+
isSuccess = ((_b = data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
423
|
+
isFailed = ((_c = data === null || data === void 0 ? void 0 : data.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'failed';
|
|
424
|
+
if (isFailed) {
|
|
425
|
+
(_d = params.onFailure) === null || _d === void 0 ? void 0 : _d.call(params);
|
|
426
|
+
return [2, { value: data }];
|
|
427
|
+
}
|
|
428
|
+
if (isSuccess) {
|
|
429
|
+
if (scope === 'merchant') {
|
|
430
|
+
openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
|
|
431
|
+
return [2, { value: data }];
|
|
432
|
+
}
|
|
433
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
|
|
434
|
+
screen_1 = data.step_name === COLLECT_DOB_INFO_NAFATH ? 'AUTH_DOB_STEP' : 'AUTH_PREPARING_DATA_STEP';
|
|
435
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(screen_1)); });
|
|
436
|
+
return [2, { value: data }];
|
|
437
|
+
}
|
|
438
|
+
return [4, sleep(interval * 1000)];
|
|
439
|
+
case 2:
|
|
440
|
+
_h.sent();
|
|
441
|
+
return [2];
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
};
|
|
411
445
|
count = 1;
|
|
412
446
|
_g.label = 1;
|
|
413
447
|
case 1:
|
|
414
|
-
if (!(count <= maxCalls)) return [3,
|
|
415
|
-
|
|
416
|
-
return [3, 5];
|
|
417
|
-
}
|
|
418
|
-
return [4, API.authService.getVerifyAuth(authResponse === null || authResponse === void 0 ? void 0 : authResponse.auth_token)];
|
|
448
|
+
if (!(count <= maxCalls)) return [3, 4];
|
|
449
|
+
return [5, _loop_1(count)];
|
|
419
450
|
case 2:
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
if (
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
}
|
|
427
|
-
if (isSuccess) {
|
|
428
|
-
if (scope === 'merchant') {
|
|
429
|
-
openConnect(settings.data.appConfig.publicKey, settings.data.businessCountry.iso2);
|
|
430
|
-
return [2, data];
|
|
431
|
-
}
|
|
432
|
-
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
|
|
433
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('AUTH_PREPARING_DATA_STEP')); });
|
|
434
|
-
return [2, data];
|
|
435
|
-
}
|
|
436
|
-
return [4, sleep(interval * 1000)];
|
|
451
|
+
state_1 = _g.sent();
|
|
452
|
+
if (typeof state_1 === "object")
|
|
453
|
+
return [2, state_1.value];
|
|
454
|
+
if (state_1 === "break")
|
|
455
|
+
return [3, 4];
|
|
456
|
+
_g.label = 3;
|
|
437
457
|
case 3:
|
|
438
|
-
_g.sent();
|
|
439
|
-
_g.label = 4;
|
|
440
|
-
case 4:
|
|
441
458
|
count++;
|
|
442
459
|
return [3, 1];
|
|
443
|
-
case
|
|
460
|
+
case 4: throw new Error(NAFATH_VERIFICATION_FAILED);
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
}); });
|
|
464
|
+
export var updateLeadDOB = createAsyncThunk('auth/updateLeadDOB', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
465
|
+
var _a, settings, auth, leadId, requestBody, data;
|
|
466
|
+
var _b, _c, _d, _e;
|
|
467
|
+
return __generator(this, function (_f) {
|
|
468
|
+
switch (_f.label) {
|
|
469
|
+
case 0:
|
|
470
|
+
_a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
|
|
471
|
+
leadId = ((_c = (_b = auth.data.responseData) === null || _b === void 0 ? void 0 : _b.authResponse) === null || _c === void 0 ? void 0 : _c.lead_id) || '';
|
|
472
|
+
requestBody = {
|
|
473
|
+
id: leadId,
|
|
474
|
+
date_of_birth: params.dob,
|
|
475
|
+
step_name: AUTH_STEP_NAMES.UPDATE_DOB_INFO,
|
|
476
|
+
encryption_contract: ['date_of_birth']
|
|
477
|
+
};
|
|
478
|
+
return [4, API.leadService.updateLead(requestBody)];
|
|
479
|
+
case 1:
|
|
480
|
+
data = _f.sent();
|
|
481
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
482
|
+
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, requestBody);
|
|
483
|
+
return [2, { data: data, formData: params }];
|
|
444
484
|
}
|
|
445
485
|
});
|
|
446
486
|
}); });
|
|
@@ -777,6 +817,9 @@ var initialState = {
|
|
|
777
817
|
emailData: {
|
|
778
818
|
email: ''
|
|
779
819
|
},
|
|
820
|
+
dobData: {
|
|
821
|
+
dob: ''
|
|
822
|
+
},
|
|
780
823
|
otpData: {
|
|
781
824
|
otp: '',
|
|
782
825
|
authFor: AuthForType.MOBILE
|
|
@@ -989,6 +1032,21 @@ export var authSlice = createSlice({
|
|
|
989
1032
|
if (error !== 'Aborted') {
|
|
990
1033
|
state.error = error;
|
|
991
1034
|
}
|
|
1035
|
+
})
|
|
1036
|
+
.addCase(updateLeadDOB.pending, function (state, action) {
|
|
1037
|
+
state.loading = true;
|
|
1038
|
+
state.error = null;
|
|
1039
|
+
})
|
|
1040
|
+
.addCase(updateLeadDOB.fulfilled, function (state, action) {
|
|
1041
|
+
var _a;
|
|
1042
|
+
state.loading = false;
|
|
1043
|
+
var _b = action.payload, data = _b.data, formData = _b.formData;
|
|
1044
|
+
state.data.dobData = formData;
|
|
1045
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { leadResponse: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.leadResponse), data) });
|
|
1046
|
+
})
|
|
1047
|
+
.addCase(updateLeadDOB.rejected, function (state, action) {
|
|
1048
|
+
state.loading = false;
|
|
1049
|
+
state.error = action.error.message;
|
|
992
1050
|
})
|
|
993
1051
|
.addCase(createCivilIdAuth.pending, function (state) {
|
|
994
1052
|
state.loading = true;
|