chore: first commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
export interface ExportInfo {
|
||||
id: string;
|
||||
user: string;
|
||||
type: "mbox" | "eml" | "pst";
|
||||
status: "queued" | "processing" | "completed" | "failed";
|
||||
created: string;
|
||||
updated?: string;
|
||||
completed?: string;
|
||||
downloadUrl?: string;
|
||||
expires?: string;
|
||||
size?: number;
|
||||
messages?: number;
|
||||
progress?: {
|
||||
processed: number;
|
||||
total: number;
|
||||
percentage: number;
|
||||
};
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface ExportListResponse {
|
||||
success: true;
|
||||
results: ExportInfo[];
|
||||
}
|
||||
|
||||
export interface ExportCreateResponse {
|
||||
success: true;
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface ExportDetailsResponse extends ExportInfo {
|
||||
success: true;
|
||||
}
|
||||
|
||||
export interface ExportDownloadResponse {
|
||||
success: true;
|
||||
id: string;
|
||||
downloadUrl: string;
|
||||
expires: string;
|
||||
size: number;
|
||||
}
|
||||
Reference in New Issue
Block a user