@tap-payments/auth-jsconnect 2.8.66-development → 2.8.70-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 +24 -24
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +26 -13
- 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 +11 -10
- package/build/api/file.d.ts +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/index.d.ts +2 -2
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +18 -12
- package/build/api/lead.js +1 -1
- package/build/api/operator.d.ts +2 -2
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +21 -3
- package/build/app/settings.js +1 -1
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +10 -1
- package/build/assets/locales/en.json +10 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +1 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/CheckBox/CheckBox.d.ts +1 -1
- package/build/components/Collapse/Collapse.d.ts +1 -2
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/Form/Form.d.ts +1 -1
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
- package/build/components/List/List.d.ts +1 -1
- package/build/components/ListItem/ListItem.d.ts +1 -1
- package/build/components/Loader/Loader.d.ts +1 -1
- package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
- package/build/components/OTPField/OTPField.d.ts +1 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/components/Providers/ReduxProvider.d.ts +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/Radio/Radio.d.ts +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.d.ts +1 -1
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/Text/Text.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/constants/app.d.ts +2 -1
- package/build/constants/app.js +35 -12
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/build/features/app/auth/authStore.d.ts +195 -25
- package/build/features/app/auth/authStore.js +70 -127
- package/build/features/app/bank/bankStore.d.ts +93 -12
- package/build/features/app/bank/bankStore.js +1 -1
- package/build/features/app/board/boardStore.d.ts +41 -5
- package/build/features/app/board/boardStore.js +1 -1
- package/build/features/app/brand/brandStore.d.ts +143 -17
- package/build/features/app/brand/brandStore.js +1 -1
- package/build/features/app/business/businessStore.d.ts +168 -19
- package/build/features/app/business/businessStore.js +59 -45
- package/build/features/app/connect/connectStore.d.ts +160 -18
- package/build/features/app/connect/connectStore.js +152 -83
- package/build/features/app/connectExpress/connectExpressStore.d.ts +269 -40
- package/build/features/app/connectExpress/connectExpressStore.js +166 -259
- package/build/features/app/entity/entityStore.d.ts +93 -12
- package/build/features/app/entity/entityStore.js +1 -1
- package/build/features/app/individual/individualStore.d.ts +186 -24
- package/build/features/app/individual/individualStore.js +5 -2
- package/build/features/app/password/passwordStore.d.ts +123 -15
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +83 -11
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/auth/Auth.d.ts +1 -4
- package/build/features/auth/Auth.js +8 -8
- 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 -2
- 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 +1 -2
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
- 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/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/IDNumber.js +1 -1
- package/build/features/auth/screens/NID/NID.d.ts +1 -1
- package/build/features/auth/screens/NID/NID.js +4 -10
- package/build/features/auth/screens/NID/validation.d.ts +0 -3
- package/build/features/auth/screens/NID/validation.js +0 -1
- package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTP.js +1 -5
- package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTPInput.js +2 -13
- 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 +5 -0
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/auth/screens/VerifyNafath/index.js +2 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +1 -2
- package/build/features/bank/Bank.js +5 -3
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/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 +1 -2
- package/build/features/board/Board.js +5 -3
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/board/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/Brand.d.ts +1 -2
- package/build/features/brand/Brand.js +5 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/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 +1 -2
- package/build/features/business/Business.js +5 -3
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
- 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 +19 -70
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +10 -31
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
- 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 +5 -0
- package/build/features/business/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/business/screens/VerifyNafath/index.js +2 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +6 -5
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +2 -2
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
- package/build/features/connect/screens/NID/IDNumber.js +2 -2
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/NID/NID.js +5 -11
- package/build/features/connect/screens/NID/validation.d.ts +0 -3
- package/build/features/connect/screens/NID/validation.js +0 -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/OTP/OTPInput.js +3 -11
- 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 +5 -0
- package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyNafath/index.js +2 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
- package/build/features/connectExpress/ConnectExpress.js +6 -5
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
- 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 +1 -1
- 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 +6 -28
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +34 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
- 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/Mobile.js +2 -2
- 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/IDNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/NID.js +4 -9
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
- package/build/features/connectExpress/screens/NID/validation.js +0 -2
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.js +5 -13
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.js +3 -11
- 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 +5 -0
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +1 -2
- package/build/features/entity/Entity.js +5 -3
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/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 +21 -6
- package/build/features/individual/Individual.d.ts +1 -2
- package/build/features/individual/Individual.js +5 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/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 +1 -2
- package/build/features/password/Password.js +6 -4
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/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 +1 -2
- package/build/features/shared/Address/Address.d.ts +1 -2
- package/build/features/shared/Address/CountryList.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Address/InputText.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +1 -1
- package/build/features/shared/Background/LogoBackground.d.ts +1 -1
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/Button.d.ts +1 -2
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/NafathButton.d.ts +7 -0
- package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +13 -3
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Button/index.d.ts +2 -2
- package/build/features/shared/Button/index.js +2 -2
- package/build/features/shared/Calender/Calender.d.ts +1 -2
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
- package/build/features/shared/Chip/Chip.d.ts +1 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
- package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +6 -14
- package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- package/build/features/shared/NafathVerification/NafathVerification.d.ts +13 -0
- package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
- package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
- package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
- package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
- package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
- package/build/features/shared/NafathVerification/index.d.ts +2 -0
- package/build/features/shared/NafathVerification/index.js +2 -0
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
- package/build/features/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/SignIn.js +5 -3
- 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 +1 -2
- package/build/features/tax/Tax.js +5 -3
- 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 +2 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/hooks/useAppConfig.js +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/theme/palette.js +2 -1
- package/build/utils/array.js +1 -1
- package/package.json +1 -1
- package/build/features/auth/screens/NID/DOB.d.ts +0 -7
- package/build/features/auth/screens/NID/DOB.js +0 -47
- package/build/features/business/screens/OTP/OTP.d.ts +0 -8
- package/build/features/business/screens/OTP/OTP.js +0 -90
- package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/business/screens/OTP/OTPInput.js +0 -49
- package/build/features/business/screens/OTP/index.d.ts +0 -3
- package/build/features/business/screens/OTP/index.js +0 -2
- package/build/features/business/screens/OTP/validation.d.ts +0 -8
- package/build/features/business/screens/OTP/validation.js +0 -4
- package/build/features/connect/screens/NID/DOB.d.ts +0 -6
- package/build/features/connect/screens/NID/DOB.js +0 -47
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +0 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -88
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -56
- package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
- package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
- package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
- package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -7
- package/build/features/connectExpress/screens/NID/DOB.js +0 -47
- package/build/features/shared/Button/AbsherButton.d.ts +0 -8
|
@@ -1,31 +1,84 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
2
|
import { ActionState, AuthForType, CivilFormValues, CountryCode, FlowsTypes, IndividualFormValues, MobileFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, BrandFormValues, BrandSegmentFormValues } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
|
-
export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
4
|
+
export declare const updateBusinessCountry: 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
|
+
}>;
|
|
5
14
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
6
15
|
response: any;
|
|
7
16
|
formData: MobileFormValues;
|
|
8
|
-
}, MobileFormValues, {
|
|
17
|
+
}, MobileFormValues, {
|
|
18
|
+
state?: unknown;
|
|
19
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
20
|
+
extra?: unknown;
|
|
21
|
+
rejectValue?: unknown;
|
|
22
|
+
serializedErrorType?: unknown;
|
|
23
|
+
pendingMeta?: unknown;
|
|
24
|
+
fulfilledMeta?: unknown;
|
|
25
|
+
rejectedMeta?: unknown;
|
|
26
|
+
}>;
|
|
9
27
|
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
10
28
|
response: any;
|
|
11
29
|
formData: CivilFormValues;
|
|
12
|
-
}, CivilFormValues, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
30
|
+
}, CivilFormValues, {
|
|
31
|
+
state?: unknown;
|
|
32
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
33
|
+
extra?: unknown;
|
|
34
|
+
rejectValue?: unknown;
|
|
35
|
+
serializedErrorType?: unknown;
|
|
36
|
+
pendingMeta?: unknown;
|
|
37
|
+
fulfilledMeta?: unknown;
|
|
38
|
+
rejectedMeta?: unknown;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
41
|
+
state?: unknown;
|
|
42
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
43
|
+
extra?: unknown;
|
|
44
|
+
rejectValue?: unknown;
|
|
45
|
+
serializedErrorType?: unknown;
|
|
46
|
+
pendingMeta?: unknown;
|
|
47
|
+
fulfilledMeta?: unknown;
|
|
48
|
+
rejectedMeta?: unknown;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
16
51
|
response: any;
|
|
17
52
|
formData: {
|
|
18
53
|
type: string;
|
|
19
54
|
nid: string;
|
|
20
|
-
dob
|
|
55
|
+
dob?: any;
|
|
21
56
|
termAndConditionChecked?: boolean | undefined;
|
|
22
57
|
};
|
|
23
|
-
}, NIDFormValues, {
|
|
58
|
+
}, NIDFormValues, {
|
|
59
|
+
state?: unknown;
|
|
60
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
61
|
+
extra?: unknown;
|
|
62
|
+
rejectValue?: unknown;
|
|
63
|
+
serializedErrorType?: unknown;
|
|
64
|
+
pendingMeta?: unknown;
|
|
65
|
+
fulfilledMeta?: unknown;
|
|
66
|
+
rejectedMeta?: unknown;
|
|
67
|
+
}>;
|
|
24
68
|
export declare const verifyAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
25
69
|
authResponse: any;
|
|
26
70
|
leadResponse: any;
|
|
27
71
|
countryCode: CountryCode;
|
|
28
|
-
}, OTPFormValues, {
|
|
72
|
+
}, OTPFormValues, {
|
|
73
|
+
state?: unknown;
|
|
74
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
75
|
+
extra?: unknown;
|
|
76
|
+
rejectValue?: unknown;
|
|
77
|
+
serializedErrorType?: unknown;
|
|
78
|
+
pendingMeta?: unknown;
|
|
79
|
+
fulfilledMeta?: unknown;
|
|
80
|
+
rejectedMeta?: unknown;
|
|
81
|
+
}>;
|
|
29
82
|
interface verifyPACIParams {
|
|
30
83
|
onSuccess?: () => void;
|
|
31
84
|
}
|
|
@@ -33,18 +86,62 @@ export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
33
86
|
authResponse: any;
|
|
34
87
|
leadResponse: any;
|
|
35
88
|
countryCode: CountryCode;
|
|
36
|
-
}, verifyPACIParams, {
|
|
89
|
+
}, verifyPACIParams, {
|
|
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
|
+
}>;
|
|
99
|
+
interface verifyNafathParams {
|
|
100
|
+
onSuccess?: () => void;
|
|
101
|
+
}
|
|
102
|
+
export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<{
|
|
103
|
+
authResponse: any;
|
|
104
|
+
leadResponse: any;
|
|
105
|
+
countryCode: CountryCode;
|
|
106
|
+
}, verifyNafathParams, {
|
|
107
|
+
state?: unknown;
|
|
108
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
109
|
+
extra?: unknown;
|
|
110
|
+
rejectValue?: unknown;
|
|
111
|
+
serializedErrorType?: unknown;
|
|
112
|
+
pendingMeta?: unknown;
|
|
113
|
+
fulfilledMeta?: unknown;
|
|
114
|
+
rejectedMeta?: unknown;
|
|
115
|
+
}>;
|
|
37
116
|
export declare const updateLeadIndividual: import("@reduxjs/toolkit").AsyncThunk<{
|
|
38
117
|
leadResponse: any;
|
|
39
118
|
formData: IndividualFormValues;
|
|
40
|
-
}, IndividualFormValues, {
|
|
119
|
+
}, IndividualFormValues, {
|
|
120
|
+
state?: unknown;
|
|
121
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
122
|
+
extra?: unknown;
|
|
123
|
+
rejectValue?: unknown;
|
|
124
|
+
serializedErrorType?: unknown;
|
|
125
|
+
pendingMeta?: unknown;
|
|
126
|
+
fulfilledMeta?: unknown;
|
|
127
|
+
rejectedMeta?: unknown;
|
|
128
|
+
}>;
|
|
41
129
|
export declare const retrieveLead: import("@reduxjs/toolkit").AsyncThunk<{
|
|
42
130
|
data: any;
|
|
43
131
|
countryCode: CountryCode;
|
|
44
132
|
}, {
|
|
45
133
|
leadId: string;
|
|
46
134
|
isRedirect?: boolean | undefined;
|
|
47
|
-
}, {
|
|
135
|
+
}, {
|
|
136
|
+
state?: unknown;
|
|
137
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
138
|
+
extra?: unknown;
|
|
139
|
+
rejectValue?: unknown;
|
|
140
|
+
serializedErrorType?: unknown;
|
|
141
|
+
pendingMeta?: unknown;
|
|
142
|
+
fulfilledMeta?: unknown;
|
|
143
|
+
rejectedMeta?: unknown;
|
|
144
|
+
}>;
|
|
48
145
|
export declare const updateLeadBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
49
146
|
response: any;
|
|
50
147
|
formData: BrandFormValues & {
|
|
@@ -52,11 +149,29 @@ export declare const updateLeadBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
52
149
|
};
|
|
53
150
|
}, BrandFormValues & {
|
|
54
151
|
isNewBrand: boolean;
|
|
55
|
-
}, {
|
|
152
|
+
}, {
|
|
153
|
+
state?: unknown;
|
|
154
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
155
|
+
extra?: unknown;
|
|
156
|
+
rejectValue?: unknown;
|
|
157
|
+
serializedErrorType?: unknown;
|
|
158
|
+
pendingMeta?: unknown;
|
|
159
|
+
fulfilledMeta?: unknown;
|
|
160
|
+
rejectedMeta?: unknown;
|
|
161
|
+
}>;
|
|
56
162
|
export declare const updateLeadBrandSegment: import("@reduxjs/toolkit").AsyncThunk<{
|
|
57
163
|
response: any;
|
|
58
164
|
formData: Pick<BrandSegmentFormValues, "teamSize">;
|
|
59
|
-
}, Pick<BrandSegmentFormValues, "teamSize">, {
|
|
165
|
+
}, Pick<BrandSegmentFormValues, "teamSize">, {
|
|
166
|
+
state?: unknown;
|
|
167
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
168
|
+
extra?: unknown;
|
|
169
|
+
rejectValue?: unknown;
|
|
170
|
+
serializedErrorType?: unknown;
|
|
171
|
+
pendingMeta?: unknown;
|
|
172
|
+
fulfilledMeta?: unknown;
|
|
173
|
+
rejectedMeta?: unknown;
|
|
174
|
+
}>;
|
|
60
175
|
export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
61
176
|
response: any;
|
|
62
177
|
formData: string;
|
|
@@ -64,7 +179,16 @@ export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThu
|
|
|
64
179
|
email: string;
|
|
65
180
|
cancelToken: CancelToken;
|
|
66
181
|
onSuccess?: (() => void) | undefined;
|
|
67
|
-
}, {
|
|
182
|
+
}, {
|
|
183
|
+
state?: unknown;
|
|
184
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
185
|
+
extra?: unknown;
|
|
186
|
+
rejectValue?: unknown;
|
|
187
|
+
serializedErrorType?: unknown;
|
|
188
|
+
pendingMeta?: unknown;
|
|
189
|
+
fulfilledMeta?: unknown;
|
|
190
|
+
rejectedMeta?: unknown;
|
|
191
|
+
}>;
|
|
68
192
|
export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
69
193
|
response: any;
|
|
70
194
|
formData: {
|
|
@@ -74,11 +198,29 @@ export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").Asyn
|
|
|
74
198
|
name: string;
|
|
75
199
|
cancelToken: CancelToken;
|
|
76
200
|
onSuccess?: (() => void) | undefined;
|
|
77
|
-
}, {
|
|
201
|
+
}, {
|
|
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
|
+
}>;
|
|
78
211
|
export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
79
212
|
response: any;
|
|
80
213
|
formData: void;
|
|
81
|
-
}, void, {
|
|
214
|
+
}, void, {
|
|
215
|
+
state?: unknown;
|
|
216
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
217
|
+
extra?: unknown;
|
|
218
|
+
rejectValue?: unknown;
|
|
219
|
+
serializedErrorType?: unknown;
|
|
220
|
+
pendingMeta?: unknown;
|
|
221
|
+
fulfilledMeta?: unknown;
|
|
222
|
+
rejectedMeta?: unknown;
|
|
223
|
+
}>;
|
|
82
224
|
export interface ConnectData {
|
|
83
225
|
leadId: string;
|
|
84
226
|
mobileData: (MobileFormValues | undefined) & ResponseData;
|
|
@@ -112,7 +254,7 @@ export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectState
|
|
|
112
254
|
setDefaultCountryCode: (state: ConnectState, action: ActionState<CountryCode>) => void;
|
|
113
255
|
resetStore: (state: ConnectState) => void;
|
|
114
256
|
}, "connect/store">;
|
|
115
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
257
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/clearError">, storeLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "connect/store/storeLeadId">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/stopLoader">, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connect/store/resetMobileScreen">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetOTPScreen">, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetIndividualScreen">, resetMerchantScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetMerchantScreen">, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetNIDScreen">, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetCivilScreen">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetStore">, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connect/store/setDefaultCountryCode">, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "connect/store/storeIsStartFromBusinessCountry">;
|
|
116
258
|
declare const _default: import("redux").Reducer<ConnectState, import("redux").AnyAction>;
|
|
117
259
|
export default _default;
|
|
118
260
|
export declare const connectSelector: (state: RootState) => ConnectState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -173,75 +173,33 @@ export var resendOTPMobile = createAsyncThunk('resendOTPMobile', function (param
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
}); });
|
|
176
|
-
export var
|
|
177
|
-
var
|
|
178
|
-
return __generator(this, function (_c) {
|
|
179
|
-
switch (_c.label) {
|
|
180
|
-
case 0:
|
|
181
|
-
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
182
|
-
_b = connect.data.nidData, nid = _b.nid, dob = _b.dob;
|
|
183
|
-
identification_id_type = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
184
|
-
requestBody = {
|
|
185
|
-
country: settings.data.businessCountry.iso2,
|
|
186
|
-
scope: settings.data.appConfig.scope,
|
|
187
|
-
lang: settings.data.language,
|
|
188
|
-
user_credentail: {
|
|
189
|
-
identification_id: nid,
|
|
190
|
-
identification_id_type: identification_id_type,
|
|
191
|
-
date_of_birth: dob,
|
|
192
|
-
country_code: settings.data.businessCountry.iso2
|
|
193
|
-
},
|
|
194
|
-
sign_in: false,
|
|
195
|
-
is_lead: true,
|
|
196
|
-
step_name: CONNECT_STEP_NAMES.CREATE_AUTH_NID,
|
|
197
|
-
encryption_contract: [
|
|
198
|
-
'user_credentail.country_code',
|
|
199
|
-
'user_credentail.identification_id',
|
|
200
|
-
'user_credentail.identification_id_type',
|
|
201
|
-
'user_credentail.date_of_birth'
|
|
202
|
-
]
|
|
203
|
-
};
|
|
204
|
-
return [4, API.authService.createAuth(requestBody)];
|
|
205
|
-
case 1:
|
|
206
|
-
data = _c.sent();
|
|
207
|
-
return [2, data];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}); });
|
|
211
|
-
export var createNIDAuth = createAsyncThunk('createNIDAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
|
-
var settings, identification_id_type, requestBody, data;
|
|
176
|
+
export var createNafathAuth = createAsyncThunk('connect/createNafathAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
177
|
+
var settings, requestBody, data;
|
|
213
178
|
var _a, _b;
|
|
214
179
|
return __generator(this, function (_c) {
|
|
215
180
|
switch (_c.label) {
|
|
216
181
|
case 0:
|
|
217
182
|
settings = thunkApi.getState().settings;
|
|
218
|
-
identification_id_type = params.nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
219
183
|
requestBody = {
|
|
220
184
|
country: settings.data.businessCountry.iso2,
|
|
221
185
|
scope: settings.data.appConfig.scope,
|
|
222
186
|
lang: settings.data.language,
|
|
223
187
|
user_credentail: {
|
|
224
188
|
identification_id: params.nid,
|
|
225
|
-
identification_id_type:
|
|
226
|
-
date_of_birth: params.dob,
|
|
189
|
+
identification_id_type: IDENTIFICATION_TYPE.NAFATH,
|
|
227
190
|
country_code: settings.data.businessCountry.iso2
|
|
228
191
|
},
|
|
229
192
|
sign_in: false,
|
|
230
193
|
is_lead: true,
|
|
231
194
|
step_name: CONNECT_STEP_NAMES.CREATE_AUTH_NID,
|
|
232
|
-
encryption_contract: [
|
|
233
|
-
'user_credentail.country_code',
|
|
234
|
-
'user_credentail.identification_id',
|
|
235
|
-
'user_credentail.identification_id_type',
|
|
236
|
-
'user_credentail.date_of_birth'
|
|
237
|
-
]
|
|
195
|
+
encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
|
|
238
196
|
};
|
|
239
|
-
return [4, API.authService.
|
|
197
|
+
return [4, API.authService.createAuthKitNID(requestBody)];
|
|
240
198
|
case 1:
|
|
241
199
|
data = _c.sent();
|
|
242
200
|
thunkApi.dispatch(handleNextScreenStep());
|
|
243
|
-
(_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody
|
|
244
|
-
return [2, { response: data, formData: __assign(__assign({}, params), { type:
|
|
201
|
+
(_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody);
|
|
202
|
+
return [2, { response: data, formData: __assign(__assign({}, params), { type: IDENTIFICATION_TYPE.NAFATH }) }];
|
|
245
203
|
}
|
|
246
204
|
});
|
|
247
205
|
}); });
|
|
@@ -400,6 +358,85 @@ export var verifyPACI = createAsyncThunk('connect/verifyPACI', function (params,
|
|
|
400
358
|
}
|
|
401
359
|
});
|
|
402
360
|
}); });
|
|
361
|
+
export var verifyNafath = createAsyncThunk('connect/verifyNafath', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
362
|
+
var _a, settings, connect, responseBody, expiry, interval, maxCalls, count, authResponse, isSuccess, lead_id, leadResponse, countryCode, channels, brand, err_5, brands, err_6, phone;
|
|
363
|
+
var _b, _c, _d, _e, _f;
|
|
364
|
+
return __generator(this, function (_g) {
|
|
365
|
+
switch (_g.label) {
|
|
366
|
+
case 0:
|
|
367
|
+
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
368
|
+
responseBody = connect.data.nidData.responseBody;
|
|
369
|
+
expiry = (responseBody === null || responseBody === void 0 ? void 0 : responseBody.expiry) || 120;
|
|
370
|
+
interval = 3;
|
|
371
|
+
maxCalls = Math.floor(expiry / interval);
|
|
372
|
+
count = 1;
|
|
373
|
+
_g.label = 1;
|
|
374
|
+
case 1:
|
|
375
|
+
if (!(count <= maxCalls)) return [3, 16];
|
|
376
|
+
if (thunkApi.signal.aborted) {
|
|
377
|
+
return [3, 16];
|
|
378
|
+
}
|
|
379
|
+
return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token)];
|
|
380
|
+
case 2:
|
|
381
|
+
authResponse = _g.sent();
|
|
382
|
+
isSuccess = ((_b = authResponse.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'completed';
|
|
383
|
+
if (!isSuccess) return [3, 13];
|
|
384
|
+
lead_id = authResponse.lead_id;
|
|
385
|
+
if (!lead_id)
|
|
386
|
+
throw new Error('Lead id is missing');
|
|
387
|
+
return [4, API.leadService.retrieveLead(lead_id)];
|
|
388
|
+
case 3:
|
|
389
|
+
leadResponse = (_g.sent()).data;
|
|
390
|
+
if ((_c = leadResponse.errors) === null || _c === void 0 ? void 0 : _c.length)
|
|
391
|
+
throw new Error(leadResponse.errors[0].description);
|
|
392
|
+
countryCode = settings.data.businessCountry;
|
|
393
|
+
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
394
|
+
case 4:
|
|
395
|
+
channels = (_g.sent()).list;
|
|
396
|
+
leadResponse.channel_list = channels;
|
|
397
|
+
_g.label = 5;
|
|
398
|
+
case 5:
|
|
399
|
+
_g.trys.push([5, 7, , 8]);
|
|
400
|
+
return [4, API.brandService.retrieveBrand(leadResponse.brand.id)];
|
|
401
|
+
case 6:
|
|
402
|
+
brand = (_g.sent()).brand;
|
|
403
|
+
leadResponse.brand = __assign(__assign({}, leadResponse.brand), brand);
|
|
404
|
+
return [3, 8];
|
|
405
|
+
case 7:
|
|
406
|
+
err_5 = _g.sent();
|
|
407
|
+
return [3, 8];
|
|
408
|
+
case 8:
|
|
409
|
+
_g.trys.push([8, 10, , 11]);
|
|
410
|
+
return [4, API.brandService.getBrandList({ individual_id: leadResponse.individual_id })];
|
|
411
|
+
case 9:
|
|
412
|
+
brands = (_g.sent()).brands;
|
|
413
|
+
leadResponse.brand_list = fixBrandList(brands, channels);
|
|
414
|
+
return [3, 11];
|
|
415
|
+
case 10:
|
|
416
|
+
err_6 = _g.sent();
|
|
417
|
+
return [3, 11];
|
|
418
|
+
case 11:
|
|
419
|
+
(_d = params.onSuccess) === null || _d === void 0 ? void 0 : _d.call(params);
|
|
420
|
+
return [4, sleep(3000)];
|
|
421
|
+
case 12:
|
|
422
|
+
_g.sent();
|
|
423
|
+
phone = (leadResponse.contact || {}).phone;
|
|
424
|
+
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
425
|
+
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
426
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
427
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
428
|
+
return [2, { authResponse: authResponse, leadResponse: leadResponse, countryCode: countryCode }];
|
|
429
|
+
case 13: return [4, sleep(interval * 1000)];
|
|
430
|
+
case 14:
|
|
431
|
+
_g.sent();
|
|
432
|
+
_g.label = 15;
|
|
433
|
+
case 15:
|
|
434
|
+
count++;
|
|
435
|
+
return [3, 1];
|
|
436
|
+
case 16: throw new Error('nafath_verification_failed');
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
}); });
|
|
403
440
|
export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
404
441
|
var _a, settings, connect, lead_id, brandData, phoneCountry, payload, leadResponse;
|
|
405
442
|
var _b, _c, _d, _e, _f;
|
|
@@ -463,7 +500,7 @@ export var retrieveLead = createAsyncThunk('connect/retrieveLead', function (par
|
|
|
463
500
|
});
|
|
464
501
|
}); });
|
|
465
502
|
export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
466
|
-
var _a, settings, connect, responseBody, leadBrandId, isNewBrand, brandName, salesChannels, selectedBrandItem, brandLogoId, termAndConditionChecked, getAddress, channel_services, payload_1, brandReqBody_1, brand_1, team,
|
|
503
|
+
var _a, settings, connect, responseBody, leadBrandId, isNewBrand, brandName, salesChannels, selectedBrandItem, brandLogoId, termAndConditionChecked, getAddress, channel_services, payload_1, brandReqBody_1, brand_1, team, err_7, brandNameBody, payload, lead, brandReqBody, brand, team, err_8;
|
|
467
504
|
var _b, _c, _d, _e, _f;
|
|
468
505
|
return __generator(this, function (_g) {
|
|
469
506
|
switch (_g.label) {
|
|
@@ -522,7 +559,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
522
559
|
brand_1.team_size_list = (team === null || team === void 0 ? void 0 : team.list) || [];
|
|
523
560
|
return [3, 7];
|
|
524
561
|
case 6:
|
|
525
|
-
|
|
562
|
+
err_7 = _g.sent();
|
|
526
563
|
return [3, 7];
|
|
527
564
|
case 7:
|
|
528
565
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
@@ -568,7 +605,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
568
605
|
brand.team_size_list = (team === null || team === void 0 ? void 0 : team.list) || [];
|
|
569
606
|
return [3, 14];
|
|
570
607
|
case 13:
|
|
571
|
-
|
|
608
|
+
err_8 = _g.sent();
|
|
572
609
|
return [3, 14];
|
|
573
610
|
case 14:
|
|
574
611
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
@@ -691,7 +728,6 @@ var initialState = {
|
|
|
691
728
|
},
|
|
692
729
|
nidData: {
|
|
693
730
|
nid: '',
|
|
694
|
-
dob: '',
|
|
695
731
|
type: ''
|
|
696
732
|
},
|
|
697
733
|
civilIdData: {
|
|
@@ -859,7 +895,27 @@ export var connectSlice = createSlice({
|
|
|
859
895
|
state.error = error;
|
|
860
896
|
}
|
|
861
897
|
})
|
|
862
|
-
.addCase(
|
|
898
|
+
.addCase(createNafathAuth.fulfilled, function (state, action) {
|
|
899
|
+
state.loading = false;
|
|
900
|
+
state.error = null;
|
|
901
|
+
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
902
|
+
state.data.nidData = formData;
|
|
903
|
+
state.data.nidData.responseBody = response;
|
|
904
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
905
|
+
})
|
|
906
|
+
.addCase(createNafathAuth.pending, function (state) {
|
|
907
|
+
state.loading = true;
|
|
908
|
+
state.error = null;
|
|
909
|
+
})
|
|
910
|
+
.addCase(createNafathAuth.rejected, function (state, action) {
|
|
911
|
+
state.loading = false;
|
|
912
|
+
state.error = action.error.message;
|
|
913
|
+
})
|
|
914
|
+
.addCase(verifyNafath.pending, function (state) {
|
|
915
|
+
state.loading = true;
|
|
916
|
+
state.error = null;
|
|
917
|
+
})
|
|
918
|
+
.addCase(verifyNafath.fulfilled, function (state, action) {
|
|
863
919
|
var _a;
|
|
864
920
|
state.loading = false;
|
|
865
921
|
state.error = null;
|
|
@@ -895,41 +951,56 @@ export var connectSlice = createSlice({
|
|
|
895
951
|
};
|
|
896
952
|
state.data.otpData.responseBody = __assign(__assign({}, authResponse), { is_new_individual: is_new_individual, lead_id: id, brand_id: brand === null || brand === void 0 ? void 0 : brand.id, name: name, contact: contact, leadData: leadResponse });
|
|
897
953
|
})
|
|
898
|
-
.addCase(
|
|
899
|
-
state.loading = true;
|
|
900
|
-
state.error = null;
|
|
901
|
-
})
|
|
902
|
-
.addCase(verifyAuth.rejected, function (state, action) {
|
|
954
|
+
.addCase(verifyNafath.rejected, function (state, action) {
|
|
903
955
|
state.loading = false;
|
|
904
|
-
|
|
956
|
+
var error = action.error.message;
|
|
957
|
+
if (error !== 'Aborted') {
|
|
958
|
+
state.error = error;
|
|
959
|
+
}
|
|
905
960
|
})
|
|
906
|
-
.addCase(
|
|
961
|
+
.addCase(verifyAuth.fulfilled, function (state, action) {
|
|
962
|
+
var _a;
|
|
907
963
|
state.loading = false;
|
|
908
964
|
state.error = null;
|
|
909
|
-
var
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
965
|
+
var _b = action.payload, authResponse = _b.authResponse, leadResponse = _b.leadResponse, countryCode = _b.countryCode;
|
|
966
|
+
var name = leadResponse.name, contact = leadResponse.contact, brand = leadResponse.brand, brand_list = leadResponse.brand_list, channel_list = leadResponse.channel_list, is_new_individual = leadResponse.is_new_individual, id = leadResponse.id;
|
|
967
|
+
var _c = contact || {}, email = _c.email, phone = _c.phone;
|
|
968
|
+
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
969
|
+
if (!!fullName) {
|
|
970
|
+
var capitalizedName = capitalizeTheFirstLetterOfEachWord(fullName);
|
|
971
|
+
state.data.individualData.name = capitalizedName;
|
|
972
|
+
}
|
|
973
|
+
if (email)
|
|
974
|
+
state.data.individualData.email = email;
|
|
975
|
+
if (phone === null || phone === void 0 ? void 0 : phone.number)
|
|
976
|
+
state.data.individualData.mobile = phone.number;
|
|
977
|
+
if (!!countryCode)
|
|
978
|
+
state.data.individualData.countryCode = countryCode;
|
|
979
|
+
if ((_a = brand === null || brand === void 0 ? void 0 : brand.name) === null || _a === void 0 ? void 0 : _a.en)
|
|
980
|
+
state.data.brandData.brandName = brand.name.en;
|
|
981
|
+
var brandList = [];
|
|
982
|
+
if ((brand_list === null || brand_list === void 0 ? void 0 : brand_list.length) > 0) {
|
|
983
|
+
var isBrandExist = brand_list.find(function (item) { return item.id === (brand === null || brand === void 0 ? void 0 : brand.id); });
|
|
984
|
+
brandList = __spreadArray([], brand_list, true);
|
|
985
|
+
if (!isBrandExist && brand)
|
|
986
|
+
brandList = __spreadArray(__spreadArray([], brandList, true), [__assign(__assign({}, brand), { channel_services: (brand === null || brand === void 0 ? void 0 : brand.channel_services) || [] })], false);
|
|
987
|
+
brandList = __spreadArray(__spreadArray([], brandList, true), [OTHER_BRAND], false);
|
|
988
|
+
state.data.brandData.selectedBrandItem = brandList[0];
|
|
989
|
+
}
|
|
990
|
+
state.data.brandData.responseBody = {
|
|
991
|
+
brand_list: brandList,
|
|
992
|
+
channel_list: channel_list,
|
|
993
|
+
brandData: brand
|
|
994
|
+
};
|
|
995
|
+
state.data.otpData.responseBody = __assign(__assign({}, authResponse), { is_new_individual: is_new_individual, lead_id: id, brand_id: brand === null || brand === void 0 ? void 0 : brand.id, name: name, contact: contact, leadData: leadResponse });
|
|
913
996
|
})
|
|
914
|
-
.addCase(
|
|
997
|
+
.addCase(verifyAuth.pending, function (state) {
|
|
915
998
|
state.loading = true;
|
|
916
999
|
state.error = null;
|
|
917
1000
|
})
|
|
918
|
-
.addCase(
|
|
1001
|
+
.addCase(verifyAuth.rejected, function (state, action) {
|
|
919
1002
|
state.loading = false;
|
|
920
1003
|
state.error = action.error.message;
|
|
921
|
-
})
|
|
922
|
-
.addCase(resendOTPNID.fulfilled, function (state, action) {
|
|
923
|
-
state.error = null;
|
|
924
|
-
var response = action.payload;
|
|
925
|
-
state.data.nidData.responseBody = response;
|
|
926
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
927
|
-
})
|
|
928
|
-
.addCase(resendOTPNID.pending, function (state) {
|
|
929
|
-
state.error = null;
|
|
930
|
-
})
|
|
931
|
-
.addCase(resendOTPNID.rejected, function (state, action) {
|
|
932
|
-
state.error = action.error.message;
|
|
933
1004
|
})
|
|
934
1005
|
.addCase(updateLeadIndividual.fulfilled, function (state, action) {
|
|
935
1006
|
var _a, _b, _c;
|
|
@@ -1046,7 +1117,7 @@ export var connectSlice = createSlice({
|
|
|
1046
1117
|
state.customLoading = false;
|
|
1047
1118
|
state.error = null;
|
|
1048
1119
|
var _b = action.payload, data = _b.data, countryCode = _b.countryCode;
|
|
1049
|
-
var _c = data || {}, name = _c.name, contact = _c.contact, brand = _c.brand, identification = _c.identification
|
|
1120
|
+
var _c = data || {}, name = _c.name, contact = _c.contact, brand = _c.brand, identification = _c.identification;
|
|
1050
1121
|
var _d = contact || {}, email = _d.email, phone = _d.phone;
|
|
1051
1122
|
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
1052
1123
|
if (!!fullName) {
|
|
@@ -1067,8 +1138,6 @@ export var connectSlice = createSlice({
|
|
|
1067
1138
|
state.data.brandData.brandName = brand.name.en;
|
|
1068
1139
|
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1069
1140
|
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1070
|
-
if (date_of_birth)
|
|
1071
|
-
state.data.nidData.dob = date_of_birth;
|
|
1072
1141
|
})
|
|
1073
1142
|
.addCase(retrieveLead.pending, function (state) {
|
|
1074
1143
|
state.customLoading = true;
|