import { ColumnFileEnum } from './config';

export interface UploadFileParseValue {
  header: string[];
  content: Recordable[];
}

export interface ColumnDataRecord extends Record<ColumnFileEnum, string> {
  editable?: boolean;
  oldValue: any | undefined;
  id?: string;
  name?: string;
}

export interface Options {
  label: string;
  value?: string;
  options?: Options[];
  disabled?: boolean;
}

export type BasicInfoRecord = Record<
  'organizationId' | 'tkDeviceProfileId' | 'deviceTypeEnum' | 'deviceTypeName',
  string
>;

export interface CreateEntityValue {
  basicInfo: BasicInfoRecord;
  fileParseValue: UploadFileParseValue;
  columnConfiguration: Record<'type', string>[];
}
