@tap-payments/auth-jsconnect 2.8.66-development → 2.8.70-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/app.d.ts +19 -17
- package/build/@types/config.d.ts +1 -1
- package/build/@types/form.d.ts +24 -24
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +26 -13
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +8 -8
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +11 -10
- package/build/api/file.d.ts +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/index.d.ts +2 -2
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +18 -12
- package/build/api/lead.js +1 -1
- package/build/api/operator.d.ts +2 -2
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +21 -3
- package/build/app/settings.js +1 -1
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +10 -1
- package/build/assets/locales/en.json +10 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +1 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/CheckBox/CheckBox.d.ts +1 -1
- package/build/components/Collapse/Collapse.d.ts +1 -2
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/Form/Form.d.ts +1 -1
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
- package/build/components/List/List.d.ts +1 -1
- package/build/components/ListItem/ListItem.d.ts +1 -1
- package/build/components/Loader/Loader.d.ts +1 -1
- package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
- package/build/components/OTPField/OTPField.d.ts +1 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/components/Providers/ReduxProvider.d.ts +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/Radio/Radio.d.ts +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.d.ts +1 -1
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/Text/Text.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/constants/app.d.ts +2 -1
- package/build/constants/app.js +35 -12
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/build/features/app/auth/authStore.d.ts +195 -25
- package/build/features/app/auth/authStore.js +70 -127
- package/build/features/app/bank/bankStore.d.ts +93 -12
- package/build/features/app/bank/bankStore.js +1 -1
- package/build/features/app/board/boardStore.d.ts +41 -5
- package/build/features/app/board/boardStore.js +1 -1
- package/build/features/app/brand/brandStore.d.ts +143 -17
- package/build/features/app/brand/brandStore.js +1 -1
- package/build/features/app/business/businessStore.d.ts +168 -19
- package/build/features/app/business/businessStore.js +59 -45
- package/build/features/app/connect/connectStore.d.ts +160 -18
- package/build/features/app/connect/connectStore.js +152 -83
- package/build/features/app/connectExpress/connectExpressStore.d.ts +269 -40
- package/build/features/app/connectExpress/connectExpressStore.js +166 -259
- package/build/features/app/entity/entityStore.d.ts +93 -12
- package/build/features/app/entity/entityStore.js +1 -1
- package/build/features/app/individual/individualStore.d.ts +186 -24
- package/build/features/app/individual/individualStore.js +5 -2
- package/build/features/app/password/passwordStore.d.ts +123 -15
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +83 -11
- package/build/features/app/tax/taxStore.js +1 -1
- package/build/features/auth/Auth.d.ts +1 -4
- package/build/features/auth/Auth.js +8 -8
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.js +2 -2
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/auth/screens/Email/Email.d.ts +1 -1
- package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
- package/build/features/auth/screens/MigratingData/MigratingData.d.ts +1 -1
- package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/auth/screens/NID/IDNumber.js +1 -1
- package/build/features/auth/screens/NID/NID.d.ts +1 -1
- package/build/features/auth/screens/NID/NID.js +4 -10
- package/build/features/auth/screens/NID/validation.d.ts +0 -3
- package/build/features/auth/screens/NID/validation.js +0 -1
- package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTP.js +1 -5
- package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTPInput.js +2 -13
- package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/auth/screens/Password/Password.d.ts +1 -1
- package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/auth/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/auth/screens/VerifyNafath/index.js +2 -0
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +1 -2
- package/build/features/bank/Bank.js +5 -3
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/bank/screens/Success/Success.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/board/Board.d.ts +1 -2
- package/build/features/board/Board.js +5 -3
- package/build/features/board/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/board/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/Brand.d.ts +1 -2
- package/build/features/brand/Brand.js +5 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/brand/screens/Success/Success.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/Business.js +5 -3
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
- package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
- package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +19 -70
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +10 -31
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/business/screens/Success/Success.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/business/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/business/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/business/screens/VerifyNafath/index.js +2 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +6 -5
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +2 -2
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/IDNumber.d.ts +1 -0
- package/build/features/connect/screens/NID/IDNumber.js +2 -2
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/NID/NID.js +5 -11
- package/build/features/connect/screens/NID/validation.d.ts +0 -3
- package/build/features/connect/screens/NID/validation.js +0 -1
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.js +3 -11
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/connect/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/connect/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyNafath/index.js +2 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
- package/build/features/connectExpress/ConnectExpress.js +6 -5
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +5 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.js +34 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/index.d.ts +3 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/index.js +2 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.js +2 -2
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/NID/IDNumber.js +2 -2
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/NID.js +4 -9
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/NID/validation.d.ts +0 -3
- package/build/features/connectExpress/screens/NID/validation.js +0 -2
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.js +2 -2
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.js +5 -13
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.js +3 -11
- package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +34 -0
- package/build/features/connectExpress/screens/VerifyNafath/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyNafath/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +1 -2
- package/build/features/entity/Entity.js +5 -3
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/entity/screens/Success/Success.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/featuresScreens.js +21 -6
- package/build/features/individual/Individual.d.ts +1 -2
- package/build/features/individual/Individual.js +5 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/individual/screens/Success/Success.d.ts +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/Password.d.ts +1 -2
- package/build/features/password/Password.js +6 -4
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/password/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/password/screens/Success/Success.d.ts +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
- package/build/features/shared/Address/Address.d.ts +1 -2
- package/build/features/shared/Address/CountryList.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Address/InputText.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +1 -1
- package/build/features/shared/Background/LogoBackground.d.ts +1 -1
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/Button.d.ts +1 -2
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.js +1 -1
- package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/NafathButton.d.ts +7 -0
- package/build/features/shared/Button/{AbsherButton.js → NafathButton.js} +13 -3
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Button/index.d.ts +2 -2
- package/build/features/shared/Button/index.js +2 -2
- package/build/features/shared/Calender/Calender.d.ts +1 -2
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
- package/build/features/shared/Chip/Chip.d.ts +1 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
- package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +6 -14
- package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- package/build/features/shared/NafathVerification/NafathVerification.d.ts +13 -0
- package/build/features/shared/NafathVerification/NafathVerification.js +92 -0
- package/build/features/shared/NafathVerification/VerifyNafathLoading.d.ts +8 -0
- package/build/features/shared/NafathVerification/VerifyNafathLoading.js +53 -0
- package/build/features/shared/NafathVerification/VerifyNafathSuccess.d.ts +5 -0
- package/build/features/shared/NafathVerification/VerifyNafathSuccess.js +8 -0
- package/build/features/shared/NafathVerification/index.d.ts +2 -0
- package/build/features/shared/NafathVerification/index.js +2 -0
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
- package/build/features/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/SignIn.js +5 -3
- package/build/features/signIn/screens/Email/Email.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +1 -2
- package/build/features/tax/Tax.js +5 -3
- package/build/features/tax/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormDirtyCheck.d.ts +3 -3
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
- package/build/hooks/useFormReadOnly.d.ts +2 -2
- package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
- package/build/theme/palette.js +2 -1
- package/build/utils/array.js +1 -1
- package/package.json +1 -1
- package/build/features/auth/screens/NID/DOB.d.ts +0 -7
- package/build/features/auth/screens/NID/DOB.js +0 -47
- package/build/features/business/screens/OTP/OTP.d.ts +0 -8
- package/build/features/business/screens/OTP/OTP.js +0 -90
- package/build/features/business/screens/OTP/OTPInput.d.ts +0 -5
- package/build/features/business/screens/OTP/OTPInput.js +0 -49
- package/build/features/business/screens/OTP/index.d.ts +0 -3
- package/build/features/business/screens/OTP/index.js +0 -2
- package/build/features/business/screens/OTP/validation.d.ts +0 -8
- package/build/features/business/screens/OTP/validation.js +0 -4
- package/build/features/connect/screens/NID/DOB.d.ts +0 -6
- package/build/features/connect/screens/NID/DOB.js +0 -47
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +0 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +0 -88
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +0 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +0 -56
- package/build/features/connectExpress/screens/IdentityOTP/index.d.ts +0 -3
- package/build/features/connectExpress/screens/IdentityOTP/index.js +0 -2
- package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +0 -8
- package/build/features/connectExpress/screens/IdentityOTP/validation.js +0 -4
- package/build/features/connectExpress/screens/NID/DOB.d.ts +0 -7
- package/build/features/connectExpress/screens/NID/DOB.js +0 -47
- package/build/features/shared/Button/AbsherButton.d.ts +0 -8
|
@@ -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]) {
|
|
@@ -221,24 +221,26 @@ export var retrieveAuthenticationListAsync = createAsyncThunk('connectExpress/re
|
|
|
221
221
|
export var getMerchantListAsync = createAsyncThunk('connectExpress/getMerchantListAsync', function (_a, thunkApi) {
|
|
222
222
|
var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo;
|
|
223
223
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
224
|
-
var _b, settings, connectExpress, platforms, payment_provider, payload, merchants, list;
|
|
225
|
-
var _c, _d, _e, _f, _g, _h;
|
|
226
|
-
return __generator(this, function (
|
|
227
|
-
switch (
|
|
224
|
+
var _b, settings, connectExpress, leadId, platforms, payment_provider, payload, merchants, list;
|
|
225
|
+
var _c, _d, _e, _f, _g, _h, _j, _k;
|
|
226
|
+
return __generator(this, function (_l) {
|
|
227
|
+
switch (_l.label) {
|
|
228
228
|
case 0:
|
|
229
229
|
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
leadId = (_d = (_c = connectExpress.data.responseData) === null || _c === void 0 ? void 0 : _c.authData) === null || _d === void 0 ? void 0 : _d.lead_id;
|
|
231
|
+
platforms = (_g = (_f = (_e = connectExpress.data.responseData) === null || _e === void 0 ? void 0 : _e.leadData) === null || _f === void 0 ? void 0 : _f.platforms) !== null && _g !== void 0 ? _g : settings.data.appConfig.platforms;
|
|
232
|
+
payment_provider = (_k = (_j = (_h = connectExpress.data.responseData) === null || _h === void 0 ? void 0 : _h.leadData) === null || _j === void 0 ? void 0 : _j.payment_provider) !== null && _k !== void 0 ? _k : settings.data.appConfig.paymentProvider;
|
|
232
233
|
payload = {
|
|
233
234
|
business_entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || '',
|
|
234
235
|
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
236
|
+
lead_id: leadId || '',
|
|
235
237
|
create_if_not_present: true,
|
|
236
238
|
platforms: platforms,
|
|
237
239
|
payment_provider: payment_provider
|
|
238
240
|
};
|
|
239
241
|
return [4, API.entityService.getMerchantListUsingEntityId(payload)];
|
|
240
242
|
case 1:
|
|
241
|
-
merchants = (
|
|
243
|
+
merchants = (_l.sent()).merchants;
|
|
242
244
|
list = merchants || [];
|
|
243
245
|
if ((list === null || list === void 0 ? void 0 : list.length) > 1) {
|
|
244
246
|
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTH_MERCHANT_LIST_STEP'));
|
|
@@ -307,80 +309,109 @@ export var resendMobileAuthOTP = createAsyncThunk('connectExpress/resendMobileAu
|
|
|
307
309
|
}
|
|
308
310
|
});
|
|
309
311
|
}); });
|
|
310
|
-
export var
|
|
311
|
-
var
|
|
312
|
-
var
|
|
313
|
-
return __generator(this, function (
|
|
314
|
-
switch (
|
|
312
|
+
export var createNafathAuth = createAsyncThunk('connectExpress/createNafathAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
313
|
+
var settings, requestBody, data;
|
|
314
|
+
var _a, _b;
|
|
315
|
+
return __generator(this, function (_c) {
|
|
316
|
+
switch (_c.label) {
|
|
315
317
|
case 0:
|
|
316
|
-
|
|
317
|
-
dob = params.dob, nid = params.nid;
|
|
318
|
-
nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
319
|
-
countryCode = settings.data.businessCountry.iso2;
|
|
318
|
+
settings = thunkApi.getState().settings;
|
|
320
319
|
requestBody = {
|
|
321
|
-
country:
|
|
320
|
+
country: settings.data.businessCountry.iso2,
|
|
322
321
|
scope: settings.data.appConfig.scope,
|
|
323
322
|
lang: settings.data.language,
|
|
324
|
-
lead_id: connectExpress.data.leadId,
|
|
325
323
|
user_credentail: {
|
|
326
|
-
identification_id: nid,
|
|
327
|
-
identification_id_type:
|
|
328
|
-
|
|
329
|
-
country_code: countryCode
|
|
324
|
+
identification_id: params.nid,
|
|
325
|
+
identification_id_type: IDENTIFICATION_TYPE.NAFATH,
|
|
326
|
+
country_code: settings.data.businessCountry.iso2
|
|
330
327
|
},
|
|
331
328
|
sign_in: false,
|
|
332
329
|
is_lead: true,
|
|
333
330
|
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_NID,
|
|
334
|
-
encryption_contract: [
|
|
335
|
-
'user_credentail.country_code',
|
|
336
|
-
'user_credentail.identification_id',
|
|
337
|
-
'user_credentail.identification_id_type',
|
|
338
|
-
'user_credentail.date_of_birth'
|
|
339
|
-
]
|
|
331
|
+
encryption_contract: ['user_credentail.country_code', 'user_credentail.identification_id', 'user_credentail.identification_id_type']
|
|
340
332
|
};
|
|
341
|
-
return [4, API.authService.
|
|
333
|
+
return [4, API.authService.createAuthKitNID(requestBody)];
|
|
342
334
|
case 1:
|
|
343
|
-
data =
|
|
335
|
+
data = _c.sent();
|
|
344
336
|
thunkApi.dispatch(handleNextScreenStep());
|
|
345
|
-
(
|
|
346
|
-
return [2, { response: data, formData: params }];
|
|
337
|
+
(_b = (_a = settings.data.appConfig).onStepCompleted) === null || _b === void 0 ? void 0 : _b.call(_a, settings.data.activeScreen.name, requestBody);
|
|
338
|
+
return [2, { response: data, formData: __assign(__assign({}, params), { type: IDENTIFICATION_TYPE.NAFATH }) }];
|
|
347
339
|
}
|
|
348
340
|
});
|
|
349
341
|
}); });
|
|
350
|
-
export var
|
|
351
|
-
var _a, settings, connectExpress,
|
|
352
|
-
|
|
353
|
-
|
|
342
|
+
export var verifyNafathAsync = createAsyncThunk('connectExpress/verifyNafathAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
343
|
+
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
344
|
+
var _d, _e, _f;
|
|
345
|
+
return __generator(this, function (_g) {
|
|
346
|
+
switch (_g.label) {
|
|
354
347
|
case 0:
|
|
355
348
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
date_of_birth: dob,
|
|
368
|
-
country_code: countryCode
|
|
369
|
-
},
|
|
370
|
-
sign_in: false,
|
|
371
|
-
is_lead: true,
|
|
372
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_NID,
|
|
373
|
-
encryption_contract: [
|
|
374
|
-
'user_credentail.country_code',
|
|
375
|
-
'user_credentail.identification_id',
|
|
376
|
-
'user_credentail.identification_id_type',
|
|
377
|
-
'user_credentail.date_of_birth'
|
|
378
|
-
]
|
|
379
|
-
};
|
|
380
|
-
return [4, API.authService.createExpressAuth(requestBody)];
|
|
349
|
+
authData = (connectExpress.data.responseData || {}).authData;
|
|
350
|
+
_b = settings.data.appConfig, scope = _b.scope, redirectUrl = _b.redirectUrl, authConfigData = _b.data;
|
|
351
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
352
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
353
|
+
isDataHasIndividualOnly = (authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length) === 1 && authConfigData.includes('individual');
|
|
354
|
+
authDataHasValue = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.length;
|
|
355
|
+
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
356
|
+
interval = 3;
|
|
357
|
+
maxCalls = Math.floor(expiry / interval);
|
|
358
|
+
count = 1;
|
|
359
|
+
_g.label = 1;
|
|
381
360
|
case 1:
|
|
382
|
-
|
|
383
|
-
|
|
361
|
+
if (!(count <= maxCalls)) return [3, 9];
|
|
362
|
+
if (thunkApi.signal.aborted) {
|
|
363
|
+
return [3, 9];
|
|
364
|
+
}
|
|
365
|
+
return [4, API.authService.getVerifyAuth(authData === null || authData === void 0 ? void 0 : authData.auth_token)];
|
|
366
|
+
case 2:
|
|
367
|
+
data = _g.sent();
|
|
368
|
+
isSuccess = ((_e = (_d = data.auth) === null || _d === void 0 ? void 0 : _d.status) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'completed';
|
|
369
|
+
if (!isSuccess) return [3, 6];
|
|
370
|
+
authId = data.auth.id;
|
|
371
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
372
|
+
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
373
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
374
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
375
|
+
thunkApi.dispatch(handleOpen(false));
|
|
376
|
+
return [2, data];
|
|
377
|
+
}
|
|
378
|
+
if (redirectUrl) {
|
|
379
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
380
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
381
|
+
return [2, data];
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 4];
|
|
385
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
386
|
+
case 3:
|
|
387
|
+
_c = _g.sent(), brandList = _c.brandList, entityList = _c.entityList;
|
|
388
|
+
if (brandList.length && entityList.length) {
|
|
389
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
390
|
+
return [2, data];
|
|
391
|
+
}
|
|
392
|
+
_g.label = 4;
|
|
393
|
+
case 4: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
394
|
+
case 5:
|
|
395
|
+
_g.sent();
|
|
396
|
+
stepName = data.step_name;
|
|
397
|
+
needToCollectMoreInfo = stepName === 'collect_info';
|
|
398
|
+
creatingAccount = stepName === 'create_account';
|
|
399
|
+
(_f = params.onSuccess) === null || _f === void 0 ? void 0 : _f.call(params);
|
|
400
|
+
if (creatingAccount) {
|
|
401
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
402
|
+
}
|
|
403
|
+
if (needToCollectMoreInfo) {
|
|
404
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
405
|
+
}
|
|
406
|
+
return [2, data];
|
|
407
|
+
case 6: return [4, sleep(interval * 1000)];
|
|
408
|
+
case 7:
|
|
409
|
+
_g.sent();
|
|
410
|
+
_g.label = 8;
|
|
411
|
+
case 8:
|
|
412
|
+
count++;
|
|
413
|
+
return [3, 1];
|
|
414
|
+
case 9: throw new Error('nafath_verification_failed');
|
|
384
415
|
}
|
|
385
416
|
});
|
|
386
417
|
}); });
|
|
@@ -488,82 +519,6 @@ export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileO
|
|
|
488
519
|
}
|
|
489
520
|
});
|
|
490
521
|
}); });
|
|
491
|
-
export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
492
|
-
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, nidData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, payload, data, authId, urlQueryStart, _e, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
493
|
-
var _f, _g;
|
|
494
|
-
return __generator(this, function (_h) {
|
|
495
|
-
switch (_h.label) {
|
|
496
|
-
case 0:
|
|
497
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
498
|
-
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, nidData = _b.nidData;
|
|
499
|
-
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
500
|
-
throw new Error('Auth data is missing');
|
|
501
|
-
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
502
|
-
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
503
|
-
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
504
|
-
bi = settings.data.deviceInfo.browser.browser_id;
|
|
505
|
-
isDataHasIndividualOnly = (authData === null || authData === void 0 ? void 0 : authData.length) === 1 && authData.includes('individual');
|
|
506
|
-
authDataHasValue = authData === null || authData === void 0 ? void 0 : authData.length;
|
|
507
|
-
payload = {
|
|
508
|
-
auth_token: auth_token,
|
|
509
|
-
lead_id: leadId,
|
|
510
|
-
data: params.otp,
|
|
511
|
-
auth_type: 2,
|
|
512
|
-
device_token: device_token,
|
|
513
|
-
service_name: service_name || 'ABSHER',
|
|
514
|
-
sign_in: false,
|
|
515
|
-
terms: isLeadIdPassed && nidData.termAndConditionChecked ? ['general'] : undefined,
|
|
516
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_AUTH_NID,
|
|
517
|
-
encryption_contract: ['data']
|
|
518
|
-
};
|
|
519
|
-
return [4, API.authService.verifyExpressAuth(payload)];
|
|
520
|
-
case 1:
|
|
521
|
-
data = _h.sent();
|
|
522
|
-
sendCustomEventToGTM({
|
|
523
|
-
event: 'Send Event',
|
|
524
|
-
event_category: 'User Registration Flow',
|
|
525
|
-
event_action: 'First OTP Success'
|
|
526
|
-
});
|
|
527
|
-
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
528
|
-
authId = data.auth.id;
|
|
529
|
-
thunkApi.dispatch(storeAuthId(authId));
|
|
530
|
-
if (isScopeAuthentication && !data.new_user && isDataHasIndividualOnly && authId) {
|
|
531
|
-
if (settings.data.appConfig.mode === 'popup') {
|
|
532
|
-
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
533
|
-
thunkApi.dispatch(handleOpen(false));
|
|
534
|
-
return [2, data];
|
|
535
|
-
}
|
|
536
|
-
if (redirectUrl) {
|
|
537
|
-
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
538
|
-
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
539
|
-
return [2, data];
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
if (!(isScopeAuthentication && !data.new_user && authDataHasValue)) return [3, 3];
|
|
543
|
-
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
544
|
-
case 2:
|
|
545
|
-
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
546
|
-
if (brandList.length && entityList.length) {
|
|
547
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
548
|
-
return [2, data];
|
|
549
|
-
}
|
|
550
|
-
_h.label = 3;
|
|
551
|
-
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
552
|
-
case 4:
|
|
553
|
-
_h.sent();
|
|
554
|
-
stepName = data.step_name;
|
|
555
|
-
needToCollectMoreInfo = stepName === 'collect_info';
|
|
556
|
-
creatingAccount = stepName === 'create_account';
|
|
557
|
-
if (creatingAccount) {
|
|
558
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
559
|
-
}
|
|
560
|
-
if (needToCollectMoreInfo) {
|
|
561
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
562
|
-
}
|
|
563
|
-
return [2, data];
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
}); });
|
|
567
522
|
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
568
523
|
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasIndividualOnly, authDataHasValue, expiry, interval, maxCalls, count, data, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
569
524
|
var _d, _e, _f;
|
|
@@ -668,28 +623,29 @@ export var createCivilIDAuthIdentityAsync = createAsyncThunk('connectExpress/cre
|
|
|
668
623
|
}
|
|
669
624
|
});
|
|
670
625
|
}); });
|
|
671
|
-
export var
|
|
672
|
-
var _a, settings, connectExpress,
|
|
626
|
+
export var createNIDNafathAuthIdentityAsync = createAsyncThunk('connectExpress/createNIDNafathAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
+
var _a, settings, connectExpress, nid, dob, nidType, countryCode, authData, requestBody, data;
|
|
673
628
|
var _b, _c, _d;
|
|
674
629
|
return __generator(this, function (_e) {
|
|
675
630
|
switch (_e.label) {
|
|
676
631
|
case 0:
|
|
677
632
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
678
|
-
|
|
679
|
-
nidType =
|
|
633
|
+
nid = params.nid, dob = params.dob;
|
|
634
|
+
nidType = IDENTIFICATION_TYPE.NAFATH;
|
|
680
635
|
countryCode = settings.data.businessCountry.iso2;
|
|
681
636
|
if (isOtherThanKWOrSA(countryCode)) {
|
|
682
637
|
nidType = IDENTIFICATION_TYPE.NID;
|
|
683
638
|
}
|
|
639
|
+
authData = (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData;
|
|
684
640
|
requestBody = {
|
|
685
|
-
id:
|
|
641
|
+
id: authData === null || authData === void 0 ? void 0 : authData.lead_id,
|
|
686
642
|
identification: {
|
|
687
643
|
id: nid,
|
|
688
644
|
issued_country_code: countryCode,
|
|
689
645
|
type: nidType
|
|
690
646
|
},
|
|
691
|
-
country_code: countryCode,
|
|
692
647
|
date_of_birth: dob,
|
|
648
|
+
country_code: countryCode,
|
|
693
649
|
step_name: CONNECT_EXPRESS_STEP_NAMES.IDENTITY_AUTH,
|
|
694
650
|
encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
|
|
695
651
|
};
|
|
@@ -697,7 +653,7 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
|
|
|
697
653
|
case 1:
|
|
698
654
|
data = _e.sent();
|
|
699
655
|
if (!((data === null || data === void 0 ? void 0 : data.verify_token) !== 'null')) return [3, 2];
|
|
700
|
-
thunkApi.dispatch(handleNextScreenStep('
|
|
656
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_IDENTITY_VERIFY_NAFATH_STEP'));
|
|
701
657
|
return [3, 4];
|
|
702
658
|
case 2:
|
|
703
659
|
if (!isOtherThanKWOrSA(countryCode)) return [3, 4];
|
|
@@ -707,77 +663,40 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
|
|
|
707
663
|
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP'));
|
|
708
664
|
_e.label = 4;
|
|
709
665
|
case 4:
|
|
710
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody
|
|
666
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody);
|
|
711
667
|
return [2, { response: { verify_token: data.verify_token }, formData: params }];
|
|
712
668
|
}
|
|
713
669
|
});
|
|
714
670
|
}); });
|
|
715
|
-
export var
|
|
716
|
-
var
|
|
717
|
-
var _b;
|
|
718
|
-
return __generator(this, function (
|
|
719
|
-
switch (
|
|
720
|
-
case 0:
|
|
721
|
-
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
722
|
-
dob = params.dob, nid = params.nid;
|
|
723
|
-
nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
724
|
-
countryCode = settings.data.businessCountry.iso2;
|
|
725
|
-
if (isOtherThanKWOrSA(countryCode)) {
|
|
726
|
-
nidType = IDENTIFICATION_TYPE.NID;
|
|
727
|
-
}
|
|
728
|
-
requestBody = {
|
|
729
|
-
id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
|
|
730
|
-
identification: {
|
|
731
|
-
id: nid,
|
|
732
|
-
issued_country_code: countryCode,
|
|
733
|
-
type: nidType
|
|
734
|
-
},
|
|
735
|
-
country_code: countryCode,
|
|
736
|
-
date_of_birth: dob,
|
|
737
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.IDENTITY_AUTH,
|
|
738
|
-
encryption_contract: ['identification.issued_country_code', 'identification.id', 'identification.type', 'date_of_birth']
|
|
739
|
-
};
|
|
740
|
-
return [4, API.leadService.updateLead(requestBody)];
|
|
741
|
-
case 1:
|
|
742
|
-
data = _c.sent();
|
|
743
|
-
return [2, { response: { verify_token: data.verify_token }, formData: params }];
|
|
744
|
-
}
|
|
745
|
-
});
|
|
746
|
-
}); });
|
|
747
|
-
export var verifyNIDOtpLeadIdentityAsync = createAsyncThunk('connectExpress/verifyNIDOtpLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
748
|
-
var _a, settings, connectExpress, _b, responseData, leadId, verify_token, payload, data, needToCollectMoreInfo, creatingAccount;
|
|
749
|
-
var _c, _d;
|
|
750
|
-
return __generator(this, function (_e) {
|
|
751
|
-
switch (_e.label) {
|
|
671
|
+
export var verifyNafathIdentityAsync = createAsyncThunk('connectExpress/verifyNafathIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
672
|
+
var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, needToCollectMoreInfo, creatingAccount;
|
|
673
|
+
var _a, _b, _c;
|
|
674
|
+
return __generator(this, function (_d) {
|
|
675
|
+
switch (_d.label) {
|
|
752
676
|
case 0:
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
lead_id: leadId,
|
|
761
|
-
data: params.otp,
|
|
762
|
-
service_name: 'absher',
|
|
763
|
-
sign_in: false,
|
|
764
|
-
step_name: CONNECT_EXPRESS_STEP_NAMES.VERIFY_IDENTITY_AUTH,
|
|
765
|
-
encryption_contract: ['data']
|
|
766
|
-
};
|
|
767
|
-
return [4, API.authService.verifyExpressLeadIdentity(payload)];
|
|
677
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
678
|
+
authData = (connectExpress.data.responseData || {}).authData;
|
|
679
|
+
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
680
|
+
interval = 3;
|
|
681
|
+
maxCalls = Math.floor(expiry / interval);
|
|
682
|
+
count = 1;
|
|
683
|
+
_d.label = 1;
|
|
768
684
|
case 1:
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
});
|
|
775
|
-
return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
685
|
+
if (!(count <= maxCalls)) return [3, 7];
|
|
686
|
+
if (thunkApi.signal.aborted) {
|
|
687
|
+
return [3, 7];
|
|
688
|
+
}
|
|
689
|
+
return [4, API.authService.getExpressTokenVerify({ token: authData === null || authData === void 0 ? void 0 : authData.verify_token, leadId: authData === null || authData === void 0 ? void 0 : authData.lead_id })];
|
|
776
690
|
case 2:
|
|
777
|
-
|
|
778
|
-
(
|
|
691
|
+
data = _d.sent();
|
|
692
|
+
isSuccess = ((_b = (_a = data.auth) === null || _a === void 0 ? void 0 : _a.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'completed';
|
|
693
|
+
if (!isSuccess) return [3, 4];
|
|
694
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
695
|
+
case 3:
|
|
696
|
+
_d.sent();
|
|
779
697
|
needToCollectMoreInfo = data.step_name === 'collect_info';
|
|
780
698
|
creatingAccount = data.step_name === 'create_account';
|
|
699
|
+
(_c = params.onSuccess) === null || _c === void 0 ? void 0 : _c.call(params);
|
|
781
700
|
if (creatingAccount) {
|
|
782
701
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
783
702
|
}
|
|
@@ -785,10 +704,18 @@ export var verifyNIDOtpLeadIdentityAsync = createAsyncThunk('connectExpress/veri
|
|
|
785
704
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
786
705
|
}
|
|
787
706
|
return [2, data];
|
|
707
|
+
case 4: return [4, sleep(interval * 1000)];
|
|
708
|
+
case 5:
|
|
709
|
+
_d.sent();
|
|
710
|
+
_d.label = 6;
|
|
711
|
+
case 6:
|
|
712
|
+
count++;
|
|
713
|
+
return [3, 1];
|
|
714
|
+
case 7: throw new Error('nafath_verification_failed');
|
|
788
715
|
}
|
|
789
716
|
});
|
|
790
717
|
}); });
|
|
791
|
-
export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/
|
|
718
|
+
export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verifyPaciLeadIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
792
719
|
var connectExpress, authData, expiry, interval, maxCalls, count, data, isSuccess, needToCollectMoreInfo, creatingAccount;
|
|
793
720
|
var _a, _b, _c;
|
|
794
721
|
return __generator(this, function (_d) {
|
|
@@ -831,7 +758,7 @@ export var verifyPaciLeadIdentityAsync = createAsyncThunk('connectExpress/verify
|
|
|
831
758
|
case 6:
|
|
832
759
|
count++;
|
|
833
760
|
return [3, 1];
|
|
834
|
-
case 7: throw new Error('
|
|
761
|
+
case 7: throw new Error('nafath_verification_failed');
|
|
835
762
|
}
|
|
836
763
|
});
|
|
837
764
|
}); });
|
|
@@ -1176,7 +1103,6 @@ var initialState = {
|
|
|
1176
1103
|
},
|
|
1177
1104
|
nidData: {
|
|
1178
1105
|
nid: '',
|
|
1179
|
-
dob: '',
|
|
1180
1106
|
termAndConditionChecked: false
|
|
1181
1107
|
},
|
|
1182
1108
|
civilIdData: {
|
|
@@ -1265,11 +1191,9 @@ export var connectSlice = createSlice({
|
|
|
1265
1191
|
state.customLoading = false;
|
|
1266
1192
|
var _a = action.payload, data = _a.data, countryCode = _a.countryCode, boardInfo = _a.boardInfo, boardData = _a.boardData;
|
|
1267
1193
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { leadData: data, boardInfo: boardInfo, boardData: boardData });
|
|
1268
|
-
var _b = data || {}, identification = _b.identification,
|
|
1194
|
+
var _b = data || {}, identification = _b.identification, contact = _b.contact, terms_conditions_accepted = _b.terms_conditions_accepted;
|
|
1269
1195
|
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1270
1196
|
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1271
|
-
if (date_of_birth)
|
|
1272
|
-
state.data.nidData.dob = date_of_birth;
|
|
1273
1197
|
var phone = (contact || {}).phone;
|
|
1274
1198
|
if (phone) {
|
|
1275
1199
|
state.data.mobileData.mobile = phone === null || phone === void 0 ? void 0 : phone.number;
|
|
@@ -1293,11 +1217,9 @@ export var connectSlice = createSlice({
|
|
|
1293
1217
|
state.loading = false;
|
|
1294
1218
|
var _c = action.payload, data = _c.data, countryCode = _c.countryCode;
|
|
1295
1219
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { leadData: data });
|
|
1296
|
-
var _d = data || {}, name = _d.name, contact = _d.contact, brand = _d.brand, identification = _d.identification,
|
|
1220
|
+
var _d = data || {}, name = _d.name, contact = _d.contact, brand = _d.brand, identification = _d.identification, terms_conditions_accepted = _d.terms_conditions_accepted;
|
|
1297
1221
|
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
1298
1222
|
state.data.nidData.nid = identification === null || identification === void 0 ? void 0 : identification.id;
|
|
1299
|
-
if (date_of_birth)
|
|
1300
|
-
state.data.nidData.dob = date_of_birth;
|
|
1301
1223
|
var fullName = concatenateObjectValues(name, ['first', 'middle', 'last']);
|
|
1302
1224
|
if (!!fullName) {
|
|
1303
1225
|
var capitalizedName = capitalizeTheFirstLetterOfEachWord(fullName);
|
|
@@ -1344,29 +1266,20 @@ export var connectSlice = createSlice({
|
|
|
1344
1266
|
.addCase(resendMobileAuthOTP.rejected, function (state, action) {
|
|
1345
1267
|
state.error = action.error.message;
|
|
1346
1268
|
})
|
|
1347
|
-
.addCase(
|
|
1348
|
-
state.loading = true;
|
|
1349
|
-
state.error = null;
|
|
1350
|
-
})
|
|
1351
|
-
.addCase(createNIDAuthAsync.fulfilled, function (state, action) {
|
|
1269
|
+
.addCase(createNafathAuth.fulfilled, function (state, action) {
|
|
1352
1270
|
state.loading = false;
|
|
1353
|
-
state.
|
|
1271
|
+
state.error = null;
|
|
1272
|
+
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
1273
|
+
state.data.nidData = formData;
|
|
1274
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: response });
|
|
1354
1275
|
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
1355
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1356
|
-
})
|
|
1357
|
-
.addCase(createNIDAuthAsync.rejected, function (state, action) {
|
|
1358
|
-
state.loading = false;
|
|
1359
|
-
state.error = action.error.message;
|
|
1360
1276
|
})
|
|
1361
|
-
.addCase(
|
|
1277
|
+
.addCase(createNafathAuth.pending, function (state) {
|
|
1278
|
+
state.loading = true;
|
|
1362
1279
|
state.error = null;
|
|
1363
1280
|
})
|
|
1364
|
-
.addCase(
|
|
1365
|
-
state.
|
|
1366
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID;
|
|
1367
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: action.payload.response });
|
|
1368
|
-
})
|
|
1369
|
-
.addCase(resendNIDAuthOTP.rejected, function (state, action) {
|
|
1281
|
+
.addCase(createNafathAuth.rejected, function (state, action) {
|
|
1282
|
+
state.loading = false;
|
|
1370
1283
|
state.error = action.error.message;
|
|
1371
1284
|
})
|
|
1372
1285
|
.addCase(createCivilIdAuthAsync.pending, function (state) {
|
|
@@ -1398,32 +1311,20 @@ export var connectSlice = createSlice({
|
|
|
1398
1311
|
state.loading = false;
|
|
1399
1312
|
state.error = action.error.message;
|
|
1400
1313
|
})
|
|
1401
|
-
.addCase(
|
|
1314
|
+
.addCase(createNIDNafathAuthIdentityAsync.pending, function (state) {
|
|
1402
1315
|
state.loading = true;
|
|
1403
1316
|
state.error = null;
|
|
1404
1317
|
})
|
|
1405
|
-
.addCase(
|
|
1318
|
+
.addCase(createNIDNafathAuthIdentityAsync.fulfilled, function (state, action) {
|
|
1406
1319
|
var _a;
|
|
1407
1320
|
state.loading = false;
|
|
1408
1321
|
state.data.nidData = action.payload.formData;
|
|
1409
1322
|
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
1410
1323
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
1411
1324
|
})
|
|
1412
|
-
.addCase(
|
|
1325
|
+
.addCase(createNIDNafathAuthIdentityAsync.rejected, function (state, action) {
|
|
1413
1326
|
state.loading = false;
|
|
1414
1327
|
state.error = action.error.message;
|
|
1415
|
-
})
|
|
1416
|
-
.addCase(resendNIDAuthIdentityOTP.pending, function (state) {
|
|
1417
|
-
state.error = null;
|
|
1418
|
-
})
|
|
1419
|
-
.addCase(resendNIDAuthIdentityOTP.fulfilled, function (state, action) {
|
|
1420
|
-
var _a;
|
|
1421
|
-
state.data.nidData = action.payload.formData;
|
|
1422
|
-
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
1423
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload.response) });
|
|
1424
|
-
})
|
|
1425
|
-
.addCase(resendNIDAuthIdentityOTP.rejected, function (state, action) {
|
|
1426
|
-
state.error = action.error.message;
|
|
1427
1328
|
})
|
|
1428
1329
|
.addCase(verifyMobileOtpAsync.pending, function (state) {
|
|
1429
1330
|
state.loading = true;
|
|
@@ -1438,18 +1339,21 @@ export var connectSlice = createSlice({
|
|
|
1438
1339
|
state.loading = false;
|
|
1439
1340
|
state.error = action.error.message;
|
|
1440
1341
|
})
|
|
1441
|
-
.addCase(
|
|
1342
|
+
.addCase(verifyNafathAsync.pending, function (state) {
|
|
1442
1343
|
state.loading = true;
|
|
1443
1344
|
state.error = null;
|
|
1444
1345
|
})
|
|
1445
|
-
.addCase(
|
|
1346
|
+
.addCase(verifyNafathAsync.fulfilled, function (state, action) {
|
|
1446
1347
|
var _a;
|
|
1447
1348
|
state.loading = false;
|
|
1448
1349
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign({}, (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData), action.payload) });
|
|
1449
1350
|
})
|
|
1450
|
-
.addCase(
|
|
1351
|
+
.addCase(verifyNafathAsync.rejected, function (state, action) {
|
|
1451
1352
|
state.loading = false;
|
|
1452
|
-
|
|
1353
|
+
var error = action.error.message;
|
|
1354
|
+
if (error !== 'Aborted') {
|
|
1355
|
+
state.error = error;
|
|
1356
|
+
}
|
|
1453
1357
|
})
|
|
1454
1358
|
.addCase(verifyPACIAsync.pending, function (state) {
|
|
1455
1359
|
state.loading = true;
|
|
@@ -1467,19 +1371,22 @@ export var connectSlice = createSlice({
|
|
|
1467
1371
|
state.error = error;
|
|
1468
1372
|
}
|
|
1469
1373
|
})
|
|
1470
|
-
.addCase(
|
|
1374
|
+
.addCase(verifyNafathIdentityAsync.pending, function (state) {
|
|
1471
1375
|
state.loading = true;
|
|
1472
1376
|
state.error = null;
|
|
1473
1377
|
})
|
|
1474
|
-
.addCase(
|
|
1378
|
+
.addCase(verifyNafathIdentityAsync.fulfilled, function (state, action) {
|
|
1475
1379
|
var _a, _b, _c;
|
|
1476
1380
|
state.loading = false;
|
|
1477
1381
|
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1478
1382
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { authData: __assign(__assign(__assign({}, (_b = state.data.responseData) === null || _b === void 0 ? void 0 : _b.authData), action.payload), { auth: __assign(__assign({}, (_c = action.payload) === null || _c === void 0 ? void 0 : _c.auth), { id: auth === null || auth === void 0 ? void 0 : auth.id }) }) });
|
|
1479
1383
|
})
|
|
1480
|
-
.addCase(
|
|
1384
|
+
.addCase(verifyNafathIdentityAsync.rejected, function (state, action) {
|
|
1481
1385
|
state.loading = false;
|
|
1482
|
-
|
|
1386
|
+
var error = action.error.message;
|
|
1387
|
+
if (error !== 'Aborted') {
|
|
1388
|
+
state.error = error;
|
|
1389
|
+
}
|
|
1483
1390
|
})
|
|
1484
1391
|
.addCase(verifyPaciLeadIdentityAsync.pending, function (state) {
|
|
1485
1392
|
state.loading = true;
|