@tap-payments/auth-jsconnect 2.8.31-test → 2.8.35-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/@types/app.d.ts +22 -17
- package/build/@types/app.js +6 -0
- package/build/@types/config.d.ts +1 -1
- package/build/@types/form.d.ts +23 -23
- package/build/@types/theme.d.ts +1 -1
- package/build/api/account.d.ts +3 -2
- package/build/api/account.js +8 -1
- package/build/api/auth.d.ts +13 -13
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +1 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +11 -11
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +10 -10
- package/build/api/file.d.ts +1 -1
- package/build/api/firebase.js +26 -21
- package/build/api/index.d.ts +1 -0
- package/build/api/individual.d.ts +5 -5
- package/build/api/init.d.ts +1 -1
- package/build/api/lead.d.ts +12 -12
- package/build/api/lead.js +1 -1
- package/build/api/operator.d.ts +2 -2
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +21 -3
- package/build/app/settings.js +1 -1
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +324 -150
- package/build/assets/locales/en.json +322 -151
- package/build/components/AnimationFlow/AnimationFlow.d.ts +1 -1
- package/build/components/AnimationFlow/BottomSheet.d.ts +1 -1
- package/build/components/AnimationFlow/Dialog.d.ts +1 -1
- package/build/components/AnimationFlow/Error.d.ts +1 -2
- package/build/components/AnimationFlow/Loader.d.ts +1 -2
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +1 -1
- package/build/components/Button/Button.d.ts +1 -1
- package/build/components/CheckBox/CheckBox.d.ts +1 -1
- package/build/components/Collapse/Collapse.d.ts +1 -2
- package/build/components/DatePicker/DatePicker.d.ts +1 -1
- package/build/components/ExpandIcon/ExpandIcon.d.ts +1 -2
- package/build/components/FileInput/DragAndDrop.d.ts +1 -2
- package/build/components/FileInput/UploadInput.d.ts +1 -2
- package/build/components/Footer/Footer.d.ts +1 -1
- package/build/components/Form/Form.d.ts +1 -1
- package/build/components/Input/Input.d.ts +1 -1
- package/build/components/InputAdornment/InputAdornment.d.ts +1 -1
- package/build/components/List/List.d.ts +1 -1
- package/build/components/ListItem/ListItem.d.ts +1 -1
- package/build/components/Loader/Loader.d.ts +1 -1
- package/build/components/LogoBadge/LogoBadge.d.ts +1 -1
- package/build/components/OTPField/OTPField.d.ts +1 -1
- package/build/components/OTPTimer/OTPTimer.d.ts +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 +1 -1
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +1 -1
- package/build/components/Text/Text.d.ts +1 -1
- package/build/components/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 +1 -0
- package/build/constants/api.js +2 -0
- package/build/constants/app.d.ts +1 -1
- package/build/constants/app.js +7 -1
- package/build/features/app/auth/authStore.d.ts +201 -20
- package/build/features/app/auth/authStore.js +61 -3
- package/build/features/app/bank/bankStore.d.ts +93 -12
- package/build/features/app/bank/bankStore.js +5 -4
- package/build/features/app/board/boardStore.d.ts +41 -5
- package/build/features/app/board/boardStore.js +18 -12
- package/build/features/app/brand/brandStore.d.ts +143 -17
- package/build/features/app/brand/brandStore.js +6 -5
- package/build/features/app/business/businessStore.d.ts +162 -18
- package/build/features/app/business/businessStore.js +1 -1
- package/build/features/app/connect/connectStore.d.ts +151 -16
- package/build/features/app/connect/connectStore.js +1 -1
- package/build/features/app/connectExpress/connectExpressStore.d.ts +271 -28
- package/build/features/app/connectExpress/connectExpressStore.js +1 -1
- package/build/features/app/entity/entityStore.d.ts +93 -12
- package/build/features/app/entity/entityStore.js +5 -4
- package/build/features/app/individual/individualStore.d.ts +186 -24
- package/build/features/app/individual/individualStore.js +5 -4
- package/build/features/app/password/passwordStore.d.ts +144 -32
- package/build/features/app/password/passwordStore.js +198 -204
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +83 -11
- package/build/features/app/tax/taxStore.js +5 -4
- package/build/features/auth/Auth.d.ts +1 -2
- package/build/features/auth/Auth.js +1 -1
- package/build/features/auth/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/auth/screens/AccountNotFound/AccountNotFound.d.ts +1 -1
- package/build/features/auth/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/auth/screens/AuthSwitch/AuthSwitch.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/auth/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
- package/build/features/auth/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/auth/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/auth/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/auth/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/auth/screens/Email/Email.d.ts +1 -1
- package/build/features/auth/screens/EmailSent/EmailSent.d.ts +1 -1
- package/build/features/auth/screens/MigratingData/MigratingData.d.ts +5 -0
- package/build/features/auth/screens/MigratingData/MigratingData.js +44 -0
- package/build/features/auth/screens/MigratingData/index.d.ts +2 -0
- package/build/features/auth/screens/MigratingData/index.js +2 -0
- package/build/features/auth/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/auth/screens/NID/DOB.d.ts +1 -2
- package/build/features/auth/screens/NID/NID.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTP.d.ts +1 -1
- package/build/features/auth/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/auth/screens/Password/Password.d.ts +1 -1
- package/build/features/auth/screens/Password/PasswordField.d.ts +1 -1
- package/build/features/auth/screens/PreparingData/PreparingData.d.ts +1 -1
- package/build/features/auth/screens/ResetPasswordMessage/ResetPasswordMessage.d.ts +1 -1
- package/build/features/auth/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/bank/Bank.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankDetails.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/BankName.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +1 -2
- package/build/features/bank/screens/BankDetails/IBAN.js +1 -1
- package/build/features/bank/screens/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 +2 -2
- package/build/features/bank/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/bank/screens/Verify/Verify.d.ts +1 -1
- package/build/features/board/Board.d.ts +1 -2
- package/build/features/board/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/board/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +3 -4
- package/build/features/board/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/board/screens/Verify/Verify.d.ts +1 -1
- package/build/features/brand/Brand.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -58
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +13 -37
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +1 -1
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +1 -2
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +10 -31
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +3 -8
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +2 -3
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +1 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +1 -1
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +1 -2
- package/build/features/brand/screens/BrandSegmentInfo/TeamSize.d.ts +1 -2
- package/build/features/brand/screens/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 +2 -2
- package/build/features/brand/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/brand/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/Business.d.ts +1 -2
- package/build/features/business/screens/Activities/Activities.d.ts +1 -2
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +9 -25
- package/build/features/business/screens/Activities/LicenseName.d.ts +1 -1
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +5 -13
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/Header.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +1 -1
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +5 -13
- package/build/features/business/screens/BusinessType/Article.d.ts +2 -3
- package/build/features/business/screens/BusinessType/BusinessType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/EntityName.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +6 -28
- package/build/features/business/screens/BusinessType/SelectType.d.ts +1 -1
- package/build/features/business/screens/BusinessType/Switch.d.ts +1 -1
- package/build/features/business/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +19 -70
- package/build/features/business/screens/Customers/CustomerLocations.js +1 -1
- package/build/features/business/screens/Customers/Customers.d.ts +1 -1
- package/build/features/business/screens/Customers/ExpectedCustomers.d.ts +1 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.d.ts +1 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +10 -31
- package/build/features/business/screens/Customers/TransactionPolicy.d.ts +2 -3
- package/build/features/business/screens/IDBOD/DOB.d.ts +1 -1
- package/build/features/business/screens/IDBOD/ID.d.ts +1 -1
- package/build/features/business/screens/IDBOD/IDBOD.d.ts +1 -1
- package/build/features/business/screens/OTP/OTP.d.ts +1 -1
- package/build/features/business/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +1 -1
- package/build/features/business/screens/Success/Success.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/business/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/business/screens/Verify/Verify.d.ts +1 -1
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/Connect.d.ts +1 -2
- package/build/features/connect/Connect.js +1 -1
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +1 -1
- package/build/features/connect/screens/BrandSegment/TeamSize.d.ts +1 -2
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connect/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connect/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.d.ts +1 -1
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Individual/Individual.d.ts +1 -1
- package/build/features/connect/screens/Individual/Name.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandList.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.d.ts +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connect/screens/Merchant/Merchant.d.ts +1 -1
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -2
- package/build/features/connect/screens/Merchant/TAC.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connect/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connect/screens/NID/DOB.d.ts +1 -2
- package/build/features/connect/screens/NID/NID.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connect/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connect/screens/OperatorError/OperatorError.d.ts +1 -1
- package/build/features/connect/screens/ThankYou/ThankYou.d.ts +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -2
- package/build/features/connectExpress/ConnectExpress.js +1 -1
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +1 -1
- package/build/features/connectExpress/screens/AccountCreatedLoader/AccountCreatedLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthMerchant/AuthMerchant.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/AuthenticationList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/BrandList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/EntityLegalName.d.ts +1 -2
- package/build/features/connectExpress/screens/AuthenticationList/EntityLicenseType.d.ts +5 -27
- package/build/features/connectExpress/screens/AuthenticationList/EntityList.d.ts +1 -1
- package/build/features/connectExpress/screens/AuthenticationList/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.d.ts +1 -1
- package/build/features/connectExpress/screens/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +6 -28
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +1 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +1 -1
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +1 -1
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NID/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/NID/TAC.d.ts +3 -8
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +1 -2
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +1 -1
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +1 -1
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +2 -2
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/entity/Entity.d.ts +1 -2
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +9 -25
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +1 -1
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +1 -2
- package/build/features/entity/screens/EntityName/Article.d.ts +2 -3
- package/build/features/entity/screens/EntityName/EntityName.d.ts +1 -2
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +15 -58
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +5 -13
- package/build/features/entity/screens/EntityName/LegalName.d.ts +1 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +1 -2
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +1 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +1 -1
- package/build/features/entity/screens/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 +2 -2
- package/build/features/entity/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/entity/screens/Verify/Verify.d.ts +1 -1
- package/build/features/featuresScreens.js +5 -0
- package/build/features/individual/Individual.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +5 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +2 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/IsAuthorizedSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -27
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +1 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +9 -25
- package/build/features/individual/screens/IndividualList/UserList.d.ts +1 -2
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -28
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +1 -1
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +5 -13
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +1 -1
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +1 -1
- package/build/features/individual/screens/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 +2 -2
- package/build/features/individual/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/individual/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/Password.d.ts +1 -2
- package/build/features/password/Password.js +3 -1
- package/build/features/password/screens/CreatePassword/ConditionText.d.ts +1 -2
- package/build/features/password/screens/CreatePassword/ConfirmPassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/CreatePassword.js +8 -4
- package/build/features/password/screens/CreatePassword/Password.d.ts +1 -1
- package/build/features/password/screens/CreatePassword/PasswordBar.d.ts +1 -2
- package/build/features/password/screens/OTP/OTP.d.ts +1 -1
- package/build/features/password/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/password/screens/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 +2 -2
- package/build/features/password/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.d.ts +1 -1
- package/build/features/password/screens/Verify/Verify.js +4 -4
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.d.ts +1 -2
- package/build/features/shared/Address/Address.d.ts +1 -2
- package/build/features/shared/Address/CountryList.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.d.ts +14 -46
- package/build/features/shared/Address/InputSelect.js +1 -1
- package/build/features/shared/Address/InputText.d.ts +1 -1
- package/build/features/shared/Background/Background.d.ts +1 -1
- package/build/features/shared/Background/LogoBackground.d.ts +1 -1
- package/build/features/shared/BouncingDotsLoader/BouncingDotsLoader.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.d.ts +1 -2
- package/build/features/shared/BusinessCountry/BusinessCountry.js +1 -1
- package/build/features/shared/Button/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/FlowsButtons.d.ts +2 -3
- package/build/features/shared/Button/FlowsButtons.js +2 -2
- package/build/features/shared/Button/IndividualActionButtons.d.ts +2 -2
- package/build/features/shared/Button/MobileButton.d.ts +1 -2
- package/build/features/shared/Button/SuccessButton.d.ts +1 -2
- package/build/features/shared/Calender/Calender.d.ts +1 -2
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +2 -3
- package/build/features/shared/Chip/Chip.d.ts +1 -2
- package/build/features/shared/ClearIcon/ClearIcon.d.ts +1 -2
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.d.ts +1 -1
- package/build/features/shared/DataLoading/DataLoading.d.ts +1 -1
- package/build/features/shared/Dialog/CloseDialog.d.ts +1 -2
- package/build/features/shared/Dialog/DialogContainer.d.ts +1 -1
- package/build/features/shared/Dot/Dot.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +1 -2
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +1 -2
- package/build/features/shared/Footer/Footer.d.ts +1 -2
- package/build/features/shared/Footer/PoweredByFooter.d.ts +2 -3
- package/build/features/shared/GenericError/GenericError.d.ts +1 -1
- package/build/features/shared/Input/Input.d.ts +6 -14
- package/build/features/shared/InputSelect/InputSelect.d.ts +1 -2
- package/build/features/shared/Mandatory/Mandatory.d.ts +1 -2
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +1 -1
- package/build/features/shared/PasswordIcon/PasswordIcon.d.ts +1 -2
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +1 -2
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +1 -1
- package/build/features/shared/Search/Search.d.ts +1 -2
- package/build/features/shared/SearchIcon/SearchIcon.d.ts +1 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +5 -1
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +3 -3
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/UploadFile/FileUpload.d.ts +4 -9
- package/build/features/shared/UploadFile/FileUpload.js +1 -1
- package/build/features/shared/UploadFile/UploadFile.d.ts +3 -8
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +3 -8
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +4 -9
- package/build/features/shared/UploadMultipleFile/UploadFile.js +1 -1
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +3 -8
- package/build/features/signIn/SignIn.d.ts +1 -2
- package/build/features/signIn/screens/Email/Email.d.ts +1 -1
- package/build/features/signIn/screens/Mobile/Mobile.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTP.d.ts +1 -1
- package/build/features/signIn/screens/OTP/OTPInput.d.ts +1 -1
- package/build/features/signIn/screens/Password/Password.d.ts +1 -1
- package/build/features/signIn/screens/Password/PasswordInput.d.ts +1 -1
- package/build/features/tax/Tax.d.ts +1 -2
- package/build/features/tax/screens/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 +2 -2
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +2 -3
- package/build/features/tax/screens/TaxDetails/TaxDetails.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +1 -2
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +2 -3
- package/build/features/tax/screens/Verify/OTPInput.d.ts +1 -1
- package/build/features/tax/screens/Verify/Verify.d.ts +1 -1
- package/build/hooks/useDataVerified.d.ts +1 -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/utils/array.js +1 -1
- package/build/utils/string.d.ts +2 -2
- package/build/utils/string.js +8 -2
- package/package.json +1 -1
|
@@ -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]) {
|
|
@@ -49,14 +49,14 @@ var _a;
|
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import API from '../../../api';
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
|
-
import { handleCurrentActiveScreen, handleNextScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
52
|
+
import { handleCurrentActiveScreen, handleNextScreenStep, handlePrevScreenStep, handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
53
53
|
import { PASSWORD_OPERATION_TYPE, PASSWORD_STEP_NAMES } from '../../../constants';
|
|
54
54
|
import { retrieveIndividualData } from '../../../utils';
|
|
55
55
|
export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', function (token, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var payload, data,
|
|
57
|
-
var
|
|
58
|
-
return __generator(this, function (
|
|
59
|
-
switch (
|
|
56
|
+
var payload, data, _a, config, board_info_password_status, country_code, board_id, countryIso2, publicKey, data_1;
|
|
57
|
+
var _b, _c;
|
|
58
|
+
return __generator(this, function (_d) {
|
|
59
|
+
switch (_d.label) {
|
|
60
60
|
case 0:
|
|
61
61
|
payload = {
|
|
62
62
|
service_name: 'tap_email',
|
|
@@ -64,56 +64,34 @@ export var verifyLeadToken = createAsyncThunk('passwordVerifyLeadToken', functio
|
|
|
64
64
|
};
|
|
65
65
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
66
66
|
case 1:
|
|
67
|
-
data = (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
_a = data || {},
|
|
67
|
+
data = (_d.sent()).data;
|
|
68
|
+
if (((_b = data === null || data === void 0 ? void 0 : data.errors) === null || _b === void 0 ? void 0 : _b.length) || (data === null || data === void 0 ? void 0 : data.mw_error))
|
|
69
|
+
throw new Error(data.errors[0].description || (data === null || data === void 0 ? void 0 : data.mw_error));
|
|
70
|
+
_a = data || {}, config = _a.config, board_info_password_status = _a.board_info_password_status, country_code = _a.country_code, board_id = _a.board_id;
|
|
71
|
+
countryIso2 = country_code;
|
|
72
|
+
if (countryIso2)
|
|
73
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
71
74
|
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
72
|
-
if (publicKey)
|
|
75
|
+
if (publicKey)
|
|
73
76
|
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
74
|
-
|
|
75
|
-
if (!board_id) return [3, 7];
|
|
76
|
-
if (!board_info_id) return [3, 3];
|
|
77
|
-
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
78
|
-
case 2:
|
|
79
|
-
boardInfoData = _j.sent();
|
|
80
|
-
_j.label = 3;
|
|
81
|
-
case 3: return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
82
|
-
case 4:
|
|
83
|
-
boardStatusData = _j.sent();
|
|
77
|
+
if (!!country_code) return [3, 3];
|
|
84
78
|
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
85
|
-
case
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
case
|
|
91
|
-
_c = _j.sent(), boardRes = _c.boardRes, individualRes = _c.individualRes;
|
|
92
|
-
boardData = boardRes;
|
|
93
|
-
individualData = individualRes;
|
|
94
|
-
_j.label = 7;
|
|
95
|
-
case 7:
|
|
96
|
-
countryIso2 = (_e = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _e === void 0 ? void 0 : _e.country;
|
|
97
|
-
if (countryIso2)
|
|
98
|
-
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
99
|
-
info = (boardStatusData || {}).info;
|
|
100
|
-
hasPasswordCompleted = ((_f = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'password'; })) === null || _f === void 0 ? void 0 : _f.status) === 'completed';
|
|
79
|
+
case 2:
|
|
80
|
+
data_1 = _d.sent();
|
|
81
|
+
if ((_c = data_1 === null || data_1 === void 0 ? void 0 : data_1.entity) === null || _c === void 0 ? void 0 : _c.country)
|
|
82
|
+
thunkApi.dispatch(handleSetCountryByIso2(data_1.entity.country));
|
|
83
|
+
_d.label = 3;
|
|
84
|
+
case 3:
|
|
101
85
|
if (data.step_name === PASSWORD_STEP_NAMES.PHONE_AUTH) {
|
|
102
86
|
thunkApi.dispatch(handleCurrentActiveScreen('PASSWORD_VERIFY_STEP'));
|
|
103
87
|
}
|
|
104
|
-
else if (
|
|
88
|
+
else if (board_info_password_status === 'completed') {
|
|
105
89
|
thunkApi.dispatch(handleNextScreenStep('PASSWORD_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
106
90
|
}
|
|
107
91
|
else if (data.step_name === PASSWORD_STEP_NAMES.PASSWORD_INFO) {
|
|
108
92
|
thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
|
|
109
93
|
}
|
|
110
|
-
|
|
111
|
-
case 8: return [2, {
|
|
112
|
-
data: data,
|
|
113
|
-
individualData: individualData,
|
|
114
|
-
boardResponse: __assign(__assign({}, boardData === null || boardData === void 0 ? void 0 : boardData.business), { flows: (boardStatusData === null || boardStatusData === void 0 ? void 0 : boardStatusData.info) || [], user: boardData === null || boardData === void 0 ? void 0 : boardData.user, brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names, contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact, business: boardData === null || boardData === void 0 ? void 0 : boardData.business, notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification }),
|
|
115
|
-
token: token
|
|
116
|
-
}];
|
|
94
|
+
return [2, { data: data, token: token }];
|
|
117
95
|
}
|
|
118
96
|
});
|
|
119
97
|
}); });
|
|
@@ -134,54 +112,74 @@ export var resendOTP = createAsyncThunk('resendOTPPassword', function (params, t
|
|
|
134
112
|
}
|
|
135
113
|
});
|
|
136
114
|
}); });
|
|
137
|
-
export var retrieveBoardDetails = createAsyncThunk('retrievePasswordBoardDetails', function (
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
115
|
+
export var retrieveBoardDetails = createAsyncThunk('retrievePasswordBoardDetails', function (_a) {
|
|
116
|
+
var boardId = _a.boardId, id = _a.individualId, type = _a.individualType;
|
|
117
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
+
var data, individualData, boardData, serviceCallBack, _b, boardRes, individualRes;
|
|
119
|
+
var _c, _d, _e;
|
|
120
|
+
return __generator(this, function (_f) {
|
|
121
|
+
switch (_f.label) {
|
|
122
|
+
case 0: return [4, API.boardService.retrieveBoardDetails(boardId)];
|
|
123
|
+
case 1:
|
|
124
|
+
data = _f.sent();
|
|
125
|
+
individualData = data === null || data === void 0 ? void 0 : data.user;
|
|
126
|
+
boardData = data;
|
|
127
|
+
if (!(((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.id) !== id && id)) return [3, 3];
|
|
128
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id, type); };
|
|
129
|
+
return [4, retrieveIndividualData(type, data, serviceCallBack)];
|
|
130
|
+
case 2:
|
|
131
|
+
_b = _f.sent(), boardRes = _b.boardRes, individualRes = _b.individualRes;
|
|
132
|
+
individualData = individualRes;
|
|
133
|
+
boardData = boardRes;
|
|
134
|
+
_f.label = 3;
|
|
135
|
+
case 3: return [2, __assign(__assign({}, boardData), { brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand, bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account, entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity, merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant, name: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.names, individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals, contact: (_e = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _e === void 0 ? void 0 : _e.contact, user: individualData })];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
149
138
|
});
|
|
150
|
-
});
|
|
139
|
+
});
|
|
151
140
|
export var verifyPasswordLeadOTP = createAsyncThunk('verifyPasswordLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
152
|
-
var _a, password, settings, responseBody, payload, data,
|
|
153
|
-
var
|
|
154
|
-
return __generator(this, function (
|
|
155
|
-
switch (
|
|
141
|
+
var _a, password, settings, responseBody, payload, data, _b, config, board_info_password_status, country_code, board_id, countryIso2, publicKey, data_2;
|
|
142
|
+
var _c, _d, _e, _f, _g;
|
|
143
|
+
return __generator(this, function (_h) {
|
|
144
|
+
switch (_h.label) {
|
|
156
145
|
case 0:
|
|
157
146
|
_a = thunkApi.getState(), password = _a.password, settings = _a.settings;
|
|
158
147
|
responseBody = password.data.verify.responseBody;
|
|
159
148
|
payload = {
|
|
160
149
|
data: params.otp,
|
|
161
|
-
service_name: (
|
|
150
|
+
service_name: (_c = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _c === void 0 ? void 0 : _c.service_name,
|
|
162
151
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
163
152
|
step_name: PASSWORD_STEP_NAMES.PHONE_AUTH,
|
|
164
153
|
encryption_contract: ['data']
|
|
165
154
|
};
|
|
166
155
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
167
156
|
case 1:
|
|
168
|
-
data = (
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return [
|
|
157
|
+
data = (_h.sent()).data;
|
|
158
|
+
if ((_d = data === null || data === void 0 ? void 0 : data.errors) === null || _d === void 0 ? void 0 : _d.length)
|
|
159
|
+
throw new Error(data.errors[0].description);
|
|
160
|
+
_b = data || {}, config = _b.config, board_info_password_status = _b.board_info_password_status, country_code = _b.country_code, board_id = _b.board_id;
|
|
161
|
+
countryIso2 = country_code;
|
|
162
|
+
if (countryIso2)
|
|
163
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
164
|
+
publicKey = config === null || config === void 0 ? void 0 : config.public_key;
|
|
165
|
+
if (publicKey)
|
|
166
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
167
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, { otp: params.otp });
|
|
168
|
+
if (!(board_info_password_status === 'completed')) return [3, 2];
|
|
169
|
+
thunkApi.dispatch(handleNextScreenStep('PASSWORD_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
170
|
+
return [3, 5];
|
|
171
|
+
case 2:
|
|
172
|
+
if (!!country_code) return [3, 4];
|
|
173
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
174
|
+
case 3:
|
|
175
|
+
data_2 = _h.sent();
|
|
176
|
+
if ((_g = data_2 === null || data_2 === void 0 ? void 0 : data_2.entity) === null || _g === void 0 ? void 0 : _g.country)
|
|
177
|
+
thunkApi.dispatch(handleSetCountryByIso2(data_2.entity.country));
|
|
178
|
+
_h.label = 4;
|
|
179
|
+
case 4:
|
|
180
|
+
thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
|
|
181
|
+
_h.label = 5;
|
|
182
|
+
case 5: return [2, { data: data, formData: __assign({}, params) }];
|
|
185
183
|
}
|
|
186
184
|
});
|
|
187
185
|
}); });
|
|
@@ -208,89 +206,101 @@ export var createPassword = createAsyncThunk('createPassword', function (params,
|
|
|
208
206
|
});
|
|
209
207
|
}); });
|
|
210
208
|
export var updateBoardSuccess = createAsyncThunk('passwordUpdateBoardSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
|
-
var _a, settings, password, _b,
|
|
212
|
-
var
|
|
213
|
-
return __generator(this, function (
|
|
214
|
-
switch (
|
|
209
|
+
var _a, settings, password, _b, board_id, infoId, _c, showBoard, mode, payload, data, _d, id, type, boardInfoStatusData;
|
|
210
|
+
var _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
211
|
+
return __generator(this, function (_p) {
|
|
212
|
+
switch (_p.label) {
|
|
215
213
|
case 0:
|
|
216
214
|
_a = thunkApi.getState(), settings = _a.settings, password = _a.password;
|
|
217
|
-
_b = password.data.verify.responseBody || {},
|
|
215
|
+
_b = password.data.verify.responseBody || {}, board_id = _b.board_id, infoId = _b.board_info_id;
|
|
218
216
|
_c = settings.data.appConfig, showBoard = _c.showBoard, mode = _c.mode;
|
|
219
|
-
if (!
|
|
217
|
+
if (!board_id)
|
|
220
218
|
return [2];
|
|
221
219
|
payload = {
|
|
222
220
|
lang: settings.data.language,
|
|
223
|
-
step_name: PASSWORD_STEP_NAMES.PASSWORD_SUCCESS
|
|
224
|
-
id: id
|
|
221
|
+
step_name: PASSWORD_STEP_NAMES.PASSWORD_SUCCESS
|
|
225
222
|
};
|
|
226
|
-
return [4, API.boardService.updateBoardInfo(__assign({ id:
|
|
223
|
+
return [4, API.boardService.updateBoardInfo(__assign({ id: board_id, infoId: infoId }, payload))];
|
|
227
224
|
case 1:
|
|
228
|
-
data =
|
|
225
|
+
data = _p.sent();
|
|
229
226
|
if (!showBoard && mode === 'content') {
|
|
230
|
-
(
|
|
231
|
-
(
|
|
232
|
-
return [2, {
|
|
227
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
228
|
+
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: data });
|
|
229
|
+
return [2, { data: data }];
|
|
233
230
|
}
|
|
234
|
-
|
|
231
|
+
_d = ((_j = data === null || data === void 0 ? void 0 : data.notification) === null || _j === void 0 ? void 0 : _j.recipient) || {}, id = _d.id, type = _d.type;
|
|
232
|
+
return [4, Promise.all([
|
|
233
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
234
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
|
|
235
|
+
])];
|
|
235
236
|
case 2:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
_m.sent();
|
|
240
|
-
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, {});
|
|
241
|
-
(_l = (_k = settings.data.appConfig).onFlowCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, { data: data });
|
|
237
|
+
boardInfoStatusData = (_p.sent())[0];
|
|
238
|
+
(_l = (_k = settings.data.appConfig).onStepCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, settings.data.activeScreen.name, {});
|
|
239
|
+
(_o = (_m = settings.data.appConfig).onFlowCompleted) === null || _o === void 0 ? void 0 : _o.call(_m, { data: data });
|
|
242
240
|
thunkApi.dispatch(handleNextScreenStep());
|
|
243
|
-
return [2, {
|
|
241
|
+
return [2, { data: data, flows: (boardInfoStatusData === null || boardInfoStatusData === void 0 ? void 0 : boardInfoStatusData.info) || [] }];
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
}); });
|
|
245
|
+
export var retrieveBoardStatus = createAsyncThunk('password/retrieveBoardStatus', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
246
|
+
var password, _a, board_id, board_info_id, recipient, _b, id, type, data;
|
|
247
|
+
return __generator(this, function (_c) {
|
|
248
|
+
switch (_c.label) {
|
|
249
|
+
case 0:
|
|
250
|
+
password = thunkApi.getState().password;
|
|
251
|
+
_a = password.data.verify.responseBody || {}, board_id = _a.board_id, board_info_id = _a.board_info_id, recipient = _a.recipient;
|
|
252
|
+
if (!board_id || !board_info_id)
|
|
253
|
+
throw new Error('Internal server error');
|
|
254
|
+
_b = recipient || {}, id = _b.id, type = _b.type;
|
|
255
|
+
return [4, Promise.all([
|
|
256
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
257
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
|
|
258
|
+
])];
|
|
259
|
+
case 1:
|
|
260
|
+
data = (_c.sent())[0];
|
|
261
|
+
thunkApi.dispatch(handlePrevScreenStep());
|
|
262
|
+
return [2, { flows: (data === null || data === void 0 ? void 0 : data.info) || [] }];
|
|
244
263
|
}
|
|
245
264
|
});
|
|
246
265
|
}); });
|
|
247
266
|
export var verifyOperationToken = createAsyncThunk('verifyOperationToken', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
-
var token, boardId, boardInfoId,
|
|
249
|
-
var
|
|
250
|
-
return __generator(this, function (
|
|
251
|
-
switch (
|
|
267
|
+
var token, boardId, boardInfoId, userId, userType, payload, data, countryIso2, publicKey, data_3;
|
|
268
|
+
var _a, _b, _c;
|
|
269
|
+
return __generator(this, function (_d) {
|
|
270
|
+
switch (_d.label) {
|
|
252
271
|
case 0:
|
|
253
|
-
token = params.token, boardId = params.boardId, boardInfoId = params.boardInfoId;
|
|
254
|
-
boardData = undefined;
|
|
272
|
+
token = params.token, boardId = params.boardId, boardInfoId = params.boardInfoId, userId = params.userId, userType = params.userType;
|
|
255
273
|
payload = {
|
|
256
274
|
auth_type: 7,
|
|
257
275
|
auth_token: token
|
|
258
276
|
};
|
|
259
277
|
return [4, API.authService.verifyAuth(payload)];
|
|
260
278
|
case 1:
|
|
261
|
-
data = (
|
|
262
|
-
if (
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
279
|
+
data = (_d.sent()).data;
|
|
280
|
+
if ((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a.length)
|
|
281
|
+
throw new Error(data.errors[0].description);
|
|
282
|
+
countryIso2 = data === null || data === void 0 ? void 0 : data.country;
|
|
283
|
+
if (countryIso2)
|
|
284
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
285
|
+
publicKey = (_b = data === null || data === void 0 ? void 0 : data.config) === null || _b === void 0 ? void 0 : _b.public_key;
|
|
286
|
+
if (publicKey)
|
|
287
|
+
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
288
|
+
if (!!(data === null || data === void 0 ? void 0 : data.country)) return [3, 3];
|
|
266
289
|
return [4, API.boardService.retrieveBoardDetails(boardId)];
|
|
290
|
+
case 2:
|
|
291
|
+
data_3 = _d.sent();
|
|
292
|
+
if ((_c = data_3 === null || data_3 === void 0 ? void 0 : data_3.entity) === null || _c === void 0 ? void 0 : _c.country)
|
|
293
|
+
thunkApi.dispatch(handleSetCountryByIso2(data_3.entity.country));
|
|
294
|
+
_d.label = 3;
|
|
267
295
|
case 3:
|
|
268
|
-
boardData = _f.sent();
|
|
269
|
-
if (!boardInfoId) return [3, 5];
|
|
270
|
-
return [4, API.boardService.retrieveBoardInfo({ id: boardId, infoId: boardInfoId })];
|
|
271
|
-
case 4:
|
|
272
|
-
boardInfoData = _f.sent();
|
|
273
|
-
_f.label = 5;
|
|
274
|
-
case 5:
|
|
275
|
-
_a = ((_c = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _c === void 0 ? void 0 : _c.recipient) || {}, id_2 = _a.id, type_2 = _a.type;
|
|
276
|
-
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_2, type_2); };
|
|
277
|
-
return [4, retrieveIndividualData(type_2, boardData, serviceCallBack)];
|
|
278
|
-
case 6:
|
|
279
|
-
_b = _f.sent(), boardRes = _b.boardRes, individualRes = _b.individualRes;
|
|
280
|
-
boardData = boardRes;
|
|
281
|
-
individualData = individualRes;
|
|
282
|
-
_f.label = 7;
|
|
283
|
-
case 7:
|
|
284
296
|
thunkApi.dispatch(handleNextScreenStep('PASSWORD_CREATE_PASSWORD_STEP'));
|
|
285
|
-
return [2, {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
flows: (boardStatusData === null || boardStatusData === void 0 ? void 0 : boardStatusData.info) || []
|
|
293
|
-
}];
|
|
297
|
+
return [2, __assign({ data: data, token: token, boardId: boardId, boardInfoId: boardInfoId }, (userId &&
|
|
298
|
+
userType && {
|
|
299
|
+
recipient: {
|
|
300
|
+
id: userId,
|
|
301
|
+
type: userType
|
|
302
|
+
}
|
|
303
|
+
}))];
|
|
294
304
|
}
|
|
295
305
|
});
|
|
296
306
|
}); });
|
|
@@ -313,9 +323,9 @@ export var resendOperationOTP = createAsyncThunk('resendOperationOTPPassword', f
|
|
|
313
323
|
}); });
|
|
314
324
|
export var resetPassword = createAsyncThunk('resetPassword', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
325
|
var _a, password, settings, responseBody, passwordData, payload, data;
|
|
316
|
-
var _b, _c;
|
|
317
|
-
return __generator(this, function (
|
|
318
|
-
switch (
|
|
326
|
+
var _b, _c, _d;
|
|
327
|
+
return __generator(this, function (_e) {
|
|
328
|
+
switch (_e.label) {
|
|
319
329
|
case 0:
|
|
320
330
|
_a = thunkApi.getState(), password = _a.password, settings = _a.settings;
|
|
321
331
|
responseBody = password.data.verify.responseBody;
|
|
@@ -332,39 +342,42 @@ export var resetPassword = createAsyncThunk('resetPassword', function (params, t
|
|
|
332
342
|
};
|
|
333
343
|
return [4, API.authService.verifyAuth(payload)];
|
|
334
344
|
case 1:
|
|
335
|
-
data = (
|
|
345
|
+
data = (_e.sent()).data;
|
|
346
|
+
if ((_b = data === null || data === void 0 ? void 0 : data.errors) === null || _b === void 0 ? void 0 : _b.length)
|
|
347
|
+
throw new Error(data.errors[0].description);
|
|
336
348
|
if (!(data === null || data === void 0 ? void 0 : data.errors)) {
|
|
337
349
|
thunkApi.dispatch(handleNextScreenStep('PASSWORD_SUCCESS_STEP'));
|
|
338
|
-
(
|
|
350
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, payload);
|
|
339
351
|
}
|
|
340
352
|
return [2, { data: data, formData: __assign(__assign({}, params), passwordData) }];
|
|
341
353
|
}
|
|
342
354
|
});
|
|
343
355
|
}); });
|
|
344
356
|
export var retrieveBoardResetPasswordSuccess = createAsyncThunk('retrieveBoardResetPasswordSuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
345
|
-
var _a, password, settings, _b,
|
|
346
|
-
var
|
|
347
|
-
return __generator(this, function (
|
|
348
|
-
switch (
|
|
357
|
+
var _a, password, settings, _b, board_id, boardResponse, recipient, _c, showBoard, mode, _d, id, type, data;
|
|
358
|
+
var _e, _f, _g, _h, _j, _k, _l, _m;
|
|
359
|
+
return __generator(this, function (_o) {
|
|
360
|
+
switch (_o.label) {
|
|
349
361
|
case 0:
|
|
350
362
|
_a = thunkApi.getState(), password = _a.password, settings = _a.settings;
|
|
351
|
-
_b = password.data.verify.responseBody || { board_id: '' },
|
|
363
|
+
_b = password.data.verify.responseBody || { board_id: '' }, board_id = _b.board_id, boardResponse = _b.boardResponse, recipient = _b.recipient;
|
|
352
364
|
_c = settings.data.appConfig, showBoard = _c.showBoard, mode = _c.mode;
|
|
353
365
|
if (!showBoard && mode === 'content') {
|
|
354
|
-
(
|
|
355
|
-
(
|
|
356
|
-
return [2, { id:
|
|
366
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, {});
|
|
367
|
+
(_h = (_g = settings.data.appConfig).onFlowCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, { data: boardResponse });
|
|
368
|
+
return [2, { id: board_id, flows: [] }];
|
|
357
369
|
}
|
|
358
|
-
|
|
370
|
+
_d = recipient || {}, id = _d.id, type = _d.type;
|
|
371
|
+
return [4, Promise.all([
|
|
372
|
+
API.boardService.retrieveBoardInfoStatus(board_id),
|
|
373
|
+
thunkApi.dispatch(retrieveBoardDetails({ boardId: board_id, individualId: id, individualType: type })).unwrap()
|
|
374
|
+
])];
|
|
359
375
|
case 1:
|
|
360
|
-
|
|
361
|
-
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
362
|
-
case 2:
|
|
363
|
-
_m.sent();
|
|
376
|
+
data = (_o.sent())[0];
|
|
364
377
|
thunkApi.dispatch(handleNextScreenStep());
|
|
365
|
-
(
|
|
366
|
-
(
|
|
367
|
-
return [2, { id:
|
|
378
|
+
(_k = (_j = settings.data.appConfig).onStepCompleted) === null || _k === void 0 ? void 0 : _k.call(_j, settings.data.activeScreen.name, { id: id });
|
|
379
|
+
(_m = (_l = settings.data.appConfig).onFlowCompleted) === null || _m === void 0 ? void 0 : _m.call(_l, board_id);
|
|
380
|
+
return [2, { id: board_id, flows: (data === null || data === void 0 ? void 0 : data.info) || [] }];
|
|
368
381
|
}
|
|
369
382
|
});
|
|
370
383
|
}); });
|
|
@@ -419,17 +432,11 @@ export var passwordSlice = createSlice({
|
|
|
419
432
|
extraReducers: function (builder) {
|
|
420
433
|
builder
|
|
421
434
|
.addCase(verifyLeadToken.fulfilled, function (state, action) {
|
|
422
|
-
var _a;
|
|
423
435
|
state.data.verify.operationType = PASSWORD_OPERATION_TYPE.SET_PASSWORD;
|
|
424
436
|
state.error = null;
|
|
425
437
|
state.customLoading = false;
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
if (description) {
|
|
429
|
-
state.error = description;
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: data.id });
|
|
438
|
+
var _a = action.payload, data = _a.data, token = _a.token;
|
|
439
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, data), state.data.verify.responseBody), { board_id: data.id });
|
|
433
440
|
state.data.verify.token = token;
|
|
434
441
|
})
|
|
435
442
|
.addCase(verifyLeadToken.pending, function (state) {
|
|
@@ -462,17 +469,12 @@ export var passwordSlice = createSlice({
|
|
|
462
469
|
state.error = null;
|
|
463
470
|
})
|
|
464
471
|
.addCase(verifyPasswordLeadOTP.fulfilled, function (state, action) {
|
|
465
|
-
var _a;
|
|
466
472
|
state.loading = false;
|
|
467
473
|
state.error = null;
|
|
468
|
-
var
|
|
469
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
470
|
-
if (description) {
|
|
471
|
-
state.error = description;
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
474
475
|
state.data.otpData = formData;
|
|
475
476
|
state.data.otpData.responseBody = data;
|
|
477
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, data), state.data.verify.responseBody), { board_id: data.id });
|
|
476
478
|
})
|
|
477
479
|
.addCase(verifyPasswordLeadOTP.rejected, function (state, action) {
|
|
478
480
|
state.loading = false;
|
|
@@ -506,7 +508,7 @@ export var passwordSlice = createSlice({
|
|
|
506
508
|
.addCase(retrieveBoardDetails.fulfilled, function (state, action) {
|
|
507
509
|
state.error = null;
|
|
508
510
|
state.loading = false;
|
|
509
|
-
var data =
|
|
511
|
+
var data = action.payload || {};
|
|
510
512
|
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), data);
|
|
511
513
|
})
|
|
512
514
|
.addCase(retrieveBoardDetails.rejected, function (state, action) {
|
|
@@ -514,15 +516,11 @@ export var passwordSlice = createSlice({
|
|
|
514
516
|
state.loading = false;
|
|
515
517
|
})
|
|
516
518
|
.addCase(updateBoardSuccess.fulfilled, function (state, action) {
|
|
519
|
+
var _a;
|
|
517
520
|
state.loading = false;
|
|
518
521
|
state.error = null;
|
|
519
|
-
var
|
|
520
|
-
|
|
521
|
-
var _a = state.data.verify.responseBody || {}, individuals = _a.individuals, individualData = _a.individualData;
|
|
522
|
-
var data_state = (individualData || {}).data_state;
|
|
523
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
524
|
-
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
525
|
-
}));
|
|
522
|
+
var _b = action.payload || {}, flows = _b.flows, data = _b.data;
|
|
523
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows, recipient: (_a = data === null || data === void 0 ? void 0 : data.notification) === null || _a === void 0 ? void 0 : _a.recipient });
|
|
526
524
|
})
|
|
527
525
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
528
526
|
state.loading = true;
|
|
@@ -531,20 +529,27 @@ export var passwordSlice = createSlice({
|
|
|
531
529
|
.addCase(updateBoardSuccess.rejected, function (state, action) {
|
|
532
530
|
state.loading = false;
|
|
533
531
|
state.error = action.error.message;
|
|
532
|
+
})
|
|
533
|
+
.addCase(retrieveBoardStatus.pending, function (state) {
|
|
534
|
+
state.error = null;
|
|
535
|
+
state.loading = true;
|
|
536
|
+
})
|
|
537
|
+
.addCase(retrieveBoardStatus.fulfilled, function (state, action) {
|
|
538
|
+
state.error = null;
|
|
539
|
+
state.loading = false;
|
|
540
|
+
var flows = (action.payload || {}).flows;
|
|
541
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
542
|
+
})
|
|
543
|
+
.addCase(retrieveBoardStatus.rejected, function (state, action) {
|
|
544
|
+
state.error = action.error.message;
|
|
545
|
+
state.loading = false;
|
|
534
546
|
})
|
|
535
547
|
.addCase(verifyOperationToken.fulfilled, function (state, action) {
|
|
536
|
-
var _a;
|
|
537
548
|
state.data.verify.operationType = PASSWORD_OPERATION_TYPE.RESET_PASSWORD;
|
|
538
549
|
state.error = null;
|
|
539
550
|
state.customLoading = false;
|
|
540
|
-
var
|
|
541
|
-
state.data.verify.responseBody = __assign(__assign(__assign({},
|
|
542
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
543
|
-
if (description) {
|
|
544
|
-
state.error = description;
|
|
545
|
-
return;
|
|
546
|
-
}
|
|
547
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: boardId, board_info_id: boardInfoId, flows: flows });
|
|
551
|
+
var _a = action.payload, data = _a.data, token = _a.token, boardId = _a.boardId, boardInfoId = _a.boardInfoId, recipient = _a.recipient;
|
|
552
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), { board_id: boardId, board_info_id: boardInfoId }), (recipient && { recipient: recipient }));
|
|
548
553
|
state.data.verify.token = token;
|
|
549
554
|
})
|
|
550
555
|
.addCase(verifyOperationToken.pending, function (state) {
|
|
@@ -573,16 +578,10 @@ export var passwordSlice = createSlice({
|
|
|
573
578
|
state.error = action.error.message;
|
|
574
579
|
})
|
|
575
580
|
.addCase(resetPassword.fulfilled, function (state, action) {
|
|
576
|
-
var _a;
|
|
577
581
|
state.data.verify.operationType = PASSWORD_OPERATION_TYPE.RESET_PASSWORD;
|
|
578
582
|
state.error = null;
|
|
579
583
|
state.loading = false;
|
|
580
|
-
var
|
|
581
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
582
|
-
if (description) {
|
|
583
|
-
state.error = description;
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
584
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
586
585
|
state.data.passwordData = formData;
|
|
587
586
|
state.data.passwordData.responseBody = data;
|
|
588
587
|
})
|
|
@@ -597,13 +596,8 @@ export var passwordSlice = createSlice({
|
|
|
597
596
|
.addCase(retrieveBoardResetPasswordSuccess.fulfilled, function (state, action) {
|
|
598
597
|
state.loading = false;
|
|
599
598
|
state.error = null;
|
|
600
|
-
var
|
|
601
|
-
|
|
602
|
-
var _a = state.data.verify.responseBody || {}, individuals = _a.individuals, individualData = _a.individualData;
|
|
603
|
-
var data_state = (((individualData === null || individualData === void 0 ? void 0 : individualData.is_authorized) ? individuals : individualData) || {}).data_state;
|
|
604
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
605
|
-
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
606
|
-
}));
|
|
599
|
+
var flows = (action.payload || {}).flows;
|
|
600
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
607
601
|
})
|
|
608
602
|
.addCase(retrieveBoardResetPasswordSuccess.pending, function (state) {
|
|
609
603
|
state.loading = true;
|