mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 02:32:15 +01:00
add reporting page, chart and filters
This commit is contained in:
@@ -2,6 +2,7 @@ import type {
|
||||
ApiOf,
|
||||
ZodiosResponseByAlias,
|
||||
ZodiosBodyByAlias,
|
||||
ZodiosQueryParamsByAlias,
|
||||
} from '@zodios/core';
|
||||
import { api } from '../../../openapi.json.client';
|
||||
|
||||
@@ -84,3 +85,16 @@ export type ImportType = ZodiosResponseByAlias<
|
||||
'getImporters'
|
||||
>['data'][0];
|
||||
export type ImportReport = ZodiosResponseByAlias<SolidTimeApi, 'importData'>;
|
||||
|
||||
export type ReportingResponse = ZodiosResponseByAlias<
|
||||
SolidTimeApi,
|
||||
'getAggregatedTimeEntries'
|
||||
>;
|
||||
|
||||
export type AggregatedTimeEntries = ReportingResponse['data'];
|
||||
export type GroupedDataEntries = ReportingResponse['data']['grouped_data'];
|
||||
|
||||
export type AggregatedTimeEntriesQueryParams = ZodiosQueryParamsByAlias<
|
||||
SolidTimeApi,
|
||||
'getAggregatedTimeEntries'
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user