before merge

This commit is contained in:
Abin Toppo
2026-01-12 17:46:53 +05:30
parent 061224afe3
commit 3c35a879b1
4 changed files with 55 additions and 12 deletions
+41 -4
View File
@@ -1,5 +1,5 @@
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
import { fetchAuctionItem, fetchCityDropdown, fetchDashboard, fetchEmdCheck, fetchLiveAuction, fetchLiveTender, fetchMasterData, fetchPurchaseAuction, fetchPurchaseTender, fetchTenderById, getDesignation, getRagistrationState, offlineAuctionPurchase, offlineTenderPurchase, proceedToBid, registerContractor, sendAadhaarOtp, userAuctionLogin, userLogin, verifyAadhaarOtp, verifyGstNumber, verifyPanHandler } from './apis';
import { contractorStageThreeSubmit, contractorStageTwoSubmit, fetchAuctionItem, fetchCityDropdown, fetchDashboard, fetchEmdCheck, fetchLiveAuction, fetchLiveTender, fetchMasterData, fetchPurchaseAuction, fetchPurchaseTender, fetchTenderById, getDesignation, getRagistrationState, offlineAuctionPurchase, offlineTenderPurchase, partnerShipSubmit, proceedToBid, registerContractor, sendAadhaarOtp, submitEnvelopeA, submitEnvelopeB, uploadEnvelopeFile, userAuctionLogin, userLogin, verifyAadhaarOtp, verifyGstNumber, verifyPanHandler } from './apis';
import { apiCall } from '../../Axios/Axios';
// User
@@ -171,9 +171,9 @@ export const usefetchMasterData = () => {
});
}
export const useCityDropdown = (stateId?: number) => {
export const useCityDropdown = () => {
return useMutation({
mutationFn: () => fetchCityDropdown(stateId as number),
mutationFn: (stateId: number) => fetchCityDropdown(stateId),
});
};
@@ -196,4 +196,41 @@ export const useVerifyPan = () =>
export const useVerifyGstNumber = () =>
useMutation({
mutationFn: verifyGstNumber,
});
});
export const useContractorStageTwoSubmit = () =>
useMutation({
mutationFn: contractorStageTwoSubmit,
});
export const useContractorStageThreeSubmit = () =>
useMutation({
mutationFn: contractorStageThreeSubmit,
});
export const usePartnerShipSubmit = () =>
useMutation({
mutationFn: partnerShipSubmit,
});
export const useSubmitEnvelopeA = () =>
useMutation({
mutationFn: submitEnvelopeA,
})
export const useSubmitEnvelopeB = () =>
useMutation({
mutationFn: submitEnvelopeB,
})
export const useUploadEnvelopeFile = () =>
useMutation({
mutationFn: uploadEnvelopeFile,
})
+3 -1
View File
@@ -319,4 +319,6 @@ export const uploadEnvelopeFile = async ({
})
return data
}
}