@lightdash/common 0.1449.0 → 0.1449.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/types/coder.d.ts +4 -4
- package/package.json +1 -1
package/dist/types/coder.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Dashboard, DashboardTile, PromotionChanges, SavedChart } from '..';
|
1
|
+
import type { Dashboard, DashboardChartTileProperties, DashboardLoomTileProperties, DashboardMarkdownTileProperties, 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' | 'updatedAt'> & {
|
4
4
|
dashboardSlug: string | undefined;
|
@@ -19,12 +19,12 @@ export type ApiChartAsCodeUpsertResponse = {
|
|
19
19
|
status: 'ok';
|
20
20
|
results: PromotionChanges;
|
21
21
|
};
|
22
|
-
export type
|
22
|
+
export type DashboardTileAsCode = Omit<DashboardTile, 'properties' | 'uuid'> & {
|
23
23
|
uuid: DashboardTile['uuid'] | undefined;
|
24
|
-
properties:
|
24
|
+
properties: Pick<DashboardChartTileProperties['properties'], 'title' | 'hideTitle' | 'chartSlug'> | DashboardMarkdownTileProperties['properties'] | DashboardLoomTileProperties['properties'];
|
25
25
|
};
|
26
26
|
export type DashboardAsCode = Pick<Dashboard, 'name' | 'description' | 'updatedAt' | 'filters' | 'tabs' | 'slug'> & {
|
27
|
-
tiles:
|
27
|
+
tiles: DashboardTileAsCode[];
|
28
28
|
version: number;
|
29
29
|
spaceSlug: string;
|
30
30
|
downloadedAt?: Date;
|