export const STATUS = {
  UPLOADED: "Uploaded",
  PENDING: "Pending",
  INPROGRESS: "InProgress",
  FINISHED: "Finished",
  BACKUP: "Backup",
} as const;

export type StatusType = typeof STATUS[keyof typeof STATUS];

export const LIMIT_TASK_NUM = 20;

export const SORTABLE_COLUMN = {
  JobNumber: "JOB_NUMBER",
  Status: "STATUS",
  Encryption: "ENCRYPTION",
  AuthorId: "AUTHOR_ID",
  WorkType: "WORK_TYPE",
  FileName: "FILE_NAME",
  FileLength: "FILE_LENGTH",
  FileSize: "FILE_SIZE",
  RecordingStartedDate: "RECORDING_STARTED_DATE",
  RecordingFinishedDate: "RECORDING_FINISHED_DATE",
  UploadDate: "UPLOAD_DATE",
  TranscriptionStartedDate: "TRANSCRIPTION_STARTED_DATE",
  TranscriptionFinishedDate: "TRANSCRIPTION_FINISHED_DATE",
} as const;
export type SortableColumnType =
  typeof SORTABLE_COLUMN[keyof typeof SORTABLE_COLUMN];

export type SortableColumnList =
  typeof SORTABLE_COLUMN[keyof typeof SORTABLE_COLUMN];

export const DIRECTION = {
  ASC: "ASC",
  DESC: "DESC",
} as const;

export type DirectionType = typeof DIRECTION[keyof typeof DIRECTION];

export interface DisplayInfoType {
  JobNumber: boolean;
  Status: boolean;
  Priority: boolean;
  Encryption: boolean;
  AuthorId: boolean;
  WorkType: boolean;
  FileName: boolean;
  FileLength: boolean;
  FileSize: boolean;
  RecordingStartedDate: boolean;
  RecordingFinishedDate: boolean;
  UploadDate: boolean;
  TranscriptionStartedDate: boolean;
  TranscriptionFinishedDate: boolean;
  Transcriptionist: boolean;
  Comment: boolean;
  OptionItem1: boolean;
  OptionItem2: boolean;
  OptionItem3: boolean;
  OptionItem4: boolean;
  OptionItem5: boolean;
  OptionItem6: boolean;
  OptionItem7: boolean;
  OptionItem8: boolean;
  OptionItem9: boolean;
  OptionItem10: boolean;
}

export const INIT_DISPLAY_INFO: DisplayInfoType = {
  JobNumber: true,
  Status: true,
  Priority: false,
  Encryption: true,
  AuthorId: true,
  WorkType: true,
  FileName: true,
  FileLength: true,
  FileSize: false,
  RecordingStartedDate: true,
  RecordingFinishedDate: true,
  UploadDate: false,
  TranscriptionStartedDate: true,
  TranscriptionFinishedDate: true,
  Transcriptionist: true,
  Comment: true,
  OptionItem1: false,
  OptionItem2: false,
  OptionItem3: false,
  OptionItem4: false,
  OptionItem5: false,
  OptionItem6: false,
  OptionItem7: false,
  OptionItem8: false,
  OptionItem9: false,
  OptionItem10: false,
} as const;
