@lightdash/common 0.1407.0 → 0.1407.1

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.
@@ -114,6 +114,7 @@ export type CatalogFieldMap = {
114
114
  fieldName: string;
115
115
  tableName: string;
116
116
  cachedExploreUuid: string;
117
+ fieldType: FieldType;
117
118
  };
118
119
  };
119
120
  export type CatalogItemSummary = Pick<CatalogItem, 'catalogSearchUuid' | 'name' | 'type'> & {
@@ -138,10 +139,35 @@ export type SchedulerIndexCatalogJobPayload = {
138
139
  prevCatalogItemsWithIcons: CatalogItemsWithIcons[];
139
140
  prevMetricTreeEdges: CatalogMetricsTreeEdge[];
140
141
  };
142
+ export type ChartFieldUpdates = {
143
+ oldChartFields: {
144
+ metrics: string[];
145
+ dimensions: string[];
146
+ };
147
+ newChartFields: {
148
+ metrics: string[];
149
+ dimensions: string[];
150
+ };
151
+ };
152
+ export type ChartFieldChanges = {
153
+ added: {
154
+ dimensions: string[];
155
+ metrics: string[];
156
+ };
157
+ removed: {
158
+ dimensions: string[];
159
+ metrics: string[];
160
+ };
161
+ };
141
162
  export type CatalogFieldWhere = {
142
163
  fieldName: string;
164
+ fieldType: FieldType;
143
165
  cachedExploreUuid: string;
144
166
  };
167
+ export type ChartFieldUsageChanges = {
168
+ fieldsToIncrement: CatalogFieldWhere[];
169
+ fieldsToDecrement: CatalogFieldWhere[];
170
+ };
145
171
  export type ChartUsageIn = CatalogFieldWhere & {
146
172
  chartUsage: number;
147
173
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1407.0",
3
+ "version": "0.1407.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [