@@ -12,19 +12,14 @@ import { ConfigItem } from './prepareAnnotation';
1212import { NormalizedQuery , QueryTimeDimension } from '../types/query' ;
1313import { QueryType , ResultType , } from '../types/strings' ;
1414import { QueryType as QueryTypeEnum , ResultType as ResultTypeEnum , } from '../types/enums' ;
15- import { DBResponsePrimitive , DBResponseValue } from '../types/responses' ;
15+ import { AliasToMemberMap , DBResponsePrimitive , DBResponseValue , TransformDataResponse } from '../types/responses' ;
1616
1717const COMPARE_DATE_RANGE_FIELD = 'compareDateRange' ;
1818const COMPARE_DATE_RANGE_SEPARATOR = ' - ' ;
1919const BLENDING_QUERY_KEY_PREFIX = 'time.' ;
2020const BLENDING_QUERY_RES_SEPARATOR = '.' ;
2121const MEMBER_SEPARATOR = '.' ;
2222
23- /**
24- * SQL aliases to cube properties hash map.
25- */
26- type AliasToMemberMap = { [ alias : string ] : string } ;
27-
2823/**
2924 * Parse date range value from time dimension.
3025 * @internal
@@ -311,12 +306,7 @@ function transformData(
311306 query : NormalizedQuery ,
312307 queryType : QueryType ,
313308 resType ?: ResultType
314- ) : {
315- members : string [ ] ,
316- dataset : DBResponsePrimitive [ ] [ ]
317- } | {
318- [ member : string ] : DBResponsePrimitive
319- } [ ] {
309+ ) : TransformDataResponse {
320310 const d = data as { [ sqlAlias : string ] : DBResponseValue } [ ] ;
321311 const membersToAliasMap = getMembers (
322312 queryType ,
@@ -364,7 +354,6 @@ function transformData(
364354
365355export default transformData ;
366356export {
367- AliasToMemberMap ,
368357 COMPARE_DATE_RANGE_FIELD ,
369358 COMPARE_DATE_RANGE_SEPARATOR ,
370359 BLENDING_QUERY_KEY_PREFIX ,
0 commit comments