Improve Angular project structure and code organization (#1328)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export enum MetadataBatchStatus {
|
||||
IN_PROGRESS = 'IN_PROGRESS',
|
||||
COMPLETED = 'COMPLETED',
|
||||
ERROR = 'ERROR',
|
||||
}
|
||||
|
||||
export const MetadataBatchStatusLabels: Record<MetadataBatchStatus, string> = {
|
||||
[MetadataBatchStatus.IN_PROGRESS]: 'In Progress',
|
||||
[MetadataBatchStatus.COMPLETED]: 'Completed',
|
||||
[MetadataBatchStatus.ERROR]: 'Error',
|
||||
};
|
||||
|
||||
export interface MetadataBatchProgressNotification {
|
||||
taskId: string;
|
||||
completed: number;
|
||||
total: number;
|
||||
message: string;
|
||||
status: MetadataBatchStatus;
|
||||
review: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user