Перейти к основному содержимому

usePerson

@mineflow/client-react


@mineflow/client-react / HR / usePerson

Function: usePerson()

function usePerson(id: string): UseQueryResult<{
birthDate: string | null;
birthPlace: string | null;
email: string | null;
fullName: string;
hasAvatar?: boolean;
hiredAt: string;
id: string;
iin: string | null;
objectId: string | null;
orgNodeId: string | null;
phone: string | null;
positionId: string;
status: PersonnelResponse_OutputStatus;
tabNumber: string;
terminatedAt: string | null;
watchGroup: PersonnelResponse_OutputWatchGroupAnyOf0 | null;
}>;

Defined in: client-react/src/domain-hooks/hr.generated.ts:33

Один сотрудник HR по id.

Parameters​

ParameterType
idstring

Returns​

UseQueryResult<{ birthDate: string | null; birthPlace: string | null; email: string | null; fullName: string; hasAvatar?: boolean; hiredAt: string; id: string; iin: string | null; objectId: string | null; orgNodeId: string | null; phone: string | null; positionId: string; status: PersonnelResponse_OutputStatus; tabNumber: string; terminatedAt: string | null; watchGroup: PersonnelResponse_OutputWatchGroupAnyOf0 | null; }>