@tap-payments/auth-jsconnect 2.4.5-test → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/@types/app.d.ts +241 -16
- package/build/@types/app.js +7 -0
- package/build/@types/form.d.ts +31 -23
- package/build/@types/theme.d.ts +1 -1
- package/build/@types/user.d.ts +39 -3
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +12 -11
- package/build/api/auth.js +5 -1
- package/build/api/availabilityServices.d.ts +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 +13 -8
- package/build/api/entity.js +32 -1
- package/build/api/file.d.ts +1 -1
- package/build/api/index.d.ts +26 -5
- package/build/api/individual.d.ts +27 -9
- package/build/api/individual.js +9 -1
- package/build/api/init.d.ts +2 -1
- package/build/api/lead.d.ts +15 -10
- package/build/api/lead.js +58 -1
- package/build/api/operator.d.ts +10 -1
- package/build/api/operator.js +10 -2
- package/build/api/user.d.ts +2 -2
- package/build/app/rootReducer.d.ts +1 -0
- package/build/app/rootReducer.js +3 -1
- package/build/app/settings.d.ts +37 -3
- package/build/app/settings.js +122 -39
- package/build/app/store.d.ts +6 -4
- package/build/assets/locales/ar.json +25 -1
- package/build/assets/locales/en.json +25 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +2 -1
- package/build/components/AnimationFlow/AnimationFlow.js +3 -3
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.js +26 -5
- package/build/components/AnimationFlow/Dialog.d.ts +2 -1
- package/build/components/AnimationFlow/Dialog.js +2 -2
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +1 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +5 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +45 -23
- package/build/components/ArabicDatePicker/arabicAr.d.ts +8 -0
- package/build/components/ArabicDatePicker/arabicAr.js +32 -0
- package/build/components/ArabicDatePicker/arabicEn.d.ts +8 -0
- package/build/components/ArabicDatePicker/arabicEn.js +32 -0
- package/build/components/ArabicDatePicker/style.css +45 -5
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/CheckBox/CheckBox.d.ts +1 -1
- package/build/components/Collapse/Collapse.d.ts +1 -2
- package/build/components/DatePicker/DatePicker.d.ts +3 -1
- package/build/components/DatePicker/DatePicker.js +23 -17
- package/build/components/ExpandIcon/ExpandIcon.d.ts +3 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/Form/Form.d.ts +1 -1
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
- package/build/components/List/List.d.ts +1 -1
- package/build/components/ListItem/ListItem.d.ts +1 -1
- package/build/components/Loader/Loader.d.ts +1 -1
- package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
- package/build/components/OTPField/OTPField.d.ts +1 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +1 -2
- package/build/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/components/Providers/ReduxProvider.d.ts +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/Radio/Radio.d.ts +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.d.ts +2 -1
- package/build/components/SimpleList/SimpleList.js +12 -9
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/Text/Text.d.ts +1 -1
- package/build/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Warning/Warning.d.ts +1 -1
- package/build/constants/api.d.ts +9 -0
- package/build/constants/api.js +18 -1
- package/build/constants/app.d.ts +9 -1
- package/build/constants/app.js +90 -16
- package/build/constants/assets.d.ts +4 -0
- package/build/constants/assets.js +4 -0
- package/build/constants/dummy.d.ts +62 -0
- package/build/constants/dummy.js +603 -0
- package/build/constants/validation.d.ts +2 -2
- package/build/constants/validation.js +3 -3
- package/build/features/app/bank/bankStore.d.ts +94 -10
- package/build/features/app/bank/bankStore.js +110 -54
- package/build/features/app/board/boardStore.d.ts +69 -0
- package/build/features/app/board/boardStore.js +237 -0
- package/build/features/app/brand/brandStore.d.ts +161 -18
- package/build/features/app/brand/brandStore.js +287 -126
- package/build/features/app/business/businessStore.d.ts +171 -18
- package/build/features/app/business/businessStore.js +285 -200
- package/build/features/app/connect/connectStore.d.ts +166 -14
- package/build/features/app/connect/connectStore.js +277 -104
- package/build/features/app/connectExpress/connectExpressStore.d.ts +273 -25
- package/build/features/app/connectExpress/connectExpressStore.js +461 -76
- package/build/features/app/entity/entityStore.d.ts +98 -10
- package/build/features/app/entity/entityStore.js +149 -74
- package/build/features/app/individual/individualStore.d.ts +200 -28
- package/build/features/app/individual/individualStore.js +354 -227
- package/build/features/app/password/passwordStore.d.ts +114 -12
- package/build/features/app/password/passwordStore.js +113 -43
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +83 -9
- package/build/features/app/tax/taxStore.js +97 -48
- package/build/features/bank/Bank.d.ts +2 -2
- package/build/features/bank/Bank.js +11 -6
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.js +18 -14
- package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.js +2 -1
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/bank/screens/Success/Success.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/OTPInput.js +3 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.js +2 -2
- package/build/features/board/Board.d.ts +9 -0
- package/build/features/board/Board.js +74 -0
- package/build/features/board/index.d.ts +1 -0
- package/build/features/board/index.js +1 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/board/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +35 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/board/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/board/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/board/screens/Verify/OTPInput.js +51 -0
- package/build/features/board/screens/Verify/Verify.d.ts +5 -0
- package/build/features/board/screens/Verify/Verify.js +74 -0
- package/build/features/board/screens/Verify/index.d.ts +2 -0
- package/build/features/board/screens/Verify/index.js +2 -0
- package/build/features/board/screens/Verify/validation.d.ts +8 -0
- package/build/features/board/screens/Verify/validation.js +4 -0
- package/build/features/brand/Brand.d.ts +2 -2
- package/build/features/brand/Brand.js +11 -6
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +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 +24 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +6 -9
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +7 -9
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +10 -12
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +12 -20
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -3
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandActivities/validation.d.ts +36 -36
- package/build/features/brand/screens/BrandActivities/validation.js +5 -10
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +17 -31
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -4
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +3 -14
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandName.js +3 -4
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +16 -8
- package/build/features/brand/screens/BrandInfo/validation.d.ts +21 -6
- package/build/features/brand/screens/BrandInfo/validation.js +9 -8
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +4 -0
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +103 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +9 -0
- package/build/features/brand/screens/{BrandInfo/Segments.js → BrandSegmentInfo/SegmentLocations.js} +6 -14
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +9 -0
- package/build/features/{connect/screens/Merchant/Segments.js → brand/screens/BrandSegmentInfo/SegmentProfits.js} +23 -33
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +9 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -0
- package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +2 -10
- package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/brand/screens/Success/Success.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/OTPInput.js +3 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.js +2 -2
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/Business.js +4 -1
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.js +2 -1
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +14 -78
- package/build/features/business/screens/Activities/ActivitiesList.js +226 -103
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/Activities/validation.d.ts +165 -30
- package/build/features/business/screens/Activities/validation.js +5 -2
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/BusinessType.js +14 -6
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +3 -6
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/EntityName.js +4 -5
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +6 -9
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -9
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +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/CivilID/IDNumber.js +2 -3
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +36 -48
- package/build/features/business/screens/Customers/CustomerLocations.js +35 -19
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/Customers.js +2 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedCustomers.js +8 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +13 -15
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +11 -19
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +1 -2
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/DOB.js +2 -2
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.js +7 -4
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.js +9 -17
- package/build/features/business/screens/IDBOD/validation.d.ts +10 -0
- package/build/features/business/screens/IDBOD/validation.js +4 -0
- package/build/features/business/screens/OTP/OTP.d.ts +1 -1
- package/build/features/business/screens/OTP/OTP.js +2 -2
- package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/business/screens/OTP/OTPInput.js +5 -2
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/business/screens/Success/Success.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/OTPInput.js +3 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.js +2 -2
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +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 +12 -25
- package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
- package/build/features/connect/screens/BrandSegment/index.js +2 -0
- package/build/features/connect/screens/BrandSegment/validation.d.ts +8 -0
- package/build/features/connect/screens/BrandSegment/validation.js +6 -0
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +103 -0
- package/build/features/connect/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connect/screens/BusinessCountry/index.js +2 -0
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/CivilID/CivilID.js +12 -16
- package/build/features/connect/screens/CivilID/IDNumber.js +5 -6
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +9 -11
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Individual.js +9 -2
- package/build/features/connect/screens/Individual/MobileNumber.js +6 -9
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.js +11 -15
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +4 -22
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +3 -5
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/Merchant.js +13 -16
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/SalesChannels.js +6 -6
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Merchant/validation.d.ts +0 -6
- package/build/features/connect/screens/Merchant/validation.js +8 -12
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +23 -22
- package/build/features/connect/screens/Mobile/MobileNumber.js +22 -15
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/DOB.d.ts +1 -2
- package/build/features/connect/screens/NID/DOB.js +3 -3
- package/build/features/connect/screens/NID/IDNumber.js +6 -7
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/NID/NID.js +17 -4
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.js +14 -16
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.js +14 -2
- package/build/features/connect/screens/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 +86 -18
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +5 -0
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.js +93 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.js +81 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +11 -0
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +96 -0
- package/build/features/connectExpress/screens/AuthenticationList/MerchantList.d.ts +10 -0
- package/build/features/connectExpress/screens/AuthenticationList/MerchantList.js +107 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AuthenticationList/index.js +2 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.d.ts +14 -0
- package/build/features/connectExpress/screens/AuthenticationList/validation.js +8 -0
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +5 -0
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +105 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.d.ts +3 -0
- package/build/features/connectExpress/screens/BusinessCountry/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.js +11 -4
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +12 -8
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +2 -1
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -7
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +4 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +13 -5
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +10 -12
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +9 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +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 +71 -4
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +6 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +2 -3
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +4 -4
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -3
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.js +9 -5
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +9 -6
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.js +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NID/DOB.js +2 -2
- package/build/features/connectExpress/screens/NID/IDNumber.js +2 -3
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/NID.js +7 -3
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -3
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +2 -2
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -4
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -4
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +10 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.js +4 -0
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.js +3 -3
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.js +4 -2
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +15 -6
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +2 -2
- package/build/features/entity/Entity.js +11 -6
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +10 -39
- package/build/features/entity/screens/EntityCapital/ActivityList.js +53 -35
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +8 -15
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -12
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +9 -16
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +14 -6
- package/build/features/entity/screens/EntityCapital/validation.d.ts +90 -90
- package/build/features/entity/screens/EntityCapital/validation.js +2 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +3 -3
- package/build/features/entity/screens/EntityName/Article.js +3 -2
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityName.js +45 -16
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +17 -45
- package/build/features/entity/screens/EntityName/EntityTypeList.js +16 -24
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +6 -13
- package/build/features/entity/screens/EntityName/ExpiryDate.js +4 -5
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +6 -13
- package/build/features/entity/screens/EntityName/IssuingDate.js +4 -5
- package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LegalName.js +3 -4
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +3 -4
- package/build/features/entity/screens/EntityName/validation.d.ts +28 -0
- package/build/features/entity/screens/EntityName/validation.js +40 -2
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/entity/screens/Success/Success.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/OTPInput.js +3 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.js +2 -2
- package/build/features/featuresScreens.d.ts +1 -0
- package/build/features/featuresScreens.js +47 -0
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +11 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +36 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +10 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +13 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +19 -30
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +87 -48
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +6 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +12 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +6 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +9 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +17 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +7 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +8 -7
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualList/UserList.js +10 -6
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +6 -22
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +6 -22
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +3 -8
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +3 -4
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +7 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +3 -2
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +8 -6
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +56 -37
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +7 -24
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +5 -8
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +3 -10
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +7 -24
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +67 -63
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +2 -1
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/individual/screens/Success/Success.d.ts +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/OTPInput.js +3 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.js +2 -2
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -5
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.js +3 -2
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTP.js +2 -2
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.js +5 -2
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/password/screens/Success/Success.d.ts +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/OTPInput.js +3 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.js +2 -2
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
- package/build/features/shared/Address/Address.d.ts +1 -2
- package/build/features/shared/Address/CountryList.d.ts +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/EmailProvidersButtons.d.ts +2 -3
- package/build/features/shared/Button/EmailProvidersButtons.js +9 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +4 -3
- package/build/features/shared/Button/FlowsButtons.js +17 -13
- package/build/features/shared/Button/IndividualActionButtons.d.ts +5 -3
- package/build/features/shared/Button/IndividualActionButtons.js +26 -2
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Calender/Calender.d.ts +12 -0
- package/build/features/shared/Calender/Calender.js +56 -0
- package/build/features/shared/Calender/index.d.ts +2 -0
- package/build/features/shared/Calender/index.js +2 -0
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
- package/build/features/shared/Chip/Chip.d.ts +1 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
- package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +7 -0
- package/build/features/shared/Dot/Dot.js +29 -0
- package/build/features/shared/Dot/index.d.ts +2 -0
- package/build/features/shared/Dot/index.js +2 -0
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +2 -3
- package/build/features/shared/EndAdornment/EndAdornment.js +1 -1
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/Footer.js +10 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +7 -16
- package/build/features/shared/Input/index.d.ts +2 -1
- package/build/features/shared/InputSelect/InputSelect.d.ts +3 -0
- package/build/features/shared/InputSelect/InputSelect.js +33 -0
- package/build/features/shared/InputSelect/index.d.ts +2 -0
- package/build/features/shared/InputSelect/index.js +2 -0
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -2
- package/build/features/shared/SalesChannels/SalesChannel.js +5 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +3 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +20 -9
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -4
- package/build/features/shared/UploadFile/FileUpload.js +2 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -3
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -3
- package/build/features/shared/UploadFile/UploadWrapper.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -4
- package/build/features/shared/UploadMultipleFile/UploadFile.js +2 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -3
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +1 -1
- package/build/features/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/screens/Email/Email.d.ts +1 -1
- package/build/features/signIn/screens/Email/Email.js +2 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +2 -1
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.js +2 -2
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -2
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.js +2 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +2 -2
- package/build/features/tax/Tax.js +11 -6
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +2 -2
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/tax/screens/Success/Success.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +13 -5
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +10 -7
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +3 -3
- package/build/features/tax/screens/TaxDetails/VATId.js +3 -5
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/OTPInput.js +3 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.js +2 -2
- package/build/hooks/useAppConfig.d.ts +4 -2
- package/build/hooks/useAppConfig.js +18 -18
- package/build/hooks/useAppDispatch.d.ts +1 -0
- package/build/hooks/useCountry.d.ts +1 -0
- package/build/hooks/useCountry.js +4 -3
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useErrorListener.d.ts +2 -1
- package/build/hooks/useErrorListener.js +16 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +2 -2
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +2 -2
- package/build/hooks/useFormReadOnly.d.ts +2 -2
- package/build/hooks/useSetFromDefaultValues.d.ts +1 -1
- package/build/hooks/useVerifyToken.js +1 -1
- package/build/index.d.ts +3 -2
- package/build/index.js +4 -2
- package/build/utils/array.d.ts +13 -2
- package/build/utils/array.js +115 -2
- package/build/utils/common.d.ts +1 -0
- package/build/utils/common.js +10 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +6 -0
- package/build/utils/gtm.d.ts +6 -0
- package/build/utils/gtm.js +29 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +14 -0
- package/build/utils/string.d.ts +1 -0
- package/build/utils/string.js +3 -0
- package/package.json +4 -2
- package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -10
- package/build/features/connect/screens/Merchant/Segments.d.ts +0 -8
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -60,16 +60,16 @@ var _a;
|
|
|
60
60
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
61
61
|
import API from '../../../api';
|
|
62
62
|
import { FlowsTypes } from '../../../@types';
|
|
63
|
-
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
64
|
-
import { BRAND_STEP_NAMES } from '../../../constants';
|
|
65
|
-
import { hasNoneEditableValue, isKW, isTwitter, isWebsite, mapSalesChannel, sleep } from '../../../utils';
|
|
63
|
+
import { handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
64
|
+
import { BRAND_STEP_NAMES, EXPECTED_SALES_LIST } from '../../../constants';
|
|
65
|
+
import { hasNoneEditableValue, isKW, isTwitter, isWebsite, mapSalesChannel, retrieveIndividualData, sleep } from '../../../utils';
|
|
66
66
|
export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (_a, thunkApi) {
|
|
67
67
|
var token = _a.token, isInternally = _a.isInternally;
|
|
68
68
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
var payload, data, countryIso2, board_id,
|
|
70
|
-
var
|
|
71
|
-
return __generator(this, function (
|
|
72
|
-
switch (
|
|
69
|
+
var payload, data, countryIso2, _b, board_id, board_info_id, config, publicKey, salesChannels, boardData, boardInfoData, individualData, _c, id_1, type_1, serviceCallBack, _d, boardRes, individualRes;
|
|
70
|
+
var _e, _f, _g, _h;
|
|
71
|
+
return __generator(this, function (_j) {
|
|
72
|
+
switch (_j.label) {
|
|
73
73
|
case 0:
|
|
74
74
|
payload = {
|
|
75
75
|
service_name: 'tap_email',
|
|
@@ -77,56 +77,66 @@ export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (
|
|
|
77
77
|
};
|
|
78
78
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
79
79
|
case 1:
|
|
80
|
-
data = (
|
|
80
|
+
data = (_j.sent()).data;
|
|
81
81
|
if ((data === null || data === void 0 ? void 0 : data.errors) && (data === null || data === void 0 ? void 0 : data.mw_error)) {
|
|
82
82
|
throw new Error(data.errors[0].description);
|
|
83
83
|
}
|
|
84
84
|
countryIso2 = data === null || data === void 0 ? void 0 : data.country_code;
|
|
85
85
|
if (countryIso2)
|
|
86
86
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
87
|
-
|
|
87
|
+
_b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id, config = _b.config;
|
|
88
|
+
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
89
|
+
if (publicKey) {
|
|
90
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
91
|
+
}
|
|
88
92
|
if (!board_id) {
|
|
89
93
|
throw new Error('Internal server error');
|
|
90
94
|
}
|
|
91
|
-
|
|
95
|
+
individualData = undefined;
|
|
92
96
|
if (isInternally)
|
|
93
97
|
data.step_name = BRAND_STEP_NAMES.BRAND_INFO;
|
|
94
|
-
if (!(data.step_name !== BRAND_STEP_NAMES.PHONE_AUTH || isInternally)) return [3,
|
|
95
|
-
return [
|
|
98
|
+
if (!(data.step_name !== BRAND_STEP_NAMES.PHONE_AUTH || isInternally)) return [3, 7];
|
|
99
|
+
if (!board_info_id) return [3, 3];
|
|
100
|
+
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
96
101
|
case 2:
|
|
97
|
-
|
|
102
|
+
boardInfoData = _j.sent();
|
|
103
|
+
_j.label = 3;
|
|
104
|
+
case 3: return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
105
|
+
case 4:
|
|
106
|
+
boardData = _j.sent();
|
|
107
|
+
_c = ((_e = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _e === void 0 ? void 0 : _e.recipient) || {}, id_1 = _c.id, type_1 = _c.type;
|
|
108
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_1, type_1); };
|
|
109
|
+
return [4, retrieveIndividualData(type_1, boardData, serviceCallBack)];
|
|
110
|
+
case 5:
|
|
111
|
+
_d = _j.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
112
|
+
boardData = boardRes;
|
|
113
|
+
individualData = individualRes;
|
|
98
114
|
if (!countryIso2) {
|
|
99
|
-
countryIso2 = (
|
|
115
|
+
countryIso2 = (_f = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _f === void 0 ? void 0 : _f.country;
|
|
100
116
|
if (countryIso2)
|
|
101
117
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
102
118
|
}
|
|
103
|
-
return [4, API.dataService.getSegments({ page: 0 })];
|
|
104
|
-
case 3:
|
|
105
|
-
segmentsList = _e.sent();
|
|
106
119
|
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
107
|
-
case
|
|
108
|
-
salesChannels =
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
|
|
113
|
-
_e.label = 6;
|
|
114
|
-
case 6: return [2, {
|
|
120
|
+
case 6:
|
|
121
|
+
salesChannels = _j.sent();
|
|
122
|
+
thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP'));
|
|
123
|
+
_j.label = 7;
|
|
124
|
+
case 7: return [2, {
|
|
115
125
|
data: data,
|
|
126
|
+
individualData: individualData,
|
|
116
127
|
boardResponse: {
|
|
117
128
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
118
129
|
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
119
130
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
120
131
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
121
132
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
122
|
-
name: (
|
|
123
|
-
contact: (
|
|
133
|
+
name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
|
|
134
|
+
contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
|
|
124
135
|
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
125
|
-
business: boardData === null || boardData === void 0 ? void 0 : boardData.business
|
|
136
|
+
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
137
|
+
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
126
138
|
},
|
|
127
139
|
salesChannels: salesChannels,
|
|
128
|
-
segmentsList: segmentsList === null || segmentsList === void 0 ? void 0 : segmentsList.list,
|
|
129
|
-
teamSizeList: teamSizeList === null || teamSizeList === void 0 ? void 0 : teamSizeList.list,
|
|
130
140
|
token: token
|
|
131
141
|
}];
|
|
132
142
|
}
|
|
@@ -151,64 +161,99 @@ export var resendOTP = createAsyncThunk('brandResendOTP', function (params, thun
|
|
|
151
161
|
});
|
|
152
162
|
}); });
|
|
153
163
|
export var verifyBrandLeadOTP = createAsyncThunk('verifyBrandLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
154
|
-
var _a, brand, settings, responseBody, payload, data, board_id, boardData,
|
|
155
|
-
var
|
|
156
|
-
return __generator(this, function (
|
|
157
|
-
switch (
|
|
164
|
+
var _a, brand, settings, responseBody, payload, data, publicKey, _b, board_id, board_info_id, boardInfoData, individualData, boardData, _c, id, type, serviceCallBack, _d, boardRes, individualRes, salesChannels;
|
|
165
|
+
var _e, _f, _g, _h, _j, _k, _l, _m;
|
|
166
|
+
return __generator(this, function (_o) {
|
|
167
|
+
switch (_o.label) {
|
|
158
168
|
case 0:
|
|
159
169
|
_a = thunkApi.getState(), brand = _a.brand, settings = _a.settings;
|
|
160
170
|
responseBody = brand.data.verify.responseBody;
|
|
161
171
|
payload = {
|
|
162
172
|
data: params.otp,
|
|
163
|
-
service_name: (
|
|
173
|
+
service_name: (_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _e === void 0 ? void 0 : _e.service_name,
|
|
164
174
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
165
175
|
step_name: BRAND_STEP_NAMES.PHONE_AUTH,
|
|
166
176
|
encryption_contract: ['data']
|
|
167
177
|
};
|
|
168
178
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
169
179
|
case 1:
|
|
170
|
-
data = (
|
|
171
|
-
if ((
|
|
180
|
+
data = (_o.sent()).data;
|
|
181
|
+
if ((_f = data.errors) === null || _f === void 0 ? void 0 : _f.length)
|
|
172
182
|
throw new Error(data.errors[0].description);
|
|
173
|
-
|
|
183
|
+
publicKey = (_g = data === null || data === void 0 ? void 0 : data.config) === null || _g === void 0 ? void 0 : _g.public_key;
|
|
184
|
+
if (publicKey) {
|
|
185
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
186
|
+
}
|
|
187
|
+
_b = responseBody || {}, board_id = _b.id, board_info_id = _b.board_info_id;
|
|
174
188
|
if (!board_id) {
|
|
175
189
|
throw new Error('Internal server error');
|
|
176
190
|
}
|
|
177
|
-
|
|
191
|
+
individualData = undefined;
|
|
192
|
+
if (!board_info_id) return [3, 3];
|
|
193
|
+
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
178
194
|
case 2:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
case 3:
|
|
183
|
-
segmentsList = _h.sent();
|
|
184
|
-
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
195
|
+
boardInfoData = _o.sent();
|
|
196
|
+
_o.label = 3;
|
|
197
|
+
case 3: return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
185
198
|
case 4:
|
|
186
|
-
|
|
187
|
-
|
|
199
|
+
boardData = _o.sent();
|
|
200
|
+
_c = ((_h = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _h === void 0 ? void 0 : _h.recipient) || {}, id = _c.id, type = _c.type;
|
|
201
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
|
|
202
|
+
return [4, retrieveIndividualData(type, boardData, serviceCallBack)];
|
|
188
203
|
case 5:
|
|
189
|
-
|
|
204
|
+
_d = _o.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
205
|
+
boardData = boardRes;
|
|
206
|
+
individualData = individualRes;
|
|
207
|
+
(_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, { otp: params.otp });
|
|
208
|
+
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
209
|
+
case 6:
|
|
210
|
+
salesChannels = _o.sent();
|
|
190
211
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
|
|
191
212
|
return [2, {
|
|
192
213
|
data: data,
|
|
214
|
+
individualData: individualData,
|
|
193
215
|
boardResponse: {
|
|
194
216
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
195
217
|
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
196
218
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
197
219
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
198
220
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
199
|
-
name: (
|
|
200
|
-
contact: (
|
|
221
|
+
name: (_l = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _l === void 0 ? void 0 : _l.names,
|
|
222
|
+
contact: (_m = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _m === void 0 ? void 0 : _m.contact,
|
|
201
223
|
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
202
|
-
business: boardData === null || boardData === void 0 ? void 0 : boardData.business
|
|
224
|
+
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
225
|
+
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
203
226
|
},
|
|
204
227
|
salesChannels: salesChannels,
|
|
205
|
-
segmentsList: segmentsList === null || segmentsList === void 0 ? void 0 : segmentsList.list,
|
|
206
|
-
teamSizeList: teamSizeList === null || teamSizeList === void 0 ? void 0 : teamSizeList.list,
|
|
207
228
|
formData: params
|
|
208
229
|
}];
|
|
209
230
|
}
|
|
210
231
|
});
|
|
211
232
|
}); });
|
|
233
|
+
export var retrieveSegmentDataList = createAsyncThunk('brandRetrieveSegmentDataList', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
234
|
+
var dataBody, _a, segmentLocation, segmentProfit, segmentTech;
|
|
235
|
+
return __generator(this, function (_b) {
|
|
236
|
+
switch (_b.label) {
|
|
237
|
+
case 0:
|
|
238
|
+
dataBody = {
|
|
239
|
+
page: 0,
|
|
240
|
+
limit: 50
|
|
241
|
+
};
|
|
242
|
+
return [4, Promise.all([
|
|
243
|
+
API.dataService.getSegmentLocation(dataBody),
|
|
244
|
+
API.dataService.getSegmentProfit(dataBody),
|
|
245
|
+
API.dataService.getSegmentTech(dataBody)
|
|
246
|
+
])];
|
|
247
|
+
case 1:
|
|
248
|
+
_a = _b.sent(), segmentLocation = _a[0].list, segmentProfit = _a[1].list, segmentTech = _a[2].list;
|
|
249
|
+
return [2, {
|
|
250
|
+
segmentLocation: segmentLocation,
|
|
251
|
+
segmentProfit: segmentProfit,
|
|
252
|
+
segmentTech: segmentTech
|
|
253
|
+
}];
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}); });
|
|
212
257
|
export var retrieveBoardStatus = createAsyncThunk('brand/retrieveBoardStatus', function (parmas, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
213
258
|
var brand, board_id, data;
|
|
214
259
|
return __generator(this, function (_a) {
|
|
@@ -266,21 +311,18 @@ export var checkBrandNameAvailability = createAsyncThunk('checkBrandNameAvailabi
|
|
|
266
311
|
export var updateBrand = createAsyncThunk('brandUpdateBrand', function (_a, thunkApi) {
|
|
267
312
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
268
313
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
-
var _b, settings, brand, _c, id, data_status, isNameENNonEditable, isNameARNonEditable, isChannelServicesNonEditable,
|
|
270
|
-
var
|
|
271
|
-
return __generator(this, function (
|
|
272
|
-
switch (
|
|
314
|
+
var _b, settings, brand, brandRes, _c, id, data_status, isNameENNonEditable, isNameARNonEditable, isChannelServicesNonEditable, salesChannels, brandName, brandLogoId, getAddress, channel_services, brandNameIsEditable, requestBody, brandData, _d, segmentLocation, segmentProfit, segmentTech, teamSizeList;
|
|
315
|
+
var _e, _f;
|
|
316
|
+
return __generator(this, function (_g) {
|
|
317
|
+
switch (_g.label) {
|
|
273
318
|
case 0:
|
|
274
319
|
_b = thunkApi.getState(), settings = _b.settings, brand = _b.brand;
|
|
275
|
-
|
|
320
|
+
brandRes = (brand.data.verify.responseBody || {}).brand;
|
|
321
|
+
_c = brandRes || {}, id = _c.id, data_status = _c.data_status;
|
|
276
322
|
isNameENNonEditable = hasNoneEditableValue(data_status, 'name.en');
|
|
277
323
|
isNameARNonEditable = hasNoneEditableValue(data_status, 'name.ar');
|
|
278
324
|
isChannelServicesNonEditable = hasNoneEditableValue(data_status, 'channel_services');
|
|
279
|
-
|
|
280
|
-
isSegmentTeamsNonEditable = hasNoneEditableValue(data_status, 'segment.teams');
|
|
281
|
-
salesChannels = formData.salesChannels, brandName = formData.brandName, segment = formData.segment, teamSize = formData.teamSize, brandLogoId = formData.brandLogoId;
|
|
282
|
-
segmentId = isSegmentTypeNonEditable ? undefined : segment && { id: segment.id };
|
|
283
|
-
teamSizeId = isSegmentTeamsNonEditable ? undefined : teamSize && { id: teamSize.id };
|
|
325
|
+
salesChannels = formData.salesChannels, brandName = formData.brandName, brandLogoId = formData.brandLogoId;
|
|
284
326
|
getAddress = function (value, isTwitter, isWeb) {
|
|
285
327
|
if (isTwitter)
|
|
286
328
|
return '@' + value.replaceAll('@', '');
|
|
@@ -306,27 +348,77 @@ export var updateBrand = createAsyncThunk('brandUpdateBrand', function (_a, thun
|
|
|
306
348
|
en: !isNameENNonEditable ? brandName : undefined,
|
|
307
349
|
ar: !isNameARNonEditable ? brandName : undefined
|
|
308
350
|
}
|
|
309
|
-
})), { logo: brandLogoId,
|
|
351
|
+
})), { logo: brandLogoId, channel_services: channel_services });
|
|
310
352
|
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
311
353
|
case 1:
|
|
312
|
-
brandData = (
|
|
313
|
-
|
|
314
|
-
|
|
354
|
+
brandData = (_g.sent()).brand;
|
|
355
|
+
return [4, thunkApi.dispatch(retrieveSegmentDataList()).unwrap()];
|
|
356
|
+
case 2:
|
|
357
|
+
_d = _g.sent(), segmentLocation = _d.segmentLocation, segmentProfit = _d.segmentProfit, segmentTech = _d.segmentTech;
|
|
358
|
+
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
359
|
+
case 3:
|
|
360
|
+
teamSizeList = _g.sent();
|
|
361
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
362
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
363
|
+
return [2, {
|
|
364
|
+
data: __assign({}, brandData),
|
|
365
|
+
formData: originalFormData,
|
|
366
|
+
teamSizeList: teamSizeList === null || teamSizeList === void 0 ? void 0 : teamSizeList.list,
|
|
367
|
+
segmentLocationList: segmentLocation,
|
|
368
|
+
segmentProfitList: segmentProfit,
|
|
369
|
+
segmentTechList: segmentTech
|
|
370
|
+
}];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
export var updateSegmentBrand = createAsyncThunk('brandUpdateBrandSegment', function (_a, thunkApi) {
|
|
376
|
+
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
377
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
378
|
+
var _b, settings, brand, brandRes, _c, id, data_status, isSegmentLocationNonEditable, isSegmentProfitNonEditable, isSegmentTechNonEditable, isSegmentTeamsNonEditable, segmentLocation, segmentProfit, segmentTech, teamSize, segmentLocationId, segmentProfitId, segmentTechId, teamSizeId, hasSegment, requestBody, brandData, currencyData, activities, activityList;
|
|
379
|
+
var _d, _e, _f;
|
|
380
|
+
return __generator(this, function (_g) {
|
|
381
|
+
switch (_g.label) {
|
|
382
|
+
case 0:
|
|
383
|
+
_b = thunkApi.getState(), settings = _b.settings, brand = _b.brand;
|
|
384
|
+
brandRes = (brand.data.verify.responseBody || {}).brand;
|
|
385
|
+
_c = brandRes || {}, id = _c.id, data_status = _c.data_status;
|
|
386
|
+
isSegmentLocationNonEditable = hasNoneEditableValue(data_status, 'segment.location_type');
|
|
387
|
+
isSegmentProfitNonEditable = hasNoneEditableValue(data_status, 'segment.profit_type');
|
|
388
|
+
isSegmentTechNonEditable = hasNoneEditableValue(data_status, 'segment.tech_type');
|
|
389
|
+
isSegmentTeamsNonEditable = hasNoneEditableValue(data_status, 'segment.teams');
|
|
390
|
+
segmentLocation = formData.segmentLocation, segmentProfit = formData.segmentProfit, segmentTech = formData.segmentTech, teamSize = formData.teamSize;
|
|
391
|
+
segmentLocationId = isSegmentLocationNonEditable ? undefined : segmentLocation && { id: segmentLocation.id };
|
|
392
|
+
segmentProfitId = isSegmentProfitNonEditable ? undefined : segmentProfit && { id: segmentProfit.id };
|
|
393
|
+
segmentTechId = isSegmentTechNonEditable ? undefined : segmentTech && { id: segmentTech.id };
|
|
394
|
+
teamSizeId = isSegmentTeamsNonEditable ? undefined : teamSize && { id: teamSize.id };
|
|
395
|
+
hasSegment = segmentLocationId || segmentProfitId || segmentTechId || teamSizeId;
|
|
396
|
+
requestBody = __assign({ id: id }, (hasSegment && {
|
|
397
|
+
segment: { location_type: segmentLocationId, profit_type: segmentProfitId, tech_type: segmentTechId, team: teamSizeId }
|
|
398
|
+
}));
|
|
399
|
+
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
400
|
+
case 1:
|
|
401
|
+
brandData = (_g.sent()).brand;
|
|
402
|
+
return [4, API.countryService.getCurrency(settings.data.businessCountry.iso2)];
|
|
315
403
|
case 2:
|
|
316
|
-
|
|
404
|
+
currencyData = _g.sent();
|
|
405
|
+
activities = (((_d = brand.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}).activities;
|
|
406
|
+
return [4, thunkApi.dispatch(retrieveDataList())];
|
|
407
|
+
case 3:
|
|
408
|
+
_g.sent();
|
|
317
409
|
if (activities) {
|
|
318
410
|
brandData = __assign(__assign({}, brandData), { entity_activities: activities || {} });
|
|
319
411
|
}
|
|
320
|
-
if (!!activities) return [3,
|
|
412
|
+
if (!!activities) return [3, 5];
|
|
321
413
|
return [4, API.dataService.getActivities()];
|
|
322
|
-
case 3:
|
|
323
|
-
activityList = (_h.sent()).list;
|
|
324
|
-
brandData = __assign(__assign({}, brandData), { entity_activities: activityList || {} });
|
|
325
|
-
_h.label = 4;
|
|
326
414
|
case 4:
|
|
415
|
+
activityList = (_g.sent()).list;
|
|
416
|
+
brandData = __assign(__assign({}, brandData), { entity_activities: activityList || {} });
|
|
417
|
+
_g.label = 5;
|
|
418
|
+
case 5:
|
|
327
419
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
328
|
-
(
|
|
329
|
-
return [2, { data: __assign({}, brandData), formData: originalFormData }];
|
|
420
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
421
|
+
return [2, { data: __assign({}, brandData), formData: originalFormData, currencyData: currencyData }];
|
|
330
422
|
}
|
|
331
423
|
});
|
|
332
424
|
});
|
|
@@ -345,13 +437,14 @@ export var retrieveEntityList = createAsyncThunk('retrieveEntityList', function
|
|
|
345
437
|
export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities', function (_a, thunkApi) {
|
|
346
438
|
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
347
439
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
348
|
-
var _b, settings, brand, _c, data_status, id, brandActivities, isActivitiesNonEditable, isCustomerBaseLocationNonEditable, isCustomerBaseNonEditable, isTermsNonEditable, isSalesRangeNonEditable, activities, customerLocations, expectedCustomer, expectedSale, termAndConditionChecked, refundPolicy, transactionPolicy, isTermsUndefined, removedActivities, payload, requestBody, customerLocation, customerBaseId, salesId, customerBase, brandData;
|
|
349
|
-
var
|
|
350
|
-
return __generator(this, function (
|
|
351
|
-
switch (
|
|
440
|
+
var _b, settings, brand, _c, brandRes, notification, _d, data_status, id, brandActivities, terms, isActivitiesNonEditable, isCustomerBaseLocationNonEditable, isCustomerBaseNonEditable, isTermsNonEditable, isSalesRangeNonEditable, activities, customerLocations, expectedCustomer, expectedSale, termAndConditionChecked, refundPolicy, transactionPolicy, isTermsUndefined, isAllTermsAgreed, isTermsAvailable, removedActivities, payload, requestBody, customerLocation, customerBaseId, salesId, customerBase, brandData;
|
|
441
|
+
var _e, _f, _g, _h;
|
|
442
|
+
return __generator(this, function (_j) {
|
|
443
|
+
switch (_j.label) {
|
|
352
444
|
case 0:
|
|
353
445
|
_b = thunkApi.getState(), settings = _b.settings, brand = _b.brand;
|
|
354
|
-
_c =
|
|
446
|
+
_c = brand.data.verify.responseBody || {}, brandRes = _c.brand, notification = _c.notification;
|
|
447
|
+
_d = brandRes || {}, data_status = _d.data_status, id = _d.id, brandActivities = _d.activities, terms = _d.terms;
|
|
355
448
|
isActivitiesNonEditable = hasNoneEditableValue(data_status, 'activities');
|
|
356
449
|
isCustomerBaseLocationNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'customer_base_location');
|
|
357
450
|
isCustomerBaseNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'customer_base');
|
|
@@ -359,6 +452,8 @@ export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities'
|
|
|
359
452
|
isSalesRangeNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'sales_range');
|
|
360
453
|
activities = formData.activities, customerLocations = formData.customerLocations, expectedCustomer = formData.expectedCustomer, expectedSale = formData.expectedSale, termAndConditionChecked = formData.termAndConditionChecked, refundPolicy = formData.refundPolicy, transactionPolicy = formData.transactionPolicy;
|
|
361
454
|
isTermsUndefined = termAndConditionChecked === undefined && refundPolicy === undefined && transactionPolicy === undefined;
|
|
455
|
+
isAllTermsAgreed = ((_e = terms === null || terms === void 0 ? void 0 : terms.filter(function (t) { return t === null || t === void 0 ? void 0 : t.agree; })) === null || _e === void 0 ? void 0 : _e.length) === 3;
|
|
456
|
+
isTermsAvailable = !(isTermsNonEditable && isTermsUndefined) && !isAllTermsAgreed;
|
|
362
457
|
removedActivities = (activities === null || activities === void 0 ? void 0 : activities.length) > 0 &&
|
|
363
458
|
(brandActivities || []).filter(function (brandActivity) { return !(activities || []).some(function (activity) { return activity.id === brandActivity.id; }); });
|
|
364
459
|
if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length) > 0)) return [3, 2];
|
|
@@ -368,15 +463,13 @@ export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities'
|
|
|
368
463
|
};
|
|
369
464
|
return [4, API.brandService.removeBrandActivity(payload)];
|
|
370
465
|
case 1:
|
|
371
|
-
|
|
372
|
-
|
|
466
|
+
_j.sent();
|
|
467
|
+
_j.label = 2;
|
|
373
468
|
case 2:
|
|
374
|
-
requestBody = {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
step_name: BRAND_STEP_NAMES.BRAND_ACTIVITIES
|
|
379
|
-
};
|
|
469
|
+
requestBody = __assign(__assign({ id: id, activities: isActivitiesNonEditable ? undefined : activities }, (isTermsAvailable && {
|
|
470
|
+
term_by: (_f = notification === null || notification === void 0 ? void 0 : notification.recipient) === null || _f === void 0 ? void 0 : _f.id,
|
|
471
|
+
term: ['general', 'refund', 'chargeback']
|
|
472
|
+
})), { step_name: BRAND_STEP_NAMES.BRAND_ACTIVITIES });
|
|
380
473
|
customerLocation = (customerLocations || []).map(function (location) { return ({
|
|
381
474
|
id: location.id
|
|
382
475
|
}); });
|
|
@@ -390,9 +483,9 @@ export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities'
|
|
|
390
483
|
}
|
|
391
484
|
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
392
485
|
case 3:
|
|
393
|
-
brandData = (
|
|
486
|
+
brandData = (_j.sent()).data;
|
|
394
487
|
thunkApi.dispatch(handleNextScreenStep());
|
|
395
|
-
(
|
|
488
|
+
(_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, id);
|
|
396
489
|
return [2, { data: __assign({}, brandData), formData: originalFormData }];
|
|
397
490
|
}
|
|
398
491
|
});
|
|
@@ -421,7 +514,7 @@ export var retrieveDataList = createAsyncThunk('brandRetrieveDataList', function
|
|
|
421
514
|
_a = _b.sent(), customerBases = _a[0].list, expectedSales = _a[1].list, expectedCustomerSales = _a[2].list;
|
|
422
515
|
return [2, {
|
|
423
516
|
customerBases: customerBases,
|
|
424
|
-
expectedSales: expectedSales,
|
|
517
|
+
expectedSales: (expectedSales === null || expectedSales === void 0 ? void 0 : expectedSales.length) ? expectedSales : EXPECTED_SALES_LIST,
|
|
425
518
|
expectedCustomerSales: expectedCustomerSales,
|
|
426
519
|
countryISO2: countryISO2
|
|
427
520
|
}];
|
|
@@ -459,6 +552,20 @@ export var updateBoardSuccess = createAsyncThunk('updateBoardBrandSuccess', func
|
|
|
459
552
|
}
|
|
460
553
|
});
|
|
461
554
|
}); });
|
|
555
|
+
export var onCloseCompleteBrand = createAsyncThunk('brand/onCloseCompleteBrand', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
556
|
+
var brand, _a, merchant, brandRes, entity;
|
|
557
|
+
return __generator(this, function (_b) {
|
|
558
|
+
switch (_b.label) {
|
|
559
|
+
case 0:
|
|
560
|
+
brand = thunkApi.getState().brand;
|
|
561
|
+
_a = brand.data.verify.responseBody || {}, merchant = _a.merchant, brandRes = _a.brand, entity = _a.entity;
|
|
562
|
+
return [4, thunkApi.dispatch(onCloseComplete({ merchantId: merchant === null || merchant === void 0 ? void 0 : merchant.id, brandId: brandRes === null || brandRes === void 0 ? void 0 : brandRes.id, entityId: entity === null || entity === void 0 ? void 0 : entity.id }))];
|
|
563
|
+
case 1:
|
|
564
|
+
_b.sent();
|
|
565
|
+
return [2];
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
}); });
|
|
462
569
|
var initialState = {
|
|
463
570
|
error: null,
|
|
464
571
|
loading: false,
|
|
@@ -467,6 +574,7 @@ var initialState = {
|
|
|
467
574
|
uploadingBrandLogo: false,
|
|
468
575
|
data: {
|
|
469
576
|
flowName: FlowsTypes.BRAND,
|
|
577
|
+
currency: '',
|
|
470
578
|
verify: {
|
|
471
579
|
token: ''
|
|
472
580
|
},
|
|
@@ -477,6 +585,12 @@ var initialState = {
|
|
|
477
585
|
brandName: '',
|
|
478
586
|
salesChannels: []
|
|
479
587
|
},
|
|
588
|
+
brandSegmentData: {
|
|
589
|
+
segmentLocation: undefined,
|
|
590
|
+
segmentTech: undefined,
|
|
591
|
+
segmentProfit: undefined,
|
|
592
|
+
teamSize: undefined
|
|
593
|
+
},
|
|
480
594
|
brandActivities: {
|
|
481
595
|
activities: [],
|
|
482
596
|
customerLocations: [],
|
|
@@ -516,32 +630,22 @@ export var brandSlice = createSlice({
|
|
|
516
630
|
state.customLoading = true;
|
|
517
631
|
})
|
|
518
632
|
.addCase(verifyLeadToken.fulfilled, function (state, action) {
|
|
519
|
-
var _a, _b
|
|
633
|
+
var _a, _b;
|
|
520
634
|
state.error = null;
|
|
521
635
|
state.customLoading = false;
|
|
522
|
-
var
|
|
636
|
+
var _c = action.payload, data = _c.data, token = _c.token, boardResponse = _c.boardResponse, salesChannels = _c.salesChannels, individualData = _c.individualData;
|
|
523
637
|
var brand = boardResponse.brand, entity = boardResponse.entity;
|
|
524
638
|
state.data.brandData.brandName = (((_a = brand === null || brand === void 0 ? void 0 : brand.name) === null || _a === void 0 ? void 0 : _a.en) || '').trim();
|
|
525
|
-
|
|
526
|
-
var _a, _b;
|
|
527
|
-
return segment.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.id);
|
|
528
|
-
})) === null || _b === void 0 ? void 0 : _b[0];
|
|
529
|
-
var selectedTeamSize = (_c = teamSizeList === null || teamSizeList === void 0 ? void 0 : teamSizeList.filter(function (team) {
|
|
530
|
-
var _a, _b;
|
|
531
|
-
return team.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.team) === null || _b === void 0 ? void 0 : _b.id);
|
|
532
|
-
})) === null || _c === void 0 ? void 0 : _c[0];
|
|
533
|
-
(_d = brand === null || brand === void 0 ? void 0 : brand.terms) === null || _d === void 0 ? void 0 : _d.forEach(function (element) {
|
|
639
|
+
(_b = brand === null || brand === void 0 ? void 0 : brand.terms) === null || _b === void 0 ? void 0 : _b.forEach(function (element) {
|
|
534
640
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
535
641
|
state.data.brandActivities.termAndConditionChecked = element.agree;
|
|
536
642
|
state.data.brandActivities.transactionPolicy = element.agree;
|
|
537
643
|
state.data.brandActivities.refundPolicy = element.agree;
|
|
538
644
|
}
|
|
539
645
|
});
|
|
540
|
-
state.data.brandData.segment = selectedSegment;
|
|
541
|
-
state.data.brandData.teamSize = selectedTeamSize;
|
|
542
646
|
var mappedSalesChannels = mapSalesChannel((brand === null || brand === void 0 ? void 0 : brand.channel_services) || []);
|
|
543
647
|
state.data.brandData.salesChannels = mappedSalesChannels;
|
|
544
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], salesChannels: mappedSalesChannels, activities: entity === null || entity === void 0 ? void 0 : entity.activities,
|
|
648
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], salesChannels: mappedSalesChannels, activities: entity === null || entity === void 0 ? void 0 : entity.activities, individualData: individualData });
|
|
545
649
|
state.data.verify.token = token;
|
|
546
650
|
})
|
|
547
651
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
@@ -564,34 +668,24 @@ export var brandSlice = createSlice({
|
|
|
564
668
|
state.error = null;
|
|
565
669
|
})
|
|
566
670
|
.addCase(verifyBrandLeadOTP.fulfilled, function (state, action) {
|
|
567
|
-
var _a, _b
|
|
671
|
+
var _a, _b;
|
|
568
672
|
state.loading = false;
|
|
569
673
|
state.error = null;
|
|
570
|
-
var
|
|
674
|
+
var _c = action.payload, data = _c.data, boardResponse = _c.boardResponse, formData = _c.formData, salesChannels = _c.salesChannels, individualData = _c.individualData;
|
|
571
675
|
var brand = boardResponse.brand, entity = boardResponse.entity;
|
|
572
676
|
state.data.otpData = formData;
|
|
573
677
|
state.data.otpData.responseBody = data;
|
|
574
678
|
state.data.brandData.brandName = (((_a = brand === null || brand === void 0 ? void 0 : brand.name) === null || _a === void 0 ? void 0 : _a.en) || '').trim();
|
|
575
|
-
var selectedSegment = (_b = segmentsList === null || segmentsList === void 0 ? void 0 : segmentsList.filter(function (segment) {
|
|
576
|
-
var _a, _b;
|
|
577
|
-
return segment.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.id);
|
|
578
|
-
})) === null || _b === void 0 ? void 0 : _b[0];
|
|
579
|
-
var selectedTeamSize = (_c = teamSizeList === null || teamSizeList === void 0 ? void 0 : teamSizeList.filter(function (team) {
|
|
580
|
-
var _a, _b;
|
|
581
|
-
return team.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.team) === null || _b === void 0 ? void 0 : _b.id);
|
|
582
|
-
})) === null || _c === void 0 ? void 0 : _c[0];
|
|
583
|
-
state.data.brandData.segment = selectedSegment;
|
|
584
|
-
state.data.brandData.teamSize = selectedTeamSize;
|
|
585
679
|
var mappedSalesChannels = mapSalesChannel((brand === null || brand === void 0 ? void 0 : brand.channel_services) || []);
|
|
586
680
|
state.data.brandData.salesChannels = mappedSalesChannels;
|
|
587
|
-
(
|
|
681
|
+
(_b = brand === null || brand === void 0 ? void 0 : brand.terms) === null || _b === void 0 ? void 0 : _b.forEach(function (element) {
|
|
588
682
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
589
683
|
state.data.brandActivities.termAndConditionChecked = element.agree;
|
|
590
684
|
state.data.brandActivities.transactionPolicy = element.agree;
|
|
591
685
|
state.data.brandActivities.refundPolicy = element.agree;
|
|
592
686
|
}
|
|
593
687
|
});
|
|
594
|
-
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], activities: entity === null || entity === void 0 ? void 0 : entity.activities, salesChannels: mappedSalesChannels,
|
|
688
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], activities: entity === null || entity === void 0 ? void 0 : entity.activities, salesChannels: mappedSalesChannels, individualData: individualData });
|
|
595
689
|
})
|
|
596
690
|
.addCase(verifyBrandLeadOTP.rejected, function (state, action) {
|
|
597
691
|
state.loading = false;
|
|
@@ -617,15 +711,54 @@ export var brandSlice = createSlice({
|
|
|
617
711
|
.addCase(updateBrand.fulfilled, function (state, action) {
|
|
618
712
|
state.loading = false;
|
|
619
713
|
state.error = null;
|
|
620
|
-
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
714
|
+
var _a = action.payload, data = _a.data, formData = _a.formData, segmentLocationList = _a.segmentLocationList, segmentProfitList = _a.segmentProfitList, segmentTechList = _a.segmentTechList, teamSizeList = _a.teamSizeList;
|
|
715
|
+
var segment = data.segment;
|
|
716
|
+
state.data.brandData = formData;
|
|
717
|
+
var selectedSegmentLocation = segmentLocationList === null || segmentLocationList === void 0 ? void 0 : segmentLocationList.find(function (location) {
|
|
718
|
+
var _a;
|
|
719
|
+
return location.id === ((_a = segment === null || segment === void 0 ? void 0 : segment.location_type) === null || _a === void 0 ? void 0 : _a.id);
|
|
720
|
+
});
|
|
721
|
+
var selectedSegmentProfit = segmentProfitList === null || segmentProfitList === void 0 ? void 0 : segmentProfitList.find(function (profit) {
|
|
722
|
+
var _a;
|
|
723
|
+
return profit.id === ((_a = segment === null || segment === void 0 ? void 0 : segment.profit_type) === null || _a === void 0 ? void 0 : _a.id);
|
|
724
|
+
});
|
|
725
|
+
var selectedSegmentTech = segmentTechList === null || segmentTechList === void 0 ? void 0 : segmentTechList.find(function (tech) {
|
|
726
|
+
var _a;
|
|
727
|
+
return tech.id === ((_a = segment === null || segment === void 0 ? void 0 : segment.tech_type) === null || _a === void 0 ? void 0 : _a.id);
|
|
728
|
+
});
|
|
729
|
+
var selectedTeamSize = teamSizeList === null || teamSizeList === void 0 ? void 0 : teamSizeList.find(function (team) {
|
|
730
|
+
var _a;
|
|
731
|
+
return team.id === ((_a = segment === null || segment === void 0 ? void 0 : segment.team) === null || _a === void 0 ? void 0 : _a.id);
|
|
732
|
+
});
|
|
733
|
+
state.data.brandSegmentData.segmentLocation = selectedSegmentLocation || (segmentLocationList === null || segmentLocationList === void 0 ? void 0 : segmentLocationList[0]);
|
|
734
|
+
state.data.brandSegmentData.segmentProfit = selectedSegmentProfit || (segmentProfitList === null || segmentProfitList === void 0 ? void 0 : segmentProfitList[0]);
|
|
735
|
+
state.data.brandSegmentData.segmentTech = selectedSegmentTech || (segmentTechList === null || segmentTechList === void 0 ? void 0 : segmentTechList[1]);
|
|
736
|
+
state.data.brandSegmentData.teamSize = selectedTeamSize;
|
|
737
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { teamSizeList: teamSizeList, segmentLocationList: segmentLocationList, segmentProfitList: segmentProfitList, segmentTechList: segmentTechList });
|
|
738
|
+
})
|
|
739
|
+
.addCase(updateBrand.rejected, function (state, action) {
|
|
740
|
+
state.loading = false;
|
|
741
|
+
state.error = action.error.message;
|
|
742
|
+
})
|
|
743
|
+
.addCase(updateSegmentBrand.pending, function (state) {
|
|
744
|
+
state.loading = true;
|
|
745
|
+
state.error = null;
|
|
746
|
+
})
|
|
747
|
+
.addCase(updateSegmentBrand.fulfilled, function (state, action) {
|
|
748
|
+
var _a;
|
|
749
|
+
state.loading = false;
|
|
750
|
+
state.error = null;
|
|
751
|
+
var _b = action.payload, data = _b.data, formData = _b.formData, currencyData = _b.currencyData;
|
|
621
752
|
var entity_activities = data.entity_activities, activities = data.activities, operations = data.operations, terms = data.terms;
|
|
622
753
|
var selectedActivity = entity_activities === null || entity_activities === void 0 ? void 0 : entity_activities.filter(function (activity) {
|
|
623
754
|
return activities === null || activities === void 0 ? void 0 : activities.find(function (value) { return activity.id === value.id; });
|
|
624
755
|
});
|
|
625
|
-
state.data.
|
|
756
|
+
state.data.brandSegmentData = formData;
|
|
757
|
+
if ((_a = currencyData === null || currencyData === void 0 ? void 0 : currencyData.code) === null || _a === void 0 ? void 0 : _a.english)
|
|
758
|
+
state.data.currency = currencyData.code.english;
|
|
626
759
|
state.data.brandActivities.activities = (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : [];
|
|
627
|
-
var
|
|
628
|
-
var
|
|
760
|
+
var _c = operations || {}, customer_base = _c.customer_base, sales = _c.sales;
|
|
761
|
+
var _d = customer_base || {}, locations = _d.locations, customerBase = __rest(_d, ["locations"]);
|
|
629
762
|
if (locations && locations.length)
|
|
630
763
|
state.data.brandActivities.customerLocations = locations;
|
|
631
764
|
if (!!sales)
|
|
@@ -640,6 +773,10 @@ export var brandSlice = createSlice({
|
|
|
640
773
|
}
|
|
641
774
|
});
|
|
642
775
|
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { activities: entity_activities });
|
|
776
|
+
})
|
|
777
|
+
.addCase(updateSegmentBrand.rejected, function (state, action) {
|
|
778
|
+
state.loading = false;
|
|
779
|
+
state.error = action.error.message;
|
|
643
780
|
})
|
|
644
781
|
.addCase(updateBrandActivities.rejected, function (state, action) {
|
|
645
782
|
state.loading = false;
|
|
@@ -653,7 +790,15 @@ export var brandSlice = createSlice({
|
|
|
653
790
|
state.loading = false;
|
|
654
791
|
state.error = null;
|
|
655
792
|
})
|
|
656
|
-
.addCase(
|
|
793
|
+
.addCase(retrieveSegmentDataList.pending, function (state) {
|
|
794
|
+
state.loading = true;
|
|
795
|
+
state.error = null;
|
|
796
|
+
})
|
|
797
|
+
.addCase(retrieveSegmentDataList.fulfilled, function (state) {
|
|
798
|
+
state.loading = false;
|
|
799
|
+
state.error = null;
|
|
800
|
+
})
|
|
801
|
+
.addCase(retrieveSegmentDataList.rejected, function (state, action) {
|
|
657
802
|
state.loading = false;
|
|
658
803
|
state.error = action.error.message;
|
|
659
804
|
})
|
|
@@ -707,7 +852,11 @@ export var brandSlice = createSlice({
|
|
|
707
852
|
state.loading = false;
|
|
708
853
|
state.error = null;
|
|
709
854
|
var flows = (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.response) || {}).flows;
|
|
710
|
-
state.data.verify.responseBody
|
|
855
|
+
var _b = state.data.verify.responseBody || {}, individuals = _b.individuals, individualData = _b.individualData;
|
|
856
|
+
var data_state = (((individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized) ? individuals : individualData) || {}).data_state;
|
|
857
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
858
|
+
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
859
|
+
}));
|
|
711
860
|
})
|
|
712
861
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
713
862
|
state.loading = true;
|
|
@@ -716,6 +865,18 @@ export var brandSlice = createSlice({
|
|
|
716
865
|
.addCase(updateBoardSuccess.rejected, function (state, action) {
|
|
717
866
|
state.loading = false;
|
|
718
867
|
state.error = action.error.message;
|
|
868
|
+
})
|
|
869
|
+
.addCase(onCloseCompleteBrand.pending, function (state) {
|
|
870
|
+
state.loading = true;
|
|
871
|
+
state.error = null;
|
|
872
|
+
})
|
|
873
|
+
.addCase(onCloseCompleteBrand.fulfilled, function (state) {
|
|
874
|
+
state.loading = false;
|
|
875
|
+
state.error = null;
|
|
876
|
+
})
|
|
877
|
+
.addCase(onCloseCompleteBrand.rejected, function (state, action) {
|
|
878
|
+
state.loading = false;
|
|
879
|
+
state.error = action.error.message;
|
|
719
880
|
});
|
|
720
881
|
}
|
|
721
882
|
});
|