interface FormFilter {
  page: number;
  pageSize: number;
  keyword: string;
  type: string;
  posType: string;
  posLevel: string;
  retireYear: string | null;
  rangeYear: { min: number; max: number };
  isShowRetire: boolean;
  isProbation: boolean;
}

//ข้อมูล
interface RequestItemsObject {
  profileId: string;
  id?: string;
  dateStart: Date | null;
  dateEnd: Date | null;
  detail: string;
  reference: string;
  refCommandNo: string;
  refCommandDate: Date | null;
  isUpload: boolean;
}

interface MyObjectRef {
  dateStart: object | null;
  dateEnd: object | null;
  detail: object | null;
  reference: object | null;
  [key: string]: any;
}

interface ResponseObject {
  lastUpdateFullName: string;
  lastUpdatedAt: Date;
  id: string;
  dateStart: Date;
  dateEnd: Date;
  detail: string;
  reference: string;
  refCommandNo: string;
  refCommandDate: Date | null;
  createdFullName: string;
  createdAt: Date;
}

export type { FormFilter, RequestItemsObject, MyObjectRef, ResponseObject };
