@tap-payments/auth-jsconnect 2.6.0-test → 2.6.1
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/README.md +1 -1
- package/build/@types/app.d.ts +162 -27
- package/build/@types/app.js +18 -1
- package/build/@types/config.d.ts +45 -0
- package/build/@types/config.js +1 -0
- package/build/@types/form.d.ts +36 -22
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/redux.d.ts +1 -0
- package/build/@types/theme.d.ts +5 -1
- package/build/@types/theme.js +5 -0
- package/build/api/account.d.ts +7 -2
- package/build/api/account.js +16 -2
- package/build/api/auth.d.ts +36 -12
- package/build/api/auth.js +18 -1
- package/build/api/availabilityServices.d.ts +4 -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 +2 -1
- package/build/api/country.js +8 -1
- package/build/api/data.d.ts +11 -24
- package/build/api/data.js +5 -45
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +38 -10
- package/build/api/entity.js +49 -5
- package/build/api/file.d.ts +1 -1
- package/build/api/firebase.js +68 -8
- package/build/api/index.d.ts +21 -25
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +36 -14
- package/build/api/lead.js +47 -1
- package/build/api/operator.d.ts +11 -1
- package/build/api/operator.js +10 -2
- package/build/api/user.d.ts +2 -2
- package/build/app/rootReducer.d.ts +2 -0
- package/build/app/rootReducer.js +5 -1
- package/build/app/settings.d.ts +33 -4
- package/build/app/settings.js +128 -42
- package/build/app/store.d.ts +8 -4
- package/build/assets/locales/ar.json +333 -131
- package/build/assets/locales/en.json +330 -131
- package/build/components/AnimationFlow/AnimationFlow.d.ts +14 -3
- package/build/components/AnimationFlow/AnimationFlow.js +16 -5
- package/build/components/AnimationFlow/BottomSheet.d.ts +7 -2
- package/build/components/AnimationFlow/BottomSheet.js +37 -12
- package/build/components/AnimationFlow/Dialog.d.ts +11 -2
- package/build/components/AnimationFlow/Dialog.js +7 -11
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +6 -2
- package/build/components/AnimationFlow/Loader.js +17 -5
- 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 +3 -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/Footer/Footer.js +2 -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/Providers/ThemeProvider.js +3 -3
- 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/SimpleList/SimpleList.js +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/Tooltip/Tooltip.js +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/constants/api.d.ts +11 -7
- package/build/constants/api.js +22 -14
- package/build/constants/app.d.ts +43 -1
- package/build/constants/app.js +353 -18
- package/build/constants/assets.d.ts +4 -0
- package/build/constants/assets.js +5 -1
- package/build/constants/dummy.d.ts +43 -196
- package/build/constants/dummy.js +610 -6141
- package/build/constants/validation.d.ts +5 -0
- package/build/constants/validation.js +6 -1
- package/build/features/app/auth/authStore.d.ts +269 -0
- package/build/features/app/auth/authStore.js +1121 -0
- package/build/features/app/bank/bankStore.d.ts +104 -27
- package/build/features/app/bank/bankStore.js +219 -159
- package/build/features/app/board/boardStore.d.ts +69 -0
- package/build/features/app/board/boardStore.js +269 -0
- package/build/features/app/brand/brandStore.d.ts +158 -45
- package/build/features/app/brand/brandStore.js +297 -264
- package/build/features/app/business/businessStore.d.ts +169 -24
- package/build/features/app/business/businessStore.js +284 -203
- package/build/features/app/connect/connectStore.d.ts +174 -24
- package/build/features/app/connect/connectStore.js +271 -217
- package/build/features/app/connectExpress/connectExpressStore.d.ts +299 -39
- package/build/features/app/connectExpress/connectExpressStore.js +836 -301
- package/build/features/app/entity/entityStore.d.ts +111 -43
- package/build/features/app/entity/entityStore.js +249 -247
- package/build/features/app/individual/individualStore.d.ts +207 -54
- package/build/features/app/individual/individualStore.js +337 -275
- package/build/features/app/password/passwordStore.d.ts +150 -26
- package/build/features/app/password/passwordStore.js +287 -220
- 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 +94 -15
- package/build/features/app/tax/taxStore.js +203 -142
- package/build/features/auth/Auth.d.ts +13 -0
- package/build/features/auth/Auth.js +160 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
- package/build/features/auth/screens/AccountCreatedLoader/index.d.ts +2 -0
- package/build/features/auth/screens/AccountCreatedLoader/index.js +2 -0
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +5 -0
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.js +71 -0
- package/build/features/auth/screens/AccountNotFound/index.d.ts +2 -0
- package/build/features/auth/screens/AccountNotFound/index.js +2 -0
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.js +73 -0
- package/build/features/auth/screens/AuthMerchant/MerchantList.d.ts +11 -0
- package/build/features/auth/screens/AuthMerchant/MerchantList.js +64 -0
- package/build/features/auth/screens/AuthMerchant/index.d.ts +2 -0
- package/build/features/auth/screens/AuthMerchant/index.js +2 -0
- package/build/features/auth/screens/AuthMerchant/validation.d.ts +8 -0
- package/build/features/auth/screens/AuthMerchant/validation.js +4 -0
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +5 -0
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +57 -0
- package/build/features/auth/screens/AuthSwitch/index.d.ts +3 -0
- package/build/features/auth/screens/AuthSwitch/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.js +96 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/auth/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +2 -0
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.js +48 -0
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.js +90 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/auth/screens/AuthenticationList/EntityList.js +138 -0
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.js +36 -0
- package/build/features/auth/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/auth/screens/AuthenticationList/index.js +2 -0
- package/build/features/auth/screens/AuthenticationList/validation.d.ts +20 -0
- package/build/features/auth/screens/AuthenticationList/validation.js +68 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +111 -0
- package/build/features/auth/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/auth/screens/BusinessCountry/index.js +2 -0
- package/build/features/auth/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/auth/screens/CivilID/CivilID.js +57 -0
- package/build/features/auth/screens/CivilID/IDNumber.d.ts +8 -0
- package/build/features/auth/screens/CivilID/IDNumber.js +54 -0
- package/build/features/auth/screens/CivilID/index.d.ts +3 -0
- package/build/features/auth/screens/CivilID/index.js +2 -0
- package/build/features/auth/screens/CivilID/validation.d.ts +8 -0
- package/build/features/auth/screens/CivilID/validation.js +4 -0
- package/build/features/auth/screens/Email/Email.d.ts +5 -0
- package/build/features/auth/screens/Email/Email.js +57 -0
- package/build/features/auth/screens/Email/EmailField.d.ts +8 -0
- package/build/features/auth/screens/Email/EmailField.js +52 -0
- package/build/features/auth/screens/Email/index.d.ts +3 -0
- package/build/features/auth/screens/Email/index.js +2 -0
- package/build/features/auth/screens/Email/validation.d.ts +8 -0
- package/build/features/auth/screens/Email/validation.js +4 -0
- package/build/features/auth/screens/EmailSent/EmailSent.d.ts +5 -0
- package/build/features/auth/screens/EmailSent/EmailSent.js +79 -0
- package/build/features/auth/screens/EmailSent/index.d.ts +2 -0
- package/build/features/auth/screens/EmailSent/index.js +2 -0
- package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
- package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
- package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
- package/build/features/auth/screens/MigratingData/index.js +2 -0
- package/build/features/auth/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/auth/screens/Mobile/Mobile.js +82 -0
- package/build/features/auth/screens/Mobile/MobileNumber.d.ts +13 -0
- package/build/features/auth/screens/Mobile/MobileNumber.js +158 -0
- package/build/features/auth/screens/Mobile/index.d.ts +3 -0
- package/build/features/auth/screens/Mobile/index.js +2 -0
- package/build/features/auth/screens/Mobile/validation.d.ts +8 -0
- package/build/features/auth/screens/Mobile/validation.js +35 -0
- package/build/features/auth/screens/NID/IDNumber.d.ts +7 -0
- package/build/features/auth/screens/NID/IDNumber.js +55 -0
- package/build/features/auth/screens/NID/NID.d.ts +5 -0
- package/build/features/auth/screens/NID/NID.js +56 -0
- package/build/features/auth/screens/NID/index.d.ts +3 -0
- package/build/features/auth/screens/NID/index.js +2 -0
- package/build/features/auth/screens/NID/validation.d.ts +8 -0
- package/build/features/auth/screens/NID/validation.js +10 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +117 -0
- package/build/features/{business → auth}/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/{connectExpress/screens/IdentityOTP → auth/screens/OTP}/OTPInput.js +27 -7
- package/build/features/auth/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/auth/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/auth/screens/OperatorError/index.d.ts +3 -0
- package/build/features/auth/screens/OperatorError/index.js +2 -0
- package/build/features/auth/screens/Password/Password.d.ts +5 -0
- package/build/features/auth/screens/Password/Password.js +61 -0
- package/build/features/auth/screens/Password/PasswordField.d.ts +5 -0
- package/build/features/auth/screens/Password/PasswordField.js +28 -0
- package/build/features/auth/screens/Password/index.d.ts +3 -0
- package/build/features/auth/screens/Password/index.js +2 -0
- package/build/features/auth/screens/Password/validation.d.ts +8 -0
- package/build/features/auth/screens/Password/validation.js +4 -0
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +5 -0
- package/build/features/auth/screens/PreparingData/PreparingData.js +44 -0
- package/build/features/auth/screens/PreparingData/index.d.ts +2 -0
- package/build/features/auth/screens/PreparingData/index.js +2 -0
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +5 -0
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.js +21 -0
- package/build/features/auth/screens/ResetPasswordMessage/index.d.ts +3 -0
- package/build/features/auth/screens/ResetPasswordMessage/index.js +2 -0
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +35 -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 +5 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/auth/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/auth/screens/VerifyPACI/index.js +2 -0
- package/build/features/bank/Bank.d.ts +3 -2
- package/build/features/bank/Bank.js +15 -9
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +21 -7
- 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 +5 -0
- package/build/features/bank/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/bank/screens/OperatorError/index.d.ts +3 -0
- package/build/features/bank/screens/OperatorError/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- 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/bank/screens/Verify/Verify.js +5 -5
- package/build/features/board/Board.d.ts +12 -0
- package/build/features/board/Board.js +87 -0
- package/build/features/board/index.d.ts +1 -0
- package/build/features/board/index.js +1 -0
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/board/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/board/screens/OperatorError/index.d.ts +3 -0
- package/build/features/board/screens/OperatorError/index.js +2 -0
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/board/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/board/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +44 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/{business/screens/OTP → board/screens/Verify}/OTPInput.js +9 -7
- package/build/features/{connectExpress/screens/IdentityOTP/OTPInput.d.ts → board/screens/Verify/Verify.d.ts} +1 -1
- package/build/features/{connectExpress/screens/IdentityOTP/OTP.js → board/screens/Verify/Verify.js} +24 -37
- package/build/features/board/screens/Verify/index.d.ts +2 -0
- package/build/features/board/screens/Verify/index.js +2 -0
- package/build/features/brand/Brand.d.ts +3 -2
- package/build/features/brand/Brand.js +15 -9
- 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/BrandActivities.js +49 -12
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
- 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/ExpectedSalesRange.js +5 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +1 -1
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
- package/build/features/brand/screens/BrandActivities/TAC.js +1 -1
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +27 -7
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +6 -3
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -0
- package/build/features/brand/screens/BrandInfo/validation.js +5 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +23 -7
- 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 +5 -0
- package/build/features/brand/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/brand/screens/OperatorError/index.d.ts +3 -0
- package/build/features/brand/screens/OperatorError/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- 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/brand/screens/Verify/Verify.js +1 -1
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/Business.js +20 -12
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.js +27 -10
- 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 +7 -13
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- 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/BusinessType.js +22 -6
- 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/EntityName.js +3 -3
- 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/LicenseList.js +3 -3
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
- 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/BusinessType/validation.d.ts +10 -0
- package/build/features/business/screens/BusinessType/validation.js +16 -0
- package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/CivilID/CivilID.js +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +21 -70
- package/build/features/business/screens/Customers/CustomerLocations.js +5 -3
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/Customers.js +51 -11
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +5 -3
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +10 -4
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +16 -30
- package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -2
- package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
- package/build/features/business/screens/Customers/validation.d.ts +6 -6
- package/build/features/business/screens/Customers/validation.js +3 -8
- 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/ID.js +6 -2
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.js +18 -19
- package/build/features/business/screens/IDBOD/validation.d.ts +7 -0
- package/build/features/business/screens/IDBOD/validation.js +4 -1
- package/build/features/business/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/business/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/business/screens/OperatorError/index.d.ts +3 -0
- package/build/features/business/screens/OperatorError/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +14 -3
- 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/Verify/Verify.js +13 -3
- package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/business/screens/VerifyNafath/VerifyNafath.js +35 -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 +5 -2
- package/build/features/connect/Connect.js +49 -32
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +4 -26
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/BrandSegment/TeamSize.js +1 -1
- package/build/features/connect/screens/BrandSegment/validation.d.ts +0 -9
- package/build/features/connect/screens/BrandSegment/validation.js +0 -3
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +113 -0
- package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connect/screens/BusinessCountry/index.js +2 -0
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/CivilID/CivilID.js +12 -4
- 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 +2 -3
- package/build/features/connect/screens/Individual/MobileNumber.js +6 -3
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Individual/validation.js +8 -3
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +3 -3
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +6 -3
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/Merchant.js +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/SalesChannels.js +1 -1
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Merchant/validation.js +2 -2
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +14 -7
- package/build/features/connect/screens/Mobile/MobileNumber.js +14 -8
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/Mobile/validation.js +8 -3
- 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 +10 -13
- 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/OTP.js +2 -2
- 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 +5 -0
- package/build/features/connect/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/connect/screens/OperatorError/index.d.ts +3 -0
- package/build/features/connect/screens/OperatorError/index.js +2 -0
- 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 +35 -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 +5 -4
- package/build/features/connectExpress/ConnectExpress.js +71 -41
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
- package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +104 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +9 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.js +90 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +138 -0
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +20 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +68 -0
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +111 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.js +16 -5
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +7 -2
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +6 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +20 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +6 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +68 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +14 -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/MobileNumber.js +7 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +8 -3
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +14 -24
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +35 -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/IdentityVerifyPACI/VerifyPACI.js +2 -2
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.js +17 -7
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +17 -11
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/validation.js +16 -6
- 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 +15 -12
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/NID/TAC.js +2 -2
- 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/IDNumber.js +6 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.js +10 -8
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +7 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -1
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.js +12 -15
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.js +12 -10
- package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/connectExpress/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/connectExpress/screens/OperatorError/index.d.ts +3 -0
- package/build/features/connectExpress/screens/OperatorError/index.js +2 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +5 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.js +34 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/connectExpress/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -7
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +35 -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 +3 -2
- package/build/features/entity/Entity.js +15 -9
- 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/CapitalPaid.js +5 -3
- 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/CapitalShareValue.js +6 -4
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +34 -10
- 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/EntityName.js +44 -19
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
- package/build/features/entity/screens/EntityName/EntityTypeList.js +2 -3
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/ExpiryDate.js +5 -7
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -7
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LegalName.js +1 -13
- 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/LicenseNumber.js +10 -11
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
- package/build/features/entity/screens/EntityName/validation.d.ts +31 -3
- package/build/features/entity/screens/EntityName/validation.js +38 -9
- package/build/features/entity/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/entity/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/entity/screens/OperatorError/index.d.ts +3 -0
- package/build/features/entity/screens/OperatorError/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- 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/entity/screens/Verify/Verify.js +1 -1
- package/build/features/featuresScreens.d.ts +2 -0
- package/build/features/featuresScreens.js +234 -15
- package/build/features/individual/Individual.d.ts +3 -2
- package/build/features/individual/Individual.js +15 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +55 -15
- 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 +14 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.js +76 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -2
- 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/ShareValue.js +7 -4
- 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/AdditionalIndividualInfo/validation.d.ts +4 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +4 -3
- 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/IndividualList.js +21 -6
- package/build/features/individual/screens/IndividualList/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualList/UserList.js +13 -9
- package/build/features/individual/screens/IndividualList/validation.js +8 -3
- 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/ID.js +6 -2
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +79 -21
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +72 -63
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +7 -4
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/validation.js +8 -3
- package/build/features/individual/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/individual/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/individual/screens/OperatorError/index.d.ts +3 -0
- package/build/features/individual/screens/OperatorError/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- 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/individual/screens/Verify/Verify.js +1 -1
- package/build/features/password/Password.d.ts +3 -2
- package/build/features/password/Password.js +94 -32
- 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/CreatePassword.js +10 -4
- 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/OTP.js +1 -1
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/password/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/password/screens/OperatorError/index.d.ts +3 -0
- package/build/features/password/screens/OperatorError/index.js +2 -0
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/password/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/password/screens/PrepareDataLoading/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- 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/password/screens/Verify/Verify.js +5 -5
- 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 +3 -1
- package/build/features/shared/Background/Background.js +9 -11
- 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 +14 -0
- package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
- package/build/features/shared/BusinessCountry/index.d.ts +2 -0
- package/build/features/shared/BusinessCountry/index.js +2 -0
- package/build/features/shared/Button/Button.d.ts +1 -2
- package/build/features/shared/Button/Button.js +11 -5
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
- package/build/features/shared/Button/EmailProvidersButtons.js +2 -0
- package/build/features/shared/Button/FlowsButtons.d.ts +4 -3
- package/build/features/shared/Button/FlowsButtons.js +30 -15
- 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} +12 -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 +2 -1
- package/build/features/shared/Containers/FeatureContainer.js +3 -3
- 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 +4 -1
- package/build/features/shared/DataLoading/DataLoading.js +2 -2
- 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/Footer.js +2 -1
- 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 +14 -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 +8 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +11 -14
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
- package/build/features/shared/UploadFile/FileUpload.js +2 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.js +1 -1
- 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 +18 -7
- 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/Mobile/MobileNumber.js +6 -3
- package/build/features/signIn/screens/Mobile/validation.js +8 -3
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.js +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/signIn/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/signIn/screens/OperatorError/index.d.ts +3 -0
- package/build/features/signIn/screens/OperatorError/index.js +2 -0
- 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 +3 -2
- package/build/features/tax/Tax.js +15 -9
- package/build/features/tax/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/tax/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/tax/screens/OperatorError/index.d.ts +3 -0
- package/build/features/tax/screens/OperatorError/index.js +2 -0
- 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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- 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/TaxDetails.js +9 -3
- 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/features/tax/screens/Verify/Verify.js +5 -5
- package/build/hooks/index.d.ts +2 -0
- package/build/hooks/index.js +2 -0
- package/build/hooks/useAppConfig.d.ts +3 -3
- package/build/hooks/useAppConfig.js +9 -6
- package/build/hooks/useAppDispatch.d.ts +2 -0
- package/build/hooks/useAppTheme.js +4 -3
- package/build/hooks/useCountDown.d.ts +10 -0
- package/build/hooks/useCountDown.js +17 -0
- package/build/hooks/useCountry.d.ts +1 -0
- package/build/hooks/useCountry.js +4 -3
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormDirtyCheck.d.ts +10 -0
- package/build/hooks/useFormDirtyCheck.js +66 -0
- 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/hooks/useVerifyToken.d.ts +5 -2
- package/build/hooks/useVerifyToken.js +10 -5
- package/build/index.css +360 -120
- package/build/index.d.ts +4 -2
- package/build/index.js +6 -2
- package/build/theme/components.js +7 -0
- package/build/theme/palette.js +4 -2
- package/build/theme/theme.d.ts +1 -1
- package/build/theme/theme.js +2 -2
- package/build/utils/array.js +3 -3
- package/build/utils/common.d.ts +3 -0
- package/build/utils/common.js +38 -2
- package/build/utils/device.d.ts +2 -0
- package/build/utils/device.js +6 -0
- package/build/utils/locale.js +2 -1
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +4 -1
- package/build/utils/string.d.ts +5 -2
- package/build/utils/string.js +24 -5
- package/build/utils/validation.d.ts +4 -0
- package/build/utils/validation.js +13 -0
- package/package.json +2 -2
- package/build/features/business/screens/OTP/OTP.d.ts +0 -8
- package/build/features/business/screens/OTP/OTP.js +0 -90
- package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/SegmentLocations.js +0 -66
- package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/SegmentProfits.js +0 -66
- package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +0 -8
- package/build/features/connect/screens/BrandSegment/SegmentTechs.js +0 -66
- 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/index.d.ts +0 -3
- package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
- 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
- /package/build/features/{business → auth}/screens/OTP/index.d.ts +0 -0
- /package/build/features/{business → auth}/screens/OTP/index.js +0 -0
- /package/build/features/{business → auth}/screens/OTP/validation.d.ts +0 -0
- /package/build/features/{business → auth}/screens/OTP/validation.js +0 -0
- /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.d.ts +0 -0
- /package/build/features/{connectExpress/screens/IdentityOTP → board/screens/Verify}/validation.js +0 -0
|
@@ -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]) {
|
|
@@ -67,11 +67,29 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
67
67
|
};
|
|
68
68
|
var _a;
|
|
69
69
|
import API from '../../../api';
|
|
70
|
-
import { handleNextScreenStep } from '../../../app/settings';
|
|
71
|
-
import { CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, OTHER_BRAND } from '../../../constants';
|
|
70
|
+
import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
71
|
+
import { CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_BRAND } from '../../../constants';
|
|
72
72
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
73
73
|
import { AuthForType, FlowsTypes } from '../../../@types';
|
|
74
|
-
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep, sendCustomEventToGTM } from '../../../utils';
|
|
74
|
+
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep, sendCustomEventToGTM, isOtherThanKWOrSA, isKW, findCountryByIso2, getMetaData } from '../../../utils';
|
|
75
|
+
export var updateBusinessCountry = createAsyncThunk('connect/updateBusinessCountry', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
+
var connect, payload, data;
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
switch (_a.label) {
|
|
79
|
+
case 0:
|
|
80
|
+
connect = thunkApi.getState().connect;
|
|
81
|
+
payload = {
|
|
82
|
+
id: connect.data.leadId || '',
|
|
83
|
+
country_code: countryCode,
|
|
84
|
+
encryption_contract: []
|
|
85
|
+
};
|
|
86
|
+
return [4, API.leadService.updateLead(payload)];
|
|
87
|
+
case 1:
|
|
88
|
+
data = _a.sent();
|
|
89
|
+
return [2, data];
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}); });
|
|
75
93
|
export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
94
|
var settings, requestBody, data;
|
|
77
95
|
var _a, _b;
|
|
@@ -155,75 +173,33 @@ export var resendOTPMobile = createAsyncThunk('resendOTPMobile', function (param
|
|
|
155
173
|
}
|
|
156
174
|
});
|
|
157
175
|
}); });
|
|
158
|
-
export var
|
|
159
|
-
var
|
|
160
|
-
return __generator(this, function (_c) {
|
|
161
|
-
switch (_c.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
164
|
-
_b = connect.data.nidData, nid = _b.nid, dob = _b.dob;
|
|
165
|
-
identification_id_type = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
166
|
-
requestBody = {
|
|
167
|
-
country: settings.data.businessCountry.iso2,
|
|
168
|
-
scope: settings.data.appConfig.scope,
|
|
169
|
-
lang: settings.data.language,
|
|
170
|
-
user_credentail: {
|
|
171
|
-
identification_id: nid,
|
|
172
|
-
identification_id_type: identification_id_type,
|
|
173
|
-
date_of_birth: dob,
|
|
174
|
-
country_code: settings.data.businessCountry.iso2
|
|
175
|
-
},
|
|
176
|
-
sign_in: false,
|
|
177
|
-
is_lead: true,
|
|
178
|
-
step_name: CONNECT_STEP_NAMES.CREATE_AUTH_NID,
|
|
179
|
-
encryption_contract: [
|
|
180
|
-
'user_credentail.country_code',
|
|
181
|
-
'user_credentail.identification_id',
|
|
182
|
-
'user_credentail.identification_id_type',
|
|
183
|
-
'user_credentail.date_of_birth'
|
|
184
|
-
]
|
|
185
|
-
};
|
|
186
|
-
return [4, API.authService.createAuth(requestBody)];
|
|
187
|
-
case 1:
|
|
188
|
-
data = _c.sent();
|
|
189
|
-
return [2, data];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
}); });
|
|
193
|
-
export var createNIDAuth = createAsyncThunk('createNIDAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
-
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;
|
|
195
178
|
var _a, _b;
|
|
196
179
|
return __generator(this, function (_c) {
|
|
197
180
|
switch (_c.label) {
|
|
198
181
|
case 0:
|
|
199
182
|
settings = thunkApi.getState().settings;
|
|
200
|
-
identification_id_type = params.nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
201
183
|
requestBody = {
|
|
202
184
|
country: settings.data.businessCountry.iso2,
|
|
203
185
|
scope: settings.data.appConfig.scope,
|
|
204
186
|
lang: settings.data.language,
|
|
205
187
|
user_credentail: {
|
|
206
188
|
identification_id: params.nid,
|
|
207
|
-
identification_id_type:
|
|
208
|
-
date_of_birth: params.dob,
|
|
189
|
+
identification_id_type: IDENTIFICATION_TYPE.NAFATH,
|
|
209
190
|
country_code: settings.data.businessCountry.iso2
|
|
210
191
|
},
|
|
211
192
|
sign_in: false,
|
|
212
193
|
is_lead: true,
|
|
213
194
|
step_name: CONNECT_STEP_NAMES.CREATE_AUTH_NID,
|
|
214
|
-
encryption_contract: [
|
|
215
|
-
'user_credentail.country_code',
|
|
216
|
-
'user_credentail.identification_id',
|
|
217
|
-
'user_credentail.identification_id_type',
|
|
218
|
-
'user_credentail.date_of_birth'
|
|
219
|
-
]
|
|
195
|
+
encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
|
|
220
196
|
};
|
|
221
|
-
return [4, API.authService.
|
|
197
|
+
return [4, API.authService.createAuthKitNID(requestBody)];
|
|
222
198
|
case 1:
|
|
223
199
|
data = _c.sent();
|
|
224
200
|
thunkApi.dispatch(handleNextScreenStep());
|
|
225
|
-
(_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody
|
|
226
|
-
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 }) }];
|
|
227
203
|
}
|
|
228
204
|
});
|
|
229
205
|
}); });
|
|
@@ -382,6 +358,90 @@ export var verifyPACI = createAsyncThunk('connect/verifyPACI', function (params,
|
|
|
382
358
|
}
|
|
383
359
|
});
|
|
384
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, isFailed, countryCode, lead_id, leadResponse, channels, brand, err_5, brands, err_6, phone;
|
|
363
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
364
|
+
return __generator(this, function (_j) {
|
|
365
|
+
switch (_j.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
|
+
_j.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 = _j.sent();
|
|
382
|
+
isSuccess = ((_b = authResponse.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
383
|
+
isFailed = ((_c = authResponse === null || authResponse === void 0 ? void 0 : authResponse.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'failed';
|
|
384
|
+
countryCode = settings.data.businessCountry;
|
|
385
|
+
if (isFailed) {
|
|
386
|
+
(_d = params.onFailure) === null || _d === void 0 ? void 0 : _d.call(params);
|
|
387
|
+
return [2, { authResponse: authResponse, countryCode: countryCode }];
|
|
388
|
+
}
|
|
389
|
+
if (!isSuccess) return [3, 13];
|
|
390
|
+
lead_id = authResponse.lead_id;
|
|
391
|
+
if (!lead_id)
|
|
392
|
+
throw new Error('Lead id is missing');
|
|
393
|
+
return [4, API.leadService.retrieveLead(lead_id)];
|
|
394
|
+
case 3:
|
|
395
|
+
leadResponse = (_j.sent()).data;
|
|
396
|
+
if ((_e = leadResponse.errors) === null || _e === void 0 ? void 0 : _e.length)
|
|
397
|
+
throw new Error(leadResponse.errors[0].description);
|
|
398
|
+
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
399
|
+
case 4:
|
|
400
|
+
channels = (_j.sent()).list;
|
|
401
|
+
leadResponse.channel_list = channels;
|
|
402
|
+
_j.label = 5;
|
|
403
|
+
case 5:
|
|
404
|
+
_j.trys.push([5, 7, , 8]);
|
|
405
|
+
return [4, API.brandService.retrieveBrand(leadResponse.brand.id)];
|
|
406
|
+
case 6:
|
|
407
|
+
brand = (_j.sent()).brand;
|
|
408
|
+
leadResponse.brand = __assign(__assign({}, leadResponse.brand), brand);
|
|
409
|
+
return [3, 8];
|
|
410
|
+
case 7:
|
|
411
|
+
err_5 = _j.sent();
|
|
412
|
+
return [3, 8];
|
|
413
|
+
case 8:
|
|
414
|
+
_j.trys.push([8, 10, , 11]);
|
|
415
|
+
return [4, API.brandService.getBrandList({ individual_id: leadResponse.individual_id })];
|
|
416
|
+
case 9:
|
|
417
|
+
brands = (_j.sent()).brands;
|
|
418
|
+
leadResponse.brand_list = fixBrandList(brands, channels);
|
|
419
|
+
return [3, 11];
|
|
420
|
+
case 10:
|
|
421
|
+
err_6 = _j.sent();
|
|
422
|
+
return [3, 11];
|
|
423
|
+
case 11:
|
|
424
|
+
(_f = params.onSuccess) === null || _f === void 0 ? void 0 : _f.call(params);
|
|
425
|
+
return [4, sleep(3000)];
|
|
426
|
+
case 12:
|
|
427
|
+
_j.sent();
|
|
428
|
+
phone = (leadResponse.contact || {}).phone;
|
|
429
|
+
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
430
|
+
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
431
|
+
(_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, {});
|
|
432
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
433
|
+
return [2, { authResponse: authResponse, leadResponse: leadResponse, countryCode: countryCode }];
|
|
434
|
+
case 13: return [4, sleep(interval * 1000)];
|
|
435
|
+
case 14:
|
|
436
|
+
_j.sent();
|
|
437
|
+
_j.label = 15;
|
|
438
|
+
case 15:
|
|
439
|
+
count++;
|
|
440
|
+
return [3, 1];
|
|
441
|
+
case 16: throw new Error(NAFATH_VERIFICATION_FAILED);
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
}); });
|
|
385
445
|
export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
386
446
|
var _a, settings, connect, lead_id, brandData, phoneCountry, payload, leadResponse;
|
|
387
447
|
var _b, _c, _d, _e, _f;
|
|
@@ -397,6 +457,7 @@ export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', funct
|
|
|
397
457
|
country_code: (_d = settings.data.businessCountry) === null || _d === void 0 ? void 0 : _d.iso2,
|
|
398
458
|
name: getIndividualName(params.name),
|
|
399
459
|
contact: __assign({ email: params.email }, (params.mobile && { phone: { country_code: phoneCountry, number: params.mobile } })),
|
|
460
|
+
metadata: getMetaData(),
|
|
400
461
|
step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_INDIVIDUAL,
|
|
401
462
|
encryption_contract: ['name.first', 'name.middle', 'name.last', 'contact.email', 'contact.phone.country_code', 'contact.phone.number']
|
|
402
463
|
};
|
|
@@ -410,55 +471,45 @@ export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', funct
|
|
|
410
471
|
}
|
|
411
472
|
});
|
|
412
473
|
}); });
|
|
413
|
-
export var retrieveLead = createAsyncThunk('connect/retrieveLead', function (
|
|
414
|
-
var settings, data, countryCode, phone;
|
|
415
|
-
var _a;
|
|
416
|
-
return __generator(this, function (
|
|
417
|
-
switch (
|
|
474
|
+
export var retrieveLead = createAsyncThunk('connect/retrieveLead', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
475
|
+
var leadId, isRedirect, settings, data, countryCode, code, phone;
|
|
476
|
+
var _a, _b, _c, _d;
|
|
477
|
+
return __generator(this, function (_e) {
|
|
478
|
+
switch (_e.label) {
|
|
418
479
|
case 0:
|
|
480
|
+
leadId = params.leadId, isRedirect = params.isRedirect;
|
|
419
481
|
settings = thunkApi.getState().settings;
|
|
420
482
|
return [4, API.leadService.retrieveLead(leadId)];
|
|
421
483
|
case 1:
|
|
422
|
-
data = (
|
|
484
|
+
data = (_e.sent()).data;
|
|
423
485
|
if ((_a = data.errors) === null || _a === void 0 ? void 0 : _a.length)
|
|
424
486
|
throw new Error(data.errors[0].description);
|
|
425
487
|
countryCode = settings.data.businessCountry;
|
|
488
|
+
code = (data === null || data === void 0 ? void 0 : data.country_code) || ((_b = settings.data.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2);
|
|
489
|
+
if (code)
|
|
490
|
+
countryCode = findCountryByIso2(settings.data.countries, code === null || code === void 0 ? void 0 : code.toLowerCase());
|
|
426
491
|
phone = (data.contact || {}).phone;
|
|
427
492
|
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
428
493
|
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
494
|
+
if (isRedirect && !(data === null || data === void 0 ? void 0 : data.country_code) && !((_c = settings.data.businessCountry) === null || _c === void 0 ? void 0 : _c.iso2)) {
|
|
495
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_BUSINESS_COUNTRY_STEP'));
|
|
496
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
497
|
+
}
|
|
498
|
+
if (isRedirect && (data === null || data === void 0 ? void 0 : data.country_code) && !((_d = settings.data.businessCountry) === null || _d === void 0 ? void 0 : _d.iso2)) {
|
|
499
|
+
thunkApi.dispatch(handleSetCountryByIso2(data.country_code));
|
|
500
|
+
if (isOtherThanKWOrSA(data.country_code) || isKW(data.country_code))
|
|
501
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_MOBILE_STEP'));
|
|
502
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
503
|
+
}
|
|
429
504
|
return [2, { data: data, countryCode: countryCode }];
|
|
430
505
|
}
|
|
431
506
|
});
|
|
432
507
|
}); });
|
|
433
|
-
export var retrieveSegmentDataList = createAsyncThunk('connectRetrieveSegmentDataList', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
434
|
-
var dataBody, _a, segmentLocation, segmentProfit, segmentTech;
|
|
435
|
-
return __generator(this, function (_b) {
|
|
436
|
-
switch (_b.label) {
|
|
437
|
-
case 0:
|
|
438
|
-
dataBody = {
|
|
439
|
-
page: 0,
|
|
440
|
-
limit: 50
|
|
441
|
-
};
|
|
442
|
-
return [4, Promise.all([
|
|
443
|
-
API.dataService.getSegmentLocation(dataBody),
|
|
444
|
-
API.dataService.getSegmentProfit(dataBody),
|
|
445
|
-
API.dataService.getSegmentTech(dataBody)
|
|
446
|
-
])];
|
|
447
|
-
case 1:
|
|
448
|
-
_a = _b.sent(), segmentLocation = _a[0].list, segmentProfit = _a[1].list, segmentTech = _a[2].list;
|
|
449
|
-
return [2, {
|
|
450
|
-
segmentLocation: segmentLocation,
|
|
451
|
-
segmentProfit: segmentProfit,
|
|
452
|
-
segmentTech: segmentTech
|
|
453
|
-
}];
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
}); });
|
|
457
508
|
export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
458
|
-
var _a, settings, connect, responseBody, leadBrandId, isNewBrand, brandName, salesChannels, selectedBrandItem, brandLogoId, termAndConditionChecked, getAddress, channel_services, payload_1, brandReqBody_1, brand_1,
|
|
459
|
-
var
|
|
460
|
-
return __generator(this, function (
|
|
461
|
-
switch (
|
|
509
|
+
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;
|
|
510
|
+
var _b, _c, _d, _e, _f;
|
|
511
|
+
return __generator(this, function (_g) {
|
|
512
|
+
switch (_g.label) {
|
|
462
513
|
case 0:
|
|
463
514
|
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
464
515
|
responseBody = connect.data.otpData.responseBody;
|
|
@@ -481,7 +532,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
481
532
|
})
|
|
482
533
|
};
|
|
483
534
|
});
|
|
484
|
-
if (!!isNewBrand) return [3,
|
|
535
|
+
if (!!isNewBrand) return [3, 8];
|
|
485
536
|
if (!(leadBrandId !== (selectedBrandItem === null || selectedBrandItem === void 0 ? void 0 : selectedBrandItem.id))) return [3, 2];
|
|
486
537
|
payload_1 = {
|
|
487
538
|
brand: {
|
|
@@ -493,8 +544,8 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
493
544
|
};
|
|
494
545
|
return [4, API.leadService.updateLead(payload_1)];
|
|
495
546
|
case 1:
|
|
496
|
-
|
|
497
|
-
|
|
547
|
+
_g.sent();
|
|
548
|
+
_g.label = 2;
|
|
498
549
|
case 2:
|
|
499
550
|
brandReqBody_1 = {
|
|
500
551
|
id: (selectedBrandItem === null || selectedBrandItem === void 0 ? void 0 : selectedBrandItem.id) || '',
|
|
@@ -504,35 +555,23 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
504
555
|
};
|
|
505
556
|
return [4, API.brandService.updateBrandInfo(brandReqBody_1)];
|
|
506
557
|
case 3:
|
|
507
|
-
brand_1 =
|
|
508
|
-
|
|
558
|
+
brand_1 = _g.sent();
|
|
559
|
+
_g.label = 4;
|
|
509
560
|
case 4:
|
|
510
|
-
|
|
511
|
-
return [4,
|
|
561
|
+
_g.trys.push([4, 6, , 7]);
|
|
562
|
+
return [4, API.dataService.getSegments({ page: 0, limit: 50 })];
|
|
512
563
|
case 5:
|
|
513
|
-
|
|
514
|
-
brand_1.
|
|
515
|
-
brand_1.segment_profit_list = segmentProfit;
|
|
516
|
-
brand_1.segment_tech_list = segmentTech;
|
|
564
|
+
team = (_g.sent()).team;
|
|
565
|
+
brand_1.team_size_list = (team === null || team === void 0 ? void 0 : team.list) || [];
|
|
517
566
|
return [3, 7];
|
|
518
567
|
case 6:
|
|
519
|
-
|
|
568
|
+
err_7 = _g.sent();
|
|
520
569
|
return [3, 7];
|
|
521
570
|
case 7:
|
|
522
|
-
_j.trys.push([7, 9, , 10]);
|
|
523
|
-
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
524
|
-
case 8:
|
|
525
|
-
teamSize = _j.sent();
|
|
526
|
-
brand_1.team_size_list = teamSize.list;
|
|
527
|
-
return [3, 10];
|
|
528
|
-
case 9:
|
|
529
|
-
err_6 = _j.sent();
|
|
530
|
-
return [3, 10];
|
|
531
|
-
case 10:
|
|
532
571
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
533
|
-
(
|
|
572
|
+
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, params);
|
|
534
573
|
return [2, { response: brand_1, formData: params }];
|
|
535
|
-
case
|
|
574
|
+
case 8:
|
|
536
575
|
brandNameBody = {
|
|
537
576
|
id: '',
|
|
538
577
|
name: {
|
|
@@ -545,56 +584,44 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
545
584
|
terms_conditions_accepted: termAndConditionChecked,
|
|
546
585
|
id: (responseBody === null || responseBody === void 0 ? void 0 : responseBody.lead_id) || '',
|
|
547
586
|
step_name: CONNECT_STEP_NAMES.UPDATE_LEAD_BRAND,
|
|
548
|
-
encryption_contract: [
|
|
587
|
+
encryption_contract: []
|
|
549
588
|
};
|
|
550
589
|
return [4, API.leadService.updateLead(payload)];
|
|
551
|
-
case
|
|
552
|
-
lead =
|
|
590
|
+
case 9:
|
|
591
|
+
lead = _g.sent();
|
|
553
592
|
if (!lead.brand) {
|
|
554
593
|
console.error('Internal server error: brand is not created');
|
|
555
594
|
throw new Error('Internal server error');
|
|
556
595
|
}
|
|
557
596
|
brandReqBody = {
|
|
558
|
-
id: ((
|
|
597
|
+
id: ((_d = lead.brand) === null || _d === void 0 ? void 0 : _d.id) || '',
|
|
559
598
|
channel_services: channel_services,
|
|
560
599
|
term: ['general'],
|
|
561
600
|
step_name: CONNECT_STEP_NAMES.UPDATE_BRAND_INFO
|
|
562
601
|
};
|
|
563
602
|
return [4, API.brandService.updateBrandInfo(brandReqBody)];
|
|
603
|
+
case 10:
|
|
604
|
+
brand = _g.sent();
|
|
605
|
+
_g.label = 11;
|
|
606
|
+
case 11:
|
|
607
|
+
_g.trys.push([11, 13, , 14]);
|
|
608
|
+
return [4, API.dataService.getSegments({ page: 0, limit: 50 })];
|
|
609
|
+
case 12:
|
|
610
|
+
team = (_g.sent()).team;
|
|
611
|
+
brand.team_size_list = (team === null || team === void 0 ? void 0 : team.list) || [];
|
|
612
|
+
return [3, 14];
|
|
564
613
|
case 13:
|
|
565
|
-
|
|
566
|
-
|
|
614
|
+
err_8 = _g.sent();
|
|
615
|
+
return [3, 14];
|
|
567
616
|
case 14:
|
|
568
|
-
_j.trys.push([14, 16, , 17]);
|
|
569
|
-
return [4, thunkApi.dispatch(retrieveSegmentDataList()).unwrap()];
|
|
570
|
-
case 15:
|
|
571
|
-
_c = _j.sent(), segmentLocation = _c.segmentLocation, segmentProfit = _c.segmentProfit, segmentTech = _c.segmentTech;
|
|
572
|
-
brand.segment_location_list = segmentLocation;
|
|
573
|
-
brand.segment_profit_list = segmentProfit;
|
|
574
|
-
brand.segment_tech_list = segmentTech;
|
|
575
|
-
return [3, 17];
|
|
576
|
-
case 16:
|
|
577
|
-
err_7 = _j.sent();
|
|
578
|
-
return [3, 17];
|
|
579
|
-
case 17:
|
|
580
|
-
_j.trys.push([17, 19, , 20]);
|
|
581
|
-
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
582
|
-
case 18:
|
|
583
|
-
teamSize = _j.sent();
|
|
584
|
-
brand.team_size_list = teamSize.list;
|
|
585
|
-
return [3, 20];
|
|
586
|
-
case 19:
|
|
587
|
-
err_8 = _j.sent();
|
|
588
|
-
return [3, 20];
|
|
589
|
-
case 20:
|
|
590
617
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
591
|
-
(
|
|
618
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
|
|
592
619
|
return [2, { response: brand, formData: params }];
|
|
593
620
|
}
|
|
594
621
|
});
|
|
595
622
|
}); });
|
|
596
623
|
export var updateLeadBrandSegment = createAsyncThunk('updateLeadBrandSegment', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
597
|
-
var _a, settings, connect, responseBody, leadBrandId,
|
|
624
|
+
var _a, settings, connect, responseBody, leadBrandId, teamSize, brandReqBody, brand;
|
|
598
625
|
var _b, _c, _d;
|
|
599
626
|
return __generator(this, function (_e) {
|
|
600
627
|
switch (_e.label) {
|
|
@@ -602,11 +629,13 @@ export var updateLeadBrandSegment = createAsyncThunk('updateLeadBrandSegment', f
|
|
|
602
629
|
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
603
630
|
responseBody = connect.data.brandData.responseBody;
|
|
604
631
|
leadBrandId = (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.brand) === null || _b === void 0 ? void 0 : _b.id;
|
|
605
|
-
|
|
632
|
+
teamSize = params.teamSize;
|
|
606
633
|
brandReqBody = {
|
|
607
634
|
id: leadBrandId || '',
|
|
608
635
|
step_name: CONNECT_STEP_NAMES.UPDATE_BRAND_SEGMENT_INFO,
|
|
609
|
-
segment:
|
|
636
|
+
segment: {
|
|
637
|
+
team: { id: (teamSize === null || teamSize === void 0 ? void 0 : teamSize.id) || '' }
|
|
638
|
+
}
|
|
610
639
|
};
|
|
611
640
|
return [4, API.brandService.updateBrandInfo(brandReqBody)];
|
|
612
641
|
case 1:
|
|
@@ -618,20 +647,23 @@ export var updateLeadBrandSegment = createAsyncThunk('updateLeadBrandSegment', f
|
|
|
618
647
|
}
|
|
619
648
|
});
|
|
620
649
|
}); });
|
|
621
|
-
export var checkEmailAvailability = createAsyncThunk('checkEmailAvailability', function (_a) {
|
|
650
|
+
export var checkEmailAvailability = createAsyncThunk('checkEmailAvailability', function (_a, thunkApi) {
|
|
622
651
|
var email = _a.email, cancelToken = _a.cancelToken, onSuccess = _a.onSuccess;
|
|
623
652
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
624
|
-
var requestBody, data;
|
|
625
|
-
|
|
626
|
-
|
|
653
|
+
var connect, requestBody, data;
|
|
654
|
+
var _b, _c;
|
|
655
|
+
return __generator(this, function (_d) {
|
|
656
|
+
switch (_d.label) {
|
|
627
657
|
case 0:
|
|
658
|
+
connect = thunkApi.getState().connect;
|
|
628
659
|
requestBody = {
|
|
629
660
|
email: email,
|
|
661
|
+
country: (_c = (_b = connect.data.otpData.responseBody) === null || _b === void 0 ? void 0 : _b.leadData) === null || _c === void 0 ? void 0 : _c.country_code,
|
|
630
662
|
encryption_contract: ['email']
|
|
631
663
|
};
|
|
632
664
|
return [4, API.availabilityServices.checkEmail(requestBody, { cancelToken: cancelToken })];
|
|
633
665
|
case 1:
|
|
634
|
-
data = (
|
|
666
|
+
data = (_d.sent()).data;
|
|
635
667
|
onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();
|
|
636
668
|
if (!data.errors)
|
|
637
669
|
return [2, { response: data, formData: email }];
|
|
@@ -652,7 +684,7 @@ export var checkBrandNameAvailability = createAsyncThunk('checkBrandNameAvailabi
|
|
|
652
684
|
requestBody = {
|
|
653
685
|
profile_name: name,
|
|
654
686
|
country_code: (_b = settings.data.businessCountry) === null || _b === void 0 ? void 0 : _b.iso2,
|
|
655
|
-
encryption_contract: [
|
|
687
|
+
encryption_contract: []
|
|
656
688
|
};
|
|
657
689
|
return [4, API.availabilityServices.checkBrand(requestBody, { cancelToken: cancelToken })];
|
|
658
690
|
case 1:
|
|
@@ -693,6 +725,8 @@ var initialState = {
|
|
|
693
725
|
loading: false,
|
|
694
726
|
customLoading: false,
|
|
695
727
|
data: {
|
|
728
|
+
leadId: '',
|
|
729
|
+
isStartFromBusinessCountry: false,
|
|
696
730
|
flowName: FlowsTypes.CONNECT,
|
|
697
731
|
mobileData: {
|
|
698
732
|
countryCode: defaultCountry,
|
|
@@ -700,7 +734,6 @@ var initialState = {
|
|
|
700
734
|
},
|
|
701
735
|
nidData: {
|
|
702
736
|
nid: '',
|
|
703
|
-
dob: '',
|
|
704
737
|
type: ''
|
|
705
738
|
},
|
|
706
739
|
civilIdData: {
|
|
@@ -730,9 +763,6 @@ var initialState = {
|
|
|
730
763
|
}
|
|
731
764
|
},
|
|
732
765
|
brandSegmentData: {
|
|
733
|
-
segmentLocation: undefined,
|
|
734
|
-
segmentProfit: undefined,
|
|
735
|
-
segmentTech: undefined,
|
|
736
766
|
teamSize: undefined
|
|
737
767
|
}
|
|
738
768
|
}
|
|
@@ -744,6 +774,12 @@ export var connectSlice = createSlice({
|
|
|
744
774
|
clearError: function (state) {
|
|
745
775
|
state.error = null;
|
|
746
776
|
},
|
|
777
|
+
storeLeadId: function (state, action) {
|
|
778
|
+
state.data.leadId = action.payload;
|
|
779
|
+
},
|
|
780
|
+
storeIsStartFromBusinessCountry: function (state, action) {
|
|
781
|
+
state.data.isStartFromBusinessCountry = action.payload;
|
|
782
|
+
},
|
|
747
783
|
stopLoader: function (state) {
|
|
748
784
|
state.loading = false;
|
|
749
785
|
},
|
|
@@ -770,7 +806,7 @@ export var connectSlice = createSlice({
|
|
|
770
806
|
},
|
|
771
807
|
resetStore: function (state) {
|
|
772
808
|
var countryCode = state.data.mobileData.countryCode;
|
|
773
|
-
state.data = __assign(__assign({}, initialState.data), { mobileData: __assign(__assign({}, initialState.data.mobileData), { countryCode: countryCode }), individualData: __assign(__assign({}, initialState.data.individualData), { countryCode: countryCode }) });
|
|
809
|
+
state.data = __assign(__assign({}, initialState.data), { isStartFromBusinessCountry: state.data.isStartFromBusinessCountry, mobileData: __assign(__assign({}, initialState.data.mobileData), { countryCode: countryCode }), individualData: __assign(__assign({}, initialState.data.individualData), { countryCode: countryCode }) });
|
|
774
810
|
}
|
|
775
811
|
},
|
|
776
812
|
extraReducers: function (builder) {
|
|
@@ -856,7 +892,7 @@ export var connectSlice = createSlice({
|
|
|
856
892
|
channel_list: channel_list,
|
|
857
893
|
brandData: brand
|
|
858
894
|
};
|
|
859
|
-
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 });
|
|
895
|
+
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 });
|
|
860
896
|
})
|
|
861
897
|
.addCase(verifyPACI.rejected, function (state, action) {
|
|
862
898
|
state.loading = false;
|
|
@@ -865,13 +901,33 @@ export var connectSlice = createSlice({
|
|
|
865
901
|
state.error = error;
|
|
866
902
|
}
|
|
867
903
|
})
|
|
868
|
-
.addCase(
|
|
904
|
+
.addCase(createNafathAuth.fulfilled, function (state, action) {
|
|
905
|
+
state.loading = false;
|
|
906
|
+
state.error = null;
|
|
907
|
+
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
908
|
+
state.data.nidData = formData;
|
|
909
|
+
state.data.nidData.responseBody = response;
|
|
910
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
911
|
+
})
|
|
912
|
+
.addCase(createNafathAuth.pending, function (state) {
|
|
913
|
+
state.loading = true;
|
|
914
|
+
state.error = null;
|
|
915
|
+
})
|
|
916
|
+
.addCase(createNafathAuth.rejected, function (state, action) {
|
|
917
|
+
state.loading = false;
|
|
918
|
+
state.error = action.error.message;
|
|
919
|
+
})
|
|
920
|
+
.addCase(verifyNafath.pending, function (state) {
|
|
921
|
+
state.loading = true;
|
|
922
|
+
state.error = null;
|
|
923
|
+
})
|
|
924
|
+
.addCase(verifyNafath.fulfilled, function (state, action) {
|
|
869
925
|
var _a;
|
|
870
926
|
state.loading = false;
|
|
871
927
|
state.error = null;
|
|
872
928
|
var _b = action.payload, authResponse = _b.authResponse, leadResponse = _b.leadResponse, countryCode = _b.countryCode;
|
|
873
|
-
var name =
|
|
874
|
-
var
|
|
929
|
+
var _c = leadResponse || {}, name = _c.name, contact = _c.contact, brand = _c.brand, brand_list = _c.brand_list, channel_list = _c.channel_list, is_new_individual = _c.is_new_individual, id = _c.id;
|
|
930
|
+
var _d = contact || {}, email = _d.email, phone = _d.phone;
|
|
875
931
|
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
876
932
|
if (!!fullName) {
|
|
877
933
|
var capitalizedName = capitalizeTheFirstLetterOfEachWord(fullName);
|
|
@@ -899,43 +955,58 @@ export var connectSlice = createSlice({
|
|
|
899
955
|
channel_list: channel_list,
|
|
900
956
|
brandData: brand
|
|
901
957
|
};
|
|
902
|
-
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 });
|
|
958
|
+
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 });
|
|
903
959
|
})
|
|
904
|
-
.addCase(
|
|
905
|
-
state.loading = true;
|
|
906
|
-
state.error = null;
|
|
907
|
-
})
|
|
908
|
-
.addCase(verifyAuth.rejected, function (state, action) {
|
|
960
|
+
.addCase(verifyNafath.rejected, function (state, action) {
|
|
909
961
|
state.loading = false;
|
|
910
|
-
|
|
962
|
+
var error = action.error.message;
|
|
963
|
+
if (error !== 'Aborted') {
|
|
964
|
+
state.error = error;
|
|
965
|
+
}
|
|
911
966
|
})
|
|
912
|
-
.addCase(
|
|
967
|
+
.addCase(verifyAuth.fulfilled, function (state, action) {
|
|
968
|
+
var _a;
|
|
913
969
|
state.loading = false;
|
|
914
970
|
state.error = null;
|
|
915
|
-
var
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
971
|
+
var _b = action.payload, authResponse = _b.authResponse, leadResponse = _b.leadResponse, countryCode = _b.countryCode;
|
|
972
|
+
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;
|
|
973
|
+
var _c = contact || {}, email = _c.email, phone = _c.phone;
|
|
974
|
+
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
975
|
+
if (!!fullName) {
|
|
976
|
+
var capitalizedName = capitalizeTheFirstLetterOfEachWord(fullName);
|
|
977
|
+
state.data.individualData.name = capitalizedName;
|
|
978
|
+
}
|
|
979
|
+
if (email)
|
|
980
|
+
state.data.individualData.email = email;
|
|
981
|
+
if (phone === null || phone === void 0 ? void 0 : phone.number)
|
|
982
|
+
state.data.individualData.mobile = phone.number;
|
|
983
|
+
if (!!countryCode)
|
|
984
|
+
state.data.individualData.countryCode = countryCode;
|
|
985
|
+
if ((_a = brand === null || brand === void 0 ? void 0 : brand.name) === null || _a === void 0 ? void 0 : _a.en)
|
|
986
|
+
state.data.brandData.brandName = brand.name.en;
|
|
987
|
+
var brandList = [];
|
|
988
|
+
if ((brand_list === null || brand_list === void 0 ? void 0 : brand_list.length) > 0) {
|
|
989
|
+
var isBrandExist = brand_list.find(function (item) { return item.id === (brand === null || brand === void 0 ? void 0 : brand.id); });
|
|
990
|
+
brandList = __spreadArray([], brand_list, true);
|
|
991
|
+
if (!isBrandExist && brand)
|
|
992
|
+
brandList = __spreadArray(__spreadArray([], brandList, true), [__assign(__assign({}, brand), { channel_services: (brand === null || brand === void 0 ? void 0 : brand.channel_services) || [] })], false);
|
|
993
|
+
brandList = __spreadArray(__spreadArray([], brandList, true), [OTHER_BRAND], false);
|
|
994
|
+
state.data.brandData.selectedBrandItem = brandList[0];
|
|
995
|
+
}
|
|
996
|
+
state.data.brandData.responseBody = {
|
|
997
|
+
brand_list: brandList,
|
|
998
|
+
channel_list: channel_list,
|
|
999
|
+
brandData: brand
|
|
1000
|
+
};
|
|
1001
|
+
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 });
|
|
919
1002
|
})
|
|
920
|
-
.addCase(
|
|
1003
|
+
.addCase(verifyAuth.pending, function (state) {
|
|
921
1004
|
state.loading = true;
|
|
922
1005
|
state.error = null;
|
|
923
1006
|
})
|
|
924
|
-
.addCase(
|
|
1007
|
+
.addCase(verifyAuth.rejected, function (state, action) {
|
|
925
1008
|
state.loading = false;
|
|
926
1009
|
state.error = action.error.message;
|
|
927
|
-
})
|
|
928
|
-
.addCase(resendOTPNID.fulfilled, function (state, action) {
|
|
929
|
-
state.error = null;
|
|
930
|
-
var response = action.payload;
|
|
931
|
-
state.data.nidData.responseBody = response;
|
|
932
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
933
|
-
})
|
|
934
|
-
.addCase(resendOTPNID.pending, function (state) {
|
|
935
|
-
state.error = null;
|
|
936
|
-
})
|
|
937
|
-
.addCase(resendOTPNID.rejected, function (state, action) {
|
|
938
|
-
state.error = action.error.message;
|
|
939
1010
|
})
|
|
940
1011
|
.addCase(updateLeadIndividual.fulfilled, function (state, action) {
|
|
941
1012
|
var _a, _b, _c;
|
|
@@ -964,47 +1035,20 @@ export var connectSlice = createSlice({
|
|
|
964
1035
|
.addCase(updateLeadIndividual.rejected, function (state, action) {
|
|
965
1036
|
state.loading = false;
|
|
966
1037
|
state.error = action.error.message;
|
|
967
|
-
})
|
|
968
|
-
.addCase(retrieveSegmentDataList.pending, function (state) {
|
|
969
|
-
state.loading = true;
|
|
970
|
-
state.error = null;
|
|
971
|
-
})
|
|
972
|
-
.addCase(retrieveSegmentDataList.fulfilled, function (state) {
|
|
973
|
-
state.loading = false;
|
|
974
|
-
state.error = null;
|
|
975
|
-
})
|
|
976
|
-
.addCase(retrieveSegmentDataList.rejected, function (state, action) {
|
|
977
|
-
state.loading = false;
|
|
978
|
-
state.error = action.error.message;
|
|
979
1038
|
})
|
|
980
1039
|
.addCase(updateLeadBrand.fulfilled, function (state, action) {
|
|
981
1040
|
state.loading = false;
|
|
982
1041
|
state.error = null;
|
|
983
1042
|
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
984
|
-
var _b = response || {},
|
|
985
|
-
var selectedSegmentLocation = segment_location_list === null || segment_location_list === void 0 ? void 0 : segment_location_list.find(function (location) {
|
|
986
|
-
var _a, _b;
|
|
987
|
-
return location.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.location_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
988
|
-
});
|
|
989
|
-
var selectedSegmentProfit = segment_profit_list === null || segment_profit_list === void 0 ? void 0 : segment_profit_list.find(function (profit) {
|
|
990
|
-
var _a, _b;
|
|
991
|
-
return profit.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.profit_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
992
|
-
});
|
|
993
|
-
var selectedSegmentTech = segment_tech_list === null || segment_tech_list === void 0 ? void 0 : segment_tech_list.find(function (tech) {
|
|
994
|
-
var _a, _b;
|
|
995
|
-
return tech.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.tech_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
996
|
-
});
|
|
1043
|
+
var _b = response || {}, team_size_list = _b.team_size_list, brand = _b.brand;
|
|
997
1044
|
var selectedTeamSize = team_size_list === null || team_size_list === void 0 ? void 0 : team_size_list.find(function (_a) {
|
|
998
1045
|
var _b, _c;
|
|
999
1046
|
var id = _a.id;
|
|
1000
1047
|
return ((_c = (_b = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _b === void 0 ? void 0 : _b.team) === null || _c === void 0 ? void 0 : _c.id) === id;
|
|
1001
1048
|
});
|
|
1002
|
-
state.data.brandSegmentData.segmentLocation = selectedSegmentLocation || (segment_location_list === null || segment_location_list === void 0 ? void 0 : segment_location_list[0]);
|
|
1003
|
-
state.data.brandSegmentData.segmentProfit = selectedSegmentProfit || (segment_profit_list === null || segment_profit_list === void 0 ? void 0 : segment_profit_list[0]);
|
|
1004
|
-
state.data.brandSegmentData.segmentTech = selectedSegmentTech || (segment_tech_list === null || segment_tech_list === void 0 ? void 0 : segment_tech_list[1]);
|
|
1005
1049
|
state.data.brandSegmentData.teamSize = selectedTeamSize;
|
|
1006
1050
|
state.data.brandData = __assign(__assign({}, formData), { responseBody: __assign(__assign({}, state.data.brandData.responseBody), { brand: brand }) });
|
|
1007
|
-
state.data.brandSegmentData.responseBody = {
|
|
1051
|
+
state.data.brandSegmentData.responseBody = { team_size_list: team_size_list };
|
|
1008
1052
|
})
|
|
1009
1053
|
.addCase(updateLeadBrand.pending, function (state) {
|
|
1010
1054
|
state.loading = true;
|
|
@@ -1079,7 +1123,7 @@ export var connectSlice = createSlice({
|
|
|
1079
1123
|
state.customLoading = false;
|
|
1080
1124
|
state.error = null;
|
|
1081
1125
|
var _b = action.payload, data = _b.data, countryCode = _b.countryCode;
|
|
1082
|
-
var _c = data || {}, name = _c.name, contact = _c.contact, brand = _c.brand, identification = _c.identification
|
|
1126
|
+
var _c = data || {}, name = _c.name, contact = _c.contact, brand = _c.brand, identification = _c.identification;
|
|
1083
1127
|
var _d = contact || {}, email = _d.email, phone = _d.phone;
|
|
1084
1128
|
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
1085
1129
|
if (!!fullName) {
|
|
@@ -1100,8 +1144,6 @@ export var connectSlice = createSlice({
|
|
|
1100
1144
|
state.data.brandData.brandName = brand.name.en;
|
|
1101
1145
|
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1102
1146
|
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1103
|
-
if (date_of_birth)
|
|
1104
|
-
state.data.nidData.dob = date_of_birth;
|
|
1105
1147
|
})
|
|
1106
1148
|
.addCase(retrieveLead.pending, function (state) {
|
|
1107
1149
|
state.customLoading = true;
|
|
@@ -1110,9 +1152,21 @@ export var connectSlice = createSlice({
|
|
|
1110
1152
|
.addCase(retrieveLead.rejected, function (state, action) {
|
|
1111
1153
|
state.customLoading = false;
|
|
1112
1154
|
state.error = action.error.message;
|
|
1155
|
+
})
|
|
1156
|
+
.addCase(updateBusinessCountry.pending, function (state) {
|
|
1157
|
+
state.loading = true;
|
|
1158
|
+
state.error = null;
|
|
1159
|
+
})
|
|
1160
|
+
.addCase(updateBusinessCountry.rejected, function (state, action) {
|
|
1161
|
+
state.loading = false;
|
|
1162
|
+
state.error = action.error.message;
|
|
1163
|
+
})
|
|
1164
|
+
.addCase(updateBusinessCountry.fulfilled, function (state) {
|
|
1165
|
+
state.loading = false;
|
|
1166
|
+
state.error = null;
|
|
1113
1167
|
});
|
|
1114
1168
|
}
|
|
1115
1169
|
});
|
|
1116
|
-
export var clearError = (_a = connectSlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetMobileScreen = _a.resetMobileScreen, resetOTPScreen = _a.resetOTPScreen, resetIndividualScreen = _a.resetIndividualScreen, resetMerchantScreen = _a.resetMerchantScreen, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setDefaultCountryCode = _a.setDefaultCountryCode;
|
|
1170
|
+
export var clearError = (_a = connectSlice.actions, _a.clearError), storeLeadId = _a.storeLeadId, stopLoader = _a.stopLoader, resetMobileScreen = _a.resetMobileScreen, resetOTPScreen = _a.resetOTPScreen, resetIndividualScreen = _a.resetIndividualScreen, resetMerchantScreen = _a.resetMerchantScreen, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setDefaultCountryCode = _a.setDefaultCountryCode, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry;
|
|
1117
1171
|
export default connectSlice.reducer;
|
|
1118
1172
|
export var connectSelector = function (state) { return state.connect; };
|