import { Assignee, Author, TemplateFile, Workflow, Worktype } from "api";

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

export interface Apps {
  isLoading: boolean;
  isAddLoading: boolean;
  selectedAssignees: Assignee[];
  authorId?: number;
  worktypeId?: number;
  templateId?: number;
  selectedWorkflow?: Workflow;
}

export interface Domain {
  workflows?: Workflow[];
  workflowRelations?: WorkflowRelations;
}

export interface WorkflowRelations {
  authors: Author[];
  assignees: Assignee[];
  templates: TemplateFile[];
  worktypes: Worktype[];
}
