import { Task, Assignee, Typist, TypistGroup } from "../../api/api";
import {
  DirectionType,
  DisplayInfoType,
  SortableColumnType,
} from "./constants";

export interface DictationState {
  domain: Domain;
  apps: Apps;
}

export interface Domain {
  limit: number;
  offset: number;
  total: number;
  tasks: Task[];
  typists: Typist[];
  typistGroups: TypistGroup[];
}

export interface Apps {
  displayInfo: DisplayInfoType;
  direction: DirectionType;
  paramName: SortableColumnType;
  selectedTask?: Task;
  assignee: {
    selected: Assignee[];
    pool: Assignee[];
  };
  isLoading: boolean;
}
