@tap-payments/auth-jsconnect 2.4.27-test → 2.4.27
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 +191 -18
- package/build/@types/app.js +8 -0
- package/build/@types/config.d.ts +35 -0
- package/build/@types/config.js +1 -0
- package/build/@types/form.d.ts +36 -22
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/theme.d.ts +5 -1
- package/build/@types/theme.js +5 -0
- package/build/@types/user.d.ts +18 -1
- package/build/api/account.d.ts +5 -2
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +17 -11
- package/build/api/auth.js +10 -1
- package/build/api/availabilityServices.d.ts +4 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +2 -1
- package/build/api/country.js +8 -1
- package/build/api/data.d.ts +17 -10
- package/build/api/data.js +26 -2
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +32 -8
- package/build/api/entity.js +37 -1
- package/build/api/file.d.ts +1 -1
- package/build/api/index.d.ts +26 -4
- package/build/api/individual.d.ts +17 -6
- package/build/api/init.d.ts +2 -1
- package/build/api/lead.d.ts +18 -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 +35 -3
- package/build/app/settings.js +121 -43
- 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 +10 -3
- package/build/components/AnimationFlow/AnimationFlow.js +4 -4
- package/build/components/AnimationFlow/BottomSheet.d.ts +5 -2
- package/build/components/AnimationFlow/BottomSheet.js +28 -6
- package/build/components/AnimationFlow/Dialog.d.ts +10 -2
- package/build/components/AnimationFlow/Dialog.js +6 -6
- 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 +2 -1
- package/build/components/DatePicker/DatePicker.js +12 -7
- 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 +10 -7
- 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 +10 -0
- package/build/constants/api.js +20 -1
- package/build/constants/app.d.ts +23 -1
- package/build/constants/app.js +116 -16
- package/build/constants/assets.d.ts +2 -0
- package/build/constants/assets.js +2 -0
- package/build/constants/dummy.d.ts +43 -196
- package/build/constants/dummy.js +610 -6141
- package/build/constants/validation.d.ts +6 -2
- package/build/constants/validation.js +7 -3
- package/build/features/app/bank/bankStore.d.ts +93 -10
- package/build/features/app/bank/bankStore.js +88 -34
- package/build/features/app/board/boardStore.d.ts +69 -0
- package/build/features/app/board/boardStore.js +237 -0
- package/build/features/app/brand/brandStore.d.ts +159 -18
- package/build/features/app/brand/brandStore.js +269 -111
- package/build/features/app/business/businessStore.d.ts +173 -23
- package/build/features/app/business/businessStore.js +368 -252
- package/build/features/app/connect/connectStore.d.ts +166 -14
- package/build/features/app/connect/connectStore.js +279 -106
- package/build/features/app/connectExpress/connectExpressStore.d.ts +294 -25
- package/build/features/app/connectExpress/connectExpressStore.js +611 -114
- package/build/features/app/entity/entityStore.d.ts +98 -10
- package/build/features/app/entity/entityStore.js +172 -84
- package/build/features/app/individual/individualStore.d.ts +192 -25
- package/build/features/app/individual/individualStore.js +203 -137
- package/build/features/app/password/passwordStore.d.ts +114 -12
- package/build/features/app/password/passwordStore.js +121 -44
- 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 +86 -33
- package/build/features/bank/Bank.d.ts +2 -2
- package/build/features/bank/Bank.js +10 -5
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +3 -3
- package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/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 +10 -5
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -31
- 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 +2 -1
- 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 +15 -34
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -4
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +2 -14
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandName.js +7 -5
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +4 -4
- package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -6
- package/build/features/brand/screens/BrandInfo/validation.js +11 -10
- 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/brand/screens/BrandSegmentInfo/SegmentProfits.js +69 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +9 -0
- package/build/features/{connect/screens/Merchant/Segments.js → brand/screens/BrandSegmentInfo/SegmentTechs.js} +23 -25
- 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 +5 -2
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.js +16 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +14 -64
- package/build/features/business/screens/Activities/ActivitiesList.js +225 -94
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +7 -13
- package/build/features/business/screens/Activities/OperationStartDate.js +3 -3
- 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 +3 -3
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +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 +6 -6
- 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/Customers/CustomerLocations.d.ts +47 -33
- package/build/features/business/screens/Customers/CustomerLocations.js +38 -12
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/Customers.js +40 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +3 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +9 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +3 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +12 -12
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +18 -19
- package/build/features/business/screens/Customers/RefundPolicy.js +13 -13
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +4 -2
- package/build/features/business/screens/Customers/TransactionPolicy.js +8 -5
- package/build/features/business/screens/Customers/validation.d.ts +6 -6
- package/build/features/business/screens/Customers/validation.js +3 -8
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/DOB.js +2 -2
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.js +6 -2
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.js +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 +99 -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 +3 -8
- 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 +7 -3
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Individual.js +10 -4
- package/build/features/connect/screens/Individual/MobileNumber.js +6 -3
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Individual/validation.js +8 -3
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +4 -22
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +6 -3
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/Merchant.js +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 +10 -14
- 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 +21 -8
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/Mobile/validation.js +8 -3
- package/build/features/connect/screens/NID/DOB.d.ts +1 -2
- package/build/features/connect/screens/NID/DOB.js +3 -3
- 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/OperatorError/OperatorError.d.ts +5 -0
- package/build/features/connect/screens/OperatorError/OperatorError.js +9 -0
- package/build/features/connect/screens/OperatorError/index.d.ts +3 -0
- package/build/features/connect/screens/OperatorError/index.js +2 -0
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/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 +87 -19
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +14 -2
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +5 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.js +36 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.d.ts +2 -0
- package/build/features/connectExpress/screens/AccountCreatedLoader/index.js +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.js +74 -0
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthMerchant/MerchantList.js +64 -0
- package/build/features/connectExpress/screens/AuthMerchant/index.d.ts +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/index.js +2 -0
- package/build/features/connectExpress/screens/AuthMerchant/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/AuthMerchant/validation.js +4 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +101 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.js +48 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +133 -0
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.js +36 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +17 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +58 -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 +7 -2
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +3 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +6 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +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 +6 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +1 -1
- 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 +72 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +7 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +7 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +8 -3
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/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/IdentityVerifyPACI/VerifyPACI.js +2 -2
- 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 +15 -9
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/validation.js +16 -6
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NID/DOB.js +2 -2
- 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/NID/TAC.js +2 -2
- 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 +6 -2
- 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 +10 -5
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +10 -25
- package/build/features/entity/screens/EntityCapital/ActivityList.js +14 -12
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +6 -12
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +5 -9
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +6 -12
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +2 -2
- 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 +2 -3
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityName.js +13 -6
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +16 -31
- package/build/features/entity/screens/EntityName/EntityTypeList.js +12 -12
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/ExpiryDate.js +7 -8
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.js +7 -8
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LegalName.js +1 -13
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -11
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +4 -6
- package/build/features/entity/screens/EntityName/validation.d.ts +31 -3
- package/build/features/entity/screens/EntityName/validation.js +40 -11
- 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 +59 -2
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +10 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +5 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +91 -43
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +3 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +2 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +3 -3
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualList/validation.js +8 -3
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +2 -10
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +2 -10
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -2
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +4 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +2 -10
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +2 -10
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +72 -63
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +7 -4
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +2 -1
- package/build/features/individual/screens/IndividualPhoneInfo/validation.js +8 -3
- 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 +24 -9
- 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 +14 -30
- package/build/features/shared/Address/InputSelect.d.ts +14 -30
- 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/Button.js +8 -4
- 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 +15 -12
- package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
- package/build/features/shared/Button/IndividualActionButtons.js +1 -1
- 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 +4 -1
- package/build/features/shared/DataLoading/DataLoading.js +2 -2
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +1 -2
- package/build/features/shared/Dot/Dot.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/Footer.js +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 +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +3 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +9 -7
- 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/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/SignIn.js +1 -1
- 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/Mobile/MobileNumber.js +6 -3
- package/build/features/signIn/screens/Mobile/validation.js +8 -3
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.js +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 +10 -5
- 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 +2 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/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 +15 -16
- 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 +4 -2
- package/build/utils/array.js +74 -3
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +10 -0
- package/build/utils/device.d.ts +2 -0
- package/build/utils/device.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/build/utils/validation.d.ts +2 -0
- package/build/utils/validation.js +6 -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]) {
|
|
@@ -58,114 +58,125 @@ var _a;
|
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
59
|
import API from '../../../api';
|
|
60
60
|
import { BusinessType, FlowsTypes, DocumentPurpose, LicenseType } from '../../../@types';
|
|
61
|
-
import { BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_ENTITY_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
|
|
62
|
-
import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense } from '../../../utils';
|
|
63
|
-
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
61
|
+
import { BUSINESS_STEP_NAMES, EXPECTED_SALES_LIST, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_ENTITY_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
|
|
62
|
+
import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense, isOtherThanKWOrSA, hasNoneEditableValue } from '../../../utils';
|
|
63
|
+
import { handleNextScreenStep, handlePublicKey, handleSetCountryByIso2 } from '../../../app/settings';
|
|
64
64
|
export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
|
-
var payload, data, countryIso2, boardData, brandData, leadData,
|
|
66
|
-
var
|
|
67
|
-
return __generator(this, function (
|
|
68
|
-
switch (
|
|
65
|
+
var settings, payload, data, publicKey, countryIso2, boardData, brandData, currencyData, isicActivityList, leadData, _a, steps, brand, board_id, business_id, entity, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, list, list;
|
|
66
|
+
var _b, _c;
|
|
67
|
+
return __generator(this, function (_d) {
|
|
68
|
+
switch (_d.label) {
|
|
69
69
|
case 0:
|
|
70
|
+
settings = thunkApi.getState().settings;
|
|
70
71
|
payload = {
|
|
71
72
|
service_name: 'tap_email',
|
|
72
73
|
verify_token: token
|
|
73
74
|
};
|
|
74
75
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
75
76
|
case 1:
|
|
76
|
-
data = (
|
|
77
|
-
if ((
|
|
77
|
+
data = (_d.sent()).data;
|
|
78
|
+
if ((_b = data.errors) === null || _b === void 0 ? void 0 : _b.length)
|
|
78
79
|
throw new Error(data.errors[0].description);
|
|
79
80
|
if (data.mw_error)
|
|
80
81
|
throw new Error(data.mw_error);
|
|
82
|
+
publicKey = (_c = data === null || data === void 0 ? void 0 : data.config) === null || _c === void 0 ? void 0 : _c.public_key;
|
|
83
|
+
if (publicKey) {
|
|
84
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
85
|
+
}
|
|
81
86
|
countryIso2 = data === null || data === void 0 ? void 0 : data.country_code;
|
|
82
87
|
if (countryIso2)
|
|
83
88
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
84
|
-
if (!(data.step_name !== BUSINESS_STEP_NAMES.PHONE_AUTH)) return [3,
|
|
89
|
+
if (!(data.step_name !== BUSINESS_STEP_NAMES.PHONE_AUTH)) return [3, 21];
|
|
85
90
|
boardData = undefined;
|
|
86
|
-
brandData = undefined;
|
|
91
|
+
brandData = void 0, currencyData = undefined, isicActivityList = undefined;
|
|
87
92
|
return [4, API.leadService.retrieveLead(data === null || data === void 0 ? void 0 : data.id)];
|
|
88
93
|
case 2:
|
|
89
|
-
leadData = (
|
|
94
|
+
leadData = (_d.sent()).data;
|
|
90
95
|
countryIso2 = leadData === null || leadData === void 0 ? void 0 : leadData.country_code;
|
|
91
96
|
if (!countryIso2)
|
|
92
97
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
93
98
|
if (data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH && isKW(countryIso2)) {
|
|
94
99
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_CIVIL_ID_STEP'));
|
|
95
100
|
}
|
|
96
|
-
if (data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH &&
|
|
101
|
+
if (data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH && (isSA(countryIso2) || isOtherThanKWOrSA(countryIso2))) {
|
|
97
102
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
|
|
98
103
|
}
|
|
99
|
-
if (!(data.step_name === BUSINESS_STEP_NAMES.BUSINESS_INFO)) return [3,
|
|
100
|
-
|
|
104
|
+
if (!(data.step_name === BUSINESS_STEP_NAMES.BUSINESS_INFO)) return [3, 20];
|
|
105
|
+
_a = leadData || {}, steps = _a.steps, brand = _a.brand, board_id = _a.board_id, business_id = _a.business_id, entity = _a.entity;
|
|
101
106
|
brandID = brand === null || brand === void 0 ? void 0 : brand.id;
|
|
102
107
|
hasBusinessCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_SUCCESS);
|
|
103
108
|
hasBusinessCRInfoCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CR_INFO) && hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_INFO_CONFIRM);
|
|
104
109
|
hasBusinessCRActivitiesCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CR_ACTIVITIES);
|
|
105
110
|
hasBusinessCustomersCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CUSTOMERS);
|
|
106
|
-
if (!
|
|
107
|
-
return [
|
|
111
|
+
if (!hasBusinessCompleted) return [3, 6];
|
|
112
|
+
if (!board_id) return [3, 5];
|
|
113
|
+
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
108
114
|
case 3:
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
_b.label = 4;
|
|
115
|
+
boardData = _d.sent();
|
|
116
|
+
return [4, thunkApi.dispatch(retrieveBoardDetails(board_id))];
|
|
112
117
|
case 4:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
118
|
+
_d.sent();
|
|
119
|
+
_d.label = 5;
|
|
116
120
|
case 5:
|
|
117
|
-
|
|
118
|
-
return [
|
|
121
|
+
thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
122
|
+
return [3, 20];
|
|
119
123
|
case 6:
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
if (!(data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH)) return [3, 7];
|
|
125
|
+
thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP'));
|
|
126
|
+
return [3, 20];
|
|
122
127
|
case 7:
|
|
123
|
-
|
|
124
|
-
|
|
128
|
+
if (!hasBusinessCustomersCompleted) return [3, 8];
|
|
129
|
+
thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP'));
|
|
130
|
+
return [3, 20];
|
|
125
131
|
case 8:
|
|
126
|
-
if (!
|
|
127
|
-
|
|
128
|
-
return [3, 19];
|
|
132
|
+
if (!hasBusinessCRActivitiesCompleted) return [3, 13];
|
|
133
|
+
return [4, API.countryService.getCurrency(settings.data.businessCountry.iso2)];
|
|
129
134
|
case 9:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return [3, 19];
|
|
135
|
+
currencyData = _d.sent();
|
|
136
|
+
return [4, API.dataService.getActivitiesIsIc()];
|
|
133
137
|
case 10:
|
|
134
|
-
|
|
138
|
+
list = (_d.sent()).list;
|
|
139
|
+
isicActivityList = list || [];
|
|
135
140
|
return [4, thunkApi.dispatch(retrieveDataList())];
|
|
136
141
|
case 11:
|
|
137
|
-
|
|
142
|
+
_d.sent();
|
|
138
143
|
return [4, API.brandService.retrieveBrand(brandID)];
|
|
139
144
|
case 12:
|
|
140
|
-
brandData =
|
|
145
|
+
brandData = _d.sent();
|
|
141
146
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP'));
|
|
142
|
-
return [3,
|
|
147
|
+
return [3, 20];
|
|
143
148
|
case 13:
|
|
144
|
-
if (!hasBusinessCRInfoCompleted) return [3,
|
|
145
|
-
return [4, API.
|
|
149
|
+
if (!hasBusinessCRInfoCompleted) return [3, 16];
|
|
150
|
+
return [4, API.dataService.getActivitiesIsIc()];
|
|
146
151
|
case 14:
|
|
147
|
-
|
|
152
|
+
list = (_d.sent()).list;
|
|
153
|
+
isicActivityList = list || [];
|
|
154
|
+
return [4, API.brandService.retrieveBrand(brandID)];
|
|
155
|
+
case 15:
|
|
156
|
+
brandData = _d.sent();
|
|
148
157
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP'));
|
|
149
|
-
return [3,
|
|
150
|
-
case
|
|
151
|
-
case 16:
|
|
152
|
-
_b.sent();
|
|
153
|
-
if (!isSA(countryIso2)) return [3, 18];
|
|
154
|
-
return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
|
|
158
|
+
return [3, 20];
|
|
159
|
+
case 16: return [4, thunkApi.dispatch(retrieveAllEntityList({ businessId: business_id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
155
160
|
case 17:
|
|
156
|
-
|
|
157
|
-
|
|
161
|
+
_d.sent();
|
|
162
|
+
if (!isSA(countryIso2)) return [3, 19];
|
|
163
|
+
return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
|
|
158
164
|
case 18:
|
|
165
|
+
_d.sent();
|
|
166
|
+
_d.label = 19;
|
|
167
|
+
case 19:
|
|
159
168
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP'));
|
|
160
|
-
|
|
161
|
-
case
|
|
169
|
+
_d.label = 20;
|
|
170
|
+
case 20: return [2, {
|
|
162
171
|
data: data,
|
|
172
|
+
isicActivityList: isicActivityList,
|
|
163
173
|
leadData: __assign(__assign({}, leadData), { flows: (boardData === null || boardData === void 0 ? void 0 : boardData.info) || [] }),
|
|
164
174
|
token: token,
|
|
165
175
|
brandData: brandData === null || brandData === void 0 ? void 0 : brandData.brand,
|
|
166
|
-
boardId: leadData === null || leadData === void 0 ? void 0 : leadData.board_id
|
|
176
|
+
boardId: leadData === null || leadData === void 0 ? void 0 : leadData.board_id,
|
|
177
|
+
currencyData: currencyData
|
|
167
178
|
}];
|
|
168
|
-
case
|
|
179
|
+
case 21: return [2, { data: data, isRequireOTP: true, token: token }];
|
|
169
180
|
}
|
|
170
181
|
});
|
|
171
182
|
}); });
|
|
@@ -187,10 +198,10 @@ export var resendOTP = createAsyncThunk('resendOTPBusiness', function (params, t
|
|
|
187
198
|
});
|
|
188
199
|
}); });
|
|
189
200
|
export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
-
var _a, business, settings, isNID, responseBody, stepName, payload, data, brandData, leadData, brand, country_code, steps, board_id, business_id, entity, brandID, countryIso2, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, isIdentityAuthStep,
|
|
191
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
|
192
|
-
return __generator(this, function (
|
|
193
|
-
switch (
|
|
201
|
+
var _a, business, settings, isNID, responseBody, stepName, payload, data, publicKey, brandData, isicActivityList, currencyData, leadData, brand, country_code, steps, board_id, business_id, entity, brandID, countryIso2, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, isIdentityAuthStep, boardResponse, list, list;
|
|
202
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
203
|
+
return __generator(this, function (_k) {
|
|
204
|
+
switch (_k.label) {
|
|
194
205
|
case 0:
|
|
195
206
|
_a = thunkApi.getState(), business = _a.business, settings = _a.settings;
|
|
196
207
|
isNID = business.data.otpData.isNID;
|
|
@@ -205,20 +216,24 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
205
216
|
};
|
|
206
217
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
207
218
|
case 1:
|
|
208
|
-
data = (
|
|
219
|
+
data = (_k.sent()).data;
|
|
209
220
|
if ((_f = data.errors) === null || _f === void 0 ? void 0 : _f.length)
|
|
210
221
|
throw new Error(data.errors[0].description);
|
|
211
|
-
|
|
222
|
+
publicKey = (_g = data === null || data === void 0 ? void 0 : data.config) === null || _g === void 0 ? void 0 : _g.public_key;
|
|
223
|
+
if (publicKey) {
|
|
224
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
225
|
+
}
|
|
226
|
+
currencyData = undefined;
|
|
212
227
|
return [4, API.leadService.retrieveLead(data === null || data === void 0 ? void 0 : data.id)];
|
|
213
228
|
case 2:
|
|
214
|
-
leadData = (
|
|
229
|
+
leadData = (_k.sent()).data;
|
|
215
230
|
thunkApi.dispatch(updateStepName(stepName));
|
|
216
231
|
brand = leadData.brand, country_code = leadData.country_code, steps = leadData.steps, board_id = leadData.board_id, business_id = leadData.business_id, entity = leadData.entity;
|
|
217
232
|
brandID = brand === null || brand === void 0 ? void 0 : brand.id;
|
|
218
233
|
countryIso2 = country_code;
|
|
219
234
|
if (countryIso2)
|
|
220
235
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
221
|
-
(
|
|
236
|
+
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, { otp: params.otp });
|
|
222
237
|
hasBusinessCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_SUCCESS);
|
|
223
238
|
hasBusinessCRInfoCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CR_INFO) && hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_INFO_CONFIRM);
|
|
224
239
|
hasBusinessCRActivitiesCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_CR_ACTIVITIES);
|
|
@@ -227,73 +242,76 @@ export var verifyLeadOTP = createAsyncThunk('verifyLeadOTP', function (params, t
|
|
|
227
242
|
if (!(!isIdentityAuthStep && !hasBusinessCRInfoCompleted)) return [3, 4];
|
|
228
243
|
return [4, thunkApi.dispatch(retrieveAllEntityList({ businessId: business_id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
229
244
|
case 3:
|
|
230
|
-
|
|
231
|
-
|
|
245
|
+
_k.sent();
|
|
246
|
+
_k.label = 4;
|
|
232
247
|
case 4:
|
|
233
248
|
if (!(isSA(countryIso2) && !isIdentityAuthStep && !hasBusinessCRInfoCompleted)) return [3, 6];
|
|
234
249
|
return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
|
|
235
250
|
case 5:
|
|
236
|
-
|
|
237
|
-
|
|
251
|
+
_k.sent();
|
|
252
|
+
_k.label = 6;
|
|
238
253
|
case 6:
|
|
239
|
-
|
|
240
|
-
if (!(!entity_activities && (hasBusinessCRInfoCompleted || hasBusinessCRActivitiesCompleted) && !hasBusinessCompleted)) return [3, 8];
|
|
241
|
-
return [4, API.dataService.getActivities()];
|
|
242
|
-
case 7:
|
|
243
|
-
activityList = (_j.sent()).list;
|
|
244
|
-
leadData = __assign(__assign({}, leadData), { entity_activities: activityList });
|
|
245
|
-
_j.label = 8;
|
|
246
|
-
case 8:
|
|
247
|
-
if (!isNID) return [3, 9];
|
|
254
|
+
if (!isNID) return [3, 7];
|
|
248
255
|
thunkApi.dispatch(handleNextScreenStep());
|
|
249
|
-
return [3,
|
|
250
|
-
case
|
|
251
|
-
if (!(isIdentityAuthStep && isKW(countryIso2))) return [3,
|
|
256
|
+
return [3, 23];
|
|
257
|
+
case 7:
|
|
258
|
+
if (!(isIdentityAuthStep && isKW(countryIso2))) return [3, 8];
|
|
252
259
|
thunkApi.dispatch(handleNextScreenStep('BUSINESS_CIVIL_ID_STEP'));
|
|
253
|
-
return [3,
|
|
254
|
-
case
|
|
255
|
-
if (!hasBusinessCompleted) return [3,
|
|
256
|
-
if (!board_id) return [3,
|
|
260
|
+
return [3, 23];
|
|
261
|
+
case 8:
|
|
262
|
+
if (!hasBusinessCompleted) return [3, 12];
|
|
263
|
+
if (!board_id) return [3, 11];
|
|
257
264
|
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
258
|
-
case
|
|
259
|
-
boardResponse =
|
|
265
|
+
case 9:
|
|
266
|
+
boardResponse = _k.sent();
|
|
260
267
|
leadData = __assign(__assign({}, leadData), { flows: (boardResponse === null || boardResponse === void 0 ? void 0 : boardResponse.info) || [] });
|
|
261
268
|
return [4, thunkApi.dispatch(retrieveBoardDetails(board_id))];
|
|
269
|
+
case 10:
|
|
270
|
+
_k.sent();
|
|
271
|
+
_k.label = 11;
|
|
272
|
+
case 11:
|
|
273
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_FOUR_FLOWS_BUTTONS_STEP')); });
|
|
274
|
+
return [3, 23];
|
|
262
275
|
case 12:
|
|
263
|
-
|
|
264
|
-
|
|
276
|
+
if (!(data.step_name === BUSINESS_STEP_NAMES.IDENTITY_AUTH)) return [3, 13];
|
|
277
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_IDBOD_STEP')); });
|
|
278
|
+
return [3, 23];
|
|
265
279
|
case 13:
|
|
266
|
-
|
|
267
|
-
return
|
|
280
|
+
if (!hasBusinessCustomersCompleted) return [3, 14];
|
|
281
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_SUCCESS_STEP')); });
|
|
282
|
+
return [3, 23];
|
|
268
283
|
case 14:
|
|
269
|
-
if (!
|
|
270
|
-
|
|
271
|
-
return [3, 22];
|
|
284
|
+
if (!hasBusinessCRActivitiesCompleted) return [3, 19];
|
|
285
|
+
return [4, API.countryService.getCurrency(settings.data.businessCountry.iso2)];
|
|
272
286
|
case 15:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
return [3, 22];
|
|
287
|
+
currencyData = _k.sent();
|
|
288
|
+
return [4, API.dataService.getActivitiesIsIc()];
|
|
276
289
|
case 16:
|
|
277
|
-
|
|
290
|
+
list = (_k.sent()).list;
|
|
291
|
+
isicActivityList = list || [];
|
|
278
292
|
return [4, thunkApi.dispatch(retrieveDataList())];
|
|
279
293
|
case 17:
|
|
280
|
-
|
|
294
|
+
_k.sent();
|
|
281
295
|
return [4, API.brandService.retrieveBrand(brandID)];
|
|
282
296
|
case 18:
|
|
283
|
-
brandData =
|
|
284
|
-
thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP'));
|
|
285
|
-
return [3,
|
|
297
|
+
brandData = _k.sent();
|
|
298
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_CUSTOMERS_STEP')); });
|
|
299
|
+
return [3, 23];
|
|
286
300
|
case 19:
|
|
287
|
-
if (!hasBusinessCRInfoCompleted) return [3,
|
|
288
|
-
return [4, API.
|
|
301
|
+
if (!hasBusinessCRInfoCompleted) return [3, 22];
|
|
302
|
+
return [4, API.dataService.getActivitiesIsIc()];
|
|
289
303
|
case 20:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
return [
|
|
304
|
+
list = (_k.sent()).list;
|
|
305
|
+
isicActivityList = list || [];
|
|
306
|
+
return [4, API.brandService.retrieveBrand(brandID)];
|
|
293
307
|
case 21:
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
308
|
+
brandData = _k.sent();
|
|
309
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_ACTIVITIES_STEP')); });
|
|
310
|
+
return [3, 23];
|
|
311
|
+
case 22:
|
|
312
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep('BUSINESS_BUSINESS_TYPE_STEP')); });
|
|
313
|
+
_k.label = 23;
|
|
314
|
+
case 23: return [2, { data: data, isicActivityList: isicActivityList, formData: __assign(__assign({}, params), { isNID: isNID }), brand: brandData === null || brandData === void 0 ? void 0 : brandData.brand, leadData: leadData, currencyData: currencyData }];
|
|
297
315
|
}
|
|
298
316
|
});
|
|
299
317
|
}); });
|
|
@@ -371,7 +389,7 @@ export var createCivilIdAuth = createAsyncThunk('createCivilIdAuth', function (p
|
|
|
371
389
|
});
|
|
372
390
|
}); });
|
|
373
391
|
export var updateLeadIdentity = createAsyncThunk('updateLeadIdentity', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
374
|
-
var _a, settings, business, identification_id_type, stepName, lead_id, requestBody, data;
|
|
392
|
+
var _a, settings, business, identification_id_type, stepName, lead_id, countryIso2, requestBody, data, business_id, entity, screen;
|
|
375
393
|
var _b, _c;
|
|
376
394
|
return __generator(this, function (_d) {
|
|
377
395
|
switch (_d.label) {
|
|
@@ -380,11 +398,15 @@ export var updateLeadIdentity = createAsyncThunk('updateLeadIdentity', function
|
|
|
380
398
|
identification_id_type = params.nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
381
399
|
stepName = BUSINESS_STEP_NAMES.IDENTITY_AUTH;
|
|
382
400
|
lead_id = (business.data.verify.responseBody || {}).lead_id;
|
|
401
|
+
countryIso2 = settings.data.businessCountry.iso2;
|
|
402
|
+
if (isOtherThanKWOrSA(countryIso2)) {
|
|
403
|
+
identification_id_type = IDENTIFICATION_TYPE.NID;
|
|
404
|
+
}
|
|
383
405
|
requestBody = {
|
|
384
406
|
id: lead_id || '',
|
|
385
407
|
identification: {
|
|
386
408
|
id: params.nid,
|
|
387
|
-
issued_country_code:
|
|
409
|
+
issued_country_code: countryIso2,
|
|
388
410
|
type: identification_id_type
|
|
389
411
|
},
|
|
390
412
|
date_of_birth: params.dob,
|
|
@@ -394,7 +416,20 @@ export var updateLeadIdentity = createAsyncThunk('updateLeadIdentity', function
|
|
|
394
416
|
return [4, API.leadService.updateLead(requestBody)];
|
|
395
417
|
case 1:
|
|
396
418
|
data = _d.sent();
|
|
397
|
-
|
|
419
|
+
business_id = data.business_id, entity = data.entity;
|
|
420
|
+
screen = 'BUSINESS_OTP_STEP';
|
|
421
|
+
if (!isOtherThanKWOrSA(countryIso2)) return [3, 4];
|
|
422
|
+
screen = 'BUSINESS_BUSINESS_TYPE_STEP';
|
|
423
|
+
return [4, thunkApi.dispatch(retrieveAllEntityList({ businessId: business_id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
424
|
+
case 2:
|
|
425
|
+
_d.sent();
|
|
426
|
+
if (!isSA(countryIso2)) return [3, 4];
|
|
427
|
+
return [4, thunkApi.dispatch(retrieveEntityList({ leadId: data === null || data === void 0 ? void 0 : data.id }))];
|
|
428
|
+
case 3:
|
|
429
|
+
_d.sent();
|
|
430
|
+
_d.label = 4;
|
|
431
|
+
case 4:
|
|
432
|
+
thunkApi.dispatch(handleNextScreenStep(screen));
|
|
398
433
|
(_c = (_b = settings.data.appConfig).onStepCompleted) === null || _c === void 0 ? void 0 : _c.call(_b, settings.data.activeScreen.name, requestBody);
|
|
399
434
|
return [2, { data: data, formData: __assign(__assign({}, params), { type: identification_id_type }) }];
|
|
400
435
|
}
|
|
@@ -466,37 +501,29 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveBoardDetails', funct
|
|
|
466
501
|
});
|
|
467
502
|
}); });
|
|
468
503
|
export var updateLeadBusinessType = createAsyncThunk('updateLeadBusinessType', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
469
|
-
var _a, settings, business,
|
|
470
|
-
var _d, _e;
|
|
471
|
-
return __generator(this, function (
|
|
472
|
-
switch (
|
|
504
|
+
var _a, settings, business, isKWCountry, selectedLicense, licenseNumber, entityLegalName, certificateId, articleId, selectedEntityLicense, isFL, _b, lead_id, brand, stepName, payload, data, accountBody, accountData, brandData, data_1, brandRes, _c, message, error, list, documentData, entityData, entityId, documentBody, payload_1;
|
|
505
|
+
var _d, _e, _f;
|
|
506
|
+
return __generator(this, function (_g) {
|
|
507
|
+
switch (_g.label) {
|
|
473
508
|
case 0:
|
|
474
509
|
_a = thunkApi.getState(), settings = _a.settings, business = _a.business;
|
|
475
|
-
|
|
510
|
+
isKWCountry = isKW(settings.data.businessCountry.iso2);
|
|
476
511
|
selectedLicense = params.selectedLicense, licenseNumber = params.licenseNumber, entityLegalName = params.entityLegalName, certificateId = params.certificateId, articleId = params.articleId, selectedEntityLicense = params.selectedEntityLicense;
|
|
477
512
|
isFL = (selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === BusinessType.FL;
|
|
478
513
|
_b = business.data.verify.responseBody || {}, lead_id = _b.lead_id, brand = _b.brand;
|
|
479
514
|
stepName = 'BUSINESS_ACTIVITIES_STEP';
|
|
480
515
|
payload = __assign(__assign(__assign(__assign({ id: lead_id || '', entity: {
|
|
481
|
-
id: (selectedEntityLicense === null || selectedEntityLicense === void 0 ? void 0 : selectedEntityLicense.id) && (
|
|
516
|
+
id: (selectedEntityLicense === null || selectedEntityLicense === void 0 ? void 0 : selectedEntityLicense.id) && (isKWCountry ? !isFL : true) ? selectedEntityLicense === null || selectedEntityLicense === void 0 ? void 0 : selectedEntityLicense.id : ''
|
|
482
517
|
} }, (!(selectedEntityLicense === null || selectedEntityLicense === void 0 ? void 0 : selectedEntityLicense.id) && {
|
|
483
|
-
license_number:
|
|
518
|
+
license_number: isKWCountry && isFL ? '' : licenseNumber,
|
|
484
519
|
license_type: isFL ? LicenseType.FL : LicenseType.CR,
|
|
485
520
|
business_type: selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type
|
|
486
|
-
})), { step_name: BUSINESS_STEP_NAMES.BUSINESS_CR_INFO }), (
|
|
521
|
+
})), { step_name: BUSINESS_STEP_NAMES.BUSINESS_CR_INFO }), (isKWCountry && {
|
|
487
522
|
business_name: isFL ? undefined : { ar: entityLegalName, en: entityLegalName }
|
|
488
523
|
})), { encryption_contract: ['license_number', 'business_type', 'license_type'] });
|
|
489
524
|
return [4, API.leadService.updateLead(payload)];
|
|
490
525
|
case 1:
|
|
491
|
-
data =
|
|
492
|
-
entity_activities = data.entity_activities;
|
|
493
|
-
if (!!entity_activities) return [3, 3];
|
|
494
|
-
return [4, API.dataService.getActivities()];
|
|
495
|
-
case 2:
|
|
496
|
-
list = (_f.sent()).list;
|
|
497
|
-
data.entity_activities = list;
|
|
498
|
-
_f.label = 3;
|
|
499
|
-
case 3:
|
|
526
|
+
data = _g.sent();
|
|
500
527
|
accountBody = {
|
|
501
528
|
lead_id: lead_id,
|
|
502
529
|
notify: {
|
|
@@ -508,30 +535,43 @@ export var updateLeadBusinessType = createAsyncThunk('updateLeadBusinessType', f
|
|
|
508
535
|
step_name: BUSINESS_STEP_NAMES.BUSINESS_INFO_CONFIRM
|
|
509
536
|
};
|
|
510
537
|
brandData = undefined;
|
|
511
|
-
|
|
512
|
-
case
|
|
513
|
-
|
|
538
|
+
_g.label = 2;
|
|
539
|
+
case 2:
|
|
540
|
+
_g.trys.push([2, 7, , 8]);
|
|
514
541
|
return [4, API.accountService.createAccount(accountBody)];
|
|
542
|
+
case 3:
|
|
543
|
+
accountData = _g.sent();
|
|
544
|
+
if (!!(accountData === null || accountData === void 0 ? void 0 : accountData.entity_id)) return [3, 5];
|
|
545
|
+
return [4, API.leadService.retrieveLead(lead_id)];
|
|
546
|
+
case 4:
|
|
547
|
+
data_1 = (_g.sent()).data;
|
|
548
|
+
if (!((_d = data_1 === null || data_1 === void 0 ? void 0 : data_1.entity) === null || _d === void 0 ? void 0 : _d.id))
|
|
549
|
+
throw new Error('Internal server error');
|
|
550
|
+
accountData = __assign(__assign({}, accountData), { entity_id: data_1.entity.id });
|
|
551
|
+
_g.label = 5;
|
|
515
552
|
case 5:
|
|
516
|
-
|
|
517
|
-
return [
|
|
553
|
+
thunkApi.dispatch(updateStepName(BUSINESS_STEP_NAMES.BUSINESS_INFO_CONFIRM));
|
|
554
|
+
return [4, API.brandService.retrieveBrand(brand === null || brand === void 0 ? void 0 : brand.id)];
|
|
518
555
|
case 6:
|
|
519
|
-
|
|
556
|
+
brandRes = (_g.sent()).brand;
|
|
557
|
+
brandData = brandRes;
|
|
558
|
+
return [3, 8];
|
|
559
|
+
case 7:
|
|
560
|
+
_c = _g.sent();
|
|
520
561
|
message = _c.message;
|
|
521
562
|
error = message;
|
|
522
|
-
if (
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
case
|
|
530
|
-
|
|
531
|
-
case 10:
|
|
563
|
+
if ((error === null || error === void 0 ? void 0 : error.toLowerCase()) === 'entity with license already exist') {
|
|
564
|
+
stepName = 'BUSINESS_VERIFY_BRAND_INFO';
|
|
565
|
+
}
|
|
566
|
+
else
|
|
567
|
+
throw new Error(error);
|
|
568
|
+
return [3, 8];
|
|
569
|
+
case 8: return [4, API.dataService.getActivitiesIsIc()];
|
|
570
|
+
case 9:
|
|
571
|
+
list = (_g.sent()).list;
|
|
532
572
|
entityData = undefined;
|
|
533
573
|
entityId = accountData === null || accountData === void 0 ? void 0 : accountData.entity_id;
|
|
534
|
-
if (!((certificateId || []).length > 0)) return [3,
|
|
574
|
+
if (!((certificateId || []).length > 0)) return [3, 11];
|
|
535
575
|
documentBody = {
|
|
536
576
|
entity_id: entityId || '',
|
|
537
577
|
documents: [
|
|
@@ -542,59 +582,96 @@ export var updateLeadBusinessType = createAsyncThunk('updateLeadBusinessType', f
|
|
|
542
582
|
]
|
|
543
583
|
};
|
|
544
584
|
return [4, API.documentService.updateDocumentInfo(documentBody)];
|
|
585
|
+
case 10:
|
|
586
|
+
documentData = _g.sent();
|
|
587
|
+
_g.label = 11;
|
|
545
588
|
case 11:
|
|
546
|
-
|
|
547
|
-
_f.label = 12;
|
|
548
|
-
case 12:
|
|
549
|
-
if (!(articleId && entityId)) return [3, 14];
|
|
589
|
+
if (!(articleId && entityId)) return [3, 13];
|
|
550
590
|
payload_1 = {
|
|
551
591
|
id: (accountData === null || accountData === void 0 ? void 0 : accountData.entity_id) || '',
|
|
552
592
|
AOA_file_id: articleId
|
|
553
593
|
};
|
|
554
594
|
return [4, API.entityService.updateEntity(payload_1)];
|
|
595
|
+
case 12:
|
|
596
|
+
entityData = _g.sent();
|
|
597
|
+
_g.label = 13;
|
|
555
598
|
case 13:
|
|
556
|
-
|
|
557
|
-
_f
|
|
558
|
-
|
|
559
|
-
thunkApi.dispatch(handleNextScreenStep(stepName));
|
|
560
|
-
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, params);
|
|
561
|
-
return [2, { data: __assign(__assign({}, data), { brand: brandData }), formData: params, accountData: accountData, documentData: documentData, entityData: entityData }];
|
|
599
|
+
sleep(50).then(function () { return thunkApi.dispatch(handleNextScreenStep(stepName)); });
|
|
600
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
|
|
601
|
+
return [2, { data: __assign(__assign({}, data), { brand: brandData }), formData: params, accountData: accountData, documentData: documentData, entityData: entityData, isicActivityList: list || [] }];
|
|
562
602
|
}
|
|
563
603
|
});
|
|
564
604
|
}); });
|
|
565
|
-
export var updateActivitiesInfo = createAsyncThunk('updateActivitiesInfo', function (
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
605
|
+
export var updateActivitiesInfo = createAsyncThunk('updateActivitiesInfo', function (_a, thunkApi) {
|
|
606
|
+
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
607
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
608
|
+
var _b, settings, business, _c, brand, entity_activities, entity, _d, brandActivities, brandId, data_status, activities, operationStartDate, isActivitiesNonEditable, isOperationStartDateNonEditable, stepName, id, removedActivities, payload, newBrandActivities, newEntityActivities, activityPayload, requestBody, data, currencyData;
|
|
609
|
+
var _e, _f;
|
|
610
|
+
return __generator(this, function (_g) {
|
|
611
|
+
switch (_g.label) {
|
|
612
|
+
case 0:
|
|
613
|
+
_b = thunkApi.getState(), settings = _b.settings, business = _b.business;
|
|
614
|
+
_c = business.data.verify.responseBody || {}, brand = _c.brand, entity_activities = _c.entity_activities, entity = _c.entity;
|
|
615
|
+
_d = brand || {}, brandActivities = _d.activities, brandId = _d.id, data_status = _d.data_status;
|
|
616
|
+
activities = formData.activities, operationStartDate = formData.operationStartDate;
|
|
617
|
+
isActivitiesNonEditable = hasNoneEditableValue(data_status, 'activities');
|
|
618
|
+
isOperationStartDateNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'business_start_date');
|
|
619
|
+
stepName = BUSINESS_STEP_NAMES.BUSINESS_CR_ACTIVITIES;
|
|
620
|
+
id = brandId;
|
|
621
|
+
removedActivities = (brandActivities || []).filter(function (brandActivity) { return !(activities || []).some(function (activity) { return activity.id === brandActivity.id; }); });
|
|
622
|
+
if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length))) return [3, 2];
|
|
623
|
+
payload = {
|
|
624
|
+
id: id,
|
|
625
|
+
activities: removedActivities.map(function (_a) {
|
|
626
|
+
var id = _a.id;
|
|
627
|
+
return ({ id: id });
|
|
628
|
+
})
|
|
629
|
+
};
|
|
630
|
+
return [4, API.brandService.removeBrandActivity(payload)];
|
|
631
|
+
case 1:
|
|
632
|
+
_g.sent();
|
|
633
|
+
_g.label = 2;
|
|
634
|
+
case 2:
|
|
635
|
+
newBrandActivities = activities === null || activities === void 0 ? void 0 : activities.filter(function (act) { return !(brandActivities || []).some(function (brandActivity) { return act.id === brandActivity.id; }); });
|
|
636
|
+
newEntityActivities = activities === null || activities === void 0 ? void 0 : activities.filter(function (act) { return !(entity_activities || []).some(function (entityActivity) { return act.id === entityActivity.id; }); });
|
|
637
|
+
if (!(!isActivitiesNonEditable && (newEntityActivities === null || newEntityActivities === void 0 ? void 0 : newEntityActivities.length))) return [3, 4];
|
|
638
|
+
activityPayload = {
|
|
639
|
+
id: entity === null || entity === void 0 ? void 0 : entity.id,
|
|
640
|
+
activities: newEntityActivities.map(function (_a) {
|
|
641
|
+
var id = _a.id;
|
|
642
|
+
return ({ id: id });
|
|
643
|
+
})
|
|
644
|
+
};
|
|
645
|
+
return [4, API.entityService.updateEntityActivity(activityPayload)];
|
|
646
|
+
case 3:
|
|
647
|
+
_g.sent();
|
|
648
|
+
_g.label = 4;
|
|
649
|
+
case 4:
|
|
650
|
+
requestBody = __assign(__assign(__assign({ id: id }, ((newBrandActivities === null || newBrandActivities === void 0 ? void 0 : newBrandActivities.length) && !isActivitiesNonEditable && { activities: newBrandActivities.map(function (_a) {
|
|
651
|
+
var id = _a.id;
|
|
652
|
+
return ({ id: id });
|
|
653
|
+
}) })), (!isOperationStartDateNonEditable && {
|
|
654
|
+
operations: {
|
|
655
|
+
start_date: operationStartDate
|
|
656
|
+
}
|
|
657
|
+
})), { step_name: stepName, encryption_contract: ['operations.start_date'] });
|
|
658
|
+
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
659
|
+
case 5:
|
|
660
|
+
data = _g.sent();
|
|
661
|
+
return [4, thunkApi.dispatch(retrieveDataList())];
|
|
662
|
+
case 6:
|
|
663
|
+
_g.sent();
|
|
664
|
+
return [4, API.countryService.getCurrency(settings.data.businessCountry.iso2)];
|
|
665
|
+
case 7:
|
|
666
|
+
currencyData = _g.sent();
|
|
667
|
+
thunkApi.dispatch(updateStepName(stepName));
|
|
668
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
669
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, requestBody);
|
|
670
|
+
return [2, { data: data === null || data === void 0 ? void 0 : data.brand, formData: originalFormData, currencyData: currencyData }];
|
|
671
|
+
}
|
|
672
|
+
});
|
|
596
673
|
});
|
|
597
|
-
});
|
|
674
|
+
});
|
|
598
675
|
export var retrieveDataList = createAsyncThunk('businessRetrieveDataList', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
599
676
|
var settings, countryISO2, dataBody, salesDataBody, _a, customerBases, expectedSales, expectedCustomerSales;
|
|
600
677
|
return __generator(this, function (_b) {
|
|
@@ -618,47 +695,57 @@ export var retrieveDataList = createAsyncThunk('businessRetrieveDataList', funct
|
|
|
618
695
|
_a = _b.sent(), customerBases = _a[0].list, expectedSales = _a[1].list, expectedCustomerSales = _a[2].list;
|
|
619
696
|
return [2, {
|
|
620
697
|
customerBases: customerBases,
|
|
621
|
-
expectedSales: expectedSales,
|
|
698
|
+
expectedSales: (expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.length) ? expectedSales : EXPECTED_SALES_LIST,
|
|
622
699
|
expectedCustomerSales: expectedCustomerSales,
|
|
623
700
|
countryISO2: countryISO2
|
|
624
701
|
}];
|
|
625
702
|
}
|
|
626
703
|
});
|
|
627
704
|
}); });
|
|
628
|
-
export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', function (
|
|
629
|
-
var
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
705
|
+
export var updateCustomersInfo = createAsyncThunk('updateCustomersInfo', function (_a, thunkApi) {
|
|
706
|
+
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
707
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
708
|
+
var _b, settings, business, _c, data_status, id, isCustomerBaseLocationNonEditable, isCustomerBaseNonEditable, isTermsNonEditable, isSalesRangeNonEditable, customerLocations, expectedCustomer, expectedSale, stepName, requestBody, customerLocation, customerBaseId, salesId, customerBase, data;
|
|
709
|
+
var _d, _e, _f;
|
|
710
|
+
return __generator(this, function (_g) {
|
|
711
|
+
switch (_g.label) {
|
|
712
|
+
case 0:
|
|
713
|
+
_b = thunkApi.getState(), settings = _b.settings, business = _b.business;
|
|
714
|
+
_c = ((_d = business.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.brand) || {}, data_status = _c.data_status, id = _c.id;
|
|
715
|
+
isCustomerBaseLocationNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'customer_base_location');
|
|
716
|
+
isCustomerBaseNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'customer_base');
|
|
717
|
+
isTermsNonEditable = hasNoneEditableValue(data_status, 'terms');
|
|
718
|
+
isSalesRangeNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'sales_range');
|
|
719
|
+
customerLocations = formData.customerLocations, expectedCustomer = formData.expectedCustomer, expectedSale = formData.expectedSale;
|
|
720
|
+
stepName = BUSINESS_STEP_NAMES.BUSINESS_CUSTOMERS;
|
|
721
|
+
requestBody = {
|
|
722
|
+
term: !isTermsNonEditable ? ['refund', 'chargeback'] : undefined,
|
|
723
|
+
id: id,
|
|
724
|
+
step_name: stepName,
|
|
725
|
+
encryption_contract: []
|
|
726
|
+
};
|
|
727
|
+
customerLocation = (customerLocations || []).map(function (location) { return ({
|
|
728
|
+
id: location.id
|
|
729
|
+
}); });
|
|
730
|
+
customerBaseId = (expectedCustomer === null || expectedCustomer === void 0 ? void 0 : expectedCustomer.id) && { id: expectedCustomer.id, period: 'monthly' };
|
|
731
|
+
salesId = (expectedSale === null || expectedSale === void 0 ? void 0 : expectedSale.id) && { id: expectedSale.id, period: 'monthly' };
|
|
732
|
+
customerBase = (customerBaseId || customerLocation.length) && __assign(__assign({}, (customerBaseId && !isCustomerBaseNonEditable && { id: expectedCustomer.id, period: 'monthly' })), (customerLocation.length && !isCustomerBaseLocationNonEditable && { locations: customerLocation }));
|
|
733
|
+
if (customerBase && !(isCustomerBaseNonEditable && isCustomerBaseLocationNonEditable))
|
|
734
|
+
requestBody = __assign(__assign({}, requestBody), { operations: __assign(__assign({}, requestBody.operations), { customer_base: customerBase }) });
|
|
735
|
+
if (salesId && !isSalesRangeNonEditable) {
|
|
736
|
+
requestBody = __assign(__assign({}, requestBody), { operations: __assign(__assign({}, requestBody.operations), { sales: salesId }) });
|
|
737
|
+
}
|
|
738
|
+
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
739
|
+
case 1:
|
|
740
|
+
data = _g.sent();
|
|
741
|
+
thunkApi.dispatch(updateStepName(stepName));
|
|
742
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
743
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, requestBody);
|
|
744
|
+
return [2, { data: data === null || data === void 0 ? void 0 : data.brand, formData: originalFormData }];
|
|
745
|
+
}
|
|
746
|
+
});
|
|
660
747
|
});
|
|
661
|
-
});
|
|
748
|
+
});
|
|
662
749
|
export var updateLeadSuccess = createAsyncThunk('businessUpdateLeadSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
663
750
|
var _a, settings, business, _b, steps, lead_id, flowCompleted, boardResponse, payload, data, board_id;
|
|
664
751
|
var _c, _d, _e, _f;
|
|
@@ -667,7 +754,8 @@ export var updateLeadSuccess = createAsyncThunk('businessUpdateLeadSuccess', fun
|
|
|
667
754
|
case 0:
|
|
668
755
|
_a = thunkApi.getState(), settings = _a.settings, business = _a.business;
|
|
669
756
|
_b = business.data.verify.responseBody || {}, steps = _b.steps, lead_id = _b.lead_id;
|
|
670
|
-
flowCompleted =
|
|
757
|
+
flowCompleted = hasKey(steps, BUSINESS_STEP_NAMES.BUSINESS_SUCCESS);
|
|
758
|
+
console.info('stop success call', flowCompleted || !lead_id);
|
|
671
759
|
if (flowCompleted || !lead_id)
|
|
672
760
|
return [2];
|
|
673
761
|
boardResponse = undefined;
|
|
@@ -727,6 +815,7 @@ var initialState = {
|
|
|
727
815
|
uploadingArticle: false,
|
|
728
816
|
data: {
|
|
729
817
|
flowName: FlowsTypes.BUSINESS,
|
|
818
|
+
currency: '',
|
|
730
819
|
verify: {
|
|
731
820
|
token: ''
|
|
732
821
|
},
|
|
@@ -790,37 +879,46 @@ export var businessSlice = createSlice({
|
|
|
790
879
|
state.customLoading = true;
|
|
791
880
|
})
|
|
792
881
|
.addCase(verifyLeadToken.fulfilled, function (state, action) {
|
|
793
|
-
var _a, _b;
|
|
882
|
+
var _a, _b, _c, _d, _e, _f;
|
|
794
883
|
state.error = null;
|
|
795
884
|
state.customLoading = false;
|
|
796
|
-
var
|
|
885
|
+
var _g = action.payload, data = _g.data, boardId = _g.boardId, brandData = _g.brandData, leadData = _g.leadData, token = _g.token, isRequireOTP = _g.isRequireOTP, isicActivityList = _g.isicActivityList, currencyData = _g.currencyData;
|
|
797
886
|
var responseBody = state.data.verify.responseBody;
|
|
798
887
|
state.data.verify.responseBody = __assign(__assign(__assign(__assign(__assign({}, data), leadData), responseBody), { board_id: boardId, lead_id: data === null || data === void 0 ? void 0 : data.id }), (brandData && { brand: brandData }));
|
|
888
|
+
var _h = leadData || {}, identification = _h.identification, date_of_birth = _h.date_of_birth;
|
|
889
|
+
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
890
|
+
state.data.nidData.nid = identification.id;
|
|
891
|
+
if (date_of_birth)
|
|
892
|
+
state.data.nidData.dob = dateFormat(date_of_birth);
|
|
893
|
+
if (identification === null || identification === void 0 ? void 0 : identification.type)
|
|
894
|
+
state.data.nidData.type = identification.type;
|
|
799
895
|
if (token)
|
|
800
896
|
state.data.verify.token = token;
|
|
801
897
|
state.data.otpData.isNID = false;
|
|
802
898
|
if (isRequireOTP)
|
|
803
899
|
return;
|
|
804
|
-
var
|
|
900
|
+
var _j = state.data.verify.responseBody || {}, entity = _j.entity, entity_activities = _j.entity_activities, business_name = _j.business_name;
|
|
805
901
|
if (business_name === null || business_name === void 0 ? void 0 : business_name.en)
|
|
806
902
|
state.data.businessTypeData.entityLegalName = business_name === null || business_name === void 0 ? void 0 : business_name.en;
|
|
807
903
|
var issuingDate = ((_a = brandData === null || brandData === void 0 ? void 0 : brandData.operations) === null || _a === void 0 ? void 0 : _a.start_date) || ((_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date);
|
|
808
904
|
if (issuingDate)
|
|
809
905
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
810
|
-
var
|
|
811
|
-
var
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
var terms = (brandData || {}).terms;
|
|
906
|
+
var _k = brandData || {}, terms = _k.terms, activities = _k.activities;
|
|
907
|
+
var entityActivities = (entity_activities === null || entity_activities === void 0 ? void 0 : entity_activities.filter(function (activity) {
|
|
908
|
+
return !(activities === null || activities === void 0 ? void 0 : activities.some(function (value) { return value.id === activity.id; }));
|
|
909
|
+
})) || [];
|
|
910
|
+
var selectedActivity = __spreadArray(__spreadArray([], (activities || []), true), entityActivities, true);
|
|
816
911
|
terms === null || terms === void 0 ? void 0 : terms.forEach(function (element) {
|
|
817
912
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
818
913
|
state.data.customersData.transactionPolicy = element.agree;
|
|
819
914
|
state.data.customersData.refundPolicy = element.agree;
|
|
820
915
|
}
|
|
821
916
|
});
|
|
822
|
-
|
|
823
|
-
|
|
917
|
+
if ((_c = currencyData === null || currencyData === void 0 ? void 0 : currencyData.code) === null || _c === void 0 ? void 0 : _c.english)
|
|
918
|
+
state.data.currency = currencyData.code.english;
|
|
919
|
+
state.data.activitiesData.activities = selectedActivity;
|
|
920
|
+
var licenseList = [OTHER_CR_LICENSE, OTHER_FL_LICENSE];
|
|
921
|
+
state.data.businessTypeData.responseBody = __assign(__assign(__assign({}, state.data.businessTypeData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id, activityList: isicActivityList }), (!((_f = (_e = (_d = state.data.businessTypeData) === null || _d === void 0 ? void 0 : _d.responseBody) === null || _e === void 0 ? void 0 : _e.licenseList) === null || _f === void 0 ? void 0 : _f.length) && { licenseList: licenseList }));
|
|
824
922
|
})
|
|
825
923
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
826
924
|
state.error = action.error.message;
|
|
@@ -848,33 +946,42 @@ export var businessSlice = createSlice({
|
|
|
848
946
|
state.error = null;
|
|
849
947
|
})
|
|
850
948
|
.addCase(verifyLeadOTP.fulfilled, function (state, action) {
|
|
851
|
-
var _a, _b;
|
|
949
|
+
var _a, _b, _c, _d, _e, _f;
|
|
852
950
|
state.loading = false;
|
|
853
951
|
state.error = null;
|
|
854
|
-
var
|
|
952
|
+
var _g = action.payload, data = _g.data, formData = _g.formData, brand = _g.brand, leadData = _g.leadData, isicActivityList = _g.isicActivityList, currencyData = _g.currencyData;
|
|
855
953
|
state.data.otpData = formData;
|
|
856
954
|
state.data.otpData.responseBody = data;
|
|
955
|
+
if ((_a = currencyData === null || currencyData === void 0 ? void 0 : currencyData.code) === null || _a === void 0 ? void 0 : _a.english)
|
|
956
|
+
state.data.currency = currencyData.code.english;
|
|
857
957
|
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, leadData), state.data.verify.responseBody), (brand && { brand: brand })), { flows: (leadData === null || leadData === void 0 ? void 0 : leadData.flows) || [] });
|
|
858
|
-
var
|
|
958
|
+
var _h = leadData || {}, identification = _h.identification, date_of_birth = _h.date_of_birth;
|
|
959
|
+
if (identification === null || identification === void 0 ? void 0 : identification.id)
|
|
960
|
+
state.data.nidData.nid = identification.id;
|
|
961
|
+
if (date_of_birth)
|
|
962
|
+
state.data.nidData.dob = dateFormat(date_of_birth);
|
|
963
|
+
if (identification === null || identification === void 0 ? void 0 : identification.type)
|
|
964
|
+
state.data.nidData.type = identification.type;
|
|
965
|
+
var _j = leadData || {}, entity = _j.entity, entity_activities = _j.entity_activities, business_name = _j.business_name;
|
|
859
966
|
if (business_name === null || business_name === void 0 ? void 0 : business_name.en)
|
|
860
967
|
state.data.businessTypeData.entityLegalName = business_name === null || business_name === void 0 ? void 0 : business_name.en;
|
|
861
|
-
var issuingDate = ((
|
|
968
|
+
var issuingDate = ((_b = brand === null || brand === void 0 ? void 0 : brand.operations) === null || _b === void 0 ? void 0 : _b.start_date) || ((_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.issuing_date);
|
|
862
969
|
if (issuingDate)
|
|
863
970
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
864
|
-
var
|
|
865
|
-
var
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
var terms = (brand || {}).terms;
|
|
971
|
+
var _k = brand || {}, terms = _k.terms, activities = _k.activities;
|
|
972
|
+
var entityActivities = (entity_activities === null || entity_activities === void 0 ? void 0 : entity_activities.filter(function (activity) {
|
|
973
|
+
return !(activities === null || activities === void 0 ? void 0 : activities.some(function (value) { return value.id === activity.id; }));
|
|
974
|
+
})) || [];
|
|
975
|
+
var selectedActivity = __spreadArray(__spreadArray([], (activities || []), true), entityActivities, true);
|
|
870
976
|
terms === null || terms === void 0 ? void 0 : terms.forEach(function (element) {
|
|
871
977
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
872
978
|
state.data.customersData.transactionPolicy = element.agree;
|
|
873
979
|
state.data.customersData.refundPolicy = element.agree;
|
|
874
980
|
}
|
|
875
981
|
});
|
|
876
|
-
state.data.activitiesData.activities =
|
|
877
|
-
|
|
982
|
+
state.data.activitiesData.activities = selectedActivity;
|
|
983
|
+
var licenseList = [OTHER_CR_LICENSE, OTHER_FL_LICENSE];
|
|
984
|
+
state.data.businessTypeData.responseBody = __assign(__assign(__assign({}, state.data.businessTypeData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id, activityList: isicActivityList }), (!((_f = (_e = (_d = state.data.businessTypeData) === null || _d === void 0 ? void 0 : _d.responseBody) === null || _e === void 0 ? void 0 : _e.licenseList) === null || _f === void 0 ? void 0 : _f.length) && { licenseList: licenseList }));
|
|
878
985
|
})
|
|
879
986
|
.addCase(verifyLeadOTP.rejected, function (state, action) {
|
|
880
987
|
state.loading = false;
|
|
@@ -1058,7 +1165,7 @@ export var businessSlice = createSlice({
|
|
|
1058
1165
|
var _a;
|
|
1059
1166
|
state.loading = false;
|
|
1060
1167
|
state.error = null;
|
|
1061
|
-
var _b = action.payload, data = _b.data, formData = _b.formData, accountData = _b.accountData, documentData = _b.documentData;
|
|
1168
|
+
var _b = action.payload, data = _b.data, formData = _b.formData, accountData = _b.accountData, documentData = _b.documentData, isicActivityList = _b.isicActivityList;
|
|
1062
1169
|
state.data.businessTypeData = __assign(__assign({}, state.data.businessTypeData), formData);
|
|
1063
1170
|
var entity = data.entity, entity_activities = data.entity_activities, brand = data.brand;
|
|
1064
1171
|
var issuingDate = ((_a = entity === null || entity === void 0 ? void 0 : entity.license) === null || _a === void 0 ? void 0 : _a.issuing_date) || new Date().getTime();
|
|
@@ -1066,19 +1173,25 @@ export var businessSlice = createSlice({
|
|
|
1066
1173
|
state.error = 'signup_user_exists_error';
|
|
1067
1174
|
return;
|
|
1068
1175
|
}
|
|
1176
|
+
var activities = (brand || {}).activities;
|
|
1177
|
+
var entityActivities = (entity_activities === null || entity_activities === void 0 ? void 0 : entity_activities.filter(function (activity) {
|
|
1178
|
+
return !(activities === null || activities === void 0 ? void 0 : activities.some(function (value) { return value.id === activity.id; }));
|
|
1179
|
+
})) || [];
|
|
1180
|
+
var selectedActivity = __spreadArray(__spreadArray([], (activities || []), true), entityActivities, true);
|
|
1181
|
+
state.data.activitiesData.activities = selectedActivity;
|
|
1069
1182
|
if (issuingDate) {
|
|
1070
1183
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
1071
1184
|
}
|
|
1072
|
-
|
|
1073
|
-
state.data.businessTypeData.responseBody = __assign(__assign(__assign(__assign(__assign({}, data), state.data.businessTypeData.responseBody), { activities: activities }), accountData), documentData);
|
|
1185
|
+
state.data.businessTypeData.responseBody = __assign(__assign(__assign(__assign(__assign({}, data), state.data.businessTypeData.responseBody), { activityList: isicActivityList }), accountData), documentData);
|
|
1074
1186
|
var terms = (brand || {}).terms;
|
|
1187
|
+
var entity_id = (accountData || {}).entity_id;
|
|
1075
1188
|
terms === null || terms === void 0 ? void 0 : terms.forEach(function (element) {
|
|
1076
1189
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
1077
1190
|
state.data.customersData.transactionPolicy = element.agree;
|
|
1078
1191
|
state.data.customersData.refundPolicy = element.agree;
|
|
1079
1192
|
}
|
|
1080
1193
|
});
|
|
1081
|
-
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), { entity: entity }), (brand && { brand: brand }));
|
|
1194
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), { entity: __assign(__assign({}, entity), (entity_id && { id: entity_id })) }), (brand && { brand: brand }));
|
|
1082
1195
|
})
|
|
1083
1196
|
.addCase(updateLeadBusinessType.rejected, function (state, action) {
|
|
1084
1197
|
state.loading = false;
|
|
@@ -1089,10 +1202,13 @@ export var businessSlice = createSlice({
|
|
|
1089
1202
|
state.error = null;
|
|
1090
1203
|
})
|
|
1091
1204
|
.addCase(updateActivitiesInfo.fulfilled, function (state, action) {
|
|
1205
|
+
var _a;
|
|
1092
1206
|
state.loading = false;
|
|
1093
1207
|
state.error = null;
|
|
1094
|
-
var
|
|
1208
|
+
var _b = action.payload, data = _b.data, formData = _b.formData, currencyData = _b.currencyData;
|
|
1095
1209
|
state.data.activitiesData = formData;
|
|
1210
|
+
if ((_a = currencyData === null || currencyData === void 0 ? void 0 : currencyData.code) === null || _a === void 0 ? void 0 : _a.english)
|
|
1211
|
+
state.data.currency = currencyData.code.english;
|
|
1096
1212
|
var terms = (data || {}).terms;
|
|
1097
1213
|
terms === null || terms === void 0 ? void 0 : terms.forEach(function (element) {
|
|
1098
1214
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
@@ -1150,7 +1266,7 @@ export var businessSlice = createSlice({
|
|
|
1150
1266
|
state.error = action.error.message;
|
|
1151
1267
|
})
|
|
1152
1268
|
.addCase(updateLeadSuccess.fulfilled, function (state, action) {
|
|
1153
|
-
var _a, _b;
|
|
1269
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1154
1270
|
state.loading = false;
|
|
1155
1271
|
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { updateLeadSuccessLoading: false });
|
|
1156
1272
|
state.error = null;
|
|
@@ -1160,7 +1276,7 @@ export var businessSlice = createSlice({
|
|
|
1160
1276
|
state.error = description;
|
|
1161
1277
|
return;
|
|
1162
1278
|
}
|
|
1163
|
-
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), response), { name: (_b = state.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.name });
|
|
1279
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), response), { name: (_b = state.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.name, merchant: ((_c = state.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.merchant) || ((_f = (_e = (_d = state.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.business) === null || _e === void 0 ? void 0 : _e.entity) === null || _f === void 0 ? void 0 : _f.merchant) });
|
|
1164
1280
|
})
|
|
1165
1281
|
.addCase(updateLeadSuccess.pending, function (state) {
|
|
1166
1282
|
state.loading = true;
|