@tap-payments/auth-jsconnect 2.0.126-test → 2.1.0
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 +397 -7
- package/build/@types/app.js +47 -0
- package/build/@types/form.d.ts +89 -37
- package/build/@types/index.d.ts +1 -0
- package/build/@types/index.js +1 -0
- package/build/@types/redux.d.ts +4 -0
- package/build/@types/theme.d.ts +1 -1
- package/build/@types/user.d.ts +177 -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 +24 -18
- package/build/api/auth.js +25 -5
- 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 +8 -0
- package/build/api/brand.js +18 -1
- package/build/api/country.d.ts +4 -0
- package/build/api/country.js +9 -1
- package/build/api/data.d.ts +24 -8
- package/build/api/data.js +50 -2
- package/build/api/document.d.ts +25 -0
- package/build/api/document.js +38 -0
- package/build/api/entity.d.ts +61 -31
- package/build/api/entity.js +47 -20
- package/build/api/file.d.ts +14 -0
- package/build/api/file.js +37 -0
- package/build/api/index.d.ts +70 -13
- package/build/api/index.js +9 -3
- package/build/api/individual.d.ts +87 -13
- package/build/api/individual.js +17 -1
- package/build/api/init.d.ts +16 -0
- package/build/api/init.js +13 -0
- package/build/api/lead.d.ts +24 -11
- package/build/api/lead.js +25 -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 -1
- package/build/app/rootReducer.js +4 -2
- package/build/app/settings.d.ts +25 -12
- package/build/app/settings.js +95 -43
- package/build/app/store.d.ts +8 -6
- package/build/assets/locales/ar.json +93 -2
- package/build/assets/locales/en.json +95 -1
- package/build/components/AnimationFlow/AnimationFlow.d.ts +4 -2
- package/build/components/AnimationFlow/AnimationFlow.js +4 -4
- package/build/components/AnimationFlow/BottomSheet.d.ts +4 -1
- package/build/components/AnimationFlow/BottomSheet.js +43 -19
- package/build/components/AnimationFlow/Dialog.d.ts +4 -2
- package/build/components/AnimationFlow/Dialog.js +30 -7
- package/build/components/Button/Button.js +1 -5
- package/build/components/DatePicker/DatePicker.d.ts +3 -1
- package/build/components/DatePicker/DatePicker.js +20 -15
- package/build/components/FileInput/DragAndDrop.d.ts +3 -2
- package/build/components/FileInput/DragAndDrop.js +5 -7
- package/build/components/LogoBadge/LogoBadge.js +3 -0
- package/build/components/Lottie/Lottie.d.ts +3536 -211
- package/build/components/Lottie/Lottie.js +12 -4
- package/build/components/Lottie/files/account_creating.json +732 -0
- package/build/components/Lottie/files/error.json +692 -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/index.d.ts +2 -2
- package/build/components/Lottie/index.js +2 -2
- package/build/components/ProgressBar/CircularProgressBar.d.ts +3 -1
- package/build/components/ProgressBar/CircularProgressBar.js +2 -2
- package/build/components/Radio/Radio.js +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +5 -2
- package/build/components/RadioGroup/RadioGroup.js +5 -9
- package/build/components/RadioGroup/index.d.ts +1 -1
- package/build/components/RadioLabel/RadioLabel.d.ts +4 -2
- package/build/components/RadioLabel/RadioLabel.js +2 -2
- package/build/components/SimpleList/SimpleList.d.ts +8 -2
- package/build/components/SimpleList/SimpleList.js +46 -14
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.d.ts +1 -1
- package/build/components/Tooltip/Tooltip.js +12 -3
- package/build/constants/api.d.ts +16 -0
- package/build/constants/api.js +32 -1
- package/build/constants/app.d.ts +69 -1
- package/build/constants/app.js +274 -36
- package/build/constants/assets.d.ts +14 -0
- package/build/constants/assets.js +14 -0
- package/build/constants/validation.d.ts +4 -0
- package/build/constants/validation.js +4 -0
- package/build/features/app/bank/bankStore.d.ts +94 -24
- package/build/features/app/bank/bankStore.js +192 -166
- package/build/features/app/brand/brandStore.d.ts +232 -0
- package/build/features/app/brand/brandStore.js +837 -0
- package/build/features/app/business/businessStore.d.ts +192 -28
- package/build/features/app/business/businessStore.js +431 -358
- package/build/features/app/connect/connectStore.d.ts +124 -19
- package/build/features/app/connect/connectStore.js +237 -261
- package/build/features/app/connectExpress/connectExpressStore.d.ts +323 -0
- package/build/features/app/connectExpress/connectExpressStore.js +1152 -0
- package/build/features/app/entity/entityStore.d.ts +109 -20
- package/build/features/app/entity/entityStore.js +451 -246
- package/build/features/app/individual/individualStore.d.ts +242 -26
- package/build/features/app/individual/individualStore.js +1002 -240
- package/build/features/app/password/passwordStore.d.ts +111 -24
- package/build/features/app/password/passwordStore.js +107 -43
- 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 +82 -9
- package/build/features/app/tax/taxStore.js +181 -119
- package/build/features/bank/Bank.d.ts +5 -3
- package/build/features/bank/Bank.js +45 -38
- package/build/features/bank/screens/BankDetails/BankDetails.js +59 -28
- package/build/features/bank/screens/BankDetails/BankName.d.ts +5 -1
- package/build/features/bank/screens/BankDetails/BankName.js +15 -12
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +8 -1
- package/build/features/bank/screens/BankDetails/BankStatement.js +16 -46
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +3 -1
- package/build/features/bank/screens/BankDetails/Beneficiary.js +15 -17
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.d.ts +4 -1
- package/build/features/bank/screens/BankDetails/ConfirmPolicy.js +12 -13
- package/build/features/bank/screens/BankDetails/IBAN.d.ts +3 -1
- package/build/features/bank/screens/BankDetails/IBAN.js +17 -12
- package/build/features/bank/screens/BankDetails/validation.d.ts +26 -10
- package/build/features/bank/screens/BankDetails/validation.js +23 -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 +14 -2
- package/build/features/bank/screens/Success/Success.js +7 -3
- package/build/features/bank/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
- package/build/features/bank/screens/Verify/OTPInput.js +5 -3
- package/build/features/bank/screens/Verify/Verify.js +1 -5
- package/build/features/brand/Brand.d.ts +9 -0
- package/build/features/brand/Brand.js +76 -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 +74 -0
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +180 -0
- package/build/features/brand/screens/BrandActivities/BrandActivities.d.ts +5 -0
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +114 -0
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +55 -0
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +135 -0
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +10 -0
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +100 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +10 -0
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +142 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +43 -0
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +93 -0
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +18 -0
- package/build/features/brand/screens/BrandActivities/TAC.js +93 -0
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +6 -0
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +56 -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/{entity/screens/EntityInfoConfirm → brand/screens/BrandActivities}/validation.d.ts +19 -16
- package/build/features/brand/screens/BrandActivities/validation.js +23 -0
- package/build/features/brand/screens/BrandInfo/BrandInfo.d.ts +5 -0
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +124 -0
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +10 -0
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +53 -0
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +10 -0
- package/build/features/brand/screens/BrandInfo/BrandName.js +141 -0
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +6 -0
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +36 -0
- package/build/features/brand/screens/BrandInfo/SegmentLocations.d.ts +10 -0
- package/build/features/brand/screens/BrandInfo/SegmentLocations.js +69 -0
- package/build/features/brand/screens/BrandInfo/SegmentProfits.d.ts +10 -0
- package/build/features/brand/screens/BrandInfo/SegmentProfits.js +69 -0
- package/build/features/brand/screens/BrandInfo/SegmentTechs.d.ts +10 -0
- package/build/features/brand/screens/BrandInfo/SegmentTechs.js +69 -0
- package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +10 -0
- package/build/features/brand/screens/BrandInfo/TeamSize.js +69 -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 +47 -0
- package/build/features/brand/screens/BrandInfo/validation.js +110 -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 +21 -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/{auth/screens/OTP → brand/screens/Verify}/OTPInput.js +8 -10
- package/build/features/brand/screens/Verify/Verify.js +78 -0
- package/build/features/brand/screens/Verify/index.d.ts +2 -0
- package/build/features/brand/screens/Verify/index.js +2 -0
- package/build/features/business/Business.d.ts +4 -3
- package/build/features/business/Business.js +15 -18
- package/build/features/business/screens/Activities/Activities.js +6 -14
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +17 -70
- package/build/features/business/screens/Activities/ActivitiesList.js +222 -100
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +3 -3
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/Activities/validation.d.ts +165 -30
- package/build/features/business/screens/Activities/validation.js +9 -3
- package/build/features/business/screens/BrandDetails/BrandDetails.d.ts +5 -0
- package/build/features/business/screens/BrandDetails/BrandDetails.js +39 -0
- package/build/features/business/screens/BrandDetails/BrandName.d.ts +5 -0
- package/build/features/business/screens/BrandDetails/BrandName.js +36 -0
- package/build/features/business/screens/BrandDetails/Header.d.ts +5 -0
- package/build/features/business/screens/BrandDetails/Header.js +49 -0
- package/build/features/business/screens/BrandDetails/LicenseInfo.d.ts +5 -0
- package/build/features/business/screens/BrandDetails/LicenseInfo.js +38 -0
- package/build/features/business/screens/BrandDetails/SalesChannel.d.ts +18 -0
- package/build/features/business/screens/BrandDetails/SalesChannel.js +48 -0
- package/build/features/business/screens/BrandDetails/index.d.ts +3 -0
- package/build/features/business/screens/BrandDetails/index.js +2 -0
- package/build/features/business/screens/BusinessType/Article.d.ts +8 -0
- package/build/features/business/screens/BusinessType/Article.js +52 -0
- package/build/features/business/screens/BusinessType/BusinessType.js +42 -17
- package/build/features/business/screens/BusinessType/EntityLicenseList.d.ts +9 -0
- package/build/features/business/screens/BusinessType/EntityLicenseList.js +129 -0
- package/build/features/business/screens/BusinessType/EntityName.js +6 -7
- package/build/features/business/screens/BusinessType/LicenseCertificate.js +14 -46
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +11 -23
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseNumber.js +10 -8
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +30 -2
- package/build/features/business/screens/BusinessType/LicenseType.js +42 -6
- package/build/features/business/screens/BusinessType/validation.d.ts +9 -6
- package/build/features/business/screens/BusinessType/validation.js +21 -13
- package/build/features/business/screens/CivilID/IDNumber.js +2 -3
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +47 -40
- package/build/features/business/screens/Customers/CustomerLocations.js +36 -21
- package/build/features/business/screens/Customers/Customers.js +27 -16
- package/build/features/business/screens/Customers/ExpectedCustomers.js +13 -6
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +20 -9
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +7 -7
- package/build/features/business/screens/Customers/RefundPolicy.js +15 -6
- package/build/features/business/screens/Customers/TransactionPolicy.js +19 -11
- package/build/features/business/screens/IDBOD/DOB.js +2 -2
- package/build/features/business/screens/IDBOD/ID.js +2 -3
- package/build/features/business/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +14 -2
- package/build/features/business/screens/Success/Success.js +10 -3
- package/build/features/business/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -96
- package/build/features/business/screens/Verify/OTPInput.js +5 -3
- package/build/features/business/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/business/screens/VerifyPACI/VerifyPACI.js +9 -134
- package/build/features/connect/Connect.d.ts +4 -4
- package/build/features/connect/Connect.js +40 -37
- package/build/features/connect/screens/CivilID/CivilID.js +6 -14
- package/build/features/connect/screens/CivilID/IDNumber.js +5 -6
- package/build/features/connect/screens/Individual/Email.js +18 -28
- package/build/features/connect/screens/Individual/Individual.js +17 -9
- package/build/features/connect/screens/Individual/MobileNumber.js +16 -15
- package/build/features/connect/screens/Individual/Name.js +11 -15
- package/build/features/connect/screens/Individual/validation.js +2 -8
- package/build/features/connect/screens/Merchant/BrandList.js +17 -9
- package/build/features/connect/screens/Merchant/BrandName.js +10 -12
- package/build/features/connect/screens/Merchant/Merchant.js +41 -36
- package/build/features/connect/screens/Merchant/SalesChannels.d.ts +1 -3
- package/build/features/connect/screens/Merchant/SalesChannels.js +28 -103
- package/build/features/connect/screens/Merchant/Segments.d.ts +8 -0
- package/build/features/connect/screens/Merchant/Segments.js +66 -0
- package/build/features/connect/screens/Merchant/TAC.js +1 -3
- package/build/features/connect/screens/Merchant/TeamSize.d.ts +8 -0
- package/build/features/connect/screens/Merchant/TeamSize.js +66 -0
- package/build/features/connect/screens/Merchant/validation.d.ts +9 -0
- package/build/features/connect/screens/Merchant/validation.js +17 -14
- package/build/features/connect/screens/Mobile/Mobile.js +13 -16
- package/build/features/connect/screens/Mobile/MobileNumber.js +14 -10
- package/build/features/connect/screens/NID/DOB.js +1 -1
- package/build/features/connect/screens/NID/IDNumber.js +6 -7
- package/build/features/connect/screens/NID/NID.js +6 -0
- package/build/features/connect/screens/OTP/OTP.js +13 -15
- package/build/features/connect/screens/OTP/OTPInput.js +10 -0
- package/build/features/connect/screens/ThankYou/ThankYou.js +24 -2
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.d.ts +1 -1
- package/build/features/connect/screens/VerifyPACI/VerifyPACI.js +9 -73
- package/build/features/connectExpress/ConnectExpress.d.ts +12 -0
- package/build/features/connectExpress/ConnectExpress.js +149 -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 +54 -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 +54 -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 +9 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +138 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.d.ts +5 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +83 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +9 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +139 -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 +35 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +96 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +19 -0
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +82 -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 +94 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +9 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +105 -0
- package/build/features/{individual/screens/AdditionalIndividualInfo/EmployerLocation.d.ts → connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts} +3 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +153 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +7 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +44 -0
- 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.js +23 -12
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.d.ts +5 -0
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +52 -0
- package/build/features/connectExpress/screens/IdentityOTP/validation.d.ts +8 -0
- package/build/features/connectExpress/screens/IdentityOTP/validation.js +4 -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 +111 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +13 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +155 -0
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +7 -0
- package/build/features/{auth/screens/NID → connectExpress/screens/Mobile}/TAC.js +12 -14
- 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 +7 -0
- package/build/features/connectExpress/screens/NID/DOB.js +47 -0
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +7 -0
- package/build/features/{auth → connectExpress}/screens/NID/IDNumber.js +14 -18
- package/build/features/connectExpress/screens/NID/NID.js +94 -0
- package/build/features/connectExpress/screens/NID/TAC.d.ts +19 -0
- package/build/features/connectExpress/screens/NID/TAC.js +82 -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/{auth/screens/NID → connectExpress/screens/NIDMissed}/DOB.d.ts +1 -2
- package/build/features/{auth/screens/NID → connectExpress/screens/NIDMissed}/DOB.js +9 -9
- package/build/features/{auth/screens/NID → connectExpress/screens/NIDMissed}/IDNumber.d.ts +4 -1
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +55 -0
- package/build/features/connectExpress/screens/NIDMissed/NID.d.ts +5 -0
- package/build/features/{auth/screens/NID → connectExpress/screens/NIDMissed}/NID.js +14 -23
- 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/{auth/screens/NID/TAC.d.ts → connectExpress/screens/OTP/OTP.d.ts} +2 -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 +45 -39
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +37 -0
- package/build/features/entity/screens/EntityCapital/ActivityList.js +286 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +7 -0
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +45 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +7 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +40 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +7 -0
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +45 -0
- package/build/features/entity/screens/EntityCapital/EntityCapital.d.ts +5 -0
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +86 -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 +197 -0
- package/build/features/entity/screens/EntityCapital/validation.js +18 -0
- package/build/features/entity/screens/EntityName/Article.d.ts +10 -0
- package/build/features/entity/screens/EntityName/Article.js +53 -0
- package/build/features/entity/screens/EntityName/EntityName.d.ts +5 -0
- package/build/features/entity/screens/EntityName/EntityName.js +137 -0
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +73 -0
- package/build/features/entity/screens/EntityName/EntityTypeList.js +134 -0
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +21 -0
- package/build/features/entity/screens/EntityName/ExpiryDate.js +44 -0
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +21 -0
- package/build/features/entity/screens/EntityName/IssuingDate.js +43 -0
- package/build/features/entity/screens/EntityName/LegalName.d.ts +7 -0
- package/build/features/entity/screens/EntityName/LegalName.js +49 -0
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +9 -0
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +54 -0
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +8 -0
- package/build/features/entity/screens/EntityName/LicenseNumber.js +53 -0
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +8 -0
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +44 -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 +91 -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 +14 -2
- package/build/features/entity/screens/Success/Success.js +7 -3
- package/build/features/entity/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -94
- package/build/features/entity/screens/Verify/OTPInput.js +5 -3
- package/build/features/entity/screens/Verify/Verify.js +7 -20
- package/build/features/featuresScreens.d.ts +2 -1
- package/build/features/featuresScreens.js +148 -12
- package/build/features/individual/Individual.d.ts +5 -3
- package/build/features/individual/Individual.js +45 -39
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +13 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +96 -40
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +9 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +54 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +3 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +19 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +34 -46
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +90 -56
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +31 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +37 -4
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +7 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +42 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +7 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +47 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +9 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +54 -0
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +31 -39
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +31 -23
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +15 -23
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.d.ts +12 -0
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +32 -0
- package/build/features/individual/screens/IndividualList/Email.d.ts +10 -0
- package/build/features/individual/screens/IndividualList/Email.js +113 -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 +142 -0
- package/build/features/individual/screens/IndividualList/UserList.d.ts +5 -0
- package/build/features/individual/screens/IndividualList/UserList.js +207 -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 +40 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +10 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +103 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +12 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +76 -0
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +9 -0
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +46 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +8 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +42 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +9 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +47 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +36 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +84 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +8 -0
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +40 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +21 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +182 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +12 -0
- package/build/features/individual/screens/{AdditionalIndividualInfo/EmployerLocation.js → IndividualPersonalInfo/IssuedCountry.js} +19 -35
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +12 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +142 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +8 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +44 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +12 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +76 -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/IndividualPhoneInfo/MobileNumber.d.ts +13 -0
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +146 -0
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.d.ts +5 -0
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +63 -0
- package/build/features/individual/screens/IndividualPhoneInfo/index.d.ts +3 -0
- package/build/features/individual/screens/IndividualPhoneInfo/index.js +2 -0
- package/build/features/individual/screens/IndividualPhoneInfo/validation.d.ts +8 -0
- package/build/features/individual/screens/IndividualPhoneInfo/validation.js +31 -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 +14 -2
- package/build/features/individual/screens/Success/Success.js +7 -3
- package/build/features/individual/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
- package/build/features/individual/screens/Verify/OTPInput.js +5 -3
- package/build/features/individual/screens/Verify/Verify.js +10 -21
- package/build/features/password/Password.d.ts +5 -3
- package/build/features/password/Password.js +15 -18
- package/build/features/password/screens/CreatePassword/CreatePassword.js +9 -16
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +14 -2
- package/build/features/password/screens/Success/Success.js +7 -3
- package/build/features/password/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
- package/build/features/password/screens/Verify/OTPInput.js +5 -3
- package/build/features/password/screens/Verify/Verify.js +7 -20
- 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.js +1 -5
- package/build/features/shared/Button/Button.d.ts +3 -1
- package/build/features/shared/Button/Button.js +14 -4
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/EmailProvidersButtons.js +9 -2
- package/build/features/shared/Button/FlowsButtons.d.ts +4 -1
- package/build/features/shared/Button/FlowsButtons.js +64 -30
- package/build/features/shared/Button/IndividualActionButtons.d.ts +21 -0
- package/build/features/shared/Button/IndividualActionButtons.js +156 -0
- package/build/features/shared/Button/index.d.ts +2 -1
- package/build/features/shared/Button/index.js +2 -1
- package/build/features/shared/CheckIcon/CheckIcon.d.ts +7 -1
- package/build/features/shared/CheckIcon/CheckIcon.js +7 -6
- package/build/features/shared/Chip/Chip.d.ts +3 -0
- package/build/features/shared/Chip/Chip.js +21 -0
- package/build/features/shared/Chip/index.d.ts +2 -0
- package/build/features/shared/Chip/index.js +2 -0
- package/build/features/shared/Containers/FeatureContainer.d.ts +4 -1
- package/build/features/shared/Containers/FeatureContainer.js +5 -4
- 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/Dot/Dot.d.ts +8 -0
- package/build/features/shared/Dot/Dot.js +29 -0
- package/build/features/shared/Dot/index.d.ts +2 -0
- package/build/features/shared/Dot/index.js +2 -0
- package/build/features/shared/EndAdornment/EndAdornment.d.ts +10 -0
- package/build/features/shared/EndAdornment/EndAdornment.js +17 -0
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.d.ts +7 -0
- package/build/features/shared/EndAdornment/EndAdornmentExpanded.js +13 -0
- package/build/features/shared/EndAdornment/index.d.ts +3 -0
- package/build/features/shared/EndAdornment/index.js +3 -0
- package/build/features/shared/Footer/Footer.js +9 -1
- package/build/features/shared/Footer/PoweredByFooter.d.ts +9 -0
- package/build/features/shared/Footer/PoweredByFooter.js +36 -0
- package/build/features/shared/Footer/index.d.ts +3 -2
- package/build/features/shared/Footer/index.js +3 -2
- 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 +12 -11
- package/build/features/shared/Input/Input.js +4 -5
- package/build/features/shared/Input/index.d.ts +2 -1
- package/build/features/shared/InputSelect/InputSelect.d.ts +4 -0
- package/build/features/shared/InputSelect/InputSelect.js +33 -0
- package/build/features/shared/InputSelect/index.d.ts +2 -0
- package/build/features/shared/InputSelect/index.js +2 -0
- package/build/features/shared/OTP/OTP.d.ts +2 -1
- package/build/features/shared/OTP/OTP.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/{connect/screens/VerifyPACI → shared/PaciVerification}/VerifyPACILoading.d.ts +1 -0
- package/build/features/shared/PaciVerification/VerifyPACILoading.js +27 -0
- package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.js +1 -1
- 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 +13 -0
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +102 -0
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +14 -0
- package/build/features/shared/SalesChannels/SalesChannel.js +154 -0
- package/build/features/shared/SalesChannels/index.d.ts +2 -0
- package/build/features/shared/SalesChannels/index.js +2 -0
- package/build/features/shared/Search/Search.d.ts +2 -1
- package/build/features/shared/Search/Search.js +2 -2
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +17 -0
- package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +134 -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 +4 -2
- package/build/features/shared/SuccessScreen/SuccessScreen.js +5 -3
- package/build/features/shared/UploadFile/FileUpload.d.ts +32 -0
- package/build/features/shared/UploadFile/FileUpload.js +267 -0
- package/build/features/shared/UploadFile/UploadFile.d.ts +5 -4
- package/build/features/shared/UploadFile/UploadFile.js +20 -20
- package/build/features/shared/UploadFile/UploadWrapper.d.ts +36 -0
- package/build/features/shared/UploadFile/UploadWrapper.js +115 -0
- package/build/features/shared/UploadFile/index.d.ts +2 -1
- package/build/features/shared/UploadFile/index.js +2 -1
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +29 -0
- package/build/features/shared/UploadMultipleFile/UploadFile.js +273 -0
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +36 -0
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +178 -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 -19
- package/build/features/tax/Tax.d.ts +5 -3
- package/build/features/tax/Tax.js +45 -40
- 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 +14 -2
- package/build/features/tax/screens/Success/Success.js +9 -3
- package/build/features/tax/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +6 -97
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.d.ts +4 -1
- package/build/features/tax/screens/TaxDetails/ConfirmPolicy.js +12 -12
- package/build/features/tax/screens/TaxDetails/TaxDetails.js +38 -26
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +9 -0
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +50 -0
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +5 -1
- package/build/features/tax/screens/TaxDetails/VATId.js +12 -7
- package/build/features/tax/screens/TaxDetails/validation.d.ts +4 -1
- package/build/features/tax/screens/TaxDetails/validation.js +7 -4
- package/build/features/tax/screens/Verify/OTPInput.js +5 -3
- package/build/features/tax/screens/Verify/Verify.js +6 -22
- package/build/hooks/index.d.ts +8 -0
- package/build/hooks/index.js +8 -0
- package/build/hooks/useAppConfig.d.ts +6 -2
- package/build/hooks/useAppConfig.js +13 -6
- package/build/hooks/useAppDispatch.d.ts +2 -1
- 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/useDataNoneEditable.d.ts +2 -0
- package/build/hooks/useDataNoneEditable.js +19 -0
- package/build/hooks/useDataVerified.d.ts +6 -0
- package/build/hooks/useDataVerified.js +19 -0
- package/build/hooks/useErrorListener.d.ts +2 -1
- package/build/hooks/useErrorListener.js +16 -1
- package/build/hooks/useExcludeReadOnlyFelids.d.ts +11 -0
- package/build/hooks/useExcludeReadOnlyFelids.js +33 -0
- package/build/hooks/useFormErrorAndUpdateReadOnly.d.ts +6 -0
- package/build/hooks/useFormErrorAndUpdateReadOnly.js +48 -0
- package/build/hooks/useFormReadOnly.d.ts +6 -0
- package/build/hooks/useFormReadOnly.js +40 -0
- package/build/hooks/useSetFromDefaultValues.js +4 -2
- package/build/hooks/useVerifyToken.d.ts +15 -0
- package/build/hooks/useVerifyToken.js +25 -0
- package/build/index.d.ts +12 -11
- package/build/index.js +14 -21
- package/build/theme/shadows.js +1 -1
- package/build/theme/typography.js +1 -1
- package/build/utils/array.d.ts +19 -1
- package/build/utils/array.js +248 -5
- package/build/utils/common.d.ts +2 -1
- package/build/utils/common.js +7 -0
- package/build/utils/date.d.ts +3 -0
- package/build/utils/date.js +17 -0
- package/build/utils/error.d.ts +2 -0
- package/build/utils/error.js +6 -0
- package/build/utils/gtm.d.ts +6 -0
- package/build/utils/gtm.js +29 -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/object.d.ts +4 -0
- package/build/utils/object.js +17 -0
- package/build/utils/string.d.ts +20 -2
- package/build/utils/string.js +81 -5
- package/build/utils/validation.d.ts +1 -0
- package/build/utils/validation.js +3 -0
- package/package.json +4 -2
- package/build/api/ip.d.ts +0 -4
- package/build/api/ip.js +0 -12
- package/build/features/app/auth/authStore.d.ts +0 -46
- package/build/features/app/auth/authStore.js +0 -261
- package/build/features/auth/Auth.d.ts +0 -10
- package/build/features/auth/Auth.js +0 -87
- package/build/features/auth/index.d.ts +0 -1
- package/build/features/auth/index.js +0 -1
- package/build/features/auth/screens/NID/validation.d.ts +0 -27
- package/build/features/auth/screens/NID/validation.js +0 -19
- package/build/features/business/screens/VerifyPACI/VerifyPACILoading.d.ts +0 -6
- package/build/features/business/screens/VerifyPACI/VerifyPACILoading.js +0 -23
- package/build/features/connect/screens/Merchant/SocialMedia.d.ts +0 -6
- package/build/features/connect/screens/Merchant/SocialMedia.js +0 -182
- package/build/features/connect/screens/VerifyPACI/VerifyPACILoading.js +0 -23
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.d.ts +0 -5
- package/build/features/connect/screens/VerifyPACI/VerifyPACISuccess.js +0 -8
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.d.ts +0 -55
- package/build/features/entity/screens/EntityInfoConfirm/ActivitiesList.js +0 -149
- package/build/features/entity/screens/EntityInfoConfirm/Article.d.ts +0 -3
- package/build/features/entity/screens/EntityInfoConfirm/Article.js +0 -73
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/EntityInfo.js +0 -75
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseName.js +0 -32
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.d.ts +0 -5
- package/build/features/entity/screens/EntityInfoConfirm/LicenseNumber.js +0 -49
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.d.ts +0 -6
- package/build/features/entity/screens/EntityInfoConfirm/OperationStartDate.js +0 -33
- 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.js +0 -24
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.d.ts +0 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/EmployerName.js +0 -46
- 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/{auth/screens/OTP/OTPInput.d.ts → brand/screens/Verify/Verify.d.ts} +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/{auth/screens/OTP → connectExpress/screens/IdentityOTP}/OTP.d.ts +0 -0
- /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/{auth → connectExpress}/screens/NID/NID.d.ts +0 -0
- /package/build/features/{auth → connectExpress}/screens/NID/index.d.ts +0 -0
- /package/build/features/{auth → connectExpress}/screens/NID/index.js +0 -0
- /package/build/features/{business/screens/VerifyPACI → shared/PaciVerification}/VerifyPACISuccess.d.ts +0 -0
|
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
28
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
29
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
30
|
switch (op[0]) {
|
|
@@ -45,80 +45,109 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
49
|
+
var t = {};
|
|
50
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
+
t[p] = s[p];
|
|
52
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
+
t[p[i]] = s[p[i]];
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
};
|
|
48
59
|
var _a;
|
|
49
60
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
61
|
import API from '../../../api';
|
|
51
|
-
import { FlowsTypes } from '../../../@types';
|
|
52
|
-
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
62
|
+
import { BusinessType, DocumentPurpose, FlowsTypes, LicenseType } from '../../../@types';
|
|
63
|
+
import { handleNextScreenStep, handlePrevScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
53
64
|
import { ENTITY_STEP_NAMES } from '../../../constants';
|
|
54
65
|
import moment from 'moment';
|
|
55
|
-
import { convertNumbers2English } from '../../../utils';
|
|
56
|
-
export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
66
|
+
import { convertNumbers2English, getRecentDocumentBasedOnPurpose, hasVerifiedValue, hasNoneEditableValue, sleep, formatNumberAsCurrency, removeAllCharsFromNumber, retrieveIndividualData } from '../../../utils';
|
|
67
|
+
export var verifyLeadToken = createAsyncThunk('entityVerifyLeadToken', function (_a, thunkApi) {
|
|
68
|
+
var token = _a.token, isInternally = _a.isInternally;
|
|
69
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
70
|
+
var payload, data, boardData, boardInfoData, entityData, entityTypes, individualData, countryIso2, _b, board_id, board_info_id, _c, id_1, type_1, serviceCallBack, _d, boardRes, individualRes, entityId;
|
|
71
|
+
var _e, _f, _g, _h;
|
|
72
|
+
return __generator(this, function (_j) {
|
|
73
|
+
switch (_j.label) {
|
|
74
|
+
case 0:
|
|
75
|
+
payload = {
|
|
76
|
+
service_name: 'tap_email',
|
|
77
|
+
verify_token: token
|
|
78
|
+
};
|
|
79
|
+
return [4, API.leadService.verifyLeadToken(payload)];
|
|
80
|
+
case 1:
|
|
81
|
+
data = (_j.sent()).data;
|
|
82
|
+
countryIso2 = undefined;
|
|
83
|
+
if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 10];
|
|
84
|
+
if (isInternally)
|
|
85
|
+
data.step_name = ENTITY_STEP_NAMES.ENTITY_INFO;
|
|
86
|
+
if (data === null || data === void 0 ? void 0 : data.country_code) {
|
|
87
|
+
countryIso2 = data === null || data === void 0 ? void 0 : data.country_code;
|
|
88
|
+
if (countryIso2)
|
|
89
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
90
|
+
}
|
|
91
|
+
if (!(data.step_name !== ENTITY_STEP_NAMES.PHONE_AUTH)) return [3, 10];
|
|
92
|
+
_b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id;
|
|
93
|
+
if (!board_id) return [3, 6];
|
|
94
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
95
|
+
case 2:
|
|
96
|
+
boardData = _j.sent();
|
|
97
|
+
if (!board_info_id) return [3, 4];
|
|
98
|
+
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
99
|
+
case 3:
|
|
100
|
+
boardInfoData = _j.sent();
|
|
101
|
+
_j.label = 4;
|
|
102
|
+
case 4:
|
|
103
|
+
_c = ((_e = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _e === void 0 ? void 0 : _e.recipient) || {}, id_1 = _c.id, type_1 = _c.type;
|
|
104
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_1, type_1); };
|
|
105
|
+
return [4, retrieveIndividualData(type_1, boardData, serviceCallBack)];
|
|
106
|
+
case 5:
|
|
107
|
+
_d = _j.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
108
|
+
boardData = boardRes;
|
|
109
|
+
individualData = individualRes;
|
|
110
|
+
_j.label = 6;
|
|
111
|
+
case 6:
|
|
112
|
+
entityId = (_f = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _f === void 0 ? void 0 : _f.id;
|
|
113
|
+
if (!entityId) return [3, 8];
|
|
114
|
+
return [4, API.entityService.retrieveEntity(entityId)];
|
|
115
|
+
case 7:
|
|
116
|
+
entityData = _j.sent();
|
|
117
|
+
_j.label = 8;
|
|
118
|
+
case 8:
|
|
119
|
+
if (!countryIso2) {
|
|
120
|
+
countryIso2 = entityData.country;
|
|
121
|
+
if (countryIso2)
|
|
122
|
+
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
123
|
+
}
|
|
124
|
+
return [4, API.entityService.retrieveEntityType()];
|
|
125
|
+
case 9:
|
|
126
|
+
entityTypes = _j.sent();
|
|
127
|
+
thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP'));
|
|
128
|
+
_j.label = 10;
|
|
129
|
+
case 10: return [2, {
|
|
130
|
+
data: data,
|
|
131
|
+
individualData: individualData,
|
|
132
|
+
boardResponse: {
|
|
133
|
+
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
134
|
+
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
135
|
+
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
136
|
+
entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
|
|
137
|
+
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
138
|
+
name: (_g = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _g === void 0 ? void 0 : _g.names,
|
|
139
|
+
contact: (_h = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _h === void 0 ? void 0 : _h.contact,
|
|
140
|
+
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
141
|
+
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
142
|
+
entityTypes: entityTypes,
|
|
143
|
+
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
144
|
+
},
|
|
145
|
+
token: token
|
|
146
|
+
}];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
120
149
|
});
|
|
121
|
-
});
|
|
150
|
+
});
|
|
122
151
|
export var resendOTP = createAsyncThunk('entityResendOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
123
152
|
var entity, payload, data;
|
|
124
153
|
return __generator(this, function (_a) {
|
|
@@ -137,73 +166,94 @@ export var resendOTP = createAsyncThunk('entityResendOTP', function (params, thu
|
|
|
137
166
|
});
|
|
138
167
|
}); });
|
|
139
168
|
export var verifyEntityLeadOTP = createAsyncThunk('verifyEntityLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
-
var _a, entity, settings, responseBody, payload, data, boardData, entityData, boardInfoData, board_id, board_info_id,
|
|
141
|
-
var
|
|
142
|
-
return __generator(this, function (
|
|
143
|
-
switch (
|
|
169
|
+
var _a, entity, settings, responseBody, payload, data, boardData, entityData, entityTypes, boardInfoData, individualData, _b, board_id, board_info_id, _c, id_2, type_2, serviceCallBack, _d, boardRes, individualRes, entityId;
|
|
170
|
+
var _e, _f, _g, _h, _j, _k, _l;
|
|
171
|
+
return __generator(this, function (_m) {
|
|
172
|
+
switch (_m.label) {
|
|
144
173
|
case 0:
|
|
145
174
|
_a = thunkApi.getState(), entity = _a.entity, settings = _a.settings;
|
|
146
175
|
responseBody = entity.data.verify.responseBody;
|
|
147
176
|
payload = {
|
|
148
177
|
data: params.otp,
|
|
149
|
-
service_name: (
|
|
178
|
+
service_name: (_e = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _e === void 0 ? void 0 : _e.service_name,
|
|
150
179
|
verify_token: responseBody === null || responseBody === void 0 ? void 0 : responseBody.verify_token,
|
|
151
180
|
step_name: ENTITY_STEP_NAMES.PHONE_AUTH,
|
|
152
181
|
encryption_contract: ['data']
|
|
153
182
|
};
|
|
154
183
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
155
184
|
case 1:
|
|
156
|
-
data = (
|
|
157
|
-
|
|
158
|
-
if (!!data.errors) return [3,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
185
|
+
data = (_m.sent()).data;
|
|
186
|
+
individualData = undefined;
|
|
187
|
+
if (!!data.errors) return [3, 10];
|
|
188
|
+
_b = data || {}, board_id = _b.id, board_info_id = _b.board_info_id;
|
|
189
|
+
if (!board_id) return [3, 6];
|
|
190
|
+
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
163
191
|
case 2:
|
|
164
|
-
|
|
165
|
-
|
|
192
|
+
boardData = _m.sent();
|
|
193
|
+
if (!board_info_id) return [3, 4];
|
|
194
|
+
return [4, API.boardService.retrieveBoardInfo({ id: board_id, infoId: board_info_id })];
|
|
166
195
|
case 3:
|
|
167
|
-
|
|
168
|
-
|
|
196
|
+
boardInfoData = _m.sent();
|
|
197
|
+
_m.label = 4;
|
|
169
198
|
case 4:
|
|
170
|
-
|
|
171
|
-
|
|
199
|
+
_c = ((_f = boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification) === null || _f === void 0 ? void 0 : _f.recipient) || {}, id_2 = _c.id, type_2 = _c.type;
|
|
200
|
+
serviceCallBack = function () { return API.individualService.retrieveIndividual(id_2, type_2); };
|
|
201
|
+
return [4, retrieveIndividualData(type_2, boardData, serviceCallBack)];
|
|
172
202
|
case 5:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
203
|
+
_d = _m.sent(), boardRes = _d.boardRes, individualRes = _d.individualRes;
|
|
204
|
+
boardData = boardRes;
|
|
205
|
+
individualData = individualRes;
|
|
206
|
+
_m.label = 6;
|
|
176
207
|
case 6:
|
|
177
|
-
|
|
178
|
-
|
|
208
|
+
entityId = (_g = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _g === void 0 ? void 0 : _g.id;
|
|
209
|
+
if (!entityId) return [3, 8];
|
|
210
|
+
return [4, API.entityService.retrieveEntity(entityId)];
|
|
179
211
|
case 7:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
case 8: return [2, {
|
|
212
|
+
entityData = _m.sent();
|
|
213
|
+
_m.label = 8;
|
|
214
|
+
case 8:
|
|
215
|
+
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, { otp: params.otp });
|
|
216
|
+
return [4, API.entityService.retrieveEntityType()];
|
|
217
|
+
case 9:
|
|
218
|
+
entityTypes = _m.sent();
|
|
219
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('ENTITY_NAME_STEP')); });
|
|
220
|
+
_m.label = 10;
|
|
221
|
+
case 10: return [2, {
|
|
191
222
|
data: data,
|
|
223
|
+
individualData: individualData,
|
|
192
224
|
boardResponse: {
|
|
193
225
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
194
226
|
brand: boardData === null || boardData === void 0 ? void 0 : boardData.brand,
|
|
195
227
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
196
228
|
entity: entityData === null || entityData === void 0 ? void 0 : entityData.entity,
|
|
197
229
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
198
|
-
name: (
|
|
199
|
-
contact: (
|
|
200
|
-
|
|
230
|
+
name: (_k = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _k === void 0 ? void 0 : _k.names,
|
|
231
|
+
contact: (_l = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _l === void 0 ? void 0 : _l.contact,
|
|
232
|
+
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals,
|
|
233
|
+
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
234
|
+
entityTypes: entityTypes,
|
|
235
|
+
notification: boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.notification
|
|
201
236
|
},
|
|
202
237
|
formData: params
|
|
203
238
|
}];
|
|
204
239
|
}
|
|
205
240
|
});
|
|
206
241
|
}); });
|
|
242
|
+
export var retrieveBoardStatus = createAsyncThunk('entity/retrieveBoardStatus', function (parmas, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
|
+
var entity, board_id, data;
|
|
244
|
+
return __generator(this, function (_a) {
|
|
245
|
+
switch (_a.label) {
|
|
246
|
+
case 0:
|
|
247
|
+
entity = thunkApi.getState().entity;
|
|
248
|
+
board_id = (entity.data.verify.responseBody || {}).board_id;
|
|
249
|
+
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
250
|
+
case 1:
|
|
251
|
+
data = _a.sent();
|
|
252
|
+
thunkApi.dispatch(handlePrevScreenStep());
|
|
253
|
+
return [2, { flows: (data === null || data === void 0 ? void 0 : data.info) || [] }];
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}); });
|
|
207
257
|
export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', function (boardId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
208
258
|
var data;
|
|
209
259
|
var _a, _b;
|
|
@@ -213,87 +263,158 @@ export var retrieveBoardDetails = createAsyncThunk('entityRetrieveEntityInfo', f
|
|
|
213
263
|
case 1:
|
|
214
264
|
data = _c.sent();
|
|
215
265
|
return [2, {
|
|
216
|
-
data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.names, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact })
|
|
266
|
+
data: __assign(__assign({}, data), { user: data === null || data === void 0 ? void 0 : data.user, brand: data === null || data === void 0 ? void 0 : data.brand, bank_account: data === null || data === void 0 ? void 0 : data.bank_account, entity: data === null || data === void 0 ? void 0 : data.entity, merchant: data === null || data === void 0 ? void 0 : data.merchant, name: (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.names, contact: (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.contact, individuals: data === null || data === void 0 ? void 0 : data.individuals })
|
|
217
267
|
}];
|
|
218
268
|
}
|
|
219
269
|
});
|
|
220
270
|
}); });
|
|
221
|
-
export var
|
|
222
|
-
var
|
|
223
|
-
var _b, _c, _d, _e, _f, _g, _h;
|
|
224
|
-
return __generator(this, function (_j) {
|
|
225
|
-
switch (_j.label) {
|
|
226
|
-
case 0:
|
|
227
|
-
_a = thunkApi.getState(), settings = _a.settings, entity = _a.entity;
|
|
228
|
-
id = (_c = (_b = entity.data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.entity) === null || _c === void 0 ? void 0 : _c.id;
|
|
229
|
-
brandId = (_e = (_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.brand) === null || _e === void 0 ? void 0 : _e.id;
|
|
230
|
-
articleId = entity.data.entityData.articleId;
|
|
231
|
-
requestBody = {
|
|
232
|
-
id: brandId,
|
|
233
|
-
activities: (_f = (params.activities || [])) === null || _f === void 0 ? void 0 : _f.map(function (_a) {
|
|
234
|
-
var id = _a.id;
|
|
235
|
-
return ({ id: id });
|
|
236
|
-
}),
|
|
237
|
-
operations: {
|
|
238
|
-
start_date: params.operationStartDate
|
|
239
|
-
},
|
|
240
|
-
encryption_contract: ['operations.start_date']
|
|
241
|
-
};
|
|
242
|
-
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
243
|
-
case 1:
|
|
244
|
-
brandData = (_j.sent()).data;
|
|
245
|
-
payload = {
|
|
246
|
-
id: id,
|
|
247
|
-
license: {
|
|
248
|
-
number: params.licenseNumber
|
|
249
|
-
},
|
|
250
|
-
legal_name: {
|
|
251
|
-
ar: params.licenseName,
|
|
252
|
-
en: params.licenseName
|
|
253
|
-
},
|
|
254
|
-
AOA_file_id: articleId,
|
|
255
|
-
encryption_contract: ['license.number', 'legal_name.ar', 'legal_name.en']
|
|
256
|
-
};
|
|
257
|
-
return [4, API.entityService.updateEntity(payload)];
|
|
258
|
-
case 2:
|
|
259
|
-
data = _j.sent();
|
|
260
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
261
|
-
(_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, id);
|
|
262
|
-
return [2, { data: __assign(__assign({}, data), brandData), formData: params }];
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
}); });
|
|
266
|
-
export var uploadArticle = createAsyncThunk('entityUploadArticle', function (_a) {
|
|
267
|
-
var file = _a.file, onProgress = _a.onProgress;
|
|
271
|
+
export var updateEntityName = createAsyncThunk('entityUpdateEntityName', function (_a, thunkApi) {
|
|
272
|
+
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
268
273
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
-
var
|
|
270
|
-
var
|
|
271
|
-
return __generator(this, function (
|
|
272
|
-
switch (
|
|
274
|
+
var _b, settings, entity, _c, id, data_status, data_verification, documents, issuingDate, expiryDate, licenseType, licenseNumber, articleId, unifiedNumber, legalName, certificateId, entityType, issueDate, expDate, isFL, isLegalNameENNonEditable, isLegalNameARNonEditable, isLicenseTypeNonEditable, isEntityTypeNonEditable, isLicenseNumberNonEditable, isUnifiedNumberNonEditable, isIssuingDateNonEditable, isExpiryDateNonEditable, isDocumentsNonEditable, isAOAFileNonEditable, isEntityTypeVerified, isLicenseNonEditable, isLicenseAvailable, payload, data, documentResponse, document, documentBody, documentBody, list;
|
|
275
|
+
var _d, _e, _f;
|
|
276
|
+
return __generator(this, function (_g) {
|
|
277
|
+
switch (_g.label) {
|
|
273
278
|
case 0:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
_b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
|
|
280
|
+
_c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status, data_verification = _c.data_verification, documents = _c.documents;
|
|
281
|
+
issuingDate = formData.issuingDate, expiryDate = formData.expiryDate, licenseType = formData.licenseType, licenseNumber = formData.licenseNumber, articleId = formData.articleId, unifiedNumber = formData.unifiedNumber, legalName = formData.legalName, certificateId = formData.certificateId, entityType = formData.entityType;
|
|
282
|
+
issueDate = issuingDate && new Date(issuingDate).getTime();
|
|
283
|
+
expDate = expiryDate && new Date(expiryDate).getTime();
|
|
284
|
+
isFL = licenseType === BusinessType.FL;
|
|
285
|
+
isLegalNameENNonEditable = hasNoneEditableValue(data_status, 'legal_name.en');
|
|
286
|
+
isLegalNameARNonEditable = hasNoneEditableValue(data_status, 'legal_name.ar');
|
|
287
|
+
isLicenseTypeNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.license, 'type');
|
|
288
|
+
isEntityTypeNonEditable = hasNoneEditableValue(data_status, 'type');
|
|
289
|
+
isLicenseNumberNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.license, 'number');
|
|
290
|
+
isUnifiedNumberNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.license, 'additional_info');
|
|
291
|
+
isIssuingDateNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.license, 'issuing_date');
|
|
292
|
+
isExpiryDateNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.license, 'expiry_date');
|
|
293
|
+
isDocumentsNonEditable = hasNoneEditableValue(data_status, 'documents');
|
|
294
|
+
isAOAFileNonEditable = hasNoneEditableValue(data_status, 'AOA_file_id');
|
|
295
|
+
isEntityTypeVerified = hasVerifiedValue(data_verification, 'type');
|
|
296
|
+
isLicenseNonEditable = isLicenseNumberNonEditable && isLicenseTypeNonEditable && isIssuingDateNonEditable && isExpiryDateNonEditable && isUnifiedNumberNonEditable;
|
|
297
|
+
isLicenseAvailable = licenseNumber || licenseType || issueDate || expDate || unifiedNumber;
|
|
298
|
+
payload = __assign(__assign(__assign(__assign({ id: id, AOA_file_id: isAOAFileNonEditable ? undefined : articleId }, (!isLicenseNonEditable &&
|
|
299
|
+
isLicenseAvailable && {
|
|
300
|
+
license: __assign({ number: isLicenseNumberNonEditable || !licenseNumber ? undefined : licenseNumber, type: isLicenseTypeNonEditable || !licenseType ? undefined : isFL ? LicenseType.FL : LicenseType.CR, issuing_date: isIssuingDateNonEditable || !issueDate ? undefined : issueDate === null || issueDate === void 0 ? void 0 : issueDate.toString(), expiry_date: isExpiryDateNonEditable || !expDate ? undefined : expDate === null || expDate === void 0 ? void 0 : expDate.toString() }, (!(isUnifiedNumberNonEditable || !unifiedNumber) && {
|
|
301
|
+
additional_info: {
|
|
302
|
+
unified_number: unifiedNumber
|
|
303
|
+
}
|
|
304
|
+
}))
|
|
305
|
+
})), (!(isEntityTypeVerified || isEntityTypeNonEditable) && { type: entityType })), (!((isLegalNameENNonEditable && isLegalNameARNonEditable) || !legalName) && {
|
|
306
|
+
legal_name: {
|
|
307
|
+
en: isLegalNameENNonEditable ? undefined : legalName,
|
|
308
|
+
ar: isLegalNameARNonEditable ? undefined : legalName
|
|
309
|
+
}
|
|
310
|
+
})), { encryption_contract: [
|
|
311
|
+
'license.number',
|
|
312
|
+
'legal_name.ar',
|
|
313
|
+
'legal_name.en',
|
|
314
|
+
'license.type',
|
|
315
|
+
'license.issuing_date',
|
|
316
|
+
'license.expiry_date',
|
|
317
|
+
'license.additional_info.unified_number',
|
|
318
|
+
'type'
|
|
319
|
+
] });
|
|
320
|
+
return [4, API.entityService.updateEntity(payload)];
|
|
321
|
+
case 1:
|
|
322
|
+
data = _g.sent();
|
|
323
|
+
documentResponse = undefined;
|
|
324
|
+
document = getRecentDocumentBasedOnPurpose(documents, DocumentPurpose.CR);
|
|
325
|
+
if (!(!isDocumentsNonEditable && (certificateId || []).length > 0)) return [3, 7];
|
|
326
|
+
if (!(document === null || document === void 0 ? void 0 : document.id)) return [3, 3];
|
|
327
|
+
documentBody = {
|
|
328
|
+
id: document.id,
|
|
329
|
+
images: certificateId
|
|
282
330
|
};
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
331
|
+
return [4, API.documentService.addFilesToExistingDocument(documentBody)];
|
|
332
|
+
case 2:
|
|
333
|
+
documentResponse = _g.sent();
|
|
334
|
+
return [3, 5];
|
|
335
|
+
case 3:
|
|
336
|
+
documentBody = {
|
|
337
|
+
entity_id: id || '',
|
|
338
|
+
documents: [
|
|
339
|
+
{
|
|
340
|
+
type: DocumentPurpose.CR,
|
|
341
|
+
images: certificateId
|
|
342
|
+
}
|
|
343
|
+
]
|
|
286
344
|
};
|
|
287
|
-
return [4, API.
|
|
345
|
+
return [4, API.documentService.updateDocumentInfo(documentBody)];
|
|
346
|
+
case 4:
|
|
347
|
+
documentResponse = _g.sent();
|
|
348
|
+
_g.label = 5;
|
|
349
|
+
case 5: return [4, API.entityService.retrieveEntity(id)];
|
|
350
|
+
case 6:
|
|
351
|
+
data = _g.sent();
|
|
352
|
+
data.documentData = documentResponse;
|
|
353
|
+
_g.label = 7;
|
|
354
|
+
case 7: return [4, API.dataService.getActivitiesIsIc()];
|
|
355
|
+
case 8:
|
|
356
|
+
list = (_g.sent()).list;
|
|
357
|
+
data.activityList = list;
|
|
358
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
359
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
360
|
+
return [2, { data: data, formData: originalFormData }];
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
export var updateEntityCapital = createAsyncThunk('entityUpdateEntityCapital', function (_a, thunkApi) {
|
|
366
|
+
var formData = _a.formData, originalFormData = _a.originalFormData;
|
|
367
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
368
|
+
var _b, settings, entity, _c, id, data_status, entityActivities, isCapitalPaidNonEditable, isCapitalShareCountNonEditable, isCapitalShareValueNonEditable, isActivitiesNonEditable, capitalShareCount, capitalShareValue, activities, capitalPaid, hasCapitalShares, isCapitalNonEditable, removedActivities, payload_1, activityIds, payload, data;
|
|
369
|
+
var _d, _e, _f;
|
|
370
|
+
return __generator(this, function (_g) {
|
|
371
|
+
switch (_g.label) {
|
|
372
|
+
case 0:
|
|
373
|
+
_b = thunkApi.getState(), settings = _b.settings, entity = _b.entity;
|
|
374
|
+
_c = ((_d = entity.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}, id = _c.id, data_status = _c.data_status, entityActivities = _c.activities;
|
|
375
|
+
isCapitalPaidNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'paid');
|
|
376
|
+
isCapitalShareCountNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.count');
|
|
377
|
+
isCapitalShareValueNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.capital, 'shares.value');
|
|
378
|
+
isActivitiesNonEditable = hasNoneEditableValue(data_status, 'activities');
|
|
379
|
+
capitalShareCount = formData.capitalShareCount, capitalShareValue = formData.capitalShareValue, activities = formData.activities, capitalPaid = formData.capitalPaid;
|
|
380
|
+
hasCapitalShares = capitalShareCount || capitalShareValue;
|
|
381
|
+
isCapitalNonEditable = (isCapitalPaidNonEditable && isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || (!capitalPaid && !hasCapitalShares);
|
|
382
|
+
removedActivities = (activities === null || activities === void 0 ? void 0 : activities.length) > 0 &&
|
|
383
|
+
(entityActivities || []).filter(function (entityActivity) { return !(activities || []).some(function (activity) { return activity.id === entityActivity.id; }); });
|
|
384
|
+
if (!(!isActivitiesNonEditable && (removedActivities === null || removedActivities === void 0 ? void 0 : removedActivities.length) > 0)) return [3, 2];
|
|
385
|
+
payload_1 = {
|
|
386
|
+
id: id,
|
|
387
|
+
activities: removedActivities
|
|
388
|
+
};
|
|
389
|
+
return [4, API.entityService.removeEntityActivities(payload_1)];
|
|
288
390
|
case 1:
|
|
289
|
-
|
|
290
|
-
|
|
391
|
+
_g.sent();
|
|
392
|
+
_g.label = 2;
|
|
393
|
+
case 2:
|
|
394
|
+
activityIds = (activities || []).map(function (_a) {
|
|
395
|
+
var id = _a.id;
|
|
396
|
+
return ({ id: id, action: 'add' });
|
|
397
|
+
});
|
|
398
|
+
payload = __assign({ id: id, activities: isActivitiesNonEditable || (activityIds === null || activityIds === void 0 ? void 0 : activityIds.length) === 0 ? undefined : activityIds }, (!isCapitalNonEditable && {
|
|
399
|
+
capital: __assign({ paid: isCapitalPaidNonEditable ? undefined : removeAllCharsFromNumber(capitalPaid) }, (!((isCapitalShareCountNonEditable && isCapitalShareValueNonEditable) || !hasCapitalShares) && {
|
|
400
|
+
shares: {
|
|
401
|
+
count: isCapitalShareCountNonEditable ? undefined : capitalShareCount,
|
|
402
|
+
value: isCapitalShareValueNonEditable ? undefined : removeAllCharsFromNumber(capitalShareValue)
|
|
403
|
+
}
|
|
404
|
+
}))
|
|
405
|
+
}));
|
|
406
|
+
return [4, API.entityService.updateEntity(payload)];
|
|
407
|
+
case 3:
|
|
408
|
+
data = _g.sent();
|
|
409
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
410
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
411
|
+
return [2, { data: data, formData: originalFormData }];
|
|
291
412
|
}
|
|
292
413
|
});
|
|
293
414
|
});
|
|
294
415
|
});
|
|
295
416
|
export var updateBoardSuccess = createAsyncThunk('updateBoardEntitySuccess', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
296
|
-
var _a, settings, entity, _b, id, infoId, payload, data;
|
|
417
|
+
var _a, settings, entity, _b, id, infoId, payload, data, boardInfoData;
|
|
297
418
|
var _c, _d, _e, _f;
|
|
298
419
|
return __generator(this, function (_g) {
|
|
299
420
|
switch (_g.label) {
|
|
@@ -310,13 +431,16 @@ export var updateBoardSuccess = createAsyncThunk('updateBoardEntitySuccess', fun
|
|
|
310
431
|
return [4, API.boardService.updateBoardInfo(__assign({ id: id, infoId: infoId }, payload))];
|
|
311
432
|
case 1:
|
|
312
433
|
data = _g.sent();
|
|
313
|
-
return [4,
|
|
434
|
+
return [4, API.boardService.retrieveBoardInfoStatus(id)];
|
|
314
435
|
case 2:
|
|
436
|
+
boardInfoData = _g.sent();
|
|
437
|
+
return [4, thunkApi.dispatch(retrieveBoardDetails(id))];
|
|
438
|
+
case 3:
|
|
315
439
|
_g.sent();
|
|
316
|
-
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name,
|
|
440
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, {});
|
|
317
441
|
(_f = (_e = settings.data.appConfig).onFlowCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, { data: data });
|
|
318
442
|
thunkApi.dispatch(handleNextScreenStep());
|
|
319
|
-
return [2, { response: __assign(__assign({}, data), { flows:
|
|
443
|
+
return [2, { response: __assign(__assign({}, data), { flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || [] }), formData: params }];
|
|
320
444
|
}
|
|
321
445
|
});
|
|
322
446
|
}); });
|
|
@@ -325,6 +449,7 @@ var initialState = {
|
|
|
325
449
|
loading: false,
|
|
326
450
|
customLoading: false,
|
|
327
451
|
uploading: false,
|
|
452
|
+
uploadingArticle: false,
|
|
328
453
|
data: {
|
|
329
454
|
flowName: FlowsTypes.ENTITY,
|
|
330
455
|
verify: {
|
|
@@ -333,12 +458,20 @@ var initialState = {
|
|
|
333
458
|
otpData: {
|
|
334
459
|
otp: ''
|
|
335
460
|
},
|
|
336
|
-
|
|
337
|
-
|
|
461
|
+
entityNameData: {
|
|
462
|
+
legalName: '',
|
|
338
463
|
licenseNumber: '',
|
|
464
|
+
licenseType: '',
|
|
465
|
+
entityType: '',
|
|
466
|
+
issuingDate: '',
|
|
467
|
+
expiryDate: '',
|
|
468
|
+
unifiedNumber: ''
|
|
469
|
+
},
|
|
470
|
+
entityCapitalData: {
|
|
339
471
|
activities: [],
|
|
340
|
-
|
|
341
|
-
|
|
472
|
+
capitalPaid: '',
|
|
473
|
+
capitalShareCount: '',
|
|
474
|
+
capitalShareValue: ''
|
|
342
475
|
}
|
|
343
476
|
}
|
|
344
477
|
};
|
|
@@ -354,6 +487,16 @@ export var entitySlice = createSlice({
|
|
|
354
487
|
},
|
|
355
488
|
resetOTPScreen: function (state) {
|
|
356
489
|
state.data.otpData.otp = '';
|
|
490
|
+
},
|
|
491
|
+
uploadingStatus: function (state, action) {
|
|
492
|
+
state.uploading = action.payload;
|
|
493
|
+
},
|
|
494
|
+
uploadingArticleStatus: function (state, action) {
|
|
495
|
+
state.uploadingArticle = action.payload;
|
|
496
|
+
},
|
|
497
|
+
clearAOAFile: function (state) {
|
|
498
|
+
var entity = (state.data.verify.responseBody || {}).entity;
|
|
499
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { entity: __assign(__assign({}, entity), { AOA_file: undefined, AOA_file_id: undefined }) });
|
|
357
500
|
}
|
|
358
501
|
},
|
|
359
502
|
extraReducers: function (builder) {
|
|
@@ -366,34 +509,57 @@ export var entitySlice = createSlice({
|
|
|
366
509
|
var _a, _b, _c, _d;
|
|
367
510
|
state.error = null;
|
|
368
511
|
state.customLoading = false;
|
|
369
|
-
var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse;
|
|
512
|
+
var _e = action.payload, data = _e.data, token = _e.token, boardResponse = _e.boardResponse, individualData = _e.individualData;
|
|
370
513
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
371
514
|
if (description) {
|
|
372
515
|
state.error = description;
|
|
373
516
|
return;
|
|
374
517
|
}
|
|
375
|
-
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id });
|
|
518
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id, individualData: individualData });
|
|
376
519
|
state.data.verify.token = token;
|
|
377
|
-
var _f = boardResponse || {},
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
var
|
|
384
|
-
var
|
|
385
|
-
|
|
520
|
+
var _f = boardResponse || {}, entity = _f.entity, entityTypes = _f.entityTypes;
|
|
521
|
+
if (entity) {
|
|
522
|
+
var _g = entity || {}, license = _g.license, type = _g.type, capital = _g.capital, activities = _g.activities, legal_name = _g.legal_name;
|
|
523
|
+
var legalName = legal_name;
|
|
524
|
+
var licenseNumber = license === null || license === void 0 ? void 0 : license.number;
|
|
525
|
+
var unifiedNumber = (_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number;
|
|
526
|
+
var licenseType = (license === null || license === void 0 ? void 0 : license.type) === 'freelance' ? BusinessType.FL : BusinessType.CR;
|
|
527
|
+
var entityType = type || (entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes[0]);
|
|
528
|
+
var _h = capital || {}, paid = _h.paid, shares = _h.shares;
|
|
529
|
+
var entityIssueDate = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.issuing_date;
|
|
530
|
+
var entityExpiredDate = (_d = entity === null || entity === void 0 ? void 0 : entity.license) === null || _d === void 0 ? void 0 : _d.expiry_date;
|
|
531
|
+
var issuingDate = void 0, expiryDate = undefined;
|
|
532
|
+
if (entityIssueDate) {
|
|
533
|
+
var date = new Date(entityIssueDate);
|
|
534
|
+
var formattedDate = moment(date).format('YYYY-MM-DD');
|
|
535
|
+
issuingDate = convertNumbers2English(formattedDate);
|
|
536
|
+
}
|
|
537
|
+
if (entityExpiredDate) {
|
|
538
|
+
var date = new Date(entityExpiredDate);
|
|
539
|
+
var formattedDate = moment(date).format('YYYY-MM-DD');
|
|
540
|
+
expiryDate = convertNumbers2English(formattedDate);
|
|
541
|
+
}
|
|
542
|
+
if ((legalName === null || legalName === void 0 ? void 0 : legalName.en) || (legalName === null || legalName === void 0 ? void 0 : legalName.ar))
|
|
543
|
+
state.data.entityNameData.legalName = (legalName === null || legalName === void 0 ? void 0 : legalName.en) || (legalName === null || legalName === void 0 ? void 0 : legalName.ar);
|
|
544
|
+
if (licenseNumber)
|
|
545
|
+
state.data.entityNameData.licenseNumber = licenseNumber;
|
|
546
|
+
if (unifiedNumber)
|
|
547
|
+
state.data.entityNameData.unifiedNumber = unifiedNumber;
|
|
548
|
+
state.data.entityNameData.licenseType = licenseType;
|
|
549
|
+
if (entityType)
|
|
550
|
+
state.data.entityNameData.entityType = entityType;
|
|
551
|
+
state.data.entityNameData.issuingDate = issuingDate || moment(new Date()).format('YYYY-MM-DD');
|
|
552
|
+
state.data.entityNameData.expiryDate = expiryDate || moment(new Date()).format('YYYY-MM-DD');
|
|
553
|
+
if ((activities === null || activities === void 0 ? void 0 : activities.length) > 0)
|
|
554
|
+
state.data.entityCapitalData.activities = activities;
|
|
555
|
+
if (paid)
|
|
556
|
+
state.data.entityCapitalData.capitalPaid = formatNumberAsCurrency(paid);
|
|
557
|
+
if (shares === null || shares === void 0 ? void 0 : shares.count)
|
|
558
|
+
state.data.entityCapitalData.capitalShareCount = shares === null || shares === void 0 ? void 0 : shares.count;
|
|
559
|
+
if (shares === null || shares === void 0 ? void 0 : shares.value)
|
|
560
|
+
state.data.entityCapitalData.capitalShareValue = formatNumberAsCurrency(shares === null || shares === void 0 ? void 0 : shares.value);
|
|
561
|
+
state.data.entityNameData.responseBody = __assign(__assign({}, state.data.entityNameData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id });
|
|
386
562
|
}
|
|
387
|
-
if (licenseNumber)
|
|
388
|
-
state.data.entityData.licenseNumber = licenseNumber;
|
|
389
|
-
var activities = (entity === null || entity === void 0 ? void 0 : entity.activities) || [];
|
|
390
|
-
var selectedActivity = activities === null || activities === void 0 ? void 0 : activities.filter(function (activity) {
|
|
391
|
-
var _a;
|
|
392
|
-
return (_a = brand === null || brand === void 0 ? void 0 : brand.activities) === null || _a === void 0 ? void 0 : _a.find(function (value) { return value.id === activity.id; });
|
|
393
|
-
});
|
|
394
|
-
var defaultActivities = (activities === null || activities === void 0 ? void 0 : activities.length) ? [activities[0]] : [];
|
|
395
|
-
state.data.entityData.activities = (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : defaultActivities;
|
|
396
|
-
state.data.entityData.responseBody = __assign(__assign({}, state.data.entityData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id, activities: activities, operationStartDate: startDate || issuingDate, selectedActivities: (selectedActivity === null || selectedActivity === void 0 ? void 0 : selectedActivity.length) > 0 ? selectedActivity : defaultActivities });
|
|
397
563
|
})
|
|
398
564
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
399
565
|
state.error = action.error.message;
|
|
@@ -424,7 +590,7 @@ export var entitySlice = createSlice({
|
|
|
424
590
|
var _a, _b, _c, _d;
|
|
425
591
|
state.loading = false;
|
|
426
592
|
state.error = null;
|
|
427
|
-
var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData;
|
|
593
|
+
var _e = action.payload, data = _e.data, boardResponse = _e.boardResponse, formData = _e.formData, individualData = _e.individualData;
|
|
428
594
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
429
595
|
if (description) {
|
|
430
596
|
state.error = description;
|
|
@@ -432,49 +598,84 @@ export var entitySlice = createSlice({
|
|
|
432
598
|
}
|
|
433
599
|
state.data.otpData = formData;
|
|
434
600
|
state.data.otpData.responseBody = data;
|
|
435
|
-
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), boardResponse);
|
|
436
|
-
var _f = boardResponse || {},
|
|
437
|
-
var
|
|
438
|
-
var
|
|
439
|
-
var
|
|
440
|
-
var
|
|
441
|
-
|
|
442
|
-
|
|
601
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { individualData: individualData });
|
|
602
|
+
var _f = boardResponse || {}, entity = _f.entity, entityTypes = _f.entityTypes;
|
|
603
|
+
var _g = entity || {}, license = _g.license, type = _g.type, capital = _g.capital, activities = _g.activities, legal_name = _g.legal_name;
|
|
604
|
+
var legalName = legal_name;
|
|
605
|
+
var licenseNumber = license === null || license === void 0 ? void 0 : license.number;
|
|
606
|
+
var unifiedNumber = (_b = license === null || license === void 0 ? void 0 : license.additional_info) === null || _b === void 0 ? void 0 : _b.unified_number;
|
|
607
|
+
var licenseType = (license === null || license === void 0 ? void 0 : license.type) === 'freelance' ? BusinessType.FL : BusinessType.CR;
|
|
608
|
+
var entityType = type || (entityTypes === null || entityTypes === void 0 ? void 0 : entityTypes[0]);
|
|
609
|
+
var _h = capital || {}, paid = _h.paid, shares = _h.shares;
|
|
610
|
+
var entityIssueDate = (_c = entity === null || entity === void 0 ? void 0 : entity.license) === null || _c === void 0 ? void 0 : _c.issuing_date;
|
|
611
|
+
var entityExpiredDate = (_d = entity === null || entity === void 0 ? void 0 : entity.license) === null || _d === void 0 ? void 0 : _d.expiry_date;
|
|
612
|
+
var issuingDate, expiryDate = undefined;
|
|
613
|
+
if (entityIssueDate) {
|
|
614
|
+
var date = new Date(entityIssueDate);
|
|
443
615
|
var formattedDate = moment(date).format('YYYY-MM-DD');
|
|
444
616
|
issuingDate = convertNumbers2English(formattedDate);
|
|
445
617
|
}
|
|
618
|
+
if (entityExpiredDate) {
|
|
619
|
+
var date = new Date(entityExpiredDate);
|
|
620
|
+
var formattedDate = moment(date).format('YYYY-MM-DD');
|
|
621
|
+
expiryDate = convertNumbers2English(formattedDate);
|
|
622
|
+
}
|
|
623
|
+
if ((legalName === null || legalName === void 0 ? void 0 : legalName.en) || (legalName === null || legalName === void 0 ? void 0 : legalName.ar))
|
|
624
|
+
state.data.entityNameData.legalName = (legalName === null || legalName === void 0 ? void 0 : legalName.en) || (legalName === null || legalName === void 0 ? void 0 : legalName.ar);
|
|
446
625
|
if (licenseNumber)
|
|
447
|
-
state.data.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
state.data.
|
|
626
|
+
state.data.entityNameData.licenseNumber = licenseNumber;
|
|
627
|
+
if (unifiedNumber)
|
|
628
|
+
state.data.entityNameData.unifiedNumber = unifiedNumber;
|
|
629
|
+
state.data.entityNameData.licenseType = licenseType;
|
|
630
|
+
if (entityType)
|
|
631
|
+
state.data.entityNameData.entityType = entityType;
|
|
632
|
+
state.data.entityNameData.issuingDate = issuingDate || moment(new Date()).format('YYYY-MM-DD');
|
|
633
|
+
state.data.entityNameData.expiryDate = expiryDate || moment(new Date()).format('YYYY-MM-DD');
|
|
634
|
+
if ((activities === null || activities === void 0 ? void 0 : activities.length) > 0)
|
|
635
|
+
state.data.entityCapitalData.activities = activities;
|
|
636
|
+
if (paid)
|
|
637
|
+
state.data.entityCapitalData.capitalPaid = formatNumberAsCurrency(paid);
|
|
638
|
+
if (shares === null || shares === void 0 ? void 0 : shares.count)
|
|
639
|
+
state.data.entityCapitalData.capitalShareCount = shares === null || shares === void 0 ? void 0 : shares.count;
|
|
640
|
+
if (shares === null || shares === void 0 ? void 0 : shares.value)
|
|
641
|
+
state.data.entityCapitalData.capitalShareValue = formatNumberAsCurrency(shares === null || shares === void 0 ? void 0 : shares.value);
|
|
642
|
+
state.data.entityNameData = __assign(__assign({}, state.data.entityNameData), { responseBody: __assign(__assign({}, state.data.entityNameData.responseBody), { entity_id: entity === null || entity === void 0 ? void 0 : entity.id }) });
|
|
455
643
|
})
|
|
456
644
|
.addCase(verifyEntityLeadOTP.rejected, function (state, action) {
|
|
457
645
|
state.loading = false;
|
|
458
646
|
state.error = action.error.message;
|
|
459
647
|
})
|
|
460
|
-
.addCase(
|
|
648
|
+
.addCase(updateEntityName.pending, function (state) {
|
|
461
649
|
state.loading = true;
|
|
462
650
|
state.error = null;
|
|
463
651
|
})
|
|
464
|
-
.addCase(
|
|
465
|
-
var _a;
|
|
652
|
+
.addCase(updateEntityName.fulfilled, function (state, action) {
|
|
466
653
|
state.loading = false;
|
|
467
654
|
state.error = null;
|
|
468
|
-
var
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
655
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
656
|
+
var _b = data || {}, activityList = _b.activityList, rest = __rest(_b, ["activityList"]);
|
|
657
|
+
state.data.entityNameData = __assign(__assign({}, formData), { certificateId: undefined });
|
|
658
|
+
state.data.entityNameData.responseBody = __assign(__assign({}, state.data.entityNameData.responseBody), { rest: rest });
|
|
659
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { entity: data === null || data === void 0 ? void 0 : data.entity, activityList: activityList });
|
|
660
|
+
if (rest === null || rest === void 0 ? void 0 : rest.activities)
|
|
661
|
+
state.data.entityCapitalData = __assign(__assign({}, state.data.entityCapitalData), { activities: rest === null || rest === void 0 ? void 0 : rest.activities });
|
|
662
|
+
})
|
|
663
|
+
.addCase(updateEntityName.rejected, function (state, action) {
|
|
664
|
+
state.loading = false;
|
|
665
|
+
state.error = action.error.message;
|
|
476
666
|
})
|
|
477
|
-
.addCase(
|
|
667
|
+
.addCase(updateEntityCapital.pending, function (state) {
|
|
668
|
+
state.loading = true;
|
|
669
|
+
state.error = null;
|
|
670
|
+
})
|
|
671
|
+
.addCase(updateEntityCapital.fulfilled, function (state, action) {
|
|
672
|
+
state.loading = false;
|
|
673
|
+
state.error = null;
|
|
674
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
675
|
+
state.data.entityCapitalData = formData;
|
|
676
|
+
state.data.entityCapitalData.responseBody = __assign(__assign({}, state.data.entityCapitalData.responseBody), { data: data });
|
|
677
|
+
})
|
|
678
|
+
.addCase(updateEntityCapital.rejected, function (state, action) {
|
|
478
679
|
state.loading = false;
|
|
479
680
|
state.error = action.error.message;
|
|
480
681
|
})
|
|
@@ -491,6 +692,20 @@ export var entitySlice = createSlice({
|
|
|
491
692
|
.addCase(retrieveBoardDetails.rejected, function (state, action) {
|
|
492
693
|
state.error = action.error.message;
|
|
493
694
|
state.loading = false;
|
|
695
|
+
})
|
|
696
|
+
.addCase(retrieveBoardStatus.pending, function (state) {
|
|
697
|
+
state.error = null;
|
|
698
|
+
state.loading = true;
|
|
699
|
+
})
|
|
700
|
+
.addCase(retrieveBoardStatus.fulfilled, function (state, action) {
|
|
701
|
+
state.error = null;
|
|
702
|
+
state.loading = false;
|
|
703
|
+
var flows = action.payload.flows;
|
|
704
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { flows: flows });
|
|
705
|
+
})
|
|
706
|
+
.addCase(retrieveBoardStatus.rejected, function (state, action) {
|
|
707
|
+
state.error = action.error.message;
|
|
708
|
+
state.loading = false;
|
|
494
709
|
})
|
|
495
710
|
.addCase(updateBoardSuccess.fulfilled, function (state, action) {
|
|
496
711
|
var _a;
|
|
@@ -503,7 +718,11 @@ export var entitySlice = createSlice({
|
|
|
503
718
|
return;
|
|
504
719
|
}
|
|
505
720
|
var flows = response.flows;
|
|
506
|
-
state.data.verify.responseBody
|
|
721
|
+
var _b = state.data.verify.responseBody || {}, individuals = _b.individuals, individualData = _b.individualData;
|
|
722
|
+
var data_state = (individualData || {}).data_state;
|
|
723
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, state.data.verify.responseBody), { flows: flows }), (individualData && { user: individualData })), (data_state && {
|
|
724
|
+
individuals: __assign(__assign({}, individuals), { data_state: data_state })
|
|
725
|
+
}));
|
|
507
726
|
})
|
|
508
727
|
.addCase(updateBoardSuccess.pending, function (state) {
|
|
509
728
|
state.loading = true;
|
|
@@ -512,23 +731,9 @@ export var entitySlice = createSlice({
|
|
|
512
731
|
.addCase(updateBoardSuccess.rejected, function (state, action) {
|
|
513
732
|
state.loading = false;
|
|
514
733
|
state.error = action.error.message;
|
|
515
|
-
})
|
|
516
|
-
.addCase(uploadArticle.pending, function (state) {
|
|
517
|
-
state.error = null;
|
|
518
|
-
state.uploading = true;
|
|
519
|
-
})
|
|
520
|
-
.addCase(uploadArticle.fulfilled, function (state, action) {
|
|
521
|
-
state.error = null;
|
|
522
|
-
state.uploading = false;
|
|
523
|
-
var data = action.payload.data;
|
|
524
|
-
state.data.entityData.articleId = data === null || data === void 0 ? void 0 : data.id;
|
|
525
|
-
})
|
|
526
|
-
.addCase(uploadArticle.rejected, function (state) {
|
|
527
|
-
state.uploading = false;
|
|
528
|
-
state.error = 'file_upload_error';
|
|
529
734
|
});
|
|
530
735
|
}
|
|
531
736
|
});
|
|
532
|
-
export var clearError = (_a = entitySlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen;
|
|
737
|
+
export var clearError = (_a = entitySlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen, uploadingStatus = _a.uploadingStatus, uploadingArticleStatus = _a.uploadingArticleStatus, clearAOAFile = _a.clearAOAFile;
|
|
533
738
|
export default entitySlice.reducer;
|
|
534
739
|
export var entitySelector = function (state) { return state.entity; };
|