Revert "Revert "NTP-59042 | Agency and Agent Allocation API changes"" (#1439)

This commit is contained in:
Alok Kumar
2025-05-02 14:08:39 +05:30
committed by GitHub
parent 69cc381890
commit 660985c4cb
4 changed files with 7 additions and 8 deletions

View File

@@ -39,12 +39,12 @@ export const AllocationType: { [key: string]: string } = {
Allocate: 'Allocate'
};
export const AgentAllocationType: { [key: string]: string } = {
Deallocate: 'DEALLOCATE_CASES_TO_AGENT_FILE',
Allocate: 'ALLOCATE_CASES_TO_AGENT_FILE_S3'
Deallocate: 'TICKET_DE_ALLOCATION_REQUEST',
Allocate: 'TICKET_ALLOCATION_REQUEST'
};
export const AgencyAllocationType: { [key: string]: string } = {
Deallocate: 'DEALLOCATE_CASES_TO_AGENCY_FILE',
Allocate: 'ALLOCATE_CASES_TO_AGENCY_FILE_S3'
Deallocate: 'TICKET_RESOLUTION_REQUEST',
Allocate: 'TICKET_CREATION_REQUEST'
};
export const CaseType: { [key: string]: string } = {
Agency: 'Agency',

View File

@@ -10,8 +10,6 @@ import { fetchFailureReport, fetchOriginalFile } from './uploadHistoryDrawerActi
import dayjs from 'dayjs';
import { DateTimeFormat } from '@cp/src/components/DateTimePicker/constants';
const SET_DUMMY_TRUE = true;
export const useColumnDefs = (): {
columnDefs: ColDef[];
handleFileButtonClick: (fileReferenceId: string, uploadStatus: string) => void;

View File

@@ -32,7 +32,7 @@ export const fetchUploadHistoryPolling = (pageNo: number, pageSize: number, type
{
pageNo: pageNo,
pageSize: pageSize,
type: type || ''
requestSubType: type || ''
}
);
return axiosInstance.get(url);

View File

@@ -121,7 +121,8 @@ export const REALLOCATION_HISTORY_COLUMNS = [
cellRenderer: (params: ICellRendererParams) => {
const { startTime, endTime } = params.data;
const startTimeIST = utcToIST(startTime);
const endTimeIST = utcToIST(endTime);
// TODO: Update endTime after 31 days
const endTimeIST = utcToIST(startTime);
return (
<div>
<Typography variant="p3">