@cubejs-client/core 0.29.0 → 0.29.5
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/CHANGELOG.md +11 -0
- package/index.d.ts +26 -14
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.29.5](https://github.com/cube-js/cube.js/compare/v0.29.4...v0.29.5) (2021-12-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **@cubejs-client/dx:** introduce new dependency for Cube.js Client ([5bfaf1c](https://github.com/cube-js/cube.js/commit/5bfaf1cf99d68dfcdddb04f2b3151ad451657ff9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.29.0](https://github.com/cube-js/cube.js/compare/v0.28.67...v0.29.0) (2021-12-14)
|
|
7
18
|
|
|
8
19
|
|
package/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
declare module '@cubejs-client/core' {
|
|
11
|
+
|
|
11
12
|
export type TransportOptions = {
|
|
12
13
|
/**
|
|
13
14
|
* [jwt auth token](security)
|
|
@@ -714,28 +715,34 @@ declare module '@cubejs-client/core' {
|
|
|
714
715
|
}
|
|
715
716
|
|
|
716
717
|
export type Filter = BinaryFilter | UnaryFilter | LogicalOrFilter | LogicalAndFilter;
|
|
717
|
-
type LogicalAndFilter = {
|
|
718
|
+
export type LogicalAndFilter = {
|
|
718
719
|
and: (BinaryFilter | UnaryFilter | LogicalOrFilter)[];
|
|
719
720
|
};
|
|
720
721
|
|
|
721
|
-
type LogicalOrFilter = {
|
|
722
|
+
export type LogicalOrFilter = {
|
|
722
723
|
or: (BinaryFilter | UnaryFilter | LogicalAndFilter)[];
|
|
723
724
|
};
|
|
724
725
|
|
|
725
|
-
|
|
726
|
+
export interface BinaryFilter {
|
|
727
|
+
/**
|
|
728
|
+
* @deprecated Use `member` instead.
|
|
729
|
+
*/
|
|
726
730
|
dimension?: string;
|
|
727
731
|
member?: string;
|
|
728
732
|
operator: BinaryOperator;
|
|
729
733
|
values: string[];
|
|
730
|
-
}
|
|
731
|
-
|
|
734
|
+
}
|
|
735
|
+
export interface UnaryFilter {
|
|
736
|
+
/**
|
|
737
|
+
* @deprecated Use `member` instead.
|
|
738
|
+
*/
|
|
732
739
|
dimension?: string;
|
|
733
740
|
member?: string;
|
|
734
741
|
operator: UnaryOperator;
|
|
735
742
|
values?: never;
|
|
736
|
-
}
|
|
737
|
-
type UnaryOperator = 'set' | 'notSet';
|
|
738
|
-
type BinaryOperator =
|
|
743
|
+
}
|
|
744
|
+
export type UnaryOperator = 'set' | 'notSet';
|
|
745
|
+
export type BinaryOperator =
|
|
739
746
|
| 'equals'
|
|
740
747
|
| 'notEquals'
|
|
741
748
|
| 'contains'
|
|
@@ -753,10 +760,10 @@ declare module '@cubejs-client/core' {
|
|
|
753
760
|
|
|
754
761
|
export type DateRange = string | [string, string];
|
|
755
762
|
|
|
756
|
-
export
|
|
763
|
+
export interface TimeDimensionBase {
|
|
757
764
|
dimension: string;
|
|
758
765
|
granularity?: TimeDimensionGranularity;
|
|
759
|
-
}
|
|
766
|
+
}
|
|
760
767
|
|
|
761
768
|
type TimeDimensionComparisonFields = {
|
|
762
769
|
compareDateRange: Array<DateRange>;
|
|
@@ -771,7 +778,7 @@ declare module '@cubejs-client/core' {
|
|
|
771
778
|
|
|
772
779
|
export type TimeDimension = TimeDimensionComparison | TimeDimensionRanged;
|
|
773
780
|
|
|
774
|
-
export
|
|
781
|
+
export interface Query {
|
|
775
782
|
measures?: string[];
|
|
776
783
|
dimensions?: string[];
|
|
777
784
|
filters?: Filter[];
|
|
@@ -783,7 +790,7 @@ declare module '@cubejs-client/core' {
|
|
|
783
790
|
timezone?: string;
|
|
784
791
|
renewQuery?: boolean;
|
|
785
792
|
ungrouped?: boolean;
|
|
786
|
-
}
|
|
793
|
+
}
|
|
787
794
|
|
|
788
795
|
export class ProgressResult {
|
|
789
796
|
stage(): string;
|
|
@@ -1105,12 +1112,15 @@ declare module '@cubejs-client/core' {
|
|
|
1105
1112
|
|
|
1106
1113
|
export function defaultOrder(query: Query): { [key: string]: QueryOrder };
|
|
1107
1114
|
|
|
1108
|
-
|
|
1115
|
+
export interface TFlatFilter {
|
|
1116
|
+
/**
|
|
1117
|
+
* @deprecated Use `member` instead.
|
|
1118
|
+
*/
|
|
1109
1119
|
dimension?: string;
|
|
1110
1120
|
member?: string;
|
|
1111
1121
|
operator: BinaryOperator;
|
|
1112
1122
|
values: string[];
|
|
1113
|
-
}
|
|
1123
|
+
}
|
|
1114
1124
|
|
|
1115
1125
|
/**
|
|
1116
1126
|
* @hidden
|
|
@@ -1143,3 +1153,5 @@ declare module '@cubejs-client/core' {
|
|
|
1143
1153
|
timeElapsed: number;
|
|
1144
1154
|
};
|
|
1145
1155
|
}
|
|
1156
|
+
|
|
1157
|
+
import '@cubejs-client/dx';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.5",
|
|
4
4
|
"engines": {},
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"author": "Cube Dev, Inc.",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.1.2",
|
|
17
|
+
"@cubejs-client/dx": "^0.29.5",
|
|
17
18
|
"core-js": "^3.6.5",
|
|
18
19
|
"cross-fetch": "^3.0.2",
|
|
19
20
|
"dayjs": "^1.10.4",
|
|
@@ -45,5 +46,5 @@
|
|
|
45
46
|
"eslint-plugin-node": "^5.2.1",
|
|
46
47
|
"jest": "^26.0.1"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "518281dea6e0c511813df4502f3aa97038f9be23"
|
|
49
50
|
}
|