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

useCreateOrgNode

@mineflow/client-react


@mineflow/client-react / HR / useCreateOrgNode

Function: useCreateOrgNode()

function useCreateOrgNode(): UseMutationResult<{
createdAt: string;
id: string;
orderIndex: number;
parentId: string | null;
plannedHeadcount: number;
positionId: string | null;
status: OrgNodeResponse_OutputStatus;
subdivision: string | null;
title: string | null;
updatedAt: string;
}, Error, {
orderIndex: number;
parentId?: string | null;
plannedHeadcount: number;
positionId?: string | null;
subdivision?: string | null;
title?: string | null;
}>;

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

Создание узла штатного расписания (позиция или подразделение). Только Admin/CEO. Инвалидирует дерево и детали оргструктуры.

Returns​

UseMutationResult<{ createdAt: string; id: string; orderIndex: number; parentId: string | null; plannedHeadcount: number; positionId: string | null; status: OrgNodeResponse_OutputStatus; subdivision: string | null; title: string | null; updatedAt: string; }, Error, { orderIndex: number; parentId?: string | null; plannedHeadcount: number; positionId?: string | null; subdivision?: string | null; title?: string | null; }>