@cubejs-client/core 0.29.29 → 0.29.33
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 +16 -14
- package/package.json +2 -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.33](https://github.com/cube-js/cube.js/compare/v0.29.32...v0.29.33) (2022-03-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **playground:** non-additive measures message ([#4236](https://github.com/cube-js/cube.js/issues/4236)) ([ae18bbc](https://github.com/cube-js/cube.js/commit/ae18bbcb9030d0eef03c74410c25902602ec6d43))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.29.29](https://github.com/cube-js/cube.js/compare/v0.29.28...v0.29.29) (2022-03-03)
|
|
7
18
|
|
|
8
19
|
|
package/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
declare module '@cubejs-client/core' {
|
|
11
|
-
|
|
12
11
|
export type TransportOptions = {
|
|
13
12
|
/**
|
|
14
13
|
* [jwt auth token](security)
|
|
@@ -27,21 +26,13 @@ declare module '@cubejs-client/core' {
|
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
export interface ITransportResponse<R> {
|
|
30
|
-
subscribe: <CBResult>(
|
|
31
|
-
cb: (
|
|
32
|
-
result: R,
|
|
33
|
-
resubscribe: () => Promise<CBResult>
|
|
34
|
-
) => CBResult
|
|
35
|
-
) => Promise<CBResult>;
|
|
29
|
+
subscribe: <CBResult>(cb: (result: R, resubscribe: () => Promise<CBResult>) => CBResult) => Promise<CBResult>;
|
|
36
30
|
// Optional, supported in WebSocketTransport
|
|
37
31
|
unsubscribe?: () => Promise<void>;
|
|
38
32
|
}
|
|
39
33
|
|
|
40
34
|
export interface ITransport<R> {
|
|
41
|
-
request(
|
|
42
|
-
method: string,
|
|
43
|
-
params: Record<string, unknown>
|
|
44
|
-
): ITransportResponse<R>;
|
|
35
|
+
request(method: string, params: Record<string, unknown>): ITransportResponse<R>;
|
|
45
36
|
}
|
|
46
37
|
|
|
47
38
|
/**
|
|
@@ -140,6 +131,11 @@ declare module '@cubejs-client/core' {
|
|
|
140
131
|
|
|
141
132
|
type QueryType = 'regularQuery' | 'compareDateRangeQuery' | 'blendingQuery';
|
|
142
133
|
|
|
134
|
+
type LeafMeasure = {
|
|
135
|
+
measure: string;
|
|
136
|
+
additive: boolean;
|
|
137
|
+
};
|
|
138
|
+
|
|
143
139
|
export type TransformedQuery = {
|
|
144
140
|
allFiltersWithinSelectedDimensions: boolean;
|
|
145
141
|
granularityHierarchies: Record<string, string[]>;
|
|
@@ -151,6 +147,7 @@ declare module '@cubejs-client/core' {
|
|
|
151
147
|
measures: string[];
|
|
152
148
|
sortedDimensions: string[];
|
|
153
149
|
sortedTimeDimensions: [[string, string]];
|
|
150
|
+
measureToLeafMeasures?: Record<string, LeafMeasure[]>;
|
|
154
151
|
};
|
|
155
152
|
|
|
156
153
|
export type PreAggregationType = 'rollup' | 'rollupJoin' | 'originalSql';
|
|
@@ -168,7 +165,7 @@ declare module '@cubejs-client/core' {
|
|
|
168
165
|
external: boolean | null;
|
|
169
166
|
dbType: string;
|
|
170
167
|
extDbType: string;
|
|
171
|
-
requestId?: string
|
|
168
|
+
requestId?: string;
|
|
172
169
|
usedPreAggregations?: Record<string, UsedPreAggregation>;
|
|
173
170
|
transformedQuery?: TransformedQuery;
|
|
174
171
|
};
|
|
@@ -799,7 +796,7 @@ declare module '@cubejs-client/core' {
|
|
|
799
796
|
timezone?: string;
|
|
800
797
|
renewQuery?: boolean;
|
|
801
798
|
ungrouped?: boolean;
|
|
802
|
-
responseFormat?: 'compact' | 'default'
|
|
799
|
+
responseFormat?: 'compact' | 'default';
|
|
803
800
|
}
|
|
804
801
|
|
|
805
802
|
export class ProgressResult {
|
|
@@ -1003,7 +1000,12 @@ declare module '@cubejs-client/core' {
|
|
|
1003
1000
|
* @param query - [Query object](query-format)
|
|
1004
1001
|
*/
|
|
1005
1002
|
load(query: Query | Query[], options?: LoadMethodOptions, callback?: LoadMethodCallback<ResultSet>): void;
|
|
1006
|
-
load(
|
|
1003
|
+
load(
|
|
1004
|
+
query: Query | Query[],
|
|
1005
|
+
options?: LoadMethodOptions,
|
|
1006
|
+
callback?: LoadMethodCallback<ResultSet>,
|
|
1007
|
+
responseFormat?: string
|
|
1008
|
+
): Promise<ResultSet>;
|
|
1007
1009
|
|
|
1008
1010
|
/**
|
|
1009
1011
|
* Allows you to fetch data and receive updates over time. See [Real-Time Data Fetch](real-time-data-fetch)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-client/core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.33",
|
|
4
4
|
"engines": {},
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"eslint-plugin-node": "^5.2.1",
|
|
47
47
|
"jest": "^26.0.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "b52e4400b0786c37544b285de1e4c66dcee96e43"
|
|
50
50
|
}
|