useTimesheet
@mineflow/client-react / useTimesheet
Function: useTimesheet()
function useTimesheet(query: object): UseQueryResult<{
items: object[];
nextCursor: string | null;
}>;
Defined in: client-react/src/domain-hooks/hr.generated.ts:79
Табель HR за период (query.dateFrom/dateTo обязательны на бэке).
Parameters
| Parameter | Type | Description |
|---|---|---|
query | { cursor?: string; dateFrom: string; dateTo: string; limit?: number; objectId?: string; personnelId?: string; shiftId?: string; shiftReportId?: string; status?: PathsApiV1HrTimesheetGetParametersQueryStatus; } | - |
query.cursor? | string | Description UUID последнего элемента предыдущей страницы |
query.dateFrom | string | Description Нижняя граница периода (ISO 8601, YYYY-MM-DD) — включительно |
query.dateTo | string | Description Верхняя граница периода (ISO 8601, YYYY-MM-DD) — включительно |
query.limit? | number | Description Максимум элементов на странице (1–200) |
query.objectId? | string | Description Фильтр по производственному объекту |
query.personnelId? | string | Description Фильтр по сотруднику |
query.shiftId? | string | Description Фильтр по смене |
query.shiftReportId? | string | Description Фильтр по сменному отчёту |
query.status? | PathsApiV1HrTimesheetGetParametersQueryStatus | Description Фильтр по статусу записи |
Returns
UseQueryResult<{
items: object[];
nextCursor: string | null;
}>