Data
FacetOption, GridQueryRequest, PagedResponse, ServerFetchFunction and 2 more: generated from the source of active-grid.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
interface FacetOption {
label: string;
value: string;
count: number;
}interface GridQueryRequest {
page: number;
pageSize: number;
sorting: Array<{field: string; direction: 'asc' | 'desc'}>;
filters: Record<string, unknown>;
search?: string;
}interface PagedResponse<T> {
data: T[];
totalCount: number;
facets?: Record<string, FacetOption[]>;
aggregations?: Record<string, number | string>;
isGrouped?: boolean;
groups?: GroupInfo[];
}type ServerFetchFunction<TData> = (
params: ServerFetchParams,
) => Promise<PagedResponse<TData>>;interface ServerFetchParams {
pageIndex: number;
fetchSize: number;
sorting: SortingState;
filters: ColumnFiltersState;
globalFilter?: string;
signal: AbortSignal;
groupBy?: GroupByColumn[];
groupKeys?: unknown[];
groupAggregations?: GroupAggregation[];
}interface ServerOptions {
cacheSize?: number;
prefetch?: boolean;
blockSize?: number;
retryCount?: number;
retryDelay?: number;
retryBackoffMultiplier?: number;
}