hrms-admin/src/modules/02_users/interface/response/Main.ts
2024-06-11 18:59:22 +07:00

102 lines
2.3 KiB
TypeScript

interface Users {
email: string;
firstName: string;
id: string;
lastName: string;
username: string;
roles: Roles;
}
interface Roles {
createdAt: string;
createdFullName: string;
createdUserId: string;
id: string;
lastUpdateFullName: string;
lastUpdateUserId: string;
lastUpdatedAt: string;
roleDescription: string;
roleName: string;
}
interface NodeTree {
labelName: string;
orgCode: string;
orgLevel: number;
orgName: string;
orgRevisionId: string;
orgRootName: string;
orgTreeCode: string;
orgTreeFax: string;
orgTreeId: string;
orgTreeName: string;
orgTreeOrder: number;
orgTreePhoneEx: string;
orgTreePhoneIn: string;
orgTreeRank: string;
orgTreeRankSub: string | null;
orgTreeShortName: string;
responsibility: string | null;
totalPosition: number;
totalPositionCurrentUse: number;
totalPositionCurrentVacant: number;
totalPositionNextUse: number;
totalPositionNextVacant: number;
totalRootPosition: number;
totalRootPositionCurrentUse: number;
totalRootPositionCurrentVacant: number;
totalRootPositionNextUse: number;
totalRootPositionNextVacant: number;
children: NodeTree;
}
interface PosMaster {
fullNameCurrentHolder: null | string;
fullNameNextHolder: string;
id: string;
isSit: boolean;
isSpecial: boolean;
orgChild1Id: null | string;
orgChild2Id: null | string;
orgChild3Id: null | string;
orgChild4Id: null | string;
orgRootId: string;
orgShortname: string;
posExecutiveId: string;
posExecutiveName: string;
posLevelId: string;
posLevelName: string;
posMasterNo: 1;
posMasterNoPrefix: null | string;
posMasterNoSuffix: null | string;
posTypeId: string;
posTypeName: string;
positionArea: string;
positionExecutiveField: string;
positionField: string;
positionIsSelected: boolean;
positionName: string;
profilePosition: string;
profilePoslevel: null | string;
profilePostype: null | string;
reason: null | string;
positions: Position[];
}
interface Position {
id: string;
isSpecial: boolean;
posExecutiveId: string;
posExecutiveName: string;
posLevelId: string;
posLevelName: string;
posTypeId: string;
posTypeName: string;
positionArea: string;
positionExecutiveField: string;
positionField: string;
positionIsSelected: boolean;
positionName: string;
}
export type { Users, Roles, NodeTree, PosMaster, Position };