@lightdash/common 0.1397.0 → 0.1397.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,7 +56,7 @@ export type CatalogTable = Pick<TableBase, 'name' | 'label' | 'groupLabel' | 'de
56
56
  icon: CatalogItemIcon | null;
57
57
  };
58
58
  export type CatalogItem = CatalogField | CatalogTable;
59
- export type CatalogMetricsTreeNode = Pick<CatalogField, 'name' | 'tableName'>;
59
+ export type CatalogMetricsTreeNode = Pick<CatalogField, 'catalogSearchUuid' | 'name' | 'tableName'>;
60
60
  export type CatalogMetricsTreeEdge = {
61
61
  source: CatalogMetricsTreeNode;
62
62
  target: CatalogMetricsTreeNode;
@@ -82,8 +82,8 @@ export type ApiGetMetricsTree = {
82
82
  };
83
83
  };
84
84
  export type ApiMetricsTreeEdgePayload = {
85
- sourceMetricId: string;
86
- targetMetricId: string;
85
+ sourceCatalogSearchUuid: string;
86
+ targetCatalogSearchUuid: string;
87
87
  };
88
88
  export type CatalogMetadata = {
89
89
  name: string;
@@ -1,4 +1 @@
1
- import type { CatalogMetricsTreeNode } from '../types/catalog';
2
1
  export declare const MAX_METRICS_TREE_NODE_COUNT = 30;
3
- export declare function getMetricsTreeNodeId(field: CatalogMetricsTreeNode): string;
4
- export declare function parseMetricsTreeNodeId(id: string): CatalogMetricsTreeNode;
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseMetricsTreeNodeId = exports.getMetricsTreeNodeId = exports.MAX_METRICS_TREE_NODE_COUNT = void 0;
3
+ exports.MAX_METRICS_TREE_NODE_COUNT = void 0;
4
4
  exports.MAX_METRICS_TREE_NODE_COUNT = 30;
5
- function getMetricsTreeNodeId(field) {
6
- return `${field.tableName}::${field.name}`;
7
- }
8
- exports.getMetricsTreeNodeId = getMetricsTreeNodeId;
9
- function parseMetricsTreeNodeId(id) {
10
- const [tableName, name] = id.split('::');
11
- if (!tableName || !name) {
12
- throw new Error('Invalid metrics tree node id');
13
- }
14
- return {
15
- name,
16
- tableName,
17
- };
18
- }
19
- exports.parseMetricsTreeNodeId = parseMetricsTreeNodeId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1397.0",
3
+ "version": "0.1397.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [