77 ColumnMetaType ,
88} from '@hyperdx/common-utils/dist/clickhouse' ;
99import { renderChartConfig } from '@hyperdx/common-utils/dist/renderChartConfig' ;
10- import { ChatConfigWithOptTimestamp } from '@hyperdx/common-utils/dist/types' ;
10+ import { ChartConfigWithOptTimestamp } from '@hyperdx/common-utils/dist/types' ;
1111import {
1212 isFirstOrderByAscending ,
1313 isTimestampExpressionInFirstOrderBy ,
@@ -26,12 +26,12 @@ import { omit } from '@/utils';
2626
2727type TQueryKey = readonly [
2828 string ,
29- ChatConfigWithOptTimestamp ,
29+ ChartConfigWithOptTimestamp ,
3030 number | undefined ,
3131] ;
3232function queryKeyFn (
3333 prefix : string ,
34- config : ChatConfigWithOptTimestamp ,
34+ config : ChartConfigWithOptTimestamp ,
3535 queryTimeout ?: number ,
3636) : TQueryKey {
3737 return [ prefix , config , queryTimeout ] ;
@@ -130,7 +130,7 @@ function generateTimeWindowsAscending(startDate: Date, endDate: Date) {
130130
131131// Get time window from page param
132132function getTimeWindowFromPageParam (
133- config : ChatConfigWithOptTimestamp ,
133+ config : ChartConfigWithOptTimestamp ,
134134 pageParam : TPageParam ,
135135) : TimeWindow {
136136 const [ startDate , endDate ] = config . dateRange ;
@@ -148,7 +148,7 @@ function getTimeWindowFromPageParam(
148148function getNextPageParam (
149149 lastPage : TQueryFnData | null ,
150150 allPages : TQueryFnData [ ] ,
151- config : ChatConfigWithOptTimestamp ,
151+ config : ChartConfigWithOptTimestamp ,
152152) : TPageParam | undefined {
153153 if ( lastPage == null ) {
154154 return undefined ;
@@ -428,7 +428,7 @@ function flattenData(data: TData | undefined): TQueryFnData | null {
428428}
429429
430430export default function useOffsetPaginatedQuery (
431- config : ChatConfigWithOptTimestamp ,
431+ config : ChartConfigWithOptTimestamp ,
432432 {
433433 isLive,
434434 enabled = true ,
0 commit comments