export interface Department {
  id: number;
  name: string;
}

export interface TaskPriority {
  id: number;
  name: string;
}

export interface allTypes {
  department: Department[];
  flags_static_data: any;
  order_flag_types: any;
  priority: any;
}

export interface CreateTaskPayload {
  description: string | null;
  is_private: boolean | null;
  order_id: number | null;
  flag_type: string | null;
  priority: number | null;
  status: string | null;
  due_datetime: string | null;
}
export interface resolveTaskPayload {
  task_ids: number[] | null;
}

export interface CreateReminderPayload {
  due_datetime: Date | null;
  description: string | null;
  assigned_to: string | null;
  order_id: number | null;
  priority: number | null;
  department: string | null;
  status: boolean | null;
}

export type StatusType = 'AD' | 'SD';

export interface SingleResolvedPayload {
  is_resolved: boolean;
  id: number | null;
}

//update Reminder Payload
export interface UpdateReminderPayload {
  due_datetime: any | null;
  description: any | null;
  assigned_to: string | null;
  order_id: number | null;
  priority: number | null;
  department: any | null;
  status: boolean | null;
  id: number | null;
  is_deleted: boolean | null;
  legacy_reminder_id: number | null;
  order_data: any[] | null;
  reference: any | null;
  completed_at: any | null;
  completed_by: any | null;
}

export interface splitOrderType {
  return_order: number;
  products: any[];
  force: boolean;
}

export interface TaskUpdateType {
  description: string | null;
  flag_type: number | null;
  priority: number | null;
  id: number | null;
  is_private: boolean | null;
}
