@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.
- package/dist/types/catalog.d.ts +26 -0
- package/package.json +1 -1
package/dist/types/catalog.d.ts
CHANGED
@@ -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
|
};
|