@tap-payments/auth-jsconnect 2.4.5-test → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/@types/app.d.ts +241 -16
- package/build/@types/app.js +7 -0
- package/build/@types/form.d.ts +31 -23
- package/build/@types/theme.d.ts +1 -1
- package/build/@types/user.d.ts +39 -3
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +12 -11
- package/build/api/auth.js +5 -1
- 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 +2 -1
- package/build/api/country.js +8 -1
- package/build/api/data.d.ts +17 -10
- package/build/api/data.js +26 -2
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +13 -8
- package/build/api/entity.js +32 -1
- package/build/api/file.d.ts +1 -1
- package/build/api/index.d.ts +26 -5
- package/build/api/individual.d.ts +27 -9
- package/build/api/individual.js +9 -1
- package/build/api/init.d.ts +2 -1
- package/build/api/lead.d.ts +15 -10
- package/build/api/lead.js +58 -1
- package/build/api/operator.d.ts +10 -1
- package/build/api/operator.js +10 -2
- package/build/api/user.d.ts +2 -2
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +3 -1
- package/build/app/settings.d.ts +37 -3
- package/build/app/settings.js +116 -39
- package/build/app/store.d.ts +6 -4
- package/build/assets/locales/ar.json +24 -1
- package/build/assets/locales/en.json +24 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +2 -1
- package/build/components/AnimationFlow/AnimationFlow.js +3 -3
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.js +26 -5
- package/build/components/AnimationFlow/Dialog.d.ts +2 -1
- package/build/components/AnimationFlow/Dialog.js +2 -2
- 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 +5 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +45 -23
- package/build/components/ArabicDatePicker/arabicAr.d.ts +8 -0
- package/build/components/ArabicDatePicker/arabicAr.js +32 -0
- package/build/components/ArabicDatePicker/arabicEn.d.ts +8 -0
- package/build/components/ArabicDatePicker/arabicEn.js +32 -0
- package/build/components/ArabicDatePicker/style.css +45 -5
- 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 +3 -1
- package/build/components/DatePicker/DatePicker.js +23 -17
- package/build/components/ExpandIcon/ExpandIcon.d.ts +3 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/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 +2 -1
- package/build/components/SimpleList/SimpleList.js +12 -9
- 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/api.d.ts +9 -0
- package/build/constants/api.js +18 -1
- package/build/constants/app.d.ts +9 -1
- package/build/constants/app.js +84 -16
- package/build/constants/assets.d.ts +4 -0
- package/build/constants/assets.js +4 -0
- package/build/constants/dummy.d.ts +62 -0
- package/build/constants/dummy.js +603 -0
- package/build/constants/validation.d.ts +2 -2
- package/build/constants/validation.js +3 -3
- package/build/features/app/bank/bankStore.d.ts +94 -10
- package/build/features/app/bank/bankStore.js +110 -54
- package/build/features/app/board/boardStore.d.ts +66 -0
- package/build/features/app/board/boardStore.js +223 -0
- package/build/features/app/brand/brandStore.d.ts +161 -18
- package/build/features/app/brand/brandStore.js +287 -126
- package/build/features/app/business/businessStore.d.ts +171 -18
- package/build/features/app/business/businessStore.js +285 -200
- package/build/features/app/connect/connectStore.d.ts +166 -14
- package/build/features/app/connect/connectStore.js +267 -97
- package/build/features/app/connectExpress/connectExpressStore.d.ts +273 -25
- package/build/features/app/connectExpress/connectExpressStore.js +453 -71
- package/build/features/app/entity/entityStore.d.ts +98 -10
- package/build/features/app/entity/entityStore.js +149 -74
- package/build/features/app/individual/individualStore.d.ts +200 -28
- package/build/features/app/individual/individualStore.js +346 -222
- package/build/features/app/password/passwordStore.d.ts +114 -12
- package/build/features/app/password/passwordStore.js +113 -43
- 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 -9
- package/build/features/app/tax/taxStore.js +97 -48
- package/build/features/bank/Bank.d.ts +2 -2
- package/build/features/bank/Bank.js +11 -6
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +18 -14
- 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/BankStatement.js +2 -1
- 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/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/bank/screens/Success/Success.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/OTPInput.js +3 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.js +2 -2
- package/build/features/board/Board.d.ts +9 -0
- package/build/features/board/Board.js +74 -0
- package/build/features/board/index.d.ts +1 -0
- package/build/features/board/index.js +1 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +35 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/board/screens/Verify/OTPInput.js +51 -0
- package/build/features/board/screens/Verify/Verify.d.ts +5 -0
- package/build/features/board/screens/Verify/Verify.js +74 -0
- package/build/features/board/screens/Verify/index.d.ts +2 -0
- package/build/features/board/screens/Verify/index.js +2 -0
- package/build/features/board/screens/Verify/validation.d.ts +8 -0
- package/build/features/board/screens/Verify/validation.js +4 -0
- package/build/features/brand/Brand.d.ts +2 -2
- package/build/features/brand/Brand.js +11 -6
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -29
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +21 -13
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +24 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +6 -9
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +7 -9
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +10 -12
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +12 -20
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandActivities/validation.d.ts +36 -36
- package/build/features/brand/screens/BrandActivities/validation.js +5 -10
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +17 -31
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -4
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +3 -14
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandName.js +3 -4
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +16 -8
- package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -6
- package/build/features/brand/screens/BrandInfo/validation.js +9 -8
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +4 -0
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +103 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +9 -0
- package/build/features/brand/screens/{BrandInfo/Segments.js → BrandSegmentInfo/SegmentLocations.js} +6 -14
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +9 -0
- package/build/features/{connect/screens/Merchant/Segments.js → brand/screens/BrandSegmentInfo/SegmentProfits.js} +23 -33
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +9 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -0
- package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +2 -10
- package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/brand/screens/Success/Success.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/OTPInput.js +3 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.js +2 -2
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/Business.js +4 -1
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.js +2 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +14 -78
- package/build/features/business/screens/Activities/ActivitiesList.js +226 -103
- 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/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/Activities/validation.d.ts +165 -30
- package/build/features/business/screens/Activities/validation.js +5 -2
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +14 -6
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +3 -6
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/EntityName.js +4 -5
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +6 -9
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +4 -4
- package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
- package/build/features/business/screens/BusinessType/validation.d.ts +10 -0
- package/build/features/business/screens/BusinessType/validation.js +18 -2
- package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/CivilID/CivilID.js +2 -1
- package/build/features/business/screens/CivilID/IDNumber.js +2 -3
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +34 -46
- package/build/features/business/screens/Customers/CustomerLocations.js +35 -19
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/Customers.js +2 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +8 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +13 -15
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +11 -19
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +1 -2
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/DOB.js +2 -2
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.js +7 -4
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.js +9 -17
- package/build/features/business/screens/IDBOD/validation.d.ts +10 -0
- package/build/features/business/screens/IDBOD/validation.js +4 -0
- package/build/features/business/screens/OTP/OTP.d.ts +1 -1
- package/build/features/business/screens/OTP/OTP.js +2 -2
- package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/business/screens/OTP/OTPInput.js +5 -2
- 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/OTPInput.js +3 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.js +2 -2
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +95 -13
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -0
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +62 -0
- package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.js +12 -25
- package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
- package/build/features/connect/screens/BrandSegment/index.js +2 -0
- package/build/features/connect/screens/BrandSegment/validation.d.ts +8 -0
- package/build/features/connect/screens/BrandSegment/validation.js +6 -0
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +103 -0
- package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connect/screens/BusinessCountry/index.js +2 -0
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/CivilID/CivilID.js +12 -16
- package/build/features/connect/screens/CivilID/IDNumber.js +5 -6
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +9 -11
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Individual.js +9 -2
- package/build/features/connect/screens/Individual/MobileNumber.js +6 -9
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.js +11 -15
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +4 -22
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +3 -5
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/Merchant.js +13 -16
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/SalesChannels.js +6 -6
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Merchant/validation.d.ts +0 -6
- package/build/features/connect/screens/Merchant/validation.js +8 -12
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +23 -22
- package/build/features/connect/screens/Mobile/MobileNumber.js +22 -15
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/DOB.d.ts +1 -2
- package/build/features/connect/screens/NID/DOB.js +3 -3
- package/build/features/connect/screens/NID/IDNumber.js +6 -7
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/NID/NID.js +17 -4
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.js +14 -16
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.js +14 -2
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/ThankYou/ThankYou.js +17 -2
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +2 -3
- package/build/features/connectExpress/ConnectExpress.js +86 -18
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +93 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +96 -0
- package/build/features/connectExpress/screens/AuthenticationList/MerchantList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +107 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +14 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +8 -0
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +105 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.js +11 -4
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +12 -8
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -1
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -7
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +4 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +13 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +10 -12
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +4 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +13 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +71 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +2 -3
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +4 -4
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -3
- 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 +9 -5
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -6
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NID/DOB.js +2 -2
- package/build/features/connectExpress/screens/NID/IDNumber.js +2 -3
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/NID.js +7 -3
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -3
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +2 -2
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -4
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -4
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +10 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -0
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.js +3 -3
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.js +4 -2
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -6
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +2 -2
- package/build/features/entity/Entity.js +11 -6
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +10 -39
- package/build/features/entity/screens/EntityCapital/ActivityList.js +53 -35
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -15
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -12
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +9 -16
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +14 -6
- package/build/features/entity/screens/EntityCapital/validation.d.ts +90 -90
- package/build/features/entity/screens/EntityCapital/validation.js +2 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +3 -3
- package/build/features/entity/screens/EntityName/Article.js +3 -2
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityName.js +45 -16
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -43
- package/build/features/entity/screens/EntityName/EntityTypeList.js +16 -24
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +6 -13
- package/build/features/entity/screens/EntityName/ExpiryDate.js +4 -5
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +6 -13
- package/build/features/entity/screens/EntityName/IssuingDate.js +4 -5
- package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LegalName.js +3 -4
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +3 -4
- package/build/features/entity/screens/EntityName/validation.d.ts +28 -0
- package/build/features/entity/screens/EntityName/validation.js +40 -2
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/entity/screens/Success/Success.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/OTPInput.js +3 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.js +2 -2
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +42 -0
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +11 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +36 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +10 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +13 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +19 -30
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +87 -48
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +4 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +12 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +6 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +9 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +17 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +7 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +8 -7
- 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/IndividualList/UserList.js +10 -6
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +6 -22
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +6 -22
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +3 -8
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +3 -4
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +5 -4
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +3 -2
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +8 -6
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +56 -37
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +7 -24
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +5 -8
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +3 -10
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +7 -24
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +67 -63
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +2 -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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/OTPInput.js +3 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.js +2 -2
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -5
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -2
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTP.js +2 -2
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.js +5 -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/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/OTPInput.js +3 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.js +2 -2
- 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 +13 -29
- package/build/features/shared/Address/InputSelect.d.ts +13 -29
- 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 +14 -0
- package/build/features/shared/BusinessCountry/BusinessCountry.js +179 -0
- package/build/features/shared/BusinessCountry/index.d.ts +2 -0
- package/build/features/shared/BusinessCountry/index.js +2 -0
- package/build/features/shared/Button/AbsherButton.d.ts +1 -2
- 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/EmailProvidersButtons.js +9 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +4 -3
- package/build/features/shared/Button/FlowsButtons.js +17 -13
- package/build/features/shared/Button/IndividualActionButtons.d.ts +5 -3
- package/build/features/shared/Button/IndividualActionButtons.js +26 -2
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Calender/Calender.d.ts +12 -0
- package/build/features/shared/Calender/Calender.js +56 -0
- package/build/features/shared/Calender/index.d.ts +2 -0
- package/build/features/shared/Calender/index.js +2 -0
- 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 +7 -0
- package/build/features/shared/Dot/Dot.js +29 -0
- package/build/features/shared/Dot/index.d.ts +2 -0
- package/build/features/shared/Dot/index.js +2 -0
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -3
- package/build/features/shared/EndAdornment/EndAdornment.js +1 -1
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/Footer.js +10 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +7 -16
- package/build/features/shared/Input/index.d.ts +2 -1
- package/build/features/shared/InputSelect/InputSelect.d.ts +3 -0
- package/build/features/shared/InputSelect/InputSelect.js +33 -0
- package/build/features/shared/InputSelect/index.d.ts +2 -0
- package/build/features/shared/InputSelect/index.js +2 -0
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- 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 +2 -2
- package/build/features/shared/SalesChannels/SalesChannel.js +5 -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 +3 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +20 -9
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -4
- package/build/features/shared/UploadFile/FileUpload.js +2 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -3
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -3
- package/build/features/shared/UploadFile/UploadWrapper.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -4
- package/build/features/shared/UploadMultipleFile/UploadFile.js +2 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -3
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +1 -1
- 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/Email/Email.js +2 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +2 -1
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.js +2 -2
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -2
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.js +2 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +2 -2
- package/build/features/tax/Tax.js +11 -6
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -7
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -3
- package/build/features/tax/screens/TaxDetails/VATId.js +3 -5
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/OTPInput.js +3 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.js +2 -2
- package/build/hooks/useAppConfig.d.ts +4 -2
- package/build/hooks/useAppConfig.js +18 -18
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/hooks/useCountry.d.ts +1 -0
- package/build/hooks/useCountry.js +4 -3
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useErrorListener.d.ts +2 -1
- package/build/hooks/useErrorListener.js +16 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
- package/build/hooks/useFormReadOnly.d.ts +2 -2
- package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
- package/build/hooks/useVerifyToken.js +1 -1
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -2
- package/build/utils/array.d.ts +13 -2
- package/build/utils/array.js +115 -2
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +10 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +6 -0
- package/build/utils/gtm.d.ts +6 -0
- package/build/utils/gtm.js +29 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +14 -0
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +3 -0
- package/package.json +4 -2
- package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -10
- package/build/features/connect/screens/Merchant/Segments.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]) {
|
|
@@ -56,35 +56,73 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen } from '../../../app/settings';
|
|
59
|
+
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen, handleSetCountryByIso2, onCloseComplete, storeAuthId } from '../../../app/settings';
|
|
60
60
|
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '../../../@types';
|
|
61
61
|
import API from '../../../api';
|
|
62
|
-
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
|
|
62
|
+
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE, SCOPE_AUTH } from '../../../constants';
|
|
63
63
|
import { defaultCountry } from '../../../constants';
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '../../../utils';
|
|
64
|
+
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA, isKW, isOtherThanKWOrSA } from '../../../utils';
|
|
65
|
+
export var updateBusinessCountryAsync = createAsyncThunk('connectExpress/updateBusinessCountryAsync', function (countryCode, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
|
+
var connectExpress, payload, data;
|
|
67
|
+
return __generator(this, function (_a) {
|
|
68
|
+
switch (_a.label) {
|
|
69
|
+
case 0:
|
|
70
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
71
|
+
payload = {
|
|
72
|
+
id: connectExpress.data.leadId || '',
|
|
73
|
+
country_code: countryCode,
|
|
74
|
+
encryption_contract: []
|
|
75
|
+
};
|
|
76
|
+
return [4, API.leadService.updateLeadExpress(payload)];
|
|
77
|
+
case 1:
|
|
78
|
+
data = _a.sent();
|
|
79
|
+
return [2, data];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}); });
|
|
65
83
|
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
|
-
var _a, settings, connectExpress, countryCode, showBoard, data, phone, status, board_id, board_info_id, isRegistered,
|
|
67
|
-
var
|
|
68
|
-
return __generator(this, function (
|
|
69
|
-
switch (
|
|
84
|
+
var _a, settings, connectExpress, countryCode, showBoard, data, _b, country_code, contact, phone, status, board_id, board_info_id, isRegistered, _c, boardInfo, boardData, error_1;
|
|
85
|
+
var _d, _e, _f, _g, _h, _j;
|
|
86
|
+
return __generator(this, function (_k) {
|
|
87
|
+
switch (_k.label) {
|
|
70
88
|
case 0:
|
|
71
89
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
72
90
|
countryCode = settings.data.businessCountry;
|
|
73
91
|
showBoard = connectExpress.data.showBoard;
|
|
74
92
|
return [4, API.leadService.retrieveLeadIdentity(leadId)];
|
|
75
93
|
case 1:
|
|
76
|
-
data =
|
|
77
|
-
|
|
94
|
+
data = _k.sent();
|
|
95
|
+
_b = data || {}, country_code = _b.country_code, contact = _b.contact;
|
|
96
|
+
if (country_code)
|
|
97
|
+
thunkApi.dispatch(handleSetCountryByIso2(country_code));
|
|
98
|
+
phone = (contact || {}).phone;
|
|
78
99
|
if (phone === null || phone === void 0 ? void 0 : phone.country_code)
|
|
79
100
|
countryCode = findCountryByIddPrefix(settings.data.countries, phone.country_code);
|
|
80
101
|
status = data.status, board_id = data.board_id, board_info_id = data.board_info_id;
|
|
102
|
+
if (!(data === null || data === void 0 ? void 0 : data.country_code) && !((_d = settings.data.businessCountry) === null || _d === void 0 ? void 0 : _d.iso2)) {
|
|
103
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_BUSINESS_COUNTRY_STEP'));
|
|
104
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
105
|
+
}
|
|
81
106
|
isRegistered = (status === null || status === void 0 ? void 0 : status.toLowerCase()) === 'registered';
|
|
82
|
-
if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) &&
|
|
107
|
+
if (!isRegistered && !(data === null || data === void 0 ? void 0 : data.identification) && phone) {
|
|
108
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
109
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
110
|
+
}
|
|
111
|
+
if (!isRegistered && (data === null || data === void 0 ? void 0 : data.country_code) && !((_e = settings.data.businessCountry) === null || _e === void 0 ? void 0 : _e.iso2)) {
|
|
112
|
+
thunkApi.dispatch(handleSetCountryByIso2(data.country_code));
|
|
113
|
+
if (isOtherThanKWOrSA(data.country_code) || isKW(data.country_code))
|
|
114
|
+
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
115
|
+
return [2, { data: data, countryCode: countryCode }];
|
|
116
|
+
}
|
|
117
|
+
if (!isRegistered && (isKW(settings.data.businessCountry.iso2) || isOtherThanKWOrSA(settings.data.businessCountry.iso2))) {
|
|
83
118
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_MOBILE_STEP'));
|
|
84
119
|
return [2, { data: data, countryCode: countryCode }];
|
|
85
120
|
}
|
|
121
|
+
if ((_f = data === null || data === void 0 ? void 0 : data.identification) === null || _f === void 0 ? void 0 : _f.authentication_id) {
|
|
122
|
+
thunkApi.dispatch(storeAuthId((_g = data === null || data === void 0 ? void 0 : data.identification) === null || _g === void 0 ? void 0 : _g.authentication_id));
|
|
123
|
+
}
|
|
86
124
|
if (isRegistered && !showBoard) {
|
|
87
|
-
(
|
|
125
|
+
(_j = (_h = settings.data.appConfig).onFlowCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, data);
|
|
88
126
|
thunkApi.dispatch(handleOpen(false));
|
|
89
127
|
return [2, { data: data, countryCode: countryCode }];
|
|
90
128
|
}
|
|
@@ -93,19 +131,19 @@ export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retr
|
|
|
93
131
|
return [2, { data: data, countryCode: countryCode }];
|
|
94
132
|
}
|
|
95
133
|
if (!(isRegistered && board_id && board_info_id)) return [3, 5];
|
|
96
|
-
|
|
134
|
+
_k.label = 2;
|
|
97
135
|
case 2:
|
|
98
|
-
|
|
136
|
+
_k.trys.push([2, 4, , 5]);
|
|
99
137
|
return [4, Promise.all([
|
|
100
138
|
API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id }),
|
|
101
139
|
API.boardService.retrieveBoardDetails(board_id)
|
|
102
140
|
])];
|
|
103
141
|
case 3:
|
|
104
|
-
|
|
142
|
+
_c = _k.sent(), boardInfo = _c[0], boardData = _c[1];
|
|
105
143
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_SUCCESS_WITH_FLOW_BUTTONS_STEP'));
|
|
106
144
|
return [2, { data: data, countryCode: countryCode, boardInfo: boardInfo, boardData: boardData }];
|
|
107
145
|
case 4:
|
|
108
|
-
error_1 =
|
|
146
|
+
error_1 = _k.sent();
|
|
109
147
|
thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_ACCOUNT_ALREADY_CREATED_STEP'));
|
|
110
148
|
return [2, { data: data, countryCode: countryCode }];
|
|
111
149
|
case 5: return [2, { data: data, countryCode: countryCode }];
|
|
@@ -140,6 +178,52 @@ export var retrieveEntityListAsync = createAsyncThunk('connectExpress/retrieveEn
|
|
|
140
178
|
}
|
|
141
179
|
});
|
|
142
180
|
}); });
|
|
181
|
+
export var retrieveAuthenticationListAsync = createAsyncThunk('connectExpress/retrieveAuthenticationListAsync', function (_a) {
|
|
182
|
+
var individualId = _a.individualId;
|
|
183
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
184
|
+
var brandList, entityList, brands, err_1, list, err_2;
|
|
185
|
+
return __generator(this, function (_b) {
|
|
186
|
+
switch (_b.label) {
|
|
187
|
+
case 0:
|
|
188
|
+
brandList = undefined;
|
|
189
|
+
entityList = undefined;
|
|
190
|
+
_b.label = 1;
|
|
191
|
+
case 1:
|
|
192
|
+
_b.trys.push([1, 3, , 4]);
|
|
193
|
+
return [4, API.brandService.getBrandList({ individual_id: individualId })];
|
|
194
|
+
case 2:
|
|
195
|
+
brands = (_b.sent()).brands;
|
|
196
|
+
brandList = brands;
|
|
197
|
+
return [3, 4];
|
|
198
|
+
case 3:
|
|
199
|
+
err_1 = _b.sent();
|
|
200
|
+
return [3, 4];
|
|
201
|
+
case 4:
|
|
202
|
+
_b.trys.push([4, 6, , 7]);
|
|
203
|
+
return [4, API.entityService.getEntityListUsingIndividualId(individualId)];
|
|
204
|
+
case 5:
|
|
205
|
+
list = (_b.sent()).list;
|
|
206
|
+
entityList = list;
|
|
207
|
+
return [3, 7];
|
|
208
|
+
case 6:
|
|
209
|
+
err_2 = _b.sent();
|
|
210
|
+
return [3, 7];
|
|
211
|
+
case 7: return [2, { brandList: brandList || [], entityList: entityList || [] }];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
export var getMerchantListAsync = createAsyncThunk('connectExpress/getMerchantListAsync', function (entityId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
217
|
+
var merchants;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
switch (_a.label) {
|
|
220
|
+
case 0: return [4, API.entityService.getMerchantListUsingEntityId(entityId)];
|
|
221
|
+
case 1:
|
|
222
|
+
merchants = (_a.sent()).merchants;
|
|
223
|
+
return [2, merchants || []];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}); });
|
|
143
227
|
export var createMobileAuthAsync = createAsyncThunk('connectExpress/createMobileAuthAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
144
228
|
var _a, settings, connectExpress, requestBody, data;
|
|
145
229
|
var _b, _c;
|
|
@@ -297,7 +381,7 @@ export var createCivilIdAuthAsync = createAsyncThunk('connectExpress/createCivil
|
|
|
297
381
|
step_name: CONNECT_EXPRESS_STEP_NAMES.CREATE_AUTH_CIVIL_ID,
|
|
298
382
|
encryption_contract: ['user_credentail.identification_id']
|
|
299
383
|
};
|
|
300
|
-
return [4, API.authService.
|
|
384
|
+
return [4, API.authService.createExpressAuth(requestBody)];
|
|
301
385
|
case 1:
|
|
302
386
|
data = _d.sent();
|
|
303
387
|
thunkApi.dispatch(handleNextScreenStep());
|
|
@@ -307,16 +391,20 @@ export var createCivilIdAuthAsync = createAsyncThunk('connectExpress/createCivil
|
|
|
307
391
|
});
|
|
308
392
|
}); });
|
|
309
393
|
export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
310
|
-
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, mobileData, _c, auth_token, device_token, service_name, payload, data,
|
|
311
|
-
var
|
|
312
|
-
return __generator(this, function (
|
|
313
|
-
switch (
|
|
394
|
+
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, mobileData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasOperator, payload, data, authId, urlQueryStart, _e, brandList, entityList, isKuwait, next;
|
|
395
|
+
var _f, _g;
|
|
396
|
+
return __generator(this, function (_h) {
|
|
397
|
+
switch (_h.label) {
|
|
314
398
|
case 0:
|
|
315
399
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
316
400
|
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, mobileData = _b.mobileData;
|
|
317
401
|
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
318
402
|
throw new Error('Auth data is missing');
|
|
319
403
|
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
404
|
+
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
405
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
406
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
407
|
+
isDataHasOperator = authData === null || authData === void 0 ? void 0 : authData.includes('operator');
|
|
320
408
|
payload = {
|
|
321
409
|
auth_token: auth_token,
|
|
322
410
|
lead_id: leadId,
|
|
@@ -331,29 +419,58 @@ export var verifyMobileOtpAsync = createAsyncThunk('connectExpress/verifyMobileO
|
|
|
331
419
|
};
|
|
332
420
|
return [4, API.authService.verifyExpressAuth(payload)];
|
|
333
421
|
case 1:
|
|
334
|
-
data =
|
|
335
|
-
|
|
422
|
+
data = _h.sent();
|
|
423
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
424
|
+
authId = data.auth.id;
|
|
425
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
426
|
+
if (isScopeAuthentication && !data.new_user && !isDataHasOperator && authId) {
|
|
427
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
428
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
429
|
+
thunkApi.dispatch(handleOpen(false));
|
|
430
|
+
return [2, data];
|
|
431
|
+
}
|
|
432
|
+
if (redirectUrl) {
|
|
433
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
434
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
435
|
+
return [2, data];
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (!(isScopeAuthentication && !data.new_user && isDataHasOperator)) return [3, 3];
|
|
439
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
336
440
|
case 2:
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
441
|
+
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
442
|
+
if (brandList.length && entityList.length) {
|
|
443
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
444
|
+
return [2, data];
|
|
445
|
+
}
|
|
446
|
+
_h.label = 3;
|
|
447
|
+
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead_id)).unwrap()];
|
|
448
|
+
case 4:
|
|
449
|
+
_h.sent();
|
|
450
|
+
isKuwait = isKW(settings.data.businessCountry.iso2);
|
|
451
|
+
next = 'CONNECT_EXPRESS_NID_MISSED_STEP';
|
|
452
|
+
if (isKuwait)
|
|
453
|
+
next = 'CONNECT_EXPRESS_CIVIL_ID_MISSED_STEP';
|
|
341
454
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep(next)); });
|
|
342
455
|
return [2, data];
|
|
343
456
|
}
|
|
344
457
|
});
|
|
345
458
|
}); });
|
|
346
459
|
export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
347
|
-
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, nidData, _c, auth_token, device_token, service_name, payload, data, stepName, needToCollectMoreInfo, creatingAccount;
|
|
348
|
-
var
|
|
349
|
-
return __generator(this, function (
|
|
350
|
-
switch (
|
|
460
|
+
var _a, settings, connectExpress, _b, responseData, leadId, isLeadIdPassed, nidData, _c, auth_token, device_token, service_name, _d, scope, redirectUrl, authData, isScopeAuthentication, bi, isDataHasOperator, payload, data, authId, urlQueryStart, _e, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
461
|
+
var _f, _g;
|
|
462
|
+
return __generator(this, function (_h) {
|
|
463
|
+
switch (_h.label) {
|
|
351
464
|
case 0:
|
|
352
465
|
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
353
466
|
_b = connectExpress.data || {}, responseData = _b.responseData, leadId = _b.leadId, isLeadIdPassed = _b.isLeadIdPassed, nidData = _b.nidData;
|
|
354
467
|
if (!(responseData === null || responseData === void 0 ? void 0 : responseData.authData))
|
|
355
468
|
throw new Error('Auth data is missing');
|
|
356
469
|
_c = responseData.authData, auth_token = _c.auth_token, device_token = _c.device_token, service_name = _c.service_name;
|
|
470
|
+
_d = settings.data.appConfig, scope = _d.scope, redirectUrl = _d.redirectUrl, authData = _d.data;
|
|
471
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
472
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
473
|
+
isDataHasOperator = authData === null || authData === void 0 ? void 0 : authData.includes('operator');
|
|
357
474
|
payload = {
|
|
358
475
|
auth_token: auth_token,
|
|
359
476
|
lead_id: leadId,
|
|
@@ -368,10 +485,99 @@ export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsyn
|
|
|
368
485
|
};
|
|
369
486
|
return [4, API.authService.verifyExpressAuth(payload)];
|
|
370
487
|
case 1:
|
|
371
|
-
data =
|
|
372
|
-
(
|
|
373
|
-
|
|
488
|
+
data = _h.sent();
|
|
489
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, params);
|
|
490
|
+
authId = data.auth.id;
|
|
491
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
492
|
+
if (isScopeAuthentication && !data.new_user && !isDataHasOperator && authId) {
|
|
493
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
494
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
495
|
+
thunkApi.dispatch(handleOpen(false));
|
|
496
|
+
return [2, data];
|
|
497
|
+
}
|
|
498
|
+
if (redirectUrl) {
|
|
499
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
500
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
501
|
+
return [2, data];
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
if (!(isScopeAuthentication && !data.new_user && isDataHasOperator)) return [3, 3];
|
|
505
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
374
506
|
case 2:
|
|
507
|
+
_e = _h.sent(), brandList = _e.brandList, entityList = _e.entityList;
|
|
508
|
+
if (brandList.length && entityList.length) {
|
|
509
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
510
|
+
return [2, data];
|
|
511
|
+
}
|
|
512
|
+
_h.label = 3;
|
|
513
|
+
case 3: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
514
|
+
case 4:
|
|
515
|
+
_h.sent();
|
|
516
|
+
stepName = data.step_name;
|
|
517
|
+
needToCollectMoreInfo = stepName === 'collect_info';
|
|
518
|
+
creatingAccount = stepName === 'create_account';
|
|
519
|
+
if (creatingAccount) {
|
|
520
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_WAITING_FOR_CREATING_ACCOUNT_STEP')); });
|
|
521
|
+
}
|
|
522
|
+
if (needToCollectMoreInfo) {
|
|
523
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
524
|
+
}
|
|
525
|
+
return [2, data];
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
}); });
|
|
529
|
+
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
+
var _a, settings, connectExpress, authData, _b, scope, redirectUrl, authConfigData, isScopeAuthentication, bi, isDataHasOperator, expiry, interval, maxCalls, count, data, isSuccess, authId, urlQueryStart, _c, brandList, entityList, stepName, needToCollectMoreInfo, creatingAccount;
|
|
531
|
+
var _d, _e;
|
|
532
|
+
return __generator(this, function (_f) {
|
|
533
|
+
switch (_f.label) {
|
|
534
|
+
case 0:
|
|
535
|
+
_a = thunkApi.getState(), settings = _a.settings, connectExpress = _a.connectExpress;
|
|
536
|
+
authData = (connectExpress.data.responseData || {}).authData;
|
|
537
|
+
_b = settings.data.appConfig, scope = _b.scope, redirectUrl = _b.redirectUrl, authConfigData = _b.data;
|
|
538
|
+
isScopeAuthentication = scope === SCOPE_AUTH;
|
|
539
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
540
|
+
isDataHasOperator = authConfigData === null || authConfigData === void 0 ? void 0 : authConfigData.includes('operator');
|
|
541
|
+
expiry = (authData === null || authData === void 0 ? void 0 : authData.expiry) || 120;
|
|
542
|
+
interval = 3;
|
|
543
|
+
maxCalls = Math.floor(expiry / interval);
|
|
544
|
+
count = 1;
|
|
545
|
+
_f.label = 1;
|
|
546
|
+
case 1:
|
|
547
|
+
if (!(count <= maxCalls)) return [3, 9];
|
|
548
|
+
if (thunkApi.signal.aborted) {
|
|
549
|
+
return [3, 9];
|
|
550
|
+
}
|
|
551
|
+
return [4, API.authService.getVerifyExpressAuth(authData === null || authData === void 0 ? void 0 : authData.auth_token)];
|
|
552
|
+
case 2:
|
|
553
|
+
data = _f.sent();
|
|
554
|
+
isSuccess = ((_e = (_d = data.auth) === null || _d === void 0 ? void 0 : _d.status) === null || _e === void 0 ? void 0 : _e.toLowerCase()) === 'success';
|
|
555
|
+
if (!isSuccess) return [3, 6];
|
|
556
|
+
authId = data.auth.id;
|
|
557
|
+
thunkApi.dispatch(storeAuthId(authId));
|
|
558
|
+
if (isScopeAuthentication && !data.new_user && !isDataHasOperator && authId) {
|
|
559
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
560
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
561
|
+
thunkApi.dispatch(handleOpen(false));
|
|
562
|
+
return [2, data];
|
|
563
|
+
}
|
|
564
|
+
if (redirectUrl) {
|
|
565
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
566
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
567
|
+
return [2, data];
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
if (!(isScopeAuthentication && !data.new_user && isDataHasOperator)) return [3, 4];
|
|
571
|
+
return [4, thunkApi.dispatch(retrieveAuthenticationListAsync({ individualId: data.individual_id })).unwrap()];
|
|
572
|
+
case 3:
|
|
573
|
+
_c = _f.sent(), brandList = _c.brandList, entityList = _c.entityList;
|
|
574
|
+
if (brandList.length && entityList.length) {
|
|
575
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_AUTHENTICATION_LIST_STEP')); });
|
|
576
|
+
return [2, data];
|
|
577
|
+
}
|
|
578
|
+
_f.label = 4;
|
|
579
|
+
case 4: return [4, thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()];
|
|
580
|
+
case 5:
|
|
375
581
|
_f.sent();
|
|
376
582
|
stepName = data.step_name;
|
|
377
583
|
needToCollectMoreInfo = stepName === 'collect_info';
|
|
@@ -383,15 +589,17 @@ export var verifyNIDOtpAsync = createAsyncThunk('connectExpress/verifyNIDOtpAsyn
|
|
|
383
589
|
sleep(100).then(function () { return thunkApi.dispatch(handleCurrentActiveScreen('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP')); });
|
|
384
590
|
}
|
|
385
591
|
return [2, data];
|
|
592
|
+
case 6: return [4, sleep(interval * 1000)];
|
|
593
|
+
case 7:
|
|
594
|
+
_f.sent();
|
|
595
|
+
_f.label = 8;
|
|
596
|
+
case 8:
|
|
597
|
+
count++;
|
|
598
|
+
return [3, 1];
|
|
599
|
+
case 9: throw new Error('paci_verification_failed');
|
|
386
600
|
}
|
|
387
601
|
});
|
|
388
602
|
}); });
|
|
389
|
-
export var verifyPACIAsync = createAsyncThunk('connectExpress/verifyPACIAsync', function (_a, thunkApi) {
|
|
390
|
-
var onSuccess = _a.onSuccess;
|
|
391
|
-
return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_b) {
|
|
392
|
-
return [2];
|
|
393
|
-
}); });
|
|
394
|
-
});
|
|
395
603
|
export var createCivilIDAuthIdentityAsync = createAsyncThunk('connectExpress/createCivilIDAuthIdentityAsync', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
396
604
|
var _a, settings, connectExpress, civilId, countryCode, requestBody, data;
|
|
397
605
|
var _b, _c, _d;
|
|
@@ -430,6 +638,9 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
|
|
|
430
638
|
dob = params.dob, nid = params.nid;
|
|
431
639
|
nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
432
640
|
countryCode = settings.data.businessCountry.iso2;
|
|
641
|
+
if (isOtherThanKWOrSA(countryCode)) {
|
|
642
|
+
nidType = IDENTIFICATION_TYPE.NID;
|
|
643
|
+
}
|
|
433
644
|
requestBody = {
|
|
434
645
|
id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
|
|
435
646
|
identification: {
|
|
@@ -445,7 +656,17 @@ export var createNIDAuthIdentityAsync = createAsyncThunk('connectExpress/createN
|
|
|
445
656
|
return [4, API.leadService.updateLead(requestBody)];
|
|
446
657
|
case 1:
|
|
447
658
|
data = _e.sent();
|
|
448
|
-
|
|
659
|
+
if (!((data === null || data === void 0 ? void 0 : data.verify_token) !== 'null')) return [3, 2];
|
|
660
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_OTP_IDENTITY_STEP'));
|
|
661
|
+
return [3, 4];
|
|
662
|
+
case 2:
|
|
663
|
+
if (!isOtherThanKWOrSA(countryCode)) return [3, 4];
|
|
664
|
+
return [4, thunkApi.dispatch(getLeadByIdAsync(data.id)).unwrap()];
|
|
665
|
+
case 3:
|
|
666
|
+
_e.sent();
|
|
667
|
+
thunkApi.dispatch(handleNextScreenStep('CONNECT_EXPRESS_COLLECT_INDIVIDUAL_INFO_STEP'));
|
|
668
|
+
_e.label = 4;
|
|
669
|
+
case 4:
|
|
449
670
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, requestBody.identification);
|
|
450
671
|
return [2, { response: { verify_token: data.verify_token }, formData: params }];
|
|
451
672
|
}
|
|
@@ -461,6 +682,9 @@ export var resendNIDAuthIdentityOTP = createAsyncThunk('connectExpress/resendNID
|
|
|
461
682
|
dob = params.dob, nid = params.nid;
|
|
462
683
|
nidType = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
463
684
|
countryCode = settings.data.businessCountry.iso2;
|
|
685
|
+
if (isOtherThanKWOrSA(countryCode)) {
|
|
686
|
+
nidType = IDENTIFICATION_TYPE.NID;
|
|
687
|
+
}
|
|
464
688
|
requestBody = {
|
|
465
689
|
id: (_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.authData.lead_id,
|
|
466
690
|
identification: {
|
|
@@ -606,23 +830,24 @@ export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/ch
|
|
|
606
830
|
});
|
|
607
831
|
});
|
|
608
832
|
export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
609
|
-
var _a, connectExpress, settings, _b,
|
|
610
|
-
var
|
|
611
|
-
return __generator(this, function (
|
|
612
|
-
switch (
|
|
833
|
+
var _a, connectExpress, settings, _b, responseData, showBoard, _c, postURL, scope, body, data, _d, boardInfo, boardData;
|
|
834
|
+
var _e, _f, _g, _h, _j, _k;
|
|
835
|
+
return __generator(this, function (_l) {
|
|
836
|
+
switch (_l.label) {
|
|
613
837
|
case 0:
|
|
614
838
|
_a = thunkApi.getState(), connectExpress = _a.connectExpress, settings = _a.settings;
|
|
615
|
-
_b = connectExpress.data,
|
|
839
|
+
_b = connectExpress.data, responseData = _b.responseData, showBoard = _b.showBoard;
|
|
840
|
+
_c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope;
|
|
616
841
|
body = {
|
|
617
842
|
lead_id: responseData === null || responseData === void 0 ? void 0 : responseData.leadData.id,
|
|
618
|
-
post_url: postURL
|
|
843
|
+
post_url: scope === SCOPE_AUTH ? '' : postURL || ''
|
|
619
844
|
};
|
|
620
845
|
return [4, API.accountService.expressCreateAccount(body)];
|
|
621
846
|
case 1:
|
|
622
|
-
data =
|
|
623
|
-
(
|
|
624
|
-
(
|
|
625
|
-
(
|
|
847
|
+
data = _l.sent();
|
|
848
|
+
(_f = (_e = settings.data.appConfig).onCreated) === null || _f === void 0 ? void 0 : _f.call(_e, data);
|
|
849
|
+
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, data);
|
|
850
|
+
(_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, data);
|
|
626
851
|
if (!showBoard) return [3, 3];
|
|
627
852
|
return [4, Promise.all([
|
|
628
853
|
API.boardService.retrieveBoardInfo({ id: data.board_id, infoId: data.board_info_id }),
|
|
@@ -630,7 +855,7 @@ export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAs
|
|
|
630
855
|
thunkApi.dispatch(getLeadByIdAsync(data.lead.id)).unwrap()
|
|
631
856
|
])];
|
|
632
857
|
case 2:
|
|
633
|
-
|
|
858
|
+
_d = _l.sent(), boardInfo = _d[0], boardData = _d[1];
|
|
634
859
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
635
860
|
return [2, { boardInfo: boardInfo, boardData: boardData, account: data }];
|
|
636
861
|
case 3:
|
|
@@ -682,34 +907,33 @@ export var updateLeadIndividualAsync = createAsyncThunk('connectExpress/updateLe
|
|
|
682
907
|
export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDataAsync ', function (_a, thunkApi) {
|
|
683
908
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
684
909
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
685
|
-
var _b, settings, connectExpress, selectedLicense, brandName, licenseNumber, termAndConditionChecked,
|
|
910
|
+
var _b, settings, connectExpress, selectedLicense, brandName, licenseNumber, termAndConditionChecked, isKWCountry, isFL, _c, responseData, isLeadIdPassed, id, brandNameBody, payload, data;
|
|
686
911
|
var _d, _e;
|
|
687
912
|
return __generator(this, function (_f) {
|
|
688
913
|
switch (_f.label) {
|
|
689
914
|
case 0:
|
|
690
915
|
_b = thunkApi.getState(), settings = _b.settings, connectExpress = _b.connectExpress;
|
|
691
916
|
selectedLicense = formData.selectedLicense, brandName = formData.brandName, licenseNumber = formData.licenseNumber, termAndConditionChecked = formData.termAndConditionChecked;
|
|
692
|
-
|
|
917
|
+
isKWCountry = isKW(settings.data.businessCountry.iso2);
|
|
693
918
|
isFL = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.FL;
|
|
694
919
|
_c = connectExpress.data, responseData = _c.responseData, isLeadIdPassed = _c.isLeadIdPassed;
|
|
695
920
|
id = ((responseData === null || responseData === void 0 ? void 0 : responseData.leadData) || {}).id;
|
|
696
921
|
brandNameBody = {
|
|
697
922
|
name: {
|
|
698
923
|
en: brandName,
|
|
699
|
-
ar: brandName
|
|
700
|
-
zh: brandName
|
|
924
|
+
ar: brandName
|
|
701
925
|
}
|
|
702
926
|
};
|
|
703
927
|
payload = {
|
|
704
928
|
id: id || '',
|
|
705
929
|
brand: brandNameBody,
|
|
706
|
-
license_number:
|
|
930
|
+
license_number: isKWCountry && isFL ? '' : licenseNumber,
|
|
707
931
|
license_type: (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) ? (isFL ? LicenseType.FL : LicenseType.CR) : undefined,
|
|
708
932
|
business_type: selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type,
|
|
709
933
|
is_acknowledged: true,
|
|
710
934
|
terms_conditions_accepted: !isLeadIdPassed ? termAndConditionChecked : undefined,
|
|
711
935
|
step_name: CONNECT_EXPRESS_STEP_NAMES.UPDATE_LEAD_BRAND_BUSINESS,
|
|
712
|
-
encryption_contract: [
|
|
936
|
+
encryption_contract: []
|
|
713
937
|
};
|
|
714
938
|
return [4, API.leadService.updateLeadExpress(payload)];
|
|
715
939
|
case 1:
|
|
@@ -721,14 +945,72 @@ export var updateLeadBusinessDataAsync = createAsyncThunk('updateLeadBusinessDat
|
|
|
721
945
|
});
|
|
722
946
|
});
|
|
723
947
|
});
|
|
948
|
+
export var updateOperatorInfoAsync = createAsyncThunk('connectExpress/updateOperatorInfoAsync', function (_a, thunkApi) {
|
|
949
|
+
var brandInfo = _a.brandInfo, entityInfo = _a.entityInfo, merchantInfo = _a.merchantInfo;
|
|
950
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
951
|
+
var _b, connectExpress, settings, responseData, _c, postURL, redirectUrl, bi, authId, body, data, urlQueryStart;
|
|
952
|
+
var _d, _e, _f, _g;
|
|
953
|
+
return __generator(this, function (_h) {
|
|
954
|
+
switch (_h.label) {
|
|
955
|
+
case 0:
|
|
956
|
+
_b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
|
|
957
|
+
responseData = connectExpress.data.responseData;
|
|
958
|
+
_c = settings.data.appConfig, postURL = _c.postURL, redirectUrl = _c.redirectUrl;
|
|
959
|
+
bi = settings.data.deviceInfo.browser.browser_id;
|
|
960
|
+
authId = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.authData) === null || _d === void 0 ? void 0 : _d.auth) === null || _e === void 0 ? void 0 : _e.id;
|
|
961
|
+
body = {
|
|
962
|
+
post_url: postURL || '',
|
|
963
|
+
authentication_id: authId,
|
|
964
|
+
bi: bi,
|
|
965
|
+
brand_id: (brandInfo === null || brandInfo === void 0 ? void 0 : brandInfo.id) || '',
|
|
966
|
+
merchant_id: (merchantInfo === null || merchantInfo === void 0 ? void 0 : merchantInfo.id) || '',
|
|
967
|
+
entity_id: (entityInfo === null || entityInfo === void 0 ? void 0 : entityInfo.id) || ''
|
|
968
|
+
};
|
|
969
|
+
return [4, API.operatorService.updateOperator(body)];
|
|
970
|
+
case 1:
|
|
971
|
+
data = _h.sent();
|
|
972
|
+
(_g = (_f = settings.data.appConfig).onStepCompleted) === null || _g === void 0 ? void 0 : _g.call(_f, settings.data.activeScreen.name, data);
|
|
973
|
+
if (authId) {
|
|
974
|
+
if (settings.data.appConfig.mode === 'popup') {
|
|
975
|
+
settings.data.appConfig.onFlowCompleted({ auth_id: authId, bi: bi });
|
|
976
|
+
thunkApi.dispatch(handleOpen(false));
|
|
977
|
+
return [2];
|
|
978
|
+
}
|
|
979
|
+
if (redirectUrl) {
|
|
980
|
+
urlQueryStart = redirectUrl.includes('?') ? '&' : '?';
|
|
981
|
+
window.open("".concat(redirectUrl).concat(urlQueryStart, "authentication_id=").concat(authId, "&bi=").concat(bi), '_self');
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
return [2];
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
});
|
|
988
|
+
});
|
|
989
|
+
export var onCloseCompleteAsync = createAsyncThunk('connectExpress/onCloseCompleteAsync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
990
|
+
var connectExpress, _a, merchant, brand, entity;
|
|
991
|
+
var _b;
|
|
992
|
+
return __generator(this, function (_c) {
|
|
993
|
+
switch (_c.label) {
|
|
994
|
+
case 0:
|
|
995
|
+
connectExpress = thunkApi.getState().connectExpress;
|
|
996
|
+
_a = ((_b = connectExpress.data.responseData) === null || _b === void 0 ? void 0 : _b.boardData) || {}, merchant = _a.merchant, brand = _a.brand, entity = _a.entity;
|
|
997
|
+
return [4, thunkApi.dispatch(onCloseComplete({ merchantId: merchant === null || merchant === void 0 ? void 0 : merchant.id, brandId: brand === null || brand === void 0 ? void 0 : brand.id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
998
|
+
case 1:
|
|
999
|
+
_c.sent();
|
|
1000
|
+
return [2];
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
}); });
|
|
724
1004
|
var initialState = {
|
|
725
1005
|
error: null,
|
|
726
1006
|
loading: false,
|
|
727
1007
|
customLoading: false,
|
|
1008
|
+
merchantLoading: false,
|
|
1009
|
+
terminalLoading: false,
|
|
728
1010
|
data: {
|
|
729
1011
|
showBoard: true,
|
|
730
1012
|
isLeadIdPassed: false,
|
|
731
|
-
|
|
1013
|
+
isStartFromBusinessCountry: false,
|
|
732
1014
|
flowName: FlowsTypes.CONNECT_EXPRESS,
|
|
733
1015
|
mobileData: {
|
|
734
1016
|
countryCode: defaultCountry,
|
|
@@ -757,6 +1039,11 @@ var initialState = {
|
|
|
757
1039
|
brandName: '',
|
|
758
1040
|
licenseNumber: '',
|
|
759
1041
|
termAndConditionChecked: false
|
|
1042
|
+
},
|
|
1043
|
+
authenticationData: {
|
|
1044
|
+
brandInfo: undefined,
|
|
1045
|
+
entityInfo: undefined,
|
|
1046
|
+
merchantInfo: undefined
|
|
760
1047
|
}
|
|
761
1048
|
}
|
|
762
1049
|
};
|
|
@@ -770,6 +1057,9 @@ export var connectSlice = createSlice({
|
|
|
770
1057
|
setShowBoard: function (state, action) {
|
|
771
1058
|
state.data.showBoard = action.payload;
|
|
772
1059
|
},
|
|
1060
|
+
storeIsStartFromBusinessCountry: function (state, action) {
|
|
1061
|
+
state.data.isStartFromBusinessCountry = action.payload;
|
|
1062
|
+
},
|
|
773
1063
|
setIsLeadIdPassed: function (state, action) {
|
|
774
1064
|
state.data.isLeadIdPassed = action.payload;
|
|
775
1065
|
},
|
|
@@ -788,15 +1078,16 @@ export var connectSlice = createSlice({
|
|
|
788
1078
|
resetNIDScreen: function (state) {
|
|
789
1079
|
state.data.nidData = __assign(__assign({}, state.data.nidData), initialState.data.nidData);
|
|
790
1080
|
},
|
|
1081
|
+
setDefaultCountryCode: function (state, action) {
|
|
1082
|
+
state.data.mobileData.countryCode = action.payload;
|
|
1083
|
+
state.data.individualData.countryCode = action.payload;
|
|
1084
|
+
},
|
|
791
1085
|
resetCivilScreen: function (state) {
|
|
792
1086
|
state.data.civilIdData = __assign(__assign({}, state.data.civilIdData), initialState.data.civilIdData);
|
|
793
1087
|
},
|
|
794
1088
|
resetOTPValue: function (state) {
|
|
795
1089
|
state.data.otpData.otp = '';
|
|
796
1090
|
},
|
|
797
|
-
setPostUrl: function (state, action) {
|
|
798
|
-
state.data.postURL = action.payload;
|
|
799
|
-
},
|
|
800
1091
|
resetStore: function (state) {
|
|
801
1092
|
state.data = __assign(__assign({}, state.data), { responseData: undefined });
|
|
802
1093
|
},
|
|
@@ -940,7 +1231,7 @@ export var connectSlice = createSlice({
|
|
|
940
1231
|
var _a;
|
|
941
1232
|
state.loading = false;
|
|
942
1233
|
state.data.civilIdData = action.payload.formData;
|
|
943
|
-
state.data.otpData.authFor = AuthForType.
|
|
1234
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
944
1235
|
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) });
|
|
945
1236
|
})
|
|
946
1237
|
.addCase(createCivilIDAuthIdentityAsync.rejected, function (state, action) {
|
|
@@ -955,7 +1246,7 @@ export var connectSlice = createSlice({
|
|
|
955
1246
|
var _a;
|
|
956
1247
|
state.loading = false;
|
|
957
1248
|
state.data.nidData = action.payload.formData;
|
|
958
|
-
state.data.otpData.authFor = AuthForType.
|
|
1249
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
959
1250
|
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) });
|
|
960
1251
|
})
|
|
961
1252
|
.addCase(createNIDAuthIdentityAsync.rejected, function (state, action) {
|
|
@@ -968,7 +1259,7 @@ export var connectSlice = createSlice({
|
|
|
968
1259
|
.addCase(resendNIDAuthIdentityOTP.fulfilled, function (state, action) {
|
|
969
1260
|
var _a;
|
|
970
1261
|
state.data.nidData = action.payload.formData;
|
|
971
|
-
state.data.otpData.authFor = AuthForType.
|
|
1262
|
+
state.data.otpData.authFor = AuthForType.NATIONAL_ID_MISSED;
|
|
972
1263
|
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) });
|
|
973
1264
|
})
|
|
974
1265
|
.addCase(resendNIDAuthIdentityOTP.rejected, function (state, action) {
|
|
@@ -1000,14 +1291,28 @@ export var connectSlice = createSlice({
|
|
|
1000
1291
|
state.loading = false;
|
|
1001
1292
|
state.error = action.error.message;
|
|
1002
1293
|
})
|
|
1003
|
-
.addCase(
|
|
1294
|
+
.addCase(verifyPACIAsync.pending, function (state) {
|
|
1004
1295
|
state.loading = true;
|
|
1005
1296
|
state.error = null;
|
|
1006
1297
|
})
|
|
1007
|
-
.addCase(
|
|
1298
|
+
.addCase(verifyPACIAsync.fulfilled, function (state, action) {
|
|
1008
1299
|
var _a;
|
|
1009
1300
|
state.loading = false;
|
|
1010
1301
|
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) });
|
|
1302
|
+
})
|
|
1303
|
+
.addCase(verifyPACIAsync.rejected, function (state, action) {
|
|
1304
|
+
state.loading = false;
|
|
1305
|
+
state.error = action.error.message;
|
|
1306
|
+
})
|
|
1307
|
+
.addCase(verifyNIDOtpLeadIdentityAsync.pending, function (state) {
|
|
1308
|
+
state.loading = true;
|
|
1309
|
+
state.error = null;
|
|
1310
|
+
})
|
|
1311
|
+
.addCase(verifyNIDOtpLeadIdentityAsync.fulfilled, function (state, action) {
|
|
1312
|
+
var _a, _b, _c;
|
|
1313
|
+
state.loading = false;
|
|
1314
|
+
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1315
|
+
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 }) }) });
|
|
1011
1316
|
})
|
|
1012
1317
|
.addCase(verifyNIDOtpLeadIdentityAsync.rejected, function (state, action) {
|
|
1013
1318
|
state.loading = false;
|
|
@@ -1018,9 +1323,10 @@ export var connectSlice = createSlice({
|
|
|
1018
1323
|
state.error = null;
|
|
1019
1324
|
})
|
|
1020
1325
|
.addCase(verifyPaciOtpLeadIdentityAsync.fulfilled, function (state, action) {
|
|
1021
|
-
var _a;
|
|
1326
|
+
var _a, _b, _c;
|
|
1022
1327
|
state.loading = false;
|
|
1023
|
-
|
|
1328
|
+
var auth = (((_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).auth;
|
|
1329
|
+
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 }) }) });
|
|
1024
1330
|
})
|
|
1025
1331
|
.addCase(verifyPaciOtpLeadIdentityAsync.rejected, function (state, action) {
|
|
1026
1332
|
state.loading = false;
|
|
@@ -1073,6 +1379,24 @@ export var connectSlice = createSlice({
|
|
|
1073
1379
|
.addCase(retrieveEntityListAsync.rejected, function (state, action) {
|
|
1074
1380
|
state.loading = false;
|
|
1075
1381
|
state.error = action.error.message;
|
|
1382
|
+
})
|
|
1383
|
+
.addCase(retrieveAuthenticationListAsync.fulfilled, function (state, action) {
|
|
1384
|
+
state.error = null;
|
|
1385
|
+
state.loading = false;
|
|
1386
|
+
var _a = action.payload, brandList = _a.brandList, entityList = _a.entityList;
|
|
1387
|
+
if (brandList === null || brandList === void 0 ? void 0 : brandList.length)
|
|
1388
|
+
state.data.authenticationData.brandInfo = brandList[0];
|
|
1389
|
+
if (entityList === null || entityList === void 0 ? void 0 : entityList.length)
|
|
1390
|
+
state.data.authenticationData.entityInfo = entityList[0];
|
|
1391
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { authenticationData: { brandList: brandList, entityList: entityList } });
|
|
1392
|
+
})
|
|
1393
|
+
.addCase(retrieveAuthenticationListAsync.pending, function (state) {
|
|
1394
|
+
state.loading = true;
|
|
1395
|
+
state.error = null;
|
|
1396
|
+
})
|
|
1397
|
+
.addCase(retrieveAuthenticationListAsync.rejected, function (state, action) {
|
|
1398
|
+
state.loading = false;
|
|
1399
|
+
state.error = action.error.message;
|
|
1076
1400
|
})
|
|
1077
1401
|
.addCase(checkEmailAvailabilityAsync.fulfilled, function (state, action) {
|
|
1078
1402
|
var _a;
|
|
@@ -1103,10 +1427,12 @@ export var connectSlice = createSlice({
|
|
|
1103
1427
|
state.error = action.error.message;
|
|
1104
1428
|
})
|
|
1105
1429
|
.addCase(updateLeadIndividualAsync.fulfilled, function (state, action) {
|
|
1430
|
+
var _a, _b;
|
|
1106
1431
|
state.loading = false;
|
|
1107
1432
|
state.error = null;
|
|
1433
|
+
var licenseList = [OTHER_CR_LICENSE, OTHER_FL_LICENSE];
|
|
1108
1434
|
state.data.individualData = action.payload.formData;
|
|
1109
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), { individualData: action.payload.response });
|
|
1435
|
+
state.data.responseData = __assign(__assign(__assign({}, state.data.responseData), { individualData: action.payload.response }), (!((_b = (_a = state.data.responseData) === null || _a === void 0 ? void 0 : _a.licenseList) === null || _b === void 0 ? void 0 : _b.length) && { licenseList: licenseList }));
|
|
1110
1436
|
})
|
|
1111
1437
|
.addCase(updateLeadIndividualAsync.pending, function (state) {
|
|
1112
1438
|
state.loading = true;
|
|
@@ -1141,9 +1467,65 @@ export var connectSlice = createSlice({
|
|
|
1141
1467
|
.addCase(createAccountAsync.rejected, function (state, action) {
|
|
1142
1468
|
state.loading = false;
|
|
1143
1469
|
state.error = action.error.message;
|
|
1470
|
+
})
|
|
1471
|
+
.addCase(getMerchantListAsync.pending, function (state) {
|
|
1472
|
+
state.merchantLoading = true;
|
|
1473
|
+
state.error = null;
|
|
1474
|
+
})
|
|
1475
|
+
.addCase(getMerchantListAsync.fulfilled, function (state, action) {
|
|
1476
|
+
state.merchantLoading = false;
|
|
1477
|
+
state.error = null;
|
|
1478
|
+
var data = state.data.responseData;
|
|
1479
|
+
var merchantList = action.payload;
|
|
1480
|
+
if (merchantList === null || merchantList === void 0 ? void 0 : merchantList.length) {
|
|
1481
|
+
state.data.authenticationData.merchantInfo = merchantList[0];
|
|
1482
|
+
}
|
|
1483
|
+
state.data.responseData = __assign(__assign({}, data), { authenticationData: __assign(__assign({}, data === null || data === void 0 ? void 0 : data.authenticationData), { merchantList: merchantList }) });
|
|
1484
|
+
})
|
|
1485
|
+
.addCase(getMerchantListAsync.rejected, function (state, action) {
|
|
1486
|
+
state.merchantLoading = false;
|
|
1487
|
+
state.error = action.error.message;
|
|
1488
|
+
})
|
|
1489
|
+
.addCase(updateOperatorInfoAsync.pending, function (state) {
|
|
1490
|
+
state.loading = true;
|
|
1491
|
+
state.error = null;
|
|
1492
|
+
})
|
|
1493
|
+
.addCase(updateOperatorInfoAsync.fulfilled, function (state) {
|
|
1494
|
+
state.loading = false;
|
|
1495
|
+
state.error = null;
|
|
1496
|
+
state.data.responseData = __assign({}, state.data.responseData);
|
|
1497
|
+
})
|
|
1498
|
+
.addCase(updateOperatorInfoAsync.rejected, function (state, action) {
|
|
1499
|
+
state.loading = false;
|
|
1500
|
+
state.error = action.error.message;
|
|
1501
|
+
})
|
|
1502
|
+
.addCase(onCloseCompleteAsync.pending, function (state) {
|
|
1503
|
+
state.loading = true;
|
|
1504
|
+
state.error = null;
|
|
1505
|
+
})
|
|
1506
|
+
.addCase(onCloseCompleteAsync.fulfilled, function (state) {
|
|
1507
|
+
state.loading = false;
|
|
1508
|
+
state.error = null;
|
|
1509
|
+
state.data.responseData = __assign({}, state.data.responseData);
|
|
1510
|
+
})
|
|
1511
|
+
.addCase(onCloseCompleteAsync.rejected, function (state, action) {
|
|
1512
|
+
state.loading = false;
|
|
1513
|
+
state.error = action.error.message;
|
|
1514
|
+
})
|
|
1515
|
+
.addCase(updateBusinessCountryAsync.pending, function (state) {
|
|
1516
|
+
state.loading = true;
|
|
1517
|
+
state.error = null;
|
|
1518
|
+
})
|
|
1519
|
+
.addCase(updateBusinessCountryAsync.rejected, function (state, action) {
|
|
1520
|
+
state.loading = false;
|
|
1521
|
+
state.error = action.error.message;
|
|
1522
|
+
})
|
|
1523
|
+
.addCase(updateBusinessCountryAsync.fulfilled, function (state) {
|
|
1524
|
+
state.loading = false;
|
|
1525
|
+
state.error = null;
|
|
1144
1526
|
});
|
|
1145
1527
|
}
|
|
1146
1528
|
});
|
|
1147
|
-
export var clearError = (_a = connectSlice.actions, _a.clearError), stopLoader = _a.stopLoader, setIsLeadIdPassed = _a.setIsLeadIdPassed, resetMobileScreen = _a.resetMobileScreen, resetOTPValue = _a.resetOTPValue, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setError = _a.setError,
|
|
1529
|
+
export var clearError = (_a = connectSlice.actions, _a.clearError), stopLoader = _a.stopLoader, setIsLeadIdPassed = _a.setIsLeadIdPassed, resetMobileScreen = _a.resetMobileScreen, resetOTPValue = _a.resetOTPValue, resetNIDScreen = _a.resetNIDScreen, resetCivilScreen = _a.resetCivilScreen, resetStore = _a.resetStore, setError = _a.setError, setLeadId = _a.setLeadId, setShowBoard = _a.setShowBoard, resetIndividualScreen = _a.resetIndividualScreen, setDefaultCountryCode = _a.setDefaultCountryCode, storeIsStartFromBusinessCountry = _a.storeIsStartFromBusinessCountry;
|
|
1148
1530
|
export default connectSlice.reducer;
|
|
1149
1531
|
export var connectExpressSelector = function (state) { return state.connectExpress; };
|