@lightdash/common 0.1395.0 → 0.1396.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,6 +60,9 @@ export type CatalogMetricsTreeNode = Pick<CatalogField, 'name' | 'tableName'>;
60
60
  export type CatalogMetricsTreeEdge = {
61
61
  source: CatalogMetricsTreeNode;
62
62
  target: CatalogMetricsTreeNode;
63
+ createdAt: Date;
64
+ createdByUserUuid: string | null;
65
+ projectUuid: string;
63
66
  };
64
67
  export type ApiCatalogResults = CatalogItem[];
65
68
  export type ApiMetricsCatalogResults = CatalogField[];
@@ -106,24 +109,27 @@ export type CatalogFieldMap = {
106
109
  cachedExploreUuid: string;
107
110
  };
108
111
  };
109
- export type CatalogItemWithTagUuids = Pick<CatalogItem, 'catalogSearchUuid' | 'name' | 'type'> & {
110
- cachedExploreUuid: string;
112
+ export type CatalogItemSummary = Pick<CatalogItem, 'catalogSearchUuid' | 'name' | 'type'> & {
111
113
  projectUuid: string;
112
- fieldType?: string;
113
- exploreBaseTable: string;
114
+ cachedExploreUuid: string;
115
+ tableName: string;
116
+ fieldType: string | undefined;
117
+ };
118
+ export type CatalogItemWithTagUuids = CatalogItemSummary & {
114
119
  catalogTags: {
115
120
  tagUuid: string;
116
121
  createdByUserUuid: string | null;
117
122
  createdAt: Date;
118
123
  }[];
119
124
  };
120
- export type CatalogItemsWithIcons = Pick<CatalogItem, 'catalogSearchUuid' | 'icon' | 'name' | 'type'> & Pick<CatalogItemWithTagUuids, 'cachedExploreUuid' | 'projectUuid' | 'fieldType' | 'exploreBaseTable'>;
125
+ export type CatalogItemsWithIcons = CatalogItemSummary & Pick<CatalogItem, 'icon'>;
121
126
  export type SchedulerIndexCatalogJobPayload = {
122
127
  projectUuid: string;
123
128
  explores: (Explore | ExploreError)[];
124
129
  userUuid: string;
125
130
  prevCatalogItemsWithTags: CatalogItemWithTagUuids[];
126
131
  prevCatalogItemsWithIcons: CatalogItemsWithIcons[];
132
+ prevMetricTreeEdges: CatalogMetricsTreeEdge[];
127
133
  };
128
134
  export type CatalogFieldWhere = {
129
135
  fieldName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1395.0",
3
+ "version": "0.1396.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [