import { OrderItemListItemDTO } from '@swagger/oms';
import { SelectFilter } from 'apps/sales/src/app/modules/filter';
import { PrimaryFilterOption } from 'apps/sales/src/app/modules/shelf/defs';
import { SearchProcessState } from '@shelf-store';

export interface SearchProcess {
  id: number; // Prozess ID;
  input?: string;
  filters?: {
    selectedFilters?: SelectFilter[];
    primaryFilters?: PrimaryFilterOption[];
  };
  result: OrderItemListItemDTO[];
  hits?: number;
  state: SearchProcessState;
  timestamp?: number;
  pendingInput?: string;
}
