@cubejs-client/core
Advanced tools
Comparing version 0.29.29 to 0.29.33
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.29.33](https://github.com/cube-js/cube.js/compare/v0.29.32...v0.29.33) (2022-03-17) | ||
### Features | ||
* **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)) | ||
## [0.29.29](https://github.com/cube-js/cube.js/compare/v0.29.28...v0.29.29) (2022-03-03) | ||
@@ -8,0 +19,0 @@ |
@@ -11,3 +11,2 @@ /** | ||
declare module '@cubejs-client/core' { | ||
export type TransportOptions = { | ||
@@ -31,8 +30,3 @@ /** | ||
export interface ITransportResponse<R> { | ||
subscribe: <CBResult>( | ||
cb: ( | ||
result: R, | ||
resubscribe: () => Promise<CBResult> | ||
) => CBResult | ||
) => Promise<CBResult>; | ||
subscribe: <CBResult>(cb: (result: R, resubscribe: () => Promise<CBResult>) => CBResult) => Promise<CBResult>; | ||
// Optional, supported in WebSocketTransport | ||
@@ -43,6 +37,3 @@ unsubscribe?: () => Promise<void>; | ||
export interface ITransport<R> { | ||
request( | ||
method: string, | ||
params: Record<string, unknown> | ||
): ITransportResponse<R>; | ||
request(method: string, params: Record<string, unknown>): ITransportResponse<R>; | ||
} | ||
@@ -146,2 +137,7 @@ | ||
type LeafMeasure = { | ||
measure: string; | ||
additive: boolean; | ||
}; | ||
export type TransformedQuery = { | ||
@@ -158,2 +154,3 @@ allFiltersWithinSelectedDimensions: boolean; | ||
sortedTimeDimensions: [[string, string]]; | ||
measureToLeafMeasures?: Record<string, LeafMeasure[]>; | ||
}; | ||
@@ -176,3 +173,3 @@ | ||
extDbType: string; | ||
requestId?: string, | ||
requestId?: string; | ||
usedPreAggregations?: Record<string, UsedPreAggregation>; | ||
@@ -808,3 +805,3 @@ transformedQuery?: TransformedQuery; | ||
ungrouped?: boolean; | ||
responseFormat?: 'compact' | 'default' | ||
responseFormat?: 'compact' | 'default'; | ||
} | ||
@@ -1013,3 +1010,8 @@ | ||
load(query: Query | Query[], options?: LoadMethodOptions, callback?: LoadMethodCallback<ResultSet>): void; | ||
load(query: Query | Query[], options?: LoadMethodOptions, callback?: LoadMethodCallback<ResultSet>, responseFormat?: string): Promise<ResultSet>; | ||
load( | ||
query: Query | Query[], | ||
options?: LoadMethodOptions, | ||
callback?: LoadMethodCallback<ResultSet>, | ||
responseFormat?: string | ||
): Promise<ResultSet>; | ||
@@ -1016,0 +1018,0 @@ /** |
{ | ||
"name": "@cubejs-client/core", | ||
"version": "0.29.29", | ||
"version": "0.29.33", | ||
"engines": {}, | ||
@@ -49,3 +49,3 @@ "repository": { | ||
}, | ||
"gitHead": "23638ee42cceb8fc80e821486ab30825e2b9a483" | ||
"gitHead": "b52e4400b0786c37544b285de1e4c66dcee96e43" | ||
} |
1827152
21288