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

useBrigades

@mineflow/client-react


@mineflow/client-react / useBrigades

Function: useBrigades()

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

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

Список бригад HR (cursor-пагинация).

Parameters

ParameterTypeDescription
query{ cursor?: string; isActive?: boolean; limit?: number; objectId?: string; workType?: PathsApiV1HrBrigadesGetParametersQueryWorkType; }-
query.cursor?stringDescription UUID последнего элемента предыдущей страницы
query.isActive?booleanDescription Фильтр по активности (по умолчанию true)
query.limit?numberDescription Максимум элементов на странице (1–200)
query.objectId?stringDescription Фильтр по производственному объекту
query.workType?PathsApiV1HrBrigadesGetParametersQueryWorkTypeDescription Фильтр по типу работ

Returns

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