38 lines
697 B
TypeScript
38 lines
697 B
TypeScript
export interface ImportJobItem {
|
|
id: number;
|
|
classname: string;
|
|
name: string;
|
|
description: string;
|
|
type: string;
|
|
revision: number;
|
|
category: string;
|
|
attachmentId?: string;
|
|
}
|
|
export interface ImportJob {
|
|
mode?: "repair";
|
|
retryOf?: string;
|
|
id: string;
|
|
userId: number;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
state: "queued" | "running" | "completed" | "interrupted" | "cancelled";
|
|
cancelRequested?: boolean;
|
|
sourceId?: string;
|
|
translate: boolean;
|
|
langs?: string[];
|
|
items: Array<
|
|
ImportJobItem & {
|
|
state:
|
|
| "pending"
|
|
| "running"
|
|
| "done"
|
|
| "failed"
|
|
| "cancelled"
|
|
| "interrupted";
|
|
error?: string;
|
|
warnings?: string[];
|
|
itemId?: number;
|
|
}
|
|
>;
|
|
}
|