import { UploadedFile } from "craftable-pro/types";
import { CraftableProUser } from "craftable-pro/types/models";
import { Company } from "../Company/types";
import { BatchType } from "../BatchType/types";


export type Batch = {
  ident: string;
  slug: string;
  user_id: string;
  status: string;
  created_at: string;
  updated_at: string;
  media?: UploadedFile[];
  user: CraftableProUser;
  company_id: string;
  company: Company;
  batch_types: BatchType[];
  objects_count: number;
  zip_url: string;
  errors: any[];
  input_type: string;
  map_coords: string;
  external_order_id: string;
  attachments?: UploadedFile[];
  description: string;
};

export type BatchForm = {
  import_file: Array<UploadedFile>;
  company_id: string;
  batch_types: Array<string>;
  input_type: string;
  map_coords: string;
  external_order_id: string;
  attachments: Array<UploadedFile>;
  description: string;
};


export type BatchFormEdit = {
  import_file: Array<UploadedFile>;
};