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

useMaintenanceRecord

@mineflow/client-react


@mineflow/client-react / EAM / useMaintenanceRecord

Function: useMaintenanceRecord()

function useMaintenanceRecord(id: string): UseQueryResult<{
assetId: string;
cancellationReason: string | null;
cancelledAt: string | null;
cancelledBy: string | null;
completedAt: string | null;
id: string;
kind: MaintenanceRecordResponse_OutputKind;
meterAtCompleted: number | null;
meterAtScheduled: number | null;
normCode: string | null;
performedBy: string;
reason: string;
scheduledAt: string;
startedAt: string | null;
status: MaintenanceRecordResponse_OutputStatus;
}>;

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

Одна запись ТО EAM по id.

Parameters​

ParameterType
idstring

Returns​

UseQueryResult<{ assetId: string; cancellationReason: string | null; cancelledAt: string | null; cancelledBy: string | null; completedAt: string | null; id: string; kind: MaintenanceRecordResponse_OutputKind; meterAtCompleted: number | null; meterAtScheduled: number | null; normCode: string | null; performedBy: string; reason: string; scheduledAt: string; startedAt: string | null; status: MaintenanceRecordResponse_OutputStatus; }>