@cubejs-client/core 0.35.23 → 0.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +17 -3
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -787,7 +787,9 @@ declare module '@cubejs-client/core' {
|
|
|
787
787
|
| 'afterDate'
|
|
788
788
|
| 'afterOrOnDate';
|
|
789
789
|
|
|
790
|
-
export type
|
|
790
|
+
export type TimeDimensionPredefinedGranularity = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
791
|
+
|
|
792
|
+
export type TimeDimensionGranularity = TimeDimensionPredefinedGranularity | string;
|
|
791
793
|
|
|
792
794
|
export type DateRange = string | [string, string];
|
|
793
795
|
|
|
@@ -941,10 +943,22 @@ declare module '@cubejs-client/core' {
|
|
|
941
943
|
format?: 'currency' | 'percent';
|
|
942
944
|
};
|
|
943
945
|
|
|
944
|
-
export type
|
|
946
|
+
export type CubeTimeDimensionGranularity = {
|
|
947
|
+
name: string;
|
|
948
|
+
title: string;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
export type BaseCubeDimension = BaseCubeMember & {
|
|
945
952
|
primaryKey?: boolean;
|
|
946
953
|
suggestFilterValues: boolean;
|
|
947
|
-
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
export type CubeTimeDimension = BaseCubeDimension &
|
|
957
|
+
{ type: 'time'; granularities?: CubeTimeDimensionGranularity[] };
|
|
958
|
+
|
|
959
|
+
export type TCubeDimension =
|
|
960
|
+
(BaseCubeDimension & { type: Exclude<BaseCubeDimension['type'], 'time'> }) |
|
|
961
|
+
CubeTimeDimension;
|
|
948
962
|
|
|
949
963
|
export type TCubeSegment = Omit<BaseCubeMember, 'type'>;
|
|
950
964
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.2",
|
|
4
4
|
"engines": {},
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"eslint-plugin-node": "^5.2.1",
|
|
46
46
|
"jest": "^27"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ab3771bfce10eaabafff99404250a3681be79137"
|
|
49
49
|
}
|