@tap-payments/auth-jsconnect 2.4.29-test → 2.4.31-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +1 -1
- package/build/api/auth.js +1 -1
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +2 -2
- package/build/api/board.js +1 -1
- package/build/api/brand.d.ts +1 -1
- package/build/api/brand.js +1 -1
- package/build/api/country.js +1 -1
- package/build/api/data.js +1 -1
- package/build/api/document.js +1 -1
- package/build/api/entity.js +1 -1
- package/build/api/file.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/init.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/location.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -10
- package/build/app/rootReducer.js +10 -10
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +5 -5
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/AnimationFlow.js +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.js +3 -3
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.js +4 -4
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +2 -2
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/DatePicker/customStyle.css +86 -0
- package/build/components/FileInput/DragAndDrop.js +6 -6
- package/build/components/FileInput/UploadInput.js +2 -2
- package/build/components/Footer/Footer.js +3 -3
- package/build/components/Input/Input.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +2 -2
- package/build/components/Tooltip/Tooltip.js +2 -2
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +1 -1
- package/build/features/app/bank/bankStore.d.ts +3 -2
- package/build/features/app/bank/bankStore.js +35 -23
- package/build/features/app/brand/brandStore.d.ts +4 -2
- package/build/features/app/brand/brandStore.js +71 -51
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +5 -5
- package/build/features/app/connect/connectStore.d.ts +2 -2
- package/build/features/app/connect/connectStore.js +5 -5
- package/build/features/app/connectExpress/connectExpressStore.d.ts +2 -2
- package/build/features/app/connectExpress/connectExpressStore.js +6 -6
- package/build/features/app/entity/entityStore.d.ts +6 -2
- package/build/features/app/entity/entityStore.js +92 -58
- package/build/features/app/individual/individualStore.d.ts +147 -0
- package/build/features/app/individual/individualStore.js +22 -22
- package/build/features/app/password/passwordStore.d.ts +4 -2
- package/build/features/app/password/passwordStore.js +74 -38
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +3 -3
- package/build/features/app/tax/taxStore.d.ts +3 -2
- package/build/features/app/tax/taxStore.js +34 -23
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +10 -10
- package/build/features/bank/screens/BankDetails/BankDetails.js +9 -9
- package/build/features/bank/screens/BankDetails/BankName.js +8 -8
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +1 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +6 -6
- package/build/features/bank/screens/BankDetails/Beneficiary.js +6 -6
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +10 -10
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/bank/screens/Verify/OTPInput.js +5 -5
- package/build/features/bank/screens/Verify/Verify.js +8 -8
- package/build/features/brand/Brand.d.ts +1 -1
- package/build/features/brand/Brand.js +10 -10
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +12 -12
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +7 -7
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +11 -11
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +8 -8
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +12 -12
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +1 -1
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +10 -10
- package/build/features/brand/screens/BrandActivities/TAC.js +10 -10
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +8 -8
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +9 -9
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +7 -7
- package/build/features/brand/screens/BrandInfo/BrandName.js +9 -9
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +4 -4
- package/build/features/brand/screens/BrandInfo/Segments.js +9 -9
- package/build/features/brand/screens/BrandInfo/TeamSize.js +9 -9
- package/build/features/brand/screens/BrandInfo/validation.js +1 -1
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/brand/screens/Success/Success.js +3 -3
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/brand/screens/Verify/OTPInput.js +5 -5
- package/build/features/brand/screens/Verify/Verify.js +8 -8
- package/build/features/business/Business.d.ts +1 -1
- package/build/features/business/Business.js +10 -10
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.js +12 -12
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +5 -5
- package/build/features/business/screens/BrandDetails/BrandDetails.js +7 -7
- package/build/features/business/screens/BrandDetails/BrandName.js +4 -4
- package/build/features/business/screens/BrandDetails/Header.js +5 -5
- package/build/features/business/screens/BrandDetails/LicenseInfo.js +4 -4
- package/build/features/business/screens/BrandDetails/SalesChannel.js +5 -5
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Article.js +7 -7
- package/build/features/business/screens/BusinessType/BusinessType.js +10 -10
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +13 -13
- package/build/features/business/screens/BusinessType/EntityName.js +6 -6
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +7 -7
- package/build/features/business/screens/BusinessType/LicenseList.js +13 -13
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseType.js +14 -14
- package/build/features/business/screens/BusinessType/SelectType.js +6 -6
- package/build/features/business/screens/BusinessType/validation.js +2 -2
- package/build/features/business/screens/CivilID/CivilID.js +6 -6
- package/build/features/business/screens/CivilID/IDNumber.js +6 -6
- package/build/features/business/screens/Customers/CustomerLocations.js +11 -11
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +9 -9
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +11 -11
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +10 -10
- package/build/features/business/screens/Customers/TransactionPolicy.js +7 -7
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +5 -5
- package/build/features/business/screens/IDBOD/IDBOD.js +6 -6
- package/build/features/business/screens/OTP/OTP.js +9 -9
- package/build/features/business/screens/OTP/OTPInput.js +4 -4
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/business/screens/Verify/OTPInput.js +5 -5
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +4 -4
- package/build/features/connect/Connect.d.ts +1 -1
- package/build/features/connect/Connect.js +10 -10
- package/build/features/connect/screens/CivilID/CivilID.js +8 -8
- package/build/features/connect/screens/CivilID/IDNumber.js +6 -6
- package/build/features/connect/screens/Individual/Email.js +6 -6
- package/build/features/connect/screens/Individual/Individual.js +11 -11
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +12 -12
- package/build/features/connect/screens/Individual/Name.js +5 -5
- package/build/features/connect/screens/Individual/validation.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +10 -10
- package/build/features/connect/screens/Merchant/BrandName.js +8 -8
- package/build/features/connect/screens/Merchant/Merchant.js +8 -8
- package/build/features/connect/screens/Merchant/SalesChannels.js +4 -4
- package/build/features/connect/screens/Merchant/Segments.js +9 -9
- package/build/features/connect/screens/Merchant/TAC.js +9 -9
- package/build/features/connect/screens/Merchant/TeamSize.js +9 -9
- package/build/features/connect/screens/Merchant/validation.js +1 -1
- package/build/features/connect/screens/Mobile/Mobile.js +11 -11
- package/build/features/connect/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connect/screens/Mobile/Title.js +2 -2
- package/build/features/connect/screens/NID/DOB.js +5 -5
- package/build/features/connect/screens/NID/IDNumber.js +7 -7
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +10 -10
- package/build/features/connect/screens/OTP/OTPInput.js +5 -5
- package/build/features/connect/screens/ThankYou/ThankYou.js +4 -4
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +5 -5
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.js +10 -10
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +3 -3
- package/build/features/connectExpress/screens/Brand/Brand.js +9 -9
- package/build/features/connectExpress/screens/CivilID/CivilID.js +8 -8
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +6 -6
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +6 -6
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -6
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +13 -13
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +10 -10
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +12 -12
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +8 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +11 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +6 -6
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +11 -11
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +5 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +5 -5
- package/build/features/connectExpress/screens/IdentityOTP/OTP.js +10 -10
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +5 -5
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +4 -4
- package/build/features/connectExpress/screens/Mobile/Mobile.js +10 -10
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/connectExpress/screens/Mobile/TAC.js +8 -8
- package/build/features/connectExpress/screens/Mobile/Title.js +2 -2
- package/build/features/connectExpress/screens/NID/DOB.js +5 -5
- package/build/features/connectExpress/screens/NID/IDNumber.js +9 -9
- package/build/features/connectExpress/screens/NID/NID.js +8 -8
- package/build/features/connectExpress/screens/NID/TAC.js +8 -8
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +5 -5
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +7 -7
- package/build/features/connectExpress/screens/NIDMissed/NID.js +7 -7
- package/build/features/connectExpress/screens/OTP/OTP.js +10 -10
- package/build/features/connectExpress/screens/OTP/OTPInput.js +5 -5
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +4 -4
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +4 -4
- package/build/features/entity/Entity.d.ts +1 -1
- package/build/features/entity/Entity.js +10 -10
- package/build/features/entity/screens/EntityCapital/ActivityList.js +12 -12
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -7
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +6 -6
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -7
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +7 -7
- package/build/features/entity/screens/EntityName/Article.d.ts +1 -1
- package/build/features/entity/screens/EntityName/Article.js +7 -7
- package/build/features/entity/screens/EntityName/EntityName.js +9 -9
- package/build/features/entity/screens/EntityName/EntityTypeList.js +12 -12
- package/build/features/entity/screens/EntityName/ExpiryDate.js +6 -6
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -5
- package/build/features/entity/screens/EntityName/LegalName.js +6 -6
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -8
- package/build/features/entity/screens/EntityName/LicenseNumber.js +10 -10
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +7 -7
- package/build/features/entity/screens/EntityName/validation.js +2 -2
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/entity/screens/Success/Success.js +3 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/entity/screens/Verify/OTPInput.js +5 -5
- package/build/features/entity/screens/Verify/Verify.js +8 -8
- package/build/features/featuresScreens.d.ts +1 -1
- package/build/features/featuresScreens.js +79 -79
- package/build/features/individual/Individual.d.ts +1 -1
- package/build/features/individual/Individual.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +11 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +11 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +7 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +3 -3
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +8 -8
- package/build/features/individual/screens/IndividualList/IndividualList.js +8 -8
- package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/MobileNumber.js +11 -11
- package/build/features/individual/screens/IndividualList/UserList.js +11 -11
- package/build/features/individual/screens/IndividualList/validation.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/validation.js +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +9 -9
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -4
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +7 -7
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +6 -6
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +9 -9
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +10 -10
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +5 -5
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +8 -8
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +11 -11
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +8 -8
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/individual/screens/Verify/OTPInput.js +5 -5
- package/build/features/individual/screens/Verify/Verify.js +8 -8
- package/build/features/password/Password.d.ts +1 -1
- package/build/features/password/Password.js +10 -10
- package/build/features/password/screens/CreatePassword/ConditionText.js +1 -1
- package/build/features/password/screens/CreatePassword/ConfirmPassword.js +3 -3
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -8
- package/build/features/password/screens/CreatePassword/Password.js +6 -6
- package/build/features/password/screens/OTP/OTP.js +9 -9
- package/build/features/password/screens/OTP/OTPInput.js +4 -4
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/password/screens/Verify/OTPInput.js +5 -5
- package/build/features/password/screens/Verify/Verify.js +8 -8
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Address/Address.d.ts +1 -1
- package/build/features/shared/Address/Address.js +2 -2
- package/build/features/shared/Address/CountryList.d.ts +2 -2
- package/build/features/shared/Address/CountryList.js +7 -7
- package/build/features/shared/Address/InputSelect.d.ts +1 -1
- package/build/features/shared/Address/InputSelect.js +7 -7
- package/build/features/shared/Background/Background.js +2 -2
- package/build/features/shared/Background/LogoBackground.js +3 -3
- package/build/features/shared/Button/AbsherButton.d.ts +1 -1
- package/build/features/shared/Button/AbsherButton.js +3 -3
- package/build/features/shared/Button/Button.d.ts +1 -1
- package/build/features/shared/Button/Button.js +7 -7
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +3 -3
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +7 -7
- package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
- package/build/features/shared/Button/IndividualActionButtons.js +5 -5
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +4 -4
- package/build/features/shared/DataLoading/DataLoading.js +4 -4
- package/build/features/shared/Dialog/CloseDialog.js +2 -2
- package/build/features/shared/Dialog/DialogContainer.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornment.js +2 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +2 -2
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Footer/PoweredByFooter.js +3 -3
- package/build/features/shared/GenericError/GenericError.js +4 -4
- package/build/features/shared/Input/Input.d.ts +1 -1
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/PaciVerification/PaciVerification.js +5 -5
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +3 -3
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +1 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +9 -9
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +6 -6
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +1 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +6 -6
- package/build/features/shared/SuccessScreen/SuccessScreen.js +6 -6
- package/build/features/shared/UploadFile/FileUpload.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.js +8 -8
- package/build/features/shared/UploadFile/UploadFile.js +10 -10
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +2 -2
- package/build/features/shared/UploadFile/UploadWrapper.js +7 -7
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +1 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.js +8 -8
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +2 -2
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +7 -7
- package/build/features/signIn/SignIn.d.ts +1 -1
- package/build/features/signIn/SignIn.js +10 -10
- package/build/features/signIn/screens/Email/Email.js +8 -8
- package/build/features/signIn/screens/Email/EmailField.js +5 -5
- package/build/features/signIn/screens/Email/validation.js +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.js +9 -9
- package/build/features/signIn/screens/Mobile/MobileNumber.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/MobileNumber.js +12 -12
- package/build/features/signIn/screens/OTP/OTP.js +9 -9
- package/build/features/signIn/screens/OTP/OTPInput.js +4 -4
- package/build/features/signIn/screens/Password/Password.js +7 -7
- package/build/features/signIn/screens/Password/PasswordInput.js +3 -3
- package/build/features/tax/Tax.d.ts +1 -1
- package/build/features/tax/Tax.js +10 -10
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +3 -3
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +5 -5
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -3
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +8 -8
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +8 -8
- package/build/features/tax/screens/TaxDetails/VATId.js +6 -6
- package/build/features/tax/screens/Verify/OTPInput.js +5 -5
- package/build/features/tax/screens/Verify/Verify.js +8 -8
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +4 -4
- package/build/hooks/useAppSelector.d.ts +1 -1
- package/build/hooks/useAppTheme.d.ts +1 -1
- package/build/hooks/useAppTheme.js +3 -3
- package/build/hooks/useCountry.js +1 -1
- package/build/hooks/useDataNoneEditable.d.ts +1 -1
- package/build/hooks/useDataNoneEditable.js +1 -1
- package/build/hooks/useDataVerified.d.ts +1 -1
- package/build/hooks/useDataVerified.js +1 -1
- package/build/hooks/useErrorListener.js +1 -1
- package/build/hooks/useExcludeReadOnlyFelids.js +1 -1
- package/build/hooks/useFormReadOnly.js +1 -1
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.js +1 -1
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/hooks/useVerifyToken.d.ts +1 -1
- package/build/hooks/useVerifyToken.js +2 -2
- package/build/i18n.js +1 -1
- package/build/index.css +140 -0
- package/build/index.d.ts +10 -10
- package/build/index.js +10 -10
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +4 -3
- package/build/utils/array.js +67 -1
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +1 -1
- package/build/utils/object.js +1 -1
- package/build/utils/rsa.js +1 -1
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +4 -4
- package/package.json +1 -1
|
@@ -47,18 +47,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import API from '
|
|
51
|
-
import { DocumentPurpose, FlowsTypes } from '
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '
|
|
53
|
-
import { BANK_STEP_NAMES } from '
|
|
54
|
-
import { hasNoneEditableValue, isStringHasOneAsterisk, sleep } from '
|
|
50
|
+
import API from '../../../api';
|
|
51
|
+
import { DocumentPurpose, FlowsTypes } from '../../../@types';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
53
|
+
import { BANK_STEP_NAMES } from '../../../constants';
|
|
54
|
+
import { hasNoneEditableValue, isStringHasOneAsterisk, retrieveIndividualData, sleep } from '../../../utils';
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_a, thunkApi) {
|
|
56
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
57
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var payload, data, boardData, boardInfoData, _b, board_id, board_info_id, countryIso2;
|
|
59
|
-
var
|
|
60
|
-
return __generator(this, function (
|
|
61
|
-
switch (
|
|
58
|
+
var payload, data, boardData, boardInfoData, individualData, _b, board_id, board_info_id, _c, id_1, type_1, serviceCallBack, _d, boardRes, individualRes, countryIso2;
|
|
59
|
+
var _e, _f, _g, _h, _j;
|
|
60
|
+
return __generator(this, function (_k) {
|
|
61
|
+
switch (_k.label) {
|
|
62
62
|
case 0:
|
|
63
63
|
payload = {
|
|
64
64
|
service_name: 'tap_email',
|
|
@@ -66,23 +66,30 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
66
66
|
};
|
|
67
67
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
68
68
|
case 1:
|
|
69
|
-
data = (
|
|
70
|
-
|
|
71
|
-
if ((
|
|
69
|
+
data = (_k.sent()).data;
|
|
70
|
+
individualData = undefined;
|
|
71
|
+
if ((_e = data.errors) === null || _e === void 0 ? void 0 : _e.length)
|
|
72
72
|
throw new Error(data.errors[0].description);
|
|
73
73
|
_b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id;
|
|
74
|
-
if (!board_id) return [3,
|
|
74
|
+
if (!board_id) return [3, 6];
|
|
75
75
|
if (!board_info_id) return [3, 3];
|
|
76
76
|
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
77
77
|
case 2:
|
|
78
|
-
boardInfoData =
|
|
79
|
-
|
|
78
|
+
boardInfoData = _k.sent();
|
|
79
|
+
_k.label = 3;
|
|
80
80
|
case 3: return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
81
81
|
case 4:
|
|
82
|
-
boardData =
|
|
83
|
-
|
|
82
|
+
boardData = _k.sent();
|
|
83
|
+
_c = ((_f = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _f === void 0 ? void 0 : _f.recipient) || {}, id_1 = _c.id, type_1 = _c.type;
|
|
84
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_1, type_1); };
|
|
85
|
+
return [4, retrieveIndividualData(type_1, boardData, serviceCallBack)];
|
|
84
86
|
case 5:
|
|
85
|
-
|
|
87
|
+
_d = _k.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
88
|
+
boardData = boardRes;
|
|
89
|
+
individualData = individualRes;
|
|
90
|
+
_k.label = 6;
|
|
91
|
+
case 6:
|
|
92
|
+
countryIso2 = (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.country;
|
|
86
93
|
if (countryIso2)
|
|
87
94
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
88
95
|
if (isInternally)
|
|
@@ -95,14 +102,15 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
95
102
|
}
|
|
96
103
|
return [2, {
|
|
97
104
|
data: data,
|
|
105
|
+
individualData: individualData,
|
|
98
106
|
boardResponse: {
|
|
99
107
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
100
108
|
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
101
109
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
102
110
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
103
111
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
104
|
-
name: (
|
|
105
|
-
contact: (
|
|
112
|
+
name: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.names,
|
|
113
|
+
contact: (_j = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _j === void 0 ? void 0 : _j.contact,
|
|
106
114
|
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
107
115
|
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
108
116
|
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
@@ -342,13 +350,13 @@ export var bankSlice = createSlice({
|
|
|
342
350
|
var _a;
|
|
343
351
|
state.error = null;
|
|
344
352
|
state.customLoading = false;
|
|
345
|
-
var _b = action.payload, data = _b.data, token = _b.token, boardResponse = _b.boardResponse;
|
|
353
|
+
var _b = action.payload, data = _b.data, token = _b.token, boardResponse = _b.boardResponse, individualData = _b.individualData;
|
|
346
354
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
347
355
|
if (description) {
|
|
348
356
|
state.error = description;
|
|
349
357
|
return;
|
|
350
358
|
}
|
|
351
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: data.id });
|
|
359
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: data.id, individualData: individualData });
|
|
352
360
|
state.data.verify.token = token;
|
|
353
361
|
var _c = (boardResponse === null || boardResponse === void 0 ? void 0 : boardResponse.bank_account) || {}, bank_name = _c.bank_name, beneficiary_name = _c.beneficiary_name, iban = _c.iban, is_acknowledged = _c.is_acknowledged;
|
|
354
362
|
state.data.bankData.bankName = bank_name || '';
|
|
@@ -438,7 +446,11 @@ export var bankSlice = createSlice({
|
|
|
438
446
|
return;
|
|
439
447
|
}
|
|
440
448
|
var flows = response.flows;
|
|
441
|
-
state.data.verify.responseBody
|
|
449
|
+
var _b = state.data.verify.responseBody || {}, individuals = _b.individuals, individualData = _b.individualData;
|
|
450
|
+
var data_state = (individualData || {}).data_state;
|
|
451
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
452
|
+
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
453
|
+
}));
|
|
442
454
|
})
|
|
443
455
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
444
456
|
state.loading = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, AsyncThunkParams, BrandActivitiesFormValues, BrandFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { ActionState, AsyncThunkParams, BrandActivitiesFormValues, BrandFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
interface VerifyLeadTokenProps {
|
|
5
5
|
token: string;
|
|
@@ -7,6 +7,7 @@ interface VerifyLeadTokenProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
9
|
data: any;
|
|
10
|
+
individualData: any;
|
|
10
11
|
boardResponse: {
|
|
11
12
|
user: any;
|
|
12
13
|
brand: any;
|
|
@@ -29,6 +30,7 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
29
30
|
}, void, {}>;
|
|
30
31
|
export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
31
32
|
data: any;
|
|
33
|
+
individualData: any;
|
|
32
34
|
boardResponse: {
|
|
33
35
|
user: any;
|
|
34
36
|
brand: any;
|
|
@@ -58,18 +58,18 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
58
58
|
};
|
|
59
59
|
var _a;
|
|
60
60
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
61
|
-
import API from '
|
|
62
|
-
import { FlowsTypes } from '
|
|
63
|
-
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '
|
|
64
|
-
import { BRAND_STEP_NAMES } from '
|
|
65
|
-
import { hasNoneEditableValue, isKW, isTwitter, isWebsite, mapSalesChannel, sleep } from '
|
|
61
|
+
import API from '../../../api';
|
|
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, 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, _b, board_id, board_info_id, segmentsList, salesChannels, teamSizeList, boardData, boardInfoData;
|
|
70
|
-
var
|
|
71
|
-
return __generator(this, function (
|
|
72
|
-
switch (
|
|
69
|
+
var payload, data, countryIso2, _b, board_id, board_info_id, segmentsList, salesChannels, teamSizeList, 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,7 +77,7 @@ 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
|
}
|
|
@@ -88,44 +88,52 @@ export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (
|
|
|
88
88
|
if (!board_id) {
|
|
89
89
|
throw new Error('Internal server error');
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
individualData = undefined;
|
|
92
92
|
if (isInternally)
|
|
93
93
|
data.step_name = BRAND_STEP_NAMES.BRAND_INFO;
|
|
94
|
-
if (!(data.step_name !== BRAND_STEP_NAMES.PHONE_AUTH || isInternally)) return [3,
|
|
94
|
+
if (!(data.step_name !== BRAND_STEP_NAMES.PHONE_AUTH || isInternally)) return [3, 9];
|
|
95
95
|
if (!board_info_id) return [3, 3];
|
|
96
96
|
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
97
97
|
case 2:
|
|
98
|
-
boardInfoData =
|
|
99
|
-
|
|
98
|
+
boardInfoData = _j.sent();
|
|
99
|
+
_j.label = 3;
|
|
100
100
|
case 3: return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
101
101
|
case 4:
|
|
102
|
-
boardData =
|
|
102
|
+
boardData = _j.sent();
|
|
103
|
+
_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;
|
|
104
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_1, type_1); };
|
|
105
|
+
return [4, retrieveIndividualData(type_1, boardData, serviceCallBack)];
|
|
106
|
+
case 5:
|
|
107
|
+
_d = _j.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
108
|
+
boardData = boardRes;
|
|
109
|
+
individualData = individualRes;
|
|
103
110
|
if (!countryIso2) {
|
|
104
|
-
countryIso2 = (
|
|
111
|
+
countryIso2 = (_f = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _f === void 0 ? void 0 : _f.country;
|
|
105
112
|
if (countryIso2)
|
|
106
113
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
107
114
|
}
|
|
108
115
|
return [4, API.dataService.getSegments({ page: 0 })];
|
|
109
|
-
case 5:
|
|
110
|
-
segmentsList = _f.sent();
|
|
111
|
-
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
112
116
|
case 6:
|
|
113
|
-
|
|
114
|
-
return [4, API.dataService.
|
|
117
|
+
segmentsList = _j.sent();
|
|
118
|
+
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
115
119
|
case 7:
|
|
116
|
-
|
|
120
|
+
salesChannels = _j.sent();
|
|
121
|
+
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
122
|
+
case 8:
|
|
123
|
+
teamSizeList = _j.sent();
|
|
117
124
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
|
|
118
|
-
|
|
119
|
-
case
|
|
125
|
+
_j.label = 9;
|
|
126
|
+
case 9: return [2, {
|
|
120
127
|
data: data,
|
|
128
|
+
individualData: individualData,
|
|
121
129
|
boardResponse: {
|
|
122
130
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
123
131
|
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
124
132
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
125
133
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
126
134
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
127
|
-
name: (
|
|
128
|
-
contact: (
|
|
135
|
+
name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
|
|
136
|
+
contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
|
|
129
137
|
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
130
138
|
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
131
139
|
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
@@ -157,59 +165,67 @@ export var resendOTP = createAsyncThunk('brandResendOTP', function (params, thun
|
|
|
157
165
|
});
|
|
158
166
|
}); });
|
|
159
167
|
export var verifyBrandLeadOTP = createAsyncThunk('verifyBrandLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
160
|
-
var _a, brand, settings, responseBody, payload, data, _b, board_id, board_info_id, boardInfoData, boardData, segmentsList, salesChannels, teamSizeList;
|
|
161
|
-
var
|
|
162
|
-
return __generator(this, function (
|
|
163
|
-
switch (
|
|
168
|
+
var _a, brand, settings, responseBody, payload, data, _b, board_id, board_info_id, boardInfoData, individualData, boardData, _c, id, type, serviceCallBack, _d, boardRes, individualRes, segmentsList, salesChannels, teamSizeList;
|
|
169
|
+
var _e, _f, _g, _h, _j, _k, _l;
|
|
170
|
+
return __generator(this, function (_m) {
|
|
171
|
+
switch (_m.label) {
|
|
164
172
|
case 0:
|
|
165
173
|
_a = thunkApi.getState(), brand = _a.brand, settings = _a.settings;
|
|
166
174
|
responseBody = brand.data.verify.responseBody;
|
|
167
175
|
payload = {
|
|
168
176
|
data: params.otp,
|
|
169
|
-
service_name: (
|
|
177
|
+
service_name: (_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _e === void 0 ? void 0 : _e.service_name,
|
|
170
178
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
171
179
|
step_name: BRAND_STEP_NAMES.PHONE_AUTH,
|
|
172
180
|
encryption_contract: ['data']
|
|
173
181
|
};
|
|
174
182
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
175
183
|
case 1:
|
|
176
|
-
data = (
|
|
177
|
-
if ((
|
|
184
|
+
data = (_m.sent()).data;
|
|
185
|
+
if ((_f = data.errors) === null || _f === void 0 ? void 0 : _f.length)
|
|
178
186
|
throw new Error(data.errors[0].description);
|
|
179
187
|
_b = responseBody || {}, board_id = _b.id, board_info_id = _b.board_info_id;
|
|
180
188
|
if (!board_id) {
|
|
181
189
|
throw new Error('Internal server error');
|
|
182
190
|
}
|
|
183
|
-
|
|
191
|
+
individualData = undefined;
|
|
184
192
|
if (!board_info_id) return [3, 3];
|
|
185
193
|
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
186
194
|
case 2:
|
|
187
|
-
boardInfoData =
|
|
188
|
-
|
|
195
|
+
boardInfoData = _m.sent();
|
|
196
|
+
_m.label = 3;
|
|
189
197
|
case 3: return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
190
198
|
case 4:
|
|
191
|
-
boardData =
|
|
192
|
-
|
|
193
|
-
return
|
|
199
|
+
boardData = _m.sent();
|
|
200
|
+
_c = ((_g = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _g === void 0 ? void 0 : _g.recipient) || {}, id = _c.id, type = _c.type;
|
|
201
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
|
|
202
|
+
return [4, retrieveIndividualData(type, boardData, serviceCallBack)];
|
|
194
203
|
case 5:
|
|
195
|
-
|
|
196
|
-
|
|
204
|
+
_d = _m.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
205
|
+
boardData = boardRes;
|
|
206
|
+
individualData = individualRes;
|
|
207
|
+
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, { otp: params.otp });
|
|
208
|
+
return [4, API.dataService.getSegments({ page: 0 })];
|
|
197
209
|
case 6:
|
|
198
|
-
|
|
199
|
-
return [4, API.dataService.
|
|
210
|
+
segmentsList = _m.sent();
|
|
211
|
+
return [4, API.dataService.getChannelsOfServices({ page: 0 })];
|
|
200
212
|
case 7:
|
|
201
|
-
|
|
213
|
+
salesChannels = _m.sent();
|
|
214
|
+
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
215
|
+
case 8:
|
|
216
|
+
teamSizeList = _m.sent();
|
|
202
217
|
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
|
|
203
218
|
return [2, {
|
|
204
219
|
data: data,
|
|
220
|
+
individualData: individualData,
|
|
205
221
|
boardResponse: {
|
|
206
222
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
207
223
|
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
208
224
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
209
225
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
210
226
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
211
|
-
name: (
|
|
212
|
-
contact: (
|
|
227
|
+
name: (_k = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _k === void 0 ? void 0 : _k.names,
|
|
228
|
+
contact: (_l = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _l === void 0 ? void 0 : _l.contact,
|
|
213
229
|
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
214
230
|
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
215
231
|
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
@@ -534,7 +550,7 @@ export var brandSlice = createSlice({
|
|
|
534
550
|
var _a, _b, _c, _d;
|
|
535
551
|
state.error = null;
|
|
536
552
|
state.customLoading = false;
|
|
537
|
-
var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse, segmentsList = _e.segmentsList, teamSizeList = _e.teamSizeList, salesChannels = _e.salesChannels;
|
|
553
|
+
var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse, segmentsList = _e.segmentsList, teamSizeList = _e.teamSizeList, salesChannels = _e.salesChannels, individualData = _e.individualData;
|
|
538
554
|
var brand = boardResponse.brand, entity = boardResponse.entity;
|
|
539
555
|
state.data.brandData.brandName = (((_a = brand === null || brand === void 0 ? void 0 : brand.name) === null || _a === void 0 ? void 0 : _a.en) || '').trim();
|
|
540
556
|
var selectedSegment = (_b = segmentsList === null || segmentsList === void 0 ? void 0 : segmentsList.filter(function (segment) {
|
|
@@ -556,7 +572,7 @@ export var brandSlice = createSlice({
|
|
|
556
572
|
state.data.brandData.teamSize = selectedTeamSize;
|
|
557
573
|
var mappedSalesChannels = mapSalesChannel((brand === null || brand === void 0 ? void 0 : brand.channel_services) || []);
|
|
558
574
|
state.data.brandData.salesChannels = mappedSalesChannels;
|
|
559
|
-
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, segmentsList: segmentsList, teamSizeList: teamSizeList });
|
|
575
|
+
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, segmentsList: segmentsList, teamSizeList: teamSizeList, individualData: individualData });
|
|
560
576
|
state.data.verify.token = token;
|
|
561
577
|
})
|
|
562
578
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
@@ -582,7 +598,7 @@ export var brandSlice = createSlice({
|
|
|
582
598
|
var _a, _b, _c, _d;
|
|
583
599
|
state.loading = false;
|
|
584
600
|
state.error = null;
|
|
585
|
-
var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData, segmentsList = _e.segmentsList, teamSizeList = _e.teamSizeList, salesChannels = _e.salesChannels;
|
|
601
|
+
var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData, segmentsList = _e.segmentsList, teamSizeList = _e.teamSizeList, salesChannels = _e.salesChannels, individualData = _e.individualData;
|
|
586
602
|
var brand = boardResponse.brand, entity = boardResponse.entity;
|
|
587
603
|
state.data.otpData = formData;
|
|
588
604
|
state.data.otpData.responseBody = data;
|
|
@@ -606,7 +622,7 @@ export var brandSlice = createSlice({
|
|
|
606
622
|
state.data.brandActivities.refundPolicy = element.agree;
|
|
607
623
|
}
|
|
608
624
|
});
|
|
609
|
-
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, segmentsList: segmentsList, teamSizeList: teamSizeList });
|
|
625
|
+
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, segmentsList: segmentsList, teamSizeList: teamSizeList, individualData: individualData });
|
|
610
626
|
})
|
|
611
627
|
.addCase(verifyBrandLeadOTP.rejected, function (state, action) {
|
|
612
628
|
state.loading = false;
|
|
@@ -722,7 +738,11 @@ export var brandSlice = createSlice({
|
|
|
722
738
|
state.loading = false;
|
|
723
739
|
state.error = null;
|
|
724
740
|
var flows = (((_a = action.payload) === null || _a === void 0 ? void 0 : _a.response) || {}).flows;
|
|
725
|
-
state.data.verify.responseBody
|
|
741
|
+
var _b = state.data.verify.responseBody || {}, individuals = _b.individuals, individualData = _b.individualData;
|
|
742
|
+
var data_state = (individualData || {}).data_state;
|
|
743
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
744
|
+
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
745
|
+
}));
|
|
726
746
|
})
|
|
727
747
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
728
748
|
state.loading = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes, Activity, CivilFormValues, ActionState } from '
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { ActivitiesFormValues, CustomersFormValues, BusinessTypeFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, FlowsTypes, Activity, CivilFormValues, ActionState } from '../../../@types';
|
|
3
3
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
data: any;
|
|
5
5
|
leadData: any;
|
|
@@ -56,11 +56,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import API from '
|
|
60
|
-
import { BusinessType, FlowsTypes, DocumentPurpose, LicenseType } from '
|
|
61
|
-
import { BUSINESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_ENTITY_LICENSE, OTHER_FL_LICENSE } from '
|
|
62
|
-
import { convertNumbers2English, hasKey, sleep, isKW, isSA, dateFormat, isOtherLicense } from '
|
|
63
|
-
import { handleNextScreenStep, handleSetCountryByIso2 } from '
|
|
59
|
+
import API from '../../../api';
|
|
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';
|
|
64
64
|
export var verifyLeadToken = createAsyncThunk('businessVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
65
65
|
var payload, data, countryIso2, boardData, brandData, leadData, entity_activities, steps, brand, board_id, business_id, entity, brandID, hasBusinessCompleted, hasBusinessCRInfoCompleted, hasBusinessCRActivitiesCompleted, hasBusinessCustomersCompleted, activityList;
|
|
66
66
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, AuthForType, BrandFormValues, CivilFormValues, CountryCode, FlowsTypes, IndividualFormValues, MobileFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { ActionState, AuthForType, BrandFormValues, CivilFormValues, CountryCode, FlowsTypes, IndividualFormValues, MobileFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
response: any;
|
|
@@ -66,12 +66,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
66
66
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
67
67
|
};
|
|
68
68
|
var _a;
|
|
69
|
-
import API from '
|
|
70
|
-
import { handleNextScreenStep } from '
|
|
71
|
-
import { CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, OTHER_BRAND } from '
|
|
69
|
+
import API from '../../../api';
|
|
70
|
+
import { handleNextScreenStep } from '../../../app/settings';
|
|
71
|
+
import { CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, OTHER_BRAND } from '../../../constants';
|
|
72
72
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
73
|
-
import { AuthForType, FlowsTypes } from '
|
|
74
|
-
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep } from '
|
|
73
|
+
import { AuthForType, FlowsTypes } from '../../../@types';
|
|
74
|
+
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep } from '../../../utils';
|
|
75
75
|
export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
76
|
var settings, requestBody, data;
|
|
77
77
|
var _a, _b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams } from '
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { MobileFormValues, NIDFormValues, CivilFormValues, OTPFormValues, IndividualFormValues, SharedState, FlowsTypes, ActionState, CountryCode, AuthForType, BusinessDataFormValues, AsyncThunkParams } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const retrieveLeadIdentityByIdAsync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
data: any;
|
|
@@ -56,12 +56,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
56
|
};
|
|
57
57
|
var _a;
|
|
58
58
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
59
|
-
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen } from '
|
|
60
|
-
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '
|
|
61
|
-
import API from '
|
|
62
|
-
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '
|
|
63
|
-
import { defaultCountry } from '
|
|
64
|
-
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '
|
|
59
|
+
import { handleNextScreenStep, handleCurrentActiveScreen, handleOpen } from '../../../app/settings';
|
|
60
|
+
import { FlowsTypes, AuthForType, BusinessType, LicenseType } from '../../../@types';
|
|
61
|
+
import API from '../../../api';
|
|
62
|
+
import { CONNECT_EXPRESS_STEP_NAMES, IDENTIFICATION_TYPE, OTHER_CR_LICENSE, OTHER_FL_LICENSE } from '../../../constants';
|
|
63
|
+
import { defaultCountry } from '../../../constants';
|
|
64
|
+
import { getIndividualName, capitalizeTheFirstLetterOfEachWord, sleep, findCountryByIddPrefix, concatenateObjectValues, isSA } from '../../../utils';
|
|
65
65
|
export var retrieveLeadIdentityByIdAsync = createAsyncThunk('expressConnect/retrieveLeadIdentityByIdAsync', function (leadId, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
66
66
|
var _a, settings, connectExpress, countryCode, showBoard, data, phone, status, board_id, board_info_id, isRegistered, _b, boardInfo, boardData, error_1;
|
|
67
67
|
var _c, _d;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, AsyncThunkParams, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '
|
|
1
|
+
import { RootState } from '../../../app/store';
|
|
2
|
+
import { ActionState, AsyncThunkParams, EntityCapitalFormValues, EntityNameFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
interface VerifyLeadTokenProps {
|
|
4
4
|
token: string;
|
|
5
5
|
isInternally?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
8
|
data: any;
|
|
9
|
+
individualData: any;
|
|
9
10
|
boardResponse: {
|
|
10
11
|
user: any;
|
|
11
12
|
brand: any;
|
|
@@ -17,6 +18,7 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
17
18
|
individuals: any;
|
|
18
19
|
business: any;
|
|
19
20
|
entityTypes: any;
|
|
21
|
+
notification: any;
|
|
20
22
|
};
|
|
21
23
|
token: string;
|
|
22
24
|
}, VerifyLeadTokenProps, {}>;
|
|
@@ -25,6 +27,7 @@ export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
25
27
|
}, void, {}>;
|
|
26
28
|
export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
27
29
|
data: any;
|
|
30
|
+
individualData: any;
|
|
28
31
|
boardResponse: {
|
|
29
32
|
user: any;
|
|
30
33
|
brand: any;
|
|
@@ -36,6 +39,7 @@ export declare const verifyEntityLeadOTP: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
36
39
|
individuals: any;
|
|
37
40
|
business: any;
|
|
38
41
|
entityTypes: any;
|
|
42
|
+
notification: any;
|
|
39
43
|
};
|
|
40
44
|
formData: OTPFormValues;
|
|
41
45
|
}, OTPFormValues, {}>;
|