@lightdash/common 0.1379.2 → 0.1380.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { type CompiledExploreJoin, type Explore, type ExploreError, type InlineError } from './explore';
1
+ import { type CompiledExploreJoin, type CompiledTable, type Explore, type ExploreError, type InlineError } from './explore';
2
2
  import { type CompiledDimension, type CompiledMetric, type Dimension, type Field, type FieldType } from './field';
3
3
  import type { KnexPaginatedData } from './knex-paginate';
4
4
  import { type ChartSummary } from './savedCharts';
@@ -62,9 +62,9 @@ export type ApiMetricsCatalog = {
62
62
  status: 'ok';
63
63
  results: KnexPaginatedData<ApiMetricsCatalogResults>;
64
64
  };
65
- export type ApiGetMetric = {
65
+ export type ApiGetMetricPeek = {
66
66
  status: 'ok';
67
- results: CompiledMetric;
67
+ results: CompiledMetric & Pick<CompiledTable, 'defaultTimeDimension'>;
68
68
  };
69
69
  export type CatalogMetadata = {
70
70
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1379.2",
3
+ "version": "0.1380.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [