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

useAssetAssignment

@mineflow/client-react


@mineflow/client-react / useAssetAssignment

Function: useAssetAssignment()

function useAssetAssignment(id: string): UseQueryResult<{
assetId: string;
assignedBy: string;
closeCause: AssetAssignmentResponse_OutputCloseCauseAnyOf0 | null;
closedBy: string | null;
closeReason: string | null;
fromDate: string;
id: string;
isActive: boolean;
personnelId: string;
reason: string | null;
role: AssetAssignmentResponse_OutputRole;
toDate: string | null;
}>;

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

Одно закрепление техники по id.

Parameters

ParameterTypeDescription
idstringUUID закрепления.

Returns

UseQueryResult<{ assetId: string; assignedBy: string; closeCause: AssetAssignmentResponse_OutputCloseCauseAnyOf0 | null; closedBy: string | null; closeReason: string | null; fromDate: string; id: string; isActive: boolean; personnelId: string; reason: string | null; role: AssetAssignmentResponse_OutputRole; toDate: string | null; }>

UseQueryResult с одним закреплением (не запускается при пустом id).