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

useUpdatePerson

@mineflow/client-react


@mineflow/client-react / useUpdatePerson

Function: useUpdatePerson()

function useUpdatePerson(): UseMutationResult<{
birthDate: string | null;
email: string | null;
fullName: string;
hiredAt: string;
id: string;
objectId: string | null;
phone: string | null;
positionId: string;
status: PersonnelResponse_OutputStatus;
tabNumber: string;
terminatedAt: string | null;
}, Error, {
body: {
email?: string | null;
fullName?: string;
phone?: string | null;
positionId?: string;
};
id: string;
}>;

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

Редактирование карточки сотрудника (PATCH). Инвалидирует список персонала.

Returns

UseMutationResult<{ birthDate: string | null; email: string | null; fullName: string; hiredAt: string; id: string; objectId: string | null; phone: string | null; positionId: string; status: PersonnelResponse_OutputStatus; tabNumber: string; terminatedAt: string | null; }, Error, { body: { email?: string | null; fullName?: string; phone?: string | null; positionId?: string; }; id: string; }>