@tap-payments/auth-jsconnect 2.0.47-test → 2.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -34
- package/build/@types/app.d.ts +165 -27
- package/build/@types/app.js +44 -3
- package/build/@types/form.d.ts +88 -32
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/theme.d.ts +1 -1
- package/build/@types/user.d.ts +141 -0
- package/build/@types/user.js +1 -0
- package/build/api/account.d.ts +6 -1
- package/build/api/account.js +9 -1
- package/build/api/auth.d.ts +42 -21
- package/build/api/auth.js +51 -4
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +3 -3
- package/build/api/board.d.ts +20 -3
- package/build/api/board.js +17 -1
- package/build/api/brand.d.ts +3 -1
- package/build/api/brand.js +18 -1
- package/build/api/country.d.ts +7 -1
- package/build/api/country.js +12 -2
- package/build/api/data.d.ts +46 -7
- package/build/api/data.js +73 -17
- package/build/api/entity.d.ts +91 -15
- package/build/api/entity.js +50 -10
- package/build/api/file.d.ts +13 -0
- package/build/api/file.js +24 -0
- package/build/api/firebase.d.ts +1 -1
- package/build/api/firebase.js +3 -1
- package/build/api/index.d.ts +75 -19
- package/build/api/index.js +5 -3
- package/build/api/individual.d.ts +136 -23
- package/build/api/individual.js +37 -2
- package/build/api/lead.d.ts +25 -16
- package/build/api/lead.js +24 -1
- package/build/api/location.d.ts +5 -0
- package/build/api/location.js +19 -0
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +7 -1
- package/build/api/user.js +9 -1
- package/build/app/rootReducer.d.ts +2 -2
- package/build/app/rootReducer.js +4 -4
- package/build/app/settings.d.ts +20 -2
- package/build/app/settings.js +51 -33
- package/build/app/store.d.ts +9 -9
- package/build/assets/locales/ar.json +323 -183
- package/build/assets/locales/en.json +258 -108
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -1
- package/build/components/AnimationFlow/AnimationFlow.js +6 -8
- package/build/components/AnimationFlow/BottomSheet.d.ts +2 -1
- package/build/components/AnimationFlow/BottomSheet.js +4 -3
- package/build/components/AnimationFlow/Dialog.d.ts +4 -1
- package/build/components/AnimationFlow/Dialog.js +5 -3
- package/build/components/ArabicDatePicker/ArabicDatePicker.d.ts +13 -0
- package/build/components/ArabicDatePicker/ArabicDatePicker.js +94 -0
- package/build/components/ArabicDatePicker/index.d.ts +2 -0
- package/build/components/ArabicDatePicker/index.js +2 -0
- package/build/components/ArabicDatePicker/style.css +24 -0
- package/build/components/Button/Button.js +1 -5
- package/build/components/DatePicker/DatePicker.js +5 -3
- package/build/components/FileInput/DragAndDrop.d.ts +12 -2
- package/build/components/FileInput/DragAndDrop.js +109 -11
- package/build/components/Lottie/Lottie.d.ts +4204 -0
- package/build/components/Lottie/Lottie.js +66 -0
- package/build/components/Lottie/files/account_creating.json +732 -0
- package/build/components/Lottie/files/error.json +692 -0
- package/build/components/Lottie/files/pulsating_circle_waves.json +236 -0
- package/build/components/Lottie/files/start_loading.json +1140 -0
- package/build/components/Lottie/files/still_loading.json +1140 -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/OTPField/OTPField.d.ts +2 -1
- package/build/components/OTPField/OTPField.js +2 -2
- package/build/components/OTPTimer/OTPTimer.js +1 -1
- package/build/components/ProgressBar/CircularProgressBar.d.ts +16 -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/Radio/Radio.js +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +5 -2
- package/build/components/RadioLabel/RadioLabel.js +2 -2
- package/build/components/SimpleList/SimpleList.d.ts +4 -1
- package/build/components/SimpleList/SimpleList.js +22 -10
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/SocialMediaGroup/SocialMediaGroup.d.ts +2 -6
- package/build/components/SocialMediaGroup/SocialMediaGroup.js +4 -49
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +12 -3
- package/build/constants/api.d.ts +14 -0
- package/build/constants/api.js +30 -2
- package/build/constants/app.d.ts +27 -4
- package/build/constants/app.js +248 -39
- package/build/constants/assets.d.ts +21 -0
- package/build/constants/assets.js +23 -2
- package/build/constants/dummy.d.ts +1 -1
- package/build/constants/dummy.js +2 -2
- package/build/constants/validation.d.ts +13 -0
- package/build/constants/validation.js +14 -1
- package/build/features/app/bank/bankStore.d.ts +88 -15
- package/build/features/app/bank/bankStore.js +108 -81
- package/build/features/app/brand/brandStore.d.ts +193 -0
- package/build/features/app/brand/brandStore.js +674 -0
- package/build/features/app/business/businessStore.d.ts +200 -20
- package/build/features/app/business/businessStore.js +514 -363
- package/build/features/app/connect/connectStore.d.ts +148 -40
- package/build/features/app/connect/connectStore.js +465 -374
- package/build/features/app/connectExpress/connectExpressStore.d.ts +282 -0
- package/build/features/app/connectExpress/connectExpressStore.js +1019 -0
- package/build/features/app/entity/entityStore.d.ts +129 -18
- package/build/features/app/entity/entityStore.js +438 -192
- package/build/features/app/individual/individualStore.d.ts +186 -16
- package/build/features/app/individual/individualStore.js +767 -159
- package/build/features/app/password/passwordStore.d.ts +107 -24
- package/build/features/app/password/passwordStore.js +50 -34
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +24 -47
- package/build/features/app/tax/taxStore.d.ts +69 -9
- package/build/features/app/tax/taxStore.js +121 -102
- package/build/features/bank/Bank.d.ts +5 -3
- package/build/features/bank/Bank.js +39 -36
- package/build/features/bank/screens/BankDetails/BankDetails.js +28 -10
- package/build/features/bank/screens/BankDetails/BankName.js +15 -11
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +4 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +19 -13
- package/build/features/bank/screens/BankDetails/Beneficiary.js +19 -21
- package/build/features/bank/screens/BankDetails/IBAN.js +16 -9
- package/build/features/bank/screens/BankDetails/validation.d.ts +29 -13
- package/build/features/bank/screens/BankDetails/validation.js +34 -28
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/bank/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/bank/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/bank/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/bank/screens/Success/Success.js +7 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/brand/Brand.d.ts +9 -0
- package/build/features/brand/Brand.js +72 -0
- package/build/features/brand/index.d.ts +1 -0
- package/build/features/brand/index.js +1 -0
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +91 -0
- package/build/features/{entity/screens/EntityInfoConfirm → brand/screens/BrandActivities}/ActivitiesList.js +58 -33
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +5 -0
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +82 -0
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +82 -0
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +146 -0
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +8 -0
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +97 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +8 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +133 -0
- package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +20 -0
- package/build/features/brand/screens/BrandActivities/OperationStartDate.js +45 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +36 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +82 -0
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +6 -0
- package/build/features/brand/screens/BrandActivities/TAC.js +84 -0
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +3 -0
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +42 -0
- package/build/features/brand/screens/BrandActivities/index.d.ts +2 -0
- package/build/features/brand/screens/BrandActivities/index.js +2 -0
- package/build/features/brand/screens/BrandActivities/validation.d.ts +71 -0
- package/build/features/brand/screens/BrandActivities/validation.js +32 -0
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +5 -0
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +79 -0
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +8 -0
- package/build/features/brand/screens/BrandInfo/BrandName.js +143 -0
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +5 -0
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +42 -0
- package/build/features/brand/screens/BrandInfo/Segments.d.ts +8 -0
- package/build/features/brand/screens/BrandInfo/Segments.js +74 -0
- package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +8 -0
- package/build/features/brand/screens/BrandInfo/TeamSize.js +74 -0
- package/build/features/brand/screens/BrandInfo/index.d.ts +2 -0
- package/build/features/brand/screens/BrandInfo/index.js +2 -0
- package/build/features/brand/screens/BrandInfo/validation.d.ts +41 -0
- package/build/features/brand/screens/BrandInfo/validation.js +116 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/brand/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/brand/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/brand/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +5 -0
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +16 -0
- package/build/features/brand/screens/ResetPasswordSuccess/index.d.ts +3 -0
- package/build/features/brand/screens/ResetPasswordSuccess/index.js +2 -0
- package/build/features/brand/screens/Success/Success.d.ts +5 -0
- package/build/features/brand/screens/Success/Success.js +20 -0
- package/build/features/brand/screens/Success/index.d.ts +3 -0
- package/build/features/brand/screens/Success/index.js +2 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +22 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/brand/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/brand/screens/Verify/OTPInput.d.ts +7 -0
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/OTPInput.js +2 -2
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/Verify.d.ts +0 -0
- package/build/features/brand/screens/Verify/Verify.js +91 -0
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/index.d.ts +0 -0
- package/build/features/{otp/screens/OTPVerify → brand/screens/Verify}/index.js +0 -0
- package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.d.ts +0 -0
- package/build/features/{auth/screens/OTP → brand/screens/Verify}/validation.js +0 -0
- package/build/features/business/Business.d.ts +4 -3
- package/build/features/business/Business.js +12 -17
- package/build/features/business/screens/Activities/Activities.js +8 -17
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +44 -8
- package/build/features/business/screens/Activities/ActivitiesList.js +49 -16
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +15 -1
- package/build/features/business/screens/Activities/OperationStartDate.js +21 -2
- package/build/features/business/screens/Activities/validation.d.ts +0 -51
- package/build/features/business/screens/Activities/validation.js +4 -10
- package/build/features/business/screens/BusinessType/Article.d.ts +6 -0
- package/build/features/business/screens/BusinessType/Article.js +87 -0
- package/build/features/business/screens/BusinessType/BusinessType.js +23 -9
- package/build/features/business/screens/BusinessType/EntityName.d.ts +6 -0
- package/build/features/business/screens/BusinessType/EntityName.js +56 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.d.ts +6 -0
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +43 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +27 -7
- package/build/features/business/screens/BusinessType/LicenseNumber.js +12 -6
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +34 -0
- package/build/features/business/screens/BusinessType/LicenseType.js +103 -0
- package/build/features/business/screens/BusinessType/validation.d.ts +22 -0
- package/build/features/business/screens/BusinessType/validation.js +60 -3
- package/build/features/business/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/business/screens/CivilID/CivilID.js +67 -0
- package/build/features/business/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/business/screens/CivilID/IDNumber.js +59 -0
- package/build/features/business/screens/CivilID/index.d.ts +3 -0
- package/build/features/business/screens/CivilID/index.js +2 -0
- package/build/features/business/screens/CivilID/validation.d.ts +8 -0
- package/build/features/business/screens/CivilID/validation.js +4 -0
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +24 -11
- package/build/features/business/screens/Customers/CustomerLocations.js +31 -8
- package/build/features/business/screens/Customers/Customers.js +15 -9
- package/build/features/business/screens/Customers/ExpectedCustomers.js +15 -4
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +36 -15
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
- package/build/features/business/screens/Customers/RefundPolicy.js +6 -2
- package/build/features/business/screens/Customers/TransactionPolicy.js +6 -2
- package/build/features/business/screens/IDBOD/IDBOD.js +15 -2
- package/build/features/business/screens/OTP/OTP.js +15 -2
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/business/screens/Success/Success.js +10 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/business/screens/Verify/Verify.js +4 -4
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/business/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/business/screens/VerifyPACI/index.js +2 -0
- package/build/features/connect/Connect.d.ts +4 -4
- package/build/features/connect/Connect.js +32 -21
- package/build/features/connect/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connect/screens/CivilID/CivilID.js +102 -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 +12 -4
- package/build/features/connect/screens/Individual/Individual.js +46 -29
- package/build/features/connect/screens/Individual/validation.js +2 -8
- package/build/features/connect/screens/Merchant/BrandList.js +29 -8
- package/build/features/connect/screens/Merchant/BrandName.js +13 -9
- package/build/features/connect/screens/Merchant/Merchant.js +46 -73
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +4 -4
- package/build/features/connect/screens/Merchant/SalesChannels.js +26 -102
- package/build/features/connect/screens/Merchant/Segments.d.ts +8 -0
- package/build/features/connect/screens/Merchant/Segments.js +74 -0
- package/build/features/connect/screens/Merchant/TAC.js +6 -2
- package/build/features/connect/screens/Merchant/TeamSize.d.ts +8 -0
- package/build/features/connect/screens/Merchant/TeamSize.js +74 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +19 -123
- package/build/features/connect/screens/Merchant/validation.js +110 -173
- package/build/features/connect/screens/Mobile/Mobile.js +33 -12
- package/build/features/connect/screens/NID/NID.js +5 -1
- package/build/features/connect/screens/OTP/OTP.js +20 -6
- package/build/features/connect/screens/OTP/OTPInput.js +3 -2
- package/build/features/connect/screens/ThankYou/ThankYou.js +9 -2
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +95 -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/connectExpress/ConnectExpress.d.ts +11 -0
- package/build/features/connectExpress/ConnectExpress.js +84 -0
- package/build/features/connectExpress/index.d.ts +1 -0
- package/build/features/connectExpress/index.js +1 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.d.ts +5 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/AccountAlreadyCreated.js +15 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/index.d.ts +3 -0
- package/build/features/connectExpress/screens/AccountAlreadyCreated/index.js +2 -0
- package/build/features/connectExpress/screens/Brand/Brand.d.ts +5 -0
- package/build/features/connectExpress/screens/Brand/Brand.js +71 -0
- package/build/features/connectExpress/screens/Brand/index.d.ts +2 -0
- package/build/features/connectExpress/screens/Brand/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.d.ts +5 -0
- package/build/features/connectExpress/screens/CivilID/CivilID.js +84 -0
- package/build/features/connectExpress/screens/CivilID/IDNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +55 -0
- package/build/features/connectExpress/screens/CivilID/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CivilID/index.js +2 -0
- package/build/features/connectExpress/screens/CivilID/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/CivilID/validation.js +4 -0
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.d.ts +5 -0
- package/build/features/connectExpress/screens/CivilIDMissed/CivilID.js +53 -0
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +55 -0
- package/build/features/connectExpress/screens/CivilIDMissed/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CivilIDMissed/index.js +2 -0
- package/build/features/connectExpress/screens/CivilIDMissed/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/CivilIDMissed/validation.js +4 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +8 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +140 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +5 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +80 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +8 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +144 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +7 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +52 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +34 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +94 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +6 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +83 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/index.js +2 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +27 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +155 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.d.ts +5 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +89 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +8 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +113 -0
- package/build/features/{individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts → connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts} +2 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +149 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +6 -0
- package/build/features/{individual/screens/AdditionalIndividualInfo/EmployerName.js → connectExpress/screens/CollectIndividualInfo/Name.js} +15 -16
- package/build/features/connectExpress/screens/CollectIndividualInfo/index.d.ts +3 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/index.js +2 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.d.ts +14 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/validation.js +31 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.d.ts +5 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/CreateAccountLoader.js +34 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/index.d.ts +2 -0
- package/build/features/connectExpress/screens/CreateAccountLoader/index.js +2 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.d.ts +0 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.js +26 -11
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.d.ts +0 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTPInput.js +10 -2
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.d.ts +0 -0
- package/build/features/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/index.js +0 -0
- package/build/features/{otp/screens/OTPVerify → connectExpress/screens/IdentityOTP}/validation.d.ts +0 -0
- package/build/features/{otp/screens/OTPVerify → connectExpress/screens/IdentityOTP}/validation.js +0 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/VerifyPACI.js +34 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/index.d.ts +3 -0
- package/build/features/connectExpress/screens/IdentityVerifyPACI/index.js +2 -0
- package/build/features/connectExpress/screens/Mobile/Mobile.d.ts +5 -0
- package/build/features/connectExpress/screens/Mobile/Mobile.js +110 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +12 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +151 -0
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +6 -0
- package/build/features/connectExpress/screens/Mobile/TAC.js +83 -0
- package/build/features/connectExpress/screens/Mobile/Title.d.ts +8 -0
- package/build/features/connectExpress/screens/Mobile/Title.js +29 -0
- package/build/features/connectExpress/screens/Mobile/index.d.ts +3 -0
- package/build/features/connectExpress/screens/Mobile/index.js +2 -0
- package/build/features/connectExpress/screens/Mobile/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/Mobile/validation.js +60 -0
- package/build/features/connectExpress/screens/NID/DOB.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/DOB.js +47 -0
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/IDNumber.js +61 -0
- package/build/features/connectExpress/screens/NID/NID.d.ts +5 -0
- package/build/features/connectExpress/screens/NID/NID.js +92 -0
- package/build/features/connectExpress/screens/NID/TAC.d.ts +6 -0
- package/build/features/connectExpress/screens/NID/TAC.js +83 -0
- package/build/features/connectExpress/screens/NID/index.d.ts +3 -0
- package/build/features/connectExpress/screens/NID/index.js +2 -0
- package/build/features/connectExpress/screens/NID/validation.d.ts +11 -0
- package/build/features/connectExpress/screens/NID/validation.js +22 -0
- package/build/features/connectExpress/screens/NIDMissed/DOB.d.ts +6 -0
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +47 -0
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.d.ts +6 -0
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +56 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +5 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.js +59 -0
- package/build/features/connectExpress/screens/NIDMissed/index.d.ts +3 -0
- package/build/features/connectExpress/screens/NIDMissed/index.js +2 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.d.ts +11 -0
- package/build/features/connectExpress/screens/NIDMissed/validation.js +9 -0
- package/build/features/connectExpress/screens/OTP/OTP.d.ts +5 -0
- package/build/features/connectExpress/screens/OTP/OTP.js +88 -0
- package/build/features/connectExpress/screens/OTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/OTP/OTPInput.js +55 -0
- package/build/features/connectExpress/screens/OTP/index.d.ts +3 -0
- package/build/features/connectExpress/screens/OTP/index.js +2 -0
- package/build/features/connectExpress/screens/OTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/OTP/validation.js +4 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.d.ts +2 -0
- package/build/features/connectExpress/screens/SuccessWithFlowButtons/index.js +2 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.d.ts +5 -0
- package/build/features/connectExpress/screens/VerifyPACI/VerifyPACI.js +34 -0
- package/build/features/connectExpress/screens/VerifyPACI/index.d.ts +3 -0
- package/build/features/connectExpress/screens/VerifyPACI/index.js +2 -0
- package/build/features/entity/Entity.d.ts +5 -3
- package/build/features/entity/Entity.js +39 -37
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +90 -0
- package/build/features/entity/screens/EntityCapital/ActivityList.js +175 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +47 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +42 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +47 -0
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +75 -0
- package/build/features/entity/screens/EntityCapital/index.d.ts +2 -0
- package/build/features/entity/screens/EntityCapital/index.js +2 -0
- package/build/features/entity/screens/EntityCapital/validation.d.ts +62 -0
- package/build/features/entity/screens/EntityCapital/validation.js +21 -0
- package/build/features/entity/screens/EntityName/Article.d.ts +6 -0
- package/build/features/entity/screens/EntityName/Article.js +87 -0
- package/build/features/entity/screens/EntityName/EntityName.d.ts +5 -0
- package/build/features/entity/screens/EntityName/EntityName.js +93 -0
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +90 -0
- package/build/features/entity/screens/EntityName/EntityTypeList.js +151 -0
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +19 -0
- package/build/features/entity/screens/EntityName/ExpiryDate.js +46 -0
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +19 -0
- package/build/features/entity/screens/EntityName/IssuingDate.js +46 -0
- package/build/features/entity/screens/EntityName/LegalName.d.ts +5 -0
- package/build/features/entity/screens/EntityName/LegalName.js +48 -0
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +6 -0
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +48 -0
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +6 -0
- package/build/features/entity/screens/EntityName/LicenseNumber.js +51 -0
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +6 -0
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +43 -0
- package/build/features/entity/screens/EntityName/index.d.ts +2 -0
- package/build/features/entity/screens/EntityName/index.js +2 -0
- package/build/features/entity/screens/EntityName/validation.d.ts +60 -0
- package/build/features/entity/screens/EntityName/validation.js +116 -0
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/entity/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/entity/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/entity/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/entity/screens/Success/Success.js +7 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/entity/screens/Verify/Verify.js +18 -5
- package/build/features/featuresScreens.d.ts +2 -2
- package/build/features/featuresScreens.js +161 -14
- package/build/features/individual/Individual.d.ts +5 -3
- package/build/features/individual/Individual.js +39 -37
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +64 -46
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +3 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +35 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +12 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +19 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +11 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +28 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +31 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +35 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +41 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +6 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +48 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +10 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +31 -23
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +19 -23
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +10 -0
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +31 -0
- package/build/features/individual/screens/IndividualList/Email.d.ts +6 -0
- package/build/features/individual/screens/IndividualList/Email.js +48 -0
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +31 -0
- package/build/features/individual/screens/IndividualList/IndividualList.js +58 -0
- package/build/features/individual/screens/IndividualList/MobileNumber.d.ts +12 -0
- package/build/features/individual/screens/IndividualList/MobileNumber.js +143 -0
- package/build/features/individual/screens/IndividualList/UserList.d.ts +5 -0
- package/build/features/individual/screens/IndividualList/UserList.js +186 -0
- package/build/features/individual/screens/IndividualList/index.d.ts +3 -0
- package/build/features/individual/screens/IndividualList/index.js +2 -0
- package/build/features/individual/screens/IndividualList/validation.d.ts +12 -0
- package/build/features/individual/screens/IndividualList/validation.js +39 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +8 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +109 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +10 -0
- package/build/features/individual/screens/{AdditionalIndividualInfo/EmployerLocation.js → IndividualPersonalInfo/BirthCountry.js} +14 -24
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +7 -0
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +46 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +6 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +50 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +7 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +50 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +34 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +81 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +6 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +48 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +21 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +139 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +88 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +145 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +6 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +52 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +88 -0
- package/build/features/individual/screens/IndividualPersonalInfo/index.d.ts +3 -0
- package/build/features/individual/screens/IndividualPersonalInfo/index.js +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/validation.d.ts +38 -0
- package/build/features/individual/screens/IndividualPersonalInfo/validation.js +68 -0
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/individual/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/individual/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/individual/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/individual/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/individual/screens/Success/Success.js +7 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/individual/screens/Verify/Verify.js +13 -7
- package/build/features/password/Password.d.ts +5 -3
- package/build/features/password/Password.js +12 -17
- package/build/features/password/screens/CreatePassword/CreatePassword.js +16 -3
- package/build/features/password/screens/OTP/OTP.js +15 -2
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/password/screens/Success/Success.js +7 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -94
- package/build/features/password/screens/Verify/Verify.js +16 -3
- package/build/features/shared/AcceptancePayouts/AcceptancePayouts.js +1 -1
- package/build/features/shared/Address/Address.d.ts +16 -0
- package/build/features/shared/Address/Address.js +73 -0
- package/build/features/shared/Address/CountryList.d.ts +72 -0
- package/build/features/shared/Address/CountryList.js +89 -0
- package/build/features/shared/Address/InputSelect.d.ts +71 -0
- package/build/features/shared/Address/InputSelect.js +172 -0
- package/build/features/shared/Address/InputText.d.ts +12 -0
- package/build/features/shared/Address/InputText.js +12 -0
- package/build/features/shared/Address/index.d.ts +2 -0
- package/build/features/shared/Address/index.js +2 -0
- package/build/features/shared/Background/Background.d.ts +2 -5
- package/build/features/shared/Background/Background.js +7 -9
- package/build/features/shared/Button/Button.js +13 -3
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +3 -2
- package/build/features/shared/Button/EmailProvidersButtons.js +7 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +4 -1
- package/build/features/shared/Button/FlowsButtons.js +43 -11
- package/build/features/shared/Button/ListButton.d.ts +18 -0
- package/build/features/shared/Button/ListButton.js +125 -0
- package/build/features/shared/Button/MobileButton.d.ts +2 -1
- package/build/features/shared/Button/MobileButton.js +2 -2
- package/build/features/shared/Button/index.d.ts +2 -1
- package/build/features/shared/Button/index.js +2 -1
- 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 +7 -0
- package/build/features/shared/CreateAccountLoading/CreateAccountLoading.js +58 -0
- package/build/features/shared/CreateAccountLoading/index.d.ts +2 -0
- package/build/features/shared/CreateAccountLoading/index.js +2 -0
- package/build/features/shared/DataLoading/DataLoading.d.ts +6 -0
- package/build/features/shared/DataLoading/DataLoading.js +58 -0
- package/build/features/shared/DataLoading/index.d.ts +2 -0
- package/build/features/shared/DataLoading/index.js +2 -0
- package/build/features/shared/Dialog/CloseDialog.d.ts +11 -0
- package/build/features/shared/Dialog/CloseDialog.js +71 -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 +1 -1
- package/build/features/shared/GenericError/GenericError.d.ts +7 -0
- package/build/features/shared/GenericError/GenericError.js +55 -0
- package/build/features/shared/GenericError/index.d.ts +2 -0
- package/build/features/shared/GenericError/index.js +2 -0
- package/build/features/shared/Input/Input.d.ts +9 -7
- package/build/features/shared/Input/Input.js +2 -2
- package/build/features/shared/PaciVerification/PaciVerification.d.ts +12 -0
- package/build/features/shared/PaciVerification/PaciVerification.js +91 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.d.ts +7 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +27 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.d.ts +5 -0
- package/build/features/shared/PaciVerification/VerifyPACISuccess.js +8 -0
- package/build/features/shared/PaciVerification/index.d.ts +2 -0
- package/build/features/shared/PaciVerification/index.js +2 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.d.ts +11 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +100 -0
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +12 -0
- package/build/features/shared/SalesChannels/SalesChannel.js +149 -0
- package/build/features/shared/SalesChannels/index.d.ts +2 -0
- package/build/features/shared/SalesChannels/index.js +2 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +17 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +115 -0
- package/build/features/shared/SuccessFlowButtons/index.d.ts +2 -0
- package/build/features/shared/SuccessFlowButtons/index.js +2 -0
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +1 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +3 -2
- package/build/features/shared/UploadFile/UploadFile.d.ts +14 -6
- package/build/features/shared/UploadFile/UploadFile.js +32 -17
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +38 -0
- package/build/features/shared/UploadMultipleFile/UploadFile.js +184 -0
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +32 -0
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +171 -0
- package/build/features/shared/UploadMultipleFile/index.d.ts +2 -0
- package/build/features/shared/UploadMultipleFile/index.js +2 -0
- package/build/features/signIn/SignIn.d.ts +4 -3
- package/build/features/signIn/SignIn.js +12 -18
- package/build/features/signIn/screens/Email/Email.js +4 -2
- package/build/features/signIn/screens/Mobile/Mobile.js +5 -1
- package/build/features/signIn/screens/OTP/OTP.js +14 -1
- package/build/features/signIn/screens/Password/Password.js +15 -2
- package/build/features/tax/Tax.d.ts +5 -3
- package/build/features/tax/Tax.js +39 -38
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.d.ts +4 -0
- package/build/features/tax/screens/PrepareDataLoading/PrepareDataLoading.js +10 -0
- package/build/features/tax/screens/PrepareDataLoading/index.d.ts +2 -0
- package/build/features/tax/screens/PrepareDataLoading/index.js +2 -0
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -2
- package/build/features/tax/screens/Success/Success.js +9 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -93
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +23 -11
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +6 -0
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +48 -0
- package/build/features/tax/screens/TaxDetails/VATId.js +14 -4
- package/build/features/tax/screens/TaxDetails/validation.d.ts +7 -4
- package/build/features/tax/screens/TaxDetails/validation.js +10 -4
- package/build/features/tax/screens/Verify/Verify.js +16 -3
- package/build/hooks/index.d.ts +5 -0
- package/build/hooks/index.js +5 -0
- package/build/hooks/useAppConfig.d.ts +5 -1
- package/build/hooks/useAppConfig.js +6 -4
- package/build/hooks/useAppDispatch.d.ts +2 -2
- package/build/hooks/useCountUp.d.ts +9 -0
- package/build/hooks/useCountUp.js +17 -0
- package/build/hooks/useCountry.d.ts +4 -0
- package/build/hooks/useCountry.js +7 -0
- package/build/hooks/useErrorListener.js +0 -6
- package/build/hooks/useScreen.d.ts +3 -0
- package/build/hooks/useScreen.js +14 -0
- package/build/hooks/useSetFromDefaultValues.d.ts +2 -0
- package/build/hooks/useSetFromDefaultValues.js +26 -0
- package/build/hooks/useVerifyToken.d.ts +15 -0
- package/build/hooks/useVerifyToken.js +25 -0
- package/build/index.d.ts +12 -12
- package/build/index.js +13 -24
- package/build/theme/typography.js +1 -1
- package/build/utils/array.d.ts +53 -1
- package/build/utils/array.js +90 -3
- package/build/utils/common.d.ts +2 -0
- package/build/utils/common.js +10 -0
- package/build/utils/date.d.ts +2 -0
- package/build/utils/date.js +11 -0
- package/build/utils/device.d.ts +1 -0
- package/build/utils/device.js +13 -0
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/html.d.ts +1 -2
- package/build/utils/html.js +6 -11
- package/build/utils/index.d.ts +3 -0
- package/build/utils/index.js +3 -0
- package/build/utils/locale.js +1 -1
- package/build/utils/object.d.ts +1 -0
- package/build/utils/object.js +12 -0
- package/build/utils/string.d.ts +30 -2
- package/build/utils/string.js +131 -6
- package/build/utils/validation.d.ts +3 -0
- package/build/utils/validation.js +9 -0
- package/package.json +4 -3
- package/build/api/ip.d.ts +0 -4
- package/build/api/ip.js +0 -12
- package/build/features/app/auth/authStore.d.ts +0 -35
- package/build/features/app/auth/authStore.js +0 -143
- package/build/features/app/otp/otpStore.d.ts +0 -28
- package/build/features/app/otp/otpStore.js +0 -153
- package/build/features/auth/Auth.d.ts +0 -9
- package/build/features/auth/Auth.js +0 -72
- package/build/features/auth/index.d.ts +0 -1
- package/build/features/auth/index.js +0 -1
- package/build/features/business/screens/Activities/SalesChannels.d.ts +0 -5
- package/build/features/business/screens/Activities/SalesChannels.js +0 -112
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -9
- package/build/features/connect/screens/Merchant/SocialMedia.js +0 -162
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -54
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -56
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -17
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +0 -28
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -38
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/SalesChannels.js +0 -112
- package/build/features/entity/screens/EntityInfoConfirm/index.d.ts +0 -2
- package/build/features/entity/screens/EntityInfoConfirm/index.js +0 -2
- package/build/features/entity/screens/EntityInfoConfirm/validation.d.ts +0 -107
- package/build/features/entity/screens/EntityInfoConfirm/validation.js +0 -17
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +0 -6
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.d.ts +0 -19
- package/build/features/individual/screens/ShowIndividualInfo/ShowOwnerInfo.js +0 -52
- package/build/features/individual/screens/ShowIndividualInfo/index.d.ts +0 -3
- package/build/features/individual/screens/ShowIndividualInfo/index.js +0 -2
- package/build/features/individual/screens/ShowIndividualInfo/info.d.ts +0 -7
- package/build/features/individual/screens/ShowIndividualInfo/info.js +0 -28
- package/build/features/otp/OTP.d.ts +0 -7
- package/build/features/otp/OTP.js +0 -58
- package/build/features/otp/index.d.ts +0 -0
- package/build/features/otp/index.js +0 -1
- package/build/features/otp/screens/OTPVerify/OTPInput.d.ts +0 -6
- package/build/features/otp/screens/OTPVerify/Verify.js +0 -49
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
export var dateFormat = function (date, fmt) {
|
|
3
|
+
if (fmt === void 0) { fmt = 'YYYY-MM-DD'; }
|
|
4
|
+
return moment(date).format(fmt);
|
|
5
|
+
};
|
|
6
|
+
export var getFutureDate = function (years) {
|
|
7
|
+
var futureY = years || 20;
|
|
8
|
+
var maxDate = new Date();
|
|
9
|
+
maxDate.setFullYear(maxDate.getFullYear() + futureY);
|
|
10
|
+
return maxDate;
|
|
11
|
+
};
|
package/build/utils/device.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import { DeviceDetectorResult } from 'device-detector-js';
|
|
|
2
2
|
import { GetResult } from '@fingerprintjs/fingerprintjs';
|
|
3
3
|
export declare const getBrowserInfo: () => DeviceDetectorResult;
|
|
4
4
|
export declare const getFingerPrint: () => Promise<GetResult>;
|
|
5
|
+
export declare const mobileOS: () => 'Windows Phone' | 'Android' | 'iOS' | 'unknown';
|
package/build/utils/device.js
CHANGED
|
@@ -11,3 +11,16 @@ export var getFingerPrint = function () {
|
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
|
+
export var mobileOS = function () {
|
|
15
|
+
var userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
|
16
|
+
if (/windows phone/i.test(userAgent)) {
|
|
17
|
+
return 'Windows Phone';
|
|
18
|
+
}
|
|
19
|
+
if (/android/i.test(userAgent)) {
|
|
20
|
+
return 'Android';
|
|
21
|
+
}
|
|
22
|
+
if (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream) {
|
|
23
|
+
return 'iOS';
|
|
24
|
+
}
|
|
25
|
+
return 'unknown';
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isNetworkError: (error: string | null) => boolean;
|
package/build/utils/html.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const reactElement: (elementId: string) => import("react-dom/client").Root;
|
|
1
|
+
export declare const findOrCreateElementAndInject: (id: string) => HTMLElement;
|
|
3
2
|
export declare const scrollUp: (elementId: string, top?: number) => void;
|
|
4
3
|
export declare const scrollDown: (elementId: string) => void;
|
|
5
4
|
export declare const removeElement: (elementId: string) => void;
|
package/build/utils/html.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export var findOrCreateElementAndInject = function (id) {
|
|
2
|
+
var elementExist = document.getElementById(id);
|
|
3
|
+
if (elementExist)
|
|
4
|
+
return elementExist;
|
|
3
5
|
var element = document.createElement('div');
|
|
4
|
-
element.setAttribute('id', id);
|
|
5
|
-
document.body.
|
|
6
|
+
element.setAttribute('id', id || 'tap-connect-sdk-element');
|
|
7
|
+
document.body.prepend(element);
|
|
6
8
|
return element;
|
|
7
9
|
};
|
|
8
|
-
export var reactElement = function (elementId) {
|
|
9
|
-
var element = document.getElementById(elementId);
|
|
10
|
-
if (!element) {
|
|
11
|
-
element = createElementAndInject('tap-payments-sdk-element');
|
|
12
|
-
}
|
|
13
|
-
return createRoot(element);
|
|
14
|
-
};
|
|
15
10
|
export var scrollUp = function (elementId, top) {
|
|
16
11
|
var el = document.getElementById(elementId);
|
|
17
12
|
if (!el)
|
package/build/utils/index.d.ts
CHANGED
package/build/utils/index.js
CHANGED
package/build/utils/locale.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
2
|
import i18n from '../i18n';
|
|
3
3
|
export var updateLocale = function (locale, country) {
|
|
4
|
-
var data = locale[country.toUpperCase()] || locale['default'];
|
|
4
|
+
var data = locale['SA'] || locale[country.toUpperCase()] || locale['default'];
|
|
5
5
|
if (i18n.isInitialized) {
|
|
6
6
|
i18n.removeResourceBundle('*', 'translation');
|
|
7
7
|
i18n.addResourceBundle('en', 'translation', data.en.translation);
|
package/build/utils/object.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export declare const compareTwoObjects: (obj1: any, obj2: any) => boolean;
|
|
|
2
2
|
export declare const encodeObjectBase64: (obj: any) => string;
|
|
3
3
|
export declare const decodeObjectBase64: (str: string) => any;
|
|
4
4
|
export declare const hasKey: (obj: any, key: string) => boolean;
|
|
5
|
+
export declare const concatenateObjectValues: (data: Record<string, any>, keys: Array<string>) => string;
|
package/build/utils/object.js
CHANGED
|
@@ -21,3 +21,15 @@ export var hasKey = function (obj, key) {
|
|
|
21
21
|
return false;
|
|
22
22
|
return Object.keys(obj).includes(key);
|
|
23
23
|
};
|
|
24
|
+
export var concatenateObjectValues = function (data, keys) {
|
|
25
|
+
if (!data)
|
|
26
|
+
return '';
|
|
27
|
+
var result = '';
|
|
28
|
+
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
29
|
+
var key = keys_1[_i];
|
|
30
|
+
if (data[key]) {
|
|
31
|
+
result += data[key].trim() + ' ';
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return result.trim();
|
|
35
|
+
};
|
package/build/utils/string.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { DeviceInfo } from '../@types';
|
|
1
|
+
import { DeviceInfo, User } from '../@types';
|
|
2
2
|
export declare const maskPhone: (str?: string) => string;
|
|
3
|
+
export declare const shortenString: (str: string, length: number) => string;
|
|
3
4
|
export declare const maskID: (str: string) => string;
|
|
4
5
|
export declare const maskEmail: (str: string) => string;
|
|
6
|
+
export declare const shortenBrand: (str: string) => string;
|
|
5
7
|
export declare const showLastFour: (str: string) => string;
|
|
8
|
+
export declare const maskFileName: (str: string) => string;
|
|
6
9
|
export declare const getIndividualName: (name: string) => {
|
|
7
10
|
first: string;
|
|
8
11
|
middle: string;
|
|
@@ -39,5 +42,30 @@ export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
|
|
|
39
42
|
};
|
|
40
43
|
export declare const removeRequestHeaders: () => void;
|
|
41
44
|
export declare const getBaseUrl: () => string;
|
|
42
|
-
export declare const getScreenNameBasedOnFlow: (flow: string) => "CONNECT_NID_STEP" | "" | "BUSINESS_BUSINESS_TYPE_STEP" | "
|
|
45
|
+
export declare const getScreenNameBasedOnFlow: (flow: string, isAuthorizedUser?: boolean) => "CONNECT_NID_STEP" | "" | "BUSINESS_BUSINESS_TYPE_STEP" | "INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP" | "INDIVIDUAL_LIST_STEP" | "BANK_BANK_DETAILS_STEP" | "TAX_TAX_DETAILS_STEP";
|
|
43
46
|
export declare const getEighteenYearsAgo: () => string;
|
|
47
|
+
export declare const isKW: (flag: string) => boolean;
|
|
48
|
+
export declare const isSA: (flag: string) => boolean;
|
|
49
|
+
export declare const isLinkedIn: (flag: string) => boolean;
|
|
50
|
+
export declare const isTwitter: (flag: string) => boolean;
|
|
51
|
+
export declare const isWebsite: (flag: string) => boolean;
|
|
52
|
+
export declare const isIos: (flag: string) => boolean;
|
|
53
|
+
export declare const isAndroid: (flag: string) => boolean;
|
|
54
|
+
export declare const isFacebook: (flag: string) => boolean;
|
|
55
|
+
export declare const isInstagram: (flag: string) => boolean;
|
|
56
|
+
export declare const isPhysicalStore: (flag: string) => boolean;
|
|
57
|
+
export declare const isCallCenter: (flag: string) => boolean;
|
|
58
|
+
export declare const getChannelIcon: (channel: string) => string;
|
|
59
|
+
export declare const getUserName: (user: User, isAr: boolean) => string;
|
|
60
|
+
export declare const getUserNameObject: (name: string) => {
|
|
61
|
+
first?: undefined;
|
|
62
|
+
middle?: undefined;
|
|
63
|
+
third?: undefined;
|
|
64
|
+
last?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
first: string;
|
|
67
|
+
middle: string;
|
|
68
|
+
third: string;
|
|
69
|
+
last: string;
|
|
70
|
+
};
|
|
71
|
+
export declare const getFileType: (type: string) => "" | "image/jpeg" | "image/png" | "image/jpg" | "application/pdf";
|
package/build/utils/string.js
CHANGED
|
@@ -1,20 +1,41 @@
|
|
|
1
1
|
import { FlowsTypes } from '../@types';
|
|
2
|
-
import { encryptString } from '.';
|
|
2
|
+
import { concatenateObjectValues, encryptString } from '.';
|
|
3
3
|
import { removeAxiosGlobalHeaders } from '../api';
|
|
4
|
-
import { ENDPOINT_PATHS } from '../constants';
|
|
4
|
+
import { ENDPOINT_PATHS, ICONS_FULL_PATH } from '../constants';
|
|
5
5
|
import moment from 'moment';
|
|
6
6
|
export var maskPhone = function (str) {
|
|
7
7
|
if (str === void 0) { str = ''; }
|
|
8
8
|
var lastTwo = str.substring(str.length - 2, str.length);
|
|
9
9
|
return ' ••••' + lastTwo;
|
|
10
10
|
};
|
|
11
|
+
export var shortenString = function (str, length) {
|
|
12
|
+
if (str)
|
|
13
|
+
return str.slice(0, length);
|
|
14
|
+
return '';
|
|
15
|
+
};
|
|
11
16
|
export var maskID = function (str) {
|
|
12
17
|
var lastTwo = str.substring(str.length - 2, str.length);
|
|
13
18
|
return ' ••••' + lastTwo;
|
|
14
19
|
};
|
|
15
20
|
export var maskEmail = function (str) {
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
if (str) {
|
|
22
|
+
var name_1 = str.split('@')[0];
|
|
23
|
+
var maskedName = name_1[0] + '*' + name_1[name_1.length - 1];
|
|
24
|
+
var domain = str.split('@')[1].split('.')[0];
|
|
25
|
+
var maskedDomain = '@' + domain[0] + '*' + domain[domain.length - 1];
|
|
26
|
+
var TLD = '.' + str.split('@')[1].split('.')[1];
|
|
27
|
+
return maskedName + maskedDomain + TLD;
|
|
28
|
+
}
|
|
29
|
+
return '';
|
|
30
|
+
};
|
|
31
|
+
export var shortenBrand = function (str) {
|
|
32
|
+
if (str) {
|
|
33
|
+
var name_2 = str.split(' ');
|
|
34
|
+
if (name_2.length > 1)
|
|
35
|
+
return name_2[0][0].toUpperCase() + name_2[name_2.length - 1][0].toUpperCase();
|
|
36
|
+
return name_2[0][0].toUpperCase();
|
|
37
|
+
}
|
|
38
|
+
return '';
|
|
18
39
|
};
|
|
19
40
|
export var showLastFour = function (str) {
|
|
20
41
|
if (str && str.length >= 4) {
|
|
@@ -23,6 +44,12 @@ export var showLastFour = function (str) {
|
|
|
23
44
|
}
|
|
24
45
|
return str;
|
|
25
46
|
};
|
|
47
|
+
export var maskFileName = function (str) {
|
|
48
|
+
if (str.length < 28)
|
|
49
|
+
return str;
|
|
50
|
+
var first = str.substring(0, 28);
|
|
51
|
+
return first + '....';
|
|
52
|
+
};
|
|
26
53
|
export var getIndividualName = function (name) {
|
|
27
54
|
var _a;
|
|
28
55
|
var nameArray = (name === null || name === void 0 ? void 0 : name.split(' ')) || [];
|
|
@@ -145,7 +172,7 @@ export var getBaseUrl = function () {
|
|
|
145
172
|
}
|
|
146
173
|
return ENDPOINT_PATHS.PRODUCTION_BASE_URL;
|
|
147
174
|
};
|
|
148
|
-
export var getScreenNameBasedOnFlow = function (flow) {
|
|
175
|
+
export var getScreenNameBasedOnFlow = function (flow, isAuthorizedUser) {
|
|
149
176
|
if (flow === FlowsTypes.BANK) {
|
|
150
177
|
return 'BANK_BANK_DETAILS_STEP';
|
|
151
178
|
}
|
|
@@ -153,7 +180,7 @@ export var getScreenNameBasedOnFlow = function (flow) {
|
|
|
153
180
|
return 'BUSINESS_BUSINESS_TYPE_STEP';
|
|
154
181
|
}
|
|
155
182
|
if (flow === FlowsTypes.INDIVIDUAL) {
|
|
156
|
-
return '
|
|
183
|
+
return isAuthorizedUser ? 'INDIVIDUAL_LIST_STEP' : 'INDIVIDUAL_PERSONAL_INDIVIDUAL_INFO_STEP';
|
|
157
184
|
}
|
|
158
185
|
if (flow === FlowsTypes.CONNECT) {
|
|
159
186
|
return 'CONNECT_NID_STEP';
|
|
@@ -167,3 +194,101 @@ export var getEighteenYearsAgo = function () {
|
|
|
167
194
|
var eighteenYearsAgo = new Date();
|
|
168
195
|
return moment(eighteenYearsAgo.setFullYear(eighteenYearsAgo.getFullYear() - 18)).format('YYYY-MM-DD');
|
|
169
196
|
};
|
|
197
|
+
export var isKW = function (flag) {
|
|
198
|
+
return ['kw', 'kwd'].includes(flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
199
|
+
};
|
|
200
|
+
export var isSA = function (flag) {
|
|
201
|
+
return ['sa', 'sau'].includes(flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
202
|
+
};
|
|
203
|
+
export var isLinkedIn = function (flag) {
|
|
204
|
+
return 'linkedin' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
205
|
+
};
|
|
206
|
+
export var isTwitter = function (flag) {
|
|
207
|
+
return 'twitter' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
208
|
+
};
|
|
209
|
+
export var isWebsite = function (flag) {
|
|
210
|
+
return 'website' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
211
|
+
};
|
|
212
|
+
export var isIos = function (flag) {
|
|
213
|
+
return 'ios' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
214
|
+
};
|
|
215
|
+
export var isAndroid = function (flag) {
|
|
216
|
+
return 'android' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
217
|
+
};
|
|
218
|
+
export var isFacebook = function (flag) {
|
|
219
|
+
return 'facebook' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
220
|
+
};
|
|
221
|
+
export var isInstagram = function (flag) {
|
|
222
|
+
return 'instagram' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
223
|
+
};
|
|
224
|
+
export var isPhysicalStore = function (flag) {
|
|
225
|
+
return 'physical_store' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
226
|
+
};
|
|
227
|
+
export var isCallCenter = function (flag) {
|
|
228
|
+
return 'call_center' === (flag === null || flag === void 0 ? void 0 : flag.toLowerCase());
|
|
229
|
+
};
|
|
230
|
+
export var getChannelIcon = function (channel) {
|
|
231
|
+
var key = channel === null || channel === void 0 ? void 0 : channel.toLowerCase();
|
|
232
|
+
if (isWebsite(key)) {
|
|
233
|
+
return ICONS_FULL_PATH + '/website.svg';
|
|
234
|
+
}
|
|
235
|
+
if (isLinkedIn(key)) {
|
|
236
|
+
return ICONS_FULL_PATH + '/LinkedIn-white.png';
|
|
237
|
+
}
|
|
238
|
+
if (isFacebook(key)) {
|
|
239
|
+
return ICONS_FULL_PATH + '/facebook.svg';
|
|
240
|
+
}
|
|
241
|
+
if (isInstagram(key)) {
|
|
242
|
+
return ICONS_FULL_PATH + '/insta.svg';
|
|
243
|
+
}
|
|
244
|
+
if (isTwitter(key)) {
|
|
245
|
+
return ICONS_FULL_PATH + '/twitter-icon.svg';
|
|
246
|
+
}
|
|
247
|
+
if (isPhysicalStore(key)) {
|
|
248
|
+
return ICONS_FULL_PATH + '/physical-store.svg';
|
|
249
|
+
}
|
|
250
|
+
if (isIos(key)) {
|
|
251
|
+
return ICONS_FULL_PATH + '/apple.svg';
|
|
252
|
+
}
|
|
253
|
+
if (isAndroid(key)) {
|
|
254
|
+
return ICONS_FULL_PATH + '/play-store.svgg';
|
|
255
|
+
}
|
|
256
|
+
if (isCallCenter(key)) {
|
|
257
|
+
return ICONS_FULL_PATH + '/call-center.svg';
|
|
258
|
+
}
|
|
259
|
+
return '';
|
|
260
|
+
};
|
|
261
|
+
export var getUserName = function (user, isAr) {
|
|
262
|
+
var _a, _b;
|
|
263
|
+
var fullNameEn = concatenateObjectValues((_a = user === null || user === void 0 ? void 0 : user.names) === null || _a === void 0 ? void 0 : _a.en, ['first', 'middle', 'last']);
|
|
264
|
+
var fullNameAR = concatenateObjectValues((_b = user === null || user === void 0 ? void 0 : user.names) === null || _b === void 0 ? void 0 : _b.ar, ['first', 'middle', 'last']);
|
|
265
|
+
var nameEN = '';
|
|
266
|
+
var nameAR = '';
|
|
267
|
+
if (fullNameEn)
|
|
268
|
+
nameEN = capitalizeTheFirstLetterOfEachWord(fullNameEn);
|
|
269
|
+
if (fullNameAR)
|
|
270
|
+
nameAR = capitalizeTheFirstLetterOfEachWord(fullNameAR);
|
|
271
|
+
var name = isAr ? nameAR || nameEN : nameEN;
|
|
272
|
+
return name;
|
|
273
|
+
};
|
|
274
|
+
export var getUserNameObject = function (name) {
|
|
275
|
+
if (!name)
|
|
276
|
+
return {};
|
|
277
|
+
var _a = name.split(' '), first = _a[0], middle = _a[1], third = _a[2], rest = _a.slice(3);
|
|
278
|
+
var lastName = rest.join(' ') || '';
|
|
279
|
+
return { first: first, middle: middle || '', third: third || '', last: lastName };
|
|
280
|
+
};
|
|
281
|
+
export var getFileType = function (type) {
|
|
282
|
+
switch (type) {
|
|
283
|
+
case 'jpeg':
|
|
284
|
+
return 'image/jpeg';
|
|
285
|
+
case 'png':
|
|
286
|
+
return 'image/png';
|
|
287
|
+
case 'jpg':
|
|
288
|
+
return 'image/jpg';
|
|
289
|
+
case 'pdf':
|
|
290
|
+
return 'application/pdf';
|
|
291
|
+
default:
|
|
292
|
+
return '';
|
|
293
|
+
}
|
|
294
|
+
};
|
|
@@ -13,3 +13,6 @@ export declare function isPasswordHasLowerLetter(password: string): boolean;
|
|
|
13
13
|
export declare function isPasswordHasSpecialLetter(password: string): boolean;
|
|
14
14
|
export declare const keepLettersAndSpace: (str: string) => string;
|
|
15
15
|
export declare const isTapDomain: (domain: string) => boolean;
|
|
16
|
+
export declare const removeArabicWords: (str: string) => string;
|
|
17
|
+
export declare const removeAllOtherThanArabicWords: (str: string) => string;
|
|
18
|
+
export declare const isValidEmail: (email: string) => boolean;
|
|
@@ -43,3 +43,12 @@ export var keepLettersAndSpace = function (str) {
|
|
|
43
43
|
export var isTapDomain = function (domain) {
|
|
44
44
|
return domain.includes('tap.company');
|
|
45
45
|
};
|
|
46
|
+
export var removeArabicWords = function (str) {
|
|
47
|
+
return str.replace(/[\u0600-\u06FF]/g, '').trim();
|
|
48
|
+
};
|
|
49
|
+
export var removeAllOtherThanArabicWords = function (str) {
|
|
50
|
+
return str.replace(/[^ء-ي]/g, '');
|
|
51
|
+
};
|
|
52
|
+
export var isValidEmail = function (email) {
|
|
53
|
+
return /.+@.+\..+/.test(email);
|
|
54
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/auth-jsconnect",
|
|
3
|
-
"version": "2.0.47
|
|
3
|
+
"version": "2.0.47",
|
|
4
4
|
"description": "connect library, auth",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@babel/preset-react": "^7.18.6",
|
|
36
36
|
"@babel/preset-typescript": "^7.18.6",
|
|
37
37
|
"@types/lodash-es": "^4.17.6",
|
|
38
|
-
"@types/moment-hijri": "^2.1.0",
|
|
39
38
|
"@types/react": "^18.0.15",
|
|
40
39
|
"@types/react-calendar": "~3.5.1",
|
|
41
40
|
"@types/react-dom": "^18.0.6",
|
|
@@ -89,7 +88,8 @@
|
|
|
89
88
|
"i18next-http-backend": "^1.4.1",
|
|
90
89
|
"jsencrypt": "^2.3.1",
|
|
91
90
|
"lodash-es": "^4.17.21",
|
|
92
|
-
"
|
|
91
|
+
"lottie-web": "^5.9.6",
|
|
92
|
+
"moment": "^2.29.4",
|
|
93
93
|
"react": "^18.2.0",
|
|
94
94
|
"react-calendar": "~3.7.0",
|
|
95
95
|
"react-device-detect": "^2.2.2",
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"react-dropzone": "^14.2.2",
|
|
98
98
|
"react-hook-form": "^7.33.1",
|
|
99
99
|
"react-i18next": "^11.18.1",
|
|
100
|
+
"react-multi-date-picker": "^3.3.4",
|
|
100
101
|
"react-otp-input": "^2.4.0",
|
|
101
102
|
"react-redux": "^8.0.2",
|
|
102
103
|
"react-spring-bottom-sheet": "^3.4.1",
|
package/build/api/ip.d.ts
DELETED
package/build/api/ip.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ResponseData, OTPFormValues, SharedState, ActionState } from '../../../@types';
|
|
3
|
-
export declare const retrieveLead: import("@reduxjs/toolkit").AsyncThunk<any, string, {}>;
|
|
4
|
-
export declare const verifyAuthOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
|
-
response: any;
|
|
6
|
-
formData: OTPFormValues;
|
|
7
|
-
}, OTPFormValues, {}>;
|
|
8
|
-
export interface AuthData extends ResponseData {
|
|
9
|
-
leadId: string;
|
|
10
|
-
postUrl: string;
|
|
11
|
-
otp: string;
|
|
12
|
-
mobileNumber: string;
|
|
13
|
-
}
|
|
14
|
-
export interface AuthState extends SharedState<AuthData> {
|
|
15
|
-
customLoading?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const authSlice: import("@reduxjs/toolkit").Slice<AuthState, {
|
|
18
|
-
clearError: (state: AuthState) => void;
|
|
19
|
-
stopLoader: (state: AuthState) => void;
|
|
20
|
-
resetOTPScreen: (state: AuthState) => void;
|
|
21
|
-
storeLeadId: (state: AuthState, action: ActionState<{
|
|
22
|
-
leadId: string;
|
|
23
|
-
}>) => void;
|
|
24
|
-
storePostUrl: (state: AuthState, action: ActionState<{
|
|
25
|
-
postUrl: string;
|
|
26
|
-
}>) => void;
|
|
27
|
-
}, "auth/store">;
|
|
28
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, storeLeadId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
29
|
-
leadId: string;
|
|
30
|
-
}, string>, storePostUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
31
|
-
postUrl: string;
|
|
32
|
-
}, string>;
|
|
33
|
-
declare const _default: import("redux").Reducer<AuthState, import("redux").AnyAction>;
|
|
34
|
-
export default _default;
|
|
35
|
-
export declare const authSelector: (state: RootState) => AuthState;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
-
function step(op) {
|
|
15
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
17
|
-
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;
|
|
18
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
-
switch (op[0]) {
|
|
20
|
-
case 0: case 1: t = op; break;
|
|
21
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
-
default:
|
|
25
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
-
if (t[2]) _.ops.pop();
|
|
30
|
-
_.trys.pop(); continue;
|
|
31
|
-
}
|
|
32
|
-
op = body.call(thisArg, _);
|
|
33
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
var _a;
|
|
38
|
-
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
39
|
-
import { handleOpen } from '../../../app/settings';
|
|
40
|
-
import API from '../../../api';
|
|
41
|
-
export var retrieveLead = createAsyncThunk('retrieveLeadAuthKit', function (leadId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
-
var data;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0: return [4, API.leadService.retrieveLead(leadId)];
|
|
46
|
-
case 1:
|
|
47
|
-
data = (_a.sent()).data;
|
|
48
|
-
return [2, data];
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}); });
|
|
52
|
-
export var verifyAuthOTP = createAsyncThunk('verifyAuthOTPKit', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
53
|
-
var _a, settings, auth, _b, leadId, postUrl, payload, data;
|
|
54
|
-
var _c, _d, _e, _f;
|
|
55
|
-
return __generator(this, function (_g) {
|
|
56
|
-
switch (_g.label) {
|
|
57
|
-
case 0:
|
|
58
|
-
_a = thunkApi.getState(), settings = _a.settings, auth = _a.auth;
|
|
59
|
-
_b = auth.data, leadId = _b.leadId, postUrl = _b.postUrl;
|
|
60
|
-
payload = {
|
|
61
|
-
lead_id: leadId,
|
|
62
|
-
data: params.otp,
|
|
63
|
-
post_url: postUrl,
|
|
64
|
-
scopes: settings.data.appConfig.scope || [],
|
|
65
|
-
encryption_contract: ['data']
|
|
66
|
-
};
|
|
67
|
-
return [4, API.authService.verifyAuthKitOTP(payload)];
|
|
68
|
-
case 1:
|
|
69
|
-
data = _g.sent();
|
|
70
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
71
|
-
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, data);
|
|
72
|
-
thunkApi.dispatch(handleOpen(false));
|
|
73
|
-
return [2, { response: data, formData: params }];
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}); });
|
|
77
|
-
var initialState = {
|
|
78
|
-
error: null,
|
|
79
|
-
loading: false,
|
|
80
|
-
customLoading: false,
|
|
81
|
-
data: {
|
|
82
|
-
leadId: '',
|
|
83
|
-
postUrl: '',
|
|
84
|
-
otp: '',
|
|
85
|
-
mobileNumber: ''
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
export var authSlice = createSlice({
|
|
89
|
-
name: 'auth/store',
|
|
90
|
-
initialState: initialState,
|
|
91
|
-
reducers: {
|
|
92
|
-
clearError: function (state) {
|
|
93
|
-
state.error = null;
|
|
94
|
-
},
|
|
95
|
-
stopLoader: function (state) {
|
|
96
|
-
state.loading = false;
|
|
97
|
-
},
|
|
98
|
-
resetOTPScreen: function (state) {
|
|
99
|
-
state.data.otp = '';
|
|
100
|
-
},
|
|
101
|
-
storeLeadId: function (state, action) {
|
|
102
|
-
var leadId = action.payload.leadId;
|
|
103
|
-
state.data.leadId = leadId;
|
|
104
|
-
},
|
|
105
|
-
storePostUrl: function (state, action) {
|
|
106
|
-
var postUrl = action.payload.postUrl;
|
|
107
|
-
state.data.postUrl = postUrl;
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
extraReducers: function (builder) {
|
|
111
|
-
builder
|
|
112
|
-
.addCase(retrieveLead.pending, function (state) {
|
|
113
|
-
state.customLoading = true;
|
|
114
|
-
state.error = null;
|
|
115
|
-
})
|
|
116
|
-
.addCase(retrieveLead.fulfilled, function (state, action) {
|
|
117
|
-
var _a, _b;
|
|
118
|
-
state.customLoading = false;
|
|
119
|
-
state.error = null;
|
|
120
|
-
var data = action.payload;
|
|
121
|
-
state.data.mobileNumber = ((_b = (_a = data === null || data === void 0 ? void 0 : data.contact) === null || _a === void 0 ? void 0 : _a.phone) === null || _b === void 0 ? void 0 : _b.number) || '';
|
|
122
|
-
})
|
|
123
|
-
.addCase(retrieveLead.rejected, function (state, action) {
|
|
124
|
-
state.loading = false;
|
|
125
|
-
state.error = action.error.message;
|
|
126
|
-
})
|
|
127
|
-
.addCase(verifyAuthOTP.pending, function (state) {
|
|
128
|
-
state.loading = true;
|
|
129
|
-
state.error = null;
|
|
130
|
-
})
|
|
131
|
-
.addCase(verifyAuthOTP.fulfilled, function (state) {
|
|
132
|
-
state.loading = false;
|
|
133
|
-
state.error = null;
|
|
134
|
-
})
|
|
135
|
-
.addCase(verifyAuthOTP.rejected, function (state, action) {
|
|
136
|
-
state.loading = false;
|
|
137
|
-
state.error = action.error.message;
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export var clearError = (_a = authSlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen, storeLeadId = _a.storeLeadId, storePostUrl = _a.storePostUrl;
|
|
142
|
-
export default authSlice.reducer;
|
|
143
|
-
export var authSelector = function (state) { return state.auth; };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../../../app/store';
|
|
2
|
-
import { FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
|
-
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
4
|
-
data: any;
|
|
5
|
-
}, void, {}>;
|
|
6
|
-
export declare const verifyOtpLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
7
|
-
formData: OTPFormValues;
|
|
8
|
-
}, OTPFormValues, {}>;
|
|
9
|
-
declare type VerifyData = {
|
|
10
|
-
token: string;
|
|
11
|
-
};
|
|
12
|
-
export interface OtpData {
|
|
13
|
-
verify: ResponseData & VerifyData;
|
|
14
|
-
otpData: OTPFormValues & ResponseData;
|
|
15
|
-
flowName: FlowsTypes;
|
|
16
|
-
}
|
|
17
|
-
export interface OtpState extends SharedState<OtpData> {
|
|
18
|
-
customLoading?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const otpSlice: import("@reduxjs/toolkit").Slice<OtpState, {
|
|
21
|
-
clearError: (state: OtpState) => void;
|
|
22
|
-
stopLoader: (state: OtpState) => void;
|
|
23
|
-
resetOTPScreen: (state: OtpState) => void;
|
|
24
|
-
}, "otp/store">;
|
|
25
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
26
|
-
declare const _default: import("redux").Reducer<OtpState, import("redux").AnyAction>;
|
|
27
|
-
export default _default;
|
|
28
|
-
export declare const otpSelector: (state: RootState) => OtpState;
|