Add filters and context to host operation history
This commit is contained in:
+9
-1
@@ -102,9 +102,17 @@ export interface HostOperation {
|
||||
}
|
||||
export interface HostOperationSummary extends Omit<HostOperation, 'payload' | 'result'> {
|
||||
hostName: string | null;
|
||||
serverName: string | null;
|
||||
targetPath: string | null;
|
||||
source: string | null;
|
||||
routine: boolean;
|
||||
}
|
||||
export type HostOperationFilter = 'important' | 'routine' | 'all';
|
||||
export function isHostOperationFilter(value: unknown): value is HostOperationFilter {
|
||||
return typeof value === 'string' && ['important', 'routine', 'all'].includes(value);
|
||||
}
|
||||
export interface HostOperationHistoryPage {
|
||||
operations: HostOperationSummary[]; page: number; pageSize: 25; total: number; totalPages: number;
|
||||
operations: HostOperationSummary[]; page: number; pageSize: 25; total: number; totalPages: number; filter: HostOperationFilter;
|
||||
}
|
||||
|
||||
export interface HostPreparationItem {
|
||||
|
||||
Reference in New Issue
Block a user