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

useCreateBrigade

@mineflow/client-react


@mineflow/client-react / useCreateBrigade

Function: useCreateBrigade()

function useCreateBrigade(): UseMutationResult<{
brigadierId: string | null;
createdAt: string;
id: string;
isActive: boolean;
name: string;
objectId: string;
workType: BrigadeResponse_OutputWorkType;
}, Error, {
brigadierId?: string | null;
name: string;
objectId: string;
workType: CreateBrigadeDtoWorkType;
}>;

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

Создание бригады. Инвалидирует список бригад.

Returns

UseMutationResult<{ brigadierId: string | null; createdAt: string; id: string; isActive: boolean; name: string; objectId: string; workType: BrigadeResponse_OutputWorkType; }, Error, { brigadierId?: string | null; name: string; objectId: string; workType: CreateBrigadeDtoWorkType; }>