@tap-payments/auth-jsconnect 2.0.54-test → 2.0.55-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 +39 -14
- package/build/@types/app.js +9 -0
- package/build/@types/form.d.ts +11 -0
- package/build/api/account.js +1 -1
- package/build/api/auth.d.ts +15 -2
- package/build/api/auth.js +25 -2
- package/build/api/availabilityServices.js +1 -1
- package/build/api/axios.js +4 -4
- 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.d.ts +33 -7
- package/build/api/data.js +42 -17
- package/build/api/entity.d.ts +2 -0
- package/build/api/entity.js +1 -1
- package/build/api/firebase.js +1 -1
- package/build/api/individual.d.ts +1 -1
- package/build/api/individual.js +1 -1
- package/build/api/ip.js +1 -1
- package/build/api/lead.d.ts +1 -1
- package/build/api/lead.js +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.js +1 -1
- package/build/app/rootReducer.d.ts +10 -7
- package/build/app/rootReducer.js +14 -8
- package/build/app/settings.d.ts +2 -2
- package/build/app/settings.js +11 -5
- package/build/app/store.d.ts +6 -0
- package/build/assets/locales/ar.json +14 -4
- package/build/assets/locales/en.json +14 -4
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +5 -7
- package/build/components/AnimationFlow/BottomSheet.js +2 -1
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +10 -5
- package/build/components/DatePicker/DatePicker.js +3 -3
- package/build/components/FileInput/DragAndDrop.d.ts +9 -1
- package/build/components/FileInput/DragAndDrop.js +115 -10
- 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/Lottie/Lottie.d.ts +878 -0
- package/build/components/Lottie/Lottie.js +58 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/success.json +425 -0
- package/build/components/Lottie/index.d.ts +3 -0
- package/build/components/Lottie/index.js +3 -0
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +14 -0
- package/build/components/ProgressBar/CircularProgressBar.js +48 -0
- package/build/components/ProgressBar/index.d.ts +2 -0
- package/build/components/ProgressBar/index.js +2 -0
- package/build/components/Providers/ThemeProvider.d.ts +1 -1
- package/build/components/SimpleList/SimpleList.js +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +3 -2
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +29 -36
- package/build/constants/api.d.ts +1 -0
- package/build/constants/api.js +10 -7
- package/build/constants/app.d.ts +16 -1
- package/build/constants/app.js +76 -4
- package/build/constants/assets.d.ts +17 -1
- package/build/constants/assets.js +22 -6
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/auth/authStore.d.ts +35 -0
- package/build/features/app/auth/authStore.js +148 -0
- package/build/features/app/bank/bankStore.d.ts +6 -2
- package/build/features/app/bank/bankStore.js +46 -26
- package/build/features/app/business/businessStore.d.ts +2 -2
- package/build/features/app/business/businessStore.js +58 -48
- package/build/features/app/connect/connectStore.d.ts +14 -2
- package/build/features/app/connect/connectStore.js +170 -10
- package/build/features/app/entity/entityStore.d.ts +53 -0
- package/build/features/app/entity/entityStore.js +461 -0
- package/build/features/app/individual/individualStore.d.ts +2 -2
- package/build/features/app/individual/individualStore.js +23 -15
- package/build/features/app/otp/otpStore.d.ts +28 -0
- package/build/features/app/otp/otpStore.js +153 -0
- package/build/features/app/password/passwordStore.d.ts +2 -2
- package/build/features/app/password/passwordStore.js +4 -4
- package/build/features/app/signIn/signInStore.d.ts +2 -2
- package/build/features/app/signIn/signInStore.js +6 -6
- package/build/features/app/tax/taxStore.d.ts +2 -2
- package/build/features/app/tax/taxStore.js +5 -5
- package/build/features/auth/Auth.d.ts +10 -0
- package/build/features/auth/Auth.js +87 -0
- package/build/features/auth/index.d.ts +1 -0
- package/build/features/auth/index.js +1 -0
- package/build/features/auth/screens/OTP/OTP.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTP.js +72 -0
- package/build/features/auth/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/auth/screens/OTP/OTPInput.js +44 -0
- package/build/features/auth/screens/OTP/index.d.ts +3 -0
- package/build/features/auth/screens/OTP/index.js +2 -0
- package/build/features/auth/screens/OTP/validation.d.ts +8 -0
- package/build/features/auth/screens/OTP/validation.js +4 -0
- package/build/features/bank/Bank.d.ts +1 -1
- package/build/features/bank/Bank.js +18 -12
- 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.js +35 -10
- package/build/features/bank/screens/BankDetails/Beneficiary.js +7 -7
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +5 -5
- package/build/features/bank/screens/BankDetails/IBAN.js +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +1 -1
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/bank/screens/Success/Success.js +3 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/bank/screens/Verify/OTPInput.js +4 -4
- package/build/features/bank/screens/Verify/Verify.js +9 -9
- package/build/features/business/Business.d.ts +2 -2
- package/build/features/business/Business.js +20 -13
- package/build/features/business/screens/Activities/Activities.js +7 -7
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +2 -2
- package/build/features/business/screens/Activities/ActivitiesList.js +9 -9
- package/build/features/business/screens/Activities/LicenseName.js +6 -6
- package/build/features/business/screens/Activities/OperationStartDate.js +4 -4
- package/build/features/business/screens/Activities/SalesChannels.d.ts +1 -1
- package/build/features/business/screens/Activities/SalesChannels.js +8 -8
- package/build/features/business/screens/BusinessType/BusinessType.js +8 -8
- package/build/features/business/screens/BusinessType/LicenseList.js +10 -10
- package/build/features/business/screens/BusinessType/LicenseNumber.js +8 -8
- 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/Customers/CustomerLocations.d.ts +3 -3
- package/build/features/business/screens/Customers/CustomerLocations.js +33 -15
- package/build/features/business/screens/Customers/Customers.js +8 -8
- package/build/features/business/screens/Customers/ExpectedCustomers.js +22 -10
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +39 -21
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +1 -1
- package/build/features/business/screens/Customers/RefundPolicy.js +7 -7
- package/build/features/business/screens/Customers/TransactionPolicy.js +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +5 -5
- package/build/features/business/screens/IDBOD/ID.js +6 -6
- 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 +1 -1
- package/build/features/business/screens/Success/Success.js +3 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/business/screens/Verify/OTPInput.js +4 -4
- package/build/features/business/screens/Verify/Verify.js +9 -9
- package/build/features/connect/Connect.d.ts +3 -2
- package/build/features/connect/Connect.js +46 -16
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +85 -0
- package/build/features/connect/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connect/screens/CivilID/IDNumber.js +59 -0
- package/build/features/connect/screens/CivilID/index.d.ts +3 -0
- package/build/features/connect/screens/CivilID/index.js +2 -0
- package/build/features/connect/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connect/screens/CivilID/validation.js +4 -0
- package/build/features/connect/screens/Individual/Email.js +7 -7
- package/build/features/connect/screens/Individual/Individual.js +14 -10
- package/build/features/connect/screens/Individual/MobileNumber.d.ts +1 -1
- package/build/features/connect/screens/Individual/MobileNumber.js +11 -11
- package/build/features/connect/screens/Individual/Name.js +6 -6
- 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 +8 -8
- package/build/features/connect/screens/Merchant/BrandName.js +10 -10
- package/build/features/connect/screens/Merchant/Merchant.js +42 -18
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +5 -0
- package/build/features/connect/screens/Merchant/SalesChannels.js +114 -0
- package/build/features/connect/screens/Merchant/SocialMedia.js +65 -20
- package/build/features/connect/screens/Merchant/TAC.js +7 -7
- package/build/features/connect/screens/Merchant/validation.d.ts +87 -0
- package/build/features/connect/screens/Merchant/validation.js +69 -3
- package/build/features/connect/screens/Mobile/Mobile.js +16 -13
- 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 +8 -8
- package/build/features/connect/screens/NID/NID.js +8 -8
- package/build/features/connect/screens/OTP/OTP.js +9 -9
- package/build/features/connect/screens/OTP/OTPInput.js +4 -4
- package/build/features/connect/screens/ThankYou/ThankYou.js +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +169 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +22 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +8 -0
- package/build/features/connect/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connect/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +7 -0
- package/build/features/entity/Entity.js +70 -0
- package/build/features/entity/index.d.ts +1 -0
- package/build/features/entity/index.js +1 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +54 -0
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +139 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +56 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +17 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +28 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +6 -0
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +38 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +5 -0
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +112 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/index.js +2 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +107 -0
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +17 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/entity/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/entity/screens/Success/Success.d.ts +5 -0
- package/build/features/entity/screens/Success/Success.js +16 -0
- package/build/features/entity/screens/Success/index.d.ts +3 -0
- package/build/features/entity/screens/Success/index.js +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +109 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/entity/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/entity/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/entity/screens/Verify/OTPInput.js +47 -0
- package/build/features/entity/screens/Verify/Verify.d.ts +5 -0
- package/build/features/entity/screens/Verify/Verify.js +78 -0
- package/build/features/entity/screens/Verify/index.d.ts +2 -0
- package/build/features/entity/screens/Verify/index.js +2 -0
- package/build/features/entity/screens/Verify/validation.d.ts +8 -0
- package/build/features/entity/screens/Verify/validation.js +4 -0
- package/build/features/featuresScreens.d.ts +4 -1
- package/build/features/featuresScreens.js +88 -40
- package/build/features/individual/Individual.d.ts +2 -2
- package/build/features/individual/Individual.js +20 -13
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +9 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerLocation.js +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +6 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +23 -12
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +1 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +19 -11
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +6 -6
- 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/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +6 -6
- package/build/features/individual/screens/ShowIndividualInfo/info.js +1 -1
- package/build/features/individual/screens/Success/Success.js +3 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/individual/screens/Verify/OTPInput.js +4 -4
- package/build/features/individual/screens/Verify/Verify.js +9 -9
- package/build/features/otp/OTP.d.ts +7 -0
- package/build/features/otp/OTP.js +58 -0
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +1 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +6 -0
- package/build/features/otp/screens/OTPVerify/OTPInput.js +47 -0
- package/build/features/otp/screens/OTPVerify/Verify.d.ts +5 -0
- package/build/features/otp/screens/OTPVerify/Verify.js +49 -0
- package/build/features/otp/screens/OTPVerify/index.d.ts +2 -0
- package/build/features/otp/screens/OTPVerify/index.js +2 -0
- package/build/features/otp/screens/OTPVerify/validation.d.ts +8 -0
- package/build/features/otp/screens/OTPVerify/validation.js +4 -0
- package/build/features/password/Password.d.ts +2 -2
- package/build/features/password/Password.js +20 -13
- 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 +1 -1
- package/build/features/password/screens/Success/Success.js +4 -4
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/password/screens/Verify/OTPInput.js +4 -4
- package/build/features/password/screens/Verify/Verify.js +9 -9
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +4 -4
- package/build/features/shared/Background/Background.d.ts +7 -5
- package/build/features/shared/Background/Background.js +16 -5
- 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 +2 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +2 -2
- package/build/features/shared/Button/FlowsButtons.js +6 -6
- package/build/features/shared/Button/MobileButton.d.ts +1 -1
- package/build/features/shared/Button/MobileButton.js +3 -3
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +62 -0
- package/build/features/shared/Dialog/DialogContainer.d.ts +8 -0
- package/build/features/shared/Dialog/DialogContainer.js +56 -0
- package/build/features/shared/Dialog/index.d.ts +4 -0
- package/build/features/shared/Dialog/index.js +4 -0
- package/build/features/shared/Footer/Footer.js +4 -4
- package/build/features/shared/Input/Input.d.ts +2 -2
- package/build/features/shared/Input/Input.js +4 -4
- package/build/features/shared/OTP/OTP.d.ts +1 -1
- package/build/features/shared/OTP/OTP.js +3 -3
- package/build/features/shared/Search/Search.js +1 -1
- package/build/features/shared/SearchIcon/SearchIcon.js +2 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -5
- package/build/features/shared/UploadFile/UploadFile.d.ts +8 -3
- package/build/features/shared/UploadFile/UploadFile.js +27 -12
- package/build/features/signIn/SignIn.d.ts +2 -2
- package/build/features/signIn/SignIn.js +21 -13
- 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 +2 -2
- package/build/features/tax/Tax.js +21 -13
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +1 -1
- package/build/features/tax/screens/Success/Success.js +3 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +9 -9
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +5 -5
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +6 -6
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -5
- package/build/features/tax/screens/Verify/OTPInput.js +4 -4
- package/build/features/tax/screens/Verify/Verify.js +9 -9
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.js +1 -0
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +3 -0
- 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/useErrorListener.js +4 -3
- package/build/hooks/useLanguage.js +1 -1
- package/build/hooks/useRedirectionListener.js +1 -1
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useStepStartedListener.js +1 -1
- package/build/i18n.js +1 -1
- package/build/index.d.ts +12 -9
- package/build/index.js +18 -9
- package/build/theme/theme.d.ts +1 -1
- package/build/utils/array.d.ts +1 -1
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/html.d.ts +1 -0
- package/build/utils/html.js +6 -0
- package/build/utils/locale.d.ts +1 -1
- package/build/utils/locale.js +2 -2
- package/build/utils/rsa.d.ts +2 -2
- package/build/utils/rsa.js +2 -2
- package/build/utils/string.d.ts +23 -21
- package/build/utils/string.js +13 -4
- package/package.json +1 -1
- package/build/api/index.d.ts +0 -83
- package/build/components/DatePicker/customStyle.css +0 -86
- package/build/index.css +0 -140
package/build/@types/app.d.ts
CHANGED
|
@@ -44,23 +44,35 @@ export interface FeatureScreenStep {
|
|
|
44
44
|
export declare enum SocialMediaTypes {
|
|
45
45
|
WEB = "website",
|
|
46
46
|
INSTAGRAM = "instagram",
|
|
47
|
-
TWITTER = "twitter"
|
|
47
|
+
TWITTER = "twitter",
|
|
48
|
+
SOCIAL = "social media",
|
|
49
|
+
PHYSICAL_STORE = "physical store",
|
|
50
|
+
CALL_CENTER = "call center",
|
|
51
|
+
APP = "mobile app",
|
|
52
|
+
APPLE_STORE = "apple store",
|
|
53
|
+
PLAY_STORE = "play store"
|
|
48
54
|
}
|
|
49
55
|
export interface CustomerLocation {
|
|
50
56
|
id: string;
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
name: {
|
|
58
|
+
ar: string;
|
|
59
|
+
en: string;
|
|
60
|
+
};
|
|
53
61
|
}
|
|
54
62
|
export interface ExpectedCustomer extends CustomerLocation {
|
|
55
63
|
}
|
|
56
64
|
export interface ExpectedSaleRange {
|
|
57
65
|
id: string;
|
|
58
|
-
|
|
59
|
-
|
|
66
|
+
name: {
|
|
67
|
+
ar: string;
|
|
68
|
+
en: string;
|
|
69
|
+
};
|
|
60
70
|
sub?: Array<{
|
|
61
71
|
id: string;
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
name: {
|
|
73
|
+
ar: string;
|
|
74
|
+
en: string;
|
|
75
|
+
};
|
|
64
76
|
}>;
|
|
65
77
|
}
|
|
66
78
|
export declare enum BusinessType {
|
|
@@ -83,20 +95,30 @@ export interface Activity {
|
|
|
83
95
|
}
|
|
84
96
|
export interface SalesChannel {
|
|
85
97
|
id: string;
|
|
86
|
-
|
|
87
|
-
|
|
98
|
+
name: {
|
|
99
|
+
ar: string;
|
|
100
|
+
en: string;
|
|
101
|
+
};
|
|
88
102
|
}
|
|
89
103
|
export interface SourceOfIncome {
|
|
90
104
|
id: string;
|
|
91
|
-
|
|
92
|
-
|
|
105
|
+
name: {
|
|
106
|
+
ar: string;
|
|
107
|
+
en: string;
|
|
108
|
+
};
|
|
93
109
|
}
|
|
94
110
|
export interface Occupation {
|
|
95
111
|
id: string;
|
|
96
|
-
|
|
97
|
-
|
|
112
|
+
name: {
|
|
113
|
+
ar: string;
|
|
114
|
+
en: string;
|
|
115
|
+
};
|
|
98
116
|
}
|
|
99
117
|
export interface MonthlyIncome extends SourceOfIncome {
|
|
118
|
+
range: {
|
|
119
|
+
ar: string;
|
|
120
|
+
en: string;
|
|
121
|
+
};
|
|
100
122
|
}
|
|
101
123
|
export interface AppInfo {
|
|
102
124
|
name: string;
|
|
@@ -187,7 +209,10 @@ export declare enum FlowsTypes {
|
|
|
187
209
|
BUSINESS = "business",
|
|
188
210
|
INDIVIDUAL = "individual",
|
|
189
211
|
PASSWORD = "password",
|
|
190
|
-
TAX = "tax"
|
|
212
|
+
TAX = "tax",
|
|
213
|
+
ENTITY = "entity",
|
|
214
|
+
OTP = "otp",
|
|
215
|
+
AUTH = "auth"
|
|
191
216
|
}
|
|
192
217
|
export declare type FlowInfo = {
|
|
193
218
|
name: string;
|
package/build/@types/app.js
CHANGED
|
@@ -3,6 +3,12 @@ export var SocialMediaTypes;
|
|
|
3
3
|
SocialMediaTypes["WEB"] = "website";
|
|
4
4
|
SocialMediaTypes["INSTAGRAM"] = "instagram";
|
|
5
5
|
SocialMediaTypes["TWITTER"] = "twitter";
|
|
6
|
+
SocialMediaTypes["SOCIAL"] = "social media";
|
|
7
|
+
SocialMediaTypes["PHYSICAL_STORE"] = "physical store";
|
|
8
|
+
SocialMediaTypes["CALL_CENTER"] = "call center";
|
|
9
|
+
SocialMediaTypes["APP"] = "mobile app";
|
|
10
|
+
SocialMediaTypes["APPLE_STORE"] = "apple store";
|
|
11
|
+
SocialMediaTypes["PLAY_STORE"] = "play store";
|
|
6
12
|
})(SocialMediaTypes || (SocialMediaTypes = {}));
|
|
7
13
|
export var BusinessType;
|
|
8
14
|
(function (BusinessType) {
|
|
@@ -17,4 +23,7 @@ export var FlowsTypes;
|
|
|
17
23
|
FlowsTypes["INDIVIDUAL"] = "individual";
|
|
18
24
|
FlowsTypes["PASSWORD"] = "password";
|
|
19
25
|
FlowsTypes["TAX"] = "tax";
|
|
26
|
+
FlowsTypes["ENTITY"] = "entity";
|
|
27
|
+
FlowsTypes["OTP"] = "otp";
|
|
28
|
+
FlowsTypes["AUTH"] = "auth";
|
|
20
29
|
})(FlowsTypes || (FlowsTypes = {}));
|
package/build/@types/form.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export declare type NIDFormValues = {
|
|
|
16
16
|
nid: string;
|
|
17
17
|
dob: string;
|
|
18
18
|
};
|
|
19
|
+
export declare type CivilFormValues = {
|
|
20
|
+
civilId: string;
|
|
21
|
+
};
|
|
19
22
|
export declare type IndividualFormValues = {
|
|
20
23
|
name: string;
|
|
21
24
|
email: string;
|
|
@@ -24,6 +27,7 @@ export declare type IndividualFormValues = {
|
|
|
24
27
|
};
|
|
25
28
|
export declare type BrandFormValues = {
|
|
26
29
|
brandName: string;
|
|
30
|
+
salesChannels: Array<SalesChannel>;
|
|
27
31
|
links: {
|
|
28
32
|
website: string;
|
|
29
33
|
twitter: string;
|
|
@@ -74,3 +78,10 @@ export declare type PasswordCreateFormValues = {
|
|
|
74
78
|
password: string;
|
|
75
79
|
confirmPassword: string;
|
|
76
80
|
};
|
|
81
|
+
export declare type EntityFormValues = {
|
|
82
|
+
licenseNumber?: string;
|
|
83
|
+
licenseName?: string;
|
|
84
|
+
activities?: Array<Activity>;
|
|
85
|
+
salesChannels?: Array<SalesChannel>;
|
|
86
|
+
operationStartDate: string;
|
|
87
|
+
};
|
package/build/api/account.js
CHANGED
package/build/api/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { LanguageMode } from '
|
|
2
|
+
import { LanguageMode } from '@types';
|
|
3
3
|
export declare type MobileCredential = {
|
|
4
4
|
code: string;
|
|
5
5
|
phone: string;
|
|
@@ -13,8 +13,12 @@ export declare type IDCredential = {
|
|
|
13
13
|
identification_id_type: string;
|
|
14
14
|
date_of_birth: string;
|
|
15
15
|
};
|
|
16
|
+
export declare type CivilID = {
|
|
17
|
+
identification_id: string;
|
|
18
|
+
country_code: string;
|
|
19
|
+
};
|
|
16
20
|
export declare type CreateAuthBody = {
|
|
17
|
-
user_credentail: MobileCredential | EmailCredential | IDCredential;
|
|
21
|
+
user_credentail: MobileCredential | EmailCredential | IDCredential | CivilID;
|
|
18
22
|
auth_type?: number;
|
|
19
23
|
email_url?: string;
|
|
20
24
|
sign_in?: boolean;
|
|
@@ -56,9 +60,18 @@ export declare type CreatePasswordBody = {
|
|
|
56
60
|
step_name: string;
|
|
57
61
|
encryption_contract: Array<string>;
|
|
58
62
|
};
|
|
63
|
+
export declare type VerifyAuthKitOTPBody = {
|
|
64
|
+
lead_id: string;
|
|
65
|
+
data: string;
|
|
66
|
+
post_url: string;
|
|
67
|
+
scopes: Array<string>;
|
|
68
|
+
encryption_contract: Array<string>;
|
|
69
|
+
};
|
|
59
70
|
declare const authService: {
|
|
60
71
|
createAuth: (data: CreateAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
61
72
|
verifyAuth: (data: VerifyAuthBody | VerifyOperationAuthBody, config?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
62
73
|
createPassword: (data: CreatePasswordBody) => Promise<any>;
|
|
74
|
+
verifyAuthKitOTP: (data: VerifyAuthKitOTPBody) => Promise<any>;
|
|
75
|
+
getVerifyAuth: (token: string, config?: AxiosRequestConfig) => Promise<any>;
|
|
63
76
|
};
|
|
64
77
|
export { authService };
|
package/build/api/auth.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import instance, { httpClient } from './axios';
|
|
2
|
-
import { ENDPOINT_PATHS } from '
|
|
13
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
3
14
|
var createAuth = function (data, config) {
|
|
4
15
|
return instance.post("".concat(ENDPOINT_PATHS.AUTH), data, config);
|
|
5
16
|
};
|
|
@@ -13,9 +24,21 @@ var createPassword = function (data) {
|
|
|
13
24
|
data: data
|
|
14
25
|
});
|
|
15
26
|
};
|
|
27
|
+
var getVerifyAuth = function (token, config) {
|
|
28
|
+
return httpClient(__assign({ method: 'get', url: "".concat(ENDPOINT_PATHS.AUTH, "/").concat(token) }, config));
|
|
29
|
+
};
|
|
30
|
+
var verifyAuthKitOTP = function (data) {
|
|
31
|
+
return httpClient({
|
|
32
|
+
method: 'post',
|
|
33
|
+
url: "".concat(ENDPOINT_PATHS.VERIFY_AUTH_OTP),
|
|
34
|
+
data: data
|
|
35
|
+
});
|
|
36
|
+
};
|
|
16
37
|
var authService = {
|
|
17
38
|
createAuth: createAuth,
|
|
18
39
|
verifyAuth: verifyAuth,
|
|
19
|
-
createPassword: createPassword
|
|
40
|
+
createPassword: createPassword,
|
|
41
|
+
verifyAuthKitOTP: verifyAuthKitOTP,
|
|
42
|
+
getVerifyAuth: getVerifyAuth
|
|
20
43
|
};
|
|
21
44
|
export { authService };
|
package/build/api/axios.js
CHANGED
|
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
import axios from 'axios';
|
|
38
38
|
import { get, set } from 'lodash-es';
|
|
39
|
-
import { ENCRYPTION_FLAG } from '
|
|
40
|
-
import { encryptString } from '
|
|
39
|
+
import { ENCRYPTION_FLAG } from '@constants';
|
|
40
|
+
import { encryptString } from '@utils';
|
|
41
41
|
var instance = axios.create({
|
|
42
42
|
headers: {
|
|
43
43
|
'Content-Type': 'application/json',
|
|
@@ -91,8 +91,8 @@ export var httpClient = function (config) { return __awaiter(void 0, void 0, voi
|
|
|
91
91
|
case 1:
|
|
92
92
|
data = (_c.sent()).data;
|
|
93
93
|
_a = (data.errors || [{}])[0], description = _a.description, error = _a.error;
|
|
94
|
-
if (description || error) {
|
|
95
|
-
throw new Error(description
|
|
94
|
+
if (description || error || (data === null || data === void 0 ? void 0 : data.status) === 'fail') {
|
|
95
|
+
throw new Error(description || error || (data === null || data === void 0 ? void 0 : data.message));
|
|
96
96
|
}
|
|
97
97
|
return [2, data];
|
|
98
98
|
case 2:
|
package/build/api/board.js
CHANGED
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { ENDPOINT_PATHS } from '
|
|
12
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
13
13
|
import { httpClient } from './axios';
|
|
14
14
|
var retrieveBoardInfo = function (_a) {
|
|
15
15
|
var id = _a.id, infoId = _a.infoId;
|
package/build/api/brand.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BrandListBody, UpdateBrandBody } from '
|
|
1
|
+
import { BrandListBody, UpdateBrandBody } from '@src/api/individual';
|
|
2
2
|
declare const brandService: {
|
|
3
3
|
retrieveBrand: (id: string) => Promise<any>;
|
|
4
4
|
getBrandList: (data: BrandListBody) => Promise<any>;
|
package/build/api/brand.js
CHANGED
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { httpClient } from './axios';
|
|
13
|
-
import { ENDPOINT_PATHS } from '
|
|
13
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
14
14
|
var retrieveBrand = function (id) {
|
|
15
15
|
return httpClient({
|
|
16
16
|
method: 'get',
|
package/build/api/country.js
CHANGED
package/build/api/data.d.ts
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
|
+
interface GetOccupationBody {
|
|
2
|
+
page: number;
|
|
3
|
+
}
|
|
4
|
+
interface GetMonthlyIncomeBody {
|
|
5
|
+
page: number;
|
|
6
|
+
country_code: Array<string>;
|
|
7
|
+
}
|
|
8
|
+
export interface DataElementBody {
|
|
9
|
+
en: string;
|
|
10
|
+
ar: string;
|
|
11
|
+
}
|
|
12
|
+
interface GetCustomerBasesBody {
|
|
13
|
+
page: number;
|
|
14
|
+
}
|
|
15
|
+
interface GetExpectedSalesBody {
|
|
16
|
+
page: number;
|
|
17
|
+
}
|
|
18
|
+
interface GetExpectedCustomerSalesBody {
|
|
19
|
+
page: number;
|
|
20
|
+
}
|
|
21
|
+
interface GetSourceOfIncomeBody {
|
|
22
|
+
page: number;
|
|
23
|
+
}
|
|
24
|
+
interface GetChannelsOfServicesBody {
|
|
25
|
+
page: number;
|
|
26
|
+
}
|
|
1
27
|
declare const dataService: {
|
|
2
|
-
getChannelsOfServices: () => Promise<
|
|
3
|
-
getCustomerBases: () => Promise<
|
|
4
|
-
getExpectedSales: () => Promise<
|
|
5
|
-
getExpectedCustomerSales: () => Promise<
|
|
6
|
-
getSourceOfIncome: () => Promise<
|
|
7
|
-
getMonthlyIncome: (
|
|
8
|
-
getOccupation: () => Promise<any>;
|
|
28
|
+
getChannelsOfServices: (data: GetChannelsOfServicesBody) => Promise<any>;
|
|
29
|
+
getCustomerBases: (data: GetCustomerBasesBody) => Promise<any>;
|
|
30
|
+
getExpectedSales: (data: GetExpectedSalesBody) => Promise<any>;
|
|
31
|
+
getExpectedCustomerSales: (data: GetExpectedCustomerSalesBody) => Promise<any>;
|
|
32
|
+
getSourceOfIncome: (data: GetSourceOfIncomeBody) => Promise<any>;
|
|
33
|
+
getMonthlyIncome: (data: GetMonthlyIncomeBody) => Promise<any>;
|
|
34
|
+
getOccupation: (data: GetOccupationBody) => Promise<any>;
|
|
9
35
|
};
|
|
10
36
|
export { dataService };
|
package/build/api/data.js
CHANGED
|
@@ -1,27 +1,52 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ENDPOINT_PATHS } from '
|
|
3
|
-
var getChannelsOfServices = function () {
|
|
4
|
-
return
|
|
1
|
+
import { httpClient } from './axios';
|
|
2
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
3
|
+
var getChannelsOfServices = function (data) {
|
|
4
|
+
return httpClient({
|
|
5
|
+
method: 'post',
|
|
6
|
+
url: "".concat(ENDPOINT_PATHS.CHANNEL),
|
|
7
|
+
data: data
|
|
8
|
+
});
|
|
5
9
|
};
|
|
6
|
-
var getCustomerBases = function () {
|
|
7
|
-
return
|
|
10
|
+
var getCustomerBases = function (data) {
|
|
11
|
+
return httpClient({
|
|
12
|
+
method: 'post',
|
|
13
|
+
url: "".concat(ENDPOINT_PATHS.CUSTOMER_BASES),
|
|
14
|
+
data: data
|
|
15
|
+
});
|
|
8
16
|
};
|
|
9
|
-
var getExpectedSales = function () {
|
|
10
|
-
return
|
|
17
|
+
var getExpectedSales = function (data) {
|
|
18
|
+
return httpClient({
|
|
19
|
+
method: 'post',
|
|
20
|
+
url: "".concat(ENDPOINT_PATHS.SALES),
|
|
21
|
+
data: data
|
|
22
|
+
});
|
|
11
23
|
};
|
|
12
|
-
var getExpectedCustomerSales = function () {
|
|
13
|
-
return
|
|
24
|
+
var getExpectedCustomerSales = function (data) {
|
|
25
|
+
return httpClient({
|
|
26
|
+
method: 'post',
|
|
27
|
+
url: "".concat(ENDPOINT_PATHS.EXPECTED_CUSTOMERS),
|
|
28
|
+
data: data
|
|
29
|
+
});
|
|
14
30
|
};
|
|
15
|
-
var getSourceOfIncome = function () {
|
|
16
|
-
return
|
|
31
|
+
var getSourceOfIncome = function (data) {
|
|
32
|
+
return httpClient({
|
|
33
|
+
method: 'post',
|
|
34
|
+
url: "".concat(ENDPOINT_PATHS.SOURCE_INCOME),
|
|
35
|
+
data: data
|
|
36
|
+
});
|
|
17
37
|
};
|
|
18
|
-
var getMonthlyIncome = function (
|
|
19
|
-
return
|
|
38
|
+
var getMonthlyIncome = function (data) {
|
|
39
|
+
return httpClient({
|
|
40
|
+
method: 'post',
|
|
41
|
+
url: "".concat(ENDPOINT_PATHS.MONTHLY_INCOME),
|
|
42
|
+
data: data
|
|
43
|
+
});
|
|
20
44
|
};
|
|
21
|
-
var getOccupation = function () {
|
|
45
|
+
var getOccupation = function (data) {
|
|
22
46
|
return httpClient({
|
|
23
|
-
method: '
|
|
24
|
-
url: "".concat(ENDPOINT_PATHS.OCCUPATION)
|
|
47
|
+
method: 'post',
|
|
48
|
+
url: "".concat(ENDPOINT_PATHS.OCCUPATION),
|
|
49
|
+
data: data
|
|
25
50
|
});
|
|
26
51
|
};
|
|
27
52
|
var dataService = {
|
package/build/api/entity.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export declare type EntityInfoBody = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
lead_id?: string;
|
|
5
5
|
activities?: Array<string>;
|
|
6
|
+
license_name?: string;
|
|
7
|
+
license_number?: string;
|
|
6
8
|
business_operation_start_at?: string;
|
|
7
9
|
channel_services?: Array<string>;
|
|
8
10
|
physical_store_available?: boolean;
|
package/build/api/entity.js
CHANGED
|
@@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { ENDPOINT_PATHS } from '
|
|
12
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
13
13
|
import instance, { httpClient } from './axios';
|
|
14
14
|
var retrieveEntityInfo = function (entity_id, config) {
|
|
15
15
|
return instance.get("".concat(ENDPOINT_PATHS.ENTITY, "/").concat(entity_id), config);
|
package/build/api/firebase.js
CHANGED
|
@@ -9,7 +9,7 @@ export declare type UpdateBrandBody = {
|
|
|
9
9
|
channel_services?: Array<string>;
|
|
10
10
|
physical_store_available?: boolean;
|
|
11
11
|
monthly_sales_range?: string;
|
|
12
|
-
customers_served_monthly?:
|
|
12
|
+
customers_served_monthly?: string;
|
|
13
13
|
customers_base?: Array<string>;
|
|
14
14
|
vat_id?: string;
|
|
15
15
|
agree_chargeback?: boolean;
|
package/build/api/individual.js
CHANGED
package/build/api/ip.js
CHANGED
package/build/api/lead.d.ts
CHANGED
package/build/api/lead.js
CHANGED
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import instance, { httpClient } from './axios';
|
|
13
|
-
import { ENDPOINT_PATHS } from '
|
|
13
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
14
14
|
var createLead = function (data, config) {
|
|
15
15
|
return instance.post("".concat(ENDPOINT_PATHS.LEAD), data, config);
|
|
16
16
|
};
|
package/build/api/operator.js
CHANGED
|
@@ -34,7 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
import { ENDPOINT_PATHS } from '
|
|
37
|
+
import { ENDPOINT_PATHS } from '@constants';
|
|
38
38
|
import { httpClient } from './axios';
|
|
39
39
|
var validateOperator = function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
40
|
var data, error_1;
|
package/build/api/user.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
declare const rootReducer: {
|
|
2
2
|
settings: import("redux").Reducer<import("./settings").SettingsState, import("redux").AnyAction>;
|
|
3
|
-
connect: import("redux").Reducer<import("
|
|
4
|
-
business: import("redux").Reducer<import("
|
|
5
|
-
bank: import("redux").Reducer<import("
|
|
6
|
-
tax: import("redux").Reducer<import("
|
|
7
|
-
individual: import("redux").Reducer<import("
|
|
8
|
-
password: import("redux").Reducer<import("
|
|
9
|
-
signIn: import("redux").Reducer<import("
|
|
3
|
+
connect: import("redux").Reducer<import("@features/app/connect/connectStore").ConnectState, import("redux").AnyAction>;
|
|
4
|
+
business: import("redux").Reducer<import("@features/app/business/businessStore").BusinessState, import("redux").AnyAction>;
|
|
5
|
+
bank: import("redux").Reducer<import("@features/app/bank/bankStore").BankState, import("redux").AnyAction>;
|
|
6
|
+
tax: import("redux").Reducer<import("@features/app/tax/taxStore").TaxState, import("redux").AnyAction>;
|
|
7
|
+
individual: import("redux").Reducer<import("@features/app/individual/individualStore").IndividualState, import("redux").AnyAction>;
|
|
8
|
+
password: import("redux").Reducer<import("@features/app/password/passwordStore").PasswordState, import("redux").AnyAction>;
|
|
9
|
+
signIn: import("redux").Reducer<import("@features/app/signIn/signInStore").SignInState, import("redux").AnyAction>;
|
|
10
|
+
entity: import("redux").Reducer<import("@features/app/entity/entityStore").EntityState, import("redux").AnyAction>;
|
|
11
|
+
otp: import("redux").Reducer<import("@features/app/otp/otpStore").OtpState, import("redux").AnyAction>;
|
|
12
|
+
auth: import("redux").Reducer<import("@features/app/auth/authStore").AuthState, import("redux").AnyAction>;
|
|
10
13
|
};
|
|
11
14
|
export default rootReducer;
|
package/build/app/rootReducer.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import settings from './settings';
|
|
2
|
-
import connect from '
|
|
3
|
-
import business from '
|
|
4
|
-
import bank from '
|
|
5
|
-
import tax from '
|
|
6
|
-
import individual from '
|
|
7
|
-
import password from '
|
|
8
|
-
import signIn from '
|
|
2
|
+
import connect from '@features/app/connect/connectStore';
|
|
3
|
+
import business from '@features/app/business/businessStore';
|
|
4
|
+
import bank from '@features/app/bank/bankStore';
|
|
5
|
+
import tax from '@features/app/tax/taxStore';
|
|
6
|
+
import individual from '@features/app/individual/individualStore';
|
|
7
|
+
import password from '@features/app/password/passwordStore';
|
|
8
|
+
import signIn from '@features/app/signIn/signInStore';
|
|
9
|
+
import entity from '@features/app/entity/entityStore';
|
|
10
|
+
import otp from '@features/app/otp/otpStore';
|
|
11
|
+
import auth from '@features/app/auth/authStore';
|
|
9
12
|
var rootReducer = {
|
|
10
13
|
settings: settings,
|
|
11
14
|
connect: connect,
|
|
@@ -14,6 +17,9 @@ var rootReducer = {
|
|
|
14
17
|
tax: tax,
|
|
15
18
|
individual: individual,
|
|
16
19
|
password: password,
|
|
17
|
-
signIn: signIn
|
|
20
|
+
signIn: signIn,
|
|
21
|
+
entity: entity,
|
|
22
|
+
otp: otp,
|
|
23
|
+
auth: auth
|
|
18
24
|
};
|
|
19
25
|
export default rootReducer;
|
package/build/app/settings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RootState } from '
|
|
2
|
-
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode } from '
|
|
1
|
+
import { RootState } from '@app/store';
|
|
2
|
+
import { ActionState, LanguageMode, SharedState, ThemeMode, ScreenStepNavigation, DeviceInfo, LibConfig, CountryCode } from '@types';
|
|
3
3
|
export declare const fetchAppSettingsSync: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
4
|
countries: CountryCode[];
|
|
5
5
|
businessCountry: CountryCode;
|
package/build/app/settings.js
CHANGED
|
@@ -47,11 +47,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
|
-
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString } from '
|
|
51
|
-
import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS } from '
|
|
52
|
-
import i18n from '
|
|
53
|
-
import { updateLocale } from '
|
|
54
|
-
import API, { setAxiosGlobalHeaders } from '
|
|
50
|
+
import { getStoredData, storeData, isArray, findItem, getBrowserInfo, getFingerPrint, sortCountries, findCountryByIso2, getRequestHeaders, encryptString, removeElement } from '@utils';
|
|
51
|
+
import { defaultCountry, DefaultDeviceInfo, LOCAL_STORAGE_KEYS, DIALOG_ID, BACKGROUND_ID } from '@constants';
|
|
52
|
+
import i18n from '@src/i18n';
|
|
53
|
+
import { updateLocale } from '@utils/locale';
|
|
54
|
+
import API, { setAxiosGlobalHeaders } from '@api';
|
|
55
55
|
export var fetchAppSettingsSync = createAsyncThunk('fetchAppSettingsSync', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
56
|
var settings, _a, appConfig, language, _b, client, device, os, _c, visitorId, _d, ip, latitude, longitude, locale, list, operatorData, deviceInfo, countries, businessCountry;
|
|
57
57
|
return __generator(this, function (_e) {
|
|
@@ -141,6 +141,12 @@ export var settingsSlice = createSlice({
|
|
|
141
141
|
},
|
|
142
142
|
handleOpen: function (state, action) {
|
|
143
143
|
state.data.open = action.payload;
|
|
144
|
+
if (action.payload === false) {
|
|
145
|
+
setTimeout(function () {
|
|
146
|
+
removeElement(DIALOG_ID);
|
|
147
|
+
removeElement(BACKGROUND_ID);
|
|
148
|
+
}, 1000);
|
|
149
|
+
}
|
|
144
150
|
},
|
|
145
151
|
handleSkin: function (state, action) {
|
|
146
152
|
state.data.skin = action.payload;
|
package/build/app/store.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
8
8
|
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
9
9
|
password: import("../features/app/password/passwordStore").PasswordState;
|
|
10
10
|
signIn: import("../features/app/signIn/signInStore").SignInState;
|
|
11
|
+
entity: import("../features/app/entity/entityStore").EntityState;
|
|
12
|
+
otp: import("../features/app/otp/otpStore").OtpState;
|
|
13
|
+
auth: import("../features/app/auth/authStore").AuthState;
|
|
11
14
|
}, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
|
|
12
15
|
settings: import("./settings").SettingsState;
|
|
13
16
|
connect: import("../features/app/connect/connectStore").ConnectState;
|
|
@@ -17,6 +20,9 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
17
20
|
individual: import("../features/app/individual/individualStore").IndividualState;
|
|
18
21
|
password: import("../features/app/password/passwordStore").PasswordState;
|
|
19
22
|
signIn: import("../features/app/signIn/signInStore").SignInState;
|
|
23
|
+
entity: import("../features/app/entity/entityStore").EntityState;
|
|
24
|
+
otp: import("../features/app/otp/otpStore").OtpState;
|
|
25
|
+
auth: import("../features/app/auth/authStore").AuthState;
|
|
20
26
|
}, import("redux").AnyAction, undefined>]>>;
|
|
21
27
|
export declare type AppDispatch = typeof store.dispatch;
|
|
22
28
|
export declare type RootState = ReturnType<typeof store.getState>;
|