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

useUpdateBrigade

@mineflow/client-react


@mineflow/client-react / useUpdateBrigade

Function: useUpdateBrigade()

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

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

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

Returns

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