@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.
package/dist/types/coder.d.ts
CHANGED
@@ -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.
|
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 &&
|