@tap-payments/auth-jsconnect 2.1.99-test → 2.2.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/build/@types/app.d.ts +298 -7
- package/build/@types/app.js +12 -0
- package/build/@types/form.d.ts +33 -28
- package/build/@types/redux.d.ts +4 -0
- package/build/@types/theme.d.ts +1 -1
- package/build/@types/user.d.ts +39 -3
- package/build/api/account.d.ts +2 -2
- package/build/api/auth.d.ts +11 -11
- package/build/api/availabilityServices.d.ts +3 -3
- package/build/api/axios.js +1 -1
- package/build/api/board.d.ts +3 -3
- package/build/api/brand.d.ts +7 -0
- package/build/api/brand.js +10 -1
- package/build/api/country.d.ts +1 -1
- package/build/api/data.d.ts +18 -10
- package/build/api/data.js +34 -2
- package/build/api/document.d.ts +25 -0
- package/build/api/document.js +38 -0
- package/build/api/entity.d.ts +24 -24
- package/build/api/entity.js +22 -5
- package/build/api/file.d.ts +2 -1
- package/build/api/file.js +14 -1
- package/build/api/index.d.ts +36 -6
- package/build/api/index.js +5 -1
- package/build/api/individual.d.ts +32 -14
- package/build/api/individual.js +9 -1
- package/build/api/init.d.ts +16 -0
- package/build/api/init.js +13 -0
- package/build/api/lead.d.ts +18 -11
- package/build/api/lead.js +9 -1
- package/build/api/operator.d.ts +1 -1
- package/build/api/operator.js +1 -1
- package/build/api/user.d.ts +2 -2
- package/build/app/settings.d.ts +19 -9
- package/build/app/settings.js +69 -24
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +27 -1
- package/build/assets/locales/en.json +27 -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/DatePicker/DatePicker.d.ts +3 -1
- package/build/components/DatePicker/DatePicker.js +20 -15
- package/build/components/LogoBadge/LogoBadge.js +3 -0
- 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/SimpleList/SimpleList.d.ts +5 -2
- package/build/components/SimpleList/SimpleList.js +31 -11
- package/build/components/Slide/Slide.d.ts +1 -1
- package/build/constants/api.d.ts +7 -0
- package/build/constants/api.js +14 -1
- package/build/constants/app.d.ts +46 -0
- package/build/constants/app.js +106 -40
- package/build/constants/assets.d.ts +7 -0
- package/build/constants/assets.js +7 -0
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/bank/bankStore.d.ts +88 -12
- package/build/features/app/bank/bankStore.js +153 -107
- package/build/features/app/brand/brandStore.d.ts +158 -21
- package/build/features/app/brand/brandStore.js +401 -221
- package/build/features/app/business/businessStore.d.ts +176 -29
- package/build/features/app/business/businessStore.js +343 -282
- package/build/features/app/connect/connectStore.d.ts +150 -14
- package/build/features/app/connect/connectStore.js +185 -67
- package/build/features/app/connectExpress/connectExpressStore.d.ts +223 -20
- package/build/features/app/connectExpress/connectExpressStore.js +234 -101
- package/build/features/app/entity/entityStore.d.ts +93 -23
- package/build/features/app/entity/entityStore.js +273 -237
- package/build/features/app/individual/individualStore.d.ts +198 -26
- package/build/features/app/individual/individualStore.js +547 -348
- package/build/features/app/password/passwordStore.d.ts +106 -12
- package/build/features/app/password/passwordStore.js +84 -36
- package/build/features/app/signIn/signInStore.d.ts +61 -7
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +76 -9
- package/build/features/app/tax/taxStore.js +136 -89
- package/build/features/bank/Bank.js +10 -6
- package/build/features/bank/screens/BankDetails/BankDetails.js +43 -17
- package/build/features/bank/screens/BankDetails/BankName.d.ts +5 -1
- package/build/features/bank/screens/BankDetails/BankName.js +9 -9
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +6 -2
- package/build/features/bank/screens/BankDetails/BankStatement.js +7 -10
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +3 -1
- package/build/features/bank/screens/BankDetails/Beneficiary.js +6 -7
- 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 +4 -6
- package/build/features/bank/screens/BankDetails/validation.d.ts +8 -8
- package/build/features/bank/screens/BankDetails/validation.js +6 -17
- package/build/features/bank/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -4
- 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.js +10 -6
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +13 -30
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +50 -34
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +41 -9
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +14 -41
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +21 -32
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +3 -1
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +22 -19
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +3 -1
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +28 -19
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +15 -8
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +23 -12
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +14 -2
- package/build/features/brand/screens/BrandActivities/TAC.js +21 -12
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.d.ts +4 -1
- package/build/features/brand/screens/BrandActivities/TransactionPolicy.js +18 -4
- package/build/features/brand/screens/BrandActivities/validation.d.ts +7 -7
- package/build/features/brand/screens/BrandActivities/validation.js +10 -19
- package/build/features/brand/screens/BrandInfo/BrandInfo.js +40 -33
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +9 -0
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +41 -0
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +3 -2
- package/build/features/brand/screens/BrandInfo/BrandName.js +5 -8
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +20 -26
- package/build/features/brand/screens/BrandInfo/validation.d.ts +7 -13
- package/build/features/brand/screens/BrandInfo/validation.js +37 -47
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.d.ts +5 -0
- package/build/features/brand/screens/BrandSegmentInfo/BrandSegmentInfo.js +102 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.d.ts +10 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentLocations.js +69 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.d.ts +10 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentProfits.js +69 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.d.ts +10 -0
- package/build/features/brand/screens/BrandSegmentInfo/SegmentTechs.js +69 -0
- package/build/features/{connect/screens/Merchant → brand/screens/BrandSegmentInfo}/TeamSize.d.ts +3 -1
- package/build/features/brand/screens/{BrandInfo → BrandSegmentInfo}/TeamSize.js +20 -25
- package/build/features/brand/screens/BrandSegmentInfo/index.d.ts +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/index.js +2 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.d.ts +17 -0
- package/build/features/brand/screens/BrandSegmentInfo/validation.js +9 -0
- package/build/features/brand/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -4
- package/build/features/brand/screens/Verify/OTPInput.js +5 -3
- package/build/features/brand/screens/Verify/Verify.js +7 -20
- package/build/features/business/Business.js +7 -5
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +17 -70
- package/build/features/business/screens/Activities/ActivitiesList.js +226 -98
- 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 +5 -2
- 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/{brand/screens/BrandActivities/OperationStartDate.d.ts → business/screens/BrandDetails/SalesChannel.d.ts} +6 -8
- 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 +4 -2
- package/build/features/business/screens/BusinessType/Article.js +19 -54
- package/build/features/business/screens/BusinessType/BusinessType.js +35 -11
- 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 +2 -1
- package/build/features/business/screens/BusinessType/LicenseList.d.ts +1 -0
- package/build/features/business/screens/BusinessType/LicenseList.js +7 -22
- package/build/features/business/screens/BusinessType/LicenseNumber.d.ts +1 -2
- package/build/features/business/screens/BusinessType/LicenseNumber.js +4 -2
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +3 -3
- 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 +35 -19
- package/build/features/business/screens/Customers/Customers.js +27 -16
- package/build/features/business/screens/Customers/ExpectedCustomers.js +12 -4
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +14 -6
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +7 -7
- package/build/features/business/screens/Customers/RefundPolicy.js +15 -4
- package/build/features/business/screens/Customers/TransactionPolicy.js +19 -9
- 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 +8 -3
- package/build/features/business/screens/Verify/OTPInput.js +5 -3
- package/build/features/connect/Connect.js +28 -8
- package/build/features/connect/screens/BrandSegment/BrandSegment.d.ts +5 -0
- package/build/features/connect/screens/BrandSegment/BrandSegment.js +84 -0
- package/build/features/connect/screens/BrandSegment/SegmentLocations.d.ts +8 -0
- package/build/features/connect/screens/{Merchant/Segments.js → BrandSegment/SegmentLocations.js} +17 -25
- package/build/features/connect/screens/BrandSegment/SegmentProfits.d.ts +8 -0
- package/build/features/{brand/screens/BrandInfo/Segments.js → connect/screens/BrandSegment/SegmentProfits.js} +18 -26
- package/build/features/connect/screens/BrandSegment/SegmentTechs.d.ts +8 -0
- package/build/features/connect/screens/BrandSegment/SegmentTechs.js +66 -0
- package/build/features/connect/screens/{Merchant → BrandSegment}/TeamSize.js +12 -20
- package/build/features/connect/screens/BrandSegment/index.d.ts +3 -0
- package/build/features/connect/screens/BrandSegment/index.js +2 -0
- package/build/features/connect/screens/BrandSegment/validation.d.ts +17 -0
- package/build/features/connect/screens/BrandSegment/validation.js +9 -0
- package/build/features/connect/screens/CivilID/CivilID.js +5 -13
- 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 +8 -1
- 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/Merchant/BrandList.js +4 -22
- package/build/features/connect/screens/Merchant/BrandName.js +5 -8
- package/build/features/connect/screens/Merchant/Merchant.js +13 -15
- package/build/features/connect/screens/Merchant/validation.d.ts +3 -6
- package/build/features/connect/screens/Merchant/validation.js +6 -9
- 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 +17 -2
- package/build/features/connectExpress/ConnectExpress.d.ts +1 -0
- package/build/features/connectExpress/ConnectExpress.js +78 -13
- package/build/features/connectExpress/screens/Brand/Brand.js +1 -1
- package/build/features/connectExpress/screens/CivilID/IDNumber.js +6 -7
- package/build/features/connectExpress/screens/CivilIDMissed/IDNumber.js +6 -7
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +6 -8
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +7 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +9 -14
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.d.ts +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.d.ts +5 -4
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseType.js +4 -2
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.d.ts +14 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +9 -10
- package/build/features/connectExpress/screens/CollectIndividualInfo/CollectIndividualInfo.js +11 -6
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +7 -15
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/CollectIndividualInfo/MobileNumber.js +6 -2
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Name.js +3 -4
- package/build/features/connectExpress/screens/IdentityOTP/OTPInput.js +2 -2
- package/build/features/connectExpress/screens/Mobile/Mobile.js +4 -3
- package/build/features/connectExpress/screens/Mobile/MobileNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/Mobile/MobileNumber.js +6 -2
- package/build/features/connectExpress/screens/Mobile/TAC.d.ts +2 -1
- package/build/features/connectExpress/screens/Mobile/TAC.js +3 -1
- package/build/features/connectExpress/screens/NID/DOB.d.ts +2 -1
- package/build/features/connectExpress/screens/NID/DOB.js +2 -2
- package/build/features/connectExpress/screens/NID/IDNumber.d.ts +1 -0
- package/build/features/connectExpress/screens/NID/IDNumber.js +3 -4
- package/build/features/connectExpress/screens/NID/NID.js +4 -2
- package/build/features/connectExpress/screens/NID/TAC.d.ts +14 -1
- package/build/features/connectExpress/screens/NID/TAC.js +9 -10
- package/build/features/connectExpress/screens/NIDMissed/DOB.js +1 -1
- package/build/features/connectExpress/screens/NIDMissed/IDNumber.js +2 -3
- package/build/features/connectExpress/screens/OTP/OTPInput.js +3 -3
- package/build/features/entity/Entity.js +10 -6
- package/build/features/entity/screens/EntityCapital/ActivityList.d.ts +17 -70
- package/build/features/entity/screens/EntityCapital/ActivityList.js +219 -108
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +3 -1
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +14 -16
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +3 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +10 -12
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +3 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +15 -17
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +31 -20
- package/build/features/entity/screens/EntityCapital/validation.d.ts +175 -40
- package/build/features/entity/screens/EntityCapital/validation.js +9 -12
- package/build/features/entity/screens/EntityName/Article.d.ts +6 -2
- package/build/features/entity/screens/EntityName/Article.js +20 -54
- package/build/features/entity/screens/EntityName/EntityName.js +60 -16
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +13 -30
- package/build/features/entity/screens/EntityName/EntityTypeList.js +28 -45
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +6 -4
- package/build/features/entity/screens/EntityName/ExpiryDate.js +6 -8
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +6 -4
- package/build/features/entity/screens/EntityName/IssuingDate.js +5 -8
- package/build/features/entity/screens/EntityName/LegalName.d.ts +3 -1
- package/build/features/entity/screens/EntityName/LegalName.js +10 -9
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +4 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +13 -7
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +3 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.js +13 -11
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +3 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +11 -10
- package/build/features/entity/screens/EntityName/validation.d.ts +35 -35
- package/build/features/entity/screens/EntityName/validation.js +68 -93
- package/build/features/entity/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -4
- package/build/features/entity/screens/Verify/OTPInput.js +5 -3
- package/build/features/entity/screens/Verify/Verify.js +7 -20
- package/build/features/featuresScreens.js +18 -1
- package/build/features/individual/Individual.js +10 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +54 -23
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +7 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +29 -10
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +3 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +18 -15
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +30 -42
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +3 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +94 -56
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +5 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +18 -15
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +9 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +13 -7
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +4 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +14 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +32 -43
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +8 -8
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +7 -11
- package/build/features/individual/screens/IndividualList/CollectPhoneEmail.js +1 -1
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +6 -6
- package/build/features/individual/screens/IndividualList/MobileNumber.js +0 -1
- package/build/features/individual/screens/IndividualList/UserList.js +15 -6
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +14 -20
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +8 -14
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +3 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +3 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +4 -12
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +3 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +5 -8
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +6 -4
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +5 -2
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +3 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +4 -12
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +79 -36
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +14 -26
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +18 -21
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +3 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +4 -12
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +2 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +14 -26
- 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/ResetPasswordSuccess/ResetPasswordSuccess.js +8 -3
- package/build/features/individual/screens/Verify/OTPInput.js +5 -3
- package/build/features/individual/screens/Verify/Verify.js +1 -5
- package/build/features/password/Password.js +7 -5
- package/build/features/password/screens/CreatePassword/CreatePassword.js +9 -16
- package/build/features/password/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +8 -3
- package/build/features/password/screens/Verify/OTPInput.js +5 -3
- package/build/features/password/screens/Verify/Verify.js +7 -20
- package/build/features/shared/Address/CountryList.d.ts +10 -10
- package/build/features/shared/Address/CountryList.js +1 -1
- package/build/features/shared/Address/InputSelect.d.ts +10 -10
- package/build/features/shared/Address/InputSelect.js +2 -2
- package/build/features/shared/Button/Button.d.ts +3 -1
- package/build/features/shared/Button/Button.js +3 -3
- 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 +1 -1
- package/build/features/shared/Button/FlowsButtons.js +23 -21
- 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 +1 -1
- package/build/features/shared/Button/index.js +1 -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/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 +8 -0
- 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.js +1 -1
- package/build/features/shared/Input/Input.d.ts +6 -7
- package/build/features/shared/Input/Input.js +2 -3
- 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/SalesChannels/SaleChannelIconsInput.d.ts +3 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +8 -6
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +3 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +9 -4
- 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.js +14 -5
- package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
- package/build/features/shared/SuccessScreen/SuccessScreen.js +3 -2
- 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 +2 -2
- package/build/features/shared/UploadFile/UploadFile.js +7 -7
- 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 +11 -20
- package/build/features/shared/UploadMultipleFile/UploadFile.js +119 -30
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +8 -4
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +28 -21
- package/build/features/signIn/SignIn.js +3 -4
- package/build/features/tax/Tax.js +10 -6
- package/build/features/tax/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +9 -4
- 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 +23 -10
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +4 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +7 -5
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +5 -1
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -10
- package/build/features/tax/screens/TaxDetails/validation.d.ts +4 -4
- package/build/features/tax/screens/TaxDetails/validation.js +2 -5
- 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 +5 -0
- package/build/hooks/index.js +5 -0
- package/build/hooks/useAppConfig.d.ts +4 -2
- package/build/hooks/useAppConfig.js +10 -5
- 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/useVerifyToken.js +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +4 -3
- package/build/theme/shadows.js +1 -1
- package/build/utils/array.d.ts +17 -3
- package/build/utils/array.js +220 -6
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.js +6 -0
- package/build/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/gtm.d.ts +6 -0
- package/build/utils/gtm.js +29 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +1 -0
- package/build/utils/object.d.ts +4 -0
- package/build/utils/object.js +17 -0
- package/build/utils/string.d.ts +5 -2
- package/build/utils/string.js +28 -7
- package/package.json +4 -2
- package/build/features/brand/screens/BrandActivities/OperationStartDate.js +0 -45
- package/build/features/brand/screens/BrandInfo/Segments.d.ts +0 -8
- package/build/features/connect/screens/Merchant/Segments.d.ts +0 -8
- package/build/features/shared/Button/ListButton.d.ts +0 -18
- package/build/features/shared/Button/ListButton.js +0 -125
- /package/build/features/{brand/screens/BrandInfo → connect/screens/BrandSegment}/TeamSize.d.ts +0 -0
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { ActionState, AuthForType,
|
|
2
|
+
import { ActionState, AuthForType, CivilFormValues, CountryCode, FlowsTypes, IndividualFormValues, MobileFormValues, NIDFormValues, OTPFormValues, ResponseData, SharedState, BrandFormValues, BrandSegmentFormValues } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare const createMobileAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
5
5
|
response: any;
|
|
6
6
|
formData: MobileFormValues;
|
|
7
|
-
}, MobileFormValues, {
|
|
7
|
+
}, MobileFormValues, {
|
|
8
|
+
state?: unknown;
|
|
9
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
10
|
+
extra?: unknown;
|
|
11
|
+
rejectValue?: unknown;
|
|
12
|
+
serializedErrorType?: unknown;
|
|
13
|
+
pendingMeta?: unknown;
|
|
14
|
+
fulfilledMeta?: unknown;
|
|
15
|
+
rejectedMeta?: unknown;
|
|
16
|
+
}>;
|
|
8
17
|
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
9
18
|
response: any;
|
|
10
19
|
formData: CivilFormValues;
|
|
11
|
-
}, CivilFormValues, {
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
}, CivilFormValues, {
|
|
21
|
+
state?: unknown;
|
|
22
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
23
|
+
extra?: unknown;
|
|
24
|
+
rejectValue?: unknown;
|
|
25
|
+
serializedErrorType?: unknown;
|
|
26
|
+
pendingMeta?: unknown;
|
|
27
|
+
fulfilledMeta?: unknown;
|
|
28
|
+
rejectedMeta?: unknown;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const resendOTPMobile: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
31
|
+
state?: unknown;
|
|
32
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
33
|
+
extra?: unknown;
|
|
34
|
+
rejectValue?: unknown;
|
|
35
|
+
serializedErrorType?: unknown;
|
|
36
|
+
pendingMeta?: unknown;
|
|
37
|
+
fulfilledMeta?: unknown;
|
|
38
|
+
rejectedMeta?: unknown;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const resendOTPNID: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
41
|
+
state?: unknown;
|
|
42
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
43
|
+
extra?: unknown;
|
|
44
|
+
rejectValue?: unknown;
|
|
45
|
+
serializedErrorType?: unknown;
|
|
46
|
+
pendingMeta?: unknown;
|
|
47
|
+
fulfilledMeta?: unknown;
|
|
48
|
+
rejectedMeta?: unknown;
|
|
49
|
+
}>;
|
|
14
50
|
export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
15
51
|
response: any;
|
|
16
52
|
formData: {
|
|
@@ -19,12 +55,30 @@ export declare const createNIDAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
19
55
|
dob: string;
|
|
20
56
|
termAndConditionChecked?: boolean | undefined;
|
|
21
57
|
};
|
|
22
|
-
}, NIDFormValues, {
|
|
58
|
+
}, NIDFormValues, {
|
|
59
|
+
state?: unknown;
|
|
60
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
61
|
+
extra?: unknown;
|
|
62
|
+
rejectValue?: unknown;
|
|
63
|
+
serializedErrorType?: unknown;
|
|
64
|
+
pendingMeta?: unknown;
|
|
65
|
+
fulfilledMeta?: unknown;
|
|
66
|
+
rejectedMeta?: unknown;
|
|
67
|
+
}>;
|
|
23
68
|
export declare const verifyAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
24
69
|
authResponse: any;
|
|
25
70
|
leadResponse: any;
|
|
26
71
|
countryCode: CountryCode;
|
|
27
|
-
}, OTPFormValues, {
|
|
72
|
+
}, OTPFormValues, {
|
|
73
|
+
state?: unknown;
|
|
74
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
75
|
+
extra?: unknown;
|
|
76
|
+
rejectValue?: unknown;
|
|
77
|
+
serializedErrorType?: unknown;
|
|
78
|
+
pendingMeta?: unknown;
|
|
79
|
+
fulfilledMeta?: unknown;
|
|
80
|
+
rejectedMeta?: unknown;
|
|
81
|
+
}>;
|
|
28
82
|
interface verifyPACIParams {
|
|
29
83
|
onSuccess?: () => void;
|
|
30
84
|
}
|
|
@@ -32,11 +86,43 @@ export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
32
86
|
authResponse: any;
|
|
33
87
|
leadResponse: any;
|
|
34
88
|
countryCode: CountryCode;
|
|
35
|
-
}, verifyPACIParams, {
|
|
89
|
+
}, verifyPACIParams, {
|
|
90
|
+
state?: unknown;
|
|
91
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
92
|
+
extra?: unknown;
|
|
93
|
+
rejectValue?: unknown;
|
|
94
|
+
serializedErrorType?: unknown;
|
|
95
|
+
pendingMeta?: unknown;
|
|
96
|
+
fulfilledMeta?: unknown;
|
|
97
|
+
rejectedMeta?: unknown;
|
|
98
|
+
}>;
|
|
36
99
|
export declare const updateLeadIndividual: import("@reduxjs/toolkit").AsyncThunk<{
|
|
37
100
|
leadResponse: any;
|
|
38
101
|
formData: IndividualFormValues;
|
|
39
|
-
}, IndividualFormValues, {
|
|
102
|
+
}, IndividualFormValues, {
|
|
103
|
+
state?: unknown;
|
|
104
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
105
|
+
extra?: unknown;
|
|
106
|
+
rejectValue?: unknown;
|
|
107
|
+
serializedErrorType?: unknown;
|
|
108
|
+
pendingMeta?: unknown;
|
|
109
|
+
fulfilledMeta?: unknown;
|
|
110
|
+
rejectedMeta?: unknown;
|
|
111
|
+
}>;
|
|
112
|
+
export declare const retrieveSegmentDataList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
113
|
+
segmentLocation: any;
|
|
114
|
+
segmentProfit: any;
|
|
115
|
+
segmentTech: any;
|
|
116
|
+
}, void, {
|
|
117
|
+
state?: unknown;
|
|
118
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
119
|
+
extra?: unknown;
|
|
120
|
+
rejectValue?: unknown;
|
|
121
|
+
serializedErrorType?: unknown;
|
|
122
|
+
pendingMeta?: unknown;
|
|
123
|
+
fulfilledMeta?: unknown;
|
|
124
|
+
rejectedMeta?: unknown;
|
|
125
|
+
}>;
|
|
40
126
|
export declare const updateLeadBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
41
127
|
response: any;
|
|
42
128
|
formData: BrandFormValues & {
|
|
@@ -44,7 +130,29 @@ export declare const updateLeadBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
44
130
|
};
|
|
45
131
|
}, BrandFormValues & {
|
|
46
132
|
isNewBrand: boolean;
|
|
47
|
-
}, {
|
|
133
|
+
}, {
|
|
134
|
+
state?: unknown;
|
|
135
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
136
|
+
extra?: unknown;
|
|
137
|
+
rejectValue?: unknown;
|
|
138
|
+
serializedErrorType?: unknown;
|
|
139
|
+
pendingMeta?: unknown;
|
|
140
|
+
fulfilledMeta?: unknown;
|
|
141
|
+
rejectedMeta?: unknown;
|
|
142
|
+
}>;
|
|
143
|
+
export declare const updateLeadBrandSegment: import("@reduxjs/toolkit").AsyncThunk<{
|
|
144
|
+
response: any;
|
|
145
|
+
formData: BrandSegmentFormValues;
|
|
146
|
+
}, BrandSegmentFormValues, {
|
|
147
|
+
state?: unknown;
|
|
148
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
149
|
+
extra?: unknown;
|
|
150
|
+
rejectValue?: unknown;
|
|
151
|
+
serializedErrorType?: unknown;
|
|
152
|
+
pendingMeta?: unknown;
|
|
153
|
+
fulfilledMeta?: unknown;
|
|
154
|
+
rejectedMeta?: unknown;
|
|
155
|
+
}>;
|
|
48
156
|
export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
49
157
|
response: any;
|
|
50
158
|
formData: string;
|
|
@@ -52,7 +160,16 @@ export declare const checkEmailAvailability: import("@reduxjs/toolkit").AsyncThu
|
|
|
52
160
|
email: string;
|
|
53
161
|
cancelToken: CancelToken;
|
|
54
162
|
onSuccess?: (() => void) | undefined;
|
|
55
|
-
}, {
|
|
163
|
+
}, {
|
|
164
|
+
state?: unknown;
|
|
165
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
166
|
+
extra?: unknown;
|
|
167
|
+
rejectValue?: unknown;
|
|
168
|
+
serializedErrorType?: unknown;
|
|
169
|
+
pendingMeta?: unknown;
|
|
170
|
+
fulfilledMeta?: unknown;
|
|
171
|
+
rejectedMeta?: unknown;
|
|
172
|
+
}>;
|
|
56
173
|
export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
57
174
|
response: any;
|
|
58
175
|
formData: {
|
|
@@ -62,11 +179,29 @@ export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").Asyn
|
|
|
62
179
|
name: string;
|
|
63
180
|
cancelToken: CancelToken;
|
|
64
181
|
onSuccess?: (() => void) | undefined;
|
|
65
|
-
}, {
|
|
182
|
+
}, {
|
|
183
|
+
state?: unknown;
|
|
184
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
185
|
+
extra?: unknown;
|
|
186
|
+
rejectValue?: unknown;
|
|
187
|
+
serializedErrorType?: unknown;
|
|
188
|
+
pendingMeta?: unknown;
|
|
189
|
+
fulfilledMeta?: unknown;
|
|
190
|
+
rejectedMeta?: unknown;
|
|
191
|
+
}>;
|
|
66
192
|
export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
67
193
|
response: any;
|
|
68
194
|
formData: void;
|
|
69
|
-
}, void, {
|
|
195
|
+
}, void, {
|
|
196
|
+
state?: unknown;
|
|
197
|
+
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
198
|
+
extra?: unknown;
|
|
199
|
+
rejectValue?: unknown;
|
|
200
|
+
serializedErrorType?: unknown;
|
|
201
|
+
pendingMeta?: unknown;
|
|
202
|
+
fulfilledMeta?: unknown;
|
|
203
|
+
rejectedMeta?: unknown;
|
|
204
|
+
}>;
|
|
70
205
|
export interface ConnectData {
|
|
71
206
|
mobileData: (MobileFormValues | undefined) & ResponseData;
|
|
72
207
|
nidData: NIDFormValues & ResponseData & {
|
|
@@ -78,6 +213,7 @@ export interface ConnectData {
|
|
|
78
213
|
};
|
|
79
214
|
individualData: IndividualFormValues & ResponseData;
|
|
80
215
|
brandData: BrandFormValues & ResponseData;
|
|
216
|
+
brandSegmentData: BrandSegmentFormValues & ResponseData;
|
|
81
217
|
flowName: FlowsTypes;
|
|
82
218
|
}
|
|
83
219
|
export interface ConnectState extends SharedState<ConnectData> {
|
|
@@ -95,7 +231,7 @@ export declare const connectSlice: import("@reduxjs/toolkit").Slice<ConnectState
|
|
|
95
231
|
setDefaultCountryCode: (state: ConnectState, action: ActionState<CountryCode>) => void;
|
|
96
232
|
resetStore: (state: ConnectState) => void;
|
|
97
233
|
}, "connect/store">;
|
|
98
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
234
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/clearError">, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/stopLoader">, resetMobileScreen: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connect/store/resetMobileScreen">, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetOTPScreen">, resetIndividualScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetIndividualScreen">, resetMerchantScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetMerchantScreen">, resetNIDScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetNIDScreen">, resetCivilScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetCivilScreen">, resetStore: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"connect/store/resetStore">, setDefaultCountryCode: import("@reduxjs/toolkit").ActionCreatorWithPayload<CountryCode, "connect/store/setDefaultCountryCode">;
|
|
99
235
|
declare const _default: import("redux").Reducer<ConnectState, import("redux").AnyAction>;
|
|
100
236
|
export default _default;
|
|
101
237
|
export declare const connectSelector: (state: RootState) => ConnectState;
|
|
@@ -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]) {
|
|
@@ -71,7 +71,7 @@ import { handleNextScreenStep } from '../../../app/settings';
|
|
|
71
71
|
import { CONNECT_STEP_NAMES, defaultCountry, IDENTIFICATION_TYPE, OTHER_BRAND } from '../../../constants';
|
|
72
72
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
73
73
|
import { AuthForType, FlowsTypes } from '../../../@types';
|
|
74
|
-
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList,
|
|
74
|
+
import { capitalizeTheFirstLetterOfEachWord, concatenateObjectValues, findCountryByIddPrefix, fixBrandList, isTwitter, getIndividualName, isWebsite, sleep, sendCustomEventToGTM } from '../../../utils';
|
|
75
75
|
export var createMobileAuth = createAsyncThunk('createMobileAuth', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
76
|
var settings, requestBody, data;
|
|
77
77
|
var _a, _b;
|
|
@@ -156,19 +156,20 @@ export var resendOTPMobile = createAsyncThunk('resendOTPMobile', function (param
|
|
|
156
156
|
});
|
|
157
157
|
}); });
|
|
158
158
|
export var resendOTPNID = createAsyncThunk('resendOTPNID', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
159
|
-
var _a, settings, connect, _b, nid, dob,
|
|
159
|
+
var _a, settings, connect, _b, nid, dob, identification_id_type, requestBody, data;
|
|
160
160
|
return __generator(this, function (_c) {
|
|
161
161
|
switch (_c.label) {
|
|
162
162
|
case 0:
|
|
163
163
|
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
164
|
-
_b = connect.data.nidData, nid = _b.nid, dob = _b.dob
|
|
164
|
+
_b = connect.data.nidData, nid = _b.nid, dob = _b.dob;
|
|
165
|
+
identification_id_type = nid.startsWith('1') ? IDENTIFICATION_TYPE.NID : IDENTIFICATION_TYPE.IQAMA;
|
|
165
166
|
requestBody = {
|
|
166
167
|
country: settings.data.businessCountry.iso2,
|
|
167
168
|
scope: settings.data.appConfig.scope,
|
|
168
169
|
lang: settings.data.language,
|
|
169
170
|
user_credentail: {
|
|
170
171
|
identification_id: nid,
|
|
171
|
-
identification_id_type:
|
|
172
|
+
identification_id_type: identification_id_type,
|
|
172
173
|
date_of_birth: dob,
|
|
173
174
|
country_code: settings.data.businessCountry.iso2
|
|
174
175
|
},
|
|
@@ -253,6 +254,11 @@ export var verifyAuth = createAsyncThunk('connect/verifyAuth', function (params,
|
|
|
253
254
|
data = (_g.sent()).data;
|
|
254
255
|
if ((_c = data.errors) === null || _c === void 0 ? void 0 : _c.length)
|
|
255
256
|
throw new Error(data.errors[0].description);
|
|
257
|
+
sendCustomEventToGTM({
|
|
258
|
+
event: 'Send Event',
|
|
259
|
+
event_category: 'User Registration Flow',
|
|
260
|
+
event_action: 'First OTP Success'
|
|
261
|
+
});
|
|
256
262
|
lead_id = data.lead_id;
|
|
257
263
|
if (!lead_id)
|
|
258
264
|
throw new Error('Lead id is missing');
|
|
@@ -357,7 +363,7 @@ export var verifyPACI = createAsyncThunk('connect/verifyPACI', function (params,
|
|
|
357
363
|
});
|
|
358
364
|
}); });
|
|
359
365
|
export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
|
-
var _a, settings, connect, lead_id, phoneCountry, payload, leadResponse,
|
|
366
|
+
var _a, settings, connect, lead_id, phoneCountry, payload, leadResponse, brand;
|
|
361
367
|
var _b, _c, _d, _e, _f;
|
|
362
368
|
return __generator(this, function (_g) {
|
|
363
369
|
switch (_g.label) {
|
|
@@ -376,51 +382,53 @@ export var updateLeadIndividual = createAsyncThunk('updateLeadIndividual', funct
|
|
|
376
382
|
return [4, API.leadService.updateLead(payload)];
|
|
377
383
|
case 1:
|
|
378
384
|
leadResponse = _g.sent();
|
|
379
|
-
|
|
380
|
-
case 2:
|
|
381
|
-
_g.trys.push([2, 4, , 5]);
|
|
382
|
-
return [4, API.dataService.getSegments({ page: 0 })];
|
|
383
|
-
case 3:
|
|
384
|
-
segments = _g.sent();
|
|
385
|
-
leadResponse.segments_list = segments.list;
|
|
386
|
-
return [3, 5];
|
|
387
|
-
case 4:
|
|
388
|
-
err_3 = _g.sent();
|
|
389
|
-
return [3, 5];
|
|
390
|
-
case 5:
|
|
391
|
-
_g.trys.push([5, 7, , 8]);
|
|
392
|
-
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
393
|
-
case 6:
|
|
394
|
-
teamSize = _g.sent();
|
|
395
|
-
leadResponse.team_size_list = teamSize.list;
|
|
396
|
-
return [3, 8];
|
|
397
|
-
case 7:
|
|
398
|
-
err_4 = _g.sent();
|
|
399
|
-
return [3, 8];
|
|
400
|
-
case 8:
|
|
401
|
-
if (!leadResponse.brand) return [3, 10];
|
|
385
|
+
if (!leadResponse.brand) return [3, 3];
|
|
402
386
|
return [4, API.brandService.retrieveBrand(leadResponse.brand.id)];
|
|
403
|
-
case
|
|
387
|
+
case 2:
|
|
404
388
|
brand = (_g.sent()).brand;
|
|
405
389
|
leadResponse.brand = __assign(__assign({}, leadResponse.brand), brand);
|
|
406
|
-
_g.label =
|
|
407
|
-
case
|
|
390
|
+
_g.label = 3;
|
|
391
|
+
case 3:
|
|
408
392
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, params);
|
|
409
393
|
thunkApi.dispatch(handleNextScreenStep());
|
|
410
394
|
return [2, { leadResponse: leadResponse, formData: params }];
|
|
411
395
|
}
|
|
412
396
|
});
|
|
413
397
|
}); });
|
|
398
|
+
export var retrieveSegmentDataList = createAsyncThunk('connectRetrieveSegmentDataList', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
399
|
+
var dataBody, _a, segmentLocation, segmentProfit, segmentTech;
|
|
400
|
+
return __generator(this, function (_b) {
|
|
401
|
+
switch (_b.label) {
|
|
402
|
+
case 0:
|
|
403
|
+
dataBody = {
|
|
404
|
+
page: 0,
|
|
405
|
+
limit: 50
|
|
406
|
+
};
|
|
407
|
+
return [4, Promise.all([
|
|
408
|
+
API.dataService.getSegmentLocation(dataBody),
|
|
409
|
+
API.dataService.getSegmentProfit(dataBody),
|
|
410
|
+
API.dataService.getSegmentTech(dataBody)
|
|
411
|
+
])];
|
|
412
|
+
case 1:
|
|
413
|
+
_a = _b.sent(), segmentLocation = _a[0].list, segmentProfit = _a[1].list, segmentTech = _a[2].list;
|
|
414
|
+
return [2, {
|
|
415
|
+
segmentLocation: segmentLocation,
|
|
416
|
+
segmentProfit: segmentProfit,
|
|
417
|
+
segmentTech: segmentTech
|
|
418
|
+
}];
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
}); });
|
|
414
422
|
export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
415
|
-
var _a, settings, connect, responseBody, leadBrandId, isNewBrand, brandName, salesChannels, selectedBrandItem, termAndConditionChecked, getAddress, channel_services, payload_1, brandReqBody_1, brand_1, brandNameBody, payload, lead, brandReqBody, brand;
|
|
416
|
-
var
|
|
417
|
-
return __generator(this, function (
|
|
418
|
-
switch (
|
|
423
|
+
var _a, settings, connect, responseBody, leadBrandId, isNewBrand, brandName, salesChannels, selectedBrandItem, brandLogoId, termAndConditionChecked, getAddress, channel_services, payload_1, brandReqBody_1, brand_1, _b, segmentLocation, segmentProfit, segmentTech, err_3, teamSize, err_4, brandNameBody, payload, lead, brandReqBody, brand, _c, segmentLocation, segmentProfit, segmentTech, err_5, teamSize, err_6;
|
|
424
|
+
var _d, _e, _f, _g, _h;
|
|
425
|
+
return __generator(this, function (_j) {
|
|
426
|
+
switch (_j.label) {
|
|
419
427
|
case 0:
|
|
420
428
|
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
421
429
|
responseBody = connect.data.otpData.responseBody;
|
|
422
430
|
leadBrandId = responseBody === null || responseBody === void 0 ? void 0 : responseBody.brand_id;
|
|
423
|
-
isNewBrand = params.isNewBrand, brandName = params.brandName, salesChannels = params.salesChannels, selectedBrandItem = params.selectedBrandItem, termAndConditionChecked = params.termAndConditionChecked;
|
|
431
|
+
isNewBrand = params.isNewBrand, brandName = params.brandName, salesChannels = params.salesChannels, selectedBrandItem = params.selectedBrandItem, brandLogoId = params.brandLogoId, termAndConditionChecked = params.termAndConditionChecked;
|
|
424
432
|
getAddress = function (value, isTwitter, isWeb) {
|
|
425
433
|
if (isTwitter)
|
|
426
434
|
return '@' + value;
|
|
@@ -438,7 +446,7 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
438
446
|
})
|
|
439
447
|
};
|
|
440
448
|
});
|
|
441
|
-
if (!!isNewBrand) return [3,
|
|
449
|
+
if (!!isNewBrand) return [3, 11];
|
|
442
450
|
if (!(leadBrandId !== (selectedBrandItem === null || selectedBrandItem === void 0 ? void 0 : selectedBrandItem.id))) return [3, 2];
|
|
443
451
|
payload_1 = {
|
|
444
452
|
brand: {
|
|
@@ -449,24 +457,48 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
449
457
|
};
|
|
450
458
|
return [4, API.leadService.updateLead(payload_1)];
|
|
451
459
|
case 1:
|
|
452
|
-
|
|
453
|
-
|
|
460
|
+
_j.sent();
|
|
461
|
+
_j.label = 2;
|
|
454
462
|
case 2:
|
|
455
463
|
brandReqBody_1 = {
|
|
456
464
|
id: (selectedBrandItem === null || selectedBrandItem === void 0 ? void 0 : selectedBrandItem.id) || '',
|
|
457
465
|
channel_services: channel_services,
|
|
458
|
-
|
|
466
|
+
term: ['general'],
|
|
459
467
|
step_name: CONNECT_STEP_NAMES.UPDATE_BRAND_INFO
|
|
460
468
|
};
|
|
461
469
|
return [4, API.brandService.updateBrandInfo(brandReqBody_1)];
|
|
462
470
|
case 3:
|
|
463
|
-
brand_1 =
|
|
464
|
-
|
|
465
|
-
|
|
471
|
+
brand_1 = _j.sent();
|
|
472
|
+
_j.label = 4;
|
|
473
|
+
case 4:
|
|
474
|
+
_j.trys.push([4, 6, , 7]);
|
|
475
|
+
return [4, thunkApi.dispatch(retrieveSegmentDataList()).unwrap()];
|
|
476
|
+
case 5:
|
|
477
|
+
_b = _j.sent(), segmentLocation = _b.segmentLocation, segmentProfit = _b.segmentProfit, segmentTech = _b.segmentTech;
|
|
478
|
+
brand_1.segment_location_list = segmentLocation;
|
|
479
|
+
brand_1.segment_profit_list = segmentProfit;
|
|
480
|
+
brand_1.segment_tech_list = segmentTech;
|
|
481
|
+
return [3, 7];
|
|
482
|
+
case 6:
|
|
483
|
+
err_3 = _j.sent();
|
|
484
|
+
return [3, 7];
|
|
485
|
+
case 7:
|
|
486
|
+
_j.trys.push([7, 9, , 10]);
|
|
487
|
+
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
488
|
+
case 8:
|
|
489
|
+
teamSize = _j.sent();
|
|
490
|
+
brand_1.team_size_list = teamSize.list;
|
|
491
|
+
return [3, 10];
|
|
492
|
+
case 9:
|
|
493
|
+
err_4 = _j.sent();
|
|
494
|
+
return [3, 10];
|
|
495
|
+
case 10:
|
|
496
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
466
497
|
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, params);
|
|
467
498
|
return [2, { response: brand_1, formData: params }];
|
|
468
|
-
case
|
|
499
|
+
case 11:
|
|
469
500
|
brandNameBody = {
|
|
501
|
+
id: '',
|
|
470
502
|
name: {
|
|
471
503
|
en: brandName,
|
|
472
504
|
ar: brandName,
|
|
@@ -480,8 +512,8 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
480
512
|
encryption_contract: ['brand.name.en', 'brand.name.ar', 'brand.name.zh']
|
|
481
513
|
};
|
|
482
514
|
return [4, API.leadService.updateLead(payload)];
|
|
483
|
-
case
|
|
484
|
-
lead =
|
|
515
|
+
case 12:
|
|
516
|
+
lead = _j.sent();
|
|
485
517
|
if (!lead.brand) {
|
|
486
518
|
console.error('Internal server error: brand is not created');
|
|
487
519
|
throw new Error('Internal server error');
|
|
@@ -490,15 +522,62 @@ export var updateLeadBrand = createAsyncThunk('updateLeadBrand', function (param
|
|
|
490
522
|
id: ((_f = lead.brand) === null || _f === void 0 ? void 0 : _f.id) || '',
|
|
491
523
|
channel_services: channel_services,
|
|
492
524
|
term: ['general'],
|
|
493
|
-
step_name: CONNECT_STEP_NAMES.UPDATE_BRAND_INFO
|
|
494
|
-
segment: { type: { id: ((_g = params.segment) === null || _g === void 0 ? void 0 : _g.id) || '' }, team: { id: ((_h = params.teamSize) === null || _h === void 0 ? void 0 : _h.id) || '' } }
|
|
525
|
+
step_name: CONNECT_STEP_NAMES.UPDATE_BRAND_INFO
|
|
495
526
|
};
|
|
496
527
|
return [4, API.brandService.updateBrandInfo(brandReqBody)];
|
|
497
|
-
case
|
|
498
|
-
brand =
|
|
528
|
+
case 13:
|
|
529
|
+
brand = _j.sent();
|
|
530
|
+
_j.label = 14;
|
|
531
|
+
case 14:
|
|
532
|
+
_j.trys.push([14, 16, , 17]);
|
|
533
|
+
return [4, thunkApi.dispatch(retrieveSegmentDataList()).unwrap()];
|
|
534
|
+
case 15:
|
|
535
|
+
_c = _j.sent(), segmentLocation = _c.segmentLocation, segmentProfit = _c.segmentProfit, segmentTech = _c.segmentTech;
|
|
536
|
+
brand.segment_location_list = segmentLocation;
|
|
537
|
+
brand.segment_profit_list = segmentProfit;
|
|
538
|
+
brand.segment_tech_list = segmentTech;
|
|
539
|
+
return [3, 17];
|
|
540
|
+
case 16:
|
|
541
|
+
err_5 = _j.sent();
|
|
542
|
+
return [3, 17];
|
|
543
|
+
case 17:
|
|
544
|
+
_j.trys.push([17, 19, , 20]);
|
|
545
|
+
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
546
|
+
case 18:
|
|
547
|
+
teamSize = _j.sent();
|
|
548
|
+
brand.team_size_list = teamSize.list;
|
|
549
|
+
return [3, 20];
|
|
550
|
+
case 19:
|
|
551
|
+
err_6 = _j.sent();
|
|
552
|
+
return [3, 20];
|
|
553
|
+
case 20:
|
|
554
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
555
|
+
(_h = (_g = settings.data.appConfig).onStepCompleted) === null || _h === void 0 ? void 0 : _h.call(_g, settings.data.activeScreen.name, params);
|
|
556
|
+
return [2, { response: brand, formData: params }];
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
}); });
|
|
560
|
+
export var updateLeadBrandSegment = createAsyncThunk('updateLeadBrandSegment', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
561
|
+
var _a, settings, connect, responseBody, leadBrandId, segmentLocation, segmentProfit, segmentTech, teamSize, brandReqBody, brand;
|
|
562
|
+
var _b, _c, _d;
|
|
563
|
+
return __generator(this, function (_e) {
|
|
564
|
+
switch (_e.label) {
|
|
565
|
+
case 0:
|
|
566
|
+
_a = thunkApi.getState(), settings = _a.settings, connect = _a.connect;
|
|
567
|
+
responseBody = connect.data.brandData.responseBody;
|
|
568
|
+
leadBrandId = (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.brand) === null || _b === void 0 ? void 0 : _b.id;
|
|
569
|
+
segmentLocation = params.segmentLocation, segmentProfit = params.segmentProfit, segmentTech = params.segmentTech, teamSize = params.teamSize;
|
|
570
|
+
brandReqBody = {
|
|
571
|
+
id: leadBrandId || '',
|
|
572
|
+
step_name: CONNECT_STEP_NAMES.UPDATE_BRAND_SEGMENT_INFO,
|
|
573
|
+
segment: __assign(__assign(__assign(__assign({}, ((segmentLocation === null || segmentLocation === void 0 ? void 0 : segmentLocation.id) && { location_type: { id: segmentLocation.id } })), ((segmentProfit === null || segmentProfit === void 0 ? void 0 : segmentProfit.id) && { profit_type: { id: segmentProfit.id } })), ((segmentTech === null || segmentTech === void 0 ? void 0 : segmentTech.id) && { tech_type: { id: segmentTech.id } })), { team: { id: (teamSize === null || teamSize === void 0 ? void 0 : teamSize.id) || '' } })
|
|
574
|
+
};
|
|
575
|
+
return [4, API.brandService.updateBrandInfo(brandReqBody)];
|
|
576
|
+
case 1:
|
|
577
|
+
brand = _e.sent();
|
|
499
578
|
thunkApi.dispatch(updateLeadSuccess());
|
|
500
579
|
thunkApi.dispatch(handleNextScreenStep());
|
|
501
|
-
(
|
|
580
|
+
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, params);
|
|
502
581
|
return [2, { response: brand, formData: params }];
|
|
503
582
|
}
|
|
504
583
|
});
|
|
@@ -585,7 +664,7 @@ var initialState = {
|
|
|
585
664
|
},
|
|
586
665
|
nidData: {
|
|
587
666
|
nid: '',
|
|
588
|
-
dob:
|
|
667
|
+
dob: '',
|
|
589
668
|
type: ''
|
|
590
669
|
},
|
|
591
670
|
civilIdData: {
|
|
@@ -608,13 +687,17 @@ var initialState = {
|
|
|
608
687
|
brandData: {
|
|
609
688
|
brandName: '',
|
|
610
689
|
salesChannels: [],
|
|
611
|
-
segment: undefined,
|
|
612
|
-
teamSize: undefined,
|
|
613
690
|
termAndConditionChecked: false,
|
|
614
691
|
selectedBrandItem: {},
|
|
615
692
|
responseBody: {
|
|
616
693
|
brand_list: []
|
|
617
694
|
}
|
|
695
|
+
},
|
|
696
|
+
brandSegmentData: {
|
|
697
|
+
segmentLocation: undefined,
|
|
698
|
+
segmentProfit: undefined,
|
|
699
|
+
segmentTech: undefined,
|
|
700
|
+
teamSize: undefined
|
|
618
701
|
}
|
|
619
702
|
}
|
|
620
703
|
};
|
|
@@ -833,16 +916,6 @@ export var connectSlice = createSlice({
|
|
|
833
916
|
}
|
|
834
917
|
var selectedBrand = ((_b = (_a = state.data.brandData) === null || _a === void 0 ? void 0 : _a.responseBody) === null || _b === void 0 ? void 0 : _b.brand_list[0]) || leadResponse.brand;
|
|
835
918
|
state.data.brandData.brandName = (_c = selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.name) === null || _c === void 0 ? void 0 : _c.en;
|
|
836
|
-
state.data.brandData.segment = rest.segments_list.find(function (_a) {
|
|
837
|
-
var _b, _c;
|
|
838
|
-
var id = _a.id;
|
|
839
|
-
return ((_c = (_b = selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.segment) === null || _b === void 0 ? void 0 : _b.type) === null || _c === void 0 ? void 0 : _c.id) === id;
|
|
840
|
-
});
|
|
841
|
-
state.data.brandData.teamSize = rest.team_size_list.find(function (_a) {
|
|
842
|
-
var _b, _c;
|
|
843
|
-
var id = _a.id;
|
|
844
|
-
return ((_c = (_b = selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.segment) === null || _b === void 0 ? void 0 : _b.team) === null || _c === void 0 ? void 0 : _c.id) === id;
|
|
845
|
-
});
|
|
846
919
|
state.data.individualData = formData;
|
|
847
920
|
state.data.individualData.responseBody = rest;
|
|
848
921
|
})
|
|
@@ -853,13 +926,43 @@ export var connectSlice = createSlice({
|
|
|
853
926
|
.addCase(updateLeadIndividual.rejected, function (state, action) {
|
|
854
927
|
state.loading = false;
|
|
855
928
|
state.error = action.error.message;
|
|
929
|
+
})
|
|
930
|
+
.addCase(retrieveSegmentDataList.pending, function (state) {
|
|
931
|
+
state.loading = true;
|
|
932
|
+
state.error = null;
|
|
933
|
+
})
|
|
934
|
+
.addCase(retrieveSegmentDataList.fulfilled, function (state) {
|
|
935
|
+
state.loading = false;
|
|
936
|
+
state.error = null;
|
|
937
|
+
})
|
|
938
|
+
.addCase(retrieveSegmentDataList.rejected, function (state, action) {
|
|
939
|
+
state.loading = false;
|
|
940
|
+
state.error = action.error.message;
|
|
856
941
|
})
|
|
857
942
|
.addCase(updateLeadBrand.fulfilled, function (state, action) {
|
|
858
943
|
state.loading = false;
|
|
859
944
|
state.error = null;
|
|
860
945
|
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
861
|
-
|
|
862
|
-
state.data.
|
|
946
|
+
var _b = response || {}, segment_location_list = _b.segment_location_list, segment_profit_list = _b.segment_profit_list, segment_tech_list = _b.segment_tech_list, team_size_list = _b.team_size_list, brand = _b.brand;
|
|
947
|
+
state.data.brandSegmentData.segmentLocation = segment_location_list === null || segment_location_list === void 0 ? void 0 : segment_location_list.find(function (location) {
|
|
948
|
+
var _a, _b;
|
|
949
|
+
return location.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.location_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
950
|
+
});
|
|
951
|
+
state.data.brandSegmentData.segmentProfit = segment_profit_list === null || segment_profit_list === void 0 ? void 0 : segment_profit_list.find(function (profit) {
|
|
952
|
+
var _a, _b;
|
|
953
|
+
return profit.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.profit_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
954
|
+
});
|
|
955
|
+
state.data.brandSegmentData.segmentTech = segment_tech_list === null || segment_tech_list === void 0 ? void 0 : segment_tech_list.find(function (tech) {
|
|
956
|
+
var _a, _b;
|
|
957
|
+
return tech.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.tech_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
958
|
+
});
|
|
959
|
+
state.data.brandSegmentData.teamSize = team_size_list === null || team_size_list === void 0 ? void 0 : team_size_list.find(function (_a) {
|
|
960
|
+
var _b, _c;
|
|
961
|
+
var id = _a.id;
|
|
962
|
+
return ((_c = (_b = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _b === void 0 ? void 0 : _b.team) === null || _c === void 0 ? void 0 : _c.id) === id;
|
|
963
|
+
});
|
|
964
|
+
state.data.brandData = __assign(__assign({}, formData), { responseBody: __assign(__assign({}, state.data.brandData.responseBody), { brand: brand }) });
|
|
965
|
+
state.data.brandSegmentData.responseBody = { segment_location_list: segment_location_list, segment_profit_list: segment_profit_list, segment_tech_list: segment_tech_list, team_size_list: team_size_list };
|
|
863
966
|
})
|
|
864
967
|
.addCase(updateLeadBrand.pending, function (state) {
|
|
865
968
|
state.loading = true;
|
|
@@ -868,6 +971,21 @@ export var connectSlice = createSlice({
|
|
|
868
971
|
.addCase(updateLeadBrand.rejected, function (state, action) {
|
|
869
972
|
state.loading = false;
|
|
870
973
|
state.error = action.error.message;
|
|
974
|
+
})
|
|
975
|
+
.addCase(updateLeadBrandSegment.fulfilled, function (state, action) {
|
|
976
|
+
state.loading = false;
|
|
977
|
+
state.error = null;
|
|
978
|
+
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
979
|
+
state.data.brandSegmentData = formData;
|
|
980
|
+
state.data.brandSegmentData.responseBody = __assign(__assign({}, state.data.brandSegmentData.responseBody), response);
|
|
981
|
+
})
|
|
982
|
+
.addCase(updateLeadBrandSegment.pending, function (state) {
|
|
983
|
+
state.loading = true;
|
|
984
|
+
state.error = null;
|
|
985
|
+
})
|
|
986
|
+
.addCase(updateLeadBrandSegment.rejected, function (state, action) {
|
|
987
|
+
state.loading = false;
|
|
988
|
+
state.error = action.error.message;
|
|
871
989
|
})
|
|
872
990
|
.addCase(checkEmailAvailability.fulfilled, function (state, action) {
|
|
873
991
|
var _a;
|