@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]) {
|
|
@@ -62,7 +62,7 @@ import API from '../../../api';
|
|
|
62
62
|
import { FlowsTypes } from '../../../@types';
|
|
63
63
|
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
64
64
|
import { BRAND_STEP_NAMES } from '../../../constants';
|
|
65
|
-
import { isKW, isTwitter, isWebsite, sleep } from '../../../utils';
|
|
65
|
+
import { hasNoneEditableValue, isKW, isTwitter, isWebsite, mapSalesChannel, sleep } from '../../../utils';
|
|
66
66
|
export var verifyLeadToken = createAsyncThunk('brandVerifyLeadToken', function (_a, thunkApi) {
|
|
67
67
|
var token = _a.token, isInternally = _a.isInternally;
|
|
68
68
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -194,7 +194,7 @@ export var verifyBrandLeadOTP = createAsyncThunk('verifyBrandLeadOTP', function
|
|
|
194
194
|
return [4, API.dataService.getTeamSize({ page: 0 })];
|
|
195
195
|
case 6:
|
|
196
196
|
teamSizeList = _h.sent();
|
|
197
|
-
thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP'));
|
|
197
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep('BRAND_INFO_STEP')); });
|
|
198
198
|
return [2, {
|
|
199
199
|
data: data,
|
|
200
200
|
boardResponse: {
|
|
@@ -257,19 +257,20 @@ export var checkBrandNameAvailability = createAsyncThunk('checkBrandNameAvailabi
|
|
|
257
257
|
});
|
|
258
258
|
});
|
|
259
259
|
export var updateBrand = createAsyncThunk('brandUpdateBrand', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
-
var _a, settings, brand,
|
|
261
|
-
var
|
|
262
|
-
return __generator(this, function (
|
|
263
|
-
switch (
|
|
260
|
+
var _a, settings, brand, _b, id, data_status, isNameNonEditable, isChannelServicesNonEditable, isSegmentTypeNonEditable, isSegmentTeamsNonEditable, salesChannels, brandName, segment, teamSize, brandLogoId, segmentId, teamSizeId, getAddress, channel_services, requestBody, brandData, activities, activityList;
|
|
261
|
+
var _c, _d, _e, _f;
|
|
262
|
+
return __generator(this, function (_g) {
|
|
263
|
+
switch (_g.label) {
|
|
264
264
|
case 0:
|
|
265
265
|
_a = thunkApi.getState(), settings = _a.settings, brand = _a.brand;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
266
|
+
_b = ((_c = brand.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.brand) || {}, id = _b.id, data_status = _b.data_status;
|
|
267
|
+
isNameNonEditable = hasNoneEditableValue(data_status, 'name');
|
|
268
|
+
isChannelServicesNonEditable = hasNoneEditableValue(data_status, 'channel_services');
|
|
269
|
+
isSegmentTypeNonEditable = hasNoneEditableValue(data_status, 'segment.type');
|
|
270
|
+
isSegmentTeamsNonEditable = hasNoneEditableValue(data_status, 'segment.teams');
|
|
271
|
+
salesChannels = params.salesChannels, brandName = params.brandName, segment = params.segment, teamSize = params.teamSize, brandLogoId = params.brandLogoId;
|
|
272
|
+
segmentId = isSegmentTypeNonEditable ? undefined : segment && { id: segment.id };
|
|
273
|
+
teamSizeId = isSegmentTeamsNonEditable ? undefined : teamSize && { id: teamSize.id };
|
|
273
274
|
getAddress = function (value, isTwitter, isWeb) {
|
|
274
275
|
if (isTwitter)
|
|
275
276
|
return '@' + value.replaceAll('@', '');
|
|
@@ -277,8 +278,9 @@ export var updateBrand = createAsyncThunk('brandUpdateBrand', function (params,
|
|
|
277
278
|
return 'https://www.' + value.replaceAll('https://www.', '');
|
|
278
279
|
return value;
|
|
279
280
|
};
|
|
280
|
-
channel_services =
|
|
281
|
-
?
|
|
281
|
+
channel_services = isChannelServicesNonEditable
|
|
282
|
+
? undefined
|
|
283
|
+
: salesChannels.map(function (channel) {
|
|
282
284
|
var _a;
|
|
283
285
|
return {
|
|
284
286
|
id: channel.id,
|
|
@@ -287,33 +289,33 @@ export var updateBrand = createAsyncThunk('brandUpdateBrand', function (params,
|
|
|
287
289
|
return { id: sub.id, address: getAddress(sub.address || '', isTwitter(sub.code), isWebsite(sub.code)) };
|
|
288
290
|
})
|
|
289
291
|
};
|
|
290
|
-
})
|
|
291
|
-
: undefined;
|
|
292
|
+
});
|
|
292
293
|
requestBody = {
|
|
293
294
|
id: id,
|
|
294
|
-
name:
|
|
295
|
-
|
|
295
|
+
name: isNameNonEditable || !brandName ? undefined : { en: brandName, ar: brandName },
|
|
296
|
+
logo: brandLogoId,
|
|
297
|
+
segment: !segmentId && !teamSizeId ? undefined : { type: segmentId, team: teamSizeId },
|
|
296
298
|
channel_services: channel_services
|
|
297
299
|
};
|
|
298
300
|
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
299
301
|
case 1:
|
|
300
|
-
brandData = (
|
|
301
|
-
activities = (((
|
|
302
|
+
brandData = (_g.sent()).brand;
|
|
303
|
+
activities = (((_d = brand.data.verify.responseBody) === null || _d === void 0 ? void 0 : _d.entity) || {}).activities;
|
|
302
304
|
return [4, thunkApi.dispatch(retrieveDataList())];
|
|
303
305
|
case 2:
|
|
304
|
-
|
|
306
|
+
_g.sent();
|
|
305
307
|
if (activities) {
|
|
306
308
|
brandData = __assign(__assign({}, brandData), { entity_activities: activities || {} });
|
|
307
309
|
}
|
|
308
310
|
if (!!activities) return [3, 4];
|
|
309
311
|
return [4, API.dataService.getActivities()];
|
|
310
312
|
case 3:
|
|
311
|
-
activityList = (
|
|
313
|
+
activityList = (_g.sent()).list;
|
|
312
314
|
brandData = __assign(__assign({}, brandData), { entity_activities: activityList || {} });
|
|
313
|
-
|
|
315
|
+
_g.label = 4;
|
|
314
316
|
case 4:
|
|
315
|
-
thunkApi.dispatch(handleNextScreenStep());
|
|
316
|
-
(
|
|
317
|
+
sleep(100).then(function () { return thunkApi.dispatch(handleNextScreenStep()); });
|
|
318
|
+
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, id);
|
|
317
319
|
return [2, { data: __assign({}, brandData), formData: params }];
|
|
318
320
|
}
|
|
319
321
|
});
|
|
@@ -330,22 +332,23 @@ export var retrieveEntityList = createAsyncThunk('retrieveEntityList', function
|
|
|
330
332
|
});
|
|
331
333
|
}); });
|
|
332
334
|
export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities', function (params, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
333
|
-
var _a, settings, brand,
|
|
334
|
-
var
|
|
335
|
-
return __generator(this, function (
|
|
336
|
-
switch (
|
|
335
|
+
var _a, settings, brand, _b, data_status, id, isActivitiesNonEditable, isCustomerBaseLocationNonEditable, isCustomerBaseNonEditable, isTermsNonEditable, isSalesRangeNonEditable, activities, customerLocations, expectedCustomer, expectedSale, requestBody, customerLocation, customerBaseId, salesId, customerBase, brandData;
|
|
336
|
+
var _c, _d, _e;
|
|
337
|
+
return __generator(this, function (_f) {
|
|
338
|
+
switch (_f.label) {
|
|
337
339
|
case 0:
|
|
338
340
|
_a = thunkApi.getState(), settings = _a.settings, brand = _a.brand;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
341
|
+
_b = ((_c = brand.data.verify.responseBody) === null || _c === void 0 ? void 0 : _c.brand) || {}, data_status = _b.data_status, id = _b.id;
|
|
342
|
+
isActivitiesNonEditable = hasNoneEditableValue(data_status, 'activities');
|
|
343
|
+
isCustomerBaseLocationNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'customer_base_location');
|
|
344
|
+
isCustomerBaseNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'customer_base');
|
|
345
|
+
isTermsNonEditable = hasNoneEditableValue(data_status, 'terms');
|
|
346
|
+
isSalesRangeNonEditable = hasNoneEditableValue(data_status === null || data_status === void 0 ? void 0 : data_status.operations, 'sales_range');
|
|
344
347
|
activities = params.activities, customerLocations = params.customerLocations, expectedCustomer = params.expectedCustomer, expectedSale = params.expectedSale;
|
|
345
348
|
requestBody = {
|
|
346
349
|
id: id,
|
|
347
|
-
activities:
|
|
348
|
-
term: ['general', 'refund', 'chargeback'],
|
|
350
|
+
activities: isActivitiesNonEditable ? undefined : activities,
|
|
351
|
+
term: isTermsNonEditable ? undefined : ['general', 'refund', 'chargeback'],
|
|
349
352
|
step_name: BRAND_STEP_NAMES.BRAND_ACTIVITIES
|
|
350
353
|
};
|
|
351
354
|
customerLocation = customerLocations.map(function (location) { return ({
|
|
@@ -353,17 +356,17 @@ export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities'
|
|
|
353
356
|
}); });
|
|
354
357
|
customerBaseId = (expectedCustomer === null || expectedCustomer === void 0 ? void 0 : expectedCustomer.id) && { id: expectedCustomer.id, period: 'monthly' };
|
|
355
358
|
salesId = (expectedSale === null || expectedSale === void 0 ? void 0 : expectedSale.id) && { id: expectedSale.id, period: 'monthly' };
|
|
356
|
-
customerBase = (customerBaseId || customerLocation.length) && __assign(__assign({}, (customerBaseId && { id: expectedCustomer.id, period: 'monthly' })), (customerLocation.length && { locations: customerLocation }));
|
|
357
|
-
if (customerBase)
|
|
359
|
+
customerBase = (customerBaseId || customerLocation.length) && __assign(__assign({}, (customerBaseId && !isCustomerBaseNonEditable && { id: expectedCustomer.id, period: 'monthly' })), (customerLocation.length && !isCustomerBaseLocationNonEditable && { locations: customerLocation }));
|
|
360
|
+
if (customerBase && !(isCustomerBaseNonEditable && isCustomerBaseLocationNonEditable))
|
|
358
361
|
requestBody = __assign(__assign({}, requestBody), { operations: __assign(__assign({}, requestBody.operations), { customer_base: customerBase }) });
|
|
359
|
-
if (salesId &&
|
|
362
|
+
if (salesId && !isSalesRangeNonEditable) {
|
|
360
363
|
requestBody = __assign(__assign({}, requestBody), { operations: __assign(__assign({}, requestBody.operations), { sales: salesId }) });
|
|
361
364
|
}
|
|
362
365
|
return [4, API.brandService.updateBrandInfo(requestBody)];
|
|
363
366
|
case 1:
|
|
364
|
-
brandData = (
|
|
367
|
+
brandData = (_f.sent()).data;
|
|
365
368
|
thunkApi.dispatch(handleNextScreenStep());
|
|
366
|
-
(
|
|
369
|
+
(_e = (_d = settings.data.appConfig).onStepCompleted) === null || _e === void 0 ? void 0 : _e.call(_d, settings.data.activeScreen.name, id);
|
|
367
370
|
return [2, { data: __assign({}, brandData), formData: params }];
|
|
368
371
|
}
|
|
369
372
|
});
|
|
@@ -434,6 +437,7 @@ var initialState = {
|
|
|
434
437
|
loading: false,
|
|
435
438
|
customLoading: false,
|
|
436
439
|
uploading: false,
|
|
440
|
+
uploadingBrandLogo: false,
|
|
437
441
|
data: {
|
|
438
442
|
flowName: FlowsTypes.BRAND,
|
|
439
443
|
verify: {
|
|
@@ -469,6 +473,13 @@ export var brandSlice = createSlice({
|
|
|
469
473
|
},
|
|
470
474
|
resetOTPScreen: function (state) {
|
|
471
475
|
state.data.otpData.otp = '';
|
|
476
|
+
},
|
|
477
|
+
uploadingBrandLogoStatus: function (state, action) {
|
|
478
|
+
state.uploadingBrandLogo = action.payload;
|
|
479
|
+
},
|
|
480
|
+
clearBrandLogo: function (state) {
|
|
481
|
+
var brand = (state.data.verify.responseBody || {}).brand;
|
|
482
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { brand: __assign(__assign({}, brand), { logo_details: undefined, logo: undefined }) });
|
|
472
483
|
}
|
|
473
484
|
},
|
|
474
485
|
extraReducers: function (builder) {
|
|
@@ -505,8 +516,9 @@ export var brandSlice = createSlice({
|
|
|
505
516
|
});
|
|
506
517
|
state.data.brandData.segment = selectedSegment;
|
|
507
518
|
state.data.brandData.teamSize = selectedTeamSize;
|
|
508
|
-
|
|
509
|
-
state.data.
|
|
519
|
+
var mappedSalesChannels = mapSalesChannel((brand === null || brand === void 0 ? void 0 : brand.channel_services) || []);
|
|
520
|
+
state.data.brandData.salesChannels = mappedSalesChannels;
|
|
521
|
+
state.data.verify.responseBody = __assign(__assign(__assign(__assign({}, data), state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], salesChannels: mappedSalesChannels, activities: entity === null || entity === void 0 ? void 0 : entity.activities, segmentsList: segmentsList, teamSizeList: teamSizeList });
|
|
510
522
|
state.data.verify.token = token;
|
|
511
523
|
})
|
|
512
524
|
.addCase(verifyLeadToken.rejected, function (state, action) {
|
|
@@ -547,7 +559,8 @@ export var brandSlice = createSlice({
|
|
|
547
559
|
})) === null || _c === void 0 ? void 0 : _c[0];
|
|
548
560
|
state.data.brandData.segment = selectedSegment;
|
|
549
561
|
state.data.brandData.teamSize = selectedTeamSize;
|
|
550
|
-
|
|
562
|
+
var mappedSalesChannels = mapSalesChannel((brand === null || brand === void 0 ? void 0 : brand.channel_services) || []);
|
|
563
|
+
state.data.brandData.salesChannels = mappedSalesChannels;
|
|
551
564
|
(_d = brand === null || brand === void 0 ? void 0 : brand.terms) === null || _d === void 0 ? void 0 : _d.forEach(function (element) {
|
|
552
565
|
if ((element === null || element === void 0 ? void 0 : element.term) === 'general') {
|
|
553
566
|
state.data.brandActivities.termAndConditionChecked = element.agree;
|
|
@@ -559,7 +572,7 @@ export var brandSlice = createSlice({
|
|
|
559
572
|
state.data.brandActivities.refundPolicy = element.agree;
|
|
560
573
|
}
|
|
561
574
|
});
|
|
562
|
-
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], activities: entity === null || entity === void 0 ? void 0 : entity.activities, salesChannels:
|
|
575
|
+
state.data.verify.responseBody = __assign(__assign(__assign({}, state.data.verify.responseBody), boardResponse), { board_id: data.id, channel_list: (salesChannels === null || salesChannels === void 0 ? void 0 : salesChannels.list) || [], activities: entity === null || entity === void 0 ? void 0 : entity.activities, salesChannels: mappedSalesChannels, segmentsList: segmentsList, teamSizeList: teamSizeList });
|
|
563
576
|
})
|
|
564
577
|
.addCase(verifyBrandLeadOTP.rejected, function (state, action) {
|
|
565
578
|
state.loading = false;
|
|
@@ -600,7 +613,7 @@ export var brandSlice = createSlice({
|
|
|
600
613
|
state.data.brandActivities.expectedSale = sales;
|
|
601
614
|
if (!!customerBase)
|
|
602
615
|
state.data.brandActivities.expectedCustomer = customerBase;
|
|
603
|
-
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { activities:
|
|
616
|
+
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { activities: entity_activities });
|
|
604
617
|
})
|
|
605
618
|
.addCase(updateBrandActivities.rejected, function (state, action) {
|
|
606
619
|
state.loading = false;
|
|
@@ -666,6 +679,6 @@ export var brandSlice = createSlice({
|
|
|
666
679
|
});
|
|
667
680
|
}
|
|
668
681
|
});
|
|
669
|
-
export var clearError = (_a = brandSlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen;
|
|
682
|
+
export var clearError = (_a = brandSlice.actions, _a.clearError), stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen, uploadingBrandLogoStatus = _a.uploadingBrandLogoStatus, clearBrandLogo = _a.clearBrandLogo;
|
|
670
683
|
export default brandSlice.reducer;
|
|
671
684
|
export var brandSelector = function (state) { return state.brand; };
|
|
@@ -14,28 +14,10 @@ export declare const verifyLeadToken: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
14
14
|
leadData?: undefined;
|
|
15
15
|
brandData?: undefined;
|
|
16
16
|
boardId?: undefined;
|
|
17
|
-
}, string, {
|
|
18
|
-
state?: unknown;
|
|
19
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
20
|
-
extra?: unknown;
|
|
21
|
-
rejectValue?: unknown;
|
|
22
|
-
serializedErrorType?: unknown;
|
|
23
|
-
pendingMeta?: unknown;
|
|
24
|
-
fulfilledMeta?: unknown;
|
|
25
|
-
rejectedMeta?: unknown;
|
|
26
|
-
}>;
|
|
17
|
+
}, string, {}>;
|
|
27
18
|
export declare const resendOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
28
19
|
data: any;
|
|
29
|
-
}, void, {
|
|
30
|
-
state?: unknown;
|
|
31
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
32
|
-
extra?: unknown;
|
|
33
|
-
rejectValue?: unknown;
|
|
34
|
-
serializedErrorType?: unknown;
|
|
35
|
-
pendingMeta?: unknown;
|
|
36
|
-
fulfilledMeta?: unknown;
|
|
37
|
-
rejectedMeta?: unknown;
|
|
38
|
-
}>;
|
|
20
|
+
}, void, {}>;
|
|
39
21
|
export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
40
22
|
data: any;
|
|
41
23
|
formData: {
|
|
@@ -44,44 +26,17 @@ export declare const verifyLeadOTP: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
44
26
|
};
|
|
45
27
|
brand: any;
|
|
46
28
|
leadData: any;
|
|
47
|
-
}, OTPFormValues, {
|
|
48
|
-
state?: unknown;
|
|
49
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
50
|
-
extra?: unknown;
|
|
51
|
-
rejectValue?: unknown;
|
|
52
|
-
serializedErrorType?: unknown;
|
|
53
|
-
pendingMeta?: unknown;
|
|
54
|
-
fulfilledMeta?: unknown;
|
|
55
|
-
rejectedMeta?: unknown;
|
|
56
|
-
}>;
|
|
29
|
+
}, OTPFormValues, {}>;
|
|
57
30
|
interface verifyPACIParams {
|
|
58
31
|
onSuccess?: () => void;
|
|
59
32
|
}
|
|
60
33
|
export declare const verifyPACI: import("@reduxjs/toolkit").AsyncThunk<{
|
|
61
34
|
response: any;
|
|
62
|
-
}, verifyPACIParams, {
|
|
63
|
-
state?: unknown;
|
|
64
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
65
|
-
extra?: unknown;
|
|
66
|
-
rejectValue?: unknown;
|
|
67
|
-
serializedErrorType?: unknown;
|
|
68
|
-
pendingMeta?: unknown;
|
|
69
|
-
fulfilledMeta?: unknown;
|
|
70
|
-
rejectedMeta?: unknown;
|
|
71
|
-
}>;
|
|
35
|
+
}, verifyPACIParams, {}>;
|
|
72
36
|
export declare const createCivilIdAuth: import("@reduxjs/toolkit").AsyncThunk<{
|
|
73
37
|
response: any;
|
|
74
38
|
formData: CivilFormValues;
|
|
75
|
-
}, CivilFormValues, {
|
|
76
|
-
state?: unknown;
|
|
77
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
78
|
-
extra?: unknown;
|
|
79
|
-
rejectValue?: unknown;
|
|
80
|
-
serializedErrorType?: unknown;
|
|
81
|
-
pendingMeta?: unknown;
|
|
82
|
-
fulfilledMeta?: unknown;
|
|
83
|
-
rejectedMeta?: unknown;
|
|
84
|
-
}>;
|
|
39
|
+
}, CivilFormValues, {}>;
|
|
85
40
|
export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
86
41
|
data: any;
|
|
87
42
|
formData: {
|
|
@@ -90,66 +45,21 @@ export declare const updateLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
90
45
|
dob: string;
|
|
91
46
|
termAndConditionChecked?: boolean | undefined;
|
|
92
47
|
};
|
|
93
|
-
}, NIDFormValues, {
|
|
94
|
-
|
|
95
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
96
|
-
extra?: unknown;
|
|
97
|
-
rejectValue?: unknown;
|
|
98
|
-
serializedErrorType?: unknown;
|
|
99
|
-
pendingMeta?: unknown;
|
|
100
|
-
fulfilledMeta?: unknown;
|
|
101
|
-
rejectedMeta?: unknown;
|
|
102
|
-
}>;
|
|
103
|
-
export declare const resendOTPLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<any, void, {
|
|
104
|
-
state?: unknown;
|
|
105
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
106
|
-
extra?: unknown;
|
|
107
|
-
rejectValue?: unknown;
|
|
108
|
-
serializedErrorType?: unknown;
|
|
109
|
-
pendingMeta?: unknown;
|
|
110
|
-
fulfilledMeta?: unknown;
|
|
111
|
-
rejectedMeta?: unknown;
|
|
112
|
-
}>;
|
|
48
|
+
}, NIDFormValues, {}>;
|
|
49
|
+
export declare const resendOTPLeadIdentity: import("@reduxjs/toolkit").AsyncThunk<any, void, {}>;
|
|
113
50
|
export declare const retrieveEntityList: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
114
51
|
leadId: string;
|
|
115
|
-
}, {
|
|
116
|
-
state?: unknown;
|
|
117
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
118
|
-
extra?: unknown;
|
|
119
|
-
rejectValue?: unknown;
|
|
120
|
-
serializedErrorType?: unknown;
|
|
121
|
-
pendingMeta?: unknown;
|
|
122
|
-
fulfilledMeta?: unknown;
|
|
123
|
-
rejectedMeta?: unknown;
|
|
124
|
-
}>;
|
|
52
|
+
}, {}>;
|
|
125
53
|
export declare const retrieveBoardDetails: import("@reduxjs/toolkit").AsyncThunk<{
|
|
126
54
|
data: any;
|
|
127
|
-
}, string, {
|
|
128
|
-
state?: unknown;
|
|
129
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
130
|
-
extra?: unknown;
|
|
131
|
-
rejectValue?: unknown;
|
|
132
|
-
serializedErrorType?: unknown;
|
|
133
|
-
pendingMeta?: unknown;
|
|
134
|
-
fulfilledMeta?: unknown;
|
|
135
|
-
rejectedMeta?: unknown;
|
|
136
|
-
}>;
|
|
55
|
+
}, string, {}>;
|
|
137
56
|
export declare const updateLeadBusinessType: import("@reduxjs/toolkit").AsyncThunk<{
|
|
138
57
|
data: any;
|
|
139
58
|
formData: BusinessTypeFormValues;
|
|
140
59
|
accountData: any;
|
|
141
60
|
documentData: any;
|
|
142
61
|
entityData: any;
|
|
143
|
-
}, BusinessTypeFormValues, {
|
|
144
|
-
state?: unknown;
|
|
145
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
146
|
-
extra?: unknown;
|
|
147
|
-
rejectValue?: unknown;
|
|
148
|
-
serializedErrorType?: unknown;
|
|
149
|
-
pendingMeta?: unknown;
|
|
150
|
-
fulfilledMeta?: unknown;
|
|
151
|
-
rejectedMeta?: unknown;
|
|
152
|
-
}>;
|
|
62
|
+
}, BusinessTypeFormValues, {}>;
|
|
153
63
|
interface UploadArticleParams {
|
|
154
64
|
file: File;
|
|
155
65
|
onProgress?: (value: number) => void;
|
|
@@ -158,86 +68,32 @@ interface UploadArticleParams {
|
|
|
158
68
|
}
|
|
159
69
|
export declare const uploadArticle: import("@reduxjs/toolkit").AsyncThunk<{
|
|
160
70
|
data: any;
|
|
161
|
-
}, UploadArticleParams, {
|
|
162
|
-
state?: unknown;
|
|
163
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
164
|
-
extra?: unknown;
|
|
165
|
-
rejectValue?: unknown;
|
|
166
|
-
serializedErrorType?: unknown;
|
|
167
|
-
pendingMeta?: unknown;
|
|
168
|
-
fulfilledMeta?: unknown;
|
|
169
|
-
rejectedMeta?: unknown;
|
|
170
|
-
}>;
|
|
71
|
+
}, UploadArticleParams, {}>;
|
|
171
72
|
export declare const updateActivitiesInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
172
73
|
data: any;
|
|
173
74
|
formData: {
|
|
174
75
|
activities: Activity[] | undefined;
|
|
175
76
|
operationStartDate: string;
|
|
176
77
|
};
|
|
177
|
-
}, ActivitiesFormValues, {
|
|
178
|
-
state?: unknown;
|
|
179
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
180
|
-
extra?: unknown;
|
|
181
|
-
rejectValue?: unknown;
|
|
182
|
-
serializedErrorType?: unknown;
|
|
183
|
-
pendingMeta?: unknown;
|
|
184
|
-
fulfilledMeta?: unknown;
|
|
185
|
-
rejectedMeta?: unknown;
|
|
186
|
-
}>;
|
|
78
|
+
}, ActivitiesFormValues, {}>;
|
|
187
79
|
export declare const retrieveDataList: import("@reduxjs/toolkit").AsyncThunk<{
|
|
188
80
|
customerBases: any;
|
|
189
81
|
expectedSales: any;
|
|
190
82
|
expectedCustomerSales: any;
|
|
191
83
|
countryISO2: string;
|
|
192
|
-
}, void, {
|
|
193
|
-
state?: unknown;
|
|
194
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
195
|
-
extra?: unknown;
|
|
196
|
-
rejectValue?: unknown;
|
|
197
|
-
serializedErrorType?: unknown;
|
|
198
|
-
pendingMeta?: unknown;
|
|
199
|
-
fulfilledMeta?: unknown;
|
|
200
|
-
rejectedMeta?: unknown;
|
|
201
|
-
}>;
|
|
84
|
+
}, void, {}>;
|
|
202
85
|
export declare const updateCustomersInfo: import("@reduxjs/toolkit").AsyncThunk<{
|
|
203
86
|
data: any;
|
|
204
87
|
formData: CustomersFormValues;
|
|
205
|
-
}, CustomersFormValues, {
|
|
206
|
-
state?: unknown;
|
|
207
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
208
|
-
extra?: unknown;
|
|
209
|
-
rejectValue?: unknown;
|
|
210
|
-
serializedErrorType?: unknown;
|
|
211
|
-
pendingMeta?: unknown;
|
|
212
|
-
fulfilledMeta?: unknown;
|
|
213
|
-
rejectedMeta?: unknown;
|
|
214
|
-
}>;
|
|
88
|
+
}, CustomersFormValues, {}>;
|
|
215
89
|
export declare const updateLeadSuccess: import("@reduxjs/toolkit").AsyncThunk<{
|
|
216
90
|
response: any;
|
|
217
91
|
formData: void;
|
|
218
|
-
} | undefined, void, {
|
|
219
|
-
state?: unknown;
|
|
220
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
221
|
-
extra?: unknown;
|
|
222
|
-
rejectValue?: unknown;
|
|
223
|
-
serializedErrorType?: unknown;
|
|
224
|
-
pendingMeta?: unknown;
|
|
225
|
-
fulfilledMeta?: unknown;
|
|
226
|
-
rejectedMeta?: unknown;
|
|
227
|
-
}>;
|
|
92
|
+
} | undefined, void, {}>;
|
|
228
93
|
export declare const updateStepName: import("@reduxjs/toolkit").AsyncThunk<{
|
|
229
94
|
response: any;
|
|
230
|
-
}, string, {
|
|
231
|
-
|
|
232
|
-
dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
|
|
233
|
-
extra?: unknown;
|
|
234
|
-
rejectValue?: unknown;
|
|
235
|
-
serializedErrorType?: unknown;
|
|
236
|
-
pendingMeta?: unknown;
|
|
237
|
-
fulfilledMeta?: unknown;
|
|
238
|
-
rejectedMeta?: unknown;
|
|
239
|
-
}>;
|
|
240
|
-
type VerifyData = {
|
|
95
|
+
}, string, {}>;
|
|
96
|
+
declare type VerifyData = {
|
|
241
97
|
token: string;
|
|
242
98
|
};
|
|
243
99
|
export interface BusinessData {
|
|
@@ -267,7 +123,7 @@ export declare const businessSlice: import("@reduxjs/toolkit").Slice<BusinessSta
|
|
|
267
123
|
clearArticleId: (state: BusinessState) => void;
|
|
268
124
|
uploadingStatus: (state: BusinessState, action: ActionState<boolean>) => void;
|
|
269
125
|
}, "business/store">;
|
|
270
|
-
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<
|
|
126
|
+
export declare const clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, stopLoader: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, resetOTPScreen: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearArticleId: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, uploadingStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
271
127
|
declare const _default: import("redux").Reducer<BusinessState, import("redux").AnyAction>;
|
|
272
128
|
export default _default;
|
|
273
129
|
export declare const businessSelector: (state: RootState) => BusinessState;
|
|
@@ -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]) {
|
|
@@ -490,6 +490,7 @@ export var updateLeadBusinessType = createAsyncThunk('updateLeadBusinessType', f
|
|
|
490
490
|
entity_id: entityId || '',
|
|
491
491
|
documents: [
|
|
492
492
|
{
|
|
493
|
+
type: DocumentPurpose.CR,
|
|
493
494
|
images: params.certificateId
|
|
494
495
|
}
|
|
495
496
|
]
|
|
@@ -781,7 +782,7 @@ export var businessSlice = createSlice({
|
|
|
781
782
|
if (isRequireOTP)
|
|
782
783
|
return;
|
|
783
784
|
var _e = state.data.verify.responseBody || {}, entity = _e.entity, entity_activities = _e.entity_activities, business_type = _e.business_type;
|
|
784
|
-
var issuingDate = ((_a = brandData === null || brandData === void 0 ? void 0 : brandData.operations) === null || _a === void 0 ? void 0 : _a.start_date) || ((_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date)
|
|
785
|
+
var issuingDate = ((_a = brandData === null || brandData === void 0 ? void 0 : brandData.operations) === null || _a === void 0 ? void 0 : _a.start_date) || ((_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date);
|
|
785
786
|
if (issuingDate)
|
|
786
787
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
787
788
|
var activities = entity_activities || [];
|
|
@@ -848,7 +849,7 @@ export var businessSlice = createSlice({
|
|
|
848
849
|
state.data.otpData.responseBody = data;
|
|
849
850
|
state.data.verify.responseBody = __assign(__assign(__assign({}, leadData), state.data.verify.responseBody), { flows: (leadData === null || leadData === void 0 ? void 0 : leadData.flows) || [] });
|
|
850
851
|
var _e = leadData || {}, entity = _e.entity, entity_activities = _e.entity_activities, business_type = _e.business_type;
|
|
851
|
-
var issuingDate = ((_a = brand === null || brand === void 0 ? void 0 : brand.operations) === null || _a === void 0 ? void 0 : _a.start_date) || ((_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date)
|
|
852
|
+
var issuingDate = ((_a = brand === null || brand === void 0 ? void 0 : brand.operations) === null || _a === void 0 ? void 0 : _a.start_date) || ((_b = entity === null || entity === void 0 ? void 0 : entity.license) === null || _b === void 0 ? void 0 : _b.issuing_date);
|
|
852
853
|
if (issuingDate)
|
|
853
854
|
state.data.activitiesData.operationStartDate = convertNumbers2English(dateFormat(issuingDate));
|
|
854
855
|
var activities = entity_activities || [];
|