@lightdash/common 0.1391.0 → 0.1392.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/types/coder.d.ts +18 -1
- package/dist/types/dashboard.d.ts +3 -0
- package/package.json +1 -1
package/dist/types/coder.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { PromotionChanges, SavedChart } from '..';
|
1
|
+
import type { Dashboard, DashboardTile, PromotionChanges, SavedChart } from '..';
|
2
2
|
export declare const currentVersion = 1;
|
3
3
|
export type ChartAsCode = Pick<SavedChart, 'name' | 'description' | 'tableName' | 'metricQuery' | 'chartConfig' | 'tableConfig' | 'slug' | 'dashboardUuid' | 'updatedAt'> & {
|
4
4
|
version: number;
|
@@ -13,3 +13,20 @@ export type ApiChartAsCodeUpsertResponse = {
|
|
13
13
|
status: 'ok';
|
14
14
|
results: PromotionChanges;
|
15
15
|
};
|
16
|
+
export type DashboardTileWithoutUuids = Omit<DashboardTile, 'properties'> & {
|
17
|
+
properties: Omit<DashboardTile['properties'], 'savedChartUuid' | 'savedSqlUuid' | 'savedSemanticViewerChartUuid'>;
|
18
|
+
};
|
19
|
+
export type DashboardAsCode = Pick<Dashboard, 'name' | 'description' | 'updatedAt' | 'filters' | 'tabs' | 'slug'> & {
|
20
|
+
tiles: DashboardTileWithoutUuids[];
|
21
|
+
version: number;
|
22
|
+
spaceSlug: string;
|
23
|
+
downloadedAt?: Date;
|
24
|
+
};
|
25
|
+
export type ApiDashboardAsCodeListResponse = {
|
26
|
+
status: 'ok';
|
27
|
+
results: DashboardAsCode[];
|
28
|
+
};
|
29
|
+
export type ApiDashboardAsCodeUpsertResponse = {
|
30
|
+
status: 'ok';
|
31
|
+
results: PromotionChanges;
|
32
|
+
};
|
@@ -45,6 +45,7 @@ export type DashboardChartTileProperties = {
|
|
45
45
|
belongsToDashboard?: boolean;
|
46
46
|
chartName?: string | null;
|
47
47
|
lastVersionChartKind?: ChartKind | null;
|
48
|
+
chartSlug?: string;
|
48
49
|
};
|
49
50
|
};
|
50
51
|
export type DashboardSqlChartTileProperties = {
|
@@ -54,6 +55,7 @@ export type DashboardSqlChartTileProperties = {
|
|
54
55
|
savedSqlUuid: string | null;
|
55
56
|
chartName: string;
|
56
57
|
hideTitle?: boolean;
|
58
|
+
chartSlug?: string;
|
57
59
|
};
|
58
60
|
};
|
59
61
|
export type DashboardSemanticViewerChartTileProperties = {
|
@@ -63,6 +65,7 @@ export type DashboardSemanticViewerChartTileProperties = {
|
|
63
65
|
savedSemanticViewerChartUuid: string | null;
|
64
66
|
chartName: string;
|
65
67
|
hideTitle?: boolean;
|
68
|
+
chartSlug?: string;
|
66
69
|
};
|
67
70
|
};
|
68
71
|
export type CreateDashboardMarkdownTile = CreateDashboardTileBase & DashboardMarkdownTileProperties;
|