Skip to content

Commit 2895254

Browse files
committed
remove cacheMode from client query body types (it's incorrect)
1 parent 2030eeb commit 2895254

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

packages/cubejs-client-core/src/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export type QueryOrder = 'asc' | 'desc' | 'none';
77
export type TQueryOrderObject = { [key: string]: QueryOrder };
88
export type TQueryOrderArray = Array<[string, QueryOrder]>;
99

10-
export type CacheMode = 'stale-if-slow' | 'stale-while-revalidate' | 'must-revalidate' | 'no-cache';
11-
1210
export type GranularityAnnotation = {
1311
name: string;
1412
title: string;
@@ -117,7 +115,6 @@ export interface Query {
117115
timezone?: string;
118116
// @deprecated
119117
renewQuery?: boolean;
120-
cache?: CacheMode;
121118
ungrouped?: boolean;
122119
responseFormat?: 'compact' | 'default';
123120
total?: boolean;

packages/cubejs-client-dx/index.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { CacheMode } from '@cubejs-backend/shared';
2-
31
declare module "@cubejs-client/core" {
42

53
export type IntrospectedMeasureName = import('./generated').IntrospectedMeasureName;
@@ -23,7 +21,6 @@ declare module "@cubejs-client/core" {
2321
timezone?: string;
2422
// @deprecated
2523
renewQuery?: boolean;
26-
cache?: CacheMode;
2724
ungrouped?: boolean;
2825
}
2926

0 commit comments

Comments
 (0)