@tap-payments/auth-jsconnect 2.0.51 → 2.0.52
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 +90 -7
- package/build/@types/app.js +7 -0
- package/build/@types/form.d.ts +21 -20
- package/build/@types/theme.d.ts +1 -1
- 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/country.d.ts +1 -1
- package/build/api/data.d.ts +10 -10
- package/build/api/document.d.ts +2 -2
- package/build/api/entity.d.ts +12 -12
- package/build/api/file.d.ts +1 -1
- package/build/api/individual.d.ts +5 -5
- package/build/api/lead.d.ts +10 -10
- 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 +4 -11
- package/build/app/settings.js +13 -5
- package/build/app/store.d.ts +4 -4
- package/build/assets/locales/ar.json +3 -1
- package/build/assets/locales/en.json +3 -1
- package/build/components/DatePicker/DatePicker.js +1 -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/Slide/Slide.d.ts +1 -1
- package/build/constants/app.d.ts +3 -2
- package/build/constants/app.js +1 -0
- package/build/constants/validation.d.ts +1 -0
- package/build/constants/validation.js +1 -0
- package/build/features/app/bank/bankStore.d.ts +9 -73
- package/build/features/app/bank/bankStore.js +68 -91
- package/build/features/app/brand/brandStore.d.ts +16 -103
- package/build/features/app/brand/brandStore.js +62 -49
- package/build/features/app/business/businessStore.d.ts +18 -162
- package/build/features/app/business/businessStore.js +4 -3
- package/build/features/app/connect/connectStore.d.ts +13 -121
- package/build/features/app/connect/connectStore.js +5 -4
- package/build/features/app/connectExpress/connectExpressStore.d.ts +22 -211
- package/build/features/app/connectExpress/connectExpressStore.js +9 -10
- package/build/features/app/entity/entityStore.d.ts +9 -74
- package/build/features/app/entity/entityStore.js +129 -152
- package/build/features/app/individual/individualStore.d.ts +21 -167
- package/build/features/app/individual/individualStore.js +176 -202
- package/build/features/app/password/passwordStore.d.ts +12 -102
- package/build/features/app/password/passwordStore.js +1 -1
- package/build/features/app/signIn/signInStore.d.ts +7 -61
- package/build/features/app/signIn/signInStore.js +1 -1
- package/build/features/app/tax/taxStore.d.ts +8 -62
- package/build/features/app/tax/taxStore.js +48 -62
- package/build/features/bank/screens/BankDetails/BankDetails.js +20 -5
- package/build/features/bank/screens/BankDetails/BankName.d.ts +4 -1
- package/build/features/bank/screens/BankDetails/BankName.js +8 -7
- package/build/features/bank/screens/BankDetails/BankStatement.d.ts +5 -2
- package/build/features/bank/screens/BankDetails/BankStatement.js +3 -8
- package/build/features/bank/screens/BankDetails/Beneficiary.d.ts +2 -1
- package/build/features/bank/screens/BankDetails/Beneficiary.js +8 -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 +2 -1
- package/build/features/bank/screens/BankDetails/IBAN.js +3 -3
- package/build/features/bank/screens/BankDetails/validation.d.ts +14 -14
- package/build/features/bank/screens/BankDetails/validation.js +16 -21
- package/build/features/bank/screens/Verify/OTPInput.js +5 -3
- package/build/features/brand/screens/BrandActivities/ActivitiesList.d.ts +15 -18
- package/build/features/brand/screens/BrandActivities/ActivitiesList.js +14 -9
- package/build/features/brand/screens/BrandActivities/BrandActivities.js +14 -5
- package/build/features/brand/screens/BrandActivities/CustomerBase.d.ts +12 -16
- package/build/features/brand/screens/BrandActivities/CustomerBase.js +16 -13
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/ExpectedCustomers.js +22 -9
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.d.ts +2 -1
- package/build/features/brand/screens/BrandActivities/ExpectedSalesRange.js +20 -7
- package/build/features/brand/screens/BrandActivities/RefundPolicy.d.ts +13 -6
- package/build/features/brand/screens/BrandActivities/RefundPolicy.js +23 -12
- package/build/features/brand/screens/BrandActivities/TAC.d.ts +14 -1
- 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 +20 -12
- package/build/features/brand/screens/BrandInfo/BrandLogo.d.ts +9 -0
- package/build/features/brand/screens/BrandInfo/BrandLogo.js +52 -0
- package/build/features/brand/screens/BrandInfo/BrandName.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/BrandName.js +3 -3
- package/build/features/brand/screens/BrandInfo/SalesChannels.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/SalesChannels.js +2 -1
- package/build/features/brand/screens/BrandInfo/Segments.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/Segments.js +12 -2
- package/build/features/brand/screens/BrandInfo/TeamSize.d.ts +2 -1
- package/build/features/brand/screens/BrandInfo/TeamSize.js +12 -2
- package/build/features/brand/screens/BrandInfo/validation.d.ts +6 -6
- package/build/features/brand/screens/BrandInfo/validation.js +36 -42
- package/build/features/brand/screens/Verify/OTPInput.js +5 -3
- package/build/features/business/screens/Activities/ActivitiesList.d.ts +12 -17
- package/build/features/business/screens/Activities/ActivitiesList.js +5 -5
- package/build/features/business/screens/Activities/OperationStartDate.d.ts +2 -2
- package/build/features/business/screens/Activities/OperationStartDate.js +2 -2
- package/build/features/business/screens/BusinessType/Article.d.ts +1 -1
- package/build/features/business/screens/BusinessType/LicenseList.js +1 -1
- package/build/features/business/screens/BusinessType/LicenseType.d.ts +5 -5
- package/build/features/business/screens/Customers/CustomerLocations.d.ts +10 -15
- package/build/features/business/screens/Customers/CustomerLocations.js +5 -5
- package/build/features/business/screens/Customers/ExpectedCustomers.js +12 -2
- package/build/features/business/screens/Customers/ExpectedSalesRange.js +12 -2
- package/build/features/business/screens/Customers/RefundPolicy.d.ts +5 -5
- package/build/features/business/screens/IDBOD/DOB.js +1 -1
- package/build/features/business/screens/Verify/OTPInput.js +5 -3
- package/build/features/connect/screens/Individual/Email.js +1 -1
- package/build/features/connect/screens/Merchant/BrandList.js +1 -1
- package/build/features/connect/screens/Merchant/BrandName.js +1 -1
- package/build/features/connect/screens/Merchant/Segments.js +6 -1
- package/build/features/connect/screens/Merchant/TeamSize.js +6 -1
- package/build/features/connect/screens/Merchant/validation.js +5 -5
- package/build/features/connectExpress/screens/Brand/Brand.js +1 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/BrandName.js +3 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +5 -3
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +7 -5
- 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 +7 -6
- 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 +9 -5
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.d.ts +2 -1
- package/build/features/connectExpress/screens/CollectIndividualInfo/Email.js +3 -3
- 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 +2 -2
- package/build/features/connectExpress/screens/Mobile/Mobile.js +4 -2
- 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 +2 -2
- 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/entity/screens/EntityCapital/ActivityList.d.ts +14 -18
- package/build/features/entity/screens/EntityCapital/ActivityList.js +20 -27
- package/build/features/entity/screens/EntityCapital/CapitalPaid.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalPaid.js +7 -3
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareCount.js +7 -3
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.d.ts +2 -1
- package/build/features/entity/screens/EntityCapital/CapitalShareValue.js +7 -3
- package/build/features/entity/screens/EntityCapital/EntityCapital.js +19 -17
- package/build/features/entity/screens/EntityCapital/validation.d.ts +10 -10
- package/build/features/entity/screens/EntityCapital/validation.js +4 -10
- package/build/features/entity/screens/EntityName/Article.d.ts +5 -2
- package/build/features/entity/screens/EntityName/Article.js +9 -6
- package/build/features/entity/screens/EntityName/EntityName.js +20 -5
- package/build/features/entity/screens/EntityName/EntityTypeList.d.ts +14 -18
- package/build/features/entity/screens/EntityName/EntityTypeList.js +24 -27
- package/build/features/entity/screens/EntityName/ExpiryDate.d.ts +4 -3
- package/build/features/entity/screens/EntityName/ExpiryDate.js +2 -2
- package/build/features/entity/screens/EntityName/IssuingDate.d.ts +4 -3
- package/build/features/entity/screens/EntityName/IssuingDate.js +2 -2
- package/build/features/entity/screens/EntityName/LegalName.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LegalName.js +8 -4
- package/build/features/entity/screens/EntityName/LicenseCertificate.d.ts +4 -1
- package/build/features/entity/screens/EntityName/LicenseCertificate.js +8 -9
- package/build/features/entity/screens/EntityName/LicenseNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityName/LicenseNumber.js +8 -5
- package/build/features/entity/screens/EntityName/UnifiedNumber.d.ts +2 -1
- package/build/features/entity/screens/EntityName/UnifiedNumber.js +8 -5
- 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/Verify/OTPInput.js +5 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/AdditionalIndividualInfo.js +25 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.d.ts +7 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/CivilIDFile.js +21 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/InfluencerSwitch.js +8 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/MonthlyIncome.js +25 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/Occupation.js +25 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.d.ts +6 -5
- package/build/features/individual/screens/AdditionalIndividualInfo/PEPSwitch.js +8 -6
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareCount.js +8 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/ShareValue.js +8 -3
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.d.ts +4 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SignatureFile.js +8 -9
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.d.ts +2 -1
- package/build/features/individual/screens/AdditionalIndividualInfo/SourceOfIncome.js +25 -25
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.d.ts +2 -2
- package/build/features/individual/screens/AdditionalIndividualInfo/validation.js +6 -11
- package/build/features/individual/screens/IndividualList/Email.js +1 -1
- package/build/features/individual/screens/IndividualList/IndividualList.d.ts +4 -4
- package/build/features/individual/screens/IndividualList/MobileNumber.js +0 -1
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCity.js +12 -2
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/BirthCountry.js +12 -2
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/DOB.js +3 -3
- package/build/features/individual/screens/IndividualPersonalInfo/Email.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Email.js +2 -4
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ExpiryDate.js +4 -5
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.d.ts +7 -6
- package/build/features/individual/screens/IndividualPersonalInfo/Gender.js +4 -2
- package/build/features/individual/screens/IndividualPersonalInfo/ID.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/ID.js +2 -7
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.d.ts +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/IndividualPersonalInfo.js +20 -4
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/IssuedCountry.js +13 -7
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/MobileNumber.js +11 -10
- package/build/features/individual/screens/IndividualPersonalInfo/Name.d.ts +2 -1
- package/build/features/individual/screens/IndividualPersonalInfo/Name.js +2 -2
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.d.ts +1 -0
- package/build/features/individual/screens/IndividualPersonalInfo/Nationality.js +13 -7
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.d.ts +1 -0
- package/build/features/individual/screens/IndividualPhoneInfo/MobileNumber.js +6 -3
- package/build/features/individual/screens/IndividualPhoneInfo/PhoneInfo.js +4 -2
- package/build/features/individual/screens/Verify/OTPInput.js +5 -3
- package/build/features/password/screens/Verify/OTPInput.js +5 -3
- package/build/features/shared/Address/CountryList.d.ts +9 -9
- package/build/features/shared/Address/CountryList.js +1 -1
- package/build/features/shared/Address/InputSelect.d.ts +9 -9
- package/build/features/shared/Address/InputSelect.js +2 -2
- package/build/features/shared/Button/EmailProvidersButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.d.ts +1 -1
- package/build/features/shared/Button/FlowsButtons.js +15 -20
- package/build/features/shared/Button/IndividualActionButtons.d.ts +1 -1
- package/build/features/shared/Containers/FeatureContainer.d.ts +1 -1
- package/build/features/shared/Containers/ScreenContainer.d.ts +1 -1
- package/build/features/shared/GenericError/GenericError.js +1 -1
- package/build/features/shared/Input/Input.d.ts +3 -3
- package/build/features/shared/Input/Input.js +2 -3
- 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 +2 -1
- package/build/features/shared/SalesChannels/SaleChannelIconsInput.js +5 -4
- package/build/features/shared/SalesChannels/SalesChannel.d.ts +2 -1
- package/build/features/shared/SalesChannels/SalesChannel.js +5 -4
- package/build/features/shared/UploadFile/FileUpload.d.ts +6 -4
- package/build/features/shared/UploadFile/FileUpload.js +19 -15
- 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 +5 -3
- package/build/features/shared/UploadFile/UploadWrapper.js +3 -2
- package/build/features/shared/UploadMultipleFile/UploadFile.d.ts +5 -4
- package/build/features/shared/UploadMultipleFile/UploadFile.js +14 -10
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.d.ts +4 -3
- package/build/features/shared/UploadMultipleFile/UploadMultipleFile.js +3 -3
- 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 +9 -4
- package/build/features/tax/screens/TaxDetails/TaxDocument.d.ts +4 -1
- package/build/features/tax/screens/TaxDetails/TaxDocument.js +3 -8
- package/build/features/tax/screens/TaxDetails/VATId.d.ts +4 -1
- package/build/features/tax/screens/TaxDetails/VATId.js +5 -7
- 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/hooks/index.d.ts +3 -0
- package/build/hooks/index.js +3 -0
- package/build/hooks/useAppConfig.d.ts +1 -1
- package/build/hooks/useAppConfig.js +4 -2
- package/build/hooks/useDataNoneEditable.d.ts +2 -0
- package/build/hooks/useDataNoneEditable.js +19 -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/utils/error.d.ts +1 -0
- package/build/utils/error.js +3 -0
- package/build/utils/object.d.ts +4 -0
- package/build/utils/object.js +17 -0
- package/build/utils/string.d.ts +1 -1
- package/build/utils/string.js +13 -7
- package/package.json +2 -2
- package/build/features/brand/screens/BrandActivities/OperationStartDate.d.ts +0 -20
- package/build/features/brand/screens/BrandActivities/OperationStartDate.js +0 -45
|
@@ -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 (
|
|
27
|
+
while (_) 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]) {
|
|
@@ -48,16 +48,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
var _a;
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import API from '../../../api';
|
|
51
|
-
import { FlowsTypes } from '../../../@types';
|
|
51
|
+
import { DocumentPurpose, FlowsTypes } from '../../../@types';
|
|
52
52
|
import { handleCurrentActiveScreen, handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
53
53
|
import { BANK_STEP_NAMES } from '../../../constants';
|
|
54
|
+
import { hasNoneEditableValue, sleep } from '../../../utils';
|
|
54
55
|
export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_a, thunkApi) {
|
|
55
56
|
var token = _a.token, isInternally = _a.isInternally;
|
|
56
57
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
-
var payload, data,
|
|
58
|
-
var _b, _c, _d
|
|
59
|
-
return __generator(this, function (
|
|
60
|
-
switch (
|
|
58
|
+
var payload, data, boardData, board_id, countryIso2;
|
|
59
|
+
var _b, _c, _d;
|
|
60
|
+
return __generator(this, function (_e) {
|
|
61
|
+
switch (_e.label) {
|
|
61
62
|
case 0:
|
|
62
63
|
payload = {
|
|
63
64
|
service_name: 'tap_email',
|
|
@@ -65,37 +66,29 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
65
66
|
};
|
|
66
67
|
return [4, API.leadService.verifyLeadToken(payload)];
|
|
67
68
|
case 1:
|
|
68
|
-
data = (
|
|
69
|
+
data = (_e.sent()).data;
|
|
69
70
|
boardData = undefined;
|
|
70
|
-
if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3,
|
|
71
|
+
if (!(!(data === null || data === void 0 ? void 0 : data.errors) && !(data === null || data === void 0 ? void 0 : data.mw_error))) return [3, 4];
|
|
71
72
|
board_id = data === null || data === void 0 ? void 0 : data.id;
|
|
72
|
-
if (!board_id) return [3,
|
|
73
|
-
return [4, API.boardService.retrieveBoardInfoStatus(board_id)];
|
|
74
|
-
case 2:
|
|
75
|
-
boardInfoData = _f.sent();
|
|
73
|
+
if (!board_id) return [3, 3];
|
|
76
74
|
return [4, API.boardService.retrieveBoardDetails(board_id)];
|
|
75
|
+
case 2:
|
|
76
|
+
boardData = _e.sent();
|
|
77
|
+
_e.label = 3;
|
|
77
78
|
case 3:
|
|
78
|
-
boardData = _f.sent();
|
|
79
|
-
_f.label = 4;
|
|
80
|
-
case 4:
|
|
81
79
|
countryIso2 = (_b = boardData === null || boardData === void 0 ? void 0 : boardData.entity) === null || _b === void 0 ? void 0 : _b.country;
|
|
82
80
|
if (countryIso2)
|
|
83
81
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
84
|
-
info = (boardInfoData || {}).info;
|
|
85
82
|
if (isInternally)
|
|
86
83
|
data.step_name = BANK_STEP_NAMES.BANK_INFO;
|
|
87
|
-
hasBankCompleted = ((_c = info === null || info === void 0 ? void 0 : info.find(function (flow) { return flow.name === 'bank'; })) === null || _c === void 0 ? void 0 : _c.status) === 'completed';
|
|
88
84
|
if (data.step_name === BANK_STEP_NAMES.PHONE_AUTH) {
|
|
89
85
|
thunkApi.dispatch(handleCurrentActiveScreen('BANK_VERIFY_STEP'));
|
|
90
86
|
}
|
|
91
|
-
else if (hasBankCompleted) {
|
|
92
|
-
thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
93
|
-
}
|
|
94
87
|
else if (data.step_name === BANK_STEP_NAMES.BANK_INFO) {
|
|
95
|
-
thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP'));
|
|
88
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
|
|
96
89
|
}
|
|
97
|
-
|
|
98
|
-
case
|
|
90
|
+
_e.label = 4;
|
|
91
|
+
case 4: return [2, {
|
|
99
92
|
data: data,
|
|
100
93
|
boardResponse: {
|
|
101
94
|
user: boardData === null || boardData === void 0 ? void 0 : boardData.user,
|
|
@@ -103,11 +96,10 @@ export var verifyLeadToken = createAsyncThunk('bankVerifyLeadToken', function (_
|
|
|
103
96
|
bank_account: boardData === null || boardData === void 0 ? void 0 : boardData.bank_account,
|
|
104
97
|
entity: boardData === null || boardData === void 0 ? void 0 : boardData.entity,
|
|
105
98
|
merchant: boardData === null || boardData === void 0 ? void 0 : boardData.merchant,
|
|
106
|
-
name: (
|
|
107
|
-
contact: (
|
|
99
|
+
name: (_c = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _c === void 0 ? void 0 : _c.names,
|
|
100
|
+
contact: (_d = boardData === null || boardData === void 0 ? void 0 : boardData.user) === null || _d === void 0 ? void 0 : _d.contact,
|
|
108
101
|
business: boardData === null || boardData === void 0 ? void 0 : boardData.business,
|
|
109
|
-
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals
|
|
110
|
-
flows: (boardInfoData === null || boardInfoData === void 0 ? void 0 : boardInfoData.info) || []
|
|
102
|
+
individuals: boardData === null || boardData === void 0 ? void 0 : boardData.individuals
|
|
111
103
|
},
|
|
112
104
|
token: token
|
|
113
105
|
}];
|
|
@@ -133,14 +125,13 @@ export var resendOTP = createAsyncThunk('resendOTPBank', function (params, thunk
|
|
|
133
125
|
});
|
|
134
126
|
}); });
|
|
135
127
|
export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
136
|
-
var _a, bank, settings, responseBody,
|
|
137
|
-
var _b, _c, _d
|
|
138
|
-
return __generator(this, function (
|
|
139
|
-
switch (
|
|
128
|
+
var _a, bank, settings, responseBody, payload, data;
|
|
129
|
+
var _b, _c, _d;
|
|
130
|
+
return __generator(this, function (_e) {
|
|
131
|
+
switch (_e.label) {
|
|
140
132
|
case 0:
|
|
141
133
|
_a = thunkApi.getState(), bank = _a.bank, settings = _a.settings;
|
|
142
134
|
responseBody = bank.data.verify.responseBody;
|
|
143
|
-
flows = (responseBody || {}).flows;
|
|
144
135
|
payload = {
|
|
145
136
|
data: params.otp,
|
|
146
137
|
service_name: (_b = responseBody === null || responseBody === void 0 ? void 0 : responseBody.verification_by) === null || _b === void 0 ? void 0 : _b.service_name,
|
|
@@ -150,16 +141,10 @@ export var verifyBankLeadOTP = createAsyncThunk('verifyBankLeadOTP', function (p
|
|
|
150
141
|
};
|
|
151
142
|
return [4, API.leadService.verifyLeadOTP(payload)];
|
|
152
143
|
case 1:
|
|
153
|
-
data = (
|
|
144
|
+
data = (_e.sent()).data;
|
|
154
145
|
if (!data.errors) {
|
|
155
146
|
(_d = (_c = settings.data.appConfig).onStepCompleted) === null || _d === void 0 ? void 0 : _d.call(_c, settings.data.activeScreen.name, { otp: params.otp });
|
|
156
|
-
|
|
157
|
-
if (hasBankCompleted) {
|
|
158
|
-
thunkApi.dispatch(handleNextScreenStep('BANK_SUCCESS_FOUR_FLOWS_BUTTONS_STEP'));
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP'));
|
|
162
|
-
}
|
|
147
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BANK_BANK_DETAILS_STEP')); });
|
|
163
148
|
}
|
|
164
149
|
return [2, { data: data, formData: params }];
|
|
165
150
|
}
|
|
@@ -180,56 +165,51 @@ export var retrieveBoardDetails = createAsyncThunk('retrieveBankEntityInfo', fun
|
|
|
180
165
|
});
|
|
181
166
|
}); });
|
|
182
167
|
export var createBankAccount = createAsyncThunk('createBankAccount', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
-
var _a, settings, bank, iban, beneficiaryName, bankName, bankStatementId, confirmPolicy,
|
|
184
|
-
var
|
|
185
|
-
return __generator(this, function (
|
|
186
|
-
switch (
|
|
168
|
+
var _a, settings, bank, iban, beneficiaryName, bankName, bankStatementId, confirmPolicy, _b, data_status, document, isIBANNonEditable, isBeneficiaryNameNonEditable, isBankNameNonEditable, isBankStatementIdNonEditable, isConfirmPolicyNonEditable, documentResponse, hasDocument, documentId, requestBody, data, documentBody;
|
|
169
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
170
|
+
return __generator(this, function (_m) {
|
|
171
|
+
switch (_m.label) {
|
|
187
172
|
case 0:
|
|
188
173
|
_a = thunkApi.getState(), settings = _a.settings, bank = _a.bank;
|
|
189
174
|
iban = params.iban, beneficiaryName = params.beneficiaryName, bankName = params.bankName, bankStatementId = params.bankStatementId, confirmPolicy = params.confirmPolicy;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
175
|
+
_b = ((_c = bank.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.bank_account) || {}, data_status = _b.data_status, document = _b.document;
|
|
176
|
+
isIBANNonEditable = hasNoneEditableValue(data_status, 'iban');
|
|
177
|
+
isBeneficiaryNameNonEditable = hasNoneEditableValue(data_status, 'beneficiary_name');
|
|
178
|
+
isBankNameNonEditable = hasNoneEditableValue(data_status, 'bank_name');
|
|
179
|
+
isBankStatementIdNonEditable = hasNoneEditableValue(data_status, 'bank_statement_file_id');
|
|
180
|
+
isConfirmPolicyNonEditable = hasNoneEditableValue(data_status, 'is_acknowledged');
|
|
195
181
|
documentResponse = undefined;
|
|
196
|
-
hasDocument =
|
|
197
|
-
documentId =
|
|
198
|
-
|
|
182
|
+
hasDocument = (bankStatementId || []).length > 0;
|
|
183
|
+
documentId = document === null || document === void 0 ? void 0 : document.id;
|
|
184
|
+
requestBody = {
|
|
185
|
+
wallet_id: (_h = (_g = (_f = (_e = (_d = bank.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.business) === null || _e === void 0 ? void 0 : _e.entity) === null || _f === void 0 ? void 0 : _f.merchant) === null || _g === void 0 ? void 0 : _g.wallet) === null || _h === void 0 ? void 0 : _h.id,
|
|
186
|
+
bank_account: __assign({ iban: isIBANNonEditable ? undefined : iban, beneficiary_name: isBeneficiaryNameNonEditable ? undefined : beneficiaryName, bank_name: isBankNameNonEditable ? undefined : bankName, is_acknowledged: isConfirmPolicyNonEditable ? undefined : confirmPolicy }, (!(isBankStatementIdNonEditable || documentId || !hasDocument) && {
|
|
187
|
+
document: {
|
|
188
|
+
type: DocumentPurpose.BANK_STATEMENT,
|
|
189
|
+
files: bankStatementId || []
|
|
190
|
+
}
|
|
191
|
+
})),
|
|
192
|
+
step_name: BANK_STEP_NAMES.BANK_INFO,
|
|
193
|
+
encryption_contract: ['bank_account.iban', 'bank_account.beneficiary_name', 'bank_account.bank_name']
|
|
194
|
+
};
|
|
195
|
+
return [4, API.entityService.createBankAccount(requestBody)];
|
|
196
|
+
case 1:
|
|
197
|
+
data = (_m.sent()).data;
|
|
198
|
+
if ((_j = data.errors) === null || _j === void 0 ? void 0 : _j.length)
|
|
199
|
+
throw new Error(data.errors[0].description);
|
|
200
|
+
if (!(!isBankStatementIdNonEditable && documentId && hasDocument)) return [3, 3];
|
|
199
201
|
documentBody = {
|
|
200
202
|
id: documentId,
|
|
201
203
|
files: bankStatementId || []
|
|
202
204
|
};
|
|
203
205
|
return [4, API.documentService.addFilesToExistingDocument(documentBody)];
|
|
204
|
-
case 1:
|
|
205
|
-
documentResponse = _k.sent();
|
|
206
|
-
_k.label = 2;
|
|
207
206
|
case 2:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
bank_account: {
|
|
211
|
-
iban: isIBANEditable ? iban : undefined,
|
|
212
|
-
beneficiary_name: isBeneficiaryNameEditable ? beneficiaryName : undefined,
|
|
213
|
-
bank_name: isBankNameEditable ? bankName : undefined,
|
|
214
|
-
is_acknowledged: confirmPolicy,
|
|
215
|
-
document: !documentId && hasDocument
|
|
216
|
-
? {
|
|
217
|
-
type: 'bank_statement',
|
|
218
|
-
files: bankStatementId || []
|
|
219
|
-
}
|
|
220
|
-
: undefined
|
|
221
|
-
},
|
|
222
|
-
step_name: BANK_STEP_NAMES.BANK_INFO,
|
|
223
|
-
encryption_contract: ['bank_account.iban', 'bank_account.beneficiary_name', 'bank_account.bank_name']
|
|
224
|
-
};
|
|
225
|
-
return [4, API.entityService.createBankAccount(requestBody)];
|
|
207
|
+
documentResponse = _m.sent();
|
|
208
|
+
_m.label = 3;
|
|
226
209
|
case 3:
|
|
227
|
-
data =
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
231
|
-
(_j = (_h = settings.data.appConfig).onStepCompleted) === null || _j === void 0 ? void 0 : _j.call(_h, settings.data.activeScreen.name, requestBody);
|
|
232
|
-
}
|
|
210
|
+
data.documentData = documentResponse;
|
|
211
|
+
thunkApi.dispatch(handleNextScreenStep());
|
|
212
|
+
(_l = (_k = settings.data.appConfig).onStepCompleted) === null || _l === void 0 ? void 0 : _l.call(_k, settings.data.activeScreen.name, requestBody);
|
|
233
213
|
return [2, { data: data, formData: params }];
|
|
234
214
|
}
|
|
235
215
|
});
|
|
@@ -330,10 +310,10 @@ export var bankSlice = createSlice({
|
|
|
330
310
|
state.customLoading = true;
|
|
331
311
|
})
|
|
332
312
|
.addCase(verifyLeadToken.fulfilled, function (state, action) {
|
|
333
|
-
var _a
|
|
313
|
+
var _a;
|
|
334
314
|
state.error = null;
|
|
335
315
|
state.customLoading = false;
|
|
336
|
-
var
|
|
316
|
+
var _b = action.payload, data = _b.data, token = _b.token, boardResponse = _b.boardResponse;
|
|
337
317
|
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
338
318
|
if (description) {
|
|
339
319
|
state.error = description;
|
|
@@ -341,9 +321,12 @@ export var bankSlice = createSlice({
|
|
|
341
321
|
}
|
|
342
322
|
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), boardResponse), state.data.verify.responseBody), { board_id: data.id });
|
|
343
323
|
state.data.verify.token = token;
|
|
344
|
-
|
|
345
|
-
state.data.bankData.
|
|
346
|
-
state.data.bankData.
|
|
324
|
+
var _c = (boardResponse === null || boardResponse === void 0 ? void 0 : boardResponse.bank_account) || {}, bank_name = _c.bank_name, beneficiary_name = _c.beneficiary_name, iban = _c.iban, is_acknowledged = _c.is_acknowledged;
|
|
325
|
+
state.data.bankData.bankName = bank_name || '';
|
|
326
|
+
state.data.bankData.beneficiaryName = beneficiary_name || '';
|
|
327
|
+
state.data.bankData.iban = iban || '';
|
|
328
|
+
if (is_acknowledged)
|
|
329
|
+
state.data.bankData.confirmPolicy = is_acknowledged;
|
|
347
330
|
})
|
|
348
331
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
349
332
|
state.error = action.error.message;
|
|
@@ -427,15 +410,9 @@ export var bankSlice = createSlice({
|
|
|
427
410
|
state.error = null;
|
|
428
411
|
})
|
|
429
412
|
.addCase(createBankAccount.fulfilled, function (state, action) {
|
|
430
|
-
var _a;
|
|
431
413
|
state.loading = false;
|
|
432
414
|
state.error = null;
|
|
433
|
-
var
|
|
434
|
-
var description = (((_a = data === null || data === void 0 ? void 0 : data.errors) === null || _a === void 0 ? void 0 : _a[0]) || {}).description;
|
|
435
|
-
if (description) {
|
|
436
|
-
state.error = description;
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
415
|
+
var _a = action.payload, data = _a.data, formData = _a.formData;
|
|
439
416
|
state.data.bankData = formData;
|
|
440
417
|
state.data.bankData.responseBody = data;
|
|
441
418
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState } from '../../../app/store';
|
|
2
|
-
import { BrandActivitiesFormValues, BrandFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
2
|
+
import { ActionState, BrandActivitiesFormValues, BrandFormValues, FlowsTypes, OTPFormValues, ResponseData, SharedState } from '../../../@types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
interface VerifyLeadTokenProps {
|
|
5
5
|
token: string;
|
|
@@ -23,28 +23,10 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
23
23
|
segmentsList: any;
|
|
24
24
|
teamSizeList: any;
|
|
25
25
|
token: string;
|
|
26
|
-
}, VerifyLeadTokenProps, {
|
|
27
|
-
state?: unknown;
|
|
28
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
29
|
-
extra?: unknown;
|
|
30
|
-
rejectValue?: unknown;
|
|
31
|
-
serializedErrorType?: unknown;
|
|
32
|
-
pendingMeta?: unknown;
|
|
33
|
-
fulfilledMeta?: unknown;
|
|
34
|
-
rejectedMeta?: unknown;
|
|
35
|
-
}>;
|
|
26
|
+
}, VerifyLeadTokenProps, {}>;
|
|
36
27
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
37
28
|
data: any;
|
|
38
|
-
}, void, {
|
|
39
|
-
state?: unknown;
|
|
40
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
41
|
-
extra?: unknown;
|
|
42
|
-
rejectValue?: unknown;
|
|
43
|
-
serializedErrorType?: unknown;
|
|
44
|
-
pendingMeta?: unknown;
|
|
45
|
-
fulfilledMeta?: unknown;
|
|
46
|
-
rejectedMeta?: unknown;
|
|
47
|
-
}>;
|
|
29
|
+
}, void, {}>;
|
|
48
30
|
export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
49
31
|
data: any;
|
|
50
32
|
boardResponse: {
|
|
@@ -63,28 +45,10 @@ export declare const verifyBrandLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
63
45
|
segmentsList: any;
|
|
64
46
|
teamSizeList: any;
|
|
65
47
|
formData: OTPFormValues;
|
|
66
|
-
}, OTPFormValues, {
|
|
67
|
-
state?: unknown;
|
|
68
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
69
|
-
extra?: unknown;
|
|
70
|
-
rejectValue?: unknown;
|
|
71
|
-
serializedErrorType?: unknown;
|
|
72
|
-
pendingMeta?: unknown;
|
|
73
|
-
fulfilledMeta?: unknown;
|
|
74
|
-
rejectedMeta?: unknown;
|
|
75
|
-
}>;
|
|
48
|
+
}, OTPFormValues, {}>;
|
|
76
49
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
77
50
|
data: any;
|
|
78
|
-
}, string, {
|
|
79
|
-
state?: unknown;
|
|
80
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
81
|
-
extra?: unknown;
|
|
82
|
-
rejectValue?: unknown;
|
|
83
|
-
serializedErrorType?: unknown;
|
|
84
|
-
pendingMeta?: unknown;
|
|
85
|
-
fulfilledMeta?: unknown;
|
|
86
|
-
rejectedMeta?: unknown;
|
|
87
|
-
}>;
|
|
51
|
+
}, string, {}>;
|
|
88
52
|
export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").AsyncThunk<{
|
|
89
53
|
response: any;
|
|
90
54
|
formData: {
|
|
@@ -94,83 +58,29 @@ export declare const checkBrandNameAvailability: import("@reduxjs/toolkit").Asyn
|
|
|
94
58
|
name: string;
|
|
95
59
|
cancelToken: CancelToken;
|
|
96
60
|
onSuccess?: (() => void) | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
state?: unknown;
|
|
99
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
100
|
-
extra?: unknown;
|
|
101
|
-
rejectValue?: unknown;
|
|
102
|
-
serializedErrorType?: unknown;
|
|
103
|
-
pendingMeta?: unknown;
|
|
104
|
-
fulfilledMeta?: unknown;
|
|
105
|
-
rejectedMeta?: unknown;
|
|
106
|
-
}>;
|
|
61
|
+
}, {}>;
|
|
107
62
|
export declare const updateBrand: import("@reduxjs/toolkit").AsyncThunk<{
|
|
108
63
|
data: any;
|
|
109
64
|
formData: Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">;
|
|
110
|
-
}, Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">, {
|
|
111
|
-
state?: unknown;
|
|
112
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
113
|
-
extra?: unknown;
|
|
114
|
-
rejectValue?: unknown;
|
|
115
|
-
serializedErrorType?: unknown;
|
|
116
|
-
pendingMeta?: unknown;
|
|
117
|
-
fulfilledMeta?: unknown;
|
|
118
|
-
rejectedMeta?: unknown;
|
|
119
|
-
}>;
|
|
65
|
+
}, Omit<BrandFormValues, "termAndConditionChecked" | "selectedBrandItem">, {}>;
|
|
120
66
|
export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
121
67
|
leadId: string;
|
|
122
|
-
}, {
|
|
123
|
-
state?: unknown;
|
|
124
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
125
|
-
extra?: unknown;
|
|
126
|
-
rejectValue?: unknown;
|
|
127
|
-
serializedErrorType?: unknown;
|
|
128
|
-
pendingMeta?: unknown;
|
|
129
|
-
fulfilledMeta?: unknown;
|
|
130
|
-
rejectedMeta?: unknown;
|
|
131
|
-
}>;
|
|
68
|
+
}, {}>;
|
|
132
69
|
export declare const updateBrandActivities: import("@reduxjs/toolkit").AsyncThunk<{
|
|
133
70
|
data: any;
|
|
134
71
|
formData: BrandActivitiesFormValues;
|
|
135
|
-
}, BrandActivitiesFormValues, {
|
|
136
|
-
state?: unknown;
|
|
137
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
138
|
-
extra?: unknown;
|
|
139
|
-
rejectValue?: unknown;
|
|
140
|
-
serializedErrorType?: unknown;
|
|
141
|
-
pendingMeta?: unknown;
|
|
142
|
-
fulfilledMeta?: unknown;
|
|
143
|
-
rejectedMeta?: unknown;
|
|
144
|
-
}>;
|
|
72
|
+
}, BrandActivitiesFormValues, {}>;
|
|
145
73
|
export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
146
74
|
customerBases: any;
|
|
147
75
|
expectedSales: any;
|
|
148
76
|
expectedCustomerSales: any;
|
|
149
77
|
countryISO2: string;
|
|
150
|
-
}, void, {
|
|
151
|
-
state?: unknown;
|
|
152
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
153
|
-
extra?: unknown;
|
|
154
|
-
rejectValue?: unknown;
|
|
155
|
-
serializedErrorType?: unknown;
|
|
156
|
-
pendingMeta?: unknown;
|
|
157
|
-
fulfilledMeta?: unknown;
|
|
158
|
-
rejectedMeta?: unknown;
|
|
159
|
-
}>;
|
|
78
|
+
}, void, {}>;
|
|
160
79
|
export declare const updateBoardSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
161
80
|
response: any;
|
|
162
81
|
formData: void;
|
|
163
|
-
} | undefined, void, {
|
|
164
|
-
|
|
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
|
-
}>;
|
|
173
|
-
type VerifyData = {
|
|
82
|
+
} | undefined, void, {}>;
|
|
83
|
+
declare type VerifyData = {
|
|
174
84
|
token: string;
|
|
175
85
|
};
|
|
176
86
|
export interface BrandData {
|
|
@@ -183,13 +93,16 @@ export interface BrandData {
|
|
|
183
93
|
export interface BrandState extends SharedState<BrandData> {
|
|
184
94
|
customLoading?: boolean;
|
|
185
95
|
uploading?: boolean;
|
|
96
|
+
uploadingBrandLogo?: boolean;
|
|
186
97
|
}
|
|
187
98
|
export declare const brandSlice: import("@reduxjs/toolkit").Slice<BrandState, {
|
|
188
99
|
clearError: (state: BrandState) => void;
|
|
189
100
|
stopLoader: (state: BrandState) => void;
|
|
190
101
|
resetOTPScreen: (state: BrandState) => void;
|
|
102
|
+
uploadingBrandLogoStatus: (state: BrandState, action: ActionState<boolean>) => void;
|
|
103
|
+
clearBrandLogo: (state: BrandState) => void;
|
|
191
104
|
}, "brand/store">;
|
|
192
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"
|
|
105
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, uploadingBrandLogoStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, clearBrandLogo: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
193
106
|
declare const _default: import("redux").Reducer<BrandState, import("redux").AnyAction>;
|
|
194
107
|
export default _default;
|
|
195
108
|
export declare const brandSelector: (state: RootState) => BrandState;
|