interface DataOption {
  id: string;
  name: string;
}
interface Salary {
  id: string;
  salaryType: string;
  posType: string;
  posLevel: string;
  isActive: boolean;
  date: Date; //ให้ไว้ ณ วันที่
  startDate: Date;
  endDate: Date;
  detail: string;
}

interface SalaryRate {
  id: string;
  salary: number;
  salaryHalf: number;
  salaryHalfSpecial: number;
  salaryFull: number;
  salaryFullSpecial: number;
  salaryFullHalf: number;
  salaryFullHalfSpecial: number;
  isNext: boolean;
}

interface SalaryPosType {
  id: string;
  posTypeName: string;
  posTypeRank: string;
  posLevels: SalaryPosLevel[];
}

interface SalaryPosLevel {
  id: string;
  posLevelAuthority: string;
  posLevelName: string;
  posLevelRank: number;
}

interface RowList {
  id: string;
  period: string|null;
  isActive: boolean|null;
  isClose: boolean|null;
  effectiveDate: Date|null|string;
  year: number|null;
  status: string|null;
  revisionId: string|null;
}

interface Row {
  data: [Row];
  total: number;
}

interface ObjectRef {
  period: object | null;
  effectiveDate: object | null;
  year: object | null;
  [key: string]: any;
}

export type { Salary, SalaryRate, SalaryPosType, SalaryPosLevel,RowList,Row,ObjectRef,DataOption };
