This commit is contained in:
Abin Toppo
2026-01-13 10:10:45 +05:30
parent 4c75796794
commit 86860102a7
7 changed files with 432 additions and 3207 deletions
+39 -2
View File
@@ -1,5 +1,5 @@
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
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 { contractorStageThreeSubmit, contractorStageTwoSubmit, fetchAuctionItem, fetchCityDropdown, fetchDashboard, fetchEmdCheck, fetchLiveAuction, fetchLiveTender, fetchMasterData, fetchPurchaseAuction, fetchPurchaseAuctionList, fetchPurchaseTender, fetchTenderById, getAuction, getDesignation, getRagistrationState, offlineAuctionPurchase, offlineTenderPurchase, partnerShipSubmit, proceedToBid, registerContractor, sendAadhaarOtp, submitEnvelopeA, submitEnvelopeB, uploadEnvelopeFile, userAuctionLogin, userLogin, verifyAadhaarOtp, verifyGstNumber, verifyPanHandler, viewAuctionDocumentDownload, viewAuctionDocuments, viewAuctionItemDocuments } from './apis';
import { apiCall } from '../../Axios/Axios';
// User
@@ -236,4 +236,41 @@ export const useUploadEnvelopeFile = () =>
mutationFn: uploadEnvelopeFile,
})
// Purchase Auction List
export const usePurchaseAuctionList = () => {
return useMutation({
mutationFn: (payload: any) => fetchPurchaseAuctionList(payload),
});
};
export const useGetAuciton = (payload: { auctionId: string }) => {
return useQuery({
queryKey: ['getAuction'],
queryFn: () => getAuction(payload)
});
};
export const useGetAucitonDocument = (payload: { auctionId: number }) => {
return useQuery({
queryKey: ['viewAuctionDocuments'],
queryFn: () => viewAuctionDocuments(payload)
});
};
export const useAucitonItemDetail = (payload: { auctionItemId: number }) => {
return useQuery({
queryKey: ['viewAuctionItemDocuments'],
queryFn: () => viewAuctionItemDocuments(payload)
});
};
export const useAucitonDocDownload = () => {
return useMutation({
mutationFn: (payload: { documentId: number, isAmendment: boolean }) => viewAuctionDocumentDownload(payload),
});
};