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

usePersonnelOrders

@mineflow/client-react


@mineflow/client-react / HR / usePersonnelOrders

Function: usePersonnelOrders()

function usePersonnelOrders(query?: object): UseQueryResult<{
items: object[];
nextCursor: string | null;
}>;

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

Журнал кадровых приказов КДП (cursor-пагинация, фильтры personnelId/objectId/category/operationType/status).

Parameters​

ParameterTypeDescription
query{ category?: PathsApiV1HrPersonnelOrdersGetParametersQueryCategory; cursor?: string; limit?: number; objectId?: string; operationType?: PathsApiV1HrPersonnelOrdersGetParametersQueryOperationType; personnelId?: string; status?: PathsApiV1HrPersonnelOrdersGetParametersQueryStatus; }-
query.category?PathsApiV1HrPersonnelOrdersGetParametersQueryCategoryDescription Фильтр по категории операции
query.cursor?stringDescription UUID последнего элемента предыдущей страницы
query.limit?numberDescription Максимум элементов на странице (1–200)
query.objectId?stringDescription Фильтр по производственному объекту
query.operationType?PathsApiV1HrPersonnelOrdersGetParametersQueryOperationTypeDescription Фильтр по типу операции
query.personnelId?stringDescription Фильтр по сотруднику
query.status?PathsApiV1HrPersonnelOrdersGetParametersQueryStatusDescription Фильтр по статусу FSM приказа

Returns​

UseQueryResult<{ items: object[]; nextCursor: string | null; }>