@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.
@@ -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 DashboardTileWithoutUuids = Omit<DashboardTile, 'properties' | 'uuid'> & {
22
+ export type DashboardTileAsCode = Omit<DashboardTile, 'properties' | 'uuid'> & {
23
23
  uuid: DashboardTile['uuid'] | undefined;
24
- properties: Omit<DashboardTile['properties'], 'savedChartUuid' | 'savedSqlUuid' | 'savedSemanticViewerChartUuid'>;
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: DashboardTileWithoutUuids[];
27
+ tiles: DashboardTileAsCode[];
28
28
  version: number;
29
29
  spaceSlug: string;
30
30
  downloadedAt?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1449.0",
3
+ "version": "0.1449.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [