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

useTerminatePerson

@mineflow/client-react


@mineflow/client-react / useTerminatePerson

Function: useTerminatePerson()

function useTerminatePerson(): 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: {
force?: boolean;
reason: string;
terminatedAt?: string;
};
id: string;
}>;

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

Увольнение сотрудника (terminal). Инвалидирует список персонала.

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: { force?: boolean; reason: string; terminatedAt?: string; }; id: string; }>