useBrigades
@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
| Parameter | Type | Description |
|---|---|---|
query | { cursor?: string; isActive?: boolean; limit?: number; objectId?: string; workType?: PathsApiV1HrBrigadesGetParametersQueryWorkType; } | - |
query.cursor? | string | Description UUID последнего элемента предыдущей страницы |
query.isActive? | boolean | Description Фильтр по активности (по умолчанию true) |
query.limit? | number | Description Максимум элементов на странице (1–200) |
query.objectId? | string | Description Фильтр по производственному объекту |
query.workType? | PathsApiV1HrBrigadesGetParametersQueryWorkType | Description Фильтр по типу работ |
Returns
UseQueryResult<{
items: object[];
nextCursor: string | null;
}>