teko-file-history
Version:
File history component for Teko system
67 lines (66 loc) • 1.58 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;
fileRequests?: FileRequest[];
};
export type FileRequest = {
url: string;
displayName?: string;
/** JSON string */
metadata?: string;
rows?: FileRequestRow[] | null;
};
type FileRequestRow = {
url?: string;
displayName?: string;
};
export type ProcessingFileStatus = {
[key: string]: {
code: string;
name: string;
color: string;
colorCode: string;
};
};
export {};