teko-file-history
Version:
File history component for Teko system
54 lines (53 loc) • 1.3 kB
TypeScript
export type UploadFilePayload = {
url: string;
clientId: number;
fileName?: string;
};
export type ClientConfigParams = {
clientId: number;
};
export type Pagination = {
totalItems: number;
currentPage: number;
pageSize: number;
};
export type GetListProcessingFileParams = {
page: number;
pageSize: number;
clientId?: number;
clientIds?: number[];
createdByEmails?: string[];
isUploadedByMe?: boolean;
processingFileIds?: number[];
searchFilename?: string;
};
export type GetProcessingFileResponse = {
processingFiles: ProcessingFile[];
pagination: Pagination;
};
export type ProcessingFile = {
clientId: number;
processingFileId?: number;
fileDisplayName: string;
errorDisplay?: string;
fileUrl: string;
resultFileUrl?: string;
/**
* Possible values: INIT, PROCESSING, SUCCESS, FAILED
*/
status: string;
statsTotalRow: number;
statsTotalSuccess: number;
statsTotalProcessed: number;
createdAt: number;
createdBy: string;
finishedAt?: number;
};
export type ProcessingFileStatus = {
[key: string]: {
code: string;
name: string;
color: string;
colorCode: string;
};
};