import { DataType } from '@/const/enum';


export interface IFirstLevelField {
  data: ISecondLevelField[];
  key: string;
  label: string;
  type: DataType;
}

export interface ISecondLevelField {
  data: IFieldData[] | IFieldData;
  key: string;
  label: string;
  type: DataType;
}

export interface IFieldData {
  format: EFormat;
  type: EType;
  value: string | number;
}

export enum EType {
  FILE = 'file',
  IMAGE = 'image',
  TEXT = 'text',
  DATE = 'date',
  VIDEO = 'video',
  AUDIO = 'audio',
}

export enum EFormat {
  STRING = 'string',
  HASH = 'hash',
  UTC = 'utc',
}
