File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed
packages/cubejs-client-core Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -692,18 +692,6 @@ Name | Type |
692
692
method | string |
693
693
params | any |
694
694
695
- ## TimeDimensionGranularities
696
-
697
- • ** DAY** = "day"
698
-
699
- • ** HOUR** = "hour"
700
-
701
- • ** MONTH** = "month"
702
-
703
- • ** WEEK** = "week"
704
-
705
- • ** YEAR** = "year"
706
-
707
695
## Annotation
708
696
709
697
Name | Type |
@@ -939,7 +927,11 @@ Name | Type |
939
927
------ | ------ |
940
928
dateRange? | string | ; string[ ] |
941
929
dimension | string |
942
- granularity? | [ TimeDimensionGranularities] ( #time-dimension-granularities ) |
930
+ granularity? | [ TimeDimensionGranularity] ( #time-dimension-granularity ) |
931
+
932
+ ## TimeDimensionGranularity
933
+
934
+ Ƭ ** TimeDimensionGranularity** : * "hour" | "day" | "week" | "month" | "year"*
943
935
944
936
## TransportOptions
945
937
Original file line number Diff line number Diff line change @@ -550,18 +550,12 @@ declare module '@cubejs-client/core' {
550
550
values ?: string [ ] ;
551
551
} ;
552
552
553
- export enum TimeDimensionGranularities {
554
- HOUR = 'hour' ,
555
- DAY = 'day' ,
556
- WEEK = 'week' ,
557
- MONTH = 'month' ,
558
- YEAR = 'year' ,
559
- }
553
+ type TimeDimensionGranularity = 'hour' | 'day' | 'week' | 'month' | 'year' ;
560
554
561
555
export type TimeDimension = {
562
556
dimension : string ;
563
557
dateRange ?: string | string [ ] ;
564
- granularity ?: TimeDimensionGranularities ;
558
+ granularity ?: TimeDimensionGranularity ;
565
559
} ;
566
560
567
561
export type Query = {
You can’t perform that action at this time.
0 commit comments