Revert "Revert "NTP-59042 | Agency and Agent Allocation API changes"" (#1439)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -32,7 +32,7 @@ export const fetchUploadHistoryPolling = (pageNo: number, pageSize: number, type
|
||||
{
|
||||
pageNo: pageNo,
|
||||
pageSize: pageSize,
|
||||
type: type || ''
|
||||
requestSubType: type || ''
|
||||
}
|
||||
);
|
||||
return axiosInstance.get(url);
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user