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

useReactivateAsset

@mineflow/client-react


@mineflow/client-react / EAM / useReactivateAsset

Function: useReactivateAsset()

function useReactivateAsset(): UseMutationResult<{
assetClassId: string;
commissionedAt: string;
currentObjectId: string;
id: string;
inventoryNumber: string;
name: string;
passport: {
manufacturer: string | null;
model: string | null;
productionYear: number | null;
specifications: {
[key: string]: unknown;
};
techPassportNumber: string | null;
warrantyMonths: number | null;
warrantyTermsText: string | null;
warrantyUntil: string | null;
};
responsibleMechanicId: string | null;
status: AssetResponse_OutputStatus;
}, Error, {
id: string;
}>;

Defined in: client-react/src/domain-hooks/eam.ts:230

Расконсервация актива: FSM conserved → operational (событие REACTIVATE). ADR-0045: dedicated PATCH /eam/assets/:id/reactivate (тело не требуется).

Returns​

UseMutationResult<{ assetClassId: string; commissionedAt: string; currentObjectId: string; id: string; inventoryNumber: string; name: string; passport: { manufacturer: string | null; model: string | null; productionYear: number | null; specifications: { [key: string]: unknown; }; techPassportNumber: string | null; warrantyMonths: number | null; warrantyTermsText: string | null; warrantyUntil: string | null; }; responsibleMechanicId: string | null; status: AssetResponse_OutputStatus; }, Error, { id: string; }>