@lightdash/common 0.1391.0 → 0.1392.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1391.0",
3
+ "version": "0.1392.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [