@lightdash/common 0.1416.1 → 0.1417.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,8 @@ export type ApiChartAsCodeUpsertResponse = {
13
13
  status: 'ok';
14
14
  results: PromotionChanges;
15
15
  };
16
- export type DashboardTileWithoutUuids = Omit<DashboardTile, 'properties'> & {
16
+ export type DashboardTileWithoutUuids = Omit<DashboardTile, 'properties' | 'uuid'> & {
17
+ uuid: DashboardTile['uuid'] | undefined;
17
18
  properties: Omit<DashboardTile['properties'], 'savedChartUuid' | 'savedSqlUuid' | 'savedSemanticViewerChartUuid'>;
18
19
  };
19
20
  export type DashboardAsCode = Pick<Dashboard, 'name' | 'description' | 'updatedAt' | 'filters' | 'tabs' | 'slug'> & {
@@ -334,7 +334,7 @@ const getAvailableSegmentDimensions = (dimensions) => dimensions
334
334
  !d.timeIntervalBaseDimensionName);
335
335
  exports.getAvailableSegmentDimensions = getAvailableSegmentDimensions;
336
336
  const getAvailableCompareMetrics = (metrics) => metrics
337
- .filter((metric) => !!metric.defaultTimeDimension)
337
+ .filter((metric) => !!metric.timeDimension)
338
338
  .filter((metric) => metric.type !== field_1.MetricType.STRING &&
339
339
  metric.type !== field_1.MetricType.BOOLEAN &&
340
340
  metric.type !== field_1.MetricType.DATE &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1416.1",
3
+ "version": "0.1417.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [