interface DataOption {
  id: number | null;
  name: string;
  disable?: boolean;
}
interface DataOption1 {
  id: string | null;
  name: string | null;
  disable?: boolean;
}
interface DataOptionInsignia {
  id: string;
  name: string;
  typeName: string;
}

interface optionData {
  id: string;
  name: string;
}

interface EduOps {
  levelOptions: optionData[];
  positionPathOptions: optionData[];
}

interface InformationOps {
  prefixOps: optionData[];
  genderOps: optionData[];
  bloodOps: optionData[];
  statusOps: optionData[];
  religionOps: optionData[];
  employeeClassOps: optionData[];
  employeeTypeOps: optionData[];
}

interface InsigniaOps {
  insigniaOptions: DataOptionInsignia[];
}

interface Pagination {
  rowsPerPage: number;
}

interface treeTab {
  id: string;
  label: string;
  children: treeTab[];
}

interface CheckboxItem {
  id: number;
  label: string;
}

interface Property {
  name: string;
  value: boolean;
}

interface PointExam {
  pointA: number;
  pointB: number;
  pointC: number;
  pointTotalA: number;
  pointTotalB: number;
  pointTotalC: number;
  point: number;
  pointTotal: number;
  examNumber: number;
  examRound: number;
  pass: string | null;
}

interface Education {
  id: string;
  educationLevel: string;
  educationLevelId: string;
  institute: string;
  degree: string;
  field: string;
  gpa: string;
  country: string;
  duration: string;
  other: string;
  fundName: string;
  durationYear: number;
  finishDate: Date;
  isDate: string;
  startDate: Date;
  endDate: Date;
  positionPath: string;
  isEducation: boolean;
}

interface Family {
  couple: string;
  marryPrefix: string;
  marryPrefixId: string;
  marryFirstName: string;
  marryLastName: string;
  marryOccupation: string;
  fatherPrefix: string;
  fatherPrefixId: string;
  fatherFirstName: string;
  fatherLastName: string;
  fatherOccupation: string;
  motherPrefix: string;
  motherPrefixId: string;
  motherFirstName: string;
  motherLastName: string;
  motherOccupation: string;
}

interface Address {
  registAddress: string;
  registSubDistrict: string;
  registSubDistrictId: string;
  registZipCode: string;
  registDistrict: string;
  registDistrictId: string;
  registProvince: string;
  registProvinceId: string;
  currentAddress: string;
  currentSubDistrict: string;
  currentSubDistrictId: string;
  currentZipCode: string;
  currentDistrict: string;
  currentDistrictId: string;
  currentProvince: string;
  currentProvinceId: string;
  registSame: string;
}

interface Certificate {
  id: string;
  certificateNo: string;
  issuer: string;
  issueDate: Date;
  expireDate: Date;
  certificateType: string;
}

const AddressDataDefualt: Address = {
  registAddress: "",
  currentAddress: "",
  registSubDistrict: "",
  registSubDistrictId: "",
  registZipCode: "",
  registDistrict: "",
  registDistrictId: "",
  registProvince: "",
  registProvinceId: "",
  currentSubDistrict: "",
  currentSubDistrictId: "",
  currentZipCode: "",
  currentDistrict: "",
  currentDistrictId: "",
  currentProvince: "",
  currentProvinceId: "",
  registSame: "0",
};

const FamilyDataDefualt: Family = {
  couple: "0",
  marryPrefix: "",
  marryPrefixId: "",
  marryFirstName: "",
  marryLastName: "",
  marryOccupation: "",
  fatherPrefix: "",
  fatherPrefixId: "",
  fatherFirstName: "",
  fatherLastName: "",
  fatherOccupation: "",
  motherPrefix: "",
  motherPrefixId: "",
  motherFirstName: "",
  motherLastName: "",
  motherOccupation: "",
};
interface Assign {
  id: number;
  personal_id: string;
  knowlage_skill_map_no: number;
  round_no: number;
  date_start: Date;
  date_finish: Date;
  behavior_desc: string;
  other_desc: string;
  other4_desc: string;
  othor5_no1_desc: string;
  othor5_no2_desc: string;
  experimenter_dated: Date;
  createdAt: Date;
  updatedAt: Date;
}
interface OrderResult {
  fiscalYear: string
  orderBy: string
  orderById: string
  orderByOrganization: string
  orderDate: Date
  orderId: string
  orderName: string
  orderNo: string
  orderStatusName: string
  orderStatusValue: string
  orderTypeName: string
  orderTypeValue: string
  signatoryBy: string
  signatoryPosition: string
}
interface history {
  citizenId: string,
  fullName: string,
  id: string
  posNo: string,
  position: string

}
interface ColumnData {
  name: string;
  align: string;
  label: string;
  field: string;
  headerStyle: string;
  style: string;
}
interface DataOptionInsigniaType {
  category: string;
  commandCode: string;
  createdAt: string;
  createdFullName: string;
  createdUserId: string;
  id: string;
  lastUpdateFullName: string;
  lastUpdateUserId: string;
  lastUpdatedAt: string | null;
  name: string;
}
interface OrederResult {
  category?: string
  commandCode: string
  createdAt?: Date
  createdFullName?: string
  createdUserId?: string
  id?: string
  lastUpdateFullName?: string
  lastUpdateUserId?: string
  lastUpdatedAt?: string
  name?: string
}
export type {
  DataOption,
  DataOptionInsignia,
  treeTab,
  InformationOps,
  Pagination,
  EduOps,
  DataOption1,
  InsigniaOps,
  CheckboxItem,
  Property,
  PointExam,
  Education,
  Family,
  Address,
  optionData,
  Certificate,
  Assign,
  OrderResult,
  history,
  ColumnData,
  DataOptionInsigniaType,
  OrederResult
};

export { AddressDataDefualt, FamilyDataDefualt };
