export interface IChangeParserConfigRequestBody {
  pages: number[][];
  chunk_token_num: number;
  layout_recognize: boolean;
  task_page_size: number;
}

export interface IChangeParserRequestBody {
  parser_id: string;
  pipeline_id: string;
  doc_id: string;
  parser_config: IChangeParserConfigRequestBody;
}

export interface IDocumentMetaRequestBody {
  documentId: string;
  meta: string; // json format string
}

// export const RUNNING_STATUS_KEYS = Object.freeze({
//   UNSTART: '0', // need to run
//   RUNNING: '1', // need to cancel
//   CANCEL: '2', // need to refresh
//   DONE: '3', // need to refresh
//   FAIL: '4', // need to refresh
// } as const)

export interface IRunDocumentRequestBody {
  doc_ids: Array<string | number> | string | number;
  // running status 1 run 2 cancel  - operations
  run: number;
  delete: boolean;
}

