@tap-payments/auth-jsconnect 2.10.1-beta → 2.10.1-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 +26 -19
- package/build/@types/app.js +8 -0
- package/build/@types/config.d.ts +1 -1
- package/build/@types/form.d.ts +28 -25
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/terminal.d.ts +116 -0
- package/build/@types/terminal.js +1 -0
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +3 -2
- package/build/api/account.js +7 -0
- package/build/api/auth.d.ts +25 -16
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +8 -8
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +10 -10
- package/build/api/file.d.ts +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/index.d.ts +9 -1
- package/build/api/index.js +3 -1
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +13 -13
- package/build/api/lead.js +1 -1
- package/build/api/operator.d.ts +2 -2
- package/build/api/operator.js +1 -1
- package/build/api/terminal.d.ts +23 -0
- package/build/api/terminal.js +60 -0
- package/build/api/user.d.ts +3 -3
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +3 -1
- package/build/app/settings.d.ts +22 -3
- package/build/app/settings.js +10 -5
- package/build/app/store.d.ts +6 -4
- package/build/assets/currencies/SARSymbol.d.ts +7 -0
- package/build/assets/currencies/SARSymbol.js +28 -0
- package/build/assets/currencies/index.d.ts +2 -0
- package/build/assets/currencies/index.js +2 -0
- package/build/assets/currencies/utils.d.ts +4 -0
- package/build/assets/currencies/utils.js +4 -0
- package/build/assets/locales/ar.json +10 -1
- package/build/assets/locales/en.json +37 -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/DeviceCard/DeviceCard.d.ts +18 -0
- package/build/components/DeviceCard/DeviceCard.js +103 -0
- package/build/components/DeviceCard/index.d.ts +3 -0
- package/build/components/DeviceCard/index.js +2 -0
- 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 +2 -1
- package/build/components/OTPTimer/OTPTimer.js +4 -4
- 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/TextWithCurrency/TextWithCurrency.d.ts +6 -0
- package/build/components/TextWithCurrency/TextWithCurrency.js +14 -0
- package/build/components/TextWithCurrency/index.d.ts +2 -0
- package/build/components/TextWithCurrency/index.js +2 -0
- 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 +1 -1
- package/build/constants/api.js +2 -2
- package/build/constants/app.d.ts +15 -4
- package/build/constants/app.js +151 -14
- package/build/constants/assets.d.ts +11 -0
- package/build/constants/assets.js +17 -3
- package/build/constants/flows.d.ts +14 -0
- package/build/constants/flows.js +14 -0
- package/build/constants/validation.d.ts +2 -0
- package/build/constants/validation.js +2 -0
- package/build/features/app/auth/authStore.d.ts +232 -24
- package/build/features/app/auth/authStore.js +192 -93
- 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 +192 -21
- package/build/features/app/business/businessStore.js +54 -30
- package/build/features/app/connect/connectStore.d.ts +181 -19
- package/build/features/app/connect/connectStore.js +48 -36
- package/build/features/app/connectExpress/connectExpressStore.d.ts +321 -31
- package/build/features/app/connectExpress/connectExpressStore.js +302 -110
- 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 +1 -2
- package/build/features/app/kyc/kycStore.d.ts +62 -8
- package/build/features/app/kyc/kycStore.js +50 -26
- 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 +2 -2
- package/build/features/app/terminal/terminalStore.d.ts +223 -0
- package/build/features/app/terminal/terminalStore.js +638 -0
- package/build/features/auth/Auth.d.ts +1 -2
- package/build/features/auth/Auth.js +1 -1
- 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/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/DOB/DOB.d.ts +1 -2
- package/build/features/auth/screens/DOB/DOBForm.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/NID.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTP.d.ts +6 -3
- package/build/features/auth/screens/OTP/OTP.js +15 -3
- package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/auth/screens/OTP/index.d.ts +1 -2
- package/build/features/auth/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/auth/screens/Passcode/Passcode.d.ts +8 -0
- package/build/features/auth/screens/Passcode/Passcode.js +82 -0
- package/build/features/auth/screens/Passcode/PasscodeInput.d.ts +6 -0
- package/build/features/auth/screens/Passcode/PasscodeInput.js +42 -0
- package/build/features/auth/screens/Passcode/index.d.ts +2 -0
- package/build/features/auth/screens/Passcode/index.js +2 -0
- package/build/features/auth/screens/Passcode/validation.d.ts +8 -0
- package/build/features/auth/screens/Passcode/validation.js +4 -0
- package/build/features/auth/screens/Password/Password.d.ts +1 -1
- package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
- package/build/features/auth/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +1 -2
- 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/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/board/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/board/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/Brand.d.ts +1 -2
- 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/ExpectedSalesRange.js +3 -8
- 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/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/ExpectedSalesRange.js +3 -8
- 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/DOB/DOB.d.ts +1 -1
- package/build/features/business/screens/DOB/DOBForm.d.ts +1 -1
- 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/MobileOwnership/CollectMobileOwnership.d.ts +1 -2
- package/build/features/business/screens/MobileOwnership/CollectMobileOwnership.js +3 -4
- package/build/features/business/screens/MobileOwnership/MobileNumber.d.ts +1 -1
- package/build/features/business/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/business/screens/Success/Success.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +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/DOB/DOB.d.ts +1 -2
- package/build/features/connect/screens/DOB/DOBForm.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/Title.d.ts +1 -1
- package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.d.ts +1 -2
- package/build/features/connect/screens/MobileOwnership/CollectMobileOwnership.js +3 -4
- package/build/features/connect/screens/MobileOwnership/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
- package/build/features/connectExpress/ConnectExpress.js +1 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +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/DOB/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/DOB/DOBForm.d.ts +1 -1
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.d.ts +2 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/GenericPrepareDataLoading.js +9 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.d.ts +2 -0
- package/build/features/connectExpress/screens/GenericPrepareDataLoading/index.js +2 -0
- package/build/features/connectExpress/screens/IdentityVerifyNafath/IdentityVerifyNafath.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.d.ts +1 -2
- package/build/features/connectExpress/screens/MobileOwnership/CollectMobileOwnership.js +3 -4
- package/build/features/connectExpress/screens/MobileOwnership/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
- 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/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connectExpress/screens/PrepareDataLoading/PrepareDataLoading.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/OTPInput.js +49 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/VerifyMobileAuthOTP.js +88 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/VerifyMobileAuthOTP/validation.js +4 -0
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/connectExpress/screens/VerifyNafath/VerifyNafath.js +9 -3
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +1 -2
- 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 +3 -7
- 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 +3 -7
- 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.d.ts +1 -0
- package/build/features/featuresScreens.js +72 -0
- package/build/features/individual/Individual.d.ts +1 -2
- 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/MonthlyIncome.js +3 -8
- 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 +3 -8
- 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/kyc/KYC.d.ts +1 -2
- package/build/features/kyc/screens/AlreadySubmitted/AlreadySubmitted.d.ts +1 -1
- package/build/features/kyc/screens/Loading/Loading.d.ts +2 -2
- package/build/features/kyc/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/kyc/screens/Success/Success.d.ts +1 -1
- package/build/features/kyc/screens/Terms/Header.d.ts +1 -1
- package/build/features/kyc/screens/Terms/Terms.d.ts +2 -2
- package/build/features/kyc/screens/Terms/Terms.js +8 -2
- package/build/features/kyc/screens/TokenError/TokenError.d.ts +1 -1
- package/build/features/kyc/screens/Users/Users.d.ts +1 -1
- package/build/features/kyc/screens/Users/Users.js +1 -1
- package/build/features/kyc/screens/VerifyNafath/VerifyNafath.d.ts +1 -1
- package/build/features/kyc/screens/VerifyPaci/VerifyPACI.d.ts +1 -1
- package/build/features/password/Password.d.ts +1 -2
- package/build/features/password/Password.js +1 -1
- 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/Background/LogoBackground.js +5 -17
- 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/Button.js +2 -3
- 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 +3 -2
- 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 +1 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -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 +7 -15
- 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 +1 -1
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
- package/build/features/shared/PushNotification/PushNotification.js +34 -0
- package/build/features/shared/PushNotification/index.d.ts +2 -0
- package/build/features/shared/PushNotification/index.js +2 -0
- 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/SuccessFlowButtons/SuccessFlowButtons.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
- 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/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/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/features/terminal/Terminal.d.ts +13 -0
- package/build/features/terminal/Terminal.js +95 -0
- package/build/features/terminal/index.d.ts +1 -0
- package/build/features/terminal/index.js +1 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +68 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +5 -0
- package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +50 -0
- package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +50 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
- package/build/features/terminal/screens/Loading/Loading.js +10 -0
- package/build/features/terminal/screens/Loading/index.d.ts +2 -0
- package/build/features/terminal/screens/Loading/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +56 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +11 -0
- package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
- package/build/features/terminal/screens/OperatorError/index.js +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +31 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
- package/build/features/terminal/screens/TerminalDeviceList/Header.d.ts +6 -0
- package/build/features/terminal/screens/TerminalDeviceList/Header.js +23 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +129 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +16 -0
- package/build/features/terminal/screens/TerminalDeviceList/styles.js +56 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +52 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.d.ts +9 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/TerminalList.js +16 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +98 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +29 -0
- package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +98 -0
- package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
- package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
- package/build/features/terminal/screens/Verify/Verify.js +85 -0
- package/build/features/terminal/screens/Verify/index.d.ts +2 -0
- package/build/features/terminal/screens/Verify/index.js +2 -0
- package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
- package/build/features/terminal/screens/Verify/validation.js +4 -0
- package/build/features/terminal/screens/shared/index.d.ts +2 -0
- package/build/features/terminal/screens/shared/index.js +2 -0
- package/build/features/terminal/screens/shared/styles.d.ts +22 -0
- package/build/features/terminal/screens/shared/styles.js +50 -0
- package/build/features/terminal/screens/shared/utils.d.ts +7 -0
- package/build/features/terminal/screens/shared/utils.js +24 -0
- package/build/hooks/useAppConfig.js +1 -1
- package/build/hooks/useAppDispatch.d.ts +1 -0
- 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/index.d.ts +3 -2
- package/build/index.js +4 -2
- package/build/theme/palette.js +12 -0
- package/build/theme/typography.js +4 -0
- package/build/utils/array.js +1 -1
- package/build/utils/common.d.ts +1 -1
- package/build/utils/common.js +7 -5
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/string.d.ts +2 -2
- package/build/utils/string.js +4 -1
- package/package.json +3 -4
|
@@ -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]) {
|
|
@@ -58,8 +58,8 @@ var _a;
|
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import API from '../../../api';
|
|
60
60
|
import { BusinessType, FlowsTypes, DocumentPurpose, LicenseType } from '../../../@types';
|
|
61
|
-
import { BUSINESS_STEP_NAMES, COLLECT_DOB_INFO_NAFATH, EXPECTED_SALES_LIST, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_ENTITY_LICENSE, OTHER_FL_LICENSE, defaultCountry } from '../../../constants';
|
|
62
|
-
import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense, isOtherThanKWOrSA, hasNoneEditableValue, sendCustomEventToGTM, findCountryByIddPrefix } from '../../../utils';
|
|
61
|
+
import { BUSINESS_STEP_NAMES, COLLECT_DOB_INFO_NAFATH, EXPECTED_SALES_LIST, IDENTIFICATION_TYPE, NAFATH_PACI_TIMEOUT_DURATION, NAFATH_VERIFICATION_FAILED, OTHER_CR_LICENSE, OTHER_ENTITY_LICENSE, OTHER_FL_LICENSE, defaultCountry } from '../../../constants';
|
|
62
|
+
import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense, isOtherThanKWOrSA, hasNoneEditableValue, sendCustomEventToGTM, findCountryByIddPrefix, isNetworkError, isTimeoutError } from '../../../utils';
|
|
63
63
|
import { handleNextScreenStep, handlePublicKey, handleSetCountryByIso2 } from '../../../app/settings';
|
|
64
64
|
export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
65
|
var payload, data, publicKey, countryIso2, boardData, brandData, isicActivityList, leadData, _a, steps, brand, board_id, business_id, entity, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, list, list;
|
|
@@ -316,7 +316,7 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
316
316
|
});
|
|
317
317
|
}); });
|
|
318
318
|
export var verifyNafath = createAsyncThunk('business/verifyNafathParams', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
319
|
-
var _a, settings, business, responseBody, expiry, interval, maxCalls, count, data, isSuccess, isFailed, isNextScreenDob, isNextScreenCollectMobileOwnership, screen_1;
|
|
319
|
+
var _a, settings, business, responseBody, expiry, interval, maxCalls, count, data, error_1, isSuccess, isFailed, isNextScreenDob, isNextScreenCollectMobileOwnership, screen_1;
|
|
320
320
|
var _b, _c, _d, _e, _f, _g;
|
|
321
321
|
return __generator(this, function (_h) {
|
|
322
322
|
switch (_h.label) {
|
|
@@ -332,24 +332,36 @@ export var verifyNafath = createAsyncThunk('business/verifyNafathParams', functi
|
|
|
332
332
|
count = 1;
|
|
333
333
|
_h.label = 1;
|
|
334
334
|
case 1:
|
|
335
|
-
if (!(count <= maxCalls)) return [3,
|
|
336
|
-
|
|
335
|
+
if (!(count <= maxCalls)) return [3, 11];
|
|
336
|
+
data = undefined;
|
|
337
|
+
_h.label = 2;
|
|
337
338
|
case 2:
|
|
339
|
+
_h.trys.push([2, 4, , 5]);
|
|
340
|
+
return [4, API.authService.getTokenVerify(responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
341
|
+
case 3:
|
|
338
342
|
data = _h.sent();
|
|
339
|
-
|
|
340
|
-
|
|
343
|
+
return [3, 5];
|
|
344
|
+
case 4:
|
|
345
|
+
error_1 = _h.sent();
|
|
346
|
+
if (!isNetworkError(error_1.message) && !isTimeoutError(error_1.message)) {
|
|
347
|
+
throw new Error(error_1);
|
|
348
|
+
}
|
|
349
|
+
return [3, 5];
|
|
350
|
+
case 5:
|
|
351
|
+
isSuccess = ((_b = data === null || data === void 0 ? void 0 : data.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
352
|
+
isFailed = ((_c = data === null || data === void 0 ? void 0 : data.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'failed';
|
|
341
353
|
if (isFailed) {
|
|
342
354
|
(_d = params.onFailure) === null || _d === void 0 ? void 0 : _d.call(params);
|
|
343
355
|
return [2, { response: data }];
|
|
344
356
|
}
|
|
345
|
-
if (!isSuccess) return [3,
|
|
357
|
+
if (!isSuccess) return [3, 8];
|
|
346
358
|
return [4, thunkApi.dispatch(retrieveEntityList({ leadId: responseBody === null || responseBody === void 0 ? void 0 : responseBody.id }))];
|
|
347
|
-
case
|
|
359
|
+
case 6:
|
|
348
360
|
_h.sent();
|
|
349
361
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
350
362
|
(_g = params === null || params === void 0 ? void 0 : params.onSuccess) === null || _g === void 0 ? void 0 : _g.call(params);
|
|
351
363
|
return [4, sleep(3000)];
|
|
352
|
-
case
|
|
364
|
+
case 7:
|
|
353
365
|
_h.sent();
|
|
354
366
|
isNextScreenDob = data.step_name === COLLECT_DOB_INFO_NAFATH;
|
|
355
367
|
isNextScreenCollectMobileOwnership = data.step_name === BUSINESS_STEP_NAMES.BUSINESS_MOBILE_OWNERSHIP;
|
|
@@ -361,18 +373,18 @@ export var verifyNafath = createAsyncThunk('business/verifyNafathParams', functi
|
|
|
361
373
|
thunkApi.dispatch(handleNextScreenStep(screen_1));
|
|
362
374
|
}
|
|
363
375
|
return [2, { response: data, isNextScreenDob: isNextScreenDob }];
|
|
364
|
-
case
|
|
365
|
-
case
|
|
376
|
+
case 8: return [4, sleep(interval * 1000)];
|
|
377
|
+
case 9:
|
|
366
378
|
_h.sent();
|
|
367
|
-
_h.label =
|
|
368
|
-
case
|
|
379
|
+
_h.label = 10;
|
|
380
|
+
case 10:
|
|
369
381
|
count++;
|
|
370
382
|
return [3, 1];
|
|
371
|
-
case
|
|
383
|
+
case 11: throw new Error(NAFATH_VERIFICATION_FAILED);
|
|
372
384
|
}
|
|
373
385
|
});
|
|
374
386
|
}); });
|
|
375
|
-
export var updateLeadMobile = createAsyncThunk('
|
|
387
|
+
export var updateLeadMobile = createAsyncThunk('business/updateLeadMobile', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
388
|
var _a, settings, business, lead_id, payload, leadResponse, isNextScreenDob, screen;
|
|
377
389
|
var _b, _c;
|
|
378
390
|
return __generator(this, function (_d) {
|
|
@@ -405,7 +417,7 @@ export var updateLeadMobile = createAsyncThunk('connect/updateLeadMobile', funct
|
|
|
405
417
|
}
|
|
406
418
|
});
|
|
407
419
|
}); });
|
|
408
|
-
export var skipUpdateLeadMobile = createAsyncThunk('
|
|
420
|
+
export var skipUpdateLeadMobile = createAsyncThunk('business/skipUpdateLeadMobile', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
409
421
|
var _a, settings, business, lead_id, payload, leadResponse, isNextScreenDob, screen;
|
|
410
422
|
var _b, _c;
|
|
411
423
|
return __generator(this, function (_d) {
|
|
@@ -430,7 +442,7 @@ export var skipUpdateLeadMobile = createAsyncThunk('connect/skipUpdateLeadMobile
|
|
|
430
442
|
});
|
|
431
443
|
}); });
|
|
432
444
|
export var verifyPACI = createAsyncThunk('businessVerifyPACI', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
433
|
-
var _a, settings, business, responseBody, _b, business_id, entity, expiry, interval, maxCalls, count, data, isSuccess;
|
|
445
|
+
var _a, settings, business, responseBody, _b, business_id, entity, expiry, interval, maxCalls, count, data, error_2, isSuccess;
|
|
434
446
|
var _c, _d, _e, _f;
|
|
435
447
|
return __generator(this, function (_g) {
|
|
436
448
|
switch (_g.label) {
|
|
@@ -447,30 +459,42 @@ export var verifyPACI = createAsyncThunk('businessVerifyPACI', function (params,
|
|
|
447
459
|
count = 1;
|
|
448
460
|
_g.label = 1;
|
|
449
461
|
case 1:
|
|
450
|
-
if (!(count <= maxCalls)) return [3,
|
|
451
|
-
|
|
462
|
+
if (!(count <= maxCalls)) return [3, 11];
|
|
463
|
+
data = undefined;
|
|
464
|
+
_g.label = 2;
|
|
452
465
|
case 2:
|
|
466
|
+
_g.trys.push([2, 4, , 5]);
|
|
467
|
+
return [4, API.authService.getTokenVerify(responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
468
|
+
case 3:
|
|
453
469
|
data = _g.sent();
|
|
454
|
-
|
|
455
|
-
|
|
470
|
+
return [3, 5];
|
|
471
|
+
case 4:
|
|
472
|
+
error_2 = _g.sent();
|
|
473
|
+
if (!isNetworkError(error_2.message) && !isTimeoutError(error_2.message)) {
|
|
474
|
+
throw new Error(error_2);
|
|
475
|
+
}
|
|
476
|
+
return [3, 5];
|
|
477
|
+
case 5:
|
|
478
|
+
isSuccess = ((_c = data === null || data === void 0 ? void 0 : data.status) === null || _c === void 0 ? void 0 : _c.toLowerCase()) === 'success';
|
|
479
|
+
if (!isSuccess) return [3, 8];
|
|
456
480
|
return [4, thunkApi.dispatch(retrieveAllEntityList({ businessId: business_id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
457
|
-
case
|
|
481
|
+
case 6:
|
|
458
482
|
_g.sent();
|
|
459
483
|
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, {});
|
|
460
484
|
(_f = params === null || params === void 0 ? void 0 : params.onSuccess) === null || _f === void 0 ? void 0 : _f.call(params);
|
|
461
485
|
return [4, sleep(3000)];
|
|
462
|
-
case
|
|
486
|
+
case 7:
|
|
463
487
|
_g.sent();
|
|
464
488
|
thunkApi.dispatch(handleNextScreenStep());
|
|
465
489
|
return [2, { response: data }];
|
|
466
|
-
case
|
|
467
|
-
case
|
|
490
|
+
case 8: return [4, sleep(interval * 1000)];
|
|
491
|
+
case 9:
|
|
468
492
|
_g.sent();
|
|
469
|
-
_g.label =
|
|
470
|
-
case
|
|
493
|
+
_g.label = 10;
|
|
494
|
+
case 10:
|
|
471
495
|
count++;
|
|
472
496
|
return [3, 1];
|
|
473
|
-
case
|
|
497
|
+
case 11: throw new Error('paci_verification_failed');
|
|
474
498
|
}
|
|
475
499
|
});
|
|
476
500
|
}); });
|
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
2
|
import { ActionState, AuthForType, CivilFormValues, CountryCode, FlowsTypes, IndividualFormValues, MobileFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, BrandFormValues, BrandSegmentFormValues, DOBFormValues, MobileOwnershipFormValues } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
|
-
export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
4
|
+
export declare const updateBusinessCountry: import("@reduxjs/toolkit").AsyncThunk<any, string, {
|
|
5
|
+
state?: unknown;
|
|
6
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
7
|
+
extra?: unknown;
|
|
8
|
+
rejectValue?: unknown;
|
|
9
|
+
serializedErrorType?: unknown;
|
|
10
|
+
pendingMeta?: unknown;
|
|
11
|
+
fulfilledMeta?: unknown;
|
|
12
|
+
rejectedMeta?: unknown;
|
|
13
|
+
}>;
|
|
5
14
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
6
15
|
response: any;
|
|
7
16
|
formData: MobileFormValues;
|
|
8
|
-
}, MobileFormValues, {
|
|
17
|
+
}, MobileFormValues, {
|
|
18
|
+
state?: unknown;
|
|
19
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
20
|
+
extra?: unknown;
|
|
21
|
+
rejectValue?: unknown;
|
|
22
|
+
serializedErrorType?: unknown;
|
|
23
|
+
pendingMeta?: unknown;
|
|
24
|
+
fulfilledMeta?: unknown;
|
|
25
|
+
rejectedMeta?: unknown;
|
|
26
|
+
}>;
|
|
9
27
|
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
10
28
|
response: any;
|
|
11
29
|
formData: CivilFormValues;
|
|
12
|
-
}, CivilFormValues, {
|
|
13
|
-
|
|
30
|
+
}, CivilFormValues, {
|
|
31
|
+
state?: unknown;
|
|
32
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
33
|
+
extra?: unknown;
|
|
34
|
+
rejectValue?: unknown;
|
|
35
|
+
serializedErrorType?: unknown;
|
|
36
|
+
pendingMeta?: unknown;
|
|
37
|
+
fulfilledMeta?: unknown;
|
|
38
|
+
rejectedMeta?: unknown;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
41
|
+
state?: unknown;
|
|
42
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
43
|
+
extra?: unknown;
|
|
44
|
+
rejectValue?: unknown;
|
|
45
|
+
serializedErrorType?: unknown;
|
|
46
|
+
pendingMeta?: unknown;
|
|
47
|
+
fulfilledMeta?: unknown;
|
|
48
|
+
rejectedMeta?: unknown;
|
|
49
|
+
}>;
|
|
14
50
|
export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
15
51
|
response: any;
|
|
16
52
|
formData: {
|
|
@@ -19,12 +55,30 @@ export declare const createNafathAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
19
55
|
dob?: any;
|
|
20
56
|
termAndConditionChecked?: boolean | undefined;
|
|
21
57
|
};
|
|
22
|
-
}, NIDFormValues, {
|
|
58
|
+
}, NIDFormValues, {
|
|
59
|
+
state?: unknown;
|
|
60
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
61
|
+
extra?: unknown;
|
|
62
|
+
rejectValue?: unknown;
|
|
63
|
+
serializedErrorType?: unknown;
|
|
64
|
+
pendingMeta?: unknown;
|
|
65
|
+
fulfilledMeta?: unknown;
|
|
66
|
+
rejectedMeta?: unknown;
|
|
67
|
+
}>;
|
|
23
68
|
export declare const verifyAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
24
69
|
authResponse: any;
|
|
25
70
|
leadResponse: any;
|
|
26
71
|
countryCode: CountryCode;
|
|
27
|
-
}, OTPFormValues, {
|
|
72
|
+
}, OTPFormValues, {
|
|
73
|
+
state?: unknown;
|
|
74
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
75
|
+
extra?: unknown;
|
|
76
|
+
rejectValue?: unknown;
|
|
77
|
+
serializedErrorType?: unknown;
|
|
78
|
+
pendingMeta?: unknown;
|
|
79
|
+
fulfilledMeta?: unknown;
|
|
80
|
+
rejectedMeta?: unknown;
|
|
81
|
+
}>;
|
|
28
82
|
interface verifyPACIParams {
|
|
29
83
|
onSuccess?: () => void;
|
|
30
84
|
}
|
|
@@ -32,7 +86,16 @@ export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
32
86
|
authResponse: any;
|
|
33
87
|
leadResponse: any;
|
|
34
88
|
countryCode: CountryCode;
|
|
35
|
-
}, verifyPACIParams, {
|
|
89
|
+
}, verifyPACIParams, {
|
|
90
|
+
state?: unknown;
|
|
91
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
92
|
+
extra?: unknown;
|
|
93
|
+
rejectValue?: unknown;
|
|
94
|
+
serializedErrorType?: unknown;
|
|
95
|
+
pendingMeta?: unknown;
|
|
96
|
+
fulfilledMeta?: unknown;
|
|
97
|
+
rejectedMeta?: unknown;
|
|
98
|
+
}>;
|
|
36
99
|
interface verifyNafathParams {
|
|
37
100
|
onSuccess?: () => void;
|
|
38
101
|
onFailure?: () => void;
|
|
@@ -47,22 +110,58 @@ export declare const verifyNafath: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
47
110
|
leadResponse: any;
|
|
48
111
|
countryCode: CountryCode;
|
|
49
112
|
isNextScreenDob: boolean;
|
|
50
|
-
}, verifyNafathParams, {
|
|
113
|
+
}, verifyNafathParams, {
|
|
114
|
+
state?: unknown;
|
|
115
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
116
|
+
extra?: unknown;
|
|
117
|
+
rejectValue?: unknown;
|
|
118
|
+
serializedErrorType?: unknown;
|
|
119
|
+
pendingMeta?: unknown;
|
|
120
|
+
fulfilledMeta?: unknown;
|
|
121
|
+
rejectedMeta?: unknown;
|
|
122
|
+
}>;
|
|
51
123
|
export declare const updateLeadDOB: import("@reduxjs/toolkit").AsyncThunk<{
|
|
52
124
|
leadResponse: any;
|
|
53
125
|
formData: DOBFormValues;
|
|
54
|
-
}, DOBFormValues, {
|
|
126
|
+
}, DOBFormValues, {
|
|
127
|
+
state?: unknown;
|
|
128
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
129
|
+
extra?: unknown;
|
|
130
|
+
rejectValue?: unknown;
|
|
131
|
+
serializedErrorType?: unknown;
|
|
132
|
+
pendingMeta?: unknown;
|
|
133
|
+
fulfilledMeta?: unknown;
|
|
134
|
+
rejectedMeta?: unknown;
|
|
135
|
+
}>;
|
|
55
136
|
export declare const updateLeadIndividual: import("@reduxjs/toolkit").AsyncThunk<{
|
|
56
137
|
leadResponse: any;
|
|
57
138
|
formData: IndividualFormValues;
|
|
58
|
-
}, IndividualFormValues, {
|
|
139
|
+
}, IndividualFormValues, {
|
|
140
|
+
state?: unknown;
|
|
141
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
142
|
+
extra?: unknown;
|
|
143
|
+
rejectValue?: unknown;
|
|
144
|
+
serializedErrorType?: unknown;
|
|
145
|
+
pendingMeta?: unknown;
|
|
146
|
+
fulfilledMeta?: unknown;
|
|
147
|
+
rejectedMeta?: unknown;
|
|
148
|
+
}>;
|
|
59
149
|
export declare const retrieveLead: import("@reduxjs/toolkit").AsyncThunk<{
|
|
60
150
|
data: any;
|
|
61
151
|
countryCode: CountryCode;
|
|
62
152
|
}, {
|
|
63
153
|
leadId: string;
|
|
64
154
|
isRedirect?: boolean | undefined;
|
|
65
|
-
}, {
|
|
155
|
+
}, {
|
|
156
|
+
state?: unknown;
|
|
157
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
158
|
+
extra?: unknown;
|
|
159
|
+
rejectValue?: unknown;
|
|
160
|
+
serializedErrorType?: unknown;
|
|
161
|
+
pendingMeta?: unknown;
|
|
162
|
+
fulfilledMeta?: unknown;
|
|
163
|
+
rejectedMeta?: unknown;
|
|
164
|
+
}>;
|
|
66
165
|
export declare const updateLeadBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
67
166
|
response: any;
|
|
68
167
|
formData: BrandFormValues & {
|
|
@@ -70,18 +169,54 @@ export declare const updateLeadBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
70
169
|
};
|
|
71
170
|
}, BrandFormValues & {
|
|
72
171
|
isNewBrand: boolean;
|
|
73
|
-
}, {
|
|
172
|
+
}, {
|
|
173
|
+
state?: unknown;
|
|
174
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
175
|
+
extra?: unknown;
|
|
176
|
+
rejectValue?: unknown;
|
|
177
|
+
serializedErrorType?: unknown;
|
|
178
|
+
pendingMeta?: unknown;
|
|
179
|
+
fulfilledMeta?: unknown;
|
|
180
|
+
rejectedMeta?: unknown;
|
|
181
|
+
}>;
|
|
74
182
|
export declare const updateLeadBrandSegment: import("@reduxjs/toolkit").AsyncThunk<{
|
|
75
183
|
response: any;
|
|
76
184
|
formData: Pick<BrandSegmentFormValues, "teamSize">;
|
|
77
|
-
}, Pick<BrandSegmentFormValues, "teamSize">, {
|
|
185
|
+
}, Pick<BrandSegmentFormValues, "teamSize">, {
|
|
186
|
+
state?: unknown;
|
|
187
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
188
|
+
extra?: unknown;
|
|
189
|
+
rejectValue?: unknown;
|
|
190
|
+
serializedErrorType?: unknown;
|
|
191
|
+
pendingMeta?: unknown;
|
|
192
|
+
fulfilledMeta?: unknown;
|
|
193
|
+
rejectedMeta?: unknown;
|
|
194
|
+
}>;
|
|
78
195
|
export declare const updateLeadMobile: import("@reduxjs/toolkit").AsyncThunk<{
|
|
79
196
|
leadResponse: any;
|
|
80
197
|
formData: MobileOwnershipFormValues;
|
|
81
|
-
}, MobileOwnershipFormValues, {
|
|
198
|
+
}, MobileOwnershipFormValues, {
|
|
199
|
+
state?: unknown;
|
|
200
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
201
|
+
extra?: unknown;
|
|
202
|
+
rejectValue?: unknown;
|
|
203
|
+
serializedErrorType?: unknown;
|
|
204
|
+
pendingMeta?: unknown;
|
|
205
|
+
fulfilledMeta?: unknown;
|
|
206
|
+
rejectedMeta?: unknown;
|
|
207
|
+
}>;
|
|
82
208
|
export declare const skipUpdateLeadMobile: import("@reduxjs/toolkit").AsyncThunk<{
|
|
83
209
|
leadResponse: any;
|
|
84
|
-
}, void, {
|
|
210
|
+
}, void, {
|
|
211
|
+
state?: unknown;
|
|
212
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
213
|
+
extra?: unknown;
|
|
214
|
+
rejectValue?: unknown;
|
|
215
|
+
serializedErrorType?: unknown;
|
|
216
|
+
pendingMeta?: unknown;
|
|
217
|
+
fulfilledMeta?: unknown;
|
|
218
|
+
rejectedMeta?: unknown;
|
|
219
|
+
}>;
|
|
85
220
|
export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
86
221
|
response: any;
|
|
87
222
|
formData: string;
|
|
@@ -89,7 +224,16 @@ export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThu
|
|
|
89
224
|
email: string;
|
|
90
225
|
cancelToken: CancelToken;
|
|
91
226
|
onSuccess?: (() => void) | undefined;
|
|
92
|
-
}, {
|
|
227
|
+
}, {
|
|
228
|
+
state?: unknown;
|
|
229
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
230
|
+
extra?: unknown;
|
|
231
|
+
rejectValue?: unknown;
|
|
232
|
+
serializedErrorType?: unknown;
|
|
233
|
+
pendingMeta?: unknown;
|
|
234
|
+
fulfilledMeta?: unknown;
|
|
235
|
+
rejectedMeta?: unknown;
|
|
236
|
+
}>;
|
|
93
237
|
export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
94
238
|
response: any;
|
|
95
239
|
formData: {
|
|
@@ -99,11 +243,29 @@ export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").Asyn
|
|
|
99
243
|
name: string;
|
|
100
244
|
cancelToken: CancelToken;
|
|
101
245
|
onSuccess?: (() => void) | undefined;
|
|
102
|
-
}, {
|
|
246
|
+
}, {
|
|
247
|
+
state?: unknown;
|
|
248
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
249
|
+
extra?: unknown;
|
|
250
|
+
rejectValue?: unknown;
|
|
251
|
+
serializedErrorType?: unknown;
|
|
252
|
+
pendingMeta?: unknown;
|
|
253
|
+
fulfilledMeta?: unknown;
|
|
254
|
+
rejectedMeta?: unknown;
|
|
255
|
+
}>;
|
|
103
256
|
export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
104
257
|
response: any;
|
|
105
258
|
formData: void;
|
|
106
|
-
}, void, {
|
|
259
|
+
}, void, {
|
|
260
|
+
state?: unknown;
|
|
261
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
262
|
+
extra?: unknown;
|
|
263
|
+
rejectValue?: unknown;
|
|
264
|
+
serializedErrorType?: unknown;
|
|
265
|
+
pendingMeta?: unknown;
|
|
266
|
+
fulfilledMeta?: unknown;
|
|
267
|
+
rejectedMeta?: unknown;
|
|
268
|
+
}>;
|
|
107
269
|
export interface ConnectData {
|
|
108
270
|
leadId: string;
|
|
109
271
|
mobileData: (MobileFormValues | undefined) & ResponseData;
|
|
@@ -140,7 +302,7 @@ export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectState
|
|
|
140
302
|
setDefaultCountryCode: (state: ConnectState, action: ActionState<CountryCode>) => void;
|
|
141
303
|
resetStore: (state: ConnectState) => void;
|
|
142
304
|
}, "connect/store">;
|
|
143
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
305
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/clearError">, storeLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "connect/store/storeLeadId">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/stopLoader">, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connect/store/resetMobileScreen">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetOTPScreen">, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetIndividualScreen">, resetMerchantScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetMerchantScreen">, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetNIDScreen">, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetCivilScreen">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetStore">, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connect/store/setDefaultCountryCode">, storeIsStartFromBusinessCountry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "connect/store/storeIsStartFromBusinessCountry">;
|
|
144
306
|
declare const _default: import("redux").Reducer<ConnectState, import("redux").AnyAction>;
|
|
145
307
|
export default _default;
|
|
146
308
|
export declare const connectSelector: (state: RootState) => ConnectState;
|
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -68,10 +68,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
68
68
|
var _a;
|
|
69
69
|
import API from '../../../api';
|
|
70
70
|
import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
71
|
-
import { COLLECT_DOB_INFO_NAFATH, CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, NAFATH_VERIFICATION_FAILED, OTHER_BRAND } from '../../../constants';
|
|
71
|
+
import { COLLECT_DOB_INFO_NAFATH, CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, NAFATH_PACI_TIMEOUT_DURATION, 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, isOtherThanKWOrSA, isKW, findCountryByIso2, getMetaData, isNetworkError } from '../../../utils';
|
|
74
|
+
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep, sendCustomEventToGTM, isOtherThanKWOrSA, isKW, findCountryByIso2, getMetaData, isNetworkError, isTimeoutError } from '../../../utils';
|
|
75
75
|
export var updateBusinessCountry = createAsyncThunk('connect/updateBusinessCountry', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
76
|
var connect, payload, data;
|
|
77
77
|
return __generator(this, function (_a) {
|
|
@@ -284,7 +284,7 @@ export var verifyAuth = createAsyncThunk('connect/verifyAuth', function (params,
|
|
|
284
284
|
});
|
|
285
285
|
}); });
|
|
286
286
|
export var verifyPACI = createAsyncThunk('connect/verifyPACI', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
287
|
-
var _a, settings, connect, responseBody, expiry, interval, maxCalls, count, authResponse, isSuccess, lead_id, leadResponse, countryCode, channels, brand, err_3, brands, err_4, phone;
|
|
287
|
+
var _a, settings, connect, responseBody, expiry, interval, maxCalls, count, authResponse, error_1, isSuccess, lead_id, leadResponse, countryCode, channels, brand, err_3, brands, err_4, phone;
|
|
288
288
|
var _b, _c, _d, _e, _f;
|
|
289
289
|
return __generator(this, function (_g) {
|
|
290
290
|
switch (_g.label) {
|
|
@@ -297,53 +297,65 @@ export var verifyPACI = createAsyncThunk('connect/verifyPACI', function (params,
|
|
|
297
297
|
count = 1;
|
|
298
298
|
_g.label = 1;
|
|
299
299
|
case 1:
|
|
300
|
-
if (!(count <= maxCalls)) return [3,
|
|
300
|
+
if (!(count <= maxCalls)) return [3, 19];
|
|
301
301
|
if (thunkApi.signal.aborted) {
|
|
302
|
-
return [3,
|
|
302
|
+
return [3, 19];
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
authResponse = void 0;
|
|
305
|
+
_g.label = 2;
|
|
305
306
|
case 2:
|
|
307
|
+
_g.trys.push([2, 4, , 5]);
|
|
308
|
+
return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
309
|
+
case 3:
|
|
306
310
|
authResponse = _g.sent();
|
|
307
|
-
|
|
308
|
-
|
|
311
|
+
return [3, 5];
|
|
312
|
+
case 4:
|
|
313
|
+
error_1 = _g.sent();
|
|
314
|
+
if (!isNetworkError(error_1.message) && !isTimeoutError(error_1.message)) {
|
|
315
|
+
throw new Error(error_1);
|
|
316
|
+
}
|
|
317
|
+
return [3, 5];
|
|
318
|
+
case 5:
|
|
319
|
+
isSuccess = ((_b = authResponse === null || authResponse === void 0 ? void 0 : authResponse.status) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'success';
|
|
320
|
+
if (!isSuccess) return [3, 16];
|
|
309
321
|
lead_id = authResponse.lead_id;
|
|
310
322
|
if (!lead_id)
|
|
311
323
|
throw new Error('Lead id is missing');
|
|
312
324
|
return [4, API.leadService.retrieveLead(lead_id)];
|
|
313
|
-
case
|
|
325
|
+
case 6:
|
|
314
326
|
leadResponse = (_g.sent()).data;
|
|
315
327
|
if ((_c = leadResponse.errors) === null || _c === void 0 ? void 0 : _c.length)
|
|
316
328
|
throw new Error(leadResponse.errors[0].description);
|
|
317
329
|
countryCode = settings.data.businessCountry;
|
|
318
330
|
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
319
|
-
case
|
|
331
|
+
case 7:
|
|
320
332
|
channels = (_g.sent()).list;
|
|
321
333
|
leadResponse.channel_list = channels;
|
|
322
|
-
_g.label =
|
|
323
|
-
case
|
|
324
|
-
_g.trys.push([
|
|
334
|
+
_g.label = 8;
|
|
335
|
+
case 8:
|
|
336
|
+
_g.trys.push([8, 10, , 11]);
|
|
325
337
|
return [4, API.brandService.retrieveBrand(leadResponse.brand.id)];
|
|
326
|
-
case
|
|
338
|
+
case 9:
|
|
327
339
|
brand = (_g.sent()).brand;
|
|
328
340
|
leadResponse.brand = __assign(__assign({}, leadResponse.brand), brand);
|
|
329
|
-
return [3,
|
|
330
|
-
case
|
|
341
|
+
return [3, 11];
|
|
342
|
+
case 10:
|
|
331
343
|
err_3 = _g.sent();
|
|
332
|
-
return [3,
|
|
333
|
-
case
|
|
334
|
-
_g.trys.push([
|
|
344
|
+
return [3, 11];
|
|
345
|
+
case 11:
|
|
346
|
+
_g.trys.push([11, 13, , 14]);
|
|
335
347
|
return [4, API.brandService.getBrandList({ individual_id: leadResponse.individual_id })];
|
|
336
|
-
case
|
|
348
|
+
case 12:
|
|
337
349
|
brands = (_g.sent()).brands;
|
|
338
350
|
leadResponse.brand_list = fixBrandList(brands, channels);
|
|
339
|
-
return [3,
|
|
340
|
-
case
|
|
351
|
+
return [3, 14];
|
|
352
|
+
case 13:
|
|
341
353
|
err_4 = _g.sent();
|
|
342
|
-
return [3,
|
|
343
|
-
case
|
|
354
|
+
return [3, 14];
|
|
355
|
+
case 14:
|
|
344
356
|
(_d = params.onSuccess) === null || _d === void 0 ? void 0 : _d.call(params);
|
|
345
357
|
return [4, sleep(3000)];
|
|
346
|
-
case
|
|
358
|
+
case 15:
|
|
347
359
|
_g.sent();
|
|
348
360
|
phone = (leadResponse.contact || {}).phone;
|
|
349
361
|
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
@@ -351,19 +363,19 @@ export var verifyPACI = createAsyncThunk('connect/verifyPACI', function (params,
|
|
|
351
363
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
352
364
|
thunkApi.dispatch(handleNextScreenStep());
|
|
353
365
|
return [2, { authResponse: authResponse, leadResponse: leadResponse, countryCode: countryCode }];
|
|
354
|
-
case
|
|
355
|
-
case
|
|
366
|
+
case 16: return [4, sleep(interval * 1000)];
|
|
367
|
+
case 17:
|
|
356
368
|
_g.sent();
|
|
357
|
-
_g.label =
|
|
358
|
-
case
|
|
369
|
+
_g.label = 18;
|
|
370
|
+
case 18:
|
|
359
371
|
count++;
|
|
360
372
|
return [3, 1];
|
|
361
|
-
case
|
|
373
|
+
case 19: throw new Error('paci_verification_failed');
|
|
362
374
|
}
|
|
363
375
|
});
|
|
364
376
|
}); });
|
|
365
377
|
export var verifyNafath = createAsyncThunk('connect/verifyNafath', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
366
|
-
var _a, settings, connect, responseBody, expiry, interval, maxCalls, count, authResponse,
|
|
378
|
+
var _a, settings, connect, responseBody, expiry, interval, maxCalls, count, authResponse, error_2, isSuccess, isFailed, countryCode, lead_id, leadResponse, channels, brand, err_5, brands, err_6, phone, isNextScreenDob, stepName;
|
|
367
379
|
var _b, _c, _d, _e, _f, _g, _h;
|
|
368
380
|
return __generator(this, function (_j) {
|
|
369
381
|
switch (_j.label) {
|
|
@@ -384,14 +396,14 @@ export var verifyNafath = createAsyncThunk('connect/verifyNafath', function (par
|
|
|
384
396
|
_j.label = 2;
|
|
385
397
|
case 2:
|
|
386
398
|
_j.trys.push([2, 4, , 5]);
|
|
387
|
-
return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token)];
|
|
399
|
+
return [4, API.authService.getVerifyAuth(responseBody === null || responseBody === void 0 ? void 0 : responseBody.auth_token, { timeout: NAFATH_PACI_TIMEOUT_DURATION })];
|
|
388
400
|
case 3:
|
|
389
401
|
authResponse = _j.sent();
|
|
390
402
|
return [3, 5];
|
|
391
403
|
case 4:
|
|
392
|
-
|
|
393
|
-
if (!isNetworkError(
|
|
394
|
-
throw new Error(
|
|
404
|
+
error_2 = _j.sent();
|
|
405
|
+
if (!isNetworkError(error_2.message) && !isTimeoutError(error_2.message)) {
|
|
406
|
+
throw new Error(error_2);
|
|
395
407
|
}
|
|
396
408
|
return [3, 5];
|
|
397
409
|
case 5:
|