Skip to content

Commit 91d9cc3

Browse files
committed
fix types imports
1 parent f3b15cc commit 91d9cc3

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

packages/cubejs-api-gateway/src/sql-server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import {
88
Request as NativeRequest,
99
LoadRequestMeta,
1010
Sql4SqlResponse,
11-
CacheMode,
1211
} from '@cubejs-backend/native';
1312
import type { ShutdownMode } from '@cubejs-backend/native';
14-
import { displayCLIWarning, getEnv } from '@cubejs-backend/shared';
13+
import { displayCLIWarning, getEnv, CacheMode } from '@cubejs-backend/shared';
1514

1615
import * as crypto from 'crypto';
1716
import type { ApiGateway } from './gateway';

packages/cubejs-api-gateway/src/types/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Network query data types definition.
66
*/
77

8+
import { CacheMode } from '@cubejs-backend/shared';
89
import {
910
Member,
1011
TimeMember,
1112
FilterOperator,
1213
QueryTimeDimensionGranularity,
1314
} from './strings';
1415
import { ResultType } from './enums';
15-
import { CacheMode } from '@cubejs-backend/native';
1616

1717
/**
1818
* Query base filter definition.

packages/cubejs-backend-native/js/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import fs from 'fs';
33
import path from 'path';
44
import { Writable } from 'stream';
55
import type { Request as ExpressRequest } from 'express';
6+
import { CacheMode } from '@cubejs-backend/shared';
67
import { ResultWrapper } from './ResultWrapper';
78

89
export * from './ResultWrapper';
@@ -429,8 +430,6 @@ export const registerInterface = async (options: SQLInterfaceOptions): Promise<S
429430

430431
export type ShutdownMode = 'fast' | 'semifast' | 'smart';
431432

432-
export type CacheMode = 'stale-if-slow' | 'stale-while-revalidate' | 'must-revalidate' | 'no-cache';
433-
434433
export const shutdownInterface = async (instance: SqlInterfaceInstance, shutdownMode: ShutdownMode): Promise<void> => {
435434
const native = loadNative();
436435

packages/cubejs-backend-shared/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export * from './convert';
1313
export * from './helpers';
1414
export * from './machine-id';
1515
export * from './type-helpers';
16+
export * from './shared-types';
1617
export * from './http-utils';
1718
export * from './cli';
1819
export * from './proxy';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type CacheMode = 'stale-if-slow' | 'stale-while-revalidate' | 'must-revalidate' | 'no-cache';

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import Meta from './Meta';
22
import { TimeDimensionGranularity } from './time';
33
import { TransportOptions } from './HttpTransport';
4-
import { CacheMode } from '@cubejs-backend/native';
54

65
export type QueryOrder = 'asc' | 'desc' | 'none';
76

87
export type TQueryOrderObject = { [key: string]: QueryOrder };
98
export type TQueryOrderArray = Array<[string, QueryOrder]>;
109

10+
export type CacheMode = 'stale-if-slow' | 'stale-while-revalidate' | 'must-revalidate' | 'no-cache';
11+
1112
export type GranularityAnnotation = {
1213
name: string;
1314
title: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CacheMode } from '@cubejs-backend/native';
1+
import { CacheMode } from '@cubejs-backend/shared';
22

33
declare module "@cubejs-client/core" {
44

packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { DriverFactory, DriverFactoryByDataSource } from './DriverFactory';
1919
import { LoadPreAggregationResult, PreAggregationDescription } from './PreAggregations';
2020
import { getCacheHash } from './utils';
2121
import { CacheAndQueryDriverType, MetadataOperationType } from './QueryOrchestrator';
22-
import { CacheMode } from '@cubejs-backend/native';
22+
import { CacheMode } from '@cubejs-backend/shared';
2323

2424
type QueryOptions = {
2525
external?: boolean;

0 commit comments

Comments
 (0)