interface DataActive { activeId: string; activeName: string; draftId: string; draftName: string; isPublic: boolean, orgPublishDate: Date | null, } interface OrgTree { orgTreeId: string; orgRootId: string; orgLevel: number; orgTreeName: string; orgTreeShortName: string; orgTreeCode: string; orgCode: string; orgTreeRank: string; orgTreeOrder: number | null; orgRootCode: string; orgTreePhoneEx: string; orgTreePhoneIn: string; orgTreeFax: string; orgRevisionId: string; children: OrgTree[]; } interface OrgRevision { orgRevisionCreatedAt: string | null; orgRevisionId: string; orgRevisionIsCurrent: boolean; orgRevisionIsDraft: boolean; orgRevisionName: string; } interface OptionType { id: string; posTypeName: string; } interface OptionLevel { id: string; posLevelName: string; } interface OptionExecutive { id: string; posExecutiveName: string; } interface DataPosition { id: string; posExecutiveId: string; posExecutiveName: string; posLevelId: string; posLevelName: string; posTypeId: string; posTypeName: string; positionArea: string; positionExecutiveField: string; positionField: string; positionIsSelected: boolean; positionName: string; } interface Position { id: string; // id ตำแหน่ง positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง) positionField: string; // สายงาน posTypeId: string; // ประเภทตำแหน่ง posTypeName: string; // ประเภทตำแหน่ง posLevelId: string; // ระดับตำแหน่ง posLevelName: string; // ระดับตำแหน่ง posExecutiveId: string; // ตำแหน่งทางการบริหาร posExecutiveName: string; // ตำแหน่งทางการบริหาร positionExecutiveField: string; // ด้านทางการบริหาร positionArea: string; // ด้าน/สาขา positionIsSelected: boolean; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้น ๆ หรือไม่? } interface PosMaster { id: string; // id อัตรากำลัง posmaster orgShortname: string; // อักษรย่อตำแหน่ง posMasterNoPrefix: string; // Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ) posMasterNo: number | string; // เลขที่ตำแหน่ง เป็นตัวเลข posMasterNoSuffix: string | null; // Suffix หลังเลขที่ตำแหน่ง เช่น ช. positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง) positionField: string; // สายงาน posTypeId: string; // ประเภทตำแหน่ง posTypeName: string; // ประเภทตำแหน่ง posLevelId: string; // ระดับตำแหน่ง posLevelName: string; // ระดับตำแหน่ง posExecutiveId: string; // ตำแหน่งทางการบริหาร posExecutiveName: string; // ตำแหน่งทางการบริหาร positionExecutiveField: string; // ด้านทางการบริหาร positionArea: string; // ด้าน/สาขา positionIsSelected: boolean; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้น ๆ หรือไม่? positions: Position[]; // ตำแหน่ง } interface Position2 { id: string; // id ตำแหน่ง positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง) positionField: string; // สายงาน posTypeId: string; // ประเภทตำแหน่ง posTypeName: string; // ประเภทตำแหน่ง posLevelId: string; // ระดับตำแหน่ง posLevelName: string; // ระดับตำแหน่ง posExecutiveId: string; // ตำแหน่งทางการบริหาร posExecutiveName: string; // ตำแหน่งทางการบริหาร positionExecutiveField: string; // ด้านทางการบริหาร positionArea: string; // ด้าน/สาขา positionIsSelected: string; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้น ๆ หรือไม่? } interface PosMaster2 { id: string; // id อัตรากำลัง posmaster orgShortname: string; // อักษรย่อตำแหน่ง posMasterNoPrefix: string; // Prefix นำหน้าเลขที่ตำแหน่ง เป็น Optional (ไม่ใช่อักษรย่อของหน่วยงาน/ส่วนราชการ) posMasterNo: number | string; // เลขที่ตำแหน่ง เป็นตัวเลข posMasterNoSuffix: string | null; // Suffix หลังเลขที่ตำแหน่ง เช่น ช. positionName: string; // ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง) positionField: string; // สายงาน posTypeId: string; // ประเภทตำแหน่ง posTypeName: string; // ประเภทตำแหน่ง posLevelId: string; // ระดับตำแหน่ง posLevelName: string; // ระดับตำแหน่ง posExecutiveId: string; // ตำแหน่งทางการบริหาร posExecutiveName: string; // ตำแหน่งทางการบริหาร positionExecutiveField: string; // ด้านทางการบริหาร positionArea: string; // ด้าน/สาขา positionIsSelected: string; // เป็นตำแหน่งที่ถูกเลือกในรอบนั้น ๆ หรือไม่? positions: Position[]; // ตำแหน่ง } export type { DataActive, OrgTree, OrgRevision, OptionType, OptionLevel, OptionExecutive, DataPosition, PosMaster, PosMaster2, Position, Position2, };